diff --git a/dist/vue-awesome-picker.js b/dist/vue-awesome-picker.js index 6accafe..25ff15d 100644 --- a/dist/vue-awesome-picker.js +++ b/dist/vue-awesome-picker.js @@ -1,12 +1,12 @@ -!function(i,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("VueAwesomePicker",[],e):"object"==typeof exports?exports.VueAwesomePicker=e():i.VueAwesomePicker=e()}("undefined"!=typeof self?self:this,function(){return function(i){function e(a){if(t[a])return t[a].exports;var n=t[a]={i:a,l:!1,exports:{}};return i[a].call(n.exports,n,n.exports,e),n.l=!0,n.exports}var t={};return e.m=i,e.c=t,e.d=function(i,t,a){e.o(i,t)||Object.defineProperty(i,t,{configurable:!1,enumerable:!0,get:a})},e.n=function(i){var t=i&&i.__esModule?function(){return i.default}:function(){return i};return e.d(t,"a",t),t},e.o=function(i,e){return Object.prototype.hasOwnProperty.call(i,e)},e.p="dist/",e(e.s=7)}([function(i,e){var t;t=function(){return this}();try{t=t||Function("return this")()||(0,eval)("this")}catch(i){"object"==typeof window&&(t=window)}i.exports=t},function(i,e){function t(i,e){var t=i[1]||"",n=i[3];if(!n)return t;if(e&&"function"==typeof btoa){var c=a(n);return[t].concat(n.sources.map(function(i){return"/*# sourceURL="+n.sourceRoot+i+" */"})).concat([c]).join("\n")}return[t].join("\n")}function a(i){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"}i.exports=function(i){var e=[];return e.toString=function(){return this.map(function(e){var a=t(e,i);return e[2]?"@media "+e[2]+"{"+a+"}":a}).join("")},e.i=function(i,t){"string"==typeof i&&(i=[[null,i,""]]);for(var a={},n=0;nt.parts.length&&(a.parts.length=t.parts.length)}else{for(var l=[],n=0;n-1?i.pickerData[t].indexOf(e.value):0:e}),e.slice()},show:function(){var i=this;this.display=!0,!this.wheels.length||this.dataChange?this.$nextTick(function(){"cascade"===i.dataType&&i._updatePickerData();var e=i.$refs.wheelWrapper;i.pickerData.forEach(function(t,a){i._createWheel(e,a).enable()}),i._wheelToAnchor(i.proxyAnchor),i.dataChange&&i._destroyExtraWheels(),i.dataChange=!1}):this.wheels.forEach(function(i){i.enable()})},hide:function(){this.wheels.forEach(function(i){i.disable()}),this.display=!1},_createWheel:function(i,e){var t=this;if(this.wheels[e])this.wheels[e].refresh();else{(this.wheels[e]=new a.a(i.children[e],{wheel:{selectedIndex:0,rotate:25},swipeTime:this.swipeTime})).on("scrollEnd",function(){t._cascadePickerChange(e)})}return this.wheels[e]},_cascadePickerChange:function(i){if("cascade"===this.dataType){var e=this._getCurrentValue()[i].index;e!==this.pickerAnchor[i]&&(this.pickerAnchor.splice(i,1,e),this._updatePickerData(i+1))}},_wheelToAnchor:function(i){this.wheels.forEach(function(e,t){e.wheelTo(i[t]||0)})},_getCurrentValue:function(){var i=this,e=[];return this.wheels.forEach(function(t,a){var n=t.getSelectedIndex();e.push({index:n,value:i.pickerData[a][n]})}),e},_setPickerData:function(){var i=this;this.pickerData=this._dataGetter(),this.pickerAnchor=this._anchorGetter(),this.display?this.$nextTick(function(){var e=i.$refs.wheelWrapper;i.pickerData.forEach(function(t,a){i._createWheel(e,a)}),i._wheelToAnchor(i.proxyAnchor),i._destroyExtraWheels()}):this.dataChange=!0},_destroyExtraWheels:function(){var i=this.pickerData.length;if(i0&&void 0!==arguments[0]?arguments[0]:0,t=this.proxyData.slice(),a=0;t;)a>=e&&function(){var n=[];t.forEach(function(i){n.push(i.value)}),i.pickerData[a]=n,i.pickerAnchor[a]=0===e?i.pickerAnchor[a]2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",n=[],c=i;c<=e;c++){var l=(t&&c<10?"0"+c:c)+a;n.push(l)}return n}},function(i,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=t(8),n=t(12),c=t(18),l=t(26);t.n(l);a.a.use(c.a),new a.a({el:"#app",render:function(i){return i(n.a)}})},function(i,e,t){"use strict";(function(i,t){function a(i){return void 0===i||null===i}function n(i){return void 0!==i&&null!==i}function c(i){return!0===i}function l(i){return!1===i}function r(i){return"string"==typeof i||"number"==typeof i||"symbol"==typeof i||"boolean"==typeof i}function u(i){return null!==i&&"object"==typeof i}function o(i){return"[object Object]"===tc.call(i)}function d(i){return"[object RegExp]"===tc.call(i)}function v(i){var e=parseFloat(String(i));return e>=0&&Math.floor(e)===e&&isFinite(i)}function s(i){return null==i?"":"object"==typeof i?JSON.stringify(i,null,2):String(i)}function y(i){var e=parseFloat(i);return isNaN(e)?i:e}function p(i,e){for(var t=Object.create(null),a=i.split(","),n=0;n-1)return i.splice(t,1)}}function f(i,e){return cc.call(i,e)}function m(i){var e=Object.create(null);return function(t){return e[t]||(e[t]=i(t))}}function g(i,e){function t(t){var a=arguments.length;return a?a>1?i.apply(e,arguments):i.call(e,t):i.call(e)}return t._length=i.length,t}function _(i,e){e=e||0;for(var t=i.length-e,a=new Array(t);t--;)a[t]=i[t+e];return a}function b(i,e){for(var t in e)i[t]=e[t];return i}function w(i){for(var e={},t=0;t0&&(l=mi(l,(e||"")+"_"+t),fi(l[0])&&fi(o)&&(d[u]=M(o.text+l[0].text),l.shift()),d.push.apply(d,l)):r(l)?fi(o)?d[u]=M(o.text+l):""!==l&&d.push(M(l)):fi(l)&&fi(o)?d[u]=M(o.text+l.text):(c(i._isVList)&&n(l.tag)&&a(l.key)&&n(e)&&(l.key="__vlist"+e+"_"+t+"__"),d.push(l)));return d}function gi(i,e){return(i.__esModule||Ic&&"Module"===i[Symbol.toStringTag])&&(i=i.default),u(i)?e.extend(i):i}function _i(i,e,t,a,n){var c=Rc();return c.asyncFactory=i,c.asyncMeta={data:e,context:t,children:a,tag:n},c}function bi(i,e,t){if(c(i.error)&&n(i.errorComp))return i.errorComp;if(n(i.resolved))return i.resolved;if(c(i.loading)&&n(i.loadingComp))return i.loadingComp;if(!n(i.contexts)){var l=i.contexts=[t],r=!0,o=function(){for(var i=0,e=l.length;iyl&&ul[t].id>i.id;)t--;ul.splice(t+1,0,i)}else ul.push(i);vl||(vl=!0,li(ji))}}function Wi(i,e,t){fl.get=function(){return this[e][t]},fl.set=function(i){this[e][t]=i},Object.defineProperty(i,t,fl)}function zi(i){i._watchers=[];var e=i.$options;e.props&&Ui(i,e.props),e.methods&&Gi(i,e.methods),e.data?Bi(i):X(i._data={},!0),e.computed&&qi(i,e.computed),e.watch&&e.watch!==Ac&&Zi(i,e.watch)}function Ui(i,e){var t=i.$options.propsData||{},a=i._props={},n=i.$options._propKeys=[],c=!i.$parent;Bc.shouldConvert=c;for(var l in e)!function(c){n.push(c);var l=G(c,e,t,i);j(a,c,l),c in i||Wi(i,"_props",c)}(l);Bc.shouldConvert=!0}function Bi(i){var e=i.$options.data;e=i._data="function"==typeof e?Vi(e,i):e||{},o(e)||(e={});for(var t=Object.keys(e),a=i.$options.props,n=(i.$options.methods,t.length);n--;){var c=t[n];a&&f(a,c)||S(c)||Wi(i,"_data",c)}X(e,!0)}function Vi(i,e){try{return i.call(e,e)}catch(i){return ei(i,e,"data()"),{}}}function qi(i,e){var t=i._computedWatchers=Object.create(null),a=Dc();for(var n in e){var c=e[n],l="function"==typeof c?c:c.get;a||(t[n]=new hl(i,l||x,x,ml)),n in i||Ji(i,n,c)}}function Ji(i,e,t){var a=!Dc();"function"==typeof t?(fl.get=a?Ki(e):t,fl.set=x):(fl.get=t.get?a&&!1!==t.cache?Ki(e):t.get:x,fl.set=t.set?t.set:x),Object.defineProperty(i,e,fl)}function Ki(i){return function(){var e=this._computedWatchers&&this._computedWatchers[i];if(e)return e.dirty&&e.evaluate(),jc.target&&e.depend(),e.value}}function Gi(i,e){i.$options.props;for(var t in e)i[t]=null==e[t]?x:g(e[t],i)}function Zi(i,e){for(var t in e){var a=e[t];if(Array.isArray(a))for(var n=0;n=0||t.indexOf(i[n])<0)&&a.push(i[n]);return a}return i}function Pe(i){this._init(i)}function Ee(i){i.use=function(i){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(i)>-1)return this;var t=_(arguments,1);return t.unshift(this),"function"==typeof i.install?i.install.apply(i,t):"function"==typeof i&&i.apply(null,t),e.push(i),this}}function Me(i){i.mixin=function(i){return this.options=J(this.options,i),this}}function De(i){i.cid=0;var e=1;i.extend=function(i){i=i||{};var t=this,a=t.cid,n=i._Ctor||(i._Ctor={});if(n[a])return n[a];var c=i.name||t.options.name,l=function(i){this._init(i)};return l.prototype=Object.create(t.prototype),l.prototype.constructor=l,l.cid=e++,l.options=J(t.options,i),l.super=t,l.options.props&&Le(l),l.options.computed&&Ie(l),l.extend=t.extend,l.mixin=t.mixin,l.use=t.use,pc.forEach(function(i){l[i]=t[i]}),c&&(l.options.components[c]=l),l.superOptions=t.options,l.extendOptions=i,l.sealedOptions=b({},l.options),n[a]=l,l}}function Le(i){var e=i.options.props;for(var t in e)Wi(i.prototype,"_props",t)}function Ie(i){var e=i.options.computed;for(var t in e)Ji(i.prototype,t,e[t])}function Ne(i){pc.forEach(function(e){i[e]=function(i,t){return t?("component"===e&&o(t)&&(t.name=t.name||i,t=this.options._base.extend(t)),"directive"===e&&"function"==typeof t&&(t={bind:t,update:t}),this.options[e+"s"][i]=t,t):this.options[e+"s"][i]}})}function Xe(i){return i&&(i.Ctor.options.name||i.tag)}function je(i,e){return Array.isArray(i)?i.indexOf(e)>-1:"string"==typeof i?i.split(",").indexOf(e)>-1:!!d(i)&&i.test(e)}function Ye(i,e){var t=i.cache,a=i.keys,n=i._vnode;for(var c in t){var l=t[c];if(l){var r=Xe(l.componentOptions);r&&!e(r)&&Fe(t,c,a,n)}}}function Fe(i,e,t,a){var n=i[e];!n||a&&n.tag===a.tag||n.componentInstance.$destroy(),i[e]=null,h(t,e)}function He(i){for(var e=i.data,t=i,a=i;n(a.componentInstance);)(a=a.componentInstance._vnode)&&a.data&&(e=Re(a.data,e));for(;n(t=t.parent);)t&&t.data&&(e=Re(e,t.data));return We(e.staticClass,e.class)}function Re(i,e){return{staticClass:ze(i.staticClass,e.staticClass),class:n(i.class)?[i.class,e.class]:e.class}}function We(i,e){return n(i)||n(e)?ze(i,Ue(e)):""}function ze(i,e){return i?e?i+" "+e:i:e||""}function Ue(i){return Array.isArray(i)?Be(i):u(i)?Ve(i):"string"==typeof i?i:""}function Be(i){for(var e,t="",a=0,c=i.length;a-1?Jl[i]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Jl[i]=/HTMLUnknownElement/.test(e.toString())}function Ke(i){if("string"==typeof i){var e=document.querySelector(i);return e||document.createElement("div")}return i}function Ge(i,e){var t=document.createElement(i);return"select"!==i?t:(e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&t.setAttribute("multiple","multiple"),t)}function Ze(i,e){return document.createElementNS(zl[i],e)}function Qe(i){return document.createTextNode(i)}function it(i){return document.createComment(i)}function et(i,e,t){i.insertBefore(e,t)}function tt(i,e){i.removeChild(e)}function at(i,e){i.appendChild(e)}function nt(i){return i.parentNode}function ct(i){return i.nextSibling}function lt(i){return i.tagName}function rt(i,e){i.textContent=e}function ut(i,e,t){i.setAttribute(e,t)}function ot(i,e){var t=i.data.ref;if(t){var a=i.context,n=i.componentInstance||i.elm,c=a.$refs;e?Array.isArray(c[t])?h(c[t],n):c[t]===n&&(c[t]=void 0):i.data.refInFor?Array.isArray(c[t])?c[t].indexOf(n)<0&&c[t].push(n):c[t]=[n]:c[t]=n}}function dt(i,e){return i.key===e.key&&(i.tag===e.tag&&i.isComment===e.isComment&&n(i.data)===n(e.data)&&vt(i,e)||c(i.isAsyncPlaceholder)&&i.asyncFactory===e.asyncFactory&&a(e.asyncFactory.error))}function vt(i,e){if("input"!==i.tag)return!0;var t,a=n(t=i.data)&&n(t=t.attrs)&&t.type,c=n(t=e.data)&&n(t=t.attrs)&&t.type;return a===c||Kl(a)&&Kl(c)}function st(i,e,t){var a,c,l={};for(a=e;a<=t;++a)c=i[a].key,n(c)&&(l[c]=a);return l}function yt(i,e){(i.data.directives||e.data.directives)&&pt(i,e)}function pt(i,e){var t,a,n,c=i===Ql,l=e===Ql,r=ht(i.data.directives,i.context),u=ht(e.data.directives,e.context),o=[],d=[];for(t in u)a=r[t],n=u[t],a?(n.oldValue=a.value,mt(n,"update",e,i),n.def&&n.def.componentUpdated&&d.push(n)):(mt(n,"bind",e,i),n.def&&n.def.inserted&&o.push(n));if(o.length){var v=function(){for(var t=0;t=0&&" "===(f=i.charAt(h));h--);f&&lr.test(f)||(d=!0)}}else void 0===c?(p=n+1,c=i.slice(0,n).trim()):e();if(void 0===c?c=i.slice(0,n).trim():0!==p&&e(),l)for(n=0;n-1?{exp:i.slice(0,Ol),key:'"'+i.slice(Ol+1)+'"'}:{exp:i,key:null};for($l=i,Ol=Pl=El=0;!Nt();)Al=It(),Xt(Al)?Yt(Al):91===Al&&jt(Al);return{exp:i.slice(0,Pl),key:i.slice(Pl+1,El)}}function It(){return $l.charCodeAt(++Ol)}function Nt(){return Ol>=Sl}function Xt(i){return 34===i||39===i}function jt(i){var e=1;for(Pl=Ol;!Nt();)if(i=It(),Xt(i))Yt(i);else if(91===i&&e++,93===i&&e--,0===e){El=Ol;break}}function Yt(i){for(var e=i;!Nt()&&(i=It())!==e;);}function Ft(i,e,t){Ml=t;var a=e.value,n=e.modifiers,c=i.tag,l=i.attrsMap.type;if(i.component)return Mt(i,a,n),!1;if("select"===c)Wt(i,a,n);else if("input"===c&&"checkbox"===l)Ht(i,a,n);else if("input"===c&&"radio"===l)Rt(i,a,n);else if("input"===c||"textarea"===c)zt(i,a,n);else if(!fc.isReservedTag(c))return Mt(i,a,n),!1;return!0}function Ht(i,e,t){var a=t&&t.number,n=Pt(i,"value")||"null",c=Pt(i,"true-value")||"true",l=Pt(i,"false-value")||"false";Ct(i,"checked","Array.isArray("+e+")?_i("+e+","+n+")>-1"+("true"===c?":("+e+")":":_q("+e+","+c+")")),Ot(i,"change","var $$a="+e+",$$el=$event.target,$$c=$$el.checked?("+c+"):("+l+");if(Array.isArray($$a)){var $$v="+(a?"_n("+n+")":n)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+e+"=$$a.concat([$$v]))}else{$$i>-1&&("+e+"=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{"+Dt(e,"$$c")+"}",null,!0)}function Rt(i,e,t){var a=t&&t.number,n=Pt(i,"value")||"null";n=a?"_n("+n+")":n,Ct(i,"checked","_q("+e+","+n+")"),Ot(i,"change",Dt(e,n),null,!0)}function Wt(i,e,t){var a=t&&t.number,n='Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(a?"_n(val)":"val")+"})",c="var $$selectedVal = "+n+";";c=c+" "+Dt(e,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),Ot(i,"change",c,null,!0)}function zt(i,e,t){var a=i.attrsMap.type,n=t||{},c=n.lazy,l=n.number,r=n.trim,u=!c&&"range"!==a,o=c?"change":"range"===a?rr:"input",d="$event.target.value";r&&(d="$event.target.value.trim()"),l&&(d="_n("+d+")");var v=Dt(e,d);u&&(v="if($event.target.composing)return;"+v),Ct(i,"value","("+e+")"),Ot(i,o,v,null,!0),(r||l)&&Ot(i,"blur","$forceUpdate()")}function Ut(i){if(n(i[rr])){var e=kc?"change":"input";i[e]=[].concat(i[rr],i[e]||[]),delete i[rr]}n(i[ur])&&(i.change=[].concat(i[ur],i.change||[]),delete i[ur])}function Bt(i,e,t){var a=Dl;return function n(){null!==i.apply(null,arguments)&&qt(e,n,t,a)}}function Vt(i,e,t,a,n){e=ci(e),t&&(e=Bt(e,i,a)),Dl.addEventListener(i,e,Oc?{capture:a,passive:n}:a)}function qt(i,e,t,a){(a||Dl).removeEventListener(i,e._withTask||e,t)}function Jt(i,e){if(!a(i.data.on)||!a(e.data.on)){var t=e.data.on||{},n=i.data.on||{};Dl=e.elm,Ut(t),di(t,n,Vt,qt,e.context),Dl=void 0}}function Kt(i,e){if(!a(i.data.domProps)||!a(e.data.domProps)){var t,c,l=e.elm,r=i.data.domProps||{},u=e.data.domProps||{};n(u.__ob__)&&(u=e.data.domProps=b({},u));for(t in r)a(u[t])&&(l[t]="");for(t in u){if(c=u[t],"textContent"===t||"innerHTML"===t){if(e.children&&(e.children.length=0),c===r[t])continue;1===l.childNodes.length&&l.removeChild(l.childNodes[0])}if("value"===t){l._value=c;var o=a(c)?"":String(c);Gt(l,o)&&(l.value=o)}else l[t]=c}}}function Gt(i,e){return!i.composing&&("OPTION"===i.tagName||Zt(i,e)||Qt(i,e))}function Zt(i,e){var t=!0;try{t=document.activeElement!==i}catch(i){}return t&&i.value!==e}function Qt(i,e){var t=i.value,a=i._vModifiers;if(n(a)){if(a.lazy)return!1;if(a.number)return y(t)!==y(e);if(a.trim)return t.trim()!==e.trim()}return t!==e}function ia(i){var e=ea(i.style);return i.staticStyle?b(i.staticStyle,e):e}function ea(i){return Array.isArray(i)?w(i):"string"==typeof i?vr(i):i}function ta(i,e){var t,a={};if(e)for(var n=i;n.componentInstance;)(n=n.componentInstance._vnode)&&n.data&&(t=ia(n.data))&&b(a,t);(t=ia(i.data))&&b(a,t);for(var c=i;c=c.parent;)c.data&&(t=ia(c.data))&&b(a,t);return a}function aa(i,e){var t=e.data,c=i.data;if(!(a(t.staticStyle)&&a(t.style)&&a(c.staticStyle)&&a(c.style))){var l,r,u=e.elm,o=c.staticStyle,d=c.normalizedStyle||c.style||{},v=o||d,s=ea(e.data.style)||{};e.data.normalizedStyle=n(s.__ob__)?b({},s):s;var y=ta(e,!0);for(r in v)a(y[r])&&pr(u,r,"");for(r in y)(l=y[r])!==v[r]&&pr(u,r,null==l?"":l)}}function na(i,e){if(e&&(e=e.trim()))if(i.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return i.classList.add(e)}):i.classList.add(e);else{var t=" "+(i.getAttribute("class")||"")+" ";t.indexOf(" "+e+" ")<0&&i.setAttribute("class",(t+e).trim())}}function ca(i,e){if(e&&(e=e.trim()))if(i.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return i.classList.remove(e)}):i.classList.remove(e),i.classList.length||i.removeAttribute("class");else{for(var t=" "+(i.getAttribute("class")||"")+" ",a=" "+e+" ";t.indexOf(a)>=0;)t=t.replace(a," ");t=t.trim(),t?i.setAttribute("class",t):i.removeAttribute("class")}}function la(i){if(i){if("object"==typeof i){var e={};return!1!==i.css&&b(e,gr(i.name||"v")),b(e,i),e}return"string"==typeof i?gr(i):void 0}}function ra(i){Sr(function(){Sr(i)})}function ua(i,e){var t=i._transitionClasses||(i._transitionClasses=[]);t.indexOf(e)<0&&(t.push(e),na(i,e))}function oa(i,e){i._transitionClasses&&h(i._transitionClasses,e),ca(i,e)}function da(i,e,t){var a=va(i,e),n=a.type,c=a.timeout,l=a.propCount;if(!n)return t();var r=n===br?kr:Cr,u=0,o=function(){i.removeEventListener(r,d),t()},d=function(e){e.target===i&&++u>=l&&o()};setTimeout(function(){u0&&(t=br,d=l,v=c.length):e===wr?o>0&&(t=wr,d=o,v=u.length):(d=Math.max(l,o),t=d>0?l>o?br:wr:null,v=t?t===br?c.length:u.length:0),{type:t,timeout:d,propCount:v,hasTransform:t===br&&$r.test(a[xr+"Property"])}}function sa(i,e){for(;i.length1}function ga(i,e){!0!==e.data.show&&pa(e)}function _a(i,e,t){ba(i,e,t),(kc||Cc)&&setTimeout(function(){ba(i,e,t)},0)}function ba(i,e,t){var a=e.value,n=i.multiple;if(!n||Array.isArray(a)){for(var c,l,r=0,u=i.options.length;r-1,l.selected!==c&&(l.selected=c);else if(k(xa(l),a))return void(i.selectedIndex!==r&&(i.selectedIndex=r));n||(i.selectedIndex=-1)}}function wa(i,e){return e.every(function(e){return!k(e,i)})}function xa(i){return"_value"in i?i._value:i.value}function ka(i){i.target.composing=!0}function Ta(i){i.target.composing&&(i.target.composing=!1,Ca(i.target,"input"))}function Ca(i,e){var t=document.createEvent("HTMLEvents");t.initEvent(e,!0,!0),i.dispatchEvent(t)}function Sa(i){return!i.componentInstance||i.data&&i.data.transition?i:Sa(i.componentInstance._vnode)}function $a(i){var e=i&&i.componentOptions;return e&&e.Ctor.options.abstract?$a(xi(e.children)):i}function Aa(i){var e={},t=i.$options;for(var a in t.propsData)e[a]=i[a];var n=t._parentListeners;for(var c in n)e[rc(c)]=n[c];return e}function Oa(i,e){if(/\d-keep-alive$/.test(e.tag))return i("keep-alive",{props:e.componentOptions.propsData})}function Pa(i){for(;i=i.parent;)if(i.data.transition)return!0}function Ea(i,e){return e.key===i.key&&e.tag===i.tag}function Ma(i){i.elm._moveCb&&i.elm._moveCb(),i.elm._enterCb&&i.elm._enterCb()}function Da(i){i.data.newPos=i.elm.getBoundingClientRect()}function La(i){var e=i.data.pos,t=i.data.newPos,a=e.left-t.left,n=e.top-t.top;if(a||n){i.data.moved=!0;var c=i.elm.style;c.transform=c.WebkitTransform="translate("+a+"px,"+n+"px)",c.transitionDuration="0s"}}function Ia(i,e){var t=e?Wr(e):Hr;if(t.test(i)){for(var a,n,c,l=[],r=[],u=t.lastIndex=0;a=t.exec(i);){n=a.index,n>u&&(r.push(c=i.slice(u,n)),l.push(JSON.stringify(c)));var o=wt(a[1].trim());l.push("_s("+o+")"),r.push({"@binding":o}),u=n+a[0].length}return u=0&&l[n].lowerCasedTag!==r;n--);else n=0;if(n>=0){for(var u=l.length-1;u>=n;u--)e.end&&e.end(l[u].tag,t,a);l.length=n,c=n&&l[n-1].tag}else"br"===r?e.start&&e.start(i,[],!0,t,a):"p"===r&&(e.start&&e.start(i,[],!1,t,a),e.end&&e.end(i,t,a))}for(var n,c,l=[],r=e.expectHTML,u=e.isUnaryTag||vc,o=e.canBeLeftOpenTag||vc,d=0;i;){if(n=i,c&&mu(c)){var v=0,s=c.toLowerCase(),y=gu[s]||(gu[s]=new RegExp("([\\s\\S]*?)(]*>)","i")),p=i.replace(y,function(i,t,a){return v=a.length,mu(s)||"noscript"===s||(t=t.replace(//g,"$1").replace(//g,"$1")),ku(s,t)&&(t=t.slice(1)),e.chars&&e.chars(t),""});d+=i.length-p.length,i=p,a(s,d-v,d)}else{var h=i.indexOf("<");if(0===h){if(au.test(i)){var f=i.indexOf("--\x3e");if(f>=0){e.shouldKeepComment&&e.comment(i.substring(4,f)),t(f+3);continue}}if(nu.test(i)){var m=i.indexOf("]>");if(m>=0){t(m+2);continue}}var g=i.match(tu);if(g){t(g[0].length);continue}var _=i.match(eu);if(_){var b=d;t(_[0].length),a(_[1],b,d);continue}var w=function(){var e=i.match(Qr);if(e){var a={tagName:e[1],attrs:[],start:d};t(e[0].length);for(var n,c;!(n=i.match(iu))&&(c=i.match(Kr));)t(c[0].length),a.attrs.push(c);if(n)return a.unarySlash=n[1],t(n[0].length),a.end=d,a}}();if(w){!function(i){var t=i.tagName,n=i.unarySlash;r&&("p"===c&&Jr(t)&&a(c),o(t)&&c===t&&a(t));for(var d=u(t)||!!n,v=i.attrs.length,s=new Array(v),y=0;y=0){for(k=i.slice(h);!(eu.test(k)||Qr.test(k)||au.test(k)||nu.test(k)||(T=k.indexOf("<",1))<0);)h+=T,k=i.slice(h);x=i.substring(0,h),t(h)}h<0&&(x=i,i=""),e.chars&&x&&e.chars(x)}if(i===n){e.chars&&e.chars(i);break}}a()}function Ra(i,e,t){return{type:1,tag:i,attrsList:e,attrsMap:un(e),parent:t,children:[]}}function Wa(i,e){function t(i){i.pre&&(r=!1),vu(i.tag)&&(u=!1);for(var t=0;t':'
',fu.innerHTML.indexOf(" ")>0}function ic(i){if(i.outerHTML)return i.outerHTML;var e=document.createElement("div");return e.appendChild(i.cloneNode(!0)),e.innerHTML}/*! +!function(i,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("VueAwesomePicker",[],e):"object"==typeof exports?exports.VueAwesomePicker=e():i.VueAwesomePicker=e()}("undefined"!=typeof self?self:this,function(){return function(i){function e(a){if(t[a])return t[a].exports;var n=t[a]={i:a,l:!1,exports:{}};return i[a].call(n.exports,n,n.exports,e),n.l=!0,n.exports}var t={};return e.m=i,e.c=t,e.d=function(i,t,a){e.o(i,t)||Object.defineProperty(i,t,{configurable:!1,enumerable:!0,get:a})},e.n=function(i){var t=i&&i.__esModule?function(){return i.default}:function(){return i};return e.d(t,"a",t),t},e.o=function(i,e){return Object.prototype.hasOwnProperty.call(i,e)},e.p="dist/",e(e.s=7)}([function(i,e){var t;t=function(){return this}();try{t=t||Function("return this")()||(0,eval)("this")}catch(i){"object"==typeof window&&(t=window)}i.exports=t},function(i,e){function t(i,e){var t=i[1]||"",n=i[3];if(!n)return t;if(e&&"function"==typeof btoa){var c=a(n);return[t].concat(n.sources.map(function(i){return"/*# sourceURL="+n.sourceRoot+i+" */"})).concat([c]).join("\n")}return[t].join("\n")}function a(i){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"}i.exports=function(i){var e=[];return e.toString=function(){return this.map(function(e){var a=t(e,i);return e[2]?"@media "+e[2]+"{"+a+"}":a}).join("")},e.i=function(i,t){"string"==typeof i&&(i=[[null,i,""]]);for(var a={},n=0;nt.parts.length&&(a.parts.length=t.parts.length)}else{for(var l=[],n=0;n-1?i.pickerData[t].indexOf(e.value):0:e}),[].concat(a(e))},show:function(){var i=this;this.display=!0,!this.wheels.length||this.dataChange?("cascade"===this.dataType&&this._updatePickerData(),this.$nextTick(function(){var e=i.$refs.wheelWrapper;i.pickerData.forEach(function(t,a){i._createWheel(e,a).enable()}),i._wheelToAnchor(i.proxyAnchor),i.dataChange&&i._destroyExtraWheels(),i.dataChange=!1})):this.wheels.forEach(function(i){i.enable()})},hide:function(){this.wheels.forEach(function(i){i.disable()}),this.display=!1},_createWheel:function(i,e){var t=this;if(this.wheels[e])this.wheels[e].refresh();else{(this.wheels[e]=new n.a(i.children[e],{wheel:{selectedIndex:0,rotate:25},swipeTime:this.swipeTime})).on("scrollEnd",function(){t._cascadePickerChange(e)})}return this.wheels[e]},_cascadePickerChange:function(i){if("cascade"===this.dataType){var e=this._getCurrentValue()[i].index;e!==this.pickerAnchor[i]&&(this.pickerAnchor.splice(i,1,e),this._updatePickerData(i+1))}},_wheelToAnchor:function(i){this.wheels.forEach(function(e,t){e.wheelTo(i[t]||0)})},_getCurrentValue:function(){var i=this,e=[];return this.wheels.forEach(function(t,a){var n=t.getSelectedIndex();e.push({index:n,value:i.pickerData[a][n]})}),e},_setPickerData:function(){var i=this;this.pickerData=this._dataGetter(),this.pickerAnchor=this._anchorGetter(),this.display?this.$nextTick(function(){var e=i.$refs.wheelWrapper;i.pickerData.forEach(function(t,a){i._createWheel(e,a)}),i._wheelToAnchor(i.proxyAnchor),i._destroyExtraWheels()}):this.dataChange=!0},_destroyExtraWheels:function(){var i=this.pickerData.length;if(i0&&void 0!==arguments[0]?arguments[0]:0,t=[].concat(a(this.proxyData)),n=0;t;)n>=e&&function(){var a=[];t.forEach(function(i){a.push(i.value)}),i.pickerData[n]=a,i.pickerAnchor[n]=0===e?i.pickerAnchor[n]2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",n=[],c=i;c<=e;c++){var l=(t&&c<10?"0"+c:c)+a;n.push(l)}return n}},function(i,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=t(8),n=t(12),c=t(18),l=t(26);t.n(l);a.a.use(c.a),new a.a({el:"#app",render:function(i){return i(n.a)}})},function(i,e,t){"use strict";(function(i,t){function a(i){return void 0===i||null===i}function n(i){return void 0!==i&&null!==i}function c(i){return!0===i}function l(i){return!1===i}function r(i){return"string"==typeof i||"number"==typeof i||"symbol"==typeof i||"boolean"==typeof i}function u(i){return null!==i&&"object"==typeof i}function o(i){return"[object Object]"===tc.call(i)}function d(i){return"[object RegExp]"===tc.call(i)}function v(i){var e=parseFloat(String(i));return e>=0&&Math.floor(e)===e&&isFinite(i)}function s(i){return null==i?"":"object"==typeof i?JSON.stringify(i,null,2):String(i)}function y(i){var e=parseFloat(i);return isNaN(e)?i:e}function p(i,e){for(var t=Object.create(null),a=i.split(","),n=0;n-1)return i.splice(t,1)}}function f(i,e){return cc.call(i,e)}function m(i){var e=Object.create(null);return function(t){return e[t]||(e[t]=i(t))}}function g(i,e){function t(t){var a=arguments.length;return a?a>1?i.apply(e,arguments):i.call(e,t):i.call(e)}return t._length=i.length,t}function _(i,e){e=e||0;for(var t=i.length-e,a=new Array(t);t--;)a[t]=i[t+e];return a}function b(i,e){for(var t in e)i[t]=e[t];return i}function w(i){for(var e={},t=0;t0&&(l=mi(l,(e||"")+"_"+t),fi(l[0])&&fi(o)&&(d[u]=P(o.text+l[0].text),l.shift()),d.push.apply(d,l)):r(l)?fi(o)?d[u]=P(o.text+l):""!==l&&d.push(P(l)):fi(l)&&fi(o)?d[u]=P(o.text+l.text):(c(i._isVList)&&n(l.tag)&&a(l.key)&&n(e)&&(l.key="__vlist"+e+"_"+t+"__"),d.push(l)));return d}function gi(i,e){return(i.__esModule||Lc&&"Module"===i[Symbol.toStringTag])&&(i=i.default),u(i)?e.extend(i):i}function _i(i,e,t,a,n){var c=Rc();return c.asyncFactory=i,c.asyncMeta={data:e,context:t,children:a,tag:n},c}function bi(i,e,t){if(c(i.error)&&n(i.errorComp))return i.errorComp;if(n(i.resolved))return i.resolved;if(c(i.loading)&&n(i.loadingComp))return i.loadingComp;if(!n(i.contexts)){var l=i.contexts=[t],r=!0,o=function(){for(var i=0,e=l.length;iyl&&ul[t].id>i.id;)t--;ul.splice(t+1,0,i)}else ul.push(i);vl||(vl=!0,li(Xi))}}function Wi(i,e,t){fl.get=function(){return this[e][t]},fl.set=function(i){this[e][t]=i},Object.defineProperty(i,t,fl)}function zi(i){i._watchers=[];var e=i.$options;e.props&&Bi(i,e.props),e.methods&&Gi(i,e.methods),e.data?Ui(i):j(i._data={},!0),e.computed&&qi(i,e.computed),e.watch&&e.watch!==Ac&&Zi(i,e.watch)}function Bi(i,e){var t=i.$options.propsData||{},a=i._props={},n=i.$options._propKeys=[],c=!i.$parent;Uc.shouldConvert=c;for(var l in e)!function(c){n.push(c);var l=G(c,e,t,i);X(a,c,l),c in i||Wi(i,"_props",c)}(l);Uc.shouldConvert=!0}function Ui(i){var e=i.$options.data;e=i._data="function"==typeof e?Vi(e,i):e||{},o(e)||(e={});for(var t=Object.keys(e),a=i.$options.props,n=(i.$options.methods,t.length);n--;){var c=t[n];a&&f(a,c)||S(c)||Wi(i,"_data",c)}j(e,!0)}function Vi(i,e){try{return i.call(e,e)}catch(i){return ei(i,e,"data()"),{}}}function qi(i,e){var t=i._computedWatchers=Object.create(null),a=Dc();for(var n in e){var c=e[n],l="function"==typeof c?c:c.get;a||(t[n]=new hl(i,l||x,x,ml)),n in i||Ji(i,n,c)}}function Ji(i,e,t){var a=!Dc();"function"==typeof t?(fl.get=a?Ki(e):t,fl.set=x):(fl.get=t.get?a&&!1!==t.cache?Ki(e):t.get:x,fl.set=t.set?t.set:x),Object.defineProperty(i,e,fl)}function Ki(i){return function(){var e=this._computedWatchers&&this._computedWatchers[i];if(e)return e.dirty&&e.evaluate(),Xc.target&&e.depend(),e.value}}function Gi(i,e){i.$options.props;for(var t in e)i[t]=null==e[t]?x:g(e[t],i)}function Zi(i,e){for(var t in e){var a=e[t];if(Array.isArray(a))for(var n=0;n=0||t.indexOf(i[n])<0)&&a.push(i[n]);return a}return i}function Ee(i){this._init(i)}function Me(i){i.use=function(i){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(i)>-1)return this;var t=_(arguments,1);return t.unshift(this),"function"==typeof i.install?i.install.apply(i,t):"function"==typeof i&&i.apply(null,t),e.push(i),this}}function Pe(i){i.mixin=function(i){return this.options=J(this.options,i),this}}function De(i){i.cid=0;var e=1;i.extend=function(i){i=i||{};var t=this,a=t.cid,n=i._Ctor||(i._Ctor={});if(n[a])return n[a];var c=i.name||t.options.name,l=function(i){this._init(i)};return l.prototype=Object.create(t.prototype),l.prototype.constructor=l,l.cid=e++,l.options=J(t.options,i),l.super=t,l.options.props&&Ie(l),l.options.computed&&Le(l),l.extend=t.extend,l.mixin=t.mixin,l.use=t.use,pc.forEach(function(i){l[i]=t[i]}),c&&(l.options.components[c]=l),l.superOptions=t.options,l.extendOptions=i,l.sealedOptions=b({},l.options),n[a]=l,l}}function Ie(i){var e=i.options.props;for(var t in e)Wi(i.prototype,"_props",t)}function Le(i){var e=i.options.computed;for(var t in e)Ji(i.prototype,t,e[t])}function Ne(i){pc.forEach(function(e){i[e]=function(i,t){return t?("component"===e&&o(t)&&(t.name=t.name||i,t=this.options._base.extend(t)),"directive"===e&&"function"==typeof t&&(t={bind:t,update:t}),this.options[e+"s"][i]=t,t):this.options[e+"s"][i]}})}function je(i){return i&&(i.Ctor.options.name||i.tag)}function Xe(i,e){return Array.isArray(i)?i.indexOf(e)>-1:"string"==typeof i?i.split(",").indexOf(e)>-1:!!d(i)&&i.test(e)}function Ye(i,e){var t=i.cache,a=i.keys,n=i._vnode;for(var c in t){var l=t[c];if(l){var r=je(l.componentOptions);r&&!e(r)&&Fe(t,c,a,n)}}}function Fe(i,e,t,a){var n=i[e];!n||a&&n.tag===a.tag||n.componentInstance.$destroy(),i[e]=null,h(t,e)}function He(i){for(var e=i.data,t=i,a=i;n(a.componentInstance);)(a=a.componentInstance._vnode)&&a.data&&(e=Re(a.data,e));for(;n(t=t.parent);)t&&t.data&&(e=Re(e,t.data));return We(e.staticClass,e.class)}function Re(i,e){return{staticClass:ze(i.staticClass,e.staticClass),class:n(i.class)?[i.class,e.class]:e.class}}function We(i,e){return n(i)||n(e)?ze(i,Be(e)):""}function ze(i,e){return i?e?i+" "+e:i:e||""}function Be(i){return Array.isArray(i)?Ue(i):u(i)?Ve(i):"string"==typeof i?i:""}function Ue(i){for(var e,t="",a=0,c=i.length;a-1?Jl[i]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Jl[i]=/HTMLUnknownElement/.test(e.toString())}function Ke(i){if("string"==typeof i){var e=document.querySelector(i);return e||document.createElement("div")}return i}function Ge(i,e){var t=document.createElement(i);return"select"!==i?t:(e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&t.setAttribute("multiple","multiple"),t)}function Ze(i,e){return document.createElementNS(zl[i],e)}function Qe(i){return document.createTextNode(i)}function it(i){return document.createComment(i)}function et(i,e,t){i.insertBefore(e,t)}function tt(i,e){i.removeChild(e)}function at(i,e){i.appendChild(e)}function nt(i){return i.parentNode}function ct(i){return i.nextSibling}function lt(i){return i.tagName}function rt(i,e){i.textContent=e}function ut(i,e,t){i.setAttribute(e,t)}function ot(i,e){var t=i.data.ref;if(t){var a=i.context,n=i.componentInstance||i.elm,c=a.$refs;e?Array.isArray(c[t])?h(c[t],n):c[t]===n&&(c[t]=void 0):i.data.refInFor?Array.isArray(c[t])?c[t].indexOf(n)<0&&c[t].push(n):c[t]=[n]:c[t]=n}}function dt(i,e){return i.key===e.key&&(i.tag===e.tag&&i.isComment===e.isComment&&n(i.data)===n(e.data)&&vt(i,e)||c(i.isAsyncPlaceholder)&&i.asyncFactory===e.asyncFactory&&a(e.asyncFactory.error))}function vt(i,e){if("input"!==i.tag)return!0;var t,a=n(t=i.data)&&n(t=t.attrs)&&t.type,c=n(t=e.data)&&n(t=t.attrs)&&t.type;return a===c||Kl(a)&&Kl(c)}function st(i,e,t){var a,c,l={};for(a=e;a<=t;++a)c=i[a].key,n(c)&&(l[c]=a);return l}function yt(i,e){(i.data.directives||e.data.directives)&&pt(i,e)}function pt(i,e){var t,a,n,c=i===Ql,l=e===Ql,r=ht(i.data.directives,i.context),u=ht(e.data.directives,e.context),o=[],d=[];for(t in u)a=r[t],n=u[t],a?(n.oldValue=a.value,mt(n,"update",e,i),n.def&&n.def.componentUpdated&&d.push(n)):(mt(n,"bind",e,i),n.def&&n.def.inserted&&o.push(n));if(o.length){var v=function(){for(var t=0;t=0&&" "===(f=i.charAt(h));h--);f&&lr.test(f)||(d=!0)}}else void 0===c?(p=n+1,c=i.slice(0,n).trim()):e();if(void 0===c?c=i.slice(0,n).trim():0!==p&&e(),l)for(n=0;n-1?{exp:i.slice(0,Ol),key:'"'+i.slice(Ol+1)+'"'}:{exp:i,key:null};for($l=i,Ol=El=Ml=0;!Nt();)Al=Lt(),jt(Al)?Yt(Al):91===Al&&Xt(Al);return{exp:i.slice(0,El),key:i.slice(El+1,Ml)}}function Lt(){return $l.charCodeAt(++Ol)}function Nt(){return Ol>=Sl}function jt(i){return 34===i||39===i}function Xt(i){var e=1;for(El=Ol;!Nt();)if(i=Lt(),jt(i))Yt(i);else if(91===i&&e++,93===i&&e--,0===e){Ml=Ol;break}}function Yt(i){for(var e=i;!Nt()&&(i=Lt())!==e;);}function Ft(i,e,t){Pl=t;var a=e.value,n=e.modifiers,c=i.tag,l=i.attrsMap.type;if(i.component)return Pt(i,a,n),!1;if("select"===c)Wt(i,a,n);else if("input"===c&&"checkbox"===l)Ht(i,a,n);else if("input"===c&&"radio"===l)Rt(i,a,n);else if("input"===c||"textarea"===c)zt(i,a,n);else if(!fc.isReservedTag(c))return Pt(i,a,n),!1;return!0}function Ht(i,e,t){var a=t&&t.number,n=Et(i,"value")||"null",c=Et(i,"true-value")||"true",l=Et(i,"false-value")||"false";Ct(i,"checked","Array.isArray("+e+")?_i("+e+","+n+")>-1"+("true"===c?":("+e+")":":_q("+e+","+c+")")),Ot(i,"change","var $$a="+e+",$$el=$event.target,$$c=$$el.checked?("+c+"):("+l+");if(Array.isArray($$a)){var $$v="+(a?"_n("+n+")":n)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+e+"=$$a.concat([$$v]))}else{$$i>-1&&("+e+"=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{"+Dt(e,"$$c")+"}",null,!0)}function Rt(i,e,t){var a=t&&t.number,n=Et(i,"value")||"null";n=a?"_n("+n+")":n,Ct(i,"checked","_q("+e+","+n+")"),Ot(i,"change",Dt(e,n),null,!0)}function Wt(i,e,t){var a=t&&t.number,n='Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(a?"_n(val)":"val")+"})",c="var $$selectedVal = "+n+";";c=c+" "+Dt(e,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),Ot(i,"change",c,null,!0)}function zt(i,e,t){var a=i.attrsMap.type,n=t||{},c=n.lazy,l=n.number,r=n.trim,u=!c&&"range"!==a,o=c?"change":"range"===a?rr:"input",d="$event.target.value";r&&(d="$event.target.value.trim()"),l&&(d="_n("+d+")");var v=Dt(e,d);u&&(v="if($event.target.composing)return;"+v),Ct(i,"value","("+e+")"),Ot(i,o,v,null,!0),(r||l)&&Ot(i,"blur","$forceUpdate()")}function Bt(i){if(n(i[rr])){var e=kc?"change":"input";i[e]=[].concat(i[rr],i[e]||[]),delete i[rr]}n(i[ur])&&(i.change=[].concat(i[ur],i.change||[]),delete i[ur])}function Ut(i,e,t){var a=Dl;return function n(){null!==i.apply(null,arguments)&&qt(e,n,t,a)}}function Vt(i,e,t,a,n){e=ci(e),t&&(e=Ut(e,i,a)),Dl.addEventListener(i,e,Oc?{capture:a,passive:n}:a)}function qt(i,e,t,a){(a||Dl).removeEventListener(i,e._withTask||e,t)}function Jt(i,e){if(!a(i.data.on)||!a(e.data.on)){var t=e.data.on||{},n=i.data.on||{};Dl=e.elm,Bt(t),di(t,n,Vt,qt,e.context),Dl=void 0}}function Kt(i,e){if(!a(i.data.domProps)||!a(e.data.domProps)){var t,c,l=e.elm,r=i.data.domProps||{},u=e.data.domProps||{};n(u.__ob__)&&(u=e.data.domProps=b({},u));for(t in r)a(u[t])&&(l[t]="");for(t in u){if(c=u[t],"textContent"===t||"innerHTML"===t){if(e.children&&(e.children.length=0),c===r[t])continue;1===l.childNodes.length&&l.removeChild(l.childNodes[0])}if("value"===t){l._value=c;var o=a(c)?"":String(c);Gt(l,o)&&(l.value=o)}else l[t]=c}}}function Gt(i,e){return!i.composing&&("OPTION"===i.tagName||Zt(i,e)||Qt(i,e))}function Zt(i,e){var t=!0;try{t=document.activeElement!==i}catch(i){}return t&&i.value!==e}function Qt(i,e){var t=i.value,a=i._vModifiers;if(n(a)){if(a.lazy)return!1;if(a.number)return y(t)!==y(e);if(a.trim)return t.trim()!==e.trim()}return t!==e}function ia(i){var e=ea(i.style);return i.staticStyle?b(i.staticStyle,e):e}function ea(i){return Array.isArray(i)?w(i):"string"==typeof i?vr(i):i}function ta(i,e){var t,a={};if(e)for(var n=i;n.componentInstance;)(n=n.componentInstance._vnode)&&n.data&&(t=ia(n.data))&&b(a,t);(t=ia(i.data))&&b(a,t);for(var c=i;c=c.parent;)c.data&&(t=ia(c.data))&&b(a,t);return a}function aa(i,e){var t=e.data,c=i.data;if(!(a(t.staticStyle)&&a(t.style)&&a(c.staticStyle)&&a(c.style))){var l,r,u=e.elm,o=c.staticStyle,d=c.normalizedStyle||c.style||{},v=o||d,s=ea(e.data.style)||{};e.data.normalizedStyle=n(s.__ob__)?b({},s):s;var y=ta(e,!0);for(r in v)a(y[r])&&pr(u,r,"");for(r in y)(l=y[r])!==v[r]&&pr(u,r,null==l?"":l)}}function na(i,e){if(e&&(e=e.trim()))if(i.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return i.classList.add(e)}):i.classList.add(e);else{var t=" "+(i.getAttribute("class")||"")+" ";t.indexOf(" "+e+" ")<0&&i.setAttribute("class",(t+e).trim())}}function ca(i,e){if(e&&(e=e.trim()))if(i.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return i.classList.remove(e)}):i.classList.remove(e),i.classList.length||i.removeAttribute("class");else{for(var t=" "+(i.getAttribute("class")||"")+" ",a=" "+e+" ";t.indexOf(a)>=0;)t=t.replace(a," ");t=t.trim(),t?i.setAttribute("class",t):i.removeAttribute("class")}}function la(i){if(i){if("object"==typeof i){var e={};return!1!==i.css&&b(e,gr(i.name||"v")),b(e,i),e}return"string"==typeof i?gr(i):void 0}}function ra(i){Sr(function(){Sr(i)})}function ua(i,e){var t=i._transitionClasses||(i._transitionClasses=[]);t.indexOf(e)<0&&(t.push(e),na(i,e))}function oa(i,e){i._transitionClasses&&h(i._transitionClasses,e),ca(i,e)}function da(i,e,t){var a=va(i,e),n=a.type,c=a.timeout,l=a.propCount;if(!n)return t();var r=n===br?kr:Cr,u=0,o=function(){i.removeEventListener(r,d),t()},d=function(e){e.target===i&&++u>=l&&o()};setTimeout(function(){u0&&(t=br,d=l,v=c.length):e===wr?o>0&&(t=wr,d=o,v=u.length):(d=Math.max(l,o),t=d>0?l>o?br:wr:null,v=t?t===br?c.length:u.length:0),{type:t,timeout:d,propCount:v,hasTransform:t===br&&$r.test(a[xr+"Property"])}}function sa(i,e){for(;i.length1}function ga(i,e){!0!==e.data.show&&pa(e)}function _a(i,e,t){ba(i,e,t),(kc||Cc)&&setTimeout(function(){ba(i,e,t)},0)}function ba(i,e,t){var a=e.value,n=i.multiple;if(!n||Array.isArray(a)){for(var c,l,r=0,u=i.options.length;r-1,l.selected!==c&&(l.selected=c);else if(k(xa(l),a))return void(i.selectedIndex!==r&&(i.selectedIndex=r));n||(i.selectedIndex=-1)}}function wa(i,e){return e.every(function(e){return!k(e,i)})}function xa(i){return"_value"in i?i._value:i.value}function ka(i){i.target.composing=!0}function Ta(i){i.target.composing&&(i.target.composing=!1,Ca(i.target,"input"))}function Ca(i,e){var t=document.createEvent("HTMLEvents");t.initEvent(e,!0,!0),i.dispatchEvent(t)}function Sa(i){return!i.componentInstance||i.data&&i.data.transition?i:Sa(i.componentInstance._vnode)}function $a(i){var e=i&&i.componentOptions;return e&&e.Ctor.options.abstract?$a(xi(e.children)):i}function Aa(i){var e={},t=i.$options;for(var a in t.propsData)e[a]=i[a];var n=t._parentListeners;for(var c in n)e[rc(c)]=n[c];return e}function Oa(i,e){if(/\d-keep-alive$/.test(e.tag))return i("keep-alive",{props:e.componentOptions.propsData})}function Ea(i){for(;i=i.parent;)if(i.data.transition)return!0}function Ma(i,e){return e.key===i.key&&e.tag===i.tag}function Pa(i){i.elm._moveCb&&i.elm._moveCb(),i.elm._enterCb&&i.elm._enterCb()}function Da(i){i.data.newPos=i.elm.getBoundingClientRect()}function Ia(i){var e=i.data.pos,t=i.data.newPos,a=e.left-t.left,n=e.top-t.top;if(a||n){i.data.moved=!0;var c=i.elm.style;c.transform=c.WebkitTransform="translate("+a+"px,"+n+"px)",c.transitionDuration="0s"}}function La(i,e){var t=e?Wr(e):Hr;if(t.test(i)){for(var a,n,c,l=[],r=[],u=t.lastIndex=0;a=t.exec(i);){n=a.index,n>u&&(r.push(c=i.slice(u,n)),l.push(JSON.stringify(c)));var o=wt(a[1].trim());l.push("_s("+o+")"),r.push({"@binding":o}),u=n+a[0].length}return u=0&&l[n].lowerCasedTag!==r;n--);else n=0;if(n>=0){for(var u=l.length-1;u>=n;u--)e.end&&e.end(l[u].tag,t,a);l.length=n,c=n&&l[n-1].tag}else"br"===r?e.start&&e.start(i,[],!0,t,a):"p"===r&&(e.start&&e.start(i,[],!1,t,a),e.end&&e.end(i,t,a))}for(var n,c,l=[],r=e.expectHTML,u=e.isUnaryTag||vc,o=e.canBeLeftOpenTag||vc,d=0;i;){if(n=i,c&&mu(c)){var v=0,s=c.toLowerCase(),y=gu[s]||(gu[s]=new RegExp("([\\s\\S]*?)(]*>)","i")),p=i.replace(y,function(i,t,a){return v=a.length,mu(s)||"noscript"===s||(t=t.replace(//g,"$1").replace(//g,"$1")),ku(s,t)&&(t=t.slice(1)),e.chars&&e.chars(t),""});d+=i.length-p.length,i=p,a(s,d-v,d)}else{var h=i.indexOf("<");if(0===h){if(au.test(i)){var f=i.indexOf("--\x3e");if(f>=0){e.shouldKeepComment&&e.comment(i.substring(4,f)),t(f+3);continue}}if(nu.test(i)){var m=i.indexOf("]>");if(m>=0){t(m+2);continue}}var g=i.match(tu);if(g){t(g[0].length);continue}var _=i.match(eu);if(_){var b=d;t(_[0].length),a(_[1],b,d);continue}var w=function(){var e=i.match(Qr);if(e){var a={tagName:e[1],attrs:[],start:d};t(e[0].length);for(var n,c;!(n=i.match(iu))&&(c=i.match(Kr));)t(c[0].length),a.attrs.push(c);if(n)return a.unarySlash=n[1],t(n[0].length),a.end=d,a}}();if(w){!function(i){var t=i.tagName,n=i.unarySlash;r&&("p"===c&&Jr(t)&&a(c),o(t)&&c===t&&a(t));for(var d=u(t)||!!n,v=i.attrs.length,s=new Array(v),y=0;y=0){for(k=i.slice(h);!(eu.test(k)||Qr.test(k)||au.test(k)||nu.test(k)||(T=k.indexOf("<",1))<0);)h+=T,k=i.slice(h);x=i.substring(0,h),t(h)}h<0&&(x=i,i=""),e.chars&&x&&e.chars(x)}if(i===n){e.chars&&e.chars(i);break}}a()}function Ra(i,e,t){return{type:1,tag:i,attrsList:e,attrsMap:un(e),parent:t,children:[]}}function Wa(i,e){function t(i){i.pre&&(r=!1),vu(i.tag)&&(u=!1);for(var t=0;t':'
',fu.innerHTML.indexOf(" ")>0}function ic(i){if(i.outerHTML)return i.outerHTML;var e=document.createElement("div");return e.appendChild(i.cloneNode(!0)),e.innerHTML}/*! * Vue.js v2.5.13 * (c) 2014-2017 Evan You * Released under the MIT License. */ -var ec=Object.freeze({}),tc=Object.prototype.toString,ac=p("slot,component",!0),nc=p("key,ref,slot,slot-scope,is"),cc=Object.prototype.hasOwnProperty,lc=/-(\w)/g,rc=m(function(i){return i.replace(lc,function(i,e){return e?e.toUpperCase():""})}),uc=m(function(i){return i.charAt(0).toUpperCase()+i.slice(1)}),oc=/\B([A-Z])/g,dc=m(function(i){return i.replace(oc,"-$1").toLowerCase()}),vc=function(i,e,t){return!1},sc=function(i){return i},yc="data-server-rendered",pc=["component","directive","filter"],hc=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured"],fc={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:vc,isReservedAttr:vc,isUnknownElement:vc,getTagNamespace:x,parsePlatformTagName:sc,mustUseProp:vc,_lifecycleHooks:hc},mc=/[^\w.$]/,gc="__proto__"in{},_c="undefined"!=typeof window,bc="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,wc=bc&&WXEnvironment.platform.toLowerCase(),xc=_c&&window.navigator.userAgent.toLowerCase(),kc=xc&&/msie|trident/.test(xc),Tc=xc&&xc.indexOf("msie 9.0")>0,Cc=xc&&xc.indexOf("edge/")>0,Sc=xc&&xc.indexOf("android")>0||"android"===wc,$c=xc&&/iphone|ipad|ipod|ios/.test(xc)||"ios"===wc,Ac=(xc&&/chrome\/\d+/.test(xc),{}.watch),Oc=!1;if(_c)try{var Pc={};Object.defineProperty(Pc,"passive",{get:function(){Oc=!0}}),window.addEventListener("test-passive",null,Pc)}catch(i){}var Ec,Mc,Dc=function(){return void 0===Ec&&(Ec=!_c&&void 0!==i&&"server"===i.process.env.VUE_ENV),Ec},Lc=_c&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,Ic="undefined"!=typeof Symbol&&O(Symbol)&&"undefined"!=typeof Reflect&&O(Reflect.ownKeys);Mc="undefined"!=typeof Set&&O(Set)?Set:function(){function i(){this.set=Object.create(null)}return i.prototype.has=function(i){return!0===this.set[i]},i.prototype.add=function(i){this.set[i]=!0},i.prototype.clear=function(){this.set=Object.create(null)},i}();var Nc=x,Xc=0,jc=function(){this.id=Xc++,this.subs=[]};jc.prototype.addSub=function(i){this.subs.push(i)},jc.prototype.removeSub=function(i){h(this.subs,i)},jc.prototype.depend=function(){jc.target&&jc.target.addDep(this)},jc.prototype.notify=function(){for(var i=this.subs.slice(),e=0,t=i.length;e1?_(t):t;for(var a=_(arguments,1),n=0,c=t.length;nparseInt(this.max)&&Fe(u,o[0],o,this._vnode)),e.data.keepAlive=!0}return e||i&&i[0]}},Cl={KeepAlive:Tl};!function(i){var e={};e.get=function(){return fc},Object.defineProperty(i,"config",e),i.util={warn:Nc,extend:b,mergeOptions:J,defineReactive:j},i.set=Y,i.delete=F,i.nextTick=li,i.options=Object.create(null),pc.forEach(function(e){i.options[e+"s"]=Object.create(null)}),i.options._base=i,b(i.options.components,Cl),Ee(i),Me(i),De(i),Ne(i)}(Pe),Object.defineProperty(Pe.prototype,"$isServer",{get:Dc}),Object.defineProperty(Pe.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Pe.version="2.5.13";var Sl,$l,Al,Ol,Pl,El,Ml,Dl,Ll,Il=p("style,class"),Nl=p("input,textarea,option,select,progress"),Xl=function(i,e,t){return"value"===t&&Nl(i)&&"button"!==e||"selected"===t&&"option"===i||"checked"===t&&"input"===i||"muted"===t&&"video"===i},jl=p("contenteditable,draggable,spellcheck"),Yl=p("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Fl="http://www.w3.org/1999/xlink",Hl=function(i){return":"===i.charAt(5)&&"xlink"===i.slice(0,5)},Rl=function(i){return Hl(i)?i.slice(6,i.length):""},Wl=function(i){return null==i||!1===i},zl={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Ul=p("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Bl=p("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Vl=function(i){return"pre"===i},ql=function(i){return Ul(i)||Bl(i)},Jl=Object.create(null),Kl=p("text,number,password,search,email,tel,url"),Gl=Object.freeze({createElement:Ge,createElementNS:Ze,createTextNode:Qe,createComment:it,insertBefore:et,removeChild:tt,appendChild:at,parentNode:nt,nextSibling:ct,tagName:lt,setTextContent:rt,setAttribute:ut}),Zl={create:function(i,e){ot(e)},update:function(i,e){i.data.ref!==e.data.ref&&(ot(i,!0),ot(e))},destroy:function(i){ot(i,!0)}},Ql=new Fc("",{},[]),ir=["create","activate","update","remove","destroy"],er={create:yt,update:yt,destroy:function(i){yt(i,Ql)}},tr=Object.create(null),ar=[Zl,er],nr={create:gt,update:gt},cr={create:bt,update:bt},lr=/[\w).+\-_$\]]/,rr="__r",ur="__c",or={create:Jt,update:Jt},dr={create:Kt,update:Kt},vr=m(function(i){var e={},t=/;(?![^(]*\))/g,a=/:(.+)/;return i.split(t).forEach(function(i){if(i){var t=i.split(a);t.length>1&&(e[t[0].trim()]=t[1].trim())}}),e}),sr=/^--/,yr=/\s*!important$/,pr=function(i,e,t){if(sr.test(e))i.style.setProperty(e,t);else if(yr.test(t))i.style.setProperty(e,t.replace(yr,""),"important");else{var a=fr(e);if(Array.isArray(t))for(var n=0,c=t.length;np?(v=a(t[m+1])?null:t[m+1].elm,g(i,v,t,y,m,c)):y>m&&b(i,e,s,p)}function k(i,e,t,a){for(var c=t;c\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Gr="[a-zA-Z_][\\w\\-\\.]*",Zr="((?:"+Gr+"\\:)?"+Gr+")",Qr=new RegExp("^<"+Zr),iu=/^\s*(\/?)>/,eu=new RegExp("^<\\/"+Zr+"[^>]*>"),tu=/^]+>/i,au=/^ ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)\n ? ((formatComponentName(vm[0])) + \"... (\" + (vm[1]) + \" recursive calls)\")\n : formatComponentName(vm))); })\n .join('\\n')\n } else {\n return (\"\\n\\n(found in \" + (formatComponentName(vm)) + \")\")\n }\n };\n}\n\n/* */\n\n\nvar uid = 0;\n\n/**\n * A dep is an observable that can have multiple\n * directives subscribing to it.\n */\nvar Dep = function Dep () {\n this.id = uid++;\n this.subs = [];\n};\n\nDep.prototype.addSub = function addSub (sub) {\n this.subs.push(sub);\n};\n\nDep.prototype.removeSub = function removeSub (sub) {\n remove(this.subs, sub);\n};\n\nDep.prototype.depend = function depend () {\n if (Dep.target) {\n Dep.target.addDep(this);\n }\n};\n\nDep.prototype.notify = function notify () {\n // stabilize the subscriber list first\n var subs = this.subs.slice();\n for (var i = 0, l = subs.length; i < l; i++) {\n subs[i].update();\n }\n};\n\n// the current target watcher being evaluated.\n// this is globally unique because there could be only one\n// watcher being evaluated at any time.\nDep.target = null;\nvar targetStack = [];\n\nfunction pushTarget (_target) {\n if (Dep.target) { targetStack.push(Dep.target); }\n Dep.target = _target;\n}\n\nfunction popTarget () {\n Dep.target = targetStack.pop();\n}\n\n/* */\n\nvar VNode = function VNode (\n tag,\n data,\n children,\n text,\n elm,\n context,\n componentOptions,\n asyncFactory\n) {\n this.tag = tag;\n this.data = data;\n this.children = children;\n this.text = text;\n this.elm = elm;\n this.ns = undefined;\n this.context = context;\n this.fnContext = undefined;\n this.fnOptions = undefined;\n this.fnScopeId = undefined;\n this.key = data && data.key;\n this.componentOptions = componentOptions;\n this.componentInstance = undefined;\n this.parent = undefined;\n this.raw = false;\n this.isStatic = false;\n this.isRootInsert = true;\n this.isComment = false;\n this.isCloned = false;\n this.isOnce = false;\n this.asyncFactory = asyncFactory;\n this.asyncMeta = undefined;\n this.isAsyncPlaceholder = false;\n};\n\nvar prototypeAccessors = { child: { configurable: true } };\n\n// DEPRECATED: alias for componentInstance for backwards compat.\n/* istanbul ignore next */\nprototypeAccessors.child.get = function () {\n return this.componentInstance\n};\n\nObject.defineProperties( VNode.prototype, prototypeAccessors );\n\nvar createEmptyVNode = function (text) {\n if ( text === void 0 ) text = '';\n\n var node = new VNode();\n node.text = text;\n node.isComment = true;\n return node\n};\n\nfunction createTextVNode (val) {\n return new VNode(undefined, undefined, undefined, String(val))\n}\n\n// optimized shallow clone\n// used for static nodes and slot nodes because they may be reused across\n// multiple renders, cloning them avoids errors when DOM manipulations rely\n// on their elm reference.\nfunction cloneVNode (vnode, deep) {\n var componentOptions = vnode.componentOptions;\n var cloned = new VNode(\n vnode.tag,\n vnode.data,\n vnode.children,\n vnode.text,\n vnode.elm,\n vnode.context,\n componentOptions,\n vnode.asyncFactory\n );\n cloned.ns = vnode.ns;\n cloned.isStatic = vnode.isStatic;\n cloned.key = vnode.key;\n cloned.isComment = vnode.isComment;\n cloned.fnContext = vnode.fnContext;\n cloned.fnOptions = vnode.fnOptions;\n cloned.fnScopeId = vnode.fnScopeId;\n cloned.isCloned = true;\n if (deep) {\n if (vnode.children) {\n cloned.children = cloneVNodes(vnode.children, true);\n }\n if (componentOptions && componentOptions.children) {\n componentOptions.children = cloneVNodes(componentOptions.children, true);\n }\n }\n return cloned\n}\n\nfunction cloneVNodes (vnodes, deep) {\n var len = vnodes.length;\n var res = new Array(len);\n for (var i = 0; i < len; i++) {\n res[i] = cloneVNode(vnodes[i], deep);\n }\n return res\n}\n\n/*\n * not type checking this file because flow doesn't play well with\n * dynamically accessing methods on Array prototype\n */\n\nvar arrayProto = Array.prototype;\nvar arrayMethods = Object.create(arrayProto);[\n 'push',\n 'pop',\n 'shift',\n 'unshift',\n 'splice',\n 'sort',\n 'reverse'\n].forEach(function (method) {\n // cache original method\n var original = arrayProto[method];\n def(arrayMethods, method, function mutator () {\n var args = [], len = arguments.length;\n while ( len-- ) args[ len ] = arguments[ len ];\n\n var result = original.apply(this, args);\n var ob = this.__ob__;\n var inserted;\n switch (method) {\n case 'push':\n case 'unshift':\n inserted = args;\n break\n case 'splice':\n inserted = args.slice(2);\n break\n }\n if (inserted) { ob.observeArray(inserted); }\n // notify change\n ob.dep.notify();\n return result\n });\n});\n\n/* */\n\nvar arrayKeys = Object.getOwnPropertyNames(arrayMethods);\n\n/**\n * By default, when a reactive property is set, the new value is\n * also converted to become reactive. However when passing down props,\n * we don't want to force conversion because the value may be a nested value\n * under a frozen data structure. Converting it would defeat the optimization.\n */\nvar observerState = {\n shouldConvert: true\n};\n\n/**\n * Observer class that are attached to each observed\n * object. Once attached, the observer converts target\n * object's property keys into getter/setters that\n * collect dependencies and dispatches updates.\n */\nvar Observer = function Observer (value) {\n this.value = value;\n this.dep = new Dep();\n this.vmCount = 0;\n def(value, '__ob__', this);\n if (Array.isArray(value)) {\n var augment = hasProto\n ? protoAugment\n : copyAugment;\n augment(value, arrayMethods, arrayKeys);\n this.observeArray(value);\n } else {\n this.walk(value);\n }\n};\n\n/**\n * Walk through each property and convert them into\n * getter/setters. This method should only be called when\n * value type is Object.\n */\nObserver.prototype.walk = function walk (obj) {\n var keys = Object.keys(obj);\n for (var i = 0; i < keys.length; i++) {\n defineReactive(obj, keys[i], obj[keys[i]]);\n }\n};\n\n/**\n * Observe a list of Array items.\n */\nObserver.prototype.observeArray = function observeArray (items) {\n for (var i = 0, l = items.length; i < l; i++) {\n observe(items[i]);\n }\n};\n\n// helpers\n\n/**\n * Augment an target Object or Array by intercepting\n * the prototype chain using __proto__\n */\nfunction protoAugment (target, src, keys) {\n /* eslint-disable no-proto */\n target.__proto__ = src;\n /* eslint-enable no-proto */\n}\n\n/**\n * Augment an target Object or Array by defining\n * hidden properties.\n */\n/* istanbul ignore next */\nfunction copyAugment (target, src, keys) {\n for (var i = 0, l = keys.length; i < l; i++) {\n var key = keys[i];\n def(target, key, src[key]);\n }\n}\n\n/**\n * Attempt to create an observer instance for a value,\n * returns the new observer if successfully observed,\n * or the existing observer if the value already has one.\n */\nfunction observe (value, asRootData) {\n if (!isObject(value) || value instanceof VNode) {\n return\n }\n var ob;\n if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {\n ob = value.__ob__;\n } else if (\n observerState.shouldConvert &&\n !isServerRendering() &&\n (Array.isArray(value) || isPlainObject(value)) &&\n Object.isExtensible(value) &&\n !value._isVue\n ) {\n ob = new Observer(value);\n }\n if (asRootData && ob) {\n ob.vmCount++;\n }\n return ob\n}\n\n/**\n * Define a reactive property on an Object.\n */\nfunction defineReactive (\n obj,\n key,\n val,\n customSetter,\n shallow\n) {\n var dep = new Dep();\n\n var property = Object.getOwnPropertyDescriptor(obj, key);\n if (property && property.configurable === false) {\n return\n }\n\n // cater for pre-defined getter/setters\n var getter = property && property.get;\n var setter = property && property.set;\n\n var childOb = !shallow && observe(val);\n Object.defineProperty(obj, key, {\n enumerable: true,\n configurable: true,\n get: function reactiveGetter () {\n var value = getter ? getter.call(obj) : val;\n if (Dep.target) {\n dep.depend();\n if (childOb) {\n childOb.dep.depend();\n if (Array.isArray(value)) {\n dependArray(value);\n }\n }\n }\n return value\n },\n set: function reactiveSetter (newVal) {\n var value = getter ? getter.call(obj) : val;\n /* eslint-disable no-self-compare */\n if (newVal === value || (newVal !== newVal && value !== value)) {\n return\n }\n /* eslint-enable no-self-compare */\n if (false) {\n customSetter();\n }\n if (setter) {\n setter.call(obj, newVal);\n } else {\n val = newVal;\n }\n childOb = !shallow && observe(newVal);\n dep.notify();\n }\n });\n}\n\n/**\n * Set a property on an object. Adds the new property and\n * triggers change notification if the property doesn't\n * already exist.\n */\nfunction set (target, key, val) {\n if (Array.isArray(target) && isValidArrayIndex(key)) {\n target.length = Math.max(target.length, key);\n target.splice(key, 1, val);\n return val\n }\n if (key in target && !(key in Object.prototype)) {\n target[key] = val;\n return val\n }\n var ob = (target).__ob__;\n if (target._isVue || (ob && ob.vmCount)) {\n \"production\" !== 'production' && warn(\n 'Avoid adding reactive properties to a Vue instance or its root $data ' +\n 'at runtime - declare it upfront in the data option.'\n );\n return val\n }\n if (!ob) {\n target[key] = val;\n return val\n }\n defineReactive(ob.value, key, val);\n ob.dep.notify();\n return val\n}\n\n/**\n * Delete a property and trigger change if necessary.\n */\nfunction del (target, key) {\n if (Array.isArray(target) && isValidArrayIndex(key)) {\n target.splice(key, 1);\n return\n }\n var ob = (target).__ob__;\n if (target._isVue || (ob && ob.vmCount)) {\n \"production\" !== 'production' && warn(\n 'Avoid deleting properties on a Vue instance or its root $data ' +\n '- just set it to null.'\n );\n return\n }\n if (!hasOwn(target, key)) {\n return\n }\n delete target[key];\n if (!ob) {\n return\n }\n ob.dep.notify();\n}\n\n/**\n * Collect dependencies on array elements when the array is touched, since\n * we cannot intercept array element access like property getters.\n */\nfunction dependArray (value) {\n for (var e = (void 0), i = 0, l = value.length; i < l; i++) {\n e = value[i];\n e && e.__ob__ && e.__ob__.dep.depend();\n if (Array.isArray(e)) {\n dependArray(e);\n }\n }\n}\n\n/* */\n\n/**\n * Option overwriting strategies are functions that handle\n * how to merge a parent option value and a child option\n * value into the final value.\n */\nvar strats = config.optionMergeStrategies;\n\n/**\n * Options with restrictions\n */\nif (false) {\n strats.el = strats.propsData = function (parent, child, vm, key) {\n if (!vm) {\n warn(\n \"option \\\"\" + key + \"\\\" can only be used during instance \" +\n 'creation with the `new` keyword.'\n );\n }\n return defaultStrat(parent, child)\n };\n}\n\n/**\n * Helper that recursively merges two data objects together.\n */\nfunction mergeData (to, from) {\n if (!from) { return to }\n var key, toVal, fromVal;\n var keys = Object.keys(from);\n for (var i = 0; i < keys.length; i++) {\n key = keys[i];\n toVal = to[key];\n fromVal = from[key];\n if (!hasOwn(to, key)) {\n set(to, key, fromVal);\n } else if (isPlainObject(toVal) && isPlainObject(fromVal)) {\n mergeData(toVal, fromVal);\n }\n }\n return to\n}\n\n/**\n * Data\n */\nfunction mergeDataOrFn (\n parentVal,\n childVal,\n vm\n) {\n if (!vm) {\n // in a Vue.extend merge, both should be functions\n if (!childVal) {\n return parentVal\n }\n if (!parentVal) {\n return childVal\n }\n // when parentVal & childVal are both present,\n // we need to return a function that returns the\n // merged result of both functions... no need to\n // check if parentVal is a function here because\n // it has to be a function to pass previous merges.\n return function mergedDataFn () {\n return mergeData(\n typeof childVal === 'function' ? childVal.call(this, this) : childVal,\n typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal\n )\n }\n } else {\n return function mergedInstanceDataFn () {\n // instance merge\n var instanceData = typeof childVal === 'function'\n ? childVal.call(vm, vm)\n : childVal;\n var defaultData = typeof parentVal === 'function'\n ? parentVal.call(vm, vm)\n : parentVal;\n if (instanceData) {\n return mergeData(instanceData, defaultData)\n } else {\n return defaultData\n }\n }\n }\n}\n\nstrats.data = function (\n parentVal,\n childVal,\n vm\n) {\n if (!vm) {\n if (childVal && typeof childVal !== 'function') {\n \"production\" !== 'production' && warn(\n 'The \"data\" option should be a function ' +\n 'that returns a per-instance value in component ' +\n 'definitions.',\n vm\n );\n\n return parentVal\n }\n return mergeDataOrFn(parentVal, childVal)\n }\n\n return mergeDataOrFn(parentVal, childVal, vm)\n};\n\n/**\n * Hooks and props are merged as arrays.\n */\nfunction mergeHook (\n parentVal,\n childVal\n) {\n return childVal\n ? parentVal\n ? parentVal.concat(childVal)\n : Array.isArray(childVal)\n ? childVal\n : [childVal]\n : parentVal\n}\n\nLIFECYCLE_HOOKS.forEach(function (hook) {\n strats[hook] = mergeHook;\n});\n\n/**\n * Assets\n *\n * When a vm is present (instance creation), we need to do\n * a three-way merge between constructor options, instance\n * options and parent options.\n */\nfunction mergeAssets (\n parentVal,\n childVal,\n vm,\n key\n) {\n var res = Object.create(parentVal || null);\n if (childVal) {\n \"production\" !== 'production' && assertObjectType(key, childVal, vm);\n return extend(res, childVal)\n } else {\n return res\n }\n}\n\nASSET_TYPES.forEach(function (type) {\n strats[type + 's'] = mergeAssets;\n});\n\n/**\n * Watchers.\n *\n * Watchers hashes should not overwrite one\n * another, so we merge them as arrays.\n */\nstrats.watch = function (\n parentVal,\n childVal,\n vm,\n key\n) {\n // work around Firefox's Object.prototype.watch...\n if (parentVal === nativeWatch) { parentVal = undefined; }\n if (childVal === nativeWatch) { childVal = undefined; }\n /* istanbul ignore if */\n if (!childVal) { return Object.create(parentVal || null) }\n if (false) {\n assertObjectType(key, childVal, vm);\n }\n if (!parentVal) { return childVal }\n var ret = {};\n extend(ret, parentVal);\n for (var key$1 in childVal) {\n var parent = ret[key$1];\n var child = childVal[key$1];\n if (parent && !Array.isArray(parent)) {\n parent = [parent];\n }\n ret[key$1] = parent\n ? parent.concat(child)\n : Array.isArray(child) ? child : [child];\n }\n return ret\n};\n\n/**\n * Other object hashes.\n */\nstrats.props =\nstrats.methods =\nstrats.inject =\nstrats.computed = function (\n parentVal,\n childVal,\n vm,\n key\n) {\n if (childVal && \"production\" !== 'production') {\n assertObjectType(key, childVal, vm);\n }\n if (!parentVal) { return childVal }\n var ret = Object.create(null);\n extend(ret, parentVal);\n if (childVal) { extend(ret, childVal); }\n return ret\n};\nstrats.provide = mergeDataOrFn;\n\n/**\n * Default strategy.\n */\nvar defaultStrat = function (parentVal, childVal) {\n return childVal === undefined\n ? parentVal\n : childVal\n};\n\n/**\n * Validate component names\n */\nfunction checkComponents (options) {\n for (var key in options.components) {\n validateComponentName(key);\n }\n}\n\nfunction validateComponentName (name) {\n if (!/^[a-zA-Z][\\w-]*$/.test(name)) {\n warn(\n 'Invalid component name: \"' + name + '\". Component names ' +\n 'can only contain alphanumeric characters and the hyphen, ' +\n 'and must start with a letter.'\n );\n }\n if (isBuiltInTag(name) || config.isReservedTag(name)) {\n warn(\n 'Do not use built-in or reserved HTML elements as component ' +\n 'id: ' + name\n );\n }\n}\n\n/**\n * Ensure all props option syntax are normalized into the\n * Object-based format.\n */\nfunction normalizeProps (options, vm) {\n var props = options.props;\n if (!props) { return }\n var res = {};\n var i, val, name;\n if (Array.isArray(props)) {\n i = props.length;\n while (i--) {\n val = props[i];\n if (typeof val === 'string') {\n name = camelize(val);\n res[name] = { type: null };\n } else if (false) {\n warn('props must be strings when using array syntax.');\n }\n }\n } else if (isPlainObject(props)) {\n for (var key in props) {\n val = props[key];\n name = camelize(key);\n res[name] = isPlainObject(val)\n ? val\n : { type: val };\n }\n } else if (false) {\n warn(\n \"Invalid value for option \\\"props\\\": expected an Array or an Object, \" +\n \"but got \" + (toRawType(props)) + \".\",\n vm\n );\n }\n options.props = res;\n}\n\n/**\n * Normalize all injections into Object-based format\n */\nfunction normalizeInject (options, vm) {\n var inject = options.inject;\n if (!inject) { return }\n var normalized = options.inject = {};\n if (Array.isArray(inject)) {\n for (var i = 0; i < inject.length; i++) {\n normalized[inject[i]] = { from: inject[i] };\n }\n } else if (isPlainObject(inject)) {\n for (var key in inject) {\n var val = inject[key];\n normalized[key] = isPlainObject(val)\n ? extend({ from: key }, val)\n : { from: val };\n }\n } else if (false) {\n warn(\n \"Invalid value for option \\\"inject\\\": expected an Array or an Object, \" +\n \"but got \" + (toRawType(inject)) + \".\",\n vm\n );\n }\n}\n\n/**\n * Normalize raw function directives into object format.\n */\nfunction normalizeDirectives (options) {\n var dirs = options.directives;\n if (dirs) {\n for (var key in dirs) {\n var def = dirs[key];\n if (typeof def === 'function') {\n dirs[key] = { bind: def, update: def };\n }\n }\n }\n}\n\nfunction assertObjectType (name, value, vm) {\n if (!isPlainObject(value)) {\n warn(\n \"Invalid value for option \\\"\" + name + \"\\\": expected an Object, \" +\n \"but got \" + (toRawType(value)) + \".\",\n vm\n );\n }\n}\n\n/**\n * Merge two option objects into a new one.\n * Core utility used in both instantiation and inheritance.\n */\nfunction mergeOptions (\n parent,\n child,\n vm\n) {\n if (false) {\n checkComponents(child);\n }\n\n if (typeof child === 'function') {\n child = child.options;\n }\n\n normalizeProps(child, vm);\n normalizeInject(child, vm);\n normalizeDirectives(child);\n var extendsFrom = child.extends;\n if (extendsFrom) {\n parent = mergeOptions(parent, extendsFrom, vm);\n }\n if (child.mixins) {\n for (var i = 0, l = child.mixins.length; i < l; i++) {\n parent = mergeOptions(parent, child.mixins[i], vm);\n }\n }\n var options = {};\n var key;\n for (key in parent) {\n mergeField(key);\n }\n for (key in child) {\n if (!hasOwn(parent, key)) {\n mergeField(key);\n }\n }\n function mergeField (key) {\n var strat = strats[key] || defaultStrat;\n options[key] = strat(parent[key], child[key], vm, key);\n }\n return options\n}\n\n/**\n * Resolve an asset.\n * This function is used because child instances need access\n * to assets defined in its ancestor chain.\n */\nfunction resolveAsset (\n options,\n type,\n id,\n warnMissing\n) {\n /* istanbul ignore if */\n if (typeof id !== 'string') {\n return\n }\n var assets = options[type];\n // check local registration variations first\n if (hasOwn(assets, id)) { return assets[id] }\n var camelizedId = camelize(id);\n if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }\n var PascalCaseId = capitalize(camelizedId);\n if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }\n // fallback to prototype chain\n var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];\n if (false) {\n warn(\n 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,\n options\n );\n }\n return res\n}\n\n/* */\n\nfunction validateProp (\n key,\n propOptions,\n propsData,\n vm\n) {\n var prop = propOptions[key];\n var absent = !hasOwn(propsData, key);\n var value = propsData[key];\n // handle boolean props\n if (isType(Boolean, prop.type)) {\n if (absent && !hasOwn(prop, 'default')) {\n value = false;\n } else if (!isType(String, prop.type) && (value === '' || value === hyphenate(key))) {\n value = true;\n }\n }\n // check default value\n if (value === undefined) {\n value = getPropDefaultValue(vm, prop, key);\n // since the default value is a fresh copy,\n // make sure to observe it.\n var prevShouldConvert = observerState.shouldConvert;\n observerState.shouldConvert = true;\n observe(value);\n observerState.shouldConvert = prevShouldConvert;\n }\n if (\n false\n ) {\n assertProp(prop, key, value, vm, absent);\n }\n return value\n}\n\n/**\n * Get the default value of a prop.\n */\nfunction getPropDefaultValue (vm, prop, key) {\n // no default, return undefined\n if (!hasOwn(prop, 'default')) {\n return undefined\n }\n var def = prop.default;\n // warn against non-factory defaults for Object & Array\n if (false) {\n warn(\n 'Invalid default value for prop \"' + key + '\": ' +\n 'Props with type Object/Array must use a factory function ' +\n 'to return the default value.',\n vm\n );\n }\n // the raw prop value was also undefined from previous render,\n // return previous default value to avoid unnecessary watcher trigger\n if (vm && vm.$options.propsData &&\n vm.$options.propsData[key] === undefined &&\n vm._props[key] !== undefined\n ) {\n return vm._props[key]\n }\n // call factory function for non-Function types\n // a value is Function if its prototype is function even across different execution context\n return typeof def === 'function' && getType(prop.type) !== 'Function'\n ? def.call(vm)\n : def\n}\n\n/**\n * Assert whether a prop is valid.\n */\nfunction assertProp (\n prop,\n name,\n value,\n vm,\n absent\n) {\n if (prop.required && absent) {\n warn(\n 'Missing required prop: \"' + name + '\"',\n vm\n );\n return\n }\n if (value == null && !prop.required) {\n return\n }\n var type = prop.type;\n var valid = !type || type === true;\n var expectedTypes = [];\n if (type) {\n if (!Array.isArray(type)) {\n type = [type];\n }\n for (var i = 0; i < type.length && !valid; i++) {\n var assertedType = assertType(value, type[i]);\n expectedTypes.push(assertedType.expectedType || '');\n valid = assertedType.valid;\n }\n }\n if (!valid) {\n warn(\n \"Invalid prop: type check failed for prop \\\"\" + name + \"\\\".\" +\n \" Expected \" + (expectedTypes.map(capitalize).join(', ')) +\n \", got \" + (toRawType(value)) + \".\",\n vm\n );\n return\n }\n var validator = prop.validator;\n if (validator) {\n if (!validator(value)) {\n warn(\n 'Invalid prop: custom validator check failed for prop \"' + name + '\".',\n vm\n );\n }\n }\n}\n\nvar simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;\n\nfunction assertType (value, type) {\n var valid;\n var expectedType = getType(type);\n if (simpleCheckRE.test(expectedType)) {\n var t = typeof value;\n valid = t === expectedType.toLowerCase();\n // for primitive wrapper objects\n if (!valid && t === 'object') {\n valid = value instanceof type;\n }\n } else if (expectedType === 'Object') {\n valid = isPlainObject(value);\n } else if (expectedType === 'Array') {\n valid = Array.isArray(value);\n } else {\n valid = value instanceof type;\n }\n return {\n valid: valid,\n expectedType: expectedType\n }\n}\n\n/**\n * Use function string name to check built-in types,\n * because a simple equality check will fail when running\n * across different vms / iframes.\n */\nfunction getType (fn) {\n var match = fn && fn.toString().match(/^\\s*function (\\w+)/);\n return match ? match[1] : ''\n}\n\nfunction isType (type, fn) {\n if (!Array.isArray(fn)) {\n return getType(fn) === getType(type)\n }\n for (var i = 0, len = fn.length; i < len; i++) {\n if (getType(fn[i]) === getType(type)) {\n return true\n }\n }\n /* istanbul ignore next */\n return false\n}\n\n/* */\n\nfunction handleError (err, vm, info) {\n if (vm) {\n var cur = vm;\n while ((cur = cur.$parent)) {\n var hooks = cur.$options.errorCaptured;\n if (hooks) {\n for (var i = 0; i < hooks.length; i++) {\n try {\n var capture = hooks[i].call(cur, err, vm, info) === false;\n if (capture) { return }\n } catch (e) {\n globalHandleError(e, cur, 'errorCaptured hook');\n }\n }\n }\n }\n }\n globalHandleError(err, vm, info);\n}\n\nfunction globalHandleError (err, vm, info) {\n if (config.errorHandler) {\n try {\n return config.errorHandler.call(null, err, vm, info)\n } catch (e) {\n logError(e, null, 'config.errorHandler');\n }\n }\n logError(err, vm, info);\n}\n\nfunction logError (err, vm, info) {\n if (false) {\n warn((\"Error in \" + info + \": \\\"\" + (err.toString()) + \"\\\"\"), vm);\n }\n /* istanbul ignore else */\n if ((inBrowser || inWeex) && typeof console !== 'undefined') {\n console.error(err);\n } else {\n throw err\n }\n}\n\n/* */\n/* globals MessageChannel */\n\nvar callbacks = [];\nvar pending = false;\n\nfunction flushCallbacks () {\n pending = false;\n var copies = callbacks.slice(0);\n callbacks.length = 0;\n for (var i = 0; i < copies.length; i++) {\n copies[i]();\n }\n}\n\n// Here we have async deferring wrappers using both micro and macro tasks.\n// In < 2.4 we used micro tasks everywhere, but there are some scenarios where\n// micro tasks have too high a priority and fires in between supposedly\n// sequential events (e.g. #4521, #6690) or even between bubbling of the same\n// event (#6566). However, using macro tasks everywhere also has subtle problems\n// when state is changed right before repaint (e.g. #6813, out-in transitions).\n// Here we use micro task by default, but expose a way to force macro task when\n// needed (e.g. in event handlers attached by v-on).\nvar microTimerFunc;\nvar macroTimerFunc;\nvar useMacroTask = false;\n\n// Determine (macro) Task defer implementation.\n// Technically setImmediate should be the ideal choice, but it's only available\n// in IE. The only polyfill that consistently queues the callback after all DOM\n// events triggered in the same loop is by using MessageChannel.\n/* istanbul ignore if */\nif (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {\n macroTimerFunc = function () {\n setImmediate(flushCallbacks);\n };\n} else if (typeof MessageChannel !== 'undefined' && (\n isNative(MessageChannel) ||\n // PhantomJS\n MessageChannel.toString() === '[object MessageChannelConstructor]'\n)) {\n var channel = new MessageChannel();\n var port = channel.port2;\n channel.port1.onmessage = flushCallbacks;\n macroTimerFunc = function () {\n port.postMessage(1);\n };\n} else {\n /* istanbul ignore next */\n macroTimerFunc = function () {\n setTimeout(flushCallbacks, 0);\n };\n}\n\n// Determine MicroTask defer implementation.\n/* istanbul ignore next, $flow-disable-line */\nif (typeof Promise !== 'undefined' && isNative(Promise)) {\n var p = Promise.resolve();\n microTimerFunc = function () {\n p.then(flushCallbacks);\n // in problematic UIWebViews, Promise.then doesn't completely break, but\n // it can get stuck in a weird state where callbacks are pushed into the\n // microtask queue but the queue isn't being flushed, until the browser\n // needs to do some other work, e.g. handle a timer. Therefore we can\n // \"force\" the microtask queue to be flushed by adding an empty timer.\n if (isIOS) { setTimeout(noop); }\n };\n} else {\n // fallback to macro\n microTimerFunc = macroTimerFunc;\n}\n\n/**\n * Wrap a function so that if any code inside triggers state change,\n * the changes are queued using a Task instead of a MicroTask.\n */\nfunction withMacroTask (fn) {\n return fn._withTask || (fn._withTask = function () {\n useMacroTask = true;\n var res = fn.apply(null, arguments);\n useMacroTask = false;\n return res\n })\n}\n\nfunction nextTick (cb, ctx) {\n var _resolve;\n callbacks.push(function () {\n if (cb) {\n try {\n cb.call(ctx);\n } catch (e) {\n handleError(e, ctx, 'nextTick');\n }\n } else if (_resolve) {\n _resolve(ctx);\n }\n });\n if (!pending) {\n pending = true;\n if (useMacroTask) {\n macroTimerFunc();\n } else {\n microTimerFunc();\n }\n }\n // $flow-disable-line\n if (!cb && typeof Promise !== 'undefined') {\n return new Promise(function (resolve) {\n _resolve = resolve;\n })\n }\n}\n\n/* */\n\nvar mark;\nvar measure;\n\nif (false) {\n var perf = inBrowser && window.performance;\n /* istanbul ignore if */\n if (\n perf &&\n perf.mark &&\n perf.measure &&\n perf.clearMarks &&\n perf.clearMeasures\n ) {\n mark = function (tag) { return perf.mark(tag); };\n measure = function (name, startTag, endTag) {\n perf.measure(name, startTag, endTag);\n perf.clearMarks(startTag);\n perf.clearMarks(endTag);\n perf.clearMeasures(name);\n };\n }\n}\n\n/* not type checking this file because flow doesn't play well with Proxy */\n\nvar initProxy;\n\nif (false) {\n var allowedGlobals = makeMap(\n 'Infinity,undefined,NaN,isFinite,isNaN,' +\n 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +\n 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +\n 'require' // for Webpack/Browserify\n );\n\n var warnNonPresent = function (target, key) {\n warn(\n \"Property or method \\\"\" + key + \"\\\" is not defined on the instance but \" +\n 'referenced during render. Make sure that this property is reactive, ' +\n 'either in the data option, or for class-based components, by ' +\n 'initializing the property. ' +\n 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',\n target\n );\n };\n\n var hasProxy =\n typeof Proxy !== 'undefined' &&\n Proxy.toString().match(/native code/);\n\n if (hasProxy) {\n var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');\n config.keyCodes = new Proxy(config.keyCodes, {\n set: function set (target, key, value) {\n if (isBuiltInModifier(key)) {\n warn((\"Avoid overwriting built-in modifier in config.keyCodes: .\" + key));\n return false\n } else {\n target[key] = value;\n return true\n }\n }\n });\n }\n\n var hasHandler = {\n has: function has (target, key) {\n var has = key in target;\n var isAllowed = allowedGlobals(key) || key.charAt(0) === '_';\n if (!has && !isAllowed) {\n warnNonPresent(target, key);\n }\n return has || !isAllowed\n }\n };\n\n var getHandler = {\n get: function get (target, key) {\n if (typeof key === 'string' && !(key in target)) {\n warnNonPresent(target, key);\n }\n return target[key]\n }\n };\n\n initProxy = function initProxy (vm) {\n if (hasProxy) {\n // determine which proxy handler to use\n var options = vm.$options;\n var handlers = options.render && options.render._withStripped\n ? getHandler\n : hasHandler;\n vm._renderProxy = new Proxy(vm, handlers);\n } else {\n vm._renderProxy = vm;\n }\n };\n}\n\n/* */\n\nvar seenObjects = new _Set();\n\n/**\n * Recursively traverse an object to evoke all converted\n * getters, so that every nested property inside the object\n * is collected as a \"deep\" dependency.\n */\nfunction traverse (val) {\n _traverse(val, seenObjects);\n seenObjects.clear();\n}\n\nfunction _traverse (val, seen) {\n var i, keys;\n var isA = Array.isArray(val);\n if ((!isA && !isObject(val)) || Object.isFrozen(val)) {\n return\n }\n if (val.__ob__) {\n var depId = val.__ob__.dep.id;\n if (seen.has(depId)) {\n return\n }\n seen.add(depId);\n }\n if (isA) {\n i = val.length;\n while (i--) { _traverse(val[i], seen); }\n } else {\n keys = Object.keys(val);\n i = keys.length;\n while (i--) { _traverse(val[keys[i]], seen); }\n }\n}\n\n/* */\n\nvar normalizeEvent = cached(function (name) {\n var passive = name.charAt(0) === '&';\n name = passive ? name.slice(1) : name;\n var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first\n name = once$$1 ? name.slice(1) : name;\n var capture = name.charAt(0) === '!';\n name = capture ? name.slice(1) : name;\n return {\n name: name,\n once: once$$1,\n capture: capture,\n passive: passive\n }\n});\n\nfunction createFnInvoker (fns) {\n function invoker () {\n var arguments$1 = arguments;\n\n var fns = invoker.fns;\n if (Array.isArray(fns)) {\n var cloned = fns.slice();\n for (var i = 0; i < cloned.length; i++) {\n cloned[i].apply(null, arguments$1);\n }\n } else {\n // return handler return value for single handlers\n return fns.apply(null, arguments)\n }\n }\n invoker.fns = fns;\n return invoker\n}\n\nfunction updateListeners (\n on,\n oldOn,\n add,\n remove$$1,\n vm\n) {\n var name, def, cur, old, event;\n for (name in on) {\n def = cur = on[name];\n old = oldOn[name];\n event = normalizeEvent(name);\n /* istanbul ignore if */\n if (isUndef(cur)) {\n \"production\" !== 'production' && warn(\n \"Invalid handler for event \\\"\" + (event.name) + \"\\\": got \" + String(cur),\n vm\n );\n } else if (isUndef(old)) {\n if (isUndef(cur.fns)) {\n cur = on[name] = createFnInvoker(cur);\n }\n add(event.name, cur, event.once, event.capture, event.passive, event.params);\n } else if (cur !== old) {\n old.fns = cur;\n on[name] = old;\n }\n }\n for (name in oldOn) {\n if (isUndef(on[name])) {\n event = normalizeEvent(name);\n remove$$1(event.name, oldOn[name], event.capture);\n }\n }\n}\n\n/* */\n\nfunction mergeVNodeHook (def, hookKey, hook) {\n if (def instanceof VNode) {\n def = def.data.hook || (def.data.hook = {});\n }\n var invoker;\n var oldHook = def[hookKey];\n\n function wrappedHook () {\n hook.apply(this, arguments);\n // important: remove merged hook to ensure it's called only once\n // and prevent memory leak\n remove(invoker.fns, wrappedHook);\n }\n\n if (isUndef(oldHook)) {\n // no existing hook\n invoker = createFnInvoker([wrappedHook]);\n } else {\n /* istanbul ignore if */\n if (isDef(oldHook.fns) && isTrue(oldHook.merged)) {\n // already a merged invoker\n invoker = oldHook;\n invoker.fns.push(wrappedHook);\n } else {\n // existing plain hook\n invoker = createFnInvoker([oldHook, wrappedHook]);\n }\n }\n\n invoker.merged = true;\n def[hookKey] = invoker;\n}\n\n/* */\n\nfunction extractPropsFromVNodeData (\n data,\n Ctor,\n tag\n) {\n // we are only extracting raw values here.\n // validation and default values are handled in the child\n // component itself.\n var propOptions = Ctor.options.props;\n if (isUndef(propOptions)) {\n return\n }\n var res = {};\n var attrs = data.attrs;\n var props = data.props;\n if (isDef(attrs) || isDef(props)) {\n for (var key in propOptions) {\n var altKey = hyphenate(key);\n if (false) {\n var keyInLowerCase = key.toLowerCase();\n if (\n key !== keyInLowerCase &&\n attrs && hasOwn(attrs, keyInLowerCase)\n ) {\n tip(\n \"Prop \\\"\" + keyInLowerCase + \"\\\" is passed to component \" +\n (formatComponentName(tag || Ctor)) + \", but the declared prop name is\" +\n \" \\\"\" + key + \"\\\". \" +\n \"Note that HTML attributes are case-insensitive and camelCased \" +\n \"props need to use their kebab-case equivalents when using in-DOM \" +\n \"templates. You should probably use \\\"\" + altKey + \"\\\" instead of \\\"\" + key + \"\\\".\"\n );\n }\n }\n checkProp(res, props, key, altKey, true) ||\n checkProp(res, attrs, key, altKey, false);\n }\n }\n return res\n}\n\nfunction checkProp (\n res,\n hash,\n key,\n altKey,\n preserve\n) {\n if (isDef(hash)) {\n if (hasOwn(hash, key)) {\n res[key] = hash[key];\n if (!preserve) {\n delete hash[key];\n }\n return true\n } else if (hasOwn(hash, altKey)) {\n res[key] = hash[altKey];\n if (!preserve) {\n delete hash[altKey];\n }\n return true\n }\n }\n return false\n}\n\n/* */\n\n// The template compiler attempts to minimize the need for normalization by\n// statically analyzing the template at compile time.\n//\n// For plain HTML markup, normalization can be completely skipped because the\n// generated render function is guaranteed to return Array. There are\n// two cases where extra normalization is needed:\n\n// 1. When the children contains components - because a functional component\n// may return an Array instead of a single root. In this case, just a simple\n// normalization is needed - if any child is an Array, we flatten the whole\n// thing with Array.prototype.concat. It is guaranteed to be only 1-level deep\n// because functional components already normalize their own children.\nfunction simpleNormalizeChildren (children) {\n for (var i = 0; i < children.length; i++) {\n if (Array.isArray(children[i])) {\n return Array.prototype.concat.apply([], children)\n }\n }\n return children\n}\n\n// 2. When the children contains constructs that always generated nested Arrays,\n// e.g.