Socket
Socket
Sign inDemoInstall

vue

Package Overview
Dependencies
Maintainers
1
Versions
528
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue - npm Package Compare versions

Comparing version 0.11.10 to 0.12.0-beta1

build/grunt-tasks/build.js

6

dist/vue.min.js
/**
* Vue.js v0.11.10
* Vue.js v0.12.0-beta1
* (c) 2015 Evan You
* Released under the MIT License.
*/
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):"object"==typeof exports?exports.Vue=e():t.Vue=e()}(this,function(){return function(t){function e(n){if(i[n])return i[n].exports;var r=i[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var i={};return e.m=t,e.c=i,e.p="",e(0)}([function(t,e,i){function n(t){this._init(t)}var r=i(11),s=r.extend;s(n,i(1)),n.options={directives:i(12),filters:i(13),partials:{},transitions:{},components:{}};var o=n.prototype;Object.defineProperty(o,"$data",{get:function(){return this._data},set:function(t){this._setData(t)}}),s(o,i(2)),s(o,i(3)),s(o,i(4)),s(o,i(5)),s(o,i(6)),s(o,i(7)),s(o,i(8)),s(o,i(9)),s(o,i(10)),t.exports=r.Vue=n},function(t,e,i){function n(t){return new Function("return function "+s.classify(t)+" (options) { this._init(options) }")()}function r(t){c.forEach(function(e){t[e]=function(t,i){return i?void(this.options[e+"s"][t]=i):this.options[e+"s"][t]}}),t.component=function(t,e){return e?(s.isPlainObject(e)&&(e.name=t,e=s.Vue.extend(e)),void(this.options.components[t]=e)):this.options.components[t]}}var s=i(11),o=i(14);e.util=s,e.nextTick=s.nextTick,e.config=i(15),e.compiler={compile:i(16),transclude:i(17)},e.parsers={path:i(18),text:i(19),template:i(20),directive:i(21),expression:i(22)},e.cid=0;var a=1;e.extend=function(t){t=t||{};var e=this,i=n(t.name||e.options.name||"VueComponent");return i.prototype=Object.create(e.prototype),i.prototype.constructor=i,i.cid=a++,i.options=o(e.options,t),i["super"]=e,i.extend=e.extend,r(i),i},e.use=function(t){var e=s.toArray(arguments,1);return e.unshift(this),"function"==typeof t.install?t.install.apply(t,e):t.apply(null,e),this};var c=["directive","filter","partial","transition"];r(e)},function(t,e,i){var n=i(14);e._init=function(t){t=t||{},this.$el=null,this.$parent=t._parent,this.$root=t._root||this,this.$={},this.$$={},this._watcherList=[],this._watchers={},this._userWatchers={},this._directives=[],this._isVue=!0,this._events={},this._eventsCount={},this._eventCancelled=!1,this._isBlock=!1,this._blockStart=this._blockEnd=null,this._isCompiled=this._isDestroyed=this._isReady=this._isAttached=this._isBeingDestroyed=!1,this._children=[],this._childCtors={},this._containerUnlinkFn=this._contentUnlinkFn=null,this._transCpnts=[],this._host=t._host,this.$parent&&this.$parent._children.push(this),this._host&&this._host._transCpnts.push(this),this._new=!0,this._reused=!1,t=this.$options=n(this.constructor.options,t,this),this._data=t.data||{},this._initScope(),this._initEvents(),this._callHook("created"),t.el&&this.$mount(t.el)}},function(t,e,i){function n(t,e,i){if(i){var n,s,o,a;for(s in i)if(n=i[s],h.isArray(n))for(o=0,a=n.length;a>o;o++)r(t,e,s,n[o]);else r(t,e,s,n)}}function r(t,e,i,n){var r=typeof n;if("function"===r)t[e](i,n);else if("string"===r){var s=t.$options.methods,o=s&&s[n];o&&t[e](i,o)}}function s(){this._isAttached=!0,this._children.forEach(o),this._transCpnts.length&&this._transCpnts.forEach(o)}function o(t){!t._isAttached&&u(t.$el)&&t._callHook("attached")}function a(){this._isAttached=!1,this._children.forEach(c),this._transCpnts.length&&this._transCpnts.forEach(c)}function c(t){t._isAttached&&!u(t.$el)&&t._callHook("detached")}var h=i(11),u=h.inDoc;e._initEvents=function(){var t=this.$options;n(this,"$on",t.events),n(this,"$watch",t.watch)},e._initDOMHooks=function(){this.$on("hook:attached",s),this.$on("hook:detached",a)},e._callHook=function(t){var e=this.$options[t];if(e)for(var i=0,n=e.length;n>i;i++)e[i].call(this);this.$emit("hook:"+t)}},function(t,e,i){function n(){}var r=i(11),s=i(49),o=i(23);e._initScope=function(){this._initData(),this._initComputed(),this._initMethods(),this._initMeta()},e._initData=function(){for(var t,e=this._data,i=Object.keys(e),n=i.length;n--;)t=i[n],r.isReserved(t)||this._proxy(t);s.create(e).addVm(this)},e._setData=function(t){t=t||{};var e=this._data;this._data=t;var i,n,o;for(i=Object.keys(e),o=i.length;o--;)n=i[o],r.isReserved(n)||n in t||this._unproxy(n);for(i=Object.keys(t),o=i.length;o--;)n=i[o],this.hasOwnProperty(n)||r.isReserved(n)||this._proxy(n);e.__ob__.removeVm(this),s.create(t).addVm(this),this._digest()},e._proxy=function(t){var e=this;Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return e._data[t]},set:function(i){e._data[t]=i}})},e._unproxy=function(t){delete this[t]},e._digest=function(){for(var t=this._watcherList.length;t--;)this._watcherList[t].update();var e=this._children;for(t=e.length;t--;){var i=e[t];i.$options.inherit&&i._digest()}},e._initComputed=function(){var t=this.$options.computed;if(t)for(var e in t){var i=t[e],s={enumerable:!0,configurable:!0};"function"==typeof i?(s.get=r.bind(i,this),s.set=n):(s.get=i.get?r.bind(i.get,this):n,s.set=i.set?r.bind(i.set,this):n),Object.defineProperty(this,e,s)}},e._initMethods=function(){var t=this.$options.methods;if(t)for(var e in t)this[e]=r.bind(t[e],this)},e._initMeta=function(){var t=this.$options._meta;if(t)for(var e in t)this._defineMeta(e,t[e])},e._defineMeta=function(t,e){var i=new o;Object.defineProperty(this,t,{enumerable:!0,configurable:!0,get:function(){return s.target&&s.target.addDep(i),e},set:function(t){t!==e&&(e=t,i.notify())}})}},function(t,e,i){var n=i(11),r=i(24),s=i(16),o=i(17);e._compile=function(t){var e=this.$options;if(e._linkFn)this._initElement(t),e._linkFn(this,t);else{var i=t;t=o(t,e),this._initElement(t),s(t,e)(this,t),e.replace&&n.replace(i,t)}return t},e._initElement=function(t){t instanceof DocumentFragment?(this._isBlock=!0,this.$el=this._blockStart=t.firstChild,this._blockEnd=t.lastChild,this._blockFragment=t):this.$el=t,this.$el.__vue__=this,this._callHook("beforeCompile")},e._bindDir=function(t,e,i,n,s){this._directives.push(new r(t,e,this,i,n,s))},e._destroy=function(t,e){if(!this._isBeingDestroyed){this._callHook("beforeDestroy"),this._isBeingDestroyed=!0;var i,n=this.$parent;n&&!n._isBeingDestroyed&&(i=n._children.indexOf(this),n._children.splice(i,1));var r=this._host;for(r&&!r._isBeingDestroyed&&(i=r._transCpnts.indexOf(this),r._transCpnts.splice(i,1)),i=this._children.length;i--;)this._children[i].$destroy();for(i=0;i<this._directives.length;i++)this._directives[i]._teardown();var s;for(i in this._userWatchers)s=this._userWatchers[i],s&&s.teardown();this.$el&&(this.$el.__vue__=null);var o=this;t&&this.$el?this.$remove(function(){o._cleanup()}):e||this._cleanup()}},e._cleanup=function(){this._data.__ob__.removeVm(this),this._data=this._watchers=this._userWatchers=this._watcherList=this.$el=this.$parent=this.$root=this._children=this._transCpnts=this._directives=null,this._isDestroyed=!0,this._callHook("destroyed"),this.$off()}},function(t,e,i){var n=i(11),r=i(25),s=i(18),o=i(19),a=i(21),c=i(22),h=/[^|]\|[^|]/;e.$get=function(t){var e=c.parse(t);if(e)try{return e.get.call(this,this)}catch(i){}},e.$set=function(t,e){var i=c.parse(t,!0);i&&i.set&&i.set.call(this,this,e)},e.$add=function(t,e){this._data.$add(t,e)},e.$delete=function(t){this._data.$delete(t)},e.$watch=function(t,e,i,n){var s=this,o=i?t+"**deep**":t,a=s._userWatchers[o],c=function(t,i){e.call(s,t,i)};return a?a.addCb(c):a=s._userWatchers[o]=new r(s,t,c,{deep:i,user:!0}),n&&c(a.value),function(){a.removeCb(c),a.active||(s._userWatchers[o]=null)}},e.$eval=function(t){if(h.test(t)){var e=a.parse(t)[0];return e.filters?n.applyFilters(this.$get(e.expression),n.resolveFilters(this,e.filters).read,this):this.$get(e.expression)}return this.$get(t)},e.$interpolate=function(t){var e=o.parse(t),i=this;return e?1===e.length?i.$eval(e[0].value):e.map(function(t){return t.tag?i.$eval(t.value):t.value}).join(""):t},e.$log=function(t){var e=t?s.get(this._data,t):this._data;e&&(e=JSON.parse(JSON.stringify(e))),console.log(e)}},function(t,e,i){function n(t,e,i,n,o,a){e=s(e);var c=!h.inDoc(e),u=n===!1||c?o:a,l=!c&&!t._isAttached&&!h.inDoc(t.$el);return t._isBlock?r(t,e,u,i):u(t.$el,e,t,i),l&&t._callHook("attached"),t}function r(t,e,i,n){for(var r,s=t._blockStart,o=t._blockEnd;r!==o;)r=s.nextSibling,i(s,e,t),s=r;i(o,e,t,n)}function s(t){return"string"==typeof t?document.querySelector(t):t}function o(t,e,i,n){e.appendChild(t),n&&n()}function a(t,e,i,n){h.before(t,e),n&&n()}function c(t,e,i){h.remove(t),i&&i()}var h=i(11),u=i(50);e.$appendTo=function(t,e,i){return n(this,t,e,i,o,u.append)},e.$prependTo=function(t,e,i){return t=s(t),t.hasChildNodes()?this.$before(t.firstChild,e,i):this.$appendTo(t,e,i),this},e.$before=function(t,e,i){return n(this,t,e,i,a,u.before)},e.$after=function(t,e,i){return t=s(t),t.nextSibling?this.$before(t.nextSibling,e,i):this.$appendTo(t.parentNode,e,i),this},e.$remove=function(t,e){var i=this._isAttached&&h.inDoc(this.$el);i||(e=!1);var n,s=this,a=function(){i&&s._callHook("detached"),t&&t()};return this._isBlock&&!this._blockFragment.hasChildNodes()?(n=e===!1?o:u.removeThenAppend,r(this,this._blockFragment,n,a)):(n=e===!1?c:u.remove)(this.$el,this,a),this}},function(t,e,i){function n(t,e,i){var n=t.$parent;if(n&&i&&!s.test(e))for(;n;)n._eventsCount[e]=(n._eventsCount[e]||0)+i,n=n.$parent}var r=i(11);e.$on=function(t,e){return(this._events[t]||(this._events[t]=[])).push(e),n(this,t,1),this},e.$once=function(t,e){function i(){n.$off(t,i),e.apply(this,arguments)}var n=this;return i.fn=e,this.$on(t,i),this},e.$off=function(t,e){var i;if(!arguments.length){if(this.$parent)for(t in this._events)i=this._events[t],i&&n(this,t,-i.length);return this._events={},this}if(i=this._events[t],!i)return this;if(1===arguments.length)return n(this,t,-i.length),this._events[t]=null,this;for(var r,s=i.length;s--;)if(r=i[s],r===e||r.fn===e){n(this,t,-1),i.splice(s,1);break}return this},e.$emit=function(t){this._eventCancelled=!1;var e=this._events[t];if(e){for(var i=arguments.length-1,n=new Array(i);i--;)n[i]=arguments[i+1];i=0,e=e.length>1?r.toArray(e):e;for(var s=e.length;s>i;i++)e[i].apply(this,n)===!1&&(this._eventCancelled=!0)}return this},e.$broadcast=function(t){if(this._eventsCount[t]){for(var e=this._children,i=0,n=e.length;n>i;i++){var r=e[i];r.$emit.apply(r,arguments),r._eventCancelled||r.$broadcast.apply(r,arguments)}return this}},e.$dispatch=function(){for(var t=this.$parent;t;)t.$emit.apply(t,arguments),t=t._eventCancelled?null:t.$parent;return this};var s=/^hook:/},function(t,e,i){var n=i(11);e.$addChild=function(t,e){e=e||n.Vue,t=t||{};var i,r=this,s=void 0!==t.inherit?t.inherit:e.options.inherit;if(s){var o=r._childCtors;if(i=o[e.cid],!i){var a=e.options.name,c=a?n.classify(a):"VueComponent";i=new Function("return function "+c+" (options) {this.constructor = "+c+";this._init(options) }")(),i.options=e.options,i.prototype=this,o[e.cid]=i}}else i=e;t._parent=r,t._root=r.$root;var h=new i(t);return h}},function(t,e,i){function n(){this._isAttached=!0,this._isReady=!0,this._callHook("ready")}var r=i(11),s=i(16);e.$mount=function(t){if(!this._isCompiled){if(t){if("string"==typeof t){if(t=document.querySelector(t),!t)return}}else t=document.createElement("div");return this._compile(t),this._isCompiled=!0,this._callHook("compiled"),r.inDoc(this.$el)?(this._callHook("attached"),this._initDOMHooks(),n.call(this)):(this._initDOMHooks(),this.$once("hook:attached",n)),this}},e.$destroy=function(t,e){this._destroy(t,e)},e.$compile=function(t){return s(t,this.$options,!0)(this,t)}},function(t,e,i){var n=i(26),r=n.extend;r(e,n),r(e,i(27)),r(e,i(28)),r(e,i(29)),r(e,i(30))},function(t,e,i){e.text=i(31),e.html=i(32),e.attr=i(33),e.show=i(34),e["class"]=i(35),e.el=i(36),e.ref=i(37),e.cloak=i(38),e.style=i(39),e.partial=i(40),e.transition=i(41),e.on=i(42),e.model=i(51),e.component=i(43),e.repeat=i(44),e["if"]=i(45),e["with"]=i(46),e.events=i(47)},function(t,e,i){var n=i(11);e.json={read:function(t,e){return"string"==typeof t?t:JSON.stringify(t,null,Number(e)||2)},write:function(t){try{return JSON.parse(t)}catch(e){return t}}},e.capitalize=function(t){return t||0===t?(t=t.toString(),t.charAt(0).toUpperCase()+t.slice(1)):""},e.uppercase=function(t){return t||0===t?t.toString().toUpperCase():""},e.lowercase=function(t){return t||0===t?t.toString().toLowerCase():""};var r=/(\d{3})(?=\d)/g;e.currency=function(t,e){if(t=parseFloat(t),!isFinite(t)||!t&&0!==t)return"";e=e||"$";var i=Math.floor(Math.abs(t)).toString(),n=i.length%3,s=n>0?i.slice(0,n)+(i.length>3?",":""):"",o=Math.abs(parseInt(100*t%100,10)),a="."+(10>o?"0"+o:o);return(0>t?"-":"")+e+s+i.slice(n).replace(r,"$1,")+a},e.pluralize=function(t){var e=n.toArray(arguments,1);return e.length>1?e[t%10-1]||e[e.length-1]:e[0]+(1===t?"":"s")};var s={enter:13,tab:9,"delete":46,up:38,left:37,right:39,down:40,esc:27};e.key=function(t,e){if(t){var i=s[e];return i||(i=parseInt(e,10)),function(e){return e.keyCode===i?t.call(this,e):void 0}}},e.key.keyCodes=s,n.extend(e,i(48))},function(t,e,i){function n(t,e){var i,r,o;for(i in e)r=t[i],o=e[i],t.hasOwnProperty(i)?s.isObject(r)&&s.isObject(o)&&n(r,o):t.$add(i,o);return t}function r(t){if(t){var e;for(var i in t)e=t[i],s.isPlainObject(e)&&(e.name=i,t[i]=s.Vue.extend(e))}}var s=i(11),o=s.extend,a=Object.create(null);a.data=function(t,e,i){if(i){var r="function"==typeof e?e.call(i):e,s="function"==typeof t?t.call(i):void 0;return r?n(r,s):s}return e?"function"!=typeof e?t:t?function(){return n(e.call(this),t.call(this))}:e:t},a.el=function(t,e,i){if(i||!e||"function"==typeof e){var n=e||t;return i&&"function"==typeof n?n.call(i):n}},a.created=a.ready=a.attached=a.detached=a.beforeCompile=a.compiled=a.beforeDestroy=a.destroyed=a.paramAttributes=function(t,e){return e?t?t.concat(e):s.isArray(e)?e:[e]:t},a.directives=a.filters=a.partials=a.transitions=a.components=function(t,e,i,n){var r=Object.create(i&&i.$parent?i.$parent.$options[n]:s.Vue.options[n]);if(t)for(var a,c=Object.keys(t),h=c.length;h--;)a=c[h],r[a]=t[a];return e&&o(r,e),r},a.watch=a.events=function(t,e){if(!e)return t;if(!t)return e;var i={};o(i,t);for(var n in e){var r=i[n],a=e[n];r&&!s.isArray(r)&&(r=[r]),i[n]=r?r.concat(a):[a]}return i},a.methods=a.computed=function(t,e){if(!e)return t;if(!t)return e;var i=Object.create(t);return o(i,e),i};var c=function(t,e){return void 0===e?t:e};t.exports=function h(t,e,i){function n(n){var r=a[n]||c;o[n]=r(t[n],e[n],i,n)}r(e.components);var s,o={};if(e.mixins)for(var u=0,l=e.mixins.length;l>u;u++)t=h(t,e.mixins[u],i);for(s in t)n(s);for(s in e)t.hasOwnProperty(s)||n(s);return o}},function(t,e,i){t.exports={prefix:"v-",debug:!1,silent:!1,proto:!0,interpolate:!0,async:!0,warnExpressionErrors:!0,_delimitersChanged:!0};var n=["{{","}}"];Object.defineProperty(t.exports,"delimiters",{get:function(){return n},set:function(t){n=t,this._delimitersChanged=!0}})},function(t,e,i){function n(t,e,i,n){function o(t,e){var r=t._directives.length,s=t.$parent&&t.$parent._directives.length;h&&h(t,e);var o=$.toArray(e.childNodes),a=n?t.$parent:t,c=n?t:void 0;if(u&&u(a,e,c),f&&f(a,o,c),i&&!n){var l=t._directives.slice(r),d=t.$parent&&t.$parent._directives.slice(s),p=function(t,e){for(var i=e.length;i--;)e[i]._teardown();i=t._directives.indexOf(e[0]),t._directives.splice(i,e.length)};return function(){p(t,l),d&&p(t.$parent,d)}}}var a=11===t.nodeType,c=e.paramAttributes,h=!c||i||n||a?null:d(t,c,e),u=a?r(e._containerAttrs,c,e):s(t,e),f=u&&u.terminal||"SCRIPT"===t.tagName||!t.hasChildNodes()?null:l(t.childNodes,e);return n&&(o.terminal=!0),o}function r(t,e,i){if(!t)return null;var n=e?d(t,e,i):null,r=t[x.prefix+"with"],s=null;if(r){var o=C.parse(r)[0],a=i.directives["with"];s=function(t,e){t._bindDir("with",e,o,a)}}return function(t){n&&n(t,null),s&&s(t,null)}}function s(t,e){var i=t.nodeType;return 1===i&&"SCRIPT"!==t.tagName?o(t,e):3===i&&x.interpolate&&t.data.trim()?c(t,e):null}function o(t,e){if(w(t))return t.hasAttribute("__vue__wrap")&&(t=t.firstChild),n(t,e._parent.$options,!0,!0);var i,r,s;if(t.__vue__||(r=t.tagName.toLowerCase(),s=r.indexOf("-")>0&&e.components[r],s&&t.setAttribute(x.prefix+"component",r)),(s||t.hasAttributes())&&(i=m(t,e),!i)){var o=b(t,e);i=o.length?a(o):null}if("TEXTAREA"===t.tagName){var c=i;i=function(t,e){e.value=t.$interpolate(e.value),c&&c(t,e)},i.terminal=!0}return i}function a(t){return function(e,i,n){for(var r,s,o,a,c=t.length;c--;)if(r=t[c],a=r.transcluded?e.$parent:e,r._link)r._link(a,i);else for(o=r.descriptors.length,s=0;o>s;s++)a._bindDir(r.name,i,r.descriptors[s],r.def,n)}}function c(t,e){var i=k.parse(t.data);if(!i)return null;for(var n,r,s=document.createDocumentFragment(),o=0,a=i.length;a>o;o++)r=i[o],n=r.tag?h(r,e):document.createTextNode(r.value),s.appendChild(n);return u(i,s,e)}function h(t,e){function i(i){t.type=i,t.def=e.directives[i],t.descriptor=C.parse(t.value)[0]}var n;return t.oneTime?n=document.createTextNode(t.value):t.html?(n=document.createComment("v-html"),i("html")):t.partial?(n=document.createComment("v-partial"),i("partial")):(n=document.createTextNode(" "),i("text")),n}function u(t,e){return function(i,n){for(var r,s,o,a=e.cloneNode(!0),c=$.toArray(a.childNodes),h=0,u=t.length;u>h;h++)r=t[h],s=r.value,r.tag&&(o=c[h],r.oneTime?(s=i.$eval(s),r.html?$.replace(o,A.parse(s,!0)):o.data=s):i._bindDir(r.type,o,r.descriptor,r.def));$.replace(n,a)}}function l(t,e){for(var i,n,r,o=[],a=0,c=t.length;c>a;a++)r=t[a],i=s(r,e),n=i&&i.terminal||"SCRIPT"===r.tagName||!r.hasChildNodes()?null:l(r.childNodes,e),o.push(i,n);return o.length?f(o):null}function f(t){return function(e,i,n){for(var r,s,o,a=0,c=0,h=t.length;h>a;c++){r=i[c],s=t[a++],o=t[a++];var u=$.toArray(r.childNodes);s&&s(e,r,n),o&&o(e,u,n)}}}function d(t,e,i){for(var n,r,s,o=[],a=t.nodeType,c=e.length;c--;)if(n=e[c],/[A-Z]/.test(n),r=a?t.getAttribute(n):t[n],null!==r){s={name:n,value:r};var h=k.parse(r);if(h){if(a&&t.removeAttribute(n),h.length>1)continue;s.dynamic=!0,s.value=h[0].value}o.push(s)}return p(o,i)}function p(t,e){var i=e.directives["with"];return function(e,n){for(var r,s,o=t.length;o--;)r=t[o],s=$.camelize(r.name.replace(E,"")),r.dynamic?e._bindDir("with",n,{arg:s,expression:r.value},i):e.$set(s,r.value)}}function v(){}function m(t,e){if(null!==$.attr(t,"pre"))return v;for(var i,n,r=0;3>r;r++)if(n=T[r],i=$.attr(t,n))return _(t,n,i,e)}function _(t,e,i,n){var r=C.parse(i)[0],s=n.directives[e],o=function(t,i,n){t._bindDir(e,i,r,s,n)};return o.terminal=!0,o}function b(t,e){for(var i,n,r,s,o,a,c=$.toArray(t.attributes),h=c.length,u=[];h--;)i=c[h],n=i.name,a=e._transcludedAttrs&&e._transcludedAttrs[n],0===n.indexOf(x.prefix)?(s=n.slice(x.prefix.length),o=e.directives[s],o&&u.push({name:s,descriptors:C.parse(i.value),def:o,transcluded:a})):x.interpolate&&(r=g(t,n,i.value,e),r&&(r.transcluded=a,u.push(r)));return u.sort(y),u}function g(t,e,i,n){var r=k.parse(i);if(r){for(var s=n.directives.attr,o=r.length,a=!0;o--;){var c=r[o];c.tag&&!c.oneTime&&(a=!1)}return{def:s,_link:a?function(t,n){n.setAttribute(e,t.$interpolate(i))}:function(t,i){var n=k.tokensToExp(r,t),o=C.parse(e+":"+n)[0];t._bindDir("attr",i,o,s)}}}}function y(t,e){return t=t.def.priority||0,e=e.def.priority||0,t>e?1:-1}function w(t){return 1===t.nodeType&&t.hasAttribute(D)?(t.removeAttribute(D),!0):void 0}var $=i(11),x=i(15),k=i(19),C=i(21),A=i(20);t.exports=n;var E=/^data-/,T=["repeat","if","component"];v.terminal=!0;var D="__vue__transcluded"},function(t,e,i){function n(t,e){var i=e.template,n=u.parse(i,!0);if(n){var s=e._content||c.extractContent(t);if(e.replace){if(n.childNodes.length>1){for(var o=e._containerAttrs={},a=t.attributes.length;a--;){var h=t.attributes[a];o[h.name]=h.value}return r(n,s),n}var l=n.firstChild;return c.copyAttributes(t,l),r(l,s),l}return t.appendChild(n),r(t,s),t}}function r(t,e){function i(t){return t.parentNode===e}var n=s(t),r=n.length;if(r){for(var a,h,u,l,f;r--;)a=n[r],e?(h=a.getAttribute("select"),h?(u=e.querySelectorAll(h),u.length&&(u=[].filter.call(u,i)),a.content=u.length?u:c.toArray(a.childNodes)):f=a):a.content=c.toArray(a.childNodes);for(r=0,l=n.length;l>r;r++)a=n[r],a!==f&&o(a,a.content);f&&o(f,c.toArray(e.childNodes))}}function s(t){return c.isArray(t)?f.apply([],t.map(s)):t.querySelectorAll?c.toArray(t.querySelectorAll("content")):[]}function o(t,e){for(var i=t.parentNode,n=0,r=e.length;r>n;n++)i.insertBefore(e[n],t);i.removeChild(t)}function a(t){if(!t)return null;for(var e={},i=h.prefix+"with",n=t.length;n--;){var r=t[n].name;r!==i&&(e[r]=!0)}return e}var c=i(11),h=i(15),u=i(20),l="__vue__transcluded";t.exports=function(t,e){if(e&&e._asComponent){e._transcludedAttrs=a(t.attributes);for(var i=t.childNodes.length;i--;){var r=t.childNodes[i];if(1===r.nodeType)r.setAttribute(l,"");else if(3===r.nodeType&&r.data.trim()){var s=document.createElement("span");s.textContent=r.data,s.setAttribute("__vue__wrap",""),s.setAttribute(l,""),t.replaceChild(s,r)}}}return"TEMPLATE"===t.tagName&&(t=u.parse(t)),e&&e.template&&(t=n(t,e)),t instanceof DocumentFragment&&(c.prepend(document.createComment("v-start"),t),t.appendChild(document.createComment("v-end"))),t};var f=[].concat},function(t,e,i){function n(){}function r(t){if(void 0===t)return"eof";var e=t.charCodeAt(0);switch(e){case 91:case 93:case 46:case 34:case 39:case 48:return t;case 95:case 36:return"ident";case 32:case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return e>=97&&122>=e||e>=65&&90>=e?"ident":e>=49&&57>=e?"number":"else"}function s(t){function e(){var e=t[d+1];return"inSingleQuote"===p&&"'"===e||"inDoubleQuote"===p&&'"'===e?(d++,s=e,v.append(),!0):void 0}for(var i,s,o,a,c,h,u,f=[],d=-1,p="beforePath",v={push:function(){void 0!==o&&(f.push(o),o=void 0)},append:function(){void 0===o?o=s:o+=s}};p;)if(d++,i=t[d],"\\"!==i||!e()){if(a=r(i),u=l[p],c=u[a]||u["else"]||"error","error"===c)return;if(p=c[0],h=v[c[1]]||n,s=void 0===c[2]?i:c[2],h(),"afterPath"===p)return f}}function o(t){return u.test(t)?"."+t:+t===t>>>0?"["+t+"]":'["'+t.replace(/"/g,'\\"')+'"]'}var a=i(11),c=i(52),h=new c(1e3),u=/^[$_a-zA-Z]+[\w$]*$/,l={beforePath:{ws:["beforePath"],ident:["inIdent","append"],"[":["beforeElement"],eof:["afterPath"]},inPath:{ws:["inPath"],".":["beforeIdent"],"[":["beforeElement"],eof:["afterPath"]},beforeIdent:{ws:["beforeIdent"],ident:["inIdent","append"]},inIdent:{ident:["inIdent","append"],0:["inIdent","append"],number:["inIdent","append"],ws:["inPath","push"],".":["beforeIdent","push"],"[":["beforeElement","push"],eof:["afterPath","push"]},beforeElement:{ws:["beforeElement"],0:["afterZero","append"],number:["inIndex","append"],"'":["inSingleQuote","append",""],'"':["inDoubleQuote","append",""]},afterZero:{ws:["afterElement","push"],"]":["inPath","push"]},inIndex:{0:["inIndex","append"],number:["inIndex","append"],ws:["afterElement"],"]":["inPath","push"]},inSingleQuote:{"'":["afterElement"],eof:"error","else":["inSingleQuote","append"]},inDoubleQuote:{'"':["afterElement"],eof:"error","else":["inDoubleQuote","append"]},afterElement:{ws:["afterElement"],"]":["inPath","push"]}};e.compileGetter=function(t){var e="return o"+t.map(o).join("");return new Function("o",e)},e.parse=function(t){var i=h.get(t);return i||(i=s(t),i&&(i.get=e.compileGetter(i),h.put(t,i))),i},e.get=function(t,i){return i=e.parse(i),i?i.get(t):void 0},e.set=function(t,i,n){if("string"==typeof i&&(i=e.parse(i)),!i||!a.isObject(t))return!1;for(var r,s,o=0,c=i.length-1;c>o;o++)r=t,s=i[o],t=t[s],a.isObject(t)||(t={},r.$add(s,t));return s=i[o],s in t?t[s]=n:t.$add(s,n),!0}},function(t,e,i){function n(t){return t.replace(v,"\\$&")}function r(){d._delimitersChanged=!1;var t=d.delimiters[0],e=d.delimiters[1];u=t.charAt(0),l=e.charAt(e.length-1);var i=n(u),r=n(l),s=n(t),o=n(e);c=new RegExp(i+"?"+s+"(.+?)"+o+r+"?","g"),h=new RegExp("^"+i+s+".*"+o+r+"$"),a=new f(1e3)}function s(t,e,i){return t.tag?e&&t.oneTime?'"'+e.$eval(t.value)+'"':i?t.value:o(t.value):'"'+t.value+'"'}function o(t){if(m.test(t)){var e=p.parse(t)[0];if(e.filters){t=e.expression;for(var i=0,n=e.filters.length;n>i;i++){var r=e.filters[i],s=r.args?',"'+r.args.join('","')+'"':"";r='this.$options.filters["'+r.name+'"]',t="("+r+".read||"+r+").apply(this,["+t+s+"])"}return t}return"("+t+")"}return"("+t+")"}var a,c,h,u,l,f=i(52),d=i(15),p=i(21),v=/[-.*+?^${}()|[\]\/\\]/g;e.parse=function(t){d._delimitersChanged&&r();var e=a.get(t);if(e)return e;if(!c.test(t))return null;for(var i,n,s,o,u,l,f=[],p=c.lastIndex=0;i=c.exec(t);)n=i.index,n>p&&f.push({value:t.slice(p,n)}),o=i[1].charCodeAt(0),u=42===o,l=62===o,s=u||l?i[1].slice(1):i[1],f.push({tag:!0,value:s.trim(),html:h.test(i[0]),oneTime:u,partial:l}),p=n+i[0].length;return p<t.length&&f.push({value:t.slice(p)}),a.put(t,f),f},e.tokensToExp=function(t,e){return t.length>1?t.map(function(t){return s(t,e)}).join("+"):s(t[0],e,!0)};var m=/[^|]\|[^|]/},function(t,e,i){function n(t){var e=a.get(t);if(e)return e;var i=document.createDocumentFragment(),n=t.match(u),r=l.test(t);if(n||r){var s=n&&n[1],o=h[s]||h._default,c=o[0],f=o[1],d=o[2],p=document.createElement("div");for(p.innerHTML=f+t.trim()+d;c--;)p=p.lastChild;for(var v;v=p.firstChild;)i.appendChild(v)}else i.appendChild(document.createTextNode(t));return a.put(t,i),i}function r(t){var i=t.tagName;if("TEMPLATE"===i&&t.content instanceof DocumentFragment)return t.content;if("SCRIPT"===i)return n(t.textContent);for(var r,s=e.clone(t),o=document.createDocumentFragment();r=s.firstChild;)o.appendChild(r);return o}var s=i(11),o=i(52),a=new o(1e3),c=new o(1e3),h={_default:[0,"",""],legend:[1,"<fieldset>","</fieldset>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]};h.td=h.th=[3,"<table><tbody><tr>","</tr></tbody></table>"],h.option=h.optgroup=[1,'<select multiple="multiple">',"</select>"],h.thead=h.tbody=h.colgroup=h.caption=h.tfoot=[1,"<table>","</table>"],h.g=h.defs=h.symbol=h.use=h.image=h.text=h.circle=h.ellipse=h.line=h.path=h.polygon=h.polyline=h.rect=[1,'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ev="http://www.w3.org/2001/xml-events"version="1.1">',"</svg>"];var u=/<([\w:]+)/,l=/&\w+;/,f=s.inBrowser?function(){var t=document.createElement("div");return t.innerHTML="<template>1</template>",!t.cloneNode(!0).firstChild.innerHTML}():!1,d=s.inBrowser?function(){var t=document.createElement("textarea");return t.placeholder="t","t"===t.cloneNode(!0).value}():!1;e.clone=function(t){var e,i,n,r=t.cloneNode(!0);if(f&&(i=t.querySelectorAll("template"),i.length))for(n=r.querySelectorAll("template"),e=n.length;e--;)n[e].parentNode.replaceChild(i[e].cloneNode(!0),n[e]);if(d)if("TEXTAREA"===t.tagName)r.value=t.value;else if(i=t.querySelectorAll("textarea"),i.length)for(n=r.querySelectorAll("textarea"),e=n.length;e--;)n[e].value=i[e].value;return r},e.parse=function(t,i,s){var o,a;return t instanceof DocumentFragment?i?t.cloneNode(!0):t:("string"==typeof t?s||"#"!==t.charAt(0)?a=n(t):(a=c.get(t),a||(o=document.getElementById(t.slice(1)),o&&(a=r(o),c.put(t,a)))):t.nodeType&&(a=r(t)),a&&i?e.clone(a):a)}},function(t,e,i){function n(){_.raw=s.slice(p,a).trim(),void 0===_.expression?_.expression=s.slice(v,a).trim():b!==p&&r(),(0===a||_.expression)&&m.push(_)}function r(){var t,e=s.slice(b,a).trim();if(e){t={};var i=e.match(k);t.name=i[0],t.args=i.length>1?i.slice(1):null}t&&(_.filters=_.filters||[]).push(t),b=a+1}var s,o,a,c,h,u,l,f,d,p,v,m,_,b,g,y=i(11),w=i(52),$=new w(1e3),x=/^[^\{\?]+$|^'[^']*'$|^"[^"]*"$/,k=/[^\s'"]+|'[^']+'|"[^"]+"/g;e.parse=function(t){var e=$.get(t);if(e)return e;for(s=t,h=u=!1,l=f=d=p=v=0,b=0,m=[],_={},g=null,a=0,c=s.length;c>a;a++)if(o=s.charCodeAt(a),h)39===o&&(h=!h);else if(u)34===o&&(u=!u);else if(44!==o||d||l||f)if(58!==o||_.expression||_.arg)if(124===o&&124!==s.charCodeAt(a+1)&&124!==s.charCodeAt(a-1))void 0===_.expression?(b=a+1,_.expression=s.slice(v,a).trim()):r();else switch(o){case 34:u=!0;break;case 39:h=!0;break;case 40:d++;break;case 41:d--;break;case 91:f++;break;case 93:f--;break;case 123:l++;break;case 125:l--}else g=s.slice(p,a).trim(),x.test(g)&&(v=a+1,_.arg=y.stripQuotes(g)||g);else n(),_={},p=v=b=a+1;return(0===a||p!==a)&&n(),$.put(t,m),m}},function(t,e,i){function n(t,e){var i=C.length;return C[i]=e?t.replace(g,"\\n"):t,'"'+i+'"'}function r(t){var e=t.charAt(0),i=t.slice(1);return v.test(i)?t:(i=i.indexOf('"')>-1?i.replace(w,s):i,e+"scope."+i)}function s(t,e){return C[e]}function o(t,e){_.test(t),C.length=0;var i=t.replace(y,n).replace(b,"");i=(" "+i).replace(x,r).replace(w,s);var o=c(i);return o?{get:o,body:i,set:e?h(i):null}:void 0}function a(t){var e,i;return t.indexOf("[")<0?(i=t.split("."),e=l.compileGetter(i)):(i=l.parse(t),e=i.get),{get:e,set:function(t,e){l.set(t,i,e)}}}function c(t){try{return new Function("scope","return "+t+";")}catch(e){}}function h(t){try{return new Function("scope","value",t+"=value;")}catch(e){}}function u(t){t.set||(t.set=h(t.body))}var l=(i(11),i(18)),f=i(52),d=new f(1e3),p="Math,Date,this,true,false,null,undefined,Infinity,NaN,isNaN,isFinite,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,parseInt,parseFloat",v=new RegExp("^("+p.replace(/,/g,"\\b|")+"\\b)"),m="break,case,class,catch,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,in,instanceof,let,return,super,switch,throw,try,var,while,with,yield,enum,await,implements,package,proctected,static,interface,private,public",_=new RegExp("^("+m.replace(/,/g,"\\b|")+"\\b)"),b=/\s/g,g=/\n/g,y=/[\{,]\s*[\w\$_]+\s*:|('[^']*'|"[^"]*")|new |typeof |void /g,w=/"(\d+)"/g,$=/^[A-Za-z_$][\w$]*(\.[A-Za-z_$][\w$]*|\['.*?'\]|\[".*?"\]|\[\d+\])*$/,x=/[^\w$\.]([A-Za-z_$][\w$]*(\.[A-Za-z_$][\w$]*|\['.*?'\]|\[".*?"\])*)/g,k=/^(true|false)$/,C=[];e.parse=function(t,e){t=t.trim();var i=d.get(t);if(i)return e&&u(i),i;var n=$.test(t)&&!k.test(t)&&"Math."!==t.slice(0,5)?a(t):o(t,e);return d.put(t,n),n},e.pathTestRE=$},function(t,e,i){function n(){this.id=++r,this.subs=[]}var r=0,s=i(11),o=n.prototype;o.addSub=function(t){this.subs.push(t)},o.removeSub=function(t){if(this.subs.length){var e=this.subs.indexOf(t);e>-1&&this.subs.splice(e,1)}},o.notify=function(){for(var t=s.toArray(this.subs),e=0,i=t.length;i>e;e++)t[e].update()},t.exports=n},function(t,e,i){function n(t,e,i,n,s,o){this.name=t,this.el=e,this.vm=i,this.raw=n.raw,this.expression=n.expression,this.arg=n.arg,this.filters=r.resolveFilters(i,n.filters),this._host=o,this._locked=!1,this._bound=!1,this._bind(s)}var r=i(11),s=i(15),o=i(25),a=i(19),c=i(22),h=n.prototype;h._bind=function(t){if("cloak"!==this.name&&this.el&&this.el.removeAttribute&&this.el.removeAttribute(s.prefix+this.name),"function"==typeof t?this.update=t:r.extend(this,t),this._watcherExp=this.expression,this._checkDynamicLiteral(),this.bind&&this.bind(),this._watcherExp&&(this.update||this.twoWay)&&(!this.isLiteral||this._isDynamicLiteral)&&!this._checkStatement()){var e=this,i=this._update=this.update?function(t,i){e._locked||e.update(t,i)}:function(){},n=this.vm._watchers[this.raw];n&&"repeat"!==this.name?n.addCb(i):n=this.vm._watchers[this.raw]=new o(this.vm,this._watcherExp,i,{filters:this.filters,twoWay:this.twoWay,deep:this.deep}),this._watcher=n,null!=this._initValue?n.set(this._initValue):this.update&&this.update(n.value)}this._bound=!0},h._checkDynamicLiteral=function(){var t=this.expression;if(t&&this.isLiteral){var e=a.parse(t);if(e){var i=a.tokensToExp(e);this.expression=this.vm.$get(i),this._watcherExp=i,this._isDynamicLiteral=!0}}},h._checkStatement=function(){var t=this.expression;if(t&&this.acceptStatement&&!c.pathTestRE.test(t)){var e=c.parse(t).get,i=this.vm,n=function(){e.call(i,i)};return this.filters&&(n=r.applyFilters(n,this.filters.read,i)),this.update(n),!0}},h._checkParam=function(t){var e=this.el.getAttribute(t);return null!==e&&this.el.removeAttribute(t),e},h._teardown=function(){if(this._bound){this.unbind&&this.unbind();var t=this._watcher;t&&t.active&&(t.removeCb(this._update),t.active||(this.vm._watchers[this.raw]=null)),this._bound=!1,this.vm=this.el=this._watcher=null}},h.set=function(t,e){if(this.twoWay&&(e&&(this._locked=!0),this._watcher.set(t),e)){var i=this;r.nextTick(function(){i._locked=!1})}},t.exports=n},function(t,e,i){function n(t,e,i,n){this.vm=t,t._watcherList.push(this),
this.expression=e,this.cbs=[i],this.id=++u,this.active=!0,n=n||{},this.deep=!!n.deep,this.user=!!n.user,this.deps=Object.create(null),n.filters&&(this.readFilters=n.filters.read,this.writeFilters=n.filters.write);var r=c.parse(e,n.twoWay);this.getter=r.get,this.setter=r.set,this.value=this.get()}function r(t){var e,i,n;for(e in t)if(i=t[e],s.isArray(i))for(n=i.length;n--;)r(i[n]);else s.isObject(i)&&r(i)}var s=i(11),o=i(15),a=i(49),c=i(22),h=i(53),u=0,l=n.prototype;l.addDep=function(t){var e=t.id;this.newDeps[e]||(this.newDeps[e]=t,this.deps[e]||(this.deps[e]=t,t.addSub(this)))},l.get=function(){this.beforeGet();var t,e=this.vm;try{t=this.getter.call(e,e)}catch(i){o.warnExpressionErrors}return this.deep&&r(t),t=s.applyFilters(t,this.readFilters,e),this.afterGet(),t},l.set=function(t){var e=this.vm;t=s.applyFilters(t,this.writeFilters,e,this.value);try{this.setter.call(e,e,t)}catch(i){o.warnExpressionErrors}},l.beforeGet=function(){a.target=this,this.newDeps={}},l.afterGet=function(){a.target=null;for(var t in this.deps)this.newDeps[t]||this.deps[t].removeSub(this);this.deps=this.newDeps},l.update=function(){!o.async||o.debug?this.run():h.push(this)},l.run=function(){if(this.active){var t=this.get();if(t!==this.value||Array.isArray(t)||this.deep){var e=this.value;this.value=t;for(var i=this.cbs,n=0,r=i.length;r>n;n++){i[n](t,e);var s=r-i.length;s&&(n-=s,r-=s)}}}},l.addCb=function(t){this.cbs.push(t)},l.removeCb=function(t){var e=this.cbs;if(e.length>1){var i=e.indexOf(t);i>-1&&e.splice(i,1)}else t===e[0]&&this.teardown()},l.teardown=function(){if(this.active){if(!this.vm._isBeingDestroyed){var t=this.vm._watcherList,e=t.indexOf(this);e>-1&&t.splice(e,1)}for(var i in this.deps)this.deps[i].removeSub(this);this.active=!1,this.vm=this.cbs=this.value=null}},t.exports=n},function(t,e,i){function n(t,e){return e?e.toUpperCase():""}e.isReserved=function(t){var e=(t+"").charCodeAt(0);return 36===e||95===e},e.toString=function(t){return null==t?"":t.toString()},e.toNumber=function(t){return isNaN(t)||null===t||"boolean"==typeof t?t:Number(t)},e.stripQuotes=function(t){var e=t.charCodeAt(0),i=t.charCodeAt(t.length-1);return e!==i||34!==e&&39!==e?!1:t.slice(1,-1)};var r=/-(\w)/g;e.camelize=function(t){return t.replace(r,n)};var s=/(?:^|[-_\/])(\w)/g;e.classify=function(t){return t.replace(s,n)},e.bind=function(t,e){return function(){return t.apply(e,arguments)}},e.toArray=function(t,e){e=e||0;for(var i=t.length-e,n=new Array(i);i--;)n[i]=t[i+e];return n},e.extend=function(t,e){for(var i in e)t[i]=e[i];return t},e.isObject=function(t){return t&&"object"==typeof t};var o=Object.prototype.toString;e.isPlainObject=function(t){return"[object Object]"===o.call(t)},e.isArray=function(t){return Array.isArray(t)},e.define=function(t,e,i,n){Object.defineProperty(t,e,{value:i,enumerable:!!n,writable:!0,configurable:!0})},e.debounce=function(t,e){var i,n,r,s,o,a=function(){var c=Date.now()-s;e>c&&c>=0?i=setTimeout(a,e-c):(i=null,o=t.apply(r,n),i||(r=n=null))};return function(){return r=this,n=arguments,s=Date.now(),i||(i=setTimeout(a,e)),o}}},function(t,e,i){e.hasProto="__proto__"in{};var n=Object.prototype.toString,r=e.inBrowser="undefined"!=typeof window&&"[object Object]"!==n.call(window);if(e.nextTick=function(){function t(){n=!1;var t=i.slice(0);i=[];for(var e=0;e<t.length;e++)t[e]()}var e,i=[],n=!1;if("undefined"!=typeof MutationObserver){var r=1,s=new MutationObserver(t),o=document.createTextNode(r);s.observe(o,{characterData:!0}),e=function(){r=(r+1)%2,o.data=r}}else e=setTimeout;return function(r,s){var o=s?function(){r.call(s)}:r;i.push(o),n||(n=!0,e(t,0))}}(),e.isIE9=r&&navigator.userAgent.indexOf("MSIE 9.0")>0,r&&!e.isIE9){var s=void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend,o=void 0===window.onanimationend&&void 0!==window.onwebkitanimationend;e.transitionProp=s?"WebkitTransition":"transition",e.transitionEndEvent=s?"webkitTransitionEnd":"transitionend",e.animationProp=o?"WebkitAnimation":"animation",e.animationEndEvent=o?"webkitAnimationEnd":"animationend"}},function(t,e,i){var n=i(15),r="undefined"!=typeof document&&document.documentElement;e.inDoc=function(t){var e=t&&t.parentNode;return r===t||r===e||!(!e||1!==e.nodeType||!r.contains(e))},e.attr=function(t,e){e=n.prefix+e;var i=t.getAttribute(e);return null!==i&&t.removeAttribute(e),i},e.before=function(t,e){e.parentNode.insertBefore(t,e)},e.after=function(t,i){i.nextSibling?e.before(t,i.nextSibling):i.parentNode.appendChild(t)},e.remove=function(t){t.parentNode.removeChild(t)},e.prepend=function(t,i){i.firstChild?e.before(t,i.firstChild):i.appendChild(t)},e.replace=function(t,e){var i=t.parentNode;i&&i.replaceChild(e,t)},e.copyAttributes=function(t,e){if(t.hasAttributes())for(var i=t.attributes,n=0,r=i.length;r>n;n++){var s=i[n];e.setAttribute(s.name,s.value)}},e.on=function(t,e,i){t.addEventListener(e,i)},e.off=function(t,e,i){t.removeEventListener(e,i)},e.addClass=function(t,e){if(t.classList)t.classList.add(e);else{var i=" "+(t.getAttribute("class")||"")+" ";i.indexOf(" "+e+" ")<0&&t.setAttribute("class",(i+e).trim())}},e.removeClass=function(t,e){if(t.classList)t.classList.remove(e);else{for(var i=" "+(t.getAttribute("class")||"")+" ",n=" "+e+" ";i.indexOf(n)>=0;)i=i.replace(n," ");t.setAttribute("class",i.trim())}},e.extractContent=function(t,e){var i,n;if(t.hasChildNodes())for(n=e?document.createDocumentFragment():document.createElement("div");i=t.firstChild;)n.appendChild(i);return n}},function(t,e,i){i(30);e.resolveFilters=function(t,e,i){if(e){var n=i||{};return e.forEach(function(e){var i=t.$options.filters[e.name];if(i){var r,s,o=e.args;"function"==typeof i?r=i:(r=i.read,s=i.write),r&&(n.read||(n.read=[]),n.read.push(function(e){return o?r.apply(t,[e].concat(o)):r.call(t,e)})),s&&(n.write||(n.write=[]),n.write.push(function(e,i){return o?s.apply(t,[e,i].concat(o)):s.call(t,e,i)}))}}),n}},e.applyFilters=function(t,e,i,n){if(!e)return t;for(var r=0,s=e.length;s>r;r++)t=e[r].call(i,t,n);return t}},function(t,e,i){i(15)},function(t,e,i){var n=i(11);t.exports={bind:function(){this.attr=3===this.el.nodeType?"nodeValue":"textContent"},update:function(t){this.el[this.attr]=n.toString(t)}}},function(t,e,i){var n=i(11),r=i(20);t.exports={bind:function(){8===this.el.nodeType&&(this.nodes=[])},update:function(t){t=n.toString(t),this.nodes?this.swap(t):this.el.innerHTML=t},swap:function(t){for(var e=this.nodes.length;e--;)n.remove(this.nodes[e]);var i=r.parse(t,!0,!0);this.nodes=n.toArray(i.childNodes),n.before(i,this.el)}}},function(t,e,i){function n(t){t||0===t?this.el.setAttribute(this.arg,t):this.el.removeAttribute(this.arg)}function r(t){null!=t?this.el.setAttributeNS(s,this.arg,t):this.el.removeAttributeNS(s,"href")}var s="http://www.w3.org/1999/xlink",o=/^xlink:/;t.exports={priority:850,bind:function(){var t=this.arg;this.update=o.test(t)?r:n}}},function(t,e,i){var n=i(50);t.exports=function(t){var e=this.el;n.apply(e,t?1:-1,function(){e.style.display=t?"":"none"},this.vm)}},function(t,e,i){var n=i(11),r=n.addClass,s=n.removeClass;t.exports=function(t){if(this.arg){var e=t?r:s;e(this.el,this.arg)}else this.lastVal&&s(this.el,this.lastVal),t&&(r(this.el,t),this.lastVal=t)}},function(t,e,i){t.exports={isLiteral:!0,bind:function(){this.vm.$$[this.expression]=this.el},unbind:function(){delete this.vm.$$[this.expression]}}},function(t,e,i){i(11);t.exports={isLiteral:!0,bind:function(){var t=this.el.__vue__;t&&(t._refID=this.expression)}}},function(t,e,i){var n=i(15);t.exports={bind:function(){var t=this.el;this.vm.$once("hook:compiled",function(){t.removeAttribute(n.prefix+"cloak")})}}},function(t,e,i){function n(t){if(l[t])return l[t];var e=r(t);return l[t]=l[e]=e,e}function r(t){t=t.replace(h,"$1-$2").toLowerCase();var e=s.camelize(t),i=e.charAt(0).toUpperCase()+e.slice(1);if(u||(u=document.createElement("div")),e in u.style)return t;for(var n,r=o.length;r--;)if(n=a[r]+i,n in u.style)return o[r]+t}var s=i(11),o=["-webkit-","-moz-","-ms-"],a=["Webkit","Moz","ms"],c=/!important;?$/,h=/([a-z])([A-Z])/g,u=null,l={};t.exports={deep:!0,update:function(t){if(this.arg)this.setProp(this.arg,t);else if("object"==typeof t){this.cache||(this.cache={});for(var e in t)this.setProp(e,t[e]),t[e]!=this.cache[e]&&(this.cache[e]=t[e],this.setProp(e,t[e]))}else this.el.style.cssText=t},setProp:function(t,e){if(t=n(t))if(null!=e&&(e+=""),e){var i=c.test(e)?"important":"";i&&(e=e.replace(c,"").trim()),this.el.style.setProperty(t,e,i)}else this.el.style.removeProperty(t)}}},function(t,e,i){var n=i(11),r=i(20),s=i(45);t.exports={isLiteral:!0,compile:s.compile,teardown:s.teardown,getContainedComponents:s.getContainedComponents,unbind:s.unbind,bind:function(){var t=this.el;this.start=document.createComment("v-partial-start"),this.end=document.createComment("v-partial-end"),8!==t.nodeType&&(t.innerHTML=""),"TEMPLATE"===t.tagName||8===t.nodeType?n.replace(t,this.end):t.appendChild(this.end),n.before(this.start,this.end),this._isDynamicLiteral||this.insert(this.expression)},update:function(t){this.teardown(),this.insert(t)},insert:function(t){var e=this.vm.$options.partials[t];if(e){var i=this.filters&&this.filters.read;i&&(e=n.applyFilters(e,i,this.vm)),this.compile(r.parse(e,!0))}}}},function(t,e,i){t.exports={priority:1e3,isLiteral:!0,bind:function(){this._isDynamicLiteral||this.update(this.expression)},update:function(t){var e=this.el.__vue__||this.vm;this.el.__v_trans={id:t,fns:e.$options.transitions[t]}}}},function(t,e,i){var n=i(11);t.exports={acceptStatement:!0,priority:700,bind:function(){if("IFRAME"===this.el.tagName&&"load"!==this.arg){var t=this;this.iframeBind=function(){n.on(t.el.contentWindow,t.arg,t.handler)},n.on(this.el,"load",this.iframeBind)}},update:function(t){if("function"==typeof t){this.reset();var e=this.vm;this.handler=function(i){i.targetVM=e,e.$event=i;var n=t(i);return e.$event=null,n},this.iframeBind?this.iframeBind():n.on(this.el,this.arg,this.handler)}},reset:function(){var t=this.iframeBind?this.el.contentWindow:this.el;this.handler&&n.off(t,this.arg,this.handler)},unbind:function(){this.reset(),n.off(this.el,"load",this.iframeBind)}}},function(t,e,i){var n=i(11),r=i(20);t.exports={isLiteral:!0,bind:function(){if(!this.el.__vue__)if(this.ref=document.createComment("v-component"),n.replace(this.el,this.ref),this.keepAlive=null!=this._checkParam("keep-alive"),this.refID=n.attr(this.el,"ref"),this.keepAlive&&(this.cache={}),null!==this._checkParam("inline-template")&&(this.template=n.extractContent(this.el,!0)),this._isDynamicLiteral)this.readyEvent=this._checkParam("wait-for"),this.transMode=this._checkParam("transition-mode");else{this.resolveCtor(this.expression);var t=this.build();t.$before(this.ref),this.setCurrent(t)}},resolveCtor:function(t){this.ctorId=t,this.Ctor=this.vm.$options.components[t]},build:function(){if(this.keepAlive){var t=this.cache[this.ctorId];if(t)return t}var e=this.vm,i=r.clone(this.el);if(this.Ctor){var n=e.$addChild({el:i,template:this.template,_asComponent:!0,_host:this._host},this.Ctor);return this.keepAlive&&(this.cache[this.ctorId]=n),n}},unbuild:function(){var t=this.childVM;t&&!this.keepAlive&&t.$destroy(!1,!0)},remove:function(t,e){var i=this.keepAlive;t?t.$remove(function(){i||t._cleanup(),e&&e()}):e&&e()},update:function(t){if(t){this.resolveCtor(t),this.unbuild();var e=this.build(),i=this;this.readyEvent?e.$once(this.readyEvent,function(){i.swapTo(e)}):this.swapTo(e)}else this.unbuild(),this.remove(this.childVM),this.unsetCurrent()},swapTo:function(t){var e=this,i=this.childVM;switch(this.unsetCurrent(),this.setCurrent(t),e.transMode){case"in-out":t.$before(e.ref,function(){e.remove(i)});break;case"out-in":e.remove(i,function(){t.$before(e.ref)});break;default:e.remove(i),t.$before(e.ref)}},setCurrent:function(t){this.childVM=t;var e=t._refID||this.refID;e&&(this.vm.$[e]=t)},unsetCurrent:function(){var t=this.childVM;this.childVM=null;var e=t&&t._refID||this.refID;e&&(this.vm.$[e]=null)},unbind:function(){if(this.unbuild(),this.cache){for(var t in this.cache)this.cache[t].$destroy();this.cache=null}}}},function(t,e,i){function n(t,e){for(var i=(t._blockEnd||t.$el).nextSibling;!i.__vue__&&i!==e;)i=i.nextSibling;return i.__vue__}function r(t){if(this.rawValue=t,!c(t))return t;for(var e,i=Object.keys(t),n=i.length,r=new Array(n);n--;)e=i[n],r[n]={$key:e,$value:t[e]};return this.converted=!0,r}function s(t){for(var e=-1,i=new Array(t);++e<t;)i[e]=e;return i}var o=i(11),a=o.isObject,c=o.isPlainObject,h=i(19),u=i(22),l=i(20),f=i(16),d=i(17),p=i(14),v=0;t.exports={bind:function(){this.id="__v_repeat_"+ ++v,this.filters||(this.filters={});var t=o.bind(r,this);this.filters.read?this.filters.read.unshift(t):this.filters.read=[t],this.ref=document.createComment("v-repeat"),o.replace(this.el,this.ref),this.template="TEMPLATE"===this.el.tagName?l.parse(this.el,!0):this.el,this.checkIf(),this.checkRef(),this.checkComponent(),this.idKey=this._checkParam("track-by")||this._checkParam("trackby"),this.cache=Object.create(null)},checkIf:function(){null!==o.attr(this.el,"if")},checkRef:function(){var t=o.attr(this.el,"ref");this.refID=t?this.vm.$interpolate(t):null;var e=o.attr(this.el,"el");this.elId=e?this.vm.$interpolate(e):null},checkComponent:function(){var t=o.attr(this.el,"component"),e=this.vm.$options;if(t){this.asComponent=!0,null!==this._checkParam("inline-template")&&(this.inlineTempalte=o.extractContent(this.el,!0));var i=h.parse(t);if(i){var n=h.tokensToExp(i);this.ctorGetter=u.parse(n).get}else{var r=this.Ctor=e.components[t],s=p(r.options,{},{$parent:this.vm});s.template=this.inlineTempalte||s.template,s._asComponent=!0,s._parent=this.vm,this.template=d(this.template,s),this.template.__vue__=!0,this._linkFn=f(this.template,s)}}else this.Ctor=o.Vue,this.inherit=!0,this.template=d(this.template),this._linkFn=f(this.template,e)},update:function(t){t=t||[];var e=typeof t;"number"===e?t=s(t):"string"===e&&(t=o.toArray(t)),this.vms=this.diff(t,this.vms),this.refID&&(this.vm.$[this.refID]=this.vms),this.elId&&(this.vm.$$[this.elId]=this.vms.map(function(t){return t.$el}))},diff:function(t,e){var i,r,s,o,a,c=this.idKey,h=this.converted,u=this.ref,l=this.arg,f=!e,d=new Array(t.length);for(o=0,a=t.length;a>o;o++)i=t[o],r=h?i.$value:i,s=!f&&this.getVm(r),s?(s._reused=!0,s.$index=o,h&&(s.$key=i.$key),c&&(l?s[l]=r:s._setData(r))):(s=this.build(i,o,!0),s._new=!0,s._reused=!1),d[o]=s,f&&s.$before(u);if(f)return d;for(o=0,a=e.length;a>o;o++)s=e[o],s._reused||(this.uncacheVm(s),s.$destroy(!0));var p,v;for(o=d.length;o--;){if(s=d[o],p=d[o+1]){var m=p.$el;s._reused?(v=n(s,u),v!==p&&s.$before(m,null,!1)):s.$before(m)}else s._reused||s.$before(u);s._new=!1,s._reused=!1}return d},build:function(t,e,i){var n={$index:e};this.converted&&(n.$key=t.$key);var r=this.converted?t.$value:t,s=this.arg;s?(t={},t[s]=r):c(r)?t=r:(t={},n.$value=r);var o=this.Ctor||this.resolveCtor(t,n),a=this.vm.$addChild({el:l.clone(this.template),_asComponent:this.asComponent,_host:this._host,_linkFn:this._linkFn,_meta:n,data:t,inherit:this.inherit,template:this.inlineTempalte},o);a._repeat=!0,i&&this.cacheVm(r,a);var h=this;return a.$watch("$value",function(t){h.converted?h.rawValue[a.$key]=t:h.rawValue.$set(a.$index,t)}),a},resolveCtor:function(t,e){var i,n=Object.create(this.vm);for(i in t)o.define(n,i,t[i]);for(i in e)o.define(n,i,e[i]);var r=this.ctorGetter.call(n,n),s=this.vm.$options.components[r];return s},unbind:function(){if(this.refID&&(this.vm.$[this.refID]=null),this.vms)for(var t,e=this.vms.length;e--;)t=this.vms[e],this.uncacheVm(t),t.$destroy()},cacheVm:function(t,e){var i,n=this.idKey,r=this.cache;n?(i=t[n],r[i]||(r[i]=e)):a(t)?(i=this.id,t.hasOwnProperty(i)?null===t[i]&&(t[i]=e):o.define(t,this.id,e)):r[t]?r[t].push(e):r[t]=[e],e._raw=t},getVm:function(t){if(this.idKey)return this.cache[t[this.idKey]];if(a(t))return t[this.id];var e=this.cache[t];if(e){for(var i=0,n=e[i];n&&(n._reused||n._new);)n=e[++i];return n}},uncacheVm:function(t){var e=t._raw;this.idKey?this.cache[e[this.idKey]]=null:a(e)?(e[this.id]=null,t._raw=null):this.cache[e].pop()}}},function(t,e,i){function n(t){t._isAttached||t._callHook("attached")}function r(t){t._isAttached&&t._callHook("detached")}var s=i(11),o=i(16),a=i(20),c=i(50);t.exports={bind:function(){var t=this.el;t.__vue__?this.invalid=!0:(this.start=document.createComment("v-if-start"),this.end=document.createComment("v-if-end"),s.replace(t,this.end),s.before(this.start,this.end),"TEMPLATE"===t.tagName?this.template=a.parse(t,!0):(this.template=document.createDocumentFragment(),this.template.appendChild(a.clone(t))),this.linker=o(this.template,this.vm.$options,!0))},update:function(t){if(!this.invalid)if(t){if(!this.unlink){var e=a.clone(this.template);this.compile(e)}}else this.teardown()},compile:function(t){var e=this.vm;if(this.unlink=this.linker?this.linker(e,t):e.$compile(t),c.blockAppend(t,this.end,e),s.inDoc(e.$el)){var i=this.getContainedComponents();i&&i.forEach(n)}},teardown:function(){if(this.unlink){var t;s.inDoc(this.vm.$el)&&(t=this.getContainedComponents()),c.blockRemove(this.start,this.end,this.vm),t&&t.forEach(r),this.unlink(),this.unlink=null}},getContainedComponents:function(){function t(t){for(var e,r=i;e!==n;){if(e=r.nextSibling,r.contains(t.$el))return!0;r=e}return!1}var e=this.vm,i=this.start.nextSibling,n=this.end,r=e._children.length&&e._children.filter(t),s=e._transCpnts&&e._transCpnts.filter(t);return r?s?r.concat(s):r:s},unbind:function(){this.unlink&&this.unlink()}}},function(t,e,i){var n=i(11),r=i(25),s=i(22),o=/^(true|false|\s?('[^']*'|"[^"]")\s?)$/;t.exports={priority:900,bind:function(){var t=this.vm,e=t.$parent,i=this.arg||"$data",a=this.expression;if(this.el&&this.el!==t.$el);else if(e)if(o.test(a))if(this.arg){var c=s.parse(a).get();t.$set(i,c)}else;else{var h=!1,u=function(){h=!0,n.nextTick(l)},l=function(){h=!1};this.parentWatcher=new r(e,a,function(e){h||(u(),t.$set(i,e))}),t.$set(i,this.parentWatcher.value),this.childWatcher=new r(t,i,function(t){h||(u(),e.$set(a,t))})}else;},unbind:function(){this.parentWatcher&&(this.parentWatcher.teardown(),this.childWatcher.teardown())}}},function(t,e,i){i(11);t.exports={acceptStatement:!0,bind:function(){var t=this.el.__vue__;!t||this.vm!==t.$parent},update:function(t,e){if("function"==typeof t){var i=this.el.__vue__;e&&i.$off(this.arg,e),i.$on(this.arg,t)}}}},function(t,e,i){function n(t,e){if(r.isObject(t)){for(var i in t)if(n(t[i],e))return!0}else if(null!=t)return t.toString().toLowerCase().indexOf(e)>-1}var r=i(11),s=i(18);e.filterBy=function(t,e,i,o){i&&"in"!==i&&(o=i);var a=r.stripQuotes(e)||this.$get(e);return a?(a=(""+a).toLowerCase(),o=o&&(r.stripQuotes(o)||this.$get(o)),t.filter(function(t){return o?n(s.get(t,o),a):n(t,a)})):t},e.orderBy=function(t,e,i){var n=r.stripQuotes(e)||this.$get(e);if(!n)return t;var o=1;return i&&("-1"===i?o=-1:33===i.charCodeAt(0)?(i=i.slice(1),o=this.$get(i)?1:-1):o=this.$get(i)?-1:1),t.slice().sort(function(t,e){return t=r.isObject(t)?s.get(t,n):t,e=r.isObject(e)?s.get(e,n):e,t===e?0:t>e?o:-o})}},function(t,e,i){function n(t,e){t.__proto__=e}function r(t,e,i){for(var n,r=i.length;r--;)n=i[r],o.define(t,n,e[n])}function s(t,e){if(this.id=++l,this.value=t,this.active=!0,this.deps=[],o.define(t,"__ob__",this),e===f){var i=a.proto&&o.hasProto?n:r;i(t,h,u),this.observeArray(t)}else e===d&&this.walk(t)}var o=i(11),a=i(15),c=i(23),h=i(54),u=Object.getOwnPropertyNames(h);i(55);var l=0,f=0,d=1;s.target=null;var p=s.prototype;s.create=function(t){return t&&t.hasOwnProperty("__ob__")&&t.__ob__ instanceof s?t.__ob__:o.isArray(t)?new s(t,f):o.isPlainObject(t)&&!t._isVue?new s(t,d):void 0},p.walk=function(t){for(var e,i,n=Object.keys(t),r=n.length;r--;)e=n[r],i=e.charCodeAt(0),36!==i&&95!==i&&this.convert(e,t[e])},p.observe=function(t){return s.create(t)},p.observeArray=function(t){for(var e=t.length;e--;)this.observe(t[e])},p.convert=function(t,e){var i=this,n=i.observe(e),r=new c;n&&n.deps.push(r),Object.defineProperty(i.value,t,{enumerable:!0,configurable:!0,get:function(){return i.active&&s.target&&s.target.addDep(r),e},set:function(t){if(t!==e){var n=e&&e.__ob__;if(n){var s=n.deps;s.splice(s.indexOf(r),1)}e=t;var o=i.observe(t);o&&o.deps.push(r),r.notify()}}})},p.notify=function(){for(var t=this.deps,e=0,i=t.length;i>e;e++)t[e].notify()},p.addVm=function(t){(this.vms=this.vms||[]).push(t)},p.removeVm=function(t){this.vms.splice(this.vms.indexOf(t),1)},t.exports=s},function(t,e,i){var n=i(11),r=i(56),s=i(57),o="undefined"==typeof document?null:document;e.append=function(t,e,i,n){a(t,1,function(){e.appendChild(t)},i,n)},e.before=function(t,e,i,r){a(t,1,function(){n.before(t,e)},i,r)},e.remove=function(t,e,i){a(t,-1,function(){n.remove(t)},e,i)},e.removeThenAppend=function(t,e,i,n){a(t,-1,function(){e.appendChild(t)},i,n)},e.blockAppend=function(t,i,r){for(var s=n.toArray(t.childNodes),o=0,a=s.length;a>o;o++)e.before(s[o],i,r)},e.blockRemove=function(t,i,n){for(var r,s=t.nextSibling;s!==i;)r=s.nextSibling,e.remove(s,n),s=r};var a=e.apply=function(t,e,i,a,c){var h=t.__v_trans;if(!h||!a._isCompiled||a.$parent&&!a.$parent._isCompiled)return i(),void(c&&c());var u=h.fns;u?s(t,e,i,h,u,a,c):!n.transitionEndEvent||o&&o.hidden?(i(),c&&c()):r(t,e,i,h,c)}},function(t,e,i){var n=(i(11),{_default:i(58),radio:i(59),select:i(60),checkbox:i(61)});t.exports={priority:800,twoWay:!0,handlers:n,bind:function(){var t=this.filters;t&&t.read&&!t.write;var e,i=this.el,r=i.tagName;if("INPUT"===r)e=n[i.type]||n._default;else if("SELECT"===r)e=n.select;else{if("TEXTAREA"!==r)return;e=n._default}e.bind.call(this),this.update=e.update,this.unbind=e.unbind}}},function(t,e,i){function n(t){this.size=0,this.limit=t,this.head=this.tail=void 0,this._keymap={}}var r=n.prototype;r.put=function(t,e){var i={key:t,value:e};return this._keymap[t]=i,this.tail?(this.tail.newer=i,i.older=this.tail):this.head=i,this.tail=i,this.size===this.limit?this.shift():void this.size++},r.shift=function(){var t=this.head;return t&&(this.head=this.head.newer,this.head.older=void 0,t.newer=t.older=void 0,this._keymap[t.key]=void 0),t},r.get=function(t,e){var i=this._keymap[t];if(void 0!==i)return i===this.tail?e?i:i.value:(i.newer&&(i===this.head&&(this.head=i.newer),i.newer.older=i.older),i.older&&(i.older.newer=i.newer),i.newer=void 0,i.older=this.tail,this.tail&&(this.tail.newer=i),this.tail=i,e?i:i.value)},t.exports=n},function(t,e,i){function n(){c=[],h=[],u={},l=!1,f=!1}function r(){f=!0,s(c),s(h),n()}function s(t){for(var e=0;e<t.length;e++)t[e].run()}var o=i(11),a=10,c=[],h=[],u={},l=!1,f=!1;e.push=function(t){var e=t.id;if(!e||!u[e]||f){if(u[e]){if(u[e]++,u[e]>a)return}else u[e]=1;if(f&&!t.user)return void t.run();(t.user?h:c).push(t),l||(l=!0,o.nextTick(r))}}},function(t,e,i){var n=i(11),r=Array.prototype,s=Object.create(r);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(t){var e=r[t];n.define(s,t,function(){for(var i=arguments.length,n=new Array(i);i--;)n[i]=arguments[i];var r,s=e.apply(this,n),o=this.__ob__;switch(t){case"push":r=n;break;case"unshift":r=n;break;case"splice":r=n.slice(2)}return r&&o.observeArray(r),o.notify(),s})}),n.define(r,"$set",function(t,e){return t>=this.length&&(this.length=t+1),this.splice(t,1,e)[0]}),n.define(r,"$remove",function(t){return"number"!=typeof t&&(t=this.indexOf(t)),t>-1?this.splice(t,1)[0]:void 0}),t.exports=s},function(t,e,i){var n=i(11),r=Object.prototype;n.define(r,"$add",function(t,e){if(!this.hasOwnProperty(t)){var i=this.__ob__;if(!i||n.isReserved(t))return void(this[t]=e);if(i.convert(t,e),i.vms)for(var r=i.vms.length;r--;){var s=i.vms[r];s._proxy(t),s._digest()}else i.notify()}}),n.define(r,"$set",function(t,e){this.$add(t,e),this[t]=e}),n.define(r,"$delete",function(t){if(this.hasOwnProperty(t)){delete this[t];var e=this.__ob__;if(e&&!n.isReserved(t))if(e.vms)for(var i=e.vms.length;i--;){var r=e.vms[i];r._unproxy(t),r._digest()}else e.notify()}})},function(t,e,i){function n(t,e,i,n,s){f.push({el:t,dir:e,cb:s,cls:n,op:i}),d||(d=!0,a.nextTick(r))}function r(){document.documentElement.offsetHeight;f.forEach(s),f=[],d=!1}function s(t){function e(t,e){n.event=t;var r=n.callback=function(o){o.target===i&&(a.off(i,t,r),n.event=n.callback=null,e&&e(),s&&s())};a.on(i,t,r)}var i=t.el,n=i.__v_trans,r=t.cls,s=t.cb,c=t.op,u=o(i,n,r);if(t.dir>0)1===u?(h(i,r),s&&e(a.transitionEndEvent)):2===u?e(a.animationEndEvent,function(){h(i,r)}):(h(i,r),s&&s());else if(u){var l=1===u?a.transitionEndEvent:a.animationEndEvent;e(l,function(){c(),h(i,r)})}else c(),h(i,r),s&&s()}function o(t,e,i){var n=e.cache&&e.cache[i];if(n)return n;var r=t.style,s=window.getComputedStyle(t),o=r[u]||s[u];if(o&&"0s"!==o)n=1;else{var a=r[l]||s[l];a&&"0s"!==a&&(n=2)}return n&&(e.cache||(e.cache={}),e.cache[i]=n),n}var a=i(11),c=a.addClass,h=a.removeClass,u=a.transitionProp+"Duration",l=a.animationProp+"Duration",f=[],d=!1;t.exports=function(t,e,i,r,s){var o=r.id||"v",u=o+"-enter",l=o+"-leave";r.callback&&(a.off(t,r.event,r.callback),h(t,u),h(t,l),r.event=r.callback=null),e>0?(c(t,u),i(),n(t,e,null,u,s)):(c(t,l),n(t,e,i,l,s))}},function(t,e,i){t.exports=function(t,e,i,n,r,s,o){s=t.__vue__||s,n.cancel&&(n.cancel(),n.cancel=null),e>0?(r.beforeEnter&&r.beforeEnter.call(s,t),i(),r.enter?n.cancel=r.enter.call(s,t,function(){n.cancel=null,o&&o()}):o&&o()):r.leave?n.cancel=r.leave.call(s,t,function(){n.cancel=null,i(),o&&o()}):(i(),o&&o())}},function(t,e,i){var n=i(11);t.exports={bind:function(){function t(){e.set(s?n.toNumber(i.value):i.value,!0)}var e=this,i=this.el,r=null!=this._checkParam("lazy"),s=null!=this._checkParam("number"),o=parseInt(this._checkParam("debounce"),10),a=!1;this.cpLock=function(){a=!0},this.cpUnlock=function(){a=!1,t()},n.on(i,"compositionstart",this.cpLock),n.on(i,"compositionend",this.cpUnlock);var c=this.filters&&this.filters.read;this.listener=c||"range"===i.type?function(){if(!a){var r;try{r=i.value.length-i.selectionStart}catch(s){}0>r||(t(),n.nextTick(function(){var t=e._watcher.value;if(e.update(t),null!=r){var s=n.toString(t).length-r;i.setSelectionRange(s,s)}}))}}:function(){a||t()},o&&(this.listener=n.debounce(this.listener,o)),this.event=r?"change":"input",this.hasjQuery="function"==typeof jQuery,this.hasjQuery?jQuery(i).on(this.event,this.listener):n.on(i,this.event,this.listener),!r&&n.isIE9&&(this.onCut=function(){n.nextTick(e.listener)},this.onDel=function(t){(46===t.keyCode||8===t.keyCode)&&e.listener()},n.on(i,"cut",this.onCut),n.on(i,"keyup",this.onDel)),(i.hasAttribute("value")||"TEXTAREA"===i.tagName&&i.value.trim())&&(this._initValue=s?n.toNumber(i.value):i.value)},update:function(t){this.el.value=n.toString(t)},unbind:function(){var t=this.el;this.hasjQuery?jQuery(t).off(this.event,this.listener):n.off(t,this.event,this.listener),n.off(t,"compositionstart",this.cpLock),n.off(t,"compositionend",this.cpUnlock),this.onCut&&(n.off(t,"cut",this.onCut),n.off(t,"keyup",this.onDel))}}},function(t,e,i){var n=i(11);t.exports={bind:function(){var t=this,e=this.el;this.listener=function(){t.set(e.value,!0)},n.on(e,"change",this.listener),e.checked&&(this._initValue=e.value)},update:function(t){this.el.checked=t==this.el.value},unbind:function(){n.off(this.el,"change",this.listener)}}},function(t,e,i){function n(t){function e(t){u.isArray(t)&&(i.el.innerHTML="",r(i.el,t),i._watcher&&i.update(i._watcher.value))}var i=this,n=f.parse(t)[0];this.optionWatcher=new l(this.vm,n.expression,e,{deep:!0,filters:u.resolveFilters(this.vm,n.filters)}),e(this.optionWatcher.value)}function r(t,e){for(var i,n,s=0,o=e.length;o>s;s++)i=e[s],i.options?(n=document.createElement("optgroup"),n.label=i.label,r(n,i.options)):(n=document.createElement("option"),"string"==typeof i?n.text=n.value=i:(n.text=i.text,n.value=i.value)),t.appendChild(n)}function s(){for(var t,e=this.el.options,i=0,n=e.length;n>i;i++)e[i].hasAttribute("selected")&&(this.multiple?(t||(t=[])).push(e[i].value):t=e[i].value);"undefined"!=typeof t&&(this._initValue=this.number?u.toNumber(t):t)}function o(t){return Array.prototype.filter.call(t.options,a).map(c)}function a(t){return t.selected}function c(t){return t.value||t.text}function h(t,e){for(var i=t.length;i--;)if(t[i]==e)return i;return-1}var u=i(11),l=i(25),f=i(21);t.exports={bind:function(){var t=this,e=this.el,i=this._checkParam("options");i&&n.call(this,i),this.number=null!=this._checkParam("number"),this.multiple=e.hasAttribute("multiple"),this.listener=function(){var i=t.multiple?o(e):e.value;i=t.number?u.isArray(i)?i.map(u.toNumber):u.toNumber(i):i,t.set(i,!0)},u.on(e,"change",this.listener),s.call(this)},update:function(t){var e=this.el;e.selectedIndex=-1;for(var i,n=this.multiple&&u.isArray(t),r=e.options,s=r.length;s--;)i=r[s],i.selected=n?h(t,i.value)>-1:t==i.value},unbind:function(){u.off(this.el,"change",this.listener),this.optionWatcher&&this.optionWatcher.teardown()}}},function(t,e,i){var n=i(11);t.exports={bind:function(){var t=this,e=this.el;this.listener=function(){t.set(e.checked,!0)},n.on(e,"change",this.listener),e.checked&&(this._initValue=e.checked)},update:function(t){this.el.checked=!!t},unbind:function(){n.off(this.el,"change",this.listener)}}}])});
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):"object"==typeof exports?exports.Vue=e():t.Vue=e()}(this,function(){return function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return t[i].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){function i(t){this._init(t)}var r=n(12),s=r.extend;s(i,n(1)),i.options={directives:n(13),filters:n(14),transitions:{},components:{},elementDirectives:{}};var o=i.prototype;Object.defineProperty(o,"$data",{get:function(){return this._data},set:function(t){this._setData(t)}}),s(o,n(2)),s(o,n(3)),s(o,n(4)),s(o,n(5)),s(o,n(6)),s(o,n(7)),s(o,n(8)),s(o,n(9)),s(o,n(10)),s(o,n(11)),t.exports=r.Vue=i},function(t,e,n){function i(t){return new Function("return function "+s.classify(t)+" (options) { this._init(options) }")()}function r(t){c.forEach(function(e){t[e]=function(t,n){return n?void(this.options[e+"s"][t]=n):this.options[e+"s"][t]}}),t.component=function(t,e){return e?(s.isPlainObject(e)&&(e.name=t,e=s.Vue.extend(e)),void(this.options.components[t]=e)):this.options.components[t]}}var s=n(12),o=n(15);e.util=s,e.nextTick=s.nextTick,e.config=n(16),e.compiler={compile:n(17),transclude:n(18)},e.parsers={path:n(19),text:n(20),template:n(21),directive:n(22),expression:n(23)},e.cid=0;var a=1;e.extend=function(t){t=t||{};var e=this,n=i(t.name||e.options.name||"VueComponent");return n.prototype=Object.create(e.prototype),n.prototype.constructor=n,n.cid=a++,n.options=o(e.options,t),n["super"]=e,n.extend=e.extend,r(n),n},e.use=function(t){var e=s.toArray(arguments,1);return e.unshift(this),"function"==typeof t.install?t.install.apply(t,e):t.apply(null,e),this};var c=["directive","elementDirective","filter","transition"];r(e)},function(t,e,n){var i=n(15);e._init=function(t){t=t||{},this.$el=null,this.$parent=t._parent,this.$root=t._root||this,this.$={},this.$$={},this._watcherList=[],this._watchers={},this._userWatchers={},this._directives=[],this._isVue=!0,this._events={},this._eventsCount={},this._eventCancelled=!1,this._isBlock=!1,this._blockStart=this._blockEnd=null,this._isCompiled=this._isDestroyed=this._isReady=this._isAttached=this._isBeingDestroyed=!1,this._unlinkFn=null,this._children=[],this._childCtors={},this._transCpnts=[],this._host=t._host,this.$parent&&this.$parent._children.push(this),this._host&&this._host._transCpnts.push(this),this._new=!0,this._reused=!1,t=this.$options=i(this.constructor.options,t,this),this._data=t.data||{},this._initScope(),this._initEvents(),this._callHook("created"),t.el&&this.$mount(t.el)}},function(t,e,n){function i(t,e,n){if(n){var i,s,o,a;for(s in n)if(i=n[s],h.isArray(i))for(o=0,a=i.length;a>o;o++)r(t,e,s,i[o]);else r(t,e,s,i)}}function r(t,e,n,i){var r=typeof i;if("function"===r)t[e](n,i);else if("string"===r){var s=t.$options.methods,o=s&&s[i];o&&t[e](n,o)}}function s(){this._isAttached=!0,this._children.forEach(o),this._transCpnts.length&&this._transCpnts.forEach(o)}function o(t){!t._isAttached&&u(t.$el)&&t._callHook("attached")}function a(){this._isAttached=!1,this._children.forEach(c),this._transCpnts.length&&this._transCpnts.forEach(c)}function c(t){t._isAttached&&!u(t.$el)&&t._callHook("detached")}var h=n(12),u=h.inDoc;e._initEvents=function(){var t=this.$options;i(this,"$on",t.events),i(this,"$watch",t.watch)},e._initDOMHooks=function(){this.$on("hook:attached",s),this.$on("hook:detached",a)},e._callHook=function(t){var e=this.$options[t];if(e)for(var n=0,i=e.length;i>n;n++)e[n].call(this);this.$emit("hook:"+t)}},function(t,e,n){function i(){}var r=n(12),s=n(48),o=n(24);e._initScope=function(){this._initData(),this._initComputed(),this._initMethods(),this._initMeta()},e._initData=function(){var t,e,n=this._data,i=this.$options.props;if(i)for(t=i.length;t--;)e=r.camelize(i[t]),e in n||(n[e]=null);var o=Object.keys(n);for(t=o.length;t--;)e=o[t],r.isReserved(e)||this._proxy(e);s.create(n).addVm(this)},e._setData=function(t){t=t||{};var e=this._data;this._data=t;var n,i,o;for(n=Object.keys(e),o=n.length;o--;)i=n[o],r.isReserved(i)||i in t||this._unproxy(i);for(n=Object.keys(t),o=n.length;o--;)i=n[o],this.hasOwnProperty(i)||r.isReserved(i)||this._proxy(i);e.__ob__.removeVm(this),s.create(t).addVm(this),this._digest()},e._proxy=function(t){var e=this;Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return e._data[t]},set:function(n){e._data[t]=n}})},e._unproxy=function(t){delete this[t]},e._digest=function(){for(var t=this._watcherList.length;t--;)this._watcherList[t].update();var e=this._children;for(t=e.length;t--;){var n=e[t];n.$options.inherit&&n._digest()}},e._initComputed=function(){var t=this.$options.computed;if(t)for(var e in t){var n=t[e],s={enumerable:!0,configurable:!0};"function"==typeof n?(s.get=r.bind(n,this),s.set=i):(s.get=n.get?r.bind(n.get,this):i,s.set=n.set?r.bind(n.set,this):i),Object.defineProperty(this,e,s)}},e._initMethods=function(){var t=this.$options.methods;if(t)for(var e in t)this[e]=r.bind(t[e],this)},e._initMeta=function(){var t=this.$options._meta;if(t)for(var e in t)this._defineMeta(e,t[e])},e._defineMeta=function(t,e){var n=new o;Object.defineProperty(this,t,{enumerable:!0,configurable:!0,get:function(){return s.target&&s.target.addDep(n),e},set:function(t){t!==e&&(e=t,n.notify())}})}},function(t,e,n){var i=n(12),r=n(25),s=n(17),o=n(18);e._compile=function(t){var e=this.$options;if(e._linkFn)this._initElement(t),this._unlinkFn=e._linkFn(this,t);else{var n=t;t=o(t,e),this._initElement(t),this._unlinkFn=s(t,e)(this,t),e.replace&&i.replace(n,t)}return t},e._initElement=function(t){t instanceof DocumentFragment?(this._isBlock=!0,this.$el=this._blockStart=t.firstChild,this._blockEnd=t.lastChild,this._blockFragment=t):this.$el=t,this.$el.__vue__=this,this._callHook("beforeCompile")},e._bindDir=function(t,e,n,i,s){this._directives.push(new r(t,e,this,n,i,s))},e._destroy=function(t,e){if(!this._isBeingDestroyed){this._callHook("beforeDestroy"),this._isBeingDestroyed=!0;var n,i=this.$parent;i&&!i._isBeingDestroyed&&i._children.$remove(this);var r=this._host;for(r&&!r._isBeingDestroyed&&r._transCpnts.$remove(this),n=this._children.length;n--;)this._children[n].$destroy();this._unlinkFn&&this._unlinkFn(!0);var s;for(n in this._userWatchers)s=this._userWatchers[n],s&&s.teardown();this.$el&&(this.$el.__vue__=null);var o=this;t&&this.$el?this.$remove(function(){o._cleanup()}):e||this._cleanup()}},e._cleanup=function(){this._data.__ob__.removeVm(this),this._data=this._watchers=this._userWatchers=this._watcherList=this.$el=this.$parent=this.$root=this._children=this._transCpnts=this._directives=null,this._isDestroyed=!0,this._callHook("destroyed"),this.$off()}},function(t,e,n){var i=n(12);e._applyFilter=function(t,e){var n=this.$options.filters,i=n[t];return(i.read||i).apply(this,e)},e._resolveComponent=function(t,e){var n=this.$options.components,r=n[t];if(r.options)e(r);else if(r.resolved)e(r.resolved);else if(r.requested)r.pendingCallbacks.push(e);else{r.requested=!0;var s=r.pendingCallbacks=[e];r(function(t){i.isPlainObject(t)&&(t=i.Vue.extend(t)),r.resolved=t;for(var e=0,n=s.length;n>e;e++)s[e](t)})}}},function(t,e,n){var i=n(12),r=n(26),s=n(19),o=n(20),a=n(22),c=n(23),h=/[^|]\|[^|]/;e.$get=function(t){var e=c.parse(t);return e?e.get.call(this,this):void 0},e.$set=function(t,e){var n=c.parse(t,!0);n&&n.set&&n.set.call(this,this,e)},e.$add=function(t,e){this._data.$add(t,e)},e.$delete=function(t){this._data.$delete(t)},e.$watch=function(t,e,n,i){var s=this,o=n?t+"**deep**":t,a=s._userWatchers[o],c=function(t,n){e.call(s,t,n)};return a?a.addCb(c):a=s._userWatchers[o]=new r(s,t,c,{deep:n,user:!0}),i&&c(a.value),function(){a.removeCb(c),a.active||(s._userWatchers[o]=null)}},e.$eval=function(t){if(h.test(t)){var e=a.parse(t)[0];return e.filters?i.applyFilters(this.$get(e.expression),i.resolveFilters(this,e.filters).read,this):this.$get(e.expression)}return this.$get(t)},e.$interpolate=function(t){var e=o.parse(t),n=this;return e?1===e.length?n.$eval(e[0].value):e.map(function(t){return t.tag?n.$eval(t.value):t.value}).join(""):t},e.$log=function(t){var e=t?s.get(this._data,t):this._data;e&&(e=JSON.parse(JSON.stringify(e))),console.log(e)}},function(t,e,n){function i(t,e,n,i,o,a){e=s(e);var c=!h.inDoc(e),u=i===!1||c?o:a,l=!c&&!t._isAttached&&!h.inDoc(t.$el);return t._isBlock?r(t,e,u,n):u(t.$el,e,t,n),l&&t._callHook("attached"),t}function r(t,e,n,i){for(var r,s=t._blockStart,o=t._blockEnd;r!==o;)r=s.nextSibling,n(s,e,t),s=r;n(o,e,t,i)}function s(t){return"string"==typeof t?document.querySelector(t):t}function o(t,e,n,i){e.appendChild(t),i&&i()}function a(t,e,n,i){h.before(t,e),i&&i()}function c(t,e,n){h.remove(t),n&&n()}var h=n(12),u=n(50);e.$appendTo=function(t,e,n){return i(this,t,e,n,o,u.append)},e.$prependTo=function(t,e,n){return t=s(t),t.hasChildNodes()?this.$before(t.firstChild,e,n):this.$appendTo(t,e,n),this},e.$before=function(t,e,n){return i(this,t,e,n,a,u.before)},e.$after=function(t,e,n){return t=s(t),t.nextSibling?this.$before(t.nextSibling,e,n):this.$appendTo(t.parentNode,e,n),this},e.$remove=function(t,e){var n=this._isAttached&&h.inDoc(this.$el);n||(e=!1);var i,s=this,a=function(){n&&s._callHook("detached"),t&&t()};return this._isBlock&&!this._blockFragment.hasChildNodes()?(i=e===!1?o:u.removeThenAppend,r(this,this._blockFragment,i,a)):(i=e===!1?c:u.remove)(this.$el,this,a),this}},function(t,e,n){function i(t,e,n){var i=t.$parent;if(i&&n&&!s.test(e))for(;i;)i._eventsCount[e]=(i._eventsCount[e]||0)+n,i=i.$parent}var r=n(12);e.$on=function(t,e){return(this._events[t]||(this._events[t]=[])).push(e),i(this,t,1),this},e.$once=function(t,e){function n(){i.$off(t,n),e.apply(this,arguments)}var i=this;return n.fn=e,this.$on(t,n),this},e.$off=function(t,e){var n;if(!arguments.length){if(this.$parent)for(t in this._events)n=this._events[t],n&&i(this,t,-n.length);return this._events={},this}if(n=this._events[t],!n)return this;if(1===arguments.length)return i(this,t,-n.length),this._events[t]=null,this;for(var r,s=n.length;s--;)if(r=n[s],r===e||r.fn===e){i(this,t,-1),n.splice(s,1);break}return this},e.$emit=function(t){this._eventCancelled=!1;var e=this._events[t];if(e){for(var n=arguments.length-1,i=new Array(n);n--;)i[n]=arguments[n+1];n=0,e=e.length>1?r.toArray(e):e;for(var s=e.length;s>n;n++)e[n].apply(this,i)===!1&&(this._eventCancelled=!0)}return this},e.$broadcast=function(t){if(this._eventsCount[t]){for(var e=this._children,n=0,i=e.length;i>n;n++){var r=e[n];r.$emit.apply(r,arguments),r._eventCancelled||r.$broadcast.apply(r,arguments)}return this}},e.$dispatch=function(){for(var t=this.$parent;t;)t.$emit.apply(t,arguments),t=t._eventCancelled?null:t.$parent;return this};var s=/^hook:/},function(t,e,n){var i=n(12);e.$addChild=function(t,e){e=e||i.Vue,t=t||{};var n,r=this,s=void 0!==t.inherit?t.inherit:e.options.inherit;if(s){var o=r._childCtors;if(n=o[e.cid],!n){var a=e.options.name,c=a?i.classify(a):"VueComponent";n=new Function("return function "+c+" (options) {this.constructor = "+c+";this._init(options) }")(),n.options=e.options,n.prototype=this,o[e.cid]=n}}else n=e;t._parent=r,t._root=r.$root;var h=new n(t);return h}},function(t,e,n){function i(){this._isAttached=!0,this._isReady=!0,this._callHook("ready")}var r=n(12),s=n(17);e.$mount=function(t){if(!this._isCompiled){if(t){if("string"==typeof t){if(t=document.querySelector(t),!t)return}}else t=document.createElement("div");return this._compile(t),this._isCompiled=!0,this._callHook("compiled"),r.inDoc(this.$el)?(this._callHook("attached"),this._initDOMHooks(),i.call(this)):(this._initDOMHooks(),this.$once("hook:attached",i)),this}},e.$destroy=function(t,e){this._destroy(t,e)},e.$compile=function(t){return s(t,this.$options,!0)(this,t)}},function(t,e,n){var i=n(27),r=i.extend;r(e,i),r(e,n(28)),r(e,n(29)),r(e,n(30)),r(e,n(31)),e.checkComponent=function(t,e){var n=t.tagName.toLowerCase();if(e.components[n])return n;if("component"===n){var i=t.getAttribute("type");return t.removeAttribute("type"),i}}},function(t,e,n){e.text=n(32),e.html=n(33),e.attr=n(34),e.show=n(35),e["class"]=n(36),e.el=n(37),e.ref=n(38),e.cloak=n(39),e.style=n(40),e.transition=n(41),e.on=n(42),e.model=n(51),e.repeat=n(43),e["if"]=n(44),e.events=n(45),e._component=n(46),e._prop=n(47)},function(t,e,n){var i=n(12);e.json={read:function(t,e){return"string"==typeof t?t:JSON.stringify(t,null,Number(e)||2)},write:function(t){try{return JSON.parse(t)}catch(e){return t}}},e.capitalize=function(t){return t||0===t?(t=t.toString(),t.charAt(0).toUpperCase()+t.slice(1)):""},e.uppercase=function(t){return t||0===t?t.toString().toUpperCase():""},e.lowercase=function(t){return t||0===t?t.toString().toLowerCase():""};var r=/(\d{3})(?=\d)/g;e.currency=function(t,e){if(t=parseFloat(t),!isFinite(t)||!t&&0!==t)return"";e=e||"$";var n=Math.floor(Math.abs(t)).toString(),i=n.length%3,s=i>0?n.slice(0,i)+(n.length>3?",":""):"",o=Math.abs(parseInt(100*t%100,10)),a="."+(10>o?"0"+o:o);return(0>t?"-":"")+e+s+n.slice(i).replace(r,"$1,")+a},e.pluralize=function(t){var e=i.toArray(arguments,1);return e.length>1?e[t%10-1]||e[e.length-1]:e[0]+(1===t?"":"s")};var s={enter:13,tab:9,"delete":46,up:38,left:37,right:39,down:40,esc:27};e.key=function(t,e){if(t){var n=s[e];return n||(n=parseInt(e,10)),function(e){return e.keyCode===n?t.call(this,e):void 0}}},e.key.keyCodes=s,i.extend(e,n(49))},function(t,e,n){function i(t,e){var n,r,o;for(n in e)r=t[n],o=e[n],t.hasOwnProperty(n)?s.isObject(r)&&s.isObject(o)&&i(r,o):t.$add(n,o);return t}function r(t){if(t){var e;for(var n in t)e=t[n],s.isPlainObject(e)&&(e.name=n,t[n]=s.Vue.extend(e))}}var s=n(12),o=s.extend,a=Object.create(null);a.data=function(t,e,n){if(n){var r="function"==typeof e?e.call(n):e,s="function"==typeof t?t.call(n):void 0;return r?i(r,s):s}return e?"function"!=typeof e?t:t?function(){return i(e.call(this),t.call(this))}:e:t},a.el=function(t,e,n){if(n||!e||"function"==typeof e){var i=e||t;return n&&"function"==typeof i?i.call(n):i}},a.created=a.ready=a.attached=a.detached=a.beforeCompile=a.compiled=a.beforeDestroy=a.destroyed=a.props=function(t,e){return e?t?t.concat(e):s.isArray(e)?e:[e]:t},a.directives=a.filters=a.transitions=a.components=a.elementDirectives=function(t,e,n,i){var r=Object.create(n&&n.$parent?n.$parent.$options[i]:s.Vue.options[i]);if(t)for(var a,c=Object.keys(t),h=c.length;h--;)a=c[h],r[a]=t[a];return e&&o(r,e),r},a.watch=a.events=function(t,e){if(!e)return t;if(!t)return e;var n={};o(n,t);for(var i in e){var r=n[i],a=e[i];r&&!s.isArray(r)&&(r=[r]),n[i]=r?r.concat(a):[a]}return n},a.methods=a.computed=function(t,e){if(!e)return t;if(!t)return e;var n=Object.create(t);return o(n,e),n};var c=function(t,e){return void 0===e?t:e};t.exports=function h(t,e,n){function i(i){var r=a[i]||c;o[i]=r(t[i],e[i],n,i)}r(e.components);var s,o={};if(e.mixins)for(var u=0,l=e.mixins.length;l>u;u++)t=h(t,e.mixins[u],n);for(s in t)i(s);for(s in e)t.hasOwnProperty(s)||i(s);return o}},function(t,e,n){t.exports={prefix:"v-",debug:!1,silent:!1,proto:!0,interpolate:!0,async:!0,warnExpressionErrors:!0,_delimitersChanged:!0};var i=["{{","}}"];Object.defineProperty(t.exports,"delimiters",{get:function(){return i},set:function(t){i=t,this._delimitersChanged=!0}})},function(t,e,n){function i(t,e,n,i){function a(t,e){var n=t._directives.length,s=t.$parent&&t.$parent._directives.length,o=A.toArray(e.childNodes),a=i?t.$parent:t,u=i?t:void 0;c&&c(a,e,u),h&&h(a,o,u);var l=t._directives.slice(n),f=t.$parent&&t.$parent._directives.slice(s);return function(e){r(t,l,e),f&&r(t.$parent,f)}}var c=e._asComponent&&!n?s(t,e):o(t,e),h=c&&c.terminal||"SCRIPT"===t.tagName||!t.hasChildNodes()?null:l(t.childNodes,e);return i&&(a.terminal=!0),a}function r(t,e,n){for(var i=e.length;i--;)e[i]._teardown(),n||t._directives.$remove(e[i])}function s(t,e){var n,i,r,s=11===t.nodeType,o=e._containerAttrs,a=e._replacerAttrs,c=e.props;return n=c?d(t,o,c):null,s||(o&&(i=y(o,e)),a&&(r=y(a,e))),function(t,e,s){n&&n(t,null),i&&i(t.$parent,e,s),r&&r(t,e,s)}}function o(t,e){var n=t.nodeType;return 1===n&&"SCRIPT"!==t.tagName?a(t,e):3===n&&E.interpolate&&t.data.trim()?c(t,e):null}function a(t,e){if(C(t))return t.hasAttribute("__vue__wrap")&&(t=t.firstChild),i(t,e._parent.$options,!0,!0);var n,r=t.hasAttributes();if(n=v(t,e),!n&&r&&(n=_(t,e)),n||(n=m(t,e)),!n&&r&&(n=y(t,e)),"TEXTAREA"===t.tagName){var s=n;n=function(t,e){e.value=t.$interpolate(e.value),s&&s(t,e)},n.terminal=!0}return n}function c(t,e){var n=D.parse(t.data);if(!n)return null;for(var i,r,s=document.createDocumentFragment(),o=0,a=n.length;a>o;o++)r=n[o],i=r.tag?h(r,e):document.createTextNode(r.value),s.appendChild(i);return u(n,s,e)}function h(t,e){function n(n){t.type=n,t.def=e.directives[n],t.descriptor=T.parse(t.value)[0]}var i;return t.oneTime?i=document.createTextNode(t.value):t.html?(i=document.createComment("v-html"),n("html")):(i=document.createTextNode(" "),n("text")),i}function u(t,e){return function(n,i){for(var r,s,o,a=e.cloneNode(!0),c=A.toArray(a.childNodes),h=0,u=t.length;u>h;h++)r=t[h],s=r.value,r.tag&&(o=c[h],r.oneTime?(s=n.$eval(s),r.html?A.replace(o,N.parse(s,!0)):o.data=s):n._bindDir(r.type,o,r.descriptor,r.def));A.replace(i,a)}}function l(t,e){for(var n,i,r,s=[],a=0,c=t.length;c>a;a++)r=t[a],n=o(r,e),i=n&&n.terminal||"SCRIPT"===r.tagName||!r.hasChildNodes()?null:l(r.childNodes,e),s.push(n,i);return s.length?f(s):null}function f(t){return function(e,n,i){for(var r,s,o,a=0,c=0,h=t.length;h>a;c++){r=n[c],s=t[a++],o=t[a++];var u=A.toArray(r.childNodes);s&&s(e,r,i),o&&o(e,u,i)}}}function d(t,e,n){for(var i,r,s,o=[],a=n.length;a--;)if(i=n[a],/[A-Z]/.test(i),r=e[i],null!=r){s={name:i,value:r};var c=D.parse(r);c&&(t&&1===t.nodeType&&t.removeAttribute(i),e[i]=null,s.dynamic=!0,s.value=D.tokensToExp(c),s.oneTime=1===c.length&&c[0].oneTime),o.push(s)}return p(o)}function p(t){return function(e,n){for(var i,r,s=t.length;s--;)i=t[s],r=A.camelize(i.name.replace(j,"")),i.dynamic?e._bindDir("prop",n,{arg:r,expression:i.value,oneWay:i.oneTime},P):e.$set(r,i.value)}}function v(t,e){var n=t.tagName.toLowerCase(),i=e.elementDirectives[n];return i?b(t,n,"",e,i):void 0}function m(t,e){var n=A.checkComponent(t,e);if(n){var i=function(t,e,i){t._bindDir("component",e,{expression:n},S,i)};return i.terminal=!0,i}}function _(t,e){if(null!==A.attr(t,"pre"))return g;for(var n,i,r=0,s=O.length;s>r;r++)if(i=O[r],null!==(n=A.attr(t,i)))return b(t,i,n,e)}function g(){}function b(t,e,n,i,r){var s=T.parse(n)[0];r=r||i.directives[e];var o=function(t,n,i){t._bindDir(e,n,s,r,i)};return o.terminal=!0,o}function y(t,e){for(var n,i,r,s,o,a,c=A.isPlainObject(t)?$(t):t.attributes,h=c.length,u=[];h--;)n=c[h],i=n.name,r=n.value,null!==r&&(0===i.indexOf(E.prefix)?(o=i.slice(E.prefix.length),a=e.directives[o],a&&u.push({name:o,descriptors:T.parse(r),def:a})):E.interpolate&&(s=k(i,r,e),s&&u.push(s)));return u.length?(u.sort(x),w(u)):void 0}function $(t){var e=[];for(var n in t)e.push({name:n,value:t[n]});return e}function w(t){return function(e,n,i){for(var r,s,o,a=t.length;a--;)if(r=t[a],r._link)r._link(e,n);else for(o=r.descriptors.length,s=0;o>s;s++)e._bindDir(r.name,n,r.descriptors[s],r.def,i)}}function k(t,e,n){var i=D.parse(e);if(i){for(var r=n.directives.attr,s=i.length,o=!0;s--;){var a=i[s];a.tag&&!a.oneTime&&(o=!1)}return{def:r,_link:o?function(n,i){i.setAttribute(t,n.$interpolate(e))}:function(e,n){var s=D.tokensToExp(i,e),o=T.parse(t+":"+s)[0];e._bindDir("attr",n,o,r)}}}}function x(t,e){return t=t.def.priority||0,e=e.def.priority||0,t>e?1:-1}function C(t){return 1===t.nodeType&&t.hasAttribute(I)?(t.removeAttribute(I),!0):void 0}var A=n(12),E=n(16),D=n(20),T=n(22),N=n(21),P=n(47),S=n(46),O=["repeat","if"];t.exports=i;var j=/^data-/;g.terminal=!0;var I="__vue__transcluded"},function(t,e,n){function i(t,e){var n=e.template,i=l.parse(n,!0);if(i){var s=e._content||h.extractContent(t),o=i.firstChild;return e.replace?i.childNodes.length>1||1!==o.nodeType||o.hasAttribute(u.prefix+"repeat")?(r(i,s),i):(e._replacerAttrs=a(o),c(t,o),r(o,s),o):(t.appendChild(i),r(t,s),t)}}function r(t,e){function n(t){return t.parentNode===e}var i=s(t),r=i.length;if(r){for(var a,c,u,l,f;r--;)a=i[r],e?(c=a.getAttribute("select"),c?(u=e.querySelectorAll(c),u.length&&(u=[].filter.call(u,n)),a.content=u.length?u:h.toArray(a.childNodes)):f=a):a.content=h.toArray(a.childNodes);for(r=0,l=i.length;l>r;r++)a=i[r],a!==f&&o(a,a.content);f&&o(f,h.toArray(e.childNodes))}}function s(t){return h.isArray(t)?d.apply([],t.map(s)):t.querySelectorAll?h.toArray(t.querySelectorAll("content")):[]}function o(t,e){for(var n=t.parentNode,i=0,r=e.length;r>i;i++)n.insertBefore(e[i],t);n.removeChild(t)}function a(t){for(var e=t.attributes,n={},i=e.length;i--;)n[e[i].name]=e[i].value;return n}function c(t,e){for(var n,i,r=t.attributes,s=r.length;s--;)n=r[s].name,i=r[s].value,e.hasAttribute(n)?"class"===n&&(e.className=e.className+" "+i):e.setAttribute(n,i)}var h=n(12),u=n(16),l=n(21),f="__vue__transcluded";t.exports=function(t,e){if(e&&e._asComponent){e._containerAttrs=a(t);for(var n=t.childNodes.length;n--;){var r=t.childNodes[n];if(1===r.nodeType)r.setAttribute(f,"");else if(3===r.nodeType&&r.data.trim()){var s=document.createElement("span");s.textContent=r.data,s.setAttribute("__vue__wrap",""),s.setAttribute(f,""),t.replaceChild(s,r)}}}return"TEMPLATE"===t.tagName&&(t=l.parse(t)),e&&e.template&&(t=i(t,e)),t instanceof DocumentFragment&&(h.prepend(document.createComment("v-start"),t),t.appendChild(document.createComment("v-end"))),t};var d=[].concat},function(t,e,n){function i(){}function r(t){if(void 0===t)return"eof";var e=t.charCodeAt(0);switch(e){case 91:case 93:case 46:case 34:case 39:case 48:return t;case 95:case 36:return"ident";case 32:case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return e>=97&&122>=e||e>=65&&90>=e?"ident":e>=49&&57>=e?"number":"else"}function s(t){function e(){var e=t[d+1];return"inSingleQuote"===p&&"'"===e||"inDoubleQuote"===p&&'"'===e?(d++,s=e,v.append(),!0):void 0}for(var n,s,o,a,c,h,u,f=[],d=-1,p="beforePath",v={push:function(){void 0!==o&&(f.push(o),o=void 0)},append:function(){void 0===o?o=s:o+=s}};p;)if(d++,n=t[d],"\\"!==n||!e()){if(a=r(n),u=l[p],c=u[a]||u["else"]||"error","error"===c)return;if(p=c[0],h=v[c[1]]||i,s=void 0===c[2]?n:c[2],h(),"afterPath"===p)return f}}function o(t){return u.test(t)?"."+t:+t===t>>>0?"["+t+"]":'["'+t.replace(/"/g,'\\"')+'"]'}var a=n(12),c=n(52),h=new c(1e3),u=/^[$_a-zA-Z]+[\w$]*$/,l={beforePath:{ws:["beforePath"],ident:["inIdent","append"],"[":["beforeElement"],eof:["afterPath"]},inPath:{ws:["inPath"],".":["beforeIdent"],"[":["beforeElement"],eof:["afterPath"]},beforeIdent:{ws:["beforeIdent"],ident:["inIdent","append"]},inIdent:{ident:["inIdent","append"],0:["inIdent","append"],number:["inIdent","append"],ws:["inPath","push"],".":["beforeIdent","push"],"[":["beforeElement","push"],eof:["afterPath","push"]},beforeElement:{ws:["beforeElement"],0:["afterZero","append"],number:["inIndex","append"],"'":["inSingleQuote","append",""],'"':["inDoubleQuote","append",""]},afterZero:{ws:["afterElement","push"],"]":["inPath","push"]},inIndex:{0:["inIndex","append"],number:["inIndex","append"],ws:["afterElement"],"]":["inPath","push"]},inSingleQuote:{"'":["afterElement"],eof:"error","else":["inSingleQuote","append"]},inDoubleQuote:{'"':["afterElement"],eof:"error","else":["inDoubleQuote","append"]},afterElement:{ws:["afterElement"],"]":["inPath","push"]}};e.compileGetter=function(t){var e="return o"+t.map(o).join("");return new Function("o","try {"+e+"} catch (e) {}")},e.parse=function(t){var n=h.get(t);return n||(n=s(t),n&&(n.get=e.compileGetter(n),h.put(t,n))),n},e.get=function(t,n){return n=e.parse(n),n?n.get(t):void 0},e.set=function(t,n,i){if("string"==typeof n&&(n=e.parse(n)),!n||!a.isObject(t))return!1;for(var r,s,o=0,c=n.length-1;c>o;o++)r=t,s=n[o],t=t[s],a.isObject(t)||(t={},r.$add(s,t));return s=n[o],s in t?t[s]=i:t.$add(s,i),!0}},function(t,e,n){function i(t){return t.replace(v,"\\$&")}function r(){d._delimitersChanged=!1;var t=d.delimiters[0],e=d.delimiters[1];u=t.charAt(0),l=e.charAt(e.length-1);var n=i(u),r=i(l),s=i(t),o=i(e);c=new RegExp(n+"?"+s+"(.+?)"+o+r+"?","g"),h=new RegExp("^"+n+s+".*"+o+r+"$"),a=new f(1e3)}function s(t,e,n){return t.tag?e&&t.oneTime?'"'+e.$eval(t.value)+'"':o(t.value,n):'"'+t.value+'"'}function o(t,e){if(m.test(t)){var n=p.parse(t)[0];if(n.filters){t=n.expression;for(var i=0,r=n.filters.length;r>i;i++){var s=n.filters[i],o=s.args?',"'+s.args.join('","')+'"':"";t='this._applyFilter("'+s.name+'",['+t+o+"])"}return t}return"("+t+")"}return e?t:"("+t+")"}var a,c,h,u,l,f=n(52),d=n(16),p=n(22),v=/[-.*+?^${}()|[\]\/\\]/g;e.parse=function(t){d._delimitersChanged&&r();var e=a.get(t);if(e)return e;if(!c.test(t))return null;for(var n,i,s,o,u,l=[],f=c.lastIndex=0;n=c.exec(t);)i=n.index,i>f&&l.push({value:t.slice(f,i)}),o=n[1].charCodeAt(0),u=42===o,s=u?n[1].slice(1):n[1],l.push({tag:!0,value:s.trim(),html:h.test(n[0]),oneTime:u}),f=i+n[0].length;return f<t.length&&l.push({value:t.slice(f)}),a.put(t,l),l},e.tokensToExp=function(t,e){return t.length>1?t.map(function(t){return s(t,e)}).join("+"):s(t[0],e,!0)};var m=/[^|]\|[^|]/},function(t,e,n){function i(t){var e=a.get(t);if(e)return e;var n=document.createDocumentFragment(),i=t.match(u),r=l.test(t);if(i||r){var s=i&&i[1],o=h[s]||h._default,c=o[0],f=o[1],d=o[2],p=document.createElement("div");for(p.innerHTML=f+t.trim()+d;c--;)p=p.lastChild;for(var v;v=p.firstChild;)n.appendChild(v)}else n.appendChild(document.createTextNode(t));return a.put(t,n),n}function r(t){var n=t.tagName;if("TEMPLATE"===n&&t.content instanceof DocumentFragment)return t.content;if("SCRIPT"===n)return i(t.textContent);for(var r,s=e.clone(t),o=document.createDocumentFragment();r=s.firstChild;)o.appendChild(r);return o}var s=n(12),o=n(52),a=new o(1e3),c=new o(1e3),h={_default:[0,"",""],legend:[1,"<fieldset>","</fieldset>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]};h.td=h.th=[3,"<table><tbody><tr>","</tr></tbody></table>"],h.option=h.optgroup=[1,'<select multiple="multiple">',"</select>"],h.thead=h.tbody=h.colgroup=h.caption=h.tfoot=[1,"<table>","</table>"],h.g=h.defs=h.symbol=h.use=h.image=h.text=h.circle=h.ellipse=h.line=h.path=h.polygon=h.polyline=h.rect=[1,'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ev="http://www.w3.org/2001/xml-events"version="1.1">',"</svg>"];var u=/<([\w:]+)/,l=/&\w+;/,f=s.inBrowser?function(){var t=document.createElement("div");return t.innerHTML="<template>1</template>",!t.cloneNode(!0).firstChild.innerHTML}():!1,d=s.inBrowser?function(){var t=document.createElement("textarea");return t.placeholder="t","t"===t.cloneNode(!0).value}():!1;e.clone=function(t){var e,n,i,r=t.cloneNode(!0);if(f&&(n=t.querySelectorAll("template"),n.length))for(i=r.querySelectorAll("template"),e=i.length;e--;)i[e].parentNode.replaceChild(n[e].cloneNode(!0),i[e]);if(d)if("TEXTAREA"===t.tagName)r.value=t.value;else if(n=t.querySelectorAll("textarea"),n.length)for(i=r.querySelectorAll("textarea"),e=i.length;e--;)i[e].value=n[e].value;return r},e.parse=function(t,n,s){var o,a;return t instanceof DocumentFragment?n?t.cloneNode(!0):t:("string"==typeof t?s||"#"!==t.charAt(0)?a=i(t):(a=c.get(t),a||(o=document.getElementById(t.slice(1)),o&&(a=r(o),c.put(t,a)))):t.nodeType&&(a=r(t)),a&&n?e.clone(a):a)}},function(t,e,n){function i(){_.raw=s.slice(p,a).trim(),void 0===_.expression?_.expression=s.slice(v,a).trim():g!==p&&r(),(0===a||_.expression)&&m.push(_)}function r(){var t,e=s.slice(g,a).trim();if(e){t={};var n=e.match(x);t.name=n[0],t.args=n.length>1?n.slice(1):null}t&&(_.filters=_.filters||[]).push(t),g=a+1}var s,o,a,c,h,u,l,f,d,p,v,m,_,g,b,y=n(12),$=n(52),w=new $(1e3),k=/^[^\{\?]+$|^'[^']*'$|^"[^"]*"$/,x=/[^\s'"]+|'[^']+'|"[^"]+"/g;e.parse=function(t){var e=w.get(t);if(e)return e;for(s=t,h=u=!1,l=f=d=p=v=0,g=0,m=[],_={},b=null,a=0,c=s.length;c>a;a++)if(o=s.charCodeAt(a),h)39===o&&(h=!h);else if(u)34===o&&(u=!u);else if(44!==o||d||l||f)if(58!==o||_.expression||_.arg)if(124===o&&124!==s.charCodeAt(a+1)&&124!==s.charCodeAt(a-1))void 0===_.expression?(g=a+1,_.expression=s.slice(v,a).trim()):r();else switch(o){case 34:u=!0;break;case 39:h=!0;break;case 40:d++;break;case 41:d--;break;case 91:f++;break;case 93:f--;break;case 123:l++;break;case 125:l--}else b=s.slice(p,a).trim(),k.test(b)&&(v=a+1,_.arg=y.stripQuotes(b)||b);else i(),_={},p=v=g=a+1;return(0===a||p!==a)&&i(),w.put(t,m),m}},function(t,e,n){function i(t,e){var n=C.length;return C[n]=e?t.replace(b,"\\n"):t,'"'+n+'"'}function r(t){var e=t.charAt(0),n=t.slice(1);return v.test(n)?t:(n=n.indexOf('"')>-1?n.replace($,s):n,e+"scope."+n)}function s(t,e){return C[e]}function o(t,e){_.test(t),C.length=0;var n=t.replace(y,i).replace(g,"");n=(" "+n).replace(k,r).replace($,s);var o=c(n);return o?{get:o,body:n,set:e?h(n):null}:void 0}function a(t){var e,n;return t.indexOf("[")<0?(n=t.split("."),e=l.compileGetter(n)):(n=l.parse(t),e=n.get),{get:e,set:function(t,e){l.set(t,n,e)}}}function c(t){try{return new Function("scope","return "+t+";")}catch(e){}}function h(t){try{return new Function("scope","value",t+"=value;")}catch(e){}}function u(t){t.set||(t.set=h(t.body))}var l=(n(12),n(19)),f=n(52),d=new f(1e3),p="Math,Date,this,true,false,null,undefined,Infinity,NaN,isNaN,isFinite,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,parseInt,parseFloat",v=new RegExp("^("+p.replace(/,/g,"\\b|")+"\\b)"),m="break,case,class,catch,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,in,instanceof,let,return,super,switch,throw,try,var,while,with,yield,enum,await,implements,package,proctected,static,interface,private,public",_=new RegExp("^("+m.replace(/,/g,"\\b|")+"\\b)"),g=/\s/g,b=/\n/g,y=/[\{,]\s*[\w\$_]+\s*:|('[^']*'|"[^"]*")|new |typeof |void /g,$=/"(\d+)"/g,w=/^[A-Za-z_$][\w$]*(\.[A-Za-z_$][\w$]*|\['.*?'\]|\[".*?"\]|\[\d+\])*$/,k=/[^\w$\.]([A-Za-z_$][\w$]*(\.[A-Za-z_$][\w$]*|\['.*?'\]|\[".*?"\])*)/g,x=/^(true|false)$/,C=[];e.parse=function(t,n){t=t.trim();var i=d.get(t);if(i)return n&&u(i),i;var r=e.isSimplePath(t)?a(t):o(t,n);return d.put(t,r),r},e.isSimplePath=function(t){return w.test(t)&&!x.test(t)&&"Math."!==t.slice(0,5)}},function(t,e,n){function i(){this.subs=[]}var r=n(12),s=i.prototype;s.addSub=function(t){this.subs.push(t)},s.removeSub=function(t){this.subs.$remove(t)},s.notify=function(){for(var t=r.toArray(this.subs),e=0,n=t.length;n>e;e++)t[e].update()},t.exports=i},function(t,e,n){function i(t,e,n,i,s,o){this.name=t,this.el=e,this.vm=n,this.raw=i.raw,this.expression=i.expression,this.arg=i.arg,this.filters=r.resolveFilters(n,i.filters),this._descriptor=i,this._host=o,this._locked=!1,this._bound=!1,this._bind(s)}var r=n(12),s=n(16),o=n(26),a=n(20),c=n(23),h=i.prototype;h._bind=function(t){if("cloak"!==this.name&&this.el&&this.el.removeAttribute&&this.el.removeAttribute(s.prefix+this.name),"function"==typeof t?this.update=t:r.extend(this,t),this._watcherExp=this.expression,this._checkDynamicLiteral(),this.bind&&this.bind(),this._watcherExp&&(this.update||this.twoWay)&&(!this.isLiteral||this._isDynamicLiteral)&&!this._checkStatement()){var e=this,n=this._update=this.update?function(t,n){e._locked||e.update(t,n)}:function(){},i=this.vm._watchers[this.raw];i&&"repeat"!==this.name?i.addCb(n):i=this.vm._watchers[this.raw]=new o(this.vm,this._watcherExp,n,{filters:this.filters,twoWay:this.twoWay,deep:this.deep}),this._watcher=i,null!=this._initValue?i.set(this._initValue):this.update&&this.update(i.value)}this._bound=!0},h._checkDynamicLiteral=function(){var t=this.expression;if(t&&this.isLiteral){var e=a.parse(t);if(e){var n=a.tokensToExp(e);this.expression=this.vm.$get(n),this._watcherExp=n,this._isDynamicLiteral=!0}}},h._checkStatement=function(){var t=this.expression;if(t&&this.acceptStatement&&!c.isSimplePath(t)){var e=c.parse(t).get,n=this.vm,i=function(){e.call(n,n)};return this.filters&&(i=r.applyFilters(i,this.filters.read,n)),
this.update(i),!0}},h._checkParam=function(t){var e=this.el.getAttribute(t);return null!==e&&this.el.removeAttribute(t),e},h._teardown=function(){if(this._bound){this.unbind&&this.unbind();var t=this._watcher;t&&t.active&&(t.removeCb(this._update),t.active||(this.vm._watchers[this.raw]=null)),this._bound=!1,this.vm=this.el=this._watcher=null}},h.set=function(t,e){if(this.twoWay&&(e&&(this._locked=!0),this._watcher.set(t),e)){var n=this;r.nextTick(function(){n._locked=!1})}},t.exports=i},function(t,e,n){function i(t,e,n,i){this.vm=t,t._watcherList.push(this),this.expression=e,this.cbs=[n],this.id=++u,this.active=!0,i=i||{},this.deep=!!i.deep,this.user=!!i.user,this.deps=[],this.newDeps=[],i.filters&&(this.readFilters=i.filters.read,this.writeFilters=i.filters.write);var r=c.parse(e,i.twoWay);this.getter=r.get,this.setter=r.set,this.value=this.get()}function r(t){var e,n,i;for(e in t)if(n=t[e],s.isArray(n))for(i=n.length;i--;)r(n[i]);else s.isObject(n)&&r(n)}var s=n(12),o=n(16),a=n(48),c=n(23),h=n(53),u=0,l=i.prototype;l.addDep=function(t){var e=this.newDeps,n=this.deps;if(s.indexOf(e,t)<0){e.push(t);var i=s.indexOf(n,t);0>i?t.addSub(this):n[i]=null}},l.get=function(){this.beforeGet();var t,e=this.vm;try{t=this.getter.call(e,e)}catch(n){o.warnExpressionErrors}return this.deep&&r(t),t=s.applyFilters(t,this.readFilters,e),this.afterGet(),t},l.set=function(t){var e=this.vm;t=s.applyFilters(t,this.writeFilters,e,this.value);try{this.setter.call(e,e,t)}catch(n){o.warnExpressionErrors}},l.beforeGet=function(){a.target=this},l.afterGet=function(){a.target=null;for(var t=this.deps.length;t--;){var e=this.deps[t];e&&e.removeSub(this)}this.deps=this.newDeps,this.newDeps=[]},l.update=function(){!o.async||o.debug?this.run():h.push(this)},l.run=function(){if(this.active){var t=this.get();if(t!==this.value||Array.isArray(t)||this.deep){var e=this.value;this.value=t;for(var n=this.cbs,i=0,r=n.length;r>i;i++){n[i](t,e);var s=r-n.length;s&&(i-=s,r-=s)}}}},l.addCb=function(t){this.cbs.push(t)},l.removeCb=function(t){var e=this.cbs;e.length>1?e.$remove(t):t===e[0]&&this.teardown()},l.teardown=function(){if(this.active){this.vm._isBeingDestroyed||this.vm._watcherList.$remove(this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1,this.vm=this.cbs=this.value=null}},t.exports=i},function(t,e,n){function i(t,e){return e?e.toUpperCase():""}e.isReserved=function(t){var e=(t+"").charCodeAt(0);return 36===e||95===e},e.toString=function(t){return null==t?"":t.toString()},e.toNumber=function(t){return isNaN(t)||null===t||"boolean"==typeof t?t:Number(t)},e.stripQuotes=function(t){var e=t.charCodeAt(0),n=t.charCodeAt(t.length-1);return e!==n||34!==e&&39!==e?!1:t.slice(1,-1)};var r=/-(\w)/g;e.camelize=function(t){return t.replace(r,i)};var s=/(?:^|[-_\/])(\w)/g;e.classify=function(t){return t.replace(s,i)},e.bind=function(t,e){return function(n){var i=arguments.length;return i?i>1?t.apply(e,arguments):t.call(e,n):t.call(e)}},e.toArray=function(t,e){e=e||0;for(var n=t.length-e,i=new Array(n);n--;)i[n]=t[n+e];return i},e.extend=function(t,e){for(var n in e)t[n]=e[n];return t},e.isObject=function(t){return t&&"object"==typeof t};var o=Object.prototype.toString;e.isPlainObject=function(t){return"[object Object]"===o.call(t)},e.isArray=function(t){return Array.isArray(t)},e.define=function(t,e,n,i){Object.defineProperty(t,e,{value:n,enumerable:!!i,writable:!0,configurable:!0})},e.debounce=function(t,e){var n,i,r,s,o,a=function(){var c=Date.now()-s;e>c&&c>=0?n=setTimeout(a,e-c):(n=null,o=t.apply(r,i),n||(r=i=null))};return function(){return r=this,i=arguments,s=Date.now(),n||(n=setTimeout(a,e)),o}},e.indexOf=function(t,e){for(var n=0,i=t.length;i>n;n++)if(t[n]===e)return n;return-1}},function(t,e,n){e.hasProto="__proto__"in{};var i=Object.prototype.toString,r=e.inBrowser="undefined"!=typeof window&&"[object Object]"!==i.call(window);if(e.nextTick=function(){function t(){i=!1;var t=n.slice(0);n=[];for(var e=0;e<t.length;e++)t[e]()}var e,n=[],i=!1;if("undefined"!=typeof MutationObserver){var r=1,s=new MutationObserver(t),o=document.createTextNode(r);s.observe(o,{characterData:!0}),e=function(){r=(r+1)%2,o.data=r}}else e=setTimeout;return function(r,s){var o=s?function(){r.call(s)}:r;n.push(o),i||(i=!0,e(t,0))}}(),e.isIE9=r&&navigator.userAgent.indexOf("MSIE 9.0")>0,r&&!e.isIE9){var s=void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend,o=void 0===window.onanimationend&&void 0!==window.onwebkitanimationend;e.transitionProp=s?"WebkitTransition":"transition",e.transitionEndEvent=s?"webkitTransitionEnd":"transitionend",e.animationProp=o?"WebkitAnimation":"animation",e.animationEndEvent=o?"webkitAnimationEnd":"animationend"}},function(t,e,n){var i=n(16),r="undefined"!=typeof document&&document.documentElement;e.inDoc=function(t){var e=t&&t.parentNode;return r===t||r===e||!(!e||1!==e.nodeType||!r.contains(e))},e.attr=function(t,e){e=i.prefix+e;var n=t.getAttribute(e);return null!==n&&t.removeAttribute(e),n},e.before=function(t,e){e.parentNode.insertBefore(t,e)},e.after=function(t,n){n.nextSibling?e.before(t,n.nextSibling):n.parentNode.appendChild(t)},e.remove=function(t){t.parentNode.removeChild(t)},e.prepend=function(t,n){n.firstChild?e.before(t,n.firstChild):n.appendChild(t)},e.replace=function(t,e){var n=t.parentNode;n&&n.replaceChild(e,t)},e.on=function(t,e,n){t.addEventListener(e,n)},e.off=function(t,e,n){t.removeEventListener(e,n)},e.addClass=function(t,e){if(t.classList)t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}},e.removeClass=function(t,e){if(t.classList)t.classList.remove(e);else{for(var n=" "+(t.getAttribute("class")||"")+" ",i=" "+e+" ";n.indexOf(i)>=0;)n=n.replace(i," ");t.setAttribute("class",n.trim())}},e.extractContent=function(t,e){var n,i;if("TEMPLATE"===t.tagName&&t.content instanceof DocumentFragment&&(t=t.content),t.hasChildNodes())for(i=e?document.createDocumentFragment():document.createElement("div");n=t.firstChild;)i.appendChild(n);return i}},function(t,e,n){n(31);e.resolveFilters=function(t,e,n){if(e){var i=n||{};return e.forEach(function(e){var n=t.$options.filters[e.name];if(n){var r,s,o=e.args;"function"==typeof n?r=n:(r=n.read,s=n.write),r&&(i.read||(i.read=[]),i.read.push(function(e){return o?r.apply(t,[e].concat(o)):r.call(t,e)})),s&&(i.write||(i.write=[]),i.write.push(function(e,n){return o?s.apply(t,[e,n].concat(o)):s.call(t,e,n)}))}}),i}},e.applyFilters=function(t,e,n,i){if(!e)return t;for(var r=0,s=e.length;s>r;r++)t=e[r].call(n,t,i);return t}},function(t,e,n){n(16)},function(t,e,n){var i=n(12);t.exports={bind:function(){this.attr=3===this.el.nodeType?"nodeValue":"textContent"},update:function(t){this.el[this.attr]=i.toString(t)}}},function(t,e,n){var i=n(12),r=n(21);t.exports={bind:function(){8===this.el.nodeType&&(this.nodes=[])},update:function(t){t=i.toString(t),this.nodes?this.swap(t):this.el.innerHTML=t},swap:function(t){for(var e=this.nodes.length;e--;)i.remove(this.nodes[e]);var n=r.parse(t,!0,!0);this.nodes=i.toArray(n.childNodes),i.before(n,this.el)}}},function(t,e,n){function i(t){t||0===t?this.el.setAttribute(this.arg,t):this.el.removeAttribute(this.arg)}function r(t){null!=t?this.el.setAttributeNS(s,this.arg,t):this.el.removeAttributeNS(s,"href")}var s="http://www.w3.org/1999/xlink",o=/^xlink:/;t.exports={priority:850,bind:function(){var t=this.arg;this.update=o.test(t)?r:i}}},function(t,e,n){var i=n(50);t.exports=function(t){var e=this.el;i.apply(e,t?1:-1,function(){e.style.display=t?"":"none"},this.vm)}},function(t,e,n){var i=n(12),r=i.addClass,s=i.removeClass;t.exports=function(t){if(this.arg){var e=t?r:s;e(this.el,this.arg)}else this.lastVal&&s(this.el,this.lastVal),t&&(r(this.el,t),this.lastVal=t)}},function(t,e,n){t.exports={isLiteral:!0,bind:function(){this.vm.$$[this.expression]=this.el},unbind:function(){delete this.vm.$$[this.expression]}}},function(t,e,n){n(12);t.exports={isLiteral:!0,bind:function(){var t=this.el.__vue__;t&&(t._refID=this.expression)}}},function(t,e,n){var i=n(16);t.exports={bind:function(){var t=this.el;this.vm.$once("hook:compiled",function(){t.removeAttribute(i.prefix+"cloak")})}}},function(t,e,n){function i(t){if(l[t])return l[t];var e=r(t);return l[t]=l[e]=e,e}function r(t){t=t.replace(h,"$1-$2").toLowerCase();var e=s.camelize(t),n=e.charAt(0).toUpperCase()+e.slice(1);if(u||(u=document.createElement("div")),e in u.style)return t;for(var i,r=o.length;r--;)if(i=a[r]+n,i in u.style)return o[r]+t}var s=n(12),o=["-webkit-","-moz-","-ms-"],a=["Webkit","Moz","ms"],c=/!important;?$/,h=/([a-z])([A-Z])/g,u=null,l={};t.exports={deep:!0,update:function(t){if(this.arg)this.setProp(this.arg,t);else if("object"==typeof t){this.cache||(this.cache={});for(var e in t)this.setProp(e,t[e]),t[e]!=this.cache[e]&&(this.cache[e]=t[e],this.setProp(e,t[e]))}else this.el.style.cssText=t},setProp:function(t,e){if(t=i(t))if(null!=e&&(e+=""),e){var n=c.test(e)?"important":"";n&&(e=e.replace(c,"").trim()),this.el.style.setProperty(t,e,n)}else this.el.style.removeProperty(t)}}},function(t,e,n){t.exports={priority:1e3,isLiteral:!0,bind:function(){this._isDynamicLiteral||this.update(this.expression)},update:function(t){var e=this.el.__vue__||this.vm;this.el.__v_trans={id:t,fns:e.$options.transitions[t]}}}},function(t,e,n){var i=n(12);t.exports={acceptStatement:!0,priority:700,bind:function(){if("IFRAME"===this.el.tagName&&"load"!==this.arg){var t=this;this.iframeBind=function(){i.on(t.el.contentWindow,t.arg,t.handler)},i.on(this.el,"load",this.iframeBind)}},update:function(t){if("function"==typeof t){this.reset();var e=this.vm;this.handler=function(n){n.targetVM=e,e.$event=n;var i=t(n);return e.$event=null,i},this.iframeBind?this.iframeBind():i.on(this.el,this.arg,this.handler)}},reset:function(){var t=this.iframeBind?this.el.contentWindow:this.el;this.handler&&i.off(t,this.arg,this.handler)},unbind:function(){this.reset(),i.off(this.el,"load",this.iframeBind)}}},function(t,e,n){function i(t,e){for(var n=(t._blockEnd||t.$el).nextSibling;!n.__vue__&&n!==e;)n=n.nextSibling;return n.__vue__}function r(t){if(this.rawValue=t,!c(t))return t;for(var e,n=Object.keys(t),i=n.length,r=new Array(i);i--;)e=n[i],r[i]={$key:e,$value:t[e]};return this.converted=!0,r}function s(t){for(var e=-1,n=new Array(t);++e<t;)n[e]=e;return n}var o=n(12),a=o.isObject,c=o.isPlainObject,h=n(20),u=n(23),l=n(21),f=n(17),d=n(18),p=n(15),v=0,m=0,_=1,g=2,b=3;t.exports={bind:function(){this.id="__v_repeat_"+ ++v,this.filters||(this.filters={});var t=o.bind(r,this);this.filters.read?this.filters.read.unshift(t):this.filters.read=[t],this.ref=document.createComment("v-repeat"),o.replace(this.el,this.ref),this.template="TEMPLATE"===this.el.tagName?l.parse(this.el,!0):this.el,this.checkIf(),this.checkRef(),this.checkComponent(),this.idKey=this._checkParam("track-by")||this._checkParam("trackby"),this.cache=Object.create(null)},checkIf:function(){null!==o.attr(this.el,"if")},checkRef:function(){var t=o.attr(this.el,"ref");this.refID=t?this.vm.$interpolate(t):null;var e=o.attr(this.el,"el");this.elId=e?this.vm.$interpolate(e):null},checkComponent:function(){this.componentState=m;var t=this.vm.$options,e=o.checkComponent(this.el,t);if(e){this.Ctor=null,this.asComponent=!0,null!==this._checkParam("inline-template")&&(this.inlineTempalte=o.extractContent(this.el,!0));var n=h.parse(e);if(n){var i=h.tokensToExp(n);this.ctorGetter=u.parse(i).get}else this.componentId=e,this.pendingData=null}else{this.Ctor=o.Vue,this.inherit=!0,this.template=d(this.template);var r=o.extend({},t);r._asComponent=!1,this._linkFn=f(this.template,r)}},resolveComponent:function(){this.componentState=_,this.vm._resolveComponent(this.componentId,o.bind(function(t){if(this.componentState!==b){this.Ctor=t;var e=p(t.options,{},{$parent:this.vm});e.template=this.inlineTempalte||e.template,e._asComponent=!0,e._parent=this.vm,this.template=d(this.template,e),this.template.__vue__=!0,this._linkFn=f(this.template,e),this.componentState=g,this.realUpdate(this.pendingData),this.pendingData=null}},this))},resolveDynamicComponent:function(t,e){var n,i=Object.create(this.vm);for(n in t)o.define(i,n,t[n]);for(n in e)o.define(i,n,e[n]);var r=this.ctorGetter.call(i,i),s=this.vm.$options.components[r];return s.options?s:o.Vue},update:function(t){if(this.componentId){var e=this.componentState;e===m?(this.pendingData=t,this.resolveComponent()):e===_?this.pendingData=t:e===g&&this.realUpdate(t)}else this.realUpdate(t)},realUpdate:function(t){t=t||[];var e=typeof t;"number"===e?t=s(t):"string"===e&&(t=o.toArray(t)),this.vms=this.diff(t,this.vms),this.refID&&(this.vm.$[this.refID]=this.vms),this.elId&&(this.vm.$$[this.elId]=this.vms.map(function(t){return t.$el}))},diff:function(t,e){var n,r,s,o,a,c=this.idKey,h=this.converted,u=this.ref,l=this.arg,f=!e,d=new Array(t.length);for(o=0,a=t.length;a>o;o++)n=t[o],r=h?n.$value:n,s=!f&&this.getVm(r),s?(s._reused=!0,s.$index=o,h&&(s.$key=n.$key),c&&(l?s[l]=r:s._setData(r))):(s=this.build(n,o,!0),s._new=!0,s._reused=!1),d[o]=s,f&&s.$before(u);if(f)return d;for(o=0,a=e.length;a>o;o++)s=e[o],s._reused||(this.uncacheVm(s),s.$destroy(!0));var p,v;for(o=d.length;o--;){if(s=d[o],p=d[o+1]){var m=p.$el;s._reused?(v=i(s,u),v!==p&&s.$before(m,null,!1)):s.$before(m)}else s._reused||s.$before(u);s._new=!1,s._reused=!1}return d},build:function(t,e,n){var i={$index:e};this.converted&&(i.$key=t.$key);var r=this.converted?t.$value:t,s=this.arg;s?(t={},t[s]=r):c(r)?t=r:(t={},i.$value=r);var o=this.Ctor||this.resolveDynamicComponent(t,i),a=this.vm.$addChild({el:l.clone(this.template),_asComponent:this.asComponent,_host:this._host,_linkFn:this._linkFn,_meta:i,data:t,inherit:this.inherit,template:this.inlineTempalte},o);a._repeat=!0,n&&this.cacheVm(r,a);var h=this;return a.$watch("$value",function(t){h.converted?h.rawValue[a.$key]=t:h.rawValue.$set(a.$index,t)}),a},unbind:function(){if(this.componentState=b,this.refID&&(this.vm.$[this.refID]=null),this.vms)for(var t,e=this.vms.length;e--;)t=this.vms[e],this.uncacheVm(t),t.$destroy()},cacheVm:function(t,e){var n,i=this.idKey,r=this.cache;i?(n=t[i],r[n]||(r[n]=e)):a(t)?(n=this.id,t.hasOwnProperty(n)?null===t[n]&&(t[n]=e):o.define(t,n,e)):r[t]?r[t].push(e):r[t]=[e],e._raw=t},getVm:function(t){if(this.idKey)return this.cache[t[this.idKey]];if(a(t))return t[this.id];var e=this.cache[t];if(e){for(var n=0,i=e[n];i&&(i._reused||i._new);)i=e[++n];return i}},uncacheVm:function(t){var e=t._raw;this.idKey?this.cache[e[this.idKey]]=null:a(e)?(e[this.id]=null,t._raw=null):this.cache[e].pop()}}},function(t,e,n){function i(t){t._isAttached||t._callHook("attached")}function r(t){t._isAttached&&t._callHook("detached")}var s=n(12),o=n(17),a=n(21),c=n(50);t.exports={bind:function(){var t=this.el;t.__vue__?this.invalid=!0:(this.start=document.createComment("v-if-start"),this.end=document.createComment("v-if-end"),s.replace(t,this.end),s.before(this.start,this.end),"TEMPLATE"===t.tagName?this.template=a.parse(t,!0):(this.template=document.createDocumentFragment(),this.template.appendChild(a.clone(t))),this.linker=o(this.template,this.vm.$options,!0))},update:function(t){this.invalid||(t?this.unlink||this.compile():this.teardown())},compile:function(){var t=this.vm,e=a.clone(this.template);if(this.unlink=this.linker(t,e),c.blockAppend(e,this.end,t),s.inDoc(t.$el)){var n=this.getContainedComponents();n&&n.forEach(i)}},teardown:function(){if(this.unlink){var t;s.inDoc(this.vm.$el)&&(t=this.getContainedComponents()),c.blockRemove(this.start,this.end,this.vm),t&&t.forEach(r),this.unlink(),this.unlink=null}},getContainedComponents:function(){function t(t){for(var e,r=n;e!==i;){if(e=r.nextSibling,r.contains(t.$el))return!0;r=e}return!1}var e=this.vm,n=this.start.nextSibling,i=this.end,r=e._children.length&&e._children.filter(t),s=e._transCpnts&&e._transCpnts.filter(t);return r?s?r.concat(s):r:s},unbind:function(){this.unlink&&this.unlink()}}},function(t,e,n){n(12);t.exports={acceptStatement:!0,bind:function(){var t=this.el.__vue__;!t||this.vm!==t.$parent},update:function(t,e){if("function"==typeof t){var n=this.el.__vue__;e&&n.$off(this.arg,e),n.$on(this.arg,t)}}}},function(t,e,n){var i=n(12),r=n(21);t.exports={isLiteral:!0,bind:function(){this.el.__vue__||(this.ref=document.createComment("v-component"),i.replace(this.el,this.ref),this.keepAlive=null!=this._checkParam("keep-alive"),this.refID=i.attr(this.el,"ref"),this.keepAlive&&(this.cache={}),null!==this._checkParam("inline-template")&&(this.template=i.extractContent(this.el,!0)),this._pendingCb=this.ctorId=this.Ctor=null,this._isDynamicLiteral?(this.readyEvent=this._checkParam("wait-for"),this.transMode=this._checkParam("transition-mode")):this.resolveCtor(this.expression,i.bind(function(){var t=this.build();t.$before(this.ref),this.setCurrent(t)},this)))},resolveCtor:function(t,e){var n=this,i=this._pendingCb=function(r){i.invalidated||(n.ctorId=t,n.Ctor=r,e())};this.vm._resolveComponent(t,i)},invalidatePending:function(){this._pendingCb&&(this._pendingCb.invalidated=!0,this._pendingCb=null)},build:function(){if(this.keepAlive){var t=this.cache[this.ctorId];if(t)return t}var e=this.vm,n=r.clone(this.el);if(this.Ctor){var i=e.$addChild({el:n,template:this.template,_asComponent:!0,_host:this._host},this.Ctor);return this.keepAlive&&(this.cache[this.ctorId]=i),i}},unbuild:function(){var t=this.childVM;t&&!this.keepAlive&&t.$destroy(!1,!0)},remove:function(t,e){var n=this.keepAlive;t?t.$remove(function(){n||t._cleanup(),e&&e()}):e&&e()},update:function(t){this.invalidatePending(),t?this.resolveCtor(t,i.bind(function(){this.unbuild();var t=this.build(),e=this;this.readyEvent?t.$once(this.readyEvent,function(){e.swapTo(t)}):this.swapTo(t)},this)):(this.remove(this.childVM),this.unsetCurrent())},swapTo:function(t){var e=this,n=this.childVM;switch(this.unsetCurrent(),this.setCurrent(t),e.transMode){case"in-out":t.$before(e.ref,function(){e.remove(n)});break;case"out-in":e.remove(n,function(){t.$before(e.ref)});break;default:e.remove(n),t.$before(e.ref)}},setCurrent:function(t){this.childVM=t;var e=t._refID||this.refID;e&&(this.vm.$[e]=t)},unsetCurrent:function(){var t=this.childVM;this.childVM=null;var e=t&&t._refID||this.refID;e&&(this.vm.$[e]=null)},unbind:function(){if(this.invalidatePending(),this.unbuild(),this.cache){for(var t in this.cache)this.cache[t].$destroy();this.cache=null}}}},function(t,e,n){var i=n(12),r=n(26);t.exports={bind:function(){var t=this.vm,e=t.$parent,n=this.arg,s=this.expression,o=!1,a=function(){o=!0,i.nextTick(c)},c=function(){o=!1};this.parentWatcher=new r(e,s,function(e){o||(a(),t.$set(n,e))}),t.$set(n,this.parentWatcher.value),this._descriptor.oneWay||(this.childWatcher=new r(t,n,function(t){o||(a(),e.$set(s,t))}))},unbind:function(){this.parentWatcher&&this.parentWatcher.teardown(),this.childWatcher&&this.childWatcher.teardown()}}},function(t,e,n){function i(t,e){t.__proto__=e}function r(t,e,n){for(var i,r=n.length;r--;)i=n[r],o.define(t,i,e[i])}function s(t,e){if(this.id=++l,this.value=t,this.active=!0,this.deps=[],o.define(t,"__ob__",this),e===f){var n=a.proto&&o.hasProto?i:r;n(t,h,u),this.observeArray(t)}else e===d&&this.walk(t)}var o=n(12),a=n(16),c=n(24),h=n(54),u=Object.getOwnPropertyNames(h);n(55);var l=0,f=0,d=1;s.target=null;var p=s.prototype;s.create=function(t){return t&&t.hasOwnProperty("__ob__")&&t.__ob__ instanceof s?t.__ob__:o.isArray(t)?new s(t,f):o.isPlainObject(t)&&!t._isVue?new s(t,d):void 0},p.walk=function(t){for(var e,n,i=Object.keys(t),r=i.length;r--;)e=i[r],n=e.charCodeAt(0),36!==n&&95!==n&&this.convert(e,t[e])},p.observe=function(t){return s.create(t)},p.observeArray=function(t){for(var e=t.length;e--;)this.observe(t[e])},p.convert=function(t,e){var n=this,i=n.observe(e),r=new c;i&&i.deps.push(r),Object.defineProperty(n.value,t,{enumerable:!0,configurable:!0,get:function(){return n.active&&s.target&&s.target.addDep(r),e},set:function(t){if(t!==e){var i=e&&e.__ob__;i&&i.deps.$remove(r),e=t;var s=n.observe(t);s&&s.deps.push(r),r.notify()}}})},p.notify=function(){for(var t=this.deps,e=0,n=t.length;n>e;e++)t[e].notify()},p.addVm=function(t){(this.vms=this.vms||[]).push(t)},p.removeVm=function(t){this.vms.$remove(t)},t.exports=s},function(t,e,n){function i(t,e){if(r.isObject(t)){for(var n in t)if(i(t[n],e))return!0}else if(null!=t)return t.toString().toLowerCase().indexOf(e)>-1}var r=n(12),s=n(19);e.filterBy=function(t,e,n,o){n&&"in"!==n&&(o=n);var a=r.stripQuotes(e)||this.$get(e);return a?(a=(""+a).toLowerCase(),o=o&&(r.stripQuotes(o)||this.$get(o)),t.filter(function(t){return o?i(s.get(t,o),a):i(t,a)})):t},e.orderBy=function(t,e,n){var i=r.stripQuotes(e)||this.$get(e);if(!i)return t;var o=1;return n&&("-1"===n?o=-1:33===n.charCodeAt(0)?(n=n.slice(1),o=this.$get(n)?1:-1):o=this.$get(n)?-1:1),t.slice().sort(function(t,e){return"$key"!==i&&"$value"!==i&&(t&&"$value"in t&&(t=t.$value),e&&"$value"in e&&(e=e.$value)),t=r.isObject(t)?s.get(t,i):t,e=r.isObject(e)?s.get(e,i):e,t===e?0:t>e?o:-o})}},function(t,e,n){var i=n(12),r=n(56),s=n(57),o="undefined"==typeof document?null:document;e.append=function(t,e,n,i){a(t,1,function(){e.appendChild(t)},n,i)},e.before=function(t,e,n,r){a(t,1,function(){i.before(t,e)},n,r)},e.remove=function(t,e,n){a(t,-1,function(){i.remove(t)},e,n)},e.removeThenAppend=function(t,e,n,i){a(t,-1,function(){e.appendChild(t)},n,i)},e.blockAppend=function(t,n,r){for(var s=i.toArray(t.childNodes),o=0,a=s.length;a>o;o++)e.before(s[o],n,r)},e.blockRemove=function(t,n,i){for(var r,s=t.nextSibling;s!==n;)r=s.nextSibling,e.remove(s,i),s=r};var a=e.apply=function(t,e,n,a,c){var h=t.__v_trans;if(!h||!a._isCompiled||a.$parent&&!a.$parent._isCompiled)return n(),void(c&&c());var u=h.fns;u?s(t,e,n,h,u,a,c):!i.transitionEndEvent||o&&o.hidden?(n(),c&&c()):r(t,e,n,h,c)}},function(t,e,n){var i=(n(12),{_default:n(58),radio:n(59),select:n(60),checkbox:n(61)});t.exports={priority:800,twoWay:!0,handlers:i,bind:function(){var t=this.filters;t&&t.read&&!t.write;var e,n=this.el,r=n.tagName;if("INPUT"===r)e=i[n.type]||i._default;else if("SELECT"===r)e=i.select;else{if("TEXTAREA"!==r)return;e=i._default}e.bind.call(this),this.update=e.update,this.unbind=e.unbind}}},function(t,e,n){function i(t){this.size=0,this.limit=t,this.head=this.tail=void 0,this._keymap={}}var r=i.prototype;r.put=function(t,e){var n={key:t,value:e};return this._keymap[t]=n,this.tail?(this.tail.newer=n,n.older=this.tail):this.head=n,this.tail=n,this.size===this.limit?this.shift():void this.size++},r.shift=function(){var t=this.head;return t&&(this.head=this.head.newer,this.head.older=void 0,t.newer=t.older=void 0,this._keymap[t.key]=void 0),t},r.get=function(t,e){var n=this._keymap[t];if(void 0!==n)return n===this.tail?e?n:n.value:(n.newer&&(n===this.head&&(this.head=n.newer),n.newer.older=n.older),n.older&&(n.older.newer=n.newer),n.newer=void 0,n.older=this.tail,this.tail&&(this.tail.newer=n),this.tail=n,e?n:n.value)},t.exports=i},function(t,e,n){function i(){c=[],h=[],u={},l=!1,f=!1}function r(){f=!0,s(c),s(h),i()}function s(t){for(var e=0;e<t.length;e++)t[e].run()}var o=n(12),a=10,c=[],h=[],u={},l=!1,f=!1;e.push=function(t){var e=t.id;if(!e||!u[e]||f){if(u[e]){if(u[e]++,u[e]>a)return}else u[e]=1;if(f&&!t.user)return void t.run();(t.user?h:c).push(t),l||(l=!0,o.nextTick(r))}}},function(t,e,n){var i=n(12),r=Array.prototype,s=Object.create(r);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(t){var e=r[t];i.define(s,t,function(){for(var n=arguments.length,i=new Array(n);n--;)i[n]=arguments[n];var r,s=e.apply(this,i),o=this.__ob__;switch(t){case"push":r=i;break;case"unshift":r=i;break;case"splice":r=i.slice(2)}return r&&o.observeArray(r),o.notify(),s})}),i.define(r,"$set",function(t,e){return t>=this.length&&(this.length=t+1),this.splice(t,1,e)[0]}),i.define(r,"$remove",function(t){this.length&&("number"!=typeof t&&(t=i.indexOf(this,t)),t>-1&&this.splice(t,1))}),t.exports=s},function(t,e,n){var i=n(12),r=Object.prototype;i.define(r,"$add",function(t,e){if(!this.hasOwnProperty(t)){var n=this.__ob__;if(!n||i.isReserved(t))return void(this[t]=e);if(n.convert(t,e),n.vms)for(var r=n.vms.length;r--;){var s=n.vms[r];s._proxy(t),s._digest()}else n.notify()}}),i.define(r,"$set",function(t,e){this.$add(t,e),this[t]=e}),i.define(r,"$delete",function(t){if(this.hasOwnProperty(t)){delete this[t];var e=this.__ob__;if(e&&!i.isReserved(t))if(e.vms)for(var n=e.vms.length;n--;){var r=e.vms[n];r._unproxy(t),r._digest()}else e.notify()}})},function(t,e,n){function i(t,e,n,i,s){f.push({el:t,dir:e,cb:s,cls:i,op:n}),d||(d=!0,a.nextTick(r))}function r(){document.documentElement.offsetHeight;f.forEach(s),f=[],d=!1}function s(t){function e(t,e){i.event=t;var r=i.callback=function(o){o.target===n&&(a.off(n,t,r),i.event=i.callback=null,e&&e(),s&&s())};a.on(n,t,r)}var n=t.el,i=n.__v_trans,r=t.cls,s=t.cb,c=t.op,u=o(n,i,r);if(t.dir>0)1===u?(h(n,r),s&&e(a.transitionEndEvent)):2===u?e(a.animationEndEvent,function(){h(n,r)}):(h(n,r),s&&s());else if(u){var l=1===u?a.transitionEndEvent:a.animationEndEvent;e(l,function(){c(),h(n,r)})}else c(),h(n,r),s&&s()}function o(t,e,n){var i=e.cache&&e.cache[n];if(i)return i;var r=t.style,s=window.getComputedStyle(t),o=r[u]||s[u];if(o&&"0s"!==o)i=1;else{var a=r[l]||s[l];a&&"0s"!==a&&(i=2)}return i&&(e.cache||(e.cache={}),e.cache[n]=i),i}var a=n(12),c=a.addClass,h=a.removeClass,u=a.transitionProp+"Duration",l=a.animationProp+"Duration",f=[],d=!1;t.exports=function(t,e,n,r,s){var o=r.id||"v",u=o+"-enter",l=o+"-leave";r.callback&&(a.off(t,r.event,r.callback),h(t,u),h(t,l),r.event=r.callback=null),e>0?(c(t,u),n(),i(t,e,null,u,s)):(c(t,l),i(t,e,n,l,s))}},function(t,e,n){t.exports=function(t,e,n,i,r,s,o){s=t.__vue__||s,i.cancel&&(i.cancel(),i.cancel=null),e>0?(r.beforeEnter&&r.beforeEnter.call(s,t),n(),r.enter?i.cancel=r.enter.call(s,t,function(){i.cancel=null,o&&o()}):o&&o()):r.leave?i.cancel=r.leave.call(s,t,function(){i.cancel=null,n(),o&&o()}):(n(),o&&o())}},function(t,e,n){var i=n(12);t.exports={bind:function(){function t(){e.set(s?i.toNumber(n.value):n.value,!0)}var e=this,n=this.el,r=null!=this._checkParam("lazy"),s=null!=this._checkParam("number"),o=parseInt(this._checkParam("debounce"),10),a=!1;this.cpLock=function(){a=!0},this.cpUnlock=function(){a=!1,t()},i.on(n,"compositionstart",this.cpLock),i.on(n,"compositionend",this.cpUnlock);var c=this.filters&&this.filters.read;this.listener=c||"range"===n.type?function(){if(!a){var r;try{r=n.value.length-n.selectionStart}catch(s){}0>r||(t(),i.nextTick(function(){var t=e._watcher.value;if(e.update(t),null!=r){var s=i.toString(t).length-r;n.setSelectionRange(s,s)}}))}}:function(){a||t()},o&&(this.listener=i.debounce(this.listener,o)),this.event=r?"change":"input",this.hasjQuery="function"==typeof jQuery,this.hasjQuery?jQuery(n).on(this.event,this.listener):i.on(n,this.event,this.listener),!r&&i.isIE9&&(this.onCut=function(){i.nextTick(e.listener)},this.onDel=function(t){(46===t.keyCode||8===t.keyCode)&&e.listener()},i.on(n,"cut",this.onCut),i.on(n,"keyup",this.onDel)),(n.hasAttribute("value")||"TEXTAREA"===n.tagName&&n.value.trim())&&(this._initValue=s?i.toNumber(n.value):n.value)},update:function(t){this.el.value=i.toString(t)},unbind:function(){var t=this.el;this.hasjQuery?jQuery(t).off(this.event,this.listener):i.off(t,this.event,this.listener),i.off(t,"compositionstart",this.cpLock),i.off(t,"compositionend",this.cpUnlock),this.onCut&&(i.off(t,"cut",this.onCut),i.off(t,"keyup",this.onDel))}}},function(t,e,n){var i=n(12);t.exports={bind:function(){var t=this,e=this.el;this.listener=function(){t.set(e.value,!0)},i.on(e,"change",this.listener),e.checked&&(this._initValue=e.value)},update:function(t){this.el.checked=t==this.el.value},unbind:function(){i.off(this.el,"change",this.listener)}}},function(t,e,n){function i(t){function e(t){u.isArray(t)&&(n.el.innerHTML="",r(n.el,t),n._watcher&&n.update(n._watcher.value))}var n=this,i=f.parse(t)[0];this.optionWatcher=new l(this.vm,i.expression,e,{deep:!0,filters:u.resolveFilters(this.vm,i.filters)}),e(this.optionWatcher.value)}function r(t,e){for(var n,i,s=0,o=e.length;o>s;s++)n=e[s],n.options?(i=document.createElement("optgroup"),i.label=n.label,r(i,n.options)):(i=document.createElement("option"),"string"==typeof n?i.text=i.value=n:(i.text=n.text,i.value=n.value)),t.appendChild(i)}function s(){for(var t,e=this.el.options,n=0,i=e.length;i>n;n++)e[n].hasAttribute("selected")&&(this.multiple?(t||(t=[])).push(e[n].value):t=e[n].value);"undefined"!=typeof t&&(this._initValue=this.number?u.toNumber(t):t)}function o(t){return Array.prototype.filter.call(t.options,a).map(c)}function a(t){return t.selected}function c(t){return t.value||t.text}function h(t,e){for(var n=t.length;n--;)if(t[n]==e)return n;return-1}var u=n(12),l=n(26),f=n(22);t.exports={bind:function(){var t=this,e=this.el,n=this._checkParam("options");n&&i.call(this,n),this.number=null!=this._checkParam("number"),this.multiple=e.hasAttribute("multiple"),this.listener=function(){var n=t.multiple?o(e):e.value;n=t.number?u.isArray(n)?n.map(u.toNumber):u.toNumber(n):n,t.set(n,!0)},u.on(e,"change",this.listener),s.call(this)},update:function(t){var e=this.el;e.selectedIndex=-1;for(var n,i=this.multiple&&u.isArray(t),r=e.options,s=r.length;s--;)n=r[s],n.selected=i?h(t,n.value)>-1:t==n.value},unbind:function(){u.off(this.el,"change",this.listener),this.optionWatcher&&this.optionWatcher.teardown()}}},function(t,e,n){var i=n(12);t.exports={bind:function(){var t=this,e=this.el;this.listener=function(){t.set(e.checked,!0)},i.on(e,"change",this.listener),e.checked&&(this._initValue=e.checked)},update:function(t){this.el.checked=!!t},unbind:function(){i.off(this.el,"change",this.listener)}}}])});
{
"name": "vue",
"version": "0.11.10",
"version": "0.12.0-beta1",
"author": "Evan You <yyx990803@gmail.com>",

@@ -20,3 +20,4 @@ "license": "MIT",

"scripts": {
"test": "grunt ci"
"test": "grunt ci",
"dev": "webpack --watch --config build/webpack-dev-config.js & webpack --watch --config build/webpack-test-config.js"
},

@@ -26,3 +27,2 @@ "devDependencies": {

"grunt-contrib-jshint": "^0.10.0",
"grunt-contrib-watch": "^0.6.1",
"grunt-karma": "^0.8.3",

@@ -29,0 +29,0 @@ "grunt-karma-coveralls": "^2.5.3",

@@ -19,5 +19,3 @@ var _ = require('../util')

if (res) {
try {
return res.get.call(this, this)
} catch (e) {}
return res.get.call(this, this)
}

@@ -24,0 +22,0 @@ }

@@ -106,4 +106,4 @@ var _ = require('../util')

'directive',
'elementDirective',
'filter',
'partial',
'transition'

@@ -110,0 +110,0 @@ ]

@@ -7,2 +7,12 @@ var _ = require('../util')

// internal directives
var propDef = require('../directives/prop')
var componentDef = require('../directives/component')
// terminal directives
var terminalDirectives = [
'repeat',
'if'
]
module.exports = compile

@@ -24,14 +34,5 @@

function compile (el, options, partial, transcluded) {
var isBlock = el.nodeType === 11
// link function for param attributes.
var params = options.paramAttributes
var paramsLinkFn = params && !partial && !transcluded && !isBlock
? compileParamAttributes(el, params, options)
: null
// link function for the node itself.
// if this is a block instance, we return a link function
// for the attributes found on the container, if any.
// options._containerAttrs are collected during transclusion.
var nodeLinkFn = isBlock
? compileBlockContainer(options._containerAttrs, params, options)
var nodeLinkFn = options._asComponent && !partial
? compileRoot(el, options)
: compileNode(el, options)

@@ -57,8 +58,8 @@ // link function for the childNodes

function compositeLinkFn (vm, el) {
// save original directive count before linking
// so we can capture the directives created during a
// partial compilation.
var originalDirCount = vm._directives.length
var parentOriginalDirCount =
vm.$parent && vm.$parent._directives.length
if (paramsLinkFn) {
paramsLinkFn(vm, el)
}
// cache childNodes before linking parent, fix #657

@@ -75,29 +76,18 @@ var childNodes = _.toArray(el.childNodes)

var selfDirs = vm._directives.slice(originalDirCount)
var parentDirs = vm.$parent &&
vm.$parent._directives.slice(parentOriginalDirCount)
/**
* If this is a partial compile, the linker function
* returns an unlink function that tearsdown all
* directives instances generated during the partial
* linking.
* The linker function returns an unlink function that
* tearsdown all directives instances generated during
* the process.
*
* @param {Boolean} destroying
*/
if (partial && !transcluded) {
var selfDirs = vm._directives.slice(originalDirCount)
var parentDirs = vm.$parent &&
vm.$parent._directives.slice(parentOriginalDirCount)
var teardownDirs = function (vm, dirs) {
var i = dirs.length
while (i--) {
dirs[i]._teardown()
}
i = vm._directives.indexOf(dirs[0])
vm._directives.splice(i, dirs.length)
return function unlink (destroying) {
teardownDirs(vm, selfDirs, destroying)
if (parentDirs) {
teardownDirs(vm.$parent, parentDirs)
}
return function unlink () {
teardownDirs(vm, selfDirs)
if (parentDirs) {
teardownDirs(vm.$parent, parentDirs)
}
}
}

@@ -116,9 +106,32 @@ }

/**
* Compile the attributes found on a "block container" -
* i.e. the container node in the parent tempate of a block
* instance. We are only concerned with v-with and
* paramAttributes here.
* Teardown a subset of directives on a vm.
*
* @param {Object} attrs - a map of attr name/value pairs
* @param {Array} params - param attributes list
* @param {Vue} vm
* @param {Array} dirs
* @param {Boolean} destroying
*/
function teardownDirs (vm, dirs, destroying) {
var i = dirs.length
while (i--) {
dirs[i]._teardown()
if (!destroying) {
vm._directives.$remove(dirs[i])
}
}
}
/**
* Compile the root element of a component. There are
* 3 types of things to process here:
*
* 1. props on parent container (child scope)
* 2. other attrs on parent container (parent scope)
* 3. attrs on the component template root node, if
* replace:true (child scope)
*
* Also, if this is a block instance, we only need to
* compile 1 & 2 here.
*
* @param {Element} el
* @param {Object} options

@@ -128,21 +141,28 @@ * @return {Function}

function compileBlockContainer (attrs, params, options) {
if (!attrs) return null
var paramsLinkFn = params
? compileParamAttributes(attrs, params, options)
function compileRoot (el, options) {
var isBlock = el.nodeType === 11 // DocumentFragment
var containerAttrs = options._containerAttrs
var replacerAttrs = options._replacerAttrs
var props = options.props
var propsLinkFn, parentLinkFn, replacerLinkFn
// 1. props
propsLinkFn = props
? compileProps(el, containerAttrs, props)
: null
var withVal = attrs[config.prefix + 'with']
var withLinkFn = null
if (withVal) {
var descriptor = dirParser.parse(withVal)[0]
var def = options.directives['with']
withLinkFn = function (vm, el) {
vm._bindDir('with', el, descriptor, def)
if (!isBlock) {
// 2. container attributes
if (containerAttrs) {
parentLinkFn = compileDirectives(containerAttrs, options)
}
if (replacerAttrs) {
// 3. replacer attributes
replacerLinkFn = compileDirectives(replacerAttrs, options)
}
}
return function blockContainerLinkFn (vm) {
// explicitly passing null to the linkers
// since v-with doesn't need a real element
if (paramsLinkFn) paramsLinkFn(vm, null)
if (withLinkFn) withLinkFn(vm, null)
return function rootLinkFn (vm, el, host) {
// explicitly passing null to props
// linkers because they don't need a real element
if (propsLinkFn) propsLinkFn(vm, null)
if (parentLinkFn) parentLinkFn(vm.$parent, el, host)
if (replacerLinkFn) replacerLinkFn(vm, el, host)
}

@@ -187,24 +207,18 @@ }

}
var linkFn, tag, component
// check custom element component, but only on non-root
if (!el.__vue__) {
tag = el.tagName.toLowerCase()
component =
tag.indexOf('-') > 0 &&
options.components[tag]
if (component) {
el.setAttribute(config.prefix + 'component', tag)
}
}
if (component || el.hasAttributes()) {
// check terminal direcitves
var linkFn
var hasAttrs = el.hasAttributes()
// check element directives
linkFn = checkElementDirectives(el, options)
// check terminal direcitves (repeat & if)
if (!linkFn && hasAttrs) {
linkFn = checkTerminalDirectives(el, options)
// if not terminal, build normal link function
if (!linkFn) {
var dirs = collectDirectives(el, options)
linkFn = dirs.length
? makeNodeLinkFn(dirs)
: null
}
}
// check component
if (!linkFn) {
linkFn = checkComponent(el, options)
}
// normal directives
if (!linkFn && hasAttrs) {
linkFn = compileDirectives(el, options)
}
// if the element is a textarea, we need to interpolate

@@ -224,35 +238,2 @@ // its content on initial render.

/**
* Build a link function for all directives on a single node.
*
* @param {Array} directives
* @return {Function} directivesLinkFn
*/
function makeNodeLinkFn (directives) {
return function nodeLinkFn (vm, el, host) {
// reverse apply because it's sorted low to high
var i = directives.length
var dir, j, k, target
while (i--) {
dir = directives[i]
// a directive can be transcluded if it's written
// on a component's container in its parent tempalte.
target = dir.transcluded
? vm.$parent
: vm
if (dir._link) {
// custom link fn
dir._link(target, el)
} else {
k = dir.descriptors.length
for (j = 0; j < k; j++) {
target._bindDir(dir.name, el,
dir.descriptors[j], dir.def, host)
}
}
}
}
}
/**
* Compile a textNode and return a nodeLinkFn.

@@ -298,5 +279,2 @@ *

setTokenType('html')
} else if (token.partial) {
el = document.createComment('v-partial')
setTokenType('partial')
} else {

@@ -407,29 +385,29 @@ // IE will clean up empty textNodes during

* Compile param attributes on a root element and return
* a paramAttributes link function.
* a props link function.
*
* @param {Element|Object} el
* @param {Array} attrs
* @param {Object} options
* @return {Function} paramsLinkFn
* @param {Element|DocumentFragment} el
* @param {Object} attrs
* @param {Array} propNames
* @return {Function} propsLinkFn
*/
function compileParamAttributes (el, attrs, options) {
var params = []
var isEl = el.nodeType
var i = attrs.length
var name, value, param
function compileProps (el, attrs, propNames) {
var props = []
var i = propNames.length
var name, value, prop
while (i--) {
name = attrs[i]
name = propNames[i]
if (/[A-Z]/.test(name)) {
_.warn(
'You seem to be using camelCase for a paramAttribute, ' +
'You seem to be using camelCase for a component prop, ' +
'but HTML doesn\'t differentiate between upper and ' +
'lower case. You should use hyphen-delimited ' +
'attribute names. For more info see ' +
'http://vuejs.org/api/options.html#paramAttributes'
'http://vuejs.org/api/options.html#props'
)
}
value = isEl ? el.getAttribute(name) : el[name]
if (value !== null) {
param = {
value = attrs[name]
/* jshint eqeqeq:false */
if (value != null) {
prop = {
name: name,

@@ -440,28 +418,21 @@ value: value

if (tokens) {
if (isEl) el.removeAttribute(name)
if (tokens.length > 1) {
_.warn(
'Invalid param attribute binding: "' +
name + '="' + value + '"' +
'\nDon\'t mix binding tags with plain text ' +
'in param attribute bindings.'
)
continue
} else {
param.dynamic = true
param.value = tokens[0].value
if (el && el.nodeType === 1) {
el.removeAttribute(name)
}
attrs[name] = null
prop.dynamic = true
prop.value = textParser.tokensToExp(tokens)
prop.oneTime = tokens.length === 1 && tokens[0].oneTime
}
params.push(param)
props.push(prop)
}
}
return makeParamsLinkFn(params, options)
return makePropsLinkFn(props)
}
/**
* Build a function that applies param attributes to a vm.
* Build a function that applies props to a vm.
*
* @param {Array} params
* @param {Object} options
* @return {Function} paramsLinkFn
* @param {Array} props
* @return {Function} propsLinkFn
*/

@@ -471,25 +442,21 @@

function makeParamsLinkFn (params, options) {
var def = options.directives['with']
return function paramsLinkFn (vm, el) {
var i = params.length
var param, path
function makePropsLinkFn (props) {
return function propsLinkFn (vm, el) {
var i = props.length
var prop, path
while (i--) {
param = params[i]
// params could contain dashes, which will be
prop = props[i]
// props could contain dashes, which will be
// interpreted as minus calculations by the parser
// so we need to wrap the path here
path = _.camelize(param.name.replace(dataAttrRE, ''))
if (param.dynamic) {
// dynamic param attribtues are bound as v-with.
// we can directly duck the descriptor here beacuse
// param attributes cannot use expressions or
// filters.
vm._bindDir('with', el, {
path = _.camelize(prop.name.replace(dataAttrRE, ''))
if (prop.dynamic) {
vm._bindDir('prop', el, {
arg: path,
expression: param.value
}, def)
expression: prop.value,
oneWay: prop.oneTime
}, propDef)
} else {
// just set once
vm.$set(path, param.value)
vm.$set(path, prop.value)
}

@@ -501,2 +468,40 @@ }

/**
* Check for element directives (custom elements that should
* be resovled as terminal directives).
*
* @param {Element} el
* @param {Object} options
*/
function checkElementDirectives (el, options) {
var tag = el.tagName.toLowerCase()
var def = options.elementDirectives[tag]
if (def) {
return makeTerminalNodeLinkFn(el, tag, '', options, def)
}
}
/**
* Check if an element is a component. If yes, return
* a component link function.
*
* @param {Element} el
* @param {Object} options
* @return {Function|undefined}
*/
function checkComponent (el, options) {
var componentId = _.checkComponent(el, options)
if (componentId) {
var componentLinkFn = function (vm, el, host) {
vm._bindDir('component', el, {
expression: componentId
}, componentDef, host)
}
componentLinkFn.terminal = true
return componentLinkFn
}
}
/**
* Check an element for terminal directives in fixed order.

@@ -510,11 +515,2 @@ * If it finds one, return a terminal link function.

var terminalDirectives = [
'repeat',
'if',
'component'
]
function skip () {}
skip.terminal = true
function checkTerminalDirectives (el, options) {

@@ -526,5 +522,5 @@ if (_.attr(el, 'pre') !== null) {

/* jshint boss: true */
for (var i = 0; i < 3; i++) {
for (var i = 0, l = terminalDirectives.length; i < l; i++) {
dirName = terminalDirectives[i]
if (value = _.attr(el, dirName)) {
if ((value = _.attr(el, dirName)) !== null) {
return makeTerminalNodeLinkFn(el, dirName, value, options)

@@ -535,2 +531,5 @@ }

function skip () {}
skip.terminal = true
/**

@@ -546,8 +545,9 @@ * Build a node link function for a terminal directive.

* @param {Object} options
* @param {Object} [def]
* @return {Function} terminalLinkFn
*/
function makeTerminalNodeLinkFn (el, dirName, value, options) {
function makeTerminalNodeLinkFn (el, dirName, value, options, def) {
var descriptor = dirParser.parse(value)[0]
var def = options.directives[dirName]
def = def || options.directives[dirName]
var fn = function terminalNodeLinkFn (vm, el, host) {

@@ -561,22 +561,25 @@ vm._bindDir(dirName, el, descriptor, def, host)

/**
* Collect the directives on an element.
* Compile the directives on an element and return a linker.
*
* @param {Element} el
* @param {Element|Object} elOrAttrs
* - could be an object of already-extracted
* container attributes.
* @param {Object} options
* @return {Array}
* @return {Function}
*/
function collectDirectives (el, options) {
var attrs = _.toArray(el.attributes)
function compileDirectives (elOrAttrs, options) {
var attrs = _.isPlainObject(elOrAttrs)
? mapToList(elOrAttrs)
: elOrAttrs.attributes
var i = attrs.length
var dirs = []
var attr, attrName, dir, dirName, dirDef, transcluded
var attr, name, value, dir, dirName, dirDef
while (i--) {
attr = attrs[i]
attrName = attr.name
transcluded =
options._transcludedAttrs &&
options._transcludedAttrs[attrName]
if (attrName.indexOf(config.prefix) === 0) {
dirName = attrName.slice(config.prefix.length)
name = attr.name
value = attr.value
if (value === null) continue
if (name.indexOf(config.prefix) === 0) {
dirName = name.slice(config.prefix.length)
dirDef = options.directives[dirName]

@@ -587,12 +590,9 @@ _.assertAsset(dirDef, 'directive', dirName)

name: dirName,
descriptors: dirParser.parse(attr.value),
def: dirDef,
transcluded: transcluded
descriptors: dirParser.parse(value),
def: dirDef
})
}
} else if (config.interpolate) {
dir = collectAttrDirective(el, attrName, attr.value,
options)
dir = collectAttrDirective(name, value, options)
if (dir) {
dir.transcluded = transcluded
dirs.push(dir)

@@ -603,11 +603,58 @@ }

// sort by priority, LOW to HIGH
dirs.sort(directiveComparator)
return dirs
if (dirs.length) {
dirs.sort(directiveComparator)
return makeNodeLinkFn(dirs)
}
}
/**
* Convert a map (Object) of attributes to an Array.
*
* @param {Object} map
* @return {Array}
*/
function mapToList (map) {
var list = []
for (var key in map) {
list.push({
name: key,
value: map[key]
})
}
return list
}
/**
* Build a link function for all directives on a single node.
*
* @param {Array} directives
* @return {Function} directivesLinkFn
*/
function makeNodeLinkFn (directives) {
return function nodeLinkFn (vm, el, host) {
// reverse apply because it's sorted low to high
var i = directives.length
var dir, j, k
while (i--) {
dir = directives[i]
if (dir._link) {
// custom link fn
dir._link(vm, el)
} else {
k = dir.descriptors.length
for (j = 0; j < k; j++) {
vm._bindDir(dir.name, el,
dir.descriptors[j], dir.def, host)
}
}
}
}
}
/**
* Check an attribute for potential dynamic bindings,
* and return a directive object.
*
* @param {Element} el
* @param {String} name

@@ -619,3 +666,3 @@ * @param {String} value

function collectAttrDirective (el, name, value, options) {
function collectAttrDirective (name, value, options) {
var tokens = textParser.parse(value)

@@ -622,0 +669,0 @@ if (tokens) {

@@ -20,5 +20,8 @@ var _ = require('../util')

if (options && options._asComponent) {
// mutating the options object here assuming the same
// object will be used for compile right after this
options._transcludedAttrs = extractAttrs(el.attributes)
// extract container attributes to pass them down
// to compiler, because they need to be compiled in
// parent scope. we are mutating the options object here
// assuming the same object will be used for compile
// right after this.
options._containerAttrs = extractAttrs(el)
// Mark content nodes and attrs so that the compiler

@@ -74,22 +77,17 @@ // knows they should be compiled in parent scope.

var rawContent = options._content || _.extractContent(el)
var replacer = frag.firstChild
if (options.replace) {
if (frag.childNodes.length > 1) {
// this is a block instance which has no root node.
// however, the container in the parent template
// (which is replaced here) may contain v-with and
// paramAttributes that still need to be compiled
// for the child. we store all the container
// attributes on the options object and pass it down
// to the compiler.
var containerAttrs = options._containerAttrs = {}
var i = el.attributes.length
while (i--) {
var attr = el.attributes[i]
containerAttrs[attr.name] = attr.value
}
if (
frag.childNodes.length > 1 ||
replacer.nodeType !== 1 ||
// when root node has v-repeat, the instance ends up
// having multiple top-level nodes, thus becoming a
// block instance. (#835)
replacer.hasAttribute(config.prefix + 'repeat')
) {
transcludeContent(frag, rawContent)
return frag
} else {
var replacer = frag.firstChild
_.copyAttributes(el, replacer)
options._replacerAttrs = extractAttrs(replacer)
mergeAttrs(el, replacer)
transcludeContent(replacer, rawContent)

@@ -199,19 +197,39 @@ return replacer

* Helper to extract a component container's attribute names
* into a map, and filtering out `v-with` in the process.
* The resulting map will be used in compiler/compile to
* into a map. The resulting map will be used in compiler to
* determine whether an attribute is transcluded.
*
* @param {NameNodeMap} attrs
* @param {Element} el
*/
function extractAttrs (attrs) {
if (!attrs) return null
function extractAttrs (el) {
var attrs = el.attributes
var res = {}
var vwith = config.prefix + 'with'
var i = attrs.length
while (i--) {
var name = attrs[i].name
if (name !== vwith) res[name] = true
res[attrs[i].name] = attrs[i].value
}
return res
}
/**
* Merge the attributes of two elements, and make sure
* the class names are merged properly.
*
* @param {Element} from
* @param {Element} to
*/
function mergeAttrs (from, to) {
var attrs = from.attributes
var i = attrs.length
var name, value
while (i--) {
name = attrs[i].name
value = attrs[i].value
if (!to.hasAttribute(name)) {
to.setAttribute(name, value)
} else if (name === 'class') {
to.className = to.className + ' ' + value
}
}
}

@@ -36,2 +36,3 @@ var _ = require('./util')

// private
this._descriptor = descriptor
this._host = host

@@ -145,3 +146,3 @@ this._locked = false

expression && this.acceptStatement &&
!expParser.pathTestRE.test(expression)
!expParser.isSimplePath(expression)
) {

@@ -148,0 +149,0 @@ var fn = expParser.parse(expression).get

@@ -39,8 +39,13 @@ var _ = require('../util')

}
// component resolution related state
this._pendingCb =
this.ctorId =
this.Ctor = null
// if static, build right now.
if (!this._isDynamicLiteral) {
this.resolveCtor(this.expression)
var child = this.build()
child.$before(this.ref)
this.setCurrent(child)
this.resolveCtor(this.expression, _.bind(function () {
var child = this.build()
child.$before(this.ref)
this.setCurrent(child)
}, this))
} else {

@@ -64,9 +69,28 @@ // check dynamic component params

resolveCtor: function (id) {
this.ctorId = id
this.Ctor = this.vm.$options.components[id]
_.assertAsset(this.Ctor, 'component', id)
resolveCtor: function (id, cb) {
var self = this
var pendingCb = this._pendingCb = function (ctor) {
if (!pendingCb.invalidated) {
self.ctorId = id
self.Ctor = ctor
cb()
}
}
this.vm._resolveComponent(id, pendingCb)
},
/**
* When the component changes or unbinds before an async
* constructor is resolved, we need to invalidate its
* pending callback.
*/
invalidatePending: function () {
if (this._pendingCb) {
this._pendingCb.invalidated = true
this._pendingCb = null
}
},
/**
* Instantiate/insert a new child vm.

@@ -143,19 +167,20 @@ * If keep alive and has cached instance, insert that

update: function (value) {
this.invalidatePending()
if (!value) {
// just destroy and remove current
this.unbuild()
// just remove current
this.remove(this.childVM)
this.unsetCurrent()
} else {
this.resolveCtor(value)
this.unbuild()
var newComponent = this.build()
var self = this
if (this.readyEvent) {
newComponent.$once(this.readyEvent, function () {
self.swapTo(newComponent)
})
} else {
this.swapTo(newComponent)
}
this.resolveCtor(value, _.bind(function () {
this.unbuild()
var newComponent = this.build()
var self = this
if (this.readyEvent) {
newComponent.$once(this.readyEvent, function () {
self.swapTo(newComponent)
})
} else {
this.swapTo(newComponent)
}
}, this))
}

@@ -223,2 +248,3 @@ },

unbind: function () {
this.invalidatePending()
this.unbuild()

@@ -225,0 +251,0 @@ // destroy all keep-alive cached instances

@@ -42,4 +42,3 @@ var _ = require('../util')

if (!this.unlink) {
var frag = templateParser.clone(this.template)
this.compile(frag)
this.compile()
}

@@ -51,10 +50,8 @@ } else {

// NOTE: this function is shared in v-partial
compile: function (frag) {
compile: function () {
var vm = this.vm
var frag = templateParser.clone(this.template)
// the linker is not guaranteed to be present because
// this function might get called by v-partial
this.unlink = this.linker
? this.linker(vm, frag)
: vm.$compile(frag)
this.unlink = this.linker(vm, frag)
transition.blockAppend(frag, this.end, vm)

@@ -69,3 +66,2 @@ // call attached for all the child components created

// NOTE: this function is shared in v-partial
teardown: function () {

@@ -84,3 +80,2 @@ if (!this.unlink) return

// NOTE: this function is shared in v-partial
getContainedComponents: function () {

@@ -117,3 +112,2 @@ var vm = this.vm

// NOTE: this function is shared in v-partial
unbind: function () {

@@ -120,0 +114,0 @@ if (this.unlink) this.unlink()

@@ -11,3 +11,2 @@ // manipulation directives

exports.style = require('./style')
exports.partial = require('./partial')
exports.transition = require('./transition')

@@ -19,4 +18,3 @@

// child vm directives
exports.component = require('./component')
// logic control directives
exports.repeat = require('./repeat')

@@ -26,3 +24,7 @@ exports['if'] = require('./if')

// child vm communication directives
exports['with'] = require('./with')
exports.events = require('./events')
exports.events = require('./events')
// internal directives that should not be used directly
// but we still want to expose them for advanced usage.
exports._component = require('./component')
exports._prop = require('./prop')

@@ -48,3 +48,3 @@ var _ = require('../../util')

} else {
_.warn("v-model doesn't support element type: " + tag)
_.warn('v-model does not support element type: ' + tag)
return

@@ -51,0 +51,0 @@ }

@@ -12,2 +12,8 @@ var _ = require('../util')

// async component resolution states
var UNRESOLVED = 0
var PENDING = 1
var RESOLVED = 2
var ABORTED = 3
module.exports = {

@@ -89,4 +95,5 @@

checkComponent: function () {
var id = _.attr(this.el, 'component')
this.componentState = UNRESOLVED
var options = this.vm.$options
var id = _.checkComponent(this.el, options)
if (!id) {

@@ -100,4 +107,7 @@ // default constructor

this.template = transclude(this.template)
this._linkFn = compile(this.template, options)
var copy = _.extend({}, options)
copy._asComponent = false
this._linkFn = compile(this.template, copy)
} else {
this.Ctor = null
this.asComponent = true

@@ -110,21 +120,10 @@ // check inline-template

var tokens = textParser.parse(id)
if (!tokens) { // static component
var Ctor = this.Ctor = options.components[id]
_.assertAsset(Ctor, 'component', id)
var merged = mergeOptions(Ctor.options, {}, {
$parent: this.vm
})
merged.template = this.inlineTempalte || merged.template
merged._asComponent = true
merged._parent = this.vm
this.template = transclude(this.template, merged)
// Important: mark the template as a root node so that
// custom element components don't get compiled twice.
// fixes #822
this.template.__vue__ = true
this._linkFn = compile(this.template, merged)
} else {
// to be resolved later
if (tokens) {
// dynamic component to be resolved later
var ctorExp = textParser.tokensToExp(tokens)
this.ctorGetter = expParser.parse(ctorExp).get
} else {
// static
this.componentId = id
this.pendingData = null
}

@@ -134,5 +133,68 @@ }

resolveComponent: function () {
this.componentState = PENDING
this.vm._resolveComponent(this.componentId, _.bind(function (Ctor) {
if (this.componentState === ABORTED) {
return
}
this.Ctor = Ctor
var merged = mergeOptions(Ctor.options, {}, {
$parent: this.vm
})
merged.template = this.inlineTempalte || merged.template
merged._asComponent = true
merged._parent = this.vm
this.template = transclude(this.template, merged)
// Important: mark the template as a root node so that
// custom element components don't get compiled twice.
// fixes #822
this.template.__vue__ = true
this._linkFn = compile(this.template, merged)
this.componentState = RESOLVED
this.realUpdate(this.pendingData)
this.pendingData = null
}, this))
},
/**
* Resolve a dynamic component to use for an instance.
* The tricky part here is that there could be dynamic
* components depending on instance data.
*
* @param {Object} data
* @param {Object} meta
* @return {Function}
*/
resolveDynamicComponent: function (data, meta) {
// create a temporary context object and copy data
// and meta properties onto it.
// use _.define to avoid accidentally overwriting scope
// properties.
var context = Object.create(this.vm)
var key
for (key in data) {
_.define(context, key, data[key])
}
for (key in meta) {
_.define(context, key, meta[key])
}
var id = this.ctorGetter.call(context, context)
var Ctor = this.vm.$options.components[id]
_.assertAsset(Ctor, 'component', id)
if (!Ctor.options) {
_.warn(
'Async resolution is not supported for v-repeat ' +
'+ dynamic component. (component: ' + id + ')'
)
return _.Vue
}
return Ctor
},
/**
* Update.
* This is called whenever the Array mutates.
* This is called whenever the Array mutates. If we have
* a component, we might need to wait for it to resolve
* asynchronously.
*

@@ -143,2 +205,25 @@ * @param {Array|Number|String} data

update: function (data) {
if (this.componentId) {
var state = this.componentState
if (state === UNRESOLVED) {
this.pendingData = data
// once resolved, it will call realUpdate
this.resolveComponent()
} else if (state === PENDING) {
this.pendingData = data
} else if (state === RESOLVED) {
this.realUpdate(data)
}
} else {
this.realUpdate(data)
}
},
/**
* The real update that actually modifies the DOM.
*
* @param {Array|Number|String} data
*/
realUpdate: function (data) {
data = data || []

@@ -299,3 +384,3 @@ var type = typeof data

// resolve constructor
var Ctor = this.Ctor || this.resolveCtor(data, meta)
var Ctor = this.Ctor || this.resolveDynamicComponent(data, meta)
var vm = this.vm.$addChild({

@@ -332,31 +417,2 @@ el: templateParser.clone(this.template),

/**
* Resolve a contructor to use for an instance.
* The tricky part here is that there could be dynamic
* components depending on instance data.
*
* @param {Object} data
* @param {Object} meta
* @return {Function}
*/
resolveCtor: function (data, meta) {
// create a temporary context object and copy data
// and meta properties onto it.
// use _.define to avoid accidentally overwriting scope
// properties.
var context = Object.create(this.vm)
var key
for (key in data) {
_.define(context, key, data[key])
}
for (key in meta) {
_.define(context, key, meta[key])
}
var id = this.ctorGetter.call(context, context)
var Ctor = this.vm.$options.components[id]
_.assertAsset(Ctor, 'component', id)
return Ctor
},
/**
* Unbind, teardown everything

@@ -366,2 +422,3 @@ */

unbind: function () {
this.componentState = ABORTED
if (this.refID) {

@@ -416,3 +473,3 @@ this.vm.$[this.refID] = null

} else {
_.define(data, this.id, vm)
_.define(data, id, vm)
}

@@ -419,0 +476,0 @@ } else {

@@ -64,2 +64,6 @@ var _ = require('../util')

return arr.slice().sort(function (a, b) {
if (key !== '$key' && key !== '$value') {
if (a && '$value' in a) a = a.$value
if (b && '$value' in b) b = b.$value
}
a = _.isObject(a) ? Path.get(a, key) : a

@@ -66,0 +70,0 @@ b = _.isObject(b) ? Path.get(b, key) : b

@@ -24,3 +24,3 @@ var _ = require('../util')

this._initElement(el)
options._linkFn(this, el)
this._unlinkFn = options._linkFn(this, el)
} else {

@@ -34,3 +34,3 @@ // transclude and init element

// compile and link the rest
compile(el, options)(this, el)
this._unlinkFn = compile(el, options)(this, el)
// finally replace original

@@ -100,4 +100,3 @@ if (options.replace) {

if (parent && !parent._isBeingDestroyed) {
i = parent._children.indexOf(this)
parent._children.splice(i, 1)
parent._children.$remove(this)
}

@@ -107,4 +106,3 @@ // same for transclusion host.

if (host && !host._isBeingDestroyed) {
i = host._transCpnts.indexOf(this)
host._transCpnts.splice(i, 1)
host._transCpnts.$remove(this)
}

@@ -117,7 +115,7 @@ // destroy all children.

// teardown all directives. this also tearsdown all
// directive-owned watchers. intentionally check for
// directives array length on every loop since directives
// that manages partial compilation can splice ones out
for (i = 0; i < this._directives.length; i++) {
this._directives[i]._teardown()
// directive-owned watchers.
if (this._unlinkFn) {
// passing destroying: true to avoid searching and
// splicing the directives
this._unlinkFn(true)
}

@@ -124,0 +122,0 @@ // teardown all user watchers.

@@ -47,2 +47,3 @@ var mergeOptions = require('../util/merge-option')

this._isBeingDestroyed = false
this._unlinkFn = null

@@ -53,6 +54,2 @@ // children

// transclusion unlink functions
this._containerUnlinkFn =
this._contentUnlinkFn = null
// transcluded components that belong to the parent.

@@ -59,0 +56,0 @@ // need to keep track of them so that we can call

@@ -27,5 +27,16 @@ var _ = require('../util')

var data = this._data
var i, key
// make sure all props properties are observed
var props = this.$options.props
if (props) {
i = props.length
while (i--) {
key = _.camelize(props[i])
if (!(key in data)) {
data[key] = null
}
}
}
var keys = Object.keys(data)
var i = keys.length
var key
i = keys.length
while (i--) {

@@ -32,0 +43,0 @@ key = keys[i]

@@ -81,7 +81,9 @@ var _ = require('../util')

function $remove (index) {
/* istanbul ignore if */
if (!this.length) return
if (typeof index !== 'number') {
index = this.indexOf(index)
index = _.indexOf(this, index)
}
if (index > -1) {
return this.splice(index, 1)[0]
this.splice(index, 1)
}

@@ -88,0 +90,0 @@ }

@@ -1,2 +0,1 @@

var uid = 0
var _ = require('../util')

@@ -12,3 +11,2 @@

function Dep () {
this.id = ++uid
this.subs = []

@@ -36,6 +34,3 @@ }

p.removeSub = function (sub) {
if (this.subs.length) {
var i = this.subs.indexOf(sub)
if (i > -1) this.subs.splice(i, 1)
}
this.subs.$remove(sub)
}

@@ -42,0 +37,0 @@

@@ -183,4 +183,3 @@ var _ = require('../util')

if (oldChildOb) {
var oldDeps = oldChildOb.deps
oldDeps.splice(oldDeps.indexOf(dep), 1)
oldChildOb.deps.$remove(dep)
}

@@ -233,5 +232,5 @@ val = newVal

p.removeVm = function (vm) {
this.vms.splice(this.vms.indexOf(vm), 1)
this.vms.$remove(vm)
}
module.exports = Observer

@@ -242,4 +242,18 @@ var _ = require('../util')

// global "Math"
var res =
pathTestRE.test(exp) &&
var res = exports.isSimplePath(exp)
? compilePathFns(exp)
: compileExpFns(exp, needSet)
expressionCache.put(exp, res)
return res
}
/**
* Check if an expression is a simple path.
*
* @param {String} exp
* @return {Boolean}
*/
exports.isSimplePath = function (exp) {
return pathTestRE.test(exp) &&
// don't treat true/false as paths

@@ -249,9 +263,2 @@ !booleanLiteralRE.test(exp) &&

exp.slice(0, 5) !== 'Math.'
? compilePathFns(exp)
: compileExpFns(exp, needSet)
expressionCache.put(exp, res)
return res
}
// Export the pathRegex for external use
exports.pathTestRE = pathTestRE
}

@@ -222,2 +222,3 @@ var _ = require('../util')

* Compiles a getter function with a fixed path.
* The fixed path getter supresses errors.
*

@@ -230,3 +231,3 @@ * @param {Array} path

var body = 'return o' + path.map(formatAccessor).join('')
return new Function('o', body)
return new Function('o', 'try {' + body + '} catch (e) {}')
}

@@ -233,0 +234,0 @@

@@ -73,3 +73,3 @@ var Cache = require('../cache')

var lastIndex = tagRE.lastIndex = 0
var match, index, value, first, oneTime, partial
var match, index, value, first, oneTime
/* jshint boss:true */

@@ -87,4 +87,3 @@ while (match = tagRE.exec(text)) {

oneTime = first === 0x2A // *
partial = first === 0x3E // >
value = (oneTime || partial)
value = oneTime
? match[1].slice(1)

@@ -96,4 +95,3 @@ : match[1]

html: htmlRE.test(match[0]),
oneTime: oneTime,
partial: partial
oneTime: oneTime
})

@@ -142,5 +140,3 @@ lastIndex = index + match[0].length

? '"' + vm.$eval(token.value) + '"'
: single
? token.value
: inlineFilters(token.value)
: inlineFilters(token.value, single)
: '"' + token.value + '"'

@@ -158,2 +154,3 @@ }

* @param {String} exp
* @param {Boolean} single
* @return {String}

@@ -163,5 +160,7 @@ */

var filterRE = /[^|]\|[^|]/
function inlineFilters (exp) {
function inlineFilters (exp, single) {
if (!filterRE.test(exp)) {
return '(' + exp + ')'
return single
? exp
: '(' + exp + ')'
} else {

@@ -178,5 +177,3 @@ var dir = dirParser.parse(exp)[0]

: ''
filter = 'this.$options.filters["' + filter.name + '"]'
exp = '(' + filter + '.read||' + filter + ')' +
'.apply(this,[' + exp + args + '])'
exp = 'this._applyFilter("' + filter.name + '",[' + exp + args + '])'
}

@@ -183,0 +180,0 @@ return exp

@@ -108,19 +108,2 @@ var config = require('../config')

/**
* Copy attributes from one element to another.
*
* @param {Element} from
* @param {Element} to
*/
exports.copyAttributes = function (from, to) {
if (from.hasAttributes()) {
var attrs = from.attributes
for (var i = 0, l = attrs.length; i < l; i++) {
var attr = attrs[i]
to.setAttribute(attr.name, attr.value)
}
}
}
/**
* Add event listener shorthand.

@@ -199,2 +182,9 @@ *

var rawContent
/* istanbul ignore if */
if (
el.tagName === 'TEMPLATE' &&
el.content instanceof DocumentFragment
) {
el = el.content
}
if (el.hasChildNodes()) {

@@ -201,0 +191,0 @@ rawContent = asFragment

@@ -8,2 +8,24 @@ var lang = require('./lang')

extend(exports, require('./filter'))
extend(exports, require('./debug'))
extend(exports, require('./debug'))
/**
* Check if an element is a component, if yes return its
* component id.
*
* @param {Element} el
* @param {Object} options
* @return {String|undefined}
*/
exports.checkComponent = function (el, options) {
var tag = el.tagName.toLowerCase()
if (options.components[tag]) {
return tag
}
// dynamic syntax
if (tag === 'component') {
var exp = el.getAttribute('type')
el.removeAttribute('type')
return exp
}
}

@@ -108,4 +108,9 @@ /**

exports.bind = function (fn, ctx) {
return function () {
return fn.apply(ctx, arguments)
return function (a) {
var l = arguments.length
return l
? l > 1
? fn.apply(ctx, arguments)
: fn.call(ctx, a)
: fn.call(ctx)
}

@@ -231,2 +236,17 @@ }

}
}
/**
* Manual indexOf because it's slightly faster than
* native.
*
* @param {Array} arr
* @param {*} obj
*/
exports.indexOf = function (arr, obj) {
for (var i = 0, l = arr.length; i < l; i++) {
if (arr[i] === obj) return i
}
return -1
}

@@ -116,3 +116,3 @@ var _ = require('./index')

strats.destroyed =
strats.paramAttributes = function (parentVal, childVal) {
strats.props = function (parentVal, childVal) {
return childVal

@@ -137,5 +137,5 @@ ? parentVal

strats.filters =
strats.partials =
strats.transitions =
strats.components = function (parentVal, childVal, vm, key) {
strats.components =
strats.elementDirectives = function (parentVal, childVal, vm, key) {
var ret = Object.create(

@@ -142,0 +142,0 @@ vm && vm.$parent

@@ -40,5 +40,5 @@ var _ = require('./util')

filters : require('./filters'),
partials : {},
transitions : {},
components : {}
components : {},
elementDirectives: {}
}

@@ -74,2 +74,3 @@

extend(p, require('./instance/compile'))
extend(p, require('./instance/misc'))

@@ -76,0 +77,0 @@ /**

@@ -34,3 +34,4 @@ var _ = require('./util')

this.user = !!options.user
this.deps = Object.create(null)
this.deps = []
this.newDeps = []
// setup filters if any.

@@ -60,8 +61,11 @@ // We delegate directive filters here to the watcher

p.addDep = function (dep) {
var id = dep.id
if (!this.newDeps[id]) {
this.newDeps[id] = dep
if (!this.deps[id]) {
this.deps[id] = dep
var newDeps = this.newDeps
var old = this.deps
if (_.indexOf(newDeps, dep) < 0) {
newDeps.push(dep)
var i = _.indexOf(old, dep)
if (i < 0) {
dep.addSub(this)
} else {
old[i] = null
}

@@ -128,3 +132,2 @@ }

Observer.target = this
this.newDeps = {}
}

@@ -138,8 +141,11 @@

Observer.target = null
for (var id in this.deps) {
if (!this.newDeps[id]) {
this.deps[id].removeSub(this)
var i = this.deps.length
while (i--) {
var dep = this.deps[i]
if (dep) {
dep.removeSub(this)
}
}
this.deps = this.newDeps
this.newDeps = []
}

@@ -209,6 +215,3 @@

if (cbs.length > 1) {
var i = cbs.indexOf(cb)
if (i > -1) {
cbs.splice(i, 1)
}
cbs.$remove(cb)
} else if (cb === cbs[0]) {

@@ -229,10 +232,7 @@ this.teardown()

if (!this.vm._isBeingDestroyed) {
var list = this.vm._watcherList
var i = list.indexOf(this)
if (i > -1) {
list.splice(i, 1)
}
this.vm._watcherList.$remove(this)
}
for (var id in this.deps) {
this.deps[id].removeSub(this)
var i = this.deps.length
while (i--) {
this.deps[i].removeSub(this)
}

@@ -239,0 +239,0 @@ this.active = false

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc