diff --git a/bower.json b/bower.json index b40e65c4769..4ce68812b47 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "vue", - "version": "0.8.0", + "version": "0.8.1", "main": "dist/vue.js", "description": "Simple, Fast & Composable MVVM for building interative interfaces", "authors": ["Evan You "], diff --git a/component.json b/component.json index 8d5acaa5bad..00cf29935f9 100644 --- a/component.json +++ b/component.json @@ -1,6 +1,6 @@ { "name": "vue", - "version": "0.8.0", + "version": "0.8.1", "main": "src/main.js", "author": "Evan You ", "description": "Simple, Fast & Composable MVVM for building interative interfaces", diff --git a/dist/vue.js b/dist/vue.js index c8d26cd24ff..4a7a946f7f0 100644 --- a/dist/vue.js +++ b/dist/vue.js @@ -1,5 +1,5 @@ /* - VueJS v0.8.0 + VueJS v0.8.1 (c) 2014 Evan You License: MIT */ @@ -1315,10 +1315,7 @@ CompilerProto.defineProp = function (key, binding) { CompilerProto.defineExp = function (key, binding) { var getter = ExpParser.parse(key, this) if (getter) { - var value = binding.isFn - ? getter - : { $get: getter } - this.markComputed(binding, value) + this.markComputed(binding, getter) this.exps.push(binding) } } @@ -1329,10 +1326,8 @@ CompilerProto.defineExp = function (key, binding) { CompilerProto.defineComputed = function (key, binding, value) { this.markComputed(binding, value) var def = { - get: binding.value.$get - } - if (binding.value.$set) { - def.set = binding.value.$set + get: binding.value.$get, + set: binding.value.$set } Object.defineProperty(this.vm, key, def) } @@ -1342,15 +1337,19 @@ CompilerProto.defineComputed = function (key, binding, value) { * so its getter/setter are bound to proper context */ CompilerProto.markComputed = function (binding, value) { - binding.value = value binding.isComputed = true // bind the accessors to the vm - if (!binding.isFn) { - binding.value = { - $get: utils.bind(value.$get, this.vm) + if (binding.isFn) { + binding.value = value + } else { + if (typeof value === 'function') { + value = { $get: value } } - if (value.$set) { - binding.value.$set = utils.bind(value.$set, this.vm) + binding.value = { + $get: utils.bind(value.$get, this.vm), + $set: value.$set + ? utils.bind(value.$set, this.vm) + : undefined } } // keep track for dep parsing later diff --git a/dist/vue.min.js b/dist/vue.min.js index 5ffa455206d..868546e93d2 100644 --- a/dist/vue.min.js +++ b/dist/vue.min.js @@ -1,6 +1,6 @@ /* - VueJS v0.8.0 + VueJS v0.8.1 (c) 2014 Evan You License: MIT */ -!function(){function e(t,n,i){var r=e.resolve(t);if(null==r){i=i||t,n=n||"root";var s=new Error('Failed to require "'+i+'" from "'+n+'"');throw s.path=i,s.parent=n,s.require=!0,s}var o=e.modules[r];if(!o._resolving&&!o.exports){var a={};a.exports={},a.client=a.component=!0,o._resolving=!0,o.call(this,a.exports,e.relative(r),a),delete o._resolving,o.exports=a.exports}return o.exports}e.modules={},e.aliases={},e.resolve=function(t){"/"===t.charAt(0)&&(t=t.slice(1));for(var n=[t,t+".js",t+".json",t+"/index.js",t+"/index.json"],i=0;ii;++i)n[i].apply(this,t)}return this},i.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks[e]||[]},i.prototype.hasListeners=function(e){return!!this.listeners(e).length}}),e.register("vue/src/main.js",function(e,t,n){function i(e){var t=this;e=r(e,t.options,!0),l.processOptions(e);var n=function(n,i){i||(n=r(n,e,!0)),t.call(this,n,!0)},s=n.prototype=Object.create(t.prototype);l.defProtected(s,"constructor",n);var o=e.methods;if(o)for(var c in o)c in a.prototype||"function"!=typeof o[c]||(s[c]=o[c]);return n.extend=i,n.super=t,n.options=e,n}function r(e,t,n){if(e=e||l.hash(),!t)return e;for(var i in t)if("el"!==i&&"methods"!==i){var o=e[i],a=t[i],c=l.typeOf(o);n&&"Function"===c&&a?e[i]=s(o,a):n&&"Object"===c?r(o,a):void 0===o&&(e[i]=a)}return e}function s(e,t){return function(n){t.call(this,n),e.call(this,n)}}var o=t("./config"),a=t("./viewmodel"),c=t("./directives"),u=t("./filters"),l=t("./utils");a.config=function(e,t){if("string"==typeof e){if(void 0===t)return o[e];o[e]=t}else l.extend(o,e);return this},a.directive=function(e,t){return t?(c[e]=t,this):c[e]},a.filter=function(e,t){return t?(u[e]=t,this):u[e]},a.component=function(e,t){return t?(l.components[e]=l.toConstructor(t),this):l.components[e]},a.partial=function(e,t){return t?(l.partials[e]=l.toFragment(t),this):l.partials[e]},a.transition=function(e,t){return t?(l.transitions[e]=t,this):l.transitions[e]},a.extend=i,a.nextTick=l.nextTick,n.exports=a}),e.register("vue/src/emitter.js",function(e,t,n){var i,r="emitter";try{i=t(r)}catch(s){i=t("events").EventEmitter,i.prototype.off=function(){var e=arguments.length>1?this.removeListener:this.removeAllListeners;return e.apply(this,arguments)}}n.exports=i}),e.register("vue/src/config.js",function(e,t,n){function i(){s.forEach(function(e){o.attrs[e]=r+"-"+e})}var r="v",s=["pre","text","repeat","partial","with","component","component-id","transition"],o=n.exports={debug:!1,silent:!1,enterClass:"v-enter",leaveClass:"v-leave",attrs:{},get prefix(){return r},set prefix(e){r=e,i()}};i()}),e.register("vue/src/utils.js",function(e,t,n){function i(){return Object.create(null)}var r,s=t("./config"),o=s.attrs,a=Object.prototype.toString,c=Array.prototype.join,u=window.console,l=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.setTimeout,f=n.exports={hash:i,components:i(),partials:i(),transitions:i(),attr:function(e,t,n){var i=o[t],r=e.getAttribute(i);return n||null===r||e.removeAttribute(i),r},defProtected:function(e,t,n,i,r){e.hasOwnProperty(t)||Object.defineProperty(e,t,{value:n,enumerable:!!i,configurable:!!r})},typeOf:function(e){return a.call(e).slice(8,-1)},bind:function(e,t){return function(n){return e.call(t,n)}},toText:function(e){return"string"==typeof e||"boolean"==typeof e||"number"==typeof e&&e==e?e:""},extend:function(e,t,n){for(var i in t)n&&e[i]||(e[i]=t[i])},unique:function(e){for(var t,n=f.hash(),i=e.length,r=[];i--;)t=e[i],n[t]||(n[t]=1,r.push(t));return r},toFragment:function(e){if("string"!=typeof e)return e;if("#"===e.charAt(0)){var t=document.getElementById(e.slice(1));if(!t)return;e=t.innerHTML}var n,i=document.createElement("div"),r=document.createDocumentFragment();for(i.innerHTML=e.trim();n=i.firstChild;)r.appendChild(n);return r},toConstructor:function(e){return r=r||t("./viewmodel"),"Object"===f.typeOf(e)?r.extend(e):"function"==typeof e?e:null},processOptions:function(e){var t,n=e.components,i=e.partials,r=e.template;if(n)for(t in n)n[t]=f.toConstructor(n[t]);if(i)for(t in i)i[t]=f.toFragment(i[t]);r&&(e.template=f.toFragment(r))},log:function(){s.debug&&u&&u.log(c.call(arguments," "))},warn:function(){!s.silent&&u&&(u.warn(c.call(arguments," ")),s.debug&&u.trace())},nextTick:function(e){l(e,0)}}}),e.register("vue/src/compiler.js",function(e,t,n){function i(e,t){var n=this;n.init=!0,t=n.options=t||m(),c.processOptions(t);var i=n.data=t.data||{};g(e,i,!0),g(e,t.methods,!0),g(n,t.compilerOptions);var a=n.setupElement(t);d("\nnew VM instance:",a.tagName,"\n"),n.vm=e,n.bindings=m(),n.dirs=[],n.exps=[],n.computed=[],n.childCompilers=[],n.emitter=new s,b(e,"$",m()),b(e,"$el",a),b(e,"$compiler",n),b(e,"$root",r(n).vm);var u=n.parentCompiler,l=c.attr(a,"component-id");u&&(u.childCompilers.push(n),b(e,"$parent",u.vm),l&&(n.childId=l,u.vm.$[l]=e)),n.setupObserver();var f=t.computed;if(f)for(var h in f)n.createBinding(h);n.execHook("beforeCompile","created"),g(i,e),o.observe(i,"",n.observer),n.repeat&&(b(i,"$index",n.repeatIndex,!1,!0),n.createBinding("$index")),Object.defineProperty(e,"$data",{enumerable:!1,get:function(){return n.data},set:function(e){var t=n.data;o.unobserve(t,"",n.observer),n.data=e,o.copyPaths(e,t),o.observe(e,"",n.observer)}}),n.compile(a,!0),n.computed.length&&p.parse(n.computed),n.init=!1,n.execHook("afterCompile","ready")}function r(e){for(;e.parentCompiler;)e=e.parentCompiler;return e}var s=t("./emitter"),o=t("./observer"),a=t("./config"),c=t("./utils"),u=t("./binding"),l=t("./directive"),f=t("./text-parser"),p=t("./deps-parser"),h=t("./exp-parser"),v=Array.prototype.slice,d=c.log,m=c.hash,g=c.extend,b=c.defProtected,y=Object.prototype.hasOwnProperty,_=i.prototype;_.setupElement=function(e){var t=this.el="string"==typeof e.el?document.querySelector(e.el):e.el||document.createElement(e.tagName||"div"),n=e.template;if(n)if(e.replace&&1===n.childNodes.length){var i=n.childNodes[0].cloneNode(!0);t.parentNode&&(t.parentNode.insertBefore(i,t),t.parentNode.removeChild(t)),t=i}else t.innerHTML="",t.appendChild(n.cloneNode(!0));e.id&&(t.id=e.id),e.className&&(t.className=e.className);var r=e.attributes;if(r)for(var s in r)t.setAttribute(s,r[s]);return t},_.setupObserver=function(){function e(e){n[e]||t.createBinding(e)}var t=this,n=t.bindings,i=t.observer=new s;i.proxies=m(),i.on("get",function(t){e(t),p.catcher.emit("get",n[t])}).on("set",function(t,r){i.emit("change:"+t,r),e(t),n[t].update(r)}).on("mutate",function(t,r,s){i.emit("change:"+t,r,s),e(t),n[t].pub()})},_.compile=function(e,t){var n=this,i=e.nodeType,r=e.tagName;if(1===i&&"SCRIPT"!==r){if(null!==c.attr(e,"pre"))return;var s,o,a,u,f=c.attr(e,"component")||r.toLowerCase(),p=n.getOption("components",f);if(s=c.attr(e,"repeat"))u=l.parse("repeat",s,n,e),u&&(u.Ctor=p,n.bindDirective(u));else if(t||!(o=c.attr(e,"with"))&&!p){if(e.vue_trans=c.attr(e,"transition"),a=c.attr(e,"partial")){var h=n.getOption("partials",a);h&&(e.innerHTML="",e.appendChild(h.cloneNode(!0)))}n.compileNode(e)}else u=l.parse("with",o||"",n,e),u&&(u.Ctor=p,n.bindDirective(u))}else 3===i&&n.compileTextNode(e)},_.compileNode=function(e){var t,n,i=e.attributes,r=a.prefix+"-";if(i&&i.length){var s,o,c,u,p;for(t=i.length;t--;){if(s=i[t],o=!1,0===s.name.indexOf(r))for(o=!0,c=l.split(s.value),n=c.length;n--;)u=c[n],p=l.parse(s.name.slice(r.length),u,this,e),p&&this.bindDirective(p);else u=f.parseAttr(s.value),u&&(p=l.parse("attr",s.name+":"+u,this,e),p&&this.bindDirective(p));o&&e.removeAttribute(s.name)}}if(e.childNodes.length){var h=v.call(e.childNodes);for(t=0,n=h.length;n>t;t++)this.compile(h[t])}},_.compileTextNode=function(e){var t=f.parse(e.nodeValue);if(t){for(var n,i,r,s,o,a,c=0,u=t.length;u>c;c++)if(i=t[c],i.key?">"===i.key.charAt(0)?(o=i.key.slice(1).trim(),s=this.getOption("partials",o),s&&(n=s.cloneNode(!0),a=v.call(n.childNodes))):(n=document.createTextNode(""),r=l.parse("text",i.key,this,n),r&&this.bindDirective(r)):n=document.createTextNode(i),e.parentNode.insertBefore(n,e),a){for(var p=0,h=a.length;h>p;p++)this.compile(a[p]);a=null}e.parentNode.removeChild(e)}},_.bindDirective=function(e){if(this.dirs.push(e),e.isEmpty)return e.bind&&e.bind(),void 0;var t,n=this,i=e.key;if(e.isExp)t=n.createBinding(i,!0,e.isFn);else{for(;n&&!n.hasKey(i);)n=n.parentCompiler;n=n||this,t=n.bindings[i]||n.createBinding(i)}t.instances.push(e),e.binding=t,e.bind&&e.bind(),e.update(t.val(),!0)},_.createBinding=function(e,t,n){d(" created binding: "+e);var i=this,r=i.bindings,s=i.options.computed,a=new u(i,e,t,n);if(t)i.defineExp(e,a);else if(r[e]=a,a.root)s&&s[e]?i.defineComputed(e,a,s[e]):i.defineProp(e,a);else{o.ensurePath(i.data,e);var c=e.slice(0,e.lastIndexOf("."));r[c]||i.createBinding(c)}return a},_.defineProp=function(e,t){var n=this,i=n.data,r=i.__observer__;e in i||(i[e]=void 0),!r||e in r.values||o.convert(i,e),t.value=i[e],Object.defineProperty(n.vm,e,{get:function(){return n.data[e]},set:function(t){n.data[e]=t}})},_.defineExp=function(e,t){var n=h.parse(e,this);if(n){var i=t.isFn?n:{$get:n};this.markComputed(t,i),this.exps.push(t)}},_.defineComputed=function(e,t,n){this.markComputed(t,n);var i={get:t.value.$get};t.value.$set&&(i.set=t.value.$set),Object.defineProperty(this.vm,e,i)},_.markComputed=function(e,t){e.value=t,e.isComputed=!0,e.isFn||(e.value={$get:c.bind(t.$get,this.vm)},t.$set&&(e.value.$set=c.bind(t.$set,this.vm))),this.computed.push(e)},_.getOption=function(e,t){var n=this.options,i=this.parentCompiler;return n[e]&&n[e][t]||(i?i.getOption(e,t):c[e]&&c[e][t])},_.execHook=function(e,t){var n=this.options,i=n[e]||n[t];i&&i.call(this.vm,n)},_.hasKey=function(e){var t=e.split(".")[0];return y.call(this.data,t)||y.call(this.vm,t)},_.destroy=function(){var e,t,n,i,r,s=this,a=s.vm,c=s.el,u=s.dirs,l=s.exps,f=s.bindings;for(s.execHook("beforeDestroy"),s.observer.off(),s.emitter.off(),e=u.length;e--;)n=u[e],n.isEmpty||n.binding.compiler===s||(i=n.binding.instances,i&&i.splice(i.indexOf(n),1)),n.unbind();for(e=l.length;e--;)l[e].unbind();for(t in f)r=f[t],r&&(r.root&&o.unobserve(r.value,r.key,s.observer),r.unbind());var p=s.parentCompiler,h=s.childId;p&&(p.childCompilers.splice(p.childCompilers.indexOf(s),1),h&&delete p.vm.$[h]),c===document.body?c.innerHTML="":a.$remove(),s.execHook("afterDestroy")},n.exports=i}),e.register("vue/src/viewmodel.js",function(e,t,n){function i(e){new o(this,e)}function r(e){return"string"==typeof e?document.querySelector(e):e}function s(e,t){var n=t[0],i=e.$compiler.bindings[n];return i?i.compiler.vm:null}var o=t("./compiler"),a=t("./utils"),c=t("./transition"),u=a.defProtected,l=a.nextTick,f=i.prototype;u(f,"$set",function(e,t){var n=e.split("."),i=s(this,n);if(i){for(var r=0,o=n.length-1;o>r;r++)i=i[n[r]];i[n[r]]=t}}),u(f,"$watch",function(e,t){function n(){var e=arguments;a.nextTick(function(){t.apply(i,e)})}var i=this;t._fn=n,i.$compiler.observer.on("change:"+e,n)}),u(f,"$unwatch",function(e,t){var n=["change:"+e],i=this.$compiler.observer;t&&n.push(t._fn),i.off.apply(i,n)}),u(f,"$destroy",function(){this.$compiler.destroy()}),u(f,"$broadcast",function(){for(var e,t=this.$compiler.childCompilers,n=t.length;n--;)e=t[n],e.emitter.emit.apply(e.emitter,arguments),e.vm.$broadcast.apply(e.vm,arguments)}),u(f,"$dispatch",function(){var e=this.$compiler,t=e.emitter,n=e.parentCompiler;t.emit.apply(t,arguments),n&&n.vm.$dispatch.apply(n.vm,arguments)}),["emit","on","off","once"].forEach(function(e){u(f,"$"+e,function(){var t=this.$compiler.emitter;t[e].apply(t,arguments)})}),u(f,"$appendTo",function(e,t){e=r(e);var n=this.$el;c(n,1,function(){e.appendChild(n),t&&l(t)},this.$compiler)}),u(f,"$remove",function(e){var t=this.$el,n=t.parentNode;n&&c(t,-1,function(){n.removeChild(t),e&&l(e)},this.$compiler)}),u(f,"$before",function(e,t){e=r(e);var n=this.$el,i=e.parentNode;i&&c(n,1,function(){i.insertBefore(n,e),t&&l(t)},this.$compiler)}),u(f,"$after",function(e,t){e=r(e);var n=this.$el,i=e.parentNode,s=e.nextSibling;i&&c(n,1,function(){s?i.insertBefore(n,s):i.appendChild(n),t&&l(t)},this.$compiler)}),n.exports=i}),e.register("vue/src/binding.js",function(e,t,n){function i(e,t,n,i){this.id=s++,this.value=void 0,this.isExp=!!n,this.isFn=i,this.root=!this.isExp&&-1===t.indexOf("."),this.compiler=e,this.key=t,this.instances=[],this.subs=[],this.deps=[],this.unbound=!1}var r=t("./batcher"),s=0,o=i.prototype;o.update=function(e){(!this.isComputed||this.isFn)&&(this.value=e),r.queue(this)},o._update=function(){for(var e=this.instances.length,t=this.val();e--;)this.instances[e].update(t);this.pub()},o.val=function(){return this.isComputed&&!this.isFn?this.value.$get():this.value},o.pub=function(){for(var e=this.subs.length;e--;)this.subs[e].update()},o.unbind=function(){this.unbound=!0;for(var e=this.instances.length;e--;)this.instances[e].unbind();e=this.deps.length;for(var t;e--;)t=this.deps[e].subs,t.splice(t.indexOf(this),1)},n.exports=i}),e.register("vue/src/observer.js",function(e,t,n){function i(e){for(var t in e)s(e,t)}function r(e,t){var n=e.__observer__;if(n||(n=new h,m(e,"__observer__",n)),n.path=t,x)e.__proto__=k;else for(var i in k)m(e,i,k[i])}function s(e,t){var n=t.charAt(0);if("$"!==n&&"_"!==n||"$index"===t){var i=e.__observer__,r=i.values,s=r[t]=e[t];i.emit("set",t,s),Array.isArray(s)&&i.emit("set",t+".length",s.length),Object.defineProperty(e,t,{get:function(){var e=r[t];return C.shouldGet&&d(e)!==b&&i.emit("get",t),e},set:function(e){var n=r[t];f(n,t,i),r[t]=e,c(e,n),i.emit("set",t,e),l(e,t,i)}}),l(s,t,i)}}function o(e){p=p||t("./viewmodel");var n=d(e);return!(n!==b&&n!==y||e instanceof p)}function a(e){var t=d(e),n=e&&e.__observer__;if(t===y)n.emit("set","length",e.length);else if(t===b){var i,r;for(i in e)r=e[i],n.emit("set",i,r),a(r)}}function c(e,t){if(d(t)===b&&d(e)===b){var n,i,r,s;for(n in t)n in e||(r=t[n],i=d(r),i===b?(s=e[n]={},c(s,r)):e[n]=i===y?[]:void 0)}}function u(e,t){for(var n,i=t.split("."),r=0,o=i.length-1;o>r;r++)n=i[r],e[n]||(e[n]={},e.__observer__&&s(e,n)),e=e[n];d(e)===b&&(n=i[r],n in e||(e[n]=void 0,e.__observer__&&s(e,n)))}function l(e,t,n){if(o(e)){var s,c=t?t+".":"",u=!!e.__observer__;u||m(e,"__observer__",new h),s=e.__observer__,s.values=s.values||v.hash(),n.proxies=n.proxies||{};var l=n.proxies[c]={get:function(e){n.emit("get",c+e)},set:function(e,t){n.emit("set",c+e,t)},mutate:function(e,i,r){var s=e?c+e:t;n.emit("mutate",s,i,r);var o=r.method;"sort"!==o&&"reverse"!==o&&n.emit("set",s+".length",i.length)}};if(s.on("get",l.get).on("set",l.set).on("mutate",l.mutate),u)a(e);else{var f=d(e);f===b?i(e):f===y&&r(e)}}}function f(e,t,n){if(e&&e.__observer__){t=t?t+".":"";var i=n.proxies[t];i&&(e.__observer__.off("get",i.get).off("set",i.set).off("mutate",i.mutate),n.proxies[t]=null)}}var p,h=t("./emitter"),v=t("./utils"),d=v.typeOf,m=v.defProtected,g=Array.prototype.slice,b="Object",y="Array",_=["push","pop","shift","unshift","splice","sort","reverse"],x={}.__proto__,k=Object.create(Array.prototype);_.forEach(function(e){m(k,e,function(){var t=Array.prototype[e].apply(this,arguments);return this.__observer__.emit("mutate",this.__observer__.path,this,{method:e,args:g.call(arguments),result:t}),t},!x)});var w={remove:function(e){if("function"==typeof e){for(var t=this.length,n=[];t--;)e(this[t])&&n.push(this.splice(t,1)[0]);return n.reverse()}return"number"!=typeof e&&(e=this.indexOf(e)),e>-1?this.splice(e,1)[0]:void 0},replace:function(e,t){if("function"==typeof e){for(var n,i=this.length,r=[];i--;)n=e(this[i]),void 0!==n&&r.push(this.splice(i,1,n)[0]);return r.reverse()}return"number"!=typeof e&&(e=this.indexOf(e)),e>-1?this.splice(e,1,t)[0]:void 0}};for(var $ in w)m(k,$,w[$],!x);var C=n.exports={shouldGet:!1,observe:l,unobserve:f,ensurePath:u,convert:s,copyPaths:c,watchArray:r}}),e.register("vue/src/directive.js",function(e,t,n){function i(e,t,n,i,o){this.compiler=i,this.vm=i.vm,this.el=o;var a=""===t;if("function"==typeof e)this[a?"bind":"_update"]=e;else for(var c in e)"unbind"===c||"update"===c?this["_"+c]=e[c]:this[c]=e[c];if(a)return this.isEmpty=!0,void 0;this.expression=t.trim(),this.rawKey=n,r(this,n),this.isExp=!d.test(this.key)||v.test(this.key);var u=this.expression.slice(n.length).match(p);if(u){this.filters=[];for(var l,f=0,h=u.length;h>f;f++)l=s(u[f],this.compiler),l&&this.filters.push(l);this.filters.length||(this.filters=null)}else this.filters=null}function r(e,t){var n=t;if(t.indexOf(":")>-1){var i=t.match(f);n=i?i[2].trim():n,e.arg=i?i[1].trim():null}e.key=n}function s(e,t){var n=e.slice(1).match(h);if(n){n=n.map(function(e){return e.replace(/'/g,"").trim()});var i=n[0],r=t.getOption("filters",i)||c[i];return r?{name:i,apply:r,args:n.length>1?n.slice(1):null}:(o.warn("Unknown filter: "+i),void 0)}}var o=t("./utils"),a=t("./directives"),c=t("./filters"),u=/(?:['"](?:\\.|[^'"])*['"]|\((?:\\.|[^\)])*\)|\\.|[^,])+/g,l=/^(?:['"](?:\\.|[^'"])*['"]|\\.|[^\|]|\|\|)+/,f=/^([\w- ]+):(.+)$/,p=/\|[^\|]+/g,h=/[^\s']+|'[^']+'/g,v=/^\$(parent|root)\./,d=/^[\w\.\$]+$/,m=i.prototype;m.update=function(e,t){(t||e!==this.value)&&(this.value=e,this._update&&this._update(this.filters?this.applyFilters(e):e))},m.applyFilters=function(e){for(var t,n=e,i=0,r=this.filters.length;r>i;i++)t=this.filters[i],n=t.apply.call(this.vm,n,t.args);return n},m.unbind=function(e){this.el&&(this._unbind&&this._unbind(e),e||(this.vm=this.el=this.binding=this.compiler=null))},i.split=function(e){return e.indexOf(",")>-1?e.match(u)||[""]:[e]},i.parse=function(e,t,n,r){var s=n.getOption("directives",e)||a[e];if(!s)return o.warn("unknown directive: "+e);var c;if(t.indexOf("|")>-1){var u=t.match(l);u&&(c=u[0].trim())}else c=t.trim();return c||""===t?new i(s,t,c,n,r):o.warn("invalid directive expression: "+t)},n.exports=i}),e.register("vue/src/exp-parser.js",function(e,t,n){function i(e){return e=e.replace(p,"").replace(h,",").replace(f,"").replace(v,"").replace(d,""),e?e.split(/,+/):[]}function r(e,t){for(var n="",i=0,r=t;t&&!t.hasKey(e);)t=t.parentCompiler,i++;if(t){for(;i--;)n+="$parent.";t.bindings[e]||"$"===e.charAt(0)||t.createBinding(e)}else r.createBinding(e);return n}function s(e,t){var n;try{n=new Function(e)}catch(i){a.warn("Invalid expression: "+t)}return n}function o(e){return"$"===e.charAt(0)?"\\"+e:e}var a=t("./utils"),c=/"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'/g,u=/"(\d+)"/g,l="break,case,catch,continue,debugger,default,delete,do,else,false,finally,for,function,if,in,instanceof,new,null,return,switch,this,throw,true,try,typeof,var,void,while,with,undefined,abstract,boolean,byte,char,class,const,double,enum,export,extends,final,float,goto,implements,import,int,interface,long,native,package,private,protected,public,short,static,super,synchronized,throws,transient,volatile,arguments,let,yield,Math",f=new RegExp(["\\b"+l.replace(/,/g,"\\b|\\b")+"\\b"].join("|"),"g"),p=/\/\*(?:.|\n)*?\*\/|\/\/[^\n]*\n|\/\/[^\n]*$|'[^']*'|"[^"]*"|[\s\t\n]*\.[\s\t\n]*[$\w\.]+/g,h=/[^\w$]+/g,v=/\b\d[^,]*/g,d=/^,+|,+$/g;n.exports={parse:function(e,t){function n(e){var t=d.length;return d[t]=e,'"'+t+'"'}function l(e){var n=e.charAt(0);e=e.slice(1);var i="this."+r(e,t)+e;return v[e]||(h+=i+";",v[e]=1),n+i}function f(e,t){return d[t]}var p=i(e);if(!p.length)return s("return "+e,e);p=a.unique(p);var h="",v=a.hash(),d=[],m=new RegExp("[^$\\w\\.]("+p.map(o).join("|")+")[$\\w\\.]*\\b","g"),g=("return "+e).replace(c,n).replace(m,l).replace(u,f);return g=h+g,s(g,e)}}}),e.register("vue/src/text-parser.js",function(e){function t(e){if(!i.test(e))return null;for(var t,n,r=[];t=e.match(i);)n=t.index,n>0&&r.push(e.slice(0,n)),r.push({key:t[1].trim()}),e=e.slice(n+t[0].length);return e.length&&r.push(e),r}function n(e){var n=t(e);if(!n)return null;for(var i,r=[],s=0,o=n.length;o>s;s++)i=n[s],r.push(i.key||'"'+i+'"');return r.join("+")}var i=/\{\{(.+?)\}\}/;e.parse=t,e.parseAttr=n}),e.register("vue/src/deps-parser.js",function(e,t,n){function i(e){if(!e.isFn){s.log("\n- "+e.key);var t=s.hash();a.on("get",function(n){var i=t[n.key];i&&i.compiler===n.compiler||(t[n.key]=n,s.log(" - "+n.key),e.deps.push(n),n.subs.push(e))}),e.value.$get(),a.off("get")}}var r=t("./emitter"),s=t("./utils"),o=t("./observer"),a=new r;n.exports={catcher:a,parse:function(e){s.log("\nparsing dependencies..."),o.shouldGet=!0,e.forEach(i),o.shouldGet=!1,s.log("\ndone.")}}}),e.register("vue/src/filters.js",function(e,t,n){var i={enter:13,tab:9,"delete":46,up:38,left:37,right:39,down:40,esc:27};n.exports={capitalize:function(e){return e||0===e?(e=e.toString(),e.charAt(0).toUpperCase()+e.slice(1)):""},uppercase:function(e){return e||0===e?e.toString().toUpperCase():""},lowercase:function(e){return e||0===e?e.toString().toLowerCase():""},currency:function(e,t){if(!e&&0!==e)return"";var n=t&&t[0]||"$",i=Math.floor(e).toString(),r=i.length%3,s=r>0?i.slice(0,r)+(i.length>3?",":""):"",o="."+e.toFixed(2).slice(-2);return n+s+i.slice(r).replace(/(\d{3})(?=\d)/g,"$1,")+o},pluralize:function(e,t){return t.length>1?t[e-1]||t[t.length-1]:t[e-1]||t[0]+"s"},key:function(e,t){if(e){var n=i[t[0]];return n||(n=parseInt(t[0],10)),function(t){t.keyCode===n&&e.call(this,t)}}}}}),e.register("vue/src/transition.js",function(e,t,n){function i(e,t,n){if(!o)return n(),c.CSS_SKIP;var i=e.classList,r=e.vue_trans_cb;if(t>0){r&&(e.removeEventListener(o,r),e.vue_trans_cb=null),i.add(a.enterClass),n();{e.clientHeight}return i.remove(a.enterClass),c.CSS_E}i.add(a.leaveClass);var s=function(t){t.target===e&&(e.removeEventListener(o,s),e.vue_trans_cb=null,n(),i.remove(a.leaveClass))};return e.addEventListener(o,s),e.vue_trans_cb=s,c.CSS_L}function r(e,t,n,i,r){var s=r.getOption("transitions",i);if(!s)return n(),c.JS_SKIP;var o=s.enter,a=s.leave;return t>0?"function"!=typeof o?(n(),c.JS_SKIP_E):(o(e,n),c.JS_E):"function"!=typeof a?(n(),c.JS_SKIP_L):(a(e,n),c.JS_L)}function s(){var e=document.createElement("vue"),t="transitionend",n={transition:t,mozTransition:t,webkitTransition:"webkitTransitionEnd"};for(var i in n)if(void 0!==e.style[i])return n[i]}var o=s(),a=t("./config"),c={CSS_E:1,CSS_L:2,JS_E:3,JS_L:4,CSS_SKIP:-1,JS_SKIP:-2,JS_SKIP_E:-3,JS_SKIP_L:-4,INIT:-5,SKIP:-6},u=n.exports=function(e,t,n,s){var o=function(){n(),s.execHook(t>0?"enteredView":"leftView")};if(s.init)return o(),c.INIT;var a=e.vue_trans;return a?r(e,t,o,a,s):""===a?i(e,t,o):(o(),c.SKIP)};u.codes=c}),e.register("vue/src/batcher.js",function(e,t){function n(){for(var e=0;et;t++)this.buildItem(e.args[t],i+t)},pop:function(){var e=this.vms.pop();e&&e.$destroy()},unshift:function(e){var t,n=e.args.length;for(t=0;n>t;t++)this.buildItem(e.args[t],t)},shift:function(){var e=this.vms.shift();e&&e.$destroy()},splice:function(e){var t,n,i=e.args[0],r=e.args[1],s=e.args.length-2,o=this.vms.splice(i,r);for(t=0,n=o.length;n>t;t++)o[t].$destroy();for(t=0;s>t;t++)this.buildItem(e.args[t+2],i+t)},sort:function(){var e,t,n,i,r=this.vms,s=this.collection,o=s.length,a=new Array(o);for(e=0;o>e;e++)for(i=s[e],t=0;o>t;t++)if(n=r[t],n.$data===i){a[e]=n;break}for(e=0;o>e;e++)this.container.insertBefore(a[e].$el,this.ref);this.vms=a},reverse:function(){var e=this.vms;e.reverse();for(var t=0,n=e.length;n>t;t++)this.container.insertBefore(e[t].$el,this.ref)}};n.exports={bind:function(){var e=this,n=e.el,r=e.container=n.parentNode;i=i||t("../viewmodel"),e.Ctor=e.Ctor||i,e.hasTrans=n.hasAttribute(a.attrs.transition),e.ref=document.createComment(a.prefix+"-repeat-"+e.key),r.insertBefore(e.ref,n),r.removeChild(n),e.initiated=!1,e.collection=null,e.vms=null,e.mutationListener=function(t,n,i){var r=i.method;u[r].call(e,i),"push"!==r&&"pop"!==r&&e.updateIndexes()}},update:function(e){if(this.unbind(!0),this.container.vue_dHandlers=o.hash(),this.initiated||e&&e.length||(this.buildItem(),this.initiated=!0),e=this.collection=e||[],this.vms=[],e.__observer__||r.watchArray(e,null,new s),e.__observer__.on("mutate",this.mutationListener),e.length)for(var t=0,n=e.length;n>t;t++)this.buildItem(e[t],t)},buildItem:function(e,t){var n,i,r=this.el.cloneNode(!0),s=this.container;e&&(n=this.vms.length>t?this.vms[t].$el:this.ref,n.parentNode||(n=n.vue_ref),r.vue_trans=o.attr(r,"transition",!0),c(r,1,function(){s.insertBefore(r,n)},this.compiler)),i=new this.Ctor({el:r,data:e,compilerOptions:{repeat:!0,repeatIndex:t,repeatCollection:this.collection,parentCompiler:this.compiler,delegator:s}}),e?this.vms.splice(t,0,i):i.$destroy()},updateIndexes:function(){for(var e=this.vms.length;e--;)this.vms[e].$data.$index=e},unbind:function(){if(this.collection){this.collection.__observer__.off("mutate",this.mutationListener);for(var e=this.vms.length;e--;)this.vms[e].$destroy()}var t=this.container,n=t.vue_dHandlers;for(var i in n)t.removeEventListener(n[i].event,n[i]);t.vue_dHandlers=null}}}),e.register("vue/src/directives/on.js",function(e,t,n){function i(e,t,n){for(;e&&e!==t;){if(e[n])return e;e=e.parentNode}}var r=t("../utils");n.exports={isFn:!0,bind:function(){this.compiler.repeat&&(this.el[this.expression]=!0,this.el.vue_viewmodel=this.vm)},update:function(e){if(this.unbind(!0),"function"!=typeof e)return r.warn('Directive "on" expects a function value.');var t=this.compiler,n=this.arg,s=this.binding.isExp,o=this.binding.compiler.vm;if(t.repeat&&!this.vm.constructor.super&&"blur"!==n&&"focus"!==n){var a=t.delegator,c=this.expression,u=a.vue_dHandlers[c];if(u)return;u=a.vue_dHandlers[c]=function(t){var n=i(t.target,a,c);n&&(t.el=n,t.targetVM=n.vue_viewmodel,e.call(s?t.targetVM:o,t))},u.event=n,a.addEventListener(n,u)}else{var l=this.vm;this.handler=function(t){t.el=t.currentTarget,t.targetVM=l,e.call(o,t)},this.el.addEventListener(n,this.handler)}},unbind:function(e){this.el.removeEventListener(this.arg,this.handler),this.handler=null,e||(this.el.vue_viewmodel=null)}}}),e.register("vue/src/directives/model.js",function(e,t,n){var i=t("../utils"),r=navigator.userAgent.indexOf("MSIE 9.0")>0;n.exports={bind:function(){var e=this,t=e.el,n=t.type,s=t.tagName;e.lock=!1,e.event=e.compiler.options.lazy||"SELECT"===s||"checkbox"===n||"radio"===n?"change":"input";var o=e.attr="checkbox"===n?"checked":"INPUT"===s||"SELECT"===s||"TEXTAREA"===s?"value":"innerHTML",a=!1;this.cLock=function(){a=!0},this.cUnlock=function(){a=!1},t.addEventListener("compositionstart",this.cLock),t.addEventListener("compositionend",this.cUnlock),e.set=e.filters?function(){if(!a){var n;try{n=t.selectionStart}catch(r){}e.vm.$set(e.key,t[o]),i.nextTick(function(){void 0!==n&&t.setSelectionRange(n,n)})}}:function(){a||(e.lock=!0,e.vm.$set(e.key,t[o]),i.nextTick(function(){e.lock=!1}))},t.addEventListener(e.event,e.set),r&&(e.onCut=function(){i.nextTick(function(){e.set()})},e.onDel=function(t){(46===t.keyCode||8===t.keyCode)&&e.set()},t.addEventListener("cut",e.onCut),t.addEventListener("keyup",e.onDel))},update:function(e){if(!this.lock){var t=this,n=t.el;if("SELECT"===n.tagName){for(var r=n.options,s=r.length,o=-1;s--;)if(r[s].value==e){o=s;break}r.selectedIndex=o}else"radio"===n.type?n.checked=e==n.value:"checkbox"===n.type?n.checked=!!e:n[t.attr]=i.toText(e)}},unbind:function(){var e=this.el;e.removeEventListener(this.event,this.set),e.removeEventListener("compositionstart",this.cLock),e.removeEventListener("compositionend",this.cUnlock),r&&(e.removeEventListener("cut",this.onCut),e.removeEventListener("keyup",this.onDel))}}}),e.register("vue/src/directives/with.js",function(e,t,n){var i;n.exports={bind:function(){this.isEmpty&&this.build()},update:function(e){this.component?this.component.$data=e:this.build(e)},build:function(e){i=i||t("../viewmodel");var n=this.Ctor||i;this.component=new n({el:this.el,data:e,compilerOptions:{parentCompiler:this.compiler}})},unbind:function(){this.component.$destroy()}}}),e.alias("component-emitter/index.js","vue/deps/emitter/index.js"),e.alias("component-emitter/index.js","emitter/index.js"),e.alias("vue/src/main.js","vue/index.js"),"object"==typeof exports?module.exports=e("vue"):"function"==typeof define&&define.amd?define(function(){return e("vue")}):this.Vue=e("vue")}(); \ No newline at end of file +!function(){function e(t,n,i){var r=e.resolve(t);if(null==r){i=i||t,n=n||"root";var s=new Error('Failed to require "'+i+'" from "'+n+'"');throw s.path=i,s.parent=n,s.require=!0,s}var o=e.modules[r];if(!o._resolving&&!o.exports){var a={};a.exports={},a.client=a.component=!0,o._resolving=!0,o.call(this,a.exports,e.relative(r),a),delete o._resolving,o.exports=a.exports}return o.exports}e.modules={},e.aliases={},e.resolve=function(t){"/"===t.charAt(0)&&(t=t.slice(1));for(var n=[t,t+".js",t+".json",t+"/index.js",t+"/index.json"],i=0;ii;++i)n[i].apply(this,t)}return this},i.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks[e]||[]},i.prototype.hasListeners=function(e){return!!this.listeners(e).length}}),e.register("vue/src/main.js",function(e,t,n){function i(e){var t=this;e=r(e,t.options,!0),l.processOptions(e);var n=function(n,i){i||(n=r(n,e,!0)),t.call(this,n,!0)},s=n.prototype=Object.create(t.prototype);l.defProtected(s,"constructor",n);var o=e.methods;if(o)for(var c in o)c in a.prototype||"function"!=typeof o[c]||(s[c]=o[c]);return n.extend=i,n.super=t,n.options=e,n}function r(e,t,n){if(e=e||l.hash(),!t)return e;for(var i in t)if("el"!==i&&"methods"!==i){var o=e[i],a=t[i],c=l.typeOf(o);n&&"Function"===c&&a?e[i]=s(o,a):n&&"Object"===c?r(o,a):void 0===o&&(e[i]=a)}return e}function s(e,t){return function(n){t.call(this,n),e.call(this,n)}}var o=t("./config"),a=t("./viewmodel"),c=t("./directives"),u=t("./filters"),l=t("./utils");a.config=function(e,t){if("string"==typeof e){if(void 0===t)return o[e];o[e]=t}else l.extend(o,e);return this},a.directive=function(e,t){return t?(c[e]=t,this):c[e]},a.filter=function(e,t){return t?(u[e]=t,this):u[e]},a.component=function(e,t){return t?(l.components[e]=l.toConstructor(t),this):l.components[e]},a.partial=function(e,t){return t?(l.partials[e]=l.toFragment(t),this):l.partials[e]},a.transition=function(e,t){return t?(l.transitions[e]=t,this):l.transitions[e]},a.extend=i,a.nextTick=l.nextTick,n.exports=a}),e.register("vue/src/emitter.js",function(e,t,n){var i,r="emitter";try{i=t(r)}catch(s){i=t("events").EventEmitter,i.prototype.off=function(){var e=arguments.length>1?this.removeListener:this.removeAllListeners;return e.apply(this,arguments)}}n.exports=i}),e.register("vue/src/config.js",function(e,t,n){function i(){s.forEach(function(e){o.attrs[e]=r+"-"+e})}var r="v",s=["pre","text","repeat","partial","with","component","component-id","transition"],o=n.exports={debug:!1,silent:!1,enterClass:"v-enter",leaveClass:"v-leave",attrs:{},get prefix(){return r},set prefix(e){r=e,i()}};i()}),e.register("vue/src/utils.js",function(e,t,n){function i(){return Object.create(null)}var r,s=t("./config"),o=s.attrs,a=Object.prototype.toString,c=Array.prototype.join,u=window.console,l=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.setTimeout,f=n.exports={hash:i,components:i(),partials:i(),transitions:i(),attr:function(e,t,n){var i=o[t],r=e.getAttribute(i);return n||null===r||e.removeAttribute(i),r},defProtected:function(e,t,n,i,r){e.hasOwnProperty(t)||Object.defineProperty(e,t,{value:n,enumerable:!!i,configurable:!!r})},typeOf:function(e){return a.call(e).slice(8,-1)},bind:function(e,t){return function(n){return e.call(t,n)}},toText:function(e){return"string"==typeof e||"boolean"==typeof e||"number"==typeof e&&e==e?e:""},extend:function(e,t,n){for(var i in t)n&&e[i]||(e[i]=t[i])},unique:function(e){for(var t,n=f.hash(),i=e.length,r=[];i--;)t=e[i],n[t]||(n[t]=1,r.push(t));return r},toFragment:function(e){if("string"!=typeof e)return e;if("#"===e.charAt(0)){var t=document.getElementById(e.slice(1));if(!t)return;e=t.innerHTML}var n,i=document.createElement("div"),r=document.createDocumentFragment();for(i.innerHTML=e.trim();n=i.firstChild;)r.appendChild(n);return r},toConstructor:function(e){return r=r||t("./viewmodel"),"Object"===f.typeOf(e)?r.extend(e):"function"==typeof e?e:null},processOptions:function(e){var t,n=e.components,i=e.partials,r=e.template;if(n)for(t in n)n[t]=f.toConstructor(n[t]);if(i)for(t in i)i[t]=f.toFragment(i[t]);r&&(e.template=f.toFragment(r))},log:function(){s.debug&&u&&u.log(c.call(arguments," "))},warn:function(){!s.silent&&u&&(u.warn(c.call(arguments," ")),s.debug&&u.trace())},nextTick:function(e){l(e,0)}}}),e.register("vue/src/compiler.js",function(e,t,n){function i(e,t){var n=this;n.init=!0,t=n.options=t||m(),c.processOptions(t);var i=n.data=t.data||{};g(e,i,!0),g(e,t.methods,!0),g(n,t.compilerOptions);var a=n.setupElement(t);d("\nnew VM instance:",a.tagName,"\n"),n.vm=e,n.bindings=m(),n.dirs=[],n.exps=[],n.computed=[],n.childCompilers=[],n.emitter=new s,b(e,"$",m()),b(e,"$el",a),b(e,"$compiler",n),b(e,"$root",r(n).vm);var u=n.parentCompiler,l=c.attr(a,"component-id");u&&(u.childCompilers.push(n),b(e,"$parent",u.vm),l&&(n.childId=l,u.vm.$[l]=e)),n.setupObserver();var f=t.computed;if(f)for(var h in f)n.createBinding(h);n.execHook("beforeCompile","created"),g(i,e),o.observe(i,"",n.observer),n.repeat&&(b(i,"$index",n.repeatIndex,!1,!0),n.createBinding("$index")),Object.defineProperty(e,"$data",{enumerable:!1,get:function(){return n.data},set:function(e){var t=n.data;o.unobserve(t,"",n.observer),n.data=e,o.copyPaths(e,t),o.observe(e,"",n.observer)}}),n.compile(a,!0),n.computed.length&&p.parse(n.computed),n.init=!1,n.execHook("afterCompile","ready")}function r(e){for(;e.parentCompiler;)e=e.parentCompiler;return e}var s=t("./emitter"),o=t("./observer"),a=t("./config"),c=t("./utils"),u=t("./binding"),l=t("./directive"),f=t("./text-parser"),p=t("./deps-parser"),h=t("./exp-parser"),v=Array.prototype.slice,d=c.log,m=c.hash,g=c.extend,b=c.defProtected,y=Object.prototype.hasOwnProperty,_=i.prototype;_.setupElement=function(e){var t=this.el="string"==typeof e.el?document.querySelector(e.el):e.el||document.createElement(e.tagName||"div"),n=e.template;if(n)if(e.replace&&1===n.childNodes.length){var i=n.childNodes[0].cloneNode(!0);t.parentNode&&(t.parentNode.insertBefore(i,t),t.parentNode.removeChild(t)),t=i}else t.innerHTML="",t.appendChild(n.cloneNode(!0));e.id&&(t.id=e.id),e.className&&(t.className=e.className);var r=e.attributes;if(r)for(var s in r)t.setAttribute(s,r[s]);return t},_.setupObserver=function(){function e(e){n[e]||t.createBinding(e)}var t=this,n=t.bindings,i=t.observer=new s;i.proxies=m(),i.on("get",function(t){e(t),p.catcher.emit("get",n[t])}).on("set",function(t,r){i.emit("change:"+t,r),e(t),n[t].update(r)}).on("mutate",function(t,r,s){i.emit("change:"+t,r,s),e(t),n[t].pub()})},_.compile=function(e,t){var n=this,i=e.nodeType,r=e.tagName;if(1===i&&"SCRIPT"!==r){if(null!==c.attr(e,"pre"))return;var s,o,a,u,f=c.attr(e,"component")||r.toLowerCase(),p=n.getOption("components",f);if(s=c.attr(e,"repeat"))u=l.parse("repeat",s,n,e),u&&(u.Ctor=p,n.bindDirective(u));else if(t||!(o=c.attr(e,"with"))&&!p){if(e.vue_trans=c.attr(e,"transition"),a=c.attr(e,"partial")){var h=n.getOption("partials",a);h&&(e.innerHTML="",e.appendChild(h.cloneNode(!0)))}n.compileNode(e)}else u=l.parse("with",o||"",n,e),u&&(u.Ctor=p,n.bindDirective(u))}else 3===i&&n.compileTextNode(e)},_.compileNode=function(e){var t,n,i=e.attributes,r=a.prefix+"-";if(i&&i.length){var s,o,c,u,p;for(t=i.length;t--;){if(s=i[t],o=!1,0===s.name.indexOf(r))for(o=!0,c=l.split(s.value),n=c.length;n--;)u=c[n],p=l.parse(s.name.slice(r.length),u,this,e),p&&this.bindDirective(p);else u=f.parseAttr(s.value),u&&(p=l.parse("attr",s.name+":"+u,this,e),p&&this.bindDirective(p));o&&e.removeAttribute(s.name)}}if(e.childNodes.length){var h=v.call(e.childNodes);for(t=0,n=h.length;n>t;t++)this.compile(h[t])}},_.compileTextNode=function(e){var t=f.parse(e.nodeValue);if(t){for(var n,i,r,s,o,a,c=0,u=t.length;u>c;c++)if(i=t[c],i.key?">"===i.key.charAt(0)?(o=i.key.slice(1).trim(),s=this.getOption("partials",o),s&&(n=s.cloneNode(!0),a=v.call(n.childNodes))):(n=document.createTextNode(""),r=l.parse("text",i.key,this,n),r&&this.bindDirective(r)):n=document.createTextNode(i),e.parentNode.insertBefore(n,e),a){for(var p=0,h=a.length;h>p;p++)this.compile(a[p]);a=null}e.parentNode.removeChild(e)}},_.bindDirective=function(e){if(this.dirs.push(e),e.isEmpty)return e.bind&&e.bind(),void 0;var t,n=this,i=e.key;if(e.isExp)t=n.createBinding(i,!0,e.isFn);else{for(;n&&!n.hasKey(i);)n=n.parentCompiler;n=n||this,t=n.bindings[i]||n.createBinding(i)}t.instances.push(e),e.binding=t,e.bind&&e.bind(),e.update(t.val(),!0)},_.createBinding=function(e,t,n){d(" created binding: "+e);var i=this,r=i.bindings,s=i.options.computed,a=new u(i,e,t,n);if(t)i.defineExp(e,a);else if(r[e]=a,a.root)s&&s[e]?i.defineComputed(e,a,s[e]):i.defineProp(e,a);else{o.ensurePath(i.data,e);var c=e.slice(0,e.lastIndexOf("."));r[c]||i.createBinding(c)}return a},_.defineProp=function(e,t){var n=this,i=n.data,r=i.__observer__;e in i||(i[e]=void 0),!r||e in r.values||o.convert(i,e),t.value=i[e],Object.defineProperty(n.vm,e,{get:function(){return n.data[e]},set:function(t){n.data[e]=t}})},_.defineExp=function(e,t){var n=h.parse(e,this);n&&(this.markComputed(t,n),this.exps.push(t))},_.defineComputed=function(e,t,n){this.markComputed(t,n);var i={get:t.value.$get,set:t.value.$set};Object.defineProperty(this.vm,e,i)},_.markComputed=function(e,t){e.isComputed=!0,e.isFn?e.value=t:("function"==typeof t&&(t={$get:t}),e.value={$get:c.bind(t.$get,this.vm),$set:t.$set?c.bind(t.$set,this.vm):void 0}),this.computed.push(e)},_.getOption=function(e,t){var n=this.options,i=this.parentCompiler;return n[e]&&n[e][t]||(i?i.getOption(e,t):c[e]&&c[e][t])},_.execHook=function(e,t){var n=this.options,i=n[e]||n[t];i&&i.call(this.vm,n)},_.hasKey=function(e){var t=e.split(".")[0];return y.call(this.data,t)||y.call(this.vm,t)},_.destroy=function(){var e,t,n,i,r,s=this,a=s.vm,c=s.el,u=s.dirs,l=s.exps,f=s.bindings;for(s.execHook("beforeDestroy"),s.observer.off(),s.emitter.off(),e=u.length;e--;)n=u[e],n.isEmpty||n.binding.compiler===s||(i=n.binding.instances,i&&i.splice(i.indexOf(n),1)),n.unbind();for(e=l.length;e--;)l[e].unbind();for(t in f)r=f[t],r&&(r.root&&o.unobserve(r.value,r.key,s.observer),r.unbind());var p=s.parentCompiler,h=s.childId;p&&(p.childCompilers.splice(p.childCompilers.indexOf(s),1),h&&delete p.vm.$[h]),c===document.body?c.innerHTML="":a.$remove(),s.execHook("afterDestroy")},n.exports=i}),e.register("vue/src/viewmodel.js",function(e,t,n){function i(e){new o(this,e)}function r(e){return"string"==typeof e?document.querySelector(e):e}function s(e,t){var n=t[0],i=e.$compiler.bindings[n];return i?i.compiler.vm:null}var o=t("./compiler"),a=t("./utils"),c=t("./transition"),u=a.defProtected,l=a.nextTick,f=i.prototype;u(f,"$set",function(e,t){var n=e.split("."),i=s(this,n);if(i){for(var r=0,o=n.length-1;o>r;r++)i=i[n[r]];i[n[r]]=t}}),u(f,"$watch",function(e,t){function n(){var e=arguments;a.nextTick(function(){t.apply(i,e)})}var i=this;t._fn=n,i.$compiler.observer.on("change:"+e,n)}),u(f,"$unwatch",function(e,t){var n=["change:"+e],i=this.$compiler.observer;t&&n.push(t._fn),i.off.apply(i,n)}),u(f,"$destroy",function(){this.$compiler.destroy()}),u(f,"$broadcast",function(){for(var e,t=this.$compiler.childCompilers,n=t.length;n--;)e=t[n],e.emitter.emit.apply(e.emitter,arguments),e.vm.$broadcast.apply(e.vm,arguments)}),u(f,"$dispatch",function(){var e=this.$compiler,t=e.emitter,n=e.parentCompiler;t.emit.apply(t,arguments),n&&n.vm.$dispatch.apply(n.vm,arguments)}),["emit","on","off","once"].forEach(function(e){u(f,"$"+e,function(){var t=this.$compiler.emitter;t[e].apply(t,arguments)})}),u(f,"$appendTo",function(e,t){e=r(e);var n=this.$el;c(n,1,function(){e.appendChild(n),t&&l(t)},this.$compiler)}),u(f,"$remove",function(e){var t=this.$el,n=t.parentNode;n&&c(t,-1,function(){n.removeChild(t),e&&l(e)},this.$compiler)}),u(f,"$before",function(e,t){e=r(e);var n=this.$el,i=e.parentNode;i&&c(n,1,function(){i.insertBefore(n,e),t&&l(t)},this.$compiler)}),u(f,"$after",function(e,t){e=r(e);var n=this.$el,i=e.parentNode,s=e.nextSibling;i&&c(n,1,function(){s?i.insertBefore(n,s):i.appendChild(n),t&&l(t)},this.$compiler)}),n.exports=i}),e.register("vue/src/binding.js",function(e,t,n){function i(e,t,n,i){this.id=s++,this.value=void 0,this.isExp=!!n,this.isFn=i,this.root=!this.isExp&&-1===t.indexOf("."),this.compiler=e,this.key=t,this.instances=[],this.subs=[],this.deps=[],this.unbound=!1}var r=t("./batcher"),s=0,o=i.prototype;o.update=function(e){(!this.isComputed||this.isFn)&&(this.value=e),r.queue(this)},o._update=function(){for(var e=this.instances.length,t=this.val();e--;)this.instances[e].update(t);this.pub()},o.val=function(){return this.isComputed&&!this.isFn?this.value.$get():this.value},o.pub=function(){for(var e=this.subs.length;e--;)this.subs[e].update()},o.unbind=function(){this.unbound=!0;for(var e=this.instances.length;e--;)this.instances[e].unbind();e=this.deps.length;for(var t;e--;)t=this.deps[e].subs,t.splice(t.indexOf(this),1)},n.exports=i}),e.register("vue/src/observer.js",function(e,t,n){function i(e){for(var t in e)s(e,t)}function r(e,t){var n=e.__observer__;if(n||(n=new h,m(e,"__observer__",n)),n.path=t,x)e.__proto__=k;else for(var i in k)m(e,i,k[i])}function s(e,t){var n=t.charAt(0);if("$"!==n&&"_"!==n||"$index"===t){var i=e.__observer__,r=i.values,s=r[t]=e[t];i.emit("set",t,s),Array.isArray(s)&&i.emit("set",t+".length",s.length),Object.defineProperty(e,t,{get:function(){var e=r[t];return C.shouldGet&&d(e)!==b&&i.emit("get",t),e},set:function(e){var n=r[t];f(n,t,i),r[t]=e,c(e,n),i.emit("set",t,e),l(e,t,i)}}),l(s,t,i)}}function o(e){p=p||t("./viewmodel");var n=d(e);return!(n!==b&&n!==y||e instanceof p)}function a(e){var t=d(e),n=e&&e.__observer__;if(t===y)n.emit("set","length",e.length);else if(t===b){var i,r;for(i in e)r=e[i],n.emit("set",i,r),a(r)}}function c(e,t){if(d(t)===b&&d(e)===b){var n,i,r,s;for(n in t)n in e||(r=t[n],i=d(r),i===b?(s=e[n]={},c(s,r)):e[n]=i===y?[]:void 0)}}function u(e,t){for(var n,i=t.split("."),r=0,o=i.length-1;o>r;r++)n=i[r],e[n]||(e[n]={},e.__observer__&&s(e,n)),e=e[n];d(e)===b&&(n=i[r],n in e||(e[n]=void 0,e.__observer__&&s(e,n)))}function l(e,t,n){if(o(e)){var s,c=t?t+".":"",u=!!e.__observer__;u||m(e,"__observer__",new h),s=e.__observer__,s.values=s.values||v.hash(),n.proxies=n.proxies||{};var l=n.proxies[c]={get:function(e){n.emit("get",c+e)},set:function(e,t){n.emit("set",c+e,t)},mutate:function(e,i,r){var s=e?c+e:t;n.emit("mutate",s,i,r);var o=r.method;"sort"!==o&&"reverse"!==o&&n.emit("set",s+".length",i.length)}};if(s.on("get",l.get).on("set",l.set).on("mutate",l.mutate),u)a(e);else{var f=d(e);f===b?i(e):f===y&&r(e)}}}function f(e,t,n){if(e&&e.__observer__){t=t?t+".":"";var i=n.proxies[t];i&&(e.__observer__.off("get",i.get).off("set",i.set).off("mutate",i.mutate),n.proxies[t]=null)}}var p,h=t("./emitter"),v=t("./utils"),d=v.typeOf,m=v.defProtected,g=Array.prototype.slice,b="Object",y="Array",_=["push","pop","shift","unshift","splice","sort","reverse"],x={}.__proto__,k=Object.create(Array.prototype);_.forEach(function(e){m(k,e,function(){var t=Array.prototype[e].apply(this,arguments);return this.__observer__.emit("mutate",this.__observer__.path,this,{method:e,args:g.call(arguments),result:t}),t},!x)});var w={remove:function(e){if("function"==typeof e){for(var t=this.length,n=[];t--;)e(this[t])&&n.push(this.splice(t,1)[0]);return n.reverse()}return"number"!=typeof e&&(e=this.indexOf(e)),e>-1?this.splice(e,1)[0]:void 0},replace:function(e,t){if("function"==typeof e){for(var n,i=this.length,r=[];i--;)n=e(this[i]),void 0!==n&&r.push(this.splice(i,1,n)[0]);return r.reverse()}return"number"!=typeof e&&(e=this.indexOf(e)),e>-1?this.splice(e,1,t)[0]:void 0}};for(var $ in w)m(k,$,w[$],!x);var C=n.exports={shouldGet:!1,observe:l,unobserve:f,ensurePath:u,convert:s,copyPaths:c,watchArray:r}}),e.register("vue/src/directive.js",function(e,t,n){function i(e,t,n,i,o){this.compiler=i,this.vm=i.vm,this.el=o;var a=""===t;if("function"==typeof e)this[a?"bind":"_update"]=e;else for(var c in e)"unbind"===c||"update"===c?this["_"+c]=e[c]:this[c]=e[c];if(a)return this.isEmpty=!0,void 0;this.expression=t.trim(),this.rawKey=n,r(this,n),this.isExp=!d.test(this.key)||v.test(this.key);var u=this.expression.slice(n.length).match(p);if(u){this.filters=[];for(var l,f=0,h=u.length;h>f;f++)l=s(u[f],this.compiler),l&&this.filters.push(l);this.filters.length||(this.filters=null)}else this.filters=null}function r(e,t){var n=t;if(t.indexOf(":")>-1){var i=t.match(f);n=i?i[2].trim():n,e.arg=i?i[1].trim():null}e.key=n}function s(e,t){var n=e.slice(1).match(h);if(n){n=n.map(function(e){return e.replace(/'/g,"").trim()});var i=n[0],r=t.getOption("filters",i)||c[i];return r?{name:i,apply:r,args:n.length>1?n.slice(1):null}:(o.warn("Unknown filter: "+i),void 0)}}var o=t("./utils"),a=t("./directives"),c=t("./filters"),u=/(?:['"](?:\\.|[^'"])*['"]|\((?:\\.|[^\)])*\)|\\.|[^,])+/g,l=/^(?:['"](?:\\.|[^'"])*['"]|\\.|[^\|]|\|\|)+/,f=/^([\w- ]+):(.+)$/,p=/\|[^\|]+/g,h=/[^\s']+|'[^']+'/g,v=/^\$(parent|root)\./,d=/^[\w\.\$]+$/,m=i.prototype;m.update=function(e,t){(t||e!==this.value)&&(this.value=e,this._update&&this._update(this.filters?this.applyFilters(e):e))},m.applyFilters=function(e){for(var t,n=e,i=0,r=this.filters.length;r>i;i++)t=this.filters[i],n=t.apply.call(this.vm,n,t.args);return n},m.unbind=function(e){this.el&&(this._unbind&&this._unbind(e),e||(this.vm=this.el=this.binding=this.compiler=null))},i.split=function(e){return e.indexOf(",")>-1?e.match(u)||[""]:[e]},i.parse=function(e,t,n,r){var s=n.getOption("directives",e)||a[e];if(!s)return o.warn("unknown directive: "+e);var c;if(t.indexOf("|")>-1){var u=t.match(l);u&&(c=u[0].trim())}else c=t.trim();return c||""===t?new i(s,t,c,n,r):o.warn("invalid directive expression: "+t)},n.exports=i}),e.register("vue/src/exp-parser.js",function(e,t,n){function i(e){return e=e.replace(p,"").replace(h,",").replace(f,"").replace(v,"").replace(d,""),e?e.split(/,+/):[]}function r(e,t){for(var n="",i=0,r=t;t&&!t.hasKey(e);)t=t.parentCompiler,i++;if(t){for(;i--;)n+="$parent.";t.bindings[e]||"$"===e.charAt(0)||t.createBinding(e)}else r.createBinding(e);return n}function s(e,t){var n;try{n=new Function(e)}catch(i){a.warn("Invalid expression: "+t)}return n}function o(e){return"$"===e.charAt(0)?"\\"+e:e}var a=t("./utils"),c=/"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'/g,u=/"(\d+)"/g,l="break,case,catch,continue,debugger,default,delete,do,else,false,finally,for,function,if,in,instanceof,new,null,return,switch,this,throw,true,try,typeof,var,void,while,with,undefined,abstract,boolean,byte,char,class,const,double,enum,export,extends,final,float,goto,implements,import,int,interface,long,native,package,private,protected,public,short,static,super,synchronized,throws,transient,volatile,arguments,let,yield,Math",f=new RegExp(["\\b"+l.replace(/,/g,"\\b|\\b")+"\\b"].join("|"),"g"),p=/\/\*(?:.|\n)*?\*\/|\/\/[^\n]*\n|\/\/[^\n]*$|'[^']*'|"[^"]*"|[\s\t\n]*\.[\s\t\n]*[$\w\.]+/g,h=/[^\w$]+/g,v=/\b\d[^,]*/g,d=/^,+|,+$/g;n.exports={parse:function(e,t){function n(e){var t=d.length;return d[t]=e,'"'+t+'"'}function l(e){var n=e.charAt(0);e=e.slice(1);var i="this."+r(e,t)+e;return v[e]||(h+=i+";",v[e]=1),n+i}function f(e,t){return d[t]}var p=i(e);if(!p.length)return s("return "+e,e);p=a.unique(p);var h="",v=a.hash(),d=[],m=new RegExp("[^$\\w\\.]("+p.map(o).join("|")+")[$\\w\\.]*\\b","g"),g=("return "+e).replace(c,n).replace(m,l).replace(u,f);return g=h+g,s(g,e)}}}),e.register("vue/src/text-parser.js",function(e){function t(e){if(!i.test(e))return null;for(var t,n,r=[];t=e.match(i);)n=t.index,n>0&&r.push(e.slice(0,n)),r.push({key:t[1].trim()}),e=e.slice(n+t[0].length);return e.length&&r.push(e),r}function n(e){var n=t(e);if(!n)return null;for(var i,r=[],s=0,o=n.length;o>s;s++)i=n[s],r.push(i.key||'"'+i+'"');return r.join("+")}var i=/\{\{(.+?)\}\}/;e.parse=t,e.parseAttr=n}),e.register("vue/src/deps-parser.js",function(e,t,n){function i(e){if(!e.isFn){s.log("\n- "+e.key);var t=s.hash();a.on("get",function(n){var i=t[n.key];i&&i.compiler===n.compiler||(t[n.key]=n,s.log(" - "+n.key),e.deps.push(n),n.subs.push(e))}),e.value.$get(),a.off("get")}}var r=t("./emitter"),s=t("./utils"),o=t("./observer"),a=new r;n.exports={catcher:a,parse:function(e){s.log("\nparsing dependencies..."),o.shouldGet=!0,e.forEach(i),o.shouldGet=!1,s.log("\ndone.")}}}),e.register("vue/src/filters.js",function(e,t,n){var i={enter:13,tab:9,"delete":46,up:38,left:37,right:39,down:40,esc:27};n.exports={capitalize:function(e){return e||0===e?(e=e.toString(),e.charAt(0).toUpperCase()+e.slice(1)):""},uppercase:function(e){return e||0===e?e.toString().toUpperCase():""},lowercase:function(e){return e||0===e?e.toString().toLowerCase():""},currency:function(e,t){if(!e&&0!==e)return"";var n=t&&t[0]||"$",i=Math.floor(e).toString(),r=i.length%3,s=r>0?i.slice(0,r)+(i.length>3?",":""):"",o="."+e.toFixed(2).slice(-2);return n+s+i.slice(r).replace(/(\d{3})(?=\d)/g,"$1,")+o},pluralize:function(e,t){return t.length>1?t[e-1]||t[t.length-1]:t[e-1]||t[0]+"s"},key:function(e,t){if(e){var n=i[t[0]];return n||(n=parseInt(t[0],10)),function(t){t.keyCode===n&&e.call(this,t)}}}}}),e.register("vue/src/transition.js",function(e,t,n){function i(e,t,n){if(!o)return n(),c.CSS_SKIP;var i=e.classList,r=e.vue_trans_cb;if(t>0){r&&(e.removeEventListener(o,r),e.vue_trans_cb=null),i.add(a.enterClass),n();{e.clientHeight}return i.remove(a.enterClass),c.CSS_E}i.add(a.leaveClass);var s=function(t){t.target===e&&(e.removeEventListener(o,s),e.vue_trans_cb=null,n(),i.remove(a.leaveClass))};return e.addEventListener(o,s),e.vue_trans_cb=s,c.CSS_L}function r(e,t,n,i,r){var s=r.getOption("transitions",i);if(!s)return n(),c.JS_SKIP;var o=s.enter,a=s.leave;return t>0?"function"!=typeof o?(n(),c.JS_SKIP_E):(o(e,n),c.JS_E):"function"!=typeof a?(n(),c.JS_SKIP_L):(a(e,n),c.JS_L)}function s(){var e=document.createElement("vue"),t="transitionend",n={transition:t,mozTransition:t,webkitTransition:"webkitTransitionEnd"};for(var i in n)if(void 0!==e.style[i])return n[i]}var o=s(),a=t("./config"),c={CSS_E:1,CSS_L:2,JS_E:3,JS_L:4,CSS_SKIP:-1,JS_SKIP:-2,JS_SKIP_E:-3,JS_SKIP_L:-4,INIT:-5,SKIP:-6},u=n.exports=function(e,t,n,s){var o=function(){n(),s.execHook(t>0?"enteredView":"leftView")};if(s.init)return o(),c.INIT;var a=e.vue_trans;return a?r(e,t,o,a,s):""===a?i(e,t,o):(o(),c.SKIP)};u.codes=c}),e.register("vue/src/batcher.js",function(e,t){function n(){for(var e=0;et;t++)this.buildItem(e.args[t],i+t)},pop:function(){var e=this.vms.pop();e&&e.$destroy()},unshift:function(e){var t,n=e.args.length;for(t=0;n>t;t++)this.buildItem(e.args[t],t)},shift:function(){var e=this.vms.shift();e&&e.$destroy()},splice:function(e){var t,n,i=e.args[0],r=e.args[1],s=e.args.length-2,o=this.vms.splice(i,r);for(t=0,n=o.length;n>t;t++)o[t].$destroy();for(t=0;s>t;t++)this.buildItem(e.args[t+2],i+t)},sort:function(){var e,t,n,i,r=this.vms,s=this.collection,o=s.length,a=new Array(o);for(e=0;o>e;e++)for(i=s[e],t=0;o>t;t++)if(n=r[t],n.$data===i){a[e]=n;break}for(e=0;o>e;e++)this.container.insertBefore(a[e].$el,this.ref);this.vms=a},reverse:function(){var e=this.vms;e.reverse();for(var t=0,n=e.length;n>t;t++)this.container.insertBefore(e[t].$el,this.ref)}};n.exports={bind:function(){var e=this,n=e.el,r=e.container=n.parentNode;i=i||t("../viewmodel"),e.Ctor=e.Ctor||i,e.hasTrans=n.hasAttribute(a.attrs.transition),e.ref=document.createComment(a.prefix+"-repeat-"+e.key),r.insertBefore(e.ref,n),r.removeChild(n),e.initiated=!1,e.collection=null,e.vms=null,e.mutationListener=function(t,n,i){var r=i.method;u[r].call(e,i),"push"!==r&&"pop"!==r&&e.updateIndexes()}},update:function(e){if(this.unbind(!0),this.container.vue_dHandlers=o.hash(),this.initiated||e&&e.length||(this.buildItem(),this.initiated=!0),e=this.collection=e||[],this.vms=[],e.__observer__||r.watchArray(e,null,new s),e.__observer__.on("mutate",this.mutationListener),e.length)for(var t=0,n=e.length;n>t;t++)this.buildItem(e[t],t)},buildItem:function(e,t){var n,i,r=this.el.cloneNode(!0),s=this.container;e&&(n=this.vms.length>t?this.vms[t].$el:this.ref,n.parentNode||(n=n.vue_ref),r.vue_trans=o.attr(r,"transition",!0),c(r,1,function(){s.insertBefore(r,n)},this.compiler)),i=new this.Ctor({el:r,data:e,compilerOptions:{repeat:!0,repeatIndex:t,repeatCollection:this.collection,parentCompiler:this.compiler,delegator:s}}),e?this.vms.splice(t,0,i):i.$destroy()},updateIndexes:function(){for(var e=this.vms.length;e--;)this.vms[e].$data.$index=e},unbind:function(){if(this.collection){this.collection.__observer__.off("mutate",this.mutationListener);for(var e=this.vms.length;e--;)this.vms[e].$destroy()}var t=this.container,n=t.vue_dHandlers;for(var i in n)t.removeEventListener(n[i].event,n[i]);t.vue_dHandlers=null}}}),e.register("vue/src/directives/on.js",function(e,t,n){function i(e,t,n){for(;e&&e!==t;){if(e[n])return e;e=e.parentNode}}var r=t("../utils");n.exports={isFn:!0,bind:function(){this.compiler.repeat&&(this.el[this.expression]=!0,this.el.vue_viewmodel=this.vm)},update:function(e){if(this.unbind(!0),"function"!=typeof e)return r.warn('Directive "on" expects a function value.');var t=this.compiler,n=this.arg,s=this.binding.isExp,o=this.binding.compiler.vm;if(t.repeat&&!this.vm.constructor.super&&"blur"!==n&&"focus"!==n){var a=t.delegator,c=this.expression,u=a.vue_dHandlers[c];if(u)return;u=a.vue_dHandlers[c]=function(t){var n=i(t.target,a,c);n&&(t.el=n,t.targetVM=n.vue_viewmodel,e.call(s?t.targetVM:o,t))},u.event=n,a.addEventListener(n,u)}else{var l=this.vm;this.handler=function(t){t.el=t.currentTarget,t.targetVM=l,e.call(o,t)},this.el.addEventListener(n,this.handler)}},unbind:function(e){this.el.removeEventListener(this.arg,this.handler),this.handler=null,e||(this.el.vue_viewmodel=null)}}}),e.register("vue/src/directives/model.js",function(e,t,n){var i=t("../utils"),r=navigator.userAgent.indexOf("MSIE 9.0")>0;n.exports={bind:function(){var e=this,t=e.el,n=t.type,s=t.tagName;e.lock=!1,e.event=e.compiler.options.lazy||"SELECT"===s||"checkbox"===n||"radio"===n?"change":"input";var o=e.attr="checkbox"===n?"checked":"INPUT"===s||"SELECT"===s||"TEXTAREA"===s?"value":"innerHTML",a=!1;this.cLock=function(){a=!0},this.cUnlock=function(){a=!1},t.addEventListener("compositionstart",this.cLock),t.addEventListener("compositionend",this.cUnlock),e.set=e.filters?function(){if(!a){var n;try{n=t.selectionStart}catch(r){}e.vm.$set(e.key,t[o]),i.nextTick(function(){void 0!==n&&t.setSelectionRange(n,n)})}}:function(){a||(e.lock=!0,e.vm.$set(e.key,t[o]),i.nextTick(function(){e.lock=!1}))},t.addEventListener(e.event,e.set),r&&(e.onCut=function(){i.nextTick(function(){e.set()})},e.onDel=function(t){(46===t.keyCode||8===t.keyCode)&&e.set()},t.addEventListener("cut",e.onCut),t.addEventListener("keyup",e.onDel))},update:function(e){if(!this.lock){var t=this,n=t.el;if("SELECT"===n.tagName){for(var r=n.options,s=r.length,o=-1;s--;)if(r[s].value==e){o=s;break}r.selectedIndex=o}else"radio"===n.type?n.checked=e==n.value:"checkbox"===n.type?n.checked=!!e:n[t.attr]=i.toText(e)}},unbind:function(){var e=this.el;e.removeEventListener(this.event,this.set),e.removeEventListener("compositionstart",this.cLock),e.removeEventListener("compositionend",this.cUnlock),r&&(e.removeEventListener("cut",this.onCut),e.removeEventListener("keyup",this.onDel))}}}),e.register("vue/src/directives/with.js",function(e,t,n){var i;n.exports={bind:function(){this.isEmpty&&this.build()},update:function(e){this.component?this.component.$data=e:this.build(e)},build:function(e){i=i||t("../viewmodel");var n=this.Ctor||i;this.component=new n({el:this.el,data:e,compilerOptions:{parentCompiler:this.compiler}})},unbind:function(){this.component.$destroy()}}}),e.alias("component-emitter/index.js","vue/deps/emitter/index.js"),e.alias("component-emitter/index.js","emitter/index.js"),e.alias("vue/src/main.js","vue/index.js"),"object"==typeof exports?module.exports=e("vue"):"function"==typeof define&&define.amd?define(function(){return e("vue")}):this.Vue=e("vue")}(); \ No newline at end of file diff --git a/package.json b/package.json index 7566b1d373d..521737af6ec 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue", - "version": "0.8.0", + "version": "0.8.1", "author": { "name": "Evan You", "email": "yyx990803@gmail.com",