-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaframe-inspector.min.js
40 lines (40 loc) · 384 KB
/
aframe-inspector.min.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
!function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="/dist/",t(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),u=n(2),l=o(u),c=n(32),p=o(c),d=n(171),f=o(d),h=n(236),m=o(h),v=n(240),g=o(v),y=n(241),b=o(y),E=n(246),w=o(E),x=n(202);n(247),n(249);var C=n(196);THREE.ImageUtils.crossOrigin="";var _=n(176);(0,x.injectCSS)("https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css"),(0,x.injectCSS)("https://fonts.googleapis.com/css?family=Roboto:400,300,500");var T=function(e){function t(e){r(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.onCloseHelpModal=function(e){n.setState({isHelpOpen:!1})},n.onModalTextureOnClose=function(e){n.setState({isModalTexturesOpen:!1}),n.state.textureOnClose&&n.state.textureOnClose(e)},n.toggleEdit=function(){n.state.inspectorEnabled?C.close():C.open()},n.state={entity:null,inspectorEnabled:!0,isMotionCaptureRecording:!1,isModalTexturesOpen:!1,motionCaptureCountdown:-1,sceneEl:AFRAME.scenes[0],visible:{scenegraph:!0,attributes:!0}},_.on("togglesidebar",function(e){"all"===e.which?n.state.visible.scenegraph||n.state.visible.attributes?n.setState({visible:{scenegraph:!1,attributes:!1}}):n.setState({visible:{scenegraph:!0,attributes:!0}}):"attributes"===e.which?n.setState(function(e){return{visible:{attributes:!e.visible.attributes}}}):"scenegraph"===e.which&&n.setState(function(e){return{visible:{scenegraph:!e.visible.scenegraph}}}),n.forceUpdate()}),n}return i(t,e),s(t,[{key:"componentDidMount",value:function(){var e=this,t=new MutationObserver(function(e){_.emit("dommodified",e)}),n={attributes:!0,childList:!0,characterData:!0};t.observe(this.state.sceneEl,n),_.on("opentexturesmodal",function(e,t){this.setState({selectedTexture:e,isModalTexturesOpen:!0,textureOnClose:t})}.bind(this)),_.on("entityselected",function(t){e.setState({entity:t})}),_.on("inspectormodechanged",function(t){e.setState({inspectorEnabled:t})}),_.on("openhelpmodal",function(){e.setState({isHelpOpen:!0})}),_.on("motioncapturerecordstart",function(){e.setState({isMotionCaptureRecording:!0})}),_.on("motioncapturerecordstop",function(){e.setState({isMotionCaptureRecording:!1})}),_.on("motioncapturecountdown",function(t){e.setState({motionCaptureCountdown:t})})}},{key:"render",value:function(){var e=this,t=this.state.sceneEl,n=this.state.visible.scenegraph?null:l.default.createElement("div",{className:"toggle-sidebar left"},l.default.createElement("a",{onClick:function(){e.setState({visible:{scenegraph:!0}}),e.forceUpdate()},className:"fa fa-plus",title:"Show scenegraph"})),o=!this.state.entity||this.state.visible.attributes?null:l.default.createElement("div",{className:"toggle-sidebar right"},l.default.createElement("a",{onClick:function(){e.setState({visible:{attributes:!0}}),e.forceUpdate()},className:"fa fa-plus",title:"Show components"})),r="Inspect Scene";return this.state.motionCaptureCountdown!==-1?r=this.state.motionCaptureCountdown:this.state.isMotionCaptureRecording?r="Stop Recording":this.state.inspectorEnabled&&(r="Back to Scene"),l.default.createElement("div",null,l.default.createElement("a",{className:"toggle-edit",onClick:this.toggleEdit},r),l.default.createElement("div",{id:"aframe-inspector-panels",className:this.state.inspectorEnabled?"":"hidden"},l.default.createElement(m.default,{ref:"modaltextures",isOpen:this.state.isModalTexturesOpen,selectedTexture:this.state.selectedTexture,onClose:this.onModalTextureOnClose}),l.default.createElement(b.default,{id:"left-sidebar",scene:t,selectedEntity:this.state.entity,visible:this.state.visible.scenegraph}),n,o,l.default.createElement("div",{id:"right-panels"},l.default.createElement(w.default,null),l.default.createElement(f.default,{entity:this.state.entity,visible:this.state.visible.attributes}))),l.default.createElement(g.default,{isOpen:this.state.isHelpOpen,onClose:this.onCloseHelpModal}))}}]),t}(l.default.Component);t.default=T,function(){(0,x.injectJS)("https://ajax.googleapis.com/ajax/libs/webfont/1.6.16/webfont.js",function(){var e=document.createElement("script");e.setAttribute("data-aframe-inspector","webfont"),e.innerHTML='WebFont.load({google: {families: ["Roboto", "Roboto Mono"]}});',document.head.appendChild(e)},function(){console.warn("Could not load WebFont script:",webFont.src)});var e=document.createElement("div");e.id="aframe-inspector",e.setAttribute("data-aframe-inspector","app"),document.body.appendChild(e),window.addEventListener("inspector-loaded",function(){p.default.render(l.default.createElement(T,null),e)}),console.log("A-Frame Inspector Version:","0.8.3","(09-05-2018 Commit: "+"4f48127dd1514c1850f2609c51034a5a5a064c10\n".substr(0,7)+")")}()},function(e,t,n){"use strict";e.exports=n(3)},function(e,t,n){"use strict";var o=n(4),r=n(5),a=n(14),i=n(22),s=n(16),u=n(23),l=n(28),c=n(29),p=n(31),d=s.createElement,f=s.createFactory,h=s.cloneElement,m=o,v=function(e){return e},g={Children:{map:a.map,forEach:a.forEach,count:a.count,toArray:a.toArray,only:p},Component:r.Component,PureComponent:r.PureComponent,createElement:d,cloneElement:h,isValidElement:s.isValidElement,PropTypes:u,createClass:c,createFactory:f,createMixin:v,DOM:i,version:l,__spread:m};e.exports=g},function(e,t){/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
"use strict";function n(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function o(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var o=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==o.join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}var r=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=o()?Object.assign:function(e,t){for(var o,s,u=n(e),l=1;l<arguments.length;l++){o=Object(arguments[l]);for(var c in o)a.call(o,c)&&(u[c]=o[c]);if(r){s=r(o);for(var p=0;p<s.length;p++)i.call(o,s[p])&&(u[s[p]]=o[s[p]])}}return u}},function(e,t,n){"use strict";function o(e,t,n){this.props=e,this.context=t,this.refs=l,this.updater=n||u}function r(e,t,n){this.props=e,this.context=t,this.refs=l,this.updater=n||u}function a(){}var i=n(6),s=n(4),u=n(7),l=(n(10),n(11));n(12),n(13);o.prototype.isReactComponent={},o.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e?i("85"):void 0,this.updater.enqueueSetState(this,e),t&&this.updater.enqueueCallback(this,t,"setState")},o.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this),e&&this.updater.enqueueCallback(this,e,"forceUpdate")};a.prototype=o.prototype,r.prototype=new a,r.prototype.constructor=r,s(r.prototype,o.prototype),r.prototype.isPureReactComponent=!0,e.exports={Component:o,PureComponent:r}},function(e,t){"use strict";function n(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,o=0;o<t;o++)n+="&args[]="+encodeURIComponent(arguments[o+1]);n+=" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";var r=new Error(n);throw r.name="Invariant Violation",r.framesToPop=1,r}e.exports=n},function(e,t,n){"use strict";function o(e,t){}var r=(n(8),{isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){o(e,"forceUpdate")},enqueueReplaceState:function(e,t){o(e,"replaceState")},enqueueSetState:function(e,t){o(e,"setState")}});e.exports=r},function(e,t,n){"use strict";var o=n(9),r=o;e.exports=r},function(e,t){"use strict";function n(e){return function(){return e}}var o=function(){};o.thatReturns=n,o.thatReturnsFalse=n(!1),o.thatReturnsTrue=n(!0),o.thatReturnsNull=n(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){"use strict";var o=!1;e.exports=o},function(e,t,n){"use strict";var o={};e.exports=o},function(e,t,n){"use strict";function o(e,t,n,o,a,i,s,u){if(r(t),!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,o,a,i,s,u],p=0;l=new Error(t.replace(/%s/g,function(){return c[p++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}}var r=function(e){};e.exports=o},function(e,t,n){"use strict";var o=function(){};e.exports=o},function(e,t,n){"use strict";function o(e){return(""+e).replace(E,"$&/")}function r(e,t){this.func=e,this.context=t,this.count=0}function a(e,t,n){var o=e.func,r=e.context;o.call(r,t,e.count++)}function i(e,t,n){if(null==e)return e;var o=r.getPooled(t,n);g(e,a,o),r.release(o)}function s(e,t,n,o){this.result=e,this.keyPrefix=t,this.func=n,this.context=o,this.count=0}function u(e,t,n){var r=e.result,a=e.keyPrefix,i=e.func,s=e.context,u=i.call(s,t,e.count++);Array.isArray(u)?l(u,r,n,v.thatReturnsArgument):null!=u&&(m.isValidElement(u)&&(u=m.cloneAndReplaceKey(u,a+(!u.key||t&&t.key===u.key?"":o(u.key)+"/")+n)),r.push(u))}function l(e,t,n,r,a){var i="";null!=n&&(i=o(n)+"/");var l=s.getPooled(t,i,r,a);g(e,u,l),s.release(l)}function c(e,t,n){if(null==e)return e;var o=[];return l(e,o,null,t,n),o}function p(e,t,n){return null}function d(e,t){return g(e,p,null)}function f(e){var t=[];return l(e,t,null,v.thatReturnsArgument),t}var h=n(15),m=n(16),v=n(9),g=n(19),y=h.twoArgumentPooler,b=h.fourArgumentPooler,E=/\/+/g;r.prototype.destructor=function(){this.func=null,this.context=null,this.count=0},h.addPoolingTo(r,y),s.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},h.addPoolingTo(s,b);var w={forEach:i,map:c,mapIntoWithKeyPrefixInternal:l,count:d,toArray:f};e.exports=w},function(e,t,n){"use strict";var o=n(6),r=(n(12),function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)}),a=function(e,t){var n=this;if(n.instancePool.length){var o=n.instancePool.pop();return n.call(o,e,t),o}return new n(e,t)},i=function(e,t,n){var o=this;if(o.instancePool.length){var r=o.instancePool.pop();return o.call(r,e,t,n),r}return new o(e,t,n)},s=function(e,t,n,o){var r=this;if(r.instancePool.length){var a=r.instancePool.pop();return r.call(a,e,t,n,o),a}return new r(e,t,n,o)},u=function(e){var t=this;e instanceof t?void 0:o("25"),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},l=10,c=r,p=function(e,t){var n=e;return n.instancePool=[],n.getPooled=t||c,n.poolSize||(n.poolSize=l),n.release=u,n},d={addPoolingTo:p,oneArgumentPooler:r,twoArgumentPooler:a,threeArgumentPooler:i,fourArgumentPooler:s};e.exports=d},function(e,t,n){"use strict";function o(e){return void 0!==e.ref}function r(e){return void 0!==e.key}var a=n(4),i=n(17),s=(n(8),n(10),Object.prototype.hasOwnProperty),u=n(18),l={key:!0,ref:!0,__self:!0,__source:!0},c=function(e,t,n,o,r,a,i){var s={$$typeof:u,type:e,key:t,ref:n,props:i,_owner:a};return s};c.createElement=function(e,t,n){var a,u={},p=null,d=null,f=null,h=null;if(null!=t){o(t)&&(d=t.ref),r(t)&&(p=""+t.key),f=void 0===t.__self?null:t.__self,h=void 0===t.__source?null:t.__source;for(a in t)s.call(t,a)&&!l.hasOwnProperty(a)&&(u[a]=t[a])}var m=arguments.length-2;if(1===m)u.children=n;else if(m>1){for(var v=Array(m),g=0;g<m;g++)v[g]=arguments[g+2];u.children=v}if(e&&e.defaultProps){var y=e.defaultProps;for(a in y)void 0===u[a]&&(u[a]=y[a])}return c(e,p,d,f,h,i.current,u)},c.createFactory=function(e){var t=c.createElement.bind(null,e);return t.type=e,t},c.cloneAndReplaceKey=function(e,t){var n=c(e.type,t,e.ref,e._self,e._source,e._owner,e.props);return n},c.cloneElement=function(e,t,n){var u,p=a({},e.props),d=e.key,f=e.ref,h=e._self,m=e._source,v=e._owner;if(null!=t){o(t)&&(f=t.ref,v=i.current),r(t)&&(d=""+t.key);var g;e.type&&e.type.defaultProps&&(g=e.type.defaultProps);for(u in t)s.call(t,u)&&!l.hasOwnProperty(u)&&(void 0===t[u]&&void 0!==g?p[u]=g[u]:p[u]=t[u])}var y=arguments.length-2;if(1===y)p.children=n;else if(y>1){for(var b=Array(y),E=0;E<y;E++)b[E]=arguments[E+2];p.children=b}return c(e.type,d,f,h,m,v,p)},c.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===u},e.exports=c},function(e,t){"use strict";var n={current:null};e.exports=n},function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=n},function(e,t,n){"use strict";function o(e,t){return e&&"object"==typeof e&&null!=e.key?l.escape(e.key):t.toString(36)}function r(e,t,n,a){var d=typeof e;if("undefined"!==d&&"boolean"!==d||(e=null),null===e||"string"===d||"number"===d||"object"===d&&e.$$typeof===s)return n(a,e,""===t?c+o(e,0):t),1;var f,h,m=0,v=""===t?c:t+p;if(Array.isArray(e))for(var g=0;g<e.length;g++)f=e[g],h=v+o(f,g),m+=r(f,h,n,a);else{var y=u(e);if(y){var b,E=y.call(e);if(y!==e.entries)for(var w=0;!(b=E.next()).done;)f=b.value,h=v+o(f,w++),m+=r(f,h,n,a);else for(;!(b=E.next()).done;){var x=b.value;x&&(f=x[1],h=v+l.escape(x[0])+p+o(f,0),m+=r(f,h,n,a))}}else if("object"===d){var C="",_=String(e);i("31","[object Object]"===_?"object with keys {"+Object.keys(e).join(", ")+"}":_,C)}}return m}function a(e,t,n){return null==e?0:r(e,"",t,n)}var i=n(6),s=(n(17),n(18)),u=n(20),l=(n(12),n(21)),c=(n(8),"."),p=":";e.exports=a},function(e,t){"use strict";function n(e){var t=e&&(o&&e[o]||e[r]);if("function"==typeof t)return t}var o="function"==typeof Symbol&&Symbol.iterator,r="@@iterator";e.exports=n},function(e,t){"use strict";function n(e){var t=/[=:]/g,n={"=":"=0",":":"=2"},o=(""+e).replace(t,function(e){return n[e]});return"$"+o}function o(e){var t=/(=0|=2)/g,n={"=0":"=","=2":":"},o="."===e[0]&&"$"===e[1]?e.substring(2):e.substring(1);return(""+o).replace(t,function(e){return n[e]})}var r={escape:n,unescape:o};e.exports=r},function(e,t,n){"use strict";var o=n(16),r=o.createFactory,a={a:r("a"),abbr:r("abbr"),address:r("address"),area:r("area"),article:r("article"),aside:r("aside"),audio:r("audio"),b:r("b"),base:r("base"),bdi:r("bdi"),bdo:r("bdo"),big:r("big"),blockquote:r("blockquote"),body:r("body"),br:r("br"),button:r("button"),canvas:r("canvas"),caption:r("caption"),cite:r("cite"),code:r("code"),col:r("col"),colgroup:r("colgroup"),data:r("data"),datalist:r("datalist"),dd:r("dd"),del:r("del"),details:r("details"),dfn:r("dfn"),dialog:r("dialog"),div:r("div"),dl:r("dl"),dt:r("dt"),em:r("em"),embed:r("embed"),fieldset:r("fieldset"),figcaption:r("figcaption"),figure:r("figure"),footer:r("footer"),form:r("form"),h1:r("h1"),h2:r("h2"),h3:r("h3"),h4:r("h4"),h5:r("h5"),h6:r("h6"),head:r("head"),header:r("header"),hgroup:r("hgroup"),hr:r("hr"),html:r("html"),i:r("i"),iframe:r("iframe"),img:r("img"),input:r("input"),ins:r("ins"),kbd:r("kbd"),keygen:r("keygen"),label:r("label"),legend:r("legend"),li:r("li"),link:r("link"),main:r("main"),map:r("map"),mark:r("mark"),menu:r("menu"),menuitem:r("menuitem"),meta:r("meta"),meter:r("meter"),nav:r("nav"),noscript:r("noscript"),object:r("object"),ol:r("ol"),optgroup:r("optgroup"),option:r("option"),output:r("output"),p:r("p"),param:r("param"),picture:r("picture"),pre:r("pre"),progress:r("progress"),q:r("q"),rp:r("rp"),rt:r("rt"),ruby:r("ruby"),s:r("s"),samp:r("samp"),script:r("script"),section:r("section"),select:r("select"),small:r("small"),source:r("source"),span:r("span"),strong:r("strong"),style:r("style"),sub:r("sub"),summary:r("summary"),sup:r("sup"),table:r("table"),tbody:r("tbody"),td:r("td"),textarea:r("textarea"),tfoot:r("tfoot"),th:r("th"),thead:r("thead"),time:r("time"),title:r("title"),tr:r("tr"),track:r("track"),u:r("u"),ul:r("ul"),var:r("var"),video:r("video"),wbr:r("wbr"),circle:r("circle"),clipPath:r("clipPath"),defs:r("defs"),ellipse:r("ellipse"),g:r("g"),image:r("image"),line:r("line"),linearGradient:r("linearGradient"),mask:r("mask"),path:r("path"),pattern:r("pattern"),polygon:r("polygon"),polyline:r("polyline"),radialGradient:r("radialGradient"),rect:r("rect"),stop:r("stop"),svg:r("svg"),text:r("text"),tspan:r("tspan")};e.exports=a},function(e,t,n){"use strict";var o=n(16),r=o.isValidElement,a=n(24);e.exports=a(r)},function(e,t,n){"use strict";var o=n(25);e.exports=function(e){var t=!1;return o(e,t)}},function(e,t,n){"use strict";var o=n(9),r=n(12),a=n(8),i=n(26),s=n(27);e.exports=function(e,t){function n(e){var t=e&&(O&&e[O]||e[R]);if("function"==typeof t)return t}function u(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function l(e){this.message=e,this.stack=""}function c(e){function n(n,o,a,s,u,c,p){if(s=s||k,c=c||a,p!==i)if(t)r(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else;return null==o[a]?n?new l(null===o[a]?"The "+u+" `"+c+"` is marked as required "+("in `"+s+"`, but its value is `null`."):"The "+u+" `"+c+"` is marked as required in "+("`"+s+"`, but its value is `undefined`.")):null:e(o,a,s,u,c)}var o=n.bind(null,!1);return o.isRequired=n.bind(null,!0),o}function p(e){function t(t,n,o,r,a,i){var s=t[n],u=C(s);if(u!==e){var c=_(s);return new l("Invalid "+r+" `"+a+"` of type "+("`"+c+"` supplied to `"+o+"`, expected ")+("`"+e+"`."))}return null}return c(t)}function d(){return c(o.thatReturnsNull)}function f(e){function t(t,n,o,r,a){if("function"!=typeof e)return new l("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var s=t[n];if(!Array.isArray(s)){var u=C(s);return new l("Invalid "+r+" `"+a+"` of type "+("`"+u+"` supplied to `"+o+"`, expected an array."))}for(var c=0;c<s.length;c++){var p=e(s,c,o,r,a+"["+c+"]",i);if(p instanceof Error)return p}return null}return c(t)}function h(){function t(t,n,o,r,a){var i=t[n];if(!e(i)){var s=C(i);return new l("Invalid "+r+" `"+a+"` of type "+("`"+s+"` supplied to `"+o+"`, expected a single ReactElement."))}return null}return c(t)}function m(e){function t(t,n,o,r,a){if(!(t[n]instanceof e)){var i=e.name||k,s=S(t[n]);return new l("Invalid "+r+" `"+a+"` of type "+("`"+s+"` supplied to `"+o+"`, expected ")+("instance of `"+i+"`."))}return null}return c(t)}function v(e){function t(t,n,o,r,a){for(var i=t[n],s=0;s<e.length;s++)if(u(i,e[s]))return null;var c=JSON.stringify(e);return new l("Invalid "+r+" `"+a+"` of value `"+i+"` "+("supplied to `"+o+"`, expected one of "+c+"."))}return Array.isArray(e)?c(t):o.thatReturnsNull}function g(e){function t(t,n,o,r,a){if("function"!=typeof e)return new l("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var s=t[n],u=C(s);if("object"!==u)return new l("Invalid "+r+" `"+a+"` of type "+("`"+u+"` supplied to `"+o+"`, expected an object."));for(var c in s)if(s.hasOwnProperty(c)){var p=e(s,c,o,r,a+"."+c,i);if(p instanceof Error)return p}return null}return c(t)}function y(e){function t(t,n,o,r,a){for(var s=0;s<e.length;s++){var u=e[s];if(null==u(t,n,o,r,a,i))return null}return new l("Invalid "+r+" `"+a+"` supplied to "+("`"+o+"`."))}if(!Array.isArray(e))return o.thatReturnsNull;for(var n=0;n<e.length;n++){var r=e[n];if("function"!=typeof r)return a(!1,"Invalid argument supplid to oneOfType. Expected an array of check functions, but received %s at index %s.",T(r),n),o.thatReturnsNull}return c(t)}function b(){function e(e,t,n,o,r){return w(e[t])?null:new l("Invalid "+o+" `"+r+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return c(e)}function E(e){function t(t,n,o,r,a){var s=t[n],u=C(s);if("object"!==u)return new l("Invalid "+r+" `"+a+"` of type `"+u+"` "+("supplied to `"+o+"`, expected `object`."));for(var c in e){var p=e[c];if(p){var d=p(s,c,o,r,a+"."+c,i);if(d)return d}}return null}return c(t)}function w(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(w);if(null===t||e(t))return!0;var o=n(t);if(!o)return!1;var r,a=o.call(t);if(o!==t.entries){for(;!(r=a.next()).done;)if(!w(r.value))return!1}else for(;!(r=a.next()).done;){var i=r.value;if(i&&!w(i[1]))return!1}return!0;default:return!1}}function x(e,t){return"symbol"===e||("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}function C(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":x(t,e)?"symbol":t}function _(e){if("undefined"==typeof e||null===e)return""+e;var t=C(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function T(e){var t=_(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}function S(e){return e.constructor&&e.constructor.name?e.constructor.name:k}var O="function"==typeof Symbol&&Symbol.iterator,R="@@iterator",k="<<anonymous>>",A={array:p("array"),bool:p("boolean"),func:p("function"),number:p("number"),object:p("object"),string:p("string"),symbol:p("symbol"),any:d(),arrayOf:f,element:h(),instanceOf:m,node:b(),objectOf:g,oneOf:v,oneOfType:y,shape:E};return l.prototype=Error.prototype,A.checkPropTypes=s,A.PropTypes=A,A}},function(e,t){"use strict";var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=n},function(e,t,n){"use strict";function o(e,t,n,o,r){}e.exports=o},function(e,t){"use strict";e.exports="15.6.1"},function(e,t,n){"use strict";var o=n(5),r=o.Component,a=n(16),i=a.isValidElement,s=n(7),u=n(30);e.exports=u(r,i,s)},function(e,t,n){"use strict";function o(e){return e}function r(e,t,n){function r(e,t){var n=y.hasOwnProperty(t)?y[t]:null;x.hasOwnProperty(t)&&u("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&u("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function a(e,n){if(n){u("function"!=typeof n,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),u(!t(n),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var o=e.prototype,a=o.__reactAutoBindPairs;n.hasOwnProperty(l)&&b.mixins(e,n.mixins);for(var i in n)if(n.hasOwnProperty(i)&&i!==l){var s=n[i],c=o.hasOwnProperty(i);if(r(c,i),b.hasOwnProperty(i))b[i](e,s);else{var p=y.hasOwnProperty(i),h="function"==typeof s,m=h&&!p&&!c&&n.autobind!==!1;if(m)a.push(i,s),o[i]=s;else if(c){var v=y[i];u(p&&("DEFINE_MANY_MERGED"===v||"DEFINE_MANY"===v),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",v,i),"DEFINE_MANY_MERGED"===v?o[i]=d(o[i],s):"DEFINE_MANY"===v&&(o[i]=f(o[i],s))}else o[i]=s}}}else;}function c(e,t){if(t)for(var n in t){var o=t[n];if(t.hasOwnProperty(n)){var r=n in b;u(!r,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n);var a=n in e;u(!a,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),e[n]=o}}}function p(e,t){u(e&&t&&"object"==typeof e&&"object"==typeof t,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.");for(var n in t)t.hasOwnProperty(n)&&(u(void 0===e[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function d(e,t){return function(){var n=e.apply(this,arguments),o=t.apply(this,arguments);if(null==n)return o;if(null==o)return n;var r={};return p(r,n),p(r,o),r}}function f(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function h(e,t){var n=t.bind(e);return n}function m(e){for(var t=e.__reactAutoBindPairs,n=0;n<t.length;n+=2){var o=t[n],r=t[n+1];e[o]=h(e,r)}}function v(e){var t=o(function(e,o,r){this.__reactAutoBindPairs.length&&m(this),this.props=e,this.context=o,this.refs=s,this.updater=r||n,this.state=null;var a=this.getInitialState?this.getInitialState():null;u("object"==typeof a&&!Array.isArray(a),"%s.getInitialState(): must return an object or null",t.displayName||"ReactCompositeComponent"),this.state=a});t.prototype=new C,t.prototype.constructor=t,t.prototype.__reactAutoBindPairs=[],g.forEach(a.bind(null,t)),a(t,E),a(t,e),a(t,w),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),u(t.prototype.render,"createClass(...): Class specification must implement a `render` method.");for(var r in y)t.prototype[r]||(t.prototype[r]=null);return t}var g=[],y={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},b={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)a(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=i({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=i({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=d(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=i({},e.propTypes,t)},statics:function(e,t){c(e,t)},autobind:function(){}},E={componentDidMount:function(){this.__isMounted=!0}},w={componentWillUnmount:function(){this.__isMounted=!1}},x={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e,t)},isMounted:function(){return!!this.__isMounted}},C=function(){};return i(C.prototype,e.prototype,x),v}var a,i=n(4),s=n(11),u=n(12),l="mixins";a={},e.exports=r},function(e,t,n){"use strict";function o(e){return a.isValidElement(e)?void 0:r("143"),e}var r=n(6),a=n(16);n(12);e.exports=o},function(e,t,n){"use strict";e.exports=n(33)},function(e,t,n){"use strict";var o=n(34),r=n(38),a=n(162),i=n(59),s=n(56),u=n(167),l=n(168),c=n(169),p=n(170);n(8);r.inject();var d={findDOMNode:l,render:a.render,unmountComponentAtNode:a.unmountComponentAtNode,version:u,unstable_batchedUpdates:s.batchedUpdates,unstable_renderSubtreeIntoContainer:p};"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({ComponentTree:{getClosestInstanceFromNode:o.getClosestInstanceFromNode,getNodeFromInstance:function(e){return e._renderedComponent&&(e=c(e)),e?o.getNodeFromInstance(e):null}},Mount:a,Reconciler:i});e.exports=d},function(e,t,n){"use strict";function o(e,t){return 1===e.nodeType&&e.getAttribute(h)===String(t)||8===e.nodeType&&e.nodeValue===" react-text: "+t+" "||8===e.nodeType&&e.nodeValue===" react-empty: "+t+" "}function r(e){for(var t;t=e._renderedComponent;)e=t;return e}function a(e,t){var n=r(e);n._hostNode=t,t[v]=n}function i(e){var t=e._hostNode;t&&(delete t[v],e._hostNode=null)}function s(e,t){if(!(e._flags&m.hasCachedChildNodes)){var n=e._renderedChildren,i=t.firstChild;e:for(var s in n)if(n.hasOwnProperty(s)){var u=n[s],l=r(u)._domID;if(0!==l){for(;null!==i;i=i.nextSibling)if(o(i,l)){a(u,i);continue e}p("32",l)}}e._flags|=m.hasCachedChildNodes}}function u(e){if(e[v])return e[v];for(var t=[];!e[v];){if(t.push(e),!e.parentNode)return null;e=e.parentNode}for(var n,o;e&&(o=e[v]);e=t.pop())n=o,t.length&&s(o,e);return n}function l(e){var t=u(e);return null!=t&&t._hostNode===e?t:null}function c(e){if(void 0===e._hostNode?p("33"):void 0,e._hostNode)return e._hostNode;for(var t=[];!e._hostNode;)t.push(e),e._hostParent?void 0:p("34"),e=e._hostParent;for(;t.length;e=t.pop())s(e,e._hostNode);return e._hostNode}var p=n(35),d=n(36),f=n(37),h=(n(12),d.ID_ATTRIBUTE_NAME),m=f,v="__reactInternalInstance$"+Math.random().toString(36).slice(2),g={getClosestInstanceFromNode:u,getInstanceFromNode:l,getNodeFromInstance:c,precacheChildNodes:s,precacheNode:a,uncacheNode:i};e.exports=g},function(e,t){"use strict";function n(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,o=0;o<t;o++)n+="&args[]="+encodeURIComponent(arguments[o+1]);n+=" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";var r=new Error(n);throw r.name="Invariant Violation",r.framesToPop=1,r}e.exports=n},function(e,t,n){"use strict";function o(e,t){return(e&t)===t}var r=n(35),a=(n(12),{MUST_USE_PROPERTY:1,HAS_BOOLEAN_VALUE:4,HAS_NUMERIC_VALUE:8,HAS_POSITIVE_NUMERIC_VALUE:24,HAS_OVERLOADED_BOOLEAN_VALUE:32,injectDOMPropertyConfig:function(e){var t=a,n=e.Properties||{},i=e.DOMAttributeNamespaces||{},u=e.DOMAttributeNames||{},l=e.DOMPropertyNames||{},c=e.DOMMutationMethods||{};e.isCustomAttribute&&s._isCustomAttributeFunctions.push(e.isCustomAttribute);for(var p in n){s.properties.hasOwnProperty(p)?r("48",p):void 0;var d=p.toLowerCase(),f=n[p],h={attributeName:d,attributeNamespace:null,propertyName:p,mutationMethod:null,mustUseProperty:o(f,t.MUST_USE_PROPERTY),hasBooleanValue:o(f,t.HAS_BOOLEAN_VALUE),hasNumericValue:o(f,t.HAS_NUMERIC_VALUE),hasPositiveNumericValue:o(f,t.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:o(f,t.HAS_OVERLOADED_BOOLEAN_VALUE)};if(h.hasBooleanValue+h.hasNumericValue+h.hasOverloadedBooleanValue<=1?void 0:r("50",p),u.hasOwnProperty(p)){var m=u[p];h.attributeName=m}i.hasOwnProperty(p)&&(h.attributeNamespace=i[p]),l.hasOwnProperty(p)&&(h.propertyName=l[p]),c.hasOwnProperty(p)&&(h.mutationMethod=c[p]),s.properties[p]=h}}}),i=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",s={ID_ATTRIBUTE_NAME:"data-reactid",ROOT_ATTRIBUTE_NAME:"data-reactroot",ATTRIBUTE_NAME_START_CHAR:i,ATTRIBUTE_NAME_CHAR:i+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",properties:{},getPossibleStandardName:null,_isCustomAttributeFunctions:[],isCustomAttribute:function(e){for(var t=0;t<s._isCustomAttributeFunctions.length;t++){var n=s._isCustomAttributeFunctions[t];if(n(e))return!0}return!1},injection:a};e.exports=s},function(e,t){"use strict";var n={hasCachedChildNodes:1};e.exports=n},function(e,t,n){"use strict";function o(){C||(C=!0,y.EventEmitter.injectReactEventListener(g),y.EventPluginHub.injectEventPluginOrder(s),y.EventPluginUtils.injectComponentTree(d),y.EventPluginUtils.injectTreeTraversal(h),y.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:x,EnterLeaveEventPlugin:u,ChangeEventPlugin:i,SelectEventPlugin:w,BeforeInputEventPlugin:a}),y.HostComponent.injectGenericComponentClass(p),y.HostComponent.injectTextComponentClass(m),y.DOMProperty.injectDOMPropertyConfig(r),y.DOMProperty.injectDOMPropertyConfig(l),y.DOMProperty.injectDOMPropertyConfig(E),y.EmptyComponent.injectEmptyComponentFactory(function(e){return new f(e)}),y.Updates.injectReconcileTransaction(b),y.Updates.injectBatchingStrategy(v),y.Component.injectEnvironment(c))}var r=n(39),a=n(40),i=n(55),s=n(68),u=n(69),l=n(74),c=n(75),p=n(88),d=n(34),f=n(133),h=n(134),m=n(135),v=n(136),g=n(137),y=n(140),b=n(141),E=n(149),w=n(150),x=n(151),C=!1;e.exports={inject:o}},function(e,t){"use strict";var n={Properties:{"aria-current":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},DOMAttributeNames:{},DOMPropertyNames:{}};e.exports=n},function(e,t,n){"use strict";function o(){var e=window.opera;return"object"==typeof e&&"function"==typeof e.version&&parseInt(e.version(),10)<=12}function r(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function a(e){switch(e){case"topCompositionStart":return S.compositionStart;case"topCompositionEnd":return S.compositionEnd;case"topCompositionUpdate":return S.compositionUpdate}}function i(e,t){return"topKeyDown"===e&&t.keyCode===b}function s(e,t){switch(e){case"topKeyUp":return y.indexOf(t.keyCode)!==-1;case"topKeyDown":return t.keyCode!==b;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function u(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}function l(e,t,n,o){var r,l;if(E?r=a(e):R?s(e,n)&&(r=S.compositionEnd):i(e,n)&&(r=S.compositionStart),!r)return null;C&&(R||r!==S.compositionStart?r===S.compositionEnd&&R&&(l=R.getData()):R=m.getPooled(o));var c=v.getPooled(r,t,n,o);if(l)c.data=l;else{var p=u(n);null!==p&&(c.data=p)}return f.accumulateTwoPhaseDispatches(c),c}function c(e,t){switch(e){case"topCompositionEnd":return u(t);case"topKeyPress":var n=t.which;return n!==_?null:(O=!0,T);case"topTextInput":var o=t.data;return o===T&&O?null:o;default:return null}}function p(e,t){if(R){if("topCompositionEnd"===e||!E&&s(e,t)){var n=R.getData();return m.release(R),R=null,n}return null}switch(e){case"topPaste":return null;case"topKeyPress":return t.which&&!r(t)?String.fromCharCode(t.which):null;case"topCompositionEnd":return C?null:t.data;default:return null}}function d(e,t,n,o){var r;if(r=x?c(e,n):p(e,n),!r)return null;var a=g.getPooled(S.beforeInput,t,n,o);return a.data=r,f.accumulateTwoPhaseDispatches(a),a}var f=n(41),h=n(48),m=n(49),v=n(52),g=n(54),y=[9,13,27,32],b=229,E=h.canUseDOM&&"CompositionEvent"in window,w=null;h.canUseDOM&&"documentMode"in document&&(w=document.documentMode);var x=h.canUseDOM&&"TextEvent"in window&&!w&&!o(),C=h.canUseDOM&&(!E||w&&w>8&&w<=11),_=32,T=String.fromCharCode(_),S={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:["topBlur","topCompositionEnd","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:["topBlur","topCompositionStart","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:["topBlur","topCompositionUpdate","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]}},O=!1,R=null,k={eventTypes:S,extractEvents:function(e,t,n,o){return[l(e,t,n,o),d(e,t,n,o)]}};e.exports=k},function(e,t,n){"use strict";function o(e,t,n){var o=t.dispatchConfig.phasedRegistrationNames[n];return g(e,o)}function r(e,t,n){var r=o(e,n,t);r&&(n._dispatchListeners=m(n._dispatchListeners,r),n._dispatchInstances=m(n._dispatchInstances,e))}function a(e){e&&e.dispatchConfig.phasedRegistrationNames&&h.traverseTwoPhase(e._targetInst,r,e)}function i(e){if(e&&e.dispatchConfig.phasedRegistrationNames){var t=e._targetInst,n=t?h.getParentInstance(t):null;h.traverseTwoPhase(n,r,e)}}function s(e,t,n){if(n&&n.dispatchConfig.registrationName){var o=n.dispatchConfig.registrationName,r=g(e,o);r&&(n._dispatchListeners=m(n._dispatchListeners,r),n._dispatchInstances=m(n._dispatchInstances,e))}}function u(e){e&&e.dispatchConfig.registrationName&&s(e._targetInst,null,e)}function l(e){v(e,a)}function c(e){v(e,i)}function p(e,t,n,o){h.traverseEnterLeave(n,o,s,e,t)}function d(e){v(e,u)}var f=n(42),h=n(44),m=n(46),v=n(47),g=(n(8),f.getListener),y={accumulateTwoPhaseDispatches:l,accumulateTwoPhaseDispatchesSkipTarget:c,accumulateDirectDispatches:d,accumulateEnterLeaveDispatches:p};e.exports=y},function(e,t,n){"use strict";function o(e){return"button"===e||"input"===e||"select"===e||"textarea"===e}function r(e,t,n){switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":return!(!n.disabled||!o(t));default:return!1}}var a=n(35),i=n(43),s=n(44),u=n(45),l=n(46),c=n(47),p=(n(12),{}),d=null,f=function(e,t){e&&(s.executeDispatchesInOrder(e,t),e.isPersistent()||e.constructor.release(e))},h=function(e){return f(e,!0)},m=function(e){return f(e,!1)},v=function(e){
return"."+e._rootNodeID},g={injection:{injectEventPluginOrder:i.injectEventPluginOrder,injectEventPluginsByName:i.injectEventPluginsByName},putListener:function(e,t,n){"function"!=typeof n?a("94",t,typeof n):void 0;var o=v(e),r=p[t]||(p[t]={});r[o]=n;var s=i.registrationNameModules[t];s&&s.didPutListener&&s.didPutListener(e,t,n)},getListener:function(e,t){var n=p[t];if(r(t,e._currentElement.type,e._currentElement.props))return null;var o=v(e);return n&&n[o]},deleteListener:function(e,t){var n=i.registrationNameModules[t];n&&n.willDeleteListener&&n.willDeleteListener(e,t);var o=p[t];if(o){var r=v(e);delete o[r]}},deleteAllListeners:function(e){var t=v(e);for(var n in p)if(p.hasOwnProperty(n)&&p[n][t]){var o=i.registrationNameModules[n];o&&o.willDeleteListener&&o.willDeleteListener(e,n),delete p[n][t]}},extractEvents:function(e,t,n,o){for(var r,a=i.plugins,s=0;s<a.length;s++){var u=a[s];if(u){var c=u.extractEvents(e,t,n,o);c&&(r=l(r,c))}}return r},enqueueEvents:function(e){e&&(d=l(d,e))},processEventQueue:function(e){var t=d;d=null,e?c(t,h):c(t,m),d?a("95"):void 0,u.rethrowCaughtError()},__purge:function(){p={}},__getListenerBank:function(){return p}};e.exports=g},function(e,t,n){"use strict";function o(){if(s)for(var e in u){var t=u[e],n=s.indexOf(e);if(n>-1?void 0:i("96",e),!l.plugins[n]){t.extractEvents?void 0:i("97",e),l.plugins[n]=t;var o=t.eventTypes;for(var a in o)r(o[a],t,a)?void 0:i("98",a,e)}}}function r(e,t,n){l.eventNameDispatchConfigs.hasOwnProperty(n)?i("99",n):void 0,l.eventNameDispatchConfigs[n]=e;var o=e.phasedRegistrationNames;if(o){for(var r in o)if(o.hasOwnProperty(r)){var s=o[r];a(s,t,n)}return!0}return!!e.registrationName&&(a(e.registrationName,t,n),!0)}function a(e,t,n){l.registrationNameModules[e]?i("100",e):void 0,l.registrationNameModules[e]=t,l.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var i=n(35),s=(n(12),null),u={},l={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){s?i("101"):void 0,s=Array.prototype.slice.call(e),o()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];u.hasOwnProperty(n)&&u[n]===r||(u[n]?i("102",n):void 0,u[n]=r,t=!0)}t&&o()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return l.registrationNameModules[t.registrationName]||null;if(void 0!==t.phasedRegistrationNames){var n=t.phasedRegistrationNames;for(var o in n)if(n.hasOwnProperty(o)){var r=l.registrationNameModules[n[o]];if(r)return r}}return null},_resetEventPlugins:function(){s=null;for(var e in u)u.hasOwnProperty(e)&&delete u[e];l.plugins.length=0;var t=l.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var o=l.registrationNameModules;for(var r in o)o.hasOwnProperty(r)&&delete o[r]}};e.exports=l},function(e,t,n){"use strict";function o(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e}function r(e){return"topMouseMove"===e||"topTouchMove"===e}function a(e){return"topMouseDown"===e||"topTouchStart"===e}function i(e,t,n,o){var r=e.type||"unknown-event";e.currentTarget=g.getNodeFromInstance(o),t?m.invokeGuardedCallbackWithCatch(r,n,e):m.invokeGuardedCallback(r,n,e),e.currentTarget=null}function s(e,t){var n=e._dispatchListeners,o=e._dispatchInstances;if(Array.isArray(n))for(var r=0;r<n.length&&!e.isPropagationStopped();r++)i(e,t,n[r],o[r]);else n&&i(e,t,n,o);e._dispatchListeners=null,e._dispatchInstances=null}function u(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t)){for(var o=0;o<t.length&&!e.isPropagationStopped();o++)if(t[o](e,n[o]))return n[o]}else if(t&&t(e,n))return n;return null}function l(e){var t=u(e);return e._dispatchInstances=null,e._dispatchListeners=null,t}function c(e){var t=e._dispatchListeners,n=e._dispatchInstances;Array.isArray(t)?h("103"):void 0,e.currentTarget=t?g.getNodeFromInstance(n):null;var o=t?t(e):null;return e.currentTarget=null,e._dispatchListeners=null,e._dispatchInstances=null,o}function p(e){return!!e._dispatchListeners}var d,f,h=n(35),m=n(45),v=(n(12),n(8),{injectComponentTree:function(e){d=e},injectTreeTraversal:function(e){f=e}}),g={isEndish:o,isMoveish:r,isStartish:a,executeDirectDispatch:c,executeDispatchesInOrder:s,executeDispatchesInOrderStopAtTrue:l,hasDispatches:p,getInstanceFromNode:function(e){return d.getInstanceFromNode(e)},getNodeFromInstance:function(e){return d.getNodeFromInstance(e)},isAncestor:function(e,t){return f.isAncestor(e,t)},getLowestCommonAncestor:function(e,t){return f.getLowestCommonAncestor(e,t)},getParentInstance:function(e){return f.getParentInstance(e)},traverseTwoPhase:function(e,t,n){return f.traverseTwoPhase(e,t,n)},traverseEnterLeave:function(e,t,n,o,r){return f.traverseEnterLeave(e,t,n,o,r)},injection:v};e.exports=g},function(e,t,n){"use strict";function o(e,t,n){try{t(n)}catch(e){null===r&&(r=e)}}var r=null,a={invokeGuardedCallback:o,invokeGuardedCallbackWithCatch:o,rethrowCaughtError:function(){if(r){var e=r;throw r=null,e}}};e.exports=a},function(e,t,n){"use strict";function o(e,t){return null==t?r("30"):void 0,null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}var r=n(35);n(12);e.exports=o},function(e,t){"use strict";function n(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}e.exports=n},function(e,t){"use strict";var n=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:n,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:n&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:n&&!!window.screen,isInWorker:!n};e.exports=o},function(e,t,n){"use strict";function o(e){this._root=e,this._startText=this.getText(),this._fallbackText=null}var r=n(4),a=n(50),i=n(51);r(o.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[i()]},getData:function(){if(this._fallbackText)return this._fallbackText;var e,t,n=this._startText,o=n.length,r=this.getText(),a=r.length;for(e=0;e<o&&n[e]===r[e];e++);var i=o-e;for(t=1;t<=i&&n[o-t]===r[a-t];t++);var s=t>1?1-t:void 0;return this._fallbackText=r.slice(e,s),this._fallbackText}}),a.addPoolingTo(o),e.exports=o},function(e,t,n){"use strict";var o=n(35),r=(n(12),function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)}),a=function(e,t){var n=this;if(n.instancePool.length){var o=n.instancePool.pop();return n.call(o,e,t),o}return new n(e,t)},i=function(e,t,n){var o=this;if(o.instancePool.length){var r=o.instancePool.pop();return o.call(r,e,t,n),r}return new o(e,t,n)},s=function(e,t,n,o){var r=this;if(r.instancePool.length){var a=r.instancePool.pop();return r.call(a,e,t,n,o),a}return new r(e,t,n,o)},u=function(e){var t=this;e instanceof t?void 0:o("25"),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},l=10,c=r,p=function(e,t){var n=e;return n.instancePool=[],n.getPooled=t||c,n.poolSize||(n.poolSize=l),n.release=u,n},d={addPoolingTo:p,oneArgumentPooler:r,twoArgumentPooler:a,threeArgumentPooler:i,fourArgumentPooler:s};e.exports=d},function(e,t,n){"use strict";function o(){return!a&&r.canUseDOM&&(a="textContent"in document.documentElement?"textContent":"innerText"),a}var r=n(48),a=null;e.exports=o},function(e,t,n){"use strict";function o(e,t,n,o){return r.call(this,e,t,n,o)}var r=n(53),a={data:null};r.augmentClass(o,a),e.exports=o},function(e,t,n){"use strict";function o(e,t,n,o){this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n;var r=this.constructor.Interface;for(var a in r)if(r.hasOwnProperty(a)){var s=r[a];s?this[a]=s(n):"target"===a?this.target=o:this[a]=n[a]}var u=null!=n.defaultPrevented?n.defaultPrevented:n.returnValue===!1;return u?this.isDefaultPrevented=i.thatReturnsTrue:this.isDefaultPrevented=i.thatReturnsFalse,this.isPropagationStopped=i.thatReturnsFalse,this}var r=n(4),a=n(50),i=n(9),s=(n(8),"function"==typeof Proxy,["dispatchConfig","_targetInst","nativeEvent","isDefaultPrevented","isPropagationStopped","_dispatchListeners","_dispatchInstances"]),u={type:null,target:null,currentTarget:i.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};r(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=i.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=i.thatReturnsTrue)},persist:function(){this.isPersistent=i.thatReturnsTrue},isPersistent:i.thatReturnsFalse,destructor:function(){var e=this.constructor.Interface;for(var t in e)this[t]=null;for(var n=0;n<s.length;n++)this[s[n]]=null}}),o.Interface=u,o.augmentClass=function(e,t){var n=this,o=function(){};o.prototype=n.prototype;var i=new o;r(i,e.prototype),e.prototype=i,e.prototype.constructor=e,e.Interface=r({},n.Interface,t),e.augmentClass=n.augmentClass,a.addPoolingTo(e,a.fourArgumentPooler)},a.addPoolingTo(o,a.fourArgumentPooler),e.exports=o},function(e,t,n){"use strict";function o(e,t,n,o){return r.call(this,e,t,n,o)}var r=n(53),a={data:null};r.augmentClass(o,a),e.exports=o},function(e,t,n){"use strict";function o(e,t,n){var o=S.getPooled(M.change,e,t,n);return o.type="change",x.accumulateTwoPhaseDispatches(o),o}function r(e){var t=e.nodeName&&e.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===e.type}function a(e){var t=o(N,e,R(e));T.batchedUpdates(i,t)}function i(e){w.enqueueEvents(e),w.processEventQueue(!1)}function s(e,t){P=e,N=t,P.attachEvent("onchange",a)}function u(){P&&(P.detachEvent("onchange",a),P=null,N=null)}function l(e,t){var n=O.updateValueIfChanged(e),o=t.simulated===!0&&F._allowSimulatedPassThrough;if(n||o)return e}function c(e,t){if("topChange"===e)return t}function p(e,t,n){"topFocus"===e?(u(),s(t,n)):"topBlur"===e&&u()}function d(e,t){P=e,N=t,P.attachEvent("onpropertychange",h)}function f(){P&&(P.detachEvent("onpropertychange",h),P=null,N=null)}function h(e){"value"===e.propertyName&&l(N,e)&&a(e)}function m(e,t,n){"topFocus"===e?(f(),d(t,n)):"topBlur"===e&&f()}function v(e,t,n){if("topSelectionChange"===e||"topKeyUp"===e||"topKeyDown"===e)return l(N,n)}function g(e){var t=e.nodeName;return t&&"input"===t.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}function y(e,t,n){if("topClick"===e)return l(t,n)}function b(e,t,n){if("topInput"===e||"topChange"===e)return l(t,n)}function E(e,t){if(null!=e){var n=e._wrapperState||t._wrapperState;if(n&&n.controlled&&"number"===t.type){var o=""+t.value;t.getAttribute("value")!==o&&t.setAttribute("value",o)}}}var w=n(42),x=n(41),C=n(48),_=n(34),T=n(56),S=n(53),O=n(64),R=n(65),k=n(66),A=n(67),M={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:["topBlur","topChange","topClick","topFocus","topInput","topKeyDown","topKeyUp","topSelectionChange"]}},P=null,N=null,I=!1;C.canUseDOM&&(I=k("change")&&(!document.documentMode||document.documentMode>8));var D=!1;C.canUseDOM&&(D=k("input")&&(!("documentMode"in document)||document.documentMode>9));var F={eventTypes:M,_allowSimulatedPassThrough:!0,_isInputEventSupported:D,extractEvents:function(e,t,n,a){var i,s,u=t?_.getNodeFromInstance(t):window;if(r(u)?I?i=c:s=p:A(u)?D?i=b:(i=v,s=m):g(u)&&(i=y),i){var l=i(e,t,n);if(l){var d=o(l,n,a);return d}}s&&s(e,u,t),"topBlur"===e&&E(t,u)}};e.exports=F},function(e,t,n){"use strict";function o(){O.ReactReconcileTransaction&&w?void 0:c("123")}function r(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=d.getPooled(),this.reconcileTransaction=O.ReactReconcileTransaction.getPooled(!0)}function a(e,t,n,r,a,i){return o(),w.batchedUpdates(e,t,n,r,a,i)}function i(e,t){return e._mountOrder-t._mountOrder}function s(e){var t=e.dirtyComponentsLength;t!==g.length?c("124",t,g.length):void 0,g.sort(i),y++;for(var n=0;n<t;n++){var o=g[n],r=o._pendingCallbacks;o._pendingCallbacks=null;var a;if(h.logTopLevelRenders){var s=o;o._currentElement.type.isReactTopLevelWrapper&&(s=o._renderedComponent),a="React update: "+s.getName(),console.time(a)}if(m.performUpdateIfNecessary(o,e.reconcileTransaction,y),a&&console.timeEnd(a),r)for(var u=0;u<r.length;u++)e.callbackQueue.enqueue(r[u],o.getPublicInstance())}}function u(e){return o(),w.isBatchingUpdates?(g.push(e),void(null==e._updateBatchNumber&&(e._updateBatchNumber=y+1))):void w.batchedUpdates(u,e)}function l(e,t){w.isBatchingUpdates?void 0:c("125"),b.enqueue(e,t),E=!0}var c=n(35),p=n(4),d=n(57),f=n(50),h=n(58),m=n(59),v=n(63),g=(n(12),[]),y=0,b=d.getPooled(),E=!1,w=null,x={initialize:function(){this.dirtyComponentsLength=g.length},close:function(){this.dirtyComponentsLength!==g.length?(g.splice(0,this.dirtyComponentsLength),T()):g.length=0}},C={initialize:function(){this.callbackQueue.reset()},close:function(){this.callbackQueue.notifyAll()}},_=[x,C];p(r.prototype,v,{getTransactionWrappers:function(){return _},destructor:function(){this.dirtyComponentsLength=null,d.release(this.callbackQueue),this.callbackQueue=null,O.ReactReconcileTransaction.release(this.reconcileTransaction),this.reconcileTransaction=null},perform:function(e,t,n){return v.perform.call(this,this.reconcileTransaction.perform,this.reconcileTransaction,e,t,n)}}),f.addPoolingTo(r);var T=function(){for(;g.length||E;){if(g.length){var e=r.getPooled();e.perform(s,null,e),r.release(e)}if(E){E=!1;var t=b;b=d.getPooled(),t.notifyAll(),d.release(t)}}},S={injectReconcileTransaction:function(e){e?void 0:c("126"),O.ReactReconcileTransaction=e},injectBatchingStrategy:function(e){e?void 0:c("127"),"function"!=typeof e.batchedUpdates?c("128"):void 0,"boolean"!=typeof e.isBatchingUpdates?c("129"):void 0,w=e}},O={ReactReconcileTransaction:null,batchedUpdates:a,enqueueUpdate:u,flushBatchedUpdates:T,injection:S,asap:l};e.exports=O},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(35),a=n(50),i=(n(12),function(){function e(t){o(this,e),this._callbacks=null,this._contexts=null,this._arg=t}return e.prototype.enqueue=function(e,t){this._callbacks=this._callbacks||[],this._callbacks.push(e),this._contexts=this._contexts||[],this._contexts.push(t)},e.prototype.notifyAll=function(){var e=this._callbacks,t=this._contexts,n=this._arg;if(e&&t){e.length!==t.length?r("24"):void 0,this._callbacks=null,this._contexts=null;for(var o=0;o<e.length;o++)e[o].call(t[o],n);e.length=0,t.length=0}},e.prototype.checkpoint=function(){return this._callbacks?this._callbacks.length:0},e.prototype.rollback=function(e){this._callbacks&&this._contexts&&(this._callbacks.length=e,this._contexts.length=e)},e.prototype.reset=function(){this._callbacks=null,this._contexts=null},e.prototype.destructor=function(){this.reset()},e}());e.exports=a.addPoolingTo(i)},function(e,t){"use strict";var n={logTopLevelRenders:!1};e.exports=n},function(e,t,n){"use strict";function o(){r.attachRefs(this,this._currentElement)}var r=n(60),a=(n(62),n(8),{mountComponent:function(e,t,n,r,a,i){var s=e.mountComponent(t,n,r,a,i);return e._currentElement&&null!=e._currentElement.ref&&t.getReactMountReady().enqueue(o,e),s},getHostNode:function(e){return e.getHostNode()},unmountComponent:function(e,t){r.detachRefs(e,e._currentElement),e.unmountComponent(t)},receiveComponent:function(e,t,n,a){var i=e._currentElement;if(t!==i||a!==e._context){var s=r.shouldUpdateRefs(i,t);s&&r.detachRefs(e,i),e.receiveComponent(t,n,a),s&&e._currentElement&&null!=e._currentElement.ref&&n.getReactMountReady().enqueue(o,e)}},performUpdateIfNecessary:function(e,t,n){e._updateBatchNumber===n&&e.performUpdateIfNecessary(t)}});e.exports=a},function(e,t,n){"use strict";function o(e,t,n){"function"==typeof e?e(t.getPublicInstance()):a.addComponentAsRefTo(t,e,n)}function r(e,t,n){"function"==typeof e?e(null):a.removeComponentAsRefFrom(t,e,n)}var a=n(61),i={};i.attachRefs=function(e,t){if(null!==t&&"object"==typeof t){var n=t.ref;null!=n&&o(n,e,t._owner)}},i.shouldUpdateRefs=function(e,t){var n=null,o=null;null!==e&&"object"==typeof e&&(n=e.ref,o=e._owner);var r=null,a=null;return null!==t&&"object"==typeof t&&(r=t.ref,a=t._owner),n!==r||"string"==typeof r&&a!==o},i.detachRefs=function(e,t){if(null!==t&&"object"==typeof t){var n=t.ref;null!=n&&r(n,e,t._owner)}},e.exports=i},function(e,t,n){"use strict";function o(e){return!(!e||"function"!=typeof e.attachRef||"function"!=typeof e.detachRef)}var r=n(35),a=(n(12),{addComponentAsRefTo:function(e,t,n){o(n)?void 0:r("119"),n.attachRef(t,e)},removeComponentAsRefFrom:function(e,t,n){o(n)?void 0:r("120");var a=n.getPublicInstance();a&&a.refs[t]===e.getPublicInstance()&&n.detachRef(t)}});e.exports=a},function(e,t,n){"use strict";var o=null;e.exports={debugTool:o}},function(e,t,n){"use strict";var o=n(35),r=(n(12),{}),a={reinitializeTransaction:function(){this.transactionWrappers=this.getTransactionWrappers(),this.wrapperInitData?this.wrapperInitData.length=0:this.wrapperInitData=[],this._isInTransaction=!1},_isInTransaction:!1,getTransactionWrappers:null,isInTransaction:function(){return!!this._isInTransaction},perform:function(e,t,n,r,a,i,s,u){this.isInTransaction()?o("27"):void 0;var l,c;try{this._isInTransaction=!0,l=!0,this.initializeAll(0),c=e.call(t,n,r,a,i,s,u),l=!1}finally{try{if(l)try{this.closeAll(0)}catch(e){}else this.closeAll(0)}finally{this._isInTransaction=!1}}return c},initializeAll:function(e){for(var t=this.transactionWrappers,n=e;n<t.length;n++){var o=t[n];try{this.wrapperInitData[n]=r,this.wrapperInitData[n]=o.initialize?o.initialize.call(this):null}finally{if(this.wrapperInitData[n]===r)try{this.initializeAll(n+1)}catch(e){}}}},closeAll:function(e){this.isInTransaction()?void 0:o("28");for(var t=this.transactionWrappers,n=e;n<t.length;n++){var a,i=t[n],s=this.wrapperInitData[n];try{a=!0,s!==r&&i.close&&i.close.call(this,s),a=!1}finally{if(a)try{this.closeAll(n+1)}catch(e){}}}this.wrapperInitData.length=0}};e.exports=a},function(e,t,n){"use strict";function o(e){var t=e.type,n=e.nodeName;return n&&"input"===n.toLowerCase()&&("checkbox"===t||"radio"===t)}function r(e){return e._wrapperState.valueTracker}function a(e,t){e._wrapperState.valueTracker=t}function i(e){delete e._wrapperState.valueTracker}function s(e){var t;return e&&(t=o(e)?""+e.checked:e.value),t}var u=n(34),l={_getTrackerFromNode:function(e){return r(u.getInstanceFromNode(e))},track:function(e){if(!r(e)){var t=u.getNodeFromInstance(e),n=o(t)?"checked":"value",s=Object.getOwnPropertyDescriptor(t.constructor.prototype,n),l=""+t[n];t.hasOwnProperty(n)||"function"!=typeof s.get||"function"!=typeof s.set||(Object.defineProperty(t,n,{enumerable:s.enumerable,configurable:!0,get:function(){return s.get.call(this)},set:function(e){l=""+e,s.set.call(this,e)}}),a(e,{getValue:function(){return l},setValue:function(e){l=""+e},stopTracking:function(){i(e),delete t[n]}}))}},updateValueIfChanged:function(e){if(!e)return!1;var t=r(e);if(!t)return l.track(e),!0;var n=t.getValue(),o=s(u.getNodeFromInstance(e));return o!==n&&(t.setValue(o),!0)},stopTracking:function(e){var t=r(e);t&&t.stopTracking()}};e.exports=l},function(e,t){"use strict";function n(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}e.exports=n},function(e,t,n){"use strict";/**
* Checks if an event is supported in the current execution environment.
*
* NOTE: This will not work correctly for non-generic events such as `change`,
* `reset`, `load`, `error`, and `select`.
*
* Borrows from Modernizr.
*
* @param {string} eventNameSuffix Event name, e.g. "click".
* @param {?boolean} capture Check if the capture phase is supported.
* @return {boolean} True if the event is supported.
* @internal
* @license Modernizr 3.0.0pre (Custom Build) | MIT
*/
function o(e,t){if(!a.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,o=n in document;if(!o){var i=document.createElement("div");i.setAttribute(n,"return;"),o="function"==typeof i[n]}return!o&&r&&"wheel"===e&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}var r,a=n(48);a.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),e.exports=o},function(e,t){"use strict";function n(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!o[e.type]:"textarea"===t}var o={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};e.exports=n},function(e,t){"use strict";var n=["ResponderEventPlugin","SimpleEventPlugin","TapEventPlugin","EnterLeaveEventPlugin","ChangeEventPlugin","SelectEventPlugin","BeforeInputEventPlugin"];e.exports=n},function(e,t,n){"use strict";var o=n(41),r=n(34),a=n(70),i={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},s={eventTypes:i,extractEvents:function(e,t,n,s){if("topMouseOver"===e&&(n.relatedTarget||n.fromElement))return null;if("topMouseOut"!==e&&"topMouseOver"!==e)return null;var u;if(s.window===s)u=s;else{var l=s.ownerDocument;u=l?l.defaultView||l.parentWindow:window}var c,p;if("topMouseOut"===e){c=t;var d=n.relatedTarget||n.toElement;p=d?r.getClosestInstanceFromNode(d):null}else c=null,p=t;if(c===p)return null;var f=null==c?u:r.getNodeFromInstance(c),h=null==p?u:r.getNodeFromInstance(p),m=a.getPooled(i.mouseLeave,c,n,s);m.type="mouseleave",m.target=f,m.relatedTarget=h;var v=a.getPooled(i.mouseEnter,p,n,s);return v.type="mouseenter",v.target=h,v.relatedTarget=f,o.accumulateEnterLeaveDispatches(m,v,c,p),[m,v]}};e.exports=s},function(e,t,n){"use strict";function o(e,t,n,o){return r.call(this,e,t,n,o)}var r=n(71),a=n(72),i=n(73),s={screenX:null,screenY:null,clientX:null,clientY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:i,button:function(e){var t=e.button;return"which"in e?t:2===t?2:4===t?1:0},buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},pageX:function(e){return"pageX"in e?e.pageX:e.clientX+a.currentScrollLeft},pageY:function(e){return"pageY"in e?e.pageY:e.clientY+a.currentScrollTop}};r.augmentClass(o,s),e.exports=o},function(e,t,n){"use strict";function o(e,t,n,o){return r.call(this,e,t,n,o)}var r=n(53),a=n(65),i={view:function(e){if(e.view)return e.view;var t=a(e);if(t.window===t)return t;var n=t.ownerDocument;return n?n.defaultView||n.parentWindow:window},detail:function(e){return e.detail||0}};r.augmentClass(o,i),e.exports=o},function(e,t){"use strict";var n={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){n.currentScrollLeft=e.x,n.currentScrollTop=e.y}};e.exports=n},function(e,t){"use strict";function n(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var o=r[e];return!!o&&!!n[o]}function o(e){return n}var r={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};e.exports=o},function(e,t,n){"use strict";var o=n(36),r=o.injection.MUST_USE_PROPERTY,a=o.injection.HAS_BOOLEAN_VALUE,i=o.injection.HAS_NUMERIC_VALUE,s=o.injection.HAS_POSITIVE_NUMERIC_VALUE,u=o.injection.HAS_OVERLOADED_BOOLEAN_VALUE,l={isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+o.ATTRIBUTE_NAME_CHAR+"]*$")),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:a,allowTransparency:0,alt:0,as:0,async:a,autoComplete:0,autoPlay:a,capture:a,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:r|a,cite:0,classID:0,className:0,cols:s,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:a,coords:0,crossOrigin:0,data:0,dateTime:0,default:a,defer:a,dir:0,disabled:a,download:u,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:a,formTarget:0,frameBorder:0,headers:0,height:0,hidden:a,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:a,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:r|a,muted:r|a,name:0,nonce:0,noValidate:a,open:a,optimum:0,pattern:0,placeholder:0,playsInline:a,poster:0,preload:0,profile:0,radioGroup:0,readOnly:a,referrerPolicy:0,rel:0,required:a,reversed:a,role:0,rows:s,rowSpan:i,sandbox:0,scope:0,scoped:a,scrolling:0,seamless:a,selected:r|a,shape:0,size:s,sizes:0,span:s,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:i,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:a,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{},DOMMutationMethods:{value:function(e,t){return null==t?e.removeAttribute("value"):void("number"!==e.type||e.hasAttribute("value")===!1?e.setAttribute("value",""+t):e.validity&&!e.validity.badInput&&e.ownerDocument.activeElement!==e&&e.setAttribute("value",""+t))}}};e.exports=l},function(e,t,n){"use strict";var o=n(76),r=n(87),a={processChildrenUpdates:r.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkup:o.dangerouslyReplaceNodeWithMarkup};e.exports=a},function(e,t,n){"use strict";function o(e,t){return Array.isArray(t)&&(t=t[1]),t?t.nextSibling:e.firstChild}function r(e,t,n){c.insertTreeBefore(e,t,n)}function a(e,t,n){Array.isArray(t)?s(e,t[0],t[1],n):m(e,t,n)}function i(e,t){if(Array.isArray(t)){var n=t[1];t=t[0],u(e,t,n),e.removeChild(n)}e.removeChild(t)}function s(e,t,n,o){for(var r=t;;){var a=r.nextSibling;if(m(e,r,o),r===n)break;r=a}}function u(e,t,n){for(;;){var o=t.nextSibling;if(o===n)break;e.removeChild(o)}}function l(e,t,n){var o=e.parentNode,r=e.nextSibling;r===t?n&&m(o,document.createTextNode(n),r):n?(h(r,n),u(o,r,t)):u(o,e,t)}var c=n(77),p=n(83),d=(n(34),n(62),n(80)),f=n(79),h=n(81),m=d(function(e,t,n){e.insertBefore(t,n)}),v=p.dangerouslyReplaceNodeWithMarkup,g={dangerouslyReplaceNodeWithMarkup:v,replaceDelimitedText:l,processUpdates:function(e,t){for(var n=0;n<t.length;n++){var s=t[n];switch(s.type){case"INSERT_MARKUP":r(e,s.content,o(e,s.afterNode));break;case"MOVE_EXISTING":a(e,s.fromNode,o(e,s.afterNode));break;case"SET_MARKUP":f(e,s.content);break;case"TEXT_CONTENT":h(e,s.content);break;case"REMOVE_NODE":i(e,s.fromNode)}}}};e.exports=g},function(e,t,n){"use strict";function o(e){if(v){var t=e.node,n=e.children;if(n.length)for(var o=0;o<n.length;o++)g(t,n[o],null);else null!=e.html?p(t,e.html):null!=e.text&&f(t,e.text)}}function r(e,t){e.parentNode.replaceChild(t.node,e),o(t)}function a(e,t){v?e.children.push(t):e.node.appendChild(t.node)}function i(e,t){v?e.html=t:p(e.node,t)}function s(e,t){v?e.text=t:f(e.node,t)}function u(){return this.node.nodeName}function l(e){return{node:e,children:[],html:null,text:null,toString:u}}var c=n(78),p=n(79),d=n(80),f=n(81),h=1,m=11,v="undefined"!=typeof document&&"number"==typeof document.documentMode||"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent&&/\bEdge\/\d/.test(navigator.userAgent),g=d(function(e,t,n){t.node.nodeType===m||t.node.nodeType===h&&"object"===t.node.nodeName.toLowerCase()&&(null==t.node.namespaceURI||t.node.namespaceURI===c.html)?(o(t),e.insertBefore(t.node,n)):(e.insertBefore(t.node,n),o(t))});l.insertTreeBefore=g,l.replaceChildWithTree=r,l.queueChild=a,l.queueHTML=i,l.queueText=s,e.exports=l},function(e,t){"use strict";var n={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};e.exports=n},function(e,t,n){"use strict";var o,r=n(48),a=n(78),i=/^[ \r\n\t\f]/,s=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,u=n(80),l=u(function(e,t){if(e.namespaceURI!==a.svg||"innerHTML"in e)e.innerHTML=t;else{o=o||document.createElement("div"),o.innerHTML="<svg>"+t+"</svg>";for(var n=o.firstChild;n.firstChild;)e.appendChild(n.firstChild)}});if(r.canUseDOM){var c=document.createElement("div");c.innerHTML=" ",""===c.innerHTML&&(l=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),i.test(t)||"<"===t[0]&&s.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t}),c=null}e.exports=l},function(e,t){"use strict";var n=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,o,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,o,r)})}:e};e.exports=n},function(e,t,n){"use strict";var o=n(48),r=n(82),a=n(79),i=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t};o.canUseDOM&&("textContent"in document.documentElement||(i=function(e,t){return 3===e.nodeType?void(e.nodeValue=t):void a(e,r(t))})),e.exports=i},function(e,t){"use strict";function n(e){var t=""+e,n=r.exec(t);if(!n)return t;var o,a="",i=0,s=0;for(i=n.index;i<t.length;i++){switch(t.charCodeAt(i)){case 34:o=""";break;case 38:o="&";break;case 39:o="'";break;case 60:o="<";break;case 62:o=">";break;default:continue}s!==i&&(a+=t.substring(s,i)),s=i+1,a+=o}return s!==i?a+t.substring(s,i):a}function o(e){return"boolean"==typeof e||"number"==typeof e?""+e:n(e)}var r=/["'&<>]/;e.exports=o},function(e,t,n){"use strict";var o=n(35),r=n(77),a=n(48),i=n(84),s=n(9),u=(n(12),{dangerouslyReplaceNodeWithMarkup:function(e,t){if(a.canUseDOM?void 0:o("56"),t?void 0:o("57"),"HTML"===e.nodeName?o("58"):void 0,"string"==typeof t){var n=i(t,s)[0];e.parentNode.replaceChild(n,e)}else r.replaceChildWithTree(e,t)}});e.exports=u},function(e,t,n){"use strict";function o(e){var t=e.match(c);return t&&t[1].toLowerCase()}function r(e,t){var n=l;l?void 0:u(!1);var r=o(e),a=r&&s(r);if(a){n.innerHTML=a[1]+e+a[2];for(var c=a[0];c--;)n=n.lastChild}else n.innerHTML=e;var p=n.getElementsByTagName("script");p.length&&(t?void 0:u(!1),i(p).forEach(t));for(var d=Array.from(n.childNodes);n.lastChild;)n.removeChild(n.lastChild);return d}var a=n(48),i=n(85),s=n(86),u=n(12),l=a.canUseDOM?document.createElement("div"):null,c=/^\s*<(\w+)/;e.exports=r},function(e,t,n){"use strict";function o(e){var t=e.length;if(Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e?i(!1):void 0,"number"!=typeof t?i(!1):void 0,0===t||t-1 in e?void 0:i(!1),"function"==typeof e.callee?i(!1):void 0,e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),o=0;o<t;o++)n[o]=e[o];return n}function r(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}function a(e){return r(e)?Array.isArray(e)?e.slice():o(e):[e]}var i=n(12);e.exports=a},function(e,t,n){"use strict";function o(e){return i?void 0:a(!1),d.hasOwnProperty(e)||(e="*"),s.hasOwnProperty(e)||("*"===e?i.innerHTML="<link />":i.innerHTML="<"+e+"></"+e+">",s[e]=!i.firstChild),s[e]?d[e]:null}var r=n(48),a=n(12),i=r.canUseDOM?document.createElement("div"):null,s={},u=[1,'<select multiple="true">',"</select>"],l=[1,"<table>","</table>"],c=[3,"<table><tbody><tr>","</tr></tbody></table>"],p=[1,'<svg xmlns="http://www.w3.org/2000/svg">',"</svg>"],d={"*":[1,"?<div>","</div>"],area:[1,"<map>","</map>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],legend:[1,"<fieldset>","</fieldset>"],param:[1,"<object>","</object>"],tr:[2,"<table><tbody>","</tbody></table>"],optgroup:u,option:u,caption:l,colgroup:l,tbody:l,tfoot:l,thead:l,td:c,th:c},f=["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"];f.forEach(function(e){d[e]=p,s[e]=!0}),e.exports=o},function(e,t,n){"use strict";var o=n(76),r=n(34),a={dangerouslyProcessChildrenUpdates:function(e,t){var n=r.getNodeFromInstance(e);o.processUpdates(n,t)}};e.exports=a},function(e,t,n){"use strict";function o(e){if(e){var t=e._currentElement._owner||null;if(t){var n=t.getName();if(n)return" This DOM node was rendered by `"+n+"`."}}return""}function r(e,t){t&&(Z[e._tag]&&(null!=t.children||null!=t.dangerouslySetInnerHTML?v("137",e._tag,e._currentElement._owner?" Check the render method of "+e._currentElement._owner.getName()+".":""):void 0),null!=t.dangerouslySetInnerHTML&&(null!=t.children?v("60"):void 0,"object"==typeof t.dangerouslySetInnerHTML&&W in t.dangerouslySetInnerHTML?void 0:v("61")),null!=t.style&&"object"!=typeof t.style?v("62",o(e)):void 0)}function a(e,t,n,o){if(!(o instanceof I)){var r=e._hostContainerInfo,a=r._node&&r._node.nodeType===q,s=a?r._node:r._ownerDocument;U(t,s),o.getReactMountReady().enqueue(i,{inst:e,registrationName:t,listener:n})}}function i(){var e=this;_.putListener(e.inst,e.registrationName,e.listener)}function s(){var e=this;k.postMountWrapper(e)}function u(){var e=this;P.postMountWrapper(e)}function l(){var e=this;A.postMountWrapper(e)}function c(){F.track(this)}function p(){var e=this;e._rootNodeID?void 0:v("63");var t=H(e);switch(t?void 0:v("64"),e._tag){case"iframe":case"object":e._wrapperState.listeners=[S.trapBubbledEvent("topLoad","load",t)];break;case"video":case"audio":e._wrapperState.listeners=[];for(var n in G)G.hasOwnProperty(n)&&e._wrapperState.listeners.push(S.trapBubbledEvent(n,G[n],t));break;case"source":e._wrapperState.listeners=[S.trapBubbledEvent("topError","error",t)];break;case"img":e._wrapperState.listeners=[S.trapBubbledEvent("topError","error",t),S.trapBubbledEvent("topLoad","load",t)];break;case"form":e._wrapperState.listeners=[S.trapBubbledEvent("topReset","reset",t),S.trapBubbledEvent("topSubmit","submit",t)];break;case"input":case"select":case"textarea":e._wrapperState.listeners=[S.trapBubbledEvent("topInvalid","invalid",t)]}}function d(){M.postUpdateWrapper(this)}function f(e){J.call($,e)||(Q.test(e)?void 0:v("65",e),$[e]=!0)}function h(e,t){return e.indexOf("-")>=0||null!=t.is}function m(e){var t=e.type;f(t),this._currentElement=e,this._tag=t.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._hostNode=null,this._hostParent=null,this._rootNodeID=0,this._domID=0,this._hostContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0}var v=n(35),g=n(4),y=n(89),b=n(91),E=n(77),w=n(78),x=n(36),C=n(99),_=n(42),T=n(43),S=n(101),O=n(37),R=n(34),k=n(104),A=n(107),M=n(108),P=n(109),N=(n(62),n(110)),I=n(129),D=(n(9),n(82)),F=(n(12),n(66),n(118),n(64)),j=(n(132),n(8),O),L=_.deleteListener,H=R.getNodeFromInstance,U=S.listenTo,V=T.registrationNameModules,B={string:!0,number:!0},z="style",W="__html",K={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},q=11,G={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},Y={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},X={listing:!0,pre:!0,textarea:!0},Z=g({menuitem:!0},Y),Q=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,$={},J={}.hasOwnProperty,ee=1;m.displayName="ReactDOMComponent",m.Mixin={mountComponent:function(e,t,n,o){this._rootNodeID=ee++,this._domID=n._idCounter++,this._hostParent=t,this._hostContainerInfo=n;var a=this._currentElement.props;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":this._wrapperState={listeners:null},e.getReactMountReady().enqueue(p,this);break;case"input":k.mountWrapper(this,a,t),a=k.getHostProps(this,a),e.getReactMountReady().enqueue(c,this),e.getReactMountReady().enqueue(p,this);break;case"option":A.mountWrapper(this,a,t),a=A.getHostProps(this,a);break;case"select":M.mountWrapper(this,a,t),a=M.getHostProps(this,a),e.getReactMountReady().enqueue(p,this);break;case"textarea":P.mountWrapper(this,a,t),a=P.getHostProps(this,a),e.getReactMountReady().enqueue(c,this),e.getReactMountReady().enqueue(p,this)}r(this,a);var i,d;null!=t?(i=t._namespaceURI,d=t._tag):n._tag&&(i=n._namespaceURI,d=n._tag),(null==i||i===w.svg&&"foreignobject"===d)&&(i=w.html),i===w.html&&("svg"===this._tag?i=w.svg:"math"===this._tag&&(i=w.mathml)),this._namespaceURI=i;var f;if(e.useCreateElement){var h,m=n._ownerDocument;if(i===w.html)if("script"===this._tag){var v=m.createElement("div"),g=this._currentElement.type;v.innerHTML="<"+g+"></"+g+">",h=v.removeChild(v.firstChild)}else h=a.is?m.createElement(this._currentElement.type,a.is):m.createElement(this._currentElement.type);else h=m.createElementNS(i,this._currentElement.type);R.precacheNode(this,h),this._flags|=j.hasCachedChildNodes,this._hostParent||C.setAttributeForRoot(h),this._updateDOMProperties(null,a,e);var b=E(h);this._createInitialChildren(e,a,o,b),f=b}else{var x=this._createOpenTagMarkupAndPutListeners(e,a),_=this._createContentMarkup(e,a,o);f=!_&&Y[this._tag]?x+"/>":x+">"+_+"</"+this._currentElement.type+">"}switch(this._tag){case"input":e.getReactMountReady().enqueue(s,this),a.autoFocus&&e.getReactMountReady().enqueue(y.focusDOMComponent,this);break;case"textarea":e.getReactMountReady().enqueue(u,this),a.autoFocus&&e.getReactMountReady().enqueue(y.focusDOMComponent,this);break;case"select":a.autoFocus&&e.getReactMountReady().enqueue(y.focusDOMComponent,this);break;case"button":a.autoFocus&&e.getReactMountReady().enqueue(y.focusDOMComponent,this);break;case"option":e.getReactMountReady().enqueue(l,this)}return f},_createOpenTagMarkupAndPutListeners:function(e,t){var n="<"+this._currentElement.type;for(var o in t)if(t.hasOwnProperty(o)){var r=t[o];if(null!=r)if(V.hasOwnProperty(o))r&&a(this,o,r,e);else{o===z&&(r&&(r=this._previousStyleCopy=g({},t.style)),r=b.createMarkupForStyles(r,this));var i=null;null!=this._tag&&h(this._tag,t)?K.hasOwnProperty(o)||(i=C.createMarkupForCustomAttribute(o,r)):i=C.createMarkupForProperty(o,r),i&&(n+=" "+i)}}return e.renderToStaticMarkup?n:(this._hostParent||(n+=" "+C.createMarkupForRoot()),n+=" "+C.createMarkupForID(this._domID))},_createContentMarkup:function(e,t,n){var o="",r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&(o=r.__html);else{var a=B[typeof t.children]?t.children:null,i=null!=a?null:t.children;if(null!=a)o=D(a);else if(null!=i){var s=this.mountChildren(i,e,n);o=s.join("")}}return X[this._tag]&&"\n"===o.charAt(0)?"\n"+o:o},_createInitialChildren:function(e,t,n,o){var r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&E.queueHTML(o,r.__html);else{var a=B[typeof t.children]?t.children:null,i=null!=a?null:t.children;if(null!=a)""!==a&&E.queueText(o,a);else if(null!=i)for(var s=this.mountChildren(i,e,n),u=0;u<s.length;u++)E.queueChild(o,s[u])}},receiveComponent:function(e,t,n){var o=this._currentElement;this._currentElement=e,this.updateComponent(t,o,e,n)},updateComponent:function(e,t,n,o){var a=t.props,i=this._currentElement.props;switch(this._tag){case"input":a=k.getHostProps(this,a),i=k.getHostProps(this,i);break;case"option":a=A.getHostProps(this,a),i=A.getHostProps(this,i);break;case"select":a=M.getHostProps(this,a),i=M.getHostProps(this,i);break;case"textarea":a=P.getHostProps(this,a),i=P.getHostProps(this,i)}switch(r(this,i),this._updateDOMProperties(a,i,e),this._updateDOMChildren(a,i,e,o),this._tag){case"input":k.updateWrapper(this);break;case"textarea":P.updateWrapper(this);break;case"select":e.getReactMountReady().enqueue(d,this)}},_updateDOMProperties:function(e,t,n){var o,r,i;for(o in e)if(!t.hasOwnProperty(o)&&e.hasOwnProperty(o)&&null!=e[o])if(o===z){var s=this._previousStyleCopy;for(r in s)s.hasOwnProperty(r)&&(i=i||{},i[r]="");this._previousStyleCopy=null}else V.hasOwnProperty(o)?e[o]&&L(this,o):h(this._tag,e)?K.hasOwnProperty(o)||C.deleteValueForAttribute(H(this),o):(x.properties[o]||x.isCustomAttribute(o))&&C.deleteValueForProperty(H(this),o);for(o in t){var u=t[o],l=o===z?this._previousStyleCopy:null!=e?e[o]:void 0;if(t.hasOwnProperty(o)&&u!==l&&(null!=u||null!=l))if(o===z)if(u?u=this._previousStyleCopy=g({},u):this._previousStyleCopy=null,l){for(r in l)!l.hasOwnProperty(r)||u&&u.hasOwnProperty(r)||(i=i||{},i[r]="");for(r in u)u.hasOwnProperty(r)&&l[r]!==u[r]&&(i=i||{},i[r]=u[r])}else i=u;else if(V.hasOwnProperty(o))u?a(this,o,u,n):l&&L(this,o);else if(h(this._tag,t))K.hasOwnProperty(o)||C.setValueForAttribute(H(this),o,u);else if(x.properties[o]||x.isCustomAttribute(o)){var c=H(this);null!=u?C.setValueForProperty(c,o,u):C.deleteValueForProperty(c,o)}}i&&b.setValueForStyles(H(this),i,this)},_updateDOMChildren:function(e,t,n,o){var r=B[typeof e.children]?e.children:null,a=B[typeof t.children]?t.children:null,i=e.dangerouslySetInnerHTML&&e.dangerouslySetInnerHTML.__html,s=t.dangerouslySetInnerHTML&&t.dangerouslySetInnerHTML.__html,u=null!=r?null:e.children,l=null!=a?null:t.children,c=null!=r||null!=i,p=null!=a||null!=s;null!=u&&null==l?this.updateChildren(null,n,o):c&&!p&&this.updateTextContent(""),null!=a?r!==a&&this.updateTextContent(""+a):null!=s?i!==s&&this.updateMarkup(""+s):null!=l&&this.updateChildren(l,n,o)},getHostNode:function(){return H(this)},unmountComponent:function(e){switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":var t=this._wrapperState.listeners;if(t)for(var n=0;n<t.length;n++)t[n].remove();break;case"input":case"textarea":F.stopTracking(this);break;case"html":case"head":case"body":v("66",this._tag)}this.unmountChildren(e),R.uncacheNode(this),_.deleteAllListeners(this),this._rootNodeID=0,this._domID=0,this._wrapperState=null},getPublicInstance:function(){return H(this)}},g(m.prototype,m.Mixin,N.Mixin),e.exports=m},function(e,t,n){"use strict";var o=n(34),r=n(90),a={focusDOMComponent:function(){r(o.getNodeFromInstance(this))}};e.exports=a},function(e,t){"use strict";function n(e){try{e.focus()}catch(e){}}e.exports=n},function(e,t,n){"use strict";var o=n(92),r=n(48),a=(n(62),n(93),n(95)),i=n(96),s=n(98),u=(n(8),s(function(e){return i(e)})),l=!1,c="cssFloat";if(r.canUseDOM){var p=document.createElement("div").style;try{p.font=""}catch(e){l=!0}void 0===document.documentElement.style.cssFloat&&(c="styleFloat")}var d={createMarkupForStyles:function(e,t){var n="";for(var o in e)if(e.hasOwnProperty(o)){var r=0===o.indexOf("--"),i=e[o];null!=i&&(n+=u(o)+":",n+=a(o,i,t,r)+";")}return n||null},setValueForStyles:function(e,t,n){var r=e.style;for(var i in t)if(t.hasOwnProperty(i)){var s=0===i.indexOf("--"),u=a(i,t[i],n,s);if("float"!==i&&"cssFloat"!==i||(i=c),s)r.setProperty(i,u);else if(u)r[i]=u;else{var p=l&&o.shorthandPropertyExpansions[i];if(p)for(var d in p)r[d]="";else r[i]=""}}}};e.exports=d},function(e,t){"use strict";function n(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var o={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},r=["Webkit","ms","Moz","O"];Object.keys(o).forEach(function(e){r.forEach(function(t){o[n(t,e)]=o[e]})});var a={background:{backgroundAttachment:!0,backgroundColor:!0,backgroundImage:!0,backgroundPositionX:!0,backgroundPositionY:!0,backgroundRepeat:!0},backgroundPosition:{backgroundPositionX:!0,backgroundPositionY:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0},outline:{outlineWidth:!0,outlineStyle:!0,outlineColor:!0}},i={isUnitlessNumber:o,shorthandPropertyExpansions:a};e.exports=i},function(e,t,n){"use strict";function o(e){return r(e.replace(a,"ms-"))}var r=n(94),a=/^-ms-/;e.exports=o},function(e,t){"use strict";function n(e){return e.replace(o,function(e,t){return t.toUpperCase()})}var o=/-(.)/g;e.exports=n},function(e,t,n){"use strict";function o(e,t,n,o){var r=null==t||"boolean"==typeof t||""===t;if(r)return"";var i=isNaN(t);if(o||i||0===t||a.hasOwnProperty(e)&&a[e])return""+t;if("string"==typeof t){t=t.trim()}return t+"px"}var r=n(92),a=(n(8),r.isUnitlessNumber);e.exports=o},function(e,t,n){"use strict";function o(e){return r(e).replace(a,"-ms-")}var r=n(97),a=/^ms-/;e.exports=o},function(e,t){"use strict";function n(e){return e.replace(o,"-$1").toLowerCase()}var o=/([A-Z])/g;e.exports=n},function(e,t){"use strict";function n(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}e.exports=n},function(e,t,n){"use strict";function o(e){return!!l.hasOwnProperty(e)||!u.hasOwnProperty(e)&&(s.test(e)?(l[e]=!0,!0):(u[e]=!0,!1))}function r(e,t){return null==t||e.hasBooleanValue&&!t||e.hasNumericValue&&isNaN(t)||e.hasPositiveNumericValue&&t<1||e.hasOverloadedBooleanValue&&t===!1}var a=n(36),i=(n(34),n(62),n(100)),s=(n(8),new RegExp("^["+a.ATTRIBUTE_NAME_START_CHAR+"]["+a.ATTRIBUTE_NAME_CHAR+"]*$")),u={},l={},c={createMarkupForID:function(e){return a.ID_ATTRIBUTE_NAME+"="+i(e)},setAttributeForID:function(e,t){e.setAttribute(a.ID_ATTRIBUTE_NAME,t)},createMarkupForRoot:function(){return a.ROOT_ATTRIBUTE_NAME+'=""'},setAttributeForRoot:function(e){e.setAttribute(a.ROOT_ATTRIBUTE_NAME,"")},createMarkupForProperty:function(e,t){var n=a.properties.hasOwnProperty(e)?a.properties[e]:null;if(n){if(r(n,t))return"";var o=n.attributeName;return n.hasBooleanValue||n.hasOverloadedBooleanValue&&t===!0?o+'=""':o+"="+i(t)}return a.isCustomAttribute(e)?null==t?"":e+"="+i(t):null},createMarkupForCustomAttribute:function(e,t){return o(e)&&null!=t?e+"="+i(t):""},setValueForProperty:function(e,t,n){var o=a.properties.hasOwnProperty(t)?a.properties[t]:null;if(o){var i=o.mutationMethod;if(i)i(e,n);else{if(r(o,n))return void this.deleteValueForProperty(e,t);if(o.mustUseProperty)e[o.propertyName]=n;else{var s=o.attributeName,u=o.attributeNamespace;u?e.setAttributeNS(u,s,""+n):o.hasBooleanValue||o.hasOverloadedBooleanValue&&n===!0?e.setAttribute(s,""):e.setAttribute(s,""+n)}}}else if(a.isCustomAttribute(t))return void c.setValueForAttribute(e,t,n)},setValueForAttribute:function(e,t,n){if(o(t)){null==n?e.removeAttribute(t):e.setAttribute(t,""+n)}},deleteValueForAttribute:function(e,t){e.removeAttribute(t)},deleteValueForProperty:function(e,t){var n=a.properties.hasOwnProperty(t)?a.properties[t]:null;if(n){var o=n.mutationMethod;if(o)o(e,void 0);else if(n.mustUseProperty){var r=n.propertyName;n.hasBooleanValue?e[r]=!1:e[r]=""}else e.removeAttribute(n.attributeName)}else a.isCustomAttribute(t)&&e.removeAttribute(t)}};e.exports=c},function(e,t,n){"use strict";function o(e){return'"'+r(e)+'"'}var r=n(82);e.exports=o},function(e,t,n){"use strict";function o(e){return Object.prototype.hasOwnProperty.call(e,m)||(e[m]=f++,p[e[m]]={}),p[e[m]]}var r,a=n(4),i=n(43),s=n(102),u=n(72),l=n(103),c=n(66),p={},d=!1,f=0,h={topAbort:"abort",topAnimationEnd:l("animationend")||"animationend",topAnimationIteration:l("animationiteration")||"animationiteration",topAnimationStart:l("animationstart")||"animationstart",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:l("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},m="_reactListenersID"+String(Math.random()).slice(2),v=a({},s,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(v.handleTopLevel),v.ReactEventListener=e}},setEnabled:function(e){v.ReactEventListener&&v.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!v.ReactEventListener||!v.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var n=t,r=o(n),a=i.registrationNameDependencies[e],s=0;s<a.length;s++){var u=a[s];r.hasOwnProperty(u)&&r[u]||("topWheel"===u?c("wheel")?v.ReactEventListener.trapBubbledEvent("topWheel","wheel",n):c("mousewheel")?v.ReactEventListener.trapBubbledEvent("topWheel","mousewheel",n):v.ReactEventListener.trapBubbledEvent("topWheel","DOMMouseScroll",n):"topScroll"===u?c("scroll",!0)?v.ReactEventListener.trapCapturedEvent("topScroll","scroll",n):v.ReactEventListener.trapBubbledEvent("topScroll","scroll",v.ReactEventListener.WINDOW_HANDLE):"topFocus"===u||"topBlur"===u?(c("focus",!0)?(v.ReactEventListener.trapCapturedEvent("topFocus","focus",n),v.ReactEventListener.trapCapturedEvent("topBlur","blur",n)):c("focusin")&&(v.ReactEventListener.trapBubbledEvent("topFocus","focusin",n),v.ReactEventListener.trapBubbledEvent("topBlur","focusout",n)),r.topBlur=!0,r.topFocus=!0):h.hasOwnProperty(u)&&v.ReactEventListener.trapBubbledEvent(u,h[u],n),r[u]=!0)}},trapBubbledEvent:function(e,t,n){return v.ReactEventListener.trapBubbledEvent(e,t,n)},trapCapturedEvent:function(e,t,n){return v.ReactEventListener.trapCapturedEvent(e,t,n)},supportsEventPageXY:function(){if(!document.createEvent)return!1;var e=document.createEvent("MouseEvent");return null!=e&&"pageX"in e},ensureScrollValueMonitoring:function(){if(void 0===r&&(r=v.supportsEventPageXY()),!r&&!d){var e=u.refreshScrollValues;v.ReactEventListener.monitorScrollValue(e),d=!0}}});e.exports=v},function(e,t,n){"use strict";function o(e){r.enqueueEvents(e),r.processEventQueue(!1)}var r=n(42),a={handleTopLevel:function(e,t,n,a){var i=r.extractEvents(e,t,n,a);o(i)}};e.exports=a},function(e,t,n){"use strict";function o(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function r(e){if(s[e])return s[e];if(!i[e])return e;var t=i[e];
for(var n in t)if(t.hasOwnProperty(n)&&n in u)return s[e]=t[n];return""}var a=n(48),i={animationend:o("Animation","AnimationEnd"),animationiteration:o("Animation","AnimationIteration"),animationstart:o("Animation","AnimationStart"),transitionend:o("Transition","TransitionEnd")},s={},u={};a.canUseDOM&&(u=document.createElement("div").style,"AnimationEvent"in window||(delete i.animationend.animation,delete i.animationiteration.animation,delete i.animationstart.animation),"TransitionEvent"in window||delete i.transitionend.transition),e.exports=r},function(e,t,n){"use strict";function o(){this._rootNodeID&&d.updateWrapper(this)}function r(e){var t="checkbox"===e.type||"radio"===e.type;return t?null!=e.checked:null!=e.value}function a(e){var t=this._currentElement.props,n=l.executeOnChange(t,e);p.asap(o,this);var r=t.name;if("radio"===t.type&&null!=r){for(var a=c.getNodeFromInstance(this),s=a;s.parentNode;)s=s.parentNode;for(var u=s.querySelectorAll("input[name="+JSON.stringify(""+r)+'][type="radio"]'),d=0;d<u.length;d++){var f=u[d];if(f!==a&&f.form===a.form){var h=c.getInstanceFromNode(f);h?void 0:i("90"),p.asap(o,h)}}}return n}var i=n(35),s=n(4),u=n(99),l=n(105),c=n(34),p=n(56),d=(n(12),n(8),{getHostProps:function(e,t){var n=l.getValue(t),o=l.getChecked(t),r=s({type:void 0,step:void 0,min:void 0,max:void 0},t,{defaultChecked:void 0,defaultValue:void 0,value:null!=n?n:e._wrapperState.initialValue,checked:null!=o?o:e._wrapperState.initialChecked,onChange:e._wrapperState.onChange});return r},mountWrapper:function(e,t){var n=t.defaultValue;e._wrapperState={initialChecked:null!=t.checked?t.checked:t.defaultChecked,initialValue:null!=t.value?t.value:n,listeners:null,onChange:a.bind(e),controlled:r(t)}},updateWrapper:function(e){var t=e._currentElement.props,n=t.checked;null!=n&&u.setValueForProperty(c.getNodeFromInstance(e),"checked",n||!1);var o=c.getNodeFromInstance(e),r=l.getValue(t);if(null!=r)if(0===r&&""===o.value)o.value="0";else if("number"===t.type){var a=parseFloat(o.value,10)||0;(r!=a||r==a&&o.value!=r)&&(o.value=""+r)}else o.value!==""+r&&(o.value=""+r);else null==t.value&&null!=t.defaultValue&&o.defaultValue!==""+t.defaultValue&&(o.defaultValue=""+t.defaultValue),null==t.checked&&null!=t.defaultChecked&&(o.defaultChecked=!!t.defaultChecked)},postMountWrapper:function(e){var t=e._currentElement.props,n=c.getNodeFromInstance(e);switch(t.type){case"submit":case"reset":break;case"color":case"date":case"datetime":case"datetime-local":case"month":case"time":case"week":n.value="",n.value=n.defaultValue;break;default:n.value=n.value}var o=n.name;""!==o&&(n.name=""),n.defaultChecked=!n.defaultChecked,n.defaultChecked=!n.defaultChecked,""!==o&&(n.name=o)}});e.exports=d},function(e,t,n){"use strict";function o(e){null!=e.checkedLink&&null!=e.valueLink?s("87"):void 0}function r(e){o(e),null!=e.value||null!=e.onChange?s("88"):void 0}function a(e){o(e),null!=e.checked||null!=e.onChange?s("89"):void 0}function i(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}var s=n(35),u=n(106),l=n(24),c=n(3),p=l(c.isValidElement),d=(n(12),n(8),{button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0}),f={value:function(e,t,n){return!e[t]||d[e.type]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")},checked:function(e,t,n){return!e[t]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")},onChange:p.func},h={},m={checkPropTypes:function(e,t,n){for(var o in f){if(f.hasOwnProperty(o))var r=f[o](t,o,e,"prop",null,u);if(r instanceof Error&&!(r.message in h)){h[r.message]=!0;i(n)}}},getValue:function(e){return e.valueLink?(r(e),e.valueLink.value):e.value},getChecked:function(e){return e.checkedLink?(a(e),e.checkedLink.value):e.checked},executeOnChange:function(e,t){return e.valueLink?(r(e),e.valueLink.requestChange(t.target.value)):e.checkedLink?(a(e),e.checkedLink.requestChange(t.target.checked)):e.onChange?e.onChange.call(void 0,t):void 0}};e.exports=m},function(e,t){"use strict";var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=n},function(e,t,n){"use strict";function o(e){var t="";return a.Children.forEach(e,function(e){null!=e&&("string"==typeof e||"number"==typeof e?t+=e:u||(u=!0))}),t}var r=n(4),a=n(3),i=n(34),s=n(108),u=(n(8),!1),l={mountWrapper:function(e,t,n){var r=null;if(null!=n){var a=n;"optgroup"===a._tag&&(a=a._hostParent),null!=a&&"select"===a._tag&&(r=s.getSelectValueContext(a))}var i=null;if(null!=r){var u;if(u=null!=t.value?t.value+"":o(t.children),i=!1,Array.isArray(r)){for(var l=0;l<r.length;l++)if(""+r[l]===u){i=!0;break}}else i=""+r===u}e._wrapperState={selected:i}},postMountWrapper:function(e){var t=e._currentElement.props;if(null!=t.value){var n=i.getNodeFromInstance(e);n.setAttribute("value",t.value)}},getHostProps:function(e,t){var n=r({selected:void 0,children:void 0},t);null!=e._wrapperState.selected&&(n.selected=e._wrapperState.selected);var a=o(t.children);return a&&(n.children=a),n}};e.exports=l},function(e,t,n){"use strict";function o(){if(this._rootNodeID&&this._wrapperState.pendingUpdate){this._wrapperState.pendingUpdate=!1;var e=this._currentElement.props,t=s.getValue(e);null!=t&&r(this,Boolean(e.multiple),t)}}function r(e,t,n){var o,r,a=u.getNodeFromInstance(e).options;if(t){for(o={},r=0;r<n.length;r++)o[""+n[r]]=!0;for(r=0;r<a.length;r++){var i=o.hasOwnProperty(a[r].value);a[r].selected!==i&&(a[r].selected=i)}}else{for(o=""+n,r=0;r<a.length;r++)if(a[r].value===o)return void(a[r].selected=!0);a.length&&(a[0].selected=!0)}}function a(e){var t=this._currentElement.props,n=s.executeOnChange(t,e);return this._rootNodeID&&(this._wrapperState.pendingUpdate=!0),l.asap(o,this),n}var i=n(4),s=n(105),u=n(34),l=n(56),c=(n(8),!1),p={getHostProps:function(e,t){return i({},t,{onChange:e._wrapperState.onChange,value:void 0})},mountWrapper:function(e,t){var n=s.getValue(t);e._wrapperState={pendingUpdate:!1,initialValue:null!=n?n:t.defaultValue,listeners:null,onChange:a.bind(e),wasMultiple:Boolean(t.multiple)},void 0===t.value||void 0===t.defaultValue||c||(c=!0)},getSelectValueContext:function(e){return e._wrapperState.initialValue},postUpdateWrapper:function(e){var t=e._currentElement.props;e._wrapperState.initialValue=void 0;var n=e._wrapperState.wasMultiple;e._wrapperState.wasMultiple=Boolean(t.multiple);var o=s.getValue(t);null!=o?(e._wrapperState.pendingUpdate=!1,r(e,Boolean(t.multiple),o)):n!==Boolean(t.multiple)&&(null!=t.defaultValue?r(e,Boolean(t.multiple),t.defaultValue):r(e,Boolean(t.multiple),t.multiple?[]:""))}};e.exports=p},function(e,t,n){"use strict";function o(){this._rootNodeID&&c.updateWrapper(this)}function r(e){var t=this._currentElement.props,n=s.executeOnChange(t,e);return l.asap(o,this),n}var a=n(35),i=n(4),s=n(105),u=n(34),l=n(56),c=(n(12),n(8),{getHostProps:function(e,t){null!=t.dangerouslySetInnerHTML?a("91"):void 0;var n=i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue,onChange:e._wrapperState.onChange});return n},mountWrapper:function(e,t){var n=s.getValue(t),o=n;if(null==n){var i=t.defaultValue,u=t.children;null!=u&&(null!=i?a("92"):void 0,Array.isArray(u)&&(u.length<=1?void 0:a("93"),u=u[0]),i=""+u),null==i&&(i=""),o=i}e._wrapperState={initialValue:""+o,listeners:null,onChange:r.bind(e)}},updateWrapper:function(e){var t=e._currentElement.props,n=u.getNodeFromInstance(e),o=s.getValue(t);if(null!=o){var r=""+o;r!==n.value&&(n.value=r),null==t.defaultValue&&(n.defaultValue=r)}null!=t.defaultValue&&(n.defaultValue=t.defaultValue)},postMountWrapper:function(e){var t=u.getNodeFromInstance(e),n=t.textContent;n===e._wrapperState.initialValue&&(t.value=n)}});e.exports=c},function(e,t,n){"use strict";function o(e,t,n){return{type:"INSERT_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:n,afterNode:t}}function r(e,t,n){return{type:"MOVE_EXISTING",content:null,fromIndex:e._mountIndex,fromNode:d.getHostNode(e),toIndex:n,afterNode:t}}function a(e,t){return{type:"REMOVE_NODE",content:null,fromIndex:e._mountIndex,fromNode:t,toIndex:null,afterNode:null}}function i(e){return{type:"SET_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function s(e){return{type:"TEXT_CONTENT",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function u(e,t){return t&&(e=e||[],e.push(t)),e}function l(e,t){p.processChildrenUpdates(e,t)}var c=n(35),p=n(111),d=(n(112),n(62),n(17),n(59)),f=n(113),h=(n(9),n(128)),m=(n(12),{Mixin:{_reconcilerInstantiateChildren:function(e,t,n){return f.instantiateChildren(e,t,n)},_reconcilerUpdateChildren:function(e,t,n,o,r,a){var i,s=0;return i=h(t,s),f.updateChildren(e,i,n,o,r,this,this._hostContainerInfo,a,s),i},mountChildren:function(e,t,n){var o=this._reconcilerInstantiateChildren(e,t,n);this._renderedChildren=o;var r=[],a=0;for(var i in o)if(o.hasOwnProperty(i)){var s=o[i],u=0,l=d.mountComponent(s,t,this,this._hostContainerInfo,n,u);s._mountIndex=a++,r.push(l)}return r},updateTextContent:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&c("118");var o=[s(e)];l(this,o)},updateMarkup:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&c("118");var o=[i(e)];l(this,o)},updateChildren:function(e,t,n){this._updateChildren(e,t,n)},_updateChildren:function(e,t,n){var o=this._renderedChildren,r={},a=[],i=this._reconcilerUpdateChildren(o,e,a,r,t,n);if(i||o){var s,c=null,p=0,f=0,h=0,m=null;for(s in i)if(i.hasOwnProperty(s)){var v=o&&o[s],g=i[s];v===g?(c=u(c,this.moveChild(v,m,p,f)),f=Math.max(v._mountIndex,f),v._mountIndex=p):(v&&(f=Math.max(v._mountIndex,f)),c=u(c,this._mountChildAtIndex(g,a[h],m,p,t,n)),h++),p++,m=d.getHostNode(g)}for(s in r)r.hasOwnProperty(s)&&(c=u(c,this._unmountChild(o[s],r[s])));c&&l(this,c),this._renderedChildren=i}},unmountChildren:function(e){var t=this._renderedChildren;f.unmountChildren(t,e),this._renderedChildren=null},moveChild:function(e,t,n,o){if(e._mountIndex<o)return r(e,t,n)},createChild:function(e,t,n){return o(n,t,e._mountIndex)},removeChild:function(e,t){return a(e,t)},_mountChildAtIndex:function(e,t,n,o,r,a){return e._mountIndex=o,this.createChild(e,n,t)},_unmountChild:function(e,t){var n=this.removeChild(e,t);return e._mountIndex=null,n}}});e.exports=m},function(e,t,n){"use strict";var o=n(35),r=(n(12),!1),a={replaceNodeWithMarkup:null,processChildrenUpdates:null,injection:{injectEnvironment:function(e){r?o("104"):void 0,a.replaceNodeWithMarkup=e.replaceNodeWithMarkup,a.processChildrenUpdates=e.processChildrenUpdates,r=!0}}};e.exports=a},function(e,t){"use strict";var n={remove:function(e){e._reactInternalInstance=void 0},get:function(e){return e._reactInternalInstance},has:function(e){return void 0!==e._reactInternalInstance},set:function(e,t){e._reactInternalInstance=t}};e.exports=n},function(e,t,n){(function(t){"use strict";function o(e,t,n,o){var r=void 0===e[n];null!=t&&r&&(e[n]=a(t,!0))}var r=n(59),a=n(115),i=(n(123),n(119)),s=n(124),u=(n(8),{instantiateChildren:function(e,t,n,r){if(null==e)return null;var a={};return s(e,o,a),a},updateChildren:function(e,t,n,o,s,u,l,c,p){if(t||e){var d,f;for(d in t)if(t.hasOwnProperty(d)){f=e&&e[d];var h=f&&f._currentElement,m=t[d];if(null!=f&&i(h,m))r.receiveComponent(f,m,s,c),t[d]=f;else{f&&(o[d]=r.getHostNode(f),r.unmountComponent(f,!1));var v=a(m,!0);t[d]=v;var g=r.mountComponent(v,s,u,l,c,p);n.push(g)}}for(d in e)!e.hasOwnProperty(d)||t&&t.hasOwnProperty(d)||(f=e[d],o[d]=r.getHostNode(f),r.unmountComponent(f,!1))}},unmountChildren:function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];r.unmountComponent(o,t)}}});e.exports=u}).call(t,n(114))},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function r(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function a(e){if(p===clearTimeout)return clearTimeout(e);if((p===o||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(e);try{return p(e)}catch(t){try{return p.call(null,e)}catch(t){return p.call(this,e)}}}function i(){m&&f&&(m=!1,f.length?h=f.concat(h):v=-1,h.length&&s())}function s(){if(!m){var e=r(i);m=!0;for(var t=h.length;t;){for(f=h,h=[];++v<t;)f&&f[v].run();v=-1,t=h.length}f=null,m=!1,a(e)}}function u(e,t){this.fun=e,this.array=t}function l(){}var c,p,d=e.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:n}catch(e){c=n}try{p="function"==typeof clearTimeout?clearTimeout:o}catch(e){p=o}}();var f,h=[],m=!1,v=-1;d.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];h.push(new u(e,t)),1!==h.length||m||r(s)},u.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=l,d.addListener=l,d.once=l,d.off=l,d.removeListener=l,d.removeAllListeners=l,d.emit=l,d.prependListener=l,d.prependOnceListener=l,d.listeners=function(e){return[]},d.binding=function(e){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(e){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},function(e,t,n){"use strict";function o(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}function r(e){return"function"==typeof e&&"undefined"!=typeof e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function a(e,t){var n;if(null===e||e===!1)n=l.create(a);else if("object"==typeof e){var s=e,u=s.type;if("function"!=typeof u&&"string"!=typeof u){var d="";d+=o(s._owner),i("130",null==u?u:typeof u,d)}"string"==typeof s.type?n=c.createInternalComponent(s):r(s.type)?(n=new s.type(s),n.getHostNode||(n.getHostNode=n.getNativeNode)):n=new p(s)}else"string"==typeof e||"number"==typeof e?n=c.createInstanceForText(e):i("131",typeof e);return n._mountIndex=0,n._mountImage=null,n}var i=n(35),s=n(4),u=n(116),l=n(120),c=n(121),p=(n(122),n(12),n(8),function(e){this.construct(e)});s(p.prototype,u,{_instantiateReactComponent:a}),e.exports=a},function(e,t,n){"use strict";function o(e){}function r(e,t){}function a(e){return!(!e.prototype||!e.prototype.isReactComponent)}function i(e){return!(!e.prototype||!e.prototype.isPureReactComponent)}var s=n(35),u=n(4),l=n(3),c=n(111),p=n(17),d=n(45),f=n(112),h=(n(62),n(117)),m=n(59),v=n(11),g=(n(12),n(118)),y=n(119),b=(n(8),{ImpureClass:0,PureClass:1,StatelessFunctional:2});o.prototype.render=function(){var e=f.get(this)._currentElement.type,t=e(this.props,this.context,this.updater);return r(e,t),t};var E=1,w={construct:function(e){this._currentElement=e,this._rootNodeID=0,this._compositeType=null,this._instance=null,this._hostParent=null,this._hostContainerInfo=null,this._updateBatchNumber=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedNodeType=null,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null,this._calledComponentWillUnmount=!1},mountComponent:function(e,t,n,u){this._context=u,this._mountOrder=E++,this._hostParent=t,this._hostContainerInfo=n;var c,p=this._currentElement.props,d=this._processContext(u),h=this._currentElement.type,m=e.getUpdateQueue(),g=a(h),y=this._constructComponent(g,p,d,m);g||null!=y&&null!=y.render?i(h)?this._compositeType=b.PureClass:this._compositeType=b.ImpureClass:(c=y,r(h,c),null===y||y===!1||l.isValidElement(y)?void 0:s("105",h.displayName||h.name||"Component"),y=new o(h),this._compositeType=b.StatelessFunctional);y.props=p,y.context=d,y.refs=v,y.updater=m,this._instance=y,f.set(y,this);var w=y.state;void 0===w&&(y.state=w=null),"object"!=typeof w||Array.isArray(w)?s("106",this.getName()||"ReactCompositeComponent"):void 0,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var x;return x=y.unstable_handleError?this.performInitialMountWithErrorHandling(c,t,n,e,u):this.performInitialMount(c,t,n,e,u),y.componentDidMount&&e.getReactMountReady().enqueue(y.componentDidMount,y),x},_constructComponent:function(e,t,n,o){return this._constructComponentWithoutOwner(e,t,n,o)},_constructComponentWithoutOwner:function(e,t,n,o){var r=this._currentElement.type;return e?new r(t,n,o):r(t,n,o)},performInitialMountWithErrorHandling:function(e,t,n,o,r){var a,i=o.checkpoint();try{a=this.performInitialMount(e,t,n,o,r)}catch(s){o.rollback(i),this._instance.unstable_handleError(s),this._pendingStateQueue&&(this._instance.state=this._processPendingState(this._instance.props,this._instance.context)),i=o.checkpoint(),this._renderedComponent.unmountComponent(!0),o.rollback(i),a=this.performInitialMount(e,t,n,o,r)}return a},performInitialMount:function(e,t,n,o,r){var a=this._instance,i=0;a.componentWillMount&&(a.componentWillMount(),this._pendingStateQueue&&(a.state=this._processPendingState(a.props,a.context))),void 0===e&&(e=this._renderValidatedComponent());var s=h.getType(e);this._renderedNodeType=s;var u=this._instantiateReactComponent(e,s!==h.EMPTY);this._renderedComponent=u;var l=m.mountComponent(u,o,t,n,this._processChildContext(r),i);return l},getHostNode:function(){return m.getHostNode(this._renderedComponent)},unmountComponent:function(e){if(this._renderedComponent){var t=this._instance;if(t.componentWillUnmount&&!t._calledComponentWillUnmount)if(t._calledComponentWillUnmount=!0,e){var n=this.getName()+".componentWillUnmount()";d.invokeGuardedCallback(n,t.componentWillUnmount.bind(t))}else t.componentWillUnmount();this._renderedComponent&&(m.unmountComponent(this._renderedComponent,e),this._renderedNodeType=null,this._renderedComponent=null,this._instance=null),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=0,this._topLevelWrapper=null,f.remove(t)}},_maskContext:function(e){var t=this._currentElement.type,n=t.contextTypes;if(!n)return v;var o={};for(var r in n)o[r]=e[r];return o},_processContext:function(e){var t=this._maskContext(e);return t},_processChildContext:function(e){var t,n=this._currentElement.type,o=this._instance;if(o.getChildContext&&(t=o.getChildContext()),t){"object"!=typeof n.childContextTypes?s("107",this.getName()||"ReactCompositeComponent"):void 0;for(var r in t)r in n.childContextTypes?void 0:s("108",this.getName()||"ReactCompositeComponent",r);return u({},e,t)}return e},_checkContextTypes:function(e,t,n){},receiveComponent:function(e,t,n){var o=this._currentElement,r=this._context;this._pendingElement=null,this.updateComponent(t,o,e,r,n)},performUpdateIfNecessary:function(e){null!=this._pendingElement?m.receiveComponent(this,this._pendingElement,e,this._context):null!==this._pendingStateQueue||this._pendingForceUpdate?this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context):this._updateBatchNumber=null},updateComponent:function(e,t,n,o,r){var a=this._instance;null==a?s("136",this.getName()||"ReactCompositeComponent"):void 0;var i,u=!1;this._context===r?i=a.context:(i=this._processContext(r),u=!0);var l=t.props,c=n.props;t!==n&&(u=!0),u&&a.componentWillReceiveProps&&a.componentWillReceiveProps(c,i);var p=this._processPendingState(c,i),d=!0;this._pendingForceUpdate||(a.shouldComponentUpdate?d=a.shouldComponentUpdate(c,p,i):this._compositeType===b.PureClass&&(d=!g(l,c)||!g(a.state,p))),this._updateBatchNumber=null,d?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,c,p,i,e,r)):(this._currentElement=n,this._context=r,a.props=c,a.state=p,a.context=i)},_processPendingState:function(e,t){var n=this._instance,o=this._pendingStateQueue,r=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!o)return n.state;if(r&&1===o.length)return o[0];for(var a=u({},r?o[0]:n.state),i=r?1:0;i<o.length;i++){var s=o[i];u(a,"function"==typeof s?s.call(n,a,e,t):s)}return a},_performComponentUpdate:function(e,t,n,o,r,a){var i,s,u,l=this._instance,c=Boolean(l.componentDidUpdate);c&&(i=l.props,s=l.state,u=l.context),l.componentWillUpdate&&l.componentWillUpdate(t,n,o),this._currentElement=e,this._context=a,l.props=t,l.state=n,l.context=o,this._updateRenderedComponent(r,a),c&&r.getReactMountReady().enqueue(l.componentDidUpdate.bind(l,i,s,u),l)},_updateRenderedComponent:function(e,t){var n=this._renderedComponent,o=n._currentElement,r=this._renderValidatedComponent(),a=0;if(y(o,r))m.receiveComponent(n,r,e,this._processChildContext(t));else{var i=m.getHostNode(n);m.unmountComponent(n,!1);var s=h.getType(r);this._renderedNodeType=s;var u=this._instantiateReactComponent(r,s!==h.EMPTY);this._renderedComponent=u;var l=m.mountComponent(u,e,this._hostParent,this._hostContainerInfo,this._processChildContext(t),a);this._replaceNodeWithMarkup(i,l,n)}},_replaceNodeWithMarkup:function(e,t,n){c.replaceNodeWithMarkup(e,t,n)},_renderValidatedComponentWithoutOwnerOrContext:function(){var e,t=this._instance;return e=t.render()},_renderValidatedComponent:function(){var e;if(this._compositeType!==b.StatelessFunctional){p.current=this;try{e=this._renderValidatedComponentWithoutOwnerOrContext()}finally{p.current=null}}else e=this._renderValidatedComponentWithoutOwnerOrContext();return null===e||e===!1||l.isValidElement(e)?void 0:s("109",this.getName()||"ReactCompositeComponent"),e},attachRef:function(e,t){var n=this.getPublicInstance();null==n?s("110"):void 0;var o=t.getPublicInstance(),r=n.refs===v?n.refs={}:n.refs;r[e]=o},detachRef:function(e){var t=this.getPublicInstance().refs;delete t[e]},getName:function(){var e=this._currentElement.type,t=this._instance&&this._instance.constructor;return e.displayName||t&&t.displayName||e.name||t&&t.name||null},getPublicInstance:function(){var e=this._instance;return this._compositeType===b.StatelessFunctional?null:e},_instantiateReactComponent:null};e.exports=w},function(e,t,n){"use strict";var o=n(35),r=n(3),a=(n(12),{HOST:0,COMPOSITE:1,EMPTY:2,getType:function(e){return null===e||e===!1?a.EMPTY:r.isValidElement(e)?"function"==typeof e.type?a.COMPOSITE:a.HOST:void o("26",e)}});e.exports=a},function(e,t){"use strict";function n(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function o(e,t){if(n(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var i=0;i<o.length;i++)if(!r.call(t,o[i])||!n(e[o[i]],t[o[i]]))return!1;return!0}var r=Object.prototype.hasOwnProperty;e.exports=o},function(e,t){"use strict";function n(e,t){var n=null===e||e===!1,o=null===t||t===!1;if(n||o)return n===o;var r=typeof e,a=typeof t;return"string"===r||"number"===r?"string"===a||"number"===a:"object"===a&&e.type===t.type&&e.key===t.key}e.exports=n},function(e,t){"use strict";var n,o={injectEmptyComponentFactory:function(e){n=e}},r={create:function(e){return n(e)}};r.injection=o,e.exports=r},function(e,t,n){"use strict";function o(e){return s?void 0:i("111",e.type),new s(e)}function r(e){return new u(e)}function a(e){return e instanceof u}var i=n(35),s=(n(12),null),u=null,l={injectGenericComponentClass:function(e){s=e},injectTextComponentClass:function(e){u=e}},c={createInternalComponent:o,createInstanceForText:r,isTextComponent:a,injection:l};e.exports=c},function(e,t){"use strict";function n(){return o++}var o=1;e.exports=n},function(e,t){"use strict";function n(e){var t=/[=:]/g,n={"=":"=0",":":"=2"},o=(""+e).replace(t,function(e){return n[e]});return"$"+o}function o(e){var t=/(=0|=2)/g,n={"=0":"=","=2":":"},o="."===e[0]&&"$"===e[1]?e.substring(2):e.substring(1);return(""+o).replace(t,function(e){return n[e]})}var r={escape:n,unescape:o};e.exports=r},function(e,t,n){"use strict";function o(e,t){return e&&"object"==typeof e&&null!=e.key?l.escape(e.key):t.toString(36)}function r(e,t,n,a){var d=typeof e;if("undefined"!==d&&"boolean"!==d||(e=null),null===e||"string"===d||"number"===d||"object"===d&&e.$$typeof===s)return n(a,e,""===t?c+o(e,0):t),1;var f,h,m=0,v=""===t?c:t+p;if(Array.isArray(e))for(var g=0;g<e.length;g++)f=e[g],h=v+o(f,g),m+=r(f,h,n,a);else{var y=u(e);if(y){var b,E=y.call(e);if(y!==e.entries)for(var w=0;!(b=E.next()).done;)f=b.value,h=v+o(f,w++),m+=r(f,h,n,a);else for(;!(b=E.next()).done;){var x=b.value;x&&(f=x[1],h=v+l.escape(x[0])+p+o(f,0),m+=r(f,h,n,a))}}else if("object"===d){var C="",_=String(e);i("31","[object Object]"===_?"object with keys {"+Object.keys(e).join(", ")+"}":_,C)}}return m}function a(e,t,n){return null==e?0:r(e,"",t,n)}var i=n(35),s=(n(17),n(125)),u=n(126),l=(n(12),n(123)),c=(n(8),"."),p=":";e.exports=a},function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=n},function(e,t){"use strict";function n(e){var t=e&&(o&&e[o]||e[r]);if("function"==typeof t)return t}var o="function"==typeof Symbol&&Symbol.iterator,r="@@iterator";e.exports=n},function(e,t,n){"use strict";function o(e){var t=Function.prototype.toString,n=Object.prototype.hasOwnProperty,o=RegExp("^"+t.call(n).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");try{var r=t.call(e);return o.test(r)}catch(e){return!1}}function r(e){var t=l(e);if(t){var n=t.childIDs;c(e),n.forEach(r)}}function a(e,t,n){return"\n in "+(e||"Unknown")+(t?" (at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+")":n?" (created by "+n+")":"")}function i(e){return null==e?"#empty":"string"==typeof e||"number"==typeof e?"#text":"string"==typeof e.type?e.type:e.type.displayName||e.type.name||"Unknown"}function s(e){var t,n=T.getDisplayName(e),o=T.getElement(e),r=T.getOwnerID(e);return r&&(t=T.getDisplayName(r)),a(n,o&&o._source,t)}var u,l,c,p,d,f,h,m=n(6),v=n(17),g=(n(12),n(8),"function"==typeof Array.from&&"function"==typeof Map&&o(Map)&&null!=Map.prototype&&"function"==typeof Map.prototype.keys&&o(Map.prototype.keys)&&"function"==typeof Set&&o(Set)&&null!=Set.prototype&&"function"==typeof Set.prototype.keys&&o(Set.prototype.keys));if(g){var y=new Map,b=new Set;u=function(e,t){y.set(e,t)},l=function(e){return y.get(e)},c=function(e){y.delete(e)},p=function(){return Array.from(y.keys())},d=function(e){b.add(e)},f=function(e){b.delete(e)},h=function(){return Array.from(b.keys())}}else{var E={},w={},x=function(e){return"."+e},C=function(e){return parseInt(e.substr(1),10)};u=function(e,t){var n=x(e);E[n]=t},l=function(e){var t=x(e);return E[t]},c=function(e){var t=x(e);delete E[t]},p=function(){return Object.keys(E).map(C)},d=function(e){var t=x(e);w[t]=!0},f=function(e){var t=x(e);delete w[t]},h=function(){return Object.keys(w).map(C)}}var _=[],T={onSetChildren:function(e,t){var n=l(e);n?void 0:m("144"),n.childIDs=t;for(var o=0;o<t.length;o++){var r=t[o],a=l(r);a?void 0:m("140"),null==a.childIDs&&"object"==typeof a.element&&null!=a.element?m("141"):void 0,a.isMounted?void 0:m("71"),null==a.parentID&&(a.parentID=e),a.parentID!==e?m("142",r,a.parentID,e):void 0}},onBeforeMountComponent:function(e,t,n){var o={element:t,parentID:n,text:null,childIDs:[],isMounted:!1,updateCount:0};u(e,o)},onBeforeUpdateComponent:function(e,t){var n=l(e);n&&n.isMounted&&(n.element=t)},onMountComponent:function(e){var t=l(e);t?void 0:m("144"),t.isMounted=!0;var n=0===t.parentID;n&&d(e)},onUpdateComponent:function(e){var t=l(e);t&&t.isMounted&&t.updateCount++},onUnmountComponent:function(e){var t=l(e);if(t){t.isMounted=!1;var n=0===t.parentID;n&&f(e)}_.push(e)},purgeUnmountedComponents:function(){if(!T._preventPurging){for(var e=0;e<_.length;e++){var t=_[e];r(t)}_.length=0}},isMounted:function(e){var t=l(e);return!!t&&t.isMounted},getCurrentStackAddendum:function(e){var t="";if(e){var n=i(e),o=e._owner;t+=a(n,e._source,o&&o.getName())}var r=v.current,s=r&&r._debugID;return t+=T.getStackAddendumByID(s)},getStackAddendumByID:function(e){for(var t="";e;)t+=s(e),e=T.getParentID(e);return t},getChildIDs:function(e){var t=l(e);return t?t.childIDs:[]},getDisplayName:function(e){var t=T.getElement(e);return t?i(t):null},getElement:function(e){var t=l(e);return t?t.element:null},getOwnerID:function(e){var t=T.getElement(e);return t&&t._owner?t._owner._debugID:null},getParentID:function(e){var t=l(e);return t?t.parentID:null},getSource:function(e){var t=l(e),n=t?t.element:null,o=null!=n?n._source:null;return o},getText:function(e){var t=T.getElement(e);return"string"==typeof t?t:"number"==typeof t?""+t:null},getUpdateCount:function(e){var t=l(e);return t?t.updateCount:0},getRootIDs:h,getRegisteredIDs:p,pushNonStandardWarningStack:function(e,t){if("function"==typeof console.reactStack){var n=[],o=v.current,r=o&&o._debugID;try{for(e&&n.push({name:r?T.getDisplayName(r):null,fileName:t?t.fileName:null,lineNumber:t?t.lineNumber:null});r;){var a=T.getElement(r),i=T.getParentID(r),s=T.getOwnerID(r),u=s?T.getDisplayName(s):null,l=a&&a._source;n.push({name:u,fileName:l?l.fileName:null,lineNumber:l?l.lineNumber:null}),r=i}}catch(e){}console.reactStack(n)}},popNonStandardWarningStack:function(){"function"==typeof console.reactStackEnd&&console.reactStackEnd()}};e.exports=T},function(e,t,n){(function(t){"use strict";function o(e,t,n,o){if(e&&"object"==typeof e){var r=e,a=void 0===r[n];a&&null!=t&&(r[n]=t)}}function r(e,t){if(null==e)return e;var n={};return a(e,o,n),n}var a=(n(123),n(124));n(8);e.exports=r}).call(t,n(114))},function(e,t,n){"use strict";function o(e){this.reinitializeTransaction(),this.renderToStaticMarkup=e,this.useCreateElement=!1,this.updateQueue=new s(this)}var r=n(4),a=n(50),i=n(63),s=(n(62),n(130)),u=[],l={enqueue:function(){}},c={getTransactionWrappers:function(){return u},getReactMountReady:function(){return l},getUpdateQueue:function(){return this.updateQueue},destructor:function(){},checkpoint:function(){},rollback:function(){}};r(o.prototype,i,c),a.addPoolingTo(o),e.exports=o},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){}var a=n(131),i=(n(8),function(){function e(t){o(this,e),this.transaction=t}return e.prototype.isMounted=function(e){return!1},e.prototype.enqueueCallback=function(e,t,n){this.transaction.isInTransaction()&&a.enqueueCallback(e,t,n)},e.prototype.enqueueForceUpdate=function(e){this.transaction.isInTransaction()?a.enqueueForceUpdate(e):r(e,"forceUpdate")},e.prototype.enqueueReplaceState=function(e,t){this.transaction.isInTransaction()?a.enqueueReplaceState(e,t):r(e,"replaceState")},e.prototype.enqueueSetState=function(e,t){this.transaction.isInTransaction()?a.enqueueSetState(e,t):r(e,"setState")},e}());e.exports=i},function(e,t,n){"use strict";function o(e){u.enqueueUpdate(e)}function r(e){var t=typeof e;if("object"!==t)return t;var n=e.constructor&&e.constructor.name||t,o=Object.keys(e);return o.length>0&&o.length<20?n+" (keys: "+o.join(", ")+")":n}function a(e,t){var n=s.get(e);if(!n){return null}return n}var i=n(35),s=(n(17),n(112)),u=(n(62),n(56)),l=(n(12),n(8),{isMounted:function(e){var t=s.get(e);return!!t&&!!t._renderedComponent},enqueueCallback:function(e,t,n){l.validateCallback(t,n);var r=a(e);return r?(r._pendingCallbacks?r._pendingCallbacks.push(t):r._pendingCallbacks=[t],void o(r)):null},enqueueCallbackInternal:function(e,t){e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],o(e)},enqueueForceUpdate:function(e){var t=a(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,o(t))},enqueueReplaceState:function(e,t,n){var r=a(e,"replaceState");
r&&(r._pendingStateQueue=[t],r._pendingReplaceState=!0,void 0!==n&&null!==n&&(l.validateCallback(n,"replaceState"),r._pendingCallbacks?r._pendingCallbacks.push(n):r._pendingCallbacks=[n]),o(r))},enqueueSetState:function(e,t){var n=a(e,"setState");if(n){var r=n._pendingStateQueue||(n._pendingStateQueue=[]);r.push(t),o(n)}},enqueueElementInternal:function(e,t,n){e._pendingElement=t,e._context=n,o(e)},validateCallback:function(e,t){e&&"function"!=typeof e?i("122",t,r(e)):void 0}});e.exports=l},function(e,t,n){"use strict";var o=(n(4),n(9)),r=(n(8),o);e.exports=r},function(e,t,n){"use strict";var o=n(4),r=n(77),a=n(34),i=function(e){this._currentElement=null,this._hostNode=null,this._hostParent=null,this._hostContainerInfo=null,this._domID=0};o(i.prototype,{mountComponent:function(e,t,n,o){var i=n._idCounter++;this._domID=i,this._hostParent=t,this._hostContainerInfo=n;var s=" react-empty: "+this._domID+" ";if(e.useCreateElement){var u=n._ownerDocument,l=u.createComment(s);return a.precacheNode(this,l),r(l)}return e.renderToStaticMarkup?"":"<!--"+s+"-->"},receiveComponent:function(){},getHostNode:function(){return a.getNodeFromInstance(this)},unmountComponent:function(){a.uncacheNode(this)}}),e.exports=i},function(e,t,n){"use strict";function o(e,t){"_hostNode"in e?void 0:u("33"),"_hostNode"in t?void 0:u("33");for(var n=0,o=e;o;o=o._hostParent)n++;for(var r=0,a=t;a;a=a._hostParent)r++;for(;n-r>0;)e=e._hostParent,n--;for(;r-n>0;)t=t._hostParent,r--;for(var i=n;i--;){if(e===t)return e;e=e._hostParent,t=t._hostParent}return null}function r(e,t){"_hostNode"in e?void 0:u("35"),"_hostNode"in t?void 0:u("35");for(;t;){if(t===e)return!0;t=t._hostParent}return!1}function a(e){return"_hostNode"in e?void 0:u("36"),e._hostParent}function i(e,t,n){for(var o=[];e;)o.push(e),e=e._hostParent;var r;for(r=o.length;r-- >0;)t(o[r],"captured",n);for(r=0;r<o.length;r++)t(o[r],"bubbled",n)}function s(e,t,n,r,a){for(var i=e&&t?o(e,t):null,s=[];e&&e!==i;)s.push(e),e=e._hostParent;for(var u=[];t&&t!==i;)u.push(t),t=t._hostParent;var l;for(l=0;l<s.length;l++)n(s[l],"bubbled",r);for(l=u.length;l-- >0;)n(u[l],"captured",a)}var u=n(35);n(12);e.exports={isAncestor:r,getLowestCommonAncestor:o,getParentInstance:a,traverseTwoPhase:i,traverseEnterLeave:s}},function(e,t,n){"use strict";var o=n(35),r=n(4),a=n(76),i=n(77),s=n(34),u=n(82),l=(n(12),n(132),function(e){this._currentElement=e,this._stringText=""+e,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});r(l.prototype,{mountComponent:function(e,t,n,o){var r=n._idCounter++,a=" react-text: "+r+" ",l=" /react-text ";if(this._domID=r,this._hostParent=t,e.useCreateElement){var c=n._ownerDocument,p=c.createComment(a),d=c.createComment(l),f=i(c.createDocumentFragment());return i.queueChild(f,i(p)),this._stringText&&i.queueChild(f,i(c.createTextNode(this._stringText))),i.queueChild(f,i(d)),s.precacheNode(this,p),this._closingComment=d,f}var h=u(this._stringText);return e.renderToStaticMarkup?h:"<!--"+a+"-->"+h+"<!--"+l+"-->"},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var o=this.getHostNode();a.replaceDelimitedText(o[0],o[1],n)}}},getHostNode:function(){var e=this._commentNodes;if(e)return e;if(!this._closingComment)for(var t=s.getNodeFromInstance(this),n=t.nextSibling;;){if(null==n?o("67",this._domID):void 0,8===n.nodeType&&" /react-text "===n.nodeValue){this._closingComment=n;break}n=n.nextSibling}return e=[this._hostNode,this._closingComment],this._commentNodes=e,e},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,s.uncacheNode(this)}}),e.exports=l},function(e,t,n){"use strict";function o(){this.reinitializeTransaction()}var r=n(4),a=n(56),i=n(63),s=n(9),u={initialize:s,close:function(){d.isBatchingUpdates=!1}},l={initialize:s,close:a.flushBatchedUpdates.bind(a)},c=[l,u];r(o.prototype,i,{getTransactionWrappers:function(){return c}});var p=new o,d={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,o,r,a){var i=d.isBatchingUpdates;return d.isBatchingUpdates=!0,i?e(t,n,o,r,a):p.perform(e,null,t,n,o,r,a)}};e.exports=d},function(e,t,n){"use strict";function o(e){for(;e._hostParent;)e=e._hostParent;var t=p.getNodeFromInstance(e),n=t.parentNode;return p.getClosestInstanceFromNode(n)}function r(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function a(e){var t=f(e.nativeEvent),n=p.getClosestInstanceFromNode(t),r=n;do e.ancestors.push(r),r=r&&o(r);while(r);for(var a=0;a<e.ancestors.length;a++)n=e.ancestors[a],m._handleTopLevel(e.topLevelType,n,e.nativeEvent,f(e.nativeEvent))}function i(e){var t=h(window);e(t)}var s=n(4),u=n(138),l=n(48),c=n(50),p=n(34),d=n(56),f=n(65),h=n(139);s(r.prototype,{destructor:function(){this.topLevelType=null,this.nativeEvent=null,this.ancestors.length=0}}),c.addPoolingTo(r,c.twoArgumentPooler);var m={_enabled:!0,_handleTopLevel:null,WINDOW_HANDLE:l.canUseDOM?window:null,setHandleTopLevel:function(e){m._handleTopLevel=e},setEnabled:function(e){m._enabled=!!e},isEnabled:function(){return m._enabled},trapBubbledEvent:function(e,t,n){return n?u.listen(n,t,m.dispatchEvent.bind(null,e)):null},trapCapturedEvent:function(e,t,n){return n?u.capture(n,t,m.dispatchEvent.bind(null,e)):null},monitorScrollValue:function(e){var t=i.bind(null,e);u.listen(window,"scroll",t)},dispatchEvent:function(e,t){if(m._enabled){var n=r.getPooled(e,t);try{d.batchedUpdates(a,n)}finally{r.release(n)}}}};e.exports=m},function(e,t,n){"use strict";var o=n(9),r={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):{remove:o}},registerDefault:function(){}};e.exports=r},function(e,t){"use strict";function n(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}e.exports=n},function(e,t,n){"use strict";var o=n(36),r=n(42),a=n(44),i=n(111),s=n(120),u=n(101),l=n(121),c=n(56),p={Component:i.injection,DOMProperty:o.injection,EmptyComponent:s.injection,EventPluginHub:r.injection,EventPluginUtils:a.injection,EventEmitter:u.injection,HostComponent:l.injection,Updates:c.injection};e.exports=p},function(e,t,n){"use strict";function o(e){this.reinitializeTransaction(),this.renderToStaticMarkup=!1,this.reactMountReady=a.getPooled(null),this.useCreateElement=e}var r=n(4),a=n(57),i=n(50),s=n(101),u=n(142),l=(n(62),n(63)),c=n(131),p={initialize:u.getSelectionInformation,close:u.restoreSelection},d={initialize:function(){var e=s.isEnabled();return s.setEnabled(!1),e},close:function(e){s.setEnabled(e)}},f={initialize:function(){this.reactMountReady.reset()},close:function(){this.reactMountReady.notifyAll()}},h=[p,d,f],m={getTransactionWrappers:function(){return h},getReactMountReady:function(){return this.reactMountReady},getUpdateQueue:function(){return c},checkpoint:function(){return this.reactMountReady.checkpoint()},rollback:function(e){this.reactMountReady.rollback(e)},destructor:function(){a.release(this.reactMountReady),this.reactMountReady=null}};r(o.prototype,l,m),i.addPoolingTo(o),e.exports=o},function(e,t,n){"use strict";function o(e){return a(document.documentElement,e)}var r=n(143),a=n(145),i=n(90),s=n(148),u={hasSelectionCapabilities:function(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&"text"===e.type||"textarea"===t||"true"===e.contentEditable)},getSelectionInformation:function(){var e=s();return{focusedElem:e,selectionRange:u.hasSelectionCapabilities(e)?u.getSelection(e):null}},restoreSelection:function(e){var t=s(),n=e.focusedElem,r=e.selectionRange;t!==n&&o(n)&&(u.hasSelectionCapabilities(n)&&u.setSelection(n,r),i(n))},getSelection:function(e){var t;if("selectionStart"in e)t={start:e.selectionStart,end:e.selectionEnd};else if(document.selection&&e.nodeName&&"input"===e.nodeName.toLowerCase()){var n=document.selection.createRange();n.parentElement()===e&&(t={start:-n.moveStart("character",-e.value.length),end:-n.moveEnd("character",-e.value.length)})}else t=r.getOffsets(e);return t||{start:0,end:0}},setSelection:function(e,t){var n=t.start,o=t.end;if(void 0===o&&(o=n),"selectionStart"in e)e.selectionStart=n,e.selectionEnd=Math.min(o,e.value.length);else if(document.selection&&e.nodeName&&"input"===e.nodeName.toLowerCase()){var a=e.createTextRange();a.collapse(!0),a.moveStart("character",n),a.moveEnd("character",o-n),a.select()}else r.setOffsets(e,t)}};e.exports=u},function(e,t,n){"use strict";function o(e,t,n,o){return e===n&&t===o}function r(e){var t=document.selection,n=t.createRange(),o=n.text.length,r=n.duplicate();r.moveToElementText(e),r.setEndPoint("EndToStart",n);var a=r.text.length,i=a+o;return{start:a,end:i}}function a(e){var t=window.getSelection&&window.getSelection();if(!t||0===t.rangeCount)return null;var n=t.anchorNode,r=t.anchorOffset,a=t.focusNode,i=t.focusOffset,s=t.getRangeAt(0);try{s.startContainer.nodeType,s.endContainer.nodeType}catch(e){return null}var u=o(t.anchorNode,t.anchorOffset,t.focusNode,t.focusOffset),l=u?0:s.toString().length,c=s.cloneRange();c.selectNodeContents(e),c.setEnd(s.startContainer,s.startOffset);var p=o(c.startContainer,c.startOffset,c.endContainer,c.endOffset),d=p?0:c.toString().length,f=d+l,h=document.createRange();h.setStart(n,r),h.setEnd(a,i);var m=h.collapsed;return{start:m?f:d,end:m?d:f}}function i(e,t){var n,o,r=document.selection.createRange().duplicate();void 0===t.end?(n=t.start,o=n):t.start>t.end?(n=t.end,o=t.start):(n=t.start,o=t.end),r.moveToElementText(e),r.moveStart("character",n),r.setEndPoint("EndToStart",r),r.moveEnd("character",o-n),r.select()}function s(e,t){if(window.getSelection){var n=window.getSelection(),o=e[c()].length,r=Math.min(t.start,o),a=void 0===t.end?r:Math.min(t.end,o);if(!n.extend&&r>a){var i=a;a=r,r=i}var s=l(e,r),u=l(e,a);if(s&&u){var p=document.createRange();p.setStart(s.node,s.offset),n.removeAllRanges(),r>a?(n.addRange(p),n.extend(u.node,u.offset)):(p.setEnd(u.node,u.offset),n.addRange(p))}}}var u=n(48),l=n(144),c=n(51),p=u.canUseDOM&&"selection"in document&&!("getSelection"in window),d={getOffsets:p?r:a,setOffsets:p?i:s};e.exports=d},function(e,t){"use strict";function n(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function o(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function r(e,t){for(var r=n(e),a=0,i=0;r;){if(3===r.nodeType){if(i=a+r.textContent.length,a<=t&&i>=t)return{node:r,offset:t-a};a=i}r=n(o(r))}}e.exports=r},function(e,t,n){"use strict";function o(e,t){return!(!e||!t)&&(e===t||!r(e)&&(r(t)?o(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var r=n(146);e.exports=o},function(e,t,n){"use strict";function o(e){return r(e)&&3==e.nodeType}var r=n(147);e.exports=o},function(e,t){"use strict";function n(e){var t=e?e.ownerDocument||e:document,n=t.defaultView||window;return!(!e||!("function"==typeof n.Node?e instanceof n.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}e.exports=n},function(e,t){"use strict";function n(e){if(e=e||("undefined"!=typeof document?document:void 0),"undefined"==typeof e)return null;try{return e.activeElement||e.body}catch(t){return e.body}}e.exports=n},function(e,t){"use strict";var n={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},o={accentHeight:"accent-height",accumulate:0,additive:0,alignmentBaseline:"alignment-baseline",allowReorder:"allowReorder",alphabetic:0,amplitude:0,arabicForm:"arabic-form",ascent:0,attributeName:"attributeName",attributeType:"attributeType",autoReverse:"autoReverse",azimuth:0,baseFrequency:"baseFrequency",baseProfile:"baseProfile",baselineShift:"baseline-shift",bbox:0,begin:0,bias:0,by:0,calcMode:"calcMode",capHeight:"cap-height",clip:0,clipPath:"clip-path",clipRule:"clip-rule",clipPathUnits:"clipPathUnits",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",contentScriptType:"contentScriptType",contentStyleType:"contentStyleType",cursor:0,cx:0,cy:0,d:0,decelerate:0,descent:0,diffuseConstant:"diffuseConstant",direction:0,display:0,divisor:0,dominantBaseline:"dominant-baseline",dur:0,dx:0,dy:0,edgeMode:"edgeMode",elevation:0,enableBackground:"enable-background",end:0,exponent:0,externalResourcesRequired:"externalResourcesRequired",fill:0,fillOpacity:"fill-opacity",fillRule:"fill-rule",filter:0,filterRes:"filterRes",filterUnits:"filterUnits",floodColor:"flood-color",floodOpacity:"flood-opacity",focusable:0,fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",glyphRef:"glyphRef",gradientTransform:"gradientTransform",gradientUnits:"gradientUnits",hanging:0,horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",ideographic:0,imageRendering:"image-rendering",in:0,in2:0,intercept:0,k:0,k1:0,k2:0,k3:0,k4:0,kernelMatrix:"kernelMatrix",kernelUnitLength:"kernelUnitLength",kerning:0,keyPoints:"keyPoints",keySplines:"keySplines",keyTimes:"keyTimes",lengthAdjust:"lengthAdjust",letterSpacing:"letter-spacing",lightingColor:"lighting-color",limitingConeAngle:"limitingConeAngle",local:0,markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",markerHeight:"markerHeight",markerUnits:"markerUnits",markerWidth:"markerWidth",mask:0,maskContentUnits:"maskContentUnits",maskUnits:"maskUnits",mathematical:0,mode:0,numOctaves:"numOctaves",offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pathLength:"pathLength",patternContentUnits:"patternContentUnits",patternTransform:"patternTransform",patternUnits:"patternUnits",pointerEvents:"pointer-events",points:0,pointsAtX:"pointsAtX",pointsAtY:"pointsAtY",pointsAtZ:"pointsAtZ",preserveAlpha:"preserveAlpha",preserveAspectRatio:"preserveAspectRatio",primitiveUnits:"primitiveUnits",r:0,radius:0,refX:"refX",refY:"refY",renderingIntent:"rendering-intent",repeatCount:"repeatCount",repeatDur:"repeatDur",requiredExtensions:"requiredExtensions",requiredFeatures:"requiredFeatures",restart:0,result:0,rotate:0,rx:0,ry:0,scale:0,seed:0,shapeRendering:"shape-rendering",slope:0,spacing:0,specularConstant:"specularConstant",specularExponent:"specularExponent",speed:0,spreadMethod:"spreadMethod",startOffset:"startOffset",stdDeviation:"stdDeviation",stemh:0,stemv:0,stitchTiles:"stitchTiles",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",string:0,stroke:0,strokeDasharray:"stroke-dasharray",strokeDashoffset:"stroke-dashoffset",strokeLinecap:"stroke-linecap",strokeLinejoin:"stroke-linejoin",strokeMiterlimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",surfaceScale:"surfaceScale",systemLanguage:"systemLanguage",tableValues:"tableValues",targetX:"targetX",targetY:"targetY",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",textLength:"textLength",to:0,transform:0,u1:0,u2:0,underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicode:0,unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",values:0,vectorEffect:"vector-effect",version:0,vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",viewBox:"viewBox",viewTarget:"viewTarget",visibility:0,widths:0,wordSpacing:"word-spacing",writingMode:"writing-mode",x:0,xHeight:"x-height",x1:0,x2:0,xChannelSelector:"xChannelSelector",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlns:0,xmlnsXlink:"xmlns:xlink",xmlLang:"xml:lang",xmlSpace:"xml:space",y:0,y1:0,y2:0,yChannelSelector:"yChannelSelector",z:0,zoomAndPan:"zoomAndPan"},r={Properties:{},DOMAttributeNamespaces:{xlinkActuate:n.xlink,xlinkArcrole:n.xlink,xlinkHref:n.xlink,xlinkRole:n.xlink,xlinkShow:n.xlink,xlinkTitle:n.xlink,xlinkType:n.xlink,xmlBase:n.xml,xmlLang:n.xml,xmlSpace:n.xml},DOMAttributeNames:{}};Object.keys(o).forEach(function(e){r.Properties[e]=0,o[e]&&(r.DOMAttributeNames[e]=o[e])}),e.exports=r},function(e,t,n){"use strict";function o(e){if("selectionStart"in e&&u.hasSelectionCapabilities(e))return{start:e.selectionStart,end:e.selectionEnd};if(window.getSelection){var t=window.getSelection();return{anchorNode:t.anchorNode,anchorOffset:t.anchorOffset,focusNode:t.focusNode,focusOffset:t.focusOffset}}if(document.selection){var n=document.selection.createRange();return{parentElement:n.parentElement(),text:n.text,top:n.boundingTop,left:n.boundingLeft}}}function r(e,t){if(y||null==m||m!==c())return null;var n=o(m);if(!g||!d(g,n)){g=n;var r=l.getPooled(h.select,v,e,t);return r.type="select",r.target=m,a.accumulateTwoPhaseDispatches(r),r}return null}var a=n(41),i=n(48),s=n(34),u=n(142),l=n(53),c=n(148),p=n(67),d=n(118),f=i.canUseDOM&&"documentMode"in document&&document.documentMode<=11,h={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:["topBlur","topContextMenu","topFocus","topKeyDown","topKeyUp","topMouseDown","topMouseUp","topSelectionChange"]}},m=null,v=null,g=null,y=!1,b=!1,E={eventTypes:h,extractEvents:function(e,t,n,o){if(!b)return null;var a=t?s.getNodeFromInstance(t):window;switch(e){case"topFocus":(p(a)||"true"===a.contentEditable)&&(m=a,v=t,g=null);break;case"topBlur":m=null,v=null,g=null;break;case"topMouseDown":y=!0;break;case"topContextMenu":case"topMouseUp":return y=!1,r(n,o);case"topSelectionChange":if(f)break;case"topKeyDown":case"topKeyUp":return r(n,o)}return null},didPutListener:function(e,t,n){"onSelect"===t&&(b=!0)}};e.exports=E},function(e,t,n){"use strict";function o(e){return"."+e._rootNodeID}function r(e){return"button"===e||"input"===e||"select"===e||"textarea"===e}var a=n(35),i=n(138),s=n(41),u=n(34),l=n(152),c=n(153),p=n(53),d=n(154),f=n(155),h=n(70),m=n(158),v=n(159),g=n(160),y=n(71),b=n(161),E=n(9),w=n(156),x=(n(12),{}),C={};["abort","animationEnd","animationIteration","animationStart","blur","canPlay","canPlayThrough","click","contextMenu","copy","cut","doubleClick","drag","dragEnd","dragEnter","dragExit","dragLeave","dragOver","dragStart","drop","durationChange","emptied","encrypted","ended","error","focus","input","invalid","keyDown","keyPress","keyUp","load","loadedData","loadedMetadata","loadStart","mouseDown","mouseMove","mouseOut","mouseOver","mouseUp","paste","pause","play","playing","progress","rateChange","reset","scroll","seeked","seeking","stalled","submit","suspend","timeUpdate","touchCancel","touchEnd","touchMove","touchStart","transitionEnd","volumeChange","waiting","wheel"].forEach(function(e){var t=e[0].toUpperCase()+e.slice(1),n="on"+t,o="top"+t,r={phasedRegistrationNames:{bubbled:n,captured:n+"Capture"},dependencies:[o]};x[e]=r,C[o]=r});var _={},T={eventTypes:x,extractEvents:function(e,t,n,o){var r=C[e];if(!r)return null;var i;switch(e){case"topAbort":case"topCanPlay":case"topCanPlayThrough":case"topDurationChange":case"topEmptied":case"topEncrypted":case"topEnded":case"topError":case"topInput":case"topInvalid":case"topLoad":case"topLoadedData":case"topLoadedMetadata":case"topLoadStart":case"topPause":case"topPlay":case"topPlaying":case"topProgress":case"topRateChange":case"topReset":case"topSeeked":case"topSeeking":case"topStalled":case"topSubmit":case"topSuspend":case"topTimeUpdate":case"topVolumeChange":case"topWaiting":i=p;break;case"topKeyPress":if(0===w(n))return null;case"topKeyDown":case"topKeyUp":i=f;break;case"topBlur":case"topFocus":i=d;break;case"topClick":if(2===n.button)return null;case"topDoubleClick":case"topMouseDown":case"topMouseMove":case"topMouseUp":case"topMouseOut":case"topMouseOver":case"topContextMenu":i=h;break;case"topDrag":case"topDragEnd":case"topDragEnter":case"topDragExit":case"topDragLeave":case"topDragOver":case"topDragStart":case"topDrop":i=m;break;case"topTouchCancel":case"topTouchEnd":case"topTouchMove":case"topTouchStart":i=v;break;case"topAnimationEnd":case"topAnimationIteration":case"topAnimationStart":i=l;break;case"topTransitionEnd":i=g;break;case"topScroll":i=y;break;case"topWheel":i=b;break;case"topCopy":case"topCut":case"topPaste":i=c}i?void 0:a("86",e);var u=i.getPooled(r,t,n,o);return s.accumulateTwoPhaseDispatches(u),u},didPutListener:function(e,t,n){if("onClick"===t&&!r(e._tag)){var a=o(e),s=u.getNodeFromInstance(e);_[a]||(_[a]=i.listen(s,"click",E))}},willDeleteListener:function(e,t){if("onClick"===t&&!r(e._tag)){var n=o(e);_[n].remove(),delete _[n]}}};e.exports=T},function(e,t,n){"use strict";function o(e,t,n,o){return r.call(this,e,t,n,o)}var r=n(53),a={animationName:null,elapsedTime:null,pseudoElement:null};r.augmentClass(o,a),e.exports=o},function(e,t,n){"use strict";function o(e,t,n,o){return r.call(this,e,t,n,o)}var r=n(53),a={clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}};r.augmentClass(o,a),e.exports=o},function(e,t,n){"use strict";function o(e,t,n,o){return r.call(this,e,t,n,o)}var r=n(71),a={relatedTarget:null};r.augmentClass(o,a),e.exports=o},function(e,t,n){"use strict";function o(e,t,n,o){return r.call(this,e,t,n,o)}var r=n(71),a=n(156),i=n(157),s=n(73),u={key:i,location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:s,charCode:function(e){return"keypress"===e.type?a(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?a(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}};r.augmentClass(o,u),e.exports=o},function(e,t){"use strict";function n(e){var t,n=e.keyCode;return"charCode"in e?(t=e.charCode,0===t&&13===n&&(t=13)):t=n,t>=32||13===t?t:0}e.exports=n},function(e,t,n){"use strict";function o(e){if(e.key){var t=a[e.key]||e.key;if("Unidentified"!==t)return t}if("keypress"===e.type){var n=r(e);return 13===n?"Enter":String.fromCharCode(n)}return"keydown"===e.type||"keyup"===e.type?i[e.keyCode]||"Unidentified":""}var r=n(156),a={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},i={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};e.exports=o},function(e,t,n){"use strict";function o(e,t,n,o){return r.call(this,e,t,n,o)}var r=n(70),a={dataTransfer:null};r.augmentClass(o,a),e.exports=o},function(e,t,n){"use strict";function o(e,t,n,o){return r.call(this,e,t,n,o)}var r=n(71),a=n(73),i={touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:a};r.augmentClass(o,i),e.exports=o},function(e,t,n){"use strict";function o(e,t,n,o){return r.call(this,e,t,n,o)}var r=n(53),a={propertyName:null,elapsedTime:null,pseudoElement:null};r.augmentClass(o,a),e.exports=o},function(e,t,n){"use strict";function o(e,t,n,o){return r.call(this,e,t,n,o)}var r=n(70),a={deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null};r.augmentClass(o,a),e.exports=o},function(e,t,n){"use strict";function o(e,t){for(var n=Math.min(e.length,t.length),o=0;o<n;o++)if(e.charAt(o)!==t.charAt(o))return o;return e.length===t.length?-1:n}function r(e){return e?e.nodeType===I?e.documentElement:e.firstChild:null}function a(e){return e.getAttribute&&e.getAttribute(M)||""}function i(e,t,n,o,r){var a;if(w.logTopLevelRenders){var i=e._currentElement.props.child,s=i.type;a="React mount: "+("string"==typeof s?s:s.displayName||s.name),console.time(a)}var u=_.mountComponent(e,n,null,b(e,t),r,0);a&&console.timeEnd(a),e._renderedComponent._topLevelWrapper=e,H._mountImageIntoNode(u,t,e,o,n)}function s(e,t,n,o){var r=S.ReactReconcileTransaction.getPooled(!n&&E.useCreateElement);r.perform(i,null,e,t,r,n,o),S.ReactReconcileTransaction.release(r)}function u(e,t,n){for(_.unmountComponent(e,n),t.nodeType===I&&(t=t.documentElement);t.lastChild;)t.removeChild(t.lastChild)}function l(e){var t=r(e);if(t){var n=y.getInstanceFromNode(t);return!(!n||!n._hostParent)}}function c(e){return!(!e||e.nodeType!==N&&e.nodeType!==I&&e.nodeType!==D)}function p(e){var t=r(e),n=t&&y.getInstanceFromNode(t);return n&&!n._hostParent?n:null}function d(e){var t=p(e);return t?t._hostContainerInfo._topLevelWrapper:null}var f=n(35),h=n(77),m=n(36),v=n(3),g=n(101),y=(n(17),n(34)),b=n(163),E=n(164),w=n(58),x=n(112),C=(n(62),n(165)),_=n(59),T=n(131),S=n(56),O=n(11),R=n(115),k=(n(12),n(79)),A=n(119),M=(n(8),m.ID_ATTRIBUTE_NAME),P=m.ROOT_ATTRIBUTE_NAME,N=1,I=9,D=11,F={},j=1,L=function(){this.rootID=j++};L.prototype.isReactComponent={},L.prototype.render=function(){return this.props.child},L.isReactTopLevelWrapper=!0;var H={TopLevelWrapper:L,_instancesByReactRootID:F,scrollMonitor:function(e,t){t()},_updateRootComponent:function(e,t,n,o,r){return H.scrollMonitor(o,function(){T.enqueueElementInternal(e,t,n),r&&T.enqueueCallbackInternal(e,r)}),e},_renderNewRootComponent:function(e,t,n,o){c(t)?void 0:f("37"),g.ensureScrollValueMonitoring();var r=R(e,!1);S.batchedUpdates(s,r,t,n,o);var a=r._instance.rootID;return F[a]=r,r},renderSubtreeIntoContainer:function(e,t,n,o){return null!=e&&x.has(e)?void 0:f("38"),H._renderSubtreeIntoContainer(e,t,n,o)},_renderSubtreeIntoContainer:function(e,t,n,o){T.validateCallback(o,"ReactDOM.render"),v.isValidElement(t)?void 0:f("39","string"==typeof t?" Instead of passing a string like 'div', pass React.createElement('div') or <div />.":"function"==typeof t?" Instead of passing a class like Foo, pass React.createElement(Foo) or <Foo />.":null!=t&&void 0!==t.props?" This may be caused by unintentionally loading two independent copies of React.":"");var i,s=v.createElement(L,{child:t});if(e){var u=x.get(e);i=u._processChildContext(u._context)}else i=O;var c=d(n);if(c){var p=c._currentElement,h=p.props.child;if(A(h,t)){var m=c._renderedComponent.getPublicInstance(),g=o&&function(){o.call(m)};return H._updateRootComponent(c,s,i,n,g),m}H.unmountComponentAtNode(n)}var y=r(n),b=y&&!!a(y),E=l(n),w=b&&!c&&!E,C=H._renderNewRootComponent(s,n,w,i)._renderedComponent.getPublicInstance();return o&&o.call(C),C},render:function(e,t,n){return H._renderSubtreeIntoContainer(null,e,t,n)},unmountComponentAtNode:function(e){c(e)?void 0:f("40");var t=d(e);if(!t){l(e),1===e.nodeType&&e.hasAttribute(P);return!1}return delete F[t._instance.rootID],S.batchedUpdates(u,t,e,!1),!0},_mountImageIntoNode:function(e,t,n,a,i){if(c(t)?void 0:f("41"),a){var s=r(t);if(C.canReuseMarkup(e,s))return void y.precacheNode(n,s);var u=s.getAttribute(C.CHECKSUM_ATTR_NAME);s.removeAttribute(C.CHECKSUM_ATTR_NAME);var l=s.outerHTML;s.setAttribute(C.CHECKSUM_ATTR_NAME,u);var p=e,d=o(p,l),m=" (client) "+p.substring(d-20,d+20)+"\n (server) "+l.substring(d-20,d+20);t.nodeType===I?f("42",m):void 0}if(t.nodeType===I?f("43"):void 0,i.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);h.insertTreeBefore(t,e,null)}else k(t,e),y.precacheNode(n,t.firstChild)}};e.exports=H},function(e,t,n){"use strict";function o(e,t){var n={_topLevelWrapper:e,_idCounter:1,_ownerDocument:t?t.nodeType===r?t:t.ownerDocument:null,_node:t,_tag:t?t.nodeName.toLowerCase():null,_namespaceURI:t?t.namespaceURI:null};return n}var r=(n(132),9);e.exports=o},function(e,t){"use strict";var n={useCreateElement:!0,useFiber:!1};e.exports=n},function(e,t,n){"use strict";var o=n(166),r=/\/?>/,a=/^<\!\-\-/,i={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=o(e);return a.test(e)?e:e.replace(r," "+i.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(i.CHECKSUM_ATTR_NAME);n=n&&parseInt(n,10);var r=o(e);return r===n}};e.exports=i},function(e,t){"use strict";function n(e){for(var t=1,n=0,r=0,a=e.length,i=a&-4;r<i;){for(var s=Math.min(r+4096,i);r<s;r+=4)n+=(t+=e.charCodeAt(r))+(t+=e.charCodeAt(r+1))+(t+=e.charCodeAt(r+2))+(t+=e.charCodeAt(r+3));t%=o,n%=o}for(;r<a;r++)n+=t+=e.charCodeAt(r);return t%=o,n%=o,t|n<<16}var o=65521;e.exports=n},function(e,t){"use strict";e.exports="15.6.1"},function(e,t,n){"use strict";function o(e){if(null==e)return null;if(1===e.nodeType)return e;var t=i.get(e);return t?(t=s(t),t?a.getNodeFromInstance(t):null):void("function"==typeof e.render?r("44"):r("45",Object.keys(e)))}var r=n(35),a=(n(17),n(34)),i=n(112),s=n(169);n(12),n(8);e.exports=o},function(e,t,n){"use strict";function o(e){for(var t;(t=e._renderedNodeType)===r.COMPOSITE;)e=e._renderedComponent;return t===r.HOST?e._renderedComponent:t===r.EMPTY?null:void 0}var r=n(117);e.exports=o},function(e,t,n){"use strict";var o=n(162);e.exports=o.renderSubtreeIntoContainer},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),u=n(2),l=o(u),c=n(172),p=o(c),d=n(174),f=o(d),h=n(176),m=o(h),v=function(e){function t(e){r(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleToggle=function(){n.setState({open:!n.state.open}),ga("send","event","Components","toggleSidebar")},n.componentChanged=function(e){m.default.emit("selectedentitycomponentchanged",e)},n.state={open:!1,entity:e.entity},n}return i(t,e),s(t,[{key:"componentDidMount",value:function(){var e=this;m.default.on("componentremoved",function(t){e.forceUpdate()}),m.default.on("componentadded",function(t){e.forceUpdate()})}},{key:"componentWillReceiveProps",value:function(e){this.state.entity!==e.entity&&(this.state.entity&&(this.state.entity.removeEventListener("componentchanged",this.componentChanged),this.state.entity.removeEventListener("componentinitialized",this.componentCreated)),e.entity&&(e.entity.addEventListener("componentchanged",this.componentChanged),e.entity.addEventListener("componentinitialized",this.componentCreated)),this.setState({entity:e.entity}))}},{key:"render",value:function(){
var e=this.state.entity,t=this.props.visible;return e&&t?l.default.createElement("div",{id:"sidebar"},l.default.createElement(f.default,{entity:this.state.entity})):l.default.createElement("div",null)}}]),t}(l.default.Component);v.propTypes={entity:p.default.object,visible:p.default.bool},t.default=v},function(e,t,n){e.exports=n(173)()},function(e,t,n){"use strict";var o=n(9),r=n(12),a=n(26);e.exports=function(){function e(e,t,n,o,i,s){s!==a&&r(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t};return n.checkPropTypes=o,n.PropTypes=n,n}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),u=n(2),l=o(u),c=n(172),p=o(c),d=n(175),f=o(d),h=n(211),m=o(h),v=n(232),g=o(v),y=n(234),b=o(y),E=function(e){function t(){var e,n,o,i;r(this,t);for(var s=arguments.length,u=Array(s),l=0;l<s;l++)u[l]=arguments[l];return n=o=a(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),o.refresh=function(){o.forceUpdate()},i=n,a(o,i)}return i(t,e),s(t,[{key:"render",value:function(){var e=this.props.entity,t=e?e.components:{},n=Object.keys(t).filter(function(e){return b.default.indexOf(e)===-1}).sort().map(function(n){return l.default.createElement(m.default,{component:t[n],entity:e,key:n,name:n})});return l.default.createElement("div",{className:"components"},l.default.createElement(g.default,{entity:e}),l.default.createElement(f.default,{entity:e}),n)}}]),t}(l.default.Component);E.propTypes={entity:p.default.object},t.default=E},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){var n=[],o=!0,r=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(o=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);o=!0);}catch(e){r=!0,a=e}finally{try{!o&&s.return&&s.return()}finally{if(r)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=n(2),c=o(l),p=n(172),d=o(p),f=n(176),h=o(f),m=n(178),v=o(m);n(192);var g=n(196),y=" ",b=function(e){function t(){var e,n,o,i;r(this,t);for(var u=arguments.length,l=Array(u),c=0;c<u;c++)l[c]=arguments[c];return n=o=a(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),o.addComponent=function(e){function t(e){if(AFRAME.components[e].multiple){var t=prompt("Provide an ID for this component (e.g., 'foo' for "+e+"__foo).");e=t?e+"__"+t:e}r.setAttribute(e,""),h.default.emit("componentadded",{entity:r,component:e}),ga("send","event","Components","addComponent",e)}var n,r=o.props.entity,a=o.options.filter(function(t){return t.value===e})[0];if("registry"===a.origin){var i=a.value.split(y),u=s(i,2);n=u[0],e=u[1],g.componentLoader.addComponentToScene(n,e).then(t)}else e=a.value,t(e)},i=n,a(o,i)}return i(t,e),u(t,[{key:"getComponentsOptions",value:function(){var e=Object.keys(this.props.entity.components),t=Object.keys(AFRAME.components).filter(function(t){return AFRAME.components[t].multiple||e.indexOf(t)===-1}).sort().map(function(e){return{value:e,label:e,origin:"loaded"}}),n=[];Object.keys(g.componentLoader.components).forEach(function(t){var o=g.componentLoader.components[t];o.names.forEach(function(o){e.indexOf(o)===-1&&n.push({componentPackageName:t,componentName:o})})});var o=n.map(function(e){return{value:e.componentPackageName+y+e.componentName,label:e.componentName,origin:"registry"}});this.options=t.concat(o),this.options=this.options.sort(function(e,t){return e.label===t.label?0:e.label<t.label?-1:1})}},{key:"renderOption",value:function(e){var t=c.default.createElement("span",{title:"Component already loaded in the scene"},"●");return c.default.createElement("strong",{className:"option"},e.label," ","loaded"===e.origin?t:"")}},{key:"render",value:function(){var e=this.props.entity;return e?(this.getComponentsOptions(),c.default.createElement("div",{className:"add-component-container"},c.default.createElement(v.default,{className:"add-component",ref:"select",options:this.options,simpleValue:!0,clearable:!0,placeholder:"Add component...",noResultsText:"No components found",onChange:this.addComponent,optionRenderer:this.renderOption,searchable:!0}),c.default.createElement("a",{href:"https://aframe.io/aframe-registry",target:"_blank",title:"A-Frame Registry",className:"aregistry-button"},c.default.createElement("img",{src:"https://aframe.io/aframe-inspector/assets/a-registry-logo-min.svg"})))):c.default.createElement("div",null)}}]),t}(c.default.Component);b.propTypes={entity:d.default.object},t.default=b},function(e,t,n){"use strict";function o(){}var r=n(177).EventEmitter,a=new r;a.setMaxListeners(0),o.prototype.on=function(){return a.on.apply(a,arguments),this},o.prototype.emit=function(){return a.emit.apply(a,arguments),this},o.prototype.removeListener=function(){return a.removeListener.apply(a,arguments),this},e.exports=new o},function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function o(e){return"function"==typeof e}function r(e){return"number"==typeof e}function a(e){return"object"==typeof e&&null!==e}function i(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!r(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,r,s,u,l;if(this._events||(this._events={}),"error"===e&&(!this._events.error||a(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t;var c=new Error('Uncaught, unspecified "error" event. ('+t+")");throw c.context=t,c}if(n=this._events[e],i(n))return!1;if(o(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(a(n))for(s=Array.prototype.slice.call(arguments,1),l=n.slice(),r=l.length,u=0;u<r;u++)l[u].apply(this,s);return!0},n.prototype.addListener=function(e,t){var r;if(!o(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,o(t.listener)?t.listener:t),this._events[e]?a(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,a(this._events[e])&&!this._events[e].warned&&(r=i(this._maxListeners)?n.defaultMaxListeners:this._maxListeners,r&&r>0&&this._events[e].length>r&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace())),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}if(!o(t))throw TypeError("listener must be a function");var r=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,r,i,s;if(!o(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],i=n.length,r=-1,n===t||o(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(a(n)){for(s=i;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){r=s;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],o(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){var t;return t=this._events&&this._events[e]?o(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(o(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,n){/*!
Copyright (c) 2016 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/react-select
*/
"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){var t=typeof e;return"string"===t?e:"object"===t?JSON.stringify(e):"number"===t||"boolean"===t?String(e):""}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},u=n(2),l=o(u),c=n(179),p=o(c),d=n(172),f=o(d),h=n(32),m=o(h),v=n(180),g=o(v),y=n(181),b=o(y),E=n(182),w=o(E),x=n(183),C=o(x),_=n(185),T=o(_),S=n(186),O=o(S),R=n(187),k=o(R),A=n(188),M=o(A),P=n(189),N=o(P),I=n(190),D=o(I),F=n(191),j=o(F),L=f.default.oneOfType([f.default.string,f.default.node]),H=1,U=(0,p.default)({displayName:"Select",propTypes:{addLabelText:f.default.string,"aria-describedby":f.default.string,"aria-label":f.default.string,"aria-labelledby":f.default.string,arrowRenderer:f.default.func,autoBlur:f.default.bool,autofocus:f.default.bool,autosize:f.default.bool,backspaceRemoves:f.default.bool,backspaceToRemoveMessage:f.default.string,className:f.default.string,clearAllText:L,clearRenderer:f.default.func,clearValueText:L,clearable:f.default.bool,deleteRemoves:f.default.bool,delimiter:f.default.string,disabled:f.default.bool,escapeClearsValue:f.default.bool,filterOption:f.default.func,filterOptions:f.default.any,ignoreAccents:f.default.bool,ignoreCase:f.default.bool,inputProps:f.default.object,inputRenderer:f.default.func,instanceId:f.default.string,isLoading:f.default.bool,joinValues:f.default.bool,labelKey:f.default.string,matchPos:f.default.string,matchProp:f.default.string,menuBuffer:f.default.number,menuContainerStyle:f.default.object,menuRenderer:f.default.func,menuStyle:f.default.object,multi:f.default.bool,name:f.default.string,noResultsText:L,onBlur:f.default.func,onBlurResetsInput:f.default.bool,onChange:f.default.func,onClose:f.default.func,onCloseResetsInput:f.default.bool,onFocus:f.default.func,onInputChange:f.default.func,onInputKeyDown:f.default.func,onMenuScrollToBottom:f.default.func,onOpen:f.default.func,onValueClick:f.default.func,openAfterFocus:f.default.bool,openOnFocus:f.default.bool,optionClassName:f.default.string,optionComponent:f.default.func,optionRenderer:f.default.func,options:f.default.array,pageSize:f.default.number,placeholder:L,required:f.default.bool,resetValue:f.default.any,scrollMenuIntoView:f.default.bool,searchable:f.default.bool,simpleValue:f.default.bool,style:f.default.object,tabIndex:f.default.string,tabSelectsValue:f.default.bool,value:f.default.any,valueComponent:f.default.func,valueKey:f.default.string,valueRenderer:f.default.func,wrapperStyle:f.default.object},statics:{Async:k.default,AsyncCreatable:M.default,Creatable:N.default},getDefaultProps:function(){return{addLabelText:'Add "{label}"?',arrowRenderer:w.default,autosize:!0,backspaceRemoves:!0,backspaceToRemoveMessage:"Press backspace to remove {label}",clearable:!0,clearAllText:"Clear all",clearRenderer:O.default,clearValueText:"Clear value",deleteRemoves:!0,delimiter:",",disabled:!1,escapeClearsValue:!0,filterOptions:C.default,ignoreAccents:!0,ignoreCase:!0,inputProps:{},isLoading:!1,joinValues:!1,labelKey:"label",matchPos:"any",matchProp:"any",menuBuffer:0,menuRenderer:T.default,multi:!1,noResultsText:"No results found",onBlurResetsInput:!0,onCloseResetsInput:!0,optionComponent:D.default,pageSize:5,placeholder:"Select...",required:!1,scrollMenuIntoView:!0,searchable:!0,simpleValue:!1,tabSelectsValue:!0,valueComponent:j.default,valueKey:"value"}},getInitialState:function(){return{inputValue:"",isFocused:!1,isOpen:!1,isPseudoFocused:!1,required:!1}},componentWillMount:function(){this._instancePrefix="react-select-"+(this.props.instanceId||++H)+"-";var e=this.getValueArray(this.props.value);this.props.required&&this.setState({required:this.handleRequired(e[0],this.props.multi)})},componentDidMount:function(){this.props.autofocus&&this.focus()},componentWillReceiveProps:function(e){var t=this.getValueArray(e.value,e);e.required&&this.setState({required:this.handleRequired(t[0],e.multi)})},componentWillUpdate:function(e,t){if(t.isOpen!==this.state.isOpen){this.toggleTouchOutsideEvent(t.isOpen);var n=t.isOpen?e.onOpen:e.onClose;n&&n()}},componentDidUpdate:function(e,t){if(this.menu&&this.focused&&this.state.isOpen&&!this.hasScrolledToOption){var n=m.default.findDOMNode(this.focused),o=m.default.findDOMNode(this.menu);o.scrollTop=n.offsetTop,this.hasScrolledToOption=!0}else this.state.isOpen||(this.hasScrolledToOption=!1);if(this._scrollToFocusedOptionOnUpdate&&this.focused&&this.menu){this._scrollToFocusedOptionOnUpdate=!1;var r=m.default.findDOMNode(this.focused),a=m.default.findDOMNode(this.menu),i=r.getBoundingClientRect(),s=a.getBoundingClientRect();(i.bottom>s.bottom||i.top<s.top)&&(a.scrollTop=r.offsetTop+r.clientHeight-a.offsetHeight)}if(this.props.scrollMenuIntoView&&this.menuContainer){var u=this.menuContainer.getBoundingClientRect();window.innerHeight<u.bottom+this.props.menuBuffer&&window.scrollBy(0,u.bottom+this.props.menuBuffer-window.innerHeight)}e.disabled!==this.props.disabled&&(this.setState({isFocused:!1}),this.closeMenu())},componentWillUnmount:function(){!document.removeEventListener&&document.detachEvent?document.detachEvent("ontouchstart",this.handleTouchOutside):document.removeEventListener("touchstart",this.handleTouchOutside)},toggleTouchOutsideEvent:function(e){e?!document.addEventListener&&document.attachEvent?document.attachEvent("ontouchstart",this.handleTouchOutside):document.addEventListener("touchstart",this.handleTouchOutside):!document.removeEventListener&&document.detachEvent?document.detachEvent("ontouchstart",this.handleTouchOutside):document.removeEventListener("touchstart",this.handleTouchOutside)},handleTouchOutside:function(e){this.wrapper&&!this.wrapper.contains(e.target)&&this.closeMenu()},focus:function(){this.input&&this.input.focus()},blurInput:function(){this.input&&this.input.blur()},handleTouchMove:function(e){this.dragging=!0},handleTouchStart:function(e){this.dragging=!1},handleTouchEnd:function(e){this.dragging||this.handleMouseDown(e)},handleTouchEndClearValue:function(e){this.dragging||this.clearValue(e)},handleMouseDown:function(e){if(!(this.props.disabled||"mousedown"===e.type&&0!==e.button)&&"INPUT"!==e.target.tagName){if(e.stopPropagation(),e.preventDefault(),!this.props.searchable)return this.focus(),this.setState({isOpen:!this.state.isOpen});if(this.state.isFocused){this.focus();var t=this.input;"function"==typeof t.getInput&&(t=t.getInput()),t.value="",this.setState({isOpen:!0,isPseudoFocused:!1})}else this._openAfterFocus=!0,this.focus()}},handleMouseDownOnArrow:function(e){this.props.disabled||"mousedown"===e.type&&0!==e.button||this.state.isOpen&&(e.stopPropagation(),e.preventDefault(),this.closeMenu())},handleMouseDownOnMenu:function(e){this.props.disabled||"mousedown"===e.type&&0!==e.button||(e.stopPropagation(),e.preventDefault(),this._openAfterFocus=!0,this.focus())},closeMenu:function(){this.props.onCloseResetsInput?this.setState({isOpen:!1,isPseudoFocused:this.state.isFocused&&!this.props.multi,inputValue:""}):this.setState({isOpen:!1,isPseudoFocused:this.state.isFocused&&!this.props.multi,inputValue:this.state.inputValue}),this.hasScrolledToOption=!1},handleInputFocus:function(e){if(!this.props.disabled){var t=this.state.isOpen||this._openAfterFocus||this.props.openOnFocus;this.props.onFocus&&this.props.onFocus(e),this.setState({isFocused:!0,isOpen:t}),this._openAfterFocus=!1}},handleInputBlur:function(e){if(this.menu&&(this.menu===document.activeElement||this.menu.contains(document.activeElement)))return void this.focus();this.props.onBlur&&this.props.onBlur(e);var t={isFocused:!1,isOpen:!1,isPseudoFocused:!1};this.props.onBlurResetsInput&&(t.inputValue=""),this.setState(t)},handleInputChange:function(e){var t=e.target.value;if(this.state.inputValue!==e.target.value&&this.props.onInputChange){var n=this.props.onInputChange(t);null!=n&&"object"!=typeof n&&(t=""+n)}this.setState({isOpen:!0,isPseudoFocused:!1,inputValue:t})},handleKeyDown:function(e){if(!(this.props.disabled||"function"==typeof this.props.onInputKeyDown&&(this.props.onInputKeyDown(e),e.defaultPrevented))){switch(e.keyCode){case 8:return void(!this.state.inputValue&&this.props.backspaceRemoves&&(e.preventDefault(),this.popValue()));case 9:if(e.shiftKey||!this.state.isOpen||!this.props.tabSelectsValue)return;return void this.selectFocusedOption();case 13:if(!this.state.isOpen)return;e.stopPropagation(),this.selectFocusedOption();break;case 27:this.state.isOpen?(this.closeMenu(),e.stopPropagation()):this.props.clearable&&this.props.escapeClearsValue&&(this.clearValue(e),e.stopPropagation());break;case 38:this.focusPreviousOption();break;case 40:this.focusNextOption();break;case 33:this.focusPageUpOption();break;case 34:this.focusPageDownOption();break;case 35:if(e.shiftKey)return;this.focusEndOption();break;case 36:if(e.shiftKey)return;this.focusStartOption();break;case 46:return void(!this.state.inputValue&&this.props.deleteRemoves&&(e.preventDefault(),this.popValue()));default:return}e.preventDefault()}},handleValueClick:function(e,t){this.props.onValueClick&&this.props.onValueClick(e,t)},handleMenuScroll:function(e){if(this.props.onMenuScrollToBottom){var t=e.target;t.scrollHeight>t.offsetHeight&&!(t.scrollHeight-t.offsetHeight-t.scrollTop)&&this.props.onMenuScrollToBottom()}},handleRequired:function(e,t){return!e||(t?0===e.length:0===Object.keys(e).length)},getOptionLabel:function(e){return e[this.props.labelKey]},getValueArray:function(e,t){var n=this,o="object"==typeof t?t:this.props;if(o.multi){if("string"==typeof e&&(e=e.split(o.delimiter)),!Array.isArray(e)){if(null===e||void 0===e)return[];e=[e]}return e.map(function(e){return n.expandValue(e,o)}).filter(function(e){return e})}var r=this.expandValue(e,o);return r?[r]:[]},expandValue:function(e,t){var n=typeof e;if("string"!==n&&"number"!==n&&"boolean"!==n)return e;var o=t.options,r=t.valueKey;if(o)for(var a=0;a<o.length;a++)if(o[a][r]===e)return o[a]},setValue:function(e){var t=this;if(this.props.autoBlur&&this.blurInput(),this.props.onChange){if(this.props.required){var n=this.handleRequired(e,this.props.multi);this.setState({required:n})}this.props.simpleValue&&e&&(e=this.props.multi?e.map(function(e){return e[t.props.valueKey]}).join(this.props.delimiter):e[this.props.valueKey]),this.props.onChange(e)}},selectValue:function(e){var t=this;this.hasScrolledToOption=!1,this.props.multi?this.setState({inputValue:"",focusedIndex:null},function(){t.addValue(e)}):this.setState({isOpen:!1,inputValue:"",isPseudoFocused:this.state.isFocused},function(){t.setValue(e)})},addValue:function(e){var t=this.getValueArray(this.props.value),n=this._visibleOptions.filter(function(e){return!e.disabled}),o=n.indexOf(e);this.setValue(t.concat(e)),n.length-1===o?this.focusOption(n[o-1]):n.length>o&&this.focusOption(n[o+1])},popValue:function(){var e=this.getValueArray(this.props.value);e.length&&e[e.length-1].clearableValue!==!1&&this.setValue(e.slice(0,e.length-1))},removeValue:function(e){var t=this.getValueArray(this.props.value);this.setValue(t.filter(function(t){return t!==e})),this.focus()},clearValue:function(e){e&&"mousedown"===e.type&&0!==e.button||(e.stopPropagation(),e.preventDefault(),this.setValue(this.getResetValue()),this.setState({isOpen:!1,inputValue:""},this.focus))},getResetValue:function(){return void 0!==this.props.resetValue?this.props.resetValue:this.props.multi?[]:null},focusOption:function(e){this.setState({focusedOption:e})},focusNextOption:function(){this.focusAdjacentOption("next")},focusPreviousOption:function(){this.focusAdjacentOption("previous")},focusPageUpOption:function(){this.focusAdjacentOption("page_up")},focusPageDownOption:function(){this.focusAdjacentOption("page_down")},focusStartOption:function(){this.focusAdjacentOption("start")},focusEndOption:function(){this.focusAdjacentOption("end")},focusAdjacentOption:function(e){var t=this._visibleOptions.map(function(e,t){return{option:e,index:t}}).filter(function(e){return!e.option.disabled});if(this._scrollToFocusedOptionOnUpdate=!0,!this.state.isOpen)return void this.setState({isOpen:!0,inputValue:"",focusedOption:this._focusedOption||(t.length?t["next"===e?0:t.length-1].option:null)});if(t.length){for(var n=-1,o=0;o<t.length;o++)if(this._focusedOption===t[o].option){n=o;break}if("next"===e&&n!==-1)n=(n+1)%t.length;else if("previous"===e)n>0?n-=1:n=t.length-1;else if("start"===e)n=0;else if("end"===e)n=t.length-1;else if("page_up"===e){var r=n-this.props.pageSize;n=r<0?0:r}else if("page_down"===e){var r=n+this.props.pageSize;n=r>t.length-1?t.length-1:r}n===-1&&(n=0),this.setState({focusedIndex:t[n].index,focusedOption:t[n].option})}},getFocusedOption:function(){return this._focusedOption},getInputValue:function(){return this.state.inputValue},selectFocusedOption:function(){if(this._focusedOption)return this.selectValue(this._focusedOption)},renderLoading:function(){if(this.props.isLoading)return l.default.createElement("span",{className:"Select-loading-zone","aria-hidden":"true"},l.default.createElement("span",{className:"Select-loading"}))},renderValue:function(e,t){var n=this,o=this.props.valueRenderer||this.getOptionLabel,r=this.props.valueComponent;if(!e.length)return this.state.inputValue?null:l.default.createElement("div",{className:"Select-placeholder"},this.props.placeholder);var a=this.props.onValueClick?this.handleValueClick:null;return this.props.multi?e.map(function(e,t){return l.default.createElement(r,{id:n._instancePrefix+"-value-"+t,instancePrefix:n._instancePrefix,disabled:n.props.disabled||e.clearableValue===!1,key:"value-"+t+"-"+e[n.props.valueKey],onClick:a,onRemove:n.removeValue,value:e},o(e,t),l.default.createElement("span",{className:"Select-aria-only"}," "))}):this.state.inputValue?void 0:(t&&(a=null),l.default.createElement(r,{id:this._instancePrefix+"-value-item",disabled:this.props.disabled,instancePrefix:this._instancePrefix,onClick:a,value:e[0]},o(e[0])))},renderInput:function(e,t){var n,o=this,i=(0,b.default)("Select-input",this.props.inputProps.className),u=!!this.state.isOpen,c=(0,b.default)((n={},a(n,this._instancePrefix+"-list",u),a(n,this._instancePrefix+"-backspace-remove-message",this.props.multi&&!this.props.disabled&&this.state.isFocused&&!this.state.inputValue),n)),p=s({},this.props.inputProps,{role:"combobox","aria-expanded":""+u,"aria-owns":c,"aria-haspopup":""+u,"aria-activedescendant":u?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value","aria-describedby":this.props["aria-describedby"],"aria-labelledby":this.props["aria-labelledby"],"aria-label":this.props["aria-label"],className:i,tabIndex:this.props.tabIndex,onBlur:this.handleInputBlur,onChange:this.handleInputChange,onFocus:this.handleInputFocus,ref:function(e){return o.input=e},required:this.state.required,value:this.state.inputValue});if(this.props.inputRenderer)return this.props.inputRenderer(p);if(this.props.disabled||!this.props.searchable){var d=this.props.inputProps,f=(d.inputClassName,r(d,["inputClassName"])),h=(0,b.default)(a({},this._instancePrefix+"-list",u));return l.default.createElement("div",s({},f,{role:"combobox","aria-expanded":u,"aria-owns":h,"aria-activedescendant":u?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value",className:i,tabIndex:this.props.tabIndex||0,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,ref:function(e){return o.input=e},"aria-readonly":""+!!this.props.disabled,style:{border:0,width:1,display:"inline-block"}}))}return this.props.autosize?l.default.createElement(g.default,s({},p,{minWidth:"5"})):l.default.createElement("div",{className:i},l.default.createElement("input",p))},renderClear:function(){if(!(!this.props.clearable||void 0===this.props.value||null===this.props.value||this.props.multi&&!this.props.value.length||this.props.disabled||this.props.isLoading)){var e=this.props.clearRenderer();return l.default.createElement("span",{className:"Select-clear-zone",title:this.props.multi?this.props.clearAllText:this.props.clearValueText,"aria-label":this.props.multi?this.props.clearAllText:this.props.clearValueText,onMouseDown:this.clearValue,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEndClearValue},e)}},renderArrow:function(){var e=this.handleMouseDownOnArrow,t=this.state.isOpen,n=this.props.arrowRenderer({onMouseDown:e,isOpen:t});return l.default.createElement("span",{className:"Select-arrow-zone",onMouseDown:e},n)},filterOptions:function e(t){var n=this.state.inputValue,o=this.props.options||[];if(this.props.filterOptions){var e="function"==typeof this.props.filterOptions?this.props.filterOptions:C.default;return e(o,n,t,{filterOption:this.props.filterOption,ignoreAccents:this.props.ignoreAccents,ignoreCase:this.props.ignoreCase,labelKey:this.props.labelKey,matchPos:this.props.matchPos,matchProp:this.props.matchProp,valueKey:this.props.valueKey})}return o},onOptionRef:function(e,t){t&&(this.focused=e)},renderMenu:function(e,t,n){return e&&e.length?this.props.menuRenderer({focusedOption:n,focusOption:this.focusOption,instancePrefix:this._instancePrefix,labelKey:this.props.labelKey,onFocus:this.focusOption,onSelect:this.selectValue,optionClassName:this.props.optionClassName,optionComponent:this.props.optionComponent,optionRenderer:this.props.optionRenderer||this.getOptionLabel,options:e,selectValue:this.selectValue,valueArray:t,valueKey:this.props.valueKey,onOptionRef:this.onOptionRef}):this.props.noResultsText?l.default.createElement("div",{className:"Select-noresults"},this.props.noResultsText):null},renderHiddenField:function(e){var t=this;if(this.props.name){if(this.props.joinValues){var n=e.map(function(e){return i(e[t.props.valueKey])}).join(this.props.delimiter);return l.default.createElement("input",{type:"hidden",ref:function(e){return t.value=e},name:this.props.name,value:n,disabled:this.props.disabled})}return e.map(function(e,n){return l.default.createElement("input",{key:"hidden."+n,type:"hidden",ref:"value"+n,name:t.props.name,value:i(e[t.props.valueKey]),disabled:t.props.disabled})})}},getFocusableOptionIndex:function(e){var t=this._visibleOptions;if(!t.length)return null;var n=this.props.valueKey,o=this.state.focusedOption||e;if(o&&!o.disabled){var r=-1;if(t.some(function(e,t){var a=e[n]===o[n];return a&&(r=t),a}),r!==-1)return r}for(var a=0;a<t.length;a++)if(!t[a].disabled)return a;return null},renderOuter:function(e,t,n){var o=this,r=this.renderMenu(e,t,n);return r?l.default.createElement("div",{ref:function(e){return o.menuContainer=e},className:"Select-menu-outer",style:this.props.menuContainerStyle},l.default.createElement("div",{ref:function(e){return o.menu=e},role:"listbox",className:"Select-menu",id:this._instancePrefix+"-list",style:this.props.menuStyle,onScroll:this.handleMenuScroll,onMouseDown:this.handleMouseDownOnMenu},r)):null},render:function(){var e=this,t=this.getValueArray(this.props.value),n=this._visibleOptions=this.filterOptions(this.props.multi?this.getValueArray(this.props.value):null),o=this.state.isOpen;this.props.multi&&!n.length&&t.length&&!this.state.inputValue&&(o=!1);var r=this.getFocusableOptionIndex(t[0]),a=null;a=null!==r?this._focusedOption=n[r]:this._focusedOption=null;var i=(0,b.default)("Select",this.props.className,{"Select--multi":this.props.multi,"Select--single":!this.props.multi,"is-clearable":this.props.clearable,"is-disabled":this.props.disabled,"is-focused":this.state.isFocused,"is-loading":this.props.isLoading,"is-open":o,"is-pseudo-focused":this.state.isPseudoFocused,"is-searchable":this.props.searchable,"has-value":t.length}),s=null;return this.props.multi&&!this.props.disabled&&t.length&&!this.state.inputValue&&this.state.isFocused&&this.props.backspaceRemoves&&(s=l.default.createElement("span",{id:this._instancePrefix+"-backspace-remove-message",className:"Select-aria-only","aria-live":"assertive"},this.props.backspaceToRemoveMessage.replace("{label}",t[t.length-1][this.props.labelKey]))),l.default.createElement("div",{ref:function(t){return e.wrapper=t},className:i,style:this.props.wrapperStyle},this.renderHiddenField(t),l.default.createElement("div",{ref:function(t){return e.control=t},className:"Select-control",style:this.props.style,onKeyDown:this.handleKeyDown,onMouseDown:this.handleMouseDown,onTouchEnd:this.handleTouchEnd,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove},l.default.createElement("span",{className:"Select-multi-value-wrapper",id:this._instancePrefix+"-value"},this.renderValue(t,o),this.renderInput(t,r)),s,this.renderLoading(),this.renderClear(),this.renderArrow()),o?this.renderOuter(n,this.props.multi?null:t,a):null)}});t.default=U,e.exports=t.default},function(e,t,n){"use strict";var o=n(2),r=n(30);if("undefined"==typeof o)throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var a=(new o.Component).updater;e.exports=r(o.Component,o.isValidElement,a)},function(e,t,n){"use strict";var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r=n(2),a=n(172),i=n(179),s={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},u=i({propTypes:{className:a.string,defaultValue:a.any,inputClassName:a.string,inputStyle:a.object,minWidth:a.oneOfType([a.number,a.string]),onAutosize:a.func,onChange:a.func,placeholder:a.string,placeholderIsMinWidth:a.bool,style:a.object,value:a.any},getDefaultProps:function(){return{minWidth:1}},getInitialState:function(){return{inputWidth:this.props.minWidth}},componentDidMount:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()},componentDidUpdate:function(e,t){t.inputWidth!==this.state.inputWidth&&"function"==typeof this.props.onAutosize&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()},componentWillUnmount:function(){this.mounted=!1},inputRef:function(e){this.input=e},placeHolderSizerRef:function(e){this.placeHolderSizer=e},sizerRef:function(e){this.sizer=e},copyInputStyles:function(){if(!this.mounted&&window.getComputedStyle){var e=this.input&&window.getComputedStyle(this.input);if(e){var t=this.sizer;if(t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,t.style.textTransform=e.textTransform,this.props.placeholder){var n=this.placeHolderSizer;n.style.fontSize=e.fontSize,n.style.fontFamily=e.fontFamily,n.style.fontWeight=e.fontWeight,n.style.fontStyle=e.fontStyle,n.style.letterSpacing=e.letterSpacing,n.style.textTransform=e.textTransform}}}},updateInputWidth:function(){if(this.mounted&&this.sizer&&"undefined"!=typeof this.sizer.scrollWidth){var e=void 0;e=this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:this.sizer.scrollWidth+2,e<this.props.minWidth&&(e=this.props.minWidth),e!==this.state.inputWidth&&this.setState({inputWidth:e})}},getInput:function(){return this.input},focus:function(){this.input.focus()},blur:function(){this.input.blur()},select:function(){this.input.select()},render:function(){var e=[this.props.defaultValue,this.props.value,""].reduce(function(e,t){return null!==e&&void 0!==e?e:t}),t=this.props.style||{};t.display||(t.display="inline-block");var n=o({},this.props.inputStyle);n.width=this.state.inputWidth+"px",n.boxSizing="content-box";var a=o({},this.props);return a.className=this.props.inputClassName,a.style=n,delete a.inputClassName,delete a.inputStyle,delete a.minWidth,delete a.onAutosize,delete a.placeholderIsMinWidth,r.createElement("div",{className:this.props.className,style:t},r.createElement("input",o({},a,{ref:this.inputRef})),r.createElement("div",{ref:this.sizerRef,style:s},e),this.props.placeholder?r.createElement("div",{ref:this.placeHolderSizerRef,style:s},this.props.placeholder):null)}});e.exports=u},function(e,t,n){var o,r;/*!
Copyright (c) 2016 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
!function(){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var r=typeof o;if("string"===r||"number"===r)e.push(o);else if(Array.isArray(o))e.push(n.apply(null,o));else if("object"===r)for(var i in o)a.call(o,i)&&o[i]&&e.push(i)}}return e.join(" ")}var a={}.hasOwnProperty;"undefined"!=typeof e&&e.exports?e.exports=n:(o=[],r=function(){return n}.apply(t,o),!(void 0!==r&&(e.exports=r)))}()},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e){var t=e.onMouseDown;return i.default.createElement("span",{className:"Select-arrow",onMouseDown:t})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var a=n(2),i=o(a);e.exports=t.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,o){var r=this;return o.ignoreAccents&&(t=(0,i.default)(t)),o.ignoreCase&&(t=t.toLowerCase()),n&&(n=n.map(function(e){return e[o.valueKey]})),e.filter(function(e){if(n&&n.indexOf(e[o.valueKey])>-1)return!1;if(o.filterOption)return o.filterOption.call(r,e,t);if(!t)return!0;var a=String(e[o.valueKey]),s=String(e[o.labelKey]);return o.ignoreAccents&&("label"!==o.matchProp&&(a=(0,i.default)(a)),"value"!==o.matchProp&&(s=(0,i.default)(s))),o.ignoreCase&&("label"!==o.matchProp&&(a=a.toLowerCase()),"value"!==o.matchProp&&(s=s.toLowerCase())),"start"===o.matchPos?"label"!==o.matchProp&&a.substr(0,t.length)===t||"value"!==o.matchProp&&s.substr(0,t.length)===t:"label"!==o.matchProp&&a.indexOf(t)>=0||"value"!==o.matchProp&&s.indexOf(t)>=0})}var a=n(184),i=o(a);e.exports=r},function(e,t){"use strict";var n=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}];e.exports=function(e){for(var t=0;t<n.length;t++)e=e.replace(n[t].letters,n[t].base);return e}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e){var t=e.focusedOption,n=e.instancePrefix,o=(e.labelKey,e.onFocus),r=e.onSelect,a=e.optionClassName,s=e.optionComponent,l=e.optionRenderer,c=e.options,p=e.valueArray,d=e.valueKey,f=e.onOptionRef,h=s;return c.map(function(e,s){var c=p&&p.indexOf(e)>-1,m=e===t,v=(0,i.default)(a,{"Select-option":!0,"is-selected":c,"is-focused":m,"is-disabled":e.disabled});return u.default.createElement(h,{className:v,instancePrefix:n,isDisabled:e.disabled,isFocused:m,isSelected:c,key:"option-"+s+"-"+e[d],onFocus:o,onSelect:r,option:e,optionIndex:s,ref:function(e){f(e,m)}},l(e,s))})}var a=n(181),i=o(a),s=n(2),u=o(s);e.exports=r},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(){return i.default.createElement("span",{className:"Select-clear",dangerouslySetInnerHTML:{__html:"×"}})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var a=n(2),i=o(a);e.exports=t.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){return d.default.createElement(v.default,e)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),c=function(e,t,n){for(var o=!0;o;){var r=e,a=t,i=n;o=!1,null===r&&(r=Function.prototype);var s=Object.getOwnPropertyDescriptor(r,a);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(i)}var l=Object.getPrototypeOf(r);if(null===l)return;e=l,t=a,n=i,o=!0,s=l=void 0}},p=n(2),d=o(p),f=n(172),h=o(f),m=n(178),v=o(m),g=n(184),y=o(g),b={autoload:h.default.bool.isRequired,cache:h.default.any,children:h.default.func.isRequired,ignoreAccents:h.default.bool,ignoreCase:h.default.bool,loadingPlaceholder:h.default.oneOfType([h.default.string,h.default.node]),loadOptions:h.default.func.isRequired,multi:h.default.bool,options:h.default.array.isRequired,placeholder:h.default.oneOfType([h.default.string,h.default.node]),noResultsText:h.default.oneOfType([h.default.string,h.default.node]),onChange:h.default.func,searchPromptText:h.default.oneOfType([h.default.string,h.default.node]),onInputChange:h.default.func,value:h.default.any},E={},w={autoload:!0,cache:E,children:s,ignoreAccents:!0,ignoreCase:!0,loadingPlaceholder:"Loading...",options:[],searchPromptText:"Type to search"},x=function(e){function t(e,n){a(this,t),c(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e,n),this._cache=e.cache===E?{}:e.cache,this.state={isLoading:!1,options:e.options},this._onInputChange=this._onInputChange.bind(this)}return i(t,e),l(t,[{key:"componentDidMount",value:function(){var e=this.props.autoload;e&&this.loadOptions("")}},{key:"componentWillUpdate",value:function(e,t){var n=this,o=["options"];o.forEach(function(t){n.props[t]!==e[t]&&n.setState(r({},t,e[t]))})}},{key:"clearOptions",value:function(){this.setState({options:[]})}},{key:"loadOptions",value:function e(t){var n=this,e=this.props.loadOptions,o=this._cache;if(o&&o.hasOwnProperty(t))return void this.setState({options:o[t]});var r=function e(r,a){if(e===n._callback){n._callback=null;var i=a&&a.options||[];o&&(o[t]=i),n.setState({isLoading:!1,options:i})}};this._callback=r;var a=e(t,r);return a&&a.then(function(e){return r(null,e)},function(e){return r(e)}),this._callback&&!this.state.isLoading&&this.setState({isLoading:!0}),t}},{key:"_onInputChange",value:function(e){var t=this.props,n=t.ignoreAccents,o=t.ignoreCase,r=t.onInputChange;return n&&(e=(0,y.default)(e)),o&&(e=e.toLowerCase()),r&&r(e),this.loadOptions(e)}},{key:"inputValue",value:function(){return this.select?this.select.state.inputValue:""}},{key:"noResultsText",value:function e(){var t=this.props,n=t.loadingPlaceholder,e=t.noResultsText,o=t.searchPromptText,r=this.state.isLoading,a=this.inputValue();return r?n:a&&e?e:o}},{key:"focus",value:function(){this.select.focus()}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,o=t.loadingPlaceholder,r=t.placeholder,a=this.state,i=a.isLoading,s=a.options,l={noResultsText:this.noResultsText(),placeholder:i?o:r,options:i&&o?[]:s,ref:function(t){return e.select=t},onChange:function(t){e.props.multi&&e.props.value&&t.length>e.props.value.length&&e.clearOptions(),e.props.onChange(t)}};return n(u({},this.props,l,{isLoading:i,onInputChange:this._onInputChange}))}}]),t}(p.Component);t.default=x,x.propTypes=b,x.defaultProps=w,e.exports=t.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return Object.keys(e).reduce(function(t,n){var o=e[n];return void 0!==o&&(t[n]=o),t},t)}var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},i=n(2),s=o(i),u=n(179),l=o(u),c=n(178),p=o(c),d=(0,l.default)({displayName:"AsyncCreatableSelect",focus:function(){this.select.focus()},render:function(){var e=this;return s.default.createElement(p.default.Async,this.props,function(t){return s.default.createElement(p.default.Creatable,e.props,function(n){return s.default.createElement(p.default,a({},r(t,r(n,{})),{onInputChange:function(e){return n.onInputChange(e),t.onInputChange(e)},ref:function(o){e.select=o,n.ref(o),t.ref(o)}}))})})}});e.exports=d},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function a(e){return f.default.createElement(b.default,e)}function i(e){var t=e.option,n=e.options,o=e.labelKey,r=e.valueKey;return 0===n.filter(function(e){return e[o]===t[o]||e[r]===t[r]}).length}function s(e){var t=e.label;return!!t}function u(e){var t=e.label,n=e.labelKey,o=e.valueKey,r={};return r[o]=t,r[n]=t,r.className="Select-create-option-placeholder",r}function l(e){return'Create option "'+e+'"'}function c(e){var t=e.keyCode;switch(t){case 9:case 13:case 188:return!0}return!1}var p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},d=n(2),f=o(d),h=n(179),m=o(h),v=n(172),g=o(v),y=n(178),b=o(y),E=n(183),w=o(E),x=n(185),C=o(x),_=(0,m.default)({displayName:"CreatableSelect",propTypes:{children:g.default.func,filterOptions:g.default.any,isOptionUnique:g.default.func,isValidNewOption:g.default.func,menuRenderer:g.default.any,newOptionCreator:g.default.func,onInputChange:g.default.func,onInputKeyDown:g.default.func,onNewOptionClick:g.default.func,options:g.default.array,promptTextCreator:g.default.func,shouldKeyDownEventCreateNewOption:g.default.func},statics:{isOptionUnique:i,isValidNewOption:s,newOptionCreator:u,promptTextCreator:l,shouldKeyDownEventCreateNewOption:c},getDefaultProps:function(){return{filterOptions:w.default,isOptionUnique:i,isValidNewOption:s,menuRenderer:C.default,newOptionCreator:u,promptTextCreator:l,shouldKeyDownEventCreateNewOption:c}},createNewOption:function(){var e=this.props,t=e.isValidNewOption,n=e.newOptionCreator,o=e.onNewOptionClick,r=e.options,a=void 0===r?[]:r;e.shouldKeyDownEventCreateNewOption;if(t({label:this.inputValue})){var i=n({label:this.inputValue,labelKey:this.labelKey,valueKey:this.valueKey}),s=this.isOptionUnique({option:i});s&&(o?o(i):(a.unshift(i),this.select.selectValue(i)))}},filterOptions:function e(){var t=this.props,e=t.filterOptions,n=t.isValidNewOption,o=(t.options,t.promptTextCreator),r=arguments[2]||[],a=e.apply(void 0,arguments)||[];if(n({label:this.inputValue})){var i=this.props.newOptionCreator,s=i({label:this.inputValue,labelKey:this.labelKey,valueKey:this.valueKey}),u=this.isOptionUnique({option:s,options:r.concat(a)});if(u){var l=o(this.inputValue);this._createPlaceholderOption=i({label:l,labelKey:this.labelKey,valueKey:this.valueKey}),a.unshift(this._createPlaceholderOption)}}return a},isOptionUnique:function e(t){var n=t.option,o=t.options,e=this.props.isOptionUnique;return o=o||this.select.filterOptions(),e({labelKey:this.labelKey,option:n,options:o,valueKey:this.valueKey})},menuRenderer:function e(t){var e=this.props.menuRenderer;return e(p({},t,{onSelect:this.onOptionSelect,selectValue:this.onOptionSelect}))},onInputChange:function e(t){var e=this.props.onInputChange;e&&e(t),this.inputValue=t},onInputKeyDown:function e(t){var n=this.props,o=n.shouldKeyDownEventCreateNewOption,e=n.onInputKeyDown,r=this.select.getFocusedOption();r&&r===this._createPlaceholderOption&&o({keyCode:t.keyCode})?(this.createNewOption(),t.preventDefault()):e&&e(t)},onOptionSelect:function(e,t){e===this._createPlaceholderOption?this.createNewOption():this.select.selectValue(e)},focus:function(){this.select.focus()},render:function(){var e=this,t=this.props,n=(t.newOptionCreator,t.shouldKeyDownEventCreateNewOption,r(t,["newOptionCreator","shouldKeyDownEventCreateNewOption"])),o=this.props.children;o||(o=a);var i=p({},n,{allowCreate:!0,filterOptions:this.filterOptions,menuRenderer:this.menuRenderer,onInputChange:this.onInputChange,onInputKeyDown:this.onInputKeyDown,ref:function(t){e.select=t,t&&(e.labelKey=t.props.labelKey,e.valueKey=t.props.valueKey)}});return o(i)}});e.exports=_},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}var r=n(2),a=o(r),i=n(179),s=o(i),u=n(172),l=o(u),c=n(181),p=o(c),d=(0,s.default)({propTypes:{children:l.default.node,className:l.default.string,instancePrefix:l.default.string.isRequired,isDisabled:l.default.bool,isFocused:l.default.bool,isSelected:l.default.bool,onFocus:l.default.func,onSelect:l.default.func,onUnfocus:l.default.func,option:l.default.object.isRequired,optionIndex:l.default.number},blockEvent:function(e){e.preventDefault(),e.stopPropagation(),"A"===e.target.tagName&&"href"in e.target&&(e.target.target?window.open(e.target.href,e.target.target):window.location.href=e.target.href)},handleMouseDown:function(e){e.preventDefault(),e.stopPropagation(),this.props.onSelect(this.props.option,e)},handleMouseEnter:function(e){this.onFocus(e)},handleMouseMove:function(e){this.onFocus(e)},handleTouchEnd:function(e){this.dragging||this.handleMouseDown(e)},handleTouchMove:function(e){this.dragging=!0},handleTouchStart:function(e){this.dragging=!1},onFocus:function(e){this.props.isFocused||this.props.onFocus(this.props.option,e)},render:function(){var e=this.props,t=e.option,n=e.instancePrefix,o=e.optionIndex,r=(0,p.default)(this.props.className,t.className);return t.disabled?a.default.createElement("div",{className:r,onMouseDown:this.blockEvent,onClick:this.blockEvent},this.props.children):a.default.createElement("div",{className:r,style:t.style,role:"option",onMouseDown:this.handleMouseDown,onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd,id:n+"-option-"+o,title:t.title},this.props.children)}});e.exports=d},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}var r=n(2),a=o(r),i=n(179),s=o(i),u=n(172),l=o(u),c=n(181),p=o(c),d=(0,s.default)({displayName:"Value",propTypes:{children:l.default.node,disabled:l.default.bool,id:l.default.string,onClick:l.default.func,onRemove:l.default.func,value:l.default.object.isRequired},handleMouseDown:function(e){if("mousedown"!==e.type||0===e.button)return this.props.onClick?(e.stopPropagation(),void this.props.onClick(this.props.value,e)):void(this.props.value.href&&e.stopPropagation())},onRemove:function(e){e.preventDefault(),e.stopPropagation(),this.props.onRemove(this.props.value)},handleTouchEndRemove:function(e){this.dragging||this.onRemove(e)},handleTouchMove:function(e){this.dragging=!0},handleTouchStart:function(e){this.dragging=!1},renderRemoveIcon:function(){if(!this.props.disabled&&this.props.onRemove)return a.default.createElement("span",{className:"Select-value-icon","aria-hidden":"true",onMouseDown:this.onRemove,onTouchEnd:this.handleTouchEndRemove,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove},"×")},renderLabel:function(){var e="Select-value-label";return this.props.onClick||this.props.value.href?a.default.createElement("a",{className:e,href:this.props.value.href,target:this.props.value.target,onMouseDown:this.handleMouseDown,onTouchEnd:this.handleMouseDown},this.props.children):a.default.createElement("span",{className:e,role:"option","aria-selected":"true",id:this.props.id},this.props.children)},render:function(){return a.default.createElement("div",{className:(0,p.default)("Select-value",this.props.value.className),style:this.props.value.style,title:this.props.value.title},this.renderRemoveIcon(),this.renderLabel())}});e.exports=d},function(e,t,n){var o=n(193);"string"==typeof o&&(o=[[e.id,o,""]]);n(195)(o,{});o.locals&&(e.exports=o.locals)},function(e,t,n){t=e.exports=n(194)(),t.push([e.id,".Select{position:relative}.Select,.Select div,.Select input,.Select span{box-sizing:border-box}.Select.is-disabled>.Select-control{background-color:#f9f9f9}.Select.is-disabled>.Select-control:hover{box-shadow:none}.Select.is-disabled .Select-arrow-zone{cursor:default;pointer-events:none;opacity:.35}.Select-control{background-color:#fff;border-color:#d9d9d9 #ccc #b3b3b3;border-radius:4px;border:1px solid #ccc;color:#333;cursor:default;display:table;border-spacing:0;border-collapse:separate;height:36px;outline:none;overflow:hidden;position:relative;width:100%}.Select-control:hover{box-shadow:0 1px 0 rgba(0,0,0,.06)}.Select-control .Select-input:focus{outline:none}.is-searchable.is-open>.Select-control{cursor:text}.is-open>.Select-control{border-bottom-right-radius:0;border-bottom-left-radius:0;background:#fff;border-color:#b3b3b3 #ccc #d9d9d9}.is-open>.Select-control .Select-arrow{top:-2px;border-color:transparent transparent #999;border-width:0 5px 5px}.is-searchable.is-focused:not(.is-open)>.Select-control{cursor:text}.is-focused:not(.is-open)>.Select-control{border-color:#007eff;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 0 3px rgba(0,126,255,.1)}.Select--single>.Select-control .Select-value,.Select-placeholder{bottom:0;color:#aaa;left:0;line-height:34px;padding-left:10px;padding-right:10px;position:absolute;right:0;top:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value .Select-value-label,.has-value.Select--single>.Select-control .Select-value .Select-value-label{color:#333}.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value a.Select-value-label,.has-value.Select--single>.Select-control .Select-value a.Select-value-label{cursor:pointer;text-decoration:none}.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value a.Select-value-label:focus,.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value a.Select-value-label:hover,.has-value.Select--single>.Select-control .Select-value a.Select-value-label:focus,.has-value.Select--single>.Select-control .Select-value a.Select-value-label:hover{color:#007eff;outline:none;text-decoration:underline}.Select-input{height:34px;padding-left:10px;padding-right:10px;vertical-align:middle}.Select-input>input{width:100%;background:none transparent;border:0 none;box-shadow:none;cursor:default;display:inline-block;font-family:inherit;font-size:inherit;margin:0;outline:none;line-height:14px;padding:8px 0 12px;-webkit-appearance:none}.is-focused .Select-input>input{cursor:text}.has-value.is-pseudo-focused .Select-input{opacity:0}.Select-control:not(.is-searchable)>.Select-input{outline:none}.Select-loading-zone{cursor:pointer;display:table-cell;text-align:center}.Select-loading,.Select-loading-zone{position:relative;vertical-align:middle;width:16px}.Select-loading{-webkit-animation:Select-animation-spin .4s infinite linear;animation:Select-animation-spin .4s infinite linear;height:16px;box-sizing:border-box;border-radius:50%;border:2px solid #ccc;border-right-color:#333;display:inline-block}.Select-clear-zone{-webkit-animation:Select-animation-fadeIn .2s;animation:Select-animation-fadeIn .2s;color:#999;cursor:pointer;display:table-cell;position:relative;text-align:center;vertical-align:middle;width:17px}.Select-clear-zone:hover{color:#d0021b}.Select-clear{display:inline-block;font-size:18px;line-height:1}.Select--multi .Select-clear-zone{width:17px}.Select-arrow-zone{cursor:pointer;display:table-cell;position:relative;text-align:center;vertical-align:middle;width:25px;padding-right:5px}.Select-arrow{border-color:#999 transparent transparent;border-style:solid;border-width:5px 5px 2.5px;display:inline-block;height:0;width:0;position:relative}.is-open .Select-arrow,.Select-arrow-zone:hover>.Select-arrow{border-top-color:#666}.Select--multi .Select-multi-value-wrapper{display:inline-block}.Select .Select-aria-only{display:inline-block;height:1px;width:1px;margin:-1px;clip:rect(0,0,0,0);overflow:hidden;float:left}@-webkit-keyframes Select-animation-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes Select-animation-fadeIn{0%{opacity:0}to{opacity:1}}.Select-menu-outer{border-bottom-right-radius:4px;border-bottom-left-radius:4px;background-color:#fff;border:1px solid #ccc;border-top-color:#e6e6e6;box-shadow:0 1px 0 rgba(0,0,0,.06);box-sizing:border-box;margin-top:-1px;max-height:200px;position:absolute;top:100%;width:100%;z-index:1;-webkit-overflow-scrolling:touch}.Select-menu{max-height:198px;overflow-y:auto}.Select-option{box-sizing:border-box;background-color:#fff;color:#666;cursor:pointer;display:block;padding:8px 10px}.Select-option:last-child{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.Select-option.is-selected{background-color:#f5faff;background-color:rgba(0,126,255,.04);color:#333}.Select-option.is-focused{background-color:#ebf5ff;background-color:rgba(0,126,255,.08);color:#333}.Select-option.is-disabled{color:#ccc;cursor:default}.Select-noresults{box-sizing:border-box;color:#999;cursor:default;display:block;padding:8px 10px}.Select--multi .Select-input{vertical-align:middle;margin-left:10px;padding:0}.Select--multi.has-value .Select-input{margin-left:5px}.Select--multi .Select-value{background-color:#ebf5ff;background-color:rgba(0,126,255,.08);border-radius:2px;border:1px solid #c2e0ff;border:1px solid rgba(0,126,255,.24);color:#007eff;display:inline-block;font-size:.9em;line-height:1.4;margin-left:5px;margin-top:5px;vertical-align:top}.Select--multi .Select-value-icon,.Select--multi .Select-value-label{display:inline-block;vertical-align:middle}.Select--multi .Select-value-label{border-bottom-right-radius:2px;border-top-right-radius:2px;cursor:default;padding:2px 5px}.Select--multi a.Select-value-label{color:#007eff;cursor:pointer;text-decoration:none}.Select--multi a.Select-value-label:hover{text-decoration:underline}.Select--multi .Select-value-icon{cursor:pointer;border-bottom-left-radius:2px;border-top-left-radius:2px;border-right:1px solid #c2e0ff;border-right:1px solid rgba(0,126,255,.24);padding:1px 5px 3px}.Select--multi .Select-value-icon:focus,.Select--multi .Select-value-icon:hover{background-color:#d8eafd;background-color:rgba(0,113,230,.08);color:#0071e6}.Select--multi .Select-value-icon:active{background-color:#c2e0ff;background-color:rgba(0,126,255,.24)}.Select--multi.is-disabled .Select-value{background-color:#fcfcfc;border:1px solid #e3e3e3;color:#333}.Select--multi.is-disabled .Select-value-icon{cursor:not-allowed;border-right:1px solid #e3e3e3}.Select--multi.is-disabled .Select-value-icon:active,.Select--multi.is-disabled .Select-value-icon:focus,.Select--multi.is-disabled .Select-value-icon:hover{background-color:#fcfcfc}@keyframes Select-animation-spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@-webkit-keyframes Select-animation-spin{to{-webkit-transform:rotate(1turn)}}",""])},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var o={},r=0;r<this.length;r++){var a=this[r][0];"number"==typeof a&&(o[a]=!0)}for(r=0;r<t.length;r++){var i=t[r];"number"==typeof i[0]&&o[i[0]]||(n&&!i[2]?i[2]=n:n&&(i[2]="("+i[2]+") and ("+n+")"),e.push(i))}},e}},function(e,t,n){function o(e,t){for(var n=0;n<e.length;n++){var o=e[n],r=f[o.id];if(r){r.refs++;for(var a=0;a<r.parts.length;a++)r.parts[a](o.parts[a]);for(;a<o.parts.length;a++)r.parts.push(l(o.parts[a],t))}else{for(var i=[],a=0;a<o.parts.length;a++)i.push(l(o.parts[a],t));f[o.id]={id:o.id,refs:1,parts:i}}}}function r(e){for(var t=[],n={},o=0;o<e.length;o++){var r=e[o],a=r[0],i=r[1],s=r[2],u=r[3],l={css:i,media:s,sourceMap:u};n[a]?n[a].parts.push(l):t.push(n[a]={id:a,parts:[l]})}return t}function a(e,t){var n=v(),o=b[b.length-1];if("top"===e.insertAt)o?o.nextSibling?n.insertBefore(t,o.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),b.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(t)}}function i(e){e.parentNode.removeChild(e);var t=b.indexOf(e);t>=0&&b.splice(t,1)}function s(e){var t=document.createElement("style");return t.type="text/css",a(e,t),t}function u(e){var t=document.createElement("link");return t.rel="stylesheet",a(e,t),t}function l(e,t){var n,o,r;if(t.singleton){var a=y++;n=g||(g=s(t)),o=c.bind(null,n,a,!1),r=c.bind(null,n,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=u(t),o=d.bind(null,n),r=function(){i(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(t),o=p.bind(null,n),r=function(){i(n)});return o(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o(e=t)}else r()}}function c(e,t,n,o){var r=n?"":o.css;if(e.styleSheet)e.styleSheet.cssText=E(t,r);else{var a=document.createTextNode(r),i=e.childNodes;
i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(a,i[t]):e.appendChild(a)}}function p(e,t){var n=t.css,o=t.media;if(o&&e.setAttribute("media",o),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function d(e,t){var n=t.css,o=t.sourceMap;o&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var r=new Blob([n],{type:"text/css"}),a=e.href;e.href=URL.createObjectURL(r),a&&URL.revokeObjectURL(a)}var f={},h=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},m=h(function(){return/msie [6-9]\b/.test(self.navigator.userAgent.toLowerCase())}),v=h(function(){return document.head||document.getElementsByTagName("head")[0]}),g=null,y=0,b=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=m()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var n=r(e);return o(n,t),function(e){for(var a=[],i=0;i<n.length;i++){var s=n[i],u=f[s.id];u.refs--,a.push(u)}if(e){var l=r(e);o(l,t)}for(var i=0;i<a.length;i++){var u=a[i];if(0===u.refs){for(var c=0;c<u.parts.length;c++)u.parts[c]();delete f[u.id]}}}};var E=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t,n){"use strict";function o(){this.exporters={gltf:new THREE.GLTFExporter},this.modules={},this.on=r.on,this.opened=!1,"complete"===document.readyState||"loaded"===document.readyState?this.onDomLoaded():document.addEventListener("DOMContentLoaded",this.onDomLoaded.bind(this))}var r=(n(197),n(176)),a=n(198),i=n(203),s=n(204),u=n(205),l=n(206);o.prototype={onDomLoaded:function(){this.componentLoader=new i,this.shaderLoader=new u,this.assetsLoader=new s,this.sceneEl=AFRAME.scenes[0],this.sceneEl.hasLoaded?this.onSceneLoaded():this.sceneEl.addEventListener("loaded",this.onSceneLoaded.bind(this))},onSceneLoaded:function(){var e=this,t=this;return this.container=document.querySelector(".a-canvas"),AFRAME.scenes[0].camera?(this.currentCameraEl=AFRAME.scenes[0].camera.el,this.currentCameraEl.setAttribute("data-aframe-inspector-original-camera",""),this.currentCameraEl.hasAttribute("data-aframe-default-camera")&&(this.currentCameraEl.removeAttribute("data-aframe-default-camera"),this.currentCameraEl.setAttribute("data-aframe-inspector","default-camera")),this.inspectorCameraEl=document.createElement("a-entity"),this.inspectorCameraEl.isInspector=!0,this.inspectorCameraEl.addEventListener("componentinitialized",function(t){"camera"===t.detail.name&&(e.EDITOR_CAMERA=e.inspectorCameraEl.getObject3D("camera"),e.initUI(),e.initModules())}),this.inspectorCameraEl.setAttribute("camera",{far:1e4,fov:50,near:.05,active:!0}),this.inspectorCameraEl.setAttribute("data-aframe-inspector","camera"),void AFRAME.scenes[0].appendChild(this.inspectorCameraEl)):void AFRAME.scenes[0].addEventListener("camera-set-active",function e(){AFRAME.scenes[0].removeEventListener("camera-set-active",e),t.onSceneLoaded()})},initModules:function(){for(var e in this.modules){var t=this.modules[e];console.log("Initializing module <%s>",e),t.init(this.sceneEl)}},initUI:function(){function e(e){for(var t=0;t<e.children.length;t++)for(var o=e.children[t],r=0;r<o.children.length;r++)n.addObject(o.children[r])}var t=this;this.EDITOR_CAMERA.position.set(20,10,20),this.EDITOR_CAMERA.lookAt(new THREE.Vector3),this.EDITOR_CAMERA.updateMatrixWorld(),this.camera=this.EDITOR_CAMERA,this.initEvents(),this.selected=null,window.dispatchEvent(new Event("inspector-loaded")),this.scene=this.sceneEl.object3D,this.helpers={},this.sceneHelpers=new THREE.Scene,this.sceneHelpers.visible=!0,this.inspectorActive=!1,this.viewport=new a(this),r.emit("windowresize");var n=this;e(this.sceneEl.object3D),document.addEventListener("model-loaded",function(e){t.addObject(e.target.object3D)}),r.on("selectedentitycomponentchanged",function(e){t.addObject(e.target.object3D)}),r.on("selectedentitycomponentcreated",function(e){t.addObject(e.target.object3D)}),this.scene.add(this.sceneHelpers),this.open()},removeObject:function(e){this.removeHelpers(e),r.emit("objectremoved",e)},addHelper:function(){var e=new THREE.SphereBufferGeometry(2,4,2),t=new THREE.MeshBasicMaterial({color:16711680,visible:!1});return function(n){var o;if(n instanceof THREE.Camera)this.cameraHelper=o=new THREE.CameraHelper(n,.1);else if(n instanceof THREE.PointLight)o=new THREE.PointLightHelper(n,1);else if(n instanceof THREE.DirectionalLight)o=new THREE.DirectionalLightHelper(n,1);else if(n instanceof THREE.SpotLight)o=new THREE.SpotLightHelper(n,1);else if(n instanceof THREE.HemisphereLight)o=new THREE.HemisphereLightHelper(n,1);else{if(!(n instanceof THREE.SkinnedMesh))return;o=new THREE.SkeletonHelper(n)}var a=n.parent.id;if(this.helpers[a])for(var i in this.helpers[a])this.sceneHelpers.remove(this.helpers[a][i]);else this.helpers[a]={};var s=new THREE.Mesh(e,t);s.name="picker",s.userData.object=n,o.add(s),o.fromObject=n,this.sceneHelpers.add(o),this.helpers[a][n.id]=o,r.emit("helperadded",o)}}(),removeHelpers:function(e){var t=e.id;if(this.helpers[t]){for(var n in this.helpers[t]){var o=this.helpers[t][n];r.emit("helperremoved",o),this.sceneHelpers.remove(o)}delete this.helpers[t]}},selectEntity:function(e,t){this.selectedEntity=e,e?this.select(e.object3D):this.select(null),void 0===t&&r.emit("entityselected",e)},initEvents:function(){var e=this;window.addEventListener("keydown",function(t){var n=73===t.keyCode&&t.ctrlKey&&t.altKey;n&&e.toggle()}),r.on("entityselected",function(t){e.selectEntity(t,!1)}),r.on("inspectormodechanged",function(t){e.inspectorActive=t,e.sceneHelpers.visible=e.inspectorActive}),r.on("createnewentity",function(t){e.createNewEntity(t)}),r.on("selectedentitycomponentchanged",function(t){e.addObject(t.target.object3D)}),document.addEventListener("child-detached",function(e){var t=e.detail.el;AFRAME.INSPECTOR.removeObject(t.object3D)}),r.on("dommodified",function(t){t&&t.forEach(function(t){"childList"===t.type&&Array.prototype.slice.call(t.removedNodes).forEach(function(t){e.selectedEntity===t&&e.selectEntity(null)})})})},selectById:function(e){return e===this.camera.id?void this.select(this.camera):void this.select(this.scene.getObjectById(e,!0))},select:function(e){this.selected!==e&&(this.selected=e,r.emit("objectselected",e))},deselect:function(){this.select(null)},clear:function(){this.camera.copy(this.EDITOR_CAMERA),this.deselect(),AFRAME.scenes[0].innerHTML="",r.emit("inspectorcleared")},createNewEntity:function(e){var t=this,n=document.createElement(e.element);for(var o in e.components)n.setAttribute(o,e.components[o]);return n.addEventListener("loaded",function(){t.addEntity(n)}),this.sceneEl.appendChild(n),n},addEntity:function(e){this.addObject(e.object3D),this.selectEntity(e)},toggle:function(){this.opened?this.close():this.open()},open:function(){this.sceneEl=AFRAME.scenes[0],this.opened=!0,r.emit("inspectormodechanged",!0),this.sceneEl.hasAttribute("aframe-inspector-motion-capture-replaying")||(this.sceneEl.pause(),this.sceneEl.exitVR()),this.sceneEl.hasAttribute("embedded")&&(this.sceneEl.removeAttribute("embedded"),this.sceneEl.setAttribute("aframe-inspector-removed-embedded")),document.body.classList.add("aframe-inspector-opened"),this.sceneEl.resize(),l.enable()},close:function(){this.opened=!1,r.emit("inspectormodechanged",!1),this.sceneEl.play(),this.sceneEl.hasAttribute("aframe-inspector-removed-embedded")&&(this.sceneEl.setAttribute("embedded",""),this.sceneEl.removeAttribute("aframe-inspector-removed-embedded")),document.body.classList.remove("aframe-inspector-opened"),this.sceneEl.resize(),l.disable()},addObject:function(e){var t=this;e.traverse(function(n){n.el&&n.el.isInspector||t.addHelper(n,e)}),r.emit("objectadded",e),r.emit("scenegraphchanged")}};var c=new o;AFRAME.INSPECTOR=c;n(208);e.exports=c},function(e,t){"use strict";var n={POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6,UNSIGNED_BYTE:5121,UNSIGNED_SHORT:5123,FLOAT:5126,UNSIGNED_INT:5125,ARRAY_BUFFER:34962,ELEMENT_ARRAY_BUFFER:34963,NEAREST:9728,LINEAR:9729,NEAREST_MIPMAP_NEAREST:9984,LINEAR_MIPMAP_NEAREST:9985,NEAREST_MIPMAP_LINEAR:9986,LINEAR_MIPMAP_LINEAR:9987},o={1003:n.NEAREST,1004:n.NEAREST_MIPMAP_NEAREST,1005:n.NEAREST_MIPMAP_LINEAR,1006:n.LINEAR,1007:n.LINEAR_MIPMAP_NEAREST,1008:n.LINEAR_MIPMAP_LINEAR};THREE.GLTFExporter=function(){},THREE.GLTFExporter.prototype={constructor:THREE.GLTFExporter,parse:function(e,t,r){function a(e,t){return e.length===t.length&&e.every(function(e,n){return e===t[n]})}function i(e){for(var t={min:new Array(e.itemSize).fill(Number.POSITIVE_INFINITY),max:new Array(e.itemSize).fill(Number.NEGATIVE_INFINITY)},n=0;n<e.count;n++)for(var o=0;o<e.itemSize;o++){var r=e.array[n*e.itemSize+o];t.min[o]=Math.min(t.min[o],r),t.max[o]=Math.max(t.max[o],r)}return t}function s(e,t,o,r){w.buffers||(w.buffers=[{byteLength:0,uri:""}]);for(var a=0,i=t===n.UNSIGNED_SHORT?2:4,s=r*e.itemSize*i,u=new DataView(new ArrayBuffer(s)),l=o;l<o+r;l++)for(var c=0;c<e.itemSize;c++){var p=e.array[l*e.itemSize+c];t===n.FLOAT?u.setFloat32(a,p,!0):t===n.UNSIGNED_INT?u.setUint8(a,p,!0):t===n.UNSIGNED_SHORT&&u.setUint16(a,p,!0),a+=i}return C.push(u),0}function u(e,t,o,r){var a=t===n.FLOAT;w.bufferViews||(w.bufferViews=[]);var i=t===n.UNSIGNED_SHORT?2:4,u=r*e.itemSize*i,l={buffer:s(e,t,o,r),byteOffset:x,byteLength:u,byteStride:e.itemSize*i,target:a?n.ARRAY_BUFFER:n.ELEMENT_ARRAY_BUFFER};x+=u,w.bufferViews.push(l);var c={id:w.bufferViews.length-1,byteLength:0};return c}function l(e,t){w.accessors||(w.accessors=[]);var o,a=["SCALAR","VEC2","VEC3","VEC4"];if(e.array.constructor===Float32Array)o=n.FLOAT;else if(e.array.constructor===Uint32Array)o=n.UNSIGNED_INT;else{if(e.array.constructor!==Uint16Array)throw new Error("THREE.GLTFExporter: Unsupported bufferAttribute component type.");o=n.UNSIGNED_SHORT}var s=i(e),l=0,c=e.count;r.truncateDrawRange&&null===t.index&&(l=t.drawRange.start,c=t.drawRange.count!==1/0?t.drawRange.count:e.count);var p=u(e,o,l,c),d={bufferView:p.id,byteOffset:p.byteOffset,componentType:o,count:c,max:s.max,min:s.min,type:a[e.itemSize-1]};return w.accessors.push(d),w.accessors.length-1}function c(e){if(_.images[e.uuid])return _.images[e.uuid];w.images||(w.images=[]);var t={};r.embedImages||(t.uri=e.image.src),w.images.push(t);var n=w.images.length-1;return _.images[e.uuid]=n,n}function p(e){w.samplers||(w.samplers=[]);var t={magFilter:o[e.magFilter],minFilter:o[e.minFilter],wrapS:o[e.wrapS],wrapT:o[e.wrapT]};return w.samplers.push(t),w.samplers.length-1}function d(e){w.textures||(w.textures=[]);var t={sampler:p(e),source:c(e)};return w.textures.push(t),w.textures.length-1}function f(e){if(_.materials[e.uuid])return _.materials[e.uuid];if(w.materials||(w.materials=[]),e instanceof THREE.ShaderMaterial)return console.warn("GLTFExporter: THREE.ShaderMaterial not supported."),null;e instanceof THREE.MeshStandardMaterial||console.warn("GLTFExporter: Currently just THREE.StandardMaterial is supported. Material conversion may lose information.");var t={pbrMetallicRoughness:{}},n=e.color.toArray().concat([e.opacity]);if(a(n,[1,1,1,1])||(t.pbrMetallicRoughness.baseColorFactor=n),e instanceof THREE.MeshStandardMaterial?(t.pbrMetallicRoughness.metallicFactor=e.metalness,t.pbrMetallicRoughness.roughnessFactor=e.roughness):(t.pbrMetallicRoughness.metallicFactor=.5,t.pbrMetallicRoughness.roughnessFactor=.5),e.map&&(t.pbrMetallicRoughness.baseColorTexture={index:d(e.map)}),e instanceof THREE.MeshBasicMaterial||e instanceof THREE.LineBasicMaterial||e instanceof THREE.PointsMaterial);else{var o=e.emissive.clone().multiplyScalar(e.emissiveIntensity).toArray();a(o,[0,0,0])||(t.emissiveFactor=o),e.emissiveMap&&(t.emissiveTexture={index:d(e.emissiveMap)})}e.normalMap&&(t.normalTexture={index:d(e.normalMap)},e.normalScale.x!==-1&&(e.normalScale.x!==e.normalScale.y&&console.warn("GLTFExporter: Normal scale components are different, ignoring Y and exporting X"),t.normalTexture.scale=e.normalScale.x)),e.aoMap&&(t.occlusionTexture={index:d(e.aoMap)},1!==e.aoMapIntensity&&(t.occlusionTexture.strength=e.aoMapIntensity)),e.transparent&&(t.alphaMode="MASK",.5!==e.alphaTest&&(t.alphaCutoff=e.alphaTest)),e.side===THREE.DoubleSide&&(t.doubleSided=!0),e.name&&(t.name=e.name),w.materials.push(t);var r=w.materials.length-1;return _.materials[e.uuid]=r,r}function h(e){w.meshes||(w.meshes=[]);var t,o=e.geometry;if(e instanceof THREE.LineSegments)t=n.LINES;else if(e instanceof THREE.LineLoop)t=n.LINE_LOOP;else if(e instanceof THREE.Line)t=n.LINE_STRIP;else if(e instanceof THREE.Points)t=n.POINTS;else{if(!o.isBufferGeometry){var r=new THREE.BufferGeometry;r.fromGeometry(o),o=r}e.drawMode===THREE.TriangleFanDrawMode?(console.warn("GLTFExporter: TriangleFanDrawMode and wireframe incompatible."),t=n.TRIANGLE_FAN):t=e.drawMode===THREE.TriangleStripDrawMode?e.material.wireframe?n.LINE_STRIP:n.TRIANGLE_STRIP:e.material.wireframe?n.LINES:n.TRIANGLES}var a={primitives:[{mode:t,attributes:{}}]},i=f(e.material);null!==i&&(a.primitives[0].material=i),o.index&&(a.primitives[0].indices=l(o.index,o));var s=a.primitives[0].attributes,u=(o.attributes,{uv:"TEXCOORD_0",uv2:"TEXCOORD_1",color:"COLOR_0",skinWeight:"WEIGHTS_0",skinIndex:"JOINTS_0"});for(var c in o.attributes){var p=o.attributes[c];c=u[c]||c.toUpperCase(),s[c]=l(p,o)}return w.meshes.push(a),w.meshes.length-1}function m(e){w.cameras||(w.cameras=[]);var t=e instanceof THREE.OrthographicCamera,n={type:t?"orthographic":"perspective"};return t?n.orthographic={xmag:2*e.right,ymag:2*e.top,zfar:e.far,znear:e.near}:n.perspective={aspectRatio:e.aspect,yfov:THREE.Math.degToRad(e.fov)/e.aspect,zfar:e.far,znear:e.near},e.name&&(n.name=e.type),w.cameras.push(n),w.cameras.length-1}function v(e){if(e instanceof THREE.Light)return console.warn("GLTFExporter: Unsupported node type:",e.constructor.name),!1;w.nodes||(w.nodes=[]);var t={};if(r.trs){var n=e.quaternion.toArray(),o=e.position.toArray(),i=e.scale.toArray();a(n,[0,0,0,1])||(t.rotation=n),a(o,[0,0,0])||(t.position=o),a(i,[1,1,1])||(t.scale=i)}else e.updateMatrix(),a(e.matrix.elements,[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])||(t.matrix=e.matrix.elements);if(e.name&&(t.name=e.name),e.userData&&Object.keys(e.userData).length>0)try{t.extras=JSON.parse(JSON.stringify(e.userData))}catch(e){throw new Error("GLTFExporter: userData can't be serialized")}if(e instanceof THREE.Mesh||e instanceof THREE.Line||e instanceof THREE.Points?t.mesh=h(e):e instanceof THREE.Camera&&(t.camera=m(e)),e.children.length>0){for(var s=[],u=0,l=e.children.length;u<l;u++){var c=e.children[u];if(c.visible||r.onlyVisible===!1){var p=v(c);p!==!1&&s.push(p)}}s.length>0&&(t.children=s)}return w.nodes.push(t),w.nodes.length-1}function g(e){w.scenes||(w.scenes=[],w.scene=0);var t={nodes:[]};e.name&&(t.name=e.name),w.scenes.push(t);for(var n=[],o=0,a=e.children.length;o<a;o++){var i=e.children[o];if(i.visible||r.onlyVisible===!1){var s=v(i);s!==!1&&n.push(s)}}n.length>0&&(t.nodes=n)}function y(e){var t=new THREE.Scene;t.name="AuxScene";for(var n=0;n<e.length;n++)t.children.push(e[n]);g(t)}function b(e){e=e instanceof Array?e:[e];for(var t=[],n=0;n<e.length;n++)e[n]instanceof THREE.Scene?g(e[n]):t.push(e[n]);t.length>0&&y(t)}var E={trs:!1,onlyVisible:!0,truncateDrawRange:!0};r=Object.assign({},E,r);var w={asset:{version:"2.0",generator:"THREE.JS GLTFExporter"}},x=0,C=[],_={images:{},materials:{}};b(e);var T=new Blob(C,{type:"application/octet-stream"});if(w.buffers&&w.buffers.length>0){w.buffers[0].byteLength=T.size;var S=(URL.createObjectURL(T),new window.FileReader);S.readAsDataURL(T),S.onloadend=function(){var e=S.result;w.buffers[0].uri=e,t(w)}}else t(w)}}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e){function t(t){if(void 0!==e.helpers[t.id])for(var n in e.helpers[t.id])e.helpers[t.id][n].update()}function n(e,t){return S.set(2*e.x-1,-(2*e.y)+1),T.setFromCamera(S,b),T.intersectObjects(t)}function o(e,t,n){var o=e.getBoundingClientRect();return[(t-o.left)/o.width,(n-o.top)/o.height]}function r(){if(0===O.distanceTo(R)){var t=n(R,g);if(t.length>0){for(var o=!1,r=0;r<t.length;r++){var a=t[r].object;if((!a.el||a.el.getAttribute("visible"))&&!("PerspectiveCamera"===a.type||a.el&&a.el.getObject3D("camera")||a.parent.camera)){o=!0,void 0!==a.userData.object?e.selectEntity(a.userData.object.el):e.selectEntity(a.el);break}}o||e.selectEntity(null)}else e.selectEntity(null)}}function a(t){if(!(t instanceof CustomEvent)){t.preventDefault();var n=o(e.container,t.clientX,t.clientY);O.fromArray(n),document.addEventListener("mouseup",i,!1)}}function i(t){if(!(t instanceof CustomEvent)){var n=o(e.container,t.clientX,t.clientY);R.fromArray(n),r(),document.removeEventListener("mouseup",i,!1)}}function s(t){var n=t.changedTouches[0],r=o(e.container,n.clientX,n.clientY);O.fromArray(r),document.addEventListener("touchend",u,!1)}function u(t){var n=t.changedTouches[0],a=o(e.container,n.clientX,n.clientY);R.fromArray(a),r(),document.removeEventListener("touchend",u,!1)}function p(t){var r=o(e.container,t.clientX,t.clientY);k.fromArray(r);var a=n(k,g);if(a.length>0){var i=a[0];l.emit("objectfocused",i.object)}}function d(){e.container.removeEventListener("mousedown",a),e.container.removeEventListener("touchstart",s),e.container.removeEventListener("dblclick",p),_.dispose(),A.enabled=!1}function f(){e.container.addEventListener("mousedown",a,!1),e.container.addEventListener("touchstart",s,!1),e.container.addEventListener("dblclick",p,!1),_.activate(),A.enabled=!0}var h={dom:e.container},m=e.currentCameraEl;e.sceneEl.addEventListener("camera-set-active",function(t){e.opened&&(t.detail.cameraEl!==e.inspectorCameraEl&&(m=t.detail.cameraEl),!t.detail.cameraEl.isInspector)});var v=e.sceneHelpers,g=[],y=new THREE.GridHelper(30,60,5592405,2697513);v.add(y);var b=e.inspectorCameraEl.getObject3D("camera"),E=new THREE.BoxHelper;E.material.depthTest=!1,E.material.transparent=!0,E.material.color.set(2075378),E.visible=!1,v.add(E);var w=null,x=null,C=null,_=new THREE.TransformControls(b,e.container);_.addEventListener("change",function(){var e=_.object;void 0!==e&&(E.setFromObject(e).update(),t(e),l.emit("refreshsidebarobject3d",e))}),_.addEventListener("mouseDown",function(){var e=_.object;w=e.position.clone(),x=e.rotation.clone(),C=e.scale.clone(),A.enabled=!1}),_.addEventListener("mouseUp",function(){var e=_.object;if(null!==e)switch(_.getMode()){case"translate":!w.equals(e.position);break;case"rotate":!x.equals(e.rotation);break;case"scale":!C.equals(e.scale)}A.enabled=!0}),v.add(_),l.on("objectchanged",function(){e.selectedEntity.object3DMap.mesh&&E.update(e.selected)});var T=new THREE.Raycaster,S=new THREE.Vector2,O=new THREE.Vector2,R=new THREE.Vector2,k=new THREE.Vector2,A=new THREE.EditorControls(b,e.container);f(),A.addEventListener("change",function(){_.update(),c()}),l.on("inspectorcleared",function(){A.center.set(0,0,0)}),l.on("transformmodechanged",function(e){_.setMode(e)}),l.on("snapchanged",function(e){_.setTranslationSnap(e)}),l.on("spacechanged",function(e){_.setSpace(e)}),l.on("objectselected",function(e){E.visible=!1,_.detach(),e&&e.el&&(e.el.getObject3D("mesh")&&(E.setFromObject(e).update(),E.visible=!0),_.attach(e))}),l.on("objectfocused",function(e){A.focus(e),ga("send","event","Viewport","selectEntity")}),l.on("geometrychanged",function(e){null!==e&&E.setFromObject(e).update()}),l.on("objectadded",function(e){e.traverse(function(e){g.indexOf(e)===-1&&g.push(e)})}),l.on("objectchanged",function(n){e.selected===n&&n.geometry&&n.geometry.vertices&&n.geometry.vertices.length>0&&E.setFromObject(n).update(),_.update(),n instanceof THREE.PerspectiveCamera&&n.updateProjectionMatrix(),t(n)}),l.on("selectedentitycomponentchanged",function(){l.emit("objectchanged",e.selectedEntity.object3D)}),l.on("objectremoved",function(e){e.traverse(function(e){g.splice(g.indexOf(e),1)})}),l.on("helperadded",function(e){g.push(e.getObjectByName("picker")),t(e.fromObject.parent)}),l.on("helperremoved",function(e){g.splice(g.indexOf(e.getObjectByName("picker")),1)}),l.on("windowresize",function(){b.aspect=h.dom.offsetWidth/h.dom.offsetHeight,b.updateProjectionMatrix()}),l.on("gridvisibilitychanged",function(e){y.visible=e}),l.on("togglegrid",function(){y.visible=!y.visible}),l.on("inspectormodechanged",function(t){t?(f(),e.inspectorCameraEl.setAttribute("camera","active","true"),Array.prototype.slice.call(document.querySelectorAll(".a-enter-vr,.rs-base")).forEach(function(e){e.style.display="none"})):(d(),m.setAttribute("camera","active","true"),Array.prototype.slice.call(document.querySelectorAll(".a-enter-vr,.rs-base")).forEach(function(e){e.style.display="block"})),ga("send","event","Viewport","toggleEditor",t)})}var a=n(199),i=o(a),s=n(200),u=(o(s),n(201)),l=(o(u),n(202),n(176)),c=((0,i.default)(function(e){ga("send","event","Viewport","transformEntity",e)},3e3),(0,i.default)(function(){ga("send","event","Viewport","changeEditorCamera")},3e3));e.exports=r},function(e,t){(function(t){function n(e,t,n){function r(t){var n=m,o=v;return m=v=void 0,_=t,y=e.apply(o,n)}function a(e){return _=e,b=setTimeout(c,t),T?r(e):y}function u(e){var n=e-C,o=e-_,r=t-n;return S?w(r,g-o):r}function l(e){var n=e-C,o=e-_;return void 0===C||n>=t||n<0||S&&o>=g}function c(){var e=x();return l(e)?p(e):void(b=setTimeout(c,u(e)))}function p(e){return b=void 0,O&&m?r(e):(m=v=void 0,y)}function d(){void 0!==b&&clearTimeout(b),_=0,m=C=v=b=void 0}function f(){return void 0===b?y:p(x())}function h(){var e=x(),n=l(e);if(m=arguments,v=this,C=e,n){if(void 0===b)return a(C);if(S)return b=setTimeout(c,t),r(C)}return void 0===b&&(b=setTimeout(c,t)),y}var m,v,g,y,b,C,_=0,T=!1,S=!1,O=!0;if("function"!=typeof e)throw new TypeError(s);return t=i(t)||0,o(n)&&(T=!!n.leading,S="maxWait"in n,g=S?E(i(n.maxWait)||0,t):g,O="trailing"in n?!!n.trailing:O),h.cancel=d,h.flush=f,h}function o(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function r(e){return!!e&&"object"==typeof e}function a(e){return"symbol"==typeof e||r(e)&&b.call(e)==l}function i(e){if("number"==typeof e)return e;if(a(e))return u;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(c,"");var n=d.test(e);return n||f.test(e)?h(e.slice(2),n?2:8):p.test(e)?u:+e}var s="Expected a function",u=NaN,l="[object Symbol]",c=/^\s+|\s+$/g,p=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,f=/^0o[0-7]+$/i,h=parseInt,m="object"==typeof t&&t&&t.Object===Object&&t,v="object"==typeof self&&self&&self.Object===Object&&self,g=m||v||Function("return this")(),y=Object.prototype,b=y.toString,E=Math.max,w=Math.min,x=function(){return g.Date.now()};e.exports=n}).call(t,function(){return this}())},function(e,t){"use strict";!function(){var e=function(e){THREE.MeshBasicMaterial.call(this),this.depthTest=!1,this.depthWrite=!1,this.side=THREE.FrontSide,this.transparent=!0,this.setValues(e),this.oldColor=this.color.clone(),this.oldOpacity=this.opacity,this.highlight=function(e){e?(this.color.setRGB(1,1,0),this.opacity=1):(this.color.copy(this.oldColor),this.opacity=this.oldOpacity)}};e.prototype=Object.create(THREE.MeshBasicMaterial.prototype),e.prototype.constructor=e;var t=function(e){THREE.LineBasicMaterial.call(this),this.depthTest=!1,this.depthWrite=!1,this.transparent=!0,this.linewidth=1,this.setValues(e),this.oldColor=this.color.clone(),this.oldOpacity=this.opacity,this.highlight=function(e){e?(this.color.setRGB(1,1,0),this.opacity=1):(this.color.copy(this.oldColor),this.opacity=this.oldOpacity)}};t.prototype=Object.create(THREE.LineBasicMaterial.prototype),t.prototype.constructor=t;var n=new e({visible:!1,transparent:!1});THREE.TransformGizmo=function(){this.init=function(){THREE.Object3D.call(this),this.handles=new THREE.Object3D,this.pickers=new THREE.Object3D,this.planes=new THREE.Object3D,this.add(this.handles),this.add(this.pickers),this.add(this.planes);var e=new THREE.PlaneBufferGeometry(50,50,2,2),t=new THREE.MeshBasicMaterial({visible:!1,side:THREE.DoubleSide}),n={XY:new THREE.Mesh(e,t),YZ:new THREE.Mesh(e,t),XZ:new THREE.Mesh(e,t),XYZE:new THREE.Mesh(e,t)};this.activePlane=n.XYZE,n.YZ.rotation.set(0,Math.PI/2,0),n.XZ.rotation.set(-Math.PI/2,0,0);for(var o in n)n[o].name=o,this.planes.add(n[o]),this.planes[o]=n[o];var r=function(e,t){for(var n in e)for(o=e[n].length;o--;){var r=e[n][o][0],a=e[n][o][1],i=e[n][o][2];r.name=n,a&&r.position.set(a[0],a[1],a[2]),i&&r.rotation.set(i[0],i[1],i[2]),t.add(r)}};r(this.handleGizmos,this.handles),r(this.pickerGizmos,this.pickers),this.traverse(function(e){if(e instanceof THREE.Mesh){e.updateMatrix();var t=e.geometry.clone();t.applyMatrix(e.matrix),e.geometry=t,e.position.set(0,0,0),e.rotation.set(0,0,0),e.scale.set(1,1,1)}})},this.highlight=function(e){this.traverse(function(t){t.material&&t.material.highlight&&(t.name===e?t.material.highlight(!0):t.material.highlight(!1))})}},THREE.TransformGizmo.prototype=Object.create(THREE.Object3D.prototype),THREE.TransformGizmo.prototype.constructor=THREE.TransformGizmo,THREE.TransformGizmo.prototype.update=function(e,t){var n=new THREE.Vector3(0,0,0),o=new THREE.Vector3(0,1,0),r=new THREE.Matrix4;this.traverse(function(a){a.name.search("E")!==-1?a.quaternion.setFromRotationMatrix(r.lookAt(t,n,o)):a.name.search("X")===-1&&a.name.search("Y")===-1&&a.name.search("Z")===-1||a.quaternion.setFromEuler(e)})},THREE.TransformGizmoTranslate=function(){THREE.TransformGizmo.call(this);var o=new THREE.Geometry,r=new THREE.Mesh(new THREE.CylinderGeometry(0,.05,.2,12,1,!1));r.position.y=.5,r.updateMatrix(),o.merge(r.geometry,r.matrix);var a=new THREE.BufferGeometry;a.addAttribute("position",new THREE.Float32BufferAttribute([0,0,0,1,0,0],3));var i=new THREE.BufferGeometry;i.addAttribute("position",new THREE.Float32BufferAttribute([0,0,0,0,1,0],3));var s=new THREE.BufferGeometry;s.addAttribute("position",new THREE.Float32BufferAttribute([0,0,0,0,0,1],3)),this.handleGizmos={X:[[new THREE.Mesh(o,new e({color:16711680})),[.5,0,0],[0,0,-Math.PI/2]],[new THREE.Line(a,new t({color:16711680}))]],Y:[[new THREE.Mesh(o,new e({color:65280})),[0,.5,0]],[new THREE.Line(i,new t({color:65280}))]],Z:[[new THREE.Mesh(o,new e({color:255})),[0,0,.5],[Math.PI/2,0,0]],[new THREE.Line(s,new t({color:255}))]],XYZ:[[new THREE.Mesh(new THREE.OctahedronGeometry(.1,0),new e({color:16777215,opacity:.25})),[0,0,0],[0,0,0]]],XY:[[new THREE.Mesh(new THREE.PlaneBufferGeometry(.29,.29),new e({color:16776960,opacity:.25})),[.15,.15,0]]],YZ:[[new THREE.Mesh(new THREE.PlaneBufferGeometry(.29,.29),new e({color:65535,opacity:.25})),[0,.15,.15],[0,Math.PI/2,0]]],XZ:[[new THREE.Mesh(new THREE.PlaneBufferGeometry(.29,.29),new e({color:16711935,opacity:.25})),[.15,0,.15],[-Math.PI/2,0,0]]]},this.pickerGizmos={X:[[new THREE.Mesh(new THREE.CylinderBufferGeometry(.2,0,1,4,1,!1),n),[.6,0,0],[0,0,-Math.PI/2]]],Y:[[new THREE.Mesh(new THREE.CylinderBufferGeometry(.2,0,1,4,1,!1),n),[0,.6,0]]],Z:[[new THREE.Mesh(new THREE.CylinderBufferGeometry(.2,0,1,4,1,!1),n),[0,0,.6],[Math.PI/2,0,0]]],XYZ:[[new THREE.Mesh(new THREE.OctahedronGeometry(.2,0),n)]],XY:[[new THREE.Mesh(new THREE.PlaneBufferGeometry(.4,.4),n),[.2,.2,0]]],YZ:[[new THREE.Mesh(new THREE.PlaneBufferGeometry(.4,.4),n),[0,.2,.2],[0,Math.PI/2,0]]],XZ:[[new THREE.Mesh(new THREE.PlaneBufferGeometry(.4,.4),n),[.2,0,.2],[-Math.PI/2,0,0]]]},this.setActivePlane=function(e,t){var n=new THREE.Matrix4;t.applyMatrix4(n.getInverse(n.extractRotation(this.planes.XY.matrixWorld))),"X"===e&&(this.activePlane=this.planes.XY,Math.abs(t.y)>Math.abs(t.z)&&(this.activePlane=this.planes.XZ)),"Y"===e&&(this.activePlane=this.planes.XY,Math.abs(t.x)>Math.abs(t.z)&&(this.activePlane=this.planes.YZ)),"Z"===e&&(this.activePlane=this.planes.XZ,Math.abs(t.x)>Math.abs(t.y)&&(this.activePlane=this.planes.YZ)),"XYZ"===e&&(this.activePlane=this.planes.XYZE),"XY"===e&&(this.activePlane=this.planes.XY),"YZ"===e&&(this.activePlane=this.planes.YZ),"XZ"===e&&(this.activePlane=this.planes.XZ)},this.init()},THREE.TransformGizmoTranslate.prototype=Object.create(THREE.TransformGizmo.prototype),THREE.TransformGizmoTranslate.prototype.constructor=THREE.TransformGizmoTranslate,THREE.TransformGizmoRotate=function(){THREE.TransformGizmo.call(this);var e=function(e,t,n){var o=new THREE.BufferGeometry,r=[];n=n?n:1;for(var a=0;a<=64*n;++a)"x"===t&&r.push(0,Math.cos(a/32*Math.PI)*e,Math.sin(a/32*Math.PI)*e),"y"===t&&r.push(Math.cos(a/32*Math.PI)*e,0,Math.sin(a/32*Math.PI)*e),"z"===t&&r.push(Math.sin(a/32*Math.PI)*e,Math.cos(a/32*Math.PI)*e,0);return o.addAttribute("position",new THREE.Float32BufferAttribute(r,3)),o};this.handleGizmos={X:[[new THREE.Line(new e(1,"x",.5),new t({color:16711680}))]],Y:[[new THREE.Line(new e(1,"y",.5),new t({color:65280}))]],Z:[[new THREE.Line(new e(1,"z",.5),new t({color:255}))]],E:[[new THREE.Line(new e(1.25,"z",1),new t({color:13421568}))]],XYZE:[[new THREE.Line(new e(1,"z",1),new t({color:7895160}))]]},this.pickerGizmos={X:[[new THREE.Mesh(new THREE.TorusBufferGeometry(1,.12,4,12,Math.PI),n),[0,0,0],[0,-Math.PI/2,-Math.PI/2]]],Y:[[new THREE.Mesh(new THREE.TorusBufferGeometry(1,.12,4,12,Math.PI),n),[0,0,0],[Math.PI/2,0,0]]],Z:[[new THREE.Mesh(new THREE.TorusBufferGeometry(1,.12,4,12,Math.PI),n),[0,0,0],[0,0,-Math.PI/2]]],E:[[new THREE.Mesh(new THREE.TorusBufferGeometry(1.25,.12,2,24),n)]],XYZE:[[new THREE.Mesh(new THREE.Geometry)]]},this.setActivePlane=function(e){"E"===e&&(this.activePlane=this.planes.XYZE),"X"===e&&(this.activePlane=this.planes.YZ),"Y"===e&&(this.activePlane=this.planes.XZ),"Z"===e&&(this.activePlane=this.planes.XY)},this.update=function(e,t){THREE.TransformGizmo.prototype.update.apply(this,arguments);var n=({handles:this.handles,pickers:this.pickers},new THREE.Matrix4),o=new THREE.Euler(0,0,1),r=new THREE.Quaternion,a=new THREE.Vector3(1,0,0),i=new THREE.Vector3(0,1,0),s=new THREE.Vector3(0,0,1),u=new THREE.Quaternion,l=new THREE.Quaternion,c=new THREE.Quaternion,p=t.clone();o.copy(this.planes.XY.rotation),r.setFromEuler(o),n.makeRotationFromQuaternion(r).getInverse(n),p.applyMatrix4(n),this.traverse(function(e){r.setFromEuler(o),"X"===e.name&&(u.setFromAxisAngle(a,Math.atan2(-p.y,p.z)),r.multiplyQuaternions(r,u),e.quaternion.copy(r)),"Y"===e.name&&(l.setFromAxisAngle(i,Math.atan2(p.x,p.z)),r.multiplyQuaternions(r,l),e.quaternion.copy(r)),"Z"===e.name&&(c.setFromAxisAngle(s,Math.atan2(p.y,p.x)),r.multiplyQuaternions(r,c),e.quaternion.copy(r))})},this.init()},THREE.TransformGizmoRotate.prototype=Object.create(THREE.TransformGizmo.prototype),THREE.TransformGizmoRotate.prototype.constructor=THREE.TransformGizmoRotate,THREE.TransformGizmoScale=function(){THREE.TransformGizmo.call(this);var o=new THREE.Geometry,r=new THREE.Mesh(new THREE.BoxGeometry(.125,.125,.125));r.position.y=.5,r.updateMatrix(),o.merge(r.geometry,r.matrix);var a=new THREE.BufferGeometry;a.addAttribute("position",new THREE.Float32BufferAttribute([0,0,0,1,0,0],3));var i=new THREE.BufferGeometry;i.addAttribute("position",new THREE.Float32BufferAttribute([0,0,0,0,1,0],3));var s=new THREE.BufferGeometry;s.addAttribute("position",new THREE.Float32BufferAttribute([0,0,0,0,0,1],3)),this.handleGizmos={X:[[new THREE.Mesh(o,new e({color:16711680})),[.5,0,0],[0,0,-Math.PI/2]],[new THREE.Line(a,new t({color:16711680}))]],Y:[[new THREE.Mesh(o,new e({color:65280})),[0,.5,0]],[new THREE.Line(i,new t({color:65280}))]],Z:[[new THREE.Mesh(o,new e({color:255})),[0,0,.5],[Math.PI/2,0,0]],[new THREE.Line(s,new t({color:255}))]],XYZ:[[new THREE.Mesh(new THREE.BoxBufferGeometry(.125,.125,.125),new e({color:16777215,opacity:.25}))]]},this.pickerGizmos={X:[[new THREE.Mesh(new THREE.CylinderBufferGeometry(.2,0,1,4,1,!1),n),[.6,0,0],[0,0,-Math.PI/2]]],Y:[[new THREE.Mesh(new THREE.CylinderBufferGeometry(.2,0,1,4,1,!1),n),[0,.6,0]]],Z:[[new THREE.Mesh(new THREE.CylinderBufferGeometry(.2,0,1,4,1,!1),n),[0,0,.6],[Math.PI/2,0,0]]],XYZ:[[new THREE.Mesh(new THREE.BoxBufferGeometry(.4,.4,.4),n)]]},this.setActivePlane=function(e,t){var n=new THREE.Matrix4;
t.applyMatrix4(n.getInverse(n.extractRotation(this.planes.XY.matrixWorld))),"X"===e&&(this.activePlane=this.planes.XY,Math.abs(t.y)>Math.abs(t.z)&&(this.activePlane=this.planes.XZ)),"Y"===e&&(this.activePlane=this.planes.XY,Math.abs(t.x)>Math.abs(t.z)&&(this.activePlane=this.planes.YZ)),"Z"===e&&(this.activePlane=this.planes.XZ,Math.abs(t.x)>Math.abs(t.y)&&(this.activePlane=this.planes.YZ)),"XYZ"===e&&(this.activePlane=this.planes.XYZE)},this.init()},THREE.TransformGizmoScale.prototype=Object.create(THREE.TransformGizmo.prototype),THREE.TransformGizmoScale.prototype.constructor=THREE.TransformGizmoScale,THREE.TransformControls=function(e,t){function n(e){if(void 0!==s.object&&l!==!0&&(void 0===e.button||0===e.button)){var t=e.changedTouches?e.changedTouches[0]:e,n=i(t,c[u].pickers.children),o=null;n&&(o=n.object.name,e.preventDefault()),s.axis!==o&&(s.axis=o,s.update(),s.dispatchEvent(f))}}function o(e){if(void 0!==s.object&&l!==!0&&(void 0===e.button||0===e.button)){var t=e.changedTouches?e.changedTouches[0]:e;if(0===t.button||void 0===t.button){var n=i(t,c[u].pickers.children);if(n){e.preventDefault(),e.stopPropagation(),s.dispatchEvent(h),s.axis=n.object.name,s.update(),T.copy(K).sub(B).normalize(),c[u].setActivePlane(s.axis,T);var o=i(t,[c[u].activePlane]);o&&(j.copy(s.object.position),L.copy(s.object.scale),H.extractRotation(s.object.matrix),W.extractRotation(s.object.matrixWorld),U.extractRotation(s.object.parent.matrixWorld),V.setFromMatrixScale(S.getInverse(s.object.parent.matrixWorld)),E.copy(o.point))}}l=!0}}function r(e){if(void 0!==s.object&&null!==s.axis&&l!==!1&&(void 0===e.button||0===e.button)){var t=e.changedTouches?e.changedTouches[0]:e,n=i(t,[c[u].activePlane]);n!==!1&&(e.preventDefault(),e.stopPropagation(),b.copy(n.point),"translate"===u?(b.sub(E),b.multiply(V),"local"!==s.space&&"scale"!==u||(b.applyMatrix4(S.getInverse(W)),s.axis.search("X")===-1&&(b.x=0),s.axis.search("Y")===-1&&(b.y=0),s.axis.search("Z")===-1&&(b.z=0),b.applyMatrix4(H),s.object.position.copy(j),s.object.position.add(b)),"world"!==s.space&&s.axis.search("XYZ")===-1||(s.axis.search("X")===-1&&(b.x=0),s.axis.search("Y")===-1&&(b.y=0),s.axis.search("Z")===-1&&(b.z=0),b.applyMatrix4(S.getInverse(U)),s.object.position.copy(j),s.object.position.add(b)),null!==s.translationSnap&&("local"!==s.space&&"scale"!==u||s.object.position.applyMatrix4(S.getInverse(W)),s.axis.search("X")!==-1&&(s.object.position.x=Math.round(s.object.position.x/s.translationSnap)*s.translationSnap),s.axis.search("Y")!==-1&&(s.object.position.y=Math.round(s.object.position.y/s.translationSnap)*s.translationSnap),s.axis.search("Z")!==-1&&(s.object.position.z=Math.round(s.object.position.z/s.translationSnap)*s.translationSnap),"local"!==s.space&&"scale"!==u||s.object.position.applyMatrix4(W))):"scale"===u?(b.sub(E),b.multiply(V),"local"!==s.space&&"scale"!==u||("XYZ"===s.axis?(C=1+b.y/Math.max(L.x,L.y,L.z),s.object.scale.x=L.x*C,s.object.scale.y=L.y*C,s.object.scale.z=L.z*C):(b.applyMatrix4(S.getInverse(W)),"X"===s.axis&&(s.object.scale.x=L.x*(1+b.x/L.x)),"Y"===s.axis&&(s.object.scale.y=L.y*(1+b.y/L.y)),"Z"===s.axis&&(s.object.scale.z=L.z*(1+b.z/L.z))))):"rotate"===u&&(b.sub(B),b.multiply(V),O.copy(E).sub(B),O.multiply(V),"E"===s.axis?(b.applyMatrix4(S.getInverse(_)),O.applyMatrix4(S.getInverse(_)),w.set(Math.atan2(b.z,b.y),Math.atan2(b.x,b.z),Math.atan2(b.y,b.x)),x.set(Math.atan2(O.z,O.y),Math.atan2(O.x,O.z),Math.atan2(O.y,O.x)),R.setFromRotationMatrix(S.getInverse(U)),F.setFromAxisAngle(T,w.z-x.z),P.setFromRotationMatrix(W),R.multiplyQuaternions(R,F),R.multiplyQuaternions(R,P),s.object.quaternion.copy(R)):"XYZE"===s.axis?(F.setFromEuler(b.clone().cross(O).normalize()),R.setFromRotationMatrix(S.getInverse(U)),N.setFromAxisAngle(F,-b.clone().angleTo(O)),P.setFromRotationMatrix(W),R.multiplyQuaternions(R,N),R.multiplyQuaternions(R,P),s.object.quaternion.copy(R)):"local"===s.space||"scale"===u?(b.applyMatrix4(S.getInverse(W)),O.applyMatrix4(S.getInverse(W)),w.set(Math.atan2(b.z,b.y),Math.atan2(b.x,b.z),Math.atan2(b.y,b.x)),x.set(Math.atan2(O.z,O.y),Math.atan2(O.x,O.z),Math.atan2(O.y,O.x)),P.setFromRotationMatrix(H),null!==s.rotationSnap?(N.setFromAxisAngle(k,Math.round((w.x-x.x)/s.rotationSnap)*s.rotationSnap),I.setFromAxisAngle(A,Math.round((w.y-x.y)/s.rotationSnap)*s.rotationSnap),D.setFromAxisAngle(M,Math.round((w.z-x.z)/s.rotationSnap)*s.rotationSnap)):(N.setFromAxisAngle(k,w.x-x.x),I.setFromAxisAngle(A,w.y-x.y),D.setFromAxisAngle(M,w.z-x.z)),"X"===s.axis&&P.multiplyQuaternions(P,N),"Y"===s.axis&&P.multiplyQuaternions(P,I),"Z"===s.axis&&P.multiplyQuaternions(P,D),s.object.quaternion.copy(P)):"world"===s.space&&(w.set(Math.atan2(b.z,b.y),Math.atan2(b.x,b.z),Math.atan2(b.y,b.x)),x.set(Math.atan2(O.z,O.y),Math.atan2(O.x,O.z),Math.atan2(O.y,O.x)),R.setFromRotationMatrix(S.getInverse(U)),null!==s.rotationSnap?(N.setFromAxisAngle(k,Math.round((w.x-x.x)/s.rotationSnap)*s.rotationSnap),I.setFromAxisAngle(A,Math.round((w.y-x.y)/s.rotationSnap)*s.rotationSnap),D.setFromAxisAngle(M,Math.round((w.z-x.z)/s.rotationSnap)*s.rotationSnap)):(N.setFromAxisAngle(k,w.x-x.x),I.setFromAxisAngle(A,w.y-x.y),D.setFromAxisAngle(M,w.z-x.z)),P.setFromRotationMatrix(W),"X"===s.axis&&R.multiplyQuaternions(R,N),"Y"===s.axis&&R.multiplyQuaternions(R,I),"Z"===s.axis&&R.multiplyQuaternions(R,D),R.multiplyQuaternions(R,P),s.object.quaternion.copy(R))),s.update(),s.dispatchEvent(f),s.dispatchEvent(v))}}function a(e){e.preventDefault(),void 0!==e.button&&0!==e.button||(l&&null!==s.axis&&(m.mode=u,s.dispatchEvent(m)),l=!1,"TouchEvent"in window&&e instanceof TouchEvent?(s.axis=null,s.update(),s.dispatchEvent(f)):n(e))}function i(n,o){var r=t.getBoundingClientRect(),a=(n.clientX-r.left)/r.width,i=(n.clientY-r.top)/r.height;y.set(2*a-1,-(2*i)+1),g.setFromCamera(y,e);var s=g.intersectObjects(o,!0);return!!s[0]&&s[0]}THREE.Object3D.call(this),t=void 0!==t?t:document,this.object=void 0,this.visible=!1,this.translationSnap=null,this.rotationSnap=null,this.space="world",this.size=1,this.axis=null;var s=this,u="translate",l=!1,c={translate:new THREE.TransformGizmoTranslate,rotate:new THREE.TransformGizmoRotate,scale:new THREE.TransformGizmoScale};for(var p in c){var d=c[p];d.visible=p===u,this.add(d)}var f={type:"change"},h={type:"mouseDown"},m={type:"mouseUp",mode:u},v={type:"objectChange"},g=new THREE.Raycaster,y=new THREE.Vector2,b=new THREE.Vector3,E=new THREE.Vector3,w=new THREE.Vector3,x=new THREE.Vector3,C=1,_=new THREE.Matrix4,T=new THREE.Vector3,S=new THREE.Matrix4,O=new THREE.Vector3,R=new THREE.Quaternion,k=new THREE.Vector3(1,0,0),A=new THREE.Vector3(0,1,0),M=new THREE.Vector3(0,0,1),P=new THREE.Quaternion,N=new THREE.Quaternion,I=new THREE.Quaternion,D=new THREE.Quaternion,F=new THREE.Quaternion,j=new THREE.Vector3,L=new THREE.Vector3,H=new THREE.Matrix4,U=new THREE.Matrix4,V=new THREE.Vector3,B=new THREE.Vector3,z=new THREE.Euler,W=new THREE.Matrix4,K=new THREE.Vector3,q=new THREE.Euler;this.activate=function(){t.addEventListener("mousedown",o,!1),t.addEventListener("touchstart",o,!1),t.addEventListener("mousemove",n,!1),t.addEventListener("touchmove",n,!1),t.addEventListener("mousemove",r,!1),t.addEventListener("touchmove",r,!1),t.addEventListener("mouseup",a,!1),t.addEventListener("mouseout",a,!1),t.addEventListener("touchend",a,!1),t.addEventListener("touchcancel",a,!1),t.addEventListener("touchleave",a,!1)},this.activate(),this.dispose=function(){t.removeEventListener("mousedown",o),t.removeEventListener("touchstart",o),t.removeEventListener("mousemove",n),t.removeEventListener("touchmove",n),t.removeEventListener("mousemove",r),t.removeEventListener("touchmove",r),t.removeEventListener("mouseup",a),t.removeEventListener("mouseout",a),t.removeEventListener("touchend",a),t.removeEventListener("touchcancel",a),t.removeEventListener("touchleave",a)},this.attach=function(e){this.object=e,this.visible=!0,this.update()},this.detach=function(){this.object=void 0,this.visible=!1,this.axis=null},this.getMode=function(){return u},this.setMode=function(e){u=e?e:u;for(var t in c)c[t].visible=t===u;this.update(),s.dispatchEvent(f)},this.setTranslationSnap=function(e){s.translationSnap=e},this.setRotationSnap=function(e){s.rotationSnap=e},this.setSize=function(e){s.size=e,this.update(),s.dispatchEvent(f)},this.toggleSpace=function(){this.setSpace("local"===s.space?"world":"local")},this.setSpace=function(e){s.space=e,this.update(),s.dispatchEvent(f)},this.update=function(){void 0!==s.object&&(s.object.updateMatrixWorld(),B.setFromMatrixPosition(s.object.matrixWorld),z.setFromRotationMatrix(S.extractRotation(s.object.matrixWorld)),e.updateMatrixWorld(),K.setFromMatrixPosition(e.matrixWorld),q.setFromRotationMatrix(S.extractRotation(e.matrixWorld)),C=B.distanceTo(K)/6*s.size,this.position.copy(B),this.scale.set(C,C,C),T.copy(K).sub(B).normalize(),"local"===s.space||"scale"===u?c[u].update(z,T):"world"===s.space&&c[u].update(new THREE.Euler,T),c[u].highlight(s.axis))}},THREE.TransformControls.prototype=Object.create(THREE.Object3D.prototype),THREE.TransformControls.prototype.constructor=THREE.TransformControls}()},function(e,t){"use strict";THREE.EditorControls=function(e,t){function n(e){l.enabled!==!1&&(0===e.button?d=p.ROTATE:1===e.button?d=p.ZOOM:2===e.button&&(d=p.PAN),v.set(e.clientX,e.clientY),t.addEventListener("mousemove",o,!1),t.addEventListener("mouseup",r,!1),t.addEventListener("mouseout",r,!1),t.addEventListener("dblclick",r,!1))}function o(e){if(l.enabled!==!1){m.set(e.clientX,e.clientY);var t=m.x-v.x,n=m.y-v.y;d===p.ROTATE?l.rotate(new THREE.Vector3(-t*l.rotationSpeed,-n*l.rotationSpeed,0)):d===p.ZOOM?l.zoom(new THREE.Vector3(0,0,n)):d===p.PAN&&l.pan(new THREE.Vector3(-t,n,0)),v.set(e.clientX,e.clientY)}}function r(e){t.removeEventListener("mousemove",o,!1),t.removeEventListener("mouseup",r,!1),t.removeEventListener("mouseout",r,!1),t.removeEventListener("dblclick",r,!1),d=p.NONE}function a(e){e.preventDefault(),l.zoom(new THREE.Vector3(0,0,e.deltaY))}function i(e){e.preventDefault()}function s(e){if(l.enabled!==!1){switch(e.touches.length){case 1:b[0].set(e.touches[0].pageX,e.touches[0].pageY,0),b[1].set(e.touches[0].pageX,e.touches[0].pageY,0);break;case 2:b[0].set(e.touches[0].pageX,e.touches[0].pageY,0),b[1].set(e.touches[1].pageX,e.touches[1].pageY,0),w=b[0].distanceTo(b[1])}E[0].copy(b[0]),E[1].copy(b[1])}}function u(e){function t(e,t){var n=t[0];for(var o in t)n.distanceTo(e)>t[o].distanceTo(e)&&(n=t[o]);return n}if(l.enabled!==!1){switch(e.preventDefault(),e.stopPropagation(),e.touches.length){case 1:b[0].set(e.touches[0].pageX,e.touches[0].pageY,0),b[1].set(e.touches[0].pageX,e.touches[0].pageY,0),l.rotate(b[0].sub(t(b[0],E)).multiplyScalar(-l.rotationSpeed));break;case 2:b[0].set(e.touches[0].pageX,e.touches[0].pageY,0),b[1].set(e.touches[1].pageX,e.touches[1].pageY,0);var n=b[0].distanceTo(b[1]);l.zoom(new THREE.Vector3(0,0,w-n)),w=n;var o=b[0].clone().sub(t(b[0],E)),r=b[1].clone().sub(t(b[1],E));o.x=-o.x,r.x=-r.x,l.pan(o.add(r).multiplyScalar(.5))}E[0].copy(b[0]),E[1].copy(b[1])}}t=void 0!==t?t:document,this.enabled=!0,this.center=new THREE.Vector3,this.panSpeed=.001,this.zoomSpeed=.001,this.rotationSpeed=.005;var l=this,c=new THREE.Vector3,p={NONE:-1,ROTATE:0,ZOOM:1,PAN:2},d=p.NONE,f=this.center,h=new THREE.Matrix3,m=new THREE.Vector2,v=new THREE.Vector2,g=new THREE.Spherical,y={type:"change"};this.focus=function(t){var n,o=(new THREE.Box3).setFromObject(t);o.isEmpty()===!1?(f.copy(o.getCenter()),n=o.getBoundingSphere().radius):(f.setFromMatrixPosition(t.matrixWorld),n=.1);var r=new THREE.Vector3(0,0,1);r.applyQuaternion(e.quaternion),r.multiplyScalar(4*n),e.position.copy(f).add(r),l.dispatchEvent(y)},this.pan=function(t){var n=e.position.distanceTo(f);t.multiplyScalar(n*l.panSpeed),t.applyMatrix3(h.getNormalMatrix(e.matrix)),e.position.add(t),f.add(t),l.dispatchEvent(y)},this.zoom=function(t){var n=e.position.distanceTo(f);t.multiplyScalar(n*l.zoomSpeed),t.length()>n||(t.applyMatrix3(h.getNormalMatrix(e.matrix)),e.position.add(t),l.dispatchEvent(y))},this.rotate=function(t){c.copy(e.position).sub(f),g.setFromVector3(c),g.theta+=t.x,g.phi+=t.y,g.makeSafe(),c.setFromSpherical(g),e.position.copy(f).add(c),e.lookAt(f),l.dispatchEvent(y)},this.dispose=function(){t.removeEventListener("contextmenu",i,!1),t.removeEventListener("mousedown",n,!1),t.removeEventListener("wheel",a,!1),t.removeEventListener("mousemove",o,!1),t.removeEventListener("mouseup",r,!1),t.removeEventListener("mouseout",r,!1),t.removeEventListener("dblclick",r,!1),t.removeEventListener("touchstart",s,!1),t.removeEventListener("touchmove",u,!1)},t.addEventListener("contextmenu",i,!1),t.addEventListener("mousedown",n,!1),t.addEventListener("wheel",a,!1);var b=[new THREE.Vector3,new THREE.Vector3,new THREE.Vector3],E=[new THREE.Vector3,new THREE.Vector3,new THREE.Vector3],w=null;t.addEventListener("touchstart",s,!1),t.addEventListener("touchmove",u,!1)},THREE.EditorControls.prototype=Object.create(THREE.EventDispatcher.prototype),THREE.EditorControls.prototype.constructor=THREE.EditorControls},function(e,t){"use strict";function n(e){return parseFloat(e.toFixed(3))}function o(e){for(var t=e.split("."),n=!1,o=0;o<t.length;o++)n?t[o]=0:"0"!==t[o]&&(n=!0);return t.join(".")}function r(e,t){var n,o,a="undefined"==typeof e?"undefined":l(e),i="undefined"==typeof t?"undefined":l(t);if(a!==i)return!1;if("object"!==a||null===e||null===t)return e===t;if(n=Object.keys(e),o=Object.keys(t),n.length!==o.length)return!1;for(var s=0;s<n.length;s++)if(!r(e[n[s]],t[o[s]]))return!1;return!0}function a(){var e=window.navigator.userAgent,t=window.navigator.platform,n=["Macintosh","MacIntel","MacPPC","Mac68K"],o=["Win32","Win64","Windows","WinCE"],r=["iPhone","iPad","iPod"],a=null;return n.indexOf(t)!==-1?a="macos":r.indexOf(t)!==-1?a="ios":o.indexOf(t)!==-1?a="windows":/Android/.test(e)?a="android":!a&&/Linux/.test(t)&&(a="linux"),a}function i(e){var t=document.createElement("link");t.href=e,t.type="text/css",t.rel="stylesheet",t.media="screen,print",t.setAttribute("data-aframe-inspector","style"),document.head.appendChild(t)}function s(e,t,n){var o=document.createElement("script");o.src=e,o.charset="utf-8",o.setAttribute("data-aframe-inspector","style"),t&&o.addEventListener("load",t),n&&o.addEventListener("error",n),document.head.appendChild(o)}function u(e,t,n){function o(e,t){r.href=URL.createObjectURL(e),r.download=t||"ascene.html",r.click()}var r=document.createElement("a");r.style.display="none",document.body.appendChild(r),o(new Blob([e],{type:n}),t)}var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};e.exports={equal:r,getNumber:n,getMajorVersion:o,getOS:a,os:a(),injectCSS:i,injectJS:s,saveString:u}},function(e,t,n){"use strict";function o(){this.components=[],this.loadFromRegistry()}n(202);o.prototype={loadFromRegistry:function(){},addComponentToScene:function(e,t){var n=this.components[e];if(n.included)return Promise.resolve(t);var o=document.createElement("script");return o.src=n.file,o.setAttribute("data-component-description",n.description),o.setAttribute("data-component-names",n.names),o.setAttribute("data-component-url",n.npmUrl),o.setAttribute("data-package-name",e),new Promise(function(e){o.addEventListener("load",function(){o.onreadystatechange=o.onload=null,e(t)}),(document.head||document.body).appendChild(o),n.included=!0})}},e.exports=o},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(){this.images=[],this.load()}var a=n(176),i=o(a),s="https://aframe.io/sample-assets/",u={images:"dist/images.json"};r.prototype={load:function(){var e=this,t=new XMLHttpRequest,n=s+u.images;t.open("GET",n),t.onload=function(){var n=JSON.parse(t.responseText);e.images=n.images,console.info("Images in registry:",Object.keys(e.images).length),e.images.forEach(function(e){e.fullPath=s+n.basepath.images+e.path,e.fullThumbPath=s+n.basepath.images_thumbnails+e.thumbnail}),i.default.emit("assetsimagesloaded",e.images)},t.onerror=function(){console.error("Error loading registry file.")},t.send()}},e.exports=r},function(e,t){"use strict";function n(){this.shaders=null,this.loadShadersData()}n.prototype={loadShadersData:function(){},addShaderToScene:function(e,t){var n=this.shaders[e];if(n&&!n.included){var o=document.createElement("script");o.src=n.url,o.setAttribute("data-shader-name",e),o.setAttribute("data-shader-description",n.description),o.onload=o.onreadystatechange=function(){o.onreadystatechange=o.onload=null,t()};var r=document.getElementsByTagName("head")[0];(r||document.body).appendChild(o);var a=document.createElement("script");a.href=n.url,a.type="text/css",a.rel="stylesheet",document.getElementsByTagName("head")[0].appendChild(a),n.included=!0}else t()}},e.exports=n},function(e,t,n){"use strict";function o(e){return!e.metaKey&&("INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName)}var r=n(207),a=n(202),i=n(176),s={enabled:!1,shortcuts:{default:{},modules:{}},onKeyUp:function(e){if(o(e)){var t=e.keyCode;if(72===t&&i.emit("openhelpmodal"),27===t)return void AFRAME.INSPECTOR.close();if(87===t&&i.emit("transformmodechanged","translate"),69===t&&i.emit("transformmodechanged","rotate"),82===t&&i.emit("transformmodechanged","scale"),71===t&&i.emit("togglegrid"),77===t&&i.emit("togglemotioncapture"),78===t&&i.emit("createnewentity",{element:"a-entity",components:{}}),8!==t&&46!==t||(0,r.removeSelectedEntity)(),68===t&&(0,r.cloneSelectedEntity)(),70===t){var n=AFRAME.INSPECTOR.selectedEntity;void 0!==n&&null!==n&&i.emit("objectfocused",n.object3D)}for(var a in this.shortcuts.modules){var s=this.shortcuts.modules[a];s[t]&&(!s[t].mustBeActive||s[t].mustBeActive&&AFRAME.INSPECTOR.modules[a].active)&&this.shortcuts.modules[a][t].callback()}}},onKeyDown:function(e){o(e)&&((e.ctrlKey&&"windows"===a.os||e.metaKey&&"macos"===a.os)&&(AFRAME.INSPECTOR.selectedEntity&&"INPUT"!==document.activeElement.tagName&&(88===e.keyCode&&(AFRAME.INSPECTOR.entityToCopy=AFRAME.INSPECTOR.selectedEntity,(0,r.removeSelectedEntity)(!0)),67===e.keyCode&&(AFRAME.INSPECTOR.entityToCopy=AFRAME.INSPECTOR.selectedEntity),86===e.keyCode&&(0,r.cloneEntity)(AFRAME.INSPECTOR.entityToCopy)),70===e.keyCode&&(e.preventDefault(),e.stopPropagation(),document.getElementById("filter").focus())),192===e.keyCode&&(i.emit("togglesidebar",{which:"all"}),e.preventDefault(),e.stopPropagation()),49===e.keyCode&&i.emit("togglesidebar",{which:"scenegraph"}),50===e.keyCode&&i.emit("togglesidebar",{which:"attributes"}))},enable:function(){this.enabled&&this.disable(),window.addEventListener("keydown",this.onKeyDown,!1),window.addEventListener("keyup",this.onKeyUp,!1),this.enabled=!0},disable:function(){window.removeEventListener("keydown",this.onKeyDown),window.removeEventListener("keyup",this.onKeyUp),this.enabled=!1},checkModuleShortcutCollision:function(e,t,n){this.shortcuts.modules[t]&&this.shortcuts.modules[t][e]&&console.warn("Keycode <%s> already registered as shorcut within the same module",e)},registerModuleShortcut:function(e,t,n,o){this.checkModuleShortcutCollision(e,n,o)||(this.shortcuts.modules[n]||(this.shortcuts.modules[n]={}),o!==!1&&(o=!0),this.shortcuts.modules[n][e]={callback:t,mustBeActive:o})},init:function(){this.onKeyDown=this.onKeyDown.bind(this),this.onKeyUp=this.onKeyUp.bind(this)}};s.init(),e.exports=s},function(e,t,n){"use strict";function o(e,t,n){if(t.indexOf(".")!==-1){var o=t.split(".");if(null===n||void 0===n){var r=e.getAttribute(o[0]);delete r[o[1]],e.setAttribute(o[0],r)}else e.setAttribute(o[0],o[1],n)}else null===n||void 0===n?e.removeAttribute(t):e.setAttribute(t,n);C.emit("objectchanged",e.object3D)}function r(e,t){if(e&&(t===!0||confirm("Do you really want to remove entity `"+(e.id||e.tagName)+"`?"))){var n=a(e);AFRAME.INSPECTOR.removeObject(e.object3D),e.parentNode.removeChild(e),AFRAME.INSPECTOR.selectEntity(n)}}function a(e){for(var t=e.nextElementSibling;t&&(!t.isEntity||t.isInspector);)t=t.nextElementSibling;if(t&&t.isEntity&&!t.isInspector)return t;for(var n=e.previousElementSibling;n&&(!n.isEntity||n.isInspector);)n=n.previousElementSibling;return n&&n.isEntity&&!n.isInspector?n:null}function i(e){AFRAME.INSPECTOR.selectedEntity&&r(AFRAME.INSPECTOR.selectedEntity,e)}function s(e,t){t.parentNode||(t=AFRAME.INSPECTOR.selectedEntity),t?t.parentNode.insertBefore(e,t.nextSibling):AFRAME.INSPECTOR.sceneEl.appendChild(e)}function u(e){e.flushToDOM();var t=e.cloneNode(!0);t.addEventListener("loaded",function(e){AFRAME.INSPECTOR.selectEntity(t)}),e.id&&(t.id=w(e.id)),t.addEventListener("loaded",function(){C.emit("dommodified"),AFRAME.INSPECTOR.selectEntity(t)}),s(t,e)}function l(){AFRAME.INSPECTOR.selectedEntity&&u(AFRAME.INSPECTOR.selectedEntity)}function c(e){var t=p(e);return t.outerHTML}function p(e){for(var t=e.cloneNode(!1),n=e.childNodes,o=0,r=n.length;o<r;o++){var a=n[o];a.nodeType===Node.ELEMENT_NODE&&(a.hasAttribute("aframe-injected")||a.hasAttribute("data-aframe-inspector")||a.hasAttribute("data-aframe-canvas"))||t.appendChild(p(n[o]))}return d(t,e),t}function d(e,t){var n=HTMLElement.prototype.removeAttribute,o=HTMLElement.prototype.setAttribute,r=t.components||{};Object.keys(r).forEach(function(a){var i=r[a],s=h(i,t),u=s[1],l=s[0],c=t.getAttribute(a),p=b(i,l,c),d=null===p;if(u&&d)n.call(e,a);else{var m=i.schema,v=f(m,p);o.call(e,a,v)}})}function f(e,t){function n(){return e.stringify(t)}function o(){var n={};return Object.keys(t).forEach(function(o){e[o]&&(n[o]=e[o].stringify(t[o]))}),AFRAME.utils.styleParser.stringify(n)}return t="undefined"==typeof t?{}:t,null===t?"":(E(e)?n:o)()}function h(e,t){function n(){var n=v(e,null,t);return void 0===n&&(n=g(e,null,t)),void 0!==n?r=!0:n=y(e,null,t),void 0!==n?e.schema.parse(n):n}function o(){var n;return Object.keys(e.schema).forEach(function(o){var a=m(e,o,t);if(void 0===a&&(a=v(e,o,t)),void 0===a&&(a=g(e,o,t)),void 0!==a?r=r||!0:a=y(e,o,t),void 0!==a){var i=e.schema[o].parse;n=n||{},n[o]=i(a)}}),n}var r=!1,a=(E(e.schema)?n:o)();return[a,r]}function m(e,t,n){function o(e,t){for(var n=Object.keys(e),o=0,r=n.length;o<r;o++){var a=n[o];if(e[a]===t)return a}}var r,a=n.mappings||{},i=e.name+"."+t,s=o(a,i);return s&&n.hasAttribute(s)&&(r=n.getAttribute(s)),r}function v(e,t,n){for(var o,r=n.mixinEls.reverse(),a=0;void 0===o&&a<r.length;a++){var i=r[a];i.attributes.hasOwnProperty(e.name)&&(o=t?i.getAttribute(e.name)[t]:i.getAttribute(e.name))}return o}function g(e,t,n){for(var o,r=n.defaultComponentsFromPrimitive||{},a=n.defaultComponents||{},i=[r,a],s=0;void 0===o&&s<i.length;s++){var u=i[s];u.hasOwnProperty(e.name)&&(o=t?u[e.name][t]:u[e.name])}return o}function y(e,t,n){return t?e.schema[t].default:e.schema.default}function b(e,t,n){if((0,x.equal)(t,n))return null;if(E(e.schema))return n;var o={};return Object.keys(n).forEach(function(e){var r=!(0,x.equal)(n[e],t[e]);r&&(o[e]=n[e])}),o}function E(e){return AFRAME.schema.isSingleProperty(e)}function w(e){if(!document.getElementById(e))return e;var t=2,n=e.match(/(\w+)-(\d+)/);for(n&&(e=n[1],t=n[2]);document.getElementById(e+"-"+t);)t++;return e+"-"+t}Object.defineProperty(t,"__esModule",{value:!0}),t.updateEntity=o,t.removeEntity=r,t.removeSelectedEntity=i,t.cloneEntity=u,t.cloneSelectedEntity=l,t.getClipboardRepresentation=c;var x=n(202),C=n(176)},function(e,t,n){"use strict";n(209)},function(e,t,n){"use strict";var o=n(210).registerModule;o("dummy",{init:function(){var e=this;this.registerShortcut(80,function(){e.toggleActive()},!1)},activate:function(){console.log("Module activated")},deactivate:function(){console.log("Module deactivated")}})},function(e,t,n){"use strict";var o=n(206);e.exports.registerModule=function(e,t){e=e.toLowerCase(),console.log("Registering module: <%s>",e);var n={status:{active:!1},registerShortcut:function(e,t,n){o.registerModuleShortcut(e,t,this.moduleName,n)},toggleActive:function(){this.active?this.deactivate():this.activate()},activate:function(){this.active=!0,t.activate.call(this)},deactivate:function(){this.active=!1,t.deactivate.call(this)}},r=Object.assign({},t,n);AFRAME.INSPECTOR.modules[e]=r}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),u=n(2),l=o(u),c=n(172),p=o(c),d=n(212),f=o(d),h=n(223),m=o(h),v=n(224),g=o(v),y=n(222),b=n(176),E=o(b),w=AFRAME.schema.isSingleProperty,x=function(e){function t(e){r(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.removeComponent=function(e){var t=n.props.name;e.stopPropagation(),confirm("Do you really want to remove component `"+t+"`?")&&(n.props.entity.removeAttribute(t),E.default.emit("componentremoved",{entity:n.props.entity,component:t}),ga("send","event","Components","removeComponent",t))},n.renderPropertyRows=function(){var e=n.props.component;if(w(e.schema)){var t=n.props.name,o=AFRAME.components[t.split("__")[0]].schema;return l.default.createElement(f.default,{key:t,name:t,schema:o,data:e.data,componentname:t,isSingle:!0,entity:n.props.entity})}return Object.keys(e.schema).map(function(t){return l.default.createElement(f.default,{key:t,name:t,schema:e.schema[t],data:e.data[t],componentname:n.props.name,isSingle:!1,entity:n.props.entity})})},n.state={entity:n.props.entity,name:n.props.name},n}return i(t,e),s(t,[{key:"componentDidMount",value:function(){var e=this,t=new g.default('[data-action="copy-component-to-clipboard"]',{text:function(t){var n=t.getAttribute("data-component").toLowerCase();return ga("send","event","Components","copyComponentToClipboard",n),(0,y.getClipboardRepresentation)(e.state.entity,n)}});t.on("error",function(e){console.error(e)}),E.default.on("selectedentitycomponentchanged",function(t){t.name===e.props.name&&e.forceUpdate()})}},{key:"componentWillReceiveProps",value:function(e){this.state.entity!==e.entity&&this.setState({entity:e.entity}),this.state.name!==e.name&&this.setState({name:e.name})}},{key:"render",value:function(){var e=this.props.name,t="";e.indexOf("__")!==-1&&(t=e,e=e.substr(0,e.indexOf("__")));var n=(0,y.getComponentDocsHtmlLink)(e.toLowerCase());return l.default.createElement(m.default,null,l.default.createElement("div",{className:"collapsible-header"},l.default.createElement("span",{className:"component-title",title:t||e},l.default.createElement("span",null,t||e)," ",n),l.default.createElement("div",null,l.default.createElement("a",{title:"Copy to clipboard","data-action":"copy-component-to-clipboard","data-component":t||e,className:"flat-button",onClick:function(e){return e.stopPropagation()}},"Copy Attributes"),l.default.createElement("a",{title:"Remove component",className:"flat-button",onClick:this.removeComponent},"Remove"))),l.default.createElement("div",{className:"collapsible-content"},this.renderPropertyRows()))}}]),t}(l.default.Component);x.propTypes={component:p.default.any,entity:p.default.object,name:p.default.string},t.default=x},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=n(2),c=o(l),p=n(172),d=o(p),f=n(199),h=o(f),m=n(213),v=o(m),g=n(214),y=o(g),b=n(215),E=o(b),w=n(216),x=o(w),C=n(217),_=o(C),T=n(218),S=o(T),O=n(219),R=o(O),k=n(220),A=o(k),M=n(221),P=o(M),N=n(207),I=n(222),D=function(e){function t(e){r(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.id=e.componentname+":"+e.name,n}return i(t,e),u(t,[{key:"getWidget",value:function(){var e=this,t=this.props,n="material"===t.componentname&&("envMap"===t.name||"src"===t.name),o=t.schema.type,r=(0,h.default)(function(){ga("send","event","Components","changeProperty",e.id)}),a="selector"===t.schema.type?t.entity.getDOMAttribute(t.componentname)[t.name]:t.data,i={componentname:t.componentname,entity:t.entity,isSingle:t.isSingle,name:t.name,onChange:function(e,n){var o=t.componentname;t.isSingle||(o+="."+t.name),N.updateEntity.apply(this,[t.entity,o,n]),r()},value:a},u={min:t.schema.hasOwnProperty("min")?t.schema.min:-(1/0),max:t.schema.hasOwnProperty("max")?t.schema.max:1/0};if(t.schema.oneOf&&t.schema.oneOf.length>0)return c.default.createElement(_.default,s({},i,{options:t.schema.oneOf}));if("map"===o||n)return c.default.createElement(S.default,i);switch(o){case"number":return c.default.createElement(x.default,s({},i,u));case"int":return c.default.createElement(x.default,s({},i,u,{precision:0}));case"vec2":return c.default.createElement(P.default,i);case"vec3":return c.default.createElement(A.default,i);case"vec4":return c.default.createElement(R.default,i);case"color":return c.default.createElement(y.default,i);case"boolean":return c.default.createElement(v.default,i);default:return c.default.createElement(E.default,i)}}},{key:"render",value:function(){var e=this.props,t="selector"===e.schema.type?e.entity.getDOMAttribute(e.componentname)[e.name]:JSON.stringify(e.data),n=e.name+"\n - type: "+e.schema.type+"\n - value: "+t,o=e.showHelp?(0,I.getComponentDocsHtmlLink)(e.name):"";return c.default.createElement("div",{className:"row"},c.default.createElement("label",{htmlFor:this.id,className:"text",title:n},e.name,o),this.getWidget(e.schema.type))}}]),t}(c.default.Component);D.propTypes={componentname:d.default.string.isRequired,id:d.default.string,name:d.default.string.isRequired,schema:d.default.object.isRequired},t.default=D},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,
"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),u=n(172),l=o(u),c=n(2),p=function(e){function t(e){r(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.onChange=function(e){var t=e.target.checked;n.setState({value:t}),n.props.onChange&&n.props.onChange(n.props.name,t)},n.state={value:n.props.value},n}return i(t,e),s(t,[{key:"componentWillReceiveProps",value:function(e){e.value!==this.state.value&&this.setState({value:e.value})}},{key:"render",value:function(){var e=this.props.componentname+"."+this.props.name;return c.createElement("input",{id:e,ref:"input",type:"checkbox",checked:this.state.value,value:this.state.value,onChange:this.onChange})}}]),t}(c.Component);p.propTypes={componentname:l.default.string.isRequired,entity:l.default.object,name:l.default.string.isRequired,onChange:l.default.func,value:l.default.bool},p.defaultProps={value:!1},t.default=p},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),u=n(172),l=o(u),c=n(2),p=function(e){function t(e){r(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.onChange=function(e){n.setValue(e.target.value)},n.onKeyUp=function(e){e.stopPropagation(),n.setValue(e.target.value)},n.onChangeText=function(e){n.setState({value:e.target.value})};var o=n.props.value;return n.color=new THREE.Color,n.state={value:o,pickerValue:n.getHexString(o)},n}return i(t,e),s(t,[{key:"setValue",value:function(e){var t=this.getHexString(e);this.setState({value:e,pickerValue:t}),this.props.onChange&&this.props.onChange(this.props.name,e)}},{key:"componentWillReceiveProps",value:function(e){e.value!==this.state.value&&this.setState({value:e.value,pickerValue:this.getHexString(e.value)})}},{key:"getHexString",value:function(e){return"#"+this.color.set(e).getHexString()}},{key:"render",value:function(){return c.createElement("span",{className:"color-widget"},c.createElement("input",{type:"color",className:"color",value:this.state.pickerValue,title:this.state.value,onChange:this.onChange}),c.createElement("input",{type:"text",className:"color_value",value:this.state.value,onKeyUp:this.onKeyUp,onChange:this.onChangeText}))}}]),t}(c.Component);p.propTypes={componentname:l.default.string.isRequired,entity:l.default.object,name:l.default.string.isRequired,onChange:l.default.func,value:l.default.string},p.defaultProps={value:"#ffffff"},t.default=p},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),u=n(172),l=o(u),c=n(2),p=function(e){function t(e){r(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.onChange=function(e){var t=e.target.value;n.setState({value:t}),n.props.onChange&&n.props.onChange(n.props.name,t)},n.state={value:n.props.value||""},n}return i(t,e),s(t,[{key:"componentWillReceiveProps",value:function(e){e.value!==this.state.value&&this.setState({value:e.value})}},{key:"render",value:function(){return c.createElement("input",{type:"text",className:"string",value:this.state.value||"",onChange:this.onChange})}}]),t}(c.Component);p.propTypes={componentname:l.default.string,entity:l.default.object,name:l.default.string.isRequired,onChange:l.default.func,value:l.default.any},t.default=p},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),u=n(2),l=o(u),c=n(172),p=o(c),d=function(e){function t(e){r(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.onMouseMove=function(e){var t=parseFloat(n.value),o=[e.clientX,e.clientY],r=o[0]-n.prevPointer[0]-(o[1]-n.prevPointer[1]);n.distance+=r;var a=n.onMouseDownValue+n.distance/(e.shiftKey?5:50)*n.props.step/2;a=Math.min(n.props.max,Math.max(n.props.min,a)),t!==a&&n.setValue(a),n.prevPointer=[e.clientX,e.clientY]},n.onMouseDown=function(e){e.preventDefault(),n.distance=0,n.onMouseDownValue=n.state.value,n.prevPointer=[e.clientX,e.clientY],document.addEventListener("mousemove",n.onMouseMove,!1),document.addEventListener("mouseup",n.onMouseUp,!1)},n.onMouseUp=function(e){document.removeEventListener("mousemove",n.onMouseMove,!1),document.removeEventListener("mouseup",n.onMouseUp,!1),Math.abs(n.distance)<2&&(n.refs.input.focus(),n.refs.input.select())},n.onBlur=function(){n.setValue(parseFloat(n.refs.input.value)),n.setState({class:""})},n.onChange=function(e){n.setState({value:e.target.value,displayValue:e.target.value})},n.onKeyDown=function(e){e.stopPropagation(),13===e.keyCode&&(n.setValue(parseFloat(n.refs.input.value)),n.refs.input.blur())},n.state={value:n.props.value,displayValue:n.props.value.toFixed(n.props.precision)},n}return i(t,e),s(t,[{key:"componentDidMount",value:function(){this.distance=0,this.onMouseDownValue=0,this.prevPointer=[0,0],this.setValue(this.props.value),this.onBlur()}},{key:"setValue",value:function(e){e!==this.state.value&&void 0!==e&&(e=0===this.props.precision?parseInt(e):parseFloat(e),e<this.props.min&&(e=this.props.min),e>this.props.max&&(e=this.props.max),this.setState({value:e,displayValue:e.toFixed(this.props.precision)}),this.props.onChange&&this.props.onChange(this.props.name,e))}},{key:"componentWillReceiveProps",value:function(e){e.value!==this.state.value&&this.setState({value:e.value,displayValue:e.value.toFixed(this.props.precision)})}},{key:"render",value:function(){return l.default.createElement("input",{ref:"input",className:"number",type:"text",value:this.state.displayValue,onKeyDown:this.onKeyDown,onChange:this.onChange,onMouseDown:this.onMouseDown,onFocus:this.onFocus,onBlur:this.onBlur})}}]),t}(l.default.Component);d.propTypes={componentname:p.default.string,entity:p.default.object,max:p.default.number,min:p.default.number,name:p.default.string,onChange:p.default.func,precision:p.default.number,step:p.default.number,value:p.default.number},d.defaultProps={min:-(1/0),max:1/0,value:0,precision:3,step:1},t.default=d},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),u=n(172),l=o(u),c=n(178),p=o(c);n(192);var d=n(2),f=function(e){function t(e){r(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.onChange=function(e){n.setState({value:e}),n.props.onChange&&n.props.onChange(n.props.name,e)},n.renderOptions=function(){return n.props.options.map(function(e){return d.createElement("option",{key:e,value:e},e)})},n.state={value:n.props.value||""},n}return i(t,e),s(t,[{key:"componentWillReceiveProps",value:function(e){e.value!==this.state.value&&this.setState({value:e.value})}},{key:"render",value:function(){var e=this.props.options.map(function(e){return{value:e,label:e}});return d.createElement(p.default,{className:"select-widget",options:e,simpleValue:!0,clearable:!0,placeholder:"",value:this.state.value,noResultsText:"No value found",onChange:this.onChange,searchable:!0})}}]),t}(d.Component);f.propTypes={componentname:l.default.string.isRequired,entity:l.default.object,name:l.default.string.isRequired,onChange:l.default.func,options:l.default.array.isRequired,value:l.default.string},t.default=f},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){return e.length>1&&document.querySelector(e)&&document.querySelector(e).getAttribute("src")}function u(e){if(e){var t=e.toString().match(/.*\/(.+?)\./);if(t&&t.length>1)return t[1]}return""}function l(e,t,n){var o=null;switch(e){case"img":o=document.createElement("img"),o.id=t,o.src=n}o&&document.getElementsByTagName("a-assets")[0].appendChild(o)}function c(e){var t=u(e),n=document.querySelector("a-assets > img[src='"+e+"']");if(n)t=n.id;else{if(isNaN(parseInt(t[0],10))||(t="i"+t),document.getElementById(t)){for(var o=1;document.getElementById(t+"_"+o);)o++;t+="_"+o}l("img",t,e)}return t}Object.defineProperty(t,"__esModule",{value:!0});var p=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),d=n(2),f=o(d),h=n(172),m=o(h),v=n(196),g=o(v),y=n(176),b=function(e){function t(e){r(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.notifyChanged=function(e){n.props.onChange&&n.props.onChange(n.props.name,e),n.setState({value:e})},n.onChange=function(e){var t=e.target.value;n.setState({value:t}),n.notifyChanged(t)},n.removeMap=function(e){n.setValue(""),n.notifyChanged("")},n.openDialog=function(){y.emit("opentexturesmodal",n.state.value,function(e){if(e){var t=e.value;if("asset"!==e.type){var o=c(e.src);t="#"+o}n.props.onChange&&n.props.onChange(n.props.name,t),n.setValue(t)}})},n.state={value:n.props.value||""},n}return i(t,e),p(t,[{key:"componentDidMount",value:function(){this.setValue(this.props.value||"")}},{key:"componentWillReceiveProps",value:function(e){var t=this.props.entity.components[this.props.componentname];if(t){var n=t.attrValue[this.props.name];n&&n!==this.state.value&&this.setValue(n)}}},{key:"setValue",value:function(e){function t(e){var t=e.src.replace(/^.*[\\\/]/,"");if(void 0!==e&&e.width>0){a.title=t;var n=a.width/e.width;i.drawImage(e,0,0,e.width*n,e.height*n)}else i.clearRect(0,0,a.width,a.height)}function n(e){var n=e.image;t(n)}function o(e){for(var t in g.default.sceneEl.systems.material.textureCache)if(JSON.parse(t).src===e)return g.default.sceneEl.systems.material.textureCache[t];return null}var r,a=this.refs.canvas,i=a.getContext("2d"),u="#"===e[0],l=e instanceof HTMLImageElement;r=l?e.src:u?s(e):AFRAME.utils.srcLoader.parseUrl(e);var c=o(e),p=null;if(p=l||u?"asset":"url",c)c.then(n);else if(r){var d=new Image;d.addEventListener("load",function(){t(d)},!1),d.src=r}else i.clearRect(0,0,a.width,a.height);this.setState({value:l?"#"+e.id:e,valueType:p,url:r})}},{key:"render",value:function(){var e="",t="";return this.state.value&&(e="asset"===this.state.valueType?"Asset ID: "+this.state.value+"\nURL: "+this.state.url:"URL: "+this.state.value,t=f.default.createElement("a",{target:"_blank",className:"button fa fa-external-link",title:"Open image in a new tab",href:this.state.url})),f.default.createElement("span",{className:"texture"},f.default.createElement("canvas",{ref:"canvas",width:"32",height:"16",title:e,onClick:this.openDialog}),f.default.createElement("input",{className:"map_value string",type:"text",title:e,value:this.state.value,onChange:this.onChange}),t,f.default.createElement("a",{onClick:this.removeMap,className:"button fa fa-times"}))}}]),t}(f.default.Component);b.propTypes={componentname:m.default.string,entity:m.default.object,mapName:m.default.string,name:m.default.string.isRequired,onChange:m.default.func,value:m.default.oneOfType([m.default.object,m.default.string])},b.defaultProps={value:"",mapName:"nomap",dataURL:""},t.default=b},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),c=n(2),p=o(c),d=n(172),f=o(d),h=n(216),m=o(h),v=function(e){function t(e){a(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.onChange=function(e,t){n.setState(r({},e,t),function(){n.props.onChange&&n.props.onChange(e,n.state)})},n.state={x:e.value.x,y:e.value.y,z:e.value.z,w:e.value.w},n}return s(t,e),l(t,[{key:"componentWillReceiveProps",value:function(e){this.setState(e.value)}},{key:"render",value:function(){var e={componentname:this.props.componentname,entity:this.props.entity,onChange:this.onChange};return p.default.createElement("div",{className:"vec4"},p.default.createElement(m.default,u({name:"x",value:this.state.x},e)),p.default.createElement(m.default,u({name:"y",value:this.state.y},e)),p.default.createElement(m.default,u({name:"z",value:this.state.z},e)),p.default.createElement(m.default,u({name:"w",value:this.state.w},e)))}}]),t}(p.default.Component);v.propTypes={componentname:f.default.string,entity:f.default.object,onChange:f.default.func,value:f.default.object.isRequired},t.default=v},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),c=n(2),p=o(c),d=n(172),f=o(d),h=n(216),m=o(h),v=function(e){function t(e){a(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.onChange=function(e,t){n.setState(r({},e,t),function(){n.props.onChange&&n.props.onChange(e,n.state)})},n.state={x:e.value.x,y:e.value.y,z:e.value.z},n}return s(t,e),l(t,[{key:"componentWillReceiveProps",value:function(e){this.setState(e.value)}},{key:"render",value:function(){var e={componentname:this.props.componentname,entity:this.props.entity,onChange:this.onChange};return p.default.createElement("div",{className:"vec3"},p.default.createElement(m.default,u({name:"x",value:this.state.x},e)),p.default.createElement(m.default,u({name:"y",value:this.state.y},e)),p.default.createElement(m.default,u({name:"z",value:this.state.z},e)))}}]),t}(p.default.Component);v.propTypes={componentname:f.default.string,entity:f.default.object,onChange:f.default.func,value:f.default.object.isRequired},t.default=v},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),c=n(2),p=o(c),d=n(172),f=o(d),h=n(216),m=o(h),v=function(e){function t(e){a(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.onChange=function(e,t){n.setState(r({},e,t),function(){n.props.onChange&&n.props.onChange(e,n.state)})},n.state={x:e.value.x,y:e.value.y},n}return s(t,e),l(t,[{key:"componentWillReceiveProps",value:function(e){this.setState(e.value)}},{key:"render",value:function(){var e={componentname:this.props.componentname,entity:this.props.entity,onChange:this.onChange};return p.default.createElement("div",{className:"vec2"},p.default.createElement(m.default,u({name:"x",value:this.state.x},e)),p.default.createElement(m.default,u({name:"y",value:this.state.y},e)))}}]),t}(p.default.Component);v.propTypes={componentname:f.default.string,entity:f.default.object,onChange:f.default.func,value:f.default.object.isRequired},t.default=v},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var n=e.components[t].data,o=e.components[t].schema,r={};for(var a in n)if(o[a]){var i=o[a].default,s=n[a];u(s)&&u(i)||s===i||(r[a]=n[a])}return r}function a(e,t){var n=r(e,t),o=AFRAME.utils.styleParser.stringify(n).replace(/;|:/g,"$& ");return t+'="'+o+'"'}function i(e){if(AFRAME.components[e])return"https://aframe.io/docs/"+(0,p.getMajorVersion)(AFRAME.version)+"/components/"+("camera"===e?"":e.toLowerCase()+".html")}function s(e){var t=i(e);return t?c.default.createElement("a",{title:"Help",className:"button help-link fa fa-question-circle",target:"_blank",onClick:function(e){return e.stopPropagation()},href:t}):""}function u(e){return null===e||""===e}Object.defineProperty(t,"__esModule",{value:!0}),t.getClipboardRepresentation=a,t.getComponentDocsUrl=i,t.getComponentDocsHtmlLink=s;var l=n(2),c=o(l),p=n(202)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),u=n(2),l=o(u),c=n(172),p=o(c),d=n(181),f=o(d),h=function(e){function t(e){r(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.toggleVisibility=function(){n.setState({collapsed:!n.state.collapsed}),ga("send","event","Components","collapse")},n.state={collapsed:n.props.collapsed},n}return i(t,e),s(t,[{key:"shouldComponentUpdate",value:function(e,t){return this.props!==e||this.state!==t}},{key:"render",value:function(){var e=(0,f.default)({collapsible:!0,component:!0,collapsed:this.state.collapsed}),t=(0,f.default)({content:!0,hide:this.state.collapsed});return l.default.createElement("div",{className:e},l.default.createElement("div",{className:"static",onClick:this.toggleVisibility},l.default.createElement("div",{className:"collapse-button"}),this.props.children[0]),l.default.createElement("div",{className:t},this.props.children[1]))}}]),t}(l.default.Component);h.propTypes={collapsed:p.default.bool,children:p.default.oneOfType([p.default.array,p.default.element]).isRequired},h.defaultProps={collapsed:!1},t.default=h},function(e,t,n){var o,r,a;!function(i,s){r=[e,n(225),n(227),n(228)],o=s,a="function"==typeof o?o.apply(t,r):o,!(void 0!==a&&(e.exports=a))}(this,function(e,t,n,o){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e,t){var n="data-clipboard-"+e;if(t.hasAttribute(n))return t.getAttribute(n)}var l=r(t),c=r(n),p=r(o),d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),h=function(e){function t(e,n){a(this,t);var o=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.resolveOptions(n),o.listenClick(e),o}return s(t,e),f(t,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===d(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=(0,p.default)(e,"click",function(e){return t.onClick(e)})}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new l.default({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return u("action",e)}},{key:"defaultTarget",value:function(e){var t=u("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return u("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach(function(e){n=n&&!!document.queryCommandSupported(e)}),n}}]),t}(c.default);e.exports=h})},function(e,t,n){var o,r,a;!function(i,s){r=[e,n(226)],o=s,a="function"==typeof o?o.apply(t,r):o,!(void 0!==a&&(e.exports=a))}(this,function(e,t){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(t),a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=function(){function e(t){o(this,e),this.resolveOptions(t),this.initSelection()}return i(e,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,r.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,r.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==("undefined"==typeof e?"undefined":a(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),e}();e.exports=s})},function(e,t){function n(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var o=window.getSelection(),r=document.createRange();r.selectNodeContents(e),o.removeAllRanges(),o.addRange(r),t=o.toString()}return t}e.exports=n},function(e,t){function n(){}n.prototype={on:function(e,t,n){var o=this.e||(this.e={});return(o[e]||(o[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){function o(){r.off(e,o),t.apply(n,arguments)}var r=this;return o._=t,this.on(e,o,n)},emit:function(e){var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),o=0,r=n.length;for(o;o<r;o++)n[o].fn.apply(n[o].ctx,t);return this},off:function(e,t){
var n=this.e||(this.e={}),o=n[e],r=[];if(o&&t)for(var a=0,i=o.length;a<i;a++)o[a].fn!==t&&o[a].fn._!==t&&r.push(o[a]);return r.length?n[e]=r:delete n[e],this}},e.exports=n},function(e,t,n){function o(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!s.string(t))throw new TypeError("Second argument must be a String");if(!s.fn(n))throw new TypeError("Third argument must be a Function");if(s.node(e))return r(e,t,n);if(s.nodeList(e))return a(e,t,n);if(s.string(e))return i(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function r(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}function a(e,t,n){return Array.prototype.forEach.call(e,function(e){e.addEventListener(t,n)}),{destroy:function(){Array.prototype.forEach.call(e,function(e){e.removeEventListener(t,n)})}}}function i(e,t,n){return u(document.body,e,t,n)}var s=n(229),u=n(230);e.exports=o},function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t}},function(e,t,n){function o(e,t,n,o,a){var i=r.apply(this,arguments);return e.addEventListener(n,i,a),{destroy:function(){e.removeEventListener(n,i,a)}}}function r(e,t,n,o){return function(n){n.delegateTarget=a(n.target,t),n.delegateTarget&&o.call(e,n)}}var a=n(231);e.exports=o},function(e,t){function n(e,t){for(;e&&e.nodeType!==o;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}var o=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var r=Element.prototype;r.matches=r.matchesSelector||r.mozMatchesSelector||r.msMatchesSelector||r.oMatchesSelector||r.webkitMatchesSelector}e.exports=n},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t){var n=AFRAME.INSPECTOR.selectedEntity;n.id!==t&&(n.id=t,_.default.emit("entityidchanged",n))}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=n(2),c=o(l),p=n(172),d=o(p),f=n(233),h=n(234),m=o(h),v=n(212),g=o(v),y=n(223),b=o(y),E=n(235),w=o(E),x=n(207),C=n(176),_=o(C),T=n(224),S=o(T),O=n(202),R=function(e){function t(){return r(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"componentDidMount",value:function(){var e=this;_.default.on("selectedentitycomponentchanged",function(t){m.default.indexOf(t.name)!==-1&&e.forceUpdate()}),_.default.on("refreshsidebarobject3d",function(){e.forceUpdate()});var t=new S.default('[data-action="copy-entity-to-clipboard"]',{text:function(t){return(0,x.getClipboardRepresentation)(e.props.entity)}});t.on("error",function(e){})}},{key:"renderCommonAttributes",value:function(){var e=this.props.entity;e?e.components:{};return["position","rotation","scale","visible"].map(function(t){var n=AFRAME.components[t].schema,o=e.object3D[t];return"rotation"===t&&(o={x:THREE.Math.radToDeg(e.object3D.rotation.x),y:THREE.Math.radToDeg(e.object3D.rotation.y),z:THREE.Math.radToDeg(e.object3D.rotation.z)}),c.default.createElement(g.default,{onChange:x.updateEntity,key:t,name:t,showHelp:!0,schema:n,data:o,isSingle:!0,componentname:t,entity:e})})}},{key:"exportToGLTF",value:function(){var e=this.props.entity;AFRAME.INSPECTOR.exporters.gltf.parse(e.object3D,function(t){var n=JSON.stringify(t,null,2);(0,O.saveString)(n,(e.id||"entity")+".gltf","application/json")})}},{key:"render",value:function(){var e=this,t=this.props.entity;if(!t)return c.default.createElement("div",null);var n="<"+t.tagName.toLowerCase()+">",o=c.default.createElement("div",null,c.default.createElement("a",{title:"Export entity to GLTF",className:"button fa fa-download",onClick:function(t){e.exportToGLTF(),t.stopPropagation()}}),c.default.createElement("a",{href:"#",title:"Copy entity HTML to clipboard","data-action":"copy-entity-to-clipboard",className:"button fa fa-clipboard",onClick:function(e){return e.stopPropagation()}}));return c.default.createElement(b.default,null,c.default.createElement("div",{className:"collapsible-header"},c.default.createElement("span",{className:"entity-name"},n),o),c.default.createElement("div",{className:"collapsible-content"},c.default.createElement("div",{className:"row"},c.default.createElement("span",{className:"text"},"ID"),c.default.createElement(f.InputWidget,{onChange:s,entity:t,name:"id",value:t.id})),this.renderCommonAttributes(),c.default.createElement(w.default,{entity:t})))}}]),t}(c.default.Component);R.propTypes={entity:d.default.object},t.default=R},function(e,t,n){"use strict";e.exports={BooleanWidget:n(213).default,ColorWidget:n(214).default,InputWidget:n(215).default,NumberWidget:n(216).default,SelectWidget:n(217).default,TextureWidget:n(218).default,Vec4Widget:n(219).default,Vec3Widget:n(220).default,Vec2Widget:n(221).default}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["visible","position","scale","rotation"]},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){return e=e.replace(/(^\s*)|(\s*$)/gi,""),e=e.replace(/[ ]{2,}/gi," "),e=e.replace(/\n /,"\n")}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=n(2),c=o(l),p=n(172),d=o(p),f=n(176),h=function(e){function t(){var e,n,o,i;r(this,t);for(var u=arguments.length,l=Array(u),p=0;p<u;p++)l[p]=arguments[p];return n=o=a(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),o.removeMixin=function(e){var t=o.props.entity,n=s(t.getAttribute("mixin").replace(e,""));0===n.length?t.removeAttribute("mixin"):t.setAttribute("mixin",n),ga("send","event","Components","removeMixin"),f.emit("objectchanged",t.object3D)},o.addMixin=function(){var e=o.props.entity;e.setAttribute("mixin",s(e.getAttribute("mixin")+" "+o.refs.select.value)),f.emit("objectchanged",e.object3D),ga("send","event","Components","addMixin")},o.renderMixinOptions=function(){var e=o.props.entity.mixinEls.map(function(e){return e.id}),t=Array.prototype.slice.call(document.querySelectorAll("a-mixin"));return t.filter(function(t){return e.indexOf(t.id)===-1}).sort().map(function(e){return c.default.createElement("option",{key:e.id,value:e.id},e.id)})},o.renderMixins=function(){var e=o.props.entity.mixinEls;return 0===e.length?c.default.createElement("span",null):c.default.createElement("span",{className:"mixinlist"},c.default.createElement("ul",null,e.map(o.renderMixin)))},o.renderMixin=function(e){var t=Object.keys(e.attributes).filter(function(t){return"id"!==e.attributes[t].name}).map(function(t){var n="- "+e.attributes[t].name+":\n",o=e.attributes[t].value.split(";").map(function(e){return" - "+s(e)});return n+o.join("\n")}),n=o.removeMixin.bind(o,e.id);return c.default.createElement("li",{key:e.id},c.default.createElement("span",{className:"mixin",title:t.join("\n")},e.id),c.default.createElement("a",{className:"button fa fa-trash-o",onClick:n}))},i=n,a(o,i)}return i(t,e),u(t,[{key:"render",value:function(){return c.default.createElement("div",{className:"row"},c.default.createElement("span",{className:"text"},"mixins"),c.default.createElement("span",{className:"value"},c.default.createElement("select",{ref:"select"},this.renderMixinOptions()),c.default.createElement("a",{className:"button fa fa-plus-circle",onClick:this.addMixin})),this.renderMixins())}}]),t}(c.default.Component);h.propTypes={entity:d.default.object.isRequired},t.default=h},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.split("/").pop();return t&&(n=l(n)),n}function u(e){var t=/^[A-Za-z]+[\w\-]*$/;return t.test(e)}function l(e){return e.split(".").shift().replace(/\s/,"-").replace(/^\d+\s*/,"").replace(/[\W]/,"").toLowerCase()}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),p=n(176),d=o(p),f=n(2),h=o(f),m=n(172),v=o(m),g=n(237),y=o(g),b=n(196),E=o(b),w=n(238),x=o(w);window.UPLOADCARE_PUBLIC_KEY="f43ad452b58f9e853d05";var C=n(239).insertNewAsset,_=function(e){function t(e){r(this,t),(0,x.default)();var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.onClose=function(e){n.props.onClose&&n.props.onClose()},n.selectTexture=function(e){n.props.onClose&&n.props.onClose(e)},n.generateFromRegistry=function(){var e=n;E.default.assetsLoader.images.forEach(function(t){var n=new Image;n.addEventListener("load",function(){e.state.registryImages.push({id:t.id,src:t.fullPath,width:t.width,height:t.height,name:t.id,type:"registry",tags:t.tags,value:"url("+t.fullPath+")"}),e.setState({registryImages:e.state.registryImages})}),n.src=t.fullThumbPath})},n.generateFromAssets=function(){n.setState({assetsImages:[]});var e=n;Array.prototype.slice.call(document.querySelectorAll("a-assets img")).map(function(t){var n=new Image;n.addEventListener("load",function(){e.state.assetsImages.push({id:t.id,src:n.src,width:n.width,height:n.height,name:t.id,type:"asset",value:"#"+t.id}),e.setState({assetsImages:e.state.assetsImages})}),n.src=t.src})},n.onNewUrl=function(e){function t(e){var n=o.refs.preview.src;o.setState({preview:{width:o.refs.preview.naturalWidth,height:o.refs.preview.naturalHeight,src:n,id:"",name:s(n,!0),filename:s(n),type:"new",loaded:!0,value:"url("+n+")"}}),o.refs.preview.removeEventListener("load",t)}if(13===e.keyCode){var o=n;n.refs.preview.addEventListener("load",t),n.refs.preview.src=e.target.value,n.refs.imageName.focus()}},n.onNameKeyUp=function(e){13===e.keyCode&&n.isValidAsset()&&n.addNewAsset()},n.onNameChanged=function(e){var t=n.state.preview;t.name=e.target.value,n.setState({preview:t})},n.toggleNewDialog=function(){n.setState({addNewDialogOpened:!n.state.addNewDialogOpened})},n.onUrlChange=function(e){n.setState({newUrl:e.target.value})},n.addNewAsset=function(){var e=n;C("img",n.state.preview.name,n.state.preview.src,!0,function(){e.generateFromAssets(),e.setState({addNewDialogOpened:!1}),e.clear()})},n.onChangeFilter=function(e){n.setState({filterText:e.target.value})},n.state={filterText:"",isOpen:n.props.isOpen,loadedTextures:[],assetsImages:[],registryImages:[],addNewDialogOpened:!1,newUrl:"",preview:{width:0,height:0,src:"",id:"",name:"",filename:"",type:"",value:"",loaded:!1}},n}return i(t,e),c(t,[{key:"componentDidMount",value:function(){var e=this;d.default.on("assetsimagesloaded",function(t){e.generateFromRegistry()}),this.uploadcareWidget=null,this.generateFromAssets(),this.generateFromTextureCache()}},{key:"componentDidUpdate",value:function(){var e=this;!this.uploadcareWidget&&this.state.isOpen&&(this.uploadcareWidget=uploadcare.SingleWidget("[role=uploadcare-uploader]"),this.uploadcareWidget.onUploadComplete(function(t){t.isImage&&(e.setState({preview:{width:t.originalImageInfo.height,height:t.originalImageInfo.height,src:t.cdnUrl,id:"",filename:t.name,name:s(t.name,!0),type:"uploaded",loaded:!0,value:"url("+t.cdnUrl+")"}}),e.uploadcareWidget.value(null),e.refs.imageName.focus())}))}},{key:"componentWillReceiveProps",value:function(e){this.state.isOpen!==e.isOpen&&(this.setState({isOpen:e.isOpen}),e.isOpen&&this.generateFromAssets())}},{key:"generateFromTextureCache",value:function(){}},{key:"clear",value:function(){this.setState({preview:{width:0,height:0,src:"",id:"",filename:"",name:"",type:"",loaded:!1,value:""},newUrl:""})}},{key:"isValidAsset",value:function(){var e=u(this.state.preview.name),t=this.state.preview.loaded&&e;return t}},{key:"renderRegistryImages",value:function(){var e=this,t=function(t){e.setState({preview:{width:t.width,height:t.height,src:t.src,id:"",name:s(t.name,!0),filename:s(t.src),type:"registry",loaded:!0,value:"url("+t.src+")"}}),e.refs.imageName.focus()},n=this.state.filterText.toUpperCase();return this.state.registryImages.filter(function(e){return e.id.toUpperCase().indexOf(n)>-1||e.name.toUpperCase().indexOf(n)>-1||e.tags.indexOf(n)>-1}).map(function(e){var n=t.bind(this,e);return h.default.createElement("li",{key:e.src,onClick:n},h.default.createElement("img",{width:"155px",height:"155px",src:e.src}),h.default.createElement("div",{className:"detail"},h.default.createElement("span",{className:"title"},e.name),h.default.createElement("span",null,s(e.src)),h.default.createElement("span",null,e.width," x ",e.height)))})}},{key:"render",value:function(){var e=this.state.isOpen,t=this.state.loadedTextures,n=this.state.preview,o=u(this.state.preview.name),r=this.isValidAsset(),a=this.state.addNewDialogOpened?"BACK":"LOAD TEXTURE";return h.default.createElement(y.default,{id:"texture-modal",title:"Textures",isOpen:e,onClose:this.onClose,closeOnClickOutside:!1},h.default.createElement("button",{onClick:this.toggleNewDialog},a),h.default.createElement("div",{className:this.state.addNewDialogOpened?"":"hide"},h.default.createElement("div",{className:"newimage"},h.default.createElement("div",{className:"new_asset_options"},h.default.createElement("span",null,"Load a new texture from one of these sources:"),h.default.createElement("ul",null,h.default.createElement("li",null,h.default.createElement("span",null,"From URL (and press Enter):")," ",h.default.createElement("input",{type:"text",className:"imageUrl",value:this.state.newUrl,onChange:this.onUrlChange,onKeyUp:this.onNewUrl})),h.default.createElement("li",null,h.default.createElement("div",{className:"uploader-normal-button"},"From a file: ",h.default.createElement("input",{type:"hidden",role:"uploadcare-uploader"}))),h.default.createElement("li",null,h.default.createElement("span",null,"From assets registry: "),h.default.createElement("div",{className:"assets search"},h.default.createElement("input",{placeholder:"Filter...",value:this.state.filterText,onChange:this.onChangeFilter}),h.default.createElement("span",{className:"fa fa-search"})),h.default.createElement("ul",{ref:"registryGallery",className:"gallery"},this.renderRegistryImages())))),h.default.createElement("div",{className:"preview"},"Name: ",h.default.createElement("input",{ref:"imageName",className:this.state.preview.name.length>0&&!o?"error":"",type:"text",value:this.state.preview.name,onChange:this.onNameChanged,onKeyUp:this.onNameKeyUp}),h.default.createElement("img",{ref:"preview",width:"155px",height:"155px",src:n.src}),this.state.preview.loaded?h.default.createElement("div",{className:"detail"},h.default.createElement("span",{className:"title",title:n.filename},n.filename),h.default.createElement("br",null),h.default.createElement("span",null,n.width," x ",n.height)):h.default.createElement("span",null),h.default.createElement("br",null),h.default.createElement("button",{disabled:!r,onClick:this.addNewAsset},"LOAD THIS TEXTURE")))),h.default.createElement("div",{className:this.state.addNewDialogOpened?"hide":""},h.default.createElement("ul",{className:"gallery"},this.state.assetsImages.sort(function(e,t){return e.id>t.id}).map(function(e){var t=this.selectTexture.bind(this,e),n=this.props.selectedTexture==="#"+e.id?"selected":"";return h.default.createElement("li",{key:e.id,onClick:t,className:n},h.default.createElement("a",{href:e.src,title:"Open image in a new tab",className:"button fa fa-external-link",target:"_blank"}),h.default.createElement("img",{width:"155px",height:"155px",src:e.src}),h.default.createElement("div",{className:"detail"},h.default.createElement("span",{className:"title"},e.name),h.default.createElement("span",null,s(e.src)),h.default.createElement("span",null,e.width," x ",e.height)))}.bind(this)),t.map(function(e){var t=e.image,n=this.selectTexture.bind(this,e);return h.default.createElement("li",{key:e.uuid,onClick:n},h.default.createElement("img",{width:"155px",height:"155px",src:t.src}),h.default.createElement("div",{className:"detail"},h.default.createElement("span",{className:"title"},"Name:")," ",h.default.createElement("span",null,t.name),h.default.createElement("span",{className:"title"},"Filename:")," ",h.default.createElement("span",null,s(t.src)),h.default.createElement("span",null,t.width," x ",t.height)))}))))}}]),t}(h.default.Component);_.propTypes={isOpen:v.default.bool,onClose:v.default.func,selectedTexture:v.default.string},t.default=_},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),u=n(172),l=o(u),c=n(2),p=function(e){function t(e){r(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleGlobalKeydown=function(e){n.state.isOpen&&(27===e.keyCode||n.props.extraCloseKeyCode&&e.keyCode===n.props.extraCloseKeyCode)&&(n.close(),e.stopPropagation())},n.shouldClickDismiss=function(e){var t=e.target;return("INPUT"!==t.tagName||"file"!==t.type)&&(t!==n.refs.self&&!n.refs.self.contains(t))},n.handleGlobalMousedown=function(e){n.props.closeOnClickOutside&&n.state.isOpen&&n.shouldClickDismiss(e)&&"function"==typeof n.props.onClose&&n.props.onClose()},n.close=function(){n.setState({isOpen:!1}),n.props.onClose&&n.props.onClose()},n.state={isOpen:n.props.isOpen},n}return i(t,e),s(t,[{key:"componentDidMount",value:function(){document.addEventListener("keyup",this.handleGlobalKeydown),document.addEventListener("mousedown",this.handleGlobalMousedown)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keyup",this.handleGlobalKeydown),document.removeEventListener("mousedown",this.handleGlobalMousedown)}},{key:"componentWillReceiveProps",value:function(e){this.state.isOpen!==e.isOpen&&this.setState({isOpen:e.isOpen})}},{key:"render",value:function(){return c.createElement("div",{id:this.props.id,className:this.state.isOpen?"modal":"modal hide"},c.createElement("div",{className:"modal-content",ref:"self"},c.createElement("div",{className:"modal-header"},c.createElement("span",{className:"close",onClick:this.close},"×"),c.createElement("h3",null,this.props.title)),c.createElement("div",{className:"modal-body"},this.props.children)))}}]),t}(c.Component);p.propTypes={id:l.default.string,children:l.default.oneOfType([l.default.array,l.default.element]).isRequired,isOpen:l.default.bool,extraCloseKeyCode:l.default.number,closeOnClickOutside:l.default.bool,onClose:l.default.func,title:l.default.string},p.defaultProps={closeOnClickOutside:!0},t.default=p},function(e,t,n){"use strict";function o(){window.UPLOADCARE_PUBLIC_KEY="f43ad452b58f9e853d05",window.uploadcare||(0,r.injectJS)("https://ucarecdn.com/widget/2.10.0/uploadcare/uploadcare.full.min.js")}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=n(202)},function(e,t){"use strict";function n(e,t,n,o,r){var a=null;switch(e){case"img":a=document.createElement("img"),a.id=t,a.src=n,o&&(a.crossOrigin="anonymous")}a&&(a.onload=function(){r&&r()},document.getElementsByTagName("a-assets")[0].appendChild(a))}e.exports={insertNewAsset:n}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),u=n(2),l=o(u),c=n(172),p=o(c),d=n(237),f=o(d),h=function(e){function t(e){r(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.onClose=function(e){n.props.onClose&&n.props.onClose()},n.state={isOpen:n.props.isOpen},n}return i(t,e),s(t,[{key:"componentWillReceiveProps",value:function(e){this.state.isOpen!==e.isOpen&&this.setState({isOpen:e.isOpen})}},{key:"render",value:function(){var e=[[{key:["w"],description:"Translate"},{key:["e"],description:"Rotate"},{key:["r"],description:"Scale"},{key:["d"],description:"Duplicate selected entity"},{key:["f"],description:"Focus on selected entity"},{key:["g"],description:"Toggle grid visibility"},{key:["n"],description:"Add new entity"},{key:["supr | backspace"],description:"Delete selected entity"}],[{key:["1"],description:"Toggle scenegraph panel"},{key:["2"],description:"Toggle components panel"},{key:["tab"],description:"Toggle scenegraph and components panel"},{key:["m"],description:"Toggle motion capture tools"},{key:["ctrl | cmd","x"],description:"Cut selected entity"},{key:["ctrl | cmd","c"],description:"Copy selected entity"},{key:["ctrl | cmd","v"],description:"Paste entity"},{key:["h"],description:"Show this help"},{key:["Esc"],description:"Exit edit mode"},{key:["ctrl","alt","i"],description:"Switch Edit and VR Modes"}]];return l.default.createElement(f.default,{title:"Shortcuts",isOpen:this.state.isOpen,onClose:this.onClose,extraCloseKeyCode:72},l.default.createElement("div",{className:"help-lists"},e.map(function(e,t){return l.default.createElement("ul",{className:"help-list",key:t},e.map(function(e){return l.default.createElement("li",{key:e.key,className:"help-key-unit"},e.key.map(function(e){return l.default.createElement("kbd",{key:e,className:"help-key"},l.default.createElement("span",null,e))}),l.default.createElement("span",{className:"help-key-def"},e.description))}))})))}}]),t}(l.default.Component);h.propTypes={isOpen:p.default.bool,onClose:p.default.func},t.default=h},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),u=n(2),l=o(u),c=n(172),p=o(c),d=n(181),f=o(d),h=n(199),m=o(h),v=n(207),g=n(242),y=o(g),b=n(176),E={camera:"fa-camera",geometry:"fa-cube",light:"fa-lightbulb-o",material:"fa-picture-o"},w=(0,m.default)(function(){ga("send","event","SceneGraph","searchEntity")},3e3),x=function(e){function t(e){r(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setValue=function(e){for(var t=!1,o=0;o<n.state.options.length;o++){var r=n.state.options[o];r.value===e&&(n.setState({value:e,selectedIndex:o}),n.expandToRoot(r.value),n.props.onChange&&n.props.onChange(e),b.emit("entityselected",e,!0),t=!0)}t||n.setState({value:null,selectedIndex:-1}),ga("send","event","SceneGraph","selectEntity")},n.update=function(e){n.setValue(e.target.value)},n.rebuildOptions=function(){function e(n,o){if(n){o+=1;for(var r=n.children,a=0;a<r.length;a++){var i=r[a];if(!i.dataset.isInspector&&i.isEntity&&!i.isInspector){var s="";for(var u in E)if(i.components&&i.components[u]){var l=function(){var e=i.getAttribute(u);if(!e)return"continue";var t=Object.keys(e).sort().map(function(t){return" - "+t+": "+e[t]}),n=u+(t.length?"\n"+t.join("\n"):"");s+=' <i class="component fa '+E[u]+'" title="'+n+'"></i>'}();if("continue"===l)continue}" ".repeat(o),i.id?i.id:"<"+i.tagName.toLowerCase()+">";t.push({static:!0,depth:o,value:i,hasChildren:i.children.length>0,tagName:i.tagName.toLowerCase(),id:i.id,extra:s}),e(i,o)}}}}var t=[{static:!0,value:n.props.scene,tagName:"a-scene",hasChildren:!0,depth:0}];e(n.props.scene,0),n.setState({options:t})},n.selectIndex=function(e){e>=0&&e<n.state.options.length&&n.setValue(n.state.options[e].value)},n.onFilterKeyUp=function(e){27===e.keyCode&&n.clearFilter()},n.onKeyDown=function(e){switch(e.keyCode){case 37:case 38:case 39:case 40:e.preventDefault(),e.stopPropagation()}},n.onKeyUp=function(e){if(null!==n.state.value)switch(e.keyCode){case 37:n.isExpanded(n.state.value)&&n.toggleExpandedCollapsed(n.state.value),ga("send","event","SceneGraph","navigateWithKeyboard");break;case 38:n.selectIndex(n.previousExpandedIndexTo(n.state.selectedIndex)),ga("send","event","SceneGraph","navigateWithKeyboard");break;case 39:n.isExpanded(n.state.value)||n.toggleExpandedCollapsed(n.state.value),ga("send","event","SceneGraph","navigateWithKeyboard");break;case 40:n.selectIndex(n.nextExpandedIndexTo(n.state.selectedIndex)),ga("send","event","SceneGraph","navigateWithKeyboard")}},n.cloneEntity=function(e){(0,v.cloneEntity)(e),ga("send","event","SceneGraph","cloneEntity")},n.toggleVisibility=function(e,t){var n="a-scene"===e.tagName.toLowerCase()?e.object3D.visible:e.getAttribute("visible");e.setAttribute("visible",!n)},n.isVisibleInSceneGraph=function(e){for(var t=e.parentEl;void 0!==t&&t.isEntity;){if(!n.isExpanded(t))return!1;t=t.parentEl}return!0},n.isExpanded=function(e){return n.state.expandedElements.get(e)===!0},n.toggleExpandedCollapsed=function(e){n.setState({expandedElements:n.state.expandedElements.set(e,!n.isExpanded(e))})},n.expandToRoot=function(e){for(var t=e.parentEl;void 0!==t&&t.isEntity;)n.state.expandedElements.set(t,!0),t=t.parentEl;n.setState({expandedElements:n.state.expandedElements})},n.previousExpandedIndexTo=function(e){for(var t=e-1;t>=0;t--){var o=n.state.options[t].value;if(n.isVisibleInSceneGraph(o))return t}return-1},n.nextExpandedIndexTo=function(e){for(var t=e+1;t<n.state.options.length;t++){var o=n.state.options[t].value;if(n.isVisibleInSceneGraph(o))return t}return-1},n.onChangeFilter=function(e){n.setState({filterText:e.target.value}),w()},n.clearFilter=function(){n.setState({filterText:""})},n.state={value:n.props.value||"",options:[],selectedIndex:-1,filterText:"",expandedElements:new WeakMap([[e.scene,!0]])},n}return i(t,e),s(t,[{key:"componentDidMount",value:function(){var e=this;this.rebuildOptions(),document.addEventListener("componentremoved",function(){e.forceUpdate()}),b.on("entityselected",function(t,n){n||e.setValue(t)}),b.on("entityidchanged",this.rebuildOptions),document.addEventListener("componentremoved",this.rebuildOptions),b.on("dommodified",this.rebuildOptions)}},{key:"renderOptions",value:function(){var e=this,t=this.state.filterText.toUpperCase(),n=t.length>0;return this.state.options.filter(function(e,n){var o=e.value;if(o.id.toUpperCase().indexOf(t)>-1||o.tagName.toUpperCase().indexOf(t)>-1||(o.getAttribute("class")||"").indexOf(t)>-1)return!0;for(var r in o.components){var a=o.components[r];if(a.attrName.toUpperCase().indexOf(t)>-1)return!0;for(var i in a.data)if(a.data[i]){var s=a.data[i].toString();if(s.toUpperCase().indexOf(t)>-1)return!0}}return!1}).map(function(t,o){var r=e.isExpanded(t.value)||n;if(!n&&!e.isVisibleInSceneGraph(t.value))return null;var a=l.default.createElement("a",{onClick:function(){return e.cloneEntity(t.value)},title:"Clone entity",className:"button fa fa-clone"}),i=l.default.createElement("a",{onClick:function(e){e.stopPropagation(),(0,v.removeEntity)(t.value)},title:"Remove entity",className:"button fa fa-trash-o"});"A-SCENE"===t.value.tagName&&(a="",i="");var s=" ".repeat(t.depth),u=void 0;if(t.hasChildren&&!n){e.state.expandedElements;u=l.default.createElement("span",{onClick:function(){return e.toggleExpandedCollapsed(t.value)},className:"collasespace fa "+(r?"fa-caret-down":"fa-caret-right")})}else u=l.default.createElement("span",{className:"collasespace"});var c=t.value,p="a-scene"===c.tagName.toLowerCase()?c.object3D.visible:c.getAttribute("visible"),d=l.default.createElement("i",{title:"Toggle entity visibility",className:"fa "+(p?"fa-eye":"fa-eye-slash"),onClick:function(n){e.toggleVisibility(t.value,n)}}),h=(0,f.default)({option:!0,active:t.value===e.state.value,novisible:!p}),m=t.id;return c.isScene||m||!c.getAttribute("class")||(m=c.getAttribute("class").split(" ")[0]),l.default.createElement("div",{key:o,className:h,value:t.value,
onClick:function(){return e.setValue(t.value)}},l.default.createElement("span",null,d," ",s," ",u,"<",l.default.createElement("span",{onDoubleClick:function(){return b.emit("objectfocused",c.object3D)}},t.tagName,l.default.createElement("span",{className:"name"},m?" "+m:"")),l.default.createElement("span",{dangerouslySetInnerHTML:{__html:t.extra}}),">"),l.default.createElement("span",{className:"icons"},a,i))})}},{key:"render",value:function(){if(!this.props.visible)return null;var e=this.state.filterText?l.default.createElement("a",{onClick:this.clearFilter,className:"button fa fa-times"}):null;return l.default.createElement("div",{id:this.props.id,className:"scenegraph"},l.default.createElement("div",{className:"scenegraph-toolbar"},l.default.createElement(y.default,null),l.default.createElement("div",{className:"search"},l.default.createElement("input",{id:"filter",placeholder:"Search...",value:this.state.filterText,onChange:this.onChangeFilter,onKeyUp:this.onFilterKeyUp}),e,l.default.createElement("span",{className:"fa fa-search"}))),l.default.createElement("div",{className:"outliner",tabIndex:"0",onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp},this.renderOptions()))}}]),t}(l.default.Component);x.propTypes={id:p.default.string,onChange:p.default.func,scene:p.default.object,value:p.default.string,visible:p.default.bool},x.defaultProps={value:"",index:-1,id:"left-sidebar"},t.default=x},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),u=n(2),l=o(u),c=n(224),p=o(c),d=n(243),f=n(176),h=o(f),m=n(202),v=n(244),g=o(v),y=n(196),b="aframeinspectormocapuienabled",E=function(e){function t(e){r(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.toggleMotionCaptureUI=function(){ga("send","event","SceneGraph","openMotionCapture"),localStorage.setItem(b,!n.state.motionCaptureUIEnabled),n.setState({motionCaptureUIEnabled:!n.state.motionCaptureUIEnabled})};var o=new p.default('[data-action="copy-scene-to-clipboard"]',{text:function(e){return ga("send","event","SceneGraph","copySceneToClipboard"),(0,d.generateHtml)()}});return o.on("error",function(e){}),h.default.on("togglemotioncapture",function(){n.toggleMotionCaptureUI()}),n.state={motionCaptureUIEnabled:JSON.parse(localStorage.getItem(b))},n}return i(t,e),s(t,[{key:"exportSceneToGLTF",value:function(){ga("send","event","SceneGraph","exportGLTF"),y.exporters.gltf.parse(AFRAME.scenes[0].object3D,function(e){var t=JSON.stringify(e,null,2);(0,m.saveString)(t,"scene.gltf","application/json")})}},{key:"exportSceneToHTML",value:function(){ga("send","event","SceneGraph","exportHTML");var e=(0,d.getSceneName)(AFRAME.scenes[0]);(0,m.saveString)((0,d.generateHtml)(),e,"text/html")}},{key:"addEntity",value:function(){h.default.emit("createnewentity",{element:"a-entity",components:{}})}},{key:"render",value:function(){return l.default.createElement("div",{id:"scenegraphToolbar"},l.default.createElement("div",{className:"scenegraph-actions"},l.default.createElement("a",{className:"button fa fa-video-camera",title:"Open motion capture development tools",onClick:this.toggleMotionCaptureUI,style:this.state.motionCaptureUIEnabled?{color:"#FFF"}:{}}),l.default.createElement("a",{className:"button fa fa-clipboard",title:"Copy HTML to clipboard","data-action":"copy-scene-to-clipboard"}),l.default.createElement("a",{className:"button fa fa-download",title:"Export to HTML",onClick:this.saveSceneToHTML}),l.default.createElement("a",{className:"button fa fa-plus",title:"Add a new entity",onClick:this.addEntity}),l.default.createElement("div",{className:"dropdown"},l.default.createElement("a",{className:"dropbtn button fa fa-download",title:"Export"}),l.default.createElement("div",{className:"dropdown-content"},l.default.createElement("a",{className:"",title:"Export to HTML",onClick:this.exportSceneToHTML},"HTML"),l.default.createElement("a",{className:"",title:"Export to GLTF",onClick:this.exportSceneToGLTF},"GLTF")))),this.state.motionCaptureUIEnabled&&l.default.createElement(g.default,null))}}]),t}(l.default.Component);t.default=E},function(e,t,n){"use strict";function o(e){return e.id||r(window.location.host+window.location.pathname)}function r(e){return e.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w\-]+/g,"-").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}function a(){var e=AFRAME.scenes[0];e.flushToDOM(!0);for(var t=new window.DOMParser,n=t.parseFromString(document.documentElement.innerHTML,"text/html"),o=n.querySelectorAll(["[data-aframe-inspector]",'script[src$="aframe-inspector.js"]','style[type="text/css"]','link[href="http://fonts.googleapis.com/css?family=Roboto%7CRoboto+Mono"]',"[aframe-injected]",'style[data-href$="aframe.css"]',".rs-base",".a-canvas",'style[data-href$="rStats.css"]'].join(",")),r=0;r<o.length;r++){var a=o[r];a.parentNode.removeChild(a)}var l=(n.documentElement,n.createElement("a-scene-temp")),c=n.getElementsByTagName("a-scene")[0];c.parentNode.replaceChild(l,c),u.opened=!1,u.currentCameraEl.setAttribute("camera","active",!0);var p=i(n).replace("<a-scene-temp></a-scene-temp>",(0,s.getClipboardRepresentation)(e)).replace("aframe-inspector-opened","");return u.opened=!0,u.inspectorCameraEl.setAttribute("camera","active",!0),p}function i(e){var t;return t=window.ActiveXObject?e.xml:(new window.XMLSerializer).serializeToString(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.getSceneName=o,t.generateHtml=a;var s=n(207),u=n(196)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){var n=[],o=!0,r=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(o=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);o=!0);}catch(e){r=!0,a=e}finally{try{!o&&s.return&&s.return()}finally{if(r)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),c=n(2),p=o(c),d=n(178),f=o(d);n(192);var h=n(245),m=o(h),v=n(176),g="https://unpkg.com/[email protected]/dist/aframe-motion-capture-components.min.js",y="aframeinspectormocaploopenabled",b="aframeinspectorselectedrecording",E=5,w="https://gist.githubusercontent.com/anonymous/9face967294fa7ed206f409add055927/raw/77dce282eb44536e839cfe93c16dd40acef7587b/%23leftHand%20+%20%23rightHand.json",x="avatar-recorder"in AFRAME.components,C=AFRAME.scenes[0],_=function(e){function t(e){a(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));if(n.buttonPressRecording=function(){var e=n,t=document.createElement("a-entity");t.setAttribute("text",{align:"center",color:"red",value:"Press any controller or keyboard button to record"}),t.setAttribute("position","0 0 -1"),C.play();var o=C.querySelector("[data-aframe-inspector-original-camera]");o.setAttribute("camera","active",!0),o.getObject3D("replayermesh")&&(o.getObject3D("replayermesh").visible=!1),o.appendChild(t),C.enterVR(),C.addEventListener("buttonup",function n(){t.parentNode.removeChild(t),e.countdownRecording(),C.removeEventListener("buttonup",n)}),document.addEventListener("keyup",function n(){t.parentNode.removeChild(t),e.countdownRecording(),document.removeEventListener("keyup",n)});var r=0,a=void 0,i=void 0;C.addEventListener("buttonup",function t(n){e.state.isRecording&&(i&&a===n.detail.id&&n.timeStamp-i<500?(r++,i=n.timeStamp):(r=1,a=n.detail.id,i=n.timeStamp),r>=5&&e.stopRecording(),v.on("motioncapturerecordstop",function(){C.removeEventListener("buttonup",t)}))})},n.countdownRecording=function(){var e=document.createElement("a-entity");e.setAttribute("text",{align:"center",color:"red",value:E.toString()}),e.setAttribute("scale","3 3 3"),e.setAttribute("position","0 0 -1"),n.state.isReplaying&&n.stopReplaying(),C.play();var t=C.querySelector("[data-aframe-inspector-original-camera]");t.setAttribute("camera","active",!0),t.getObject3D("replayermesh")&&(t.getObject3D("replayermesh").visible=!1),t.appendChild(e),C.enterVR(),v.emit("inspectormodechanged",!1),n.setState({countdown:E.toString()}),v.emit("motioncapturecountdown",E),n.countdownInterval=setInterval(function(){return 0===n.state.countdown?(e.parentNode.removeChild(e),n.startRecording(),n.setState({countdown:-1}),v.emit("motioncapturecountdown",-1),void clearInterval(n.countdownInterval)):(e.setAttribute("text",{value:(n.state.countdown-1).toString()}),v.emit("motioncapturecountdown",n.state.countdown-1),void n.setState({countdown:n.state.countdown-1}))},1e3)},n.startRecording=function(){var e="Recording #"+n.state.recordingNames.length;n.state.recordingName||n.setState({recordingName:e});var t=n.state.recordingName||e;C.setAttribute("avatar-recorder","recordingName",t),C.components["avatar-recorder"].startRecording(),n.setState({isRecording:!0}),v.emit("motioncapturerecordstart")},n.stopRecording=function(){C.components["avatar-recorder"].stopRecording(),C.pause(),C.querySelector('[data-aframe-inspector="camera"]').setAttribute("camera","active",!0),n.refreshRecordingNames().then(function(){n.setState({isRecording:!1,recordingName:"",selectedRecordingName:n.state.recordingName},function(){v.emit("inspectormodechanged",!0)})}),setTimeout(function(){n.startReplaying()}),v.emit("motioncapturerecordstop")},n.renderRecordingOptions=function(e){return p.default.createElement("strong",{className:"option"},e.label)},n.selectRecording=function(e){n.stopReplaying(),n.setState({selectedRecordingName:e}),localStorage.setItem(b,e)},n.startReplaying=function(){if(!n.state.isRecording&&!n.state.isReplaying){console.log("[inspector] Replaying recording. Add "+('avatar-replayer="recordingName: '+n.state.selectedRecordingName+'; loop: true; spectatorMode: true"')+" to <a-scene> to play automatically without Inspector or append to URL ?recording="+n.state.selectedRecordingName),C.play(),C.setAttribute("avatar-replayer","recordingName",n.state.selectedRecordingName),C.components["avatar-replayer"].replayRecordingFromSource();var e=C.querySelector("[data-aframe-inspector-original-camera]");e.getObject3D("replayerMesh").visible=!0,n.setState({isReplaying:!0}),C.setAttribute("aframe-inspector-motion-capture-replaying","")}},n.stopReplaying=function(){C.components["avatar-replayer"].stopReplaying(),n.state.inspectorOpened&&C.pause(),n.setState({isReplaying:!1}),C.removeAttribute("aframe-inspector-motion-capture-replaying")},n.deleteRecording=function(){n.state.selectedRecordingName&&(n.recordingdb.deleteRecording(n.state.selectedRecordingName),n.refreshRecordingNames())},n.onChangeRecordingName=function(e){n.setState({recordingName:e.target.value})},n.uploadRecording=function(){var e=n,t=new XMLHttpRequest;console.log("Uploading recording to gist.github.com."),t.open("POST","https://api.github.com/gists",!0),t.setRequestHeader("Content-type","application/json; charset=utf-8"),t.onload=function(){var t=JSON.parse(this.responseText),n=t.files[Object.keys(t.files)[0]].raw_url;console.log("Recording uploaded to",n),e.setState({isCurrentlyUploading:!1,uploadedRecordingURL:n})},n.recordingdb.getRecording(n.state.selectedRecordingName).then(function(e){t.send(JSON.stringify({files:r({},n.state.selectedRecordingName+".json",{content:JSON.stringify(e)})}))}),n.setState({isCurrentlyUploading:!0})},n.downloadRecording=function(){var e=n.state.selectedRecordingName;n.recordingdb.getRecording(e).then(function(t){var n=new Blob([JSON.stringify(t)],{type:"application/json"}),o=document.createElement("a");o.href=URL.createObjectURL(n),o.setAttribute("download",e.toLowerCase().replace(/ /g,"-")+".json"),o.innerHTML="Downloading...",o.style.display="none",document.body.appendChild(o),setTimeout(function(){o.click(),document.body.removeChild(o)})})},n.addRecordingFromFile=function(e,t){t.forEach(function(e){var t=u(e,2),o=t[0],r=t[1];n.recordingdb.addRecording(r.name,JSON.parse(o.target.result)),n.refreshRecordingNames().then(function(){n.setState({selectedRecordingName:r.name})})})},n.addRecordingFromURL=function(){var e=n,t=prompt("Enter a URL of a recording to fetch");if(t){var o=prompt("Enter a name for the recording to store as"),r=new XMLHttpRequest;r.addEventListener("load",function(){e.recordingdb.addRecording(o||"Recording "+e.state.recordingNames.length,JSON.parse(this.responseText)),e.refreshRecordingNames().then(function(){e.setState({selectedRecordingName:o})})}),r.open("GET",t),r.send()}},n.handleRecordingStartKey=function(e){"Enter"===e.key&&n.startRecording()},n.toggleLoop=function(){n.setState({loopEnabled:!n.state.loopEnabled}),C.setAttribute("avatar-replayer","loop",!n.state.loopEnabled),localStorage.setItem(y,!n.state.loopEnabled)},n.handleWaitButtonCheckboxChange=function(){n.setState({waitForButtonPress:!n.state.waitForButtonPress})},""===localStorage.getItem(y)&&localStorage.setItem(y,"true"),x)n.onScriptLoad();else{console.log('[inspector] Injecting <script src="'+g+'"></script> for motion capture.');var o=document.createElement("script");o.setAttribute("src",g),document.body.appendChild(o),x=!0,o.onload=n.onScriptLoad.bind(n)}return C.addEventListener("replayingstopped",function(){n.stopReplaying()}),v.on("inspectormodechanged",function(e){if(n.setState({inspectorOpened:e}),n.state.isReplaying&&!e){var t=C.querySelector("[data-aframe-inspector-original-camera]");t.getObject3D("replayerMesh")&&(t.getObject3D("replayerMesh").visible=!1),n.setState({inspectorOpened:!1})}if(n.state.isReplaying&&e){var o=C.querySelector("[data-aframe-inspector-original-camera]");o.getObject3D("replayerMesh")&&(o.getObject3D("replayerMesh").visible=!0),n.setState({inspectorOpened:!0})}n.state.isRecording&&e&&n.stopRecording()}),n.state={countdown:-1,loopEnabled:JSON.parse(localStorage.getItem(y)),inspectorOpened:!0,isCurrentlyUploading:!1,isRecording:!1,isReplaying:!1,recordingName:"",recordingNames:[],selectedRecordingName:"",uploadedRecordingURL:"",waitForButtonPress:!0},n}return s(t,e),l(t,[{key:"componentWillUnmount",value:function(){C.removeAttribute("avatar-recorder"),C.removeAttribute("avatar-replayer")}},{key:"onScriptLoad",value:function(){var e=this,t=this;C.setAttribute("avatar-recorder",{autoPlay:!1}),C.setAttribute("avatar-replayer",{autoPlay:!1,cameraOverride:"[data-aframe-inspector-original-camera]",loop:JSON.parse(localStorage.getItem(y))}),this.recordingdb=C.systems.recordingdb,this.refreshRecordingNames().then(function(n){var o=localStorage.getItem(b);if(o&&e.state.recordingNames.indexOf(o)!==-1&&e.setState({selectedRecordingName:o}),!n.length){var r=new XMLHttpRequest;r.addEventListener("load",function(){t.recordingdb.addRecording("* Sample Recording",JSON.parse(this.responseText)),t.refreshRecordingNames().then(function(){t.setState({selectedRecordingName:"* Sample Recording"})})}),r.open("GET",w),r.send()}})}},{key:"getOptions",value:function(){return this.state.recordingNames.sort().map(function(e){return{value:e,label:e}})}},{key:"refreshRecordingNames",value:function(){var e=this;return new Promise(function(t){e.recordingdb.getRecordingNames().then(function(n){var o={recordingNames:n};n&&n.length?e.state.selectedRecordingName&&n.indexOf(e.state.selectedRecordingName)!==-1||(o.selectedRecordingName=n[0]):o.selectedRecordingName="",e.setState(o,function(){t(n)})})})}},{key:"render",value:function(){var e=this.state;return p.default.createElement("div",{id:"motionCapture",style:{background:"#2B2B2B",padding:"1px 0 20px 10px",width:"100%"}},p.default.createElement("p",{style:{marginBottom:0}},"Motion Capture Recording",p.default.createElement("a",{className:"button fa fa-question-circle",href:"https://aframe.io/blog/motion-capture/",target:"_blank",ref:"external"})),p.default.createElement("p",{style:{textDecoration:"underline"}},"Record"),p.default.createElement("input",{id:"recordingName",placeholder:"Recording name...",value:e.recordingName||"",onChange:this.onChangeRecordingName,onKeyPress:this.handleRecordingStartKey,title:"Recording name",style:{padding:"10px 0 10px 10px",width:"75%"}}),e.countdown!==-1&&p.default.createElement("span",{style:{color:"#EF2D5E",position:"relative",left:"10px",top:"2px"}},this.state.countdown),!e.isRecording&&e.countdown===-1&&p.default.createElement("a",{className:"button fa fa-circle",title:"Start recording. Make sure `avatar-replayer.spectatorMode` is not active.",onClick:e.waitForButtonPress?this.buttonPressRecording:this.countdownRecording,style:{color:"#EF2D5E",position:"relative",right:"2px",top:"2px"}}),e.isRecording&&e.countdown===-1&&p.default.createElement("a",{className:"button fa fa-square",title:"Stop recording",onClick:this.stopRecording,style:{color:"#EF2D5E"}}),p.default.createElement("div",{style:{marginTop:"8px"}},p.default.createElement("input",{id:"waitForButton",type:"checkbox",checked:this.state.waitForButtonPress,onChange:this.handleWaitButtonCheckboxChange,style:{marginLeft:0,marginTop:"2px"}}),p.default.createElement("label",{htmlFor:"waitForButton",style:{fontSize:"10px",fontStyle:"italic",display:"inline-block",verticalAlign:"top",width:"180px"}},"Use controller to toggle recording. Click the red circle, then press any button to start recording. Then press any button five times quickly to stop recording.")),p.default.createElement("p",{style:{textDecoration:"underline",marginBottom:0}},"Replay"),p.default.createElement(f.default,{className:"savedRecordings",options:this.getOptions(),clearable:!1,simpleValue:!0,placeholder:"Replay recording...",noResultsText:"No recordings found",onChange:this.selectRecording,optionRenderer:this.renderRecordingOptions,searchable:!0,value:e.selectedRecordingName||void 0}),!e.isReplaying&&p.default.createElement("a",{className:"button fa fa-play",title:"Replay "+e.selectedRecordingName+" recording",onClick:this.startReplaying,style:{verticalAlign:"middle",position:"relative",top:"5px"}}),e.isReplaying&&p.default.createElement("a",{className:"button fa fa-square",title:"Stop replaying recording",onClick:this.stopReplaying,style:{verticalAlign:"middle",position:"relative",top:"5px"}}),p.default.createElement("div",{style:{paddingTop:"8px",paddingLeft:"2px"}},p.default.createElement(m.default,{as:"text",onChange:this.addRecordingFromFile,style:{display:"inline-block",marginLeft:"1px"}},p.default.createElement("a",{className:"button fa fa-upload",title:"Add recording from file system",style:{marginLeft:0}})),p.default.createElement("a",{className:"button fa fa-link",title:"Add recording from URL",onClick:this.addRecordingFromURL,style:{marginLeft:"10px",paddingRight:"60px"}}),e.selectedRecordingName&&p.default.createElement("span",null,p.default.createElement("a",{className:"button fa fa-repeat",title:"Toggle loop of replaying",onClick:this.toggleLoop,style:r({},this.state.loopEnabled&&"color","#FFF")}),p.default.createElement("a",{className:"button fa fa-save",title:"Download "+e.selectedRecordingName+" recording",onClick:this.downloadRecording}),p.default.createElement("a",{className:e.isCurrentlyUploading?"button fa fa-hourglass-half":"button fa fa-cloud-upload",title:e.isCurrentlyUploading?"Uploading "+e.selectedRecordingName+"...":"Upload "+e.selectedRecordingName+" recording",onClick:this.uploadRecording,style:r({},e.isCurrentlyUploading&&"color","#24CAFF")}),p.default.createElement("a",{className:"button fa fa-trash",title:"Delete "+e.selectedRecordingName+" recording",onClick:this.deleteRecording}))),e.uploadedRecordingURL&&p.default.createElement("a",{href:e.uploadedRecordingURL,target:"_blank",ref:"external",style:{color:"#FAFAFA",display:"inline-block",marginLeft:"2px",marginTop:"10px",width:"85%",overflow:"hidden"},title:e.uploadedRecordingURL},e.uploadedRecordingURL),"* Sample Recording"===e.selectedRecordingName&&p.default.createElement("p",{style:{fontSize:"10px",width:"200px"}},"* To get controllers to replay with the sample recording, give your controllers ",p.default.createElement("code",null,'id="rightHand"')," and ",p.default.createElement("code",null,'id="leftHand"')))}}]),t}(p.default.Component);t.default=_},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=function(e,t,n){for(var o=!0;o;){var r=e,a=t,i=n;o=!1,null===r&&(r=Function.prototype);var s=Object.getOwnPropertyDescriptor(r,a);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(i)}var l=Object.getPrototypeOf(r);if(null===l)return;e=l,t=a,n=i,o=!0,s=l=void 0}},c=n(2),p=o(c),d=n(32),f=o(d),h=n(172),m=o(h),v=function(e){function t(e){var n=this;a(this,t),l(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.handleChange=function(e){for(var t=[],o=0;o<e.target.files.length;o++)t.push(e.target.files[o]);Promise.all(t.map(function(e){return new Promise(function(t,o){var r=new FileReader;switch(r.onload=function(n){t([n,e])},(n.props.as||"url").toLowerCase()){case"binary":r.readAsBinaryString(e);break;case"buffer":r.readAsArrayBuffer(e);break;case"text":r.readAsText(e);break;case"url":r.readAsDataURL(e)}})})).then(function(t){n.props.onChange(e,t)})},this.triggerInput=function(e){f.default.findDOMNode(n._reactFileReaderInput).click()};var o="object"==typeof window?window:{};"object"!=typeof window||o.File&&o.FileReader&&o.FileList&&o.Blob||console.warn("[react-file-reader-input] Some file APIs detected as not supported. File reader functionality may not fully work.")}return i(t,e),u(t,null,[{key:"propTypes",value:{as:m.default.oneOf(["binary","buffer","text","url"]),children:m.default.any,onChange:m.default.func},enumerable:!0}]),u(t,[{key:"render",value:function(){var e=this,t=this.props.children?{position:"absolute",top:"-9999px"}:{},n=this.props,o=(n.as,n.style),a=r(n,["as","style"]);return p.default.createElement("div",{className:"_react-file-reader-input",onClick:this.triggerInput,style:o},p.default.createElement("input",s({},a,{children:void 0,type:"file",onChange:this.handleChange,ref:function(t){return e._reactFileReaderInput=t},onClick:function(){e._reactFileReaderInput.value=null},style:t})),this.props.children)}}]),t}(p.default.Component);t.default=v,e.exports=t.default},function(e,t,n){"use strict";function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),u=n(2),l=n(176),c=n(181),p=[{value:"translate",icon:"fa-arrows"},{value:"rotate",icon:"fa-repeat"},{value:"scale",icon:"fa-expand"}],d=function(e){function t(e){r(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.changeTransformMode=function(e){n.setState({selectedTransform:e}),l.emit("transformmodechanged",e),ga("send","event","Toolbar","selectHelper",e)},n.onLocalChange=function(e){var t=e.target.checked;n.setState({localSpace:t}),l.emit("spacechanged",t?"local":"world"),ga("send","event","Toolbar","toggleLocal",t)},n.renderTransformButtons=function(){return p.map(function(e,t){var n,r=e.value===this.state.selectedTransform,a=c((n={button:!0,fa:!0},o(n,e.icon,!0),o(n,"active",r),n));return u.createElement("a",{title:e.value,key:t,onClick:this.changeTransformMode.bind(this,e.value),className:a})}.bind(n))},n.state={selectedTransform:"translate",localSpace:!1},n}return i(t,e),s(t,[{key:"componentDidMount",value:function(){var e=this;l.on("transformmodechanged",function(t){e.setState({selectedTransform:t})})}},{key:"render",value:function(){return u.createElement("div",{className:"toolbar"},this.renderTransformButtons(),u.createElement("span",{className:"local-transform"},u.createElement("input",{id:"local",type:"checkbox",checked:this.state.localSpace||"scale"===this.state.selectedTransform,disabled:"scale"===this.state.selectedTransform,onChange:this.onLocalChange}),u.createElement("label",{htmlFor:"local"},"local")))}}]),t}(u.Component);t.default=d},function(e,t,n){var o=n(248);"string"==typeof o&&(o=[[e.id,o,""]]);n(195)(o,{});o.locals&&(e.exports=o.locals)},function(e,t,n){t=e.exports=n(194)(),t.push([e.id,'.toggle-edit,body.aframe-inspector-opened{font-family:BlinkMacSystemFont,-apple-system,Segoe UI,Helvetica,Arial,sans-serif}.wf-roboto-n4-active .toggle-edit,.wf-roboto-n4-active body.aframe-inspector-opened{font-family:Roboto,BlinkMacSystemFont,-apple-system,Segoe UI,Helvetica,Arial,sans-serif}.Select,code,input,pre,select,textarea{font-family:Consolas,Andale Mono,Monaco,Courier New,monospace}.wf-robotomono-n4-active .Select,.wf-robotomono-n4-active code,.wf-robotomono-n4-active input,.wf-robotomono-n4-active pre,.wf-robotomono-n4-active select,.wf-robotomono-n4-active textarea{font-family:Roboto Mono,Consolas,Andale Mono,Monaco,Courier New,monospace}body.aframe-inspector-opened{color:#fff;font-size:12px;margin:0;overflow:hidden}hr{border:0;border-top:1px solid #ccc}a{cursor:pointer}button{position:relative}code{font-family:Consolas,Andale Mono,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace}textarea{-moz-tab-size:4;-o-tab-size:4;tab-size:4;white-space:pre;word-wrap:normal}textarea.success{border-color:#8b8!important}textarea.fail{background-color:rgba(255,0,0,.05);border-color:red!important}input,textarea{outline:none}#left-sidebar,#right-panels{z-index:9998}#left-sidebar,#sidebar,.panel{cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.collapsible .static{margin:0}.collapsible .static .collapse-button{border:6px solid transparent;margin-right:6px}.collapsible.collapsed .static .collapse-button{border-left-color:#1faaf2;margin-top:2px}.collapsible:not(.collapsed) .static .collapse-button{border-top-color:#1faaf2;margin-top:6px}.collapsible.collapsed .content{display:none}.toggle-edit{background-color:#ed3160;color:#fff;font-size:12px;left:3px;margin:0;padding:6px 10px;position:fixed;text-align:center;text-decoration:none;top:3px;width:204px;z-index:99999}.toggle-edit:hover{background-color:#e42b5a}.scenegraph{border-top:1px solid #111;padding-top:32px}.scenegraph .search{padding:5px}.scenegraph-toolbar{background-color:#333}.scenegraph-actions{padding:9px 0 5px}.search{color:#aaa;font-size:16px;position:relative}.search input{background:#222;border-radius:5px;height:22px;text-indent:10px;width:216px}.search .fa-search{position:absolute;right:11px;top:10px}.search .fa-times{position:absolute;right:32px;top:10px}input{background-color:transparent;border:1px solid #555;color:#fff}.texture canvas,input{transition:background-color .1s ease-in-out,border-color .1s ease-in-out,color .1s ease-in-out}input.number,input.string,input[type=number],input[type=text]{min-height:14px;outline:none}input.number{background-color:transparent!important;border:0;color:#20b1fb!important;cursor:col-resize;font-size:12px;padding:2px}input.number:focus,input.string:focus{border:1px solid #20b1fb;color:#fff;cursor:auto}input.error{border:1px solid #a00}#left-sidebar{background:#2b2b2b;bottom:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;left:0;overflow:auto;position:fixed;top:0;width:230px}#sidebar{background:#2b2b2b;width:331px}#sidebar *{vertical-align:middle}input,select,textarea{background:#222;border:1px solid transparent;color:#888}.row{margin-bottom:10px;min-height:20px}input[type=color]{background-color:#333;border:1px solid #111}.texture canvas{border:1px solid #222;cursor:pointer}.texture canvas:hover{border-color:#1faaf2}input[type=color]{cursor:pointer;height:16px;padding:0;width:64px}input[type=color]::-webkit-color-swatch{border:0}input[type=color]::-webkit-color-swatch-wrapper{padding:0}input[type=color]::-moz-color-swatch{border:0}input[type=color]::-moz-focus-inner{border:0;padding:0}.components{background-color:#323232;color:#bcbcbc;height:100%;overflow:auto;position:fixed;width:331px}div.vec2,div.vec3,div.vec4{display:inline}.vec2 input.number,.vec3 input.number{width:46px}.vec4 input.number{width:34px}.collapsible-header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.component-title span{float:left;max-width:110px;overflow:hidden;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap}.collapsible .static{background-color:#323232;border-bottom:1px solid #262626;border-top:1px solid #262626;color:#fff;height:16px;padding:10px;vertical-align:middle}.collapsible .menu{text-align:right}.collapsible .menu:after{color:#bbb;content:"\\2807";font-size:12px;padding:5px;text-align:right}.collapsible .static .collapse-button{border-left:5px solid transparent;border-right:5px solid transparent;float:left;height:0;margin-right:10px;margin-top:2px;width:0}.collapsible.collapsed .static .collapse-button{border-left-color:#bbb}.collapsible:not(.collapsed) .static .collapse-button{border-top-color:#bbb}.collapsible .content{background-color:#2b2b2b;padding:10px}.components .row{margin-bottom:10px;min-height:20px}.components *{vertical-align:middle}.components .row .text{cursor:default;display:inline-block;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;width:120px}.components .row .map_value{margin:0 0 0 5px;width:68px}.hidden{visibility:hidden}.uploader-normal-button .hidden{display:none}.texture canvas+input{margin-left:5px}.texture .fa{padding-right:5px}.texture .fa-external-link{font-size:14px;padding-top:2px}.scenegraph-bottom{background-color:#323232;border-top:1px solid #111;bottom:10;height:40px;left:0;z-index:100}a.button{color:#bcbcbc;font-size:16px;margin-left:10px;text-decoration:none}a.button:hover{color:#1faaf2}.scenegraph-bottom a{float:right;margin:10px}.modal{-webkit-animation:animateopacity .2s ease-out;animation:animateopacity .2s ease-out;background-color:#000;background-color:rgba(0,0,0,.6);display:-webkit-box;display:-ms-flexbox;display:flex;height:100%;left:0;overflow:auto;position:fixed;top:0;width:100%;z-index:9999}.modal h3{font-size:18px;font-weight:100;margin:.6em 0}#texture-modal .modal-content{height:calc(100% - 50px);width:calc(100% - 50px)}.modal-content{-webkit-animation:animatetop .2s ease-out;animation:animatetop .2s ease-out;-webkit-animation-duration:.2s;animation-duration:.2s;-webkit-animation-name:animatetop;animation-name:animatetop;background-color:#232323;box-shadow:0 4px 8px 0 rgba(0,0,0,.5),0 6px 20px 0 rgba(0,0,0,.5);margin:auto;overflow:hidden;padding:0}@-webkit-keyframes animateopacity{0%{opacity:0}to{opacity:1}}@keyframes animateopacity{0%{opacity:0}to{opacity:1}}.close{color:#fff;float:right;font-size:28px;font-weight:700}.close:focus,.close:hover{color:#08f;cursor:pointer;text-decoration:none}.modal-header{color:#fff;padding:2px 16px}.modal-body{overflow:auto;padding:16px}.modal-footer{color:#fff;padding:2px 16px}.gallery{background:#232323;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin:15px auto 0;max-height:50vh;overflow:auto;padding:15px 3px 3px}.newimage .gallery{padding:16px}.gallery li{border-radius:2px;box-shadow:0 0 6px rgba(0,0,0,.6);cursor:pointer;margin:8px;overflow:hidden;width:155px}.gallery li.selected,.gallery li:hover{box-shadow:0 0 0 2px #1eaaf1}.gallery li .detail{background-color:#323232;margin:0;min-height:60px;padding:3px 10px}.gallery li .button.fa-external-link{margin-left:136px;margin-top:5px;position:fixed}.preview{padding:10px;width:150px}.preview input{display:block;margin:8px 0;width:144px}.preview button{width:155px}.preview .detail .title{color:#fff;display:inline-block;max-width:155px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gallery li.selected .detail,.gallery li:hover .detail{background-color:#444}.gallery li .detail span{color:#777;display:block;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:140px}.gallery li.selected .detail span,.gallery li:hover .detail span{color:#888}.gallery li .detail span.title{color:#fff!important}.modal button{-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:0;box-shadow:none;cursor:pointer;display:inline-block;font-size:12px;line-height:1.8;margin:0 10px 0 0;padding:5px 10px}.modal button:focus{outline:none}.modal button{background-color:#1eaaf1;border:none;color:#fff}.modal button.hover,.modal button:hover{background-color:#346392;text-shadow:-1px 1px #27496d}.modal button.active,.modal button:active{background-color:#27496d;text-shadow:-1px 1px #193047}.modal button:disabled{background-color:#888;cursor:none}.newimage{background-color:#323232;color:#bcbcbc;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:13px;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin-top:10px;overflow:auto;padding:10px}.newimage input{color:#1eaaf1;padding:3px 5px}.hide{display:none}span.value{color:#fff;display:inline-block}span.mixinlist{color:#888!important;display:inline-block}span.mixinlist ul{background-color:#222;list-style-type:none;margin:5px 0 0;padding:5px}span.mixinlist ul li{font-size:11px;margin-bottom:3px}span.mixinlist ul li:last-child{margin-bottom:0}span.mixin{display:inline-block;width:100px}.mixinlist{margin-left:120px}span.subcomponent{color:#999;float:none!important;margin-left:10px;vertical-align:top!important}.collapsible .static{cursor:pointer}.a-canvas.state-dragging{cursor:-webkit-grabbing;cursor:grabbing}.tagName{font-weight:500}.sidebar-title{background-color:#444;color:#aaa;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:12px;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:6px 10px;position:relative;text-align:center}.toolbar{background-color:#262626;color:#333;height:32px;position:relative}.toolbar *{margin-left:0;padding:8px;vertical-align:middle}.toolbar a.button{margin:0 6px 0 0}.toolbar .active{background-color:#1faaf2;color:#fff}.toolbar .active:hover{color:#fff!important}.local-transform{padding-left:10px}.local-transform label{color:#aaa;padding-left:5px}.local-transform a.button{padding-top:0}.outliner{background:#2b2b2b;color:#868686;cursor:default;-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;font-size:12px;height:calc(100% - 98px);outline:none;overflow-y:auto;padding:0;width:230px}.outliner .option{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:4px;white-space:nowrap}.outliner .option.active{background-color:#1faaf2;color:#fff}.outliner .option .component:hover{color:#1faaf2}.outliner .option.active .component:hover{color:#1888c1}.outliner .option .icons{display:none;margin:0 3px 0 10px}.outliner .option .icons .button{color:#fff;font-size:12px}.outliner .option.active .icons{display:inline}.outliner .fa{color:#aaa}.outliner .active .fa{color:#fff}a.flat-button{background-color:#262626;color:#bcbcbc;font-size:11px;margin-left:10px;padding:5px;text-decoration:none}a.flat-button:hover{color:#1faaf2}.component-title{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex}a.help-link{opacity:.4}a.help-link:hover{opacity:1}#right-panels{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;position:fixed;right:0;top:0}#aframe-inspector-panels,#right-panels{display:-webkit-box;display:-ms-flexbox;display:flex}#aframe-inspector-panels{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.aframe-inspector-opened a-scene .a-canvas{background-color:#191919;z-index:9998}.uploadcare-widget-button-open{background-color:#1eaaf1;border-radius:0;cursor:pointer;margin-left:10px;padding:10px 15px}.uploadcare-widget-button-open:hover{background-color:#346392}.new_asset_options{margin:10px}.new_asset_options>ul{margin-left:10px;padding:5px}.new_asset_options>ul>li{padding:10px 0}.new_asset_options .imageUrl{margin-left:5px;width:350px}span.entity-name{color:#fff;font-family:Consolas,Andale Mono,Monaco,Courier New,monospace;font-size:16px}.add-component{width:200px}.Select-control{background-color:#222!important;border:none;border-radius:0;color:#1faaf2}.Select-menu-outer{border:none}.Select-menu-outer .is-focused{background-color:#1faaf2!important;color:#fff}.Select-option{background-color:#222!important}.select-widget{display:inline-block;width:157px}.Select--single>.Select-control .Select-value,.Select-placeholder,.Select-value-label{color:#1faaf2!important}.row .Select-control{font-size:11px;height:24px}.row .Select--single>.Select-control .Select-value,.row .Select-placeholder{line-height:19px}.row .Select-input{height:22px}.row input.number,.row input.string,.row input[type=number],.row input[type=text]{background:#222;border:1px solid transparent;color:#1faaf2;min-height:20px;padding-left:5px;padding-right:5px}.row input.string{box-sizing:border-box;width:165px}.help-lists{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-pack:distribute;justify-content:space-around}.help-list{list-style:none;margin:0;padding:0 0 10px;width:350px}.help-list li{margin-right:40px}.help-key-unit{line-height:1.8;margin-right:2em;padding:5px 0}.help-key{bottom:2px;margin-right:4px;min-width:60px;position:relative}.help-key span{background-color:#2e2e2e;background-repeat:repeat-x;border:1px solid #666;border-radius:3px;box-shadow:0 0 5px #000;color:#999;display:inline-block;font-size:12px;padding:0 8px;text-align:center}.help-key-def{color:#bbb;display:inline-block;margin-left:1em}.add-component{text-align:left}.add-component .option{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.add-component .option span{color:#1faaf2}.Select-menu-outer .is-focused span{color:#fff}.add-component-container{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:#2b2b2b;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;padding:10px}.aregistry-button{font-size:12px;margin-left:10px;padding:8px}.aregistry-button:hover{background-color:#1faaf2}.aregistry-button img{height:20px;width:20px}.components .row .color_value{margin:0 0 0 5px;width:68px}.assets.search{margin-top:10px;width:200px}.assets.search .fa-search{top:7px}.gallery a.fa.texture-link{box-shadow:0 0 14px -1px rgba(0,0,0,.75);position:fixed}.outliner .id{color:#ccc}.outliner .option.active .id{color:#fff}.outliner .collasespace{color:#eee;display:inline-block;text-align:center;width:14px}.outliner .fa-eye{color:#bbb}.outliner .option{white-space:pre}.option span:first-child{overflow:hidden;text-overflow:ellipsis}.outliner .option.novisible .collasespace,.outliner .option.novisible .fa,.outliner .option.novisible .id,.outliner .option.novisible span{color:#575757}.outliner .option .icons a.button{color:#fff}.toggle-sidebar{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;height:100%;position:absolute;z-index:9998}.toggle-sidebar.left{left:0}.toggle-sidebar.right{right:0}.toggle-sidebar a{background-color:#262626;color:#bcbcbc;padding:5px;z-index:9998}.toggle-sidebar a:hover{background-color:#1faaf2;color:#fff}.dropbtn{border:none;color:#fff;cursor:pointer}.dropdown{display:inline-block;position:relative}.dropdown-content{background-color:#f9f9f9;box-shadow:0 8px 16px 0 rgba(0,0,0,.2);display:none;left:8px;min-width:38px;position:absolute;z-index:999}.dropdown-content a{background-color:#232323;color:#7d7d7d;display:block;padding:10px 14px;text-decoration:none}.dropdown-content a:hover{background-color:#4ecbff;color:#fff}.dropdown:hover .dropdown-content{display:block}.dropdown:hover .dropbtn{color:#1faaf2}.savedRecordings{display:inline-block;margin-top:10px;vertical-align:middle;width:80%}',""]);
},function(e,t){"use strict";!function(e,t,n,o,r,a,i){e.GoogleAnalyticsObject=r,e[r]=e[r]||function(){(e[r].q=e[r].q||[]).push(arguments)},e[r].l=1*new Date,a=t.createElement(n),i=t.getElementsByTagName(n)[0],a.async=1,a.src=o,a.setAttribute("data-aframe-inspector",""),i.parentNode.insertBefore(a,i)}(window,document,"script","https://www.google-analytics.com/analytics.js","ga"),ga("create","UA-80530812-1","auto"),ga("send","pageview")}]);