!function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){function r(t,e){var n,r,i,a;return i=e.split("."),r=i[0],a=i[1],n=t.components[r]||AFRAME.components[r],n?a&&!n.schema[a]?null:a?n.schema[a].type:n.schema.type:null}function i(t){t.x=THREE.Math.degToRad(t.x),t.y=THREE.Math.degToRad(t.y),t.z=THREE.Math.degToRad(t.z)}function a(t,e,n){var r;for(r=0;r=1),l(a)?u(o,a.property,r,a.type):g(o,a.property,r))}}())},updateConfigForVector:function(){var t,e,n,r=this.config,a=this.data,o=this.el;e=a.from?AFRAME.utils.coordinates.parse(a.from):m(o,a.property),n=AFRAME.utils.coordinates.parse(a.to),a.property===A&&(i(e),i(n)),this.targetsArray.length=0,this.targetsArray.push(e),r.targets=this.targetsArray;for(t in n)r[t]=n[t];return a.property===b||a.property===A||a.property===x?void(r.update=function(){var t={};return t.x=e.x,t.y=e.y,t.z=e.z,function(e){var n=e.animatables[0].target;n.x===t.x&&n.y===t.y&&n.z===t.z||(t.x=n.x,t.y=n.y,t.z=n.z,o.object3D[a.property].set(n.x,n.y,n.z))}}()):void(r.update=function(){var t={};return t.x=e.x,t.y=e.y,t.z=e.z,function(e){var n=e.animations[0].target;n.x===t.x&&n.y===t.y&&n.z===t.z||(t.x=n.x,t.y=n.y,t.z=n.z,g(o,a.property,n))}}())},updateConfig:function(){var t;t=r(this.el,this.data.property),l(this.data)&&this.data.type===v?this.updateConfigForRawColor():"vec2"===t||"vec3"===t||"vec4"===t?this.updateConfigForVector():this.updateConfigForDefault()},waitComponentInitRawProperty:function(t){var e,n=this.data,r=this.el,i=this;return!n.from&&(!!n.property.startsWith(E)&&(e=f(n.property)[1],!r.components[e]&&(r.addEventListener("componentinitialized",function n(a){a.detail.name===e&&(t(),i.animation=c(i.config),r.removeEventListener("componentinitialized",n))}),!0)))},stopRelatedAnimations:function(){var t,e;for(e in this.el.components)t=this.el.components[e],e!==this.attrName&&"animation"===t.name&&t.animationIsPlaying&&t.data.property===this.data.property&&(t.animationIsPlaying=!1)},addEventListeners:function(){var t=this.data,e=this.el;a(e,t.startEvents,this.onStartEvent),a(e,t.pauseEvents,this.pauseAnimation),a(e,t.resumeEvents,this.resumeAnimation)},removeEventListeners:function(){var t=this.data,e=this.el;o(e,t.startEvents,this.onStartEvent),o(e,t.pauseEvents,this.pauseAnimation),o(e,t.resumeEvents,this.resumeAnimation)},setColorConfig:function(t,e){p.set(t),d.set(e),t=this.fromColor,e=this.toColor,t.r=p.r,t.g=p.g,t.b=p.b,e.r=d.r,e.g=d.g,e.b=d.b}})},function(t,e,n){var r,i,a;(function(n){var o={scope:{}};o.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){if(n.get||n.set)throw new TypeError("ES3 does not support getters and setters.");t!=Array.prototype&&t!=Object.prototype&&(t[e]=n.value)},o.getGlobal=function(t){return"undefined"!=typeof window&&window===t?t:"undefined"!=typeof n&&null!=n?n:t},o.global=o.getGlobal(this),o.SYMBOL_PREFIX="jscomp_symbol_",o.initSymbol=function(){o.initSymbol=function(){},o.global.Symbol||(o.global.Symbol=o.Symbol)},o.symbolCounter_=0,o.Symbol=function(t){return o.SYMBOL_PREFIX+(t||"")+o.symbolCounter_++},o.initSymbolIterator=function(){o.initSymbol();var t=o.global.Symbol.iterator;t||(t=o.global.Symbol.iterator=o.global.Symbol("iterator")),"function"!=typeof Array.prototype[t]&&o.defineProperty(Array.prototype,t,{configurable:!0,writable:!0,value:function(){return o.arrayIterator(this)}}),o.initSymbolIterator=function(){}},o.arrayIterator=function(t){var e=0;return o.iteratorPrototype(function(){return en&&(n+=1),1n?e:n<2/3?t+(e-t)*(2/3-n)*6:t}var n=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(t)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(t);t=parseInt(n[1])/360;var r=parseInt(n[2])/100,i=parseInt(n[3])/100,n=n[4]||1;if(0==r)i=r=t=i;else{var a=.5>i?i*(1+r):i+r-i*r,o=2*i-a,i=e(o,a,t+1/3),r=e(o,a,t);t=e(o,a,t-1/3)}return"rgba("+255*i+","+255*r+","+255*t+","+n+")"}function c(t){if(t=/([\+\-]?[0-9#\.]+)(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(t))return t[2]}function p(t){return-1=d.currentTime)for(var A=0;A=h||!e)&&(d.began||(d.began=!0,a("begin")),a("run")),y>s&&y=e&&m!==e||!e)&&(i(e),g||o())),a("update"),t>=e&&(d.remaining?(f=u,"alternate"===d.direction&&(d.reversed=!d.reversed)):(d.pause(),d.completed||(d.completed=!0,a("complete"),"Promise"in window&&(c(),p=n()))),l=0)}t=void 0===t?{}:t;var u,f,l=0,c=null,p=n(),d=O(t);return d.reset=function(){var t=d.direction,e=d.loop;for(d.currentTime=0,d.progress=0,d.paused=!0,d.began=!1,d.completed=!1,d.reversed="reverse"===t,d.remaining="alternate"===t&&1===e?2:e,i(0),t=d.children.length;t--;)d.children[t].reset()},d.tick=function(t){u=t,f||(f=u),s((l+u-f)*T.speed)},d.seek=function(t){s(r(t))},d.pause=function(){var t=V.indexOf(d);-1=e&&0<=r&&1>=r){var a=new Float32Array(11);if(e!==n||r!==i)for(var o=0;11>o;++o)a[o]=t(.1*o,e,r);return function(o){if(e===n&&r===i)return o;if(0===o)return 0;if(1===o)return 1;for(var s=0,u=1;10!==u&&a[u]<=o;++u)s+=.1;--u;var u=s+(o-a[u])/(a[u+1]-a[u])*.1,f=3*(1-3*r+3*e)*u*u+2*(3*r-6*e)*u+3*e;if(.001<=f){for(s=0;4>s&&(f=3*(1-3*r+3*e)*u*u+2*(3*r-6*e)*u+3*e,0!==f);++s)var l=t(u,e,r)-o,u=u-l/f;o=u}else if(0===f)o=u;else{var u=s,s=s+.1,c=0;do l=u+(s-u)/2,f=t(l,e,r)-o,0++c);o=l}return t(o,n,i)}}}}(),$=function(){function t(t,e){return 0===t||1===t?t:-Math.pow(2,10*(t-1))*Math.sin(2*(t-1-e/(2*Math.PI)*Math.asin(1))*Math.PI/e)}var e,n="Quad Cubic Quart Quint Sine Expo Circ Back Elastic".split(" "),r={In:[[.55,.085,.68,.53],[.55,.055,.675,.19],[.895,.03,.685,.22],[.755,.05,.855,.06],[.47,0,.745,.715],[.95,.05,.795,.035],[.6,.04,.98,.335],[.6,-.28,.735,.045],t],Out:[[.25,.46,.45,.94],[.215,.61,.355,1],[.165,.84,.44,1],[.23,1,.32,1],[.39,.575,.565,1],[.19,1,.22,1],[.075,.82,.165,1],[.175,.885,.32,1.275],function(e,n){return 1-t(1-e,n)}],InOut:[[.455,.03,.515,.955],[.645,.045,.355,1],[.77,0,.175,1],[.86,0,.07,1],[.445,.05,.55,.95],[1,0,0,1],[.785,.135,.15,.86],[.68,-.55,.265,1.55],function(e,n){return.5>e?t(2*e,n)/2:1-t(-2*e+2,n)/2}]},i={linear:_(.25,.25,.75,.75)},a={};for(e in r)a.type=e,r[a.type].forEach(function(t){return function(e,r){i["ease"+t.type+n[r]]=N.fnc(e)?e:_.apply(s,e)}}(a)),a={type:a.type};return i}(),H={css:function(t,e,n){return t.style[e]=n},attribute:function(t,e,n){return t.setAttribute(e,n)},object:function(t,e,n){return t[e]=n},transform:function(t,e,n,r,i){r[i]||(r[i]=[]),r[i].push(e+"("+n+")")}},V=[],W=0,X=function(){function t(){W=requestAnimationFrame(e)}function e(e){var n=V.length;if(n){for(var r=0;rn&&(e.duration=r.duration),e.children.push(r)}),e.seek(0),e.reset(),e.autoplay&&e.restart(),e},e},T.random=function(t,e){return Math.floor(Math.random()*(e-t+1))+t},T})}).call(e,function(){return this}())}]);