webpackJsonp([0],{"/ocq":function(t,e,n){"use strict"; /** * vue-router v3.0.1 * (c) 2017 Evan You * @license MIT */function r(t,e){0}function i(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}var o={name:"router-view",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,r=e.children,i=e.parent,o=e.data;o.routerView=!0;for(var a=i.$createElement,s=n.name,c=i.$route,u=i._routerViewCache||(i._routerViewCache={}),l=0,f=!1;i&&i._routerRoot!==i;)i.$vnode&&i.$vnode.data.routerView&&l++,i._inactive&&(f=!0),i=i.$parent;if(o.routerViewDepth=l,f)return a(u[s],o,r);var h=c.matched[l];if(!h)return u[s]=null,a();var p=u[s]=h.components[s];o.registerRouteInstance=function(t,e){var n=h.instances[s];(e&&n!==t||!e&&n===t)&&(h.instances[s]=e)},(o.hook||(o.hook={})).prepatch=function(t,e){h.instances[s]=e.componentInstance};var d=o.props=function(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0;default:0}}(c,h.props&&h.props[s]);if(d){d=o.props=function(t,e){for(var n in e)t[n]=e[n];return t}({},d);var v=o.attrs=o.attrs||{};for(var m in d)p.props&&m in p.props||(v[m]=d[m],delete d[m])}return a(p,o,r)}};var a=/[!'()*]/g,s=function(t){return"%"+t.charCodeAt(0).toString(16)},c=/%2C/g,u=function(t){return encodeURIComponent(t).replace(a,s).replace(c,",")},l=decodeURIComponent;function f(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach(function(t){var n=t.replace(/\+/g," ").split("="),r=l(n.shift()),i=n.length>0?l(n.join("=")):null;void 0===e[r]?e[r]=i:Array.isArray(e[r])?e[r].push(i):e[r]=[e[r],i]}),e):e}function h(t){var e=t?Object.keys(t).map(function(e){var n=t[e];if(void 0===n)return"";if(null===n)return u(e);if(Array.isArray(n)){var r=[];return n.forEach(function(t){void 0!==t&&(null===t?r.push(u(e)):r.push(u(e)+"="+u(t)))}),r.join("&")}return u(e)+"="+u(n)}).filter(function(t){return t.length>0}).join("&"):null;return e?"?"+e:""}var p=/\/?$/;function d(t,e,n,r){var i=r&&r.options.stringifyQuery,o=e.query||{};try{o=v(o)}catch(t){}var a={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:o,params:e.params||{},fullPath:g(e,i),matched:t?function(t){var e=[];for(;t;)e.unshift(t),t=t.parent;return e}(t):[]};return n&&(a.redirectedFrom=g(n,i)),Object.freeze(a)}function v(t){if(Array.isArray(t))return t.map(v);if(t&&"object"==typeof t){var e={};for(var n in t)e[n]=v(t[n]);return e}return t}var m=d(null,{path:"/"});function g(t,e){var n=t.path,r=t.query;void 0===r&&(r={});var i=t.hash;return void 0===i&&(i=""),(n||"/")+(e||h)(r)+i}function y(t,e){return e===m?t===e:!!e&&(t.path&&e.path?t.path.replace(p,"")===e.path.replace(p,"")&&t.hash===e.hash&&b(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&b(t.query,e.query)&&b(t.params,e.params)))}function b(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var n=Object.keys(t),r=Object.keys(e);return n.length===r.length&&n.every(function(n){var r=t[n],i=e[n];return"object"==typeof r&&"object"==typeof i?b(r,i):String(r)===String(i)})}var S,_=[String,Object],w=[String,Array],x={name:"router-link",props:{to:{type:_,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:w,default:"click"}},render:function(t){var e=this,n=this.$router,r=this.$route,i=n.resolve(this.to,r,this.append),o=i.location,a=i.route,s=i.href,c={},u=n.options.linkActiveClass,l=n.options.linkExactActiveClass,f=null==u?"router-link-active":u,h=null==l?"router-link-exact-active":l,v=null==this.activeClass?f:this.activeClass,m=null==this.exactActiveClass?h:this.exactActiveClass,g=o.path?d(null,o,null,n):a;c[m]=y(r,g),c[v]=this.exact?c[m]:function(t,e){return 0===t.path.replace(p,"/").indexOf(e.path.replace(p,"/"))&&(!e.hash||t.hash===e.hash)&&function(t,e){for(var n in e)if(!(n in t))return!1;return!0}(t.query,e.query)}(r,g);var b=function(t){C(t)&&(e.replace?n.replace(o):n.push(o))},_={click:C};Array.isArray(this.event)?this.event.forEach(function(t){_[t]=b}):_[this.event]=b;var w={class:c};if("a"===this.tag)w.on=_,w.attrs={href:s};else{var x=function t(e){if(e)for(var n,r=0;r=0&&(e=t.slice(r),t=t.slice(0,r));var i=t.indexOf("?");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{path:t,query:n,hash:e}}(i.path||""),c=e&&e.path||"/",u=s.path?k(s.path,c,n||i.append):c,l=function(t,e,n){void 0===e&&(e={});var r,i=n||f;try{r=i(t||"")}catch(t){r={}}for(var o in e)r[o]=e[o];return r}(s.query,i.query,r&&r.options.parseQuery),h=i.hash||s.hash;return h&&"#"!==h.charAt(0)&&(h="#"+h),{_normalized:!0,path:u,query:l,hash:h}}function J(t,e){for(var n in e)t[n]=e[n];return t}function X(t,e){var n=q(t),r=n.pathList,i=n.pathMap,o=n.nameMap;function a(t,n,a){var s=K(t,n,!1,e),u=s.name;if(u){var l=o[u];if(!l)return c(null,s);var f=l.regex.keys.filter(function(t){return!t.optional}).map(function(t){return t.name});if("object"!=typeof s.params&&(s.params={}),n&&"object"==typeof n.params)for(var h in n.params)!(h in s.params)&&f.indexOf(h)>-1&&(s.params[h]=n.params[h]);if(l)return s.path=W(l.path,s.params),c(l,s,a)}else if(s.path){s.params={};for(var p=0;p=t.length?n():t[i]?e(t[i],function(){r(i+1)}):r(i+1)};r(0)}function vt(t){return function(e,n,r){var o=!1,a=0,s=null;mt(t,function(t,e,n,c){if("function"==typeof t&&void 0===t.cid){o=!0,a++;var u,l=bt(function(e){var i;((i=e).__esModule||yt&&"Module"===i[Symbol.toStringTag])&&(e=e.default),t.resolved="function"==typeof e?e:S.extend(e),n.components[c]=e,--a<=0&&r()}),f=bt(function(t){var e="Failed to resolve async component "+c+": "+t;s||(s=i(t)?t:new Error(e),r(s))});try{u=t(l,f)}catch(t){f(t)}if(u)if("function"==typeof u.then)u.then(l,f);else{var h=u.component;h&&"function"==typeof h.then&&h.then(l,f)}}}),o||r()}}function mt(t,e){return gt(t.map(function(t){return Object.keys(t.components).map(function(n){return e(t.components[n],t.instances[n],t,n)})}))}function gt(t){return Array.prototype.concat.apply([],t)}var yt="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function bt(t){var e=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!e)return e=!0,t.apply(this,n)}}var St=function(t,e){this.router=t,this.base=function(t){if(!t)if($){var e=document.querySelector("base");t=(t=e&&e.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else t="/";"/"!==t.charAt(0)&&(t="/"+t);return t.replace(/\/$/,"")}(e),this.current=m,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};function _t(t,e,n,r){var i=mt(t,function(t,r,i,o){var a=function(t,e){"function"!=typeof t&&(t=S.extend(t));return t.options[e]}(t,e);if(a)return Array.isArray(a)?a.map(function(t){return n(t,r,i,o)}):n(a,r,i,o)});return gt(r?i.reverse():i)}function wt(t,e){if(e)return function(){return t.apply(e,arguments)}}St.prototype.listen=function(t){this.cb=t},St.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},St.prototype.onError=function(t){this.errorCbs.push(t)},St.prototype.transitionTo=function(t,e,n){var r=this,i=this.router.match(t,this.current);this.confirmTransition(i,function(){r.updateRoute(i),e&&e(i),r.ensureURL(),r.ready||(r.ready=!0,r.readyCbs.forEach(function(t){t(i)}))},function(t){n&&n(t),t&&!r.ready&&(r.ready=!0,r.readyErrorCbs.forEach(function(e){e(t)}))})},St.prototype.confirmTransition=function(t,e,n){var o=this,a=this.current,s=function(t){i(t)&&(o.errorCbs.length?o.errorCbs.forEach(function(e){e(t)}):(r(),console.error(t))),n&&n(t)};if(y(t,a)&&t.matched.length===a.matched.length)return this.ensureURL(),s();var c=function(t,e){var n,r=Math.max(t.length,e.length);for(n=0;n=0?e.slice(0,n):e)+"#"+t}function Ft(t){st?ht(Ot(t)):window.location.hash=t}function Tt(t){st?pt(Ot(t)):window.location.replace(Ot(t))}var Rt=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var r=this;this.transitionTo(t,function(t){r.stack=r.stack.slice(0,r.index+1).concat(t),r.index++,e&&e(t)},n)},e.prototype.replace=function(t,e,n){var r=this;this.transitionTo(t,function(t){r.stack=r.stack.slice(0,r.index).concat(t),e&&e(t)},n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,function(){e.index=n,e.updateRoute(r)})}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(St),Et=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=X(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!st&&!1!==t.fallback,this.fallback&&(e="hash"),$||(e="abstract"),this.mode=e,e){case"history":this.history=new xt(this,t.base);break;case"hash":this.history=new At(this,t.base,this.fallback);break;case"abstract":this.history=new Rt(this,t.base);break;default:0}},Lt={currentRoute:{configurable:!0}};function Mt(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}Et.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},Lt.currentRoute.get=function(){return this.history&&this.history.current},Et.prototype.init=function(t){var e=this;if(this.apps.push(t),!this.app){this.app=t;var n=this.history;if(n instanceof xt)n.transitionTo(n.getCurrentLocation());else if(n instanceof At){var r=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen(function(t){e.apps.forEach(function(e){e._route=t})})}},Et.prototype.beforeEach=function(t){return Mt(this.beforeHooks,t)},Et.prototype.beforeResolve=function(t){return Mt(this.resolveHooks,t)},Et.prototype.afterEach=function(t){return Mt(this.afterHooks,t)},Et.prototype.onReady=function(t,e){this.history.onReady(t,e)},Et.prototype.onError=function(t){this.history.onError(t)},Et.prototype.push=function(t,e,n){this.history.push(t,e,n)},Et.prototype.replace=function(t,e,n){this.history.replace(t,e,n)},Et.prototype.go=function(t){this.history.go(t)},Et.prototype.back=function(){this.go(-1)},Et.prototype.forward=function(){this.go(1)},Et.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map(function(t){return Object.keys(t.components).map(function(e){return t.components[e]})})):[]},Et.prototype.resolve=function(t,e,n){var r=K(t,e||this.history.current,n,this),i=this.match(r,e),o=i.redirectedFrom||i.fullPath;return{location:r,route:i,href:function(t,e,n){var r="hash"===n?"#"+e:e;return t?O(t+"/"+r):r}(this.history.base,o,this.mode),normalizedTo:r,resolved:i}},Et.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==m&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Et.prototype,Lt),Et.install=A,Et.version="3.0.1",$&&window.Vue&&window.Vue.use(Et),e.a=Et},"7+uW":function(t,e,n){"use strict";(function(t){ /*! * Vue.js v2.5.16 * (c) 2014-2018 Evan You * Released under the MIT License. */ var n=Object.freeze({});function r(t){return void 0===t||null===t}function i(t){return void 0!==t&&null!==t}function o(t){return!0===t}function a(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function s(t){return null!==t&&"object"==typeof t}var c=Object.prototype.toString;function u(t){return"[object Object]"===c.call(t)}function l(t){return"[object RegExp]"===c.call(t)}function f(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function h(t){return null==t?"":"object"==typeof t?JSON.stringify(t,null,2):String(t)}function p(t){var e=parseFloat(t);return isNaN(e)?t:e}function d(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i-1)return t.splice(n,1)}}var y=Object.prototype.hasOwnProperty;function b(t,e){return y.call(t,e)}function S(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var _=/-(\w)/g,w=S(function(t){return t.replace(_,function(t,e){return e?e.toUpperCase():""})}),x=S(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),C=/\B([A-Z])/g,A=S(function(t){return t.replace(C,"-$1").toLowerCase()});var $=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n};function k(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function O(t,e){for(var n in e)t[n]=e[n];return t}function F(t){for(var e={},n=0;n0,Z=K&&K.indexOf("edge/")>0,Y=(K&&K.indexOf("android"),K&&/iphone|ipad|ipod|ios/.test(K)||"ios"===q),Q=(K&&/chrome\/\d+/.test(K),{}.watch),tt=!1;if(z)try{var et={};Object.defineProperty(et,"passive",{get:function(){tt=!0}}),window.addEventListener("test-passive",null,et)}catch(t){}var nt=function(){return void 0===G&&(G=!z&&!W&&void 0!==t&&"server"===t.process.env.VUE_ENV),G},rt=z&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function it(t){return"function"==typeof t&&/native code/.test(t.toString())}var ot,at="undefined"!=typeof Symbol&&it(Symbol)&&"undefined"!=typeof Reflect&&it(Reflect.ownKeys);ot="undefined"!=typeof Set&&it(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var st=T,ct=0,ut=function(){this.id=ct++,this.subs=[]};ut.prototype.addSub=function(t){this.subs.push(t)},ut.prototype.removeSub=function(t){g(this.subs,t)},ut.prototype.depend=function(){ut.target&&ut.target.addDep(this)},ut.prototype.notify=function(){for(var t=this.subs.slice(),e=0,n=t.length;e-1)if(o&&!b(i,"default"))a=!1;else if(""===a||a===A(t)){var c=Dt(String,i.type);(c<0||s0&&(le((u=t(u,(n||"")+"_"+c))[0])&&le(f)&&(s[l]=mt(f.text+u[0].text),u.shift()),s.push.apply(s,u)):a(u)?le(f)?s[l]=mt(f.text+u):""!==u&&s.push(mt(u)):le(u)&&le(f)?s[l]=mt(f.text+u.text):(o(e._isVList)&&i(u.tag)&&r(u.key)&&i(n)&&(u.key="__vlist"+n+"_"+c+"__"),s.push(u)));return s}(t):void 0}function le(t){return i(t)&&i(t.text)&&!1===t.isComment}function fe(t,e){return(t.__esModule||at&&"Module"===t[Symbol.toStringTag])&&(t=t.default),s(t)?e.extend(t):t}function he(t){return t.isComment&&t.asyncFactory}function pe(t){if(Array.isArray(t))for(var e=0;eFe&&Ce[n].id>t.id;)n--;Ce.splice(n+1,0,t)}else Ce.push(t);ke||(ke=!0,te(Te))}}(this)},Ee.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||s(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){Bt(t,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},Ee.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},Ee.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},Ee.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||g(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var Le={enumerable:!0,configurable:!0,get:T,set:T};function Me(t,e,n){Le.get=function(){return this[e][n]},Le.set=function(t){this[e][n]=t},Object.defineProperty(t,n,Le)}function Ie(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var n=t.$options.propsData||{},r=t._props={},i=t.$options._propKeys=[];t.$parent&&wt(!1);var o=function(o){i.push(o);var a=Pt(o,e,n,t);kt(r,o,a),o in t||Me(t,"_props",o)};for(var a in e)o(a);wt(!0)}(t,e.props),e.methods&&function(t,e){t.$options.props;for(var n in e)t[n]=null==e[n]?T:$(e[n],t)}(t,e.methods),e.data?function(t){var e=t.$options.data;u(e=t._data="function"==typeof e?function(t,e){ft();try{return t.call(e,e)}catch(t){return Bt(t,e,"data()"),{}}finally{ht()}}(e,t):e||{})||(e={});var n=Object.keys(e),r=t.$options.props,i=(t.$options.methods,n.length);for(;i--;){var o=n[i];0,r&&b(r,o)||H(o)||Me(t,"_data",o)}$t(e,!0)}(t):$t(t._data={},!0),e.computed&&function(t,e){var n=t._computedWatchers=Object.create(null),r=nt();for(var i in e){var o=e[i],a="function"==typeof o?o:o.get;0,r||(n[i]=new Ee(t,a||T,T,je)),i in t||Ne(t,i,o)}}(t,e.computed),e.watch&&e.watch!==Q&&function(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i=0||n.indexOf(t[i])<0)&&r.push(t[i]);return r}return t}function hn(t){this._init(t)}function pn(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,i=t._Ctor||(t._Ctor={});if(i[r])return i[r];var o=t.name||n.options.name;var a=function(t){this._init(t)};return(a.prototype=Object.create(n.prototype)).constructor=a,a.cid=e++,a.options=jt(n.options,t),a.super=n,a.options.props&&function(t){var e=t.options.props;for(var n in e)Me(t.prototype,"_props",n)}(a),a.options.computed&&function(t){var e=t.options.computed;for(var n in e)Ne(t.prototype,n,e[n])}(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,N.forEach(function(t){a[t]=n[t]}),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=O({},a.options),i[r]=a,a}}function dn(t){return t&&(t.Ctor.options.name||t.tag)}function vn(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:!!l(t)&&t.test(e)}function mn(t,e){var n=t.cache,r=t.keys,i=t._vnode;for(var o in n){var a=n[o];if(a){var s=dn(a.componentOptions);s&&!e(s)&&gn(n,o,r,i)}}}function gn(t,e,n,r){var i=t[e];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),t[e]=null,g(n,e)}!function(t){t.prototype._init=function(t){var e=this;e._uid=un++,e._isVue=!0,t&&t._isComponent?function(t,e){var n=t.$options=Object.create(t.constructor.options),r=e._parentVnode;n.parent=e.parent,n._parentVnode=r,n._parentElm=e._parentElm,n._refElm=e._refElm;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=jt(ln(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(e),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&me(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,r=t.$vnode=e._parentVnode,i=r&&r.context;t.$slots=ge(e._renderChildren,i),t.$scopedSlots=n,t._c=function(e,n,r,i){return cn(t,e,n,r,i,!1)},t.$createElement=function(e,n,r,i){return cn(t,e,n,r,i,!0)};var o=r&&r.data;kt(t,"$attrs",o&&o.attrs||n,null,!0),kt(t,"$listeners",e._parentListeners||n,null,!0)}(e),xe(e,"beforeCreate"),function(t){var e=He(t.$options.inject,t);e&&(wt(!1),Object.keys(e).forEach(function(n){kt(t,n,e[n])}),wt(!0))}(e),Ie(e),function(t){var e=t.$options.provide;e&&(t._provided="function"==typeof e?e.call(t):e)}(e),xe(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}(hn),function(t){var e={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=Ot,t.prototype.$delete=Ft,t.prototype.$watch=function(t,e,n){if(u(e))return Ve(this,t,e,n);(n=n||{}).user=!0;var r=new Ee(this,t,e,n);return n.immediate&&e.call(this,r.value),function(){r.teardown()}}}(hn),function(t){var e=/^hook:/;t.prototype.$on=function(t,n){if(Array.isArray(t))for(var r=0,i=t.length;r1?k(n):n;for(var r=k(arguments,1),i=0,o=n.length;iparseInt(this.max)&&gn(a,s[0],s,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}}};!function(t){var e={get:function(){return V}};Object.defineProperty(t,"config",e),t.util={warn:st,extend:O,mergeOptions:jt,defineReactive:kt},t.set=Ot,t.delete=Ft,t.nextTick=te,t.options=Object.create(null),N.forEach(function(e){t.options[e+"s"]=Object.create(null)}),t.options._base=t,O(t.options.components,bn),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=k(arguments,1);return n.unshift(this),"function"==typeof t.install?t.install.apply(t,n):"function"==typeof t&&t.apply(null,n),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=jt(this.options,t),this}}(t),pn(t),function(t){N.forEach(function(e){t[e]=function(t,n){return n?("component"===e&&u(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}})}(t)}(hn),Object.defineProperty(hn.prototype,"$isServer",{get:nt}),Object.defineProperty(hn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(hn,"FunctionalRenderContext",{value:Qe}),hn.version="2.5.16";var Sn=d("style,class"),_n=d("input,textarea,option,select,progress"),wn=function(t,e,n){return"value"===n&&_n(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},xn=d("contenteditable,draggable,spellcheck"),Cn=d("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"),An="http://www.w3.org/1999/xlink",$n=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},kn=function(t){return $n(t)?t.slice(6,t.length):""},On=function(t){return null==t||!1===t};function Fn(t){for(var e=t.data,n=t,r=t;i(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(e=Tn(r.data,e));for(;i(n=n.parent);)n&&n.data&&(e=Tn(e,n.data));return function(t,e){if(i(t)||i(e))return Rn(t,En(e));return""}(e.staticClass,e.class)}function Tn(t,e){return{staticClass:Rn(t.staticClass,e.staticClass),class:i(t.class)?[t.class,e.class]:e.class}}function Rn(t,e){return t?e?t+" "+e:t:e||""}function En(t){return Array.isArray(t)?function(t){for(var e,n="",r=0,o=t.length;r-1?rr(t,e,n):Cn(e)?On(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):xn(e)?t.setAttribute(e,On(n)||"false"===n?"false":"true"):$n(e)?On(n)?t.removeAttributeNS(An,kn(e)):t.setAttributeNS(An,e,n):rr(t,e,n)}function rr(t,e,n){if(On(n))t.removeAttribute(e);else{if(J&&!X&&"TEXTAREA"===t.tagName&&"placeholder"===e&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var ir={create:er,update:er};function or(t,e){var n=e.elm,o=e.data,a=t.data;if(!(r(o.staticClass)&&r(o.class)&&(r(a)||r(a.staticClass)&&r(a.class)))){var s=Fn(e),c=n._transitionClasses;i(c)&&(s=Rn(s,En(c))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var ar,sr,cr,ur,lr,fr,hr={create:or,update:or},pr=/[\w).+\-_$\]]/;function dr(t){var e,n,r,i,o,a=!1,s=!1,c=!1,u=!1,l=0,f=0,h=0,p=0;for(r=0;r=0&&" "===(v=t.charAt(d));d--);v&&pr.test(v)||(u=!0)}}else void 0===i?(p=r+1,i=t.slice(0,r).trim()):m();function m(){(o||(o=[])).push(t.slice(p,r).trim()),p=r+1}if(void 0===i?i=t.slice(0,r).trim():0!==p&&m(),o)for(r=0;r-1?{exp:t.slice(0,ur),key:'"'+t.slice(ur+1)+'"'}:{exp:t,key:null};sr=t,ur=lr=fr=0;for(;!Or();)Fr(cr=kr())?Rr(cr):91===cr&&Tr(cr);return{exp:t.slice(0,lr),key:t.slice(lr+1,fr)}}(t);return null===n.key?t+"="+e:"$set("+n.exp+", "+n.key+", "+e+")"}function kr(){return sr.charCodeAt(++ur)}function Or(){return ur>=ar}function Fr(t){return 34===t||39===t}function Tr(t){var e=1;for(lr=ur;!Or();)if(Fr(t=kr()))Rr(t);else if(91===t&&e++,93===t&&e--,0===e){fr=ur;break}}function Rr(t){for(var e=t;!Or()&&(t=kr())!==e;);}var Er,Lr="__r",Mr="__c";function Ir(t,e,n,r,i){var o;e=(o=e)._withTask||(o._withTask=function(){Xt=!0;var t=o.apply(null,arguments);return Xt=!1,t}),n&&(e=function(t,e,n){var r=Er;return function i(){null!==t.apply(null,arguments)&&jr(e,i,n,r)}}(e,t,r)),Er.addEventListener(t,e,tt?{capture:r,passive:i}:r)}function jr(t,e,n,r){(r||Er).removeEventListener(t,e._withTask||e,n)}function Nr(t,e){if(!r(t.data.on)||!r(e.data.on)){var n=e.data.on||{},o=t.data.on||{};Er=e.elm,function(t){if(i(t[Lr])){var e=J?"change":"input";t[e]=[].concat(t[Lr],t[e]||[]),delete t[Lr]}i(t[Mr])&&(t.change=[].concat(t[Mr],t.change||[]),delete t[Mr])}(n),ae(n,o,Ir,jr,e.context),Er=void 0}}var Pr={create:Nr,update:Nr};function Vr(t,e){if(!r(t.data.domProps)||!r(e.data.domProps)){var n,o,a=e.elm,s=t.data.domProps||{},c=e.data.domProps||{};for(n in i(c.__ob__)&&(c=e.data.domProps=O({},c)),s)r(c[n])&&(a[n]="");for(n in c){if(o=c[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),o===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n){a._value=o;var u=r(o)?"":String(o);Hr(a,u)&&(a.value=u)}else a[n]=o}}}function Hr(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}(t,e)||function(t,e){var n=t.value,r=t._vModifiers;if(i(r)){if(r.lazy)return!1;if(r.number)return p(n)!==p(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}(t,e))}var Dr={create:Vr,update:Vr},Br=S(function(t){var e={},n=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach(function(t){if(t){var r=t.split(n);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e});function Gr(t){var e=Ur(t.style);return t.staticStyle?O(t.staticStyle,e):e}function Ur(t){return Array.isArray(t)?F(t):"string"==typeof t?Br(t):t}var zr,Wr=/^--/,qr=/\s*!important$/,Kr=function(t,e,n){if(Wr.test(e))t.style.setProperty(e,n);else if(qr.test(n))t.style.setProperty(e,n.replace(qr,""),"important");else{var r=Xr(e);if(Array.isArray(n))for(var i=0,o=n.length;i-1?e.split(/\s+/).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function ti(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}function ei(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&O(e,ni(t.name||"v")),O(e,t),e}return"string"==typeof t?ni(t):void 0}}var ni=S(function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}}),ri=z&&!X,ii="transition",oi="animation",ai="transition",si="transitionend",ci="animation",ui="animationend";ri&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(ai="WebkitTransition",si="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(ci="WebkitAnimation",ui="webkitAnimationEnd"));var li=z?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function fi(t){li(function(){li(t)})}function hi(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),Qr(t,e))}function pi(t,e){t._transitionClasses&&g(t._transitionClasses,e),ti(t,e)}function di(t,e,n){var r=mi(t,e),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===ii?si:ui,c=0,u=function(){t.removeEventListener(s,l),n()},l=function(e){e.target===t&&++c>=a&&u()};setTimeout(function(){c0&&(n=ii,l=a,f=o.length):e===oi?u>0&&(n=oi,l=u,f=c.length):f=(n=(l=Math.max(a,u))>0?a>u?ii:oi:null)?n===ii?o.length:c.length:0,{type:n,timeout:l,propCount:f,hasTransform:n===ii&&vi.test(r[ai+"Property"])}}function gi(t,e){for(;t.length1}function xi(t,e){!0!==e.data.show&&bi(e)}var Ci=function(t){var e,n,s={},c=t.modules,u=t.nodeOps;for(e=0;ed?b(t,r(n[g+1])?null:n[g+1].elm,n,p,g,o):p>g&&_(0,e,h,d)}(c,p,d,n,a):i(d)?(i(t.text)&&u.setTextContent(c,""),b(c,null,d,0,d.length-1,n)):i(p)?_(0,p,0,p.length-1):i(t.text)&&u.setTextContent(c,""):t.text!==e.text&&u.setTextContent(c,e.text),i(h)&&i(l=h.hook)&&i(l=l.postpatch)&&l(t,e)}}}function A(t,e,n){if(o(n)&&i(t.parent))t.parent.data.pendingInsert=e;else for(var r=0;r-1,a.selected!==o&&(a.selected=o);else if(L(Fi(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));i||(t.selectedIndex=-1)}}function Oi(t,e){return e.every(function(e){return!L(e,t)})}function Fi(t){return"_value"in t?t._value:t.value}function Ti(t){t.target.composing=!0}function Ri(t){t.target.composing&&(t.target.composing=!1,Ei(t.target,"input"))}function Ei(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function Li(t){return!t.componentInstance||t.data&&t.data.transition?t:Li(t.componentInstance._vnode)}var Mi={model:Ai,show:{bind:function(t,e,n){var r=e.value,i=(n=Li(n)).data&&n.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&i?(n.data.show=!0,bi(n,function(){t.style.display=o})):t.style.display=r?o:"none"},update:function(t,e,n){var r=e.value;!r!=!e.oldValue&&((n=Li(n)).data&&n.data.transition?(n.data.show=!0,r?bi(n,function(){t.style.display=t.__vOriginalDisplay}):Si(n,function(){t.style.display="none"})):t.style.display=r?t.__vOriginalDisplay:"none")},unbind:function(t,e,n,r,i){i||(t.style.display=t.__vOriginalDisplay)}}},Ii={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function ji(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?ji(pe(e.children)):t}function Ni(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var i=n._parentListeners;for(var o in i)e[w(o)]=i[o];return e}function Pi(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var Vi={name:"transition",props:Ii,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(function(t){return t.tag||he(t)})).length){0;var r=this.mode;0;var i=n[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return i;var o=ji(i);if(!o)return i;if(this._leaving)return Pi(t,i);var s="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?s+"comment":s+o.tag:a(o.key)?0===String(o.key).indexOf(s)?o.key:s+o.key:o.key;var c=(o.data||(o.data={})).transition=Ni(this),u=this._vnode,l=ji(u);if(o.data.directives&&o.data.directives.some(function(t){return"show"===t.name})&&(o.data.show=!0),l&&l.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(o,l)&&!he(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var f=l.data.transition=O({},c);if("out-in"===r)return this._leaving=!0,se(f,"afterLeave",function(){e._leaving=!1,e.$forceUpdate()}),Pi(t,i);if("in-out"===r){if(he(o))return u;var h,p=function(){h()};se(c,"afterEnter",p),se(c,"enterCancelled",p),se(f,"delayLeave",function(t){h=t})}}return i}}},Hi=O({tag:String,moveClass:String},Ii);function Di(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function Bi(t){t.data.newPos=t.elm.getBoundingClientRect()}function Gi(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,i=e.top-n.top;if(r||i){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}delete Hi.mode;var Ui={Transition:Vi,TransitionGroup:{props:Hi,render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=Ni(this),s=0;s-1?Pn[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Pn[t]=/HTMLUnknownElement/.test(e.toString())},O(hn.options.directives,Mi),O(hn.options.components,Ui),hn.prototype.__patch__=z?Ci:T,hn.prototype.$mount=function(t,e){return function(t,e,n){return t.$el=e,t.$options.render||(t.$options.render=vt),xe(t,"beforeMount"),new Ee(t,function(){t._update(t._render(),n)},T,null,!0),n=!1,null==t.$vnode&&(t._isMounted=!0,xe(t,"mounted")),t}(this,t=t&&z?Hn(t):void 0,e)},z&&setTimeout(function(){V.devtools&&rt&&rt.emit("init",hn)},0);var zi=/\{\{((?:.|\n)+?)\}\}/g,Wi=/[-.*+?^${}()|[\]\/\\]/g,qi=S(function(t){var e=t[0].replace(Wi,"\\$&"),n=t[1].replace(Wi,"\\$&");return new RegExp(e+"((?:.|\\n)+?)"+n,"g")});function Ki(t,e){var n=e?qi(e):zi;if(n.test(t)){for(var r,i,o,a=[],s=[],c=n.lastIndex=0;r=n.exec(t);){(i=r.index)>c&&(s.push(o=t.slice(c,i)),a.push(JSON.stringify(o)));var u=dr(r[1].trim());a.push("_s("+u+")"),s.push({"@binding":u}),c=i+r[0].length}return c\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,ro="[a-zA-Z_][\\w\\-\\.]*",io="((?:"+ro+"\\:)?"+ro+")",oo=new RegExp("^<"+io),ao=/^\s*(\/?)>/,so=new RegExp("^<\\/"+io+"[^>]*>"),co=/^]+>/i,uo=/^",""":'"',"&":"&"," ":"\n"," ":"\t"},mo=/&(?:lt|gt|quot|amp);/g,go=/&(?:lt|gt|quot|amp|#10|#9);/g,yo=d("pre,textarea",!0),bo=function(t,e){return t&&yo(t)&&"\n"===e[0]};function So(t,e){var n=e?go:mo;return t.replace(n,function(t){return vo[t]})}var _o,wo,xo,Co,Ao,$o,ko,Oo,Fo=/^@|^v-on:/,To=/^v-|^@|^:/,Ro=/([^]*?)\s+(?:in|of)\s+([^]*)/,Eo=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Lo=/^\(|\)$/g,Mo=/:(.*)$/,Io=/^:|^v-bind:/,jo=/\.[^.]+/g,No=S(Yi);function Po(t,e,n){return{type:1,tag:t,attrsList:e,attrsMap:function(t){for(var e={},n=0,r=t.length;n]*>)","i")),h=t.replace(f,function(t,n,r){return u=r.length,ho(l)||"noscript"===l||(n=n.replace(//g,"$1").replace(//g,"$1")),bo(l,n)&&(n=n.slice(1)),e.chars&&e.chars(n),""});c+=t.length-h.length,t=h,$(l,c-u,c)}else{var p=t.indexOf("<");if(0===p){if(uo.test(t)){var d=t.indexOf("--\x3e");if(d>=0){e.shouldKeepComment&&e.comment(t.substring(4,d)),x(d+3);continue}}if(lo.test(t)){var v=t.indexOf("]>");if(v>=0){x(v+2);continue}}var m=t.match(co);if(m){x(m[0].length);continue}var g=t.match(so);if(g){var y=c;x(g[0].length),$(g[1],y,c);continue}var b=C();if(b){A(b),bo(r,t)&&x(1);continue}}var S=void 0,_=void 0,w=void 0;if(p>=0){for(_=t.slice(p);!(so.test(_)||oo.test(_)||uo.test(_)||lo.test(_)||(w=_.indexOf("<",1))<0);)p+=w,_=t.slice(p);S=t.substring(0,p),x(p)}p<0&&(S=t,t=""),e.chars&&S&&e.chars(S)}if(t===n){e.chars&&e.chars(t);break}}function x(e){c+=e,t=t.substring(e)}function C(){var e=t.match(oo);if(e){var n,r,i={tagName:e[1],attrs:[],start:c};for(x(e[0].length);!(n=t.match(ao))&&(r=t.match(no));)x(r[0].length),i.attrs.push(r);if(n)return i.unarySlash=n[1],x(n[0].length),i.end=c,i}}function A(t){var n=t.tagName,c=t.unarySlash;o&&("p"===r&&eo(n)&&$(r),s(n)&&r===n&&$(n));for(var u=a(n)||!!c,l=t.attrs.length,f=new Array(l),h=0;h=0&&i[a].lowerCasedTag!==s;a--);else a=0;if(a>=0){for(var u=i.length-1;u>=a;u--)e.end&&e.end(i[u].tag,n,o);i.length=a,r=a&&i[a-1].tag}else"br"===s?e.start&&e.start(t,[],!0,n,o):"p"===s&&(e.start&&e.start(t,[],!1,n,o),e.end&&e.end(t,n,o))}$()}(t,{warn:_o,expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,canBeLeftOpenTag:e.canBeLeftOpenTag,shouldDecodeNewlines:e.shouldDecodeNewlines,shouldDecodeNewlinesForHref:e.shouldDecodeNewlinesForHref,shouldKeepComment:e.comments,start:function(t,o,u){var l=r&&r.ns||Oo(t);J&&"svg"===l&&(o=function(t){for(var e=[],n=0;n-1"+("true"===o?":("+e+")":":_q("+e+","+o+")")),wr(t,"change","var $$a="+e+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+$r(e,"$$a.concat([$$v])")+")}else{$$i>-1&&("+$r(e,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+$r(e,"$$c")+"}",null,!0)}(t,r,i);else if("input"===o&&"radio"===a)!function(t,e,n){var r=n&&n.number,i=xr(t,"value")||"null";yr(t,"checked","_q("+e+","+(i=r?"_n("+i+")":i)+")"),wr(t,"change",$r(e,i),null,!0)}(t,r,i);else if("input"===o||"textarea"===o)!function(t,e,n){var r=t.attrsMap.type,i=n||{},o=i.lazy,a=i.number,s=i.trim,c=!o&&"range"!==r,u=o?"change":"range"===r?Lr:"input",l="$event.target.value";s&&(l="$event.target.value.trim()"),a&&(l="_n("+l+")");var f=$r(e,l);c&&(f="if($event.target.composing)return;"+f),yr(t,"value","("+e+")"),wr(t,u,f,null,!0),(s||a)&&wr(t,"blur","$forceUpdate()")}(t,r,i);else if(!V.isReservedTag(o))return Ar(t,r,i),!1;return!0},text:function(t,e){e.value&&yr(t,"textContent","_s("+e.value+")")},html:function(t,e){e.value&&yr(t,"innerHTML","_s("+e.value+")")}},isPreTag:function(t){return"pre"===t},isUnaryTag:Qi,mustUseProp:wn,canBeLeftOpenTag:to,isReservedTag:jn,getTagNamespace:Nn,staticKeys:function(t){return t.reduce(function(t,e){return t.concat(e.staticKeys||[])},[]).join(",")}(qo)},Zo=S(function(t){return d("type,tag,attrsList,attrsMap,plain,parent,children,attrs"+(t?","+t:""))});function Yo(t,e){t&&(Ko=Zo(e.staticKeys||""),Jo=e.isReservedTag||R,function t(e){e.static=function(t){if(2===t.type)return!1;if(3===t.type)return!0;return!(!t.pre&&(t.hasBindings||t.if||t.for||v(t.tag)||!Jo(t.tag)||function(t){for(;t.parent;){if("template"!==(t=t.parent).tag)return!1;if(t.for)return!0}return!1}(t)||!Object.keys(t).every(Ko)))}(e);if(1===e.type){if(!Jo(e.tag)&&"slot"!==e.tag&&null==e.attrsMap["inline-template"])return;for(var n=0,r=e.children.length;n|^function\s*\(/,ta=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,ea={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},na={esc:"Escape",tab:"Tab",enter:"Enter",space:" ",up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete"]},ra=function(t){return"if("+t+")return null;"},ia={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:ra("$event.target !== $event.currentTarget"),ctrl:ra("!$event.ctrlKey"),shift:ra("!$event.shiftKey"),alt:ra("!$event.altKey"),meta:ra("!$event.metaKey"),left:ra("'button' in $event && $event.button !== 0"),middle:ra("'button' in $event && $event.button !== 1"),right:ra("'button' in $event && $event.button !== 2")};function oa(t,e,n){var r=e?"nativeOn:{":"on:{";for(var i in t)r+='"'+i+'":'+aa(i,t[i])+",";return r.slice(0,-1)+"}"}function aa(t,e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map(function(e){return aa(t,e)}).join(",")+"]";var n=ta.test(e.value),r=Qo.test(e.value);if(e.modifiers){var i="",o="",a=[];for(var s in e.modifiers)if(ia[s])o+=ia[s],ea[s]&&a.push(s);else if("exact"===s){var c=e.modifiers;o+=ra(["ctrl","shift","alt","meta"].filter(function(t){return!c[t]}).map(function(t){return"$event."+t+"Key"}).join("||"))}else a.push(s);return a.length&&(i+=function(t){return"if(!('button' in $event)&&"+t.map(sa).join("&&")+")return null;"}(a)),o&&(i+=o),"function($event){"+i+(n?"return "+e.value+"($event)":r?"return ("+e.value+")($event)":e.value)+"}"}return n||r?e.value:"function($event){"+e.value+"}"}function sa(t){var e=parseInt(t,10);if(e)return"$event.keyCode!=="+e;var n=ea[t],r=na[t];return"_k($event.keyCode,"+JSON.stringify(t)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(r)+")"}var ca={on:function(t,e){t.wrapListeners=function(t){return"_g("+t+","+e.value+")"}},bind:function(t,e){t.wrapData=function(n){return"_b("+n+",'"+t.tag+"',"+e.value+","+(e.modifiers&&e.modifiers.prop?"true":"false")+(e.modifiers&&e.modifiers.sync?",true":"")+")"}},cloak:T},ua=function(t){this.options=t,this.warn=t.warn||mr,this.transforms=gr(t.modules,"transformCode"),this.dataGenFns=gr(t.modules,"genData"),this.directives=O(O({},ca),t.directives);var e=t.isReservedTag||R;this.maybeComponent=function(t){return!e(t.tag)},this.onceId=0,this.staticRenderFns=[]};function la(t,e){var n=new ua(e);return{render:"with(this){return "+(t?fa(t,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function fa(t,e){if(t.staticRoot&&!t.staticProcessed)return ha(t,e);if(t.once&&!t.onceProcessed)return pa(t,e);if(t.for&&!t.forProcessed)return function(t,e,n,r){var i=t.for,o=t.alias,a=t.iterator1?","+t.iterator1:"",s=t.iterator2?","+t.iterator2:"";0;return t.forProcessed=!0,(r||"_l")+"(("+i+"),function("+o+a+s+"){return "+(n||fa)(t,e)+"})"}(t,e);if(t.if&&!t.ifProcessed)return da(t,e);if("template"!==t.tag||t.slotTarget){if("slot"===t.tag)return function(t,e){var n=t.slotName||'"default"',r=ga(t,e),i="_t("+n+(r?","+r:""),o=t.attrs&&"{"+t.attrs.map(function(t){return w(t.name)+":"+t.value}).join(",")+"}",a=t.attrsMap["v-bind"];!o&&!a||r||(i+=",null");o&&(i+=","+o);a&&(i+=(o?"":",null")+","+a);return i+")"}(t,e);var n;if(t.component)n=function(t,e,n){var r=e.inlineTemplate?null:ga(e,n,!0);return"_c("+t+","+va(e,n)+(r?","+r:"")+")"}(t.component,t,e);else{var r=t.plain?void 0:va(t,e),i=t.inlineTemplate?null:ga(t,e,!0);n="_c('"+t.tag+"'"+(r?","+r:"")+(i?","+i:"")+")"}for(var o=0;o':'
',Ca.innerHTML.indexOf(" ")>0}var ka=!!z&&$a(!1),Oa=!!z&&$a(!0),Fa=S(function(t){var e=Hn(t);return e&&e.innerHTML}),Ta=hn.prototype.$mount;hn.prototype.$mount=function(t,e){if((t=t&&Hn(t))===document.body||t===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=Fa(r));else{if(!r.nodeType)return this;r=r.innerHTML}else t&&(r=function(t){if(t.outerHTML)return t.outerHTML;var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}(t));if(r){0;var i=Aa(r,{shouldDecodeNewlines:ka,shouldDecodeNewlinesForHref:Oa,delimiters:n.delimiters,comments:n.comments},this),o=i.render,a=i.staticRenderFns;n.render=o,n.staticRenderFns=a}}return Ta.call(this,t,e)},hn.compile=Aa,e.a=hn}).call(e,n("DuR2"))},DuR2:function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},FHWH:function(t,e,n){var r;r=function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=2)}([function(t,e,n){var r=n(6)(n(1),n(7),function(t){n(8)},null,null);t.exports=r.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5),i=n.n(r);e.default={name:"flat-surface-shader",props:{type:{type:String,default:"svg"},mesh:{type:Object,default:function(){return{}}},light:{type:Object,default:function(){return{}}}},mounted:function(){this.initialize()},data:function(){return{start:Date.now(),scene:new i.a.Scene,renderer:null,meshIns:null,MESH:{width:1.2,height:1.2,depth:10,segments:16,slices:8,xRange:.8,yRange:.1,zRange:1,ambient:"#555555",diffuse:"#FFFFFF",speed:.002},LIGHT:{count:2,xyScalar:1,zOffset:100,ambient:"#880066",diffuse:"#FF8800",speed:.001,gravity:1200,dampening:.95,minLimit:10,maxLimit:null,minDistance:20,maxDistance:400,autopilot:!1,draw:!0,bounds:i.a.Vector3.create(),step:i.a.Vector3.create(Math.randomInRange(.2,1),Math.randomInRange(.2,1),Math.randomInRange(.2,1))},geometry:new i.a.Plane,material:new i.a.Material,center:i.a.Vector3.create(),attractor:i.a.Vector3.create(),svgRenderer:new i.a.SVGRenderer,canvasRenderer:new i.a.CanvasRenderer,webglRenderer:new i.a.WebGLRenderer}},methods:{initialize:function(){var t=this.$refs.shader;this.setRenderer(),this.scene=new i.a.Scene,this.createMesh(),this.createLights(),this.addEventListeners(),this.resize(t.offsetWidth,t.offsetHeight),this.animate()},setRenderer:function(){var t=this.$refs.shader;switch(this.renderer&&t.removeChild(this.renderer.element),this.type){case"webgl":this.renderer=this.webglRenderer;break;case"canvas":this.renderer=this.canvasRenderer;break;case"svg":this.renderer=this.svgRenderer;break;default:!function(t){throw new Error("[vue-flat-surface-shader]: "+t)}("Invalid renderer type - "+this.type)}this.renderer.setSize(t.offsetWidth,t.offsetHeight),t.appendChild(this.renderer.element)},createMesh:function(){this.MESH=Object.assign(this.MESH,this.mesh),this.scene.remove(this.meshIns),this.renderer.clear();var t=this.MESH;this.geometry=new i.a.Plane(t.width*this.renderer.width,t.height*this.renderer.height,t.segments,t.slices),this.material=new i.a.Material(t.ambient,t.diffuse),this.meshIns=new i.a.Mesh(this.geometry,this.material),this.scene.add(this.meshIns);for(var e=this.geometry.vertices.length-1;e>=0;e--){var n=this.geometry.vertices[e];n.anchor=i.a.Vector3.clone(n.position),n.step=i.a.Vector3.create(Math.randomInRange(.2,1),Math.randomInRange(.2,1),Math.randomInRange(.2,1)),n.time=Math.randomInRange(0,Math.PIM2)}},createLights:function(){this.LIGHT=Object.assign(this.LIGHT,this.light);for(var t=this.scene.lights.length-1;t>=0;t--){var e=this.scene.lights[t];this.scene.remove(e)}this.renderer.clear();for(var n=0;n=0;a--){var s=this.scene.lights[a];i.a.Vector3.setZ(s.position,this.LIGHT.zOffset);var c=Math.clamp(i.a.Vector3.distanceSquared(s.position,this.attractor),this.LIGHT.minDistance,this.LIGHT.maxDistance),u=this.LIGHT.gravity*s.mass/c;i.a.Vector3.subtractVectors(s.force,this.attractor,s.position),i.a.Vector3.normalise(s.force),i.a.Vector3.multiplyScalar(s.force,u),i.a.Vector3.set(s.acceleration),i.a.Vector3.add(s.acceleration,s.force),i.a.Vector3.add(s.velocity,s.acceleration),i.a.Vector3.multiplyScalar(s.velocity,this.LIGHT.dampening),i.a.Vector3.limit(s.velocity,this.LIGHT.minLimit,this.LIGHT.maxLimit),i.a.Vector3.add(s.position,s.velocity)}for(var l=this.geometry.vertices.length-1;l>=0;l--){var f=this.geometry.vertices[l];e=Math.sin(f.time+f.step[0]*t*this.MESH.speed),n=Math.cos(f.time+f.step[1]*t*this.MESH.speed),r=Math.sin(f.time+f.step[2]*t*this.MESH.speed),i.a.Vector3.set(f.position,this.MESH.xRange*this.geometry.segmentWidth*e,this.MESH.yRange*this.geometry.sliceHeight*n,this.MESH.zRange*o*r-o),i.a.Vector3.add(f.position,f.anchor)}this.geometry.dirty=!0},shaderRender:function(){if(this.MESH=Object.assign(this.MESH,this.mesh),this.LIGHT=Object.assign(this.LIGHT,this.light),this.renderer.render(this.scene),this.LIGHT.draw)for(var t=this.scene.lights.length-1;t>=0;t--){var e=this.scene.lights[t],n=e.position[0],r=e.position[1];switch(this.type){case"canvas":this.renderer.context.lineWidth=.5,this.renderer.context.beginPath(),this.renderer.context.arc(n,r,10,0,Math.PIM2),this.renderer.context.strokeStyle=e.ambientHex,this.renderer.context.stroke(),this.renderer.context.beginPath(),this.renderer.context.arc(n,r,4,0,Math.PIM2),this.renderer.context.fillStyle=e.diffuseHex,this.renderer.context.fill();break;case"svg":n+=this.renderer.halfWidth,r=this.renderer.halfHeight-r,e.core.setAttributeNS(null,"fill",e.diffuseHex),e.core.setAttributeNS(null,"cx",n),e.core.setAttributeNS(null,"cy",r),this.renderer.element.appendChild(e.core),e.ring.setAttributeNS(null,"stroke",e.ambientHex),e.ring.setAttributeNS(null,"cx",n),e.ring.setAttributeNS(null,"cy",r),this.renderer.element.appendChild(e.ring)}}},addEventListeners:function(){var t=this.$refs.shader;window.addEventListener("resize",this.onWindowResize),t.addEventListener("mousemove",this.onMouseMove)},onWindowResize:function(t){var e=this.$refs.shader;this.resize(e.offsetWidth,e.offsetHeight),this.shaderRender()},onMouseMove:function(t){i.a.Vector3.set(this.attractor,t.x,this.renderer.height-t.y),i.a.Vector3.subtract(this.attractor,this.center)}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n.n(r);n.d(e,"FlatSurfaceShader",function(){return i.a});e.default={install:function(t){t.component("flat-surface-shader",i.a)}}},function(t,e,n){(t.exports=n(4)()).push([t.i,"",""])},function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;ee&&(t[0]=e),t[1]>e&&(t[1]=e),t[2]>e&&(t[2]=e),this},clamp:function(t,e,n){return this.min(t,e),this.max(t,n),this},limit:function(t,e,n){var r=this.length(t);return null!==e&&rn&&this.setLength(t,n),this},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]},normalise:function(t){return this.divideScalar(t,this.length(t))},negate:function(t){return this.multiplyScalar(t,-1)},distanceSquared:function(t,e){var n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2];return n*n+r*r+i*i},distance:function(t,e){return Math.sqrt(this.distanceSquared(t,e))},lengthSquared:function(t){return t[0]*t[0]+t[1]*t[1]+t[2]*t[2]},length:function(t){return Math.sqrt(this.lengthSquared(t))},setLength:function(t,e){var n=this.length(t);return 0!==n&&e!==n&&this.multiplyScalar(t,e/n),this}},FSS.Vector4={create:function(t,e,n,r){var i=new FSS.Array(4);return this.set(i,t,e,n),i},set:function(t,e,n,r,i){return t[0]=e||0,t[1]=n||0,t[2]=r||0,t[3]=i||0,this},setX:function(t,e){return t[0]=e||0,this},setY:function(t,e){return t[1]=e||0,this},setZ:function(t,e){return t[2]=e||0,this},setW:function(t,e){return t[3]=e||0,this},add:function(t,e){return t[0]+=e[0],t[1]+=e[1],t[2]+=e[2],t[3]+=e[3],this},multiplyVectors:function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t[3]=e[3]*n[3],this},multiplyScalar:function(t,e){return t[0]*=e,t[1]*=e,t[2]*=e,t[3]*=e,this},min:function(t,e){return t[0]e&&(t[0]=e),t[1]>e&&(t[1]=e),t[2]>e&&(t[2]=e),t[3]>e&&(t[3]=e),this},clamp:function(t,e,n){return this.min(t,e),this.max(t,n),this}},FSS.Color=function(t,e){this.rgba=FSS.Vector4.create(),this.hex=t||"#000000",this.opacity=FSS.Utils.isNumber(e)?e:1,this.set(this.hex,this.opacity)},FSS.Color.prototype={set:function(t,e){var n=(t=t.replace("#","")).length/3;return this.rgba[0]=parseInt(t.substring(0*n,1*n),16)/255,this.rgba[1]=parseInt(t.substring(1*n,2*n),16)/255,this.rgba[2]=parseInt(t.substring(2*n,3*n),16)/255,this.rgba[3]=FSS.Utils.isNumber(e)?e:this.rgba[3],this},hexify:function(t){var e=Math.ceil(255*t).toString(16);return 1===e.length&&(e="0"+e),e},format:function(){var t=this.hexify(this.rgba[0]),e=this.hexify(this.rgba[1]),n=this.hexify(this.rgba[2]);return this.hex="#"+t+e+n,this.hex}},FSS.Object=function(){this.position=FSS.Vector3.create()},FSS.Object.prototype={setPosition:function(t,e,n){return FSS.Vector3.set(this.position,t,e,n),this}},FSS.Light=function(t,e){FSS.Object.call(this),this.ambient=new FSS.Color(t||"#FFFFFF"),this.diffuse=new FSS.Color(e||"#FFFFFF"),this.ray=FSS.Vector3.create()},FSS.Light.prototype=Object.create(FSS.Object.prototype),FSS.Vertex=function(t,e,n){this.position=FSS.Vector3.create(t,e,n)},FSS.Vertex.prototype={setPosition:function(t,e,n){return FSS.Vector3.set(this.position,t,e,n),this}},FSS.Triangle=function(t,e,n){this.a=t||new FSS.Vertex,this.b=e||new FSS.Vertex,this.c=n||new FSS.Vertex,this.vertices=[this.a,this.b,this.c],this.u=FSS.Vector3.create(),this.v=FSS.Vector3.create(),this.centroid=FSS.Vector3.create(),this.normal=FSS.Vector3.create(),this.color=new FSS.Color,this.polygon=document.createElementNS(FSS.SVGNS,"polygon"),this.polygon.setAttributeNS(null,"stroke-linejoin","round"),this.polygon.setAttributeNS(null,"stroke-miterlimit","1"),this.polygon.setAttributeNS(null,"stroke-width","1"),this.computeCentroid(),this.computeNormal()},FSS.Triangle.prototype={computeCentroid:function(){return this.centroid[0]=this.a.position[0]+this.b.position[0]+this.c.position[0],this.centroid[1]=this.a.position[1]+this.b.position[1]+this.c.position[1],this.centroid[2]=this.a.position[2]+this.b.position[2]+this.c.position[2],FSS.Vector3.divideScalar(this.centroid,3),this},computeNormal:function(){return FSS.Vector3.subtractVectors(this.u,this.b.position,this.a.position),FSS.Vector3.subtractVectors(this.v,this.c.position,this.a.position),FSS.Vector3.crossVectors(this.normal,this.u,this.v),FSS.Vector3.normalise(this.normal),this}},FSS.Geometry=function(){this.vertices=[],this.triangles=[],this.dirty=!1},FSS.Geometry.prototype={update:function(){if(this.dirty){var t,e;for(t=this.triangles.length-1;t>=0;t--)(e=this.triangles[t]).computeCentroid(),e.computeNormal();this.dirty=!1}return this}},FSS.Plane=function(t,e,n,r){FSS.Geometry.call(this),this.width=t||100,this.height=e||100,this.segments=n||4,this.slices=r||4,this.segmentWidth=this.width/this.segments,this.sliceHeight=this.height/this.slices;var i,o,a,s,c,u,l,f=[],h=-.5*this.width,p=.5*this.height;for(i=0;i<=this.segments;i++)for(f.push([]),o=0;o<=this.slices;o++)l=new FSS.Vertex(h+i*this.segmentWidth,p-o*this.sliceHeight),f[i].push(l),this.vertices.push(l);for(i=0;i=0;n--){for(r=this.geometry.triangles[n],FSS.Vector4.set(r.color.rgba),i=t.length-1;i>=0;i--)o=t[i],FSS.Vector3.subtractVectors(o.ray,o.position,r.centroid),FSS.Vector3.normalise(o.ray),a=FSS.Vector3.dot(r.normal,o.ray),this.side===FSS.FRONT?a=Math.max(a,0):this.side===FSS.BACK?a=Math.abs(Math.min(a,0)):this.side===FSS.DOUBLE&&(a=Math.max(Math.abs(a),0)),FSS.Vector4.multiplyVectors(this.material.slave.rgba,this.material.ambient.rgba,o.ambient.rgba),FSS.Vector4.add(r.color.rgba,this.material.slave.rgba),FSS.Vector4.multiplyVectors(this.material.slave.rgba,this.material.diffuse.rgba,o.diffuse.rgba),FSS.Vector4.multiplyScalar(this.material.slave.rgba,a),FSS.Vector4.add(r.color.rgba,this.material.slave.rgba);FSS.Vector4.clamp(r.color.rgba,0,1)}return this},FSS.Scene=function(){this.meshes=[],this.lights=[]},FSS.Scene.prototype={add:function(t){return t instanceof FSS.Mesh&&!~this.meshes.indexOf(t)?this.meshes.push(t):t instanceof FSS.Light&&!~this.lights.indexOf(t)&&this.lights.push(t),this},remove:function(t){return t instanceof FSS.Mesh&&~this.meshes.indexOf(t)?this.meshes.splice(this.meshes.indexOf(t),1):t instanceof FSS.Light&&~this.lights.indexOf(t)&&this.lights.splice(this.lights.indexOf(t),1),this}},FSS.Renderer=function(){this.width=0,this.height=0,this.halfWidth=0,this.halfHeight=0},FSS.Renderer.prototype={setSize:function(t,e){if(this.width!==t||this.height!==e)return this.width=t,this.height=e,this.halfWidth=.5*this.width,this.halfHeight=.5*this.height,this},clear:function(){return this},render:function(t){return this}},FSS.CanvasRenderer=function(){FSS.Renderer.call(this),this.element=document.createElement("canvas"),this.element.style.display="block",this.context=this.element.getContext("2d"),this.setSize(this.element.width,this.element.height)},FSS.CanvasRenderer.prototype=Object.create(FSS.Renderer.prototype),FSS.CanvasRenderer.prototype.setSize=function(t,e){return FSS.Renderer.prototype.setSize.call(this,t,e),this.element.width=t,this.element.height=e,this.context.setTransform(1,0,0,-1,this.halfWidth,this.halfHeight),this},FSS.CanvasRenderer.prototype.clear=function(){return FSS.Renderer.prototype.clear.call(this),this.context.clearRect(-this.halfWidth,-this.halfHeight,this.width,this.height),this},FSS.CanvasRenderer.prototype.render=function(t){var e,n,r,i,o;for(FSS.Renderer.prototype.render.call(this,t),this.clear(),this.context.lineJoin="round",this.context.lineWidth=1,e=t.meshes.length-1;e>=0;e--)if((n=t.meshes[e]).visible)for(n.update(t.lights,!0),r=n.geometry.triangles.length-1;r>=0;r--)o=(i=n.geometry.triangles[r]).color.format(),this.context.beginPath(),this.context.moveTo(i.a.position[0],i.a.position[1]),this.context.lineTo(i.b.position[0],i.b.position[1]),this.context.lineTo(i.c.position[0],i.c.position[1]),this.context.closePath(),this.context.strokeStyle=o,this.context.fillStyle=o,this.context.stroke(),this.context.fill();return this},FSS.WebGLRenderer=function(){FSS.Renderer.call(this),this.element=document.createElement("canvas"),this.element.style.display="block",this.vertices=null,this.lights=null;if(this.gl=this.getContext(this.element,{preserveDrawingBuffer:!1,premultipliedAlpha:!0,antialias:!0,stencil:!0,alpha:!0}),this.unsupported=!this.gl,this.unsupported)return"WebGL is not supported by your browser.";this.gl.clearColor(0,0,0,0),this.gl.enable(this.gl.DEPTH_TEST),this.setSize(this.element.width,this.element.height)},FSS.WebGLRenderer.prototype=Object.create(FSS.Renderer.prototype),FSS.WebGLRenderer.prototype.getContext=function(t,e){var n=!1;try{if(!(n=t.getContext("experimental-webgl",e)))throw"Error creating WebGL context."}catch(t){console.error(t)}return n},FSS.WebGLRenderer.prototype.setSize=function(t,e){if(FSS.Renderer.prototype.setSize.call(this,t,e),!this.unsupported)return this.element.width=t,this.element.height=e,this.gl.viewport(0,0,t,e),this},FSS.WebGLRenderer.prototype.clear=function(){if(FSS.Renderer.prototype.clear.call(this),!this.unsupported)return this.gl.clear(this.gl.COLOR_BUFFER_BIT|this.gl.DEPTH_BUFFER_BIT),this},FSS.WebGLRenderer.prototype.render=function(t){if(FSS.Renderer.prototype.render.call(this,t),!this.unsupported){var e,n,r,i,o,a,s,c,u,l,f,h,p,d,v,m=!1,g=t.lights.length,y=0;if(this.clear(),this.lights!==g){if(this.lights=g,!(this.lights>0))return;this.buildProgram(g)}if(this.program){for(e=t.meshes.length-1;e>=0;e--)(n=t.meshes[e]).geometry.dirty&&(m=!0),n.update(t.lights,!1),y+=3*n.geometry.triangles.length;if(m||this.vertices!==y)for(c in this.vertices=y,this.program.attributes){for((l=this.program.attributes[c]).data=new FSS.Array(y*l.size),p=0,e=t.meshes.length-1;e>=0;e--)for(r=0,i=(n=t.meshes[e]).geometry.triangles.length;r=0;a--)s=t.lights[a],this.setBufferData(a,this.program.uniforms.lightPosition,s.position),this.setBufferData(a,this.program.uniforms.lightAmbient,s.ambient.rgba),this.setBufferData(a,this.program.uniforms.lightDiffuse,s.diffuse.rgba);for(u in this.program.uniforms)switch(l=this.program.uniforms[u],h=l.location,f=l.data,l.structure){case"3f":this.gl.uniform3f(h,f[0],f[1],f[2]);break;case"3fv":this.gl.uniform3fv(h,f);break;case"4fv":this.gl.uniform4fv(h,f)}}return this.gl.drawArrays(this.gl.TRIANGLES,0,this.vertices),this}},FSS.WebGLRenderer.prototype.setBufferData=function(t,e,n){if(FSS.Utils.isNumber(n))e.data[t*e.size]=n;else for(var r=n.length-1;r>=0;r--)e.data[t*e.size+r]=n[r]},FSS.WebGLRenderer.prototype.buildProgram=function(t){if(!this.unsupported){var e=FSS.WebGLRenderer.VS(t),n=FSS.WebGLRenderer.FS(t),r=e+n;if(!this.program||this.program.code!==r){var i=this.gl.createProgram(),o=this.buildShader(this.gl.VERTEX_SHADER,e),a=this.buildShader(this.gl.FRAGMENT_SHADER,n);if(this.gl.attachShader(i,o),this.gl.attachShader(i,a),this.gl.linkProgram(i),!this.gl.getProgramParameter(i,this.gl.LINK_STATUS)){var s=this.gl.getError(),c=this.gl.getProgramParameter(i,this.gl.VALIDATE_STATUS);return console.error("Could not initialise shader.\nVALIDATE_STATUS: "+c+"\nERROR: "+s),null}return this.gl.deleteShader(a),this.gl.deleteShader(o),i.code=r,i.attributes={side:this.buildBuffer(i,"attribute","aSide",1,"f"),position:this.buildBuffer(i,"attribute","aPosition",3,"v3"),centroid:this.buildBuffer(i,"attribute","aCentroid",3,"v3"),normal:this.buildBuffer(i,"attribute","aNormal",3,"v3"),ambient:this.buildBuffer(i,"attribute","aAmbient",4,"v4"),diffuse:this.buildBuffer(i,"attribute","aDiffuse",4,"v4")},i.uniforms={resolution:this.buildBuffer(i,"uniform","uResolution",3,"3f",1),lightPosition:this.buildBuffer(i,"uniform","uLightPosition",3,"3fv",t),lightAmbient:this.buildBuffer(i,"uniform","uLightAmbient",4,"4fv",t),lightDiffuse:this.buildBuffer(i,"uniform","uLightDiffuse",4,"4fv",t)},this.program=i,this.gl.useProgram(this.program),i}}},FSS.WebGLRenderer.prototype.buildShader=function(t,e){if(!this.unsupported){var n=this.gl.createShader(t);return this.gl.shaderSource(n,e),this.gl.compileShader(n),this.gl.getShaderParameter(n,this.gl.COMPILE_STATUS)?n:(console.error(this.gl.getShaderInfoLog(n)),null)}},FSS.WebGLRenderer.prototype.buildBuffer=function(t,e,n,r,i,o){var a={buffer:this.gl.createBuffer(),size:r,structure:i,data:null};switch(e){case"attribute":a.location=this.gl.getAttribLocation(t,n);break;case"uniform":a.location=this.gl.getUniformLocation(t,n)}return o&&(a.data=new FSS.Array(o*r)),a},FSS.WebGLRenderer.VS=function(t){return["precision mediump float;","#define LIGHTS "+t,"attribute float aSide;","attribute vec3 aPosition;","attribute vec3 aCentroid;","attribute vec3 aNormal;","attribute vec4 aAmbient;","attribute vec4 aDiffuse;","uniform vec3 uResolution;","uniform vec3 uLightPosition[LIGHTS];","uniform vec4 uLightAmbient[LIGHTS];","uniform vec4 uLightDiffuse[LIGHTS];","varying vec4 vColor;","void main() {","vColor = vec4(0.0);","vec3 position = aPosition / uResolution * 2.0;","for (int i = 0; i < LIGHTS; i++) {","vec3 lightPosition = uLightPosition[i];","vec4 lightAmbient = uLightAmbient[i];","vec4 lightDiffuse = uLightDiffuse[i];","vec3 ray = normalize(lightPosition - aCentroid);","float illuminance = dot(aNormal, ray);","if (aSide == 0.0) {","illuminance = max(illuminance, 0.0);","} else if (aSide == 1.0) {","illuminance = abs(min(illuminance, 0.0));","} else if (aSide == 2.0) {","illuminance = max(abs(illuminance), 0.0);","}","vColor += aAmbient * lightAmbient;","vColor += aDiffuse * lightDiffuse * illuminance;","}","vColor = clamp(vColor, 0.0, 1.0);","gl_Position = vec4(position, 1.0);","}"].join("\n")},FSS.WebGLRenderer.FS=function(t){return["precision mediump float;","varying vec4 vColor;","void main() {","gl_FragColor = vColor;","}"].join("\n")},FSS.SVGRenderer=function(){FSS.Renderer.call(this),this.element=document.createElementNS(FSS.SVGNS,"svg"),this.element.setAttribute("xmlns",FSS.SVGNS),this.element.setAttribute("version","1.1"),this.element.style.display="block",this.setSize(300,150)},FSS.SVGRenderer.prototype=Object.create(FSS.Renderer.prototype),FSS.SVGRenderer.prototype.setSize=function(t,e){return FSS.Renderer.prototype.setSize.call(this,t,e),this.element.setAttribute("width",t),this.element.setAttribute("height",e),this},FSS.SVGRenderer.prototype.clear=function(){FSS.Renderer.prototype.clear.call(this);for(var t=this.element.childNodes.length-1;t>=0;t--)this.element.removeChild(this.element.childNodes[t]);return this},FSS.SVGRenderer.prototype.render=function(t){var e,n,r,i,o,a;for(FSS.Renderer.prototype.render.call(this,t),e=t.meshes.length-1;e>=0;e--)if((n=t.meshes[e]).visible)for(n.update(t.lights,!0),r=n.geometry.triangles.length-1;r>=0;r--)(i=n.geometry.triangles[r]).polygon.parentNode!==this.element&&this.element.appendChild(i.polygon),o=this.formatPoint(i.a)+" ",o+=this.formatPoint(i.b)+" ",o+=this.formatPoint(i.c),a=this.formatStyle(i.color.format()),i.polygon.setAttributeNS(null,"points",o),i.polygon.setAttributeNS(null,"style",a);return this},FSS.SVGRenderer.prototype.formatPoint=function(t){return this.halfWidth+t.position[0]+","+(this.halfHeight-t.position[1])},FSS.SVGRenderer.prototype.formatStyle=function(t){return"fill:"+t+";"+"stroke:"+t+";"},t.exports=FSS},function(t,e){t.exports=function(t,e,n,r,i){var o,a=t=t||{},s=typeof t.default;"object"!==s&&"function"!==s||(o=t,a=t.default);var c,u="function"==typeof a?a.options:a;if(e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns),r&&(u._scopeId=r),i?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},u._ssrRegister=c):n&&(c=n),c){var l=u.functional,f=l?u.render:u.beforeCreate;l?u.render=function(t,e){return c.call(e),f(t,e)}:u.beforeCreate=f?[].concat(f,c):[c]}return{esModule:o,exports:a,options:u}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{ref:"shader"},[t._t("default")],2)},staticRenderFns:[]}},function(t,e,n){var r=n(3);"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals),n(9)("03a00953",r,!0)},function(t,e,n){function r(t){for(var e=0;en.parts.length&&(r.parts.length=n.parts.length)}else{var a=[];for(i=0;i