/*! * Vue.js v2.0.0-beta.1 * (c) 2014-2016 Evan You * Released under the MIT License. */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Vue=t()}(this,function(){"use strict";function e(e){return null==e?"":"object"==typeof e?JSON.stringify(e,null,2):String(e)}function t(e){var t=parseFloat(e,10);return t||0===t?t:e}function n(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i-1)return e.splice(n,1)}}function i(e,t){return ar.call(e,t)}function o(e){return"string"==typeof e||"number"==typeof e}function a(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}function s(e,t){return function(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}}function c(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function u(e,t){for(var n in t)e[n]=t[n];return e}function l(e){return null!==e&&"object"==typeof e}function f(e){return dr.call(e)===vr}function d(e){for(var t=e[0]||{},n=1;n1?c(n):n;for(var r=c(arguments,1),i=0,o=n.length;i-1?pi[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:pi[e]=/HTMLUnknownElement/.test(t.toString())}function Fe(e){if("string"==typeof e){if(e=document.querySelector(e),!e)return document.createElement("div")}return e}function Ue(e){return document.createElement(e)}function He(e,t){return document.createElementNS(ci[e],t)}function ze(e){return document.createTextNode(e)}function Ve(e,t,n){e.insertBefore(t,n)}function Je(e,t){e.removeChild(t)}function Ke(e,t){e.appendChild(t)}function qe(e){return e.parentNode}function Ze(e){return e.nextSibling}function We(e){return e.tagName}function Ge(e,t){e.textContent=t}function Ye(e){return e.childNodes}function Qe(e,t,n){e.setAttribute(t,n)}function Xe(e){return null==e}function et(e){return null!=e}function tt(e,t){return e.key===t.key&&e.tag===t.tag&&!e.data==!t.data}function nt(e,t,n){var r=void 0,i=void 0,o={};for(r=t;r<=n;++r)i=e[r].key,et(i)&&(o[i]=r);return o}function rt(e){function t(e){return new zr(b.tagName(e).toLowerCase(),{},[],(void 0),e)}function n(e,t){function n(){0===--n.listeners&&r(e)}return n.listeners=t,n}function r(e){var t=b.parentNode(e);b.removeChild(t,e)}function i(e,t){var n=void 0,r=void 0,c=e.data;if(et(c)&&(et(n=c.hook)&&et(n=n.init)&&n(e),et(n=e.child)))return e.elm=e.child.$el,a(e,t),s(e),e.elm;var u=e.children,l=e.tag;if(et(l)){if(r=e.elm=e.ns?b.createElementNS(e.ns,l):b.createElement(l),s(e),Array.isArray(u))for(n=0;ns?(_=Xe(n[d+1])?null:n[d+1].elm,c(e,_,n,a,d,r)):a>d&&l(e,t,o,s)}function v(e,t,n){if(e!==t){var r=void 0,i=void 0,o=et(r=t.data);o&&et(i=r.hook)&&et(r=i.prepatch)&&r(e,t);var a=t.elm=e.elm,s=e.children,u=t.children;if(o){for(r=0;r-1?t.split(/\s+/).forEach(function(t){return e.classList.add(t)}):e.classList.add(t);else{var n=" "+e.getAttribute("class")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function vt(e,t){if(e.classList)t.indexOf(" ")>-1?t.split(/\s+/).forEach(function(t){return e.classList.remove(t)}):e.classList.remove(t);else{for(var n=" "+e.getAttribute("class")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");e.setAttribute("class",n.trim())}}function pt(e){Hi(function(){Hi(e)})}function ht(e){var t=e.elm,n=e.context;t._leaveCb&&(t._leaveCb.cancelled=!0,t._leaveCb());var r=e.data.transition;if(r){var i=gt(r,e.context),o=i.css,a=i.enterClass,s=i.enterActiveClass,c=i.appearClass,u=i.appearActiveClass,l=i.beforeEnter,f=i.enter,d=i.afterEnter,v=i.enterCancelled,p=i.beforeAppear,h=i.appear,m=i.afterAppear,g=i.appearCancelled,y=!e.context.$root._isMounted;if(!y||h||""===h){var _=y?c:a,b=y?u:s,w=y?p||l:l,$=y&&"function"==typeof h?h:f,A=y?m||d:d,x=y?g||v:v,k=o!==!1,C=$&&$.length>2,O=t._enterCb=Ct(function(){k&&wt(t,b),O.cancelled?(k&&wt(t,_),x&&x(t,n)):A&&A(t,n),t._enterCb=null});w&&w(t,n),k&&(bt(t,_),bt(t,b),pt(function(){wt(t,_),O.cancelled||C||$t(t,O)})),$&&$(t,n,O),k||C||O()}}}function mt(e,t){function n(){l&&l(r,i),h&&(bt(r,c),bt(r,u),pt(function(){wt(r,c),g.cancelled||m||$t(r,g)})),f&&f(r,i,g),h||m||g()}var r=e.elm,i=e.context;r._enterCb&&(r._enterCb.cancelled=!0,r._enterCb());var o=e.data.transition;if(!o)return t();var a=gt(o,e.context),s=a.css,c=a.leaveClass,u=a.leaveActiveClass,l=a.beforeLeave,f=a.leave,d=a.afterLeave,v=a.leaveCancelled,p=a.delayLeave,h=s!==!1,m=f&&f.length>2,g=r._leaveCb=Ct(function(){h&&wt(r,u),g.cancelled?(h&&wt(r,c),v&&v(r,i)):(t(),d&&d(r,i)),r._leaveCb=null});p?p(n):n()}function gt(e,t){var n=void 0;if(e&&"string"==typeof e)return n=ke(t.$options,"transitions",e),n?yt(n.name||e,n):zi(e);if("object"==typeof e){if(e.name&&(n=ke(t.$options,"transitions",e.name)),n=n?u(yt(e.name,n),e):yt(e.name,e),e.hooks)for(var r in e.hooks)_t(n,r,e.hooks[r]);return n}return zi("v")}function yt(e,t){e=e||"v";var n={};return t.css!==!1&&u(n,zi(e)),u(n,t),n}function _t(e,t,n){var r=e[t];r?e[t]=function(){r.apply(this,arguments),n()}:e[t]=n}function bt(e,t){(e._transitionClasses||(e._transitionClasses=[])).push(t),dt(e,t)}function wt(e,t){r(e._transitionClasses,t),vt(e,t)}function $t(e,t){var n=At(e),r=n.type,i=n.timeout,o=n.propCount;if(!r)return t();var a=r===Ri?Bi:Ui,s=0,c=function(){e.removeEventListener(a,u),t()},u=function(){++s>=o&&c()};setTimeout(function(){s0?a>s?Ri:Pi:null,l=u?u===Ri?r.length:o.length:0;return{type:u,timeout:c,propCount:l}}function xt(e,t){return Math.max.apply(null,t.map(function(t,n){return kt(t)+kt(e[n])}))}function kt(e){return 1e3*Number(e.slice(0,-1))}function Ct(e){var t=!1;return function(){t||(t=!0,e())}}function Ot(e){return!!(e.parent&&e.parent.data.transition||e.data.show)}function Tt(e,t,n){var r=t.value,i=e.multiple;if(i){if(!Array.isArray(r))return}else e.selectedIndex=-1;for(var o=0,a=e.options.length;o-1;else if(Lt(s)===r){e.selectedIndex=o;break}}}function jt(e,t){for(var n=0,r=t.length;n=0&&a[o].tag.toLowerCase()!==s;o--);}else o=0;if(o>=0){for(var c=a.length-1;c>=o;c--)t.end&&t.end(a[c].tag,r,i);a.length=o,d=o&&a[o-1].tag}else"br"===n.toLowerCase()?t.start&&t.start(n,[],!0,r,i):"p"===n.toLowerCase()&&(t.start&&t.start(n,[],!1,r,i),t.end&&t.end(n,r,i))}for(var a=[],s=Pt(t),c=t.expectHTML,u=t.isUnaryTag||pr,l=0,f=void 0,d=void 0;e;){if(f=e,d&&fo(d))!function(){var n=d.toLowerCase(),r=vo[n]||(vo[n]=new RegExp("([\\s\\S]*?)(]*>)","i")),i=0,a=e.replace(r,function(e,r,o){return i=o.length,"script"!==n&&"style"!==n&&"noscript"!==n&&(r=r.replace(//g,"$1").replace(//g,"$1")),t.chars&&t.chars(r),""});l+=e.length-a.length,e=a,o("",n,l-i,l)}();else{var v=e.indexOf("<");if(0===v){if(/^");if(p>=0){n(p+3);continue}}if(/^");if(h>=0){n(h+2);continue}}var m=e.match(uo);if(m){t.doctype&&t.doctype(m[0]),n(m[0].length);continue}var g=e.match(co);if(g){var y=l;n(g[0].length),o(g[0],g[1],y,l);continue}var _=r();if(_){i(_);continue}}var b=void 0;v>=0?(b=e.substring(0,v),n(v)):(b=e,e=""),t.chars&&t.chars(b)}if(e===f)throw new Error("Error parsing template:\n\n"+e)}o()}function Ft(e){function t(){(d||(d=[])).push(e.slice(s,l).trim()),s=l+1}var n=!1,r=!1,i=0,o=0,a=0,s=0,c=void 0,u=void 0,l=void 0,f=void 0,d=void 0;for(l=0;li&&r.push(JSON.stringify(e.slice(i,a)));var s=Ft(o[1].trim());r.push("_s("+s+")"),i=a+o[0].length}return i-1")+(":("+t+")===("+r+")")),Gt(e,"change","var $$a="+t+",$$el=$event.target,"+("$$c=$$el.checked?("+r+"):("+i+");")+"if(Array.isArray($$a)){"+("var $$v="+n+",")+"$$i=$$a.indexOf($$v);if($$c){$$i<0&&$$a.push($$v)}else{$$i>-1&&$$a.splice($$i,1)}"+("}else{"+t+"=$$c}"))}function Gn(e,t){var n=Yt(e,"value");Jt(e,"checked","("+t+")===("+n+")"),Gt(e,"change",t+"="+n)}function Yn(e,t,n){var r=e.attrsMap.type,i=n||{},o=i.lazy,a=i.number,s=i.trim,c=o?"change":"input",u=!o&&"range"!==r,l="input"===e.tag||"textarea"===e.tag,f=l?"$event.target.value"+(s?".trim()":""):"$event",d=a||"number"===r?t+"=_n("+f+")":t+"="+f;if(l&&u&&(d="if($event.target.composing)return;"+d),Jt(e,"value",l?"_s("+t+")":"("+t+")"),Gt(e,c,d),u)return!0}function Qn(e,t){var n=t+'=Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){return "_value" in o ? o._value : o.value})'+(null==e.attrsMap.multiple?"[0]":"");return Gt(e,"change",n),!0}function Xn(e,t){t.value&&Jt(e,"textContent","_s("+t.value+")")}function er(e,t){t.value&&Jt(e,"innerHTML","_s("+t.value+")")}function tr(e,t){return t=t?u(u({},ta),t):ta,Fn(e,t)}function nr(e,t,n){var r=(t&&t.warn||Wr,t&&t.delimiters?String(t.delimiters)+e:e);if(ea[r])return ea[r];var i={},o=tr(e,t);i.render=rr(o.render);var a=o.staticRenderFns.length;i.staticRenderFns=new Array(a);for(var s=0;s=9&&Number(Ar[1])>=3&&!window.indexedDB,kr=function(){function e(){n=!1;var e=t.slice(0);t=[];for(var r=0;r0,yi=hi&&hi.indexOf("android")>0,_i=Object.freeze({createElement:Ue,createElementNS:He,createTextNode:ze,insertBefore:Ve,removeChild:Je,appendChild:Ke,parentNode:qe,nextSibling:Ze,tagName:We,setTextContent:Ge,childNodes:Ye,setAttribute:Qe}),bi={},wi=new zr("",bi,[]),$i=["create","update","postpatch","remove","destroy"],Ai={create:function(e,t){it(e,t,"bind")},update:function(e,t){it(e,t,"update")},postpatch:function(e,t){it(e,t,"componentUpdated")},destroy:function(e){it(e,e,"unbind")}},xi=Object.create(null),ki={create:function(e,t){ot(t)},update:function(e,t){e.data.ref!==t.data.ref&&(ot(e,!0),ot(t))},destroy:function(e){ot(e,!0)}},Ci=[ki,Ai],Oi={create:function(e,t){var n=t.data.staticAttrs;if(n)for(var r in n)st(t.elm,r,n[r]);at(e,t)},update:at},Ti={create:ct,update:ct},ji={create:ut,update:ut},Li={create:lt,update:lt},Ei=["Webkit","Moz","ms"],Si=void 0,Ni=a(function(e){if(Si=Si||document.createElement("div"),e=cr(e),"filter"!==e&&e in Si.style)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n\/=]+)/,to=/=/,no=[to],ro=[/"([^"]*)"+/.source,/'([^']*)'+/.source,/([^\s"'=<>`]+)/.source],io="[a-zA-Z_][\\w\\-\\.]*",oo="((?:"+io+"\\:)?"+io+")",ao=new RegExp("^<"+oo),so=/^\s*(\/?)>/,co=new RegExp("^<\\/"+oo+"[^>]*>"),uo=/^]+>/i,lo=!1;"x".replace(/x(.)?/g,function(e,t){lo=""===t});var fo=n("script,style",!0),vo={},po=/\{\{((?:.|\\n)+?)\}\}/g,ho=/[-.*+?^${}()|[\]\/\\]/g,mo=a(function(e){var t=e[0].replace(ho,"\\$&"),n=e[1].replace(ho,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")}),go=/^v-|^@|^:/,yo=/(.*)\s+(?:in|of)\s+(.*)/,_o=/\(([^,]*),([^,]*)(?:,([^,]*))?\)/,bo=/^:|^v-bind:/,wo=/^@|^v-on:/,$o=/:(.*)$/,Ao=/\.[^\.]+/g,xo=a(Rt),ko=void 0,Co=void 0,Oo=void 0,To=void 0,jo=void 0,Lo=void 0,Eo=void 0,So=/^xmlns:NS\d+/,No=/^NS\d+:/,Do=void 0,Mo=void 0,Ro=a(yn),Po=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['.*?'\]|\[".*?"\]|\[\d+\]|\[[A-Za-z_$][\w$]*\])*$/,Io={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Bo={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:"if($event.target !== $event.currentTarget)return;"},Fo={bind:kn,cloak:v},Uo=void 0,Ho=void 0,zo=void 0,Vo=void 0,Jo=void 0,Ko=void 0,qo=void 0,Zo=(new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),{staticKeys:["staticClass"],transformNode:Un,genData:Hn}),Wo={transformNode:zn,genData:Vn},Go={transformNode:Jn,genData:Kn,transformCode:qn},Yo=[Zo,Wo,Go],Qo=void 0,Xo={model:Zn,text:Xn,html:er},ea=Object.create(null),ta={isIE:mi,expectHTML:!0,modules:Yo,staticKeys:p(Yo),directives:Xo,isReservedTag:ui,isUnaryTag:li,mustUseProp:ti,getTagNamespace:Ie},na=a(function(e){var t=Fe(e);return t&&t.innerHTML}),ra=ge.prototype.$mount;return ge.prototype.$mount=function(e,t){e=e&&Fe(e);var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=na(r));else{if(!r.nodeType)return this;r=r.innerHTML}else e&&(r=ir(e));if(r){var i=nr(r,{delimiters:n.delimiters,warn:Wr},this),o=i.render,a=i.staticRenderFns;n.render=o,n.staticRenderFns=a}}return ra.call(this,e,t)},ge.compile=nr,ge});