text: !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("babylonjs"),require("babylonjs-gui"),require("babylonjs-loaders"),require("babylonjs-materials"),require("babylonjs-serializers")):"function"==typeof define&&define.amd?define("babylonjs-inspector",["babylonjs","babylonjs-gui","babylonjs-loaders","babylonjs-materials","babylonjs-serializers"],t):"object"==typeof exports?exports["babylonjs-inspector"]=t(require("babylonjs"),require("babylonjs-gui"),require("babylonjs-loaders"),require("babylonjs-materials"),require("babylonjs-serializers")):e.INSPECTOR=t(e.BABYLON,e.BABYLON.GUI,e.BABYLON,e.BABYLON,e.BABYLON)}("undefined"!=typeof self?self:"undefined"!=typeof global?global:this,(function(e,t,r,n,a){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=17)}([function(e,t,r){"use strict";e.exports=r(18)},function(t,r){t.exports=e},function(e,t,r){e.exports=r(25)()},function(e,r){e.exports=t},function(e,t,r){"use strict";
  /*
  object-assign
  (c) Sindre Sorhus
  @license MIT
  */var n=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){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={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,l,s=i(e),p=1;p<arguments.length;p++){for(var c in r=Object(arguments[p]))a.call(r,c)&&(s[c]=r[c]);if(n){l=n(r);for(var u=0;u<l.length;u++)o.call(r,l[u])&&(s[l[u]]=r[l[u]])}}return s}},function(e,t,r){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=r(19)},function(e,t,r){var n;
  /*!
    Copyright (c) 2017 Jed Watson.
    Licensed under the MIT License (MIT), see
    http://jedwatson.github.io/classnames
  */!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)&&n.length){var i=a.apply(null,n);i&&e.push(i)}else if("object"===o)for(var l in n)r.call(n,l)&&n[l]&&e.push(l)}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(n=function(){return a}.apply(t,[]))||(e.exports=n)}()},function(e,t){e.exports=r},function(e,t,r){"use strict";var n=r(0),a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i={base:{position:"absolute",userSelect:"none",MsUserSelect:"none"},top:{width:"100%",height:"10px",top:"-5px",left:"0px",cursor:"row-resize"},right:{width:"10px",height:"100%",top:"0px",right:"-5px",cursor:"col-resize"},bottom:{width:"100%",height:"10px",bottom:"-5px",left:"0px",cursor:"row-resize"},left:{width:"10px",height:"100%",top:"0px",left:"-5px",cursor:"col-resize"},topRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",top:"-10px",cursor:"ne-resize"},bottomRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",bottom:"-10px",cursor:"se-resize"},bottomLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",bottom:"-10px",cursor:"sw-resize"},topLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",top:"-10px",cursor:"nw-resize"}},l=function(e){return n.createElement("div",{className:e.className,style:o({},i.base,i[e.direction],e.replaceStyles||{}),onMouseDown:function(t){e.onResizeStart(t,e.direction)},onTouchStart:function(t){e.onResizeStart(t,e.direction)}},e.children)},s={userSelect:"none",MozUserSelect:"none",WebkitUserSelect:"none",MsUserSelect:"none"},p={userSelect:"auto",MozUserSelect:"auto",WebkitUserSelect:"auto",MsUserSelect:"auto"},c=function(e,t,r){return Math.max(Math.min(e,r),t)},u=function(e,t){return Math.round(e/t)*t},d=function(e,t){return t.reduce((function(t,r){return Math.abs(r-e)<Math.abs(t-e)?r:t}))},h=function(e,t){return e.substr(e.length-t.length,t.length)===t},b=function(e){return"auto"===e.toString()||h(e.toString(),"px")||h(e.toString(),"%")||h(e.toString(),"vh")||h(e.toString(),"vw")||h(e.toString(),"vmax")||h(e.toString(),"vmin")?e.toString():e+"px"},m=["style","className","grid","snap","bounds","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent"],g=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.state={isResizing:!1,resizeCursor:"auto",width:void 0===(r.propsSize&&r.propsSize.width)?"auto":r.propsSize&&r.propsSize.width,height:void 0===(r.propsSize&&r.propsSize.height)?"auto":r.propsSize&&r.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0}},r.updateExtendsProps(e),r.onResizeStart=r.onResizeStart.bind(r),r.onMouseMove=r.onMouseMove.bind(r),r.onMouseUp=r.onMouseUp.bind(r),"undefined"!=typeof window&&(window.addEventListener("mouseup",r.onMouseUp),window.addEventListener("mousemove",r.onMouseMove),window.addEventListener("mouseleave",r.onMouseUp),window.addEventListener("touchmove",r.onMouseMove),window.addEventListener("touchend",r.onMouseUp)),r}return function(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)}(t,e),a(t,[{key:"updateExtendsProps",value:function(e){this.extendsProps=Object.keys(e).reduce((function(t,r){return-1!==m.indexOf(r)||(t[r]=e[r]),t}),{})}},{key:"getParentSize",value:function(){var e=this.base;if(!e)return{width:window.innerWidth,height:window.innerHeight};var t=!1,r=this.parentNode.style.flexWrap,n=e.style.minWidth;"wrap"!==r&&(t=!0,this.parentNode.style.flexWrap="wrap"),e.style.position="relative",e.style.minWidth="100%";var a={width:e.offsetWidth,height:e.offsetHeight};return e.style.position="absolute",t&&(this.parentNode.style.flexWrap=r),e.style.minWidth=n,a}},{key:"componentDidMount",value:function(){var e=this.size;this.setState({width:this.state.width||e.width,height:this.state.height||e.height});var t=this.parentNode;if(t instanceof HTMLElement&&!this.base){var r=document.createElement("div");r.style.width="100%",r.style.height="100%",r.style.position="absolute",r.style.transform="scale(0, 0)",r.style.left="0",r.style.flex="0",r.classList?r.classList.add("__resizable_base__"):r.className+="__resizable_base__",t.appendChild(r)}}},{key:"componentWillReceiveProps",value:function(e){this.updateExtendsProps(e)}},{key:"componentWillUnmount",value:function(){if("undefined"!=typeof window){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseleave",this.onMouseUp),window.removeEventListener("touchmove",this.onMouseMove),window.removeEventListener("touchend",this.onMouseUp);var e=this.parentNode,t=this.base;if(!t||!e)return;if(!(e instanceof HTMLElement&&t instanceof Node))return;e.removeChild(t)}}},{key:"calculateNewSize",value:function(e,t){var r=this.propsSize&&this.propsSize[t];return"auto"!==this.state[t]||this.state.original[t]!==e||void 0!==r&&"auto"!==r?e:"auto"}},{key:"onResizeStart",value:function(e,t){var r=0,n=0;if(e.nativeEvent instanceof MouseEvent){if(r=e.nativeEvent.clientX,n=e.nativeEvent.clientY,3===e.nativeEvent.which)return}else e.nativeEvent instanceof TouchEvent&&(r=e.nativeEvent.touches[0].clientX,n=e.nativeEvent.touches[0].clientY);this.props.onResizeStart&&this.props.onResizeStart(e,t,this.resizable),this.props.size&&(void 0!==this.props.size.height&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),void 0!==this.props.size.width&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.setState({original:{x:r,y:n,width:this.size.width,height:this.size.height},isResizing:!0,resizeCursor:window.getComputedStyle(e.target).cursor,direction:t})}},{key:"onMouseMove",value:function(e){if(this.state.isResizing){var t=e instanceof MouseEvent?e.clientX:e.touches[0].clientX,r=e instanceof MouseEvent?e.clientY:e.touches[0].clientY,n=this.state,a=n.direction,o=n.original,i=n.width,l=n.height,s=this.props,p=s.lockAspectRatio,b=s.lockAspectRatioExtraHeight,m=s.lockAspectRatioExtraWidth,g=this.props,f=g.maxWidth,v=g.maxHeight,y=g.minWidth,C=g.minHeight,E=this.getParentSize();if(f&&"string"==typeof f&&h(f,"%")){var O=Number(f.replace("%",""))/100;f=E.width*O}if(v&&"string"==typeof v&&h(v,"%")){var S=Number(v.replace("%",""))/100;v=E.height*S}if(y&&"string"==typeof y&&h(y,"%")){var x=Number(y.replace("%",""))/100;y=E.width*x}if(C&&"string"==typeof C&&h(C,"%")){var P=Number(C.replace("%",""))/100;C=E.height*P}f=void 0===f?void 0:Number(f),v=void 0===v?void 0:Number(v),y=void 0===y?void 0:Number(y),C=void 0===C?void 0:Number(C);var w="number"==typeof p?p:o.width/o.height,k=o.width,N=o.height;if(/right/i.test(a)&&(k=o.width+(t-o.x),p&&(N=(k-m)/w+b)),/left/i.test(a)&&(k=o.width-(t-o.x),p&&(N=(k-m)/w+b)),/bottom/i.test(a)&&(N=o.height+(r-o.y),p&&(k=(N-b)*w+m)),/top/i.test(a)&&(N=o.height-(r-o.y),p&&(k=(N-b)*w+m)),"parent"===this.props.bounds){var T=this.parentNode;if(T instanceof HTMLElement){var _=T.getBoundingClientRect(),M=_.left,L=_.top,R=this.resizable.getBoundingClientRect(),D=R.left,A=R.top,I=T.offsetWidth+(M-D),j=T.offsetHeight+(L-A);f=f&&f<I?f:I,v=v&&v<j?v:j}}else if("window"===this.props.bounds){if("undefined"!=typeof window){var z=this.resizable.getBoundingClientRect(),G=z.left,F=z.top,V=window.innerWidth-G,U=window.innerHeight-F;f=f&&f<V?f:V,v=v&&v<U?v:U}}else if(this.props.bounds instanceof HTMLElement){var H=this.props.bounds.getBoundingClientRect(),B=H.left,W=H.top,Y=this.resizable.getBoundingClientRect(),Z=Y.left,K=Y.top;if(!(this.props.bounds instanceof HTMLElement))return;var X=this.props.bounds.offsetWidth+(B-Z),Q=this.props.bounds.offsetHeight+(W-K);f=f&&f<X?f:X,v=v&&v<Q?v:Q}var q=void 0===y?10:y,$=void 0===f||f<0?k:f,J=void 0===C?10:C,ee=void 0===v||v<0?N:v;if(p){var te=(J-b)*w+m,re=(ee-b)*w+m,ne=(q-m)/w+b,ae=($-m)/w+b,oe=Math.max(q,te),ie=Math.min($,re),le=Math.max(J,ne),se=Math.min(ee,ae);k=c(k,oe,ie),N=c(N,le,se)}else k=c(k,q,$),N=c(N,J,ee);this.props.grid&&(k=u(k,this.props.grid[0])),this.props.grid&&(N=u(N,this.props.grid[1])),this.props.snap&&this.props.snap.x&&(k=d(k,this.props.snap.x)),this.props.snap&&this.props.snap.y&&(N=d(N,this.props.snap.y));var pe={width:k-o.width,height:N-o.height};if(i&&"string"==typeof i&&h(i,"%"))k=k/E.width*100+"%";if(l&&"string"==typeof l&&h(l,"%"))N=N/E.height*100+"%";this.setState({width:this.calculateNewSize(k,"width"),height:this.calculateNewSize(N,"height")}),this.props.onResize&&this.props.onResize(e,a,this.resizable,pe)}}},{key:"onMouseUp",value:function(e){var t=this.state,r=t.isResizing,n=t.direction,a=t.original;if(r){var o={width:this.size.width-a.width,height:this.size.height-a.height};this.props.onResizeStop&&this.props.onResizeStop(e,n,this.resizable,o),this.props.size&&this.setState(this.props.size),this.setState({isResizing:!1,resizeCursor:"auto"})}}},{key:"updateSize",value:function(e){this.setState({width:e.width,height:e.height})}},{key:"renderResizer",value:function(){var e=this,t=this.props,r=t.enable,a=t.handleStyles,o=t.handleClasses,i=t.handleWrapperStyle,s=t.handleWrapperClass,p=t.handleComponent;if(!r)return null;var c=Object.keys(r).map((function(t){return!1!==r[t]?n.createElement(l,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:a&&a[t],className:o&&o[t]},p&&p[t]?n.createElement(p[t]):null):null}));return n.createElement("span",{className:s,style:i},c)}},{key:"render",value:function(){var e=this,t=this.state.isResizing?s:p;return n.createElement("div",o({ref:function(t){t&&(e.resizable=t)},style:o({position:"relative"},t,this.props.style,this.sizeStyle,{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box"}),className:this.props.className},this.extendsProps),this.state.isResizing&&n.createElement("div",{style:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:""+(this.state.resizeCursor||"auto"),opacity:"0",position:"fixed",zIndex:"9999",top:"0",left:"0",bottom:"0",right:"0"}}),this.props.children,this.renderResizer())}},{key:"parentNode",get:function(){return this.resizable.parentNode}},{key:"propsSize",get:function(){return this.props.size||this.props.defaultSize}},{key:"base",get:function(){var e=this.parentNode;if(e)for(var t=[].slice.call(e.children),r=0;r<t.length;r+=1){var n=t[r];if(n instanceof HTMLElement&&n.classList.contains("__resizable_base__"))return n}}},{key:"size",get:function(){var e=0,t=0;if("undefined"!=typeof window){var r=this.resizable.offsetWidth,n=this.resizable.offsetHeight,a=this.resizable.style.position;"relative"!==a&&(this.resizable.style.position="relative"),e="auto"!==this.resizable.style.width?this.resizable.offsetWidth:r,t="auto"!==this.resizable.style.height?this.resizable.offsetHeight:n,this.resizable.style.position=a}return{width:e,height:t}}},{key:"sizeStyle",get:function(){var e=this,t=this.props.size,r=function(t){if(void 0===e.state[t]||"auto"===e.state[t])return"auto";if(e.propsSize&&e.propsSize[t]&&h(e.propsSize[t].toString(),"%")){if(h(e.state[t].toString(),"%"))return e.state[t].toString();var r=e.getParentSize();return Number(e.state[t].toString().replace("px",""))/r[t]*100+"%"}return b(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?b(t.width):r("width"),height:t&&void 0!==t.height&&!this.state.isResizing?b(t.height):r("height")}}}]),t}(n.Component);g.defaultProps={onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0},e.exports=g},function(e,t,r){"use strict";var n,a=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},o=function(){var e={};return function(t){if(void 0===e[t]){var r=document.querySelector(t);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}e[t]=r}return e[t]}}(),i=[];function l(e){for(var t=-1,r=0;r<i.length;r++)if(i[r].identifier===e){t=r;break}return t}function s(e,t){for(var r={},n=[],a=0;a<e.length;a++){var o=e[a],s=t.base?o[0]+t.base:o[0],p=r[s]||0,c="".concat(s," ").concat(p);r[s]=p+1;var u=l(c),d={css:o[1],media:o[2],sourceMap:o[3]};-1!==u?(i[u].references++,i[u].updater(d)):i.push({identifier:c,updater:g(d,t),references:1}),n.push(c)}return n}function p(e){var t=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var a=r.nc;a&&(n.nonce=a)}if(Object.keys(n).forEach((function(e){t.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(t);else{var i=o(e.insert||"head");if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(t)}return t}var c,u=(c=[],function(e,t){return c[e]=t,c.filter(Boolean).join("\n")});function d(e,t,r,n){var a=r?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=u(t,a);else{var o=document.createTextNode(a),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(o,i[t]):e.appendChild(o)}}function h(e,t,r){var n=r.css,a=r.media,o=r.sourceMap;if(a?e.setAttribute("media",a):e.removeAttribute("media"),o&&btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var b=null,m=0;function g(e,t){var r,n,a;if(t.singleton){var o=m++;r=b||(b=p(t)),n=d.bind(null,r,o,!1),a=d.bind(null,r,o,!0)}else r=p(t),n=h.bind(null,r,t),a=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(r)};return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else a()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=a());var r=s(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<r.length;n++){var a=l(r[n]);i[a].references--}for(var o=s(e,t),p=0;p<r.length;p++){var c=l(r[p]);0===i[c].references&&(i[c].updater(),i.splice(c,1))}r=o}}}},function(e,t,r){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=function(e,t){var r=e[1]||"",n=e[3];if(!n)return r;if(t&&"function"==typeof btoa){var a=(i=n,l=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(l),"/*# ".concat(s," */")),o=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[r].concat(o).concat([a]).join("\n")}var i,l,s;return[r].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(r,"}"):r})).join("")},t.i=function(e,r,n){"string"==typeof e&&(e=[[null,e,""]]);var a={};if(n)for(var o=0;o<this.length;o++){var i=this[o][0];null!=i&&(a[i]=!0)}for(var l=0;l<e.length;l++){var s=[].concat(e[l]);n&&a[s[0]]||(r&&(s[2]?s[2]="".concat(r," and ").concat(s[2]):s[2]=r),t.push(s))}},t}},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";r.d(t,"a",(function(){return Aa}));
  /*! *****************************************************************************
  Copyright (c) Microsoft Corporation.
  
  Permission to use, copy, modify, and/or distribute this software for any
  purpose with or without fee is hereby granted.
  
  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  PERFORMANCE OF THIS SOFTWARE.
  ***************************************************************************** */
  var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function a(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function i(e,t,r,n){return new(r||(r=Promise))((function(a,o){function i(e){try{s(n.next(e))}catch(e){o(e)}}function l(e){try{s(n.throw(e))}catch(e){o(e)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,l)}s((n=n.apply(e,t||[])).next())}))}function l(e,t){var r,n,a,o,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(a=2&o[0]?n.return:o[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,o[1])).done)return a;switch(n=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return i.label++,{value:o[1],done:!1};case 5:i.label++,n=o[1],o=[0];continue;case 7:o=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){i=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){i.label=o[1];break}if(6===o[0]&&i.label<a[1]){i.label=a[1],a=o;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(o);break}a[2]&&i.ops.pop(),i.trys.pop();continue}o=t.call(e,i)}catch(e){o=[6,e],n=0}finally{r=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}Object.create;Object.create;var s=r(0),p=r.n(s),c=r(5),u=r(1),d=r(13),h=r(2),b=r.n(h);function m(e){return(m="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)}function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){g(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function y(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function C(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function E(e){return t=e,(t-=0)==t?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1);var t}function O(e){return e.split(";").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var r,n=t.indexOf(":"),a=E(t.slice(0,n)),o=t.slice(n+1).trim();return a.startsWith("webkit")?e[(r=a,r.charAt(0).toUpperCase()+r.slice(1))]=o:e[a]=o,e}),{})}var S=!1;try{S=!0}catch(e){}function x(e){return null===e?null:"object"===m(e)&&e.prefix&&e.iconName?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"==typeof e?{prefix:"fas",iconName:e}:void 0}function P(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?g({},e,t):{}}function w(e){var t=e.forwardedRef,r=y(e,["forwardedRef"]),n=r.icon,a=r.mask,o=r.symbol,i=r.className,l=r.title,s=x(n),p=P("classes",[].concat(C(function(e){var t,r=e.spin,n=e.pulse,a=e.fixedWidth,o=e.inverse,i=e.border,l=e.listItem,s=e.flip,p=e.size,c=e.rotation,u=e.pull,d=(g(t={"fa-spin":r,"fa-pulse":n,"fa-fw":a,"fa-inverse":o,"fa-border":i,"fa-li":l,"fa-flip-horizontal":"horizontal"===s||"both"===s,"fa-flip-vertical":"vertical"===s||"both"===s},"fa-".concat(p),null!=p),g(t,"fa-rotate-".concat(c),null!=c&&0!==c),g(t,"fa-pull-".concat(u),null!=u),g(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(d).map((function(e){return d[e]?e:null})).filter((function(e){return e}))}(r)),C(i.split(" ")))),c=P("transform","string"==typeof r.transform?d.b.transform(r.transform):r.transform),u=P("mask",x(a)),h=Object(d.a)(s,v({},p,{},c,{},u,{symbol:o,title:l}));if(!h)return function(){var e;!S&&console&&"function"==typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",s),null;var b=h.abstract,m={ref:t};return Object.keys(r).forEach((function(e){w.defaultProps.hasOwnProperty(e)||(m[e]=r[e])})),k(b[0],m)}w.displayName="FontAwesomeIcon",w.propTypes={border:b.a.bool,className:b.a.string,mask:b.a.oneOfType([b.a.object,b.a.array,b.a.string]),fixedWidth:b.a.bool,inverse:b.a.bool,flip:b.a.oneOf(["horizontal","vertical","both"]),icon:b.a.oneOfType([b.a.object,b.a.array,b.a.string]),listItem:b.a.bool,pull:b.a.oneOf(["right","left"]),pulse:b.a.bool,rotation:b.a.oneOf([0,90,180,270]),size:b.a.oneOf(["lg","xs","sm","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:b.a.bool,symbol:b.a.oneOfType([b.a.bool,b.a.string]),title:b.a.string,transform:b.a.oneOfType([b.a.string,b.a.object]),swapOpacity:b.a.bool},w.defaultProps={border:!1,className:"",mask:null,fixedWidth:!1,inverse:!1,flip:null,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,symbol:!1,title:"",transform:null,swapOpacity:!1};var k=function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof r)return r;var a=(r.children||[]).map((function(r){return e(t,r)})),o=Object.keys(r.attributes||{}).reduce((function(e,t){var n=r.attributes[t];switch(t){case"class":e.attrs.className=n,delete r.attributes.class;break;case"style":e.attrs.style=O(n);break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=n:e.attrs[E(t)]=n}return e}),{attrs:{}}),i=n.style,l=void 0===i?{}:i,s=y(n,["style"]);return o.attrs.style=v({},o.attrs.style,{},l),t.apply(void 0,[r.tag,v({},o.attrs,{},s)].concat(C(a)))}.bind(null,p.a.createElement),N=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.onSelect=function(e){this.props.onSelectedIndexChange(e)},t.prototype.renderLabel=function(e,t){var r=this,n=this.props.selectedIndex===t?"label active":"label";return s.createElement("div",{className:n,key:t,onClick:function(){return r.onSelect(t)},title:e.props.title},s.createElement("div",null,s.createElement(w,{icon:e.props.icon})))},t.prototype.render=function(){var e=this;return s.createElement("div",{className:"tabs",onContextMenu:function(e){return e.preventDefault()}},s.createElement("div",{className:"labels"},this.props.children.map((function(t,r){return e.renderLabel(t,r)}))),s.createElement("div",{className:"panes"},this.props.children[this.props.selectedIndex]))},t}(s.Component),T={prefix:"fas",iconName:"address-book",icon:[448,512,[],"f2b9","M436 160c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h320c26.5 0 48-21.5 48-48v-48h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20v-64h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20v-64h20zm-228-32c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm112 236.8c0 10.6-10 19.2-22.4 19.2H118.4C106 384 96 375.4 96 364.8v-19.2c0-31.8 30.1-57.6 67.2-57.6h5c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h5c37.1 0 67.2 25.8 67.2 57.6v19.2z"]},_={prefix:"fas",iconName:"arrow-left",icon:[448,512,[],"f060","M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z"]},M={prefix:"fas",iconName:"arrows-alt",icon:[512,512,[],"f0b2","M352.201 425.775l-79.196 79.196c-9.373 9.373-24.568 9.373-33.941 0l-79.196-79.196c-15.119-15.119-4.411-40.971 16.971-40.97h51.162L228 284H127.196v51.162c0 21.382-25.851 32.09-40.971 16.971L7.029 272.937c-9.373-9.373-9.373-24.569 0-33.941L86.225 159.8c15.119-15.119 40.971-4.411 40.971 16.971V228H228V127.196h-51.23c-21.382 0-32.09-25.851-16.971-40.971l79.196-79.196c9.373-9.373 24.568-9.373 33.941 0l79.196 79.196c15.119 15.119 4.411 40.971-16.971 40.971h-51.162V228h100.804v-51.162c0-21.382 25.851-32.09 40.97-16.971l79.196 79.196c9.373 9.373 9.373 24.569 0 33.941L425.773 352.2c-15.119 15.119-40.971 4.411-40.97-16.971V284H284v100.804h51.23c21.382 0 32.09 25.851 16.971 40.971z"]},L={prefix:"fas",iconName:"ban",icon:[512,512,[],"f05e","M256 8C119.034 8 8 119.033 8 256s111.034 248 248 248 248-111.034 248-248S392.967 8 256 8zm130.108 117.892c65.448 65.448 70 165.481 20.677 235.637L150.47 105.216c70.204-49.356 170.226-44.735 235.638 20.676zM125.892 386.108c-65.448-65.448-70-165.481-20.677-235.637L361.53 406.784c-70.203 49.356-170.226 44.736-235.638-20.676z"]},R={prefix:"fas",iconName:"bone",icon:[640,512,[],"f5d7","M598.88 244.56c25.2-12.6 41.12-38.36 41.12-66.53v-7.64C640 129.3 606.7 96 565.61 96c-32.02 0-60.44 20.49-70.57 50.86-7.68 23.03-11.6 45.14-38.11 45.14H183.06c-27.38 0-31.58-25.54-38.11-45.14C134.83 116.49 106.4 96 74.39 96 33.3 96 0 129.3 0 170.39v7.64c0 28.17 15.92 53.93 41.12 66.53 9.43 4.71 9.43 18.17 0 22.88C15.92 280.04 0 305.8 0 333.97v7.64C0 382.7 33.3 416 74.38 416c32.02 0 60.44-20.49 70.57-50.86 7.68-23.03 11.6-45.14 38.11-45.14h273.87c27.38 0 31.58 25.54 38.11 45.14C505.17 395.51 533.6 416 565.61 416c41.08 0 74.38-33.3 74.38-74.39v-7.64c0-28.18-15.92-53.93-41.12-66.53-9.42-4.71-9.42-18.17.01-22.88z"]},D={prefix:"fas",iconName:"braille",icon:[640,512,[],"f2a1","M128 256c0 35.346-28.654 64-64 64S0 291.346 0 256s28.654-64 64-64 64 28.654 64 64zM64 384c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0-352C28.654 32 0 60.654 0 96s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64zm160 192c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0 160c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0-352c-35.346 0-64 28.654-64 64s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64zm224 192c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0 160c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0-352c-35.346 0-64 28.654-64 64s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64zm160 192c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0 160c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0-320c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32z"]},A={prefix:"fas",iconName:"brush",icon:[384,512,[],"f55d","M352 0H32C14.33 0 0 14.33 0 32v224h384V32c0-17.67-14.33-32-32-32zM0 320c0 35.35 28.66 64 64 64h64v64c0 35.35 28.66 64 64 64s64-28.65 64-64v-64h64c35.34 0 64-28.65 64-64v-32H0v32zm192 104c13.25 0 24 10.74 24 24 0 13.25-10.75 24-24 24s-24-10.75-24-24c0-13.26 10.75-24 24-24z"]},I={prefix:"fas",iconName:"bug",icon:[512,512,[],"f188","M511.988 288.9c-.478 17.43-15.217 31.1-32.653 31.1H424v16c0 21.864-4.882 42.584-13.6 61.145l60.228 60.228c12.496 12.497 12.496 32.758 0 45.255-12.498 12.497-32.759 12.496-45.256 0l-54.736-54.736C345.886 467.965 314.351 480 280 480V236c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v244c-34.351 0-65.886-12.035-90.636-32.108l-54.736 54.736c-12.498 12.497-32.759 12.496-45.256 0-12.496-12.497-12.496-32.758 0-45.255l60.228-60.228C92.882 378.584 88 357.864 88 336v-16H32.666C15.23 320 .491 306.33.013 288.9-.484 270.816 14.028 256 32 256h56v-58.745l-46.628-46.628c-12.496-12.497-12.496-32.758 0-45.255 12.498-12.497 32.758-12.497 45.256 0L141.255 160h229.489l54.627-54.627c12.498-12.497 32.758-12.497 45.256 0 12.496 12.497 12.496 32.758 0 45.255L424 197.255V256h56c17.972 0 32.484 14.816 31.988 32.9zM257 0c-61.856 0-112 50.144-112 112h224C369 50.144 318.856 0 257 0z"]},j={prefix:"fas",iconName:"camera",icon:[512,512,[],"f030","M512 144v288c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V144c0-26.5 21.5-48 48-48h88l12.3-32.9c7-18.7 24.9-31.1 44.9-31.1h125.5c20 0 37.9 12.4 44.9 31.1L376 96h88c26.5 0 48 21.5 48 48zM376 288c0-66.2-53.8-120-120-120s-120 53.8-120 120 53.8 120 120 120 120-53.8 120-120zm-32 0c0 48.5-39.5 88-88 88s-88-39.5-88-88 39.5-88 88-88 88 39.5 88 88z"]},z={prefix:"fas",iconName:"chart-bar",icon:[512,512,[],"f080","M332.8 320h38.4c6.4 0 12.8-6.4 12.8-12.8V172.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V76.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-288 0h38.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zM496 384H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"]},G={prefix:"fas",iconName:"check",icon:[512,512,[],"f00c","M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"]},F={prefix:"fas",iconName:"chevron-down",icon:[448,512,[],"f078","M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"]},V={prefix:"fas",iconName:"code-branch",icon:[384,512,[],"f126","M384 144c0-44.2-35.8-80-80-80s-80 35.8-80 80c0 36.4 24.3 67.1 57.5 76.8-.6 16.1-4.2 28.5-11 36.9-15.4 19.2-49.3 22.4-85.2 25.7-28.2 2.6-57.4 5.4-81.3 16.9v-144c32.5-10.2 56-40.5 56-76.3 0-44.2-35.8-80-80-80S0 35.8 0 80c0 35.8 23.5 66.1 56 76.3v199.3C23.5 365.9 0 396.2 0 432c0 44.2 35.8 80 80 80s80-35.8 80-80c0-34-21.2-63.1-51.2-74.6 3.1-5.2 7.8-9.8 14.9-13.4 16.2-8.2 40.4-10.4 66.1-12.8 42.2-3.9 90-8.4 118.2-43.4 14-17.4 21.1-39.8 21.6-67.9 31.6-10.8 54.4-40.7 54.4-75.9zM80 64c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16zm0 384c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm224-320c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16z"]},U={prefix:"fas",iconName:"cog",icon:[512,512,[],"f013","M487.4 315.7l-42.6-24.6c4.3-23.2 4.3-47 0-70.2l42.6-24.6c4.9-2.8 7.1-8.6 5.5-14-11.1-35.6-30-67.8-54.7-94.6-3.8-4.1-10-5.1-14.8-2.3L380.8 110c-17.9-15.4-38.5-27.3-60.8-35.1V25.8c0-5.6-3.9-10.5-9.4-11.7-36.7-8.2-74.3-7.8-109.2 0-5.5 1.2-9.4 6.1-9.4 11.7V75c-22.2 7.9-42.8 19.8-60.8 35.1L88.7 85.5c-4.9-2.8-11-1.9-14.8 2.3-24.7 26.7-43.6 58.9-54.7 94.6-1.7 5.4.6 11.2 5.5 14L67.3 221c-4.3 23.2-4.3 47 0 70.2l-42.6 24.6c-4.9 2.8-7.1 8.6-5.5 14 11.1 35.6 30 67.8 54.7 94.6 3.8 4.1 10 5.1 14.8 2.3l42.6-24.6c17.9 15.4 38.5 27.3 60.8 35.1v49.2c0 5.6 3.9 10.5 9.4 11.7 36.7 8.2 74.3 7.8 109.2 0 5.5-1.2 9.4-6.1 9.4-11.7v-49.2c22.2-7.9 42.8-19.8 60.8-35.1l42.6 24.6c4.9 2.8 11 1.9 14.8-2.3 24.7-26.7 43.6-58.9 54.7-94.6 1.5-5.5-.7-11.3-5.6-14.1zM256 336c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"]},H={prefix:"fas",iconName:"compress",icon:[448,512,[],"f066","M436 192H312c-13.3 0-24-10.7-24-24V44c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v84h84c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm-276-24V44c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v84H12c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h124c13.3 0 24-10.7 24-24zm0 300V344c0-13.3-10.7-24-24-24H12c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h84v84c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm192 0v-84h84c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12H312c-13.3 0-24 10.7-24 24v124c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12z"]},B={prefix:"fas",iconName:"crosshairs",icon:[512,512,[],"f05b","M500 224h-30.364C455.724 130.325 381.675 56.276 288 42.364V12c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v30.364C130.325 56.276 56.276 130.325 42.364 224H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h30.364C56.276 381.675 130.325 455.724 224 469.636V500c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-30.364C381.675 455.724 455.724 381.675 469.636 288H500c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12zM288 404.634V364c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40.634C165.826 392.232 119.783 346.243 107.366 288H148c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-40.634C119.768 165.826 165.757 119.783 224 107.366V148c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-40.634C346.174 119.768 392.217 165.757 404.634 224H364c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40.634C392.232 346.174 346.243 392.217 288 404.634zM288 256c0 17.673-14.327 32-32 32s-32-14.327-32-32c0-17.673 14.327-32 32-32s32 14.327 32 32z"]},W={prefix:"fas",iconName:"cube",icon:[512,512,[],"f1b2","M239.1 6.3l-208 78c-18.7 7-31.1 25-31.1 45v225.1c0 18.2 10.3 34.8 26.5 42.9l208 104c13.5 6.8 29.4 6.8 42.9 0l208-104c16.3-8.1 26.5-24.8 26.5-42.9V129.3c0-20-12.4-37.9-31.1-44.9l-208-78C262 2.2 250 2.2 239.1 6.3zM256 68.4l192 72v1.1l-192 78-192-78v-1.1l192-72zm32 356V275.5l160-65v133.9l-160 80z"]},Y={prefix:"fas",iconName:"ellipsis-h",icon:[512,512,[],"f141","M328 256c0 39.8-32.2 72-72 72s-72-32.2-72-72 32.2-72 72-72 72 32.2 72 72zm104-72c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72zm-352 0c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72z"]},Z={prefix:"fas",iconName:"expand-arrows-alt",icon:[448,512,[],"f31e","M448 344v112a23.94 23.94 0 0 1-24 24H312c-21.39 0-32.09-25.9-17-41l36.2-36.2L224 295.6 116.77 402.9 153 439c15.09 15.1 4.39 41-17 41H24a23.94 23.94 0 0 1-24-24V344c0-21.4 25.89-32.1 41-17l36.19 36.2L184.46 256 77.18 148.7 41 185c-15.1 15.1-41 4.4-41-17V56a23.94 23.94 0 0 1 24-24h112c21.39 0 32.09 25.9 17 41l-36.2 36.2L224 216.4l107.23-107.3L295 73c-15.09-15.1-4.39-41 17-41h112a23.94 23.94 0 0 1 24 24v112c0 21.4-25.89 32.1-41 17l-36.19-36.2L263.54 256l107.28 107.3L407 327.1c15.1-15.2 41-4.5 41 16.9z"]},K={prefix:"fas",iconName:"eye",icon:[576,512,[],"f06e","M572.52 241.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400a144 144 0 1 1 144-144 143.93 143.93 0 0 1-144 144zm0-240a95.31 95.31 0 0 0-25.31 3.79 47.85 47.85 0 0 1-66.9 66.9A95.78 95.78 0 1 0 288 160z"]},X={prefix:"fas",iconName:"eye-slash",icon:[640,512,[],"f070","M320 400c-75.85 0-137.25-58.71-142.9-133.11L72.2 185.82c-13.79 17.3-26.48 35.59-36.72 55.59a32.35 32.35 0 0 0 0 29.19C89.71 376.41 197.07 448 320 448c26.91 0 52.87-4 77.89-10.46L346 397.39a144.13 144.13 0 0 1-26 2.61zm313.82 58.1l-110.55-85.44a331.25 331.25 0 0 0 81.25-102.07 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64a308.15 308.15 0 0 0-147.32 37.7L45.46 3.37A16 16 0 0 0 23 6.18L3.37 31.45A16 16 0 0 0 6.18 53.9l588.36 454.73a16 16 0 0 0 22.46-2.81l19.64-25.27a16 16 0 0 0-2.82-22.45zm-183.72-142l-39.3-30.38A94.75 94.75 0 0 0 416 256a94.76 94.76 0 0 0-121.31-92.21A47.65 47.65 0 0 1 304 192a46.64 46.64 0 0 1-1.54 10l-73.61-56.89A142.31 142.31 0 0 1 320 112a143.92 143.92 0 0 1 144 144c0 21.63-5.29 41.79-13.9 60.11z"]},Q={prefix:"fas",iconName:"file-alt",icon:[384,512,[],"f15c","M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm64 236c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12v8zm0-64c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12v8zm0-72v8c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm96-114.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"]},q={prefix:"fas",iconName:"film",icon:[512,512,[],"f008","M488 64h-8v20c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12V64H96v20c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12V64h-8C10.7 64 0 74.7 0 88v336c0 13.3 10.7 24 24 24h8v-20c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v20h320v-20c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v20h8c13.3 0 24-10.7 24-24V88c0-13.3-10.7-24-24-24zM96 372c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm272 208c0 6.6-5.4 12-12 12H156c-6.6 0-12-5.4-12-12v-96c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v96zm0-168c0 6.6-5.4 12-12 12H156c-6.6 0-12-5.4-12-12v-96c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v96zm112 152c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40z"]},$={prefix:"fas",iconName:"ghost",icon:[384,512,[],"f6e2","M186.1.09C81.01 3.24 0 94.92 0 200.05v263.92c0 14.26 17.23 21.39 27.31 11.31l24.92-18.53c6.66-4.95 16-3.99 21.51 2.21l42.95 48.35c6.25 6.25 16.38 6.25 22.63 0l40.72-45.85c6.37-7.17 17.56-7.17 23.92 0l40.72 45.85c6.25 6.25 16.38 6.25 22.63 0l42.95-48.35c5.51-6.2 14.85-7.17 21.51-2.21l24.92 18.53c10.08 10.08 27.31 2.94 27.31-11.31V192C384 84 294.83-3.17 186.1.09zM128 224c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm128 0c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"]},J={prefix:"fas",iconName:"highlighter",icon:[544,512,[],"f591","M0 479.98L99.92 512l35.45-35.45-67.04-67.04L0 479.98zm124.61-240.01a36.592 36.592 0 0 0-10.79 38.1l13.05 42.83-50.93 50.94 96.23 96.23 50.86-50.86 42.74 13.08c13.73 4.2 28.65-.01 38.15-10.78l35.55-41.64-173.34-173.34-41.52 35.44zm403.31-160.7l-63.2-63.2c-20.49-20.49-53.38-21.52-75.12-2.35L190.55 183.68l169.77 169.78L530.27 154.4c19.18-21.74 18.15-54.63-2.35-75.13z"]},ee={prefix:"fas",iconName:"image",icon:[512,512,[],"f03e","M464 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM112 120c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56zM64 384h384V272l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L208 320l-55.515-55.515c-4.686-4.686-12.284-4.686-16.971 0L64 336v48z"]},te={prefix:"fas",iconName:"layer-group",icon:[512,512,[],"f5fd","M12.41 148.02l232.94 105.67c6.8 3.09 14.49 3.09 21.29 0l232.94-105.67c16.55-7.51 16.55-32.52 0-40.03L266.65 2.31a25.607 25.607 0 0 0-21.29 0L12.41 107.98c-16.55 7.51-16.55 32.53 0 40.04zm487.18 88.28l-58.09-26.33-161.64 73.27c-7.56 3.43-15.59 5.17-23.86 5.17s-16.29-1.74-23.86-5.17L70.51 209.97l-58.1 26.33c-16.55 7.5-16.55 32.5 0 40l232.94 105.59c6.8 3.08 14.49 3.08 21.29 0L499.59 276.3c16.55-7.5 16.55-32.5 0-40zm0 127.8l-57.87-26.23-161.86 73.37c-7.56 3.43-15.59 5.17-23.86 5.17s-16.29-1.74-23.86-5.17L70.29 337.87 12.41 364.1c-16.55 7.5-16.55 32.5 0 40l232.94 105.59c6.8 3.08 14.49 3.08 21.29 0L499.59 404.1c16.55-7.5 16.55-32.5 0-40z"]},re={prefix:"fas",iconName:"lightbulb",icon:[352,512,[],"f0eb","M96.06 454.35c.01 6.29 1.87 12.45 5.36 17.69l17.09 25.69a31.99 31.99 0 0 0 26.64 14.28h61.71a31.99 31.99 0 0 0 26.64-14.28l17.09-25.69a31.989 31.989 0 0 0 5.36-17.69l.04-38.35H96.01l.05 38.35zM0 176c0 44.37 16.45 84.85 43.56 115.78 16.52 18.85 42.36 58.23 52.21 91.45.04.26.07.52.11.78h160.24c.04-.26.07-.51.11-.78 9.85-33.22 35.69-72.6 52.21-91.45C335.55 260.85 352 220.37 352 176 352 78.61 272.91-.3 175.45 0 73.44.31 0 82.97 0 176zm176-80c-44.11 0-80 35.89-80 80 0 8.84-7.16 16-16 16s-16-7.16-16-16c0-61.76 50.24-112 112-112 8.84 0 16 7.16 16 16s-7.16 16-16 16z"]},ne={prefix:"fas",iconName:"magic",icon:[512,512,[],"f0d0","M224 96l16-32 32-16-32-16-16-32-16 32-32 16 32 16 16 32zM80 160l26.66-53.33L160 80l-53.34-26.67L80 0 53.34 53.33 0 80l53.34 26.67L80 160zm352 128l-26.66 53.33L352 368l53.34 26.67L432 448l26.66-53.33L512 368l-53.34-26.67L432 288zm70.62-193.77L417.77 9.38C411.53 3.12 403.34 0 395.15 0c-8.19 0-16.38 3.12-22.63 9.38L9.38 372.52c-12.5 12.5-12.5 32.76 0 45.25l84.85 84.85c6.25 6.25 14.44 9.37 22.62 9.37 8.19 0 16.38-3.12 22.63-9.37l363.14-363.15c12.5-12.48 12.5-32.75 0-45.24zM359.45 203.46l-50.91-50.91 86.6-86.6 50.91 50.91-86.6 86.6z"]},ae={prefix:"fas",iconName:"minus",icon:[448,512,[],"f068","M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"]},oe={prefix:"fas",iconName:"music",icon:[512,512,[],"f001","M470.38 1.51L150.41 96A32 32 0 0 0 128 126.51v261.41A139 139 0 0 0 96 384c-53 0-96 28.66-96 64s43 64 96 64 96-28.66 96-64V214.32l256-75v184.61a138.4 138.4 0 0 0-32-3.93c-53 0-96 28.66-96 64s43 64 96 64 96-28.65 96-64V32a32 32 0 0 0-41.62-30.49z"]},ie={prefix:"fas",iconName:"object-group",icon:[512,512,[],"f247","M480 128V96h20c6.627 0 12-5.373 12-12V44c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v20H64V44c0-6.627-5.373-12-12-12H12C5.373 32 0 37.373 0 44v40c0 6.627 5.373 12 12 12h20v320H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-20h384v20c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-20V128zM96 276V140c0-6.627 5.373-12 12-12h168c6.627 0 12 5.373 12 12v136c0 6.627-5.373 12-12 12H108c-6.627 0-12-5.373-12-12zm320 96c0 6.627-5.373 12-12 12H236c-6.627 0-12-5.373-12-12v-52h72c13.255 0 24-10.745 24-24v-72h84c6.627 0 12 5.373 12 12v136z"]},le={prefix:"fas",iconName:"pen",icon:[512,512,[],"f304","M290.74 93.24l128.02 128.02-277.99 277.99-114.14 12.6C11.35 513.54-1.56 500.62.14 485.34l12.7-114.22 277.9-277.88zm207.2-19.06l-60.11-60.11c-18.75-18.75-49.16-18.75-67.91 0l-56.55 56.55 128.02 128.02 56.55-56.55c18.75-18.76 18.75-49.16 0-67.91z"]},se={prefix:"fas",iconName:"plus",icon:[448,512,[],"f067","M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"]},pe={prefix:"fas",iconName:"project-diagram",icon:[640,512,[],"f542","M384 320H256c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h128c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32zM192 32c0-17.67-14.33-32-32-32H32C14.33 0 0 14.33 0 32v128c0 17.67 14.33 32 32 32h95.72l73.16 128.04C211.98 300.98 232.4 288 256 288h.28L192 175.51V128h224V64H192V32zM608 0H480c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h128c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32z"]},ce={prefix:"fas",iconName:"redo-alt",icon:[512,512,[],"f2f9","M256.455 8c66.269.119 126.437 26.233 170.859 68.685l35.715-35.715C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.75c-30.864-28.899-70.801-44.907-113.23-45.273-92.398-.798-170.283 73.977-169.484 169.442C88.764 348.009 162.184 424 256 424c41.127 0 79.997-14.678 110.629-41.556 4.743-4.161 11.906-3.908 16.368.553l39.662 39.662c4.872 4.872 4.631 12.815-.482 17.433C378.202 479.813 319.926 504 256 504 119.034 504 8.001 392.967 8 256.002 7.999 119.193 119.646 7.755 256.455 8z"]},ue={prefix:"fas",iconName:"skull",icon:[512,512,[],"f54c","M256 0C114.6 0 0 100.3 0 224c0 70.1 36.9 132.6 94.5 173.7 9.6 6.9 15.2 18.1 13.5 29.9l-9.4 66.2c-1.4 9.6 6 18.2 15.7 18.2H192v-56c0-4.4 3.6-8 8-8h16c4.4 0 8 3.6 8 8v56h64v-56c0-4.4 3.6-8 8-8h16c4.4 0 8 3.6 8 8v56h77.7c9.7 0 17.1-8.6 15.7-18.2l-9.4-66.2c-1.7-11.7 3.8-23 13.5-29.9C475.1 356.6 512 294.1 512 224 512 100.3 397.4 0 256 0zm-96 320c-35.3 0-64-28.7-64-64s28.7-64 64-64 64 28.7 64 64-28.7 64-64 64zm192 0c-35.3 0-64-28.7-64-64s28.7-64 64-64 64 28.7 64 64-28.7 64-64 64z"]},de={prefix:"fas",iconName:"sync-alt",icon:[512,512,[],"f2f1","M370.72 133.28C339.458 104.008 298.888 87.962 255.848 88c-77.458.068-144.328 53.178-162.791 126.85-1.344 5.363-6.122 9.15-11.651 9.15H24.103c-7.498 0-13.194-6.807-11.807-14.176C33.933 94.924 134.813 8 256 8c66.448 0 126.791 26.136 171.315 68.685L463.03 40.97C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.749zM32 296h134.059c21.382 0 32.09 25.851 16.971 40.971l-41.75 41.75c31.262 29.273 71.835 45.319 114.876 45.28 77.418-.07 144.315-53.144 162.787-126.849 1.344-5.363 6.122-9.15 11.651-9.15h57.304c7.498 0 13.194 6.807 11.807 14.176C478.067 417.076 377.187 504 256 504c-66.448 0-126.791-26.136-171.315-68.685L48.97 471.03C33.851 486.149 8 475.441 8 454.059V320c0-13.255 10.745-24 24-24z"]},he={prefix:"fas",iconName:"times",icon:[352,512,[],"f00d","M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"]},be={prefix:"fas",iconName:"times-circle",icon:[512,512,[],"f057","M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z"]},me={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zM53.2 467a48 48 0 0 0 47.9 45h245.8a48 48 0 0 0 47.9-45L416 128H32z"]},ge={prefix:"fas",iconName:"vector-square",icon:[512,512,[],"f5cb","M512 128V32c0-17.67-14.33-32-32-32h-96c-17.67 0-32 14.33-32 32H160c0-17.67-14.33-32-32-32H32C14.33 0 0 14.33 0 32v96c0 17.67 14.33 32 32 32v192c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32h192c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32V160c17.67 0 32-14.33 32-32zm-96-64h32v32h-32V64zM64 64h32v32H64V64zm32 384H64v-32h32v32zm352 0h-32v-32h32v32zm-32-96h-32c-17.67 0-32 14.33-32 32v32H160v-32c0-17.67-14.33-32-32-32H96V160h32c17.67 0 32-14.33 32-32V96h192v32c0 17.67 14.33 32 32 32h32v192z"]},fe={prefix:"fas",iconName:"video",icon:[576,512,[],"f03d","M336.2 64H47.8C21.4 64 0 85.4 0 111.8v288.4C0 426.6 21.4 448 47.8 448h288.4c26.4 0 47.8-21.4 47.8-47.8V111.8c0-26.4-21.4-47.8-47.8-47.8zm189.4 37.7L416 177.3v157.4l109.6 75.5c21.2 14.6 50.4-.3 50.4-25.8V127.5c0-25.4-29.1-40.4-50.4-25.8z"]},ve={prefix:"fas",iconName:"window-restore",icon:[512,512,[],"f2d2","M512 48v288c0 26.5-21.5 48-48 48h-48V176c0-44.1-35.9-80-80-80H128V48c0-26.5 21.5-48 48-48h288c26.5 0 48 21.5 48 48zM384 176v288c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48h288c26.5 0 48 21.5 48 48zm-68 28c0-6.6-5.4-12-12-12H76c-6.6 0-12 5.4-12 12v52h252v-52z"]},ye={prefix:"fas",iconName:"wrench",icon:[512,512,[],"f0ad","M507.73 109.1c-2.24-9.03-13.54-12.09-20.12-5.51l-74.36 74.36-67.88-11.31-11.31-67.88 74.36-74.36c6.62-6.62 3.43-17.9-5.66-20.16-47.38-11.74-99.55.91-136.58 37.93-39.64 39.64-50.55 97.1-34.05 147.2L18.74 402.76c-24.99 24.99-24.99 65.51 0 90.5 24.99 24.99 65.51 24.99 90.5 0l213.21-213.21c50.12 16.71 107.47 5.68 147.37-34.22 37.07-37.07 49.7-89.32 37.91-136.73zM64 472c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"]},Ce=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){return s.createElement("div",{className:"pane"})},t}(s.Component),Ee=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.onLink=function(){this.props.url?window.open(this.props.url,"_blank"):this.props.onLink&&this.props.onLink()},t.prototype.renderContent=function(){var e=this;return this.props.ignoreValue?null:this.props.onLink||this.props.url?s.createElement("div",{className:"link-value",title:this.props.value,onClick:function(){return e.onLink()}},this.props.url?"doc":this.props.value||"no name"):s.createElement("div",{className:"value",title:this.props.value,style:{color:this.props.color?this.props.color:""}},this.props.value||"no name")},t.prototype.render=function(){var e,t;return s.createElement("div",{className:this.props.underline?"textLine underline":"textLine"+(this.props.additionalClass?" "+this.props.additionalClass:"")},s.createElement("div",{className:"label",title:null!==(e=this.props.label)&&void 0!==e?e:""},null!==(t=this.props.label)&&void 0!==t?t:""),this.renderContent())},t}(s.Component),Oe=function(e){function t(t){var r=e.call(this,t)||this,n=u.DataStorage.ReadBoolean(r.props.title,!r.props.closed);return r.state={isExpanded:n,isHighlighted:!1},r}return a(t,e),t.prototype.switchExpandedState=function(){var e=!this.state.isExpanded;u.DataStorage.WriteBoolean(this.props.title,e),this.setState({isExpanded:e})},t.prototype.componentDidMount=function(){var e=this;this.props.globalState&&(0===this.props.globalState.selectedLineContainerTitles.length&&0===this.props.globalState.selectedLineContainerTitlesNoFocus.length||(this.props.globalState.selectedLineContainerTitles.indexOf(this.props.title)>-1?(setTimeout((function(){e.props.globalState.selectedLineContainerTitles=[]})),this.setState({isExpanded:!0,isHighlighted:!0}),window.setTimeout((function(){e.setState({isHighlighted:!1})}),5e3)):this.props.globalState.selectedLineContainerTitlesNoFocus.indexOf(this.props.title)>-1?this.setState({isExpanded:!0,isHighlighted:!1}):this.setState({isExpanded:!1})))},t.prototype.renderHeader=function(){var e=this,t=this.state.isExpanded?"collapse":"collapse closed";return s.createElement("div",{className:"header",onClick:function(){return e.switchExpandedState()}},s.createElement("div",{className:"title"},this.props.title),s.createElement("div",{className:t},s.createElement(w,{icon:F})))},t.prototype.render=function(){return this.state.isExpanded?s.createElement("div",{className:"paneContainer"},s.createElement("div",{className:"paneContainer-content"},this.renderHeader(),s.createElement("div",{className:"paneList"},this.props.children)),s.createElement("div",{className:"paneContainer-highlight-border"+(this.state.isHighlighted?"":" transparent")})):s.createElement("div",{className:"paneContainer"},s.createElement("div",{className:"paneContainer-content"},this.renderHeader()))},t}(s.Component),Se=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=void 0!==this.props.fractionDigits?this.props.fractionDigits:2,t=this.props.value.toFixed(e)+(this.props.units?" "+this.props.units:"");return s.createElement("div",{className:"textLine"},s.createElement("div",{className:"label",title:this.props.label},this.props.label),s.createElement("div",{className:"value",style:{color:this.props.color?this.props.color:""}},t))},t}(s.Component),xe=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.value?s.createElement(w,{icon:G}):s.createElement(w,{icon:be}),t=this.props.value?"value check":"value uncheck";return s.createElement("div",{className:"textLine"},s.createElement("div",{className:"label",title:this.props.label},this.props.label),s.createElement("div",{className:t},e))},t}(s.Component),Pe=function(e){function t(t){var r=e.call(this,t)||this,n=r.props.scene;return n?(r._sceneInstrumentation=new u.SceneInstrumentation(n),r._sceneInstrumentation.captureActiveMeshesEvaluationTime=!0,r._sceneInstrumentation.captureRenderTargetsRenderTime=!0,r._sceneInstrumentation.captureFrameTime=!0,r._sceneInstrumentation.captureRenderTime=!0,r._sceneInstrumentation.captureInterFrameTime=!0,r._sceneInstrumentation.captureParticlesRenderTime=!0,r._sceneInstrumentation.captureSpritesRenderTime=!0,r._sceneInstrumentation.capturePhysicsTime=!0,r._sceneInstrumentation.captureAnimationsTime=!0,r._engineInstrumentation=new u.EngineInstrumentation(n.getEngine()),r._engineInstrumentation.captureGPUFrameTime=!0,r._timerIntervalId=window.setInterval((function(){return r.forceUpdate()}),500),r):r}return a(t,e),t.prototype.componentWillUnmount=function(){this._sceneInstrumentation&&(this._sceneInstrumentation.dispose(),this._sceneInstrumentation=null),this._engineInstrumentation&&(this._engineInstrumentation.dispose(),this._engineInstrumentation=null),window.clearInterval(this._timerIntervalId)},t.prototype.render=function(){var e=this.props.scene;if(!e||!this._sceneInstrumentation||!this._engineInstrumentation)return null;var t=e.getEngine(),r=this._sceneInstrumentation,n=this._engineInstrumentation,a=t.getCaps();return s.createElement("div",{className:"pane"},s.createElement(Ee,{label:"Version",value:u.Engine.Version,color:"rgb(113, 159, 255)"}),s.createElement(Se,{label:"FPS",value:t.getFps(),fractionDigits:0}),s.createElement(Oe,{globalState:this.props.globalState,title:"COUNT"},s.createElement(Ee,{label:"Total meshes",value:e.meshes.length.toString()}),s.createElement(Ee,{label:"Active meshes",value:e.getActiveMeshes().length.toString()}),s.createElement(Ee,{label:"Active indices",value:e.getActiveIndices().toString()}),s.createElement(Ee,{label:"Active faces",value:(e.getActiveIndices()/3).toString()}),s.createElement(Ee,{label:"Active bones",value:e.getActiveBones().toString()}),s.createElement(Ee,{label:"Active particles",value:e.getActiveParticles().toString()}),s.createElement(Ee,{label:"Draw calls",value:r.drawCallsCounter.current.toString()}),s.createElement(Ee,{label:"Total lights",value:e.lights.length.toString()}),s.createElement(Ee,{label:"Total vertices",value:e.getTotalVertices().toString()}),s.createElement(Ee,{label:"Total materials",value:e.materials.length.toString()}),s.createElement(Ee,{label:"Total textures",value:e.textures.length.toString()})),s.createElement(Oe,{globalState:this.props.globalState,title:"FRAME STEPS DURATION"},s.createElement(Se,{label:"Absolute FPS",value:1e3/this._sceneInstrumentation.frameTimeCounter.lastSecAverage,fractionDigits:0}),s.createElement(Se,{label:"Meshes selection",value:r.activeMeshesEvaluationTimeCounter.lastSecAverage,units:"ms"}),s.createElement(Se,{label:"Render targets",value:r.renderTargetsRenderTimeCounter.lastSecAverage,units:"ms"}),s.createElement(Se,{label:"Particles",value:r.particlesRenderTimeCounter.lastSecAverage,units:"ms"}),s.createElement(Se,{label:"Sprites",value:r.spritesRenderTimeCounter.lastSecAverage,units:"ms"}),s.createElement(Se,{label:"Animations",value:r.animationsTimeCounter.lastSecAverage,units:"ms"}),s.createElement(Se,{label:"Physics",value:r.physicsTimeCounter.lastSecAverage,units:"ms"}),s.createElement(Se,{label:"Render",value:r.renderTimeCounter.lastSecAverage,units:"ms"}),s.createElement(Se,{label:"Frame total",value:r.frameTimeCounter.lastSecAverage,units:"ms"}),s.createElement(Se,{label:"Inter-frame",value:r.interFrameTimeCounter.lastSecAverage,units:"ms"}),s.createElement(Se,{label:"GPU Frame time",value:1e-6*n.gpuFrameTimeCounter.lastSecAverage,units:"ms"}),s.createElement(Se,{label:"GPU Frame time (average)",value:1e-6*n.gpuFrameTimeCounter.average,units:"ms"})),s.createElement(Oe,{globalState:this.props.globalState,title:"SYSTEM INFO"},s.createElement(Ee,{label:"Resolution",value:t.getRenderWidth()+"x"+t.getRenderHeight()}),s.createElement(Ee,{label:"Hardware scaling level",value:t.getHardwareScalingLevel().toString()}),s.createElement(Ee,{label:"Engine",value:t.description}),s.createElement(xe,{label:"Std derivatives",value:a.standardDerivatives}),s.createElement(xe,{label:"Compressed textures",value:void 0!==a.s3tc}),s.createElement(xe,{label:"Hardware instances",value:a.instancedArrays}),s.createElement(xe,{label:"Texture float",value:a.textureFloat}),s.createElement(xe,{label:"Texture half-float",value:a.textureHalfFloat}),s.createElement(xe,{label:"Render to texture float",value:a.textureFloatRender}),s.createElement(xe,{label:"Render to texture half-float",value:a.textureHalfFloatRender}),s.createElement(xe,{label:"32bits indices",value:a.uintIndices}),s.createElement(xe,{label:"Fragment depth",value:a.fragmentDepthSupported}),s.createElement(xe,{label:"High precision shaders",value:a.highPrecisionShaderSupported}),s.createElement(xe,{label:"Draw buffers",value:a.drawBuffersExtension}),s.createElement(xe,{label:"Vertex array object",value:a.vertexArrayObject}),s.createElement(xe,{label:"Timer query",value:void 0!==a.timerQuery}),s.createElement(xe,{label:"Stencil",value:t.isStencilEnable}),s.createElement(xe,{label:"Parallel shader compilation",value:null!=a.parallelShaderCompile}),s.createElement(Se,{label:"Max textures units",value:a.maxTexturesImageUnits,fractionDigits:0}),s.createElement(Se,{label:"Max textures size",value:a.maxTextureSize,fractionDigits:0}),s.createElement(Se,{label:"Max anisotropy",value:a.maxAnisotropy,fractionDigits:0}),s.createElement(Ee,{label:"Driver",value:t.getGlInfo().renderer})))},t}(Ce),we=function(e){function t(r){var n=e.call(this,r)||this;return n._localChange=!1,n._uniqueId=t._UniqueIdSeed++,n.props.isSelected?n.state={isSelected:n.props.isSelected()}:n.state={isSelected:!0===n.props.target[n.props.propertyName]},n}return a(t,e),t.prototype.shouldComponentUpdate=function(e,t){var r;return!((r=this.props.isSelected?e.isSelected():1==e.target[e.propertyName])===t.isSelected&&!this._localChange&&this.props.label===e.label)&&(t.isSelected=r,this._localChange=!1,!0)},t.prototype.onChange=function(){this._localChange=!0,this.props.onSelect?this.props.onSelect(!this.state.isSelected):(this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:!this.state.isSelected,initialValue:this.state.isSelected}),this.props.target[this.props.propertyName]=!this.state.isSelected),this.props.onValueChanged&&this.props.onValueChanged(),this.setState({isSelected:!this.state.isSelected})},t.prototype.render=function(){var e=this;return s.createElement("div",{className:"checkBoxLine"},s.createElement("div",{className:"label",title:this.props.label},this.props.label),s.createElement("div",{className:"checkBox"},s.createElement("input",{type:"checkbox",id:"checkbox"+this._uniqueId,className:"cbx hidden",checked:this.state.isSelected,onChange:function(){return e.onChange()}}),s.createElement("label",{htmlFor:"checkbox"+this._uniqueId,className:"lbl"})))},t._UniqueIdSeed=0,t}(s.Component),ke=r(15),Ne=function(e){function t(t){var r=e.call(this,t)||this;return r.state={isEnabled:!1},r}return a(t,e),t.prototype.componentDidMount=function(){for(var e=0,t=u.UtilityLayerRenderer.DefaultKeepDepthUtilityLayer.utilityLayerScene.meshes;e<t.length;e++){var r=t[e];if(r.reservedDataStore&&r.reservedDataStore.isInspectorGrid)return this._gridMesh=r,void this.setState({isEnabled:!0})}},t.prototype.addOrRemoveGrid=function(){var e=u.UtilityLayerRenderer.DefaultKeepDepthUtilityLayer.utilityLayerScene;if(!this._gridMesh){var t=this.props.scene.getWorldExtends(),r=5*(t.max.x-t.min.x),n=5*(t.max.z-t.min.z);this._gridMesh=u.Mesh.CreateGround("grid",1,1,1,e),this._gridMesh.reservedDataStore||(this._gridMesh.reservedDataStore={}),this._gridMesh.scaling.x=Math.max(r,n),this._gridMesh.scaling.z=this._gridMesh.scaling.x,this._gridMesh.reservedDataStore.isInspectorGrid=!0,this._gridMesh.isPickable=!1;var a=new ke.GridMaterial("GridMaterial",e);return a.majorUnitFrequency=10,a.minorUnitVisibility=.3,a.gridRatio=.01,a.backFaceCulling=!1,a.mainColor=new u.Color3(1,1,1),a.lineColor=new u.Color3(1,1,1),a.opacity=.8,a.zOffset=1,a.opacityTexture=new u.Texture("https://assets.babylonjs.com/environments/backgroundGround.png",e),this._gridMesh.material=a,void this.setState({isEnabled:!0})}this.setState({isEnabled:!this.state.isEnabled}),this._gridMesh.dispose(!0,!0),this._gridMesh=null},t.prototype.render=function(){var e=this;return s.createElement("div",null,s.createElement(we,{label:"Render grid",isSelected:function(){return e.state.isEnabled},onSelect:function(){return e.addOrRemoveGrid()}}))},t}(s.Component),Te=function(e){function t(t){var r=e.call(this,t)||this;r._physicsViewersEnabled=!1;var n=r.props.scene;return n?(n.reservedDataStore||(n.reservedDataStore={}),r._physicsViewersEnabled=null!=n.reservedDataStore.physicsViewer,r):r}return a(t,e),t.prototype.switchPhysicsViewers=function(){this._physicsViewersEnabled=!this._physicsViewersEnabled;var e=this.props.scene;if(this._physicsViewersEnabled){var t=new u.PhysicsViewer(e);e.reservedDataStore.physicsViewer=t;for(var r=0,n=e.meshes;r<n.length;r++){var a=n[r];if(a.physicsImpostor){var o=t.showImpostor(a.physicsImpostor,a);o&&(o.reservedDataStore={hidden:!0},o.material.reservedDataStore={hidden:!0})}}}else e.reservedDataStore.physicsViewer.dispose(),e.reservedDataStore.physicsViewer=null},t.prototype.render=function(){var e=this,t=this.props.scene;return t?s.createElement("div",{className:"pane"},s.createElement(Oe,{globalState:this.props.globalState,title:"HELPERS"},s.createElement(Ne,{globalState:this.props.globalState,scene:t}),s.createElement(we,{label:"Physics",isSelected:function(){return e._physicsViewersEnabled},onSelect:function(){return e.switchPhysicsViewers()}})),s.createElement(Oe,{globalState:this.props.globalState,title:"CORE TEXTURE CHANNELS"},s.createElement(we,{label:"Diffuse",isSelected:function(){return u.StandardMaterial.DiffuseTextureEnabled},onSelect:function(){return u.StandardMaterial.DiffuseTextureEnabled=!u.StandardMaterial.DiffuseTextureEnabled}}),s.createElement(we,{label:"Ambient",isSelected:function(){return u.StandardMaterial.AmbientTextureEnabled},onSelect:function(){return u.StandardMaterial.AmbientTextureEnabled=!u.StandardMaterial.AmbientTextureEnabled}}),s.createElement(we,{label:"Specular",isSelected:function(){return u.StandardMaterial.SpecularTextureEnabled},onSelect:function(){return u.StandardMaterial.SpecularTextureEnabled=!u.StandardMaterial.SpecularTextureEnabled}}),s.createElement(we,{label:"Emissive",isSelected:function(){return u.StandardMaterial.EmissiveTextureEnabled},onSelect:function(){return u.StandardMaterial.EmissiveTextureEnabled=!u.StandardMaterial.EmissiveTextureEnabled}}),s.createElement(we,{label:"Bump",isSelected:function(){return u.StandardMaterial.BumpTextureEnabled},onSelect:function(){return u.StandardMaterial.BumpTextureEnabled=!u.StandardMaterial.BumpTextureEnabled}}),s.createElement(we,{label:"Opacity",isSelected:function(){return u.StandardMaterial.OpacityTextureEnabled},onSelect:function(){return u.StandardMaterial.OpacityTextureEnabled=!u.StandardMaterial.OpacityTextureEnabled}}),s.createElement(we,{label:"Reflection",isSelected:function(){return u.StandardMaterial.ReflectionTextureEnabled},onSelect:function(){return u.StandardMaterial.ReflectionTextureEnabled=!u.StandardMaterial.ReflectionTextureEnabled}}),s.createElement(we,{label:"Refraction",isSelected:function(){return u.StandardMaterial.RefractionTextureEnabled},onSelect:function(){return u.StandardMaterial.RefractionTextureEnabled=!u.StandardMaterial.RefractionTextureEnabled}}),s.createElement(we,{label:"ColorGrading",isSelected:function(){return u.StandardMaterial.ColorGradingTextureEnabled},onSelect:function(){return u.StandardMaterial.ColorGradingTextureEnabled=!u.StandardMaterial.ColorGradingTextureEnabled}}),s.createElement(we,{label:"Lightmap",isSelected:function(){return u.StandardMaterial.LightmapTextureEnabled},onSelect:function(){return u.StandardMaterial.LightmapTextureEnabled=!u.StandardMaterial.LightmapTextureEnabled}}),s.createElement(we,{label:"Fresnel",isSelected:function(){return u.StandardMaterial.FresnelEnabled},onSelect:function(){return u.StandardMaterial.FresnelEnabled=!u.StandardMaterial.FresnelEnabled}})),s.createElement(Oe,{globalState:this.props.globalState,title:"FEATURES"},s.createElement(we,{label:"Animations",isSelected:function(){return t.animationsEnabled},onSelect:function(){return t.animationsEnabled=!t.animationsEnabled}}),s.createElement(we,{label:"Physics",isSelected:function(){return t.physicsEnabled},onSelect:function(){return t.physicsEnabled=!t.physicsEnabled}}),s.createElement(we,{label:"Collisions",isSelected:function(){return t.collisionsEnabled},onSelect:function(){return t.collisionsEnabled=!t.collisionsEnabled}}),s.createElement(we,{label:"Fog",isSelected:function(){return t.fogEnabled},onSelect:function(){return t.fogEnabled=!t.fogEnabled}}),s.createElement(we,{label:"Lens flares",isSelected:function(){return t.lensFlaresEnabled},onSelect:function(){return t.lensFlaresEnabled=!t.lensFlaresEnabled}}),s.createElement(we,{label:"Lights",isSelected:function(){return t.lightsEnabled},onSelect:function(){return t.lightsEnabled=!t.lightsEnabled}}),s.createElement(we,{label:"Particles",isSelected:function(){return t.particlesEnabled},onSelect:function(){return t.particlesEnabled=!t.particlesEnabled}}),s.createElement(we,{label:"Post-processes",isSelected:function(){return t.postProcessesEnabled},onSelect:function(){return t.postProcessesEnabled=!t.postProcessesEnabled}}),s.createElement(we,{label:"Probes",isSelected:function(){return t.probesEnabled},onSelect:function(){return t.probesEnabled=!t.probesEnabled}}),s.createElement(we,{label:"Textures",isSelected:function(){return t.texturesEnabled},onSelect:function(){return t.texturesEnabled=!t.texturesEnabled}}),s.createElement(we,{label:"Procedural textures",isSelected:function(){return t.proceduralTexturesEnabled},onSelect:function(){return t.proceduralTexturesEnabled=!t.proceduralTexturesEnabled}}),s.createElement(we,{label:"Render targets",isSelected:function(){return t.renderTargetsEnabled},onSelect:function(){return t.renderTargetsEnabled=!t.renderTargetsEnabled}}),s.createElement(we,{label:"Shadows",isSelected:function(){return t.shadowsEnabled},onSelect:function(){return t.shadowsEnabled=!t.shadowsEnabled}}),s.createElement(we,{label:"Skeletons",isSelected:function(){return t.skeletonsEnabled},onSelect:function(){return t.skeletonsEnabled=!t.skeletonsEnabled}}),s.createElement(we,{label:"Sprites",isSelected:function(){return t.spritesEnabled},onSelect:function(){return t.spritesEnabled=!t.spritesEnabled}}))):null},t}(Ce),_e=r(8),Me=r.n(_e),Le=function(e){function t(t){var r=e.call(this,t)||this;r._localChange=!1;var n=r.props.target[r.props.propertyName];return r.state={value:n?r.props.isInteger?n.toFixed(0):n.toFixed(r.props.digits||3):"0"},r._store=n,r}return a(t,e),t.prototype.componentWillUnmount=function(){this.unlock()},t.prototype.shouldComponentUpdate=function(e,t){if(this._localChange)return this._localChange=!1,!0;var r=e.target[e.propertyName],n=r?this.props.isInteger?r.toFixed(0):r.toFixed(this.props.digits||3):"0";return n!==t.value&&(t.value=n,!0)},t.prototype.raiseOnPropertyChanged=function(e,t){this.props.onChange&&this.props.onChange(e),this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:e,initialValue:t})},t.prototype.updateValue=function(e){var t;/[^0-9\.\-]/g.test(e)||(t=this.props.isInteger?parseInt(e):parseFloat(e),isNaN(t)||(void 0!==this.props.min&&t<this.props.min&&(e=(t=this.props.min).toString()),void 0!==this.props.max&&t>this.props.max&&(e=(t=this.props.max).toString())),this._localChange=!0,this.setState({value:e}),isNaN(t)||(this.props.target[this.props.propertyName]=t,this.raiseOnPropertyChanged(t,this._store),this._store=t))},t.prototype.lock=function(){this.props.lockObject&&(this.props.lockObject.lock=!0)},t.prototype.unlock=function(){this.props.lockObject&&(this.props.lockObject.lock=!1)},t.prototype.render=function(){var e,t=this;e=this.props.isInteger?parseInt(this.state.value):parseFloat(this.state.value);var r=this.props.smallUI?"short":"value";return s.createElement("div",null,!this.props.useEuler&&s.createElement("div",{className:this.props.additionalClass?this.props.additionalClass+" floatLine":"floatLine"},s.createElement("div",{className:"label",title:this.props.label},this.props.label),s.createElement("div",{className:r},s.createElement("input",{type:"number",step:this.props.step||this.props.isInteger?"1":"0.01",className:"numeric-input",onKeyDown:function(e){13===e.keyCode&&t.props.onEnter&&t.props.onEnter(t._store)},value:this.state.value,onBlur:function(){t.unlock(),t.props.onEnter&&t.props.onEnter(t._store)},onFocus:function(){return t.lock()},onChange:function(e){return t.updateValue(e.target.value)}}))),this.props.useEuler&&s.createElement(Re,{label:this.props.label,minimum:0,maximum:360,step:.1,directValue:u.Tools.ToDegrees(e),onChange:function(e){return t.updateValue(u.Tools.ToRadians(e).toString())}}))},t}(s.Component),Re=function(e){function t(t){var r=e.call(this,t)||this;if(r._localChange=!1,void 0!==r.props.directValue)r.state={value:r.props.directValue};else{var n=r.props.target[r.props.propertyName];void 0===n&&(n=r.props.maximum),r.state={value:n}}return r}return a(t,e),t.prototype.shouldComponentUpdate=function(e,t){if(void 0!==e.directValue)return t.value=e.directValue,!0;var r=e.target[e.propertyName];return void 0===r&&(r=e.maximum),!(r===t.value&&!this._localChange&&e.maximum===this.props.maximum&&e.minimum===this.props.minimum)&&(t.value=r,this._localChange=!1,!0)},t.prototype.onChange=function(e){this._localChange=!0;var t=parseFloat(e);this.props.useEuler&&(t=u.Tools.ToRadians(t)),this.props.target&&(this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:t,initialValue:this.state.value}),this.props.target[this.props.propertyName]=t),this.props.onChange&&this.props.onChange(t),this.setState({value:t})},t.prototype.onInput=function(e){var t=parseFloat(e);this.props.onInput&&this.props.onInput(t)},t.prototype.prepareDataToRead=function(e){return null===e&&(e=0),this.props.useEuler?u.Tools.ToDegrees(e):e},t.prototype.render=function(){var e=this;return s.createElement("div",{className:"sliderLine"},s.createElement("div",{className:this.props.margin?"label withMargins":"label",title:this.props.label},this.props.label),s.createElement(Le,{smallUI:!0,label:"",target:this.state,digits:void 0===this.props.decimalCount?3:this.props.decimalCount,propertyName:"value",min:this.props.minimum,max:this.props.maximum,onEnter:function(){var t=e.prepareDataToRead(e.state.value);e.onChange(t)},onChange:function(t){var r=e.prepareDataToRead(e.state.value);e.onChange(r)}}),s.createElement("div",{className:"slider"},s.createElement("input",{className:"range",type:"range",step:this.props.step,min:this.prepareDataToRead(this.props.minimum),max:this.prepareDataToRead(this.props.maximum),value:this.prepareDataToRead(this.state.value),onInput:function(t){return e.onInput(t.target.value)},onChange:function(t){return e.onChange(t.target.value)}})))},t}(s.Component),De=Number.MAX_SAFE_INTEGER,Ae=function(e){function t(t){var r=e.call(this,t)||this;return r._localChange=!1,r.state={value:r.remapValueIn(r.props.extractValue?r.props.extractValue():t.target[t.propertyName])},r}return a(t,e),t.prototype.remapValueIn=function(e){return this.props.allowNullValue&&null===e?De:e},t.prototype.remapValueOut=function(e){return this.props.allowNullValue&&e===De?null:e},t.prototype.shouldComponentUpdate=function(e,t){if(this._localChange)return this._localChange=!1,!0;var r=this.remapValueIn(e.extractValue?e.extractValue():e.target[e.propertyName]);return null!=r&&r!==t.value&&(t.value=r,!0)},t.prototype.raiseOnPropertyChanged=function(e,t){this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:e,initialValue:t,allowNullValue:this.props.allowNullValue})},t.prototype.updateValue=function(e){var t=parseInt(e);this._localChange=!0;var r=this.props.extractValue?this.props.extractValue():this.props.target[this.props.propertyName];this.props.noDirectUpdate||(this.props.target[this.props.propertyName]=this.remapValueOut(t)),this.setState({value:t}),this.props.onSelect&&this.props.onSelect(t);var n=this.props.extractValue?this.props.extractValue():this.props.target[this.props.propertyName];this.raiseOnPropertyChanged(n,r)},t.prototype.render=function(){var e,t=this;return s.createElement("div",{className:"listLine"},s.createElement("div",{className:"label",title:this.props.label},this.props.label),s.createElement("div",{className:"options"},s.createElement("select",{onChange:function(e){return t.updateValue(e.target.value)},value:null!==(e=this.state.value)&&void 0!==e?e:""},this.props.options.map((function(e,t){return s.createElement("option",{selected:e.selected,key:e.label+t,value:e.value,title:e.label},e.label)})))))},t}(s.Component),Ie=function(e){function t(t){var r=e.call(this,t)||this;return r._localChange=!1,r.state={value:r.props.value.toFixed(void 0!==r.props.precision?r.props.precision:3)},r}return a(t,e),t.prototype.shouldComponentUpdate=function(e,t){return!!this._localChange||e.value.toString()!==t.value&&(t.value=e.value.toFixed(void 0!==this.props.precision?this.props.precision:3),!0)},t.prototype.updateValue=function(e){var t=e.target.value;if(!/[^0-9\.\-]/g.test(t)){var r=parseFloat(t);this._localChange=!0,this.setState({value:t}),isNaN(r)||this.props.onChange(r)}},t.prototype.onBlur=function(){this._localChange=!1;var e=parseFloat(this.state.value);isNaN(e)?this.props.onChange(this.props.value):this.props.onChange(e)},t.prototype.render=function(){var e=this;return s.createElement("div",{className:"numeric"},this.props.label&&s.createElement("div",{className:"numeric-label",title:this.props.label},this.props.label+": "),s.createElement("input",{type:"number",step:this.props.step,className:"numeric-input",value:this.state.value,onChange:function(t){return e.updateValue(t)},onBlur:function(){return e.onBlur()}}))},t.defaultProps={step:1},t}(s.Component),je=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.updateValue=function(e){if(!/[^0-9\.\-]/g.test(e)){var t=parseInt(e);isNaN(t)||(null!=this.props.max&&t>this.props.max&&(t=this.props.max),null!=this.props.min&&t<this.props.min&&(t=this.props.min),this.props.onChange(t))}},t.prototype.render=function(){var e=this;return s.createElement("div",{className:"color-picker-component"},s.createElement("div",{className:"color-picker-component-value"},s.createElement("input",{type:"number",step:1,className:"numeric-input",value:this.props.value,onChange:function(t){return e.updateValue(t.target.value)}})),s.createElement("div",{className:"color-picker-component-label"},this.props.label))},t}(s.Component),ze=function(e){function t(t){var r=e.call(this,t)||this;return r.state={hex:r.props.value.replace("#","")},r}return a(t,e),t.prototype.shouldComponentUpdate=function(e,t){return e.value!==this.props.value&&(t.hex=e.value.replace("#","")),!0},t.prototype.updateHexValue=function(e){""!=e&&0==/^[0-9A-Fa-f]+$/g.test(e)||(this.setState({hex:e}),e.length===this.props.expectedLength&&this.props.onChange("#"+e))},t.prototype.render=function(){var e=this;return s.createElement("input",{type:"string",className:"hex-input",value:this.state.hex,onChange:function(t){return e.updateHexValue(t.target.value)}})},t}(s.Component);r(27);var Ge=function(e){function t(t){var r=e.call(this,t)||this;return r.props.color instanceof u.Color4?r.state={color:new u.Color3(r.props.color.r,r.props.color.g,r.props.color.b),alpha:r.props.color.a}:r.state={color:r.props.color.clone(),alpha:1},r._saturationRef=s.createRef(),r._hueRef=s.createRef(),r}return a(t,e),t.prototype.onSaturationPointerDown=function(e){this._evaluateSaturation(e),this._isSaturationPointerDown=!0,e.currentTarget.setPointerCapture(e.pointerId)},t.prototype.onSaturationPointerUp=function(e){this._isSaturationPointerDown=!1,e.currentTarget.releasePointerCapture(e.pointerId)},t.prototype.onSaturationPointerMove=function(e){this._isSaturationPointerDown&&this._evaluateSaturation(e)},t.prototype.onHuePointerDown=function(e){this._evaluateHue(e),this._isHuePointerDown=!0,e.currentTarget.setPointerCapture(e.pointerId)},t.prototype.onHuePointerUp=function(e){this._isHuePointerDown=!1,e.currentTarget.releasePointerCapture(e.pointerId)},t.prototype.onHuePointerMove=function(e){this._isHuePointerDown&&this._evaluateHue(e)},t.prototype._evaluateSaturation=function(e){var t=e.nativeEvent.offsetX,r=e.nativeEvent.offsetY,n=Math.min(1,Math.max(1e-4,t/this._saturationRef.current.clientWidth)),a=Math.min(1,Math.max(1e-4,1-r/this._saturationRef.current.clientHeight));this.props.debugMode&&(console.log("Saturation: "+n),console.log("Value: "+a));var o=this.state.color.toHSV();u.Color3.HSVtoRGBToRef(o.r,n,a,this.state.color),this.setState({color:this.state.color})},t.prototype._evaluateHue=function(e){var t=e.nativeEvent.offsetX,r=360*Math.min(.9999,Math.max(1e-4,t/this._hueRef.current.clientWidth));this.props.debugMode&&console.log("Hue: "+r);var n=this.state.color.toHSV();u.Color3.HSVtoRGBToRef(r,Math.max(n.g,1e-4),Math.max(n.b,1e-4),this.state.color),this.setState({color:this.state.color})},t.prototype.componentDidUpdate=function(){this.raiseOnColorChanged()},t.prototype.raiseOnColorChanged=function(){if(this.props.onColorChanged)if(this.props.color instanceof u.Color4){var e=u.Color4.FromColor3(this.state.color,this.state.alpha);this.props.onColorChanged(e)}else this.props.onColorChanged(this.state.color.clone())},t.prototype.render=function(){var e=this,t=this.state.color.toHexString(),r=this.state.color.toHSV(),n=new u.Color3;u.Color3.HSVtoRGBToRef(r.r,1,1,n);var a=n.toHexString(),o=this.props.color instanceof u.Color4;return s.createElement("div",{className:"color-picker-container"},s.createElement("div",{className:"color-picker-saturation",onPointerMove:function(t){return e.onSaturationPointerMove(t)},onPointerDown:function(t){return e.onSaturationPointerDown(t)},onPointerUp:function(t){return e.onSaturationPointerUp(t)},ref:this._saturationRef,style:{background:a}},s.createElement("div",{className:"color-picker-saturation-white"}),s.createElement("div",{className:"color-picker-saturation-black"}),s.createElement("div",{className:"color-picker-saturation-cursor",style:{top:-100*r.b+100+"%",left:100*r.g+"%"}})),s.createElement("div",{className:"color-picker-hue"},s.createElement("div",{className:"color-picker-hue-color",style:{background:t}}),s.createElement("div",{className:"color-picker-hue-slider",ref:this._hueRef,onPointerMove:function(t){return e.onHuePointerMove(t)},onPointerDown:function(t){return e.onHuePointerDown(t)},onPointerUp:function(t){return e.onHuePointerUp(t)}},s.createElement("div",{className:"color-picker-hue-cursor",style:{left:r.r/360*100+"%",border:"1px solid "+a}}))),s.createElement("div",{className:"color-picker-rgb"},s.createElement("div",{className:"red"},s.createElement(je,{label:"R",min:0,max:255,value:255*this.state.color.r|0,onChange:function(t){e.state.color.r=t/255,e.forceUpdate()}})),s.createElement("div",{className:"green"},s.createElement(je,{label:"G",min:0,max:255,value:255*this.state.color.g|0,onChange:function(t){e.state.color.g=t/255,e.forceUpdate()}})),s.createElement("div",{className:"blue"},s.createElement(je,{label:"B",min:0,max:255,value:255*this.state.color.b|0,onChange:function(t){e.state.color.b=t/255,e.forceUpdate()}})),s.createElement("div",{className:"alpha"+(o?"":" grayed")},s.createElement(je,{label:"A",min:0,max:255,value:255*this.state.alpha|0,onChange:function(t){e.setState({alpha:t/255}),e.forceUpdate()}}))),s.createElement("div",{className:"color-picker-hex"},s.createElement("div",{className:"color-picker-hex-label"},"Hex"),s.createElement("div",{className:"color-picker-hex-value"},s.createElement(ze,{expectedLength:6,value:t,onChange:function(t){e.setState({color:u.Color3.FromHexString(t)})}}))))},t}(s.Component),Fe=function(e){function t(t){var r=e.call(this,t)||this;return r.state={pickerEnabled:!1,color:r.props.value,hex:r.props.value.toHexString()},r._floatRef=s.createRef(),r._floatHostRef=s.createRef(),r}return a(t,e),t.prototype.syncPositions=function(){var e=this._floatRef.current,t=this._floatHostRef.current;if(e&&t){var r=t.getBoundingClientRect().top,n=e.getBoundingClientRect().height;r+n+10>window.innerHeight&&(r=window.innerHeight-n-10),e.style.top=r+"px",e.style.left=t.getBoundingClientRect().left-e.getBoundingClientRect().width+"px"}},t.prototype.shouldComponentUpdate=function(e,t){var r=e.value.toHexString()!==this.props.value.toHexString();return r&&(t.color=e.value,t.hex=e.value.toHexString()),r||t.hex!==this.state.hex||t.pickerEnabled!==this.state.pickerEnabled},t.prototype.componentDidUpdate=function(){this.syncPositions()},t.prototype.componentDidMount=function(){this.syncPositions()},t.prototype.render=function(){var e=this,t=this.state.color;return s.createElement("div",{className:"color-picker"},s.createElement("div",{className:"color-rect",ref:this._floatHostRef,style:{background:this.state.hex},onClick:function(){return e.setState({pickerEnabled:!0})}}),this.state.pickerEnabled&&s.createElement(s.Fragment,null,s.createElement("div",{className:"color-picker-cover",onClick:function(t){var r,n;t.target===(null===(n=null===(r=e._floatRef.current)||void 0===r?void 0:r.ownerDocument)||void 0===n?void 0:n.querySelector(".color-picker-cover"))&&e.setState({pickerEnabled:!1})}},s.createElement("div",{className:"color-picker-float",ref:this._floatRef},s.createElement(Ge,{color:t,onColorChanged:function(t){var r=t.toHexString();e.setState({hex:r,color:t}),e.props.onColorChanged(r)}})))))},t}(s.Component),Ve=r(14),Ue=function(e){function t(t){var r=e.call(this,t)||this;return r._localChange=!1,r.state={isExpanded:!1,color:r.props.target[r.props.propertyName].clone()},t.isLinear&&r.state.color.toGammaSpaceToRef(r.state.color),t.target._isLinearColor=t.isLinear,r}return a(t,e),t.prototype.shouldComponentUpdate=function(e,t){var r=this.props.isLinear?e.target[e.propertyName].toGammaSpace():e.target[e.propertyName];return!(r.equals(t.color)&&!this._localChange)&&(t.color=r.clone(),this._localChange=!1,!0)},t.prototype.setPropertyValue=function(e){this.props.target[this.props.propertyName]=e,this.props.isLinear&&(this.props.target[this.props.propertyName]=e.toLinearSpace())},t.prototype.onChange=function(e){this._localChange=!0;var t=u.Color3.FromHexString(e);this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:t,initialValue:this.state.color}),this.setPropertyValue(t),this.setState({color:t})},t.prototype.switchExpandState=function(){this._localChange=!0,this.setState({isExpanded:!this.state.isExpanded})},t.prototype.raiseOnPropertyChanged=function(e){this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:this.state.color,initialValue:e})},t.prototype.updateStateR=function(e){this._localChange=!0;var t=this.state.color.clone();this.state.color.r=e,this.setPropertyValue(this.state.color),this.setState({color:this.state.color}),this.raiseOnPropertyChanged(t)},t.prototype.updateStateG=function(e){this._localChange=!0;var t=this.state.color.clone();this.state.color.g=e,this.setPropertyValue(this.state.color),this.setState({color:this.state.color}),this.raiseOnPropertyChanged(t)},t.prototype.updateStateB=function(e){this._localChange=!0;var t=this.state.color.clone();this.state.color.b=e,this.setPropertyValue(this.state.color),this.setState({color:this.state.color}),this.raiseOnPropertyChanged(t)},t.prototype.copyToClipboard=function(){var e=document.createElement("div");if(e.textContent=this.state.color.toHexString(),document.body.appendChild(e),window.getSelection){var t=document.createRange();t.selectNode(e),window.getSelection().removeAllRanges(),window.getSelection().addRange(t)}document.execCommand("copy"),e.remove()},t.prototype.render=function(){var e=this,t=this.state.isExpanded?s.createElement(w,{icon:ae}):s.createElement(w,{icon:se});return s.createElement("div",{className:"color3Line"},s.createElement("div",{className:"firstLine",title:this.props.label},s.createElement("div",{className:"label"},this.props.label),s.createElement("div",{className:"color3"},s.createElement(Fe,{value:this.state.color,onColorChanged:function(t){e.onChange(t)}})),s.createElement("div",{className:"copy hoverIcon",onClick:function(){return e.copyToClipboard()},title:"Copy to clipboard"},s.createElement("img",{src:Ve,alt:""})),s.createElement("div",{className:"expand hoverIcon",onClick:function(){return e.switchExpandState()},title:"Expand"},t)),this.state.isExpanded&&s.createElement("div",{className:"secondLine"},s.createElement(Ie,{label:"r",value:this.state.color.r,onChange:function(t){return e.updateStateR(t)}}),s.createElement(Ie,{label:"g",value:this.state.color.g,onChange:function(t){return e.updateStateG(t)}}),s.createElement(Ie,{label:"b",value:this.state.color.b,onChange:function(t){return e.updateStateB(t)}})))},t}(s.Component),He=function(e){function t(t){var r=e.call(this,t)||this;return r._localChange=!1,r.state={isExpanded:!1,value:r.getCurrentValue().clone()},r}return a(t,e),t.prototype.getCurrentValue=function(){return this.props.target[this.props.propertyName]},t.prototype.shouldComponentUpdate=function(e,t){var r=this.getCurrentValue();return!(r.equals(t.value)&&!this._localChange)&&(t.value=r.clone(),this._localChange=!1,!0)},t.prototype.switchExpandState=function(){this._localChange=!0,this.setState({isExpanded:!this.state.isExpanded})},t.prototype.raiseOnPropertyChanged=function(e){this.props.onChange&&this.props.onChange(this.state.value),this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:this.state.value,initialValue:e})},t.prototype.updateVector3=function(){var e=this.props.target[this.props.propertyName].clone();this.props.target[this.props.propertyName]=this.state.value,this.setState({value:e}),this.raiseOnPropertyChanged(e)},t.prototype.updateStateX=function(e){this._localChange=!0,this.state.value.x=e,this.updateVector3()},t.prototype.updateStateY=function(e){this._localChange=!0,this.state.value.y=e,this.updateVector3()},t.prototype.updateStateZ=function(e){this._localChange=!0,this.state.value.z=e,this.updateVector3()},t.prototype.render=function(){var e=this,t=this.state.isExpanded?s.createElement(w,{icon:ae}):s.createElement(w,{icon:se});return s.createElement("div",{className:"vector3Line"},s.createElement("div",{className:"firstLine"},s.createElement("div",{className:"label",title:this.props.label},this.props.label),s.createElement("div",{className:"vector"},!this.props.useEuler&&"X: "+this.state.value.x.toFixed(2)+", Y: "+this.state.value.y.toFixed(2)+", Z: "+this.state.value.z.toFixed(2),this.props.useEuler&&"X: "+u.Tools.ToDegrees(this.state.value.x).toFixed(2)+", Y: "+u.Tools.ToDegrees(this.state.value.y).toFixed(2)+", Z: "+u.Tools.ToDegrees(this.state.value.z).toFixed(2)),s.createElement("div",{className:"expand hoverIcon",onClick:function(){return e.switchExpandState()},title:"Expand"},t)),this.state.isExpanded&&!this.props.useEuler&&s.createElement("div",{className:"secondLine"},s.createElement(Ie,{label:"x",step:this.props.step,value:this.state.value.x,onChange:function(t){return e.updateStateX(t)}}),s.createElement(Ie,{label:"y",step:this.props.step,value:this.state.value.y,onChange:function(t){return e.updateStateY(t)}}),s.createElement(Ie,{label:"z",step:this.props.step,value:this.state.value.z,onChange:function(t){return e.updateStateZ(t)}})),this.state.isExpanded&&this.props.useEuler&&!this.props.noSlider&&s.createElement("div",{className:"secondLine"},s.createElement(Re,{margin:!0,label:"x",minimum:0,maximum:360,step:.1,directValue:u.Tools.ToDegrees(this.state.value.x),onChange:function(t){return e.updateStateX(u.Tools.ToRadians(t))}}),s.createElement(Re,{margin:!0,label:"y",minimum:0,maximum:360,step:.1,directValue:u.Tools.ToDegrees(this.state.value.y),onChange:function(t){return e.updateStateY(u.Tools.ToRadians(t))}}),s.createElement(Re,{margin:!0,label:"z",minimum:0,maximum:360,step:.1,directValue:u.Tools.ToDegrees(this.state.value.z),onChange:function(t){return e.updateStateZ(u.Tools.ToRadians(t))}})),this.state.isExpanded&&this.props.useEuler&&this.props.noSlider&&s.createElement("div",{className:"secondLine"},s.createElement(Ie,{label:"x",step:this.props.step,value:u.Tools.ToDegrees(this.state.value.x),onChange:function(t){return e.updateStateX(u.Tools.ToRadians(t))}}),s.createElement(Ie,{label:"y",step:this.props.step,value:u.Tools.ToDegrees(this.state.value.y),onChange:function(t){return e.updateStateY(u.Tools.ToRadians(t))}}),s.createElement(Ie,{label:"z",step:this.props.step,value:u.Tools.ToDegrees(this.state.value.z),onChange:function(t){return e.updateStateZ(u.Tools.ToRadians(t))}})))},t.defaultProps={step:.001},t}(s.Component),Be=function(e){function t(t){var r=e.call(this,t)||this;r._localChange=!1;var n=r.props.target[r.props.propertyName].clone();return r.state={isExpanded:!1,value:n,eulerValue:n.toEulerAngles()},r}return a(t,e),t.prototype._checkRoundCircle=function(e,t){return Math.abs(u.Tools.ToDegrees(e))+Math.abs(u.Tools.ToDegrees(t))===360},t.prototype.shouldComponentUpdate=function(e,t){var r=e.target[e.propertyName];return!(r.equals(t.value)&&!this._localChange)&&(t.value=r.clone(),t.eulerValue=r.toEulerAngles(),this._checkRoundCircle(t.eulerValue.x,this.state.eulerValue.x)&&(t.eulerValue.x=this.state.eulerValue.x),this._checkRoundCircle(t.eulerValue.y,this.state.eulerValue.y)&&(t.eulerValue.y=this.state.eulerValue.y),this._checkRoundCircle(t.eulerValue.z,this.state.eulerValue.z)&&(t.eulerValue.z=this.state.eulerValue.z),this._localChange=!1,!0)},t.prototype.switchExpandState=function(){this._localChange=!0,this.setState({isExpanded:!this.state.isExpanded})},t.prototype.raiseOnPropertyChanged=function(e,t){this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:e,initialValue:t})},t.prototype.updateQuaternion=function(){var e=this.props.target[this.props.propertyName].clone();this.props.target[this.props.propertyName]=this.state.value,this.setState({value:e}),this.raiseOnPropertyChanged(this.state.value,e)},t.prototype.updateStateX=function(e){this._localChange=!0,this.state.value.x=e,this.updateQuaternion()},t.prototype.updateStateY=function(e){this._localChange=!0,this.state.value.y=e,this.updateQuaternion()},t.prototype.updateStateZ=function(e){this._localChange=!0,this.state.value.z=e,this.updateQuaternion()},t.prototype.updateStateW=function(e){this._localChange=!0,this.state.value.w=e,this.updateQuaternion()},t.prototype.updateQuaternionFromEuler=function(){var e=this.state.eulerValue.toQuaternion();this.state.value.x=e.x,this.state.value.y=e.y,this.state.value.z=e.z,this.state.value.w=e.w,this.updateQuaternion()},t.prototype.updateStateEulerX=function(e){this._localChange=!0,this.state.eulerValue.x=u.Tools.ToRadians(e),this.updateQuaternionFromEuler()},t.prototype.updateStateEulerY=function(e){this._localChange=!0,this.state.eulerValue.y=u.Tools.ToRadians(e),this.updateQuaternionFromEuler()},t.prototype.updateStateEulerZ=function(e){this._localChange=!0,this.state.eulerValue.z=u.Tools.ToRadians(e),this.updateQuaternionFromEuler()},t.prototype.render=function(){var e=this,t=this.state.isExpanded?s.createElement(w,{icon:ae}):s.createElement(w,{icon:se}),r=this.state.value,n=this.state.eulerValue.clone();return n.x=u.Tools.ToDegrees(n.x),n.y=u.Tools.ToDegrees(n.y),n.z=u.Tools.ToDegrees(n.z),s.createElement("div",{className:"vector3Line"},s.createElement("div",{className:"firstLine",title:this.props.label+" (Using Quaternion)"},s.createElement("div",{className:"label"},this.props.label+" (Using Quaternion)"),s.createElement("div",{className:"vector"},!this.props.useEuler&&"X: "+r.x.toFixed(1)+", Y: "+r.y.toFixed(1)+", Z: "+r.z.toFixed(1)+", W: "+r.w.toFixed(1),this.props.useEuler&&"X: "+n.x.toFixed(2)+", Y: "+n.y.toFixed(2)+", Z: "+n.z.toFixed(2)),s.createElement("div",{className:"expand",onClick:function(){return e.switchExpandState()}},t)),this.state.isExpanded&&!this.props.useEuler&&s.createElement("div",{className:"secondLine"},s.createElement(Ie,{label:"x",value:r.x,onChange:function(t){return e.updateStateX(t)}}),s.createElement(Ie,{label:"y",value:r.y,onChange:function(t){return e.updateStateY(t)}}),s.createElement(Ie,{label:"z",value:r.z,onChange:function(t){return e.updateStateZ(t)}}),s.createElement(Ie,{label:"w",value:r.w,onChange:function(t){return e.updateStateW(t)}})),this.state.isExpanded&&this.props.useEuler&&s.createElement("div",{className:"secondLine"},s.createElement(Le,{label:"x",target:n,propertyName:"x",onChange:function(t){e.updateStateEulerX(t)}}),s.createElement(Le,{label:"y",target:n,propertyName:"y",onChange:function(t){e.updateStateEulerY(t)}}),s.createElement(Le,{label:"z",target:n,propertyName:"z",onChange:function(t){e.updateStateEulerZ(t)}})))},t}(s.Component),We=function(e){function t(t){var r=e.call(this,t)||this;return r._localChange=!1,r.state={value:(void 0!==r.props.value?r.props.value:r.props.target[r.props.propertyName])||""},r}return a(t,e),t.prototype.componentWillUnmount=function(){this.props.lockObject.lock=!1},t.prototype.shouldComponentUpdate=function(e,t){if(this._localChange)return this._localChange=!1,!0;var r=void 0!==e.value?e.value:e.target[e.propertyName];return r!==t.value&&(t.value=r||"",!0)},t.prototype.raiseOnPropertyChanged=function(e,t){this.props.onChange?this.props.onChange(e):this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:e,initialValue:t})},t.prototype.updateValue=function(e){this._localChange=!0;var t=void 0!==this.props.value?this.props.value:this.props.target[this.props.propertyName];this.setState({value:e}),this.raiseOnPropertyChanged(e,t),this.props.propertyName&&(this.props.target[this.props.propertyName]=e)},t.prototype.render=function(){var e=this;return s.createElement("div",{className:"textInputLine"},s.createElement("div",{className:"label",title:this.props.label},this.props.label),s.createElement("div",{className:"value"},s.createElement("input",{value:this.state.value,onBlur:function(){return e.props.lockObject.lock=!1},onFocus:function(){return e.props.lockObject.lock=!0},onChange:function(t){return e.updateValue(t.target.value)}})))},t}(s.Component),Ye=function(e){function t(t){var r=e.call(this,t)||this;return r.state={mode:0},r}return a(t,e),t.prototype.renderInspectable=function(e){switch(e.type){case u.InspectableType.Checkbox:return s.createElement(we,{key:e.label,label:e.label,target:this.props.target,propertyName:e.propertyName,onPropertyChangedObservable:this.props.onPropertyChangedObservable});case u.InspectableType.Slider:return s.createElement(Re,{key:e.label,label:e.label,target:this.props.target,propertyName:e.propertyName,step:void 0!==e.step?e.step:.1,minimum:void 0!==e.min?e.min:0,maximum:void 0!==e.max?e.max:1,onPropertyChangedObservable:this.props.onPropertyChangedObservable});case u.InspectableType.Vector3:return s.createElement(He,{key:e.label,label:e.label,target:this.props.target,propertyName:e.propertyName,onPropertyChangedObservable:this.props.onPropertyChangedObservable});case u.InspectableType.Quaternion:return s.createElement(Be,{useEuler:this.props.globalState.onlyUseEulers,key:e.label,label:e.label,target:this.props.target,propertyName:e.propertyName,onPropertyChangedObservable:this.props.onPropertyChangedObservable});case u.InspectableType.Color3:return s.createElement(Ue,{key:e.label,label:e.label,target:this.props.target,propertyName:e.propertyName,onPropertyChangedObservable:this.props.onPropertyChangedObservable});case u.InspectableType.String:return s.createElement(We,{key:e.label,label:e.label,lockObject:this.props.lockObject,target:this.props.target,propertyName:e.propertyName,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}return null},t.prototype.render=function(){var e=this,t=this.props.target.inspectableCustomProperties;return t&&0!==t.length?s.createElement(Oe,{title:"CUSTOM",globalState:this.props.globalState},t.map((function(t){return e.renderInspectable(t)}))):null},t}(s.Component),Ze=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this;return s.createElement("div",{className:"buttonLine"},s.createElement("button",{onClick:function(){return e.props.onClick()}},this.props.label))},t}(s.Component),Ke=function(e){function t(t){var r,n=e.call(this,t)||this;n._animations=null,n._isPlaying=!1,n._animationControl={from:0,to:0,loop:!1},n.state={currentFrame:0};var a=n.props.animatable;if(n._ranges=a.getAnimationRanges?a.getAnimationRanges():[],a.getAnimatables){var o=a.getAnimatables();n._animations=new Array,o.forEach((function(e){var t;e.animations&&(t=n._animations).push.apply(t,e.animations)})),a.animations&&(r=n._animations).push.apply(r,a.animations),n._animations&&n._animations.length&&n._animations.forEach((function(e){var t=e.getKeys();if(t&&t.length>0){t[0].frame<n._animationControl.from&&(n._animationControl.from=t[0].frame);var r=t.length-1;t[r].frame>n._animationControl.to&&(n._animationControl.to=t[r].frame)}}))}return n.timelineRef=s.createRef(),n}return a(t,e),t.prototype.playOrPause=function(){var e=this.props.animatable;this._isPlaying=this.props.scene.getAllAnimatablesByTarget(e).length>0,this._isPlaying?(this.props.scene.stopAnimation(this.props.animatable),this._mainAnimatable=null):this._mainAnimatable=this.props.scene.beginAnimation(this.props.animatable,this._animationControl.from,this._animationControl.to,this._animationControl.loop),this.forceUpdate()},t.prototype.componentDidMount=function(){var e=this;this._onBeforeRenderObserver=this.props.scene.onBeforeRenderObservable.add((function(){e._isPlaying&&e._mainAnimatable&&e.setState({currentFrame:e._mainAnimatable.masterFrame})}))},t.prototype.componentWillUnmount=function(){this._onBeforeRenderObserver&&(this.props.scene.onBeforeRenderObservable.remove(this._onBeforeRenderObserver),this._onBeforeRenderObserver=null)},t.prototype.onCurrentFrameChange=function(e){this._mainAnimatable&&(this._mainAnimatable.goToFrame(e),this.setState({currentFrame:e}))},t.prototype.onChangeFromOrTo=function(){this.playOrPause(),this._isPlaying&&this.playOrPause()},t.prototype.render=function(){var e=this,t=this.props.animatable,r=this.props.animatable,n=this.props.scene.getAllAnimatablesByTarget(t);this._isPlaying=n.length>0,this._isPlaying&&!this._mainAnimatable&&(this._mainAnimatable=n[0],this._mainAnimatable&&(this._animationControl.from=this._mainAnimatable.fromFrame,this._animationControl.to=this._mainAnimatable.toFrame,this._animationControl.loop=this._mainAnimatable.loopAnimation));var a=t.animations;return s.createElement("div",null,this._ranges.length>0&&s.createElement(Oe,{globalState:this.props.globalState,title:"ANIMATION RANGES"},this._ranges.map((function(r,n){return s.createElement(Ze,{key:r.name+n,label:r.name,onClick:function(){e._mainAnimatable=null,e.props.scene.beginAnimation(t,r.from,r.to,!0)}})}))),a&&s.createElement(s.Fragment,null,s.createElement(Oe,{globalState:this.props.globalState,title:"ANIMATIONS"},s.createElement(Ee,{label:"Count",value:a.length.toString()})),a.length>0&&s.createElement(Oe,{globalState:this.props.globalState,title:"ANIMATION GENERAL CONTROL"},s.createElement(Le,{lockObject:this.props.lockObject,isInteger:!0,label:"From",target:this._animationControl,propertyName:"from",onChange:function(){return e.onChangeFromOrTo()}}),s.createElement(Le,{lockObject:this.props.lockObject,isInteger:!0,label:"To",target:this._animationControl,propertyName:"to",onChange:function(){return e.onChangeFromOrTo()}}),s.createElement(we,{label:"Loop",onSelect:function(t){return e._animationControl.loop=t},isSelected:function(){return e._animationControl.loop}}),this._isPlaying&&s.createElement(Re,{ref:this.timelineRef,label:"Current frame",minimum:this._animationControl.from,maximum:this._animationControl.to,step:(this._animationControl.to-this._animationControl.from)/1e3,directValue:this.state.currentFrame,onInput:function(t){return e.onCurrentFrameChange(t)}}),s.createElement(Ze,{label:this._isPlaying?"Stop":"Play",onClick:function(){return e.playOrPause()}}),(this._ranges.length>0||this._animations&&this._animations.length>0)&&s.createElement(s.Fragment,null,s.createElement(we,{label:"Enable override",onSelect:function(t){t?(r.animationPropertiesOverride=new u.AnimationPropertiesOverride,r.animationPropertiesOverride.blendingSpeed=.05):r.animationPropertiesOverride=null,e.forceUpdate()},isSelected:function(){return null!=r.animationPropertiesOverride},onValueChanged:function(){return e.forceUpdate()}}),null!=r.animationPropertiesOverride&&s.createElement("div",null,s.createElement(we,{label:"Enable blending",target:r.animationPropertiesOverride,propertyName:"enableBlending",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Blending speed",target:r.animationPropertiesOverride,propertyName:"blendingSpeed",minimum:0,maximum:.1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}))))))},t}(s.Component),Xe=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e,t=this,r=this.props.material;r.depthFunction=null!==(e=r.depthFunction)&&void 0!==e?e:0;var n=[{label:"Clockwise",value:u.Material.ClockWiseSideOrientation},{label:"Counterclockwise",value:u.Material.CounterClockWiseSideOrientation}],a=[{label:"<Not Defined>",value:De},{label:"Opaque",value:u.PBRMaterial.PBRMATERIAL_OPAQUE},{label:"Alpha test",value:u.PBRMaterial.PBRMATERIAL_ALPHATEST},{label:"Alpha blend",value:u.PBRMaterial.PBRMATERIAL_ALPHABLEND},{label:"Alpha blend and test",value:u.PBRMaterial.PBRMATERIAL_ALPHATESTANDBLEND}],o=[{label:"Combine",value:u.Constants.ALPHA_COMBINE},{label:"One one",value:u.Constants.ALPHA_ONEONE},{label:"Add",value:u.Constants.ALPHA_ADD},{label:"Subtract",value:u.Constants.ALPHA_SUBTRACT},{label:"Multiply",value:u.Constants.ALPHA_MULTIPLY},{label:"Maximized",value:u.Constants.ALPHA_MAXIMIZED},{label:"Pre-multiplied",value:u.Constants.ALPHA_PREMULTIPLIED}],i=[{label:"<Engine Default>",value:0},{label:"Never",value:u.Engine.NEVER},{label:"Always",value:u.Engine.ALWAYS},{label:"Equal",value:u.Engine.EQUAL},{label:"Less",value:u.Engine.LESS},{label:"Less or equal",value:u.Engine.LEQUAL},{label:"Greater",value:u.Engine.GREATER},{label:"Greater or equal",value:u.Engine.GEQUAL},{label:"Not equal",value:u.Engine.NOTEQUAL}];return s.createElement("div",null,s.createElement(Ye,{globalState:this.props.globalState,target:r,lockObject:this.props.lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Oe,{globalState:this.props.globalState,title:"GENERAL"},s.createElement(Ee,{label:"ID",value:r.id}),s.createElement(We,{lockObject:this.props.lockObject,label:"Name",target:r,propertyName:"name",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Ee,{label:"Unique ID",value:r.uniqueId.toString()}),s.createElement(Ee,{label:"Class",value:r.getClassName()}),s.createElement(we,{label:"Backface culling",target:r,propertyName:"backFaceCulling",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Ae,{label:"Orientation",options:n,target:r,propertyName:"sideOrientation",onPropertyChangedObservable:this.props.onPropertyChangedObservable,onSelect:function(e){return t.setState({mode:e})}}),s.createElement(we,{label:"Disable lighting",target:r,propertyName:"disableLighting",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Disable color write",target:r,propertyName:"disableColorWrite",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Disable depth write",target:r,propertyName:"disableDepthWrite",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Ae,{label:"Depth function",options:i,target:r,propertyName:"depthFunction",onPropertyChangedObservable:this.props.onPropertyChangedObservable,onSelect:function(e){return t.setState({depthFunction:e})}}),s.createElement(we,{label:"Need depth pre-pass",target:r,propertyName:"needDepthPrePass",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Wireframe",target:r,propertyName:"wireframe",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Point cloud",target:r,propertyName:"pointsCloud",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Point size",target:r,propertyName:"pointSize",minimum:0,maximum:100,step:.1,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Z-offset",target:r,propertyName:"zOffset",minimum:-10,maximum:10,step:.1,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Ze,{label:"Dispose",onClick:function(){r.dispose(),t.props.globalState.onSelectionChangedObservable.notifyObservers(null)}})),s.createElement(Oe,{globalState:this.props.globalState,title:"TRANSPARENCY"},s.createElement(Re,{label:"Alpha",target:r,propertyName:"alpha",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),void 0!==r.transparencyMode&&s.createElement(Ae,{allowNullValue:!0,label:"Transparency mode",options:a,target:r,propertyName:"transparencyMode",onPropertyChangedObservable:this.props.onPropertyChangedObservable,onSelect:function(e){return t.setState({transparencyMode:e})}}),s.createElement(Ae,{label:"Alpha mode",options:o,target:r,propertyName:"alphaMode",onPropertyChangedObservable:this.props.onPropertyChangedObservable,onSelect:function(e){return t.setState({alphaMode:e})}}),r.diffuseTexture&&s.createElement(we,{label:"Diffuse texture has alpha",target:r.diffuseTexture,propertyName:"hasAlpha",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),void 0!==r.useAlphaFromDiffuseTexture&&s.createElement(we,{label:"Use alpha from diffuse texture",target:r,propertyName:"useAlphaFromDiffuseTexture",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),r.albedoTexture&&s.createElement(we,{label:"Albedo texture has alpha",target:r.albedoTexture,propertyName:"hasAlpha",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),void 0!==r.useAlphaFromAlbedoTexture&&s.createElement(we,{label:"Use alpha from albedo texture",target:r,propertyName:"useAlphaFromAlbedoTexture",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Separate culling pass",target:r,propertyName:"separateCullingPass",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),s.createElement(Ke,{globalState:this.props.globalState,animatable:r,scene:r.getScene(),lockObject:this.props.lockObject}))},t}(s.Component),Qe=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.material;return s.createElement("div",{className:"pane"},s.createElement(Xe,{globalState:this.props.globalState,lockObject:this.props.lockObject,material:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}))},t}(s.Component),qe=function(e){function t(r){var n=e.call(this,r)||this;return n._id=t._IDGenerator++,n.uploadInputRef=s.createRef(),n}return a(t,e),t.prototype.onChange=function(e){var t=e.target.files;t&&t.length&&this.props.onClick(t[0]),e.target.value=""},t.prototype.render=function(){var e=this;return s.createElement("div",{className:"buttonLine"},s.createElement("label",{htmlFor:"file-upload"+this._id,className:"file-upload"},this.props.label),s.createElement("input",{ref:this.uploadInputRef,id:"file-upload"+this._id,type:"file",accept:this.props.accept,onChange:function(t){return e.onChange(t)}}))},t._IDGenerator=0,t}(s.Component),$e=function(e){function t(t){var r=e.call(this,t)||this,n=r.props.material,a=r.props.texture;return r.state={isDebugSelected:n&&n.reservedDataStore&&n.reservedDataStore.debugTexture===a},r}return a(t,e),t.prototype.componentDidMount=function(){var e=this;this.props.onDebugSelectionChangeObservable&&(this._onDebugSelectionChangeObserver=this.props.onDebugSelectionChangeObservable.add((function(t){t!==e&&e.setState({isDebugSelected:!1})})))},t.prototype.componentWillUnmount=function(){this.props.onDebugSelectionChangeObservable&&this._onDebugSelectionChangeObserver&&this.props.onDebugSelectionChangeObservable.remove(this._onDebugSelectionChangeObserver)},t.prototype.debugTexture=function(){if(this.props.customDebugAction){var e=!this.state.isDebugSelected;return this.props.customDebugAction(e),this.setState({isDebugSelected:e}),void(this.props.onDebugSelectionChangeObservable&&this.props.onDebugSelectionChangeObservable.notifyObservers(this))}var t=this.props.texture,r=this.props.material;if(r&&t){var n=r.getScene();if(r.reservedDataStore&&r.reservedDataStore.debugTexture===t){var a=r.reservedDataStore.debugMaterial;t.level=r.reservedDataStore.level;for(var o=0,i=n.meshes;o<i.length;o++){(h=i[o]).material===a&&(h.material=r)}return a.dispose(),r.reservedDataStore.debugTexture=null,r.reservedDataStore.debugMaterial=null,void this.setState({isDebugSelected:!1})}var l=r,s=!1;r.reservedDataStore&&r.reservedDataStore.debugTexture&&(l=r.reservedDataStore.debugMaterial,s=!0);var p=new u.StandardMaterial("debugMaterial",n);p.disableLighting=!0,p.sideOrientation=r.sideOrientation,p.emissiveTexture=t,p.forceDepthWrite=!0,p.reservedDataStore={hidden:!0};for(var c=0,d=n.meshes;c<d.length;c++){var h;(h=d[c]).material===l&&(h.material=p)}r.reservedDataStore||(r.reservedDataStore={}),r.reservedDataStore.debugTexture=t,r.reservedDataStore.debugMaterial=p,r.reservedDataStore.level=t.level,t.level=1,this.props.onDebugSelectionChangeObservable&&this.props.onDebugSelectionChangeObservable.notifyObservers(this),s&&l.dispose(),this.setState({isDebugSelected:!0})}},t.prototype.onLink=function(){if(this.props.onSelectionChangedObservable){var e=this.props.texture;this.props.onSelectionChangedObservable.notifyObservers(e)}},t.prototype.updateTexture=function(e){var t=this,r=this.props.material;u.Tools.ReadFile(e,(function(e){var n=new Blob([e],{type:"octet/stream"}),a=URL.createObjectURL(n),o=new u.Texture(a,r.getScene(),!1,!1);t.props.propertyName?r[t.props.propertyName]=o:t.props.onTextureCreated&&t.props.onTextureCreated(o),t.forceUpdate()}),void 0,!0)},t.prototype.removeTexture=function(){var e=this.props.material;this.props.propertyName?e[this.props.propertyName]=null:this.props.onTextureRemoved&&this.props.onTextureRemoved(),this.forceUpdate()},t.prototype.render=function(){var e=this,t=this.props.texture;return t?s.createElement("div",{className:"textureLinkLine"},!t.isCube&&this.props.material&&s.createElement(s.Fragment,null,s.createElement("div",{className:this.state.isDebugSelected?"debug selected":"debug"},s.createElement("span",{className:"actionIcon",onClick:function(){return e.debugTexture()},title:"Render as main texture"},s.createElement(w,{icon:ye})),s.createElement("span",{className:"actionIcon",onClick:function(){return e.removeTexture()},title:"Remove texture"},s.createElement(w,{icon:me})))),s.createElement(Ee,{label:this.props.label,value:t.name,onLink:function(){return e.onLink()}})):this.props.propertyName||this.props.onTextureCreated?s.createElement(qe,{label:"Add "+this.props.label+" texture",onClick:function(t){return e.updateTexture(t)},accept:".jpg, .png, .tga, .dds, .env"}):null},t}(s.Component),Je=function(e){function t(t){var r=e.call(this,t)||this;return r._onDebugSelectionChangeObservable=new u.Observable,r}return a(t,e),t.prototype.renderTextures=function(){var e=this.props.material,t=this._onDebugSelectionChangeObservable;return s.createElement(Oe,{globalState:this.props.globalState,title:"TEXTURES"},s.createElement($e,{label:"Diffuse",texture:e.diffuseTexture,propertyName:"diffuseTexture",material:e,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:t}),s.createElement($e,{label:"Specular",texture:e.specularTexture,propertyName:"specularTexture",material:e,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:t}),s.createElement($e,{label:"Reflection",texture:e.reflectionTexture,propertyName:"reflectionTexture",material:e,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:t}),s.createElement($e,{label:"Refraction",texture:e.refractionTexture,propertyName:"refractionTexture",material:e,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:t}),s.createElement($e,{label:"Emissive",texture:e.emissiveTexture,propertyName:"emissiveTexture",material:e,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:t}),s.createElement($e,{label:"Bump",texture:e.bumpTexture,propertyName:"bumpTexture",material:e,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:t}),s.createElement($e,{label:"Opacity",texture:e.opacityTexture,propertyName:"opacityTexture",material:e,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:t}),s.createElement($e,{label:"Ambient",texture:e.ambientTexture,propertyName:"ambientTexture",material:e,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:t}),s.createElement($e,{label:"Lightmap",texture:e.lightmapTexture,propertyName:"lightmapTexture",material:e,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:t}),s.createElement($e,{label:"Detailmap",texture:e.detailMap.texture,material:e,onTextureCreated:function(t){return e.detailMap.texture=t},onTextureRemoved:function(){return e.detailMap.texture=null},onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:t}),s.createElement(we,{label:"Use lightmap as shadowmap",target:e,propertyName:"useLightmapAsShadowmap",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Use detailmap",target:e.detailMap,propertyName:"isEnabled",onPropertyChangedObservable:this.props.onPropertyChangedObservable}))},t.prototype.render=function(){var e=this.props.material;return s.createElement("div",{className:"pane"},s.createElement(Xe,{globalState:this.props.globalState,lockObject:this.props.lockObject,material:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),this.renderTextures(),s.createElement(Oe,{globalState:this.props.globalState,title:"LIGHTING & COLORS"},s.createElement(Ue,{label:"Diffuse",target:e,propertyName:"diffuseColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Ue,{label:"Specular",target:e,propertyName:"specularColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Specular power",target:e,propertyName:"specularPower",minimum:0,maximum:128,step:.1,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Ue,{label:"Emissive",target:e,propertyName:"emissiveColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Ue,{label:"Ambient",target:e,propertyName:"ambientColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Use specular over alpha",target:e,propertyName:"useSpecularOverAlpha",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),s.createElement(Oe,{globalState:this.props.globalState,title:"LEVELS",closed:!0},e.diffuseTexture&&s.createElement(Re,{label:"Diffuse level",target:e.diffuseTexture,propertyName:"level",minimum:0,maximum:2,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),e.specularTexture&&s.createElement(Re,{label:"Specular level",target:e.specularTexture,propertyName:"level",minimum:0,maximum:2,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),e.reflectionTexture&&s.createElement(Re,{label:"Reflection level",target:e.reflectionTexture,propertyName:"level",minimum:0,maximum:2,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),e.refractionTexture&&s.createElement(Re,{label:"Refraction level",target:e.refractionTexture,propertyName:"level",minimum:0,maximum:2,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),e.emissiveTexture&&s.createElement(Re,{label:"Emissive level",target:e.emissiveTexture,propertyName:"level",minimum:0,maximum:2,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),e.bumpTexture&&s.createElement(Re,{label:"Bump level",target:e.bumpTexture,propertyName:"level",minimum:0,maximum:2,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),e.opacityTexture&&s.createElement(Re,{label:"Opacity level",target:e.opacityTexture,propertyName:"level",minimum:0,maximum:2,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),e.ambientTexture&&s.createElement(Re,{label:"Ambient level",target:e.ambientTexture,propertyName:"level",minimum:0,maximum:2,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),e.lightmapTexture&&s.createElement(Re,{label:"Lightmap level",target:e.lightmapTexture,propertyName:"level",minimum:0,maximum:2,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),e.detailMap.isEnabled&&s.createElement(s.Fragment,null,s.createElement(Re,{label:"Detailmap diffuse",target:e.detailMap,propertyName:"diffuseBlendLevel",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Detailmap bump",target:e.detailMap,propertyName:"bumpLevel",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}))),s.createElement(Oe,{globalState:this.props.globalState,title:"NORMAL MAP",closed:!0},s.createElement(we,{label:"Invert X axis",target:e,propertyName:"invertNormalMapX",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Invert Y axis",target:e,propertyName:"invertNormalMapY",onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(s.Component),et="\n#extension GL_EXT_shader_texture_lod : enable\n\nprecision highp float;\n\nvarying vec2 vUV;\nuniform sampler2D textureSampler;\nuniform float lod;\nuniform vec2 texSize;\nvoid main(void)\n{\n    gl_FragColor = textureLod(textureSampler,vUV,lod);\n}";u.Effect.ShadersStore.lodPixelShader=et;var tt="\nprecision highp float;\n\nvarying vec2 vUV;\nuniform samplerCube textureSampler;\nuniform float lod;\nvoid main(void)\n{\n    vec2 uv=vUV*2.0-1.0;\n    #ifdef POSITIVEX\n    gl_FragColor=textureCube(textureSampler,vec3(1.001,uv.y,uv.x),lod);\n    #endif\n    #ifdef NEGATIVEX\n    gl_FragColor=textureCube(textureSampler,vec3(-1.001,uv.y,uv.x),lod);\n    #endif\n    #ifdef POSITIVEY\n    gl_FragColor=textureCube(textureSampler,vec3(uv.y,1.001,uv.x),lod);\n    #endif\n    #ifdef NEGATIVEY\n    gl_FragColor=textureCube(textureSampler,vec3(uv.y,-1.001,uv.x),lod);\n    #endif\n    #ifdef POSITIVEZ\n    gl_FragColor=textureCube(textureSampler,vec3(uv,1.001),lod);\n    #endif\n    #ifdef NEGATIVEZ\n    gl_FragColor=textureCube(textureSampler,vec3(uv,-1.001),lod);\n    #endif\n}";u.Effect.ShadersStore.lodCubePixelShader=tt;var rt=function(){function e(){}return e._ProcessAsync=function(e,t,r,n,a,o,s,p,c){return i(this,void 0,void 0,(function(){var i,d,h,b,m,g,f,v,y,C,E,O,S,x,P,w,k,N,T,_,M,L=this;return l(this,(function(l){switch(l.label){case 0:return i=e.getScene(),d=i.getEngine(),e.isCube?(b=["#define POSITIVEX","#define NEGATIVEX","#define POSITIVEY","#define NEGATIVEY","#define POSITIVEZ","#define NEGATIVEZ"],h=new u.PostProcess("lodCube","lodCube",["lod"],null,1,null,u.Texture.NEAREST_NEAREST_MIPNEAREST,d,!1,b[n])):h=new u.PostProcess("lod","lod",["lod"],null,1,null,u.Texture.NEAREST_NEAREST_MIPNEAREST,d),h.getEffect().isReady()?(s&&(s.blockMutationUpdates=!0),m=new u.RenderTargetTexture("temp",{width:t,height:r},i,!1),h.onApply=function(t){t.setTexture("textureSampler",e),t.setFloat("lod",o)},g=m.getInternalTexture(),f=e.getInternalTexture(),g&&f?(v=f.samplingMode,e.updateSamplingMode(u.Texture.NEAREST_NEAREST_MIPNEAREST),i.postProcessManager.directRender([h],g),e.updateSamplingMode(v),y=4*t,C=r/2,[4,d.readPixels(0,0,t,r)]):[3,2]):(h.dispose(),setTimeout((function(){L._ProcessAsync(e,t,r,n,a,o,s,p,c)}),250),[2]);case 1:if(E=l.sent(),O=new Uint8Array(E.buffer,0,E.byteLength),!(a.R&&a.G&&a.B&&a.A))for(k=0;k<t*r*4;k+=4)!a.A||a.R||a.G||a.B?(S=O[k],x=O[k+1],P=O[k+2],w=O[k+3],a.A||(w=255),a.R||(S=a.G&&!a.B?x:a.B&&!a.G?P:0),a.G||(x=a.R&&!a.B?S:a.B&&!a.R?P:0),a.B||(P=a.R&&!a.G?S:a.G&&!a.R?x:0),O[k]=S,O[k+1]=x,O[k+2]=P,O[k+3]=w):(O[k]=O[k+3],O[k+1]=O[k+3],O[k+2]=O[k+3],O[k+3]=255);if(e.invertY||e.isCube)for(k=0;k<C;k++)for(N=0;N<y;N++)_=N+(r-k-1)*y,M=O[T=N+k*y],O[T]=O[_],O[_]=M;return p(O),d.unBindFramebuffer(g),[3,3];case 2:c(),l.label=3;case 3:return m.dispose(),h.dispose(),s&&(s.blockMutationUpdates=!1),[2]}}))}))},e.GetTextureDataAsync=function(e,t,r,n,a,o,i){var l=this;return void 0===i&&(i=0),new Promise((function(s,p){e.isReady()||!e._texture?l._ProcessAsync(e,t,r,n,a,i,o||null,s,p):e._texture.onLoadedObservable.addOnce((function(){l._ProcessAsync(e,t,r,n,a,i,o||null,s,p)}))}))},e}(),nt=function(e){function t(r){var n=e.call(this,r)||this;return n.state={channels:t.TextureChannelStates.ALL,face:0},n.canvasRef=s.createRef(),n}return a(t,e),t.prototype.shouldComponentUpdate=function(e,t){return e.texture!==this.props.texture||t.channels!==this.state.channels||t.face!==this.state.face},t.prototype.componentDidMount=function(){this.updatePreview()},t.prototype.componentDidUpdate=function(){this.updatePreview()},t.prototype.updatePreview=function(){return i(this,void 0,void 0,(function(){var e,t,r,n,a,o,i,s,p;return l(this,(function(l){switch(l.label){case 0:return e=this.canvasRef.current,t=this.props.texture,r=t.getSize(),n=r.width/r.height,a=this.props.width,o=a/n|1,[4,rt.GetTextureDataAsync(t,a,o,this.state.face,this.state.channels,this.props.globalState)];case 1:return i=l.sent(),e.width=a,e.height=o,(s=e.getContext("2d"))&&(p=s.createImageData(a,o),p.data.set(i),s.putImageData(p,0,0)),e.style.height=o+"px",[2]}}))}))},t.prototype.render=function(){var e=this,r=this.props.texture;return s.createElement(s.Fragment,null,s.createElement("div",{className:"textureLine"},!this.props.hideChannelSelect&&r.isCube&&s.createElement("div",{className:"control3D"},s.createElement("button",{className:0===this.state.face?"px command selected":"px command",onClick:function(){return e.setState({face:0})}},"+X"),s.createElement("button",{className:1===this.state.face?"nx command selected":"nx command",onClick:function(){return e.setState({face:1})}},"-X"),s.createElement("button",{className:2===this.state.face?"py command selected":"py command",onClick:function(){return e.setState({face:2})}},"+Y"),s.createElement("button",{className:3===this.state.face?"ny command selected":"ny command",onClick:function(){return e.setState({face:3})}},"-Y"),s.createElement("button",{className:4===this.state.face?"pz command selected":"pz command",onClick:function(){return e.setState({face:4})}},"+Z"),s.createElement("button",{className:5===this.state.face?"nz command selected":"nz command",onClick:function(){return e.setState({face:5})}},"-Z")),!this.props.hideChannelSelect&&!r.isCube&&s.createElement("div",{className:"control"},s.createElement("button",{className:this.state.channels===t.TextureChannelStates.R?"red command selected":"red command",onClick:function(){return e.setState({channels:t.TextureChannelStates.R})}},"R"),s.createElement("button",{className:this.state.channels===t.TextureChannelStates.G?"green command selected":"green command",onClick:function(){return e.setState({channels:t.TextureChannelStates.G})}},"G"),s.createElement("button",{className:this.state.channels===t.TextureChannelStates.B?"blue command selected":"blue command",onClick:function(){return e.setState({channels:t.TextureChannelStates.B})}},"B"),s.createElement("button",{className:this.state.channels===t.TextureChannelStates.A?"alpha command selected":"alpha command",onClick:function(){return e.setState({channels:t.TextureChannelStates.A})}},"A"),s.createElement("button",{className:this.state.channels===t.TextureChannelStates.ALL?"all command selected":"all command",onClick:function(){return e.setState({channels:t.TextureChannelStates.ALL})}},"ALL")),s.createElement("canvas",{ref:this.canvasRef,className:"preview"})),r.isRenderTarget&&s.createElement(Ze,{label:"Refresh",onClick:function(){e.updatePreview()}}))},t.TextureChannelStates={R:{R:!0,G:!1,B:!1,A:!1},G:{R:!1,G:!0,B:!1,A:!1},B:{R:!1,G:!1,B:!0,A:!1},A:{R:!1,G:!1,B:!1,A:!0},ALL:{R:!0,G:!0,B:!0,A:!0}},t}(s.Component),at=r(3),ot=function(e){function t(t){var r=e.call(this,t)||this;return r._container=document.createElement("div"),r._container.id=r.props.id,r._window,r.state={isComponentMounted:!1,blockedByBrowser:!1},r}return a(t,e),t.prototype.componentDidMount=function(){this.openPopup(),this.setState({isComponentMounted:!0})},t.prototype.openPopup=function(){var e=this,t=this.props,r=t.title,n=t.size,a=t.onClose,o=t.onOpen,i="window_"+r;this._container=Aa._CreatePopup(r,i,n.width,n.height,!0),this._container&&(this._curveEditorHost=this._container.ownerDocument.createElement("div"),this._curveEditorHost.id="curve-editor-host",this._curveEditorHost.style.width="auto",this._container.appendChild(this._curveEditorHost)),this._window=Aa[i],this._window?(o(this._window),this._window.addEventListener("beforeunload",(function(){return e._window&&a(e._window)}))):this._window||this.setState({blockedByBrowser:!0},(function(){e.state.blockedByBrowser&&console.warn("Popup window couldn't be created")}))},t.prototype.componentWillUnmount=function(){this._window&&this._window.close()},t.prototype.getWindow=function(){return this._window},t.prototype.render=function(){return this.state.isComponentMounted&&null!==this._container?c.createPortal(this.props.children,this._curveEditorHost):null},t}(s.Component),it={vertexSource:"\n            precision highp float;\n\n            attribute vec3 position;\n            attribute vec2 uv;\n\n            uniform mat4 worldViewProjection;\n\n            varying vec2 vUV;\n\n            void main(void) {\n                gl_Position = worldViewProjection * vec4(position, 1.0);\n                vUV = uv;\n            }\n        ",fragmentSource:"\n            precision highp float;\n    \n            uniform sampler2D textureSampler;\n    \n            uniform bool r;\n            uniform bool g;\n            uniform bool b;\n            uniform bool a;\n\n            uniform int x1;\n            uniform int y1;\n            uniform int x2;\n            uniform int y2;\n            uniform int w;\n            uniform int h;\n\n            uniform int time;\n            uniform bool showGrid;\n    \n            varying vec2 vUV;\n\n            float scl = 200.0;\n            float speed = 10.0 / 1000.0;\n            float smoothing = 0.2;\n    \n            void main(void) {\n                vec2 pos2 = vec2(gl_FragCoord.x, gl_FragCoord.y);\n                vec2 pos = floor(pos2 * 0.05);\n                float pattern = mod(pos.x + pos.y, 2.0); \n                if (pattern == 0.0) {\n                    pattern = 0.7;\n                }\n                vec4 bg = vec4(pattern, pattern, pattern, 1.0);\n                vec4 col = texture(textureSampler, vUV);\n                if (!r && !g && !b) {\n                    if (a) {\n                        col = vec4(col.a, col.a, col.a, 1.0);\n                    } else {\n                        col = vec4(0.0,0.0,0.0,0.0);\n                    }\n                } else {\n                    if (!r) {\n                        col.r = 0.0;\n                        if (!b) {\n                            col.r = col.g;\n                        }\n                        else if (!g) {\n                            col.r = col.b;\n                        }\n                    }\n                    if (!g) {\n                        col.g = 0.0;\n                        if (!b) {\n                            col.g = col.r;\n                        }\n                        else if (!r) {\n                            col.g = col.b;\n                        }\n                    }\n                    if (!b) {\n                        col.b = 0.0;\n                        if (!r) {\n                            col.b = col.g;\n                        } else if (!g) {\n                            col.b = col.r;\n                        }\n                    }\n                    if (!a) {\n                        col.a = 1.0;\n                    }\n                }\n                gl_FragColor = col * (col.a) + bg * (1.0 - col.a);\n                float wF = float(w);\n                float hF = float(h);\n                int xPixel = int(floor(vUV.x * wF));\n                int yPixel = int(floor((1.0 - vUV.y) * hF));\n                int xDis = min(abs(xPixel - x1), abs(xPixel - x2));\n                int yDis = min(abs(yPixel - y1), abs(yPixel - y2));\n                if (showGrid) {\n                    vec2 frac = fract(vUV * vec2(wF,hF));\n                    float thickness = 0.1;\n                    if (abs(frac.x) < thickness || abs (frac.y) < thickness) {\n                        gl_FragColor = vec4(0.75,0.75,0.75,1.0);\n                    }\n                }\n                if (xPixel >= x1 && yPixel >= y1 && xPixel <= x2 && yPixel <= y2) {\n                    if (xDis <= 4 || yDis <= 4) {\n                        float c = sin(vUV.x * scl + vUV.y * scl + float(time) * speed);\n                        c = smoothstep(-smoothing,smoothing,c);\n                        float val = 1.0 - c;\n                        gl_FragColor = vec4(val, val, val, 1.0) * 0.7 + gl_FragColor * 0.3;\n                    }\n                }\n            }"},lt={attributes:["position","uv"],uniforms:["worldViewProjection","textureSampler","r","g","b","a","x1","y1","x2","y2","w","h","time","showGrid"]},st=function(){function e(e,t,r,n,a,o,i,l,s,p){var c,d=this;this._isPanning=!1,this._channels=[],this._face=0,this._mipLevel=0,this._originalInternalTexture=null,this._didEdit=!1,this._keyMap={},this.ZOOM_MOUSE_SPEED=.001,this.ZOOM_KEYBOARD_SPEED=.4,this.ZOOM_IN_KEY="+",this.ZOOM_OUT_KEY="-",this.PAN_SPEED=.003,this.PAN_MOUSE_BUTTON=1,this.MIN_SCALE=.01,this.GRID_SCALE=.047,this.MAX_SCALE=10,this.SELECT_ALL_KEY="KeyA",this.SAVE_KEY="KeyS",this.RESET_KEY="KeyR",this.DESELECT_KEY="Escape",this.PUSH_FREQUENCY=32,this._editing3D=!1,this._canPush=!0,this._shouldPush=!1,this._window=t,this._UICanvas=r,this._2DCanvas=n,this._3DCanvas=a,this._paintCanvas=document.createElement("canvas"),this._setPixelData=o,this._metadata=i,this._onUpdate=l,this._setMetadata=s,this._setMipLevel=p,this._size=e.getSize(),this._originalTexture=e,this._originalInternalTexture=this._originalTexture._texture,this._engine=new u.Engine(this._UICanvas,!0),this._scene=new u.Scene(this._engine,{virtual:!0}),this._scene.clearColor=new u.Color4(.11,.11,.11,1),this._camera=new u.FreeCamera("camera",new u.Vector3(0,0,-1),this._scene),this._camera.mode=u.Camera.ORTHOGRAPHIC_CAMERA,this._cameraPos=new u.Vector2,this._channelsTexture=new u.HtmlElementTexture("ct",this._2DCanvas,{engine:this._engine,scene:null,samplingMode:u.Texture.NEAREST_SAMPLINGMODE,generateMipMaps:!0}),this._3DEngine=new u.Engine(this._3DCanvas),this._3DScene=new u.Scene(this._3DEngine,{virtual:!0}),this._3DScene.clearColor=new u.Color4(0,0,0,0),this._3DCanvasTexture=new u.HtmlElementTexture("canvas",this._2DCanvas,{engine:this._3DEngine,scene:this._3DScene}),this._3DCanvasTexture.hasAlpha=!0;var h=new u.FreeCamera("camera",new u.Vector3(0,0,-1),this._3DScene);h.mode=u.Camera.ORTHOGRAPHIC_CAMERA,c=[-.5,-.5,.5,.5],h.orthoBottom=c[0],h.orthoLeft=c[1],h.orthoTop=c[2],h.orthoRight=c[3],this._3DPlane=u.PlaneBuilder.CreatePlane("texture",{width:1,height:1},this._3DScene),this._3DPlane.hasVertexAlpha=!0;var b=new u.StandardMaterial("material",this._3DScene);b.diffuseTexture=this._3DCanvasTexture,b.useAlphaFromDiffuseTexture=!0,b.disableLighting=!0,b.emissiveColor=u.Color3.White(),this._3DPlane.material=b,this._planeMaterial=new u.ShaderMaterial("canvasShader",this._scene,it,lt),this.grabOriginalTexture(),this._planeMaterial.setTexture("textureSampler",this._channelsTexture),this._planeMaterial.setFloat("r",1),this._planeMaterial.setFloat("g",1),this._planeMaterial.setFloat("b",1),this._planeMaterial.setFloat("a",1),this._planeMaterial.setInt("x1",-1),this._planeMaterial.setInt("y1",-1),this._planeMaterial.setInt("x2",-1),this._planeMaterial.setInt("y2",-1),this._planeMaterial.setInt("w",this._size.width),this._planeMaterial.setInt("h",this._size.height),this._planeMaterial.setInt("time",0),this._planeMaterial.setFloat("showGrid",0),this._plane.material=this._planeMaterial,this._window.addEventListener("keydown",(function(e){d._keyMap[e.code]=!0,e.code===d.SELECT_ALL_KEY&&e.ctrlKey&&(d._setMetadata({select:{x1:0,y1:0,x2:d._size.width,y2:d._size.height}}),e.preventDefault()),e.code===d.SAVE_KEY&&e.ctrlKey&&(d.saveTexture(),e.preventDefault()),e.code===d.RESET_KEY&&e.ctrlKey&&(d.reset(),e.preventDefault()),e.code===d.DESELECT_KEY&&d._setMetadata({select:{x1:-1,y1:-1,x2:-1,y2:-1}})})),this._window.addEventListener("keyup",(function(e){d._keyMap[e.code]=!1})),this._engine.runRenderLoop((function(){d._engine.resize(),d._scene.render(),d._planeMaterial.setInt("time",(new Date).getTime())})),this._scale=1.5/Math.max(this._size.width,this._size.height),this._isPanning=!1,this._scene.onBeforeRenderObservable.add((function(){var e,t;d._scale=Math.min(Math.max(d._scale,d.MIN_SCALE/Math.log2(Math.min(d._size.width,d._size.height))),d.MAX_SCALE),d._scale>d.GRID_SCALE?d._planeMaterial.setFloat("showGrid",1):d._planeMaterial.setFloat("showGrid",0);var r=(null===(e=d._UICanvas)||void 0===e?void 0:e.width)/(null===(t=d._UICanvas)||void 0===t?void 0:t.height),n=d._cameraPos,a=n.x,o=n.y;d._camera.orthoBottom=o-1/d._scale,d._camera.orthoTop=o+1/d._scale,d._camera.orthoLeft=a-r/d._scale,d._camera.orthoRight=a+r/d._scale})),this._scene.onPointerObservable.add((function(e){var t;switch(e.type){case u.PointerEventTypes.POINTERWHEEL:var r=e.event;d._scale-=r.deltaY*d.ZOOM_MOUSE_SPEED*d._scale;break;case u.PointerEventTypes.POINTERDOWN:e.event.button===d.PAN_MOUSE_BUTTON&&(d._isPanning=!0,d._mouseX=e.event.x,d._mouseY=e.event.y,e.event.preventDefault());break;case u.PointerEventTypes.POINTERUP:e.event.button===d.PAN_MOUSE_BUTTON&&(d._isPanning=!1);break;case u.PointerEventTypes.POINTERMOVE:if(d._isPanning&&(d._cameraPos.x-=(e.event.x-d._mouseX)*d.PAN_SPEED/d._scale,d._cameraPos.y+=(e.event.y-d._mouseY)*d.PAN_SPEED/d._scale,d._mouseX=e.event.x,d._mouseY=e.event.y),null===(t=e.pickInfo)||void 0===t?void 0:t.hit){var n=d.getMouseCoordinates(e),a=4*(n.x+n.y*d._size.width);d._setPixelData({x:n.x,y:n.y,r:d._imageData[a],g:d._imageData[a+1],b:d._imageData[a+2],a:d._imageData[a+3]})}else d._setPixelData({})}})),this._scene.onKeyboardObservable.add((function(e){switch(e.type){case u.KeyboardEventTypes.KEYDOWN:switch(d._keyMap[e.event.key]=!0,e.event.key){case d.ZOOM_IN_KEY:d._scale+=d.ZOOM_KEYBOARD_SPEED*d._scale;break;case d.ZOOM_OUT_KEY:d._scale-=d.ZOOM_KEYBOARD_SPEED*d._scale}break;case u.KeyboardEventTypes.KEYUP:d._keyMap[e.event.key]=!1}}))}return e.prototype.updateTexture=function(){var e,t;return i(this,void 0,void 0,(function(){var r;return l(this,(function(n){switch(n.label){case 0:return 0===this._mipLevel?[3,2]:[4,this._setMipLevel(0)];case 1:n.sent(),n.label=2;case 2:return this._didEdit=!0,r=this._editing3D?this._3DCanvas:this._2DCanvas,this._editing3D&&(this._3DCanvasTexture.update(),this._3DScene.render()),this._originalTexture.isCube||(this._target?this._target.element=r:this._target=new u.HtmlElementTexture("editor",r,{engine:null===(e=this._originalTexture.getScene())||void 0===e?void 0:e.getEngine(),scene:null,samplingMode:this._originalTexture.samplingMode,generateMipMaps:null===(t=this._originalInternalTexture)||void 0===t?void 0:t.generateMipMaps}),this.pushTexture()),this._originalTexture._texture=this._target._texture,this._channelsTexture.element=r,this.updateDisplay(),this._onUpdate(),[2]}}))}))},e.prototype.pushTexture=function(){var e;return i(this,void 0,void 0,(function(){var t,r=this;return l(this,(function(n){switch(n.label){case 0:return this._canPush?(this._target.update(this._originalTexture.invertY),null===(e=this._target._texture)||void 0===e||e.updateSize(this._size.width,this._size.height),this._editing3D?[4,this._3DEngine.readPixels(0,0,this._size.width,this._size.height)]:[3,2]):[3,4];case 1:return t=n.sent(),this._imageData=new Uint8Array(t.buffer,0,t.byteLength),[3,3];case 2:this._imageData=this._2DCanvas.getContext("2d").getImageData(0,0,this._size.width,this._size.height).data,n.label=3;case 3:return this._canPush=!1,this._shouldPush=!1,setTimeout((function(){r._canPush=!0,r._shouldPush&&r.pushTexture()}),this.PUSH_FREQUENCY),[3,5];case 4:this._shouldPush=!0,n.label=5;case 5:return[2]}}))}))},e.prototype.startPainting=function(){return i(this,void 0,void 0,(function(){var e,t,r,n,a;return l(this,(function(o){switch(o.label){case 0:return 0==this._mipLevel?[3,2]:[4,this._setMipLevel(0)];case 1:o.sent(),o.label=2;case 2:return e=0,t=0,r=this._size.width,n=this._size.height,-1!=this._metadata.select.x1&&(e=this._metadata.select.x1,t=this._metadata.select.y1,r=this._metadata.select.x2-this._metadata.select.x1,n=this._metadata.select.y2-this._metadata.select.y1),this._paintCanvas.width=r,this._paintCanvas.height=n,(a=this._paintCanvas.getContext("2d")).imageSmoothingEnabled=!1,a.drawImage(this._2DCanvas,e,t,r,n,0,0,r,n),[2,a]}}))}))},e.prototype.updatePainting=function(){var e=0,t=0,r=this._size.width,n=this._size.height;-1!=this._metadata.select.x1&&(e=this._metadata.select.x1,t=this._metadata.select.y1,r=this._metadata.select.x2-this._metadata.select.x1,n=this._metadata.select.y2-this._metadata.select.y1);var a,o=!0;this._channels.forEach((function(e){e.editable||(o=!1)})),o||(a=this._2DCanvas.getContext("2d").getImageData(e,t,r,n).data);var i=this._paintCanvas.getContext("2d"),l=this.canvas2D.getContext("2d");if(l.globalAlpha=1,l.globalCompositeOperation="destination-out",l.fillStyle="white",l.fillRect(e,t,r,n),l.imageSmoothingEnabled=!1,o)l.globalCompositeOperation="source-over",l.globalAlpha=1,l.drawImage(i.canvas,e,t);else{var s=i.getImageData(0,0,r,n),p=s.data;this._channels.forEach((function(e,t){if(!e.editable)for(var o=t;o<r*n*4;o+=4)p[o]=a[o]})),l.globalCompositeOperation="source-over",l.globalAlpha=1,l.putImageData(s,e,t)}this.updateTexture()},e.prototype.stopPainting=function(){this._paintCanvas.getContext("2d").clearRect(0,0,this._paintCanvas.width,this._paintCanvas.height)},e.prototype.updateDisplay=function(){this._3DScene.render(),this._channelsTexture.update(!0)},Object.defineProperty(e.prototype,"channels",{set:function(e){var t=this,r=!1;e.length!==this._channels.length?r=!0:e.forEach((function(e,n){e.visible!==t._channels[n].visible&&(r=!0,t._planeMaterial.setFloat(e.id.toLowerCase(),e.visible?1:0))})),this._channels=e,r&&this.updateDisplay()},enumerable:!1,configurable:!0}),e.prototype.paintPixelsOnCanvas=function(e,t){var r=t.getContext("2d"),n=r.createImageData(t.width,t.height);n.data.set(e),r.putImageData(n,0,0)},e.prototype.grabOriginalTexture=function(){return i(this,void 0,void 0,(function(){var e;return l(this,(function(t){switch(t.label){case 0:return this.setSize(this._originalTexture.getSize()),[4,rt.GetTextureDataAsync(this._originalTexture,this._size.width,this._size.height,this._face,{R:!0,G:!0,B:!0,A:!0},void 0,this._mipLevel)];case 1:return e=t.sent(),this._imageData=e,this.paintPixelsOnCanvas(e,this._2DCanvas),this._3DCanvasTexture.update(),this.updateDisplay(),[2,e]}}))}))},e.prototype.getMouseCoordinates=function(e){var t;if(null===(t=e.pickInfo)||void 0===t?void 0:t.hit){var r=Math.floor(e.pickInfo.getTextureCoordinates().x*this._size.width),n=Math.floor((1-e.pickInfo.getTextureCoordinates().y)*this._size.height);return new u.Vector2(r,n)}return new u.Vector2},Object.defineProperty(e.prototype,"scene",{get:function(){return this._scene},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"canvas2D",{get:function(){return this._2DCanvas},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tool",{get:function(){return this._tool},set:function(e){var t;this._tool&&this._tool.instance.cleanup(),this._tool=e,this._tool&&(this._tool.instance.setup(),this._editing3D&&!this._tool.is3D?(this._editing3D=!1,null===(t=this._2DCanvas.getContext("2d"))||void 0===t||t.drawImage(this._3DCanvas,0,0)):!this._editing3D&&this._tool.is3D&&(this._editing3D=!0,this.updateTexture()))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"face",{set:function(e){this._face!==e&&(this._face=e,this.grabOriginalTexture(),this.updateDisplay())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mipLevel",{set:function(e){this._mipLevel!==e&&(this._mipLevel=e,this.grabOriginalTexture())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scene3D",{get:function(){return this._3DScene},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"metadata",{set:function(e){this._metadata=e;var t=e.select,r=t.x1,n=t.y1,a=t.x2,o=t.y2;this._planeMaterial.setInt("x1",r),this._planeMaterial.setInt("y1",n),this._planeMaterial.setInt("x2",a),this._planeMaterial.setInt("y2",o)},enumerable:!1,configurable:!0}),e.prototype.makePlane=function(){this._plane&&this._plane.dispose(),this._plane=u.PlaneBuilder.CreatePlane("plane",{width:this._size.width,height:this._size.height},this._scene),this._plane.enableEdgesRendering(),this._plane.edgesWidth=4,this._plane.edgesColor=new u.Color4(1,1,1,1),this._plane.enablePointerMoveEvents=!0,this._plane.material=this._planeMaterial},e.prototype.reset=function(){this._tool&&this._tool.instance.onReset&&this._tool.instance.onReset(),this._originalTexture._texture=this._originalInternalTexture,this.grabOriginalTexture(),this.makePlane(),this._didEdit=!1,this._onUpdate()},e.prototype.resize=function(e){return i(this,void 0,void 0,(function(){var t;return l(this,(function(r){switch(r.label){case 0:return[4,rt.GetTextureDataAsync(this._originalTexture,e.width,e.height,this._face,{R:!0,G:!0,B:!0,A:!0})];case 1:return t=r.sent(),this.setSize(e),this.paintPixelsOnCanvas(t,this._2DCanvas),this.updateTexture(),this._didEdit=!0,[2]}}))}))},e.prototype.setSize=function(e){var t=this._size;this._size=e,this._2DCanvas.width=this._size.width,this._2DCanvas.height=this._size.height,this._3DCanvas.width=this._size.width,this._3DCanvas.height=this._size.height,this._planeMaterial.setInt("w",this._size.width),this._planeMaterial.setInt("h",this._size.height),t.width==e.width&&t.height==e.height||(this._cameraPos.x=0,this._cameraPos.y=0,this._scale=1.5/Math.max(this._size.width,this._size.height)),this.makePlane()},e.prototype.upload=function(e){var t=this;u.Tools.ReadFile(e,(function(r){var n=new Blob([r],{type:"octet/stream"}),a=void 0;e.name.toLowerCase().indexOf(".dds")>0?a=".dds":e.name.toLowerCase().indexOf(".env")>0&&(a=".env");var o=new FileReader;o.readAsDataURL(n),o.onloadend=function(){var e=o.result;if(".dds"===a||".env"===a)t._originalTexture.updateURL(e,a,(function(){return t.grabOriginalTexture()}));else var r=new u.Texture(e,t._scene,t._originalTexture.noMipmap,!1,u.Texture.NEAREST_SAMPLINGMODE,(function(){rt.GetTextureDataAsync(r,r.getSize().width,r.getSize().height,0,{R:!0,G:!0,B:!0,A:!0}).then((function(e){return i(t,void 0,void 0,(function(){return l(this,(function(t){switch(t.label){case 0:return this._tool&&this._tool.instance.onReset&&this._tool.instance.onReset(),r.dispose(),this.setSize(r.getSize()),this.paintPixelsOnCanvas(e,this._2DCanvas),[4,this.updateTexture()];case 1:return t.sent(),this._setMipLevel(0),[2]}}))}))}))}))}}),void 0,!0)},e.prototype.saveTexture=function(){var e=this,t=this._editing3D?this._3DCanvas:this._2DCanvas;u.Tools.ToBlob(t,(function(t){u.Tools.Download(t,e._originalTexture.name)}))},e.prototype.dispose=function(){var e,t;this._didEdit&&(null===(e=this._originalInternalTexture)||void 0===e||e.dispose()),this._tool&&this._tool.instance.cleanup(),null===(t=this._paintCanvas.parentNode)||void 0===t||t.removeChild(this._paintCanvas),this._3DPlane.dispose(),this._3DCanvasTexture.dispose(),this._3DScene.dispose(),this._3DEngine.dispose(),this._plane.dispose(),this._channelsTexture.dispose(),this._planeMaterial.dispose(),this._camera.dispose(),this._scene.dispose(),this._engine.dispose()},e}(),pt=function(e){function t(t){var r=e.call(this,t)||this;return r.state={toolURL:"",addOpen:!1},r}return a(t,e),t.prototype.computeRGBAColor=function(){var e=Math.floor(255*this.props.metadata.alpha).toString(16).padStart(2,"0");return u.Color4.FromHexString(""+this.props.metadata.color+e)},t.prototype.shouldComponentUpdate=function(e){return e.tools!=this.props.tools||e.activeToolIndex!==this.props.activeToolIndex||e.metadata!=this.props.metadata||e.pickerOpen!=this.props.pickerOpen},t.prototype.render=function(){var e=this;return s.createElement("div",{id:"toolbar"},s.createElement("div",{id:"tools"},this.props.tools.map((function(t,r){return s.createElement("img",{src:"data:image/svg+xml;base64,"+t.icon,className:r===e.props.activeToolIndex?"icon button active":"icon button",alt:t.name,title:t.name,onClick:function(t){0===t.button&&e.props.changeTool(r)},key:r})}))),s.createElement("div",{id:"color",onClick:function(){e.props.pickerOpen||e.props.setPickerOpen(!0)},title:"Color",className:"icon button"+(this.props.pickerOpen?" active":"")},s.createElement("div",{id:"active-color-bg"},s.createElement("div",{id:"active-color",style:{backgroundColor:this.props.metadata.color,opacity:this.props.metadata.alpha}}))),this.props.pickerOpen&&s.createElement("div",{id:"color-picker",ref:this.props.pickerRef},s.createElement(Ge,{color:this.computeRGBAColor(),onColorChanged:function(t){var r={color:t.toHexString(!0),alpha:t.a};r.color===e.props.metadata.color&&r.alpha===e.props.metadata.alpha||e.props.setMetadata(r)}})))},t}(s.Component),ct=function(e){function t(t){var n=e.call(this,t)||this;return n._resetButton=r(29),n._uploadButton=r(30),n._saveButton=r(31),n._babylonLogo=r(32),n._resizeButton=r(33),n._mipUp=r(34),n._mipDown=r(35),n._faces=[r(36),r(37),r(38),r(39),r(40),r(41)],n.state={width:t.size.width,height:t.size.height},n}return a(t,e),t.prototype.pixelData=function(e){return s.createElement("span",{className:"pixel-data"},e.name,": ",s.createElement("span",{className:"value"},void 0!==e.data?e.data:"-"))},t.prototype.getNewDimension=function(e,t){return!isNaN(t)&&parseInt(t)>0&&Number.isInteger(parseInt(t))?parseInt(t):e},t.prototype.componentWillUpdate=function(e){e.size.width==this.props.size.width&&e.size.height==this.props.size.height||this.setState({width:e.size.width,height:e.size.height})},t.prototype.render=function(){var e=this,t=this.props,r=t.mipLevel,n=t.setMipLevel,a=t.pixelData,o=t.resizeTexture,i=t.texture,l=t.face,p=t.setFace,c=t.saveTexture,u=t.resetTexture,d=t.uploadTexture,h=Math.floor(Math.log2(Math.max(i.getSize().width,i.getSize().height))),b=i.getScene().getEngine(),m=!i.noMipmap&&b.getCaps().textureLOD;return s.createElement("div",{id:"properties"},s.createElement("div",{className:"tab",id:"logo-tab"},s.createElement("img",{className:"icon",src:this._babylonLogo})),s.createElement("div",{id:"left"},s.createElement("div",{className:"tab",id:"dimensions-tab"},s.createElement("form",{onSubmit:function(t){e.props.resizeTexture(e.state.width,e.state.height),t.preventDefault()}},s.createElement("label",{className:"dimensions"},"W: ",s.createElement("input",{type:"text",value:this.state.width,readOnly:i.isCube,onChange:function(t){return e.setState({width:e.getNewDimension(e.state.width,t.target.value)})}})),s.createElement("label",{className:"dimensions"},"H: ",s.createElement("input",{type:"text",value:this.state.height,readOnly:i.isCube,onChange:function(t){return e.setState({height:e.getNewDimension(e.state.height,t.target.value)})}})),!i.isCube&&s.createElement("img",{id:"resize",className:"icon button",title:"Resize",alt:"Resize",src:this._resizeButton,onClick:function(){return o(e.state.width,e.state.height)}}))),s.createElement("div",{className:"tab",id:"pixel-coords-tab"},s.createElement(this.pixelData,{name:"X",data:a.x}),s.createElement(this.pixelData,{name:"Y",data:a.y})),s.createElement("div",{className:"tab",id:"pixel-color-tab"},s.createElement(this.pixelData,{name:"R",data:a.r}),s.createElement(this.pixelData,{name:"G",data:a.g}),s.createElement(this.pixelData,{name:"B",data:a.b}),s.createElement(this.pixelData,{name:"A",data:a.a})),i.isCube&&s.createElement("div",{className:"tab",id:"face-tab"},this._faces.map((function(e,t){return s.createElement("img",{key:t,className:l==t?"icon face button active":"icon face button",src:e,onClick:function(){return p(t)}})}))),m&&s.createElement("div",{className:"tab",id:"mip-tab"},s.createElement("img",{title:"Mip Preview Up",className:"icon button",src:this._mipUp,onClick:function(){return r>0&&n(r-1)}}),s.createElement("img",{title:"Mip Preview Down",className:"icon button",src:this._mipDown,onClick:function(){return r<h&&n(r+1)}}))),s.createElement("div",{className:"tab",id:"right-tab"},s.createElement("img",{title:"Reset",className:"icon button",src:this._resetButton,onClick:function(){return u()}}),s.createElement("label",null,s.createElement("input",{accept:".jpg, .png, .tga, .dds, .env",type:"file",onChange:function(e){var t=e.target.files;t&&t.length&&d(t[0]),e.target.value=""}}),s.createElement("img",{title:"Upload",className:"icon button",src:this._uploadButton})),s.createElement("img",{title:"Save",className:"icon button",src:this._saveButton,onClick:function(){return c()}})))},t}(s.PureComponent),ut=r(42),dt=r(43),ht=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.render=function(){var e=this;return s.createElement("div",{id:"channels-bar"},this.props.channels.map((function(t,r){var n=t.visible?"Hide":"Show",a=t.editable?"Lock":"Unlock";return s.createElement("div",{key:t.name,className:t.editable?"channel":"channel uneditable"},s.createElement("img",{className:t.visible?"icon channel-visibility visible":"icon channel-visibility",onClick:function(){var t=e.props.channels;t[r].visible=!t[r].visible,e.props.setChannels(t)},src:t.visible?ut:dt,title:n+" "+t.name}),s.createElement("img",{className:"icon channel-name",onClick:function(){var t=e.props.channels;t[r].editable=!t[r].editable,e.props.setChannels(t)},src:t.icon,title:a+" "+t.name}))})))},t}(s.PureComponent),bt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.render=function(){var e=Math.pow(2,this.props.mipLevel),t=Math.ceil(this.props.texture.getSize().width/e),r=Math.ceil(this.props.texture.getSize().height/e);return s.createElement("div",{id:"bottom-bar"},s.createElement("span",{id:"file-url"},this.props.texture.name),!this.props.texture.noMipmap&&s.createElement("span",{id:"mip-level"},"MIP Preview: ",this.props.mipLevel," ",t,"x",r))},t}(s.PureComponent),mt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.render=function(){return s.createElement("div",null,s.createElement("canvas",{id:"canvas-ui",ref:this.props.canvasUI,tabIndex:1}),s.createElement("canvas",{id:"canvas-2D",ref:this.props.canvas2D,width:this.props.texture.getSize().width,height:this.props.texture.getSize().height,hidden:!0}),s.createElement("canvas",{id:"canvas-3D",ref:this.props.canvas3D,width:this.props.texture.getSize().width,height:this.props.texture.getSize().height,hidden:!0}))},t}(s.Component),gt={name:"Paintbrush",type:function(){function e(e){this.width=15,this.mousePos=null,this.getParameters=e}return e.prototype.paint=function(e){var t=this.getParameters(),r=t.getMouseCoordinates,n=t.metadata,a=t.updatePainting,o=r(e),i=o.x,l=o.y;-1!=n.select.x1&&(i-=n.select.x1,l-=n.select.y1);var s,p,c=this.ctx;if(p=new u.Vector2,null==this.mousePos)this.mousePos=new u.Vector2(i,l),s=1;else{var d=this.width/4,h=new u.Vector2(i-this.mousePos.x,l-this.mousePos.y);s=Math.ceil(h.length()/d);var b=h.length()/s;p=h.normalize().multiplyByFloats(b,b)}for(var m=this.mousePos.clone(),g=0;g<s;g++)c.globalAlpha=1,c.globalCompositeOperation="destination-out",c.drawImage(this.circleCanvas,Math.ceil(m.x-this.width/2),Math.ceil(m.y-this.width/2)),c.globalAlpha=n.alpha,c.globalCompositeOperation="source-over",c.drawImage(this.circleCanvas,Math.ceil(m.x-this.width/2),Math.ceil(m.y-this.width/2)),m.addInPlace(p);a(),this.mousePos=new u.Vector2(i,l)},e.prototype.setBrushWidth=function(e){this.width=e},e.prototype.setup=function(){var e=this,t=this.getParameters().scene;this.pointerObserver=t.onPointerObservable.add((function(t){return i(e,void 0,void 0,(function(){var e,r,n,a,o,i,s,p,c,d,h,b,m,g,f,v,y,C;return l(this,(function(l){switch(l.label){case 0:if(e=this.getParameters(),r=e.startPainting,n=e.stopPainting,a=e.metadata,!(null===(y=t.pickInfo)||void 0===y?void 0:y.hit))return[3,3];if(t.type!==u.PointerEventTypes.POINTERDOWN)return[3,2];if(0!=t.event.button)return[3,2];for(this.isPainting=!0,(o=document.createElement("canvas")).width=this.width,o.height=this.width,(i=o.getContext("2d")).imageSmoothingEnabled=!1,s=new Array(4*this.width*this.width),p=this.width*this.width/4,c=u.Color3.FromHexString(a.color),d=Math.floor(255*c.r),h=Math.floor(255*c.g),b=Math.floor(255*c.b),m=0,g=-Math.floor(this.width/2);g<Math.ceil(this.width/2);g++)for(f=-Math.floor(this.width/2);f<Math.ceil(this.width/2);f++)s[m++]=d,s[m++]=h,s[m++]=b,s[m++]=f*f+g*g<=p?255:0;return i.putImageData(new ImageData(Uint8ClampedArray.from(s),this.width,this.width),0,0),this.circleCanvas=o,v=this,[4,r()];case 1:v.ctx=l.sent(),this.paint(t),l.label=2;case 2:t.type===u.PointerEventTypes.POINTERMOVE&&this.isPainting&&this.paint(t),l.label=3;case 3:return t.type===u.PointerEventTypes.POINTERUP&&0==t.event.button&&(this.isPainting=!1,null===(C=this.circleCanvas.parentNode)||void 0===C||C.removeChild(this.circleCanvas),n(),this.mousePos=null),[2]}}))}))})),this.isPainting=!1},e.prototype.cleanup=function(){this.isPainting=!1,this.pointerObserver&&this.getParameters().scene.onPointerObservable.remove(this.pointerObserver)},e}(),settingsComponent:function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.render=function(){var e=this,t=this.props.instance;return s.createElement("div",null,s.createElement("label",{className:"tool-slider-input"},s.createElement("span",null,"Size: ",t.width),s.createElement("input",{id:"contrast-slider",type:"range",min:1,max:100,value:t.width,onChange:function(r){t.setBrushWidth(r.target.valueAsNumber),e.forceUpdate()}})))},t}(s.Component),icon:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cmVjdCB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHN0eWxlPSJmaWxsOm5vbmUiLz48cGF0aCBkPSJNMjksMTFhMy41NywzLjU3LDAsMCwxLDAsNS4wNkwxNywyOGEyLjM0LDIuMzQsMCwwLDEtMSwuNThMMTAuOTEsMzBhLjc1Ljc1LDAsMCwxLS45Mi0uOTJMMTEuMzgsMjRBMi4zNCwyLjM0LDAsMCwxLDEyLDIzbDEyLTEyQTMuNTcsMy41NywwLDAsMSwyOSwxMVpNMjMsMTQuMSwxMywyNGEuNjkuNjksMCwwLDAtLjE5LjMzbC0xLjA1LDMuODUsMy44NS0xQS42OS42OSwwLDAsMCwxNiwyN0wyNS45LDE3Wm0yLTItMSwxTDI3LDE2bDEtMUEyLjA4LDIuMDgsMCwxLDAsMjUsMTIuMDdaIiBzdHlsZT0iZmlsbDojZmZmIi8+PC9zdmc+",cursor:"iVBORw0KGgoAAAANSUhEUgAAABUAAAAVAgMAAADUeU0FAAAACVBMVEUAAAAAAAD///+D3c/SAAAAAXRSTlMAQObYZgAAAAFiS0dEAmYLfGQAAAA3SURBVAjXY2CAgVUNYGoqhFJjwE2BgQYDBwMXUGiFGtcyBgbVkKmtYXAeVA4O8BkGtQ9qOwgAAEPfC1QJPmWqAAAAAElFTkSuQmCC"},ft={name:"Eyedropper",type:function(){function e(e){this.getParameters=e}return e.prototype.pick=function(e){var t=this.getParameters(),r=t.canvas2D,n=t.setMetadata,a=t.getMouseCoordinates,o=r.getContext("2d"),i=a(e),l=i.x,s=i.y,p=o.getImageData(l,s,1,1).data;n({color:u.Color3.FromInts(p[0],p[1],p[2]).toHexString(),alpha:p[3]/255})},e.prototype.setup=function(){var e=this;this.pointerObserver=this.getParameters().scene.onPointerObservable.add((function(t){var r;(null===(r=t.pickInfo)||void 0===r?void 0:r.hit)&&(t.type===u.PointerEventTypes.POINTERDOWN&&(e.isPicking=!0,e.pick(t)),t.type===u.PointerEventTypes.POINTERMOVE&&e.isPicking&&e.pick(t),t.type===u.PointerEventTypes.POINTERUP&&(e.isPicking=!1))})),this.isPicking=!1},e.prototype.cleanup=function(){this.pointerObserver&&this.getParameters().scene.onPointerObservable.remove(this.pointerObserver)},e}(),icon:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cmVjdCB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHN0eWxlPSJmaWxsOm5vbmUiLz48cGF0aCBkPSJNMjkuMzIsMTAu\n    NjhjLTEuNjYtMS42Ni00LjA2LTEtNS41Ni41YTExLjg5LDExLjg5LDAsMCwwLTEuNjYsMi4zMUwyMiwxMy40MWExLjg5LDEuODksMCwwLDAtMi42NiwwbC0uOS45YTEuODksMS44OSwwLDAsMC0uMjIsMi4zOWwtNi4wOSw2LjA5YTIuNzUsMi43NSwwLDAsMC0uNzMs\n    MS4yOGwtLjgxLDMuMjYtLjU2LjU2YTEuMTYsMS4xNiwwLDAsMCwwLDEuNjVsLjQxLjQxYTEuMTcsMS4xNywwLDAsMCwxLjY1LDBsLjU2LS41NiwzLjI2LS44MWEyLjc1LDIuNzUsMCwwLDAsMS4yOC0uNzNsNi4xNC02LjE0YTEuODcsMS44NywwLDAsMCwuODQuMjEs\n    MS44MywxLjgzLDAsMCwwLDEuMzMtLjU1bC45LS45YTEuODcsMS44NywwLDAsMCwuMDgtMi41NywxMS41NCwxMS41NCwwLDAsMCwyLjMyLTEuNjZDMzAuMzIsMTQuNzQsMzEsMTIuMzUsMjkuMzIsMTAuNjhaTTE2LjE1LDI2Ljc5YTEuMjEsMS4yMSwwLDAsMS0uNTgu\n    MzNMMTIsMjhsLjktMy41OWExLjIxLDEuMjEsMCwwLDEsLjMzLS41OGw2LjA3LTYuMDcsMi45NCwyLjk0Wm05LjIxLTcuMzgtLjkuOWMtLjE5LjItLjM0LjItLjU0LDBsLTQuNC00LjRhLjQuNCwwLDAsMSwwLS41NGwuOS0uOWEuNDMuNDMsMCwwLDEsLjI3LS4xMS4z\n    OS4zOSwwLDAsMSwuMjcuMTFsNC40LDQuNEEuMzguMzgsMCwwLDEsMjUuMzYsMTkuNDFabTMuMzgtNS45M2EzLjcsMy43LDAsMCwxLTEsMS43LDExLjY3LDExLjY3LDAsMCwxLTIuMzUsMS42MkwyMy4yLDE0LjU5YTExLjY3LDExLjY3LDAsMCwxLDEuNjItMi4zNSwz\n    LjcsMy43LDAsMCwxLDEuNy0xLDEuODMsMS44MywwLDAsMSwyLjIyLDIuMjJaIiBzdHlsZT0iZmlsbDojZmZmIi8+PC9zdmc+",cursor:"iVBORw0KGgoAAAANSUhEUgAAABUAAAAVCAYAAACpF6WWAAAABmJLR0QA/wD/AP+gvaeTAAAByklEQVQ4jbWUv4saQRTHd+4s/BuCYRH1n7BQEhCRuyJ3RQgpRVt/tFvYSAjLxMPiWIJ1OA6OKwKBdCGBkIS4pFs76xgXhOlyyconzSrrojub4l618+a9z/u+mTdrGPdgIk0QwDZBCG3OUerqepYeCgigAbyJ+a+AEyB9lTDxAfBhPp9jWRZh+wB0u11msxnAJyCXSmkI/DIejx9Vq1Ujm83u7OdyOaPRaBi2bVeAr8BDnUIBfJRSUi6XWSwWa+B1VClw6ft+UKlUsG0b4DNw+G6AU8/zME2T5XIZAE9C/xYark983/9rmubmKM6SoNedTofRaARwqenqQkpJr9cDuI3uiYiSvbaZS4Dod1J8JrJIUoUQYgs+FLuplYk79lQ2hBAipvSggH2Vbvr9PlJKgFea2JeO49BqtQDeJgWee55HPp9ntVr9AR6H/vjtV5VSd8Vikel0CvA0CXoEfBsOh9RqNZRSd8CL2JwOlVK/6/X65rVNgWPdEeTX6/XPwWBAqVRiMpnsPFPHcSgUCliWRRAEv4BCIjAKBr67rkuz2dyBttttXNcF+AEUUwEj4GPgGfAu1v574DmQ0UI0BXYuSmepf9L/NZv3Yf8AKtG4imEra4UAAAAASUVORK5CYII="},vt={name:"Floodfill",type:function(){function e(e){this.getParameters=e}return e.prototype.fill=function(){return i(this,void 0,void 0,(function(){var e,t,r,n,a,o;return l(this,(function(i){switch(i.label){case 0:return e=this.getParameters(),t=e.metadata,r=e.startPainting,n=e.updatePainting,a=e.stopPainting,[4,r()];case 1:return(o=i.sent()).fillStyle=t.color,o.globalAlpha=t.alpha,o.globalCompositeOperation="copy",o.fillRect(0,0,o.canvas.width,o.canvas.height),n(),a(),[2]}}))}))},e.prototype.setup=function(){var e=this;this.pointerObserver=this.getParameters().scene.onPointerObservable.add((function(t){var r;(null===(r=t.pickInfo)||void 0===r?void 0:r.hit)&&t.type===u.PointerEventTypes.POINTERDOWN&&0===t.event.button&&e.fill()}))},e.prototype.cleanup=function(){this.pointerObserver&&this.getParameters().scene.onPointerObservable.remove(this.pointerObserver)},e}(),icon:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cmVjdCB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHN0eWxlPSJmaWxsOm5vbmUiLz48cGF0aCBkPSJNMjAsMTAuNWEu\n    NzUuNzUsMCwwLDAtMS41LDB2MS4yNWEyLjE0LDIuMTQsMCwwLDAtLjg0LjUzbC02Ljg4LDYuODhhMi4yNSwyLjI1LDAsMCwwLDAsMy4xOGw0Ljg4LDQuODhhMi4yNSwyLjI1LDAsMCwwLDMuMTgsMGw2Ljg4LTYuODhhMi4yNSwyLjI1LDAsMCwwLDAtMy4xOGwtNC44\n    OC00Ljg4YTIuMjksMi4yOSwwLDAsMC0uODQtLjUzWm0tOC4xNiw5LjcyLDYuNjYtNi42NlYxNUEuNzUuNzUsMCwwLDAsMjAsMTVWMTMuNTZsNC42Niw0LjY2YS43NS43NSwwLDAsMSwwLDEuMDZsLTEsMUgxMS44Wm0uNDcsMS41M2g5Ljg4bC00LjQxLDQuNDFhLjc1\n    Ljc1LDAsMCwxLTEuMDYsMFoiIHN0eWxlPSJmaWxsOiNmZmYiLz48cGF0aCBkPSJNMjcuNTEsMjEuODVhLjg4Ljg4LDAsMCwwLTEuNTQsMGwtMiwzLjc3YTMuMTUsMy4xNSwwLDEsMCw1LjU2LDBabS0yLjIzLDQuNDcsMS40Ni0yLjczLDEuNDUsMi43M2ExLjY1LDEu\n    NjUsMCwxLDEtMi45MSwwWiIgc3R5bGU9ImZpbGw6I2ZmZiIvPjwvc3ZnPg=="},yt=[{name:"Rectangle Select",type:function(){function e(e){this.isSelecting=!1,this.xStart=-1,this.yStart=-1,this.getParameters=e}return e.prototype.setup=function(){var e=this,t=this.getParameters().scene;this.pointerObserver=t.onPointerObservable.add((function(t){var r,n,a=e.getParameters(),o=a.getMouseCoordinates,i=a.setMetadata,l=a.metadata;if(null===(n=t.pickInfo)||void 0===n?void 0:n.hit){if(t.type===u.PointerEventTypes.POINTERDOWN&&0==t.event.button){e.isSelecting=!0;var s=(r=o(t),e.xStart=r.x,e.yStart=r.y,r);i({select:{x1:c=s.x,y1:d=s.y,x2:c,y2:d}})}if(t.type===u.PointerEventTypes.POINTERMOVE&&e.isSelecting){var p=o(t),c=p.x,d=p.y;i({select:{x1:Math.min(c,e.xStart),y1:Math.min(d,e.yStart),x2:Math.max(c,e.xStart),y2:Math.max(d,e.yStart)}})}}t.type===u.PointerEventTypes.POINTERUP&&0==t.event.button&&(e.isSelecting=!1,l.select.x1!==l.select.x2&&l.select.y1!==l.select.y2||i({select:{x1:-1,y1:-1,x2:-1,y2:-1}}))}))},e.prototype.cleanup=function(){this.isSelecting=!1,this.pointerObserver&&this.getParameters().scene.onPointerObservable.remove(this.pointerObserver)},e}(),icon:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cmVjdCB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHN0eWxlPSJmaWxsOm5vbmUiLz48cGF0aCBkPSJNMTEuNjMsMTUuNjNIMTAuMzh2LTMuN2ExLjU0LDEuNTQsMCwwLDEsMS41NS0xLjU1aDMuN3YxLjI1SDEyLjI1YS42Mi42MiwwLDAsMC0uNjIuNjJaIiBzdHlsZT0iZmlsbDojZmZmIi8+PHBhdGggZD0iTTExLjYzLDIyLjYzSDEwLjM4VjE3LjM4aDEuMjVaIiBzdHlsZT0iZmlsbDojZmZmIi8+PHBhdGggZD0iTTI5LjYzLDIyLjYzSDI4LjM4VjE3LjM4aDEuMjVaIiBzdHlsZT0iZmlsbDojZmZmIi8+PHBhdGggZD0iTTE1LjYzLDI5LjYzaC0zLjdhMS41NSwxLjU1LDAsMCwxLTEuNTUtMS41NlYyNC4zOGgxLjI1djMuMzdhLjYzLjYzLDAsMCwwLC42Mi42M2gzLjM4WiIgc3R5bGU9ImZpbGw6I2ZmZiIvPjxwYXRoIGQ9Ik0yOC4wNywyOS42M0gyNC4zOFYyOC4zOGgzLjM3YS42NC42NCwwLDAsMCwuNjMtLjYzVjI0LjM4aDEuMjV2My42OUExLjU2LDEuNTYsMCwwLDEsMjguMDcsMjkuNjNaIiBzdHlsZT0iZmlsbDojZmZmIi8+PHBhdGggZD0iTTIyLjYzLDExLjYzSDE3LjM4VjEwLjM4aDUuMjVaIiBzdHlsZT0iZmlsbDojZmZmIi8+PHBhdGggZD0iTTI5LjYzLDE1LjYzSDI4LjM4VjEyLjI1YS42My42MywwLDAsMC0uNjMtLjYySDI0LjM4VjEwLjM4aDMuNjlhMS41NSwxLjU1LDAsMCwxLDEuNTYsMS41NVoiIHN0eWxlPSJmaWxsOiNmZmYiLz48cGF0aCBkPSJNMjIuNjMsMjkuNjNIMTcuMzhWMjguMzhoNS4yNVoiIHN0eWxlPSJmaWxsOiNmZmYiLz48L3N2Zz4=",cursor:"iVBORw0KGgoAAAANSUhEUgAAABUAAAAVAgMAAADUeU0FAAAACVBMVEUAAAAAAAD///+D3c/SAAAAAXRSTlMAQObYZgAAAAFiS0dEAmYLfGQAAAAnSURBVAjXY2CAAS0IpUY0BdG1ikNrFQODaqiaaBicBwfEG6aF0AQA4oYGiJg4woEAAAAASUVORK5CYII="},gt,ft,vt],Ct=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.render=function(){return this.props.tool&&this.props.tool.settingsComponent?s.createElement("div",{id:"tool-ui"},s.createElement(this.props.tool.settingsComponent,{instance:this.props.tool.instance})):s.createElement(s.Fragment,null)},t}(s.Component);r(44);var Et,Ot=function(e){function t(t){var n=e.call(this,t)||this;n._UICanvas=s.createRef(),n._2DCanvas=s.createRef(),n._3DCanvas=s.createRef(),n._pickerRef=s.createRef();var a=[{name:"Red",visible:!0,editable:!0,id:"R",icon:r(46)},{name:"Green",visible:!0,editable:!0,id:"G",icon:r(47)},{name:"Blue",visible:!0,editable:!0,id:"B",icon:r(48)}];return n.props.texture.isCube?a.push({name:"Display",visible:!0,editable:!0,id:"A",icon:r(49)}):a.push({name:"Alpha",visible:!0,editable:!0,id:"A",icon:r(50)}),n.state={tools:[],activeToolIndex:-1,metadata:{color:"#ffffff",alpha:1,select:{x1:-1,y1:-1,x2:-1,y2:-1}},channels:a,pixelData:{},face:0,mipLevel:0,pickerOpen:!1},n.loadToolFromURL=n.loadToolFromURL.bind(n),n.changeTool=n.changeTool.bind(n),n.setMetadata=n.setMetadata.bind(n),n.saveTexture=n.saveTexture.bind(n),n.resetTexture=n.resetTexture.bind(n),n.resizeTexture=n.resizeTexture.bind(n),n.uploadTexture=n.uploadTexture.bind(n),n.setPickerOpen=n.setPickerOpen.bind(n),n.onPointerDown=n.onPointerDown.bind(n),n}return a(t,e),t.prototype.componentDidMount=function(){var e=this;this._textureCanvasManager=new st(this.props.texture,this.props.window.current.getWindow(),this._UICanvas.current,this._2DCanvas.current,this._3DCanvas.current,(function(t){e.setState({pixelData:t})}),this.state.metadata,(function(){return e.textureDidUpdate()}),(function(t){return e.setMetadata(t)}),(function(t){return e.setState({mipLevel:t})})),this.addTools(yt)},t.prototype.componentDidUpdate=function(){var e=[];this.state.channels.forEach((function(t){return e.push(o({},t))})),this._textureCanvasManager.channels=e,this._textureCanvasManager.face=this.state.face,this._textureCanvasManager.mipLevel=this.state.mipLevel},t.prototype.componentWillUnmount=function(){this._textureCanvasManager.dispose()},t.prototype.textureDidUpdate=function(){var e=this;null!=this._timer&&clearTimeout(this._timer),this._timer=window.setTimeout((function(){e.props.onUpdate(),e._timer=null}),t.PREVIEW_UPDATE_DELAY_MS)},t.prototype.loadToolFromURL=function(e){var t=this;u.Tools.LoadScript(e,(function(){t.addTools([_TOOL_DATA_])}))},t.prototype.addTools=function(e){var t=this,r=[];e.forEach((function(e){var n=o(o({},e),{instance:new e.type((function(){return t.getToolParameters()}))});r=r.concat(n)})),r=this.state.tools.concat(r),this.setState({tools:r}),console.log(r)},t.prototype.getToolParameters=function(){var e=this;return{scene:this._textureCanvasManager.scene,canvas2D:this._textureCanvasManager.canvas2D,scene3D:this._textureCanvasManager.scene3D,size:this._textureCanvasManager.size,updateTexture:function(){return e._textureCanvasManager.updateTexture()},startPainting:function(){return e._textureCanvasManager.startPainting()},stopPainting:function(){return e._textureCanvasManager.stopPainting()},updatePainting:function(){return e._textureCanvasManager.updatePainting()},metadata:this.state.metadata,setMetadata:function(t){return e.setMetadata(t)},getMouseCoordinates:function(t){return e._textureCanvasManager.getMouseCoordinates(t)},BABYLON:BABYLON}},t.prototype.changeTool=function(e){this._textureCanvasManager.tool=-1!=e?this.state.tools[e]:null,this.setState({activeToolIndex:e})},t.prototype.setMetadata=function(e){var t=o(o({},this.state.metadata),e);this.setState({metadata:t}),this._textureCanvasManager.metadata=t},t.prototype.setPickerOpen=function(e){this.setState({pickerOpen:e})},t.prototype.onPointerDown=function(e){var t;(null===(t=this._pickerRef.current)||void 0===t?void 0:t.contains(e.target))||this.setPickerOpen(!1)},t.prototype.saveTexture=function(){this._textureCanvasManager.saveTexture()},t.prototype.resetTexture=function(){this._textureCanvasManager.reset()},t.prototype.resizeTexture=function(e,t){this._textureCanvasManager.resize({width:e,height:t})},t.prototype.uploadTexture=function(e){this._textureCanvasManager.upload(e)},t.prototype.render=function(){var e,t=this,r=this.state.tools[this.state.activeToolIndex],n="initial";return r&&r.cursor&&(n="url(data:image/png;base64,"+r.cursor+") 10 10, auto"),s.createElement("div",{id:"texture-editor",onPointerDown:this.onPointerDown,style:{cursor:n}},s.createElement(ct,{texture:this.props.texture,saveTexture:this.saveTexture,pixelData:this.state.pixelData,face:this.state.face,setFace:function(e){return t.setState({face:e})},resetTexture:this.resetTexture,resizeTexture:this.resizeTexture,uploadTexture:this.uploadTexture,mipLevel:this.state.mipLevel,setMipLevel:function(e){return t.setState({mipLevel:e})},size:(null===(e=this._textureCanvasManager)||void 0===e?void 0:e.size)||this.props.texture.getSize()}),!this.props.texture.isCube&&s.createElement(pt,{tools:this.state.tools,activeToolIndex:this.state.activeToolIndex,addTool:this.loadToolFromURL,changeTool:this.changeTool,metadata:this.state.metadata,setMetadata:this.setMetadata,pickerOpen:this.state.pickerOpen,setPickerOpen:this.setPickerOpen,pickerRef:this._pickerRef,hasAlpha:-1===this.props.texture.textureFormat||this.props.texture.textureFormat===u.Constants.TEXTUREFORMAT_RGBA}),s.createElement(ht,{channels:this.state.channels,setChannels:function(e){t.setState({channels:e})}}),s.createElement(mt,{canvas2D:this._2DCanvas,canvas3D:this._3DCanvas,canvasUI:this._UICanvas,texture:this.props.texture}),s.createElement(Ct,{tool:r}),s.createElement(bt,{texture:this.props.texture,mipLevel:this.state.mipLevel}))},t.PREVIEW_UPDATE_DELAY_MS=160,t}(s.Component),St=function(e){function t(t){var r=e.call(this,t)||this;r._textureInspectorSize={width:1024,height:490},r.state={isTextureEditorOpen:!1,textureEditing:null};var n=r.props.texture;if(r.textureLineRef=s.createRef(),r.popoutWindowRef=s.createRef(),!n||!n.rootContainer)return r;var a=n;return r._adtInstrumentation=new at.AdvancedDynamicTextureInstrumentation(a),r._adtInstrumentation.captureRenderTime=!0,r._adtInstrumentation.captureLayoutTime=!0,r.onOpenTextureEditor.bind(r),r.onCloseTextureEditor.bind(r),r.openTextureEditor.bind(r),r}return a(t,e),t.prototype.componentWillUnmount=function(){this._adtInstrumentation&&(this._adtInstrumentation.dispose(),this._adtInstrumentation=null)},t.prototype.updateTexture=function(e){var t=this,r=this.props.texture;u.Tools.ReadFile(e,(function(n){var a=new Blob([n],{type:"octet/stream"}),o=new FileReader;o.readAsDataURL(a),o.onloadend=function(){var n=o.result;if(r.isCube){var a=void 0;e.name.toLowerCase().indexOf(".dds")>0?a=".dds":e.name.toLowerCase().indexOf(".env")>0&&(a=".env"),r.updateURL(n,a,(function(){return t.forceRefresh()}))}else r.updateURL(n,null,(function(){return t.forceRefresh()}))}}),void 0,!0)},t.prototype.openTextureEditor=function(){var e=this;this.state.isTextureEditorOpen?this.onCloseTextureEditor((function(){return e.openTextureEditor()})):this.setState({isTextureEditorOpen:!0,textureEditing:this.props.texture})},t.prototype.onOpenTextureEditor=function(e){},t.prototype.onCloseTextureEditor=function(e){this.setState({isTextureEditorOpen:!1,textureEditing:null},e)},t.prototype.forceRefresh=function(){this.forceUpdate(),this.textureLineRef.current.updatePreview()},t.prototype.render=function(){var e=this,t=this.props.texture,r=[{label:"Nearest",value:u.Texture.NEAREST_NEAREST},{label:"Linear",value:u.Texture.LINEAR_LINEAR},{label:"Linear & linear mip",value:u.Texture.LINEAR_LINEAR_MIPLINEAR},{label:"Linear & nearest mip",value:u.Texture.LINEAR_LINEAR_MIPNEAREST},{label:"Nearest & linear mip",value:u.Texture.NEAREST_NEAREST_MIPLINEAR},{label:"Nearest & nearest mip",value:u.Texture.NEAREST_NEAREST_MIPNEAREST},{label:"Nearest/Linear",value:u.Texture.NEAREST_LINEAR},{label:"Nearest/Linear & linear mip",value:u.Texture.NEAREST_LINEAR_MIPLINEAR},{label:"Nearest/Linear & nearest mip",value:u.Texture.NEAREST_LINEAR_MIPNEAREST},{label:"Linear/Nearest",value:u.Texture.LINEAR_NEAREST},{label:"Linear/Nearest & linear mip",value:u.Texture.LINEAR_NEAREST_MIPLINEAR},{label:"Linear/Nearest & nearest mip",value:u.Texture.LINEAR_NEAREST_MIPNEAREST}],n=[{label:"Explicit",value:u.Texture.EXPLICIT_MODE},{label:"Cubic",value:u.Texture.CUBIC_MODE},{label:"Inverse cubic",value:u.Texture.INVCUBIC_MODE},{label:"Equirectangular",value:u.Texture.EQUIRECTANGULAR_MODE},{label:"Fixed equirectangular",value:u.Texture.FIXED_EQUIRECTANGULAR_MODE},{label:"Fixed equirectangular mirrored",value:u.Texture.FIXED_EQUIRECTANGULAR_MIRRORED_MODE},{label:"Planar",value:u.Texture.PLANAR_MODE},{label:"Projection",value:u.Texture.PROJECTION_MODE},{label:"Skybox",value:u.Texture.SKYBOX_MODE},{label:"Spherical",value:u.Texture.SPHERICAL_MODE}],a="",o=t.url,i=o&&"data"!==o.substring(0,4)&&"blob"!==o.substring(0,4)?o:"";if(i)for(var l=i.length-1;l>=0&&"."!==i[l];l--)a=i[l]+a;return s.createElement("div",{className:"pane"},s.createElement(Oe,{globalState:this.props.globalState,title:"PREVIEW"},s.createElement(nt,{ref:this.textureLineRef,texture:t,width:256,height:256,globalState:this.props.globalState}),s.createElement(qe,{label:"Load texture from file",onClick:function(t){return e.updateTexture(t)},accept:".jpg, .png, .tga, .dds, .env"}),s.createElement(Ze,{label:"Edit",onClick:function(){return e.openTextureEditor()}}),s.createElement(We,{label:"URL",value:i,lockObject:this.props.lockObject,onChange:function(r){t.updateURL(r),e.forceRefresh()}})),this.state.isTextureEditorOpen&&s.createElement(ot,{id:"texture-editor",title:"Texture Inspector",size:this._textureInspectorSize,onOpen:this.onOpenTextureEditor,onClose:function(){return e.onCloseTextureEditor},ref:this.popoutWindowRef},s.createElement(Ot,{texture:this.props.texture,url:i,window:this.popoutWindowRef,onUpdate:function(){return e.forceRefresh()}})),s.createElement(Ye,{globalState:this.props.globalState,target:t,lockObject:this.props.lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Oe,{globalState:this.props.globalState,title:"GENERAL"},s.createElement(Ee,{label:"Width",value:t.getSize().width.toString()}),s.createElement(Ee,{label:"Height",value:t.getSize().height.toString()}),t.isRenderTarget&&s.createElement(Ze,{label:"Scale up",onClick:function(){var r=t.getScene();t.scale(2),setTimeout((function(){e.props.globalState.onSelectionChangedObservable.notifyObservers(r.getTextureByUniqueID(t.uniqueId))}))}}),t.isRenderTarget&&s.createElement(Ze,{label:"Scale down",onClick:function(){var r=t.getScene();t.scale(.5),setTimeout((function(){e.props.globalState.onSelectionChangedObservable.notifyObservers(r.getTextureByUniqueID(t.uniqueId))}))}}),a&&s.createElement(Ee,{label:"File format",value:a}),s.createElement(Ee,{label:"Unique ID",value:t.uniqueId.toString()}),s.createElement(Ee,{label:"Class",value:t.getClassName()}),s.createElement(Ee,{label:"Has alpha",value:t.hasAlpha?"Yes":"No"}),s.createElement(Ee,{label:"Is 3D",value:t.is3D?"Yes":"No"}),s.createElement(Ee,{label:"Is 2D array",value:t.is2DArray?"Yes":"No"}),s.createElement(Ee,{label:"Is cube",value:t.isCube?"Yes":"No"}),s.createElement(Ee,{label:"Is render target",value:t.isRenderTarget?"Yes":"No"}),t instanceof u.Texture&&s.createElement(Ee,{label:"Stored as inverted on Y",value:t.invertY?"Yes":"No"}),s.createElement(Ee,{label:"Has mipmaps",value:t.noMipmap?"No":"Yes"}),s.createElement(Re,{label:"UV set",target:t,propertyName:"coordinatesIndex",minimum:0,maximum:3,step:1,onPropertyChangedObservable:this.props.onPropertyChangedObservable,decimalCount:0}),s.createElement(Ae,{label:"Mode",options:n,target:t,propertyName:"coordinatesMode",onPropertyChangedObservable:this.props.onPropertyChangedObservable,onSelect:function(e){return t.coordinatesMode=e}}),s.createElement(Re,{label:"Level",target:t,propertyName:"level",minimum:0,maximum:2,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),t.updateSamplingMode&&s.createElement(Ae,{label:"Sampling",options:r,target:t,noDirectUpdate:!0,propertyName:"samplingMode",onPropertyChangedObservable:this.props.onPropertyChangedObservable,onSelect:function(e){return t.updateSamplingMode(e)}})),t.getScene()&&s.createElement(Ke,{globalState:this.props.globalState,animatable:t,scene:t.getScene(),lockObject:this.props.lockObject}),t.rootContainer&&this._adtInstrumentation&&s.createElement(Oe,{globalState:this.props.globalState,title:"ADVANCED TEXTURE PROPERTIES"},s.createElement(Se,{label:"Last layout time",value:this._adtInstrumentation.renderTimeCounter.current,units:"ms"}),s.createElement(Se,{label:"Last render time",value:this._adtInstrumentation.layoutTimeCounter.current,units:"ms"}),s.createElement(Re,{label:"Render scale",minimum:.1,maximum:5,step:.1,target:t,propertyName:"renderScale",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Premultiply alpha",target:t,propertyName:"premulAlpha",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Ideal width",target:t,propertyName:"idealWidth",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Ideal height",target:t,propertyName:"idealHeight",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Use smallest ideal",target:t,propertyName:"useSmallestIdeal",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Render at ideal size",target:t,propertyName:"renderAtIdealSize",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Invalidate Rect optimization",target:t,propertyName:"useInvalidateRectOptimization",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),s.createElement(Oe,{globalState:this.props.globalState,title:"TRANSFORM"},!t.isCube&&s.createElement("div",null,s.createElement(Le,{lockObject:this.props.lockObject,label:"U offset",target:t,propertyName:"uOffset",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"V offset",target:t,propertyName:"vOffset",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"U scale",target:t,propertyName:"uScale",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"V scale",target:t,propertyName:"vScale",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"U angle",useEuler:this.props.globalState.onlyUseEulers,target:t,propertyName:"uAng",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"V angle",useEuler:this.props.globalState.onlyUseEulers,target:t,propertyName:"vAng",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"W angle",useEuler:this.props.globalState.onlyUseEulers,target:t,propertyName:"wAng",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Clamp U",isSelected:function(){return t.wrapU===u.Texture.CLAMP_ADDRESSMODE},onSelect:function(e){return t.wrapU=e?u.Texture.CLAMP_ADDRESSMODE:u.Texture.WRAP_ADDRESSMODE}}),s.createElement(we,{label:"Clamp V",isSelected:function(){return t.wrapV===u.Texture.CLAMP_ADDRESSMODE},onSelect:function(e){return t.wrapV=e?u.Texture.CLAMP_ADDRESSMODE:u.Texture.WRAP_ADDRESSMODE}})),t.isCube&&s.createElement("div",null,s.createElement(Re,{label:"Rotation Y",useEuler:this.props.globalState.onlyUseEulers,minimum:0,maximum:2*Math.PI,step:.1,target:t,propertyName:"rotationY"}))))},t}(s.Component),xt=function(e){function t(t){var r=e.call(this,t)||this;return r._localChange=!1,r.state={isExpanded:!1,value:r.props.target[r.props.propertyName].clone()},r}return a(t,e),t.prototype.shouldComponentUpdate=function(e,t){var r=e.target[e.propertyName];return!(r.equals(t.value)&&!this._localChange)&&(t.value=r.clone(),this._localChange=!1,!0)},t.prototype.switchExpandState=function(){this._localChange=!0,this.setState({isExpanded:!this.state.isExpanded})},t.prototype.raiseOnPropertyChanged=function(e){this.props.onChange&&this.props.onChange(this.state.value),this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:this.state.value,initialValue:e})},t.prototype.updateStateX=function(e){this._localChange=!0;var t=this.state.value.clone();this.props.target[this.props.propertyName].x=e,this.state.value.x=e,this.setState({value:this.state.value}),this.raiseOnPropertyChanged(t)},t.prototype.updateStateY=function(e){this._localChange=!0;var t=this.state.value.clone();this.props.target[this.props.propertyName].y=e,this.state.value.y=e,this.setState({value:this.state.value}),this.raiseOnPropertyChanged(t)},t.prototype.render=function(){var e=this,t=this.state.isExpanded?s.createElement(w,{icon:ae}):s.createElement(w,{icon:se});return s.createElement("div",{className:"vector3Line"},s.createElement("div",{className:"firstLine",title:this.props.label},s.createElement("div",{className:"label"},this.props.label),s.createElement("div",{className:"vector"},"X: "+this.state.value.x.toFixed(2)+", Y: "+this.state.value.y.toFixed(2)),s.createElement("div",{className:"expand hoverIcon",onClick:function(){return e.switchExpandState()},title:"Expand"},t)),this.state.isExpanded&&s.createElement("div",{className:"secondLine"},s.createElement(Ie,{label:"x",step:this.props.step,value:this.state.value.x,onChange:function(t){return e.updateStateX(t)}}),s.createElement(Ie,{label:"y",step:this.props.step,value:this.state.value.y,onChange:function(t){return e.updateStateY(t)}})))},t.defaultProps={step:.001},t}(s.Component),Pt=function(e){function t(t){var r=e.call(this,t)||this;return r._onDebugSelectionChangeObservable=new u.Observable,r}return a(t,e),t.prototype.switchAmbientMode=function(e){this.props.material.debugMode=e?21:0},t.prototype.switchMetallicMode=function(e){this.props.material.debugMode=e?62:0},t.prototype.switchRoughnessMode=function(e){this.props.material.debugMode=e?63:0},t.prototype.renderTextures=function(e){var t=this,r=this.props.material;return s.createElement(Oe,{globalState:this.props.globalState,title:"CHANNELS"},s.createElement($e,{label:"Albedo",texture:r.albedoTexture,propertyName:"albedoTexture",material:r,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:e}),s.createElement($e,{customDebugAction:function(e){return t.switchMetallicMode(e)},label:"Metallic",texture:r.metallicTexture,propertyName:"metallicTexture",material:r,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:e}),s.createElement($e,{customDebugAction:function(e){return t.switchRoughnessMode(e)},label:"Roughness",texture:r.metallicTexture,propertyName:"metallicTexture",material:r,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:e}),s.createElement($e,{label:"Reflection",texture:r.reflectionTexture,propertyName:"reflectionTexture",material:r,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:e}),s.createElement($e,{label:"Refraction",texture:r.refractionTexture,propertyName:"refractionTexture",material:r,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:e}),s.createElement($e,{label:"Reflectivity",texture:r.reflectivityTexture,propertyName:"reflectivityTexture",material:r,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:e}),s.createElement($e,{label:"Micro-surface",texture:r.microSurfaceTexture,propertyName:"microSurfaceTexture",material:r,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:e}),s.createElement($e,{label:"Bump",texture:r.bumpTexture,propertyName:"bumpTexture",material:r,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:e}),s.createElement($e,{label:"Emissive",texture:r.emissiveTexture,propertyName:"emissiveTexture",material:r,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:e}),s.createElement($e,{label:"Opacity",texture:r.opacityTexture,propertyName:"opacityTexture",material:r,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:e}),s.createElement($e,{customDebugAction:function(e){return t.switchAmbientMode(e)},label:"Ambient",texture:r.ambientTexture,propertyName:"ambientTexture",material:r,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:e}),s.createElement($e,{label:"Lightmap",texture:r.lightmapTexture,propertyName:"lightmapTexture",material:r,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:e}),s.createElement($e,{label:"Detailmap",texture:r.detailMap.texture,material:r,onTextureCreated:function(e){return r.detailMap.texture=e},onTextureRemoved:function(){return r.detailMap.texture=null},onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:e}),s.createElement(we,{label:"Use lightmap as shadowmap",target:r,propertyName:"useLightmapAsShadowmap",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Use detailmap",target:r.detailMap,propertyName:"isEnabled",onPropertyChangedObservable:this.props.onPropertyChangedObservable}))},t.prototype.render=function(){var e,t,r,n=this,a=this.props.material,o=[{label:"Low",value:u.Constants.TEXTURE_FILTERING_QUALITY_LOW},{label:"Medium",value:u.Constants.TEXTURE_FILTERING_QUALITY_MEDIUM},{label:"High",value:u.Constants.TEXTURE_FILTERING_QUALITY_HIGH}];return a.sheen._useRoughness=null!==(e=a.sheen._useRoughness)&&void 0!==e?e:null!==a.sheen.roughness,a.sheen.roughness=null!==(r=null!==(t=a.sheen.roughness)&&void 0!==t?t:a.sheen._saveRoughness)&&void 0!==r?r:0,a.sheen._useRoughness||(a.sheen._saveRoughness=a.sheen.roughness,a.sheen.roughness=null),s.createElement("div",{className:"pane"},s.createElement(Xe,{globalState:this.props.globalState,lockObject:this.props.lockObject,material:a,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),this.renderTextures(this._onDebugSelectionChangeObservable),s.createElement(Oe,{globalState:this.props.globalState,title:"LIGHTING & COLORS"},s.createElement(Ue,{label:"Albedo",target:a,propertyName:"albedoColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable,isLinear:!0}),s.createElement(Ue,{label:"Reflectivity",target:a,propertyName:"reflectivityColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable,isLinear:!0}),s.createElement(Re,{label:"Micro-surface",target:a,propertyName:"microSurface",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Ue,{label:"Emissive",target:a,propertyName:"emissiveColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable,isLinear:!0}),s.createElement(Ue,{label:"Ambient",target:a,propertyName:"ambientColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable,isLinear:!0}),s.createElement(we,{label:"Use physical light falloff",target:a,propertyName:"usePhysicalLightFalloff",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),s.createElement(Oe,{globalState:this.props.globalState,title:"METALLIC WORKFLOW"},s.createElement(Re,{label:"Metallic",target:a,propertyName:"metallic",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Roughness",target:a,propertyName:"roughness",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Index of Refraction",target:a,propertyName:"indexOfRefraction",minimum:1,maximum:2,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"F0 Factor",target:a,propertyName:"metallicF0Factor",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Ue,{label:"Reflectance Color",target:a,propertyName:"metallicReflectanceColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable,isLinear:!0}),s.createElement($e,{label:"Reflectance Texture",texture:a.metallicReflectanceTexture,onTextureCreated:function(e){return a.metallicReflectanceTexture=e},onTextureRemoved:function(){return a.metallicReflectanceTexture=null},material:a,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:this._onDebugSelectionChangeObservable})),s.createElement(Oe,{globalState:this.props.globalState,title:"CLEAR COAT"},s.createElement(we,{label:"Enabled",target:a.clearCoat,propertyName:"isEnabled",onValueChanged:function(){return n.forceUpdate()},onPropertyChangedObservable:this.props.onPropertyChangedObservable}),a.clearCoat.isEnabled&&s.createElement("div",{className:"fragment"},s.createElement(Re,{label:"Intensity",target:a.clearCoat,propertyName:"intensity",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Roughness",target:a.clearCoat,propertyName:"roughness",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"IOR",target:a.clearCoat,propertyName:"indexOfRefraction",minimum:1,maximum:3,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Remap F0",target:a.clearCoat,propertyName:"remapF0OnInterfaceChange",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement($e,{label:"Clear coat",texture:a.clearCoat.texture,onTextureCreated:function(e){return a.clearCoat.texture=e},onTextureRemoved:function(){return a.clearCoat.texture=null},material:a,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:this._onDebugSelectionChangeObservable}),s.createElement($e,{label:"Roughness",texture:a.clearCoat.textureRoughness,onTextureCreated:function(e){return a.clearCoat.textureRoughness=e},onTextureRemoved:function(){return a.clearCoat.textureRoughness=null},material:a,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:this._onDebugSelectionChangeObservable}),s.createElement($e,{label:"Bump",texture:a.clearCoat.bumpTexture,onTextureCreated:function(e){return a.clearCoat.bumpTexture=e},onTextureRemoved:function(){return a.clearCoat.bumpTexture=null},material:a,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:this._onDebugSelectionChangeObservable}),a.clearCoat.bumpTexture&&s.createElement(Re,{label:"Bump strength",target:a.clearCoat.bumpTexture,propertyName:"level",minimum:0,maximum:2,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Use roughness from main texture",target:a.clearCoat,propertyName:"useRoughnessFromMainTexture",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Tint",target:a.clearCoat,propertyName:"isTintEnabled",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),a.clearCoat.isEnabled&&a.clearCoat.isTintEnabled&&s.createElement(Ue,{label:"Tint Color",target:a.clearCoat,propertyName:"tintColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable,isLinear:!0}),a.clearCoat.isEnabled&&a.clearCoat.isTintEnabled&&s.createElement(Re,{label:"At Distance",target:a.clearCoat,propertyName:"tintColorAtDistance",minimum:0,maximum:20,step:.1,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),a.clearCoat.isEnabled&&a.clearCoat.isTintEnabled&&s.createElement(Re,{label:"Tint Thickness",target:a.clearCoat,propertyName:"tintThickness",minimum:0,maximum:20,step:.1,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),a.clearCoat.isEnabled&&a.clearCoat.isTintEnabled&&s.createElement($e,{label:"Tint",texture:a.clearCoat.tintTexture,onTextureCreated:function(e){return a.clearCoat.tintTexture=e},onTextureRemoved:function(){return a.clearCoat.tintTexture=null},material:a,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:this._onDebugSelectionChangeObservable}))),s.createElement(Oe,{globalState:this.props.globalState,title:"ANISOTROPIC"},s.createElement(we,{label:"Enabled",target:a.anisotropy,propertyName:"isEnabled",onValueChanged:function(){return n.forceUpdate()},onPropertyChangedObservable:this.props.onPropertyChangedObservable}),a.anisotropy.isEnabled&&s.createElement("div",{className:"fragment"},s.createElement(Re,{label:"Intensity",target:a.anisotropy,propertyName:"intensity",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(xt,{label:"Direction",target:a.anisotropy,propertyName:"direction",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement($e,{label:"Anisotropic",texture:a.anisotropy.texture,onTextureCreated:function(e){return a.anisotropy.texture=e},onTextureRemoved:function(){return a.anisotropy.texture=null},material:a,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:this._onDebugSelectionChangeObservable}))),s.createElement(Oe,{globalState:this.props.globalState,title:"SHEEN"},s.createElement(we,{label:"Enabled",target:a.sheen,propertyName:"isEnabled",onValueChanged:function(){return n.forceUpdate()},onPropertyChangedObservable:this.props.onPropertyChangedObservable}),a.sheen.isEnabled&&s.createElement("div",{className:"fragment"},s.createElement(we,{label:"Link to Albedo",target:a.sheen,propertyName:"linkSheenWithAlbedo",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Intensity",target:a.sheen,propertyName:"intensity",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Ue,{label:"Color",target:a.sheen,propertyName:"color",onPropertyChangedObservable:this.props.onPropertyChangedObservable,isLinear:!0}),s.createElement($e,{label:"Sheen",texture:a.sheen.texture,onTextureCreated:function(e){return a.sheen.texture=e},onTextureRemoved:function(){return a.sheen.texture=null},material:a,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:this._onDebugSelectionChangeObservable}),s.createElement($e,{label:"Roughness",texture:a.sheen.textureRoughness,onTextureCreated:function(e){return a.sheen.textureRoughness=e},onTextureRemoved:function(){return a.sheen.textureRoughness=null},material:a,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:this._onDebugSelectionChangeObservable}),s.createElement(we,{label:"Use roughness",target:a.sheen,propertyName:"_useRoughness"}),a.sheen._useRoughness&&s.createElement(Re,{label:"Roughness",target:a.sheen,propertyName:"roughness",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Use roughness from main texture",target:a.sheen,propertyName:"useRoughnessFromMainTexture",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Albedo scaling",target:a.sheen,propertyName:"albedoScaling",onPropertyChangedObservable:this.props.onPropertyChangedObservable}))),s.createElement(Oe,{globalState:this.props.globalState,title:"SUBSURFACE"},s.createElement($e,{label:"Thickness",texture:a.subSurface.thicknessTexture,onTextureCreated:function(e){return a.subSurface.thicknessTexture=e},onTextureRemoved:function(){return a.subSurface.thicknessTexture=null},material:a,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:this._onDebugSelectionChangeObservable}),s.createElement(Re,{label:"Min Thickness",target:a.subSurface,propertyName:"minimumThickness",minimum:0,maximum:10,step:.1,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Max Thickness",target:a.subSurface,propertyName:"maximumThickness",minimum:0,maximum:10,step:.1,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Mask From Thickness",target:a.subSurface,propertyName:"useMaskFromThicknessTexture",onValueChanged:function(){return n.forceUpdate()},onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Ue,{label:"Tint Color",target:a.subSurface,propertyName:"tintColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable,isLinear:!0}),s.createElement(we,{label:"Scattering Enabled",target:a.subSurface,propertyName:"isScatteringEnabled",onValueChanged:function(){return n.forceUpdate()},onPropertyChangedObservable:this.props.onPropertyChangedObservable}),a.subSurface.isScatteringEnabled&&a.getScene().prePassRenderer&&a.getScene().subSurfaceConfiguration&&s.createElement(Re,{label:"Meters per unit",target:a.getScene().subSurfaceConfiguration,propertyName:"metersPerUnit",minimum:.01,maximum:2,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Refraction Enabled",target:a.subSurface,propertyName:"isRefractionEnabled",onValueChanged:function(){return n.forceUpdate()},onPropertyChangedObservable:this.props.onPropertyChangedObservable}),a.subSurface.isRefractionEnabled&&s.createElement("div",{className:"fragment"},s.createElement(Re,{label:"Intensity",target:a.subSurface,propertyName:"refractionIntensity",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement($e,{label:"Refraction",texture:a.subSurface.refractionTexture,onTextureCreated:function(e){return a.subSurface.refractionTexture=e},onTextureRemoved:function(){return a.subSurface.refractionTexture=null},material:a,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:this._onDebugSelectionChangeObservable}),s.createElement(Re,{label:"Index of Refraction",target:a.subSurface,propertyName:"indexOfRefraction",minimum:1,maximum:2,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Tint at Distance",target:a.subSurface,propertyName:"tintColorAtDistance",minimum:0,maximum:10,step:.1,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Link refraction with transparency",target:a.subSurface,propertyName:"linkRefractionWithTransparency",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Use albedo to tint surface transparency",target:a.subSurface,propertyName:"useAlbedoToTintRefraction",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),s.createElement(we,{label:"Translucency Enabled",target:a.subSurface,propertyName:"isTranslucencyEnabled",onValueChanged:function(){return n.forceUpdate()},onPropertyChangedObservable:this.props.onPropertyChangedObservable}),a.subSurface.isTranslucencyEnabled&&s.createElement("div",{className:"fragment"},s.createElement(Re,{label:"Intensity",target:a.subSurface,propertyName:"translucencyIntensity",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Ue,{label:"Diffusion Distance",target:a.subSurface,propertyName:"diffusionDistance",onPropertyChangedObservable:this.props.onPropertyChangedObservable,isLinear:!0}))),s.createElement(Oe,{globalState:this.props.globalState,title:"LEVELS",closed:!0},s.createElement(Re,{label:"Environment",target:a,propertyName:"environmentIntensity",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Specular",target:a,propertyName:"specularIntensity",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Emissive",target:a,propertyName:"emissiveIntensity",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Direct",target:a,propertyName:"directIntensity",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),a.bumpTexture&&s.createElement(Re,{label:"Bump strength",target:a.bumpTexture,propertyName:"level",minimum:0,maximum:2,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),a.ambientTexture&&s.createElement(Re,{label:"Ambient strength",target:a,propertyName:"ambientTextureStrength",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),a.reflectionTexture&&s.createElement(Re,{label:"Reflection strength",target:a.reflectionTexture,propertyName:"level",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),a.clearCoat.texture&&s.createElement(Re,{label:"Clear coat",target:a.clearCoat.texture,propertyName:"level",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),a.clearCoat.bumpTexture&&s.createElement(Re,{label:"Clear coat bump",target:a.clearCoat.bumpTexture,propertyName:"level",minimum:0,maximum:2,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),a.clearCoat.tintTexture&&!1,a.anisotropy.texture&&s.createElement(Re,{label:"Anisotropic",target:a.anisotropy.texture,propertyName:"level",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),a.sheen.texture&&s.createElement(Re,{label:"Sheen",target:a.sheen.texture,propertyName:"level",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),a.subSurface.thicknessTexture&&s.createElement(Re,{label:"Thickness",target:a.subSurface.thicknessTexture,propertyName:"level",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),a.subSurface.refractionTexture&&s.createElement(Re,{label:"Refraction",target:a.subSurface.refractionTexture,propertyName:"level",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),a.detailMap.isEnabled&&s.createElement(s.Fragment,null,s.createElement(Re,{label:"Detailmap diffuse",target:a.detailMap,propertyName:"diffuseBlendLevel",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Detailmap bump",target:a.detailMap,propertyName:"bumpLevel",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Detailmap roughness",target:a.detailMap,propertyName:"roughnessBlendLevel",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}))),s.createElement(Oe,{globalState:this.props.globalState,title:"RENDERING",closed:!0},s.createElement(we,{label:"Alpha from albedo",target:a,propertyName:"useAlphaFromAlbedoTexture",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Ambient in grayscale",target:a,propertyName:"useAmbientInGrayScale",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Radiance over alpha",target:a,propertyName:"useRadianceOverAlpha",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Micro-surface from ref. map alpha",target:a,propertyName:"useMicroSurfaceFromReflectivityMapAlpha",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Specular over alpha",target:a,propertyName:"useSpecularOverAlpha",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Specular anti-aliasing",target:a,propertyName:"enableSpecularAntiAliasing",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Realtime Filtering",target:a,propertyName:"realTimeFiltering",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Ae,{allowNullValue:!0,label:"Realtime Filtering quality",options:o,target:a,propertyName:"realTimeFilteringQuality",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),s.createElement(Oe,{globalState:this.props.globalState,title:"NORMAL MAP",closed:!0},s.createElement(we,{label:"Invert X axis",target:a,propertyName:"invertNormalMapX",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Invert Y axis",target:a,propertyName:"invertNormalMapY",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),s.createElement(Oe,{globalState:this.props.globalState,title:"ADVANCED",closed:!0},s.createElement(we,{label:"Energy Conservation",target:a.brdf,propertyName:"useEnergyConservation",onValueChanged:function(){return n.forceUpdate()},onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Spherical Harmonics",target:a.brdf,propertyName:"useSphericalHarmonics",onValueChanged:function(){return n.forceUpdate()},onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Radiance occlusion",target:a,propertyName:"useRadianceOcclusion",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Horizon occlusion ",target:a,propertyName:"useHorizonOcclusion",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Unlit",target:a,propertyName:"unlit",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),s.createElement(Oe,{globalState:this.props.globalState,title:"DEBUG",closed:!0},s.createElement(Ae,{label:"Debug mode",options:[{label:"None",value:0},{label:"Normalized position",value:1},{label:"Normals",value:2},{label:"Tangents",value:3},{label:"Bitangents",value:4},{label:"Bump Normals",value:5},{label:"UV1",value:6},{label:"UV2",value:7},{label:"ClearCoat Normals",value:8},{label:"ClearCoat Tangents",value:9},{label:"ClearCoat Bitangents",value:10},{label:"Anisotropic Normals",value:11},{label:"Anisotropic Tangents",value:12},{label:"Anisotropic Bitangents",value:13},{label:"Albdeo Map",value:20},{label:"Ambient Map",value:21},{label:"Opacity Map",value:22},{label:"Emissive Map",value:23},{label:"Light Map",value:24},{label:"Metallic Map",value:25},{label:"Reflectivity Map",value:26},{label:"ClearCoat Map",value:27},{label:"ClearCoat Tint Map",value:28},{label:"Sheen Map",value:29},{label:"Anisotropic Map",value:30},{label:"Thickness Map",value:31},{label:"Env Refraction",value:40},{label:"Env Reflection",value:41},{label:"Env Clear Coat",value:42},{label:"Direct Diffuse",value:50},{label:"Direct Specular",value:51},{label:"Direct Clear Coat",value:52},{label:"Direct Sheen",value:53},{label:"Env Irradiance",value:54},{label:"Surface Albedo",value:60},{label:"Reflectance 0",value:61},{label:"Metallic",value:62},{label:"Metallic F0",value:71},{label:"Roughness",value:63},{label:"AlphaG",value:64},{label:"NdotV",value:65},{label:"ClearCoat Color",value:66},{label:"ClearCoat Roughness",value:67},{label:"ClearCoat NdotV",value:68},{label:"Transmittance",value:69},{label:"Refraction Transmittance",value:70},{label:"SEO",value:80},{label:"EHO",value:81},{label:"Energy Factor",value:82},{label:"Specular Reflectance",value:83},{label:"Clear Coat Reflectance",value:84},{label:"Sheen Reflectance",value:85},{label:"Luminance Over Alpha",value:86},{label:"Alpha",value:87}],target:a,propertyName:"debugMode"}),s.createElement(Re,{label:"Split position",target:a,propertyName:"debugLimit",minimum:-1,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Output factor",target:a,propertyName:"debugFactor",minimum:0,maximum:5,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(s.Component),wt=function(e){function t(t){var r=e.call(this,t)||this;return r.state={isSelected:r.props.isSelected()},r}return a(t,e),t.prototype.componentDidMount=function(){var e=this;this._onSelectionChangedObserver=this.props.onSelectionChangedObservable.add((function(t){e.setState({isSelected:t===e})}))},t.prototype.componentWillUnmount=function(){this._onSelectionChangedObserver&&(this.props.onSelectionChangedObservable.remove(this._onSelectionChangedObserver),this._onSelectionChangedObserver=null)},t.prototype.onChange=function(){this.props.onSelect(),this.props.onSelectionChangedObservable.notifyObservers(this)},t.prototype.render=function(){var e=this;return s.createElement("div",{className:"radioLine"},s.createElement("div",{className:"label",title:this.props.label},this.props.label),s.createElement("div",{className:"radioContainer"},s.createElement("input",{id:this.props.label,className:"radio",type:"radio",checked:this.state.isSelected,onChange:function(){return e.onChange()}}),s.createElement("label",{htmlFor:this.props.label,className:"labelForRadio"})))},t}(s.Component),kt=function(e){function t(t){var r=e.call(this,t)||this;return r.state={mode:r.props.scene.fogMode},r}return a(t,e),t.prototype.render=function(){var e=this,t=this.props.scene,r=[{label:"None",value:u.Scene.FOGMODE_NONE},{label:"Linear",value:u.Scene.FOGMODE_LINEAR},{label:"Exp",value:u.Scene.FOGMODE_EXP},{label:"Exp2",value:u.Scene.FOGMODE_EXP2}];return s.createElement("div",null,s.createElement(Ae,{label:"Fog mode",options:r,target:t,propertyName:"fogMode",onPropertyChangedObservable:this.props.onPropertyChangedObservable,onSelect:function(t){return e.setState({mode:t})}}),this.state.mode!==u.Scene.FOGMODE_NONE&&s.createElement(Ue,{label:"Fog color",target:t,propertyName:"fogColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),(this.state.mode===u.Scene.FOGMODE_EXP||this.state.mode===u.Scene.FOGMODE_EXP2)&&s.createElement(Le,{lockObject:this.props.lockObject,label:"Fog density",target:t,propertyName:"fogDensity",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),this.state.mode===u.Scene.FOGMODE_LINEAR&&s.createElement(Le,{lockObject:this.props.lockObject,label:"Fog start",target:t,propertyName:"fogStart",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),this.state.mode===u.Scene.FOGMODE_LINEAR&&s.createElement(Le,{lockObject:this.props.lockObject,label:"Fog end",target:t,propertyName:"fogEnd",onPropertyChangedObservable:this.props.onPropertyChangedObservable}))},t}(s.Component),Nt=function(e){function t(t){var r=e.call(this,t)||this;return r._renderingModeGroupObservable=new u.Observable,r}return a(t,e),t.prototype.setRenderingModes=function(e,t){var r=this.props.scene;r.forcePointsCloud=e,r.forceWireframe=t},t.prototype.switchIBL=function(){var e=this.props.scene;e.environmentTexture?(this._storedEnvironmentTexture=e.environmentTexture,e.environmentTexture=null):(e.environmentTexture=this._storedEnvironmentTexture,this._storedEnvironmentTexture=null)},t.prototype.updateEnvironmentTexture=function(e){var t=e.name.toLowerCase().indexOf(".dds")>0,r=e.name.toLowerCase().indexOf(".env")>0;if(t||r){var n=this.props.scene;u.Tools.ReadFile(e,(function(e){var r=new Blob([e],{type:"octet/stream"}),a=URL.createObjectURL(r);n.environmentTexture=t?u.CubeTexture.CreateFromPrefilteredData(a,n,".dds"):new u.CubeTexture(a,n,void 0,void 0,void 0,(function(){}),(function(e){e&&console.error(e)}),void 0,void 0,".env")}),void 0,!0)}else console.error("Unable to update environment texture. Please select a dds or env file.")},t.prototype.updateGravity=function(e){this.props.scene.getPhysicsEngine().setGravity(e)},t.prototype.updateTimeStep=function(e){this.props.scene.getPhysicsEngine().setTimeStep(e)},t.prototype.normalizeScene=function(){this.props.scene.meshes.forEach((function(e){e.normalizeToUnitCube(!0),e.computeWorldMatrix(!0)}))},t.prototype.render=function(){var e=this,t=this.props.scene,r=t.getPhysicsEngine(),n=null;r&&(n={gravity:r.gravity,timeStep:r.getTimeStep()});var a=t.imageProcessingConfiguration,o=[{label:"Standard",value:u.ImageProcessingConfiguration.TONEMAPPING_STANDARD},{label:"ACES",value:u.ImageProcessingConfiguration.TONEMAPPING_ACES}],i=[{label:"Multiply",value:u.ImageProcessingConfiguration.VIGNETTEMODE_MULTIPLY},{label:"Opaque",value:u.ImageProcessingConfiguration.VIGNETTEMODE_OPAQUE}];return s.createElement("div",{className:"pane"},s.createElement(Oe,{globalState:this.props.globalState,title:"RENDERING MODE"},s.createElement(wt,{onSelectionChangedObservable:this._renderingModeGroupObservable,label:"Point",isSelected:function(){return t.forcePointsCloud},onSelect:function(){return e.setRenderingModes(!0,!1)}}),s.createElement(wt,{onSelectionChangedObservable:this._renderingModeGroupObservable,label:"Wireframe",isSelected:function(){return t.forceWireframe},onSelect:function(){return e.setRenderingModes(!1,!0)}}),s.createElement(wt,{onSelectionChangedObservable:this._renderingModeGroupObservable,label:"Solid",isSelected:function(){return!t.forcePointsCloud&&!t.forceWireframe},onSelect:function(){return e.setRenderingModes(!1,!1)}})),s.createElement(Oe,{globalState:this.props.globalState,title:"ENVIRONMENT"},s.createElement(Ue,{label:"Clear color",target:t,propertyName:"clearColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Clear color enabled",target:t,propertyName:"autoClear",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Ue,{label:"Ambient color",target:t,propertyName:"ambientColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Environment texture (IBL)",isSelected:function(){return null!=t.environmentTexture},onSelect:function(){return e.switchIBL()}}),t.environmentTexture&&s.createElement($e,{label:"Env. texture",texture:t.environmentTexture,onSelectionChangedObservable:this.props.onSelectionChangedObservable}),s.createElement(qe,{label:"Update environment texture",onClick:function(t){return e.updateEnvironmentTexture(t)},accept:".dds, .env"}),s.createElement(Re,{minimum:0,maximum:2,step:.01,label:"IBL Intensity",target:t,propertyName:"environmentIntensity",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(kt,{globalState:this.props.globalState,lockObject:this.props.lockObject,scene:t,onPropertyChangedObservable:this.props.onPropertyChangedObservable})),s.createElement(Ke,{globalState:this.props.globalState,animatable:t,scene:t,lockObject:this.props.lockObject}),s.createElement(Oe,{globalState:this.props.globalState,title:"MATERIAL IMAGE PROCESSING"},s.createElement(Re,{minimum:0,maximum:4,step:.1,label:"Contrast",target:a,propertyName:"contrast",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{minimum:0,maximum:4,step:.1,label:"Exposure",target:a,propertyName:"exposure",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Tone mapping",target:a,propertyName:"toneMappingEnabled",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Ae,{label:"Tone mapping type",options:o,target:a,propertyName:"toneMappingType",onPropertyChangedObservable:this.props.onPropertyChangedObservable,onSelect:function(t){return e.setState({mode:t})}}),s.createElement(we,{label:"Vignette",target:a,propertyName:"vignetteEnabled",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{minimum:0,maximum:4,step:.1,label:"Vignette weight",target:a,propertyName:"vignetteWeight",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{minimum:0,maximum:1,step:.1,label:"Vignette stretch",target:a,propertyName:"vignetteStretch",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{minimum:0,maximum:Math.PI,step:.1,label:"Vignette FOV",target:a,propertyName:"vignetteCameraFov",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{minimum:0,maximum:1,step:.1,label:"Vignette center X",target:a,propertyName:"vignetteCentreX",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{minimum:0,maximum:1,step:.1,label:"Vignette center Y",target:a,propertyName:"vignetteCentreY",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Ue,{label:"Vignette color",target:a,propertyName:"vignetteColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Ae,{label:"Vignette blend mode",options:i,target:a,propertyName:"vignetteBlendMode",onPropertyChangedObservable:this.props.onPropertyChangedObservable,onSelect:function(t){return e.setState({mode:t})}})),null!==n&&s.createElement(Oe,{globalState:this.props.globalState,title:"PHYSICS",closed:!0},s.createElement(Le,{lockObject:this.props.lockObject,label:"Time step",target:n,propertyName:"timeStep",onChange:function(t){return e.updateTimeStep(t)},onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(He,{label:"Gravity",target:n,propertyName:"gravity",onChange:function(t){return e.updateGravity(t)},onPropertyChangedObservable:this.props.onPropertyChangedObservable})),s.createElement(Oe,{globalState:this.props.globalState,title:"COLLISIONS",closed:!0},s.createElement(He,{label:"Gravity",target:t,propertyName:"gravity",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),s.createElement(Oe,{globalState:this.props.globalState,title:"SHADOWS",closed:!0},s.createElement(Ze,{label:"Normalize scene",onClick:function(){return e.normalizeScene()}})))},t}(s.Component),Tt=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this,t=this.props.light;return s.createElement("div",null,s.createElement(Ye,{globalState:this.props.globalState,target:t,lockObject:this.props.lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Oe,{globalState:this.props.globalState,title:"GENERAL"},s.createElement(Ee,{label:"ID",value:t.id}),s.createElement(We,{lockObject:this.props.lockObject,label:"Name",target:t,propertyName:"name",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Ee,{label:"Unique ID",value:t.uniqueId.toString()}),s.createElement(Ee,{label:"Class",value:t.getClassName()}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Intensity",target:t,propertyName:"intensity",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Ze,{label:"Dispose",onClick:function(){t.dispose(),e.props.globalState.onSelectionChangedObservable.notifyObservers(null)}})),s.createElement(Ke,{globalState:this.props.globalState,animatable:t,scene:t.getScene(),lockObject:this.props.lockObject}))},t}(s.Component),_t=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.light;return s.createElement("div",{className:"pane"},s.createElement(Tt,{globalState:this.props.globalState,lockObject:this.props.lockObject,light:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Oe,{globalState:this.props.globalState,title:"SETUP"},s.createElement(Ue,{label:"Diffuse",target:e,propertyName:"diffuse",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Ue,{label:"Ground",target:e,propertyName:"groundColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(He,{label:"Direction",target:e,propertyName:"direction",onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(s.Component),Mt=function(e){function t(t){var r=e.call(this,t)||this;return r._internals={generatorType:0,mapSize:1024},r}return a(t,e),t.prototype.createShadowGenerator=function(){var e=this.props.light,t=e.getScene(),r=this._internals,n=0===r.generatorType?new u.ShadowGenerator(r.mapSize,e):new u.CascadedShadowGenerator(r.mapSize,e);t.meshes.forEach((function(e){e.infiniteDistance||(n.addShadowCaster(e),e.isAnInstance||(e.receiveShadows=!0))})),this.forceUpdate()},t.prototype.disposeShadowGenerator=function(){var e;null===(e=this.props.light.getShadowGenerator())||void 0===e||e.dispose(),this.forceUpdate()},t.prototype.render=function(){var e=this,t=this.props.light,r=this._internals,n=t.getShadowGenerator()||null,a=n instanceof u.CascadedShadowGenerator,o=t.getScene().activeCamera,i=[{label:"Shadow Generator",value:0}];t instanceof u.DirectionalLight&&i.push({label:"Cascaded Shadow Generator",value:1});var l;l=n instanceof u.CascadedShadowGenerator?[{label:"None",value:u.ShadowGenerator.FILTER_NONE},{label:"PCF",value:u.ShadowGenerator.FILTER_PCF},{label:"PCSS",value:u.ShadowGenerator.FILTER_PCSS}]:[{label:"None",value:u.ShadowGenerator.FILTER_NONE},{label:"PCF",value:u.ShadowGenerator.FILTER_PCF},{label:"PCSS",value:u.ShadowGenerator.FILTER_PCSS},{label:"Poisson",value:u.ShadowGenerator.FILTER_POISSONSAMPLING},{label:"Exponential",value:u.ShadowGenerator.FILTER_EXPONENTIALSHADOWMAP},{label:"Blurred exponential",value:u.ShadowGenerator.FILTER_BLUREXPONENTIALSHADOWMAP},{label:"Close exponential",value:u.ShadowGenerator.FILTER_CLOSEEXPONENTIALSHADOWMAP},{label:"Blurred close exponential",value:u.ShadowGenerator.FILTER_BLURCLOSEEXPONENTIALSHADOWMAP}];var p=[{label:"Low",value:u.ShadowGenerator.QUALITY_LOW},{label:"Medium",value:u.ShadowGenerator.QUALITY_MEDIUM},{label:"High",value:u.ShadowGenerator.QUALITY_HIGH}],c=o?o.minZ:0,d=o?o.maxZ:0,h=n?n.filter:0;return s.createElement("div",null,s.createElement(Oe,{globalState:this.props.globalState,title:"SHADOWS"},s.createElement(we,{label:"Shadows enabled",target:t,propertyName:"shadowEnabled",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),!a&&s.createElement(s.Fragment,null,s.createElement(Le,{lockObject:this.props.lockObject,label:"Shadows near plane",target:t,propertyName:"shadowMinZ",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Shadows far plane",target:t,propertyName:"shadowMaxZ",onPropertyChangedObservable:this.props.onPropertyChangedObservable}))),null==n&&s.createElement(Oe,{globalState:this.props.globalState,title:"SHADOW GENERATOR"},s.createElement(Ae,{label:"Type",options:i,target:r,propertyName:"generatorType"}),s.createElement(Ae,{label:"Map size",options:[{label:"2048x2048",value:2048},{label:"1024x1024",value:1024},{label:"512x512",value:512},{label:"256x256",value:256}],target:r,propertyName:"mapSize"}),s.createElement(Ze,{label:"Create generator",onClick:function(){return e.createShadowGenerator()}})),null!==n&&s.createElement(Oe,{globalState:this.props.globalState,title:"SHADOW GENERATOR"},s.createElement(Ze,{label:"Dispose generator",onClick:function(){return e.disposeShadowGenerator()}}),a&&s.createElement(s.Fragment,null,s.createElement(Ae,{label:"Num cascades",options:[{label:"2",value:2},{label:"3",value:3},{label:"4",value:4}],target:n,propertyName:"numCascades",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Debug mode",target:n,propertyName:"debug",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Stabilize cascades",target:n,propertyName:"stabilizeCascades",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Lambda",minimum:0,maximum:1,step:.01,target:n,propertyName:"lambda",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Cascade blend",minimum:0,maximum:1,step:.01,target:n,propertyName:"cascadeBlendPercentage",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Depth clamp",target:n,propertyName:"depthClamp",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Auto-Calc depth bounds",target:n,propertyName:"autoCalcDepthBounds",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Shadow MaxZ",minimum:c,maximum:d,step:.5,target:n,propertyName:"shadowMaxZ",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),s.createElement(Le,{lockObject:this.props.lockObject,digits:4,step:"0.0001",label:"Bias",target:n,propertyName:"bias",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Normal bias",target:n,propertyName:"normalBias",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Darkness",target:n,minimum:0,maximum:1,step:.01,propertyName:"darkness",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Allow transparent shadows",target:n,propertyName:"transparencyShadow",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Ae,{label:"Filter",options:l,onSelect:function(){e.forceUpdate()},target:n,propertyName:"filter",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),(h===u.ShadowGenerator.FILTER_PCF||h===u.ShadowGenerator.FILTER_PCSS)&&s.createElement(Ae,{label:"Filtering quality",options:p,onSelect:function(){e.forceUpdate()},target:n,propertyName:"filteringQuality",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),h===u.ShadowGenerator.FILTER_PCSS&&s.createElement(Re,{label:"Penumbra ratio",minimum:0,maximum:.5,step:.001,target:n,propertyName:"contactHardeningLightSizeUVRatio",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),!a&&(h===u.ShadowGenerator.FILTER_BLUREXPONENTIALSHADOWMAP||h===u.ShadowGenerator.FILTER_BLURCLOSEEXPONENTIALSHADOWMAP)&&s.createElement(we,{label:"Use kernel blur",target:n,propertyName:"useKernelBlur",onValueChanged:function(){return e.forceUpdate()},onPropertyChangedObservable:this.props.onPropertyChangedObservable}),n instanceof u.ShadowGenerator&&(h===u.ShadowGenerator.FILTER_BLUREXPONENTIALSHADOWMAP||h===u.ShadowGenerator.FILTER_BLURCLOSEEXPONENTIALSHADOWMAP)&&!n.useKernelBlur&&s.createElement(Re,{label:"Blur box offset",target:n,propertyName:"blurBoxOffset",minimum:1,maximum:64,step:1,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),n instanceof u.ShadowGenerator&&(h===u.ShadowGenerator.FILTER_BLUREXPONENTIALSHADOWMAP||h===u.ShadowGenerator.FILTER_BLURCLOSEEXPONENTIALSHADOWMAP)&&n.useKernelBlur&&s.createElement(Re,{label:"Blur kernel",target:n,propertyName:"blurKernel",minimum:1,maximum:64,step:1,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),n instanceof u.ShadowGenerator&&(h===u.ShadowGenerator.FILTER_BLUREXPONENTIALSHADOWMAP||h===u.ShadowGenerator.FILTER_EXPONENTIALSHADOWMAP)&&s.createElement(Le,{lockObject:this.props.lockObject,label:"Depth scale",target:n,propertyName:"depthScale",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),n instanceof u.ShadowGenerator&&(h===u.ShadowGenerator.FILTER_BLUREXPONENTIALSHADOWMAP||h===u.ShadowGenerator.FILTER_EXPONENTIALSHADOWMAP)&&s.createElement(Re,{label:"Blur scale",target:n,propertyName:"blurScale",minimum:1,maximum:4,step:1,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),a&&h===u.ShadowGenerator.FILTER_PCSS&&s.createElement(Re,{label:"Penumbra darkness",minimum:0,maximum:1,step:.01,target:n,propertyName:"penumbraDarkness",onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(s.Component),Lt=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.light;return s.createElement("div",{className:"pane"},s.createElement(Tt,{globalState:this.props.globalState,lockObject:this.props.lockObject,light:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Oe,{globalState:this.props.globalState,title:"SETUP"},s.createElement(Ue,{label:"Diffuse",target:e,propertyName:"diffuse",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Ue,{label:"Specular",target:e,propertyName:"specular",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(He,{label:"Position",target:e,propertyName:"position",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),s.createElement(Mt,{globalState:this.props.globalState,lockObject:this.props.lockObject,light:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}))},t}(s.Component),Rt=function(e){function t(t){var r=e.call(this,t)||this;r._localChange=!1,r._propertyChange=!0;var n=r.props.target[r.props.propertyName];return r.state={value:n?r.props.isInteger?n.toFixed(0):n.toFixed(r.props.digits||3):"0"},r._store=n,r}return a(t,e),t.prototype.componentWillUnmount=function(){this.unlock()},t.prototype.shouldComponentUpdate=function(e,t){if(this._localChange)return this._localChange=!1,!0;var r=e.target[e.propertyName],n=r?this.props.isInteger?r.toFixed(0):r.toFixed(this.props.digits||3):"0";return n!==t.value&&(t.value=n,!0)},t.prototype.raiseOnPropertyChanged=function(e,t){var r;this.props.onChange&&this.props.onChange(e),this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:null!==(r=this.props.replaySourceReplacement)&&void 0!==r?r:this.props.target,property:this.props.propertyName,value:e,initialValue:t})},t.prototype.convertToHexString=function(e){for(;e.length<10;)e+="0";return e},t.prototype.updateValue=function(e,t){"0x"!=e.substr(0,2)&&(e="0"!=e.substr(0,1)?"0x"+e:"0x"+e.substr(1));var r=e.substr(2);if(!(""!=r&&0==/^[0-9A-Fa-f]+$/g.test(r)||e.length>10)){var n,a=this.convertToHexString(e);n=parseInt(a),isNaN(n)||void 0===this.props.min||n<this.props.min&&(e=(n=this.props.min).toString()),this._localChange=!0,isNaN(n)||(this.setState({value:e}),t?(this._propertyChange=!0,this.props.target[this.props.propertyName]=n,this.raiseOnPropertyChanged(n,this._store)):this._propertyChange=!1,this._store=n)}},t.prototype.lock=function(){this.props.lockObject&&(this.props.lockObject.lock=!0)},t.prototype.unlock=function(){this.props.lockObject&&(this.props.lockObject.lock=!1)},t.prototype.render=function(){var e,t=this;if(this._propertyChange){e=parseInt(this.state.value).toString(16);for(var r="",n=0;n<8-e.length;n++)r+="0";e="0x"+e.toUpperCase()+r}else e=this.state.value;return s.createElement("div",null,!this.props.useEuler&&s.createElement("div",{className:this.props.additionalClass?this.props.additionalClass+" floatLine":"floatLine"},s.createElement("div",{className:"label",title:this.props.label},this.props.label),s.createElement("div",{className:"value"},s.createElement("input",{type:"string",className:"hex-input",value:e,onBlur:function(){return t.unlock()},onFocus:function(){return t.lock()},onChange:function(e){return t.updateValue(e.target.value,!1)},onKeyDown:function(e){13===e.keyCode&&t.updateValue(t.state.value,!0)}}))))},t}(s.Component),Dt=function(e){function t(t){var r=e.call(this,t)||this;return r.state={mode:r.props.camera.mode},r}return a(t,e),t.prototype.render=function(){var e=this,t=this.props.camera,r=[{label:"Perspective",value:u.Camera.PERSPECTIVE_CAMERA},{label:"Orthographic",value:u.Camera.ORTHOGRAPHIC_CAMERA}];return s.createElement("div",null,s.createElement(Ye,{globalState:this.props.globalState,target:t,lockObject:this.props.lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Oe,{globalState:this.props.globalState,title:"GENERAL"},s.createElement(Ee,{label:"ID",value:t.id}),s.createElement(We,{lockObject:this.props.lockObject,label:"Name",target:t,propertyName:"name",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Ee,{label:"Unique ID",value:t.uniqueId.toString()}),s.createElement(Ee,{label:"Class",value:t.getClassName()}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Near plane",target:t,propertyName:"minZ",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Far plane",target:t,propertyName:"maxZ",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Inertia",target:t,propertyName:"inertia",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Rt,{isInteger:!0,lockObject:this.props.lockObject,label:"Layer mask",target:t,propertyName:"layerMask",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Ae,{label:"Mode",options:r,target:t,propertyName:"mode",onPropertyChangedObservable:this.props.onPropertyChangedObservable,onSelect:function(t){return e.setState({mode:t})}}),t.mode===u.Camera.PERSPECTIVE_CAMERA&&s.createElement(Re,{label:"Field of view",target:t,useEuler:this.props.globalState.onlyUseEulers,propertyName:"fov",minimum:.1,maximum:Math.PI,step:.1,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),t.mode===u.Camera.ORTHOGRAPHIC_CAMERA&&s.createElement(Le,{lockObject:this.props.lockObject,label:"Left",target:t,propertyName:"orthoLeft",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),t.mode===u.Camera.ORTHOGRAPHIC_CAMERA&&s.createElement(Le,{lockObject:this.props.lockObject,label:"Top",target:t,propertyName:"orthoTop",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),t.mode===u.Camera.ORTHOGRAPHIC_CAMERA&&s.createElement(Le,{lockObject:this.props.lockObject,label:"Right",target:t,propertyName:"orthoRight",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),t.mode===u.Camera.ORTHOGRAPHIC_CAMERA&&s.createElement(Le,{lockObject:this.props.lockObject,label:"Bottom",target:t,propertyName:"orthoBottom",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Ze,{label:"Dispose",onClick:function(){t.dispose(),e.props.globalState.onSelectionChangedObservable.notifyObservers(null)}})),s.createElement(Ke,{globalState:this.props.globalState,animatable:t,scene:t.getScene(),lockObject:this.props.lockObject}))},t}(s.Component),At=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.camera;return s.createElement("div",{className:"pane"},s.createElement(Dt,{globalState:this.props.globalState,lockObject:this.props.lockObject,camera:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Oe,{globalState:this.props.globalState,title:"TRANSFORMS"},s.createElement(He,{label:"Target",target:e,propertyName:"target",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(He,{label:"Position",target:e,propertyName:"position",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(He,{label:"Rotation",noSlider:!0,useEuler:this.props.globalState.onlyUseEulers,target:e,propertyName:"rotation",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),s.createElement(Oe,{globalState:this.props.globalState,title:"CONTROLS",closed:!0},s.createElement(Le,{lockObject:this.props.lockObject,label:"Angular sensitivity",target:e,propertyName:"angularSensibility",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Speed",target:e,propertyName:"speed",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),s.createElement(Oe,{globalState:this.props.globalState,title:"COLLISIONS",closed:!0},s.createElement(we,{label:"Check collisions",target:e,propertyName:"checkCollisions",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Apply gravity",target:e,propertyName:"applyGravity",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(He,{label:"Ellipsoid",target:e,propertyName:"ellipsoid",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(He,{label:"Ellipsoid offset",target:e,propertyName:"ellipsoidOffset",onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(s.Component),It=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.camera;return s.createElement("div",{className:"pane"},s.createElement(Dt,{globalState:this.props.globalState,lockObject:this.props.lockObject,camera:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Oe,{globalState:this.props.globalState,title:"TRANSFORMS"},s.createElement(He,{label:"Target",target:e,propertyName:"target",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Alpha",useEuler:this.props.globalState.onlyUseEulers,target:e,propertyName:"alpha",minimum:e.lowerAlphaLimit||0,maximum:e.upperAlphaLimit||2*Math.PI,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Beta",useEuler:this.props.globalState.onlyUseEulers,target:e,propertyName:"beta",minimum:e.lowerAlphaLimit||0,maximum:e.upperBetaLimit||2*Math.PI,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Radius",target:e,propertyName:"radius",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),s.createElement(Oe,{globalState:this.props.globalState,title:"CONTROLS",closed:!0},s.createElement(Le,{lockObject:this.props.lockObject,label:"Angular sensitivity X",target:e,propertyName:"angularSensibilityX",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Angular sensitivity Y",target:e,propertyName:"angularSensibilityY",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Panning sensitivity",target:e,propertyName:"panningSensibility",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Pinch delta percentage",target:e,propertyName:"pinchDeltaPercentage",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Wheel delta percentage",target:e,propertyName:"wheelDeltaPercentage",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Speed",target:e,propertyName:"speed",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),s.createElement(Oe,{globalState:this.props.globalState,title:"COLLISIONS",closed:!0},s.createElement(we,{label:"Check collisions",target:e,propertyName:"checkCollisions",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(He,{label:"Collision radius",target:e,propertyName:"collisionRadius",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),s.createElement(Oe,{globalState:this.props.globalState,title:"LIMITS",closed:!0},s.createElement(Le,{lockObject:this.props.lockObject,label:"Lower alpha limit",target:e,propertyName:"lowerAlphaLimit",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Upper alpha limit",target:e,propertyName:"upperAlphaLimit",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Lower beta limit",target:e,propertyName:"lowerBetaLimit",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Upper beta limit",target:e,propertyName:"upperBetaLimit",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Lower radius limit",target:e,propertyName:"lowerRadiusLimit",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Upper radius limit",target:e,propertyName:"upperRadiusLimit",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),s.createElement(Oe,{globalState:this.props.globalState,title:"BEHAVIORS",closed:!0},s.createElement(we,{label:"Auto rotation",target:e,propertyName:"useAutoRotationBehavior",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Bouncing",target:e,propertyName:"useBouncingBehavior",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Framing",target:e,propertyName:"useFramingBehavior",onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(s.Component),jt=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype._getVariantsExtension=function(){var e;return null===(e=this.props.globalState)||void 0===e?void 0:e.glTFLoaderExtensions.KHR_materials_variants},t.prototype.render=function(){var e=this,t=this._getVariantsExtension();if(!t)return null;var r=t.getAvailableVariants(this.props.host);if(!r||0===r.length)return null;var n=r.sort().map((function(e,t){return{label:e,value:t+1}}));return n.splice(0,0,{label:"Original",value:0}),s.createElement("div",null,s.createElement(Oe,{globalState:this.props.globalState,title:"VARIANTS"},s.createElement(Ae,{label:"Active variant",options:n,noDirectUpdate:!0,target:this.props.host,propertyName:"",onSelect:function(n){0===n?t.reset(e.props.host):t.selectVariant(e.props.host,r[n-1]),e.forceUpdate()},extractValue:function(){var n=t.getLastSelectedVariant(e.props.host)||0,a=0;return n&&"[object String]"===Object.prototype.toString.call(n)&&(a=r.indexOf(n))>-1&&(a+=1),a}})))},t}(s.Component),zt=function(e){function t(t){var r=e.call(this,t)||this,n=r.props.mesh;return r.state={displayNormals:!1,displayVertexColors:!1,displayBoneWeights:!(!n.material||"BoneWeightShader"!==n.material.getClassName()),displayBoneIndex:0,displaySkeletonMap:!1},r}return a(t,e),t.prototype.renderWireframeOver=function(){var e=this.props.mesh,t=e.getScene();if(e.reservedDataStore&&e.reservedDataStore.wireframeOver)return e.reservedDataStore.wireframeOver.dispose(!1,!0),e.reservedDataStore.wireframeOver=null,void this.forceUpdate();var r=e.clone();r.reservedDataStore={hidden:!0},r.parent=e,r.position=u.Vector3.Zero(),r.scaling=new u.Vector3(1,1,1),r.rotation=u.Vector3.Zero(),r.rotationQuaternion=null;var n=new u.StandardMaterial("wireframeOver",t);n.reservedDataStore={hidden:!0},r.material=n,n.zOffset=1,n.disableLighting=!0,n.backFaceCulling=!1,n.emissiveColor=u.Color3.White(),n.wireframe=!0,e.reservedDataStore||(e.reservedDataStore={}),e.reservedDataStore.wireframeOver=r,this.forceUpdate()},t.prototype.renderNormalVectors=function(){var e=this.props.mesh,t=e.getScene();if(e.reservedDataStore&&e.reservedDataStore.normalLines)return e.reservedDataStore.normalLines.dispose(),e.reservedDataStore.normalLines=null,void this.forceUpdate();for(var r=e.getVerticesData(u.VertexBuffer.NormalKind),n=e.getVerticesData(u.VertexBuffer.PositionKind),a=u.Color3.White(),o=e.getBoundingInfo(),i=.05*o.maximum.subtractToRef(o.minimum,u.TmpVectors.Vector3[0]).length(),l=[],s=0;s<r.length;s+=3){var p=u.Vector3.FromArray(n,s),c=p.add(u.Vector3.FromArray(r,s).scaleInPlace(i));l.push([p,c])}var d=u.LinesBuilder.CreateLineSystem("normalLines",{lines:l},t);d.color=a,d.parent=e,d.reservedDataStore={hidden:!0},e.reservedDataStore||(e.reservedDataStore={}),e.reservedDataStore.normalLines=d,this.forceUpdate()},t.prototype.displayNormals=function(){var e=this,t=this.props.mesh,r=t.getScene();if(t.material&&"NormalMaterial"===t.material.getClassName())t.material.dispose(),t.material=t.reservedDataStore.originalMaterial,t.reservedDataStore.originalMaterial=null,this.setState({displayNormals:!1});else{if(!BABYLON.NormalMaterial)return this.setState({displayNormals:!0}),void u.Tools.LoadScript("https://preview.babylonjs.com/materialsLibrary/babylonjs.materials.js",(function(){e.displayNormals()}));t.reservedDataStore||(t.reservedDataStore={}),t.reservedDataStore.originalMaterial||(t.reservedDataStore.originalMaterial=t.material);var n=new BABYLON.NormalMaterial("normalMaterial",r);n.disableLighting=!0,t.material&&(n.sideOrientation=t.material.sideOrientation),n.reservedDataStore={hidden:!0},t.material=n,this.setState({displayNormals:!0})}},t.prototype.displayVertexColors=function(){var e=this.props.mesh,t=e.getScene();if(e.material&&e.material.reservedDataStore&&e.material.reservedDataStore.isVertexColorMaterial)e.material.dispose(),e.material=e.reservedDataStore.originalMaterial,e.reservedDataStore.originalMaterial=null,this.setState({displayVertexColors:!1});else{e.reservedDataStore||(e.reservedDataStore={}),e.reservedDataStore.originalMaterial||(e.reservedDataStore.originalMaterial=e.material);var r=new u.StandardMaterial("vertex colors",t);r.disableLighting=!0,r.emissiveColor=u.Color3.White(),e.material&&(r.sideOrientation=e.material.sideOrientation),r.reservedDataStore={hidden:!0,isVertexColorMaterial:!0},e.useVertexColors=!0,e.material=r,this.setState({displayVertexColors:!0})}},t.prototype.displayBoneWeights=function(){var e=this.props.mesh,t=e.getScene();if(e.material&&"BoneWeightShader"===e.material.getClassName())e.material.dispose(),e.material=e.reservedDataStore.originalMaterial,e.reservedDataStore.originalMaterial=null,this.setState({displayBoneWeights:!1});else if(e.reservedDataStore||(e.reservedDataStore={}),e.reservedDataStore.originalMaterial||(e.reservedDataStore.originalMaterial=e.material),e.reservedDataStore.displayBoneIndex||(e.reservedDataStore.displayBoneIndex=this.state.displayBoneIndex),e.skeleton){var r=u.SkeletonViewer.CreateBoneWeightShader({skeleton:e.skeleton},t);r.reservedDataStore={hidden:!0},e.material=r,this.setState({displayBoneWeights:!0})}},t.prototype.displaySkeletonMap=function(){var e=this.props.mesh,t=e.getScene();if(e.material&&"SkeletonMapShader"===e.material.getClassName())e.material.dispose(),e.material=e.reservedDataStore.originalMaterial,e.reservedDataStore.originalMaterial=null,this.setState({displaySkeletonMap:!1});else if(e.reservedDataStore||(e.reservedDataStore={}),e.reservedDataStore.originalMaterial||(e.reservedDataStore.originalMaterial=e.material),e.skeleton){var r=u.SkeletonViewer.CreateSkeletonMapShader({skeleton:e.skeleton},t);r.reservedDataStore={hidden:!0},e.material=r,this.setState({displaySkeletonMap:!0})}},t.prototype.onBoneDisplayIndexChange=function(e){var t=this.props.mesh;t.reservedDataStore.displayBoneIndex=e,this.setState({displayBoneIndex:e}),t.material&&"BoneWeightShader"===t.material.getClassName()&&t.material.setFloat("targetBoneIndex",e)},t.prototype.onMaterialLink=function(){if(this.props.onSelectionChangedObservable){var e=this.props.mesh;this.props.onSelectionChangedObservable.notifyObservers(e.material)}},t.prototype.onSourceMeshLink=function(){if(this.props.onSelectionChangedObservable){var e=this.props.mesh;this.props.onSelectionChangedObservable.notifyObservers(e.sourceMesh)}},t.prototype.onSkeletonLink=function(){if(this.props.onSelectionChangedObservable){var e=this.props.mesh;this.props.onSelectionChangedObservable.notifyObservers(e.skeleton)}},t.prototype.convertPhysicsTypeToString=function(){switch(this.props.mesh.physicsImpostor.type){case u.PhysicsImpostor.NoImpostor:return"No impostor";case u.PhysicsImpostor.SphereImpostor:return"Sphere";case u.PhysicsImpostor.BoxImpostor:return"Box";case u.PhysicsImpostor.PlaneImpostor:return"Plane";case u.PhysicsImpostor.MeshImpostor:return"Mesh";case u.PhysicsImpostor.CylinderImpostor:return"Cylinder";case u.PhysicsImpostor.ParticleImpostor:return"Particle";case u.PhysicsImpostor.HeightmapImpostor:return"Heightmap";case u.PhysicsImpostor.ConvexHullImpostor:return"Convex hull";case u.PhysicsImpostor.RopeImpostor:return"Rope";case u.PhysicsImpostor.SoftbodyImpostor:return"Soft body"}return"Unknown"},t.prototype.render=function(){var e,t=this,r=this.props.mesh,n=r.getScene(),a=null!=r.material&&"NormalMaterial"===r.material.getClassName(),o=!(null==r.material||!r.material.reservedDataStore||!r.material.reservedDataStore.isVertexColorMaterial),i=!(!r.reservedDataStore||!r.reservedDataStore.normalLines),l=!(!r.reservedDataStore||!r.reservedDataStore.wireframeOver),p=null!=r.material&&"BoneWeightShader"===r.material.getClassName(),c=null!=r.material&&"SkeletonMapShader"===r.material.getClassName(),d=[];if(r.morphTargetManager)for(var h=0;h<r.morphTargetManager.numTargets;h++)d.push(r.morphTargetManager.getTarget(h));var b=[{label:"Accurate",value:u.AbstractMesh.OCCLUSION_ALGORITHM_TYPE_ACCURATE},{label:"Conservative",value:u.AbstractMesh.OCCLUSION_ALGORITHM_TYPE_CONSERVATIVE}],m=[{label:"None",value:u.AbstractMesh.OCCLUSION_TYPE_NONE},{label:"Optimistic",value:u.AbstractMesh.OCCLUSION_TYPE_OPTIMISTIC},{label:"Strict",value:u.AbstractMesh.OCCLUSION_TYPE_STRICT}],g=n.materials.slice(0).sort((function(e,t){return(e.name||"no name").localeCompare(t.name||"no name")})),f=g.map((function(e,t){return{label:e.name||"no name",value:t}}));f.splice(0,0,{label:"None (Default Fallback)",value:-1});var v=r.skeleton?r.skeleton.bones.filter((function(e){return e.getIndex()>=0})).sort((function(e,t){return e.getIndex()-t.getIndex()})).map((function(e,t){return{label:e.name,value:e.getIndex()}})):[];return s.createElement("div",{className:"pane"},s.createElement(Ye,{globalState:this.props.globalState,target:r,lockObject:this.props.lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Oe,{globalState:this.props.globalState,title:"GENERAL"},s.createElement(Ee,{label:"ID",value:r.id}),s.createElement(We,{lockObject:this.props.lockObject,label:"Name",target:r,propertyName:"name",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Ee,{label:"Unique ID",value:r.uniqueId.toString()}),s.createElement(Ee,{label:"Class",value:r.getClassName()}),s.createElement(Ee,{label:"Vertices",value:r.getTotalVertices().toString()}),s.createElement(Ee,{label:"Faces",value:(r.getTotalIndices()/3).toFixed(0)}),s.createElement(Ee,{label:"Sub-meshes",value:r.subMeshes?r.subMeshes.length.toString():"0"}),r.parent&&s.createElement(Ee,{label:"Parent",value:r.parent.name,onLink:function(){return t.props.globalState.onSelectionChangedObservable.notifyObservers(r.parent)}}),r.skeleton&&s.createElement(Ee,{label:"Skeleton",value:r.skeleton.name,onLink:function(){return t.onSkeletonLink()}}),s.createElement(we,{label:"Is enabled",isSelected:function(){return r.isEnabled()},onSelect:function(e){return r.setEnabled(e)}}),s.createElement(we,{label:"Is pickable",target:r,propertyName:"isPickable",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),r.material&&(!r.material.reservedDataStore||!r.material.reservedDataStore.hidden)&&s.createElement(Ee,{label:"Link to material",value:r.material.name,onLink:function(){return t.onMaterialLink()}}),!r.isAnInstance&&s.createElement(Ae,{label:"Active material",options:f,target:r,propertyName:"material",noDirectUpdate:!0,onSelect:function(e){r.material=e<0?null:g[e],t.forceUpdate()},extractValue:function(){return r.material?g.indexOf(r.material):-1},onPropertyChangedObservable:this.props.onPropertyChangedObservable}),r.isAnInstance&&s.createElement(Ee,{label:"Source",value:r.sourceMesh.name,onLink:function(){return t.onSourceMeshLink()}}),s.createElement(Ze,{label:"Dispose",onClick:function(){r.dispose(),t.props.globalState.onSelectionChangedObservable.notifyObservers(null)}})),s.createElement(jt,{host:r,lockObject:this.props.lockObject,globalState:this.props.globalState}),s.createElement(Oe,{globalState:this.props.globalState,title:"TRANSFORMS"},s.createElement(He,{label:"Position",target:r,propertyName:"position",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),!r.rotationQuaternion&&s.createElement(He,{label:"Rotation",useEuler:this.props.globalState.onlyUseEulers,target:r,propertyName:"rotation",step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),r.rotationQuaternion&&s.createElement(Be,{label:"Rotation",useEuler:this.props.globalState.onlyUseEulers,target:r,propertyName:"rotationQuaternion",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(He,{label:"Scaling",target:r,propertyName:"scaling",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),s.createElement(Oe,{globalState:this.props.globalState,title:"DISPLAY",closed:!0},!r.isAnInstance&&s.createElement(Re,{label:"Visibility",target:r,propertyName:"visibility",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Alpha index",target:r,propertyName:"alphaIndex",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Receive shadows",target:r,propertyName:"receiveShadows",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),r.isVerticesDataPresent(u.VertexBuffer.ColorKind)&&s.createElement(we,{label:"Use vertex colors",target:r,propertyName:"useVertexColors",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),r.isVerticesDataPresent(u.VertexBuffer.ColorKind)&&s.createElement(we,{label:"Has vertex alpha",target:r,propertyName:"hasVertexAlpha",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),n.fogMode!==u.Scene.FOGMODE_NONE&&s.createElement(we,{label:"Apply fog",target:r,propertyName:"applyFog",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),!r.parent&&s.createElement(we,{label:"Infinite distance",target:r,propertyName:"infiniteDistance",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Rendering group ID",decimalCount:0,target:r,propertyName:"renderingGroupId",minimum:u.RenderingManager.MIN_RENDERINGGROUPS,maximum:u.RenderingManager.MAX_RENDERINGGROUPS-1,step:1,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Rt,{isInteger:!0,lockObject:this.props.lockObject,label:"Layer mask",target:r,propertyName:"layerMask",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),null!=r.morphTargetManager&&s.createElement(Oe,{globalState:this.props.globalState,title:"MORPH TARGETS",closed:!0},d.map((function(e,r){return s.createElement(Re,{key:r,label:e.name,target:e,propertyName:"influence",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:t.props.onPropertyChangedObservable})}))),s.createElement(Ke,{globalState:this.props.globalState,animatable:r,scene:r.getScene(),lockObject:this.props.lockObject}),s.createElement(Oe,{globalState:this.props.globalState,title:"ADVANCED",closed:!0},r.useBones&&s.createElement(we,{label:"Compute bones using shaders",target:r,propertyName:"computeBonesUsingShaders",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Collisions",target:r,propertyName:"checkCollisions",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Ee,{label:"Geometry ID",value:null===(e=r.geometry)||void 0===e?void 0:e.uniqueId.toString()}),s.createElement(Ee,{label:"Has normals",value:r.isVerticesDataPresent(u.VertexBuffer.NormalKind)?"Yes":"No"}),s.createElement(Ee,{label:"Has vertex colors",value:r.isVerticesDataPresent(u.VertexBuffer.ColorKind)?"Yes":"No"}),s.createElement(Ee,{label:"Has UV set 0",value:r.isVerticesDataPresent(u.VertexBuffer.UVKind)?"Yes":"No"}),s.createElement(Ee,{label:"Has UV set 1",value:r.isVerticesDataPresent(u.VertexBuffer.UV2Kind)?"Yes":"No"}),s.createElement(Ee,{label:"Has UV set 2",value:r.isVerticesDataPresent(u.VertexBuffer.UV3Kind)?"Yes":"No"}),s.createElement(Ee,{label:"Has UV set 3",value:r.isVerticesDataPresent(u.VertexBuffer.UV4Kind)?"Yes":"No"}),s.createElement(Ee,{label:"Has tangents",value:r.isVerticesDataPresent(u.VertexBuffer.TangentKind)?"Yes":"No"}),s.createElement(Ee,{label:"Has matrix weights",value:r.isVerticesDataPresent(u.VertexBuffer.MatricesWeightsKind)?"Yes":"No"}),s.createElement(Ee,{label:"Has matrix indices",value:r.isVerticesDataPresent(u.VertexBuffer.MatricesIndicesKind)?"Yes":"No"})),null!=r.physicsImpostor&&s.createElement(Oe,{globalState:this.props.globalState,title:"PHYSICS",closed:!0},s.createElement(Le,{lockObject:this.props.lockObject,label:"Mass",target:r.physicsImpostor,propertyName:"mass",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Friction",target:r.physicsImpostor,propertyName:"friction",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Restitution",target:r.physicsImpostor,propertyName:"restitution",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Ee,{label:"Type",value:this.convertPhysicsTypeToString()})),s.createElement(Oe,{globalState:this.props.globalState,title:"OCCLUSIONS",closed:!0},s.createElement(Ae,{label:"Type",options:m,target:r,propertyName:"occlusionType",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Retry count",minimum:-1,maximum:10,decimalCount:0,step:1,target:r,propertyName:"occlusionRetryCount",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Ae,{label:"Algorithm",options:b,target:r,propertyName:"occlusionQueryAlgorithmType",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),s.createElement(Oe,{globalState:this.props.globalState,title:"EDGE RENDERING",closed:!0},s.createElement(we,{label:"Enable",target:r,isSelected:function(){return null!=r.edgesRenderer},onSelect:function(e){e?r.enableEdgesRendering():r.disableEdgesRendering()}}),s.createElement(Re,{label:"Edge width",minimum:0,maximum:10,step:.1,target:r,propertyName:"edgesWidth",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Ue,{label:"Edge color",target:r,propertyName:"edgesColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),!r.isAnInstance&&s.createElement(Oe,{globalState:this.props.globalState,title:"OUTLINE & OVERLAY",closed:!0},s.createElement(we,{label:"Render overlay",target:r,propertyName:"renderOverlay",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Ue,{label:"Overlay color",target:r,propertyName:"overlayColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Render outline",target:r,propertyName:"renderOutline",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Ue,{label:"Outline color",target:r,propertyName:"outlineColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),s.createElement(Oe,{globalState:this.props.globalState,title:"DEBUG",closed:!0},!r.isAnInstance&&s.createElement(we,{label:"Display normals",isSelected:function(){return a},onSelect:function(){return t.displayNormals()}}),!r.isAnInstance&&s.createElement(we,{label:"Display vertex colors",isSelected:function(){return o},onSelect:function(){return t.displayVertexColors()}}),r.isVerticesDataPresent(u.VertexBuffer.NormalKind)&&s.createElement(we,{label:"Render vertex normals",isSelected:function(){return i},onSelect:function(){return t.renderNormalVectors()}}),!r.isAnInstance&&s.createElement(we,{label:"Render wireframe over mesh",isSelected:function(){return l},onSelect:function(){return t.renderWireframeOver()}}),!r.isAnInstance&&r.skeleton&&s.createElement(we,{label:"Display BoneWeights",isSelected:function(){return p},onSelect:function(){return t.displayBoneWeights()}}),!r.isAnInstance&&this.state.displayBoneWeights&&r.skeleton&&s.createElement(Ae,{label:"Target Bone Name",options:v,target:r.reservedDataStore,propertyName:"displayBoneIndex",noDirectUpdate:!0,onSelect:function(e){t.onBoneDisplayIndexChange(e),t.forceUpdate()}}),!r.isAnInstance&&this.state.displayBoneWeights&&r.skeleton&&s.createElement(Re,{label:"Target Bone",decimalCount:0,target:r.reservedDataStore,propertyName:"displayBoneIndex",minimum:0,maximum:v.length-1||0,step:1,onChange:function(e){t.onBoneDisplayIndexChange(e),t.forceUpdate()}}),!r.isAnInstance&&r.skeleton&&s.createElement(we,{label:"Display SkeletonMap",isSelected:function(){return c},onSelect:function(){return t.displaySkeletonMap()}})))},t}(s.Component),Gt=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this,t=this.props.transformNode;return s.createElement("div",{className:"pane"},s.createElement(Ye,{globalState:this.props.globalState,target:t,lockObject:this.props.lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Oe,{globalState:this.props.globalState,title:"GENERAL"},s.createElement(Ee,{label:"ID",value:t.id}),s.createElement(We,{lockObject:this.props.lockObject,label:"Name",target:t,propertyName:"name",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Ee,{label:"Unique ID",value:t.uniqueId.toString()}),s.createElement(Ee,{label:"Class",value:t.getClassName()}),s.createElement(we,{label:"IsEnabled",isSelected:function(){return t.isEnabled()},onSelect:function(e){return t.setEnabled(e)}}),t.parent&&s.createElement(Ee,{label:"Parent",value:t.parent.name,onLink:function(){return e.props.globalState.onSelectionChangedObservable.notifyObservers(t.parent)}}),s.createElement(Ze,{label:"Dispose",onClick:function(){t.dispose(),e.props.globalState.onSelectionChangedObservable.notifyObservers(null)}})),s.createElement(jt,{host:t,lockObject:this.props.lockObject,globalState:this.props.globalState}),s.createElement(Oe,{globalState:this.props.globalState,title:"TRANSFORMATIONS"},s.createElement(He,{label:"Position",target:t,propertyName:"position",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),!t.rotationQuaternion&&s.createElement(He,{label:"Rotation",useEuler:this.props.globalState.onlyUseEulers,target:t,propertyName:"rotation",step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),t.rotationQuaternion&&s.createElement(Be,{label:"Rotation",useEuler:this.props.globalState.onlyUseEulers,target:t,propertyName:"rotationQuaternion",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(He,{label:"Scaling",target:t,propertyName:"scaling",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),s.createElement(Ke,{globalState:this.props.globalState,animatable:t,scene:t.getScene(),lockObject:this.props.lockObject}))},t}(s.Component),Ft=function(e){function t(t){var r=e.call(this,t)||this;return r._onDebugSelectionChangeObservable=new u.Observable,r}return a(t,e),t.prototype.renderTextures=function(){var e=this.props.material,t=this._onDebugSelectionChangeObservable;return s.createElement(Oe,{globalState:this.props.globalState,title:"TEXTURES"},s.createElement($e,{label:"Diffuse",texture:e.diffuseTexture,material:e,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:t}),s.createElement($e,{label:"Reflection",texture:e.reflectionTexture,material:e,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:t}),e.reflectionTexture&&s.createElement(Re,{label:"Reflection blur",target:e,propertyName:"reflectionBlur",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}))},t.prototype.render=function(){var e=this.props.material;return s.createElement("div",{className:"pane"},s.createElement(Xe,{globalState:this.props.globalState,lockObject:this.props.lockObject,material:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Oe,{globalState:this.props.globalState,title:"LIGHTING & COLORS"},s.createElement(Ue,{label:"Primary",target:e,propertyName:"primaryColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Shadow level",target:e,propertyName:"primaryColorShadowLevel",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Highlight level",target:e,propertyName:"primaryColorHighlightLevel",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable})),this.renderTextures(),s.createElement(Oe,{globalState:this.props.globalState,title:"RENDERING",closed:!0},s.createElement(we,{label:"Enable noise",target:e,propertyName:"enableNoise",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Opacity fresnel",target:e,propertyName:"opacityFresnel",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Reflection fresnel",target:e,propertyName:"reflectionFresnel",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Reflection amount",target:e,propertyName:"reflectionAmount",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(s.Component),Vt=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.renderGridInformation=function(){var e=this.props.control;if(!e.parent)return null;var t=e.parent;if(void 0===t.rowCount)return null;var r=t.getChildCellInfo(e);if(void 0===r)return null;var n=r.split(":");return s.createElement(Oe,{globalState:this.props.globalState,title:"GRID"},s.createElement(Ee,{label:"Row",value:n[0]}),s.createElement(Ee,{label:"Column",value:n[1]}))},t.prototype.render=function(){var e=this.props.control,t=[{label:"Left",value:at.Control.HORIZONTAL_ALIGNMENT_LEFT},{label:"Right",value:at.Control.HORIZONTAL_ALIGNMENT_RIGHT},{label:"Center",value:at.Control.HORIZONTAL_ALIGNMENT_CENTER}],r=[{label:"Top",value:at.Control.VERTICAL_ALIGNMENT_TOP},{label:"Bottom",value:at.Control.VERTICAL_ALIGNMENT_BOTTOM},{label:"Center",value:at.Control.VERTICAL_ALIGNMENT_CENTER}];return s.createElement("div",null,s.createElement(Oe,{globalState:this.props.globalState,title:"GENERAL"},s.createElement(Ee,{label:"Class",value:e.getClassName()}),s.createElement(We,{lockObject:this.props.lockObject,label:"Name",target:e,propertyName:"name",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Ee,{label:"Unique ID",value:e.uniqueId.toString()}),s.createElement(Re,{label:"Alpha",target:e,propertyName:"alpha",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),void 0!==e.color&&s.createElement(We,{lockObject:this.props.lockObject,label:"Color",target:e,propertyName:"color",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),void 0!==e.background&&s.createElement(We,{lockObject:this.props.lockObject,label:"Background",target:e,propertyName:"background",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),this.renderGridInformation(),s.createElement(Oe,{globalState:this.props.globalState,title:"ALIGNMENT"},s.createElement(Ae,{label:"Horizontal",options:t,target:e,propertyName:"horizontalAlignment",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Ae,{label:"Vertical",options:r,target:e,propertyName:"verticalAlignment",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),s.createElement(Oe,{globalState:this.props.globalState,title:"POSITION"},s.createElement(We,{lockObject:this.props.lockObject,label:"Left",target:e,propertyName:"left",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(We,{lockObject:this.props.lockObject,label:"Top",target:e,propertyName:"top",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(We,{lockObject:this.props.lockObject,label:"Width",target:e,propertyName:"width",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(We,{lockObject:this.props.lockObject,label:"Height",target:e,propertyName:"height",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(We,{lockObject:this.props.lockObject,label:"Padding left",target:e,propertyName:"paddingLeft",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(We,{lockObject:this.props.lockObject,label:"Padding top",target:e,propertyName:"paddingTop",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(We,{lockObject:this.props.lockObject,label:"Padding right",target:e,propertyName:"paddingRight",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(We,{lockObject:this.props.lockObject,label:"Padding bottom",target:e,propertyName:"paddingBottom",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),s.createElement(Oe,{globalState:this.props.globalState,title:"TRANSFORMATION",closed:!0},s.createElement(Le,{lockObject:this.props.lockObject,label:"ScaleX",target:e,propertyName:"scaleX",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"ScaleY",target:e,propertyName:"scaleY",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Rotation",target:e,propertyName:"rotation",minimum:0,maximum:2*Math.PI,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Transform center X",target:e,propertyName:"transformCenterX",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Transform center Y",target:e,propertyName:"transformCenterY",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),s.createElement(Oe,{globalState:this.props.globalState,title:"FONT",closed:!0},s.createElement(We,{lockObject:this.props.lockObject,label:"Family",target:e,propertyName:"fontFamily",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(We,{lockObject:this.props.lockObject,label:"Size",target:e,propertyName:"fontSize",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(We,{lockObject:this.props.lockObject,label:"Weight",target:e,propertyName:"fontWeight",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(We,{lockObject:this.props.lockObject,label:"Style",target:e,propertyName:"fontStyle",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),s.createElement(Oe,{globalState:this.props.globalState,title:"SHADOWS",closed:!0},s.createElement(We,{lockObject:this.props.lockObject,label:"Color",target:e,propertyName:"shadowColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Offset X",target:e,propertyName:"shadowOffsetX",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Offset Y",target:e,propertyName:"shadowOffsetY",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Blur",target:e,propertyName:"shadowBlur",onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(s.Component),Ut=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.control;return s.createElement("div",{className:"pane"},s.createElement(Vt,{globalState:this.props.globalState,lockObject:this.props.lockObject,control:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}))},t}(s.Component),Ht=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.textBlock,t=[{label:"Left",value:at.Control.HORIZONTAL_ALIGNMENT_LEFT},{label:"Right",value:at.Control.HORIZONTAL_ALIGNMENT_RIGHT},{label:"Center",value:at.Control.HORIZONTAL_ALIGNMENT_CENTER}],r=[{label:"Top",value:at.Control.VERTICAL_ALIGNMENT_TOP},{label:"Bottom",value:at.Control.VERTICAL_ALIGNMENT_BOTTOM},{label:"Center",value:at.Control.VERTICAL_ALIGNMENT_CENTER}],n=[{label:"Clip",value:at.TextWrapping.Clip},{label:"Ellipsis",value:at.TextWrapping.Ellipsis},{label:"Word wrap",value:at.TextWrapping.WordWrap}];return s.createElement("div",{className:"pane"},s.createElement(Vt,{globalState:this.props.globalState,lockObject:this.props.lockObject,control:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Oe,{globalState:this.props.globalState,title:"TEXTBLOCK"},s.createElement(We,{lockObject:this.props.lockObject,label:"Text",target:e,propertyName:"text",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Ae,{label:"Horizontal text alignment",options:t,target:e,propertyName:"textHorizontalAlignment",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Ae,{label:"Vertical text alignment",options:r,target:e,propertyName:"textVerticalAlignment",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Resize to fit",target:e,propertyName:"resizeToFit",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Ae,{label:"Wrapping",options:n,target:e,propertyName:"textWrapping",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(We,{lockObject:this.props.lockObject,label:"Line spacing",target:e,propertyName:"lineSpacing",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),s.createElement(Oe,{globalState:this.props.globalState,title:"OUTLINE"},s.createElement(Le,{lockObject:this.props.lockObject,label:"Outline width",target:e,propertyName:"outlineWidth",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(We,{lockObject:this.props.lockObject,label:"Outline color",target:e,propertyName:"outlineColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(s.Component),Bt=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.inputText;return s.createElement("div",{className:"pane"},s.createElement(Vt,{globalState:this.props.globalState,lockObject:this.props.lockObject,control:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Oe,{globalState:this.props.globalState,title:"INPUTTEXT"},s.createElement(We,{lockObject:this.props.lockObject,label:"Text",target:e,propertyName:"text",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(We,{lockObject:this.props.lockObject,label:"Prompt",target:e,propertyName:"promptMessage",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(We,{lockObject:this.props.lockObject,label:"Max width",target:e,propertyName:"maxWidth",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(We,{lockObject:this.props.lockObject,label:"Highlight color",target:e,propertyName:"textHighlightColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Highligher opacity",minimum:0,maximum:1,step:.01,target:e,propertyName:"highligherOpacity",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"On focus select all",target:e,propertyName:"onFocusSelectAll",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(We,{lockObject:this.props.lockObject,label:"Focused background",target:e,propertyName:"focusedBackground",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(We,{lockObject:this.props.lockObject,label:"Max width",target:e,propertyName:"maxWidth",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(We,{lockObject:this.props.lockObject,label:"Margin",target:e,propertyName:"margin",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Auto stretch width",target:e,propertyName:"autoStretchWidth",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Thickness",target:e,propertyName:"thickness",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(We,{lockObject:this.props.lockObject,label:"Placeholder text",target:e,propertyName:"placeholderText",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(We,{lockObject:this.props.lockObject,label:"Placeholder color",target:e,propertyName:"placeholderColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(s.Component),Wt=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.colorPicker;return s.createElement("div",{className:"pane"},s.createElement(Vt,{globalState:this.props.globalState,lockObject:this.props.lockObject,control:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Oe,{globalState:this.props.globalState,title:"COLORPICKER"},s.createElement(Ue,{label:"Color",target:e,propertyName:"value",onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(s.Component),Yt=function(e){function t(t){var r=e.call(this,t)||this,n=r.props.animationGroup;return r.state={playButtonText:n.isPlaying?"Pause":"Play",currentFrame:0},r.connect(r.props.animationGroup),r._onBeforeRenderObserver=r.props.scene.onBeforeRenderObservable.add((function(){r.updateCurrentFrame(r.props.animationGroup)})),r.timelineRef=s.createRef(),r}return a(t,e),t.prototype.disconnect=function(e){this._onAnimationGroupPlayObserver&&(e.onAnimationGroupPlayObservable.remove(this._onAnimationGroupPlayObserver),this._onAnimationGroupPlayObserver=null),this._onAnimationGroupPauseObserver&&(e.onAnimationGroupPauseObservable.remove(this._onAnimationGroupPauseObserver),this._onAnimationGroupPauseObserver=null)},t.prototype.connect=function(e){var t=this;this._onAnimationGroupPlayObserver=e.onAnimationGroupPlayObservable.add((function(){t.forceUpdate()})),this._onAnimationGroupPauseObserver=e.onAnimationGroupPauseObservable.add((function(){t.forceUpdate()})),this.updateCurrentFrame(e)},t.prototype.updateCurrentFrame=function(e){if(e.targetedAnimations.length>0){var t=e.targetedAnimations[0].animation.runtimeAnimations;t.length>0?this.setState({currentFrame:t[0].currentFrame}):this.setState({currentFrame:0})}},t.prototype.shouldComponentUpdate=function(e){return this.props.animationGroup!==e.animationGroup&&(this.disconnect(this.props.animationGroup),this.connect(e.animationGroup)),!0},t.prototype.componentWillUnmount=function(){this.disconnect(this.props.animationGroup),this._onBeforeRenderObserver&&(this.props.scene.onBeforeRenderObservable.remove(this._onBeforeRenderObserver),this._onBeforeRenderObserver=null)},t.prototype.playOrPause=function(){var e=this.props.animationGroup;e.isPlaying?(this.setState({playButtonText:"Play"}),e.pause()):(this.setState({playButtonText:"Pause"}),this.props.scene.animationGroups.forEach((function(e){return e.pause()})),e.play(!0))},t.prototype.onCurrentFrameChange=function(e){var t=this.props.animationGroup;t.isPlaying?t.goToFrame(e):(t.play(!0),t.goToFrame(e),t.pause()),this.setState({currentFrame:e})},t.prototype.render=function(){var e=this,t=this.props.animationGroup,r=t.isPlaying?"Pause":"Play";return s.createElement("div",{className:"pane"},s.createElement(Oe,{globalState:this.props.globalState,title:"GENERAL"},s.createElement(Ee,{label:"Class",value:t.getClassName()}),s.createElement(We,{lockObject:this.props.lockObject,label:"Name",target:t,propertyName:"name",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),s.createElement(Oe,{globalState:this.props.globalState,title:"CONTROLS"},s.createElement(Ze,{label:r,onClick:function(){return e.playOrPause()}}),s.createElement(Re,{label:"Speed ratio",minimum:0,maximum:10,step:.1,target:t,propertyName:"speedRatio",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{ref:this.timelineRef,label:"Current frame",minimum:t.from,maximum:t.to,step:(t.to-t.from)/1e3,directValue:this.state.currentFrame,onInput:function(t){return e.onCurrentFrameChange(t)}})),s.createElement(Oe,{globalState:this.props.globalState,title:"INFOS"},s.createElement(Ee,{label:"Animation count",value:t.targetedAnimations.length.toString()}),s.createElement(Ee,{label:"From",value:t.from.toFixed(2)}),s.createElement(Ee,{label:"To",value:t.to.toFixed(2)}),s.createElement(Ee,{label:"Unique ID",value:t.uniqueId.toString()})))},t}(s.Component),Zt=function(){this.lock=!1},Kt=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this,t=this.props.image,r=[{label:"None",value:at.Image.STRETCH_NONE},{label:"Fill",value:at.Image.STRETCH_FILL},{label:"Uniform",value:at.Image.STRETCH_UNIFORM},{label:"Extend",value:at.Image.STRETCH_EXTEND},{label:"NinePatch",value:at.Image.STRETCH_NINE_PATCH}];return s.createElement("div",{className:"pane"},s.createElement(Vt,{globalState:this.props.globalState,lockObject:this.props.lockObject,control:t,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Oe,{globalState:this.props.globalState,title:"IMAGE"},s.createElement(Le,{lockObject:this.props.lockObject,label:"Source left",target:t,propertyName:"sourceLeft",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Source top",target:t,propertyName:"sourceTop",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Source width",target:t,propertyName:"sourceWidth",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Source height",target:t,propertyName:"sourceHeight",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Autoscale",target:t,propertyName:"autoScale",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Ae,{label:"Stretch",options:r,target:t,propertyName:"stretch",onPropertyChangedObservable:this.props.onPropertyChangedObservable,onSelect:function(t){return e.setState({mode:t})}})),s.createElement(Oe,{globalState:this.props.globalState,title:"ANIMATION SHEET"},s.createElement(Le,{lockObject:this.props.lockObject,label:"Cell Id",isInteger:!0,target:t,propertyName:"cellId",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Cell width",target:t,propertyName:"cellWidth",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Cell height",target:t,propertyName:"cellHeight",onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(s.Component),Xt=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.slider;return s.createElement("div",{className:"pane"},s.createElement(Vt,{globalState:this.props.globalState,lockObject:this.props.lockObject,control:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Oe,{globalState:this.props.globalState,title:"SLIDER"},s.createElement(We,{lockObject:this.props.lockObject,label:"Border color",target:e,propertyName:"borderColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Display thumb",target:e,propertyName:"displayThumb",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Thumb circle",target:e,propertyName:"isThumbCircle",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Vertical",target:e,propertyName:"isVertical",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Thumb clamped",target:e,propertyName:"isThumbClamped",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(We,{lockObject:this.props.lockObject,label:"Bar offset",target:e,propertyName:"barOffset",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(We,{lockObject:this.props.lockObject,label:"Thumb width",target:e,propertyName:"thumbWidth",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Minimum",target:e,propertyName:"minimum",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Maximum",target:e,propertyName:"maximum",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Value",target:e,propertyName:"value",onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(s.Component),Qt=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.imageBasedSlider;return s.createElement("div",{className:"pane"},s.createElement(Vt,{globalState:this.props.globalState,lockObject:this.props.lockObject,control:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Oe,{globalState:this.props.globalState,title:"IMAGE BASED SLIDER"},s.createElement(we,{label:"Display thumb",target:e,propertyName:"displayThumb",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Vertical",target:e,propertyName:"isVertical",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Thumb clamped",target:e,propertyName:"isThumbClamped",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(We,{lockObject:this.props.lockObject,label:"Bar offset",target:e,propertyName:"barOffset",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(We,{lockObject:this.props.lockObject,label:"Thumb width",target:e,propertyName:"thumbWidth",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Minimum",target:e,propertyName:"minimum",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Maximum",target:e,propertyName:"maximum",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Value",target:e,propertyName:"value",onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(s.Component),qt=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.rectangle;return s.createElement("div",{className:"pane"},s.createElement(Vt,{globalState:this.props.globalState,lockObject:this.props.lockObject,control:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Oe,{globalState:this.props.globalState,title:"RECTANGLE"},s.createElement(we,{label:"Clip children",target:e,propertyName:"clipChildren",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Thickness",target:e,propertyName:"thickness",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Corner radius",target:e,propertyName:"cornerRadius",onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(s.Component),$t=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.ellipse;return s.createElement("div",{className:"pane"},s.createElement(Vt,{globalState:this.props.globalState,lockObject:this.props.lockObject,control:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Oe,{globalState:this.props.globalState,title:"ELLIPSE"},s.createElement(we,{label:"Clip children",target:e,propertyName:"clipChildren",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Thickness",target:e,propertyName:"thickness",onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(s.Component),Jt=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.checkbox;return s.createElement("div",{className:"pane"},s.createElement(Vt,{globalState:this.props.globalState,lockObject:this.props.lockObject,control:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Oe,{globalState:this.props.globalState,title:"CHECKBOX"},s.createElement(Le,{lockObject:this.props.lockObject,label:"Check size ratio",target:e,propertyName:"checkSizeRatio",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Checked",target:e,propertyName:"isChecked",onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(s.Component),er=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.radioButton;return s.createElement("div",{className:"pane"},s.createElement(Vt,{globalState:this.props.globalState,lockObject:this.props.lockObject,control:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Oe,{globalState:this.props.globalState,title:"RADIO BUTTON"},s.createElement(Le,{lockObject:this.props.lockObject,label:"Thickness",target:e,propertyName:"thickness",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Check size ratio",target:e,propertyName:"checkSizeRatio",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(We,{lockObject:this.props.lockObject,label:"Group",target:e,propertyName:"group",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Checked",target:e,propertyName:"isChecked",onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(s.Component),tr=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.onDashChange=function(e){var t=this.props.line,r=e.split(",");t.dash=[],r.forEach((function(e){var r=parseInt(e);isNaN(r)||t.dash.push(r)}))},t.prototype.render=function(){var e=this,t=this.props.line;return s.createElement("div",{className:"pane"},s.createElement(Vt,{globalState:this.props.globalState,lockObject:this.props.lockObject,control:t,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Oe,{globalState:this.props.globalState,title:"LINE"},s.createElement(Le,{lockObject:this.props.lockObject,label:"Line width",target:t,propertyName:"lineWidth",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(We,{lockObject:this.props.lockObject,label:"X1",target:t,propertyName:"x1",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(We,{lockObject:this.props.lockObject,label:"Y1",target:t,propertyName:"y1",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(We,{lockObject:this.props.lockObject,label:"X2",target:t,propertyName:"x2",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(We,{lockObject:this.props.lockObject,label:"Y2",target:t,propertyName:"y2",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(We,{lockObject:this.props.lockObject,label:"Dash pattern",target:t,value:t.dash.join(","),onChange:function(t){return e.onDashChange(t)}})))},t}(s.Component),rr=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.scrollViewer;return s.createElement("div",{className:"pane"},s.createElement(Vt,{globalState:this.props.globalState,lockObject:this.props.lockObject,control:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Oe,{globalState:this.props.globalState,title:"RECTANGLE"},s.createElement(Le,{lockObject:this.props.lockObject,label:"Thickness",target:e,propertyName:"thickness",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Corner radius",target:e,propertyName:"cornerRadius",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),s.createElement(Oe,{globalState:this.props.globalState,title:"SCROLLVIEWER"},s.createElement(Le,{lockObject:this.props.lockObject,label:"Bar size",target:e,propertyName:"barSize",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(We,{lockObject:this.props.lockObject,label:"Bar color",target:e,propertyName:"barColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(We,{lockObject:this.props.lockObject,label:"Bar background",target:e,propertyName:"barBackground",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Wheel precision",target:e,propertyName:"wheelPrecision",onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(s.Component),nr=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.renderRows=function(){for(var e=this.props.grid,t=[],r=0;r<e.rowCount;r++)t.push(e.getRowDefinition(r));return t.map((function(t,r){return s.createElement(Ee,{key:"r"+r,label:"Row "+r,value:t.toString(e.host,2),underline:r===e.rowCount-1})}))},t.prototype.renderColumns=function(){for(var e=this.props.grid,t=[],r=0;r<e.columnCount;r++)t.push(e.getColumnDefinition(r));return t.map((function(t,r){return s.createElement(Ee,{key:"c"+r,label:"Column "+r,value:t.toString(e.host,2)})}))},t.prototype.render=function(){for(var e=this.props.grid,t=[],r=0;r<e.rowCount;r++)t.push(e.getColumnDefinition(r));return s.createElement("div",{className:"pane"},s.createElement(Vt,{globalState:this.props.globalState,lockObject:this.props.lockObject,control:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Oe,{globalState:this.props.globalState,title:"GRID"},this.renderRows(),this.renderColumns()))},t}(s.Component),ar=function(e){function t(t){var r=e.call(this,t)||this;return r._onDebugSelectionChangeObservable=new u.Observable,r}return a(t,e),t.prototype.renderTextures=function(){var e=this.props.material,t=this._onDebugSelectionChangeObservable;return s.createElement(Oe,{globalState:this.props.globalState,title:"TEXTURES"},s.createElement($e,{label:"Base",texture:e.baseTexture,propertyName:"baseTexture",material:e,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:t}),s.createElement($e,{label:"Metallic roughness",texture:e.metallicRoughnessTexture,propertyName:"metallicRoughnessTexture",material:e,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:t}),s.createElement($e,{label:"Normal",texture:e.normalTexture,propertyName:"normalTexture",material:e,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:t}),s.createElement($e,{label:"Environment",texture:e.environmentTexture,propertyName:"environmentTexture",material:e,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:t}),s.createElement($e,{label:"Emissive",texture:e.emissiveTexture,propertyName:"emissiveTexture",material:e,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:t}),s.createElement($e,{label:"Lightmap",texture:e.lightmapTexture,propertyName:"lightmapTexture",material:e,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:t}))},t.prototype.render=function(){var e=this.props.material;return s.createElement("div",{className:"pane"},s.createElement(Xe,{globalState:this.props.globalState,lockObject:this.props.lockObject,material:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),this.renderTextures(),s.createElement(Oe,{globalState:this.props.globalState,title:"LIGHTING & COLORS"},s.createElement(Ue,{label:"Base",target:e,propertyName:"baseColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable,isLinear:!0}),s.createElement(Ue,{label:"Emissive",target:e,propertyName:"emissiveColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable,isLinear:!0})),s.createElement(Oe,{globalState:this.props.globalState,title:"LEVELS",closed:!0},s.createElement(Re,{label:"Metallic",target:e,propertyName:"metallic",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Roughness",target:e,propertyName:"roughness",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable})),s.createElement(Oe,{globalState:this.props.globalState,title:"NORMAL MAP",closed:!0},s.createElement(we,{label:"Invert X axis",target:e,propertyName:"invertNormalMapX",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Invert Y axis",target:e,propertyName:"invertNormalMapY",onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(s.Component),or=function(e){function t(t){var r=e.call(this,t)||this;return r._onDebugSelectionChangeObservable=new u.Observable,r}return a(t,e),t.prototype.renderTextures=function(){var e=this.props.material,t=this._onDebugSelectionChangeObservable;return s.createElement(Oe,{globalState:this.props.globalState,title:"TEXTURES"},s.createElement($e,{label:"Diffuse",texture:e.diffuseTexture,propertyName:"diffuseTexture",material:e,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:t}),s.createElement($e,{label:"Specular glossiness",texture:e.specularGlossinessTexture,propertyName:"specularGlossinessTexture",material:e,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:t}),s.createElement($e,{label:"Normal",texture:e.normalTexture,propertyName:"normalTexture",material:e,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:t}),s.createElement($e,{label:"Environment",texture:e.environmentTexture,propertyName:"environmentTexture",material:e,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:t}),s.createElement($e,{label:"Emissive",texture:e.emissiveTexture,propertyName:"emissiveTexture",material:e,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:t}),s.createElement($e,{label:"Lightmap",texture:e.lightmapTexture,propertyName:"lightmapTexture",material:e,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:t}))},t.prototype.render=function(){var e=this.props.material;return s.createElement("div",{className:"pane"},s.createElement(Xe,{globalState:this.props.globalState,lockObject:this.props.lockObject,material:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),this.renderTextures(),s.createElement(Oe,{globalState:this.props.globalState,title:"LIGHTING & COLORS"},s.createElement(Ue,{label:"Diffuse",target:e,propertyName:"diffuseColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable,isLinear:!0}),s.createElement(Ue,{label:"Specular",target:e,propertyName:"specularColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable,isLinear:!0})),s.createElement(Oe,{globalState:this.props.globalState,title:"LEVELS",closed:!0},s.createElement(Re,{label:"Glossiness",target:e,propertyName:"glossiness",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable})),s.createElement(Oe,{globalState:this.props.globalState,title:"NORMAL MAP",closed:!0},s.createElement(we,{label:"Invert X axis",target:e,propertyName:"invertNormalMapX",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Invert Y axis",target:e,propertyName:"invertNormalMapY",onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(s.Component),ir=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.stackPanel;return s.createElement("div",{className:"pane"},s.createElement(Vt,{globalState:this.props.globalState,lockObject:this.props.lockObject,control:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Oe,{globalState:this.props.globalState,title:"STACKPANEL"},s.createElement(we,{label:"Clip children",target:e,propertyName:"clipChildren",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Vertical",target:e,propertyName:"isVertical",onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(s.Component),lr=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this,t=this.props.postProcess;return s.createElement("div",null,s.createElement(Oe,{globalState:this.props.globalState,title:"GENERAL"},s.createElement(Ee,{label:"Class",value:t.getClassName()}),s.createElement(We,{lockObject:this.props.lockObject,label:"Name",target:t,propertyName:"name",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),t.width&&s.createElement(Ee,{label:"Width",value:t.width.toString()}),t.height&&s.createElement(Ee,{label:"Height",value:t.height.toString()}),s.createElement(we,{label:"Auto clear",target:t,propertyName:"autoClear",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),t.clearColor&&s.createElement(Ue,{label:"Clear color",target:t,propertyName:"clearColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Pixel perfect",target:t,propertyName:"enablePixelPerfectMode",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Fullscreen viewport",target:t,propertyName:"forceFullscreenViewport",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Samples",target:t,propertyName:"samples",minimum:1,maximum:8,step:1,decimalCount:0,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Ze,{label:"Dispose",onClick:function(){t.dispose(),e.props.globalState.onSelectionChangedObservable.notifyObservers(null)}})))},t}(s.Component),sr=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.edit=function(){this.props.postProcess.nodeMaterialSource.edit()},t.prototype.render=function(){var e=this,t=this.props.postProcess;return s.createElement("div",{className:"pane"},s.createElement(lr,{globalState:this.props.globalState,lockObject:this.props.lockObject,postProcess:t,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),t.nodeMaterialSource&&s.createElement(Oe,{globalState:this.props.globalState,title:"CONFIGURATION"},s.createElement(Ze,{label:"Node Material Editor",onClick:function(){return e.edit()}})))},t}(s.Component),pr=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.renderPipeline,t=e;return s.createElement("div",null,s.createElement(Oe,{globalState:this.props.globalState,title:"GENERAL"},s.createElement(Ee,{label:"Name",value:e.name}),s.createElement(Ee,{label:"Class",value:e.getClassName()}),void 0!==t.samples&&s.createElement(Re,{label:"Samples",minimum:1,maximum:8,step:1,decimalCount:0,target:e,propertyName:"samples",onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(s.Component),cr=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.renderPipeline;return s.createElement("div",{className:"pane"},s.createElement(pr,{globalState:this.props.globalState,lockObject:this.props.lockObject,renderPipeline:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}))},t}(s.Component),ur=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this,t=this.props.renderPipeline,r=t.scene.activeCamera,n=[{label:"Standard",value:u.ImageProcessingConfiguration.TONEMAPPING_STANDARD},{label:"ACES",value:u.ImageProcessingConfiguration.TONEMAPPING_ACES}],a=[{label:"Multiply",value:u.ImageProcessingConfiguration.VIGNETTEMODE_MULTIPLY},{label:"Opaque",value:u.ImageProcessingConfiguration.VIGNETTEMODE_OPAQUE}];return s.createElement("div",{className:"pane"},s.createElement(pr,{globalState:this.props.globalState,lockObject:this.props.lockObject,renderPipeline:t,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Oe,{globalState:this.props.globalState,title:"BLOOM"},s.createElement(we,{label:"Enabled",target:t,onValueChanged:function(){return e.forceUpdate()},propertyName:"bloomEnabled",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),t.bloomEnabled&&s.createElement("div",null,s.createElement(Re,{label:"Threshold",minimum:0,maximum:1,step:.05,target:t,propertyName:"bloomThreshold",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Weight",minimum:0,maximum:1,step:.05,target:t,propertyName:"bloomWeight",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Kernel",minimum:0,maximum:128,step:1,target:t,propertyName:"bloomKernel",onPropertyChangedObservable:this.props.onPropertyChangedObservable,decimalCount:0}),s.createElement(Re,{label:"Scale",minimum:0,maximum:1,step:.25,target:t,propertyName:"bloomScale",onPropertyChangedObservable:this.props.onPropertyChangedObservable}))),s.createElement(Oe,{globalState:this.props.globalState,title:"CHROMATIC ABERRATION"},s.createElement(we,{label:"Enabled",target:t,onValueChanged:function(){return e.forceUpdate()},propertyName:"chromaticAberrationEnabled",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),t.chromaticAberrationEnabled&&s.createElement("div",null,s.createElement(Re,{label:"aberrationAmount",minimum:0,maximum:128,step:.1,target:t.chromaticAberration,propertyName:"aberrationAmount",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Radial intensity",minimum:0,maximum:1,step:.01,target:t.chromaticAberration,propertyName:"radialIntensity",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(xt,{label:"Center",target:t.chromaticAberration,propertyName:"centerPosition",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(xt,{label:"Direction",target:t.chromaticAberration,propertyName:"direction",onPropertyChangedObservable:this.props.onPropertyChangedObservable}))),s.createElement(Oe,{globalState:this.props.globalState,title:"DEPTH OF FIELD"},s.createElement(we,{label:"Enabled",target:t,onValueChanged:function(){return e.forceUpdate()},propertyName:"depthOfFieldEnabled",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),t.depthOfFieldEnabled&&s.createElement("div",null,s.createElement(Re,{label:"Focal length",minimum:0,maximum:r.maxZ,step:.1,target:t.depthOfField,propertyName:"focalLength",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"fStop",minimum:0,maximum:32,step:.1,target:t.depthOfField,propertyName:"fStop",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Distance",minimum:0,maximum:r.maxZ,step:.1,target:t.depthOfField,propertyName:"focusDistance",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Lens size",minimum:0,maximum:1e3,step:1,target:t.depthOfField,propertyName:"lensSize",onPropertyChangedObservable:this.props.onPropertyChangedObservable,decimalCount:0}))),s.createElement(Oe,{globalState:this.props.globalState,title:"FXAA"},s.createElement(we,{label:"Enabled",target:t,propertyName:"fxaaEnabled",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),s.createElement(Oe,{globalState:this.props.globalState,title:"GLOW LAYER"},s.createElement(we,{label:"Enabled",target:t,propertyName:"glowLayerEnabled",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),t.glowLayerEnabled&&s.createElement("div",null,s.createElement(Re,{label:"Blur kernel size",minimum:1,maximum:128,step:1,decimalCount:0,target:t.glowLayer,propertyName:"blurKernelSize",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Intensity",minimum:0,maximum:10,step:.1,target:t.glowLayer,propertyName:"intensity",onPropertyChangedObservable:this.props.onPropertyChangedObservable}))),s.createElement(Oe,{globalState:this.props.globalState,title:"GRAIN"},s.createElement(we,{label:"Enabled",target:t,onValueChanged:function(){return e.forceUpdate()},propertyName:"grainEnabled",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),t.grainEnabled&&s.createElement("div",null,s.createElement(we,{label:"Animated",target:t.grain,propertyName:"animated",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Intensity",minimum:0,maximum:50,step:.1,target:t.grain,propertyName:"intensity",onPropertyChangedObservable:this.props.onPropertyChangedObservable}))),s.createElement(Oe,{globalState:this.props.globalState,title:"IMAGE PROCESSING"},s.createElement(we,{label:"Enabled",target:t,onValueChanged:function(){return e.forceUpdate()},propertyName:"imageProcessingEnabled",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),t.imageProcessing&&s.createElement("div",null,s.createElement(Ze,{label:"Convert clear color to linear",onClick:function(){return t.scene.clearColor=t.scene.clearColor.toLinearSpace()}}),s.createElement(Ze,{label:"Convert clear color to gamma",onClick:function(){return t.scene.clearColor=t.scene.clearColor.toGammaSpace()}}),s.createElement(Re,{minimum:0,maximum:4,step:.1,label:"Contrast",target:t.imageProcessing,propertyName:"contrast",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{minimum:0,maximum:4,step:.1,label:"Exposure",target:t.imageProcessing,propertyName:"exposure",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Tone mapping",target:t.imageProcessing,propertyName:"toneMappingEnabled",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Ae,{label:"Tone mapping type",options:n,target:t.imageProcessing,propertyName:"toneMappingType",onPropertyChangedObservable:this.props.onPropertyChangedObservable,onSelect:function(t){return e.setState({mode:t})}}),s.createElement(we,{label:"Vignette",target:t.imageProcessing,propertyName:"vignetteEnabled",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{minimum:0,maximum:4,step:.1,label:"Vignette weight",target:t.imageProcessing,propertyName:"vignetteWeight",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{minimum:0,maximum:1,step:.1,label:"Vignette stretch",target:t.imageProcessing,propertyName:"vignetteStretch",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{minimum:0,maximum:Math.PI,step:.1,label:"Vignette FOV",target:t.imageProcessing,propertyName:"vignetteCameraFov",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{minimum:0,maximum:1,step:.1,label:"Vignette center X",target:t.imageProcessing,propertyName:"vignetteCentreX",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{minimum:0,maximum:1,step:.1,label:"Vignette center Y",target:t.imageProcessing,propertyName:"vignetteCentreY",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Ue,{label:"Vignette color",target:t.imageProcessing,propertyName:"vignetteColor",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Ae,{label:"Vignette blend mode",options:a,target:t.imageProcessing,propertyName:"vignetteBlendMode",onPropertyChangedObservable:this.props.onPropertyChangedObservable,onSelect:function(t){return e.setState({mode:t})}}))),s.createElement(Oe,{globalState:this.props.globalState,title:"SHARPEN"},s.createElement(we,{label:"Enabled",target:t,onValueChanged:function(){return e.forceUpdate()},propertyName:"sharpenEnabled",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),t.sharpenEnabled&&s.createElement("div",null,s.createElement(Re,{label:"Color amount",minimum:0,maximum:1,step:.05,target:t.sharpen,propertyName:"colorAmount",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Edge amount",minimum:0,maximum:5,step:.05,target:t.sharpen,propertyName:"edgeAmount",onPropertyChangedObservable:this.props.onPropertyChangedObservable}))))},t}(s.Component),dr=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.renderPipeline;return s.createElement("div",{className:"pane"},s.createElement(pr,{globalState:this.props.globalState,lockObject:this.props.lockObject,renderPipeline:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Oe,{globalState:this.props.globalState,title:"SSAO"},s.createElement(Re,{label:"Strength",minimum:0,maximum:2,step:.05,target:e,propertyName:"totalStrength",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Base",minimum:0,maximum:1,step:.05,target:e,propertyName:"base",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Radius",minimum:1e-4,maximum:.001,step:1e-4,target:e,propertyName:"radius",onPropertyChangedObservable:this.props.onPropertyChangedObservable,decimalCount:4}),s.createElement(Re,{label:"Area",minimum:1e-4,maximum:.01,step:1e-4,target:e,propertyName:"area",onPropertyChangedObservable:this.props.onPropertyChangedObservable,decimalCount:4}),s.createElement(Re,{label:"Falloff",minimum:0,maximum:1e-5,step:1e-6,target:e,propertyName:"fallOff",onPropertyChangedObservable:this.props.onPropertyChangedObservable,decimalCount:6})))},t}(s.Component),hr=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.renderPipeline,t=e.scene.activeCamera;return s.createElement("div",{className:"pane"},s.createElement(pr,{globalState:this.props.globalState,lockObject:this.props.lockObject,renderPipeline:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Oe,{globalState:this.props.globalState,title:"SSAO"},s.createElement(Re,{label:"Strength",minimum:0,maximum:2,step:.05,target:e,propertyName:"totalStrength",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Base",minimum:0,maximum:1,step:.05,target:e,propertyName:"base",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Max Z",minimum:0,maximum:t.maxZ,step:1,target:e,propertyName:"maxZ",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Min Z aspect",minimum:0,maximum:.5,step:.01,target:e,propertyName:"minZAspect",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Radius",minimum:0,maximum:10,step:.05,target:e,propertyName:"radius",onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(s.Component),br=function(e){function t(t){var r=e.call(this,t)||this;return r._skeletonViewersEnabled=!1,r._skeletonViewerDisplayOptions={displayMode:u.SkeletonViewer.DISPLAY_LINES,sphereBaseSize:.15,sphereScaleUnit:2,sphereFactor:.865,midStep:.235,midStepFactor:.155},r._skeletonViewers=new Array,r.checkSkeletonViewerState(r.props),r}return a(t,e),t.prototype.switchSkeletonViewers=function(){this._skeletonViewersEnabled=!this._skeletonViewersEnabled;var e=this.props.skeleton.getScene();if(this._skeletonViewersEnabled)for(var t=0,r=e.meshes;t<r.length;t++){var n=r[t];if(n.skeleton===this.props.skeleton){for(var a=!1,o=0;o<this._skeletonViewers.length;o++)if(this._skeletonViewers[o].skeleton===n.skeleton){a=!0;break}if(a)continue;var i=new u.SkeletonViewer(n.skeleton,n,e,!1,3,{displayMode:this._skeletonViewerDisplayOptions.displayMode,displayOptions:{sphereBaseSize:this._skeletonViewerDisplayOptions.sphereBaseSize,sphereScaleUnit:this._skeletonViewerDisplayOptions.sphereScaleUnit,sphereFactor:this._skeletonViewerDisplayOptions.sphereFactor,midStep:this._skeletonViewerDisplayOptions.midStep,midStepFactor:this._skeletonViewerDisplayOptions.midStepFactor}});i.isEnabled=!0,this._skeletonViewers.push(i),n.reservedDataStore||(n.reservedDataStore={}),n.reservedDataStore.skeletonViewer=i}}else{for(var l=0;l<this._skeletonViewers.length;l++)this._skeletonViewers[l].mesh.reservedDataStore.skeletonViewer=null,this._skeletonViewers[l].dispose();this._skeletonViewers=[]}},t.prototype.checkSkeletonViewerState=function(e){var t=e.skeleton.getScene();if(this._skeletonViewers=[],t){for(var r=!0,n=0,a=t.meshes;n<a.length;n++){var o=a[n];if(o.skeleton===e.skeleton&&o.reservedDataStore&&o.reservedDataStore.skeletonViewer&&(this._skeletonViewers.push(o.reservedDataStore.skeletonViewer),r))for(var i in r=!1,this._skeletonViewerDisplayOptions.displayMode=this._skeletonViewers[0].displayMode,this._skeletonViewers[0].options.displayOptions)i&&(this._skeletonViewerDisplayOptions[i]=this._skeletonViewers[0].options.displayOptions[i])}this._skeletonViewersEnabled=this._skeletonViewers.length>0}},t.prototype.changeDisplayMode=function(){if(this._skeletonViewersEnabled)for(var e=0;e<this._skeletonViewers.length;e++)this._skeletonViewers[e].changeDisplayMode(this._skeletonViewerDisplayOptions.displayMode||0)},t.prototype.changeDisplayOptions=function(e,t){if(this._skeletonViewersEnabled){for(var r=0;r<this._skeletonViewers.length;r++)this._skeletonViewers[r].changeDisplayOptions(e,t);void 0!==this._skeletonViewerDisplayOptions[e]&&(this._skeletonViewerDisplayOptions[e]=t)}},t.prototype.shouldComponentUpdate=function(e){return e.skeleton!==this.props.skeleton&&this.checkSkeletonViewerState(e),!0},t.prototype.onOverrideMeshLink=function(){if(this.props.globalState.onSelectionChangedObservable){var e=this.props.skeleton;this.props.globalState.onSelectionChangedObservable.notifyObservers(e.overrideMesh)}},t.prototype.render=function(){var e,t=this,r=this.props.skeleton,n=[{label:"Lines",value:u.SkeletonViewer.DISPLAY_LINES},{label:"Spheres",value:u.SkeletonViewer.DISPLAY_SPHERES},{label:"Sphere and Spurs",value:u.SkeletonViewer.DISPLAY_SPHERE_AND_SPURS}];return e=this._skeletonViewerDisplayOptions.displayMode>u.SkeletonViewer.DISPLAY_LINES?s.createElement(Oe,{globalState:this.props.globalState,title:"DISPLAY OPTIONS"},s.createElement(Le,{label:"sphereBaseSize",target:this._skeletonViewerDisplayOptions,propertyName:"sphereBaseSize",onPropertyChangedObservable:this.props.onPropertyChangedObservable,onChange:function(e){t.changeDisplayOptions("sphereBaseSize",e)}}),s.createElement(Le,{label:"sphereScaleUnit",target:this._skeletonViewerDisplayOptions,propertyName:"sphereScaleUnit",onPropertyChangedObservable:this.props.onPropertyChangedObservable,onChange:function(e){t.changeDisplayOptions("sphereScaleUnit",e)}}),s.createElement(Le,{label:"sphereFactor",target:this._skeletonViewerDisplayOptions,propertyName:"sphereFactor",onPropertyChangedObservable:this.props.onPropertyChangedObservable,onChange:function(e){t.changeDisplayOptions("sphereFactor",e)}}),s.createElement(Le,{label:"midStep",target:this._skeletonViewerDisplayOptions,propertyName:"midStep",onPropertyChangedObservable:this.props.onPropertyChangedObservable,onChange:function(e){t.changeDisplayOptions("midStep",e)}}),s.createElement(Le,{label:"midStepFactor",target:this._skeletonViewerDisplayOptions,propertyName:"midStepFactor",onPropertyChangedObservable:this.props.onPropertyChangedObservable,onChange:function(e){t.changeDisplayOptions("midStepFactor",e)}})):null,s.createElement("div",{className:"pane"},s.createElement(Ye,{globalState:this.props.globalState,target:r,lockObject:this.props.lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Oe,{globalState:this.props.globalState,title:"GENERAL"},s.createElement(Ee,{label:"ID",value:r.id}),s.createElement(Ee,{label:"Bone count",value:r.bones.length.toString()}),r.overrideMesh&&s.createElement(Ee,{label:"Override mesh",value:r.overrideMesh.name,onLink:function(){return t.onOverrideMeshLink()}}),s.createElement(we,{label:"Use texture to store matrices",target:r,propertyName:"useTextureToStoreBoneMatrices",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Oe,{globalState:this.props.globalState,title:"DEBUG"},s.createElement(we,{label:"Enabled",isSelected:function(){return t._skeletonViewersEnabled},onSelect:function(){return t.switchSkeletonViewers()}}),s.createElement(Ae,{label:"displayMode",options:n,target:this._skeletonViewerDisplayOptions,propertyName:"displayMode",onPropertyChangedObservable:this.props.onPropertyChangedObservable,onSelect:function(){return t.changeDisplayMode()}}),e)),s.createElement(Ke,{globalState:this.props.globalState,animatable:r,scene:r.getScene(),lockObject:this.props.lockObject}))},t}(s.Component),mr=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.onTransformNodeLink=function(){if(this.props.globalState.onSelectionChangedObservable){var e=this.props.bone.getTransformNode();this.props.globalState.onSelectionChangedObservable.notifyObservers(e)}},t.prototype.render=function(){var e=this,t=this.props.bone;return s.createElement("div",{className:"pane"},s.createElement(Oe,{globalState:this.props.globalState,title:"GENERAL"},s.createElement(Ee,{label:"Name",value:t.name}),s.createElement(Ee,{label:"Index",value:t.getIndex().toString()}),s.createElement(Ee,{label:"Unique ID",value:t.uniqueId.toString()}),t.getParent()&&s.createElement(Ee,{label:"Parent",value:t.getParent().name,onLink:function(){return e.props.globalState.onSelectionChangedObservable.notifyObservers(t.getParent())}}),t.getTransformNode()&&s.createElement(Ee,{label:"Linked node",value:t.getTransformNode().name,onLink:function(){return e.onTransformNodeLink()}})),s.createElement(Oe,{globalState:this.props.globalState,title:"TRANSFORMATIONS"},s.createElement(He,{label:"Position",target:t,propertyName:"position",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),!t.rotationQuaternion&&s.createElement(He,{label:"Rotation",useEuler:this.props.globalState.onlyUseEulers,target:t,propertyName:"rotation",step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),t.rotationQuaternion&&s.createElement(Be,{label:"Rotation",useEuler:this.props.globalState.onlyUseEulers,target:t,propertyName:"rotationQuaternion",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(He,{label:"Scaling",target:t,propertyName:"scaling",onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(s.Component),gr=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.light,t=(e.getShadowGenerator()||null)instanceof u.CascadedShadowGenerator;return s.createElement("div",{className:"pane"},s.createElement(Tt,{globalState:this.props.globalState,lockObject:this.props.lockObject,light:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Oe,{globalState:this.props.globalState,title:"SETUP"},s.createElement(Ue,{label:"Diffuse",target:e,propertyName:"diffuse",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Ue,{label:"Specular",target:e,propertyName:"specular",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(He,{label:"Position",target:e,propertyName:"position",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(He,{label:"Direction",target:e,propertyName:"direction",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),!t&&s.createElement(we,{label:"Auto Calc Shadow ZBounds",target:e,propertyName:"autoCalcShadowZBounds",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),s.createElement(Mt,{globalState:this.props.globalState,lockObject:this.props.lockObject,light:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}))},t}(s.Component),fr=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.light;return s.createElement("div",{className:"pane"},s.createElement(Tt,{globalState:this.props.globalState,lockObject:this.props.lockObject,light:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Oe,{globalState:this.props.globalState,title:"SETUP"},s.createElement(Ue,{label:"Diffuse",target:e,propertyName:"diffuse",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Ue,{label:"Specular",target:e,propertyName:"specular",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(He,{label:"Position",target:e,propertyName:"position",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(He,{label:"Direction",target:e,propertyName:"direction",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,useEuler:this.props.globalState.onlyUseEulers,label:"Angle",target:e,propertyName:"angle",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,useEuler:this.props.globalState.onlyUseEulers,label:"Inner angle",target:e,propertyName:"innerAngle",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Exponent",target:e,propertyName:"exponent",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),s.createElement(Mt,{globalState:this.props.globalState,lockObject:this.props.lockObject,light:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}))},t}(s.Component),vr=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.renderPipeline;return s.createElement("div",{className:"pane"},s.createElement(pr,{globalState:this.props.globalState,lockObject:this.props.lockObject,renderPipeline:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Oe,{globalState:this.props.globalState,title:"OPTIONS"},s.createElement(Re,{label:"Edge blur",minimum:0,maximum:5,step:.1,target:e,propertyName:"edgeBlur",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Edge distortion",minimum:0,maximum:5,step:.1,target:e,propertyName:"edgeDistortion",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Grain amount",minimum:0,maximum:1,step:.1,target:e,propertyName:"grainAmount",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Chromatic aberration",minimum:0,maximum:5,step:.1,target:e,propertyName:"chromaticAberration",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Darken out of focus",minimum:0,maximum:5,step:.1,target:e,propertyName:"darkenOutOfFocus",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Blur noise",target:e,propertyName:"blurNoise",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),s.createElement(Oe,{globalState:this.props.globalState,title:"DEPTH OF FIELD"},s.createElement(Re,{label:"Aperture",minimum:0,maximum:10,step:.1,target:e,propertyName:"dofAperture",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Distortion",minimum:0,maximum:10,step:.1,target:e,propertyName:"dofDistortion",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Pentagon bokeh",target:e,propertyName:"pentagonBokeh",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Highlight gain",minimum:0,maximum:5,step:.1,target:e,propertyName:"highlightsGain",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Highlight threshold",minimum:0,maximum:5,step:.1,target:e,propertyName:"highlightsThreshold",onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(s.Component),yr=function(e){function t(t){var r=e.call(this,t)||this;return r._localChange=!1,r.state={isExpanded:!1,value:r.getCurrentValue().clone()},r}return a(t,e),t.prototype.getCurrentValue=function(){return this.props.target[this.props.propertyName]},t.prototype.shouldComponentUpdate=function(e,t){var r=this.getCurrentValue();return!(r.equals(t.value)&&!this._localChange)&&(t.value=r.clone(),this._localChange=!1,!0)},t.prototype.switchExpandState=function(){this._localChange=!0,this.setState({isExpanded:!this.state.isExpanded})},t.prototype.raiseOnPropertyChanged=function(e){this.props.onChange&&this.props.onChange(this.state.value),this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:this.state.value,initialValue:e})},t.prototype.updateVector4=function(){var e=this.props.target[this.props.propertyName].clone();this.props.target[this.props.propertyName]=this.state.value,this.setState({value:e}),this.raiseOnPropertyChanged(e)},t.prototype.updateStateX=function(e){this._localChange=!0,this.state.value.x=e,this.updateVector4()},t.prototype.updateStateY=function(e){this._localChange=!0,this.state.value.y=e,this.updateVector4()},t.prototype.updateStateZ=function(e){this._localChange=!0,this.state.value.z=e,this.updateVector4()},t.prototype.updateStateW=function(e){this._localChange=!0,this.state.value.w=e,this.updateVector4()},t.prototype.render=function(){var e=this,t=this.state.isExpanded?s.createElement(w,{icon:ae}):s.createElement(w,{icon:se});return s.createElement("div",{className:"vector3Line"},s.createElement("div",{className:"firstLine"},s.createElement("div",{className:"label",title:this.props.label},this.props.label),s.createElement("div",{className:"vector"},"X: "+this.state.value.x.toFixed(2)+", Y: "+this.state.value.y.toFixed(2)+", Z: "+this.state.value.z.toFixed(2)+", W: "+this.state.value.w.toFixed(2)),s.createElement("div",{className:"expand hoverIcon",onClick:function(){return e.switchExpandState()},title:"Expand"},t)),s.createElement("div",{className:"secondLine"},s.createElement(Ie,{label:"x",step:this.props.step,value:this.state.value.x,onChange:function(t){return e.updateStateX(t)}}),s.createElement(Ie,{label:"y",step:this.props.step,value:this.state.value.y,onChange:function(t){return e.updateStateY(t)}}),s.createElement(Ie,{label:"z",step:this.props.step,value:this.state.value.z,onChange:function(t){return e.updateStateZ(t)}}),s.createElement(Ie,{label:"w",step:this.props.step,value:this.state.value.w,onChange:function(t){return e.updateStateW(t)}})))},t.defaultProps={step:.001},t}(s.Component),Cr=r(14),Er=function(e){function t(t){var r=e.call(this,t)||this;r._localChange=!1;var n=r.props.target[r.props.propertyName],a="Color4"===n.getClassName()?n.clone():new u.Color4(n.r,n.g,n.b,1);return r.state={isExpanded:!1,color:a},t.isLinear&&r.state.color.toGammaSpaceToRef(r.state.color),t.target._isLinearColor=t.isLinear,r}return a(t,e),t.prototype.shouldComponentUpdate=function(e,t){var r=this.props.target[this.props.propertyName],n="Color4"===r.getClassName()?r:new u.Color4(r.r,r.g,r.b,1);return this.props.isLinear&&n.toGammaSpaceRef(n),!(n.equals(t.color)&&!this._localChange)&&(t.color=n.clone(),this._localChange=!1,!0)},t.prototype.setPropertyValue=function(e){this.props.target[this.props.propertyName]=e,this.props.isLinear&&(this.props.target[this.props.propertyName]=e.toLinearSpace())},t.prototype.onChange=function(e){this._localChange=!0;var t=u.Color4.FromHexString(e);this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:t,initialValue:this.state.color}),this.setPropertyValue(t),this.setState({color:t}),this.props.onChange&&this.props.onChange()},t.prototype.switchExpandState=function(){this._localChange=!0,this.setState({isExpanded:!this.state.isExpanded})},t.prototype.raiseOnPropertyChanged=function(e){this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:this.state.color,initialValue:e})},t.prototype.updateStateR=function(e){this._localChange=!0;var t=this.state.color.clone();this.state.color.r=e,this.setPropertyValue(this.state.color),this.setState({color:this.state.color}),this.raiseOnPropertyChanged(t)},t.prototype.updateStateG=function(e){this._localChange=!0;var t=this.state.color.clone();this.state.color.g=e,this.setPropertyValue(this.state.color),this.setState({color:this.state.color}),this.raiseOnPropertyChanged(t)},t.prototype.updateStateB=function(e){this._localChange=!0;var t=this.state.color.clone();this.state.color.b=e,this.setPropertyValue(this.state.color),this.setState({color:this.state.color}),this.raiseOnPropertyChanged(t)},t.prototype.updateStateA=function(e){this._localChange=!0;var t=this.state.color.clone();this.props.target[this.props.propertyName].a=e,this.state.color.a=e,this.props.target[this.props.propertyName]=this.state.color,this.setState({color:this.state.color}),this.raiseOnPropertyChanged(t)},t.prototype.copyToClipboard=function(){var e=document.createElement("div");if(e.textContent=this.state.color.toHexString(),document.body.appendChild(e),window.getSelection){var t=document.createRange();t.selectNode(e),window.getSelection().removeAllRanges(),window.getSelection().addRange(t)}document.execCommand("copy"),e.remove()},t.prototype.render=function(){var e=this,t=this.state.isExpanded?s.createElement(w,{icon:ae}):s.createElement(w,{icon:se});return s.createElement("div",{className:"color3Line"},s.createElement("div",{className:"firstLine"},s.createElement("div",{className:"label",title:this.props.label},this.props.label),s.createElement("div",{className:"color3"},s.createElement(Fe,{value:this.state.color,onColorChanged:function(t){e.onChange(t)}})),s.createElement("div",{className:"copy hoverIcon",onClick:function(){return e.copyToClipboard()},title:"Copy to clipboard"},s.createElement("img",{src:Cr,alt:""})),s.createElement("div",{className:"expand hoverIcon",onClick:function(){return e.switchExpandState()},title:"Expand"},t)),this.state.isExpanded&&s.createElement("div",{className:"secondLine"},s.createElement(Ie,{label:"r",value:this.state.color.r,onChange:function(t){return e.updateStateR(t)}}),s.createElement(Ie,{label:"g",value:this.state.color.g,onChange:function(t){return e.updateStateG(t)}}),s.createElement(Ie,{label:"b",value:this.state.color.b,onChange:function(t){return e.updateStateB(t)}}),s.createElement(Ie,{label:"a",value:this.state.color.a,onChange:function(t){return e.updateStateA(t)}})))},t}(s.Component),Or=r(51),Sr=r(52),xr=function(e){function t(t){var r=e.call(this,t)||this;return r.state={gradient:t.step.step},r}return a(t,e),t.prototype.updateColor=function(e){this.props.step.color=u.Color3.FromHexString(e),this.props.onUpdateStep(),this.forceUpdate()},t.prototype.updateStep=function(e){this.props.step.step=e,this.setState({gradient:e}),this.props.onUpdateStep()},t.prototype.onPointerUp=function(){this.props.onCheckForReOrder()},t.prototype.render=function(){var e=this,t=this.props.step;return s.createElement("div",{className:"gradient-step"},s.createElement("div",{className:"step"},"#"+this.props.lineIndex),s.createElement("div",{className:"color"},s.createElement(Fe,{value:t.color,onColorChanged:function(t){e.updateColor(t)}})),s.createElement("div",{className:"step-value"},t.step.toFixed(2)),s.createElement("div",{className:"step-slider slider"},s.createElement("input",{className:"range",type:"range",step:.01,min:0,max:1,value:t.step,onPointerUp:function(t){return e.onPointerUp()},onChange:function(t){return e.updateStep(parseFloat(t.target.value))}})),s.createElement("div",{className:"gradient-copy",onClick:function(){e.props.onCopy&&e.props.onCopy()},title:"Copy Step"},s.createElement("img",{className:"img",src:Sr})),s.createElement("div",{className:"gradient-delete",onClick:function(){return e.props.onDelete()},title:"Delete Step"},s.createElement("img",{className:"img",src:Or})))},t}(s.Component),Pr=function(e){function t(t){var r=e.call(this,t)||this;return r._gradientBlock=r.props.block,r}return a(t,e),t.prototype.forceRebuild=function(){this._gradientBlock.colorStepsUpdated(),this.forceUpdate()},t.prototype.deleteStep=function(e){var t=this._gradientBlock.colorSteps.indexOf(e);t>-1&&(this._gradientBlock.colorSteps.splice(t,1),this.forceRebuild())},t.prototype.copyStep=function(e){var t=this.props.block,r=new u.GradientBlockColorStep(1,e.color);t.colorSteps.push(r),t.colorStepsUpdated(),this.forceRebuild(),this.forceUpdate()},t.prototype.addNewStep=function(){var e=new u.GradientBlockColorStep(1,u.Color3.White());this._gradientBlock.colorSteps.push(e),this.forceRebuild()},t.prototype.checkForReOrder=function(){this._gradientBlock.colorSteps.sort((function(e,t){return e.step-t.step})),this.forceRebuild()},t.prototype.render=function(){var e=this;return s.createElement("div",null,s.createElement(Ze,{label:"Add new step",onClick:function(){return e.addNewStep()}}),this._gradientBlock.colorSteps.map((function(t,r){return s.createElement(xr,{globalState:e.props.globalState,onCheckForReOrder:function(){return e.checkForReOrder()},onUpdateStep:function(){return e.forceRebuild()},key:"step-"+r,lineIndex:r,step:t,onCopy:function(){return e.copyStep(t)},onDelete:function(){return e.deleteStep(t)}})})))},t}(s.Component),wr=function(e){function t(t){var r=e.call(this,t)||this;return r._onDebugSelectionChangeObservable=new u.Observable,r}return a(t,e),t.prototype.edit=function(){this.props.material.edit()},t.prototype.renderTextures=function(){var e=this,t=this.props.material,r=this._onDebugSelectionChangeObservable,n=t.getTextureBlocks();return n&&0!==n.length?s.createElement(Oe,{globalState:this.props.globalState,title:"TEXTURES"},n.map((function(n,a){return s.createElement($e,{label:n.name,key:"nodematText"+a,texture:n.texture,material:t,onTextureCreated:function(e){return n.texture=e},onSelectionChangedObservable:e.props.onSelectionChangedObservable,onDebugSelectionChangeObservable:r})}))):null},t.prototype.renderInputBlock=function(e){switch(e.type){case u.NodeMaterialBlockConnectionPointTypes.Float:var t=isNaN(e.min)||isNaN(e.max)||e.min===e.max;return s.createElement("div",{key:e.name},e.isBoolean&&s.createElement(we,{key:e.name,label:e.name,target:e,propertyName:"value",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),!e.isBoolean&&t&&s.createElement(Le,{key:e.name,lockObject:this.props.lockObject,label:e.name,target:e,propertyName:"value",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),!e.isBoolean&&!t&&s.createElement(Re,{key:e.name,label:e.name,target:e,propertyName:"value",step:(e.max-e.min)/100,minimum:e.min,maximum:e.max,onPropertyChangedObservable:this.props.onPropertyChangedObservable}));case u.NodeMaterialBlockConnectionPointTypes.Color3:return s.createElement(Ue,{key:e.name,label:e.name,target:e,propertyName:"value",onPropertyChangedObservable:this.props.onPropertyChangedObservable});case u.NodeMaterialBlockConnectionPointTypes.Color4:return s.createElement(Er,{key:e.name,label:e.name,target:e,propertyName:"value",onPropertyChangedObservable:this.props.onPropertyChangedObservable});case u.NodeMaterialBlockConnectionPointTypes.Vector2:return s.createElement(xt,{key:e.name,label:e.name,target:e,propertyName:"value",onPropertyChangedObservable:this.props.onPropertyChangedObservable});case u.NodeMaterialBlockConnectionPointTypes.Vector3:return s.createElement(He,{key:e.name,label:e.name,target:e,propertyName:"value",onPropertyChangedObservable:this.props.onPropertyChangedObservable});case u.NodeMaterialBlockConnectionPointTypes.Vector4:return s.createElement(yr,{key:e.name,label:e.name,target:e,propertyName:"value",onPropertyChangedObservable:this.props.onPropertyChangedObservable})}return null},t.prototype.renderInputValues=function(){var e=this,t=this.props.material.getInputBlocks().filter((function(e){return e.visibleInInspector&&e.isUniform&&!e.isSystemValue})).sort((function(e,t){return e.name.localeCompare(t.name)})),r=[];t.forEach((function(e){e.groupInInspector&&-1===r.indexOf(e.groupInInspector)&&r.push(e.groupInInspector)})),r.sort();var n=this.props.material.attachedBlocks.filter((function(e){return e.visibleInInspector&&"GradientBlock"===e.getClassName()})).sort((function(e,t){return e.name.localeCompare(t.name)})),a=t.length>0?s.createElement(Oe,{globalState:this.props.globalState,title:"INPUTS"}," ",t.filter((function(e){return!e.groupInInspector})).map((function(t){return e.renderInputBlock(t)}))):null;return s.createElement(s.Fragment,null,a,r.map((function(r,n){return s.createElement(Oe,{key:"inputValue"+n,globalState:e.props.globalState,title:r.toUpperCase()},t.filter((function(e){return e.groupInInspector===r})).map((function(t){return e.renderInputBlock(t)})))})),n.map((function(t,r){return s.createElement(Oe,{key:t.name+r,globalState:e.props.globalState,title:t.name.toUpperCase()},s.createElement(Pr,{globalState:e.props.globalState,block:t}))})))},t.prototype.render=function(){var e=this,t=this.props.material;return s.createElement("div",{className:"pane"},s.createElement(Xe,{globalState:this.props.globalState,lockObject:this.props.lockObject,material:t,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Oe,{globalState:this.props.globalState,title:"CONFIGURATION"},s.createElement(we,{label:"Ignore alpha",target:t,propertyName:"ignoreAlpha",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Ze,{label:"Node Material Editor",onClick:function(){return e.edit()}})),this.renderInputValues(),this.renderTextures())},t}(s.Component),kr=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.onMaterialLink=function(e){this.props.onSelectionChangedObservable&&this.props.onSelectionChangedObservable.notifyObservers(e)},t.prototype.renderChildMaterial=function(){var e=this,t=this.props.material;return s.createElement(Oe,{globalState:this.props.globalState,title:"CHILDREN"},t.subMaterials.map((function(t,r){return t?s.createElement(Ee,{key:"Material #"+r,label:"Material #"+r,value:t.name,onLink:function(){return e.onMaterialLink(t)}}):null})))},t.prototype.render=function(){var e=this.props.material;return s.createElement("div",{className:"pane"},s.createElement(Xe,{globalState:this.props.globalState,lockObject:this.props.lockObject,material:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),this.renderChildMaterial())},t}(s.Component),Nr=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.emitter;return s.createElement(s.Fragment,null,s.createElement(He,{label:"Direction 1",target:e,propertyName:"direction1",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(He,{label:"Direction 2",target:e,propertyName:"direction2",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(He,{label:"Min emit box",target:e,propertyName:"minEmitBox",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(He,{label:"Max emit box",target:e,propertyName:"maxEmitBox",onPropertyChangedObservable:this.props.onPropertyChangedObservable}))},t}(s.Component),Tr=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.emitter;return s.createElement(s.Fragment,null,s.createElement(Re,{label:"Radius range",target:e,propertyName:"radiusRange",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Height range",target:e,propertyName:"heightRange",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Emit from spawn point only",target:e,propertyName:"emitFromSpawnPointOnly",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Direction randomizer",target:e,propertyName:"directionRandomizer",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}))},t}(s.Component),_r=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.emitter;return s.createElement(s.Fragment,null,s.createElement(Le,{lockObject:this.props.lockObject,label:"Radius",target:e,propertyName:"radius",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Height",target:e,propertyName:"height",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Radius range",target:e,propertyName:"radiusRange",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Direction randomizer",target:e,propertyName:"directionRandomizer",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}))},t}(s.Component),Mr=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.emitter;return s.createElement(s.Fragment,null,s.createElement(Le,{lockObject:this.props.lockObject,label:"Radius",target:e,propertyName:"radius",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Radius range",target:e,propertyName:"radiusRange",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Direction randomizer",target:e,propertyName:"directionRandomizer",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}))},t}(s.Component),Lr=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.emitter;return s.createElement(s.Fragment,null,s.createElement(He,{label:"Direction 1",target:e,propertyName:"direction1",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(He,{label:"Direction 2",target:e,propertyName:"direction2",onPropertyChangedObservable:this.props.onPropertyChangedObservable}))},t}(s.Component),Rr=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.emitter;return s.createElement(s.Fragment,null,s.createElement(Le,{lockObject:this.props.lockObject,label:"Radius",target:e,propertyName:"radius",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Radius range",target:e,propertyName:"radiusRange",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Direction randomizer",target:e,propertyName:"directionRandomizer",minimum:0,maximum:1,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable}))},t}(s.Component),Dr=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this,t=this.props.scene.meshes.filter((function(e){return!!e.name}));t.sort((function(e,t){return e.name.localeCompare(t.name)}));var r=[{label:"None",value:-1}];return t.sort((function(e,t){return e.name.localeCompare(t.name)})),r.push.apply(r,t.map((function(e,t){return{label:e.name,value:t}}))),s.createElement(s.Fragment,null,s.createElement(Ae,{label:this.props.label,options:r,target:this.props.target,propertyName:this.props.property,noDirectUpdate:!0,onSelect:function(r){var n=e.props.target[e.props.property];switch(r){case-1:e.props.target[e.props.property]=null;break;default:e.props.target[e.props.property]=t[r]}e.props.onPropertyChangedObservable&&e.props.onPropertyChangedObservable.notifyObservers({object:e.props.target,property:e.props.property,value:e.props.target[e.props.property],initialValue:n}),e.forceUpdate()},extractValue:function(){if(!e.props.target[e.props.property])return-1;var r=t.indexOf(e.props.target[e.props.property]);return r>-1?r:-1}}))},t}(s.Component),Ar=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.emitter;return s.createElement(s.Fragment,null,s.createElement(Dr,{globalState:this.props.globalState,label:"Source",scene:this.props.scene,onPropertyChangedObservable:this.props.onPropertyChangedObservable,target:this.props.emitter,property:"mesh"}),!e.useMeshNormalsForDirection&&s.createElement(He,{label:"Direction 1",target:e,propertyName:"direction1",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),!e.useMeshNormalsForDirection&&s.createElement(He,{label:"Direction 2",target:e,propertyName:"direction2",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Use normals for direction",target:e,propertyName:"useMeshNormalsForDirection",onPropertyChangedObservable:this.props.onPropertyChangedObservable}))},t}(s.Component),Ir=function(e){function t(t){var r,n=e.call(this,t)||this;return n.state={gradient:t.gradient.gradient,factor1:n.props.gradient.factor1.toString(),factor2:null===(r=n.props.gradient.factor2)||void 0===r?void 0:r.toString()},n}return a(t,e),t.prototype.shouldComponentUpdate=function(e,t){var r;return e.gradient!==this.props.gradient&&(t.gradient=e.gradient.gradient,t.factor1=e.gradient.factor1.toString(),t.factor2=null===(r=e.gradient.factor2)||void 0===r?void 0:r.toString()),!0},t.prototype.updateFactor1=function(e){if(!/[^0-9\.\-]/g.test(e)){var t=parseFloat(e);this.setState({factor1:e}),isNaN(t)||(this.props.gradient.factor1=t,this.props.onUpdateGradient(),this.forceUpdate())}},t.prototype.updateFactor2=function(e){if(!/[^0-9\.\-]/g.test(e)){var t=parseFloat(e);this.setState({factor2:e}),isNaN(t)||(this.props.gradient.factor2=t,this.props.onUpdateGradient(),this.forceUpdate())}},t.prototype.updateGradient=function(e){this.props.gradient.gradient=e,this.setState({gradient:e}),this.props.onUpdateGradient()},t.prototype.onPointerUp=function(){this.props.onCheckForReOrder()},t.prototype.lock=function(){this.props.lockObject&&(this.props.lockObject.lock=!0)},t.prototype.unlock=function(){this.props.lockObject&&(this.props.lockObject.lock=!1)},t.prototype.render=function(){var e=this,t=this.props.gradient;return s.createElement("div",{className:"gradient-step"},s.createElement("div",{className:"step"},"#"+this.props.lineIndex),s.createElement("div",{className:"factor1"},s.createElement("input",{type:"number",step:"0.01",className:"numeric-input",value:this.state.factor1,onBlur:function(){return e.unlock()},onFocus:function(){return e.lock()},onChange:function(t){return e.updateFactor1(t.target.value)}})),this.props.host instanceof u.ParticleSystem&&s.createElement("div",{className:"factor2"},s.createElement("input",{type:"number",step:"0.01",className:"numeric-input"+(this.state.factor1===this.state.factor2||void 0===t.factor2?" grayed":""),value:this.state.factor2,onBlur:function(){return e.unlock()},onFocus:function(){return e.lock()},onChange:function(t){return e.updateFactor2(t.target.value)}})),s.createElement("div",{className:"step-value"},t.gradient.toFixed(2)),s.createElement("div",{className:"step-slider"},s.createElement("input",{className:"range",type:"range",step:.01,min:0,max:1,value:t.gradient,onPointerUp:function(t){return e.onPointerUp()},onChange:function(t){return e.updateGradient(parseFloat(t.target.value))}})),s.createElement("div",{className:"gradient-delete hoverIcon",onClick:function(){return e.props.onDelete()}},s.createElement(w,{icon:me})))},t}(s.Component),jr=function(e){function t(t){var r=e.call(this,t)||this;return r.state={gradient:t.gradient.gradient},r}return a(t,e),t.prototype.updateColor1=function(e){this.props.gradient instanceof u.ColorGradient?this.props.gradient.color1=u.Color4.FromHexString(e):this.props.gradient.color=u.Color3.FromHexString(e),this.props.onUpdateGradient(),this.forceUpdate()},t.prototype.updateColor2=function(e){this.props.gradient instanceof u.ColorGradient&&(this.props.gradient.color2=u.Color4.FromHexString(e)),this.props.onUpdateGradient(),this.forceUpdate()},t.prototype.updateGradient=function(e){this.props.gradient.gradient=e,this.setState({gradient:e}),this.props.onUpdateGradient()},t.prototype.onPointerUp=function(){this.props.onCheckForReOrder()},t.prototype.lock=function(){this.props.lockObject&&(this.props.lockObject.lock=!0)},t.prototype.unlock=function(){this.props.lockObject&&(this.props.lockObject.lock=!1)},t.prototype.render=function(){var e=this,t=this.props.gradient;return s.createElement("div",{className:"gradient-step"},s.createElement("div",{className:"step"},"#"+this.props.lineIndex),s.createElement("div",{className:"color1"},s.createElement(Fe,{value:t instanceof u.Color3Gradient?t.color:t.color1,onColorChanged:function(t){e.updateColor1(t)}})),this.props.host instanceof u.ParticleSystem&&t instanceof u.ColorGradient&&s.createElement("div",{className:"color2"},s.createElement(Fe,{value:t.color2?t.color2:new u.Color4,onColorChanged:function(t){e.updateColor2(t)}})),s.createElement("div",{className:"step-value"},t.gradient.toFixed(2)),s.createElement("div",{className:"step-slider"},s.createElement("input",{className:"range",type:"range",step:.01,min:0,max:1,value:t.gradient,onPointerUp:function(t){return e.onPointerUp()},onChange:function(t){return e.updateGradient(parseFloat(t.target.value))}})),s.createElement("div",{className:"gradient-delete hoverIcon",onClick:function(){return e.props.onDelete()}},s.createElement(w,{icon:me})))},t}(s.Component),zr=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.onLink=function(){this.props.url&&window.open(this.props.url,"_blank")},t.prototype.render=function(){var e=this;return s.createElement("div",{className:"linkButtonLine"},s.createElement("div",{className:"link",title:this.props.label,onClick:function(){return e.onLink()}},this.props.label),s.createElement("div",{className:"link-button"},s.createElement("button",{onClick:function(){return e.props.onClick()}},this.props.buttonLabel)),this.props.icon&&s.createElement("div",{className:"link-icon hoverIcon",onClick:function(){e.props.onIconClick&&e.props.onIconClick()}},s.createElement(w,{icon:this.props.icon})))},t}(s.Component);!function(e){e[e.Factor=0]="Factor",e[e.Color3=1]="Color3",e[e.Color4=2]="Color4"}(Et||(Et={}));var Gr=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.deleteStep=function(e){var t=this.props.gradients,r=t.indexOf(e);r>-1&&(t.splice(r,1),this.updateAndSync())},t.prototype.addNewStep=function(){var e=this.props.gradients;switch(this.props.mode){case Et.Factor:var t=new u.FactorGradient(1,1,1);e.push(t);break;case Et.Color4:var r=new u.ColorGradient(1,new u.Color4(1,1,1,1),new u.Color4(1,1,1,1));e.push(r);break;case Et.Color3:var n=new u.Color3Gradient(1,u.Color3.White());e.push(n)}this.props.host.forceRefreshGradients(),this.forceUpdate()},t.prototype.checkForReOrder=function(){this.props.gradients.sort((function(e,t){return e.gradient===t.gradient?0:e.gradient>t.gradient?1:-1})),this.forceUpdate()},t.prototype.updateAndSync=function(){this.props.host.forceRefreshGradients(),this.forceUpdate()},t.prototype.render=function(){var e=this,t=this.props.gradients;return s.createElement("div",null,t&&t.length>0&&s.createElement("div",{className:"gradient-container"},s.createElement(zr,{label:this.props.label,url:this.props.docLink,icon:me,onIconClick:function(){t.length=0,e.updateAndSync()},buttonLabel:"Add new step",onClick:function(){return e.addNewStep()}}),t.map((function(t,r){var n=e.props.codeRecorderPropertyName+"["+r+"]";switch(e.props.mode){case Et.Factor:return s.createElement(Ir,{globalState:e.props.globalState,lockObject:e.props.lockObject,onCheckForReOrder:function(){return e.checkForReOrder()},onUpdateGradient:function(){return e.updateAndSync()},host:e.props.host,codeRecorderPropertyName:n,key:"step-"+r,lineIndex:r,gradient:t,onDelete:function(){return e.deleteStep(t)}});case Et.Color4:return s.createElement(jr,{globalState:e.props.globalState,host:e.props.host,codeRecorderPropertyName:n,lockObject:e.props.lockObject,isColor3:!1,onCheckForReOrder:function(){return e.checkForReOrder()},onUpdateGradient:function(){return e.updateAndSync()},key:"step-"+r,lineIndex:r,gradient:t,onDelete:function(){return e.deleteStep(t)}});case Et.Color3:return s.createElement(jr,{globalState:e.props.globalState,host:e.props.host,codeRecorderPropertyName:n,lockObject:e.props.lockObject,isColor3:!0,onCheckForReOrder:function(){return e.checkForReOrder()},onUpdateGradient:function(){return e.updateAndSync()},key:"step-"+r,lineIndex:r,gradient:t,onDelete:function(){return e.deleteStep(t)}})}}))),(!t||0===t.length)&&s.createElement(Ze,{label:"Use "+this.props.label,onClick:function(){e.props.onCreateRequired(),e.forceUpdate()}}))},t}(s.Component),Fr=function(e){function t(t){var r=e.call(this,t)||this;return r._snippetUrl="https://snippet.babylonjs.com",r}return a(t,e),t.prototype.renderEmitter=function(){var e,t=this.props.system;switch(null===(e=t.particleEmitterType)||void 0===e?void 0:e.getClassName()){case"BoxParticleEmitter":return s.createElement(Nr,{globalState:this.props.globalState,emitter:t.particleEmitterType,onPropertyChangedObservable:this.props.onPropertyChangedObservable});case"ConeParticleEmitter":return s.createElement(Tr,{globalState:this.props.globalState,emitter:t.particleEmitterType,onPropertyChangedObservable:this.props.onPropertyChangedObservable});case"CylinderParticleEmitter":return s.createElement(_r,{lockObject:this.props.lockObject,globalState:this.props.globalState,emitter:t.particleEmitterType,onPropertyChangedObservable:this.props.onPropertyChangedObservable});case"HemisphericParticleEmitter":return s.createElement(Mr,{lockObject:this.props.lockObject,globalState:this.props.globalState,emitter:t.particleEmitterType,onPropertyChangedObservable:this.props.onPropertyChangedObservable});case"MeshParticleEmitter":return s.createElement(Ar,{lockObject:this.props.lockObject,scene:t.getScene(),globalState:this.props.globalState,emitter:t.particleEmitterType,onPropertyChangedObservable:this.props.onPropertyChangedObservable});case"PointParticleEmitter":return s.createElement(Lr,{lockObject:this.props.lockObject,globalState:this.props.globalState,emitter:t.particleEmitterType,onPropertyChangedObservable:this.props.onPropertyChangedObservable});case"SphereParticleEmitter":return s.createElement(Rr,{lockObject:this.props.lockObject,globalState:this.props.globalState,emitter:t.particleEmitterType,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}return null},t.prototype.raiseOnPropertyChanged=function(e,t,r){if(this.props.onPropertyChangedObservable){var n=this.props.system;this.props.onPropertyChangedObservable.notifyObservers({object:n,property:e,value:t,initialValue:r})}},t.prototype.renderControls=function(){var e=this,t=this.props.system;if(t instanceof u.GPUParticleSystem){var r=t.isStarted()&&!t.isStopped();return s.createElement(Ze,{label:r?"Stop":"Start",onClick:function(){r?(t.stop(),t.reset()):t.start(),e.forceUpdate()}})}var n=t.isStarted();return s.createElement(s.Fragment,null,!t.isStopping()&&s.createElement(Ze,{label:n?"Stop":"Start",onClick:function(){n?t.stop():t.start(),e.forceUpdate()}}),t.isStopping()&&s.createElement(Ee,{label:"System is stoppping...",ignoreValue:!0}))},t.prototype.saveToFile=function(){var e=this.props.system,t=JSON.stringify(e.serialize(!0));u.Tools.Download(new Blob([t]),"particleSystem.json")},t.prototype.loadFromFile=function(e){var t=this,r=this.props.system,n=r.getScene();n&&u.Tools.ReadFile(e,(function(e){var a=new TextDecoder("utf-8"),o=JSON.parse(a.decode(e)),i=r instanceof u.GPUParticleSystem;r.dispose(),t.props.globalState.onSelectionChangedObservable.notifyObservers(null);var l=i?u.GPUParticleSystem.Parse(o,n,""):u.ParticleSystem.Parse(o,n,"");t.props.globalState.onSelectionChangedObservable.notifyObservers(l)}),void 0,!0)},t.prototype.loadFromSnippet=function(){var e=this,t=this.props.system,r=t.getScene(),n=t instanceof u.GPUParticleSystem,a=window.prompt("Please enter the snippet ID to use");a&&r&&(t.dispose(),this.props.globalState.onSelectionChangedObservable.notifyObservers(null),u.ParticleHelper.CreateFromSnippetAsync(a,r,n).then((function(t){e.props.globalState.onSelectionChangedObservable.notifyObservers(t)})).catch((function(e){alert("Unable to load your particle system: "+e)})))},t.prototype.saveToSnippet=function(){var e=this,t=this.props.system,r=JSON.stringify(t.serialize(!0)),n=new XMLHttpRequest;n.onreadystatechange=function(){if(4==n.readyState)if(200==n.status){var r=JSON.parse(n.responseText),a=t.snippetId||"_BLANK";t.snippetId=r.id,r.version&&"0"!=r.version&&(t.snippetId+="#"+r.version),e.forceUpdate(),navigator.clipboard&&navigator.clipboard.writeText(t.snippetId);var o=window;o.Playground&&a&&o.Playground.onRequestCodeChangeObservable.notifyObservers({regex:new RegExp('ParticleHelper.CreateFromSnippetAsync\\("'+a,"g"),replace:'ParticleHelper.CreateFromSnippetAsync("'+t.snippetId}),alert("Particle system saved with ID: "+t.snippetId+" (please note that the id was also saved to your clipboard)")}else alert("Unable to save your particle system")},n.open("POST",this._snippetUrl+(t.snippetId?"/"+t.snippetId:""),!0),n.setRequestHeader("Content-Type","application/json");var a={payload:JSON.stringify({particleSystem:r}),name:"",description:"",tags:""};n.send(JSON.stringify(a))},t.prototype.render=function(){var e,t,r=this,n=this.props.system,a=[{label:"Add",value:u.ParticleSystem.BLENDMODE_ADD},{label:"Multiply",value:u.ParticleSystem.BLENDMODE_MULTIPLY},{label:"Multiply Add",value:u.ParticleSystem.BLENDMODE_MULTIPLYADD},{label:"OneOne",value:u.ParticleSystem.BLENDMODE_ONEONE},{label:"Standard",value:u.ParticleSystem.BLENDMODE_STANDARD}],o=this.props.system.getScene().meshes.filter((function(e){return!!e.name})),i=[{label:"None",value:-1},{label:"Vector3",value:0}];return o.sort((function(e,t){return e.name.localeCompare(t.name)})),i.push.apply(i,o.map((function(e,t){return{label:e.name,value:t+1}}))),s.createElement("div",{className:"pane"},s.createElement(Ye,{globalState:this.props.globalState,target:n,lockObject:this.props.lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Oe,{globalState:this.props.globalState,title:"GENERAL"},s.createElement(Ee,{label:"ID",value:n.id}),s.createElement(We,{lockObject:this.props.lockObject,label:"Name",target:n,propertyName:"name",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Ee,{label:"Class",value:n.getClassName()}),s.createElement(Ee,{label:"Capacity",value:n.getCapacity().toString()}),s.createElement(Ee,{label:"Active count",value:n.getActiveCount().toString()}),s.createElement($e,{label:"Texture",texture:n.particleTexture,onSelectionChangedObservable:this.props.onSelectionChangedObservable}),s.createElement(Ae,{label:"Blend mode",options:a,target:n,propertyName:"blendMode",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(He,{label:"World offset",target:n,propertyName:"worldOffset",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(He,{label:"Gravity",target:n,propertyName:"gravity",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Is billboard",target:n,propertyName:"isBillboardBased",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Is local",target:n,propertyName:"isLocal",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Force depth write",target:n,propertyName:"forceDepthWrite",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Update speed",target:n,propertyName:"updateSpeed",minimum:0,maximum:.1,decimalCount:3,step:.001,onPropertyChangedObservable:this.props.onPropertyChangedObservable})),s.createElement(Oe,{globalState:this.props.globalState,title:"COMMANDS"},this.renderControls(),s.createElement(Ze,{label:"Dispose",onClick:function(){r.props.globalState.onSelectionChangedObservable.notifyObservers(null),n.dispose()}})),s.createElement(Oe,{globalState:this.props.globalState,title:"FILE"},s.createElement(qe,{label:"Load",onClick:function(e){return r.loadFromFile(e)},accept:".json"}),s.createElement(Ze,{label:"Save",onClick:function(){return r.saveToFile()}})),s.createElement(Oe,{globalState:this.props.globalState,title:"SNIPPET"},n.snippetId&&s.createElement(Ee,{label:"Snippet ID",value:n.snippetId}),s.createElement(Ze,{label:"Load from snippet server",onClick:function(){return r.loadFromSnippet()}}),s.createElement(Ze,{label:"Save to snippet server",onClick:function(){return r.saveToSnippet()}})),s.createElement(Oe,{globalState:this.props.globalState,title:"EMITTER",closed:!0},s.createElement(Ae,{label:"Emitter",options:i,target:n,propertyName:"emitter",noDirectUpdate:!0,onSelect:function(e){switch(e){case-1:r.raiseOnPropertyChanged("emitter",null,n.emitter),n.emitter=null;break;case 0:r.raiseOnPropertyChanged("emitter",u.Vector3.Zero(),n.emitter),n.emitter=u.Vector3.Zero();break;default:r.raiseOnPropertyChanged("emitter",o[e-1],n.emitter),n.emitter=o[e-1]}r.forceUpdate()},extractValue:function(){if(!n.emitter)return-1;if(void 0!==n.emitter.x)return 0;var e=o.indexOf(n.emitter);return e>-1?e+1:-1}}),n.emitter&&void 0===n.emitter.x&&s.createElement(Ee,{label:"Link to emitter",value:n.emitter.name,onLink:function(){return r.props.globalState.onSelectionChangedObservable.notifyObservers(n.emitter)}}),n.emitter&&void 0!==n.emitter.x&&s.createElement(He,{label:"Position",target:n,propertyName:"emitter",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Ae,{label:"Type",options:[{label:"Box",value:0},{label:"Cone",value:1},{label:"Cylinder",value:2},{label:"Hemispheric",value:3},{label:"Mesh",value:4},{label:"Point",value:5},{label:"Sphere",value:6}],target:n,propertyName:"particleEmitterType",noDirectUpdate:!0,onSelect:function(e){var t=n.particleEmitterType;switch(e){case 0:n.particleEmitterType=new u.BoxParticleEmitter;break;case 1:n.particleEmitterType=new u.ConeParticleEmitter;break;case 2:n.particleEmitterType=new u.CylinderParticleEmitter;break;case 3:n.particleEmitterType=new u.HemisphericParticleEmitter;break;case 4:n.particleEmitterType=new u.MeshParticleEmitter;break;case 5:n.particleEmitterType=new u.PointParticleEmitter;break;case 6:n.particleEmitterType=new u.SphereParticleEmitter}r.raiseOnPropertyChanged("particleEmitterType",n.particleEmitterType,t),r.forceUpdate()},extractValue:function(){var e;switch(null===(e=n.particleEmitterType)||void 0===e?void 0:e.getClassName()){case"BoxParticleEmitter":return 0;case"ConeParticleEmitter":return 1;case"CylinderParticleEmitter":return 2;case"HemisphericParticleEmitter":return 3;case"MeshParticleEmitter":return 4;case"PointParticleEmitter":return 5;case"SphereParticleEmitter":return 6}return 0}}),this.renderEmitter()),s.createElement(Oe,{globalState:this.props.globalState,title:"EMISSION",closed:!0},s.createElement(Le,{lockObject:this.props.lockObject,label:"Rate",target:n,propertyName:"emitRate",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),n instanceof u.ParticleSystem&&s.createElement(Gr,{globalState:this.props.globalState,gradients:n.getEmitRateGradients(),label:"Velocity gradients",docLink:"https://doc.babylonjs.com/babylon101/particles#emit-rate-over-time",onCreateRequired:function(){n.addEmitRateGradient(0,50,50)},mode:Et.Factor,host:n,codeRecorderPropertyName:"getEmitRateGradients()",lockObject:this.props.lockObject}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Min emit power",target:n,propertyName:"minEmitPower",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Max emit power",target:n,propertyName:"maxEmitPower",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Gr,{globalState:this.props.globalState,gradients:n.getVelocityGradients(),label:"Velocity gradients",docLink:"https://doc.babylonjs.com/babylon101/particles#velocity-over-time",onCreateRequired:function(){n.addVelocityGradient(0,.1,.1)},mode:Et.Factor,host:n,codeRecorderPropertyName:"getVelocityGradients()",lockObject:this.props.lockObject}),s.createElement(Gr,{globalState:this.props.globalState,gradients:n.getLimitVelocityGradients(),label:"Limit velocity gradients",docLink:"https://doc.babylonjs.com/babylon101/particles#limit-velocity-over-time",onCreateRequired:function(){n.addLimitVelocityGradient(0,.1,.1)},mode:Et.Factor,host:n,codeRecorderPropertyName:"getLimitVelocityGradients()",lockObject:this.props.lockObject}),s.createElement(Gr,{globalState:this.props.globalState,gradients:n.getDragGradients(),label:"Drag gradients",docLink:"https://doc.babylonjs.com/babylon101/particles#drag-factor",onCreateRequired:function(){n.addDragGradient(0,.1,.1)},host:n,codeRecorderPropertyName:"getDragGradients()",mode:Et.Factor,lockObject:this.props.lockObject})),s.createElement(Oe,{globalState:this.props.globalState,title:"SIZE",closed:!0},(!n.getSizeGradients()||0===(null===(e=n.getSizeGradients())||void 0===e?void 0:e.length))&&s.createElement(s.Fragment,null,s.createElement(Le,{lockObject:this.props.lockObject,label:"Min size",target:n,propertyName:"minSize",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Max size",target:n,propertyName:"maxSize",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),s.createElement(Le,{lockObject:this.props.lockObject,label:"Min scale X",target:n,propertyName:"minScaleX",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Max scale X",target:n,propertyName:"maxScaleX",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Min scale Y",target:n,propertyName:"minScaleY",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Max scale Y",target:n,propertyName:"maxScaleY",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),n instanceof u.ParticleSystem&&s.createElement(Gr,{globalState:this.props.globalState,gradients:n.getStartSizeGradients(),label:"Start size gradients",docLink:"https://doc.babylonjs.com/babylon101/particles#start-size-over-time",onCreateRequired:function(){n.addStartSizeGradient(0,1,1)},host:n,codeRecorderPropertyName:"getStartSizeGradients()",mode:Et.Factor,lockObject:this.props.lockObject}),s.createElement(Gr,{globalState:this.props.globalState,gradients:n.getSizeGradients(),label:"Size gradients",docLink:"https://doc.babylonjs.com/babylon101/particles#size",onCreateRequired:function(){n.addSizeGradient(0,1,1)},host:n,codeRecorderPropertyName:"getSizeGradients()",mode:Et.Factor,lockObject:this.props.lockObject})),s.createElement(Oe,{globalState:this.props.globalState,title:"LIFETIME",closed:!0},s.createElement(Le,{lockObject:this.props.lockObject,label:"Min lifetime",target:n,propertyName:"minLifeTime",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Max lifetime",target:n,propertyName:"maxLifeTime",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Target stop duration",target:n,propertyName:"targetStopDuration",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),n instanceof u.ParticleSystem&&s.createElement(Gr,{globalState:this.props.globalState,gradients:n.getLifeTimeGradients(),label:"Lifetime gradients",docLink:"https://doc.babylonjs.com/babylon101/particles#lifetime",onCreateRequired:function(){n.addLifeTimeGradient(0,1,1)},host:n,codeRecorderPropertyName:"getLifeTimeGradients()",mode:Et.Factor,lockObject:this.props.lockObject})),s.createElement(Oe,{globalState:this.props.globalState,title:"COLORS",closed:!0},(!n.getColorGradients()||0===(null===(t=n.getColorGradients())||void 0===t?void 0:t.length))&&s.createElement(s.Fragment,null,s.createElement(Er,{label:"Color 1",target:n,propertyName:"color1",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Er,{label:"Color 2",target:n,propertyName:"color2",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Er,{label:"Color dead",target:n,propertyName:"colorDead",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),s.createElement(Gr,{globalState:this.props.globalState,gradients:n.getColorGradients(),label:"Color gradients",docLink:"https://doc.babylonjs.com/babylon101/particles#particle-colors",onCreateRequired:function(){n.addColorGradient(0,new u.Color4(0,0,0,1),new u.Color4(0,0,0,1)),n.addColorGradient(1,new u.Color4(1,1,1,1),new u.Color4(1,1,1,1))},host:n,codeRecorderPropertyName:"getColorGradients()",mode:Et.Color4,lockObject:this.props.lockObject}),n instanceof u.ParticleSystem&&s.createElement(s.Fragment,null,s.createElement(we,{label:"Enable ramp grandients",target:n,propertyName:"useRampGradients"}),n.useRampGradients&&s.createElement(s.Fragment,null,s.createElement(Gr,{globalState:this.props.globalState,gradients:n.getRampGradients(),label:"Ramp gradients",docLink:"https://doc.babylonjs.com/babylon101/particles#ramp-gradients",onCreateRequired:function(){n.addRampGradient(0,u.Color3.White()),n.addRampGradient(1,u.Color3.Black())},mode:Et.Color3,host:n,codeRecorderPropertyName:"getRampGradients()",lockObject:this.props.lockObject}),s.createElement(Gr,{globalState:this.props.globalState,gradients:n.getColorRemapGradients(),label:"Color remap gradients",docLink:"https://doc.babylonjs.com/babylon101/particles#ramp-gradients",onCreateRequired:function(){n.addColorRemapGradient(0,1,1)},host:n,codeRecorderPropertyName:"getColorRemapGradients()",mode:Et.Factor,lockObject:this.props.lockObject}),s.createElement(Gr,{globalState:this.props.globalState,gradients:n.getAlphaRemapGradients(),label:"Alpha remap gradients",docLink:"https://doc.babylonjs.com/babylon101/particles#ramp-gradients",onCreateRequired:function(){n.addAlphaRemapGradient(0,1,1)},host:n,codeRecorderPropertyName:"getAlphaRemapGradients()",mode:Et.Factor,lockObject:this.props.lockObject})))),s.createElement(Oe,{globalState:this.props.globalState,title:"ROTATION",closed:!0},s.createElement(Le,{lockObject:this.props.lockObject,label:"Min angular speed",target:n,propertyName:"minAngularSpeed",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Max angular speed",target:n,propertyName:"maxAngularSpeed",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Min initial rotation",target:n,propertyName:"minInitialRotation",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Max initial rotation",target:n,propertyName:"maxInitialRotation",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Gr,{globalState:this.props.globalState,gradients:n.getAngularSpeedGradients(),label:"Angular speed gradients",docLink:"hhttps://doc.babylonjs.com/babylon101/particles#rotation",onCreateRequired:function(){n.addAngularSpeedGradient(0,.1,.1)},host:n,codeRecorderPropertyName:"getAngularSpeedGradients()",mode:Et.Factor,lockObject:this.props.lockObject})),s.createElement(Oe,{globalState:this.props.globalState,title:"SPRITESHEET",closed:!0},s.createElement(we,{label:"Animation sheet enabled",target:n,propertyName:"isAnimationSheetEnabled",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{label:"First sprite index",isInteger:!0,target:n,propertyName:"startSpriteCellID",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{label:"Last sprite index",isInteger:!0,target:n,propertyName:"endSpriteCellID",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Random start cell index",target:n,propertyName:"spriteRandomStartCell",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{label:"Cell width",isInteger:!0,target:n,propertyName:"spriteCellWidth",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{label:"Cell height",isInteger:!0,target:n,propertyName:"spriteCellHeight",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Cell change speed",target:n,propertyName:"spriteCellChangeSpeed",minimum:0,maximum:10,step:.1,onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(s.Component),Vr=function(e){function t(t){var r=e.call(this,t)||this;return r._snippetUrl="https://snippet.babylonjs.com",r}return a(t,e),t.prototype.addNewSprite=function(){var e,t=this.props.spriteManager,r=new u.Sprite("new sprite",t);null===(e=this.props.onSelectionChangedObservable)||void 0===e||e.notifyObservers(r)},t.prototype.disposeManager=function(){var e;this.props.spriteManager.dispose(),null===(e=this.props.onSelectionChangedObservable)||void 0===e||e.notifyObservers(null)},t.prototype.saveToFile=function(){var e=this.props.spriteManager,t=JSON.stringify(e.serialize(!0));u.Tools.Download(new Blob([t]),"spriteManager.json")},t.prototype.loadFromFile=function(e){var t=this,r=this.props.spriteManager,n=r.scene;u.Tools.ReadFile(e,(function(e){var a=new TextDecoder("utf-8"),o=JSON.parse(a.decode(e));r.dispose(),t.props.globalState.onSelectionChangedObservable.notifyObservers(null);var i=u.SpriteManager.Parse(o,n,"");t.props.globalState.onSelectionChangedObservable.notifyObservers(i)}),void 0,!0)},t.prototype.loadFromSnippet=function(){var e=this,t=this.props.spriteManager,r=t.scene,n=window.prompt("Please enter the snippet ID to use");n&&(t.dispose(),this.props.globalState.onSelectionChangedObservable.notifyObservers(null),u.SpriteManager.CreateFromSnippetAsync(n,r).then((function(t){e.props.globalState.onSelectionChangedObservable.notifyObservers(t)})).catch((function(e){alert("Unable to load your sprite manager: "+e)})))},t.prototype.saveToSnippet=function(){var e=this,t=this.props.spriteManager,r=JSON.stringify(t.serialize(!0)),n=new XMLHttpRequest;n.onreadystatechange=function(){if(4==n.readyState)if(200==n.status){var r=JSON.parse(n.responseText),a=t.snippetId||"_BLANK";t.snippetId=r.id,r.version&&"0"!=r.version&&(t.snippetId+="#"+r.version),e.forceUpdate(),navigator.clipboard&&navigator.clipboard.writeText(t.snippetId);var o=window;o.Playground&&a&&o.Playground.onRequestCodeChangeObservable.notifyObservers({regex:new RegExp('SpriteManager.CreateFromSnippetAsync\\("'+a,"g"),replace:'SpriteManager.CreateFromSnippetAsync("'+t.snippetId}),alert("Sprite manager saved with ID: "+t.snippetId+" (please note that the id was also saved to your clipboard)")}else alert("Unable to save your sprite manager")},n.open("POST",this._snippetUrl+(t.snippetId?"/"+t.snippetId:""),!0),n.setRequestHeader("Content-Type","application/json");var a={payload:JSON.stringify({spriteManager:r}),name:"",description:"",tags:""};n.send(JSON.stringify(a))},t.prototype.render=function(){var e=this,t=this.props.spriteManager,r=[{label:"Combine",value:u.Constants.ALPHA_COMBINE},{label:"One one",value:u.Constants.ALPHA_ONEONE},{label:"Add",value:u.Constants.ALPHA_ADD},{label:"Subtract",value:u.Constants.ALPHA_SUBTRACT},{label:"Multiply",value:u.Constants.ALPHA_MULTIPLY},{label:"Maximized",value:u.Constants.ALPHA_MAXIMIZED},{label:"Pre-multiplied",value:u.Constants.ALPHA_PREMULTIPLIED}];return s.createElement("div",{className:"pane"},s.createElement(Oe,{globalState:this.props.globalState,title:"GENERAL"},s.createElement(We,{lockObject:this.props.lockObject,label:"Name",target:t,propertyName:"name",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Ee,{label:"Unique ID",value:t.uniqueId.toString()}),s.createElement(Ee,{label:"Capacity",value:t.capacity.toString()}),s.createElement($e,{label:"Texture",texture:t.texture,onSelectionChangedObservable:this.props.onSelectionChangedObservable}),t.sprites.length<t.capacity&&s.createElement(Ze,{label:"Add new sprite",onClick:function(){return e.addNewSprite()}}),s.createElement(Ze,{label:"Dispose",onClick:function(){return e.disposeManager()}})),s.createElement(Oe,{globalState:this.props.globalState,title:"FILE"},s.createElement(qe,{label:"Load",onClick:function(t){return e.loadFromFile(t)},accept:".json"}),s.createElement(Ze,{label:"Save",onClick:function(){return e.saveToFile()}})),s.createElement(Oe,{globalState:this.props.globalState,title:"SNIPPET"},t.snippetId&&s.createElement(Ee,{label:"Snippet ID",value:t.snippetId}),s.createElement(Ze,{label:"Load from snippet server",onClick:function(){return e.loadFromSnippet()}}),s.createElement(Ze,{label:"Save to snippet server",onClick:function(){return e.saveToSnippet()}})),s.createElement(Oe,{globalState:this.props.globalState,title:"PROPERTIES"},s.createElement(we,{label:"Pickable",target:t,propertyName:"isPickable",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Fog enabled",target:t,propertyName:"fogEnabled",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"No depth write",target:t,propertyName:"disableDepthWrite",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{label:"Rendering group ID",decimalCount:0,target:t,propertyName:"renderingGroupId",minimum:u.RenderingManager.MIN_RENDERINGGROUPS,maximum:u.RenderingManager.MAX_RENDERINGGROUPS-1,step:1,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Ae,{label:"Alpha mode",options:r,target:t,propertyName:"blendMode",onPropertyChangedObservable:this.props.onPropertyChangedObservable,onSelect:function(t){return e.setState({blendMode:t})}})),s.createElement(Oe,{globalState:this.props.globalState,title:"CELLS"},s.createElement(Le,{label:"Cell width",isInteger:!0,target:t,propertyName:"cellWidth",min:0,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{label:"Cell height",isInteger:!0,target:t,propertyName:"cellHeight",min:0,onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(s.Component),Ur=function(e){function t(t){var r=e.call(this,t)||this;return r.imageData=null,r.cachedCellIndex=-1,r.canvasRef=s.createRef(),r}return a(t,e),t.prototype.onManagerLink=function(){if(this.props.onSelectionChangedObservable){var e=this.props.sprite;this.props.onSelectionChangedObservable.notifyObservers(e.manager)}},t.prototype.switchPlayStopState=function(){var e=this.props.sprite;e.animationStarted?e.stopAnimation():e.playAnimation(e.fromIndex,e.toIndex,e.loopAnimation,e.delay,(function(){})),this.forceUpdate()},t.prototype.disposeSprite=function(){var e;this.props.sprite.dispose(),null===(e=this.props.onSelectionChangedObservable)||void 0===e||e.notifyObservers(null)},t.prototype.componentDidMount=function(){this.updatePreview()},t.prototype.componentDidUpdate=function(){this.updatePreview()},t.prototype.shouldComponentUpdate=function(e){return e.sprite!==this.props.sprite&&(this.imageData=null),!0},t.prototype.updatePreview=function(){var e=this,t=this.props.sprite,r=t.manager,n=r.texture,a=n.getSize();if(this.imageData){if(this.cachedCellIndex!==t.cellIndex){this.cachedCellIndex=t.cellIndex;var o=this.canvasRef.current;o.width=r.cellWidth,o.height=r.cellHeight;var i=o.getContext("2d");if(i){for(var l=i.createImageData(r.cellWidth,r.cellHeight),s=l.data,p=a.width/r.cellWidth|0,c=t.cellIndex/p|0,u=4*(t.cellIndex-c*p+c*a.width)*r.cellWidth,d=0;d<r.cellWidth;d++)for(var h=0;h<r.cellHeight;h++){var b=4*(d+h*r.cellWidth),m=4*(d+h*a.width);s[b]=this.imageData[u+m],s[b+1]=this.imageData[u+m+1],s[b+2]=this.imageData[u+m+2],s[b+3]=this.imageData[u+m+3]}i.putImageData(l,0,0)}}}else rt.GetTextureDataAsync(n,a.width,a.height,0,{R:!0,G:!0,B:!0,A:!0},this.props.globalState).then((function(t){e.imageData=t,e.forceUpdate()}))},t.prototype.render=function(){var e=this,t=this.props.sprite,r=t.manager,n=r.texture.getSize(),a=0;return a=n.width&&n.height?n.width/r.cellWidth*(n.height/r.cellHeight):Math.max(t.fromIndex,t.toIndex),s.createElement("div",{className:"pane"},s.createElement(Oe,{globalState:this.props.globalState,title:"GENERAL"},s.createElement(We,{lockObject:this.props.lockObject,label:"Name",target:t,propertyName:"name",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Ee,{label:"Unique ID",value:t.uniqueId.toString()}),s.createElement(Ee,{label:"Link to manager",value:r.name,onLink:function(){return e.onManagerLink()}}),s.createElement(we,{label:"Visible",target:t,propertyName:"isVisible",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Ze,{label:"Dispose",onClick:function(){return e.disposeSprite()}})),s.createElement(Oe,{globalState:this.props.globalState,title:"PROPERTIES"},s.createElement(He,{label:"Position",target:t,propertyName:"position",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Pickable",target:t,propertyName:"isPickable",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Use alpha for picking",target:t,propertyName:"useAlphaForPicking",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Er,{label:"Color",target:t,propertyName:"color",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Re,{useEuler:this.props.globalState.onlyUseEulers,label:"Angle",target:t,propertyName:"angle",minimum:0,maximum:2*Math.PI,step:.01,onPropertyChangedObservable:this.props.onPropertyChangedObservable})),s.createElement(Oe,{globalState:this.props.globalState,title:"CELL"},s.createElement("canvas",{ref:this.canvasRef,className:"preview",style:{margin:"auto",marginTop:"4px",marginBottom:"4px",display:"grid",height:"108px"}}),s.createElement(Re,{label:"Cell index",decimalCount:0,target:t,propertyName:"cellIndex",minimum:0,maximum:a,step:1,onPropertyChangedObservable:this.props.onPropertyChangedObservable,onChange:function(){return e.forceUpdate()}}),s.createElement(we,{label:"Invert U axis",target:t,propertyName:"invertU",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Invert V axis",target:t,propertyName:"invertV",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),s.createElement(Oe,{globalState:this.props.globalState,title:"SCALE"},s.createElement(Le,{label:"Width",lockObject:this.props.lockObject,target:t,propertyName:"width",min:0,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{label:"Height",lockObject:this.props.lockObject,target:t,propertyName:"height",min:0,onPropertyChangedObservable:this.props.onPropertyChangedObservable})),s.createElement(Oe,{globalState:this.props.globalState,title:"ANIMATION"},s.createElement(Le,{label:"Start cell",isInteger:!0,lockObject:this.props.lockObject,target:t,propertyName:"fromIndex",min:0,max:a,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{label:"End cell",isInteger:!0,lockObject:this.props.lockObject,target:t,propertyName:"toIndex",min:0,max:a,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Loop",target:t,propertyName:"loopAnimation",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{label:"Delay",lockObject:this.props.lockObject,target:t,propertyName:"delay",digits:0,min:0,isInteger:!0,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Ze,{label:t.animationStarted?"Stop":"Start",onClick:function(){return e.switchPlayStopState()}})))},t}(s.Component),Hr=function(e){function t(t){var r=e.call(this,t)||this;return r.playOrPause=function(){r._animationGroup&&(r._animationGroup.isPlaying?r._animationGroup.stop():r._animationGroup.start(),r.forceUpdate())},r.deleteAnimation=function(){var e;if(r._animationGroup){var t=r._animationGroup.targetedAnimations.indexOf(r.props.targetedAnimation);t>-1&&(r._animationGroup.targetedAnimations.splice(t,1),null===(e=r.props.onSelectionChangedObservable)||void 0===e||e.notifyObservers(null),r._animationGroup.isPlaying&&(r._animationGroup.stop(),r._animationGroup.start()))}},r._animationGroup=r.props.scene.animationGroups.find((function(e){return void 0!==e.targetedAnimations.find((function(e){return e===r.props.targetedAnimation}))})),r}return a(t,e),t.prototype.render=function(){var e=this,t=this.props.targetedAnimation;return s.createElement("div",{className:"pane"},s.createElement(Oe,{globalState:this.props.globalState,title:"GENERAL"},s.createElement(Ee,{label:"Class",value:t.getClassName()}),s.createElement(We,{lockObject:this.props.lockObject,label:"Name",target:t.animation,propertyName:"name",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),t.target.name&&s.createElement(Ee,{label:"Target",value:t.target.name,onLink:function(){return e.props.globalState.onSelectionChangedObservable.notifyObservers(t)}}),s.createElement(Ze,{label:"Dispose",onClick:this.deleteAnimation})))},t}(s.Component),Br=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.camera;return s.createElement("div",{className:"pane"},s.createElement(Dt,{globalState:this.props.globalState,lockObject:this.props.lockObject,camera:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Oe,{globalState:this.props.globalState,title:"TRANSFORMS"},s.createElement(Le,{lockObject:this.props.lockObject,label:"Radius",target:e,propertyName:"radius",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Rotation offset",target:e,propertyName:"rotationOffset",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Height offset",target:e,propertyName:"heightOffset",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Camera acceleration",target:e,propertyName:"cameraAcceleration",onPropertyChangedObservable:this.props.onPropertyChangedObservable})),s.createElement(Oe,{globalState:this.props.globalState,title:"LIMITS",closed:!0},s.createElement(Le,{lockObject:this.props.lockObject,label:"Lower radius limit",target:e,propertyName:"lowerRadiusLimit",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Upper radius limit",target:e,propertyName:"upperRadiusLimit",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Lower rotation offset limit",target:e,propertyName:"lowerRotationOffsetLimit",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Upper rotation offset limit",target:e,propertyName:"upperRotationOffsetLimit",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Lower height offset limit",target:e,propertyName:"lowerHeightOffsetLimit",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Upper height offset limit",target:e,propertyName:"upperHeightOffsetLimit",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Le,{lockObject:this.props.lockObject,label:"Max camera speed",target:e,propertyName:"maxCameraSpeed",onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(s.Component),Wr=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this,t=this.props.sound;return s.createElement("div",{className:"pane"},s.createElement(Oe,{globalState:this.props.globalState,title:"GENERAL"},s.createElement(Ee,{label:"Class",value:t.getClassName()}),s.createElement(We,{lockObject:this.props.lockObject,label:"Name",target:t,propertyName:"name",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(Ee,{label:"Status",value:t.isPaused?"Paused":t.isPlaying?"Playing":"Stopped"})),s.createElement(Oe,{globalState:this.props.globalState,title:"COMMANDS"},t.isPlaying&&s.createElement(Ze,{label:"Pause",onClick:function(){t.pause(),e.forceUpdate()}}),!t.isPlaying&&s.createElement(Ze,{label:"Play",onClick:function(){t.play(),e.forceUpdate()}}),s.createElement(Re,{label:"Samples",target:t,directValue:t.getVolume(),onChange:function(r){t.setVolume(r),e.forceUpdate()},minimum:0,maximum:5,step:.1,decimalCount:1,onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Loop",target:t,propertyName:"loop",onPropertyChangedObservable:this.props.onPropertyChangedObservable})))},t}(s.Component),Yr=function(e){function t(t){var r=e.call(this,t)||this;return r._lockObject=new Zt,r}return a(t,e),t.prototype.timerRefresh=function(){this._lockObject.lock||this.forceUpdate()},t.prototype.componentDidMount=function(){var e=this;this._timerIntervalId=window.setInterval((function(){return e.timerRefresh()}),500)},t.prototype.componentWillUnmount=function(){window.clearInterval(this._timerIntervalId)},t.prototype.render=function(){var e=this.props.selectedEntity;if(!e)return s.createElement("div",{className:"infoMessage"},"Please select an entity in the scene explorer.");if(e.getClassName){var t=e.getClassName();if("Scene"===t){var r=e;return s.createElement(Nt,{scene:r,globalState:this.props.globalState,lockObject:this._lockObject,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if("Sound"===t){var n=e;return s.createElement(Wr,{sound:n,globalState:this.props.globalState,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if("Sprite"===t){var a=e;return s.createElement(Ur,{sprite:a,globalState:this.props.globalState,lockObject:this._lockObject,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if("SpriteManager"===t){var o=e;return s.createElement(Vr,{spriteManager:o,globalState:this.props.globalState,lockObject:this._lockObject,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if(-1!==t.indexOf("Mesh")){var i=e;if(i.getTotalVertices()>0)return s.createElement("div",null,s.createElement(zt,{globalState:this.props.globalState,mesh:i,lockObject:this._lockObject,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onPropertyChangedObservable:this.props.onPropertyChangedObservable}))}if(-1!==t.indexOf("ParticleSystem")){var l=e;return s.createElement(Fr,{globalState:this.props.globalState,system:l,lockObject:this._lockObject,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if(-1!==t.indexOf("FreeCamera")||-1!==t.indexOf("UniversalCamera")||-1!==t.indexOf("WebXRCamera")||-1!==t.indexOf("DeviceOrientationCamera")){var p=e;return s.createElement(At,{globalState:this.props.globalState,camera:p,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if(-1!==t.indexOf("ArcRotateCamera")){var c=e;return s.createElement(It,{globalState:this.props.globalState,camera:c,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if(-1!==t.indexOf("FollowCamera")){var u=e;return s.createElement(Br,{globalState:this.props.globalState,camera:u,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if("HemisphericLight"===t){var d=e;return s.createElement(_t,{globalState:this.props.globalState,light:d,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if("PointLight"===t){var h=e;return s.createElement(Lt,{globalState:this.props.globalState,light:h,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if("DirectionalLight"===t){h=e;return s.createElement(gr,{globalState:this.props.globalState,light:h,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if("SpotLight"===t){h=e;return s.createElement(fr,{globalState:this.props.globalState,light:h,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if(-1!==t.indexOf("TransformNode")||-1!==t.indexOf("Mesh")){var b=e;return s.createElement(Gt,{transformNode:b,globalState:this.props.globalState,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if("MultiMaterial"===t){var m=e;return s.createElement(kr,{globalState:this.props.globalState,material:m,lockObject:this._lockObject,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if("StandardMaterial"===t){m=e;return s.createElement(Je,{globalState:this.props.globalState,material:m,lockObject:this._lockObject,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if("NodeMaterial"===t){m=e;return s.createElement(wr,{globalState:this.props.globalState,material:m,lockObject:this._lockObject,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if("PBRMaterial"===t){m=e;return s.createElement(Pt,{globalState:this.props.globalState,material:m,lockObject:this._lockObject,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if("PBRMetallicRoughnessMaterial"===t){m=e;return s.createElement(ar,{globalState:this.props.globalState,material:m,lockObject:this._lockObject,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if("PBRSpecularGlossinessMaterial"===t){m=e;return s.createElement(or,{globalState:this.props.globalState,material:m,lockObject:this._lockObject,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if("BackgroundMaterial"===t){m=e;return s.createElement(Ft,{globalState:this.props.globalState,material:m,lockObject:this._lockObject,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if("AnimationGroup"===t){var g=e;return s.createElement(Yt,{globalState:this.props.globalState,animationGroup:g,scene:this.props.scene,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if("TargetedAnimation"===t){var f=e;return s.createElement(Hr,{globalState:this.props.globalState,targetedAnimation:f,scene:this.props.scene,lockObject:this._lockObject,onSelectionChangedObservable:this.props.onSelectionChangedObservable,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if(-1!==t.indexOf("Material")){m=e;return s.createElement(Qe,{material:m,globalState:this.props.globalState,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if(-1!==t.indexOf("DefaultRenderingPipeline")){var v=e;return s.createElement(ur,{renderPipeline:v,globalState:this.props.globalState,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if(-1!==t.indexOf("LensRenderingPipeline")){v=e;return s.createElement(vr,{renderPipeline:v,globalState:this.props.globalState,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if(-1!==t.indexOf("SSAORenderingPipeline")){v=e;return s.createElement(dr,{renderPipeline:v,globalState:this.props.globalState,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if(-1!==t.indexOf("SSAO2RenderingPipeline")){v=e;return s.createElement(hr,{renderPipeline:v,globalState:this.props.globalState,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if(-1!==t.indexOf("RenderingPipeline")){v=e;return s.createElement(cr,{renderPipeline:v,globalState:this.props.globalState,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if(-1!==t.indexOf("PostProcess")){var y=e;return s.createElement(sr,{postProcess:y,globalState:this.props.globalState,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if(-1!==t.indexOf("Texture")){var C=e;return s.createElement(St,{texture:C,globalState:this.props.globalState,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if(-1!==t.indexOf("Skeleton")){var E=e;return s.createElement(br,{skeleton:E,globalState:this.props.globalState,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if(-1!==t.indexOf("Bone")){var O=e;return s.createElement(mr,{bone:O,globalState:this.props.globalState,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if("TextBlock"===t){var S=e;return s.createElement(Ht,{textBlock:S,globalState:this.props.globalState,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if("InputText"===t){var x=e;return s.createElement(Bt,{inputText:x,globalState:this.props.globalState,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if("ColorPicker"===t){var P=e;return s.createElement(Wt,{colorPicker:P,globalState:this.props.globalState,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if("Image"===t){var w=e;return s.createElement(Kt,{image:w,globalState:this.props.globalState,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if("Slider"===t){var k=e;return s.createElement(Xt,{slider:k,globalState:this.props.globalState,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if("ImageBasedSlider"===t){var N=e;return s.createElement(Qt,{imageBasedSlider:N,globalState:this.props.globalState,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if("Rectangle"===t){var T=e;return s.createElement(qt,{rectangle:T,globalState:this.props.globalState,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if("StackPanel"===t){var _=e;return s.createElement(ir,{stackPanel:_,globalState:this.props.globalState,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if("Grid"===t){var M=e;return s.createElement(nr,{grid:M,globalState:this.props.globalState,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if("ScrollViewer"===t){var L=e;return s.createElement(rr,{scrollViewer:L,globalState:this.props.globalState,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if("Ellipse"===t){var R=e;return s.createElement($t,{ellipse:R,globalState:this.props.globalState,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if("Checkbox"===t){var D=e;return s.createElement(Jt,{checkbox:D,globalState:this.props.globalState,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if("RadioButton"===t){var A=e;return s.createElement(er,{radioButton:A,globalState:this.props.globalState,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if("Line"===t){var I=e;return s.createElement(tr,{line:I,globalState:this.props.globalState,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}if(e._host){var j=e;return s.createElement(Ut,{control:j,globalState:this.props.globalState,lockObject:this._lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})}}return null},t}(Ce),Zr=function(e){function t(t){var r=e.call(this,t)||this;return r._backStack=new Array,r.state={isBackVisible:!1},r}return a(t,e),t.prototype.componentDidMount=function(){var e=this;this.props.onSelectionChangedObservable&&(this._onSelectionChangeObserver=this.props.onSelectionChangedObservable.add((function(t){0!==e._backStack.length&&t===e._backStack[e._backStack.length-1]||(e._backStack.push(t),e.setState({isBackVisible:e._backStack.length>1}))})))},t.prototype.componentWillUnmount=function(){this._onSelectionChangeObserver&&this.props.onSelectionChangedObservable.remove(this._onSelectionChangeObserver)},t.prototype.goBack=function(){this._backStack.pop();var e=this._backStack[this._backStack.length-1];this.props.onSelectionChangedObservable&&this.props.onSelectionChangedObservable.notifyObservers(e),this.setState({isBackVisible:this._backStack.length>1})},t.prototype.renderLogo=function(){var e=this;return this.props.noCommands?null:this.props.handleBack?this.state.isBackVisible?s.createElement("div",{id:"back",onClick:function(){return e.goBack()}},s.createElement(w,{icon:_})):null:s.createElement("img",{id:"logo",style:{top:"0%"},src:"https://www.babylonjs.com/Assets/logo-babylonjs-social-twitter.png"})},t.prototype.render=function(){var e=this;return s.createElement("div",{id:"header"},this.renderLogo(),s.createElement("div",{id:"title"},this.props.title),s.createElement("div",{id:"commands"},!this.props.noCommands&&!this.props.noExpand&&s.createElement("div",{className:"expand",onClick:function(){return e.props.onPopup()}},s.createElement(w,{icon:ve})),!this.props.noCommands&&!this.props.noClose&&s.createElement("div",{className:"close",onClick:function(){return e.props.onClose()}},s.createElement(w,{icon:he}))))},t}(s.Component),Kr=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){return this.props.icon?s.createElement("div",{className:"iconMessageLine"},s.createElement("div",{className:"icon",style:{color:this.props.color?this.props.color:""}},s.createElement(w,{icon:this.props.icon})),s.createElement("div",{className:"value",title:this.props.text},this.props.text)):s.createElement("div",{className:"messageLine"},s.createElement("div",{className:"value",title:this.props.text,style:{color:this.props.color?this.props.color:""}},this.props.text))},t}(s.Component),Xr=r(7),Qr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onValidationResultsUpdatedObserver=null,t}return a(t,e),t.prototype.openValidationDetails=function(){var e=this.props.globalState.validationResults,t=window.open("","_blank");t&&(t.document.title="glTF Validation Results",t.document.body.innerText=JSON.stringify(e,null,2),t.document.body.style.whiteSpace="pre",t.document.body.style.fontFamily="monospace",t.document.body.style.fontSize="14px",t.focus())},t.prototype.prepareText=function(e,t){return t?t+" "+e+"s":""+e},t.prototype.componentDidMount=function(){var e=this;this.props.globalState&&(this._onValidationResultsUpdatedObserver=this.props.globalState.onValidationResultsUpdatedObservable.add((function(){e.forceUpdate()})))},t.prototype.componentWillUnmount=function(){this.props.globalState&&this._onValidationResultsUpdatedObserver&&this.props.globalState.onValidationResultsUpdatedObservable.remove(this._onValidationResultsUpdatedObserver)},t.prototype.renderValidation=function(){var e=this,t=this.props.globalState.validationResults;if(!t)return null;var r=t.issues;return s.createElement(Oe,{globalState:this.props.globalState,title:"GLTF VALIDATION",closed:!r.numErrors&&!r.numWarnings},0!==r.numErrors&&s.createElement(Kr,{text:"Your file has some validation issues",icon:be,color:"Red"}),0===r.numErrors&&s.createElement(Kr,{text:"Your file is a valid glTF file",icon:G,color:"Green"}),s.createElement(Ee,{label:"Errors",value:r.numErrors.toString()}),s.createElement(Ee,{label:"Warnings",value:r.numWarnings.toString()}),s.createElement(Ee,{label:"Infos",value:r.numInfos.toString()}),s.createElement(Ee,{label:"Hints",value:r.numHints.toString()}),s.createElement(Ee,{label:"More details",value:"Click here",onLink:function(){return e.openValidationDetails()}}))},t.prototype.render=function(){var e=this.props.globalState.glTFLoaderExtensionDefaults,t=this.props.globalState.glTFLoaderDefaults,r=void 0!==Xr.GLTFLoaderAnimationStartMode?[{label:"None",value:Xr.GLTFLoaderAnimationStartMode.NONE},{label:"First",value:Xr.GLTFLoaderAnimationStartMode.FIRST},{label:"ALL",value:Xr.GLTFLoaderAnimationStartMode.ALL}]:[{label:"None",value:0},{label:"First",value:1},{label:"ALL",value:2}],n=void 0!==Xr.GLTFLoaderCoordinateSystemMode?[{label:"Auto",value:Xr.GLTFLoaderCoordinateSystemMode.AUTO},{label:"Right handed",value:Xr.GLTFLoaderCoordinateSystemMode.FORCE_RIGHT_HANDED}]:[{label:"Auto",value:0},{label:"Right handed",value:1}];return s.createElement("div",null,s.createElement(Oe,{globalState:this.props.globalState,title:"GLTF LOADER",closed:!0},s.createElement(Ae,{label:"Animation start mode",options:r,target:t,propertyName:"animationStartMode"}),s.createElement(we,{label:"Capture performance counters",target:t,propertyName:"capturePerformanceCounters"}),s.createElement(we,{label:"Compile materials",target:t,propertyName:"compileMaterials"}),s.createElement(we,{label:"Compile shadow generators",target:t,propertyName:"compileShadowGenerators"}),s.createElement(Ae,{label:"Coordinate system",options:n,target:t,propertyName:"coordinateSystemMode"}),s.createElement(we,{label:"Enable logging",target:t,propertyName:"loggingEnabled"}),s.createElement(we,{label:"Transparency as coverage",target:t,propertyName:"transparencyAsCoverage"}),s.createElement(we,{label:"Use clip plane",target:t,propertyName:"useClipPlane"}),s.createElement(we,{label:"Validate",target:t,propertyName:"validate"}),s.createElement(Kr,{text:"You need to reload your file to see these changes"})),s.createElement(Oe,{globalState:this.props.globalState,title:"GLTF EXTENSIONS",closed:!0},s.createElement(we,{label:"MSFT_lod",isSelected:function(){return e.MSFT_lod.enabled},onSelect:function(t){return e.MSFT_lod.enabled=t}}),s.createElement(Le,{label:"Maximum LODs",target:e.MSFT_lod,propertyName:"maxLODsToLoad",additionalClass:"gltf-extension-property",isInteger:!0}),s.createElement(we,{label:"MSFT_minecraftMesh",isSelected:function(){return e.MSFT_minecraftMesh.enabled},onSelect:function(t){return e.MSFT_minecraftMesh.enabled=t}}),s.createElement(we,{label:"MSFT_sRGBFactors",isSelected:function(){return e.MSFT_sRGBFactors.enabled},onSelect:function(t){return e.MSFT_sRGBFactors.enabled=t}}),s.createElement(we,{label:"MSFT_audio_emitter",isSelected:function(){return e.MSFT_audio_emitter.enabled},onSelect:function(t){return e.MSFT_audio_emitter.enabled=t}}),s.createElement(we,{label:"KHR_draco_mesh_compression",isSelected:function(){return e.KHR_draco_mesh_compression.enabled},onSelect:function(t){return e.KHR_draco_mesh_compression.enabled=t}}),s.createElement(we,{label:"KHR_mesh_quantization",isSelected:function(){return e.KHR_mesh_quantization.enabled},onSelect:function(t){return e.KHR_mesh_quantization.enabled=t}}),s.createElement(we,{label:"KHR_materials_pbrSpecularGloss...",isSelected:function(){return e.KHR_materials_pbrSpecularGlossiness.enabled},onSelect:function(t){return e.KHR_materials_pbrSpecularGlossiness.enabled=t}}),s.createElement(we,{label:"KHR_materials_clearcoat",isSelected:function(){return e.KHR_materials_clearcoat.enabled},onSelect:function(t){return e.KHR_materials_clearcoat.enabled=t}}),s.createElement(we,{label:"KHR_materials_ior",isSelected:function(){return e.KHR_materials_ior.enabled},onSelect:function(t){return e.KHR_materials_ior.enabled=t}}),s.createElement(we,{label:"KHR_materials_sheen",isSelected:function(){return e.KHR_materials_sheen.enabled},onSelect:function(t){return e.KHR_materials_sheen.enabled=t}}),s.createElement(we,{label:"KHR_materials_specular",isSelected:function(){return e.KHR_materials_specular.enabled},onSelect:function(t){return e.KHR_materials_specular.enabled=t}}),s.createElement(we,{label:"KHR_materials_unlit",isSelected:function(){return e.KHR_materials_unlit.enabled},onSelect:function(t){return e.KHR_materials_unlit.enabled=t}}),s.createElement(we,{label:"KHR_materials_variants",isSelected:function(){return e.KHR_materials_variants.enabled},onSelect:function(t){return e.KHR_materials_variants.enabled=t}}),s.createElement(we,{label:"KHR_materials_transmission",isSelected:function(){return e.KHR_materials_transmission.enabled},onSelect:function(t){return e.KHR_materials_transmission.enabled=t}}),s.createElement(we,{label:"KHR_materials_translucency",isSelected:function(){return e.KHR_materials_translucency.enabled},onSelect:function(t){return e.KHR_materials_translucency.enabled=t}}),s.createElement(we,{label:"KHR_lights_punctual",isSelected:function(){return e.KHR_lights_punctual.enabled},onSelect:function(t){return e.KHR_lights_punctual.enabled=t}}),s.createElement(we,{label:"KHR_texture_basisu",isSelected:function(){return e.KHR_texture_basisu.enabled},onSelect:function(t){return e.KHR_texture_basisu.enabled=t}}),s.createElement(we,{label:"KHR_texture_transform",isSelected:function(){return e.KHR_texture_transform.enabled},onSelect:function(t){return e.KHR_texture_transform.enabled=t}}),s.createElement(we,{label:"EXT_lights_image_based",isSelected:function(){return e.EXT_lights_image_based.enabled},onSelect:function(t){return e.EXT_lights_image_based.enabled=t}}),s.createElement(we,{label:"EXT_mesh_gpu_instancing",isSelected:function(){return e.EXT_mesh_gpu_instancing.enabled},onSelect:function(t){return e.EXT_mesh_gpu_instancing.enabled=t}}),s.createElement(we,{label:"EXT_texture_webp",isSelected:function(){return e.EXT_texture_webp.enabled},onSelect:function(t){return e.EXT_texture_webp.enabled=t}}),s.createElement(Kr,{text:"You need to reload your file to see these changes"})),t.validate&&this.props.globalState.validationResults&&this.renderValidation())},t}(s.Component),qr=r(16),$r=function(e){function t(r){var n=e.call(this,r)||this;return n._id=t._IDGenerator++,n.uploadInputRef=s.createRef(),n}return a(t,e),t.prototype.onChange=function(e){var t=e.target.files;t&&t.length&&this.props.onClick(e),e.target.value=""},t.prototype.render=function(){var e=this;return s.createElement("div",{className:"buttonLine"},s.createElement("label",{htmlFor:"file-upload"+this._id,className:"file-upload"},this.props.label),s.createElement("input",{ref:this.uploadInputRef,id:"file-upload"+this._id,type:"file",accept:this.props.accept,onChange:function(t){return e.onChange(t)},multiple:!0}))},t._IDGenerator=0,t}(s.Component),Jr=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.onLink=function(){this.props.url?window.open(this.props.url,"_blank"):this.props.onLink&&this.props.onLink()},t.prototype.renderContent=function(){var e=this;return this.props.onLink||this.props.url?s.createElement("div",{className:"link-value",title:this.props.value,onClick:function(){return e.onLink()}},this.props.url?"doc":this.props.value||"no name"):s.createElement("div",{className:"value",title:this.props.value,style:{color:this.props.color?this.props.color:""}},this.props.value||"no name")},t.prototype.render=function(){return s.createElement("div",{className:"indented "+(this.props.underline?"textLine underline":"textLine"+(this.props.additionalClass?" "+this.props.additionalClass:""))},this.renderContent())},t}(s.Component),en=r(53),tn=function(e){function t(t){var r=e.call(this,t)||this;r._screenShotSize={precision:1},r._gifOptions={width:512,frequency:200},r._useWidthHeight=!1,r._isExporting=!1,r._crunchingGIF=!1,r.state={tag:"Record video"};var n=r.props.globalState.sceneImportDefaults;return void 0===n.overwriteAnimations&&(n.overwriteAnimations=!0),void 0===n.animationGroupLoadingMode&&(n.animationGroupLoadingMode=u.SceneLoaderAnimationGroupLoadingMode.Clean),r}return a(t,e),t.prototype.componentDidMount=function(){BABYLON.GLTF2Export||u.Tools.LoadScript("https://preview.babylonjs.com/serializers/babylonjs.serializers.min.js",(function(){}))},t.prototype.componentWillUnmount=function(){if(this._videoRecorder&&(this._videoRecorder.stopRecording(),this._videoRecorder.dispose(),this._videoRecorder=null),this._gifRecorder)return this._gifRecorder.render(),void(this._gifRecorder=null)},t.prototype.captureScreenshot=function(){var e=this.props.scene;e.activeCamera&&u.Tools.CreateScreenshot(e.getEngine(),e.activeCamera,this._screenShotSize)},t.prototype.captureRender=function(){var e=this.props.scene,t={height:this._screenShotSize.height,width:this._screenShotSize.width,precision:this._screenShotSize.precision};this._useWidthHeight||(this._screenShotSize.width=void 0,this._screenShotSize.height=void 0),e.activeCamera&&u.Tools.CreateScreenshotUsingRenderTarget(e.getEngine(),e.activeCamera,this._screenShotSize),this._screenShotSize=t},t.prototype.recordVideo=function(){var e=this;if(this._videoRecorder&&this._videoRecorder.isRecording)this._videoRecorder.stopRecording();else{var t=this.props.scene;this._videoRecorder||(this._videoRecorder=new u.VideoRecorder(t.getEngine())),this._videoRecorder.startRecording().then((function(){e.setState({tag:"Record video"})})),this.setState({tag:"Stop recording"})}},t.prototype.recordGIFInternal=function(){var e=this,t=URL.createObjectURL(this._gifWorkerBlob);this._gifRecorder=new en({workers:2,quality:10,workerScript:t});var r=this.props.scene.getEngine();this._previousRenderingScale=r.getHardwareScalingLevel(),r.setHardwareScalingLevel(r.getRenderWidth()/this._gifOptions.width|0);var n=setInterval((function(){e._gifRecorder?e._gifRecorder.addFrame(r.getRenderingCanvas(),{delay:e._gifOptions.frequency}):clearInterval(n)}),this._gifOptions.frequency);this._gifRecorder.on("finished",(function(n){e._crunchingGIF=!1,u.Tools.Download(n,"record.gif"),e.forceUpdate(),URL.revokeObjectURL(t),r.setHardwareScalingLevel(e._previousRenderingScale)})),this.forceUpdate()},t.prototype.recordGIF=function(){var e=this;if(this._gifRecorder)return this._crunchingGIF=!0,this.forceUpdate(),this._gifRecorder.render(),void(this._gifRecorder=null);this._gifWorkerBlob?this.recordGIFInternal():u.Tools.LoadFileAsync("https://cdn.jsdelivr.net/gh//terikon/gif.js.optimized@0.1.6/dist/gif.worker.js").then((function(t){e._gifWorkerBlob=new Blob([t],{type:"application/javascript"}),e.recordGIFInternal()}))},t.prototype.importAnimations=function(e){var t=this.props.scene,r=this.props.globalState.sceneImportDefaults.overwriteAnimations,n=this.props.globalState.sceneImportDefaults.animationGroupLoadingMode;new u.FilesInput(t.getEngine(),t,(function(){}),(function(){}),(function(){}),(function(e){}),(function(){}),(function(e){if(e){BABYLON.SceneLoader.ImportAnimationsAsync("file:",e,t,r,n,null,(function(e){e.animationGroups.length>0&&e.animationGroups[0].play(!0)}))}}),(function(){})).loadFiles(e)},t.prototype.shouldExport=function(e){if(e instanceof u.Mesh&&e.material){var t=e.material.reflectionTexture;if(t&&t.coordinatesMode===u.Texture.SKYBOX_MODE)return!1}return!0},t.prototype.exportGLTF=function(){var e=this,t=this.props.scene;this._isExporting=!0,this.forceUpdate(),qr.GLTF2Export.GLBAsync(t,"scene",{shouldExportNode:function(t){return e.shouldExport(t)}}).then((function(t){t.downloadFiles(),e._isExporting=!1,e.forceUpdate()})).catch((function(t){e._isExporting=!1,e.forceUpdate()}))},t.prototype.exportBabylon=function(){var e=this.props.scene,t=JSON.stringify(u.SceneSerializer.Serialize(e)),r=new Blob([t],{type:"octet/stream"});u.Tools.Download(r,"scene.babylon")},t.prototype.createEnvTexture=function(){var e=this.props.scene;u.EnvironmentTextureTools.CreateEnvTextureAsync(e.environmentTexture).then((function(e){var t=new Blob([e],{type:"octet/stream"});u.Tools.Download(t,"environment.env")})).catch((function(e){console.error(e),alert(e)}))},t.prototype.exportReplay=function(){this.props.globalState.recorder.export(),this.forceUpdate()},t.prototype.startRecording=function(){this.props.globalState.recorder.trackScene(this.props.scene),this.forceUpdate()},t.prototype.applyDelta=function(e){var t=this;u.Tools.ReadFile(e,(function(e){t.props.globalState.recorder.applyDelta(e,t.props.scene),t.forceUpdate()}))},t.prototype.render=function(){var e=this,t=this.props.scene;if(!t)return null;var r=this.props.globalState.sceneImportDefaults,n=[{label:"Clean",value:u.SceneLoaderAnimationGroupLoadingMode.Clean},{label:"Stop",value:u.SceneLoaderAnimationGroupLoadingMode.Stop},{label:"Sync",value:u.SceneLoaderAnimationGroupLoadingMode.Sync},{label:"NoSync",value:u.SceneLoaderAnimationGroupLoadingMode.NoSync}];return s.createElement("div",{className:"pane"},s.createElement(Oe,{globalState:this.props.globalState,title:"CAPTURE"},s.createElement(Ze,{label:"Screenshot",onClick:function(){return e.captureScreenshot()}}),s.createElement(Ze,{label:this.state.tag,onClick:function(){return e.recordVideo()}})),s.createElement(Oe,{globalState:this.props.globalState,title:"CAPTURE WITH RTT"},s.createElement(Ze,{label:"Capture",onClick:function(){return e.captureRender()}}),s.createElement("div",{className:"vector3Line"},s.createElement(Le,{label:"Precision",target:this._screenShotSize,propertyName:"precision",onPropertyChangedObservable:this.props.onPropertyChangedObservable}),s.createElement(we,{label:"Use Width/Height",onSelect:function(t){e._useWidthHeight=t,e.forceUpdate()},isSelected:function(){return e._useWidthHeight}}),this._useWidthHeight&&s.createElement("div",{className:"secondLine"},s.createElement(Ie,{label:"Width",precision:0,step:1,value:this._screenShotSize.width?this._screenShotSize.width:512,onChange:function(t){return e._screenShotSize.width=t}}),s.createElement(Ie,{label:"Height",precision:0,step:1,value:this._screenShotSize.height?this._screenShotSize.height:512,onChange:function(t){return e._screenShotSize.height=t}})))),s.createElement(Oe,{globalState:this.props.globalState,title:"GIF"},this._crunchingGIF&&s.createElement(Kr,{text:"Creating the GIF file..."}),!this._crunchingGIF&&s.createElement(Ze,{label:this._gifRecorder?"Stop":"Record",onClick:function(){return e.recordGIF()}}),!this._crunchingGIF&&!this._gifRecorder&&s.createElement(s.Fragment,null,s.createElement(Le,{label:"Resolution",isInteger:!0,target:this._gifOptions,propertyName:"width"}),s.createElement(Le,{label:"Frequency (ms)",isInteger:!0,target:this._gifOptions,propertyName:"frequency"}))),s.createElement(Oe,{globalState:this.props.globalState,title:"REPLAY"},!this.props.globalState.recorder.isRecording&&s.createElement(Ze,{label:"Start recording",onClick:function(){return e.startRecording()}}),this.props.globalState.recorder.isRecording&&s.createElement(Jr,{value:"Record in progress"}),this.props.globalState.recorder.isRecording&&s.createElement(Ze,{label:"Generate delta file",onClick:function(){return e.exportReplay()}}),s.createElement(qe,{label:"Apply delta file",onClick:function(t){return e.applyDelta(t)},accept:".json"})),s.createElement(Oe,{globalState:this.props.globalState,title:"SCENE IMPORT"},s.createElement($r,{label:"Import animations",accept:"gltf",onClick:function(t){return e.importAnimations(t)}}),s.createElement(we,{label:"Overwrite animations",target:r,propertyName:"overwriteAnimations",onSelect:function(t){r.overwriteAnimations=t,e.forceUpdate()}}),!1===r.overwriteAnimations&&s.createElement(Ae,{label:"Animation merge mode",options:n,target:r,propertyName:"animationGroupLoadingMode"})),s.createElement(Oe,{globalState:this.props.globalState,title:"SCENE EXPORT"},this._isExporting&&s.createElement(Ee,{label:"Please wait..exporting",ignoreValue:!0}),!this._isExporting&&s.createElement(s.Fragment,null,s.createElement(Ze,{label:"Export to GLB",onClick:function(){return e.exportGLTF()}}),s.createElement(Ze,{label:"Export to Babylon",onClick:function(){return e.exportBabylon()}}),!t.getEngine().premultipliedAlpha&&t.environmentTexture&&t.environmentTexture._prefiltered&&t.activeCamera&&s.createElement(Ze,{label:"Generate .env texture",onClick:function(){return e.createEnvTexture()}}))),BABYLON.GLTFFileLoader&&s.createElement(Qr,{scene:t,globalState:this.props.globalState}))},t}(Ce),rn=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.globalState;return s.createElement("div",{className:"pane"},s.createElement(Oe,{globalState:this.props.globalState,title:"UI"},s.createElement(we,{label:"Only display Euler values",target:e,propertyName:"onlyUseEulers"}),s.createElement(we,{label:"Ignore backfaces when picking",target:e,propertyName:"ignoreBackfacesForPicking"})))},t}(Ce);r(54);var nn=function(e){function t(t){var r=e.call(this,t)||this;r._once=!0;var n=void 0===t.initialTab?u.DebugLayerTab.Properties:t.initialTab;if(r.props.globalState){var a=r.props.globalState.validationResults;a&&(a.issues.numErrors||a.issues.numWarnings)&&(n=u.DebugLayerTab.Tools)}return r.state={selectedEntity:null,selectedIndex:n},r}return a(t,e),t.prototype.componentDidMount=function(){var e=this;this.props.globalState&&(this._onSelectionChangeObserver=this.props.globalState.onSelectionChangedObservable.add((function(t){e.setState({selectedEntity:t,selectedIndex:u.DebugLayerTab.Properties})})),this._onTabChangedObserver=this.props.globalState.onTabChangedObservable.add((function(t){e.setState({selectedIndex:t})})))},t.prototype.componentWillUnmount=function(){this.props.globalState&&(this._onSelectionChangeObserver&&this.props.globalState.onSelectionChangedObservable.remove(this._onSelectionChangeObserver),this._onTabChangedObserver&&this.props.globalState.onTabChangedObservable.remove(this._onTabChangedObserver))},t.prototype.changeSelectedTab=function(e){this.props.globalState&&this.props.globalState.onTabChangedObservable.notifyObservers(e)},t.prototype.renderContent=function(){var e=this;return this.props.globalState&&this.props.scene?s.createElement(N,{selectedIndex:this.state.selectedIndex,onSelectedIndexChange:function(t){return e.changeSelectedTab(t)}},s.createElement(Yr,{title:"Properties",icon:Q,scene:this.props.scene,selectedEntity:this.state.selectedEntity,globalState:this.props.globalState,onSelectionChangedObservable:this.props.globalState.onSelectionChangedObservable,onPropertyChangedObservable:this.props.globalState.onPropertyChangedObservable}),s.createElement(Te,{title:"Debug",icon:I,scene:this.props.scene,globalState:this.props.globalState}),s.createElement(Pe,{title:"Statistics",icon:z,scene:this.props.scene,globalState:this.props.globalState}),s.createElement(tn,{title:"Tools",icon:ye,scene:this.props.scene,globalState:this.props.globalState}),s.createElement(rn,{title:"Settings",icon:U,scene:this.props.scene,globalState:this.props.globalState})):null},t.prototype.onClose=function(){this.props.onClose&&this.props.onClose()},t.prototype.onPopup=function(){this.props.onPopup&&this.props.onPopup()},t.prototype.render=function(){var e=this;return this.props.popupMode?s.createElement("div",{id:"actionTabs"},!this.props.noHeader&&s.createElement(Zr,{title:"INSPECTOR",handleBack:!0,noClose:this.props.noClose,noExpand:this.props.noExpand,noCommands:this.props.noCommands,onClose:function(){return e.onClose()},onPopup:function(){return e.onPopup()},onSelectionChangedObservable:this.props.globalState?this.props.globalState.onSelectionChangedObservable:void 0}),this.renderContent()):(this._once&&(this._once=!1,setTimeout((function(){var e=document.getElementById("actionTabs");e&&(e.style.width="300px")}),150)),s.createElement(Me.a,{id:"actionTabs",minWidth:300,maxWidth:600,size:{height:"100%"},minHeight:"100%",enable:{top:!1,right:!1,bottom:!1,left:!0,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1}},!this.props.noHeader&&s.createElement(Zr,{title:"INSPECTOR",handleBack:!0,noClose:this.props.noClose,noExpand:this.props.noExpand,noCommands:this.props.noCommands,onClose:function(){return e.onClose()},onPopup:function(){return e.onPopup()},onSelectionChangedObservable:this.props.globalState?this.props.globalState.onSelectionChangedObservable:void 0}),this.renderContent()))},t}(s.Component),an={prefix:"far",iconName:"eye",icon:[576,512,[],"f06e","M288 144a110.94 110.94 0 0 0-31.24 5 55.4 55.4 0 0 1 7.24 27 56 56 0 0 1-56 56 55.4 55.4 0 0 1-27-7.24A111.71 111.71 0 1 0 288 144zm284.52 97.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400c-98.65 0-189.09-55-237.93-144C98.91 167 189.34 112 288 112s189.09 55 237.93 144C477.1 345 386.66 400 288 400z"]},on={prefix:"far",iconName:"eye-slash",icon:[640,512,[],"f070","M634 471L36 3.51A16 16 0 0 0 13.51 6l-10 12.49A16 16 0 0 0 6 41l598 467.49a16 16 0 0 0 22.49-2.49l10-12.49A16 16 0 0 0 634 471zM296.79 146.47l134.79 105.38C429.36 191.91 380.48 144 320 144a112.26 112.26 0 0 0-23.21 2.47zm46.42 219.07L208.42 260.16C210.65 320.09 259.53 368 320 368a113 113 0 0 0 23.21-2.46zM320 112c98.65 0 189.09 55 237.93 144a285.53 285.53 0 0 1-44 60.2l37.74 29.5a333.7 333.7 0 0 0 52.9-75.11 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64c-36.7 0-71.71 7-104.63 18.81l46.41 36.29c18.94-4.3 38.34-7.1 58.22-7.1zm0 288c-98.65 0-189.08-55-237.93-144a285.47 285.47 0 0 1 44.05-60.19l-37.74-29.5a333.6 333.6 0 0 0-52.89 75.1 32.35 32.35 0 0 0 0 29.19C89.72 376.41 197.08 448 320 448c36.7 0 71.71-7.05 104.63-18.81l-46.41-36.28C359.28 397.2 339.89 400 320 400z"]},ln={prefix:"far",iconName:"lightbulb",icon:[352,512,[],"f0eb","M176 80c-52.94 0-96 43.06-96 96 0 8.84 7.16 16 16 16s16-7.16 16-16c0-35.3 28.72-64 64-64 8.84 0 16-7.16 16-16s-7.16-16-16-16zM96.06 459.17c0 3.15.93 6.22 2.68 8.84l24.51 36.84c2.97 4.46 7.97 7.14 13.32 7.14h78.85c5.36 0 10.36-2.68 13.32-7.14l24.51-36.84c1.74-2.62 2.67-5.7 2.68-8.84l.05-43.18H96.02l.04 43.18zM176 0C73.72 0 0 82.97 0 176c0 44.37 16.45 84.85 43.56 115.78 16.64 18.99 42.74 58.8 52.42 92.16v.06h48v-.12c-.01-4.77-.72-9.51-2.15-14.07-5.59-17.81-22.82-64.77-62.17-109.67-20.54-23.43-31.52-53.15-31.61-84.14-.2-73.64 59.67-128 127.95-128 70.58 0 128 57.42 128 128 0 30.97-11.24 60.85-31.65 84.14-39.11 44.61-56.42 91.47-62.1 109.46a47.507 47.507 0 0 0-2.22 14.3v.1h48v-.05c9.68-33.37 35.78-73.18 52.42-92.16C335.55 260.85 352 220.37 352 176 352 78.8 273.2 0 176 0z"]},sn={prefix:"far",iconName:"square",icon:[448,512,[],"f0c8","M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-6 400H54c-3.3 0-6-2.7-6-6V86c0-3.3 2.7-6 6-6h340c3.3 0 6 2.7 6 6v340c0 3.3-2.7 6-6 6z"]},pn=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.onClick=function(){this.props.onClick&&this.props.onClick()},t.prototype.render=function(){var e=this;return s.createElement("div",{className:"title",onClick:function(){return e.onClick()}},s.createElement("div",{className:"titleIcon"},s.createElement(w,{icon:this.props.icon,color:this.props.color})),s.createElement("div",{className:"titleText"},this.props.label||"no name"))},t}(s.Component),cn=function(e){function t(t){var r=e.call(this,t)||this;return r.state={popupVisible:!1},r.extensionRef=s.createRef(),r}return a(t,e),t.prototype.showPopup=function(){this.setState({popupVisible:!0})},t.prototype.componentDidMount=function(){this._popup&&this._popup.focus()},t.prototype.componentDidUpdate=function(){this._popup&&this._popup.focus()},t.prototype.render=function(){var e=this;if(!this.props.extensibilityGroups)return null;for(var t=[],r=0,n=this.props.extensibilityGroups;r<n.length;r++){var a=n[r];a.predicate(this.props.target)&&t.push.apply(t,a.entries)}return 0===t.length?null:s.createElement("div",{ref:this.extensionRef,className:"extensions",onClick:function(){return e.showPopup()}},s.createElement("div",{title:"Additional options",className:"icon"},s.createElement(w,{icon:Y})),s.createElement("div",{ref:function(t){e._popup=t},tabIndex:-1,className:this.state.popupVisible?"popup show":"popup",onBlur:function(){return e.setState({popupVisible:!1})}},t.map((function(t){return s.createElement("div",{key:t.label,className:"popupMenu",onClick:function(){return t.action(e.props.target)}},t.label)}))))},t}(s.Component),un=function(e){function t(t){var r=e.call(this,t)||this,n=r.props.mesh;return r.state={isBoundingBoxEnabled:n.showBoundingBox,isVisible:r.props.mesh.isVisible},r}return a(t,e),t.prototype.showBoundingBox=function(){this.props.mesh.showBoundingBox=!this.state.isBoundingBoxEnabled,this.setState({isBoundingBoxEnabled:!this.state.isBoundingBoxEnabled})},t.prototype.switchVisibility=function(){var e=!this.state.isVisible;this.setState({isVisible:e}),this.props.mesh.isVisible=e},t.prototype.render=function(){var e=this,t=this.props.mesh,r=this.state.isVisible?s.createElement(w,{icon:an}):s.createElement(w,{icon:on,className:"isNotActive"});return s.createElement("div",{className:"meshTools"},s.createElement(pn,{label:t.name,onClick:function(){return e.props.onClick()},icon:W,color:"dodgerblue"}),s.createElement("div",{className:this.state.isBoundingBoxEnabled?"bounding-box selected icon":"bounding-box icon",onClick:function(){return e.showBoundingBox()},title:"Show/Hide bounding box"},s.createElement(w,{icon:sn})),s.createElement("div",{className:"visibility icon",onClick:function(){return e.switchVisibility()},title:"Show/Hide mesh"},r),s.createElement(cn,{target:t,extensibilityGroups:this.props.extensibilityGroups}))},t}(s.Component),dn=function(e){function t(t){var r=e.call(this,t)||this,n=r.props.camera,a=n.getScene();return r.state={isActive:a.activeCamera===n,isGizmoEnabled:n.reservedDataStore&&n.reservedDataStore.cameraGizmo},r}return a(t,e),t.prototype.setActive=function(){var e=this.props.camera;e.getScene().activeCamera=e,e.attachControl(!0),this.setState({isActive:!0})},t.prototype.componentDidMount=function(){var e=this,t=this.props.camera.getScene();this._onBeforeRenderObserver=t.onBeforeRenderObservable.add((function(){var r=e.props.camera;e.state.isActive&&t.activeCameras&&t.activeCameras.length<=1&&t.activeCamera!==r&&r.detachControl();var n=t.activeCamera===r;n!==e.state.isActive&&e.setState({isActive:n})}))},t.prototype.componentWillUnmount=function(){this._onBeforeRenderObserver&&this.props.camera.getScene().onBeforeRenderObservable.remove(this._onBeforeRenderObserver)},t.prototype.toggleGizmo=function(){var e=this.props.camera;e.reservedDataStore&&e.reservedDataStore.cameraGizmo?(e.getScene().reservedDataStore&&e.getScene().reservedDataStore.gizmoManager&&e.getScene().reservedDataStore.gizmoManager.attachToMesh(null),this.props.globalState.enableCameraGizmo(e,!1),this.setState({isGizmoEnabled:!1})):(this.props.globalState.enableCameraGizmo(e,!0),this.setState({isGizmoEnabled:!0}))},t.prototype.render=function(){var e=this,t=this.state.isActive?s.createElement(w,{icon:fe}):s.createElement(w,{icon:fe,className:"isNotActive"}),r=this.props.camera.getScene(),n=this.state.isGizmoEnabled||this.props.camera&&this.props.camera.reservedDataStore&&this.props.camera.reservedDataStore.cameraGizmo?s.createElement(w,{icon:K}):s.createElement(w,{icon:K,className:"isNotActive"});return s.createElement("div",{className:"cameraTools"},s.createElement(pn,{label:this.props.camera.name,onClick:function(){return e.props.onClick()},icon:j,color:"green"}),(!r.activeCameras||0===r.activeCameras.length)&&s.createElement("div",{className:"activeCamera icon",onClick:function(){return e.setActive()},title:"Set as main camera and attach to controls"},t),s.createElement("div",{className:"enableGizmo icon",onClick:function(){return e.toggleGizmo()},title:"Turn on/off the camera's gizmo"},n),s.createElement(cn,{target:this.props.camera,extensibilityGroups:this.props.extensibilityGroups}))},t}(s.Component),hn=function(e){function t(t){var r=e.call(this,t)||this,n=r.props.light;return r.state={isEnabled:n.isEnabled(),isGizmoEnabled:n.reservedDataStore&&n.reservedDataStore.lightGizmo},r}return a(t,e),t.prototype.switchIsEnabled=function(){var e=this.props.light;e.setEnabled(!e.isEnabled()),this.setState({isEnabled:e.isEnabled()})},t.prototype.toggleGizmo=function(){var e=this.props.light;e.reservedDataStore&&e.reservedDataStore.lightGizmo?(e.getScene().reservedDataStore&&e.getScene().reservedDataStore.gizmoManager&&e.getScene().reservedDataStore.gizmoManager.attachToMesh(null),this.props.globalState.enableLightGizmo(e,!1),this.setState({isGizmoEnabled:!1})):(this.props.globalState.enableLightGizmo(e,!0),this.setState({isGizmoEnabled:!0}))},t.prototype.render=function(){var e=this,t=this.state.isEnabled?s.createElement(w,{icon:ln}):s.createElement(w,{icon:ln,className:"isNotActive"}),r=this.state.isGizmoEnabled||this.props.light&&this.props.light.reservedDataStore&&this.props.light.reservedDataStore.lightGizmo?s.createElement(w,{icon:K}):s.createElement(w,{icon:K,className:"isNotActive"});return s.createElement("div",{className:"lightTools"},s.createElement(pn,{label:this.props.light.name,onClick:function(){return e.props.onClick()},icon:re,color:"yellow"}),s.createElement("div",{className:"visibility icon",onClick:function(){return e.switchIsEnabled()},title:"Turn on/off the light"},t),s.createElement("div",{className:"enableGizmo icon",onClick:function(){return e.toggleGizmo()},title:"Turn on/off the light's gizmo"},r),s.createElement(cn,{target:this.props.light,extensibilityGroups:this.props.extensibilityGroups}))},t}(s.Component),bn=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this,t="NodeMaterial"===this.props.material.getClassName()?s.createElement("div",{className:"icon",onClick:function(){e.props.material.edit()},title:"Node Material Editor",color:"white"},s.createElement(w,{icon:le})):null;return s.createElement("div",{className:"materialTools"},s.createElement(pn,{label:this.props.material.name,onClick:function(){return e.props.onClick()},icon:A,color:"orange"}),s.createElement(cn,{target:this.props.material,extensibilityGroups:this.props.extensibilityGroups}),t)},t}(s.Component),mn=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this;return s.createElement("div",{className:"textureTools"},s.createElement(pn,{label:this.props.texture.name,onClick:function(){return e.props.onClick()},icon:ee,color:"mediumpurple"}),s.createElement(cn,{target:this.props.texture,extensibilityGroups:this.props.extensibilityGroups}))},t}(s.Component),gn=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this,t=this.props.transformNode;return s.createElement("div",{className:"transformNodeTools"},s.createElement(pn,{label:t.name,onClick:function(){return e.props.onClick()},icon:V,color:"cornflowerblue"}),s.createElement(cn,{target:t,extensibilityGroups:this.props.extensibilityGroups}))},t}(s.Component),fn=function(e){function t(t){var r=e.call(this,t)||this,n=r.props.control;return r.state={isActive:n.isHighlighted,isVisible:n.isVisible},r}return a(t,e),t.prototype.highlight=function(){var e=this.props.control;e.isHighlighted=!e.isHighlighted,this.setState({isActive:e.isHighlighted})},t.prototype.switchVisibility=function(){var e=!this.state.isVisible;this.setState({isVisible:e}),this.props.control.isVisible=e},t.prototype.render=function(){var e=this,t=this.props.control,r=(t.name||"No name")+" ["+t.getClassName()+"]",n=this.state.isActive?s.createElement(w,{icon:J}):s.createElement(w,{icon:J,className:"isNotActive"}),a=this.state.isVisible?s.createElement(w,{icon:K}):s.createElement(w,{icon:X,className:"isNotActive"});return s.createElement("div",{className:"controlTools"},s.createElement(pn,{label:r,onClick:function(){return e.props.onClick()},icon:ie,color:"greenyellow"}),s.createElement("div",{className:"highlight icon",onClick:function(){return e.highlight()},title:"Highlight this control"},n),s.createElement("div",{className:"visibility icon",onClick:function(){return e.switchVisibility()},title:"Show/Hide control"},a),s.createElement(cn,{target:t,extensibilityGroups:this.props.extensibilityGroups}))},t}(s.Component),vn=function(e){function t(t){var r=e.call(this,t)||this;return r.state={isInPickingMode:!1},r}return a(t,e),t.prototype.componentWillUnmount=function(){var e=this.props.texture;this._onControlPickedObserver&&(e.onControlPickedObservable.remove(this._onControlPickedObserver),this._onControlPickedObserver=null)},t.prototype.onPickingMode=function(){var e=this,t=this.props.texture;this._onControlPickedObserver&&(t.onControlPickedObservable.remove(this._onControlPickedObserver),this._onControlPickedObserver=null),this.state.isInPickingMode||(this._onControlPickedObserver=t.onControlPickedObservable.add((function(t){e.props.onSelectionChangedObservable&&("ScrollViewerWindow"===t.getClassName()&&(t=t.getAscendantOfClass("ScrollViewer")),e.props.onSelectionChangedObservable.notifyObservers(t))}))),this.setState({isInPickingMode:!this.state.isInPickingMode})},t.prototype.render=function(){var e=this;return s.createElement("div",{className:"adtextureTools"},s.createElement(pn,{label:this.props.texture.name,onClick:function(){return e.props.onClick()},icon:ee,color:"mediumpurple"}),s.createElement("div",{className:this.state.isInPickingMode?"pickingMode selected icon":"pickingMode icon",onClick:function(){return e.onPickingMode()},title:"Turn picking mode on/off"},s.createElement(w,{icon:B})),s.createElement(cn,{target:this.props.texture,extensibilityGroups:this.props.extensibilityGroups}))},t}(s.Component),yn=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this,t=this.props.animationGroup;return s.createElement("div",{className:"animationGroupTools"},s.createElement(pn,{label:t.name,onClick:function(){return e.props.onClick()},icon:te,color:"cornflowerblue"}),s.createElement(cn,{target:t,extensibilityGroups:this.props.extensibilityGroups}))},t}(s.Component),Cn=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this;return s.createElement("div",{className:"postProcessTools"},s.createElement(pn,{label:this.props.postProcess.name,onClick:function(){return e.props.onClick()},icon:ne,color:"red"}),s.createElement(cn,{target:this.props.postProcess,extensibilityGroups:this.props.extensibilityGroups}))},t}(s.Component),En=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this;return s.createElement("div",{className:"postProcessTools"},s.createElement(pn,{label:this.props.renderPipeline.name,onClick:function(){return e.props.onClick()},icon:ne,color:"orangered"}),s.createElement(cn,{target:this.props.renderPipeline,extensibilityGroups:this.props.extensibilityGroups}))},t}(s.Component),On=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this,t=this.props.skeleton;return s.createElement("div",{className:"skeletonTools"},s.createElement(pn,{label:t.name||"no name",onClick:function(){return e.props.onClick()},icon:ue,color:"gray"}),s.createElement(cn,{target:t,extensibilityGroups:this.props.extensibilityGroups}))},t}(s.Component),Sn=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this,t=this.props.bone;return s.createElement("div",{className:"skeletonTools"},s.createElement(pn,{label:t.name||"no name",onClick:function(){return e.props.onClick()},icon:R,color:"lightgray"}),s.createElement(cn,{target:t,extensibilityGroups:this.props.extensibilityGroups}))},t}(s.Component),xn=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this;return s.createElement("div",{className:"particleSystemTools"},s.createElement(pn,{label:this.props.system.name||"Particle system",onClick:function(){return e.props.onClick()},icon:D,color:"crimson"}),s.createElement(cn,{target:this.props.system,extensibilityGroups:this.props.extensibilityGroups}))},t}(s.Component),Pn=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this;return s.createElement("div",{className:"spriteManagerTools"},s.createElement(pn,{label:this.props.spriteManager.name||"No name",onClick:function(){return e.props.onClick()},icon:T,color:"blanchedalmond"}),s.createElement(cn,{target:this.props.spriteManager,extensibilityGroups:this.props.extensibilityGroups}))},t}(s.Component),wn=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this;return s.createElement("div",{className:"spriteTools"},s.createElement(pn,{label:this.props.sprite.name||"No name",onClick:function(){return e.props.onClick()},icon:$,color:"blanchedalmond"}),s.createElement(cn,{target:this.props.sprite,extensibilityGroups:this.props.extensibilityGroups}))},t}(s.Component),kn=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this,t=this.props.targetedAnimation;return s.createElement("div",{className:"targetedAnimationTools"},s.createElement(pn,{label:t.animation.name,onClick:function(){return e.props.onClick()},icon:q,color:"cornflowerblue"}),s.createElement(cn,{target:t,extensibilityGroups:this.props.extensibilityGroups}))},t}(s.Component),Nn=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this,t=this.props.sound;return s.createElement("div",{className:"soundTools"},s.createElement(pn,{label:t.name,onClick:function(){return e.props.onClick()},icon:oe,color:"teal"}),s.createElement(cn,{target:t,extensibilityGroups:this.props.extensibilityGroups}))},t}(s.Component),Tn=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.onClick=function(){this.props.onClick&&this.props.onClick()},t.prototype.render=function(){var e=this,t=this.props.entity;if(t&&t.getClassName){var r=t.getClassName();if(-1!==r.indexOf("Mesh")){var n=t;return n.isAnInstance||n.getTotalVertices()>0?s.createElement(un,{globalState:this.props.globalState,extensibilityGroups:this.props.extensibilityGroups,mesh:n,onClick:function(){return e.onClick()}}):s.createElement(gn,{extensibilityGroups:this.props.extensibilityGroups,transformNode:t,onClick:function(){return e.onClick()}})}if(-1!==r.indexOf("SpriteManager"))return s.createElement(Pn,{extensibilityGroups:this.props.extensibilityGroups,spriteManager:t,onClick:function(){return e.onClick()}});if(-1!==r.indexOf("Sprite"))return s.createElement(wn,{extensibilityGroups:this.props.extensibilityGroups,sprite:t,onClick:function(){return e.onClick()}});if(-1!==r.indexOf("Skeleton"))return s.createElement(On,{extensibilityGroups:this.props.extensibilityGroups,skeleton:t,onClick:function(){return e.onClick()}});if(-1!==r.indexOf("Bone"))return s.createElement(Sn,{extensibilityGroups:this.props.extensibilityGroups,bone:t,onClick:function(){return e.onClick()}});if(-1!==r.indexOf("TransformNode"))return s.createElement(gn,{extensibilityGroups:this.props.extensibilityGroups,transformNode:t,onClick:function(){return e.onClick()}});if(-1!==r.indexOf("Camera"))return s.createElement(dn,{globalState:this.props.globalState,extensibilityGroups:this.props.extensibilityGroups,camera:t,onClick:function(){return e.onClick()}});if(-1!==r.indexOf("Light",r.length-5))return s.createElement(hn,{globalState:this.props.globalState,extensibilityGroups:this.props.extensibilityGroups,light:t,onClick:function(){return e.onClick()}});if(-1!==r.indexOf("Material"))return s.createElement(bn,{extensibilityGroups:this.props.extensibilityGroups,material:t,onClick:function(){return e.onClick()}});if(-1!==r.indexOf("ParticleSystem"))return s.createElement(xn,{extensibilityGroups:this.props.extensibilityGroups,system:t,onClick:function(){return e.onClick()}});if("AdvancedDynamicTexture"===r)return s.createElement(vn,{onSelectionChangedObservable:this.props.globalState.onSelectionChangedObservable,extensibilityGroups:this.props.extensibilityGroups,texture:t,onClick:function(){return e.onClick()}});if("AnimationGroup"===r)return s.createElement(yn,{extensibilityGroups:this.props.extensibilityGroups,animationGroup:t,onClick:function(){return e.onClick()}});if("TargetedAnimation"===r)return s.createElement(kn,{extensibilityGroups:this.props.extensibilityGroups,targetedAnimation:t,onClick:function(){return e.onClick()}});if(-1!==r.indexOf("Texture"))return s.createElement(mn,{extensibilityGroups:this.props.extensibilityGroups,texture:t,onClick:function(){return e.onClick()}});if(-1!==r.indexOf("RenderingPipeline"))return s.createElement(En,{extensibilityGroups:this.props.extensibilityGroups,renderPipeline:t,onClick:function(){return e.onClick()}});if(-1!==r.indexOf("PostProcess"))return s.createElement(Cn,{extensibilityGroups:this.props.extensibilityGroups,postProcess:t,onClick:function(){return e.onClick()}});if(-1!==r.indexOf("Sound"))return s.createElement(Nn,{extensibilityGroups:this.props.extensibilityGroups,sound:t,onClick:function(){return e.onClick()}});if(t._host)return s.createElement(fn,{extensibilityGroups:this.props.extensibilityGroups,control:t,onClick:function(){return e.onClick()}})}return s.createElement("div",{className:"meshTools"},s.createElement(pn,{label:t.name,onClick:function(){return e.onClick()},icon:pe,color:"cornflowerblue"}))},t}(s.Component),_n=function(){function e(){}return e.LookForItem=function(t,r){if(t===r)return!0;var n=t.getChildren?t.getChildren():t.children;if(n&&"MultiMaterial"!==t.getClassName())for(var a=0,o=n;a<o.length;a++){var i=o[a];if(e.LookForItem(i,r))return!0}return!1},e._RecursiveRemoveHiddenMeshesAndHoistChildren=function(t){for(var r=[],n=0,a=t;n<a.length;n++){var o=a[n];o.reservedDataStore&&o.reservedDataStore.hidden&&o.getChildMeshes?e._RecursiveRemoveHiddenMeshesAndHoistChildren(o.getChildMeshes()).forEach((function(e){r.push(e)})):o.reservedDataStore&&o.reservedDataStore.hidden||r.push(o)}return r},e.SortAndFilter=function(t,r){if(!r)return[];var n=e._RecursiveRemoveHiddenMeshesAndHoistChildren(r);return t&&t.reservedDataStore&&t.reservedDataStore.detachedChildren&&n.push.apply(n,t.reservedDataStore.detachedChildren),n.sort((function(e,t){var r=(e.name||"").toLowerCase(),n=(t.name||"").toLowerCase();return r===n?0:r>n?1:-1}))},e}(),Mn=function(e){function t(t){var r=e.call(this,t)||this;return r._wasSelected=!1,r.state={isSelected:r.props.entity===r.props.selectedEntity,isExpanded:r.props.mustExpand||_n.LookForItem(r.props.entity,r.props.selectedEntity)},r}return a(t,e),t.prototype.switchExpandedState=function(){this.setState({isExpanded:!this.state.isExpanded})},t.prototype.shouldComponentUpdate=function(e,t){if(!t.isExpanded&&this.state.isExpanded)return!0;if(e.selectedEntity){if(e.entity===e.selectedEntity)return t.isSelected=!0,!0;if(t.isSelected=!1,_n.LookForItem(e.entity,e.selectedEntity))return t.isExpanded=!0,!0}return!0},t.prototype.scrollIntoView=function(){var e=c.findDOMNode(this);e&&e.scrollIntoView(!1)},t.prototype.componentDidMount=function(){this.state.isSelected&&this.scrollIntoView()},t.prototype.componentDidUpdate=function(){this.state.isSelected&&!this._wasSelected&&this.scrollIntoView(),this._wasSelected=!1},t.prototype.onSelect=function(){if(this.props.globalState.onSelectionChangedObservable){this._wasSelected=!0;var e=this.props.entity;this.props.globalState.onSelectionChangedObservable.notifyObservers(e)}},t.prototype.renderChildren=function(){var e=this,r=this.props.entity;return(r.getChildren||r.children)&&this.state.isExpanded?_n.SortAndFilter(r,r.getChildren?r.getChildren():r.children).map((function(r,n){return s.createElement(t,{globalState:e.props.globalState,mustExpand:e.props.mustExpand,extensibilityGroups:e.props.extensibilityGroups,selectedEntity:e.props.selectedEntity,key:n,offset:e.props.offset+2,entity:r,filter:e.props.filter})})):null},t.prototype.render=function(){var e=this,t={paddingLeft:10*(this.props.offset+.5)+"px"},r=this.props.entity,n=this.state.isExpanded?s.createElement(w,{icon:ae}):s.createElement(w,{icon:se}),a=("MultiMaterial"===r.getClassName()?[]:_n.SortAndFilter(r,r.getChildren?r.getChildren():r.children)).length>0;if(r.reservedDataStore||(r.reservedDataStore={}),r.reservedDataStore.setExpandedState=function(t){e.setState({isExpanded:t})},r.reservedDataStore.isExpanded=this.state.isExpanded,this.props.filter){var o=this.props.filter.toLowerCase();if(!r.name||-1===r.name.toLowerCase().indexOf(o)){if(!a)return null;if(r.getDescendants&&0===r.getDescendants(!1,(function(e){return e.name&&-1!==e.name.toLowerCase().indexOf(o)})).length)return null}}return s.createElement("div",null,s.createElement("div",{className:this.state.isSelected?"itemContainer selected":"itemContainer",style:t},a&&s.createElement("div",{className:"arrow icon",onClick:function(){return e.switchExpandedState()}},n),s.createElement(Tn,{globalState:this.props.globalState,extensibilityGroups:this.props.extensibilityGroups,label:r.name,entity:r,onClick:function(){return e.onSelect()}})),this.renderChildren())},t}(s.Component),Ln=r(6),Rn=r.n(Ln),Dn=r(4),An=r.n(Dn);function In(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return"function"==typeof e&&e.apply(void 0,r)}function jn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var zn="react-contextmenu",Gn="react-contextmenu--visible",Fn="react-contextmenu-wrapper",Vn="react-contextmenu-item",Un="react-contextmenu-item--active",Hn="react-contextmenu-item--disabled",Bn="react-contextmenu-item--divider",Wn="react-contextmenu-item--selected",Yn="react-contextmenu-submenu",Zn={},Kn=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),Xn="REACT_CONTEXTMENU_SHOW",Qn="REACT_CONTEXTMENU_HIDE";function qn(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window,n=void 0;"function"==typeof window.CustomEvent?n=new window.CustomEvent(e,{detail:t}):(n=document.createEvent("CustomEvent")).initCustomEvent(e,!1,!0,t),r&&(r.dispatchEvent(n),An()(Zn,t))}function $n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];qn(Xn,An()({},e,{type:Xn}),t)}function Jn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];qn(Qn,An()({},e,{type:Qn}),t)}var ea=new function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.handleShowEvent=function(e){for(var r in t.callbacks)jn(t.callbacks,r)&&t.callbacks[r].show(e)},this.handleHideEvent=function(e){for(var r in t.callbacks)jn(t.callbacks,r)&&t.callbacks[r].hide(e)},this.register=function(e,r){var n=Math.random().toString(36).substring(7);return t.callbacks[n]={show:e,hide:r},n},this.unregister=function(e){e&&t.callbacks[e]&&delete t.callbacks[e]},this.callbacks={},Kn&&(window.addEventListener(Xn,this.handleShowEvent),window.addEventListener(Qn,this.handleHideEvent))},ta=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ra=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function na(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oa(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}var ia=function(e){function t(){var e,r,n;aa(this,t);for(var a=arguments.length,o=Array(a),i=0;i<a;i++)o[i]=arguments[i];return r=n=oa(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),n.handleClick=function(e){0!==e.button&&1!==e.button&&e.preventDefault(),n.props.disabled||n.props.divider||(In(n.props.onClick,e,An()({},n.props.data,Zn.data),Zn.target),n.props.preventClose||Jn())},oa(n,r)}return function(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)}(t,e),ra(t,[{key:"render",value:function(){var e,t=this,r=this.props,n=r.attributes,a=r.children,o=r.className,i=r.disabled,l=r.divider,s=r.selected,c=Rn()(o,Vn,n.className,(na(e={},Rn()(Hn,n.disabledClassName),i),na(e,Rn()(Bn,n.dividerClassName),l),na(e,Rn()(Wn,n.selectedClassName),s),e));return p.a.createElement("div",ta({},n,{className:c,role:"menuitem",tabIndex:"-1","aria-disabled":i?"true":"false","aria-orientation":l?"horizontal":null,ref:function(e){t.ref=e},onMouseMove:this.props.onMouseMove,onMouseLeave:this.props.onMouseLeave,onTouchEnd:this.handleClick,onClick:this.handleClick}),l?null:a)}}]),t}(s.Component);ia.propTypes={attributes:b.a.object,children:b.a.node,className:b.a.string,data:b.a.object,disabled:b.a.bool,divider:b.a.bool,onClick:b.a.func,onMouseLeave:b.a.func,onMouseMove:b.a.func,preventClose:b.a.bool,selected:b.a.bool},ia.defaultProps={attributes:{},children:null,className:"",data:{},disabled:!1,divider:!1,onClick:function(){return null},onMouseMove:function(){return null},onMouseLeave:function(){return null},preventClose:!1,selected:!1};var la=ia;var sa=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return pa.call(r),r.seletedItemRef=null,r.state={selectedItem:null,forceSubMenuOpen:!1},r}return function(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)}(t,e),t}(s.Component);sa.propTypes={children:b.a.node.isRequired};var pa=function(){var e=this;this.handleKeyNavigation=function(t){if(!1!==e.state.isVisible)switch(t.keyCode){case 37:case 27:t.preventDefault(),e.hideMenu(t);break;case 38:t.preventDefault(),e.selectChildren(!0);break;case 40:t.preventDefault(),e.selectChildren(!1);break;case 39:e.tryToOpenSubMenu(t);break;case 13:t.preventDefault(),e.tryToOpenSubMenu(t);var r=e.seletedItemRef&&e.seletedItemRef.props&&e.seletedItemRef.props.disabled;e.seletedItemRef&&e.seletedItemRef.ref instanceof HTMLElement&&!r?e.seletedItemRef.ref.click():e.hideMenu(t)}},this.handleForceClose=function(){e.setState({forceSubMenuOpen:!1})},this.tryToOpenSubMenu=function(t){e.state.selectedItem&&e.state.selectedItem.type===e.getSubMenuType()&&(t.preventDefault(),e.setState({forceSubMenuOpen:!0}))},this.selectChildren=function(t){var r=e.state.selectedItem,n=[],a=0,o={};if(p.a.Children.forEach(e.props.children,(function t(r,i){r&&([la,e.getSubMenuType()].indexOf(r.type)<0?p.a.Children.forEach(r.props.children,t):r.props.divider||(r.props.disabled&&(++a,o[i]=!0),n.push(r)))})),a!==n.length){var i=function(e){var r=e;do{t?--r:++r,r<0?r=n.length-1:r>=n.length&&(r=0)}while(r!==e&&o[r]);return r===e?null:r}(n.indexOf(r));null!==i&&e.setState({selectedItem:n[i],forceSubMenuOpen:!1})}},this.onChildMouseMove=function(t){e.state.selectedItem!==t&&e.setState({selectedItem:t,forceSubMenuOpen:!1})},this.onChildMouseLeave=function(){e.setState({selectedItem:null,forceSubMenuOpen:!1})},this.renderChildren=function(t){return p.a.Children.map(t,(function(t){var r={};return p.a.isValidElement(t)?[la,e.getSubMenuType()].indexOf(t.type)<0?(r.children=e.renderChildren(t.props.children),p.a.cloneElement(t,r)):(r.onMouseLeave=e.onChildMouseLeave.bind(e),t.type===e.getSubMenuType()&&(r.forceOpen=e.state.forceSubMenuOpen&&e.state.selectedItem===t,r.forceClose=e.handleForceClose,r.parentKeyNavigationHandler=e.handleKeyNavigation),t.props.divider||e.state.selectedItem!==t?(r.onMouseMove=function(){return e.onChildMouseMove(t)},p.a.cloneElement(t,r)):(r.selected=!0,r.ref=function(t){e.seletedItemRef=t},p.a.cloneElement(t,r))):t}))}},ca=sa,ua=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},da=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function ha(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ba=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.getMenuPosition=function(){var e=window,t=e.innerWidth,n=e.innerHeight,a=r.subMenu.getBoundingClientRect(),o={};return a.bottom>n?o.bottom=0:o.top=0,a.right<t?o.left="100%":o.right="100%",o},r.getRTLMenuPosition=function(){var e=window.innerHeight,t=r.subMenu.getBoundingClientRect(),n={};return t.bottom>e?n.bottom=0:n.top=0,t.left<0?n.left="100%":n.right="100%",n},r.hideSubMenu=function(e){e.detail&&e.detail.id&&r.menu&&e.detail.id!==r.menu.id||(r.props.forceOpen&&r.props.forceClose(),r.setState({visible:!1,selectedItem:null}),r.unregisterHandlers())},r.handleClick=function(e){e.preventDefault(),r.props.disabled||(In(r.props.onClick,e,An()({},r.props.data,Zn.data),Zn.target),r.props.onClick&&!r.props.preventCloseOnClick&&Jn())},r.handleMouseEnter=function(){r.closetimer&&clearTimeout(r.closetimer),r.props.disabled||r.state.visible||(r.opentimer=setTimeout((function(){return r.setState({visible:!0,selectedItem:null})}),r.props.hoverDelay))},r.handleMouseLeave=function(){r.opentimer&&clearTimeout(r.opentimer),r.state.visible&&(r.closetimer=setTimeout((function(){return r.setState({visible:!1,selectedItem:null})}),r.props.hoverDelay))},r.menuRef=function(e){r.menu=e},r.subMenuRef=function(e){r.subMenu=e},r.registerHandlers=function(){document.removeEventListener("keydown",r.props.parentKeyNavigationHandler),document.addEventListener("keydown",r.handleKeyNavigation)},r.unregisterHandlers=function(e){document.removeEventListener("keydown",r.handleKeyNavigation),e||document.addEventListener("keydown",r.props.parentKeyNavigationHandler)},r.state=An()({},r.state,{visible:!1}),r}return function(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)}(t,e),da(t,[{key:"componentDidMount",value:function(){this.listenId=ea.register((function(){}),this.hideSubMenu)}},{key:"getSubMenuType",value:function(){return t}},{key:"shouldComponentUpdate",value:function(e,t){return this.isVisibilityChange=!(this.state.visible===t.visible&&this.props.forceOpen===e.forceOpen||this.state.visible&&e.forceOpen||this.props.forceOpen&&t.visible),!0}},{key:"componentDidUpdate",value:function(){var e=this;if(this.isVisibilityChange)if(this.props.forceOpen||this.state.visible){(window.requestAnimationFrame||setTimeout)((function(){var t=e.props.rtl?e.getRTLMenuPosition():e.getMenuPosition();e.subMenu.style.removeProperty("top"),e.subMenu.style.removeProperty("bottom"),e.subMenu.style.removeProperty("left"),e.subMenu.style.removeProperty("right"),jn(t,"top")&&(e.subMenu.style.top=t.top),jn(t,"left")&&(e.subMenu.style.left=t.left),jn(t,"bottom")&&(e.subMenu.style.bottom=t.bottom),jn(t,"right")&&(e.subMenu.style.right=t.right),e.subMenu.classList.add(Gn),e.registerHandlers(),e.setState({selectedItem:null})}))}else{this.subMenu.addEventListener("transitionend",(function t(){e.subMenu.removeEventListener("transitionend",t),e.subMenu.style.removeProperty("bottom"),e.subMenu.style.removeProperty("right"),e.subMenu.style.top=0,e.subMenu.style.left="100%",e.unregisterHandlers()})),this.subMenu.classList.remove(Gn)}}},{key:"componentWillUnmount",value:function(){this.listenId&&ea.unregister(this.listenId),this.opentimer&&clearTimeout(this.opentimer),this.closetimer&&clearTimeout(this.closetimer),this.unregisterHandlers(!0)}},{key:"render",value:function(){var e,t=this.props,r=t.children,n=t.attributes,a=t.disabled,o=t.title,i=t.selected,l=this.state.visible,s={ref:this.menuRef,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,className:Rn()(Vn,Yn,n.listClassName),style:{position:"relative"}},c={className:Rn()(Vn,n.className,(e={},ha(e,Rn()(Hn,n.disabledClassName),a),ha(e,Rn()(Un,n.visibleClassName),l),ha(e,Rn()(Wn,n.selectedClassName),i),e)),onMouseMove:this.props.onMouseMove,onMouseOut:this.props.onMouseOut,onClick:this.handleClick},u={ref:this.subMenuRef,style:{position:"absolute",transition:"opacity 1ms",top:0,left:"100%"},className:Rn()(zn,this.props.className)};return p.a.createElement("nav",ua({},s,{role:"menuitem",tabIndex:"-1","aria-haspopup":"true"}),p.a.createElement("div",ua({},n,c),o),p.a.createElement("nav",ua({},u,{role:"menu",tabIndex:"-1"}),this.renderChildren(r)))}}]),t}(ca);ba.propTypes={children:b.a.node.isRequired,attributes:b.a.object,title:b.a.node.isRequired,className:b.a.string,disabled:b.a.bool,hoverDelay:b.a.number,rtl:b.a.bool,selected:b.a.bool,onMouseMove:b.a.func,onMouseOut:b.a.func,forceOpen:b.a.bool,forceClose:b.a.func,parentKeyNavigationHandler:b.a.func},ba.defaultProps={disabled:!1,hoverDelay:500,attributes:{},className:"",rtl:!1,selected:!1,onMouseMove:function(){return null},onMouseOut:function(){return null},forceOpen:!1,forceClose:function(){return null},parentKeyNavigationHandler:function(){return null}};var ma=ba,ga=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();var fa=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.registerHandlers=function(){document.addEventListener("mousedown",r.handleOutsideClick),document.addEventListener("touchstart",r.handleOutsideClick),r.props.preventHideOnScroll||document.addEventListener("scroll",r.handleHide),r.props.preventHideOnContextMenu||document.addEventListener("contextmenu",r.handleHide),document.addEventListener("keydown",r.handleKeyNavigation),r.props.preventHideOnResize||window.addEventListener("resize",r.handleHide)},r.unregisterHandlers=function(){document.removeEventListener("mousedown",r.handleOutsideClick),document.removeEventListener("touchstart",r.handleOutsideClick),document.removeEventListener("scroll",r.handleHide),document.removeEventListener("contextmenu",r.handleHide),document.removeEventListener("keydown",r.handleKeyNavigation),window.removeEventListener("resize",r.handleHide)},r.handleShow=function(e){if(e.detail.id===r.props.id&&!r.state.isVisible){var t=e.detail.position,n=t.x,a=t.y;r.setState({isVisible:!0,x:n,y:a}),r.registerHandlers(),In(r.props.onShow,e)}},r.handleHide=function(e){!r.state.isVisible||e.detail&&e.detail.id&&e.detail.id!==r.props.id||(r.unregisterHandlers(),r.setState({isVisible:!1,selectedItem:null,forceSubMenuOpen:!1}),In(r.props.onHide,e))},r.handleOutsideClick=function(e){r.menu.contains(e.target)||Jn()},r.handleMouseLeave=function(e){e.preventDefault(),In(r.props.onMouseLeave,e,An()({},r.props.data,Zn.data),Zn.target),r.props.hideOnLeave&&Jn()},r.handleContextMenu=function(e){e.preventDefault(),r.handleHide(e)},r.hideMenu=function(e){27!==e.keyCode&&13!==e.keyCode||Jn()},r.getMenuPosition=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n={top:t,left:e};if(!r.menu)return n;var a=window,o=a.innerWidth,i=a.innerHeight,l=r.menu.getBoundingClientRect();return t+l.height>i&&(n.top-=l.height),e+l.width>o&&(n.left-=l.width),n.top<0&&(n.top=l.height<i?(i-l.height)/2:0),n.left<0&&(n.left=l.width<o?(o-l.width)/2:0),n},r.getRTLMenuPosition=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n={top:t,left:e};if(!r.menu)return n;var a=window,o=a.innerWidth,i=a.innerHeight,l=r.menu.getBoundingClientRect();return n.left=e-l.width,t+l.height>i&&(n.top-=l.height),n.left<0&&(n.left+=l.width),n.top<0&&(n.top=l.height<i?(i-l.height)/2:0),n.left+l.width>o&&(n.left=l.width<o?(o-l.width)/2:0),n},r.menuRef=function(e){r.menu=e},r.state=An()({},r.state,{x:0,y:0,isVisible:!1}),r}return function(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)}(t,e),ga(t,[{key:"getSubMenuType",value:function(){return ma}},{key:"componentDidMount",value:function(){this.listenId=ea.register(this.handleShow,this.handleHide)}},{key:"componentDidUpdate",value:function(){var e=this,t=window.requestAnimationFrame||setTimeout;this.state.isVisible?t((function(){var r=e.state,n=r.x,a=r.y,o=e.props.rtl?e.getRTLMenuPosition(n,a):e.getMenuPosition(n,a),i=o.top,l=o.left;t((function(){e.menu&&(e.menu.style.top=i+"px",e.menu.style.left=l+"px",e.menu.style.opacity=1,e.menu.style.pointerEvents="auto")}))})):t((function(){e.menu&&(e.menu.style.opacity=0,e.menu.style.pointerEvents="none")}))}},{key:"componentWillUnmount",value:function(){this.listenId&&ea.unregister(this.listenId),this.unregisterHandlers()}},{key:"render",value:function(){var e,t,r,n=this.props,a=n.children,o=n.className,i=n.style,l=this.state.isVisible,s=An()({},i,{position:"fixed",opacity:0,pointerEvents:"none"}),c=Rn()(zn,o,(r=l,(t=Gn)in(e={})?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e));return p.a.createElement("nav",{role:"menu",tabIndex:"-1",ref:this.menuRef,style:s,className:c,onContextMenu:this.handleContextMenu,onMouseLeave:this.handleMouseLeave},this.renderChildren(a))}}]),t}(ca);fa.propTypes={id:b.a.string.isRequired,children:b.a.node.isRequired,data:b.a.object,className:b.a.string,hideOnLeave:b.a.bool,rtl:b.a.bool,onHide:b.a.func,onMouseLeave:b.a.func,onShow:b.a.func,preventHideOnContextMenu:b.a.bool,preventHideOnResize:b.a.bool,preventHideOnScroll:b.a.bool,style:b.a.object},fa.defaultProps={className:"",data:{},hideOnLeave:!1,rtl:!1,onHide:function(){return null},onMouseLeave:function(){return null},onShow:function(){return null},preventHideOnContextMenu:!1,preventHideOnResize:!1,preventHideOnScroll:!1,style:{}};var va=fa,ya=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function Ca(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ea(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}var Oa=function(e){function t(){var e,r,n;Ca(this,t);for(var a=arguments.length,o=Array(a),i=0;i<a;i++)o[i]=arguments[i];return r=n=Ea(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),n.touchHandled=!1,n.handleMouseDown=function(e){n.props.holdToDisplay>=0&&0===e.button&&(e.persist(),e.stopPropagation(),n.mouseDownTimeoutId=setTimeout((function(){return n.handleContextClick(e)}),n.props.holdToDisplay)),In(n.props.attributes.onMouseDown,e)},n.handleMouseUp=function(e){0===e.button&&clearTimeout(n.mouseDownTimeoutId),In(n.props.attributes.onMouseUp,e)},n.handleMouseOut=function(e){0===e.button&&clearTimeout(n.mouseDownTimeoutId),In(n.props.attributes.onMouseOut,e)},n.handleTouchstart=function(e){n.touchHandled=!1,n.props.holdToDisplay>=0&&(e.persist(),e.stopPropagation(),n.touchstartTimeoutId=setTimeout((function(){n.handleContextClick(e),n.touchHandled=!0}),n.props.holdToDisplay)),In(n.props.attributes.onTouchStart,e)},n.handleTouchEnd=function(e){n.touchHandled&&e.preventDefault(),clearTimeout(n.touchstartTimeoutId),In(n.props.attributes.onTouchEnd,e)},n.handleContextMenu=function(e){e.button===n.props.mouseButton&&n.handleContextClick(e),In(n.props.attributes.onContextMenu,e)},n.handleMouseClick=function(e){e.button===n.props.mouseButton&&n.handleContextClick(e),In(n.props.attributes.onClick,e)},n.handleContextClick=function(e){if(!(n.props.disable||n.props.disableIfShiftIsPressed&&e.shiftKey)){e.preventDefault(),e.stopPropagation();var t=e.clientX||e.touches&&e.touches[0].pageX,r=e.clientY||e.touches&&e.touches[0].pageY;n.props.posX&&(t-=n.props.posX),n.props.posY&&(r-=n.props.posY),Jn();var a=In(n.props.collect,n.props),o={position:{x:t,y:r},target:n.elem,id:n.props.id};a&&"function"==typeof a.then?a.then((function(t){o.data=An()({},t,{target:e.target}),$n(o)})):(o.data=An()({},a,{target:e.target}),$n(o))}},n.elemRef=function(e){n.elem=e},Ea(n,r)}return function(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)}(t,e),ya(t,[{key:"render",value:function(){var e=this.props,t=e.renderTag,r=e.attributes,n=e.children,a=An()({},r,{className:Rn()(Fn,r.className),onContextMenu:this.handleContextMenu,onClick:this.handleMouseClick,onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onTouchStart:this.handleTouchstart,onTouchEnd:this.handleTouchEnd,onMouseOut:this.handleMouseOut,ref:this.elemRef});return p.a.createElement(t,a,n)}}]),t}(s.Component);Oa.propTypes={id:b.a.string.isRequired,children:b.a.node.isRequired,attributes:b.a.object,collect:b.a.func,disable:b.a.bool,holdToDisplay:b.a.number,posX:b.a.number,posY:b.a.number,renderTag:b.a.elementType,mouseButton:b.a.number,disableIfShiftIsPressed:b.a.bool},Oa.defaultProps={attributes:{},collect:function(){return null},disable:!1,holdToDisplay:1e3,renderTag:"div",posX:0,posY:0,mouseButton:2,disableIfShiftIsPressed:!1};var Sa=Oa;Object.assign,function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}}();[].concat(function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}(Object.keys(Sa.propTypes)),["children"]);var xa=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.expandAll=function(){this.props.onExpandAll(!this.props.isExpanded)},t.prototype.render=function(){var e=this,t=this.props.isExpanded?s.createElement(w,{icon:ae}):s.createElement(w,{icon:se}),r=this.props.isExpanded?s.createElement(w,{icon:H}):s.createElement(w,{icon:Z});return s.createElement("div",{className:"expandableHeader"},s.createElement("div",{className:"text"},s.createElement("div",{className:"arrow icon",onClick:function(){return e.props.onClick()}},t),s.createElement("div",{className:"text-value"},this.props.label)),s.createElement("div",{className:"expandAll icon",onClick:function(){return e.expandAll()},title:this.props.isExpanded?"Collapse all":"Expand all"},r))},t}(s.Component),Pa=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){return s.createElement("div",{className:"expandableHeader"},s.createElement("div",{className:"text"},s.createElement("div",{className:"arrow icon"},s.createElement(w,{icon:L})),s.createElement("div",{className:"text-value"},this.props.label)))},t}(s.Component),wa=function(e){function t(t){var r=e.call(this,t)||this;return r.state={isExpanded:!1,mustExpand:!1},r}return a(t,e),t.prototype.switchExpandedState=function(){this.setState({isExpanded:!this.state.isExpanded,mustExpand:!1})},t.prototype.shouldComponentUpdate=function(e,t){if(!t.isExpanded&&this.state.isExpanded)return!0;var r=e.items;if(r&&r.length&&e.selectedEntity)for(var n=0,a=r;n<a.length;n++){var o=a[n];if(_n.LookForItem(o,e.selectedEntity))return t.isExpanded=!0,!0}return!0},t.prototype.expandAll=function(e){this.setState({isExpanded:e,mustExpand:e})},t.prototype.renderContextMenu=function(){return this.props.contextMenuItems?s.createElement(va,{id:"contextmenu#"+t._ContextMenuUniqueIdGenerator++,className:"context-menu"},this.props.contextMenuItems.map((function(e){return s.createElement(la,{onClick:function(){return e.action()},key:e.label},e.label)}))):(t._ContextMenuUniqueIdGenerator++,null)},t.prototype.render=function(){var e=this,r=this.props.items,n={paddingLeft:10*(this.props.offset+.5)+"px"};if(!r){if(!this.props.forceSubitems)return s.createElement("div",{className:"groupContainer",style:n},s.createElement("div",null,this.props.label));r=[]}if(!r.length)return s.createElement("div",{className:"groupContainer",style:n},s.createElement(Sa,{id:"contextmenu#"+t._ContextMenuUniqueIdGenerator},this.renderContextMenu(),s.createElement(Pa,{label:this.props.label})));if(!this.state.isExpanded)return s.createElement("div",{className:"groupContainer",style:n},s.createElement(Sa,{id:"contextmenu#"+t._ContextMenuUniqueIdGenerator},this.renderContextMenu(),s.createElement(xa,{isExpanded:!1,label:this.props.label,onClick:function(){return e.switchExpandedState()},onExpandAll:function(t){return e.expandAll(t)}})));var a=_n.SortAndFilter(null,r);return s.createElement("div",null,s.createElement("div",{className:"groupContainer",style:n},s.createElement(Sa,{id:"contextmenu#"+t._ContextMenuUniqueIdGenerator},this.renderContextMenu(),s.createElement(xa,{isExpanded:this.state.isExpanded,label:this.props.label,onClick:function(){return e.switchExpandedState()},onExpandAll:function(t){return e.expandAll(t)}}))),a.map((function(t){return s.createElement(Mn,{mustExpand:e.state.mustExpand,extensibilityGroups:e.props.extensibilityGroups,key:void 0!==t.uniqueId&&null!==t.uniqueId?t.uniqueId:t.name,offset:e.props.offset+1,selectedEntity:e.props.selectedEntity,entity:t,globalState:e.props.globalState,filter:e.props.filter})})))},t._ContextMenuUniqueIdGenerator=0,t}(s.Component),ka=function(){},Na=function(e){function t(t){var r=e.call(this,t)||this;r._posDragEnd=null,r._scaleDragEnd=null,r._rotateDragEnd=null;var n=r.props.scene,a=0;if(n.reservedDataStore&&n.reservedDataStore.gizmoManager){var o=n.reservedDataStore.gizmoManager;o.positionGizmoEnabled?a=1:o.rotationGizmoEnabled?a=2:o.scaleGizmoEnabled?a=3:o.boundingBoxGizmoEnabled&&(a=4)}return r.state={isSelected:!1,isInPickingMode:!1,gizmoMode:a},r}return a(t,e),t.prototype.shouldComponentUpdate=function(e,t){if(e.selectedEntity){if(e.scene===e.selectedEntity)return t.isSelected=!0,!0;t.isSelected=!1}return!0},t.prototype.componentDidMount=function(){var e=this;if(this.props.onSelectionChangedObservable){var t=this.props.scene;this._onSelectionChangeObserver=this.props.onSelectionChangedObservable.add((function(r){if(e._selectedEntity=r,r&&t.reservedDataStore&&t.reservedDataStore.gizmoManager){var n=t.reservedDataStore.gizmoManager,a=r.getClassName();"TransformNode"===a||-1!==a.indexOf("Mesh")?n.attachToMesh(r):-1!==a.indexOf("Light")?(e._selectedEntity.reservedDataStore&&e._selectedEntity.reservedDataStore.lightGizmo||(e.props.globalState.enableLightGizmo(e._selectedEntity,!0),e.forceUpdate()),n.attachToNode(e._selectedEntity.reservedDataStore.lightGizmo.attachedNode)):-1!==a.indexOf("Camera")?(e._selectedEntity.reservedDataStore&&e._selectedEntity.reservedDataStore.cameraGizmo||(e.props.globalState.enableCameraGizmo(e._selectedEntity,!0),e.forceUpdate()),n.attachToNode(e._selectedEntity.reservedDataStore.cameraGizmo.attachedNode)):-1!==a.indexOf("Bone")?n.attachToMesh(e._selectedEntity._linkedTransformNode?e._selectedEntity._linkedTransformNode:e._selectedEntity):n.attachToNode(null)}}))}},t.prototype.componentWillUnmount=function(){var e=this.props.scene;this._onPointerObserver&&(e.onPointerObservable.remove(this._onPointerObserver),this._onPointerObserver=null),this._gizmoLayerOnPointerObserver&&(e.onPointerObservable.remove(this._gizmoLayerOnPointerObserver),this._gizmoLayerOnPointerObserver=null),this._onSelectionChangeObserver&&this.props.onSelectionChangedObservable&&this.props.onSelectionChangedObservable.remove(this._onSelectionChangeObserver)},t.prototype.onSelect=function(){if(this.props.onSelectionChangedObservable){var e=this.props.scene;this.props.onSelectionChangedObservable.notifyObservers(e)}},t.prototype.onPickingMode=function(){var e=this,t=this.props.scene;this._onPointerObserver&&(t.onPointerObservable.remove(this._onPointerObserver),this._onPointerObserver=null),this.state.isInPickingMode||(this._onPointerObserver=t.onPointerObservable.add((function(){var r=t.unTranslatedPointer,n=t.pick(r.x,r.y,(function(e){return e.isEnabled()&&e.isVisible&&e.getTotalVertices()>0}),!1,void 0,(function(t,r,n,a){if(!e.props.globalState.ignoreBackfacesForPicking)return!0;var o=u.TmpVectors.Vector3[0],i=u.TmpVectors.Vector3[1],l=u.TmpVectors.Vector3[2];return r.subtractToRef(t,o),n.subtractToRef(r,i),l=u.Vector3.Cross(o,i),u.Vector3.Dot(l,a.direction)<0}));if(e.props.globalState.lightGizmos.length>0){var a=e.props.globalState.lightGizmos[0].gizmoLayer.utilityLayerScene.pick(r.x,r.y,(function(t){for(var r=0,n=e.props.globalState.lightGizmos;r<n.length;r++){if(n[r].attachedNode==t)return!0}return!1}));if(a&&a.hit&&e.props.onSelectionChangedObservable)return void e.props.onSelectionChangedObservable.notifyObservers(a.pickedMesh)}if(e.props.globalState.cameraGizmos.length>0){var o=e.props.globalState.cameraGizmos[0].gizmoLayer.utilityLayerScene.pick(r.x,r.y,(function(t){for(var r=0,n=e.props.globalState.cameraGizmos;r<n.length;r++){if(n[r].attachedNode==t)return!0}return!1}));if(o&&o.hit&&e.props.onSelectionChangedObservable)return void e.props.onSelectionChangedObservable.notifyObservers(o.pickedMesh)}n&&n.hit&&e.props.onSelectionChangedObservable&&e.props.onSelectionChangedObservable.notifyObservers(n.pickedMesh)}),u.PointerEventTypes.POINTERTAP)),this.setState({isInPickingMode:!this.state.isInPickingMode})},t.prototype.setGizmoMode=function(e){var t=this,r=this.props.scene;r.reservedDataStore||(r.reservedDataStore={}),this._gizmoLayerOnPointerObserver&&(r.onPointerObservable.remove(this._gizmoLayerOnPointerObserver),this._gizmoLayerOnPointerObserver=null),r.reservedDataStore.gizmoManager||(r.reservedDataStore.gizmoManager=new u.GizmoManager(r));var n=r.reservedDataStore.gizmoManager;if(this._gizmoLayerOnPointerObserver=u.UtilityLayerRenderer.DefaultUtilityLayer.utilityLayerScene.onPointerObservable.add((function(e){if(e.type==u.PointerEventTypes.POINTERDOWN&&e.pickInfo&&e.pickInfo.pickedMesh){for(var r=e.pickInfo.pickedMesh;r&&null!=r.parent;)r=r.parent;for(var a=0,o=t.props.globalState.lightGizmos;a<o.length;a++){var i=o[a];i._rootMesh==r&&n.attachToNode(i.attachedNode)}}})),n.boundingBoxGizmoEnabled=!1,n.positionGizmoEnabled=!1,n.rotationGizmoEnabled=!1,n.scaleGizmoEnabled=!1,this.state.gizmoMode===e)e=0,n.dispose(),r.reservedDataStore.gizmoManager=null;else{switch(e){case 1:n.positionGizmoEnabled=!0,this._posDragEnd||(this._posDragEnd=n.gizmos.positionGizmo.onDragEndObservable.add((function(){if(n.gizmos.positionGizmo&&n.gizmos.positionGizmo.attachedNode){var e=n.gizmos.positionGizmo.attachedNode.reservedDataStore?n.gizmos.positionGizmo.attachedNode.reservedDataStore.lightGizmo:null,r=e&&e.light?e.light:n.gizmos.positionGizmo.attachedNode;if(r.position){(a=new ka).object=r,a.property="position",a.value=r.position,t.props.globalState.onPropertyChangedObservable.notifyObservers(a)}else{var a,o=n.gizmos.positionGizmo.attachedNode.reservedDataStore?n.gizmos.positionGizmo.attachedNode.reservedDataStore.cameraGizmo:null,i=o&&o.camera?o.camera:n.gizmos.positionGizmo.attachedNode;if(i.position)(a=new ka).object=i,a.property="position",a.value=i.position,t.props.globalState.onPropertyChangedObservable.notifyObservers(a)}}})));break;case 2:n.rotationGizmoEnabled=!0,this._rotateDragEnd||(this._rotateDragEnd=n.gizmos.rotationGizmo.onDragEndObservable.add((function(){if(n.gizmos.rotationGizmo&&n.gizmos.rotationGizmo.attachedNode){var e=n.gizmos.rotationGizmo.attachedNode.reservedDataStore?n.gizmos.rotationGizmo.attachedNode.reservedDataStore.lightGizmo:null,r=e&&e.light?e.light:n.gizmos.rotationGizmo.attachedNode,a=n.gizmos.rotationGizmo.attachedNode.reservedDataStore?n.gizmos.rotationGizmo.attachedNode.reservedDataStore.cameraGizmo:null,o=a&&a.camera?a.camera:n.gizmos.rotationGizmo.attachedNode;if(r.rotationQuaternion)(i=new ka).object=r,i.property="rotationQuaternion",i.value=r.rotationQuaternion,t.props.globalState.onPropertyChangedObservable.notifyObservers(i);else if(r.rotation){(i=new ka).object=r,i.property="rotation",i.value=r.rotation,t.props.globalState.onPropertyChangedObservable.notifyObservers(i)}else if(r.direction){(i=new ka).object=r,i.property="direction",i.value=r.direction,t.props.globalState.onPropertyChangedObservable.notifyObservers(i)}else if(o.rotationQuaternion){(i=new ka).object=o,i.property="rotationQuaternion",i.value=o.rotationQuaternion,t.props.globalState.onPropertyChangedObservable.notifyObservers(i)}else if(o.rotation){var i;(i=new ka).object=o,i.property="rotation",i.value=o.rotation,t.props.globalState.onPropertyChangedObservable.notifyObservers(i)}}})));break;case 3:n.scaleGizmoEnabled=!0,this._scaleDragEnd||(this._scaleDragEnd=n.gizmos.scaleGizmo.onDragEndObservable.add((function(){if(n.gizmos.scaleGizmo&&n.gizmos.scaleGizmo.attachedMesh){var e=n.gizmos.scaleGizmo.attachedMesh.reservedDataStore?n.gizmos.scaleGizmo.attachedMesh.reservedDataStore.lightGizmo:null,r=e&&e.light?e.light:n.gizmos.scaleGizmo.attachedMesh;if(r.scaling){var a=new ka;a.object=r,a.property="scaling",a.value=r.scaling,t.props.globalState.onPropertyChangedObservable.notifyObservers(a)}}})));break;case 4:n.boundingBoxGizmoEnabled=!0,n.gizmos.boundingBoxGizmo&&(n.gizmos.boundingBoxGizmo.fixedDragMeshScreenSize=!0)}if(this._selectedEntity&&this._selectedEntity.getClassName){var a=this._selectedEntity.getClassName();"TransformNode"===a||-1!==a.indexOf("Mesh")?n.attachToMesh(this._selectedEntity):-1!==a.indexOf("Light")?(this._selectedEntity.reservedDataStore&&this._selectedEntity.reservedDataStore.lightGizmo||(this.props.globalState.enableLightGizmo(this._selectedEntity,!0),this.forceUpdate()),n.attachToNode(this._selectedEntity.reservedDataStore.lightGizmo.attachedNode)):-1!==a.indexOf("Camera")?(this._selectedEntity.reservedDataStore&&this._selectedEntity.reservedDataStore.cameraGizmo||(this.props.globalState.enableCameraGizmo(this._selectedEntity,!0),this.forceUpdate()),n.attachToNode(this._selectedEntity.reservedDataStore.cameraGizmo.attachedNode)):-1!==a.indexOf("Bone")&&n.attachToMesh(this._selectedEntity._linkedTransformNode?this._selectedEntity._linkedTransformNode:this._selectedEntity)}}this.setState({gizmoMode:e})},t.prototype.render=function(){var e=this;return s.createElement("div",{className:this.state.isSelected?"itemContainer selected":"itemContainer"},s.createElement("div",{className:"sceneNode"},s.createElement("div",{className:"sceneTitle",onClick:function(){return e.onSelect()}},s.createElement(w,{icon:ee})," Scene"),s.createElement("div",{className:1===this.state.gizmoMode?"translation selected icon":"translation icon",onClick:function(){return e.setGizmoMode(1)},title:"Enable/Disable position mode"},s.createElement(w,{icon:M})),s.createElement("div",{className:2===this.state.gizmoMode?"rotation selected icon":"rotation icon",onClick:function(){return e.setGizmoMode(2)},title:"Enable/Disable rotation mode"},s.createElement(w,{icon:ce})),s.createElement("div",{className:3===this.state.gizmoMode?"scaling selected icon":"scaling icon",onClick:function(){return e.setGizmoMode(3)},title:"Enable/Disable scaling mode"},s.createElement(w,{icon:H})),s.createElement("div",{className:4===this.state.gizmoMode?"bounding selected icon":"bounding icon",onClick:function(){return e.setGizmoMode(4)},title:"Enable/Disable bounding box mode"},s.createElement(w,{icon:ge})),s.createElement("div",{className:"separator"}),s.createElement("div",{className:this.state.isInPickingMode?"pickingMode selected icon":"pickingMode icon",onClick:function(){return e.onPickingMode()},title:"Turn picking mode on/off"},s.createElement(w,{icon:B})),s.createElement("div",{className:"refresh icon",onClick:function(){return e.props.onRefresh()},title:"Refresh the explorer"},s.createElement(w,{icon:de})),s.createElement(cn,{target:this.props.scene,extensibilityGroups:this.props.extensibilityGroups})))},t}(s.Component);r(56);var Ta=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this;return s.createElement("div",{className:"filter"},s.createElement("input",{type:"text",placeholder:"Filter",onChange:function(t){return e.props.onFilter(t.target.value)}}))},t}(s.Component),_a=function(e){function t(t){var r=e.call(this,t)||this;return r._once=!0,r._hooked=!1,r.state={filter:null,selectedEntity:null,scene:r.props.scene},r.sceneMutationFunc=r.processMutation.bind(r),r.sceneExplorerRef=s.createRef(),r._onNewSceneObserver=r.props.globalState.onNewSceneObservable.add((function(e){r.setState({scene:e})})),r}return a(t,e),t.prototype.processMutation=function(){var e=this;this.props.globalState.blockMutationUpdates||setTimeout((function(){return e.forceUpdate()}))},t.prototype.componentDidMount=function(){var e=this;this._onSelectionChangeObserver=this.props.globalState.onSelectionChangedObservable.add((function(t){e.state.selectedEntity!==t&&e.setState({selectedEntity:t})})),this._onSelectionRenamedObserver=this.props.globalState.onSelectionRenamedObservable.add((function(){e.forceUpdate()}))},t.prototype.componentWillUnmount=function(){this._onSelectionChangeObserver&&this.props.globalState.onSelectionChangedObservable.remove(this._onSelectionChangeObserver),this._onSelectionRenamedObserver&&this.props.globalState.onSelectionRenamedObservable.remove(this._onSelectionRenamedObserver),this._onNewSceneAddedObserver&&u.EngineStore.LastCreatedEngine.onNewSceneAddedObservable.remove(this._onNewSceneAddedObserver),this._onNewSceneObserver&&this.props.globalState.onNewSceneObservable.remove(this._onNewSceneObserver);var e=this.state.scene;e.onNewSkeletonAddedObservable.removeCallback(this.sceneMutationFunc),e.onNewCameraAddedObservable.removeCallback(this.sceneMutationFunc),e.onNewLightAddedObservable.removeCallback(this.sceneMutationFunc),e.onNewMaterialAddedObservable.removeCallback(this.sceneMutationFunc),e.onNewMeshAddedObservable.removeCallback(this.sceneMutationFunc),e.onNewTextureAddedObservable.removeCallback(this.sceneMutationFunc),e.onNewTransformNodeAddedObservable.removeCallback(this.sceneMutationFunc),e.onSkeletonRemovedObservable.removeCallback(this.sceneMutationFunc),e.onMeshRemovedObservable.removeCallback(this.sceneMutationFunc),e.onCameraRemovedObservable.removeCallback(this.sceneMutationFunc),e.onLightRemovedObservable.removeCallback(this.sceneMutationFunc),e.onMaterialRemovedObservable.removeCallback(this.sceneMutationFunc),e.onTransformNodeRemovedObservable.removeCallback(this.sceneMutationFunc),e.onTextureRemovedObservable.removeCallback(this.sceneMutationFunc)},t.prototype.filterContent=function(e){this.setState({filter:e})},t.prototype.findSiblings=function(e,t,r,n,a){if(!t)return!1;var o=_n.SortAndFilter(e,t);if(!t||0===o.length)return!1;for(var i=0,l=o;i<l.length;i++){var s=l[i];if(s===r){if(a.found=!0,!n)return a.previousOne&&this.props.globalState.onSelectionChangedObservable.notifyObservers(a.previousOne),!0}else{if(a.found)return this.props.globalState.onSelectionChangedObservable.notifyObservers(s),!0;a.previousOne=s}if(s.getChildren&&s.reservedDataStore&&s.reservedDataStore.isExpanded&&this.findSiblings(s,s.getChildren(),r,n,a))return!0}return!1},t.prototype.processKeys=function(e){if(this.state.selectedEntity){var t=this.state.scene,r=!1,n=!1;if(38===e.keyCode)r=!0;else if(40===e.keyCode)n=!0,r=!0;else{var a;if(13===e.keyCode||39===e.keyCode)return(a=this.state.selectedEntity.reservedDataStore)&&a.setExpandedState&&a.setExpandedState(!0),void e.preventDefault();if(37===e.keyCode)return(a=this.state.selectedEntity.reservedDataStore)&&a.setExpandedState&&a.setExpandedState(!1),void e.preventDefault();46===e.keyCode&&this.state.selectedEntity.dispose()}if(r){e.preventDefault();var o={};this.findSiblings(null,t.rootNodes,this.state.selectedEntity,n,o)||this.findSiblings(null,t.materials,this.state.selectedEntity,n,o)||this.findSiblings(null,t.textures,this.state.selectedEntity,n,o)}}},t.prototype.renderContent=function(){var e=this,t=this.state.scene;if(!t)return this._onNewSceneAddedObserver=u.EngineStore.LastCreatedEngine.onNewSceneAddedObservable.addOnce((function(t){return e.setState({scene:t})})),null;this._hooked||(this._hooked=!0,t.onNewSkeletonAddedObservable.add(this.sceneMutationFunc),t.onNewCameraAddedObservable.add(this.sceneMutationFunc),t.onNewLightAddedObservable.add(this.sceneMutationFunc),t.onNewMaterialAddedObservable.add(this.sceneMutationFunc),t.onNewMeshAddedObservable.add(this.sceneMutationFunc),t.onNewTextureAddedObservable.add(this.sceneMutationFunc),t.onNewTransformNodeAddedObservable.add(this.sceneMutationFunc),t.onSkeletonRemovedObservable.add(this.sceneMutationFunc),t.onMeshRemovedObservable.add(this.sceneMutationFunc),t.onCameraRemovedObservable.add(this.sceneMutationFunc),t.onLightRemovedObservable.add(this.sceneMutationFunc),t.onMaterialRemovedObservable.add(this.sceneMutationFunc),t.onTransformNodeRemovedObservable.add(this.sceneMutationFunc),t.onTextureRemovedObservable.add(this.sceneMutationFunc));var r=t.textures.filter((function(e){return"AdvancedDynamicTexture"===e.getClassName()})),n=t.textures.filter((function(e){return"AdvancedDynamicTexture"!==e.getClassName()})),a=t.postProcesses,o=t.postProcessRenderPipelineManager.supportedPipelines,i=[];t.activeCamera&&(o.some((function(e){return"DefaultRenderingPipeline"===e.getClassName()}))||i.push({label:"Add new Default Rendering Pipeline",action:function(){var r=new u.DefaultRenderingPipeline("Default rendering pipeline",!0,t,t.cameras);e.props.globalState.onSelectionChangedObservable.notifyObservers(r)}}),o.some((function(e){return"SSAORenderingPipeline"===e.getClassName()}))||i.push({label:"Add new SSAO Rendering Pipeline",action:function(){var r=new u.SSAORenderingPipeline("SSAO rendering pipeline",t,1,t.cameras);e.props.globalState.onSelectionChangedObservable.notifyObservers(r)}}),t.getEngine().getCaps().drawBuffersExtension&&!o.some((function(e){return"SSAORenderingPipeline"===e.getClassName()}))&&i.push({label:"Add new SSAO2 Rendering Pipeline",action:function(){var r=new u.SSAO2RenderingPipeline("SSAO2 rendering pipeline",t,1,t.cameras);e.props.globalState.onSelectionChangedObservable.notifyObservers(r)}}));var l=[];l.push({label:"Add new point light",action:function(){var r=new u.PointLight("point light",u.Vector3.Zero(),t);e.props.globalState.onSelectionChangedObservable.notifyObservers(r)}}),l.push({label:"Add new directional light",action:function(){var r=new u.DirectionalLight("directional light",new u.Vector3(-1,-1,-.5),t);e.props.globalState.onSelectionChangedObservable.notifyObservers(r)}}),l.push({label:"Add new free camera",action:function(){var r=new u.FreeCamera("free camera",t.activeCamera?t.activeCamera.globalPosition:new u.Vector3(0,0,-5),t);t.activeCamera&&(r.minZ=t.activeCamera.minZ,r.maxZ=t.activeCamera.maxZ,t.activeCamera.getTarget&&r.setTarget(t.activeCamera.getTarget())),e.props.globalState.onSelectionChangedObservable.notifyObservers(r)}});var p=function(e){for(var r=1;t.getMaterialByID(e);)e=e+" "+r++;return e},c=[];c.push({label:"Add new standard material",action:function(){var r=new u.StandardMaterial(p("Standard material"),t);e.props.globalState.onSelectionChangedObservable.notifyObservers(r)}}),c.push({label:"Add new PBR material",action:function(){var r=new u.PBRMaterial(p("PBR material"),t);e.props.globalState.onSelectionChangedObservable.notifyObservers(r)}}),c.push({label:"Add new node material",action:function(){var r=new u.NodeMaterial(p("node material"),t);r.setToDefault(),r.build(),e.props.globalState.onSelectionChangedObservable.notifyObservers(r)}});var d=[];d.push.apply(d,t.materials),t.multiMaterials&&t.multiMaterials.length&&d.push.apply(d,t.multiMaterials);var h=[];h.push({label:"Add new sprite manager",action:function(){var r=new u.SpriteManager("Default sprite manager","//playground.babylonjs.com/textures/player.png",500,64,t);e.props.globalState.onSelectionChangedObservable.notifyObservers(r)}});var b=[];return b.push({label:"Add new CPU particle system",action:function(){var r=u.ParticleHelper.CreateDefault(u.Vector3.Zero(),1e4,t);r.name="CPU particle system",r.start(),e.props.globalState.onSelectionChangedObservable.notifyObservers(r)}}),u.GPUParticleSystem.IsSupported&&b.push({label:"Add new GPU particle system",action:function(){var r=u.ParticleHelper.CreateDefault(u.Vector3.Zero(),1e4,t,!0);r.name="GPU particle system",r.start(),e.props.globalState.onSelectionChangedObservable.notifyObservers(r)}}),s.createElement("div",{id:"tree",onContextMenu:function(e){return e.preventDefault()}},s.createElement(Ta,{onFilter:function(t){return e.filterContent(t)}}),s.createElement(Na,{globalState:this.props.globalState,extensibilityGroups:this.props.extensibilityGroups,selectedEntity:this.state.selectedEntity,scene:t,onRefresh:function(){return e.forceUpdate()},onSelectionChangedObservable:this.props.globalState.onSelectionChangedObservable}),s.createElement(wa,{globalState:this.props.globalState,contextMenuItems:l,extensibilityGroups:this.props.extensibilityGroups,selectedEntity:this.state.selectedEntity,items:t.rootNodes,label:"Nodes",offset:1,filter:this.state.filter}),t.skeletons.length>0&&s.createElement(wa,{globalState:this.props.globalState,extensibilityGroups:this.props.extensibilityGroups,selectedEntity:this.state.selectedEntity,items:t.skeletons,label:"Skeletons",offset:1,filter:this.state.filter}),s.createElement(wa,{globalState:this.props.globalState,extensibilityGroups:this.props.extensibilityGroups,selectedEntity:this.state.selectedEntity,items:d,contextMenuItems:c,label:"Materials",offset:1,filter:this.state.filter}),s.createElement(wa,{globalState:this.props.globalState,extensibilityGroups:this.props.extensibilityGroups,selectedEntity:this.state.selectedEntity,items:n,label:"Textures",offset:1,filter:this.state.filter}),a.length>0&&s.createElement(wa,{globalState:this.props.globalState,extensibilityGroups:this.props.extensibilityGroups,selectedEntity:this.state.selectedEntity,items:a,label:"Post-processes",offset:1,filter:this.state.filter}),s.createElement(wa,{globalState:this.props.globalState,extensibilityGroups:this.props.extensibilityGroups,contextMenuItems:i,selectedEntity:this.state.selectedEntity,items:o,label:"Rendering pipelines",offset:1,filter:this.state.filter}),s.createElement(wa,{globalState:this.props.globalState,contextMenuItems:b,extensibilityGroups:this.props.extensibilityGroups,selectedEntity:this.state.selectedEntity,items:t.particleSystems,label:"Particle systems",offset:1,filter:this.state.filter}),s.createElement(wa,{globalState:this.props.globalState,contextMenuItems:h,forceSubitems:!0,extensibilityGroups:this.props.extensibilityGroups,selectedEntity:this.state.selectedEntity,items:t.spriteManagers,label:"Sprite managers",offset:1,filter:this.state.filter}),r&&r.length>0&&s.createElement(wa,{globalState:this.props.globalState,extensibilityGroups:this.props.extensibilityGroups,selectedEntity:this.state.selectedEntity,items:r,label:"GUI",offset:1,filter:this.state.filter}),t.animationGroups.length>0&&s.createElement(wa,{globalState:this.props.globalState,extensibilityGroups:this.props.extensibilityGroups,selectedEntity:this.state.selectedEntity,items:t.animationGroups,label:"Animation groups",offset:1,filter:this.state.filter}),t.mainSoundTrack&&t.mainSoundTrack.soundCollection.length>0&&s.createElement(wa,{globalState:this.props.globalState,extensibilityGroups:this.props.extensibilityGroups,selectedEntity:this.state.selectedEntity,items:t.mainSoundTrack.soundCollection,label:"Sounds",offset:1,filter:this.state.filter}))},t.prototype.onClose=function(){this.props.onClose&&this.props.onClose()},t.prototype.onPopup=function(){this.props.onPopup&&this.props.onPopup()},t.prototype.render=function(){var e=this;return this.props.popupMode?s.createElement("div",{id:"sceneExplorer",tabIndex:0,onKeyDown:function(t){return e.processKeys(t)}},!this.props.noHeader&&s.createElement(Zr,{title:"SCENE EXPLORER",noClose:this.props.noClose,noExpand:this.props.noExpand,noCommands:this.props.noCommands,onClose:function(){return e.onClose()},onPopup:function(){return e.onPopup()}}),this.renderContent()):(this._once&&(this._once=!1,setTimeout((function(){var e=document.getElementById("sceneExplorer");e&&(e.style.width="300px")}),150)),s.createElement(Me.a,{tabIndex:-1,id:"sceneExplorer",ref:this.sceneExplorerRef,size:{height:"100%"},minWidth:300,maxWidth:600,minHeight:"100%",enable:{top:!1,right:!0,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onKeyDown:function(t){return e.processKeys(t)}},!this.props.noHeader&&s.createElement(Zr,{title:"SCENE EXPLORER",noClose:this.props.noClose,noExpand:this.props.noExpand,noCommands:this.props.noCommands,onClose:function(){return e.onClose()},onPopup:function(){return e.onPopup()}}),this.renderContent()))},t}(s.Component),Ma=r(58).default;r(59);var La=function(e){function t(t){var r=e.call(this,t)||this;return r._once=!0,r.splitRef=s.createRef(),r.topPartRef=s.createRef(),r.bottomPartRef=s.createRef(),r}return a(t,e),t.prototype.componentDidMount=function(){this.splitRef.current&&Ma([this.topPartRef.current,this.bottomPartRef.current],{direction:"vertical",minSize:[200,200],gutterSize:4})},t.prototype.renderContent=function(){return this.props.popupMode?s.createElement("div",{id:"split",className:"splitPopup"},s.createElement("div",{id:"topPart"},s.createElement(_a,{scene:this.props.scene,extensibilityGroups:this.props.extensibilityGroups,popupMode:!0,globalState:this.props.globalState,noHeader:!0})),s.createElement("div",{id:"separator"}),s.createElement("div",{id:"bottomPart",style:{marginTop:"4px",overflow:"hidden"}},s.createElement(nn,{scene:this.props.scene,popupMode:!0,globalState:this.props.globalState,noHeader:!0,initialTab:this.props.initialTab}))):s.createElement("div",{ref:this.splitRef,id:"split",className:"noPopup"},s.createElement("div",{id:"topPart",ref:this.topPartRef},s.createElement(_a,{scene:this.props.scene,extensibilityGroups:this.props.extensibilityGroups,globalState:this.props.globalState,popupMode:!0,noHeader:!0})),s.createElement("div",{id:"bottomPart",ref:this.bottomPartRef,style:{marginTop:"4px",overflow:"hidden"}},s.createElement(nn,{scene:this.props.scene,globalState:this.props.globalState,popupMode:!0,noHeader:!0,initialTab:this.props.initialTab})))},t.prototype.render=function(){var e=this;return this.props.popupMode?s.createElement("div",{id:"embed"},s.createElement(Zr,{title:"INSPECTOR",noClose:this.props.noClose,noExpand:this.props.noExpand,handleBack:!0,onClose:function(){return e.props.onClose()},onPopup:function(){return e.props.onPopup()},onSelectionChangedObservable:this.props.globalState.onSelectionChangedObservable}),this.renderContent()):(this._once&&(this._once=!1,setTimeout((function(){var e=document.getElementById("embed");e&&(e.style.width="300px")}),150)),s.createElement(Me.a,{id:"embed",minWidth:300,maxWidth:600,size:{height:"100%"},minHeight:"100%",enable:{top:!1,right:!1,bottom:!1,left:!0,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1}},s.createElement(Zr,{title:"INSPECTOR",noClose:this.props.noClose,noExpand:this.props.noExpand,handleBack:!0,onClose:function(){return e.props.onClose()},onPopup:function(){return e.props.onPopup()},onSelectionChangedObservable:this.props.globalState.onSelectionChangedObservable}),this.renderContent()))},t}(s.Component),Ra=function(){function e(){this._sceneRecorder=new u.SceneRecorder,this._isRecording=!1}return Object.defineProperty(e.prototype,"isRecording",{get:function(){return this._isRecording},enumerable:!1,configurable:!0}),e.prototype.cancel=function(){this._isRecording=!1},e.prototype.trackScene=function(e){this._sceneRecorder.track(e),this._isRecording=!0},e.prototype.applyDelta=function(e,t){u.SceneRecorder.ApplyDelta(e,t),this._isRecording=!1},e.prototype.export=function(){var e=JSON.stringify(this._sceneRecorder.getDelta());u.Tools.Download(new Blob([e]),"diff.json"),this._isRecording=!1},e}(),Da=function(){function e(){this.onInspectorClosedObservable=new u.Observable,this.onTabChangedObservable=new u.Observable,this.onSelectionRenamedObservable=new u.Observable,this.onNewSceneObservable=new u.Observable,this.sceneImportDefaults={},this.validationResults=null,this.onValidationResultsUpdatedObservable=new u.Observable,this.glTFLoaderExtensionDefaults={MSFT_lod:{enabled:!0,maxLODsToLoad:10},MSFT_minecraftMesh:{enabled:!0},MSFT_sRGBFactors:{enabled:!0},MSFT_audio_emitter:{enabled:!0},KHR_draco_mesh_compression:{enabled:!0},KHR_mesh_quantization:{enabled:!0},KHR_materials_pbrSpecularGlossiness:{enabled:!0},KHR_materials_clearcoat:{enabled:!0},KHR_materials_ior:{enabled:!0},KHR_materials_sheen:{enabled:!0},KHR_materials_specular:{enabled:!0},KHR_materials_unlit:{enabled:!0},KHR_materials_variants:{enabled:!0},KHR_materials_transmission:{enabled:!0},KHR_materials_translucency:{enabled:!0},KHR_lights_punctual:{enabled:!0},KHR_texture_basisu:{enabled:!0},KHR_texture_transform:{enabled:!0},EXT_lights_image_based:{enabled:!0},EXT_mesh_gpu_instancing:{enabled:!0},EXT_texture_webp:{enabled:!0}},this.glTFLoaderDefaults={animationStartMode:void 0!==Xr.GLTFLoaderAnimationStartMode?Xr.GLTFLoaderAnimationStartMode.FIRST:1,capturePerformanceCounters:!1,compileMaterials:!1,compileShadowGenerators:!1,coordinateSystemMode:void 0!==Xr.GLTFLoaderCoordinateSystemMode?Xr.GLTFLoaderCoordinateSystemMode.AUTO:0,loggingEnabled:!1,transparencyAsCoverage:!1,useClipPlane:!1,validate:!0},this.glTFLoaderExtensions={},this.blockMutationUpdates=!1,this.selectedLineContainerTitles=[],this.selectedLineContainerTitlesNoFocus=[],this.recorder=new Ra,this._onlyUseEulers=null,this._ignoreBackfacesForPicking=null,this.lightGizmos=[],this.cameraGizmos=[]}return Object.defineProperty(e.prototype,"onlyUseEulers",{get:function(){return null===this._onlyUseEulers&&(this._onlyUseEulers=u.DataStorage.ReadBoolean("settings_onlyUseEulers",!0)),this._onlyUseEulers},set:function(e){this._onlyUseEulers=e,u.DataStorage.WriteBoolean("settings_onlyUseEulers",e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ignoreBackfacesForPicking",{get:function(){return null===this._ignoreBackfacesForPicking&&(this._ignoreBackfacesForPicking=u.DataStorage.ReadBoolean("settings_ignoreBackfacesForPicking",!1)),this._ignoreBackfacesForPicking},set:function(e){this._ignoreBackfacesForPicking=e,u.DataStorage.WriteBoolean("settings_ignoreBackfacesForPicking",e)},enumerable:!1,configurable:!0}),e.prototype.init=function(e){var t=this;this.onPropertyChangedObservable=e,this.onNewSceneObservable.add((function(e){t.recorder.cancel()}))},e.prototype.prepareGLTFPlugin=function(e){var t=this;this.glTFLoaderExtensions={};var r=this.glTFLoaderDefaults;if(void 0!==r)for(var n in r)e[n]=r[n];e.onExtensionLoadedObservable.add((function(e){var r=t.glTFLoaderExtensionDefaults[e.name];if(void 0!==r)for(var n in r)e[n]=r[n];t.glTFLoaderExtensions[e.name]=e})),e.onValidatedObservable.add((function(e){t.validationResults=e,t.onValidationResultsUpdatedObservable.notifyObservers(e),(e.issues.numErrors||e.issues.numWarnings)&&(t.selectedLineContainerTitlesNoFocus.push("GLTF VALIDATION"),t.onTabChangedObservable.notifyObservers(3))}))},e.prototype.resetGLTFValidationResults=function(){this.validationResults&&(this.validationResults=null,this.onValidationResultsUpdatedObservable.notifyObservers(null))},e.prototype.enableLightGizmo=function(e,t){void 0===t&&(t=!0),t?(e.reservedDataStore||(e.reservedDataStore={}),e.reservedDataStore.lightGizmo||(e.reservedDataStore.lightGizmo=new u.LightGizmo,this.lightGizmos.push(e.reservedDataStore.lightGizmo),e.reservedDataStore.lightGizmo.light=e,e.reservedDataStore.lightGizmo.material.reservedDataStore={hidden:!0})):e.reservedDataStore&&e.reservedDataStore.lightGizmo&&(this.lightGizmos.splice(this.lightGizmos.indexOf(e.reservedDataStore.lightGizmo),1),e.reservedDataStore.lightGizmo.dispose(),e.reservedDataStore.lightGizmo=null)},e.prototype.enableCameraGizmo=function(e,t){void 0===t&&(t=!0),t?(e.reservedDataStore||(e.reservedDataStore={}),e.reservedDataStore.cameraGizmo||(e.reservedDataStore.cameraGizmo=new u.CameraGizmo,this.cameraGizmos.push(e.reservedDataStore.cameraGizmo),e.reservedDataStore.cameraGizmo.camera=e,e.reservedDataStore.cameraGizmo.material.reservedDataStore={hidden:!0})):e.reservedDataStore&&e.reservedDataStore.cameraGizmo&&(this.cameraGizmos.splice(this.cameraGizmos.indexOf(e.reservedDataStore.cameraGizmo),1),e.reservedDataStore.cameraGizmo.dispose(),e.reservedDataStore.cameraGizmo=null)},e}(),Aa=function(){function e(){}return e.MarkLineContainerTitleForHighlighting=function(e){this._GlobalState.selectedLineContainerTitles=[],this._GlobalState.selectedLineContainerTitles.push(e)},e.MarkMultipleLineContainerTitlesForHighlighting=function(e){var t;this._GlobalState.selectedLineContainerTitles=[],(t=this._GlobalState.selectedLineContainerTitles).push.apply(t,e)},e._CopyStyles=function(e,t){for(var r=0;r<e.styleSheets.length;r++){var n=e.styleSheets[r];try{if(n.cssRules){for(var a=e.createElement("style"),o=0,i=n.cssRules;o<i.length;o++){var l=i[o];a.appendChild(e.createTextNode(l.cssText))}t.head.appendChild(a)}else if(n.href){var s=e.createElement("link");s.rel="stylesheet",s.href=n.href,t.head.appendChild(s)}}catch(e){}}},e._CreateSceneExplorer=function(t,r,n){var a=this;if(r.original&&(r={original:!1,popup:r.popup,overlay:r.overlay,showExplorer:r.showExplorer,showInspector:r.showInspector,embedMode:r.embedMode,handleResize:r.handleResize,enablePopup:r.enablePopup,enableClose:r.enableClose,explorerExtensibility:r.explorerExtensibility}),n&&(this._SceneExplorerHost=n.ownerDocument.createElement("div"),this._SceneExplorerHost.id="scene-explorer-host",this._SceneExplorerHost.style.width=r.explorerWidth||"auto",r.popup?n.appendChild(this._SceneExplorerHost):n.insertBefore(this._SceneExplorerHost,this._NewCanvasContainer),r.overlay||(this._SceneExplorerHost.style.position="relative")),this._SceneExplorerHost){this._OpenedPane++;var o=s.createElement(_a,{scene:t,globalState:this._GlobalState,extensibilityGroups:r.explorerExtensibility,noClose:!r.enableClose,noExpand:!r.enablePopup,popupMode:r.popup,onPopup:function(){c.unmountComponentAtNode(a._SceneExplorerHost),a._RemoveElementFromDOM(a._SceneExplorerHost),r.popup&&a._SceneExplorerWindow.close(),r.popup=!r.popup,r.showExplorer=!0,r.showInspector=!1,r.explorerWidth=r.popup?"100%":"300px",e.Show(t,r)},onClose:function(){c.unmountComponentAtNode(a._SceneExplorerHost),e._OpenedPane--,a._RemoveElementFromDOM(a._SceneExplorerHost),a._Cleanup(),r.popup&&a._SceneExplorerWindow.close()}});c.render(o,this._SceneExplorerHost)}},e._CreateActionTabs=function(t,r,n){var a=this;if(r.original=!1,n){var o=n.ownerDocument.createElement("div");o.id="inspector-host",o.style.width=r.inspectorWidth||"auto",n.appendChild(o),this._ActionTabsHost=o,r.overlay||(this._ActionTabsHost.style.position="relative")}if(this._ActionTabsHost){this._OpenedPane++;var i=s.createElement(nn,{globalState:this._GlobalState,scene:t,noClose:!r.enableClose,noExpand:!r.enablePopup,popupMode:r.popup,onPopup:function(){c.unmountComponentAtNode(a._ActionTabsHost),a._RemoveElementFromDOM(a._ActionTabsHost),r.popup&&a._ActionTabsWindow.close(),r.popup=!r.popup,r.showExplorer=!1,r.showInspector=!0,r.inspectorWidth=r.popup?"100%":"300px",e.Show(t,r)},onClose:function(){c.unmountComponentAtNode(a._ActionTabsHost),e._OpenedPane--,a._Cleanup(),a._RemoveElementFromDOM(a._ActionTabsHost),r.popup&&a._ActionTabsWindow.close()},initialTab:r.initialTab});c.render(i,this._ActionTabsHost)}},e._CreateEmbedHost=function(t,r,n,a){var o=this;if(n){var i=n.ownerDocument.createElement("div");i.id="embed-host",i.style.width=r.embedHostWidth||"auto",n.appendChild(i),this._EmbedHost=i,r.overlay||(this._EmbedHost.style.position="relative")}if(this._EmbedHost){this._OpenedPane++;var l=s.createElement(La,{globalState:this._GlobalState,scene:t,extensibilityGroups:r.explorerExtensibility,noExpand:!r.enablePopup,noClose:!r.enableClose,popupMode:r.popup,onPopup:function(){c.unmountComponentAtNode(o._EmbedHost),r.popup&&o._EmbedHostWindow.close(),o._RemoveElementFromDOM(o._EmbedHost),r.popup=!r.popup,r.embedMode=!0,r.showExplorer=!0,r.showInspector=!0,r.embedHostWidth=r.popup?"100%":"auto",e.Show(t,r)},onClose:function(){c.unmountComponentAtNode(o._EmbedHost),o._OpenedPane=0,o._Cleanup(),o._RemoveElementFromDOM(o._EmbedHost),r.popup&&o._EmbedHostWindow.close()},initialTab:r.initialTab});c.render(l,this._EmbedHost)}},e._CreatePopup=function(e,t,r,n,a){var o=this;void 0===r&&(r=300),void 0===n&&(n=800);var i={width:r,height:n,top:(window.innerHeight-r)/2+window.screenY,left:(window.innerWidth-n)/2+window.screenX},l=Object.keys(i).map((function(e){return e+"="+i[e]})).join(","),s=window.open("",e,l);if(!s)return null;var p=s.document,c=p.createElement("link");c.rel="stylesheet",c.href="https://use.typekit.net/cta4xsb.css",p.head.appendChild(c),p.title=e,p.body.style.width="100%",p.body.style.height="100%",p.body.style.margin="0",p.body.style.padding="0";var u=p.createElement("div");return u.style.width="100%",u.style.height="100%",u.style.margin="0",u.style.padding="0",s.document.body.appendChild(u),this._CopyStyles(window.document,p),a&&setTimeout((function(){o._CopyStyles(window.document,p)}),0),this[t]=s,u},Object.defineProperty(e,"IsVisible",{get:function(){return this._OpenedPane>0},enumerable:!1,configurable:!0}),e.EarlyAttachToLoader=function(){var e=this;this._GlobalState.onPluginActivatedObserver||(this._GlobalState.onPluginActivatedObserver=u.SceneLoader.OnPluginActivatedObservable.add((function(t){e._GlobalState.resetGLTFValidationResults();var r=t;"gltf"===r.name&&e._GlobalState.prepareGLTFPlugin(r)})))},e.Show=function(t,r){var n=o({original:!0,popup:!1,overlay:!1,showExplorer:!0,showInspector:!0,embedMode:!1,enableClose:!0,handleResize:!0,enablePopup:!0},r);this._GlobalState.onPropertyChangedObservable||this._GlobalState.init(this.OnPropertyChangedObservable),this._GlobalState.onSelectionChangedObservable||(this._GlobalState.onSelectionChangedObservable=this.OnSelectionChangeObservable),this.IsVisible&&n.original&&this.Hide(),t||(t=u.EngineStore.LastCreatedScene),this._Scene=t;var a=t?t.getEngine().getInputElement():u.EngineStore.LastCreatedEngine.getInputElement();if(n.embedMode&&n.showExplorer&&n.showInspector)if(n.popup)this._CreateEmbedHost(t,n,this._CreatePopup("INSPECTOR","_EmbedHostWindow"),e.OnSelectionChangeObservable);else{if(!a)return;var i=n.globalRoot?n.globalRoot:a.parentElement;n.overlay||this._NewCanvasContainer?!n.overlay&&this._NewCanvasContainer&&this._NewCanvasContainer.parentElement&&(i=this._NewCanvasContainer.parentElement):this._CreateCanvasContainer(i),this._NewCanvasContainer&&n.handleResize&&t&&(this._OnBeforeRenderObserver=t.onBeforeRenderObservable.add((function(){t.getEngine().resize()}))),this._CreateEmbedHost(t,n,i,e.OnSelectionChangeObservable)}else if(n.popup)n.showExplorer&&(this._SceneExplorerHost&&(this._SceneExplorerHost.style.width="0"),this._CreateSceneExplorer(t,n,this._CreatePopup("SCENE EXPLORER","_SceneExplorerWindow"))),n.showInspector&&(this._ActionTabsHost&&(this._ActionTabsHost.style.width="0"),this._CreateActionTabs(t,n,this._CreatePopup("INSPECTOR","_ActionTabsWindow")));else{i=n.globalRoot?n.globalRoot:a.parentElement;n.overlay||this._NewCanvasContainer?!n.overlay&&this._NewCanvasContainer&&this._NewCanvasContainer.parentElement&&(i=this._NewCanvasContainer.parentElement):this._CreateCanvasContainer(i),this._NewCanvasContainer&&n.handleResize&&t&&(this._OnBeforeRenderObserver=t.onBeforeRenderObservable.add((function(){t.getEngine().resize()}))),n.showExplorer&&this._CreateSceneExplorer(t,n,i),n.showInspector&&this._CreateActionTabs(t,n,i)}},e._SetNewScene=function(e){this._Scene=e,this._GlobalState.onNewSceneObservable.notifyObservers(e)},e._CreateCanvasContainer=function(e){for(this._NewCanvasContainer=e.ownerDocument.createElement("div"),this._NewCanvasContainer.style.display=e.style.display,e.style.display="flex";e.childElementCount>0;){var t=e.childNodes[0];e.removeChild(t),this._NewCanvasContainer.appendChild(t)}e.appendChild(this._NewCanvasContainer),this._NewCanvasContainer.style.width="100%",this._NewCanvasContainer.style.height="100%"},e._DestroyCanvasContainer=function(){if(this._NewCanvasContainer){for(var e=this._NewCanvasContainer.parentElement;this._NewCanvasContainer.childElementCount>0;){var t=this._NewCanvasContainer.childNodes[0];this._NewCanvasContainer.removeChild(t),e.appendChild(t)}e.removeChild(this._NewCanvasContainer),e.style.display=this._NewCanvasContainer.style.display,this._NewCanvasContainer=null}},e._Cleanup=function(){var t=this;0===e._OpenedPane&&(this._GlobalState.lightGizmos.forEach((function(e){e.light&&t._GlobalState.enableLightGizmo(e.light,!1)})),this._GlobalState.cameraGizmos.forEach((function(e){e.camera&&t._GlobalState.enableCameraGizmo(e.camera,!1)})),this._Scene&&this._Scene.reservedDataStore&&this._Scene.reservedDataStore.gizmoManager&&(this._Scene.reservedDataStore.gizmoManager.dispose(),this._Scene.reservedDataStore.gizmoManager=null),this._NewCanvasContainer&&this._DestroyCanvasContainer(),this._OnBeforeRenderObserver&&this._Scene&&(this._Scene.onBeforeRenderObservable.remove(this._OnBeforeRenderObserver),this._OnBeforeRenderObserver=null,this._Scene.getEngine().resize()),this._GlobalState.onInspectorClosedObservable.notifyObservers(this._Scene))},e._RemoveElementFromDOM=function(e){e&&e.parentElement&&e.parentElement.removeChild(e)},e.Hide=function(){this._ActionTabsHost&&(c.unmountComponentAtNode(this._ActionTabsHost),this._RemoveElementFromDOM(this._ActionTabsHost),this._ActionTabsHost=null),this._SceneExplorerHost&&(c.unmountComponentAtNode(this._SceneExplorerHost),this._SceneExplorerHost.parentElement&&this._SceneExplorerHost.parentElement.removeChild(this._SceneExplorerHost),this._SceneExplorerHost=null),this._EmbedHost&&(c.unmountComponentAtNode(this._EmbedHost),this._EmbedHost.parentElement&&this._EmbedHost.parentElement.removeChild(this._EmbedHost),this._EmbedHost=null),e._OpenedPane=0,this._Cleanup(),this._GlobalState.onPluginActivatedObserver||(u.SceneLoader.OnPluginActivatedObservable.remove(this._GlobalState.onPluginActivatedObserver),this._GlobalState.onPluginActivatedObserver=null)},e._OpenedPane=0,e.OnSelectionChangeObservable=new u.Observable,e.OnPropertyChangedObservable=new u.Observable,e._GlobalState=new Da,e}();Aa.EarlyAttachToLoader()},function(e,t,r){"use strict";(function(e,n){
  /*!
   * Font Awesome Free 5.15.0 by @fontawesome - https://fontawesome.com
   * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
   */
  function a(e){return(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})(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){i(e,t,r[t])}))}return e}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(n=(i=l.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){a=!0,o=e}finally{try{n||null==l.return||l.return()}finally{if(a)throw o}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}r.d(t,"a",(function(){return xe})),r.d(t,"b",(function(){return Se}));var p=function(){},c={},u={},d={mark:p,measure:p};try{"undefined"!=typeof window&&(c=window),"undefined"!=typeof document&&(u=document),"undefined"!=typeof MutationObserver&&MutationObserver,"undefined"!=typeof performance&&(d=performance)}catch(e){}var h=(c.navigator||{}).userAgent,b=void 0===h?"":h,m=c,g=u,f=d,v=(m.document,!!g.documentElement&&!!g.head&&"function"==typeof g.addEventListener&&"function"==typeof g.createElement),y=(~b.indexOf("MSIE")||b.indexOf("Trident/"),function(){try{}catch(e){return!1}}(),[1,2,3,4,5,6,7,8,9,10]),C=y.concat([11,12,13,14,15,16,17,18,19,20]),E={GROUP:"group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},O=(["xs","sm","lg","fw","ul","li","border","pull-left","pull-right","spin","pulse","rotate-90","rotate-180","rotate-270","flip-horizontal","flip-vertical","flip-both","stack","stack-1x","stack-2x","inverse","layers","layers-text","layers-counter",E.GROUP,E.SWAP_OPACITY,E.PRIMARY,E.SECONDARY].concat(y.map((function(e){return"".concat(e,"x")}))).concat(C.map((function(e){return"w-".concat(e)}))),m.FontAwesomeConfig||{});if(g&&"function"==typeof g.querySelector){[["data-family-prefix","familyPrefix"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach((function(e){var t=s(e,2),r=t[0],n=t[1],a=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=g.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(r));null!=a&&(O[n]=a)}))}var S=l({},{familyPrefix:"fa",replacementClass:"svg-inline--fa",autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0},O);S.autoReplaceSvg||(S.observeMutations=!1);var x=l({},S);m.FontAwesomeConfig=x;var P=m||{};P.___FONT_AWESOME___||(P.___FONT_AWESOME___={}),P.___FONT_AWESOME___.styles||(P.___FONT_AWESOME___.styles={}),P.___FONT_AWESOME___.hooks||(P.___FONT_AWESOME___.hooks={}),P.___FONT_AWESOME___.shims||(P.___FONT_AWESOME___.shims=[]);var w=P.___FONT_AWESOME___,k=[];v&&((g.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(g.readyState)||g.addEventListener("DOMContentLoaded",(function e(){g.removeEventListener("DOMContentLoaded",e),1,k.map((function(e){return e()}))})));var N,T=function(){},_=void 0!==e&&void 0!==e.process&&"function"==typeof e.process.emit,M=void 0===n?setTimeout:n,L=[];function R(){for(var e=0;e<L.length;e++)L[e][0](L[e][1]);L=[],N=!1}function D(e,t){L.push([e,t]),N||(N=!0,M(R,0))}function A(e){var t=e.owner,r=t._state,n=t._data,a=e[r],o=e.then;if("function"==typeof a){r="fulfilled";try{n=a(n)}catch(e){G(o,e)}}I(o,n)||("fulfilled"===r&&j(o,n),"rejected"===r&&G(o,n))}function I(e,t){var r;try{if(e===t)throw new TypeError("A promises callback cannot return that same promise.");if(t&&("function"==typeof t||"object"===a(t))){var n=t.then;if("function"==typeof n)return n.call(t,(function(n){r||(r=!0,t===n?z(e,n):j(e,n))}),(function(t){r||(r=!0,G(e,t))})),!0}}catch(t){return r||G(e,t),!0}return!1}function j(e,t){e!==t&&I(e,t)||z(e,t)}function z(e,t){"pending"===e._state&&(e._state="settled",e._data=t,D(V,e))}function G(e,t){"pending"===e._state&&(e._state="settled",e._data=t,D(U,e))}function F(e){e._then=e._then.forEach(A)}function V(e){e._state="fulfilled",F(e)}function U(t){t._state="rejected",F(t),!t._handled&&_&&e.process.emit("unhandledRejection",t._data,t)}function H(t){e.process.emit("rejectionHandled",t)}function B(e){if("function"!=typeof e)throw new TypeError("Promise resolver "+e+" is not a function");if(this instanceof B==!1)throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this._then=[],function(e,t){function r(e){G(t,e)}try{e((function(e){j(t,e)}),r)}catch(e){r(e)}}(e,this)}B.prototype={constructor:B,_state:"pending",_then:null,_data:void 0,_handled:!1,then:function(e,t){var r={owner:this,then:new this.constructor(T),fulfilled:e,rejected:t};return!t&&!e||this._handled||(this._handled=!0,"rejected"===this._state&&_&&D(H,this)),"fulfilled"===this._state||"rejected"===this._state?D(A,r):this._then.push(r),r.then},catch:function(e){return this.then(null,e)}},B.all=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.all().");return new B((function(t,r){var n=[],a=0;function o(e){return a++,function(r){n[e]=r,--a||t(n)}}for(var i,l=0;l<e.length;l++)(i=e[l])&&"function"==typeof i.then?i.then(o(l),r):n[l]=i;a||t(n)}))},B.race=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.race().");return new B((function(t,r){for(var n,a=0;a<e.length;a++)(n=e[a])&&"function"==typeof n.then?n.then(t,r):t(n)}))},B.resolve=function(e){return e&&"object"===a(e)&&e.constructor===B?e:new B((function(t){t(e)}))},B.reject=function(e){return new B((function(t,r){r(e)}))};var W={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Y(e){if(e&&v){var t=g.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var r=g.head.childNodes,n=null,a=r.length-1;a>-1;a--){var o=r[a],i=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(i)>-1&&(n=o)}return g.head.insertBefore(t,n),e}}function Z(){for(var e=12,t="";e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function K(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function X(e){return Object.keys(e||{}).reduce((function(t,r){return t+"".concat(r,": ").concat(e[r],";")}),"")}function Q(e){return e.size!==W.size||e.x!==W.x||e.y!==W.y||e.rotate!==W.rotate||e.flipX||e.flipY}function q(e){var t=e.transform,r=e.containerWidth,n=e.iconWidth,a={transform:"translate(".concat(r/2," 256)")},o="translate(".concat(32*t.x,", ").concat(32*t.y,") "),i="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),l="rotate(".concat(t.rotate," 0 0)");return{outer:a,inner:{transform:"".concat(o," ").concat(i," ").concat(l)},path:{transform:"translate(".concat(n/2*-1," -256)")}}}var $={x:0,y:0,width:"100%",height:"100%"};function J(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function ee(e){var t=e.icons,r=t.main,n=t.mask,a=e.prefix,o=e.iconName,i=e.transform,s=e.symbol,p=e.title,c=e.maskId,u=e.titleId,d=e.extra,h=e.watchable,b=void 0!==h&&h,m=n.found?n:r,g=m.width,f=m.height,v="fak"===a,y=v?"":"fa-w-".concat(Math.ceil(g/f*16)),C=[x.replacementClass,o?"".concat(x.familyPrefix,"-").concat(o):"",y].filter((function(e){return-1===d.classes.indexOf(e)})).filter((function(e){return""!==e||!!e})).concat(d.classes).join(" "),E={children:[],attributes:l({},d.attributes,{"data-prefix":a,"data-icon":o,class:C,role:d.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(g," ").concat(f)})},O=v&&!~d.classes.indexOf("fa-fw")?{width:"".concat(g/f*16*.0625,"em")}:{};b&&(E.attributes["data-fa-i2svg"]=""),p&&E.children.push({tag:"title",attributes:{id:E.attributes["aria-labelledby"]||"title-".concat(u||Z())},children:[p]});var S=l({},E,{prefix:a,iconName:o,main:r,mask:n,maskId:c,transform:i,symbol:s,styles:l({},O,d.styles)}),P=n.found&&r.found?function(e){var t,r=e.children,n=e.attributes,a=e.main,o=e.mask,i=e.maskId,s=e.transform,p=a.width,c=a.icon,u=o.width,d=o.icon,h=q({transform:s,containerWidth:u,iconWidth:p}),b={tag:"rect",attributes:l({},$,{fill:"white"})},m=c.children?{children:c.children.map(J)}:{},g={tag:"g",attributes:l({},h.inner),children:[J(l({tag:c.tag,attributes:l({},c.attributes,h.path)},m))]},f={tag:"g",attributes:l({},h.outer),children:[g]},v="mask-".concat(i||Z()),y="clip-".concat(i||Z()),C={tag:"mask",attributes:l({},$,{id:v,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[b,f]},E={tag:"defs",children:[{tag:"clipPath",attributes:{id:y},children:(t=d,"g"===t.tag?t.children:[t])},C]};return r.push(E,{tag:"rect",attributes:l({fill:"currentColor","clip-path":"url(#".concat(y,")"),mask:"url(#".concat(v,")")},$)}),{children:r,attributes:n}}(S):function(e){var t=e.children,r=e.attributes,n=e.main,a=e.transform,o=X(e.styles);if(o.length>0&&(r.style=o),Q(a)){var i=q({transform:a,containerWidth:n.width,iconWidth:n.width});t.push({tag:"g",attributes:l({},i.outer),children:[{tag:"g",attributes:l({},i.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:l({},n.icon.attributes,i.path)}]}]})}else t.push(n.icon);return{children:t,attributes:r}}(S),w=P.children,k=P.attributes;return S.children=w,S.attributes=k,s?function(e){var t=e.prefix,r=e.iconName,n=e.children,a=e.attributes,o=e.symbol;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:l({},a,{id:!0===o?"".concat(t,"-").concat(x.familyPrefix,"-").concat(r):o}),children:n}]}]}(S):function(e){var t=e.children,r=e.main,n=e.mask,a=e.attributes,o=e.styles,i=e.transform;if(Q(i)&&r.found&&!n.found){var s={x:r.width/r.height/2,y:.5};a.style=X(l({},o,{"transform-origin":"".concat(s.x+i.x/16,"em ").concat(s.y+i.y/16,"em")}))}return[{tag:"svg",attributes:a,children:t}]}(S)}var te=function(){},re=(x.measurePerformance&&f&&f.mark&&f.measure,function(e,t,r,n){var a,o,i,l=Object.keys(e),s=l.length,p=void 0!==n?function(e,t){return function(r,n,a,o){return e.call(t,r,n,a,o)}}(t,n):t;for(void 0===r?(a=1,i=e[l[0]]):(a=0,i=r);a<s;a++)i=p(i,e[o=l[a]],o,e);return i});function ne(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.skipHooks,a=void 0!==n&&n,o=Object.keys(t).reduce((function(e,r){var n=t[r];return!!n.icon?e[n.iconName]=n.icon:e[r]=n,e}),{});"function"!=typeof w.hooks.addPack||a?w.styles[e]=l({},w.styles[e]||{},o):w.hooks.addPack(e,o),"fas"===e&&ne("fa",t)}var ae=w.styles,oe=w.shims,ie=function(){var e=function(e){return re(ae,(function(t,r,n){return t[n]=re(r,e,{}),t}),{})};e((function(e,t,r){return t[3]&&(e[t[3]]=r),e})),e((function(e,t,r){var n=t[2];return e[r]=r,n.forEach((function(t){e[t]=r})),e}));var t="far"in ae;re(oe,(function(e,r){var n=r[0],a=r[1],o=r[2];return"far"!==a||t||(a="fas"),e[n]={prefix:a,iconName:o},e}),{})};ie();w.styles;function le(e,t,r){if(e&&e[t]&&e[t][r])return{prefix:t,iconName:r,icon:e[t][r]}}function se(e){var t=e.tag,r=e.attributes,n=void 0===r?{}:r,a=e.children,o=void 0===a?[]:a;return"string"==typeof e?K(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce((function(t,r){return t+"".concat(r,'="').concat(K(e[r]),'" ')}),"").trim()}(n),">").concat(o.map(se).join(""),"</").concat(t,">")}var pe=function(e){var t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e?e.toLowerCase().split(" ").reduce((function(e,t){var r=t.toLowerCase().split("-"),n=r[0],a=r.slice(1).join("-");if(n&&"h"===a)return e.flipX=!0,e;if(n&&"v"===a)return e.flipY=!0,e;if(a=parseFloat(a),isNaN(a))return e;switch(n){case"grow":e.size=e.size+a;break;case"shrink":e.size=e.size-a;break;case"left":e.x=e.x-a;break;case"right":e.x=e.x+a;break;case"up":e.y=e.y-a;break;case"down":e.y=e.y+a;break;case"rotate":e.rotate=e.rotate+a}return e}),t):t};function ce(e){this.name="MissingIcon",this.message=e||"Icon unavailable",this.stack=(new Error).stack}ce.prototype=Object.create(Error.prototype),ce.prototype.constructor=ce;var ue={fill:"currentColor"},de={attributeType:"XML",repeatCount:"indefinite",dur:"2s"},he={tag:"path",attributes:l({},ue,{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})},be=l({},de,{attributeName:"opacity"});l({},ue,{cx:"256",cy:"364",r:"28"}),l({},de,{attributeName:"r",values:"28;14;28;28;14;28;"}),l({},be,{values:"1;0;1;1;0;1;"}),l({},ue,{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),l({},be,{values:"1;0;0;0;0;1;"}),l({},ue,{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),l({},be,{values:"0;0;1;1;0;0;"}),w.styles;function me(e){var t=e[0],r=e[1],n=s(e.slice(4),1)[0];return{found:!0,width:t,height:r,icon:Array.isArray(n)?{tag:"g",attributes:{class:"".concat(x.familyPrefix,"-").concat(E.GROUP)},children:[{tag:"path",attributes:{class:"".concat(x.familyPrefix,"-").concat(E.SECONDARY),fill:"currentColor",d:n[0]}},{tag:"path",attributes:{class:"".concat(x.familyPrefix,"-").concat(E.PRIMARY),fill:"currentColor",d:n[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:n}}}}w.styles;function ge(){var e="svg-inline--fa",t=x.familyPrefix,r=x.replacementClass,n='svg:not(:root).svg-inline--fa {\n  overflow: visible;\n}\n\n.svg-inline--fa {\n  display: inline-block;\n  font-size: inherit;\n  height: 1em;\n  overflow: visible;\n  vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n  vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n  width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n  width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n  width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n  width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n  width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n  width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n  width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n  width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n  width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n  width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n  width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n  width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n  width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n  width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n  width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n  width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n  width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n  width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n  width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n  width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n  margin-right: 0.3em;\n  width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n  margin-left: 0.3em;\n  width: auto;\n}\n.svg-inline--fa.fa-border {\n  height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n  width: 2em;\n}\n.svg-inline--fa.fa-fw {\n  width: 1.25em;\n}\n\n.fa-layers svg.svg-inline--fa {\n  bottom: 0;\n  left: 0;\n  margin: auto;\n  position: absolute;\n  right: 0;\n  top: 0;\n}\n\n.fa-layers {\n  display: inline-block;\n  height: 1em;\n  position: relative;\n  text-align: center;\n  vertical-align: -0.125em;\n  width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n  -webkit-transform-origin: center center;\n          transform-origin: center center;\n}\n\n.fa-layers-counter, .fa-layers-text {\n  display: inline-block;\n  position: absolute;\n  text-align: center;\n}\n\n.fa-layers-text {\n  left: 50%;\n  top: 50%;\n  -webkit-transform: translate(-50%, -50%);\n          transform: translate(-50%, -50%);\n  -webkit-transform-origin: center center;\n          transform-origin: center center;\n}\n\n.fa-layers-counter {\n  background-color: #ff253a;\n  border-radius: 1em;\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n  color: #fff;\n  height: 1.5em;\n  line-height: 1;\n  max-width: 5em;\n  min-width: 1.5em;\n  overflow: hidden;\n  padding: 0.25em;\n  right: 0;\n  text-overflow: ellipsis;\n  top: 0;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: top right;\n          transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n  bottom: 0;\n  right: 0;\n  top: auto;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: bottom right;\n          transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n  bottom: 0;\n  left: 0;\n  right: auto;\n  top: auto;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: bottom left;\n          transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n  right: 0;\n  top: 0;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: top right;\n          transform-origin: top right;\n}\n\n.fa-layers-top-left {\n  left: 0;\n  right: auto;\n  top: 0;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: top left;\n          transform-origin: top left;\n}\n\n.fa-lg {\n  font-size: 1.3333333333em;\n  line-height: 0.75em;\n  vertical-align: -0.0667em;\n}\n\n.fa-xs {\n  font-size: 0.75em;\n}\n\n.fa-sm {\n  font-size: 0.875em;\n}\n\n.fa-1x {\n  font-size: 1em;\n}\n\n.fa-2x {\n  font-size: 2em;\n}\n\n.fa-3x {\n  font-size: 3em;\n}\n\n.fa-4x {\n  font-size: 4em;\n}\n\n.fa-5x {\n  font-size: 5em;\n}\n\n.fa-6x {\n  font-size: 6em;\n}\n\n.fa-7x {\n  font-size: 7em;\n}\n\n.fa-8x {\n  font-size: 8em;\n}\n\n.fa-9x {\n  font-size: 9em;\n}\n\n.fa-10x {\n  font-size: 10em;\n}\n\n.fa-fw {\n  text-align: center;\n  width: 1.25em;\n}\n\n.fa-ul {\n  list-style-type: none;\n  margin-left: 2.5em;\n  padding-left: 0;\n}\n.fa-ul > li {\n  position: relative;\n}\n\n.fa-li {\n  left: -2em;\n  position: absolute;\n  text-align: center;\n  width: 2em;\n  line-height: inherit;\n}\n\n.fa-border {\n  border: solid 0.08em #eee;\n  border-radius: 0.1em;\n  padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n  float: left;\n}\n\n.fa-pull-right {\n  float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n  margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n  margin-left: 0.3em;\n}\n\n.fa-spin {\n  -webkit-animation: fa-spin 2s infinite linear;\n          animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n  -webkit-animation: fa-spin 1s infinite steps(8);\n          animation: fa-spin 1s infinite steps(8);\n}\n\n@-webkit-keyframes fa-spin {\n  0% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg);\n  }\n  100% {\n    -webkit-transform: rotate(360deg);\n            transform: rotate(360deg);\n  }\n}\n\n@keyframes fa-spin {\n  0% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg);\n  }\n  100% {\n    -webkit-transform: rotate(360deg);\n            transform: rotate(360deg);\n  }\n}\n.fa-rotate-90 {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";\n  -webkit-transform: rotate(90deg);\n          transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";\n  -webkit-transform: rotate(180deg);\n          transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";\n  -webkit-transform: rotate(270deg);\n          transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";\n  -webkit-transform: scale(-1, 1);\n          transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n  -webkit-transform: scale(1, -1);\n          transform: scale(1, -1);\n}\n\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n  -webkit-transform: scale(-1, -1);\n          transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical,\n:root .fa-flip-both {\n  -webkit-filter: none;\n          filter: none;\n}\n\n.fa-stack {\n  display: inline-block;\n  height: 2em;\n  position: relative;\n  width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n  bottom: 0;\n  left: 0;\n  margin: auto;\n  position: absolute;\n  right: 0;\n  top: 0;\n}\n\n.svg-inline--fa.fa-stack-1x {\n  height: 1em;\n  width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n  height: 2em;\n  width: 2.5em;\n}\n\n.fa-inverse {\n  color: #fff;\n}\n\n.sr-only {\n  border: 0;\n  clip: rect(0, 0, 0, 0);\n  height: 1px;\n  margin: -1px;\n  overflow: hidden;\n  padding: 0;\n  position: absolute;\n  width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n  clip: auto;\n  height: auto;\n  margin: 0;\n  overflow: visible;\n  position: static;\n  width: auto;\n}\n\n.svg-inline--fa .fa-primary {\n  fill: var(--fa-primary-color, currentColor);\n  opacity: 1;\n  opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n  fill: var(--fa-secondary-color, currentColor);\n  opacity: 0.4;\n  opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n  opacity: 0.4;\n  opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n  opacity: 1;\n  opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n  fill: black;\n}\n\n.fad.fa-inverse {\n  color: #fff;\n}';if("fa"!==t||r!==e){var a=new RegExp("\\.".concat("fa","\\-"),"g"),o=new RegExp("\\--".concat("fa","\\-"),"g"),i=new RegExp("\\.".concat(e),"g");n=n.replace(a,".".concat(t,"-")).replace(o,"--".concat(t,"-")).replace(i,".".concat(r))}return n}function fe(){x.autoAddCss&&!Oe&&(Y(ge()),Oe=!0)}function ve(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((function(e){return se(e)}))}}),Object.defineProperty(e,"node",{get:function(){if(v){var t=g.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function ye(e){var t=e.prefix,r=void 0===t?"fa":t,n=e.iconName;if(n)return le(Ee.definitions,r,n)||le(w.styles,r,n)}var Ce,Ee=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.definitions={}}var t,r,n;return t=e,(r=[{key:"add",value:function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var a=r.reduce(this._pullDefinitions,{});Object.keys(a).forEach((function(t){e.definitions[t]=l({},e.definitions[t]||{},a[t]),ne(t,a[t]),ie()}))}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(e,t){var r=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(r).map((function(t){var n=r[t],a=n.prefix,o=n.iconName,i=n.icon;e[a]||(e[a]={}),e[a][o]=i})),e}}])&&o(t.prototype,r),n&&o(t,n),e}()),Oe=!1,Se={transform:function(e){return pe(e)}},xe=(Ce=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.transform,n=void 0===r?W:r,a=t.symbol,o=void 0!==a&&a,i=t.mask,s=void 0===i?null:i,p=t.maskId,c=void 0===p?null:p,u=t.title,d=void 0===u?null:u,h=t.titleId,b=void 0===h?null:h,m=t.classes,g=void 0===m?[]:m,f=t.attributes,v=void 0===f?{}:f,y=t.styles,C=void 0===y?{}:y;if(e){var E=e.prefix,O=e.iconName,S=e.icon;return ve(l({type:"icon"},e),(function(){return fe(),x.autoA11y&&(d?v["aria-labelledby"]="".concat(x.replacementClass,"-title-").concat(b||Z()):(v["aria-hidden"]="true",v.focusable="false")),ee({icons:{main:me(S),mask:s?me(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:E,iconName:O,transform:l({},W,n),symbol:o,title:d,maskId:c,titleId:b,extra:{attributes:v,styles:C,classes:g}})}))}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(e||{}).icon?e:ye(e||{}),n=t.mask;return n&&(n=(n||{}).icon?n:ye(n||{})),Ce(r,l({},t,{mask:n}))})}).call(this,r(11),r(22).setImmediate)},function(e,t){e.exports="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3Ecopy%3C/title%3E%3Cg id='UI_Elements' data-name='UI Elements'%3E%3Cpath class='cls-1' d='M24,14.89H22.76l-3-3H12.43V26.59h4.26v3h11.5V19Zm.3,1.71,2.14,2.13H24.34Zm-10.91,9V12.93h5.93l2,2H16.69v10.7Zm4.26,3V15.89h5.65v3.84h3.85v8.83Z'/%3E%3C/g%3E%3C/svg%3E"},function(e,t){e.exports=n},function(e,t){e.exports=a},function(e,t,r){"use strict";r.r(t),function(e){var n=r(12);r.d(t,"Inspector",(function(){return n.a}));var a=void 0!==e?e:"undefined"!=typeof window?window:void 0;void 0!==a&&(a.BABYLON=a.BABYLON||{},a.BABYLON.Inspector=n.a)}.call(this,r(11))},function(e,t,r){"use strict";
  /** @license React v16.13.1
   * react.production.min.js
   *
   * Copyright (c) Facebook, Inc. and its affiliates.
   *
   * This source code is licensed under the MIT license found in the
   * LICENSE file in the root directory of this source tree.
   */var n=r(4),a="function"==typeof Symbol&&Symbol.for,o=a?Symbol.for("react.element"):60103,i=a?Symbol.for("react.portal"):60106,l=a?Symbol.for("react.fragment"):60107,s=a?Symbol.for("react.strict_mode"):60108,p=a?Symbol.for("react.profiler"):60114,c=a?Symbol.for("react.provider"):60109,u=a?Symbol.for("react.context"):60110,d=a?Symbol.for("react.forward_ref"):60112,h=a?Symbol.for("react.suspense"):60113,b=a?Symbol.for("react.memo"):60115,m=a?Symbol.for("react.lazy"):60116,g="function"==typeof Symbol&&Symbol.iterator;function f(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y={};function C(e,t,r){this.props=e,this.context=t,this.refs=y,this.updater=r||v}function E(){}function O(e,t,r){this.props=e,this.context=t,this.refs=y,this.updater=r||v}C.prototype.isReactComponent={},C.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(f(85));this.updater.enqueueSetState(this,e,t,"setState")},C.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},E.prototype=C.prototype;var S=O.prototype=new E;S.constructor=O,n(S,C.prototype),S.isPureReactComponent=!0;var x={current:null},P=Object.prototype.hasOwnProperty,w={key:!0,ref:!0,__self:!0,__source:!0};function k(e,t,r){var n,a={},i=null,l=null;if(null!=t)for(n in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(i=""+t.key),t)P.call(t,n)&&!w.hasOwnProperty(n)&&(a[n]=t[n]);var s=arguments.length-2;if(1===s)a.children=r;else if(1<s){for(var p=Array(s),c=0;c<s;c++)p[c]=arguments[c+2];a.children=p}if(e&&e.defaultProps)for(n in s=e.defaultProps)void 0===a[n]&&(a[n]=s[n]);return{$$typeof:o,type:e,key:i,ref:l,props:a,_owner:x.current}}function N(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var T=/\/+/g,_=[];function M(e,t,r,n){if(_.length){var a=_.pop();return a.result=e,a.keyPrefix=t,a.func=r,a.context=n,a.count=0,a}return{result:e,keyPrefix:t,func:r,context:n,count:0}}function L(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>_.length&&_.push(e)}function R(e,t,r){return null==e?0:function e(t,r,n,a){var l=typeof t;"undefined"!==l&&"boolean"!==l||(t=null);var s=!1;if(null===t)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case o:case i:s=!0}}if(s)return n(a,t,""===r?"."+D(t,0):r),1;if(s=0,r=""===r?".":r+":",Array.isArray(t))for(var p=0;p<t.length;p++){var c=r+D(l=t[p],p);s+=e(l,c,n,a)}else if(null===t||"object"!=typeof t?c=null:c="function"==typeof(c=g&&t[g]||t["@@iterator"])?c:null,"function"==typeof c)for(t=c.call(t),p=0;!(l=t.next()).done;)s+=e(l=l.value,c=r+D(l,p++),n,a);else if("object"===l)throw n=""+t,Error(f(31,"[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n,""));return s}(e,"",t,r)}function D(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function A(e,t){e.func.call(e.context,t,e.count++)}function I(e,t,r){var n=e.result,a=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?j(e,n,r,(function(e){return e})):null!=e&&(N(e)&&(e=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,a+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(T,"$&/")+"/")+r)),n.push(e))}function j(e,t,r,n,a){var o="";null!=r&&(o=(""+r).replace(T,"$&/")+"/"),R(e,I,t=M(t,o,n,a)),L(t)}var z={current:null};function G(){var e=z.current;if(null===e)throw Error(f(321));return e}var F={ReactCurrentDispatcher:z,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:x,IsSomeRendererActing:{current:!1},assign:n};t.Children={map:function(e,t,r){if(null==e)return e;var n=[];return j(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;R(e,A,t=M(null,null,t,r)),L(t)},count:function(e){return R(e,(function(){return null}),null)},toArray:function(e){var t=[];return j(e,t,null,(function(e){return e})),t},only:function(e){if(!N(e))throw Error(f(143));return e}},t.Component=C,t.Fragment=l,t.Profiler=p,t.PureComponent=O,t.StrictMode=s,t.Suspense=h,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=F,t.cloneElement=function(e,t,r){if(null==e)throw Error(f(267,e));var a=n({},e.props),i=e.key,l=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(l=t.ref,s=x.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var p=e.type.defaultProps;for(c in t)P.call(t,c)&&!w.hasOwnProperty(c)&&(a[c]=void 0===t[c]&&void 0!==p?p[c]:t[c])}var c=arguments.length-2;if(1===c)a.children=r;else if(1<c){p=Array(c);for(var u=0;u<c;u++)p[u]=arguments[u+2];a.children=p}return{$$typeof:o,type:e.type,key:i,ref:l,props:a,_owner:s}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:u,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:c,_context:e},e.Consumer=e},t.createElement=k,t.createFactory=function(e){var t=k.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:d,render:e}},t.isValidElement=N,t.lazy=function(e){return{$$typeof:m,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:b,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return G().useCallback(e,t)},t.useContext=function(e,t){return G().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return G().useEffect(e,t)},t.useImperativeHandle=function(e,t,r){return G().useImperativeHandle(e,t,r)},t.useLayoutEffect=function(e,t){return G().useLayoutEffect(e,t)},t.useMemo=function(e,t){return G().useMemo(e,t)},t.useReducer=function(e,t,r){return G().useReducer(e,t,r)},t.useRef=function(e){return G().useRef(e)},t.useState=function(e){return G().useState(e)},t.version="16.13.1"},function(e,t,r){"use strict";
  /** @license React v16.13.1
   * react-dom.production.min.js
   *
   * Copyright (c) Facebook, Inc. and its affiliates.
   *
   * This source code is licensed under the MIT license found in the
   * LICENSE file in the root directory of this source tree.
   */var n=r(0),a=r(4),o=r(20);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!n)throw Error(i(227));function l(e,t,r,n,a,o,i,l,s){var p=Array.prototype.slice.call(arguments,3);try{t.apply(r,p)}catch(e){this.onError(e)}}var s=!1,p=null,c=!1,u=null,d={onError:function(e){s=!0,p=e}};function h(e,t,r,n,a,o,i,c,u){s=!1,p=null,l.apply(d,arguments)}var b=null,m=null,g=null;function f(e,t,r){var n=e.type||"unknown-event";e.currentTarget=g(r),function(e,t,r,n,a,o,l,d,b){if(h.apply(this,arguments),s){if(!s)throw Error(i(198));var m=p;s=!1,p=null,c||(c=!0,u=m)}}(n,t,void 0,e),e.currentTarget=null}var v=null,y={};function C(){if(v)for(var e in y){var t=y[e],r=v.indexOf(e);if(!(-1<r))throw Error(i(96,e));if(!O[r]){if(!t.extractEvents)throw Error(i(97,e));for(var n in O[r]=t,r=t.eventTypes){var a=void 0,o=r[n],l=t,s=n;if(S.hasOwnProperty(s))throw Error(i(99,s));S[s]=o;var p=o.phasedRegistrationNames;if(p){for(a in p)p.hasOwnProperty(a)&&E(p[a],l,s);a=!0}else o.registrationName?(E(o.registrationName,l,s),a=!0):a=!1;if(!a)throw Error(i(98,n,e))}}}}function E(e,t,r){if(x[e])throw Error(i(100,e));x[e]=t,P[e]=t.eventTypes[r].dependencies}var O=[],S={},x={},P={};function w(e){var t,r=!1;for(t in e)if(e.hasOwnProperty(t)){var n=e[t];if(!y.hasOwnProperty(t)||y[t]!==n){if(y[t])throw Error(i(102,t));y[t]=n,r=!0}}r&&C()}var k=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),N=null,T=null,_=null;function M(e){if(e=m(e)){if("function"!=typeof N)throw Error(i(280));var t=e.stateNode;t&&(t=b(t),N(e.stateNode,e.type,t))}}function L(e){T?_?_.push(e):_=[e]:T=e}function R(){if(T){var e=T,t=_;if(_=T=null,M(e),t)for(e=0;e<t.length;e++)M(t[e])}}function D(e,t){return e(t)}function A(e,t,r,n,a){return e(t,r,n,a)}function I(){}var j=D,z=!1,G=!1;function F(){null===T&&null===_||(I(),R())}function V(e,t,r){if(G)return e(t,r);G=!0;try{return j(e,t,r)}finally{G=!1,F()}}var U=/^[: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][: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\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,H=Object.prototype.hasOwnProperty,B={},W={};function Y(e,t,r,n,a,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=a,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o}var Z={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){Z[e]=new Y(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];Z[t]=new Y(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){Z[e]=new Y(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){Z[e]=new Y(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){Z[e]=new Y(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){Z[e]=new Y(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){Z[e]=new Y(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){Z[e]=new Y(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){Z[e]=new Y(e,5,!1,e.toLowerCase(),null,!1)}));var K=/[\-:]([a-z])/g;function X(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(K,X);Z[t]=new Y(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(K,X);Z[t]=new Y(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(K,X);Z[t]=new Y(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){Z[e]=new Y(e,1,!1,e.toLowerCase(),null,!1)})),Z.xlinkHref=new Y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){Z[e]=new Y(e,1,!1,e.toLowerCase(),null,!0)}));var Q=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function q(e,t,r,n){var a=Z.hasOwnProperty(t)?Z[t]:null;(null!==a?0===a.type:!n&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,r,n){if(null==t||function(e,t,r,n){if(null!==r&&0===r.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==r?!r.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,r,n))return!0;if(n)return!1;if(null!==r)switch(r.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,r,a,n)&&(r=null),n||null===a?function(e){return!!H.call(W,e)||!H.call(B,e)&&(U.test(e)?W[e]=!0:(B[e]=!0,!1))}(t)&&(null===r?e.removeAttribute(t):e.setAttribute(t,""+r)):a.mustUseProperty?e[a.propertyName]=null===r?3!==a.type&&"":r:(t=a.attributeName,n=a.attributeNamespace,null===r?e.removeAttribute(t):(r=3===(a=a.type)||4===a&&!0===r?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}Q.hasOwnProperty("ReactCurrentDispatcher")||(Q.ReactCurrentDispatcher={current:null}),Q.hasOwnProperty("ReactCurrentBatchConfig")||(Q.ReactCurrentBatchConfig={suspense:null});var $=/^(.*)[\\\/]/,J="function"==typeof Symbol&&Symbol.for,ee=J?Symbol.for("react.element"):60103,te=J?Symbol.for("react.portal"):60106,re=J?Symbol.for("react.fragment"):60107,ne=J?Symbol.for("react.strict_mode"):60108,ae=J?Symbol.for("react.profiler"):60114,oe=J?Symbol.for("react.provider"):60109,ie=J?Symbol.for("react.context"):60110,le=J?Symbol.for("react.concurrent_mode"):60111,se=J?Symbol.for("react.forward_ref"):60112,pe=J?Symbol.for("react.suspense"):60113,ce=J?Symbol.for("react.suspense_list"):60120,ue=J?Symbol.for("react.memo"):60115,de=J?Symbol.for("react.lazy"):60116,he=J?Symbol.for("react.block"):60121,be="function"==typeof Symbol&&Symbol.iterator;function me(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=be&&e[be]||e["@@iterator"])?e:null}function ge(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case re:return"Fragment";case te:return"Portal";case ae:return"Profiler";case ne:return"StrictMode";case pe:return"Suspense";case ce:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case ie:return"Context.Consumer";case oe:return"Context.Provider";case se:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case ue:return ge(e.type);case he:return ge(e.render);case de:if(e=1===e._status?e._result:null)return ge(e)}return null}function fe(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var r="";break e;default:var n=e._debugOwner,a=e._debugSource,o=ge(e.type);r=null,n&&(r=ge(n.type)),n=o,o="",a?o=" (at "+a.fileName.replace($,"")+":"+a.lineNumber+")":r&&(o=" (created by "+r+")"),r="\n    in "+(n||"Unknown")+o}t+=r,e=e.return}while(e);return t}function ve(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function ye(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Ce(e){e._valueTracker||(e._valueTracker=function(e){var t=ye(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var a=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){n=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Ee(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=ye(e)?e.checked?"true":"false":e.value),(e=n)!==r&&(t.setValue(e),!0)}function Oe(e,t){var r=t.checked;return a({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:e._wrapperState.initialChecked})}function Se(e,t){var r=null==t.defaultValue?"":t.defaultValue,n=null!=t.checked?t.checked:t.defaultChecked;r=ve(null!=t.value?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function xe(e,t){null!=(t=t.checked)&&q(e,"checked",t,!1)}function Pe(e,t){xe(e,t);var r=ve(t.value),n=t.type;if(null!=r)"number"===n?(0===r&&""===e.value||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if("submit"===n||"reset"===n)return void e.removeAttribute("value");t.hasOwnProperty("value")?ke(e,t.type,r):t.hasOwnProperty("defaultValue")&&ke(e,t.type,ve(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function we(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!("submit"!==n&&"reset"!==n||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}""!==(r=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==r&&(e.name=r)}function ke(e,t,r){"number"===t&&e.ownerDocument.activeElement===e||(null==r?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function Ne(e,t){return e=a({children:void 0},t),(t=function(e){var t="";return n.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function Te(e,t,r,n){if(e=e.options,t){t={};for(var a=0;a<r.length;a++)t["$"+r[a]]=!0;for(r=0;r<e.length;r++)a=t.hasOwnProperty("$"+e[r].value),e[r].selected!==a&&(e[r].selected=a),a&&n&&(e[r].defaultSelected=!0)}else{for(r=""+ve(r),t=null,a=0;a<e.length;a++){if(e[a].value===r)return e[a].selected=!0,void(n&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function _e(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Me(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(i(92));if(Array.isArray(r)){if(!(1>=r.length))throw Error(i(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:ve(r)}}function Le(e,t){var r=ve(t.value),n=ve(t.defaultValue);null!=r&&((r=""+r)!==e.value&&(e.value=r),null==t.defaultValue&&e.defaultValue!==r&&(e.defaultValue=r)),null!=n&&(e.defaultValue=""+n)}function Re(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var De="http://www.w3.org/1999/xhtml",Ae="http://www.w3.org/2000/svg";function Ie(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function je(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Ie(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ze,Ge=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,r,n,a){MSApp.execUnsafeLocalFunction((function(){return e(t,r)}))}:e}((function(e,t){if(e.namespaceURI!==Ae||"innerHTML"in e)e.innerHTML=t;else{for((ze=ze||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ze.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function Fe(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&3===r.nodeType)return void(r.nodeValue=t)}e.textContent=t}function Ve(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Ue={animationend:Ve("Animation","AnimationEnd"),animationiteration:Ve("Animation","AnimationIteration"),animationstart:Ve("Animation","AnimationStart"),transitionend:Ve("Transition","TransitionEnd")},He={},Be={};function We(e){if(He[e])return He[e];if(!Ue[e])return e;var t,r=Ue[e];for(t in r)if(r.hasOwnProperty(t)&&t in Be)return He[e]=r[t];return e}k&&(Be=document.createElement("div").style,"AnimationEvent"in window||(delete Ue.animationend.animation,delete Ue.animationiteration.animation,delete Ue.animationstart.animation),"TransitionEvent"in window||delete Ue.transitionend.transition);var Ye=We("animationend"),Ze=We("animationiteration"),Ke=We("animationstart"),Xe=We("transitionend"),Qe="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),qe=new("function"==typeof WeakMap?WeakMap:Map);function $e(e){var t=qe.get(e);return void 0===t&&(t=new Map,qe.set(e,t)),t}function Je(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).effectTag)&&(r=t.return),e=t.return}while(e)}return 3===t.tag?r:null}function et(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function tt(e){if(Je(e)!==e)throw Error(i(188))}function rt(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Je(e)))throw Error(i(188));return t!==e?null:e}for(var r=e,n=t;;){var a=r.return;if(null===a)break;var o=a.alternate;if(null===o){if(null!==(n=a.return)){r=n;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===r)return tt(a),e;if(o===n)return tt(a),t;o=o.sibling}throw Error(i(188))}if(r.return!==n.return)r=a,n=o;else{for(var l=!1,s=a.child;s;){if(s===r){l=!0,r=a,n=o;break}if(s===n){l=!0,n=a,r=o;break}s=s.sibling}if(!l){for(s=o.child;s;){if(s===r){l=!0,r=o,n=a;break}if(s===n){l=!0,n=o,r=a;break}s=s.sibling}if(!l)throw Error(i(189))}}if(r.alternate!==n)throw Error(i(190))}if(3!==r.tag)throw Error(i(188));return r.stateNode.current===r?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function nt(e,t){if(null==t)throw Error(i(30));return 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]}function at(e,t,r){Array.isArray(e)?e.forEach(t,r):e&&t.call(r,e)}var ot=null;function it(e){if(e){var t=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(t))for(var n=0;n<t.length&&!e.isPropagationStopped();n++)f(e,t[n],r[n]);else t&&f(e,t,r);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function lt(e){if(null!==e&&(ot=nt(ot,e)),e=ot,ot=null,e){if(at(e,it),ot)throw Error(i(95));if(c)throw e=u,c=!1,u=null,e}}function st(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function pt(e){if(!k)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}var ct=[];function ut(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>ct.length&&ct.push(e)}function dt(e,t,r,n){if(ct.length){var a=ct.pop();return a.topLevelType=e,a.eventSystemFlags=n,a.nativeEvent=t,a.targetInst=r,a}return{topLevelType:e,eventSystemFlags:n,nativeEvent:t,targetInst:r,ancestors:[]}}function ht(e){var t=e.targetInst,r=t;do{if(!r){e.ancestors.push(r);break}var n=r;if(3===n.tag)n=n.stateNode.containerInfo;else{for(;n.return;)n=n.return;n=3!==n.tag?null:n.stateNode.containerInfo}if(!n)break;5!==(t=r.tag)&&6!==t||e.ancestors.push(r),r=wr(n)}while(r);for(r=0;r<e.ancestors.length;r++){t=e.ancestors[r];var a=st(e.nativeEvent);n=e.topLevelType;var o=e.nativeEvent,i=e.eventSystemFlags;0===r&&(i|=64);for(var l=null,s=0;s<O.length;s++){var p=O[s];p&&(p=p.extractEvents(n,t,o,a,i))&&(l=nt(l,p))}lt(l)}}function bt(e,t,r){if(!r.has(e)){switch(e){case"scroll":Kt(t,"scroll",!0);break;case"focus":case"blur":Kt(t,"focus",!0),Kt(t,"blur",!0),r.set("blur",null),r.set("focus",null);break;case"cancel":case"close":pt(e)&&Kt(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Qe.indexOf(e)&&Zt(e,t)}r.set(e,null)}}var mt,gt,ft,vt=!1,yt=[],Ct=null,Et=null,Ot=null,St=new Map,xt=new Map,Pt=[],wt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),kt="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function Nt(e,t,r,n,a){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|r,nativeEvent:a,container:n}}function Tt(e,t){switch(e){case"focus":case"blur":Ct=null;break;case"dragenter":case"dragleave":Et=null;break;case"mouseover":case"mouseout":Ot=null;break;case"pointerover":case"pointerout":St.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":xt.delete(t.pointerId)}}function _t(e,t,r,n,a,o){return null===e||e.nativeEvent!==o?(e=Nt(t,r,n,a,o),null!==t&&(null!==(t=kr(t))&&gt(t)),e):(e.eventSystemFlags|=n,e)}function Mt(e){var t=wr(e.target);if(null!==t){var r=Je(t);if(null!==r)if(13===(t=r.tag)){if(null!==(t=et(r)))return e.blockedOn=t,void o.unstable_runWithPriority(e.priority,(function(){ft(r)}))}else if(3===t&&r.stateNode.hydrate)return void(e.blockedOn=3===r.tag?r.stateNode.containerInfo:null)}e.blockedOn=null}function Lt(e){if(null!==e.blockedOn)return!1;var t=$t(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var r=kr(t);return null!==r&&gt(r),e.blockedOn=t,!1}return!0}function Rt(e,t,r){Lt(e)&&r.delete(t)}function Dt(){for(vt=!1;0<yt.length;){var e=yt[0];if(null!==e.blockedOn){null!==(e=kr(e.blockedOn))&&mt(e);break}var t=$t(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:yt.shift()}null!==Ct&&Lt(Ct)&&(Ct=null),null!==Et&&Lt(Et)&&(Et=null),null!==Ot&&Lt(Ot)&&(Ot=null),St.forEach(Rt),xt.forEach(Rt)}function At(e,t){e.blockedOn===t&&(e.blockedOn=null,vt||(vt=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Dt)))}function It(e){function t(t){return At(t,e)}if(0<yt.length){At(yt[0],e);for(var r=1;r<yt.length;r++){var n=yt[r];n.blockedOn===e&&(n.blockedOn=null)}}for(null!==Ct&&At(Ct,e),null!==Et&&At(Et,e),null!==Ot&&At(Ot,e),St.forEach(t),xt.forEach(t),r=0;r<Pt.length;r++)(n=Pt[r]).blockedOn===e&&(n.blockedOn=null);for(;0<Pt.length&&null===(r=Pt[0]).blockedOn;)Mt(r),null===r.blockedOn&&Pt.shift()}var jt={},zt=new Map,Gt=new Map,Ft=["abort","abort",Ye,"animationEnd",Ze,"animationIteration",Ke,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Xe,"transitionEnd","waiting","waiting"];function Vt(e,t){for(var r=0;r<e.length;r+=2){var n=e[r],a=e[r+1],o="on"+(a[0].toUpperCase()+a.slice(1));o={phasedRegistrationNames:{bubbled:o,captured:o+"Capture"},dependencies:[n],eventPriority:t},Gt.set(n,t),zt.set(n,o),jt[a]=o}}Vt("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Vt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Vt(Ft,2);for(var Ut="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Ht=0;Ht<Ut.length;Ht++)Gt.set(Ut[Ht],0);var Bt=o.unstable_UserBlockingPriority,Wt=o.unstable_runWithPriority,Yt=!0;function Zt(e,t){Kt(t,e,!1)}function Kt(e,t,r){var n=Gt.get(t);switch(void 0===n?2:n){case 0:n=Xt.bind(null,t,1,e);break;case 1:n=Qt.bind(null,t,1,e);break;default:n=qt.bind(null,t,1,e)}r?e.addEventListener(t,n,!0):e.addEventListener(t,n,!1)}function Xt(e,t,r,n){z||I();var a=qt,o=z;z=!0;try{A(a,e,t,r,n)}finally{(z=o)||F()}}function Qt(e,t,r,n){Wt(Bt,qt.bind(null,e,t,r,n))}function qt(e,t,r,n){if(Yt)if(0<yt.length&&-1<wt.indexOf(e))e=Nt(null,e,t,r,n),yt.push(e);else{var a=$t(e,t,r,n);if(null===a)Tt(e,n);else if(-1<wt.indexOf(e))e=Nt(a,e,t,r,n),yt.push(e);else if(!function(e,t,r,n,a){switch(t){case"focus":return Ct=_t(Ct,e,t,r,n,a),!0;case"dragenter":return Et=_t(Et,e,t,r,n,a),!0;case"mouseover":return Ot=_t(Ot,e,t,r,n,a),!0;case"pointerover":var o=a.pointerId;return St.set(o,_t(St.get(o)||null,e,t,r,n,a)),!0;case"gotpointercapture":return o=a.pointerId,xt.set(o,_t(xt.get(o)||null,e,t,r,n,a)),!0}return!1}(a,e,t,r,n)){Tt(e,n),e=dt(e,n,null,t);try{V(ht,e)}finally{ut(e)}}}}function $t(e,t,r,n){if(null!==(r=wr(r=st(n)))){var a=Je(r);if(null===a)r=null;else{var o=a.tag;if(13===o){if(null!==(r=et(a)))return r;r=null}else if(3===o){if(a.stateNode.hydrate)return 3===a.tag?a.stateNode.containerInfo:null;r=null}else a!==r&&(r=null)}}e=dt(e,n,r,t);try{V(ht,e)}finally{ut(e)}return null}var Jt={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!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},er=["Webkit","ms","Moz","O"];function tr(e,t,r){return null==t||"boolean"==typeof t||""===t?"":r||"number"!=typeof t||0===t||Jt.hasOwnProperty(e)&&Jt[e]?(""+t).trim():t+"px"}function rr(e,t){for(var r in e=e.style,t)if(t.hasOwnProperty(r)){var n=0===r.indexOf("--"),a=tr(r,t[r],n);"float"===r&&(r="cssFloat"),n?e.setProperty(r,a):e[r]=a}}Object.keys(Jt).forEach((function(e){er.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Jt[t]=Jt[e]}))}));var nr=a({menuitem:!0},{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});function ar(e,t){if(t){if(nr[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(62,""))}}function or(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ir=De;function lr(e,t){var r=$e(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=P[t];for(var n=0;n<t.length;n++)bt(t[n],e,r)}function sr(){}function pr(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var r,n=cr(e);for(e=0;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=cr(n)}}function dr(){for(var e=window,t=pr();t instanceof e.HTMLIFrameElement;){try{var r="string"==typeof t.contentWindow.location.href}catch(e){r=!1}if(!r)break;t=pr((e=t.contentWindow).document)}return t}function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var br=null,mr=null;function gr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function fr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var vr="function"==typeof setTimeout?setTimeout:void 0,yr="function"==typeof clearTimeout?clearTimeout:void 0;function Cr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Er(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var r=e.data;if("$"===r||"$!"===r||"$?"===r){if(0===t)return e;t--}else"/$"===r&&t++}e=e.previousSibling}return null}var Or=Math.random().toString(36).slice(2),Sr="__reactInternalInstance$"+Or,xr="__reactEventHandlers$"+Or,Pr="__reactContainere$"+Or;function wr(e){var t=e[Sr];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Pr]||r[Sr]){if(r=t.alternate,null!==t.child||null!==r&&null!==r.child)for(e=Er(e);null!==e;){if(r=e[Sr])return r;e=Er(e)}return t}r=(e=r).parentNode}return null}function kr(e){return!(e=e[Sr]||e[Pr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Nr(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function Tr(e){return e[xr]||null}function _r(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Mr(e,t){var r=e.stateNode;if(!r)return null;var n=b(r);if(!n)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(n=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!n;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(i(231,t,typeof r));return r}function Lr(e,t,r){(t=Mr(e,r.dispatchConfig.phasedRegistrationNames[t]))&&(r._dispatchListeners=nt(r._dispatchListeners,t),r._dispatchInstances=nt(r._dispatchInstances,e))}function Rr(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,r=[];t;)r.push(t),t=_r(t);for(t=r.length;0<t--;)Lr(r[t],"captured",e);for(t=0;t<r.length;t++)Lr(r[t],"bubbled",e)}}function Dr(e,t,r){e&&r&&r.dispatchConfig.registrationName&&(t=Mr(e,r.dispatchConfig.registrationName))&&(r._dispatchListeners=nt(r._dispatchListeners,t),r._dispatchInstances=nt(r._dispatchInstances,e))}function Ar(e){e&&e.dispatchConfig.registrationName&&Dr(e._targetInst,null,e)}function Ir(e){at(e,Rr)}var jr=null,zr=null,Gr=null;function Fr(){if(Gr)return Gr;var e,t,r=zr,n=r.length,a="value"in jr?jr.value:jr.textContent,o=a.length;for(e=0;e<n&&r[e]===a[e];e++);var i=n-e;for(t=1;t<=i&&r[n-t]===a[o-t];t++);return Gr=a.slice(e,1<t?1-t:void 0)}function Vr(){return!0}function Ur(){return!1}function Hr(e,t,r,n){for(var a in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=r,e=this.constructor.Interface)e.hasOwnProperty(a)&&((t=e[a])?this[a]=t(r):"target"===a?this.target=n:this[a]=r[a]);return this.isDefaultPrevented=(null!=r.defaultPrevented?r.defaultPrevented:!1===r.returnValue)?Vr:Ur,this.isPropagationStopped=Ur,this}function Br(e,t,r,n){if(this.eventPool.length){var a=this.eventPool.pop();return this.call(a,e,t,r,n),a}return new this(e,t,r,n)}function Wr(e){if(!(e instanceof this))throw Error(i(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Yr(e){e.eventPool=[],e.getPooled=Br,e.release=Wr}a(Hr.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Vr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Vr)},persist:function(){this.isPersistent=Vr},isPersistent:Ur,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=Ur,this._dispatchInstances=this._dispatchListeners=null}}),Hr.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Hr.extend=function(e){function t(){}function r(){return n.apply(this,arguments)}var n=this;t.prototype=n.prototype;var o=new t;return a(o,r.prototype),r.prototype=o,r.prototype.constructor=r,r.Interface=a({},n.Interface,e),r.extend=n.extend,Yr(r),r},Yr(Hr);var Zr=Hr.extend({data:null}),Kr=Hr.extend({data:null}),Xr=[9,13,27,32],Qr=k&&"CompositionEvent"in window,qr=null;k&&"documentMode"in document&&(qr=document.documentMode);var $r=k&&"TextEvent"in window&&!qr,Jr=k&&(!Qr||qr&&8<qr&&11>=qr),en=String.fromCharCode(32),tn={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},rn=!1;function nn(e,t){switch(e){case"keyup":return-1!==Xr.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function an(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var on=!1;var ln={eventTypes:tn,extractEvents:function(e,t,r,n){var a;if(Qr)e:{switch(e){case"compositionstart":var o=tn.compositionStart;break e;case"compositionend":o=tn.compositionEnd;break e;case"compositionupdate":o=tn.compositionUpdate;break e}o=void 0}else on?nn(e,r)&&(o=tn.compositionEnd):"keydown"===e&&229===r.keyCode&&(o=tn.compositionStart);return o?(Jr&&"ko"!==r.locale&&(on||o!==tn.compositionStart?o===tn.compositionEnd&&on&&(a=Fr()):(zr="value"in(jr=n)?jr.value:jr.textContent,on=!0)),o=Zr.getPooled(o,t,r,n),a?o.data=a:null!==(a=an(r))&&(o.data=a),Ir(o),a=o):a=null,(e=$r?function(e,t){switch(e){case"compositionend":return an(t);case"keypress":return 32!==t.which?null:(rn=!0,en);case"textInput":return(e=t.data)===en&&rn?null:e;default:return null}}(e,r):function(e,t){if(on)return"compositionend"===e||!Qr&&nn(e,t)?(e=Fr(),Gr=zr=jr=null,on=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Jr&&"ko"!==t.locale?null:t.data;default:return null}}(e,r))?((t=Kr.getPooled(tn.beforeInput,t,r,n)).data=e,Ir(t)):t=null,null===a?t:null===t?a:[a,t]}},sn={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};function pn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!sn[e.type]:"textarea"===t}var cn={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function un(e,t,r){return(e=Hr.getPooled(cn.change,e,t,r)).type="change",L(r),Ir(e),e}var dn=null,hn=null;function bn(e){lt(e)}function mn(e){if(Ee(Nr(e)))return e}function gn(e,t){if("change"===e)return t}var fn=!1;function vn(){dn&&(dn.detachEvent("onpropertychange",yn),hn=dn=null)}function yn(e){if("value"===e.propertyName&&mn(hn))if(e=un(hn,e,st(e)),z)lt(e);else{z=!0;try{D(bn,e)}finally{z=!1,F()}}}function Cn(e,t,r){"focus"===e?(vn(),hn=r,(dn=t).attachEvent("onpropertychange",yn)):"blur"===e&&vn()}function En(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return mn(hn)}function On(e,t){if("click"===e)return mn(t)}function Sn(e,t){if("input"===e||"change"===e)return mn(t)}k&&(fn=pt("input")&&(!document.documentMode||9<document.documentMode));var xn={eventTypes:cn,_isInputEventSupported:fn,extractEvents:function(e,t,r,n){var a=t?Nr(t):window,o=a.nodeName&&a.nodeName.toLowerCase();if("select"===o||"input"===o&&"file"===a.type)var i=gn;else if(pn(a))if(fn)i=Sn;else{i=En;var l=Cn}else(o=a.nodeName)&&"input"===o.toLowerCase()&&("checkbox"===a.type||"radio"===a.type)&&(i=On);if(i&&(i=i(e,t)))return un(i,r,n);l&&l(e,a,t),"blur"===e&&(e=a._wrapperState)&&e.controlled&&"number"===a.type&&ke(a,"number",a.value)}},Pn=Hr.extend({view:null,detail:null}),wn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=wn[e])&&!!t[e]}function Nn(){return kn}var Tn=0,_n=0,Mn=!1,Ln=!1,Rn=Pn.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Nn,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Tn;return Tn=e.screenX,Mn?"mousemove"===e.type?e.screenX-t:0:(Mn=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=_n;return _n=e.screenY,Ln?"mousemove"===e.type?e.screenY-t:0:(Ln=!0,0)}}),Dn=Rn.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),An={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},In={eventTypes:An,extractEvents:function(e,t,r,n,a){var o="mouseover"===e||"pointerover"===e,i="mouseout"===e||"pointerout"===e;if(o&&0==(32&a)&&(r.relatedTarget||r.fromElement)||!i&&!o)return null;(o=n.window===n?n:(o=n.ownerDocument)?o.defaultView||o.parentWindow:window,i)?(i=t,null!==(t=(t=r.relatedTarget||r.toElement)?wr(t):null)&&(t!==Je(t)||5!==t.tag&&6!==t.tag)&&(t=null)):i=null;if(i===t)return null;if("mouseout"===e||"mouseover"===e)var l=Rn,s=An.mouseLeave,p=An.mouseEnter,c="mouse";else"pointerout"!==e&&"pointerover"!==e||(l=Dn,s=An.pointerLeave,p=An.pointerEnter,c="pointer");if(e=null==i?o:Nr(i),o=null==t?o:Nr(t),(s=l.getPooled(s,i,r,n)).type=c+"leave",s.target=e,s.relatedTarget=o,(r=l.getPooled(p,t,r,n)).type=c+"enter",r.target=o,r.relatedTarget=e,c=t,(n=i)&&c)e:{for(p=c,i=0,e=l=n;e;e=_r(e))i++;for(e=0,t=p;t;t=_r(t))e++;for(;0<i-e;)l=_r(l),i--;for(;0<e-i;)p=_r(p),e--;for(;i--;){if(l===p||l===p.alternate)break e;l=_r(l),p=_r(p)}l=null}else l=null;for(p=l,l=[];n&&n!==p&&(null===(i=n.alternate)||i!==p);)l.push(n),n=_r(n);for(n=[];c&&c!==p&&(null===(i=c.alternate)||i!==p);)n.push(c),c=_r(c);for(c=0;c<l.length;c++)Dr(l[c],"bubbled",s);for(c=n.length;0<c--;)Dr(n[c],"captured",r);return 0==(64&a)?[s]:[s,r]}};var jn="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},zn=Object.prototype.hasOwnProperty;function Gn(e,t){if(jn(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++)if(!zn.call(t,r[n])||!jn(e[r[n]],t[r[n]]))return!1;return!0}var Fn=k&&"documentMode"in document&&11>=document.documentMode,Vn={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Un=null,Hn=null,Bn=null,Wn=!1;function Yn(e,t){var r=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Wn||null==Un||Un!==pr(r)?null:("selectionStart"in(r=Un)&&hr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},Bn&&Gn(Bn,r)?null:(Bn=r,(e=Hr.getPooled(Vn.select,Hn,e,t)).type="select",e.target=Un,Ir(e),e))}var Zn={eventTypes:Vn,extractEvents:function(e,t,r,n,a,o){if(!(o=!(a=o||(n.window===n?n.document:9===n.nodeType?n:n.ownerDocument)))){e:{a=$e(a),o=P.onSelect;for(var i=0;i<o.length;i++)if(!a.has(o[i])){a=!1;break e}a=!0}o=!a}if(o)return null;switch(a=t?Nr(t):window,e){case"focus":(pn(a)||"true"===a.contentEditable)&&(Un=a,Hn=t,Bn=null);break;case"blur":Bn=Hn=Un=null;break;case"mousedown":Wn=!0;break;case"contextmenu":case"mouseup":case"dragend":return Wn=!1,Yn(r,n);case"selectionchange":if(Fn)break;case"keydown":case"keyup":return Yn(r,n)}return null}},Kn=Hr.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Xn=Hr.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Qn=Pn.extend({relatedTarget:null});function qn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var $n={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Jn={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"},ea=Pn.extend({key:function(e){if(e.key){var t=$n[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=qn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Jn[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Nn,charCode:function(e){return"keypress"===e.type?qn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?qn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),ta=Rn.extend({dataTransfer:null}),ra=Pn.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Nn}),na=Hr.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),aa=Rn.extend({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}),oa={eventTypes:jt,extractEvents:function(e,t,r,n){var a=zt.get(e);if(!a)return null;switch(e){case"keypress":if(0===qn(r))return null;case"keydown":case"keyup":e=ea;break;case"blur":case"focus":e=Qn;break;case"click":if(2===r.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Rn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=ta;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=ra;break;case Ye:case Ze:case Ke:e=Kn;break;case Xe:e=na;break;case"scroll":e=Pn;break;case"wheel":e=aa;break;case"copy":case"cut":case"paste":e=Xn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Dn;break;default:e=Hr}return Ir(t=e.getPooled(a,t,r,n)),t}};if(v)throw Error(i(101));v=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),C(),b=Tr,m=kr,g=Nr,w({SimpleEventPlugin:oa,EnterLeaveEventPlugin:In,ChangeEventPlugin:xn,SelectEventPlugin:Zn,BeforeInputEventPlugin:ln});var ia=[],la=-1;function sa(e){0>la||(e.current=ia[la],ia[la]=null,la--)}function pa(e,t){la++,ia[la]=e.current,e.current=t}var ca={},ua={current:ca},da={current:!1},ha=ca;function ba(e,t){var r=e.type.contextTypes;if(!r)return ca;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var a,o={};for(a in r)o[a]=t[a];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ma(e){return null!=(e=e.childContextTypes)}function ga(){sa(da),sa(ua)}function fa(e,t,r){if(ua.current!==ca)throw Error(i(168));pa(ua,t),pa(da,r)}function va(e,t,r){var n=e.stateNode;if(e=t.childContextTypes,"function"!=typeof n.getChildContext)return r;for(var o in n=n.getChildContext())if(!(o in e))throw Error(i(108,ge(t)||"Unknown",o));return a({},r,{},n)}function ya(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ca,ha=ua.current,pa(ua,e),pa(da,da.current),!0}function Ca(e,t,r){var n=e.stateNode;if(!n)throw Error(i(169));r?(e=va(e,t,ha),n.__reactInternalMemoizedMergedChildContext=e,sa(da),sa(ua),pa(ua,e)):sa(da),pa(da,r)}var Ea=o.unstable_runWithPriority,Oa=o.unstable_scheduleCallback,Sa=o.unstable_cancelCallback,xa=o.unstable_requestPaint,Pa=o.unstable_now,wa=o.unstable_getCurrentPriorityLevel,ka=o.unstable_ImmediatePriority,Na=o.unstable_UserBlockingPriority,Ta=o.unstable_NormalPriority,_a=o.unstable_LowPriority,Ma=o.unstable_IdlePriority,La={},Ra=o.unstable_shouldYield,Da=void 0!==xa?xa:function(){},Aa=null,Ia=null,ja=!1,za=Pa(),Ga=1e4>za?Pa:function(){return Pa()-za};function Fa(){switch(wa()){case ka:return 99;case Na:return 98;case Ta:return 97;case _a:return 96;case Ma:return 95;default:throw Error(i(332))}}function Va(e){switch(e){case 99:return ka;case 98:return Na;case 97:return Ta;case 96:return _a;case 95:return Ma;default:throw Error(i(332))}}function Ua(e,t){return e=Va(e),Ea(e,t)}function Ha(e,t,r){return e=Va(e),Oa(e,t,r)}function Ba(e){return null===Aa?(Aa=[e],Ia=Oa(ka,Ya)):Aa.push(e),La}function Wa(){if(null!==Ia){var e=Ia;Ia=null,Sa(e)}Ya()}function Ya(){if(!ja&&null!==Aa){ja=!0;var e=0;try{var t=Aa;Ua(99,(function(){for(;e<t.length;e++){var r=t[e];do{r=r(!0)}while(null!==r)}})),Aa=null}catch(t){throw null!==Aa&&(Aa=Aa.slice(e+1)),Oa(ka,Wa),t}finally{ja=!1}}}function Za(e,t,r){return 1073741821-(1+((1073741821-e+t/10)/(r/=10)|0))*r}function Ka(e,t){if(e&&e.defaultProps)for(var r in t=a({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}var Xa={current:null},Qa=null,qa=null,$a=null;function Ja(){$a=qa=Qa=null}function eo(e){var t=Xa.current;sa(Xa),e.type._context._currentValue=t}function to(e,t){for(;null!==e;){var r=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==r&&r.childExpirationTime<t&&(r.childExpirationTime=t);else{if(!(null!==r&&r.childExpirationTime<t))break;r.childExpirationTime=t}e=e.return}}function ro(e,t){Qa=e,$a=qa=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(_i=!0),e.firstContext=null)}function no(e,t){if($a!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||($a=e,t=1073741823),t={context:e,observedBits:t,next:null},null===qa){if(null===Qa)throw Error(i(308));qa=t,Qa.dependencies={expirationTime:0,firstContext:t,responders:null}}else qa=qa.next=t;return e._currentValue}var ao=!1;function oo(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function io(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function lo(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function so(e,t){if(null!==(e=e.updateQueue)){var r=(e=e.shared).pending;null===r?t.next=t:(t.next=r.next,r.next=t),e.pending=t}}function po(e,t){var r=e.alternate;null!==r&&io(r,e),null===(r=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=r.next,r.next=t)}function co(e,t,r,n){var o=e.updateQueue;ao=!1;var i=o.baseQueue,l=o.shared.pending;if(null!==l){if(null!==i){var s=i.next;i.next=l.next,l.next=s}i=l,o.shared.pending=null,null!==(s=e.alternate)&&(null!==(s=s.updateQueue)&&(s.baseQueue=l))}if(null!==i){s=i.next;var p=o.baseState,c=0,u=null,d=null,h=null;if(null!==s)for(var b=s;;){if((l=b.expirationTime)<n){var m={expirationTime:b.expirationTime,suspenseConfig:b.suspenseConfig,tag:b.tag,payload:b.payload,callback:b.callback,next:null};null===h?(d=h=m,u=p):h=h.next=m,l>c&&(c=l)}else{null!==h&&(h=h.next={expirationTime:1073741823,suspenseConfig:b.suspenseConfig,tag:b.tag,payload:b.payload,callback:b.callback,next:null}),os(l,b.suspenseConfig);e:{var g=e,f=b;switch(l=t,m=r,f.tag){case 1:if("function"==typeof(g=f.payload)){p=g.call(m,p,l);break e}p=g;break e;case 3:g.effectTag=-4097&g.effectTag|64;case 0:if(null==(l="function"==typeof(g=f.payload)?g.call(m,p,l):g))break e;p=a({},p,l);break e;case 2:ao=!0}}null!==b.callback&&(e.effectTag|=32,null===(l=o.effects)?o.effects=[b]:l.push(b))}if(null===(b=b.next)||b===s){if(null===(l=o.shared.pending))break;b=i.next=l.next,l.next=s,o.baseQueue=i=l,o.shared.pending=null}}null===h?u=p:h.next=d,o.baseState=u,o.baseQueue=h,is(c),e.expirationTime=c,e.memoizedState=p}}function uo(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var n=e[t],a=n.callback;if(null!==a){if(n.callback=null,n=a,a=r,"function"!=typeof n)throw Error(i(191,n));n.call(a)}}}var ho=Q.ReactCurrentBatchConfig,bo=(new n.Component).refs;function mo(e,t,r,n){r=null==(r=r(n,t=e.memoizedState))?t:a({},t,r),e.memoizedState=r,0===e.expirationTime&&(e.updateQueue.baseState=r)}var go={isMounted:function(e){return!!(e=e._reactInternalFiber)&&Je(e)===e},enqueueSetState:function(e,t,r){e=e._reactInternalFiber;var n=Yl(),a=ho.suspense;(a=lo(n=Zl(n,e,a),a)).payload=t,null!=r&&(a.callback=r),so(e,a),Kl(e,n)},enqueueReplaceState:function(e,t,r){e=e._reactInternalFiber;var n=Yl(),a=ho.suspense;(a=lo(n=Zl(n,e,a),a)).tag=1,a.payload=t,null!=r&&(a.callback=r),so(e,a),Kl(e,n)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var r=Yl(),n=ho.suspense;(n=lo(r=Zl(r,e,n),n)).tag=2,null!=t&&(n.callback=t),so(e,n),Kl(e,r)}};function fo(e,t,r,n,a,o,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,o,i):!t.prototype||!t.prototype.isPureReactComponent||(!Gn(r,n)||!Gn(a,o))}function vo(e,t,r){var n=!1,a=ca,o=t.contextType;return"object"==typeof o&&null!==o?o=no(o):(a=ma(t)?ha:ua.current,o=(n=null!=(n=t.contextTypes))?ba(e,a):ca),t=new t(r,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=go,e.stateNode=t,t._reactInternalFiber=e,n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=o),t}function yo(e,t,r,n){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(r,n),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&go.enqueueReplaceState(t,t.state,null)}function Co(e,t,r,n){var a=e.stateNode;a.props=r,a.state=e.memoizedState,a.refs=bo,oo(e);var o=t.contextType;"object"==typeof o&&null!==o?a.context=no(o):(o=ma(t)?ha:ua.current,a.context=ba(e,o)),co(e,r,a,n),a.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(mo(e,t,o,r),a.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(t=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&go.enqueueReplaceState(a,a.state,null),co(e,r,a,n),a.state=e.memoizedState),"function"==typeof a.componentDidMount&&(e.effectTag|=4)}var Eo=Array.isArray;function Oo(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(i(309));var n=r.stateNode}if(!n)throw Error(i(147,e));var a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:((t=function(e){var t=n.refs;t===bo&&(t=n.refs={}),null===e?delete t[a]:t[a]=e})._stringRef=a,t)}if("string"!=typeof e)throw Error(i(284));if(!r._owner)throw Error(i(290,e))}return e}function So(e,t){if("textarea"!==e.type)throw Error(i(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function xo(e){function t(t,r){if(e){var n=t.lastEffect;null!==n?(n.nextEffect=r,t.lastEffect=r):t.firstEffect=t.lastEffect=r,r.nextEffect=null,r.effectTag=8}}function r(r,n){if(!e)return null;for(;null!==n;)t(r,n),n=n.sibling;return null}function n(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function a(e,t){return(e=ws(e,t)).index=0,e.sibling=null,e}function o(t,r,n){return t.index=n,e?null!==(n=t.alternate)?(n=n.index)<r?(t.effectTag=2,r):n:(t.effectTag=2,r):r}function l(t){return e&&null===t.alternate&&(t.effectTag=2),t}function s(e,t,r,n){return null===t||6!==t.tag?((t=Ts(r,e.mode,n)).return=e,t):((t=a(t,r)).return=e,t)}function p(e,t,r,n){return null!==t&&t.elementType===r.type?((n=a(t,r.props)).ref=Oo(e,t,r),n.return=e,n):((n=ks(r.type,r.key,r.props,null,e.mode,n)).ref=Oo(e,t,r),n.return=e,n)}function c(e,t,r,n){return null===t||4!==t.tag||t.stateNode.containerInfo!==r.containerInfo||t.stateNode.implementation!==r.implementation?((t=_s(r,e.mode,n)).return=e,t):((t=a(t,r.children||[])).return=e,t)}function u(e,t,r,n,o){return null===t||7!==t.tag?((t=Ns(r,e.mode,n,o)).return=e,t):((t=a(t,r)).return=e,t)}function d(e,t,r){if("string"==typeof t||"number"==typeof t)return(t=Ts(""+t,e.mode,r)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case ee:return(r=ks(t.type,t.key,t.props,null,e.mode,r)).ref=Oo(e,null,t),r.return=e,r;case te:return(t=_s(t,e.mode,r)).return=e,t}if(Eo(t)||me(t))return(t=Ns(t,e.mode,r,null)).return=e,t;So(e,t)}return null}function h(e,t,r,n){var a=null!==t?t.key:null;if("string"==typeof r||"number"==typeof r)return null!==a?null:s(e,t,""+r,n);if("object"==typeof r&&null!==r){switch(r.$$typeof){case ee:return r.key===a?r.type===re?u(e,t,r.props.children,n,a):p(e,t,r,n):null;case te:return r.key===a?c(e,t,r,n):null}if(Eo(r)||me(r))return null!==a?null:u(e,t,r,n,null);So(e,r)}return null}function b(e,t,r,n,a){if("string"==typeof n||"number"==typeof n)return s(t,e=e.get(r)||null,""+n,a);if("object"==typeof n&&null!==n){switch(n.$$typeof){case ee:return e=e.get(null===n.key?r:n.key)||null,n.type===re?u(t,e,n.props.children,a,n.key):p(t,e,n,a);case te:return c(t,e=e.get(null===n.key?r:n.key)||null,n,a)}if(Eo(n)||me(n))return u(t,e=e.get(r)||null,n,a,null);So(t,n)}return null}function m(a,i,l,s){for(var p=null,c=null,u=i,m=i=0,g=null;null!==u&&m<l.length;m++){u.index>m?(g=u,u=null):g=u.sibling;var f=h(a,u,l[m],s);if(null===f){null===u&&(u=g);break}e&&u&&null===f.alternate&&t(a,u),i=o(f,i,m),null===c?p=f:c.sibling=f,c=f,u=g}if(m===l.length)return r(a,u),p;if(null===u){for(;m<l.length;m++)null!==(u=d(a,l[m],s))&&(i=o(u,i,m),null===c?p=u:c.sibling=u,c=u);return p}for(u=n(a,u);m<l.length;m++)null!==(g=b(u,a,m,l[m],s))&&(e&&null!==g.alternate&&u.delete(null===g.key?m:g.key),i=o(g,i,m),null===c?p=g:c.sibling=g,c=g);return e&&u.forEach((function(e){return t(a,e)})),p}function g(a,l,s,p){var c=me(s);if("function"!=typeof c)throw Error(i(150));if(null==(s=c.call(s)))throw Error(i(151));for(var u=c=null,m=l,g=l=0,f=null,v=s.next();null!==m&&!v.done;g++,v=s.next()){m.index>g?(f=m,m=null):f=m.sibling;var y=h(a,m,v.value,p);if(null===y){null===m&&(m=f);break}e&&m&&null===y.alternate&&t(a,m),l=o(y,l,g),null===u?c=y:u.sibling=y,u=y,m=f}if(v.done)return r(a,m),c;if(null===m){for(;!v.done;g++,v=s.next())null!==(v=d(a,v.value,p))&&(l=o(v,l,g),null===u?c=v:u.sibling=v,u=v);return c}for(m=n(a,m);!v.done;g++,v=s.next())null!==(v=b(m,a,g,v.value,p))&&(e&&null!==v.alternate&&m.delete(null===v.key?g:v.key),l=o(v,l,g),null===u?c=v:u.sibling=v,u=v);return e&&m.forEach((function(e){return t(a,e)})),c}return function(e,n,o,s){var p="object"==typeof o&&null!==o&&o.type===re&&null===o.key;p&&(o=o.props.children);var c="object"==typeof o&&null!==o;if(c)switch(o.$$typeof){case ee:e:{for(c=o.key,p=n;null!==p;){if(p.key===c){switch(p.tag){case 7:if(o.type===re){r(e,p.sibling),(n=a(p,o.props.children)).return=e,e=n;break e}break;default:if(p.elementType===o.type){r(e,p.sibling),(n=a(p,o.props)).ref=Oo(e,p,o),n.return=e,e=n;break e}}r(e,p);break}t(e,p),p=p.sibling}o.type===re?((n=Ns(o.props.children,e.mode,s,o.key)).return=e,e=n):((s=ks(o.type,o.key,o.props,null,e.mode,s)).ref=Oo(e,n,o),s.return=e,e=s)}return l(e);case te:e:{for(p=o.key;null!==n;){if(n.key===p){if(4===n.tag&&n.stateNode.containerInfo===o.containerInfo&&n.stateNode.implementation===o.implementation){r(e,n.sibling),(n=a(n,o.children||[])).return=e,e=n;break e}r(e,n);break}t(e,n),n=n.sibling}(n=_s(o,e.mode,s)).return=e,e=n}return l(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==n&&6===n.tag?(r(e,n.sibling),(n=a(n,o)).return=e,e=n):(r(e,n),(n=Ts(o,e.mode,s)).return=e,e=n),l(e);if(Eo(o))return m(e,n,o,s);if(me(o))return g(e,n,o,s);if(c&&So(e,o),void 0===o&&!p)switch(e.tag){case 1:case 0:throw e=e.type,Error(i(152,e.displayName||e.name||"Component"))}return r(e,n)}}var Po=xo(!0),wo=xo(!1),ko={},No={current:ko},To={current:ko},_o={current:ko};function Mo(e){if(e===ko)throw Error(i(174));return e}function Lo(e,t){switch(pa(_o,t),pa(To,e),pa(No,ko),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:je(null,"");break;default:t=je(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}sa(No),pa(No,t)}function Ro(){sa(No),sa(To),sa(_o)}function Do(e){Mo(_o.current);var t=Mo(No.current),r=je(t,e.type);t!==r&&(pa(To,e),pa(No,r))}function Ao(e){To.current===e&&(sa(No),sa(To))}var Io={current:0};function jo(e){for(var t=e;null!==t;){if(13===t.tag){var r=t.memoizedState;if(null!==r&&(null===(r=r.dehydrated)||"$?"===r.data||"$!"===r.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function zo(e,t){return{responder:e,props:t}}var Go=Q.ReactCurrentDispatcher,Fo=Q.ReactCurrentBatchConfig,Vo=0,Uo=null,Ho=null,Bo=null,Wo=!1;function Yo(){throw Error(i(321))}function Zo(e,t){if(null===t)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!jn(e[r],t[r]))return!1;return!0}function Ko(e,t,r,n,a,o){if(Vo=o,Uo=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,Go.current=null===e||null===e.memoizedState?fi:vi,e=r(n,a),t.expirationTime===Vo){o=0;do{if(t.expirationTime=0,!(25>o))throw Error(i(301));o+=1,Bo=Ho=null,t.updateQueue=null,Go.current=yi,e=r(n,a)}while(t.expirationTime===Vo)}if(Go.current=gi,t=null!==Ho&&null!==Ho.next,Vo=0,Bo=Ho=Uo=null,Wo=!1,t)throw Error(i(300));return e}function Xo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Bo?Uo.memoizedState=Bo=e:Bo=Bo.next=e,Bo}function Qo(){if(null===Ho){var e=Uo.alternate;e=null!==e?e.memoizedState:null}else e=Ho.next;var t=null===Bo?Uo.memoizedState:Bo.next;if(null!==t)Bo=t,Ho=e;else{if(null===e)throw Error(i(310));e={memoizedState:(Ho=e).memoizedState,baseState:Ho.baseState,baseQueue:Ho.baseQueue,queue:Ho.queue,next:null},null===Bo?Uo.memoizedState=Bo=e:Bo=Bo.next=e}return Bo}function qo(e,t){return"function"==typeof t?t(e):t}function $o(e){var t=Qo(),r=t.queue;if(null===r)throw Error(i(311));r.lastRenderedReducer=e;var n=Ho,a=n.baseQueue,o=r.pending;if(null!==o){if(null!==a){var l=a.next;a.next=o.next,o.next=l}n.baseQueue=a=o,r.pending=null}if(null!==a){a=a.next,n=n.baseState;var s=l=o=null,p=a;do{var c=p.expirationTime;if(c<Vo){var u={expirationTime:p.expirationTime,suspenseConfig:p.suspenseConfig,action:p.action,eagerReducer:p.eagerReducer,eagerState:p.eagerState,next:null};null===s?(l=s=u,o=n):s=s.next=u,c>Uo.expirationTime&&(Uo.expirationTime=c,is(c))}else null!==s&&(s=s.next={expirationTime:1073741823,suspenseConfig:p.suspenseConfig,action:p.action,eagerReducer:p.eagerReducer,eagerState:p.eagerState,next:null}),os(c,p.suspenseConfig),n=p.eagerReducer===e?p.eagerState:e(n,p.action);p=p.next}while(null!==p&&p!==a);null===s?o=n:s.next=l,jn(n,t.memoizedState)||(_i=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=s,r.lastRenderedState=n}return[t.memoizedState,r.dispatch]}function Jo(e){var t=Qo(),r=t.queue;if(null===r)throw Error(i(311));r.lastRenderedReducer=e;var n=r.dispatch,a=r.pending,o=t.memoizedState;if(null!==a){r.pending=null;var l=a=a.next;do{o=e(o,l.action),l=l.next}while(l!==a);jn(o,t.memoizedState)||(_i=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),r.lastRenderedState=o}return[o,n]}function ei(e){var t=Xo();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:qo,lastRenderedState:e}).dispatch=mi.bind(null,Uo,e),[t.memoizedState,e]}function ti(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},null===(t=Uo.updateQueue)?(t={lastEffect:null},Uo.updateQueue=t,t.lastEffect=e.next=e):null===(r=t.lastEffect)?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e),e}function ri(){return Qo().memoizedState}function ni(e,t,r,n){var a=Xo();Uo.effectTag|=e,a.memoizedState=ti(1|t,r,void 0,void 0===n?null:n)}function ai(e,t,r,n){var a=Qo();n=void 0===n?null:n;var o=void 0;if(null!==Ho){var i=Ho.memoizedState;if(o=i.destroy,null!==n&&Zo(n,i.deps))return void ti(t,r,o,n)}Uo.effectTag|=e,a.memoizedState=ti(1|t,r,o,n)}function oi(e,t){return ni(516,4,e,t)}function ii(e,t){return ai(516,4,e,t)}function li(e,t){return ai(4,2,e,t)}function si(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function pi(e,t,r){return r=null!=r?r.concat([e]):null,ai(4,2,si.bind(null,t,e),r)}function ci(){}function ui(e,t){return Xo().memoizedState=[e,void 0===t?null:t],e}function di(e,t){var r=Qo();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&Zo(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function hi(e,t){var r=Qo();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&Zo(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function bi(e,t,r){var n=Fa();Ua(98>n?98:n,(function(){e(!0)})),Ua(97<n?97:n,(function(){var n=Fo.suspense;Fo.suspense=void 0===t?null:t;try{e(!1),r()}finally{Fo.suspense=n}}))}function mi(e,t,r){var n=Yl(),a=ho.suspense;a={expirationTime:n=Zl(n,e,a),suspenseConfig:a,action:r,eagerReducer:null,eagerState:null,next:null};var o=t.pending;if(null===o?a.next=a:(a.next=o.next,o.next=a),t.pending=a,o=e.alternate,e===Uo||null!==o&&o===Uo)Wo=!0,a.expirationTime=Vo,Uo.expirationTime=Vo;else{if(0===e.expirationTime&&(null===o||0===o.expirationTime)&&null!==(o=t.lastRenderedReducer))try{var i=t.lastRenderedState,l=o(i,r);if(a.eagerReducer=o,a.eagerState=l,jn(l,i))return}catch(e){}Kl(e,n)}}var gi={readContext:no,useCallback:Yo,useContext:Yo,useEffect:Yo,useImperativeHandle:Yo,useLayoutEffect:Yo,useMemo:Yo,useReducer:Yo,useRef:Yo,useState:Yo,useDebugValue:Yo,useResponder:Yo,useDeferredValue:Yo,useTransition:Yo},fi={readContext:no,useCallback:ui,useContext:no,useEffect:oi,useImperativeHandle:function(e,t,r){return r=null!=r?r.concat([e]):null,ni(4,2,si.bind(null,t,e),r)},useLayoutEffect:function(e,t){return ni(4,2,e,t)},useMemo:function(e,t){var r=Xo();return t=void 0===t?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Xo();return t=void 0!==r?r(t):t,n.memoizedState=n.baseState=t,e=(e=n.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=mi.bind(null,Uo,e),[n.memoizedState,e]},useRef:function(e){return e={current:e},Xo().memoizedState=e},useState:ei,useDebugValue:ci,useResponder:zo,useDeferredValue:function(e,t){var r=ei(e),n=r[0],a=r[1];return oi((function(){var r=Fo.suspense;Fo.suspense=void 0===t?null:t;try{a(e)}finally{Fo.suspense=r}}),[e,t]),n},useTransition:function(e){var t=ei(!1),r=t[0];return t=t[1],[ui(bi.bind(null,t,e),[t,e]),r]}},vi={readContext:no,useCallback:di,useContext:no,useEffect:ii,useImperativeHandle:pi,useLayoutEffect:li,useMemo:hi,useReducer:$o,useRef:ri,useState:function(){return $o(qo)},useDebugValue:ci,useResponder:zo,useDeferredValue:function(e,t){var r=$o(qo),n=r[0],a=r[1];return ii((function(){var r=Fo.suspense;Fo.suspense=void 0===t?null:t;try{a(e)}finally{Fo.suspense=r}}),[e,t]),n},useTransition:function(e){var t=$o(qo),r=t[0];return t=t[1],[di(bi.bind(null,t,e),[t,e]),r]}},yi={readContext:no,useCallback:di,useContext:no,useEffect:ii,useImperativeHandle:pi,useLayoutEffect:li,useMemo:hi,useReducer:Jo,useRef:ri,useState:function(){return Jo(qo)},useDebugValue:ci,useResponder:zo,useDeferredValue:function(e,t){var r=Jo(qo),n=r[0],a=r[1];return ii((function(){var r=Fo.suspense;Fo.suspense=void 0===t?null:t;try{a(e)}finally{Fo.suspense=r}}),[e,t]),n},useTransition:function(e){var t=Jo(qo),r=t[0];return t=t[1],[di(bi.bind(null,t,e),[t,e]),r]}},Ci=null,Ei=null,Oi=!1;function Si(e,t){var r=xs(5,null,null,0);r.elementType="DELETED",r.type="DELETED",r.stateNode=t,r.return=e,r.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=r,e.lastEffect=r):e.firstEffect=e.lastEffect=r}function xi(e,t){switch(e.tag){case 5:var r=e.type;return null!==(t=1!==t.nodeType||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Pi(e){if(Oi){var t=Ei;if(t){var r=t;if(!xi(e,t)){if(!(t=Cr(r.nextSibling))||!xi(e,t))return e.effectTag=-1025&e.effectTag|2,Oi=!1,void(Ci=e);Si(Ci,r)}Ci=e,Ei=Cr(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,Oi=!1,Ci=e}}function wi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Ci=e}function ki(e){if(e!==Ci)return!1;if(!Oi)return wi(e),Oi=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!fr(t,e.memoizedProps))for(t=Ei;t;)Si(e,t),t=Cr(t.nextSibling);if(wi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){Ei=Cr(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}Ei=null}}else Ei=Ci?Cr(e.stateNode.nextSibling):null;return!0}function Ni(){Ei=Ci=null,Oi=!1}var Ti=Q.ReactCurrentOwner,_i=!1;function Mi(e,t,r,n){t.child=null===e?wo(t,null,r,n):Po(t,e.child,r,n)}function Li(e,t,r,n,a){r=r.render;var o=t.ref;return ro(t,a),n=Ko(e,t,r,n,o,a),null===e||_i?(t.effectTag|=1,Mi(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=a&&(e.expirationTime=0),Ki(e,t,a))}function Ri(e,t,r,n,a,o){if(null===e){var i=r.type;return"function"!=typeof i||Ps(i)||void 0!==i.defaultProps||null!==r.compare||void 0!==r.defaultProps?((e=ks(r.type,null,n,null,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Di(e,t,i,n,a,o))}return i=e.child,a<o&&(a=i.memoizedProps,(r=null!==(r=r.compare)?r:Gn)(a,n)&&e.ref===t.ref)?Ki(e,t,o):(t.effectTag|=1,(e=ws(i,n)).ref=t.ref,e.return=t,t.child=e)}function Di(e,t,r,n,a,o){return null!==e&&Gn(e.memoizedProps,n)&&e.ref===t.ref&&(_i=!1,a<o)?(t.expirationTime=e.expirationTime,Ki(e,t,o)):Ii(e,t,r,n,o)}function Ai(e,t){var r=t.ref;(null===e&&null!==r||null!==e&&e.ref!==r)&&(t.effectTag|=128)}function Ii(e,t,r,n,a){var o=ma(r)?ha:ua.current;return o=ba(t,o),ro(t,a),r=Ko(e,t,r,n,o,a),null===e||_i?(t.effectTag|=1,Mi(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=a&&(e.expirationTime=0),Ki(e,t,a))}function ji(e,t,r,n,a){if(ma(r)){var o=!0;ya(t)}else o=!1;if(ro(t,a),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),vo(t,r,n),Co(t,r,n,a),n=!0;else if(null===e){var i=t.stateNode,l=t.memoizedProps;i.props=l;var s=i.context,p=r.contextType;"object"==typeof p&&null!==p?p=no(p):p=ba(t,p=ma(r)?ha:ua.current);var c=r.getDerivedStateFromProps,u="function"==typeof c||"function"==typeof i.getSnapshotBeforeUpdate;u||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==n||s!==p)&&yo(t,i,n,p),ao=!1;var d=t.memoizedState;i.state=d,co(t,n,i,a),s=t.memoizedState,l!==n||d!==s||da.current||ao?("function"==typeof c&&(mo(t,r,c,n),s=t.memoizedState),(l=ao||fo(t,r,l,n,d,s,p))?(u||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.effectTag|=4)):("function"==typeof i.componentDidMount&&(t.effectTag|=4),t.memoizedProps=n,t.memoizedState=s),i.props=n,i.state=s,i.context=p,n=l):("function"==typeof i.componentDidMount&&(t.effectTag|=4),n=!1)}else i=t.stateNode,io(e,t),l=t.memoizedProps,i.props=t.type===t.elementType?l:Ka(t.type,l),s=i.context,"object"==typeof(p=r.contextType)&&null!==p?p=no(p):p=ba(t,p=ma(r)?ha:ua.current),(u="function"==typeof(c=r.getDerivedStateFromProps)||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==n||s!==p)&&yo(t,i,n,p),ao=!1,s=t.memoizedState,i.state=s,co(t,n,i,a),d=t.memoizedState,l!==n||s!==d||da.current||ao?("function"==typeof c&&(mo(t,r,c,n),d=t.memoizedState),(c=ao||fo(t,r,l,n,s,d,p))?(u||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(n,d,p),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(n,d,p)),"function"==typeof i.componentDidUpdate&&(t.effectTag|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=256),t.memoizedProps=n,t.memoizedState=d),i.props=n,i.state=d,i.context=p,n=c):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=256),n=!1);return zi(e,t,r,n,o,a)}function zi(e,t,r,n,a,o){Ai(e,t);var i=0!=(64&t.effectTag);if(!n&&!i)return a&&Ca(t,r,!1),Ki(e,t,o);n=t.stateNode,Ti.current=t;var l=i&&"function"!=typeof r.getDerivedStateFromError?null:n.render();return t.effectTag|=1,null!==e&&i?(t.child=Po(t,e.child,null,o),t.child=Po(t,null,l,o)):Mi(e,t,l,o),t.memoizedState=n.state,a&&Ca(t,r,!0),t.child}function Gi(e){var t=e.stateNode;t.pendingContext?fa(0,t.pendingContext,t.pendingContext!==t.context):t.context&&fa(0,t.context,!1),Lo(e,t.containerInfo)}var Fi,Vi,Ui,Hi={dehydrated:null,retryTime:0};function Bi(e,t,r){var n,a=t.mode,o=t.pendingProps,i=Io.current,l=!1;if((n=0!=(64&t.effectTag))||(n=0!=(2&i)&&(null===e||null!==e.memoizedState)),n?(l=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(i|=1),pa(Io,1&i),null===e){if(void 0!==o.fallback&&Pi(t),l){if(l=o.fallback,(o=Ns(null,a,0,null)).return=t,0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,o.child=e;null!==e;)e.return=o,e=e.sibling;return(r=Ns(l,a,r,null)).return=t,o.sibling=r,t.memoizedState=Hi,t.child=o,r}return a=o.children,t.memoizedState=null,t.child=wo(t,null,a,r)}if(null!==e.memoizedState){if(a=(e=e.child).sibling,l){if(o=o.fallback,(r=ws(e,e.pendingProps)).return=t,0==(2&t.mode)&&(l=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(r.child=l;null!==l;)l.return=r,l=l.sibling;return(a=ws(a,o)).return=t,r.sibling=a,r.childExpirationTime=0,t.memoizedState=Hi,t.child=r,a}return r=Po(t,e.child,o.children,r),t.memoizedState=null,t.child=r}if(e=e.child,l){if(l=o.fallback,(o=Ns(null,a,0,null)).return=t,o.child=e,null!==e&&(e.return=o),0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,o.child=e;null!==e;)e.return=o,e=e.sibling;return(r=Ns(l,a,r,null)).return=t,o.sibling=r,r.effectTag|=2,o.childExpirationTime=0,t.memoizedState=Hi,t.child=o,r}return t.memoizedState=null,t.child=Po(t,e,o.children,r)}function Wi(e,t){e.expirationTime<t&&(e.expirationTime=t);var r=e.alternate;null!==r&&r.expirationTime<t&&(r.expirationTime=t),to(e.return,t)}function Yi(e,t,r,n,a,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailExpiration:0,tailMode:a,lastEffect:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=r,i.tailExpiration=0,i.tailMode=a,i.lastEffect=o)}function Zi(e,t,r){var n=t.pendingProps,a=n.revealOrder,o=n.tail;if(Mi(e,t,n.children,r),0!=(2&(n=Io.current)))n=1&n|2,t.effectTag|=64;else{if(null!==e&&0!=(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Wi(e,r);else if(19===e.tag)Wi(e,r);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(pa(Io,n),0==(2&t.mode))t.memoizedState=null;else switch(a){case"forwards":for(r=t.child,a=null;null!==r;)null!==(e=r.alternate)&&null===jo(e)&&(a=r),r=r.sibling;null===(r=a)?(a=t.child,t.child=null):(a=r.sibling,r.sibling=null),Yi(t,!1,a,r,o,t.lastEffect);break;case"backwards":for(r=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===jo(e)){t.child=a;break}e=a.sibling,a.sibling=r,r=a,a=e}Yi(t,!0,r,null,o,t.lastEffect);break;case"together":Yi(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Ki(e,t,r){null!==e&&(t.dependencies=e.dependencies);var n=t.expirationTime;if(0!==n&&is(n),t.childExpirationTime<r)return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(r=ws(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=ws(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Xi(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;null!==r;)null!==r.alternate&&(n=r),r=r.sibling;null===n?t||null===e.tail?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Qi(e,t,r){var n=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return ma(t.type)&&ga(),null;case 3:return Ro(),sa(da),sa(ua),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||!ki(t)||(t.effectTag|=4),null;case 5:Ao(t),r=Mo(_o.current);var o=t.type;if(null!==e&&null!=t.stateNode)Vi(e,t,o,n,r),e.ref!==t.ref&&(t.effectTag|=128);else{if(!n){if(null===t.stateNode)throw Error(i(166));return null}if(e=Mo(No.current),ki(t)){n=t.stateNode,o=t.type;var l=t.memoizedProps;switch(n[Sr]=t,n[xr]=l,o){case"iframe":case"object":case"embed":Zt("load",n);break;case"video":case"audio":for(e=0;e<Qe.length;e++)Zt(Qe[e],n);break;case"source":Zt("error",n);break;case"img":case"image":case"link":Zt("error",n),Zt("load",n);break;case"form":Zt("reset",n),Zt("submit",n);break;case"details":Zt("toggle",n);break;case"input":Se(n,l),Zt("invalid",n),lr(r,"onChange");break;case"select":n._wrapperState={wasMultiple:!!l.multiple},Zt("invalid",n),lr(r,"onChange");break;case"textarea":Me(n,l),Zt("invalid",n),lr(r,"onChange")}for(var s in ar(o,l),e=null,l)if(l.hasOwnProperty(s)){var p=l[s];"children"===s?"string"==typeof p?n.textContent!==p&&(e=["children",p]):"number"==typeof p&&n.textContent!==""+p&&(e=["children",""+p]):x.hasOwnProperty(s)&&null!=p&&lr(r,s)}switch(o){case"input":Ce(n),we(n,l,!0);break;case"textarea":Ce(n),Re(n);break;case"select":case"option":break;default:"function"==typeof l.onClick&&(n.onclick=sr)}r=e,t.updateQueue=r,null!==r&&(t.effectTag|=4)}else{switch(s=9===r.nodeType?r:r.ownerDocument,e===ir&&(e=Ie(o)),e===ir?"script"===o?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof n.is?e=s.createElement(o,{is:n.is}):(e=s.createElement(o),"select"===o&&(s=e,n.multiple?s.multiple=!0:n.size&&(s.size=n.size))):e=s.createElementNS(e,o),e[Sr]=t,e[xr]=n,Fi(e,t),t.stateNode=e,s=or(o,n),o){case"iframe":case"object":case"embed":Zt("load",e),p=n;break;case"video":case"audio":for(p=0;p<Qe.length;p++)Zt(Qe[p],e);p=n;break;case"source":Zt("error",e),p=n;break;case"img":case"image":case"link":Zt("error",e),Zt("load",e),p=n;break;case"form":Zt("reset",e),Zt("submit",e),p=n;break;case"details":Zt("toggle",e),p=n;break;case"input":Se(e,n),p=Oe(e,n),Zt("invalid",e),lr(r,"onChange");break;case"option":p=Ne(e,n);break;case"select":e._wrapperState={wasMultiple:!!n.multiple},p=a({},n,{value:void 0}),Zt("invalid",e),lr(r,"onChange");break;case"textarea":Me(e,n),p=_e(e,n),Zt("invalid",e),lr(r,"onChange");break;default:p=n}ar(o,p);var c=p;for(l in c)if(c.hasOwnProperty(l)){var u=c[l];"style"===l?rr(e,u):"dangerouslySetInnerHTML"===l?null!=(u=u?u.__html:void 0)&&Ge(e,u):"children"===l?"string"==typeof u?("textarea"!==o||""!==u)&&Fe(e,u):"number"==typeof u&&Fe(e,""+u):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(x.hasOwnProperty(l)?null!=u&&lr(r,l):null!=u&&q(e,l,u,s))}switch(o){case"input":Ce(e),we(e,n,!1);break;case"textarea":Ce(e),Re(e);break;case"option":null!=n.value&&e.setAttribute("value",""+ve(n.value));break;case"select":e.multiple=!!n.multiple,null!=(r=n.value)?Te(e,!!n.multiple,r,!1):null!=n.defaultValue&&Te(e,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof p.onClick&&(e.onclick=sr)}gr(o,n)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)Ui(0,t,e.memoizedProps,n);else{if("string"!=typeof n&&null===t.stateNode)throw Error(i(166));r=Mo(_o.current),Mo(No.current),ki(t)?(r=t.stateNode,n=t.memoizedProps,r[Sr]=t,r.nodeValue!==n&&(t.effectTag|=4)):((r=(9===r.nodeType?r:r.ownerDocument).createTextNode(n))[Sr]=t,t.stateNode=r)}return null;case 13:return sa(Io),n=t.memoizedState,0!=(64&t.effectTag)?(t.expirationTime=r,t):(r=null!==n,n=!1,null===e?void 0!==t.memoizedProps.fallback&&ki(t):(n=null!==(o=e.memoizedState),r||null===o||null!==(o=e.child.sibling)&&(null!==(l=t.firstEffect)?(t.firstEffect=o,o.nextEffect=l):(t.firstEffect=t.lastEffect=o,o.nextEffect=null),o.effectTag=8)),r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Io.current)?kl===Cl&&(kl=El):(kl!==Cl&&kl!==El||(kl=Ol),0!==Ll&&null!==xl&&(Rs(xl,wl),Ds(xl,Ll)))),(r||n)&&(t.effectTag|=4),null);case 4:return Ro(),null;case 10:return eo(t),null;case 17:return ma(t.type)&&ga(),null;case 19:if(sa(Io),null===(n=t.memoizedState))return null;if(o=0!=(64&t.effectTag),null===(l=n.rendering)){if(o)Xi(n,!1);else if(kl!==Cl||null!==e&&0!=(64&e.effectTag))for(l=t.child;null!==l;){if(null!==(e=jo(l))){for(t.effectTag|=64,Xi(n,!1),null!==(o=e.updateQueue)&&(t.updateQueue=o,t.effectTag|=4),null===n.lastEffect&&(t.firstEffect=null),t.lastEffect=n.lastEffect,n=t.child;null!==n;)l=r,(o=n).effectTag&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,null===(e=o.alternate)?(o.childExpirationTime=0,o.expirationTime=l,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null):(o.childExpirationTime=e.childExpirationTime,o.expirationTime=e.expirationTime,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,l=e.dependencies,o.dependencies=null===l?null:{expirationTime:l.expirationTime,firstContext:l.firstContext,responders:l.responders}),n=n.sibling;return pa(Io,1&Io.current|2),t.child}l=l.sibling}}else{if(!o)if(null!==(e=jo(l))){if(t.effectTag|=64,o=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.effectTag|=4),Xi(n,!0),null===n.tail&&"hidden"===n.tailMode&&!l.alternate)return null!==(t=t.lastEffect=n.lastEffect)&&(t.nextEffect=null),null}else 2*Ga()-n.renderingStartTime>n.tailExpiration&&1<r&&(t.effectTag|=64,o=!0,Xi(n,!1),t.expirationTime=t.childExpirationTime=r-1);n.isBackwards?(l.sibling=t.child,t.child=l):(null!==(r=n.last)?r.sibling=l:t.child=l,n.last=l)}return null!==n.tail?(0===n.tailExpiration&&(n.tailExpiration=Ga()+500),r=n.tail,n.rendering=r,n.tail=r.sibling,n.lastEffect=t.lastEffect,n.renderingStartTime=Ga(),r.sibling=null,t=Io.current,pa(Io,o?1&t|2:1&t),r):null}throw Error(i(156,t.tag))}function qi(e){switch(e.tag){case 1:ma(e.type)&&ga();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(Ro(),sa(da),sa(ua),0!=(64&(t=e.effectTag)))throw Error(i(285));return e.effectTag=-4097&t|64,e;case 5:return Ao(e),null;case 13:return sa(Io),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return sa(Io),null;case 4:return Ro(),null;case 10:return eo(e),null;default:return null}}function $i(e,t){return{value:e,source:t,stack:fe(t)}}Fi=function(e,t){for(var r=t.child;null!==r;){if(5===r.tag||6===r.tag)e.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},Vi=function(e,t,r,n,o){var i=e.memoizedProps;if(i!==n){var l,s,p=t.stateNode;switch(Mo(No.current),e=null,r){case"input":i=Oe(p,i),n=Oe(p,n),e=[];break;case"option":i=Ne(p,i),n=Ne(p,n),e=[];break;case"select":i=a({},i,{value:void 0}),n=a({},n,{value:void 0}),e=[];break;case"textarea":i=_e(p,i),n=_e(p,n),e=[];break;default:"function"!=typeof i.onClick&&"function"==typeof n.onClick&&(p.onclick=sr)}for(l in ar(r,n),r=null,i)if(!n.hasOwnProperty(l)&&i.hasOwnProperty(l)&&null!=i[l])if("style"===l)for(s in p=i[l])p.hasOwnProperty(s)&&(r||(r={}),r[s]="");else"dangerouslySetInnerHTML"!==l&&"children"!==l&&"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(x.hasOwnProperty(l)?e||(e=[]):(e=e||[]).push(l,null));for(l in n){var c=n[l];if(p=null!=i?i[l]:void 0,n.hasOwnProperty(l)&&c!==p&&(null!=c||null!=p))if("style"===l)if(p){for(s in p)!p.hasOwnProperty(s)||c&&c.hasOwnProperty(s)||(r||(r={}),r[s]="");for(s in c)c.hasOwnProperty(s)&&p[s]!==c[s]&&(r||(r={}),r[s]=c[s])}else r||(e||(e=[]),e.push(l,r)),r=c;else"dangerouslySetInnerHTML"===l?(c=c?c.__html:void 0,p=p?p.__html:void 0,null!=c&&p!==c&&(e=e||[]).push(l,c)):"children"===l?p===c||"string"!=typeof c&&"number"!=typeof c||(e=e||[]).push(l,""+c):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&(x.hasOwnProperty(l)?(null!=c&&lr(o,l),e||p===c||(e=[])):(e=e||[]).push(l,c))}r&&(e=e||[]).push("style",r),o=e,(t.updateQueue=o)&&(t.effectTag|=4)}},Ui=function(e,t,r,n){r!==n&&(t.effectTag|=4)};var Ji="function"==typeof WeakSet?WeakSet:Set;function el(e,t){var r=t.source,n=t.stack;null===n&&null!==r&&(n=fe(r)),null!==r&&ge(r.type),t=t.value,null!==e&&1===e.tag&&ge(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function tl(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){vs(e,t)}else t.current=null}function rl(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.effectTag&&null!==e){var r=e.memoizedProps,n=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?r:Ka(t.type,r),n),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:case 5:case 6:case 4:case 17:return}throw Error(i(163))}function nl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var r=t=t.next;do{if((r.tag&e)===e){var n=r.destroy;r.destroy=void 0,void 0!==n&&n()}r=r.next}while(r!==t)}}function al(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function ol(e,t,r){switch(r.tag){case 0:case 11:case 15:case 22:return void al(3,r);case 1:if(e=r.stateNode,4&r.effectTag)if(null===t)e.componentDidMount();else{var n=r.elementType===r.type?t.memoizedProps:Ka(r.type,t.memoizedProps);e.componentDidUpdate(n,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=r.updateQueue)&&uo(r,t,e));case 3:if(null!==(t=r.updateQueue)){if(e=null,null!==r.child)switch(r.child.tag){case 5:e=r.child.stateNode;break;case 1:e=r.child.stateNode}uo(r,t,e)}return;case 5:return e=r.stateNode,void(null===t&&4&r.effectTag&&gr(r.type,r.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===r.memoizedState&&(r=r.alternate,null!==r&&(r=r.memoizedState,null!==r&&(r=r.dehydrated,null!==r&&It(r)))));case 19:case 17:case 20:case 21:return}throw Error(i(163))}function il(e,t,r){switch("function"==typeof Os&&Os(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e.next;Ua(97<r?97:r,(function(){var e=n;do{var r=e.destroy;if(void 0!==r){var a=t;try{r()}catch(e){vs(a,e)}}e=e.next}while(e!==n)}))}break;case 1:tl(t),"function"==typeof(r=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){vs(e,t)}}(t,r);break;case 5:tl(t);break;case 4:cl(e,t,r)}}function ll(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&ll(t)}function sl(e){return 5===e.tag||3===e.tag||4===e.tag}function pl(e){e:{for(var t=e.return;null!==t;){if(sl(t)){var r=t;break e}t=t.return}throw Error(i(160))}switch(t=r.stateNode,r.tag){case 5:var n=!1;break;case 3:case 4:t=t.containerInfo,n=!0;break;default:throw Error(i(161))}16&r.effectTag&&(Fe(t,""),r.effectTag&=-17);e:t:for(r=e;;){for(;null===r.sibling;){if(null===r.return||sl(r.return)){r=null;break e}r=r.return}for(r.sibling.return=r.return,r=r.sibling;5!==r.tag&&6!==r.tag&&18!==r.tag;){if(2&r.effectTag)continue t;if(null===r.child||4===r.tag)continue t;r.child.return=r,r=r.child}if(!(2&r.effectTag)){r=r.stateNode;break e}}n?function e(t,r,n){var a=t.tag,o=5===a||6===a;if(o)t=o?t.stateNode:t.stateNode.instance,r?8===n.nodeType?n.parentNode.insertBefore(t,r):n.insertBefore(t,r):(8===n.nodeType?(r=n.parentNode).insertBefore(t,n):(r=n).appendChild(t),null!==(n=n._reactRootContainer)&&void 0!==n||null!==r.onclick||(r.onclick=sr));else if(4!==a&&null!==(t=t.child))for(e(t,r,n),t=t.sibling;null!==t;)e(t,r,n),t=t.sibling}(e,r,t):function e(t,r,n){var a=t.tag,o=5===a||6===a;if(o)t=o?t.stateNode:t.stateNode.instance,r?n.insertBefore(t,r):n.appendChild(t);else if(4!==a&&null!==(t=t.child))for(e(t,r,n),t=t.sibling;null!==t;)e(t,r,n),t=t.sibling}(e,r,t)}function cl(e,t,r){for(var n,a,o=t,l=!1;;){if(!l){l=o.return;e:for(;;){if(null===l)throw Error(i(160));switch(n=l.stateNode,l.tag){case 5:a=!1;break e;case 3:case 4:n=n.containerInfo,a=!0;break e}l=l.return}l=!0}if(5===o.tag||6===o.tag){e:for(var s=e,p=o,c=r,u=p;;)if(il(s,u,c),null!==u.child&&4!==u.tag)u.child.return=u,u=u.child;else{if(u===p)break e;for(;null===u.sibling;){if(null===u.return||u.return===p)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}a?(s=n,p=o.stateNode,8===s.nodeType?s.parentNode.removeChild(p):s.removeChild(p)):n.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){n=o.stateNode.containerInfo,a=!0,o.child.return=o,o=o.child;continue}}else if(il(e,o,r),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(l=!1)}o.sibling.return=o.return,o=o.sibling}}function ul(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void nl(3,t);case 1:return;case 5:var r=t.stateNode;if(null!=r){var n=t.memoizedProps,a=null!==e?e.memoizedProps:n;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(r[xr]=n,"input"===e&&"radio"===n.type&&null!=n.name&&xe(r,n),or(e,a),t=or(e,n),a=0;a<o.length;a+=2){var l=o[a],s=o[a+1];"style"===l?rr(r,s):"dangerouslySetInnerHTML"===l?Ge(r,s):"children"===l?Fe(r,s):q(r,l,s,t)}switch(e){case"input":Pe(r,n);break;case"textarea":Le(r,n);break;case"select":t=r._wrapperState.wasMultiple,r._wrapperState.wasMultiple=!!n.multiple,null!=(e=n.value)?Te(r,!!n.multiple,e,!1):t!==!!n.multiple&&(null!=n.defaultValue?Te(r,!!n.multiple,n.defaultValue,!0):Te(r,!!n.multiple,n.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(i(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,It(t.containerInfo)));case 12:return;case 13:if(r=t,null===t.memoizedState?n=!1:(n=!0,r=t.child,Dl=Ga()),null!==r)e:for(e=r;;){if(5===e.tag)o=e.stateNode,n?"function"==typeof(o=o.style).setProperty?o.setProperty("display","none","important"):o.display="none":(o=e.stateNode,a=null!=(a=e.memoizedProps.style)&&a.hasOwnProperty("display")?a.display:null,o.style.display=tr("display",a));else if(6===e.tag)e.stateNode.nodeValue=n?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(o=e.child.sibling).return=e,e=o;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===r)break;for(;null===e.sibling;){if(null===e.return||e.return===r)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void dl(t);case 19:return void dl(t);case 17:return}throw Error(i(163))}function dl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var r=e.stateNode;null===r&&(r=e.stateNode=new Ji),t.forEach((function(t){var n=Cs.bind(null,e,t);r.has(t)||(r.add(t),t.then(n,n))}))}}var hl="function"==typeof WeakMap?WeakMap:Map;function bl(e,t,r){(r=lo(r,null)).tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Il||(Il=!0,jl=n),el(e,t)},r}function ml(e,t,r){(r=lo(r,null)).tag=3;var n=e.type.getDerivedStateFromError;if("function"==typeof n){var a=t.value;r.payload=function(){return el(e,t),n(a)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(r.callback=function(){"function"!=typeof n&&(null===zl?zl=new Set([this]):zl.add(this),el(e,t));var r=t.stack;this.componentDidCatch(t.value,{componentStack:null!==r?r:""})}),r}var gl,fl=Math.ceil,vl=Q.ReactCurrentDispatcher,yl=Q.ReactCurrentOwner,Cl=0,El=3,Ol=4,Sl=0,xl=null,Pl=null,wl=0,kl=Cl,Nl=null,Tl=1073741823,_l=1073741823,Ml=null,Ll=0,Rl=!1,Dl=0,Al=null,Il=!1,jl=null,zl=null,Gl=!1,Fl=null,Vl=90,Ul=null,Hl=0,Bl=null,Wl=0;function Yl(){return 0!=(48&Sl)?1073741821-(Ga()/10|0):0!==Wl?Wl:Wl=1073741821-(Ga()/10|0)}function Zl(e,t,r){if(0==(2&(t=t.mode)))return 1073741823;var n=Fa();if(0==(4&t))return 99===n?1073741823:1073741822;if(0!=(16&Sl))return wl;if(null!==r)e=Za(e,0|r.timeoutMs||5e3,250);else switch(n){case 99:e=1073741823;break;case 98:e=Za(e,150,100);break;case 97:case 96:e=Za(e,5e3,250);break;case 95:e=2;break;default:throw Error(i(326))}return null!==xl&&e===wl&&--e,e}function Kl(e,t){if(50<Hl)throw Hl=0,Bl=null,Error(i(185));if(null!==(e=Xl(e,t))){var r=Fa();1073741823===t?0!=(8&Sl)&&0==(48&Sl)?Jl(e):(ql(e),0===Sl&&Wa()):ql(e),0==(4&Sl)||98!==r&&99!==r||(null===Ul?Ul=new Map([[e,t]]):(void 0===(r=Ul.get(e))||r>t)&&Ul.set(e,t))}}function Xl(e,t){e.expirationTime<t&&(e.expirationTime=t);var r=e.alternate;null!==r&&r.expirationTime<t&&(r.expirationTime=t);var n=e.return,a=null;if(null===n&&3===e.tag)a=e.stateNode;else for(;null!==n;){if(r=n.alternate,n.childExpirationTime<t&&(n.childExpirationTime=t),null!==r&&r.childExpirationTime<t&&(r.childExpirationTime=t),null===n.return&&3===n.tag){a=n.stateNode;break}n=n.return}return null!==a&&(xl===a&&(is(t),kl===Ol&&Rs(a,wl)),Ds(a,t)),a}function Ql(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!Ls(e,t=e.firstPendingTime))return t;var r=e.lastPingedTime;return 2>=(e=r>(e=e.nextKnownPendingLevel)?r:e)&&t!==e?0:e}function ql(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Ba(Jl.bind(null,e));else{var t=Ql(e),r=e.callbackNode;if(0===t)null!==r&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var n=Yl();if(1073741823===t?n=99:1===t||2===t?n=95:n=0>=(n=10*(1073741821-t)-10*(1073741821-n))?99:250>=n?98:5250>=n?97:95,null!==r){var a=e.callbackPriority;if(e.callbackExpirationTime===t&&a>=n)return;r!==La&&Sa(r)}e.callbackExpirationTime=t,e.callbackPriority=n,t=1073741823===t?Ba(Jl.bind(null,e)):Ha(n,$l.bind(null,e),{timeout:10*(1073741821-t)-Ga()}),e.callbackNode=t}}}function $l(e,t){if(Wl=0,t)return As(e,t=Yl()),ql(e),null;var r=Ql(e);if(0!==r){if(t=e.callbackNode,0!=(48&Sl))throw Error(i(327));if(ms(),e===xl&&r===wl||rs(e,r),null!==Pl){var n=Sl;Sl|=16;for(var a=as();;)try{ss();break}catch(t){ns(e,t)}if(Ja(),Sl=n,vl.current=a,1===kl)throw t=Nl,rs(e,r),Rs(e,r),ql(e),t;if(null===Pl)switch(a=e.finishedWork=e.current.alternate,e.finishedExpirationTime=r,n=kl,xl=null,n){case Cl:case 1:throw Error(i(345));case 2:As(e,2<r?2:r);break;case El:if(Rs(e,r),r===(n=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=us(a)),1073741823===Tl&&10<(a=Dl+500-Ga())){if(Rl){var o=e.lastPingedTime;if(0===o||o>=r){e.lastPingedTime=r,rs(e,r);break}}if(0!==(o=Ql(e))&&o!==r)break;if(0!==n&&n!==r){e.lastPingedTime=n;break}e.timeoutHandle=vr(ds.bind(null,e),a);break}ds(e);break;case Ol:if(Rs(e,r),r===(n=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=us(a)),Rl&&(0===(a=e.lastPingedTime)||a>=r)){e.lastPingedTime=r,rs(e,r);break}if(0!==(a=Ql(e))&&a!==r)break;if(0!==n&&n!==r){e.lastPingedTime=n;break}if(1073741823!==_l?n=10*(1073741821-_l)-Ga():1073741823===Tl?n=0:(n=10*(1073741821-Tl)-5e3,0>(n=(a=Ga())-n)&&(n=0),(r=10*(1073741821-r)-a)<(n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*fl(n/1960))-n)&&(n=r)),10<n){e.timeoutHandle=vr(ds.bind(null,e),n);break}ds(e);break;case 5:if(1073741823!==Tl&&null!==Ml){o=Tl;var l=Ml;if(0>=(n=0|l.busyMinDurationMs)?n=0:(a=0|l.busyDelayMs,n=(o=Ga()-(10*(1073741821-o)-(0|l.timeoutMs||5e3)))<=a?0:a+n-o),10<n){Rs(e,r),e.timeoutHandle=vr(ds.bind(null,e),n);break}}ds(e);break;default:throw Error(i(329))}if(ql(e),e.callbackNode===t)return $l.bind(null,e)}}return null}function Jl(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,0!=(48&Sl))throw Error(i(327));if(ms(),e===xl&&t===wl||rs(e,t),null!==Pl){var r=Sl;Sl|=16;for(var n=as();;)try{ls();break}catch(t){ns(e,t)}if(Ja(),Sl=r,vl.current=n,1===kl)throw r=Nl,rs(e,t),Rs(e,t),ql(e),r;if(null!==Pl)throw Error(i(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,xl=null,ds(e),ql(e)}return null}function es(e,t){var r=Sl;Sl|=1;try{return e(t)}finally{0===(Sl=r)&&Wa()}}function ts(e,t){var r=Sl;Sl&=-2,Sl|=8;try{return e(t)}finally{0===(Sl=r)&&Wa()}}function rs(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,yr(r)),null!==Pl)for(r=Pl.return;null!==r;){var n=r;switch(n.tag){case 1:null!=(n=n.type.childContextTypes)&&ga();break;case 3:Ro(),sa(da),sa(ua);break;case 5:Ao(n);break;case 4:Ro();break;case 13:case 19:sa(Io);break;case 10:eo(n)}r=r.return}xl=e,Pl=ws(e.current,null),wl=t,kl=Cl,Nl=null,_l=Tl=1073741823,Ml=null,Ll=0,Rl=!1}function ns(e,t){for(;;){try{if(Ja(),Go.current=gi,Wo)for(var r=Uo.memoizedState;null!==r;){var n=r.queue;null!==n&&(n.pending=null),r=r.next}if(Vo=0,Bo=Ho=Uo=null,Wo=!1,null===Pl||null===Pl.return)return kl=1,Nl=t,Pl=null;e:{var a=e,o=Pl.return,i=Pl,l=t;if(t=wl,i.effectTag|=2048,i.firstEffect=i.lastEffect=null,null!==l&&"object"==typeof l&&"function"==typeof l.then){var s=l;if(0==(2&i.mode)){var p=i.alternate;p?(i.updateQueue=p.updateQueue,i.memoizedState=p.memoizedState,i.expirationTime=p.expirationTime):(i.updateQueue=null,i.memoizedState=null)}var c=0!=(1&Io.current),u=o;do{var d;if(d=13===u.tag){var h=u.memoizedState;if(null!==h)d=null!==h.dehydrated;else{var b=u.memoizedProps;d=void 0!==b.fallback&&(!0!==b.unstable_avoidThisFallback||!c)}}if(d){var m=u.updateQueue;if(null===m){var g=new Set;g.add(s),u.updateQueue=g}else m.add(s);if(0==(2&u.mode)){if(u.effectTag|=64,i.effectTag&=-2981,1===i.tag)if(null===i.alternate)i.tag=17;else{var f=lo(1073741823,null);f.tag=2,so(i,f)}i.expirationTime=1073741823;break e}l=void 0,i=t;var v=a.pingCache;if(null===v?(v=a.pingCache=new hl,l=new Set,v.set(s,l)):void 0===(l=v.get(s))&&(l=new Set,v.set(s,l)),!l.has(i)){l.add(i);var y=ys.bind(null,a,s,i);s.then(y,y)}u.effectTag|=4096,u.expirationTime=t;break e}u=u.return}while(null!==u);l=Error((ge(i.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+fe(i))}5!==kl&&(kl=2),l=$i(l,i),u=o;do{switch(u.tag){case 3:s=l,u.effectTag|=4096,u.expirationTime=t,po(u,bl(u,s,t));break e;case 1:s=l;var C=u.type,E=u.stateNode;if(0==(64&u.effectTag)&&("function"==typeof C.getDerivedStateFromError||null!==E&&"function"==typeof E.componentDidCatch&&(null===zl||!zl.has(E)))){u.effectTag|=4096,u.expirationTime=t,po(u,ml(u,s,t));break e}}u=u.return}while(null!==u)}Pl=cs(Pl)}catch(e){t=e;continue}break}}function as(){var e=vl.current;return vl.current=gi,null===e?gi:e}function os(e,t){e<Tl&&2<e&&(Tl=e),null!==t&&e<_l&&2<e&&(_l=e,Ml=t)}function is(e){e>Ll&&(Ll=e)}function ls(){for(;null!==Pl;)Pl=ps(Pl)}function ss(){for(;null!==Pl&&!Ra();)Pl=ps(Pl)}function ps(e){var t=gl(e.alternate,e,wl);return e.memoizedProps=e.pendingProps,null===t&&(t=cs(e)),yl.current=null,t}function cs(e){Pl=e;do{var t=Pl.alternate;if(e=Pl.return,0==(2048&Pl.effectTag)){if(t=Qi(t,Pl,wl),1===wl||1!==Pl.childExpirationTime){for(var r=0,n=Pl.child;null!==n;){var a=n.expirationTime,o=n.childExpirationTime;a>r&&(r=a),o>r&&(r=o),n=n.sibling}Pl.childExpirationTime=r}if(null!==t)return t;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Pl.firstEffect),null!==Pl.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Pl.firstEffect),e.lastEffect=Pl.lastEffect),1<Pl.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Pl:e.firstEffect=Pl,e.lastEffect=Pl))}else{if(null!==(t=qi(Pl)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=Pl.sibling))return t;Pl=e}while(null!==Pl);return kl===Cl&&(kl=5),null}function us(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function ds(e){var t=Fa();return Ua(99,hs.bind(null,e,t)),null}function hs(e,t){do{ms()}while(null!==Fl);if(0!=(48&Sl))throw Error(i(327));var r=e.finishedWork,n=e.finishedExpirationTime;if(null===r)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,r===e.current)throw Error(i(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var a=us(r);if(e.firstPendingTime=a,n<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:n<=e.firstSuspendedTime&&(e.firstSuspendedTime=n-1),n<=e.lastPingedTime&&(e.lastPingedTime=0),n<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===xl&&(Pl=xl=null,wl=0),1<r.effectTag?null!==r.lastEffect?(r.lastEffect.nextEffect=r,a=r.firstEffect):a=r:a=r.firstEffect,null!==a){var o=Sl;Sl|=32,yl.current=null,br=Yt;var l=dr();if(hr(l)){if("selectionStart"in l)var s={start:l.selectionStart,end:l.selectionEnd};else e:{var p=(s=(s=l.ownerDocument)&&s.defaultView||window).getSelection&&s.getSelection();if(p&&0!==p.rangeCount){s=p.anchorNode;var c=p.anchorOffset,u=p.focusNode;p=p.focusOffset;try{s.nodeType,u.nodeType}catch(e){s=null;break e}var d=0,h=-1,b=-1,m=0,g=0,f=l,v=null;t:for(;;){for(var y;f!==s||0!==c&&3!==f.nodeType||(h=d+c),f!==u||0!==p&&3!==f.nodeType||(b=d+p),3===f.nodeType&&(d+=f.nodeValue.length),null!==(y=f.firstChild);)v=f,f=y;for(;;){if(f===l)break t;if(v===s&&++m===c&&(h=d),v===u&&++g===p&&(b=d),null!==(y=f.nextSibling))break;v=(f=v).parentNode}f=y}s=-1===h||-1===b?null:{start:h,end:b}}else s=null}s=s||{start:0,end:0}}else s=null;mr={activeElementDetached:null,focusedElem:l,selectionRange:s},Yt=!1,Al=a;do{try{bs()}catch(e){if(null===Al)throw Error(i(330));vs(Al,e),Al=Al.nextEffect}}while(null!==Al);Al=a;do{try{for(l=e,s=t;null!==Al;){var C=Al.effectTag;if(16&C&&Fe(Al.stateNode,""),128&C){var E=Al.alternate;if(null!==E){var O=E.ref;null!==O&&("function"==typeof O?O(null):O.current=null)}}switch(1038&C){case 2:pl(Al),Al.effectTag&=-3;break;case 6:pl(Al),Al.effectTag&=-3,ul(Al.alternate,Al);break;case 1024:Al.effectTag&=-1025;break;case 1028:Al.effectTag&=-1025,ul(Al.alternate,Al);break;case 4:ul(Al.alternate,Al);break;case 8:cl(l,c=Al,s),ll(c)}Al=Al.nextEffect}}catch(e){if(null===Al)throw Error(i(330));vs(Al,e),Al=Al.nextEffect}}while(null!==Al);if(O=mr,E=dr(),C=O.focusedElem,s=O.selectionRange,E!==C&&C&&C.ownerDocument&&function e(t,r){return!(!t||!r)&&(t===r||(!t||3!==t.nodeType)&&(r&&3===r.nodeType?e(t,r.parentNode):"contains"in t?t.contains(r):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(r))))}(C.ownerDocument.documentElement,C)){null!==s&&hr(C)&&(E=s.start,void 0===(O=s.end)&&(O=E),"selectionStart"in C?(C.selectionStart=E,C.selectionEnd=Math.min(O,C.value.length)):(O=(E=C.ownerDocument||document)&&E.defaultView||window).getSelection&&(O=O.getSelection(),c=C.textContent.length,l=Math.min(s.start,c),s=void 0===s.end?l:Math.min(s.end,c),!O.extend&&l>s&&(c=s,s=l,l=c),c=ur(C,l),u=ur(C,s),c&&u&&(1!==O.rangeCount||O.anchorNode!==c.node||O.anchorOffset!==c.offset||O.focusNode!==u.node||O.focusOffset!==u.offset)&&((E=E.createRange()).setStart(c.node,c.offset),O.removeAllRanges(),l>s?(O.addRange(E),O.extend(u.node,u.offset)):(E.setEnd(u.node,u.offset),O.addRange(E))))),E=[];for(O=C;O=O.parentNode;)1===O.nodeType&&E.push({element:O,left:O.scrollLeft,top:O.scrollTop});for("function"==typeof C.focus&&C.focus(),C=0;C<E.length;C++)(O=E[C]).element.scrollLeft=O.left,O.element.scrollTop=O.top}Yt=!!br,mr=br=null,e.current=r,Al=a;do{try{for(C=e;null!==Al;){var S=Al.effectTag;if(36&S&&ol(C,Al.alternate,Al),128&S){E=void 0;var x=Al.ref;if(null!==x){var P=Al.stateNode;switch(Al.tag){case 5:E=P;break;default:E=P}"function"==typeof x?x(E):x.current=E}}Al=Al.nextEffect}}catch(e){if(null===Al)throw Error(i(330));vs(Al,e),Al=Al.nextEffect}}while(null!==Al);Al=null,Da(),Sl=o}else e.current=r;if(Gl)Gl=!1,Fl=e,Vl=t;else for(Al=a;null!==Al;)t=Al.nextEffect,Al.nextEffect=null,Al=t;if(0===(t=e.firstPendingTime)&&(zl=null),1073741823===t?e===Bl?Hl++:(Hl=0,Bl=e):Hl=0,"function"==typeof Es&&Es(r.stateNode,n),ql(e),Il)throw Il=!1,e=jl,jl=null,e;return 0!=(8&Sl)||Wa(),null}function bs(){for(;null!==Al;){var e=Al.effectTag;0!=(256&e)&&rl(Al.alternate,Al),0==(512&e)||Gl||(Gl=!0,Ha(97,(function(){return ms(),null}))),Al=Al.nextEffect}}function ms(){if(90!==Vl){var e=97<Vl?97:Vl;return Vl=90,Ua(e,gs)}}function gs(){if(null===Fl)return!1;var e=Fl;if(Fl=null,0!=(48&Sl))throw Error(i(331));var t=Sl;for(Sl|=32,e=e.current.firstEffect;null!==e;){try{var r=e;if(0!=(512&r.effectTag))switch(r.tag){case 0:case 11:case 15:case 22:nl(5,r),al(5,r)}}catch(t){if(null===e)throw Error(i(330));vs(e,t)}r=e.nextEffect,e.nextEffect=null,e=r}return Sl=t,Wa(),!0}function fs(e,t,r){so(e,t=bl(e,t=$i(r,t),1073741823)),null!==(e=Xl(e,1073741823))&&ql(e)}function vs(e,t){if(3===e.tag)fs(e,e,t);else for(var r=e.return;null!==r;){if(3===r.tag){fs(r,e,t);break}if(1===r.tag){var n=r.stateNode;if("function"==typeof r.type.getDerivedStateFromError||"function"==typeof n.componentDidCatch&&(null===zl||!zl.has(n))){so(r,e=ml(r,e=$i(t,e),1073741823)),null!==(r=Xl(r,1073741823))&&ql(r);break}}r=r.return}}function ys(e,t,r){var n=e.pingCache;null!==n&&n.delete(t),xl===e&&wl===r?kl===Ol||kl===El&&1073741823===Tl&&Ga()-Dl<500?rs(e,wl):Rl=!0:Ls(e,r)&&(0!==(t=e.lastPingedTime)&&t<r||(e.lastPingedTime=r,ql(e)))}function Cs(e,t){var r=e.stateNode;null!==r&&r.delete(t),0===(t=0)&&(t=Zl(t=Yl(),e,null)),null!==(e=Xl(e,t))&&ql(e)}gl=function(e,t,r){var n=t.expirationTime;if(null!==e){var a=t.pendingProps;if(e.memoizedProps!==a||da.current)_i=!0;else{if(n<r){switch(_i=!1,t.tag){case 3:Gi(t),Ni();break;case 5:if(Do(t),4&t.mode&&1!==r&&a.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:ma(t.type)&&ya(t);break;case 4:Lo(t,t.stateNode.containerInfo);break;case 10:n=t.memoizedProps.value,a=t.type._context,pa(Xa,a._currentValue),a._currentValue=n;break;case 13:if(null!==t.memoizedState)return 0!==(n=t.child.childExpirationTime)&&n>=r?Bi(e,t,r):(pa(Io,1&Io.current),null!==(t=Ki(e,t,r))?t.sibling:null);pa(Io,1&Io.current);break;case 19:if(n=t.childExpirationTime>=r,0!=(64&e.effectTag)){if(n)return Zi(e,t,r);t.effectTag|=64}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null),pa(Io,Io.current),!n)return null}return Ki(e,t,r)}_i=!1}}else _i=!1;switch(t.expirationTime=0,t.tag){case 2:if(n=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,a=ba(t,ua.current),ro(t,r),a=Ko(null,t,n,e,a,r),t.effectTag|=1,"object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,ma(n)){var o=!0;ya(t)}else o=!1;t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,oo(t);var l=n.getDerivedStateFromProps;"function"==typeof l&&mo(t,n,l,e),a.updater=go,t.stateNode=a,a._reactInternalFiber=t,Co(t,n,e,r),t=zi(null,t,n,!0,o,r)}else t.tag=0,Mi(null,t,a,r),t=t.child;return t;case 16:e:{if(a=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(a),1!==a._status)throw a._result;switch(a=a._result,t.type=a,o=t.tag=function(e){if("function"==typeof e)return Ps(e)?1:0;if(null!=e){if((e=e.$$typeof)===se)return 11;if(e===ue)return 14}return 2}(a),e=Ka(a,e),o){case 0:t=Ii(null,t,a,e,r);break e;case 1:t=ji(null,t,a,e,r);break e;case 11:t=Li(null,t,a,e,r);break e;case 14:t=Ri(null,t,a,Ka(a.type,e),n,r);break e}throw Error(i(306,a,""))}return t;case 0:return n=t.type,a=t.pendingProps,Ii(e,t,n,a=t.elementType===n?a:Ka(n,a),r);case 1:return n=t.type,a=t.pendingProps,ji(e,t,n,a=t.elementType===n?a:Ka(n,a),r);case 3:if(Gi(t),n=t.updateQueue,null===e||null===n)throw Error(i(282));if(n=t.pendingProps,a=null!==(a=t.memoizedState)?a.element:null,io(e,t),co(t,n,null,r),(n=t.memoizedState.element)===a)Ni(),t=Ki(e,t,r);else{if((a=t.stateNode.hydrate)&&(Ei=Cr(t.stateNode.containerInfo.firstChild),Ci=t,a=Oi=!0),a)for(r=wo(t,null,n,r),t.child=r;r;)r.effectTag=-3&r.effectTag|1024,r=r.sibling;else Mi(e,t,n,r),Ni();t=t.child}return t;case 5:return Do(t),null===e&&Pi(t),n=t.type,a=t.pendingProps,o=null!==e?e.memoizedProps:null,l=a.children,fr(n,a)?l=null:null!==o&&fr(n,o)&&(t.effectTag|=16),Ai(e,t),4&t.mode&&1!==r&&a.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Mi(e,t,l,r),t=t.child),t;case 6:return null===e&&Pi(t),null;case 13:return Bi(e,t,r);case 4:return Lo(t,t.stateNode.containerInfo),n=t.pendingProps,null===e?t.child=Po(t,null,n,r):Mi(e,t,n,r),t.child;case 11:return n=t.type,a=t.pendingProps,Li(e,t,n,a=t.elementType===n?a:Ka(n,a),r);case 7:return Mi(e,t,t.pendingProps,r),t.child;case 8:case 12:return Mi(e,t,t.pendingProps.children,r),t.child;case 10:e:{n=t.type._context,a=t.pendingProps,l=t.memoizedProps,o=a.value;var s=t.type._context;if(pa(Xa,s._currentValue),s._currentValue=o,null!==l)if(s=l.value,0===(o=jn(s,o)?0:0|("function"==typeof n._calculateChangedBits?n._calculateChangedBits(s,o):1073741823))){if(l.children===a.children&&!da.current){t=Ki(e,t,r);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var p=s.dependencies;if(null!==p){l=s.child;for(var c=p.firstContext;null!==c;){if(c.context===n&&0!=(c.observedBits&o)){1===s.tag&&((c=lo(r,null)).tag=2,so(s,c)),s.expirationTime<r&&(s.expirationTime=r),null!==(c=s.alternate)&&c.expirationTime<r&&(c.expirationTime=r),to(s.return,r),p.expirationTime<r&&(p.expirationTime=r);break}c=c.next}}else l=10===s.tag&&s.type===t.type?null:s.child;if(null!==l)l.return=s;else for(l=s;null!==l;){if(l===t){l=null;break}if(null!==(s=l.sibling)){s.return=l.return,l=s;break}l=l.return}s=l}Mi(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,n=(o=t.pendingProps).children,ro(t,r),n=n(a=no(a,o.unstable_observedBits)),t.effectTag|=1,Mi(e,t,n,r),t.child;case 14:return o=Ka(a=t.type,t.pendingProps),Ri(e,t,a,o=Ka(a.type,o),n,r);case 15:return Di(e,t,t.type,t.pendingProps,n,r);case 17:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Ka(n,a),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,ma(n)?(e=!0,ya(t)):e=!1,ro(t,r),vo(t,n,a),Co(t,n,a,r),zi(null,t,n,!0,e,r);case 19:return Zi(e,t,r)}throw Error(i(156,t.tag))};var Es=null,Os=null;function Ss(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function xs(e,t,r,n){return new Ss(e,t,r,n)}function Ps(e){return!(!(e=e.prototype)||!e.isReactComponent)}function ws(e,t){var r=e.alternate;return null===r?((r=xs(e.tag,t,e.key,e.mode)).elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.effectTag=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.childExpirationTime=e.childExpirationTime,r.expirationTime=e.expirationTime,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function ks(e,t,r,n,a,o){var l=2;if(n=e,"function"==typeof e)Ps(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case re:return Ns(r.children,a,o,t);case le:l=8,a|=7;break;case ne:l=8,a|=1;break;case ae:return(e=xs(12,r,t,8|a)).elementType=ae,e.type=ae,e.expirationTime=o,e;case pe:return(e=xs(13,r,t,a)).type=pe,e.elementType=pe,e.expirationTime=o,e;case ce:return(e=xs(19,r,t,a)).elementType=ce,e.expirationTime=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case oe:l=10;break e;case ie:l=9;break e;case se:l=11;break e;case ue:l=14;break e;case de:l=16,n=null;break e;case he:l=22;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=xs(l,r,t,a)).elementType=e,t.type=n,t.expirationTime=o,t}function Ns(e,t,r,n){return(e=xs(7,e,n,t)).expirationTime=r,e}function Ts(e,t,r){return(e=xs(6,e,null,t)).expirationTime=r,e}function _s(e,t,r){return(t=xs(4,null!==e.children?e.children:[],e.key,t)).expirationTime=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ms(e,t,r){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=r,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Ls(e,t){var r=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==r&&r>=t&&e<=t}function Rs(e,t){var r=e.firstSuspendedTime,n=e.lastSuspendedTime;r<t&&(e.firstSuspendedTime=t),(n>t||0===r)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Ds(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var r=e.firstSuspendedTime;0!==r&&(t>=r?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function As(e,t){var r=e.lastExpiredTime;(0===r||r>t)&&(e.lastExpiredTime=t)}function Is(e,t,r,n){var a=t.current,o=Yl(),l=ho.suspense;o=Zl(o,a,l);e:if(r){t:{if(Je(r=r._reactInternalFiber)!==r||1!==r.tag)throw Error(i(170));var s=r;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(ma(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);throw Error(i(171))}if(1===r.tag){var p=r.type;if(ma(p)){r=va(r,p,s);break e}}r=s}else r=ca;return null===t.context?t.context=r:t.pendingContext=r,(t=lo(o,l)).payload={element:e},null!==(n=void 0===n?null:n)&&(t.callback=n),so(a,t),Kl(a,o),o}function js(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function zs(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function Gs(e,t){zs(e,t),(e=e.alternate)&&zs(e,t)}function Fs(e,t,r){var n=new Ms(e,t,r=null!=r&&!0===r.hydrate),a=xs(3,null,null,2===t?7:1===t?3:0);n.current=a,a.stateNode=n,oo(a),e[Pr]=n.current,r&&0!==t&&function(e,t){var r=$e(t);wt.forEach((function(e){bt(e,t,r)})),kt.forEach((function(e){bt(e,t,r)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=n}function Vs(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Us(e,t,r,n,a){var o=r._reactRootContainer;if(o){var i=o._internalRoot;if("function"==typeof a){var l=a;a=function(){var e=js(i);l.call(e)}}Is(t,i,e,a)}else{if(o=r._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var r;r=e.lastChild;)e.removeChild(r);return new Fs(e,0,t?{hydrate:!0}:void 0)}(r,n),i=o._internalRoot,"function"==typeof a){var s=a;a=function(){var e=js(i);s.call(e)}}ts((function(){Is(t,i,e,a)}))}return js(i)}function Hs(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:te,key:null==n?null:""+n,children:e,containerInfo:t,implementation:r}}function Bs(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Vs(t))throw Error(i(200));return Hs(e,t,null,r)}Fs.prototype.render=function(e){Is(e,this._internalRoot,null,null)},Fs.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Is(null,e,null,(function(){t[Pr]=null}))},mt=function(e){if(13===e.tag){var t=Za(Yl(),150,100);Kl(e,t),Gs(e,t)}},gt=function(e){13===e.tag&&(Kl(e,3),Gs(e,3))},ft=function(e){if(13===e.tag){var t=Yl();Kl(e,t=Zl(t,e,null)),Gs(e,t)}},N=function(e,t,r){switch(t){case"input":if(Pe(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var a=Tr(n);if(!a)throw Error(i(90));Ee(n),Pe(n,a)}}}break;case"textarea":Le(e,r);break;case"select":null!=(t=r.value)&&Te(e,!!r.multiple,t,!1)}},D=es,A=function(e,t,r,n,a){var o=Sl;Sl|=4;try{return Ua(98,e.bind(null,t,r,n,a))}finally{0===(Sl=o)&&Wa()}},I=function(){0==(49&Sl)&&(function(){if(null!==Ul){var e=Ul;Ul=null,e.forEach((function(e,t){As(t,e),ql(t)})),Wa()}}(),ms())},j=function(e,t){var r=Sl;Sl|=2;try{return e(t)}finally{0===(Sl=r)&&Wa()}};var Ws,Ys,Zs={Events:[kr,Nr,Tr,w,S,Ir,function(e){at(e,Ar)},L,R,qt,lt,ms,{current:!1}]};Ys=(Ws={findFiberByHostInstance:wr,bundleType:0,version:"16.13.1",rendererPackageName:"react-dom"}).findFiberByHostInstance,function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var r=t.inject(e);Es=function(e){try{t.onCommitFiberRoot(r,e,void 0,64==(64&e.current.effectTag))}catch(e){}},Os=function(e){try{t.onCommitFiberUnmount(r,e)}catch(e){}}}catch(e){}}(a({},Ws,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Q.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=rt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return Ys?Ys(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null})),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Zs,t.createPortal=Bs,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw Error(i(188));throw Error(i(268,Object.keys(e)))}return e=null===(e=rt(t))?null:e.stateNode},t.flushSync=function(e,t){if(0!=(48&Sl))throw Error(i(187));var r=Sl;Sl|=1;try{return Ua(99,e.bind(null,t))}finally{Sl=r,Wa()}},t.hydrate=function(e,t,r){if(!Vs(t))throw Error(i(200));return Us(null,e,t,!0,r)},t.render=function(e,t,r){if(!Vs(t))throw Error(i(200));return Us(null,e,t,!1,r)},t.unmountComponentAtNode=function(e){if(!Vs(e))throw Error(i(40));return!!e._reactRootContainer&&(ts((function(){Us(null,null,e,!1,(function(){e._reactRootContainer=null,e[Pr]=null}))})),!0)},t.unstable_batchedUpdates=es,t.unstable_createPortal=function(e,t){return Bs(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Vs(r))throw Error(i(200));if(null==e||void 0===e._reactInternalFiber)throw Error(i(38));return Us(e,t,r,!1,n)},t.version="16.13.1"},function(e,t,r){"use strict";e.exports=r(21)},function(e,t,r){"use strict";
  /** @license React v0.19.1
   * scheduler.production.min.js
   *
   * Copyright (c) Facebook, Inc. and its affiliates.
   *
   * This source code is licensed under the MIT license found in the
   * LICENSE file in the root directory of this source tree.
   */var n,a,o,i,l;if("undefined"==typeof window||"function"!=typeof MessageChannel){var s=null,p=null,c=function(){if(null!==s)try{var e=t.unstable_now();s(!0,e),s=null}catch(e){throw setTimeout(c,0),e}},u=Date.now();t.unstable_now=function(){return Date.now()-u},n=function(e){null!==s?setTimeout(n,0,e):(s=e,setTimeout(c,0))},a=function(e,t){p=setTimeout(e,t)},o=function(){clearTimeout(p)},i=function(){return!1},l=t.unstable_forceFrameRate=function(){}}else{var d=window.performance,h=window.Date,b=window.setTimeout,m=window.clearTimeout;if("undefined"!=typeof console){var g=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof g&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof d&&"function"==typeof d.now)t.unstable_now=function(){return d.now()};else{var f=h.now();t.unstable_now=function(){return h.now()-f}}var v=!1,y=null,C=-1,E=5,O=0;i=function(){return t.unstable_now()>=O},l=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):E=0<e?Math.floor(1e3/e):5};var S=new MessageChannel,x=S.port2;S.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();O=e+E;try{y(!0,e)?x.postMessage(null):(v=!1,y=null)}catch(e){throw x.postMessage(null),e}}else v=!1},n=function(e){y=e,v||(v=!0,x.postMessage(null))},a=function(e,r){C=b((function(){e(t.unstable_now())}),r)},o=function(){m(C),C=-1}}function P(e,t){var r=e.length;e.push(t);e:for(;;){var n=r-1>>>1,a=e[n];if(!(void 0!==a&&0<N(a,t)))break e;e[n]=t,e[r]=a,r=n}}function w(e){return void 0===(e=e[0])?null:e}function k(e){var t=e[0];if(void 0!==t){var r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,a=e.length;n<a;){var o=2*(n+1)-1,i=e[o],l=o+1,s=e[l];if(void 0!==i&&0>N(i,r))void 0!==s&&0>N(s,i)?(e[n]=s,e[l]=r,n=l):(e[n]=i,e[o]=r,n=o);else{if(!(void 0!==s&&0>N(s,r)))break e;e[n]=s,e[l]=r,n=l}}}return t}return null}function N(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}var T=[],_=[],M=1,L=null,R=3,D=!1,A=!1,I=!1;function j(e){for(var t=w(_);null!==t;){if(null===t.callback)k(_);else{if(!(t.startTime<=e))break;k(_),t.sortIndex=t.expirationTime,P(T,t)}t=w(_)}}function z(e){if(I=!1,j(e),!A)if(null!==w(T))A=!0,n(G);else{var t=w(_);null!==t&&a(z,t.startTime-e)}}function G(e,r){A=!1,I&&(I=!1,o()),D=!0;var n=R;try{for(j(r),L=w(T);null!==L&&(!(L.expirationTime>r)||e&&!i());){var l=L.callback;if(null!==l){L.callback=null,R=L.priorityLevel;var s=l(L.expirationTime<=r);r=t.unstable_now(),"function"==typeof s?L.callback=s:L===w(T)&&k(T),j(r)}else k(T);L=w(T)}if(null!==L)var p=!0;else{var c=w(_);null!==c&&a(z,c.startTime-r),p=!1}return p}finally{L=null,R=n,D=!1}}function F(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var V=l;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){A||D||(A=!0,n(G))},t.unstable_getCurrentPriorityLevel=function(){return R},t.unstable_getFirstCallbackNode=function(){return w(T)},t.unstable_next=function(e){switch(R){case 1:case 2:case 3:var t=3;break;default:t=R}var r=R;R=t;try{return e()}finally{R=r}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=V,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=R;R=e;try{return t()}finally{R=r}},t.unstable_scheduleCallback=function(e,r,i){var l=t.unstable_now();if("object"==typeof i&&null!==i){var s=i.delay;s="number"==typeof s&&0<s?l+s:l,i="number"==typeof i.timeout?i.timeout:F(e)}else i=F(e),s=l;return e={id:M++,callback:r,priorityLevel:e,startTime:s,expirationTime:i=s+i,sortIndex:-1},s>l?(e.sortIndex=s,P(_,e),null===w(T)&&e===w(_)&&(I?o():I=!0,a(z,s-l))):(e.sortIndex=i,P(T,e),A||D||(A=!0,n(G))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();j(e);var r=w(T);return r!==L&&null!==L&&null!==r&&null!==r.callback&&r.startTime<=e&&r.expirationTime<L.expirationTime||i()},t.unstable_wrapCallback=function(e){var t=R;return function(){var r=R;R=t;try{return e.apply(this,arguments)}finally{R=r}}}},function(e,t,r){(function(e){var n=void 0!==e&&e||"undefined"!=typeof self&&self||window,a=Function.prototype.apply;function o(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new o(a.call(setTimeout,n,arguments),clearTimeout)},t.setInterval=function(){return new o(a.call(setInterval,n,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(n,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},r(23),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,r(11))},function(e,t,r){(function(e,t){!function(e,r){"use strict";if(!e.setImmediate){var n,a,o,i,l,s=1,p={},c=!1,u=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?n=function(e){t.nextTick((function(){b(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){b(e.data)},n=function(e){o.port2.postMessage(e)}):u&&"onreadystatechange"in u.createElement("script")?(a=u.documentElement,n=function(e){var t=u.createElement("script");t.onreadystatechange=function(){b(e),t.onreadystatechange=null,a.removeChild(t),t=null},a.appendChild(t)}):n=function(e){setTimeout(b,0,e)}:(i="setImmediate$"+Math.random()+"$",l=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(i)&&b(+t.data.slice(i.length))},e.addEventListener?e.addEventListener("message",l,!1):e.attachEvent("onmessage",l),n=function(t){e.postMessage(i+t,"*")}),d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];var a={callback:e,args:t};return p[s]=a,n(s),s++},d.clearImmediate=h}function h(e){delete p[e]}function b(e){if(c)setTimeout(b,0,e);else{var t=p[e];if(t){c=!0;try{!function(e){var t=e.callback,r=e.args;switch(r.length){case 0:t();break;case 1:t(r[0]);break;case 2:t(r[0],r[1]);break;case 3:t(r[0],r[1],r[2]);break;default:t.apply(void 0,r)}}(t)}finally{h(e),c=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,r(11),r(24))},function(e,t){var r,n,a=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function l(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var s,p=[],c=!1,u=-1;function d(){c&&s&&(c=!1,s.length?p=s.concat(p):u=-1,p.length&&h())}function h(){if(!c){var e=l(d);c=!0;for(var t=p.length;t;){for(s=p,p=[];++u<t;)s&&s[u].run();u=-1,t=p.length}s=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function b(e,t){this.fun=e,this.array=t}function m(){}a.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];p.push(new b(e,t)),1!==p.length||c||l(h)},b.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=m,a.addListener=m,a.once=m,a.off=m,a.removeListener=m,a.removeAllListeners=m,a.emit=m,a.prependListener=m,a.prependOnceListener=m,a.listeners=function(e){return[]},a.binding=function(e){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},function(e,t,r){"use strict";var n=r(26);function a(){}function o(){}o.resetWarningCache=a,e.exports=function(){function e(e,t,r,a,o,i){if(i!==n){var l=new Error("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");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:a};return r.PropTypes=r,r}},function(e,t,r){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,r){var n=r(9),a=r(28);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]);var o={insert:"head",singleton:!1};n(a,o);e.exports=a.locals||{}},function(e,t,r){(t=r(10)(!1)).push([e.i,'.color-picker-container{width:320px;height:300px;background-color:white;display:grid;grid-template-columns:100%;grid-template-rows:50% 50px 60px 40px 1fr;font-family:"acumin-pro-condensed";font-weight:normal;font-size:14px}.color-picker-container .color-picker-saturation{grid-row:1;grid-column:1;display:grid;grid-template-columns:100%;grid-template-rows:100%;position:relative;cursor:pointer}.color-picker-container .color-picker-saturation .color-picker-saturation-white{grid-row:1;grid-column:1;background:-webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));background:linear-gradient(to right, #fff, rgba(255,255,255,0))}.color-picker-container .color-picker-saturation .color-picker-saturation-black{grid-row:1;grid-column:1;background:-webkit-linear-gradient(to top, #000, rgba(0,0,0,0));background:linear-gradient(to top, #000, rgba(0,0,0,0))}.color-picker-container .color-picker-saturation .color-picker-saturation-cursor{pointer-events:none;width:4px;height:4px;box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px rgba(0,0,0,0.3),0 0 1px 2px rgba(0,0,0,0.4);border-radius:50%;transform:translate(-2px, -2px);position:absolute}.color-picker-container .color-picker-hue{grid-row:2;grid-column:1;display:grid;margin:10px;grid-template-columns:24% 76%;grid-template-rows:100%}.color-picker-container .color-picker-hue .color-picker-hue-color{grid-row:1;grid-column:1;align-self:center;justify-self:center;width:30px;height:30px;border-radius:15px;border:1px solid black}.color-picker-container .color-picker-hue .color-picker-hue-slider{grid-row:1;grid-column:2;align-self:center;height:16px;position:relative;cursor:pointer;background:linear-gradient(to right, red 0%, #ff0 17%, lime 33%, cyan 50%, blue 67%, #f0f 83%, red 100%);background:-webkit-linear-gradient(to right, red 0%, #ff0 17%, lime 33%, cyan 50%, blue 67%, #f0f 83%, red 100%)}.color-picker-container .color-picker-hue .color-picker-hue-slider .color-picker-hue-cursor{pointer-events:none;width:8px;height:18px;transform:translate(-4px, -2px);background-color:#f8f8f8;box-shadow:0 1px 4px 0 rgba(0,0,0,0.37);position:absolute}.color-picker-container .color-picker-component{display:grid;margin:5px;grid-template-columns:100%;grid-template-rows:50% 50%}.color-picker-container .color-picker-component .color-picker-component-value{justify-self:center;align-self:center;grid-row:1;grid-column:1;margin-bottom:4px}.color-picker-container .color-picker-component .color-picker-component-value input{width:50px}.color-picker-container .color-picker-component .color-picker-component-label{justify-self:center;align-self:center;grid-row:2;grid-column:1;color:black}.color-picker-container .color-picker-rgb{grid-row:3;grid-column:1;display:grid;margin:10px;grid-template-columns:20% 6.66% 20% 6.66% 20% 6.66% 20%;grid-template-rows:100%}.color-picker-container .red{grid-row:1;grid-column:1}.color-picker-container .green{grid-row:1;grid-column:3}.color-picker-container .blue{grid-row:1;grid-column:5}.color-picker-container .alpha{grid-row:1;grid-column:7}.color-picker-container .alpha.grayed{opacity:0.5}.color-picker-container .color-picker-hex{grid-row:4;grid-column:1;display:grid;grid-template-columns:20% 80%;grid-template-rows:100%}.color-picker-container .color-picker-hex .color-picker-hex-label{justify-self:center;align-self:center;grid-row:1;grid-column:1;margin-left:10px;color:black}.color-picker-container .color-picker-hex .color-picker-hex-value{justify-self:left;align-self:center;grid-row:1;grid-column:2;margin-left:10px;margin-right:10px}.color-picker-container .color-picker-hex .color-picker-hex-value input{width:70px}\n',""]),e.exports=t},function(e,t){e.exports="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' style='fill:none'/%3E%3Cpath d='M13.45,11.32a.78.78,0,0,0-.77.66v3a.77.77,0,0,0,.66.76h3a.78.78,0,0,0,.77-.77.77.77,0,0,0-.67-.76H15.36a7.43,7.43,0,1,1-2.64,4.38.77.77,0,1,0-1.51-.29,9,9,0,1,0,3-5.13V12.09A.76.76,0,0,0,13.45,11.32Z' style='fill:%23fff'/%3E%3C/svg%3E"},function(e,t){e.exports="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' style='fill:none'/%3E%3Cpath d='M13.5,28.5h13a.76.76,0,0,1,.75.75.75.75,0,0,1-.65.74H13.5a.75.75,0,0,1-.1-1.5Zm1-13.28,5-5a.73.73,0,0,1,1-.07l.09.07,5,5a.75.75,0,0,1,0,1.06.75.75,0,0,1-1,.07l-.09-.07-3.72-3.72V26.25a.75.75,0,0,1-.65.74H20a.75.75,0,0,1-.74-.65V12.56l-3.72,3.72a.76.76,0,0,1-1,.07l-.08-.07a.75.75,0,0,1-.07-1l.07-.08,5-5Z' style='fill:%23fff'/%3E%3C/svg%3E"},function(e,t){e.exports="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' style='fill:none'/%3E%3Cpath d='M29.36,18.39a2.18,2.18,0,0,1,0,3.08l-7.91,7.91a1.22,1.22,0,0,1-.89.37h-1.7a.85.85,0,0,1-.86-.86v-1.7a1.22,1.22,0,0,1,.37-.89l7.91-7.91A2.18,2.18,0,0,1,29.36,18.39ZM30,23.11V27.5a2.25,2.25,0,0,1-2.25,2.25H23l1.5-1.5h3.25a.76.76,0,0,0,.75-.75v-3ZM23.63,10.25a1.23,1.23,0,0,1,.76.26L29.64,15a1.21,1.21,0,0,1,.36.9v1.23a2.43,2.43,0,0,0-.75-.43,2,2,0,0,0-.74-.1V16L24,12.14V15a1.75,1.75,0,0,1-1.75,1.75h-6A1.75,1.75,0,0,1,14.5,15V11.75H12.25a.75.75,0,0,0-.75.75v15a.75.75,0,0,0,.75.75H13V22.51a1.75,1.75,0,0,1,1.61-1.74H22l-1.55,1.5H14.75a.25.25,0,0,0-.24.2v5.79h2v1.5H12.25A2.25,2.25,0,0,1,10,27.5v-15a2.25,2.25,0,0,1,2.25-2.25Zm3.72,9.21-7.84,7.83v.95h.95l7.83-7.84a.66.66,0,0,0-.94-.94ZM22.5,11.75H16V15a.25.25,0,0,0,.25.25h6A.25.25,0,0,0,22.5,15Z' style='fill:%23fff'/%3E%3C/svg%3E"},function(e,t){e.exports="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:none;%7D.cls-2%7Bfill:%23e0684b;%7D.cls-3%7Bfill:%23bb464b;%7D.cls-4%7Bfill:%23e0ded8;%7D.cls-5%7Bfill:%23d5d2ca;%7D.cls-6%7Bfill:%23fff;%7D%3C/style%3E%3C/defs%3E%3Cg id='UI'%3E%3Crect class='cls-1' width='40' height='40'/%3E%3Cpolygon class='cls-2' points='32.91 13.78 29.54 11.84 26.29 13.71 29.66 15.65 32.91 13.78'/%3E%3Cpolygon class='cls-2' points='14.61 15.65 25.38 9.44 22.14 7.57 11.37 13.78 14.61 15.65'/%3E%3Cpolygon class='cls-2' points='18.77 21.95 22.14 23.89 25.51 21.95 22.14 20 18.77 21.95'/%3E%3Cpolygon class='cls-3' points='29.66 15.65 29.66 24.34 22.14 28.69 14.61 24.34 14.61 15.65 11.37 13.78 11.37 26.22 22.14 32.44 32.91 26.22 32.91 13.78 29.66 15.65'/%3E%3Cpolygon class='cls-3' points='22.14 16.11 18.77 18.05 18.77 21.95 22.14 20 25.51 21.95 25.51 18.05 22.14 16.11'/%3E%3Cpolygon class='cls-4' points='29.66 15.65 25.51 18.05 25.51 21.95 22.14 23.89 22.14 28.69 29.66 24.34 29.66 15.65'/%3E%3Cpolygon class='cls-5' points='14.61 15.65 18.77 18.05 18.77 21.95 22.14 23.89 22.14 28.69 14.61 24.34 14.61 15.65'/%3E%3Cpolygon class='cls-6' points='25.38 9.44 29.54 11.84 26.29 13.71 29.66 15.65 25.51 18.05 22.14 16.11 18.77 18.05 14.61 15.65 25.38 9.44'/%3E%3C/g%3E%3C/svg%3E"},function(e,t){e.exports="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' style='fill:none'/%3E%3Cpath d='M12.5,21a.5.5,0,0,1,.5.5V25a2,2,0,0,0,2,2h3.5a.5.5,0,0,1,0,1H15a3,3,0,0,1-3-3V21.5A.5.5,0,0,1,12.5,21Zm15,0a.5.5,0,0,1,.49.41V25a3,3,0,0,1-2.82,3H21.5a.5.5,0,0,1-.09-1H25a2,2,0,0,0,2-1.85V21.5A.5.5,0,0,1,27.5,21Zm-9-9a.5.5,0,0,1,.09,1H15a2,2,0,0,0-2,1.85V18.5a.5.5,0,0,1-1,.09V15a3,3,0,0,1,2.82-3H18.5ZM25,12a3,3,0,0,1,3,2.82V18.5a.5.5,0,0,1-1,.09V15a2,2,0,0,0-1.85-2H21.5a.5.5,0,0,1-.09-1H25Z' style='fill:%23fff'/%3E%3C/svg%3E"},function(e,t){e.exports="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' style='fill:none'/%3E%3Cpath d='M15.47,20.28l.08.07a.75.75,0,0,0,1-.07l2.72-2.72v6.79A.75.75,0,0,0,20,25h.1a.75.75,0,0,0,.65-.74V17.56l2.72,2.72.08.07a.75.75,0,0,0,1-1.13l-4-4-.08-.07a.75.75,0,0,0-1,.07l-4,4-.07.08A.75.75,0,0,0,15.47,20.28Z' style='fill:%23fff'/%3E%3Cpath d='M30,20A10,10,0,1,0,20,30,10,10,0,0,0,30,20ZM11.5,20A8.5,8.5,0,1,1,20,28.5,8.51,8.51,0,0,1,11.5,20Z' style='fill:%23fff'/%3E%3C/svg%3E"},function(e,t){e.exports="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' style='fill:none'/%3E%3Cpath d='M24.53,19.72l-.08-.07a.75.75,0,0,0-1,.07l-2.72,2.72V15.65A.75.75,0,0,0,20,15h-.1a.75.75,0,0,0-.65.74v6.69l-2.72-2.72-.08-.07a.75.75,0,0,0-1,1.13l4,4,.08.07a.75.75,0,0,0,1-.07l4-4,.07-.08A.75.75,0,0,0,24.53,19.72Z' style='fill:%23fff'/%3E%3Cpath d='M10,20A10,10,0,1,0,20,10,10,10,0,0,0,10,20Zm18.5,0A8.5,8.5,0,1,1,20,11.5,8.51,8.51,0,0,1,28.5,20Z' style='fill:%23fff'/%3E%3C/svg%3E"},function(e,t){e.exports="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' style='fill:none'/%3E%3Cpath d='M16.89,16v3h2.82v1.27H16.89v3h-1.3v-3H12.74V19h2.85V16Z' style='fill:%23fff'/%3E%3Cpath d='M25.34,24.62l-1.75-4.21h0L21.8,24.62H20l2.61-5.57-2.51-5.29H22l1.63,3.8h0l1.65-3.8h1.77l-2.49,5.11,2.64,5.75Z' style='fill:%23fff'/%3E%3C/svg%3E"},function(e,t){e.exports="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' style='fill:none'/%3E%3Cpath d='M17.75,18.72v1.45H14.33V18.72Z' style='fill:%23fff'/%3E%3Cpath d='M23.75,24.62,22,20.41h0l-1.77,4.21H18.44l2.61-5.57-2.52-5.29h1.93l1.63,3.8h0l1.65-3.8h1.78L23,18.87l2.64,5.75Z' style='fill:%23fff'/%3E%3C/svg%3E"},function(e,t){e.exports="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' style='fill:none'/%3E%3Cpath d='M16.84,16v3h2.82v1.27H16.84v3h-1.3v-3H12.69V19h2.85V16Z' style='fill:%23fff'/%3E%3Cpath d='M22.79,24.62V20.68a.63.63,0,0,0-.06-.32L20,13.76h1.87c.66,1.76,1.51,4,1.83,5.13.4-1.24,1.25-3.46,1.84-5.13h1.78l-2.77,6.61a.73.73,0,0,0-.05.34v3.91Z' style='fill:%23fff'/%3E%3C/svg%3E"},function(e,t){e.exports="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' style='fill:none'/%3E%3Cpath d='M17.7,18.72v1.45H14.28V18.72Z' style='fill:%23fff'/%3E%3Cpath d='M21.21,24.62V20.68a.63.63,0,0,0-.07-.32l-2.73-6.6h1.87c.66,1.76,1.5,4,1.82,5.13.4-1.24,1.25-3.46,1.84-5.13h1.78L23,20.37a.9.9,0,0,0-.05.34v3.91Z' style='fill:%23fff'/%3E%3C/svg%3E"},function(e,t){e.exports="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' style='fill:none'/%3E%3Cpath d='M17.1,16v3h2.82v1.27H17.1v3H15.81v-3H13V19h2.85V16Z' style='fill:%23fff'/%3E%3Cpath d='M20.67,23.43,25,15.25H21V13.76h5.86v1.36l-4.23,8H27l-.22,1.48H20.67Z' style='fill:%23fff'/%3E%3C/svg%3E"},function(e,t){e.exports="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' style='fill:none'/%3E%3Cpath d='M18,18.72v1.45H14.54V18.72Z' style='fill:%23fff'/%3E%3Cpath d='M19.09,23.43l4.35-8.18h-4V13.76h5.86v1.36l-4.22,8h4.4l-.23,1.48H19.09Z' style='fill:%23fff'/%3E%3C/svg%3E"},function(e,t){e.exports="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' style='fill:none'/%3E%3Cpath d='M20,18.27a3.09,3.09,0,1,1-3.08,3.08A3.09,3.09,0,0,1,20,18.27Zm0,1.15a1.93,1.93,0,1,0,1.93,1.93A1.94,1.94,0,0,0,20,19.42Zm0-3.86a7.71,7.71,0,0,1,7.48,5.84.58.58,0,1,1-1.12.28,6.56,6.56,0,0,0-12.72,0,.58.58,0,0,1-1.12-.28A7.72,7.72,0,0,1,20,15.56Z' style='fill:%23fff'/%3E%3C/svg%3E"},function(e,t){e.exports="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' style='fill:none'/%3E%3Cpath d='M12.42,13a.57.57,0,0,0-.06.75l.06.07,3.13,3.13a7.69,7.69,0,0,0-3.07,4.45.58.58,0,0,0,1.13.29,6.6,6.6,0,0,1,2.77-3.91l1.41,1.41a3.1,3.1,0,0,0,4.38,4.38l4.59,4.59a.57.57,0,0,0,.82,0,.58.58,0,0,0,.06-.76l-.06-.06-4.74-4.74h0l-.93-.93-2.22-2.23h0L17.46,17.2h0l-.88-.88L13.24,13A.57.57,0,0,0,12.42,13Zm6.19,7,2.74,2.74A1.94,1.94,0,0,1,18.61,20ZM20,15.53a7.54,7.54,0,0,0-2.24.33l1,1A6.69,6.69,0,0,1,20,16.69a6.59,6.59,0,0,1,6.39,5,.59.59,0,0,0,.71.42.58.58,0,0,0,.42-.7A7.74,7.74,0,0,0,20,15.53Zm.15,2.72,3,2.95A3.11,3.11,0,0,0,20.15,18.25Z' style='fill:%23fff'/%3E%3C/svg%3E"},function(e,t,r){var n=r(9),a=r(45);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]);var o={insert:"head",singleton:!1};n(a,o);e.exports=a.locals||{}},function(e,t,r){(t=r(10)(!1)).push([e.i,"#texture-editor{height:100%;width:100%;color:white;background-color:#1e1e1e;font-family:'acumin-pro-condensed'}#texture-editor .icon{width:40px;height:40px}#texture-editor .icon.button{background-color:#333333}#texture-editor .icon.button:hover{background-color:#4a4a4a;cursor:pointer}#texture-editor .icon.button.active{background-color:#666666}#texture-editor .icon.button:active{background-color:#837c7c}#texture-editor .has-tooltip{display:inline-block}#texture-editor .has-tooltip .tooltip{visibility:hidden;background-color:#fff;z-index:1;position:absolute;opacity:0;transition:opacity 0.5s;line-height:normal;font-size:14px;padding:0px 5px;color:black}#texture-editor .has-tooltip:hover .tooltip{visibility:visible;opacity:1}#texture-editor #properties{width:100%;height:40px;display:flex;align-items:center;font-size:12px;color:white;user-select:none;background-color:#333333}#texture-editor #properties .tab{display:inline-flex;line-height:40px;height:40px;flex-shrink:0;flex-grow:0;border-right:2px solid #1e1e1e;background-color:#333333}#texture-editor #properties #left{overflow:hidden;height:40px;flex-grow:1;flex-shrink:1;display:flex;flex-wrap:wrap}#texture-editor #properties #left #dimensions-tab form{display:flex}#texture-editor #properties #left #dimensions-tab label{margin-left:15px;font-size:15px;color:#afafaf}#texture-editor #properties #left #dimensions-tab label input{width:40px;height:24px;background-color:#000000;color:#ffffff;border:0;font-size:12px;text-align:'left';font-family:'acumin-pro-condensed';font-size:15px;padding-left:8px}#texture-editor #properties #left #dimensions-tab label:last-of-type{margin-right:8px}#texture-editor #properties #right-tab{margin-right:0;flex-grow:0;flex-shrink:0}#texture-editor #properties #right-tab input[type=\"file\"]{display:none}#texture-editor #properties .pixel-data{width:45px;color:#afafaf;display:flex;justify-content:space-between;font-size:15px}#texture-editor #properties .pixel-data:first-of-type{margin-left:15px}#texture-editor #properties .pixel-data:last-of-type{padding-right:15px}#texture-editor #properties .pixel-data .value{display:inline-block;width:30px;color:white}#texture-editor #toolbar{position:absolute;top:60px;left:0;width:40px;display:flex;flex-direction:column;justify-content:left}#texture-editor #toolbar #tools{display:flex;flex-direction:column}#texture-editor #toolbar #add-tool{position:relative}#texture-editor #toolbar #add-tool #add-tool-popup{background-color:#333333;width:348px;margin-left:40px;position:absolute;top:0px;height:40px;padding-left:4px;line-height:40px;user-select:none}#texture-editor #toolbar #add-tool #add-tool-popup button{background:#222222;border:1px solid #337ab7;margin:5px 10px 5px 10px;color:white;padding:4px 5px;opacity:0.9;cursor:pointer}#texture-editor #toolbar #color{margin-top:8px}#texture-editor #toolbar #color #active-color-bg{border-radius:50%;width:20px;height:20px;margin:10px;position:relative;background-image:linear-gradient(45deg, gray 25%, transparent 25%),linear-gradient(-45deg, gray 25%, transparent 25%),linear-gradient(45deg, transparent 75%, gray 75%),linear-gradient(-45deg, transparent 75%, gray 75%);background-size:20px 20px;background-position:0 0, 0 10px, 10px -10px, -10px 0px}#texture-editor #toolbar #color #active-color{width:20px;height:20px;position:absolute;top:0;left:0;border-radius:50%}#texture-editor #toolbar #color-picker{position:absolute;margin-left:40px}#texture-editor #channels-bar{position:absolute;top:60px;right:0;width:80px;background:#666666;user-select:none}#texture-editor #channels-bar .channel{color:white;border-bottom:2px solid #232323;width:80px;height:40px;font-size:16px;display:flex;align-items:center}#texture-editor #channels-bar .channel.uneditable{background:#333333}#texture-editor #channels-bar .channel:hover{cursor:pointer}#texture-editor #channels-bar .channel:last-of-type{border-bottom:none}#texture-editor #canvas-ui{width:100%;height:calc(100% - 70px);outline:none}#texture-editor #tool-ui{background-color:#333;position:absolute;right:0;bottom:30px}#texture-editor #tool-ui label{display:flex;flex-direction:column;align-items:center}#texture-editor #tool-ui input[type='range']{background:#d3d3d3}#texture-editor #bottom-bar{height:30px;width:100%;background-color:#333333;font-size:14px;user-select:none;line-height:30px;position:relative}#texture-editor #bottom-bar #file-url{left:30px;position:absolute}#texture-editor #bottom-bar #mip-level{right:30px;position:absolute}\n",""]),e.exports=t},function(e,t){e.exports="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' style='fill:none'/%3E%3Cpath d='M20,30.5A10.5,10.5,0,1,1,30.5,20,10.51,10.51,0,0,1,20,30.5Zm0-20A9.5,9.5,0,1,0,29.5,20,9.51,9.51,0,0,0,20,10.5Z' style='fill:%23fff'/%3E%3Cpath d='M18.45,20.77v4.14H16.26V14.58h4.55c2.25,0,3.46,1.23,3.46,2.83a2.5,2.5,0,0,1-1.5,2.45c.51.19,1.29.72,1.29,2.58V23a7.77,7.77,0,0,0,.15,2H22.08a7.38,7.38,0,0,1-.21-2.32v-.15c0-1.13-.28-1.67-1.95-1.67Zm0-1.78h1.88c1.21,0,1.69-.47,1.69-1.32s-.55-1.32-1.65-1.32H18.45Z' style='fill:%23fff'/%3E%3C/svg%3E"},function(e,t){e.exports="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' style='fill:none'/%3E%3Cpath d='M20,30.5A10.5,10.5,0,1,1,30.5,20,10.51,10.51,0,0,1,20,30.5Zm0-20A9.5,9.5,0,1,0,29.5,20,9.51,9.51,0,0,0,20,10.5Z' style='fill:%23fff'/%3E%3Cpath d='M24.6,24.91H23a5.43,5.43,0,0,1-.18-1,3.5,3.5,0,0,1-3,1.2c-3,0-4.68-2.28-4.68-5.22,0-3.1,1.81-5.44,5.07-5.44,2.65,0,4.23,1.5,4.47,3.25H22.39a2.09,2.09,0,0,0-2.26-1.51c-2.13,0-2.73,1.78-2.73,3.6s.69,3.54,2.74,3.54a2.05,2.05,0,0,0,2.27-2.25V21H20.14V19.12H24.6Z' style='fill:%23fff'/%3E%3C/svg%3E"},function(e,t){e.exports="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' style='fill:none'/%3E%3Cpath d='M20,30.5A10.5,10.5,0,1,1,30.5,20,10.51,10.51,0,0,1,20,30.5Zm0-20A9.5,9.5,0,1,0,29.5,20,9.51,9.51,0,0,0,20,10.5Z' style='fill:%23fff'/%3E%3Cpath d='M16.17,14.58h4.51c2.51,0,3.45,1.29,3.45,2.64a2.31,2.31,0,0,1-1.32,2.23,2.48,2.48,0,0,1,1.62,2.37c0,1.77-1.39,3.09-3.58,3.09H16.17Zm4.26,4.08c1.06,0,1.5-.48,1.5-1.22s-.57-1.14-1.43-1.14H18.36v2.36Zm-2.07,4.53h2c1.22,0,1.76-.51,1.76-1.44s-.54-1.37-1.77-1.37h-2Z' style='fill:%23fff'/%3E%3C/svg%3E"},function(e,t){e.exports="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' style='fill:none'/%3E%3Cpath d='M20,30.5A10.58,10.58,0,1,1,30.57,19.93,10.58,10.58,0,0,1,20,30.5Zm0-19.9a9.33,9.33,0,1,0,9.33,9.33A9.34,9.34,0,0,0,20,10.6Z' style='fill:%23fff'/%3E%3Cpath d='M16.32,14.54h4.09a4.68,4.68,0,0,1,4.95,5c0,3-1.91,5.27-5.06,5.27h-4ZM18.54,23h1.67c2,0,2.85-1.48,2.85-3.48,0-1.69-.82-3.22-2.83-3.22H18.54Z' style='fill:%23fff'/%3E%3C/svg%3E"},function(e,t){e.exports="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' style='fill:none'/%3E%3Cpath d='M20,30.5A10.5,10.5,0,1,1,30.5,20,10.51,10.51,0,0,1,20,30.5Zm0-20A9.5,9.5,0,1,0,29.5,20,9.51,9.51,0,0,0,20,10.5Z' style='fill:%23fff'/%3E%3Cpath d='M18,22.53l-.79,2.38H15l3.51-10.33h2.81L25,24.91H22.64l-.86-2.38Zm3.3-1.83c-.73-2.19-1.2-3.59-1.45-4.52h0c-.25,1-.76,2.64-1.35,4.52Z' style='fill:%23fff'/%3E%3C/svg%3E"},function(e,t){e.exports="data:image/svg+xml,%3Csvg viewBox='0 0 24 24' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='24' height='24'%3E %3C!-- Generator: Sketch 59.1 (86144) - https://sketch.com --%3E %3Ctitle%3Eic_fluent_delete_24_regular%3C/title%3E %3Cdesc%3ECreated with Sketch.%3C/desc%3E %3Cg id='🔍-Product-Icons' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E %3Cg id='ic_fluent_delete_24_regular' fill='white' fill-rule='nonzero'%3E %3Cpath d='M12,1.75 C13.7330315,1.75 15.1492459,3.10645477 15.2448552,4.81557609 L15.25,5 L20.5,5 C20.9142136,5 21.25,5.33578644 21.25,5.75 C21.25,6.12969577 20.9678461,6.44349096 20.6017706,6.49315338 L20.5,6.5 L19.704,6.5 L18.4238627,19.5191927 C18.2911666,20.8682696 17.1984309,21.9099961 15.8626249,21.9944645 L15.6870698,22 L8.31293022,22 C6.95734302,22 5.81365352,21.0144851 5.59883106,19.6933629 L5.57613734,19.5191927 L4.295,6.5 L3.5,6.5 C3.12030423,6.5 2.80650904,6.21784612 2.75684662,5.85177056 L2.75,5.75 C2.75,5.37030423 3.03215388,5.05650904 3.39822944,5.00684662 L3.5,5 L8.75,5 C8.75,3.20507456 10.2050746,1.75 12,1.75 Z M18.197,6.5 L5.802,6.5 L7.06893346,19.3723603 C7.12767639,19.9695801 7.60033019,20.4342891 8.18584501,20.493596 L8.31293022,20.5 L15.6870698,20.5 C16.2871716,20.5 16.795916,20.0751057 16.9122531,19.4982083 L16.9310665,19.3723603 L18.197,6.5 Z M13.75,9.25 C14.1296958,9.25 14.443491,9.53215388 14.4931534,9.89822944 L14.5,10 L14.5,17 C14.5,17.4142136 14.1642136,17.75 13.75,17.75 C13.3703042,17.75 13.056509,17.4678461 13.0068466,17.1017706 L13,17 L13,10 C13,9.58578644 13.3357864,9.25 13.75,9.25 Z M10.25,9.25 C10.6296958,9.25 10.943491,9.53215388 10.9931534,9.89822944 L11,10 L11,17 C11,17.4142136 10.6642136,17.75 10.25,17.75 C9.87030423,17.75 9.55650904,17.4678461 9.50684662,17.1017706 L9.5,17 L9.5,10 C9.5,9.58578644 9.83578644,9.25 10.25,9.25 Z M12,3.25 C11.0818266,3.25 10.3288077,3.95711027 10.2558012,4.85647279 L10.25,5 L13.75,5 C13.75,4.03350169 12.9664983,3.25 12,3.25 Z' id='🎨-Color'%3E%3C/path%3E %3C/g%3E %3C/g%3E %3C/svg%3E"},function(e,t){e.exports="data:image/svg+xml,%3Csvg viewBox='0 0 24 24' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='24' height='24'%3E %3C!-- Generator: Sketch 59.1 (86144) - https://sketch.com --%3E %3Ctitle%3Eic_fluent_copy_24_regular%3C/title%3E %3Cdesc%3ECreated with Sketch.%3C/desc%3E %3Cg id='🔍-Product-Icons' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E %3Cg id='ic_fluent_copy_24_regular' fill='white' fill-rule='nonzero'%3E %3Cpath d='M5.50280381,4.62704038 L5.5,6.75 L5.5,17.2542087 C5.5,19.0491342 6.95507456,20.5042087 8.75,20.5042087 L17.3662868,20.5044622 C17.057338,21.3782241 16.2239751,22.0042087 15.2444057,22.0042087 L8.75,22.0042087 C6.12664744,22.0042087 4,19.8775613 4,17.2542087 L4,6.75 C4,5.76928848 4.62744523,4.93512464 5.50280381,4.62704038 Z M17.75,2 C18.9926407,2 20,3.00735931 20,4.25 L20,17.25 C20,18.4926407 18.9926407,19.5 17.75,19.5 L8.75,19.5 C7.50735931,19.5 6.5,18.4926407 6.5,17.25 L6.5,4.25 C6.5,3.00735931 7.50735931,2 8.75,2 L17.75,2 Z M17.75,3.5 L8.75,3.5 C8.33578644,3.5 8,3.83578644 8,4.25 L8,17.25 C8,17.6642136 8.33578644,18 8.75,18 L17.75,18 C18.1642136,18 18.5,17.6642136 18.5,17.25 L18.5,4.25 C18.5,3.83578644 18.1642136,3.5 17.75,3.5 Z' id='🎨-Color'%3E%3C/path%3E %3C/g%3E %3C/g%3E %3C/svg%3E"},function(e,t,r){e.exports=function(e){function t(n){if(r[n])return r[n].exports;var a=r[n]={exports:{},id:n,loaded:!1};return e[n].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){var n,a,o={}.hasOwnProperty,i=[].indexOf||function(e){for(var t=0,r=this.length;t<r;t++)if(t in this&&this[t]===e)return t;return-1};n=r(1).EventEmitter,r(2),a=function(e){function t(e){var t,n,a;for(n in this.running=!1,this.options={},this.frames=[],this.groups=new Map,this.freeWorkers=[],this.activeWorkers=[],this.setOptions(e),r)a=r[n],null==(t=this.options)[n]&&(t[n]=a)}var r,n;return function(e,t){function r(){this.constructor=e}for(var n in t)o.call(t,n)&&(e[n]=t[n]);r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype}(t,e),r={workerScript:"gif.worker.js",workers:2,repeat:0,background:"#fff",quality:10,width:null,height:null,transparent:null,debug:!1},n={delay:500,copy:!1},t.prototype.setOption=function(e,t){if(this.options[e]=t,null!=this._canvas&&("width"===e||"height"===e))return this._canvas[e]=t},t.prototype.setOptions=function(e){var t,r,n;for(t in r=[],e)o.call(e,t)&&(n=e[t],r.push(this.setOption(t,n)));return r},t.prototype.addFrame=function(e,t){var r,a,o;for(o in null==t&&(t={}),(r={}).transparent=this.options.transparent,n)r[o]=t[o]||n[o];if(null==this.options.width&&this.setOption("width",e.width),null==this.options.height&&this.setOption("height",e.height),"undefined"!=typeof ImageData&&null!==ImageData&&e instanceof ImageData)r.data=e.data;else if("undefined"!=typeof CanvasRenderingContext2D&&null!==CanvasRenderingContext2D&&e instanceof CanvasRenderingContext2D||"undefined"!=typeof WebGLRenderingContext&&null!==WebGLRenderingContext&&e instanceof WebGLRenderingContext)t.copy?r.data=this.getContextData(e):r.context=e;else{if(null==e.childNodes)throw new Error("Invalid image");t.copy?r.data=this.getImageData(e):r.image=e}return(a=this.frames.length)>0&&r.data&&(this.groups.has(r.data)?this.groups.get(r.data).push(a):this.groups.set(r.data,[a])),this.frames.push(r)},t.prototype.render=function(){var e,t,r;if(this.running)throw new Error("Already running");if(null==this.options.width||null==this.options.height)throw new Error("Width and height must be set prior to rendering");if(this.running=!0,this.nextFrame=0,this.finishedFrames=0,this.imageParts=function(){var e,t,r;for(r=[],e=0,t=this.frames.length;0<=t?e<t:e>t;0<=t?++e:--e)r.push(null);return r}.call(this),t=this.spawnWorkers(),!0===this.options.globalPalette)this.renderNextFrame();else for(e=0,r=t;0<=r?e<r:e>r;0<=r?++e:--e)this.renderNextFrame();return this.emit("start"),this.emit("progress",0)},t.prototype.abort=function(){for(var e;null!=(e=this.activeWorkers.shift());)this.log("killing active worker"),e.terminate();return this.running=!1,this.emit("abort")},t.prototype.spawnWorkers=function(){var e,t,r;return e=Math.min(this.options.workers,this.frames.length),function(){r=[];for(var n=t=this.freeWorkers.length;t<=e?n<e:n>e;t<=e?n++:n--)r.push(n);return r}.apply(this).forEach(function(e){return function(t){var r;return e.log("spawning worker "+t),(r=new Worker(e.options.workerScript)).onmessage=function(t){return e.activeWorkers.splice(e.activeWorkers.indexOf(r),1),e.freeWorkers.push(r),e.frameFinished(t.data,!1)},e.freeWorkers.push(r)}}(this)),e},t.prototype.frameFinished=function(e,t){var r,n,a,o;if(this.finishedFrames++,t?(r=this.frames.indexOf(e),n=this.groups.get(e.data)[0],this.log("frame "+(r+1)+" is duplicate of "+n+" - "+this.activeWorkers.length+" active"),this.imageParts[r]={indexOfFirstInGroup:n}):(this.log("frame "+(e.index+1)+" finished - "+this.activeWorkers.length+" active"),this.emit("progress",this.finishedFrames/this.frames.length),this.imageParts[e.index]=e),!0===this.options.globalPalette&&!t&&(this.options.globalPalette=e.globalPalette,this.log("global palette analyzed"),this.frames.length>2))for(a=1,o=this.freeWorkers.length;1<=o?a<o:a>o;1<=o?++a:--a)this.renderNextFrame();return i.call(this.imageParts,null)>=0?this.renderNextFrame():this.finishRendering()},t.prototype.finishRendering=function(){var e,t,r,n,a,o,i,l,s,p,c,u,d,h,b,m,g,f,v,y;for(a=o=0,p=(g=this.imageParts).length;o<p;a=++o)(t=g[a]).indexOfFirstInGroup&&(this.imageParts[a]=this.imageParts[t.indexOfFirstInGroup]);for(s=0,i=0,c=(f=this.imageParts).length;i<c;i++)s+=((t=f[i]).data.length-1)*t.pageSize+t.cursor;for(s+=t.pageSize-t.cursor,this.log("rendering finished - filesize "+Math.round(s/1e3)+"kb"),e=new Uint8Array(s),b=0,l=0,u=(v=this.imageParts).length;l<u;l++)for(r=h=0,d=(y=(t=v[l]).data).length;h<d;r=++h)m=y[r],e.set(m,b),b+=r===t.data.length-1?t.cursor:t.pageSize;return n=new Blob([e],{type:"image/gif"}),this.emit("finished",n,e)},t.prototype.renderNextFrame=function(){var e,t,r,n;if(0===this.freeWorkers.length)throw new Error("No free workers");if(!(this.nextFrame>=this.frames.length))return e=this.frames[this.nextFrame++],(t=this.frames.indexOf(e))>0&&this.groups.has(e.data)&&this.groups.get(e.data)[0]!==t?void setTimeout(function(t){return function(){return t.frameFinished(e,!0)}}(this),0):(n=this.freeWorkers.shift(),r=this.getTask(e),this.log("starting frame "+(r.index+1)+" of "+this.frames.length),this.activeWorkers.push(n),n.postMessage(r))},t.prototype.getContextData=function(e){return e.getImageData(0,0,this.options.width,this.options.height).data},t.prototype.getImageData=function(e){var t;return null==this._canvas&&(this._canvas=document.createElement("canvas"),this._canvas.width=this.options.width,this._canvas.height=this.options.height),(t=this._canvas.getContext("2d")).setFill=this.options.background,t.fillRect(0,0,this.options.width,this.options.height),t.drawImage(e,0,0),this.getContextData(t)},t.prototype.getTask=function(e){var t,r;if(r={index:t=this.frames.indexOf(e),last:t===this.frames.length-1,delay:e.delay,transparent:e.transparent,width:this.options.width,height:this.options.height,quality:this.options.quality,dither:this.options.dither,globalPalette:this.options.globalPalette,repeat:this.options.repeat,canTransfer:!0},null!=e.data)r.data=e.data;else if(null!=e.context)r.data=this.getContextData(e.context);else{if(null==e.image)throw new Error("Invalid frame");r.data=this.getImageData(e.image)}return r},t.prototype.log=function(e){if(this.options.debug)return console.log(e)},t}(n),e.exports=a},function(e,t){function r(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function n(e){return"function"==typeof e}function a(e){return"object"==typeof e&&null!==e}function o(e){return void 0===e}e.exports=r,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._maxListeners=void 0,r.defaultMaxListeners=10,r.prototype.setMaxListeners=function(e){if(!function(e){return"number"==typeof e}(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},r.prototype.emit=function(e){var t,r,i,l,s,p;if(this._events||(this._events={}),"error"===e&&(!this._events.error||a(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var c=new Error('Uncaught, unspecified "error" event. ('+t+")");throw c.context=t,c}if(o(r=this._events[e]))return!1;if(n(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:l=Array.prototype.slice.call(arguments,1),r.apply(this,l)}else if(a(r))for(l=Array.prototype.slice.call(arguments,1),i=(p=r.slice()).length,s=0;s<i;s++)p[s].apply(this,l);return!0},r.prototype.addListener=function(e,t){var i;if(!n(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,n(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&&(i=o(this._maxListeners)?r.defaultMaxListeners:this._maxListeners)&&i>0&&this._events[e].length>i&&(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},r.prototype.on=r.prototype.addListener,r.prototype.once=function(e,t){function r(){this.removeListener(e,r),a||(a=!0,t.apply(this,arguments))}if(!n(t))throw TypeError("listener must be a function");var a=!1;return r.listener=t,this.on(e,r),this},r.prototype.removeListener=function(e,t){var r,o,i,l;if(!n(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(i=(r=this._events[e]).length,o=-1,r===t||n(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(a(r)){for(l=i;l-- >0;)if(r[l]===t||r[l].listener&&r[l].listener===t){o=l;break}if(o<0)return this;1===r.length?(r.length=0,delete this._events[e]):r.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},r.prototype.removeAllListeners=function(e){var t,r;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(r=this._events[e]))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},r.prototype.listeners=function(e){return this._events&&this._events[e]?n(this._events[e])?[this._events[e]]:this._events[e].slice():[]},r.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(n(t))return 1;if(t)return t.length}return 0},r.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t){var r,n,a,o,i;i=navigator.userAgent.toLowerCase(),o=navigator.platform.toLowerCase(),a="ie"===(r=i.match(/(opera|ie|firefox|chrome|version)[\s\/:]([\w\d\.]+)?.*?(safari|version[\s\/:]([\w\d\.]+)|$)/)||[null,"unknown",0])[1]&&document.documentMode,(n={name:"version"===r[1]?r[3]:r[1],version:a||parseFloat("opera"===r[1]&&r[4]?r[4]:r[2]),platform:{name:i.match(/ip(?:ad|od|hone)/)?"ios":(i.match(/(?:webos|android)/)||o.match(/mac|win|linux/)||["other"])[0]}})[n.name]=!0,n[n.name+parseInt(n.version,10)]=!0,n.platform[n.platform.name]=!0,e.exports=n}])},function(e,t,r){var n=r(9),a=r(55);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]);var o={insert:"head",singleton:!1};n(a,o);e.exports=a.locals||{}},function(e,t,r){(t=r(10)(!1)).push([e.i,"#inspector-host{position:absolute;right:0px;top:0px;bottom:0px}#__resizable_base__{display:none}#actionTabs{background:#333333;height:100%;margin:0;padding:0;display:grid;grid-template-rows:auto 1fr;font:14px \"Arial\";overflow:hidden}#actionTabs .hoverIcon:hover{opacity:0.8}#actionTabs #header{height:30px;font-size:16px;color:white;background:#222222;grid-row:1;text-align:center;display:grid;grid-template-columns:30px 1fr 50px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}#actionTabs #header #logo{grid-column:1;width:24px;height:24px;display:flex;align-self:center;justify-self:center}#actionTabs #header #back{grid-column:1;display:grid;align-self:center;justify-self:center;cursor:pointer}#actionTabs #header #title{grid-column:2;display:grid;align-items:center;text-align:center}#actionTabs #header #commands{grid-column:3;display:grid;align-items:center;grid-template-columns:1fr 1fr}#actionTabs #header #commands .expand{grid-column:1;display:grid;align-items:center;justify-items:center;cursor:pointer}#actionTabs #header #commands .close{grid-column:2;display:grid;align-items:center;justify-items:center;cursor:pointer}#actionTabs .tabs{display:grid;grid-row:2;grid-template-rows:40px 1fr;font:14px \"Arial\";overflow:hidden}#actionTabs .tabs .labels{grid-row:1;display:flex;align-items:center;justify-items:center;border-bottom:1px solid #ffffff;margin:0;padding:0}#actionTabs .tabs .labels .label{font-size:24px;color:white;width:40px;display:flex;align-content:center;justify-content:center;border:1px solid transparent;border-bottom:none;background:#333333;padding:5px;height:28px;cursor:pointer}#actionTabs .tabs .labels .label.active{border-color:#ffffff;border-bottom:2px solid transparent;margin-bottom:-2px}#actionTabs .tabs .panes{grid-row:2;display:grid;grid-template-rows:100%;overflow:hidden}#actionTabs .tabs .panes .infoMessage{opacity:0.5;color:white;margin:15px 5px 0px 5px}#actionTabs .tabs .panes .gradient-step{display:grid;grid-template-rows:100%;grid-template-columns:20px 30px 40px auto 20px 30px;padding-top:5px;padding-left:5px;padding-bottom:5px;align-items:center}#actionTabs .tabs .panes .gradient-step .step{grid-row:1;grid-column:1}#actionTabs .tabs .panes .gradient-step .color1{height:100%}#actionTabs .tabs .panes .gradient-step .color2{height:100%;padding-left:5px}#actionTabs .tabs .panes .gradient-step .factor1{grid-row:1;grid-column:2;cursor:pointer}#actionTabs .tabs .panes .gradient-step .factor2{padding-left:5px;grid-row:1;grid-column:3;cursor:pointer}#actionTabs .tabs .panes .gradient-step .factor2 .grayed{background:gray;border-color:gray}#actionTabs .tabs .panes .gradient-step .numeric-input{width:calc(100% - 5px)}#actionTabs .tabs .panes .gradient-step .icon{cursor:pointer}#actionTabs .tabs .panes .gradient-step .step-value{margin-left:5px;grid-row:1;grid-column:3;text-align:right;margin-right:5px}#actionTabs .tabs .panes .gradient-step .step-slider{grid-row:1;grid-column:4;display:grid;justify-content:stretch;align-content:center;margin-right:12px}#actionTabs .tabs .panes .gradient-step .step-slider input{width:100%}#actionTabs .tabs .panes .gradient-step .step-slider .range:hover{opacity:1}#actionTabs .tabs .panes .gradient-step .step-slider .range{-webkit-appearance:none;height:6px;background:#d3d3d3;border-radius:5px;outline:none;opacity:0.7;-webkit-transition:.2s;transition:opacity .2s}#actionTabs .tabs .panes .gradient-step .step-slider .range::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:14px;height:14px;border-radius:50%;background:#337ab7;cursor:pointer}#actionTabs .tabs .panes .gradient-step .step-slider .range::-moz-range-thumb{width:14px;height:14px;border-radius:50%;background:#337ab7;cursor:pointer}#actionTabs .tabs .panes .gradient-step .gradient-copy{grid-row:1;grid-column:5;display:grid;align-content:center;justify-content:center}#actionTabs .tabs .panes .gradient-step .gradient-copy .img{height:20px;width:20px}#actionTabs .tabs .panes .gradient-step .gradient-copy .img:hover{cursor:pointer}#actionTabs .tabs .panes .gradient-step .gradient-delete{grid-row:1;grid-column:6;display:grid;align-content:center;justify-content:center}#actionTabs .tabs .panes .gradient-step .gradient-delete .img{height:20px;width:20px}#actionTabs .tabs .panes .gradient-step .gradient-delete .img:hover{cursor:pointer}#actionTabs .tabs .panes .pane{color:white;overflow-x:hidden;overflow-y:auto;height:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}#actionTabs .tabs .panes .pane .animation-info{border-left:greenyellow 3px solid;margin-left:5px;padding-left:5px !important}#actionTabs .tabs .panes .pane .underline{border-bottom:0.5px solid rgba(255,255,255,0.5)}#actionTabs .tabs .panes .pane .textureLinkLine{display:grid;grid-template-columns:auto 1fr}#actionTabs .tabs .panes .pane .textureLinkLine .debug{grid-column:1;margin-left:5px;margin-right:5px;display:block;align-items:center;justify-items:center;cursor:pointer;opacity:0.5}#actionTabs .tabs .panes .pane .textureLinkLine .debug.selected{opacity:1.0}#actionTabs .tabs .panes .pane .textureLinkLine .textLine{grid-column:2}#actionTabs .tabs .panes .pane .textureLinkLine .actionIcon{display:inline-block;margin-top:6px;margin-right:4px}#actionTabs .tabs .panes .pane .messageLine{text-align:center;font-size:12px;font-style:italic;opacity:0.6}#actionTabs .tabs .panes .pane .iconMessageLine{padding-left:2px;height:30px;display:grid;grid-template-columns:30px 1fr}#actionTabs .tabs .panes .pane .iconMessageLine .icon{grid-column:1;display:grid;align-items:center;justify-items:center}#actionTabs .tabs .panes .pane .iconMessageLine .value{grid-column:2;display:flex;align-items:center}#actionTabs .tabs .panes .pane .color-picker{height:calc(100% - 8px);margin:4px;width:100%}#actionTabs .tabs .panes .pane .color-picker .color-rect{height:calc(100% - 4px);border:2px white solid;cursor:pointer;min-height:18px}#actionTabs .tabs .panes .pane .color-picker .color-picker-cover{position:fixed;top:0px;right:0px;bottom:0px;left:0px;z-index:100}#actionTabs .tabs .panes .pane .color-picker .color-picker-float{position:absolute}#actionTabs .tabs .panes .pane .linkButtonLine{padding-left:2px;height:30px;display:grid;grid-template-columns:1fr auto 20px}#actionTabs .tabs .panes .pane .linkButtonLine .link{grid-column:1;display:flex;align-items:center;text-decoration:underline;cursor:pointer}#actionTabs .tabs .panes .pane .linkButtonLine .link-button{grid-column:2}#actionTabs .tabs .panes .pane .linkButtonLine .link-button button{background:#222222;border:1px solid #337ab7;margin:5px 10px 5px 10px;color:white;padding:4px 5px;opacity:0.9;cursor:pointer}#actionTabs .tabs .panes .pane .linkButtonLine .link-button button:hover{opacity:1.0}#actionTabs .tabs .panes .pane .linkButtonLine .link-button button:active{background:#282828}#actionTabs .tabs .panes .pane .linkButtonLine .link-button button:focus{border:1px solid #337ab7;outline:0px}#actionTabs .tabs .panes .pane .linkButtonLine .link-icon{grid-column:3;display:grid;align-content:center}#actionTabs .tabs .panes .pane .textLine{padding-left:2px;height:30px;display:grid;grid-template-columns:1fr auto}#actionTabs .tabs .panes .pane .textLine.indented{grid-template-columns:100%}#actionTabs .tabs .panes .pane .textLine.indented .link-value{grid-column:1;text-align:start;margin-left:20px;opacity:0.6;max-width:unset}#actionTabs .tabs .panes .pane .textLine.indented .value{grid-column:1;text-align:start;margin-left:20px;opacity:0.6;max-width:unset}#actionTabs .tabs .panes .pane .textLine.reduced-opacity{opacity:0.6;padding-left:25px}#actionTabs .tabs .panes .pane .textLine .label{grid-column:1;display:flex;align-items:center}#actionTabs .tabs .panes .pane .textLine .link-value{grid-column:2;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;text-align:end;opacity:0.8;margin:5px;margin-top:7px;max-width:140px;text-decoration:underline;cursor:pointer}#actionTabs .tabs .panes .pane .textLine .value{grid-column:2;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;text-align:end;opacity:0.8;margin:5px;margin-top:7px;max-width:200px;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}#actionTabs .tabs .panes .pane .textLine .value.check{color:green}#actionTabs .tabs .panes .pane .textLine .value.uncheck{color:red}#actionTabs .tabs .panes .pane .gradient-container{margin-top:3px}#actionTabs .tabs .panes .pane .gradient-container .gradient-label{height:30px;display:grid;align-content:center}#actionTabs .tabs .panes .pane .gradient-container .gradient-step{display:grid;grid-template-rows:100%;grid-template-columns:25px 50px 55px 40px auto 20px 5px;padding-top:5px;padding-left:5px;padding-bottom:5px;align-items:center;border-left:orange 3px solid}#actionTabs .tabs .panes .pane .gradient-container .gradient-step .step{grid-row:1;grid-column:1}#actionTabs .tabs .panes .pane .gradient-container .gradient-step .color1{height:100%}#actionTabs .tabs .panes .pane .gradient-container .gradient-step .color2{height:100%;padding-left:5px}#actionTabs .tabs .panes .pane .gradient-container .gradient-step .factor1{grid-row:1;grid-column:2;cursor:pointer}#actionTabs .tabs .panes .pane .gradient-container .gradient-step .factor2{padding-left:5px;grid-row:1;grid-column:3;cursor:pointer}#actionTabs .tabs .panes .pane .gradient-container .gradient-step .factor2 .grayed{background:gray;border-color:gray}#actionTabs .tabs .panes .pane .gradient-container .gradient-step .numeric-input{width:calc(100% - 5px)}#actionTabs .tabs .panes .pane .gradient-container .gradient-step .step-value{margin-left:5px;grid-row:1;grid-column:4;text-align:right;margin-right:5px}#actionTabs .tabs .panes .pane .gradient-container .gradient-step .step-slider{grid-row:1;grid-column:5;display:grid;justify-content:stretch;align-content:center;margin-right:5px}#actionTabs .tabs .panes .pane .gradient-container .gradient-step .step-slider input{width:100%}#actionTabs .tabs .panes .pane .gradient-container .gradient-step .gradient-delete{grid-row:1;grid-column:6;display:grid;align-content:center;justify-content:center}#actionTabs .tabs .panes .pane .textInputLine{padding-left:2px;height:30px;display:grid;grid-template-columns:1fr 120px}#actionTabs .tabs .panes .pane .textInputLine .label{grid-column:1;display:flex;align-items:center}#actionTabs .tabs .panes .pane .textInputLine .value{display:flex;align-items:center;grid-column:2}#actionTabs .tabs .panes .pane .textInputLine .value input{width:110px}#actionTabs .tabs .panes .pane .buttonLine{height:30px;display:grid;align-items:center;justify-items:stretch}#actionTabs .tabs .panes .pane .buttonLine input[type=\"file\"]{display:none}#actionTabs .tabs .panes .pane .buttonLine .file-upload{background:#222222;border:1px solid #337ab7;margin:5px 10px 5px 10px;color:white;padding:4px 5px;font-size:13px;opacity:0.9;cursor:pointer;text-align:center}#actionTabs .tabs .panes .pane .buttonLine .file-upload:hover{opacity:1.0}#actionTabs .tabs .panes .pane .buttonLine .file-upload:active{transform:scale(0.98);transform-origin:0.5 0.5}#actionTabs .tabs .panes .pane .buttonLine button{background:#222222;border:1px solid #337ab7;margin:5px 10px 5px 10px;color:white;padding:4px 5px;opacity:0.9;cursor:pointer}#actionTabs .tabs .panes .pane .buttonLine button:hover{opacity:1.0}#actionTabs .tabs .panes .pane .buttonLine button:active{background:#282828}#actionTabs .tabs .panes .pane .buttonLine button:focus{border:1px solid #337ab7;outline:0px}#actionTabs .tabs .panes .pane .radioLine{padding-left:2px;height:30px;display:grid;grid-template-columns:1fr 24px}#actionTabs .tabs .panes .pane .radioLine .label{grid-column:1;display:flex;align-items:center}#actionTabs .tabs .panes .pane .radioLine .radioContainer{display:flex;align-items:center}#actionTabs .tabs .panes .pane .radioLine .radioContainer .radio{grid-column:2;display:none}#actionTabs .tabs .panes .pane .radioLine .radioContainer .radio:checked+label:before{border-color:#337ab7}#actionTabs .tabs .panes .pane .radioLine .radioContainer .radio:checked+label:after{transform:scale(1)}#actionTabs .tabs .panes .pane .radioLine .radioContainer .labelForRadio{display:inline-block;height:14px;position:relative;padding:0 24px;margin-bottom:0;cursor:pointer;vertical-align:bottom}#actionTabs .tabs .panes .pane .radioLine .radioContainer .labelForRadio:before,#actionTabs .tabs .panes .pane .radioLine .radioContainer .labelForRadio:after{position:absolute;content:'';border-radius:50%;transition:all .3s ease;transition-property:transform, border-color}#actionTabs .tabs .panes .pane .radioLine .radioContainer .labelForRadio:before{left:0px;top:0;width:16px;height:16px;border:2px solid white}#actionTabs .tabs .panes .pane .radioLine .radioContainer .labelForRadio:after{top:6px;left:6px;width:8px;height:8px;transform:scale(0);background:#337ab7}#actionTabs .tabs .panes .pane .vector3Line{padding-left:2px;display:grid}#actionTabs .tabs .panes .pane .vector3Line .firstLine{display:grid;grid-template-columns:1fr auto 20px;height:30px}#actionTabs .tabs .panes .pane .vector3Line .firstLine .label{grid-column:1;display:flex;align-items:center;white-space:nowrap;overflow:hidden}#actionTabs .tabs .panes .pane .vector3Line .firstLine .vector{grid-column:2;display:flex;align-items:center;text-align:right;opacity:0.8;padding-left:5px}#actionTabs .tabs .panes .pane .vector3Line .firstLine .expand{grid-column:3;display:grid;align-items:center;justify-items:center;cursor:pointer}#actionTabs .tabs .panes .pane .vector3Line .secondLine{display:grid;padding-right:5px;border-left:1px solid #337ab7}#actionTabs .tabs .panes .pane .vector3Line .secondLine .numeric{display:grid;grid-template-columns:1fr auto}#actionTabs .tabs .panes .pane .vector3Line .secondLine .numeric-label{text-align:right;grid-column:1;display:flex;align-items:center;justify-self:right;margin-right:10px}#actionTabs .tabs .panes .pane .vector3Line .secondLine .numeric-value{width:120px;grid-column:2;display:flex;align-items:center;border:1px solid #337ab7}#actionTabs .tabs .panes .pane .checkBoxLine{padding-left:2px;height:30px;display:grid;grid-template-columns:1fr auto}#actionTabs .tabs .panes .pane .checkBoxLine .label{grid-column:1;display:flex;align-items:center}#actionTabs .tabs .panes .pane .checkBoxLine .checkBox{grid-column:2;display:flex;align-items:center}#actionTabs .tabs .panes .pane .checkBoxLine .checkBox .lbl{position:relative;display:block;height:14px;width:34px;margin-right:5px;background:#898989;border-radius:100px;cursor:pointer;transition:all 0.3s ease}#actionTabs .tabs .panes .pane .checkBoxLine .checkBox .lbl:after{position:absolute;left:3px;top:2px;display:block;width:10px;height:10px;border-radius:100px;background:#fff;box-shadow:0px 3px 3px rgba(0,0,0,0.05);content:'';transition:all 0.15s ease}#actionTabs .tabs .panes .pane .checkBoxLine .checkBox .lbl:active:after{transform:scale(1.15, 0.85)}#actionTabs .tabs .panes .pane .checkBoxLine .checkBox .cbx:checked ~ label{background:#337ab7}#actionTabs .tabs .panes .pane .checkBoxLine .checkBox .cbx:checked ~ label:after{left:20px;background:#164975}#actionTabs .tabs .panes .pane .checkBoxLine .checkBox .hidden{display:none}#actionTabs .tabs .panes .pane .textureLine{display:grid;grid-template-rows:30px auto}#actionTabs .tabs .panes .pane .textureLine .control{margin-top:2px;grid-row:1;display:grid;grid-template-columns:1fr 40px 40px 40px 40px 40px 1fr}#actionTabs .tabs .panes .pane .textureLine .control .red{grid-column:2}#actionTabs .tabs .panes .pane .textureLine .control .green{grid-column:3}#actionTabs .tabs .panes .pane .textureLine .control .blue{grid-column:4}#actionTabs .tabs .panes .pane .textureLine .control .alpha{grid-column:5}#actionTabs .tabs .panes .pane .textureLine .control .all{grid-column:6}#actionTabs .tabs .panes .pane .textureLine .control3D{margin-top:2px;grid-row:1;display:grid;grid-template-columns:1fr 40px 40px 40px 40px 40px 40px 1fr}#actionTabs .tabs .panes .pane .textureLine .control3D .px{grid-column:2}#actionTabs .tabs .panes .pane .textureLine .control3D .nx{grid-column:3}#actionTabs .tabs .panes .pane .textureLine .control3D .py{grid-column:4}#actionTabs .tabs .panes .pane .textureLine .control3D .ny{grid-column:5}#actionTabs .tabs .panes .pane .textureLine .control3D .pz{grid-column:6}#actionTabs .tabs .panes .pane .textureLine .control3D .nz{grid-column:7}#actionTabs .tabs .panes .pane .textureLine .command{border:1px solid transparent;background:transparent;color:white}#actionTabs .tabs .panes .pane .textureLine .selected{border:1px solid #337ab7}#actionTabs .tabs .panes .pane .textureLine .preview{grid-row:2;display:grid;align-self:center;justify-self:center;height:256px;width:256px;margin-top:5px;margin-bottom:5px;border:1px solid white;background-size:32px 32px;background-color:white;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2 2'%3E%3Cpath fill='rgba(1.0,1.0,1.0,0.3)' fill-rule='evenodd' d='M0 0h1v1H0V0zm1 1h1v1H1V1z'/%3E%3C/svg%3E\")}#actionTabs .tabs .panes .pane .gltf-extension-property{margin-left:30px;border-left:1px solid #337ab7}#actionTabs .tabs .panes .pane .floatLine{padding-left:2px;height:30px;display:grid;grid-template-columns:1fr 120px}#actionTabs .tabs .panes .pane .floatLine .label{grid-column:1;display:flex;align-items:center}#actionTabs .tabs .panes .pane .floatLine .value{grid-column:2;display:flex;align-items:center}#actionTabs .tabs .panes .pane .floatLine .value input{width:110px}#actionTabs .tabs .panes .pane .sliderLine{padding-left:2px;height:30px;display:grid;grid-template-rows:100%;grid-template-columns:1fr 50px}#actionTabs .tabs .panes .pane .sliderLine .label{grid-column:1;display:flex;align-items:center}#actionTabs .tabs .panes .pane .sliderLine .withMargins{margin-left:5px}#actionTabs .tabs .panes .pane .sliderLine .floatLine{padding-left:2px}#actionTabs .tabs .panes .pane .sliderLine .floatLine .short{grid-column:1;display:flex;align-items:center}#actionTabs .tabs .panes .pane .sliderLine .floatLine .short input{width:35px}#actionTabs .tabs .panes .pane .sliderLine .floatLine .short input::-webkit-outer-spin-button,#actionTabs .tabs .panes .pane .sliderLine .floatLine .short input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}#actionTabs .tabs .panes .pane .sliderLine .floatLine .short input[type=number]{-moz-appearance:textfield}#actionTabs .tabs .panes .pane .sliderLine .slider{grid-column:3;grid-row:1;margin-right:5px;width:90%;display:flex;align-items:center}#actionTabs .tabs .panes .pane .sliderLine .slider .range{-webkit-appearance:none;width:120px;height:6px;background:#d3d3d3;border-radius:5px;outline:none;opacity:0.7;-webkit-transition:.2s;transition:opacity .2s}#actionTabs .tabs .panes .pane .sliderLine .slider .range:hover{opacity:1}#actionTabs .tabs .panes .pane .sliderLine .slider .range::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:14px;height:14px;border-radius:50%;background:#337ab7;cursor:pointer}#actionTabs .tabs .panes .pane .sliderLine .slider .range::-moz-range-thumb{width:14px;height:14px;border-radius:50%;background:#337ab7;cursor:pointer}#actionTabs .tabs .panes .pane .color3Line{padding-left:2px;display:grid}#actionTabs .tabs .panes .pane .color3Line .firstLine{height:30px;display:grid;grid-template-columns:1fr auto 20px 20px}#actionTabs .tabs .panes .pane .color3Line .firstLine .label{grid-column:1;display:flex;align-items:center}#actionTabs .tabs .panes .pane .color3Line .firstLine .color3{grid-column:2;width:50px;display:flex;align-items:center}#actionTabs .tabs .panes .pane .color3Line .firstLine .color3 input[type=\"color\"]{-webkit-appearance:none;border:1px solid rgba(255,255,255,0.5);padding:0;width:30px;height:20px}#actionTabs .tabs .panes .pane .color3Line .firstLine .color3 input[type=\"color\"]::-webkit-color-swatch-wrapper{padding:0}#actionTabs .tabs .panes .pane .color3Line .firstLine .color3 input[type=\"color\"]::-webkit-color-swatch{border:none}#actionTabs .tabs .panes .pane .color3Line .firstLine .color3 input{margin-right:5px}#actionTabs .tabs .panes .pane .color3Line .firstLine .copy{grid-column:3;display:grid;align-items:center;justify-items:center;cursor:pointer}#actionTabs .tabs .panes .pane .color3Line .firstLine .copy img{height:100%}#actionTabs .tabs .panes .pane .color3Line .firstLine .expand{grid-column:4;display:grid;align-items:center;justify-items:center;cursor:pointer}#actionTabs .tabs .panes .pane .color3Line .secondLine{display:grid;padding-right:5px;border-left:1px solid #337ab7}#actionTabs .tabs .panes .pane .color3Line .secondLine .numeric{display:grid;grid-template-columns:1fr auto}#actionTabs .tabs .panes .pane .color3Line .secondLine .numeric-label{text-align:right;grid-column:1;display:flex;align-items:center;justify-self:right;margin-right:10px}#actionTabs .tabs .panes .pane .color3Line .secondLine .numeric-value{width:120px;grid-column:2;display:flex;align-items:center;border:1px solid #337ab7}#actionTabs .tabs .panes .pane .listLine{padding-left:2px;height:30px;display:grid;grid-template-columns:1fr auto}#actionTabs .tabs .panes .pane .listLine .label{grid-column:1;display:flex;align-items:center}#actionTabs .tabs .panes .pane .listLine .options{grid-column:2;display:flex;align-items:center;margin-right:5px}#actionTabs .tabs .panes .pane .listLine .options select{width:115px}#actionTabs .tabs .panes .pane .paneContainer{margin-top:3px;display:grid;grid-template-rows:100%;grid-template-columns:100%}#actionTabs .tabs .panes .pane .paneContainer .paneList{border-left:3px solid transparent}#actionTabs .tabs .panes .pane .paneContainer:hover .paneList{border-left:3px solid rgba(51,122,183,0.8)}#actionTabs .tabs .panes .pane .paneContainer:hover .paneContainer-content .header .title{border-left:3px solid #337ab7}#actionTabs .tabs .panes .pane .paneContainer .paneContainer-highlight-border{grid-row:1;grid-column:1;opacity:1;border:3px solid red;margin-bottom:-5px;z-index:100;transition:opacity 250ms;pointer-events:none}#actionTabs .tabs .panes .pane .paneContainer .paneContainer-highlight-border.transparent{opacity:0}#actionTabs .tabs .panes .pane .paneContainer .paneContainer-content{grid-row:1;grid-column:1}#actionTabs .tabs .panes .pane .paneContainer .paneContainer-content .header{display:grid;grid-template-columns:1fr auto;background:#555555;height:30px;padding-right:5px;cursor:pointer}#actionTabs .tabs .panes .pane .paneContainer .paneContainer-content .header .title{border-left:3px solid transparent;padding-left:5px;grid-column:1;display:flex;align-items:center}#actionTabs .tabs .panes .pane .paneContainer .paneContainer-content .header .collapse{grid-column:2;display:flex;align-items:center;justify-items:center;transform-origin:center}#actionTabs .tabs .panes .pane .paneContainer .paneContainer-content .header .collapse.closed{transform:rotate(180deg)}#actionTabs .tabs .panes .pane .paneContainer .paneContainer-content .paneList>div:not(:last-child){border-bottom:0.5px solid rgba(255,255,255,0.1)}#actionTabs .tabs .panes .pane .paneContainer .paneContainer-content .fragment>div:not(:last-child){border-bottom:0.5px solid rgba(255,255,255,0.1)}\n",""]),e.exports=t},function(e,t,r){var n=r(9),a=r(57);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]);var o={insert:"head",singleton:!1};n(a,o);e.exports=a.locals||{}},function(e,t,r){(t=r(10)(!1)).push([e.i,'#scene-explorer-host{position:absolute;left:0px;top:0px;bottom:0px}#scene-explorer-host:focus{outline:none}#__resizable_base__{display:none}.context-menu{background:#222222}.context-menu .react-contextmenu-item{padding:10px;cursor:pointer}.context-menu .react-contextmenu-item:hover{background:#555555}.react-contextmenu.context-menu.react-contextmenu--visible{z-index:99;transform:scale(1)}#sceneExplorer{background:#333333;height:100%;margin:0;padding:0;display:grid;grid-template-rows:auto 1fr;font:14px "Arial"}#sceneExplorer:focus{outline:none}#sceneExplorer #header{height:30px;font-size:16px;color:white;background:#222222;grid-row:1;text-align:center;display:grid;grid-template-columns:30px 1fr 50px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}#sceneExplorer #header #logo{position:relative;grid-column:1;width:24px;height:24px;left:0;display:flex;align-self:center;justify-self:center}#sceneExplorer #header #title{grid-column:2;display:grid;align-items:center;text-align:center}#sceneExplorer #header #commands{grid-column:3;display:grid;align-items:center;grid-template-columns:1fr 1fr}#sceneExplorer #header #commands .expand{grid-column:1;display:grid;align-items:center;justify-items:center;cursor:pointer}#sceneExplorer #header #commands .close{grid-column:2;display:grid;align-items:center;justify-items:center;cursor:pointer}#sceneExplorer #tree{grid-row:2;overflow-x:hidden;overflow-y:auto}#sceneExplorer .filter{display:flex;align-items:stretch}#sceneExplorer .filter input{width:100%;margin:10px 40px 5px 40px;display:block;border:none;padding:0;border-bottom:solid 1px #337ab7;background:linear-gradient(to bottom, rgba(255,255,255,0) 96%, #337ab7 4%);background-position:-1000px 0;background-size:1000px 100%;background-repeat:no-repeat;color:white}#sceneExplorer .filter input::placeholder{color:lightgray}#sceneExplorer .filter input:focus{box-shadow:none;outline:none;background-position:0 0}#sceneExplorer .groupContainer{margin-left:0px;color:white;margin-top:0px;margin-bottom:0px;height:24px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;align-self:center;display:grid;align-items:center}#sceneExplorer .groupContainer:hover{background:#444444}#sceneExplorer .groupContainer .expandableHeader{display:grid;grid-template-columns:1fr 20px}#sceneExplorer .groupContainer .expandableHeader .text{grid-column:1;display:grid;grid-template-columns:20px 1fr}#sceneExplorer .groupContainer .expandableHeader .text .arrow{grid-column:1;margin-left:0px;color:white;cursor:pointer;display:inline-block;margin-right:6px;opacity:0.5}#sceneExplorer .groupContainer .expandableHeader .text .text-value{grid-column:2;display:flex;align-items:center}#sceneExplorer .groupContainer .expandableHeader .expandAll{opacity:0.5;grid-column:2;margin-right:10px}#sceneExplorer .icon{display:grid;align-items:center;justify-items:center;cursor:pointer}#sceneExplorer .itemContainer{margin-left:0px;color:white;margin-top:0px;margin-bottom:0px;height:24px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:grid;grid-template-columns:20px 1fr}#sceneExplorer .itemContainer:hover{background:#444444}#sceneExplorer .itemContainer.selected{background:#bbbbbb;color:black}#sceneExplorer .itemContainer .isNotActive{opacity:0.3}#sceneExplorer .itemContainer .arrow{grid-column:1;color:white;opacity:0.6}#sceneExplorer .itemContainer .popup{width:200px;visibility:hidden;background-color:#444444;color:#fff;border:1px solid rgba(255,255,255,0.5);position:absolute;z-index:1;margin-left:-180px;box-sizing:border-box}#sceneExplorer .itemContainer .popup.show{visibility:visible}#sceneExplorer .itemContainer .popup:focus{outline:none}#sceneExplorer .itemContainer .popup .popupMenu{padding:6px 5px 5px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;height:18px}#sceneExplorer .itemContainer .popup .popupMenu:hover{background:white;color:#333333}#sceneExplorer .itemContainer .sceneNode{grid-column:2;margin-left:-10px;display:grid;grid-template-columns:1fr 20px 20px 20px 20px 10px 20px 20px auto 5px;align-items:center;cursor:pointer}#sceneExplorer .itemContainer .sceneNode .sceneTitle{grid-column:1;margin-right:5px;display:flex;align-items:center;height:24px}#sceneExplorer .itemContainer .sceneNode .translation{grid-column:2;opacity:0.6}#sceneExplorer .itemContainer .sceneNode .translation.selected{opacity:1}#sceneExplorer .itemContainer .sceneNode .rotation{grid-column:3;opacity:0.6}#sceneExplorer .itemContainer .sceneNode .rotation.selected{opacity:1}#sceneExplorer .itemContainer .sceneNode .scaling{grid-column:4;opacity:0.6}#sceneExplorer .itemContainer .sceneNode .scaling.selected{opacity:1}#sceneExplorer .itemContainer .sceneNode .bounding{grid-column:5;opacity:0.6}#sceneExplorer .itemContainer .sceneNode .bounding.selected{opacity:1}#sceneExplorer .itemContainer .sceneNode .separator{grid-column:6;margin-left:5px;width:5px;display:flex;align-items:center;height:18px;border-left:solid 1px #337ab7}#sceneExplorer .itemContainer .sceneNode .pickingMode{grid-column:7;opacity:0.6}#sceneExplorer .itemContainer .sceneNode .pickingMode.selected{opacity:1}#sceneExplorer .itemContainer .sceneNode .refresh{grid-column:8}#sceneExplorer .itemContainer .sceneNode .extensions{width:20px;grid-column:9}#sceneExplorer .itemContainer .targetedAnimationTools{grid-column:2;width:100%;display:grid;grid-template-columns:1fr auto 5px;align-items:center;min-width:0}#sceneExplorer .itemContainer .targetedAnimationTools .extensions{width:20px;grid-column:2}#sceneExplorer .itemContainer .animationGroupTools{grid-column:2;width:100%;display:grid;grid-template-columns:1fr auto 5px;align-items:center;min-width:0}#sceneExplorer .itemContainer .animationGroupTools .extensions{width:20px;grid-column:2}#sceneExplorer .itemContainer .soundTools{grid-column:2;width:100%;display:grid;grid-template-columns:1fr auto 5px;align-items:center;min-width:0}#sceneExplorer .itemContainer .soundTools .extensions{width:20px;grid-column:2}#sceneExplorer .itemContainer .meshTools{grid-column:2;width:100%;display:grid;grid-template-columns:1fr 20px 20px auto 5px;align-items:center;min-width:0}#sceneExplorer .itemContainer .meshTools .bounding-box{grid-column:2;opacity:0.5}#sceneExplorer .itemContainer .meshTools .bounding-box.selected{opacity:1}#sceneExplorer .itemContainer .meshTools .visibility{grid-column:3}#sceneExplorer .itemContainer .meshTools .extensions{width:20px;grid-column:4}#sceneExplorer .itemContainer .cameraTools{grid-column:2;display:grid;grid-template-columns:1fr 20px 20px auto 5px;align-items:center}#sceneExplorer .itemContainer .cameraTools .activeCamera{grid-column:2}#sceneExplorer .itemContainer .cameraTools .enableGizmo{grid-column:3}#sceneExplorer .itemContainer .cameraTools .extensions{width:20px;grid-column:4}#sceneExplorer .itemContainer .lightTools{grid-column:2;display:grid;grid-template-columns:1fr 20px 20px auto 5px;align-items:center}#sceneExplorer .itemContainer .lightTools .enableLight{grid-column:2}#sceneExplorer .itemContainer .lightTools .extensions{width:20px;grid-column:3}#sceneExplorer .itemContainer .spriteTools{grid-column:2;display:grid;grid-template-columns:1fr auto 5px;align-items:center}#sceneExplorer .itemContainer .spriteTools .extensions{width:20px;grid-column:2}#sceneExplorer .itemContainer .spriteManagerTools{grid-column:2;display:grid;grid-template-columns:1fr auto 5px;align-items:center}#sceneExplorer .itemContainer .spriteManagerTools .extensions{width:20px;grid-column:2}#sceneExplorer .itemContainer .materialTools{grid-column:2;display:grid;grid-template-columns:1fr auto 5px;align-items:center}#sceneExplorer .itemContainer .materialTools .extensions{width:20px;grid-column:2}#sceneExplorer .itemContainer .materialTools .icon{display:grid;align-items:center;justify-items:center;cursor:pointer}#sceneExplorer .itemContainer .particleSystemTools{grid-column:2;display:grid;grid-template-columns:1fr auto 5px;align-items:center}#sceneExplorer .itemContainer .particleSystemTools .extensions{width:20px;grid-column:2}#sceneExplorer .itemContainer .postProcessTools{grid-column:2;display:grid;grid-template-columns:1fr auto 5px;align-items:center}#sceneExplorer .itemContainer .postProcessTools .extensions{width:20px;grid-column:2}#sceneExplorer .itemContainer .renderingPipelineTools{grid-column:2;display:grid;grid-template-columns:1fr auto 5px;align-items:center}#sceneExplorer .itemContainer .renderingPipelineTools .extensions{width:20px;grid-column:2}#sceneExplorer .itemContainer .textureTools{grid-column:2;display:grid;grid-template-columns:1fr auto 5px;align-items:center}#sceneExplorer .itemContainer .textureTools .extensions{width:20px;grid-column:2}#sceneExplorer .itemContainer .adtextureTools{grid-column:2;display:grid;grid-template-columns:1fr 20px auto 5px;align-items:center}#sceneExplorer .itemContainer .adtextureTools .pickingMode{grid-column:2;opacity:0.6}#sceneExplorer .itemContainer .adtextureTools .pickingMode.selected{opacity:1}#sceneExplorer .itemContainer .adtextureTools .extensions{width:20px;grid-column:3}#sceneExplorer .itemContainer .controlTools{grid-column:2;display:grid;grid-template-columns:1fr 20px 20px auto 5px;align-items:center}#sceneExplorer .itemContainer .controlTools .highlight{grid-column:2}#sceneExplorer .itemContainer .controlTools .visibility{grid-column:3}#sceneExplorer .itemContainer .controlTools .extensions{width:20px;grid-column:4}#sceneExplorer .itemContainer .transformNodeTools{grid-column:2;display:grid;grid-template-columns:1fr auto 5px;align-items:center}#sceneExplorer .itemContainer .transformNodeTools .extensions{width:20px;grid-column:2}#sceneExplorer .itemContainer .skeletonTools{grid-column:2;display:grid;grid-template-columns:1fr auto 5px;align-items:center}#sceneExplorer .itemContainer .skeletonTools .extensions{width:20px;grid-column:2}#sceneExplorer .itemContainer .title{grid-column:1;background:transparent;white-space:nowrap;overflow:hidden;min-width:0;margin-right:5px;display:grid;align-items:center;grid-template-columns:25px 1fr;height:24px;cursor:pointer}#sceneExplorer .itemContainer .title .titleIcon{grid-column:1;display:grid;align-items:center;justify-items:center}#sceneExplorer .itemContainer .title .titleText{grid-column:2;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}\n',""]),e.exports=t},function(e,t,r){"use strict";r.r(t);var n="undefined"!=typeof window?window:null,a=null===n,o=a?void 0:n.document,i=function(){return!1},l=a?"calc":["","-webkit-","-moz-","-o-"].filter((function(e){var t=o.createElement("div");return t.style.cssText="width:"+e+"calc(9px)",!!t.style.length})).shift()+"calc",s=function(e){return"string"==typeof e||e instanceof String},p=function(e){if(s(e)){var t=o.querySelector(e);if(!t)throw new Error("Selector "+e+" did not match a DOM element");return t}return e},c=function(e,t,r){var n=e[t];return void 0!==n?n:r},u=function(e,t,r,n){if(t){if("end"===n)return 0;if("center"===n)return e/2}else if(r){if("start"===n)return 0;if("center"===n)return e/2}return e},d=function(e,t){var r=o.createElement("div");return r.className="gutter gutter-"+t,r},h=function(e,t,r){var n={};return s(t)?n[e]=t:n[e]=l+"("+t+"% - "+r+"px)",n},b=function(e,t){var r;return(r={})[e]=t+"px",r};t.default=function(e,t){if(void 0===t&&(t={}),a)return{};var r,l,s,m,g,f,v=e;Array.from&&(v=Array.from(v));var y=p(v[0]).parentNode,C=getComputedStyle?getComputedStyle(y):null,E=C?C.flexDirection:null,O=c(t,"sizes")||v.map((function(){return 100/v.length})),S=c(t,"minSize",100),x=Array.isArray(S)?S:v.map((function(){return S})),P=c(t,"expandToMin",!1),w=c(t,"gutterSize",10),k=c(t,"gutterAlign","center"),N=c(t,"snapOffset",30),T=c(t,"dragInterval",1),_=c(t,"direction","horizontal"),M=c(t,"cursor","horizontal"===_?"col-resize":"row-resize"),L=c(t,"gutter",d),R=c(t,"elementStyle",h),D=c(t,"gutterStyle",b);function A(e,t,n,a){var o=R(r,t,n,a);Object.keys(o).forEach((function(t){e.style[t]=o[t]}))}function I(){return f.map((function(e){return e.size}))}function j(e){return"touches"in e?e.touches[0][l]:e[l]}function z(e){var t=f[this.a],r=f[this.b],n=t.size+r.size;t.size=e/this.size*n,r.size=n-e/this.size*n,A(t.element,t.size,this._b,t.i),A(r.element,r.size,this._c,r.i)}function G(e){var r,n=f[this.a],a=f[this.b];this.dragging&&(r=j(e)-this.start+(this._b-this.dragOffset),T>1&&(r=Math.round(r/T)*T),r<=n.minSize+N+this._b?r=n.minSize+this._b:r>=this.size-(a.minSize+N+this._c)&&(r=this.size-(a.minSize+this._c)),z.call(this,r),c(t,"onDrag",i)(I()))}function F(){var e=f[this.a].element,t=f[this.b].element,n=e.getBoundingClientRect(),a=t.getBoundingClientRect();this.size=n[r]+a[r]+this._b+this._c,this.start=n[s],this.end=n[m]}function V(e){var t=function(e){if(!getComputedStyle)return null;var t=getComputedStyle(e);if(!t)return null;var r=e[g];return 0===r?null:r-="horizontal"===_?parseFloat(t.paddingLeft)+parseFloat(t.paddingRight):parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)}(y);if(null===t)return e;if(x.reduce((function(e,t){return e+t}),0)>t)return e;var r=0,n=[],a=e.map((function(a,o){var i=t*a/100,l=u(w,0===o,o===e.length-1,k),s=x[o]+l;return i<s?(r+=s-i,n.push(0),s):(n.push(i-s),i)}));return 0===r?e:a.map((function(e,a){var o=e;if(r>0&&n[a]-r>0){var i=Math.min(r,n[a]-r);r-=i,o=e-i}return o/t*100}))}function U(){var e=f[this.a].element,r=f[this.b].element;this.dragging&&c(t,"onDragEnd",i)(I()),this.dragging=!1,n.removeEventListener("mouseup",this.stop),n.removeEventListener("touchend",this.stop),n.removeEventListener("touchcancel",this.stop),n.removeEventListener("mousemove",this.move),n.removeEventListener("touchmove",this.move),this.stop=null,this.move=null,e.removeEventListener("selectstart",i),e.removeEventListener("dragstart",i),r.removeEventListener("selectstart",i),r.removeEventListener("dragstart",i),e.style.userSelect="",e.style.webkitUserSelect="",e.style.MozUserSelect="",e.style.pointerEvents="",r.style.userSelect="",r.style.webkitUserSelect="",r.style.MozUserSelect="",r.style.pointerEvents="",this.gutter.style.cursor="",this.parent.style.cursor="",o.body.style.cursor=""}function H(e){if(!("button"in e)||0===e.button){var r=f[this.a].element,a=f[this.b].element;this.dragging||c(t,"onDragStart",i)(I()),e.preventDefault(),this.dragging=!0,this.move=G.bind(this),this.stop=U.bind(this),n.addEventListener("mouseup",this.stop),n.addEventListener("touchend",this.stop),n.addEventListener("touchcancel",this.stop),n.addEventListener("mousemove",this.move),n.addEventListener("touchmove",this.move),r.addEventListener("selectstart",i),r.addEventListener("dragstart",i),a.addEventListener("selectstart",i),a.addEventListener("dragstart",i),r.style.userSelect="none",r.style.webkitUserSelect="none",r.style.MozUserSelect="none",r.style.pointerEvents="none",a.style.userSelect="none",a.style.webkitUserSelect="none",a.style.MozUserSelect="none",a.style.pointerEvents="none",this.gutter.style.cursor=M,this.parent.style.cursor=M,o.body.style.cursor=M,F.call(this),this.dragOffset=j(e)-this.end}}"horizontal"===_?(r="width",l="clientX",s="left",m="right",g="clientWidth"):"vertical"===_&&(r="height",l="clientY",s="top",m="bottom",g="clientHeight"),O=V(O);var B=[];function W(e){var t=e.i===B.length,r=t?B[e.i-1]:B[e.i];F.call(r);var n=t?r.size-e.minSize-r._c:e.minSize+r._b;z.call(r,n)}return(f=v.map((function(e,t){var n,a={element:p(e),size:O[t],minSize:x[t],i:t};if(t>0&&((n={a:t-1,b:t,dragging:!1,direction:_,parent:y})._b=u(w,t-1==0,!1,k),n._c=u(w,!1,t===v.length-1,k),"row-reverse"===E||"column-reverse"===E)){var o=n.a;n.a=n.b,n.b=o}if(t>0){var i=L(t,_,a.element);!function(e,t,n){var a=D(r,t,n);Object.keys(a).forEach((function(t){e.style[t]=a[t]}))}(i,w,t),n._a=H.bind(n),i.addEventListener("mousedown",n._a),i.addEventListener("touchstart",n._a),y.insertBefore(i,a.element),n.gutter=i}return A(a.element,a.size,u(w,0===t,t===v.length-1,k),t),t>0&&B.push(n),a}))).forEach((function(e){var t=e.element.getBoundingClientRect()[r];t<e.minSize&&(P?W(e):e.minSize=t)})),{setSizes:function(e){var t=V(e);t.forEach((function(e,r){if(r>0){var n=B[r-1],a=f[n.a],o=f[n.b];a.size=t[r-1],o.size=e,A(a.element,a.size,n._b,a.i),A(o.element,o.size,n._c,o.i)}}))},getSizes:I,collapse:function(e){W(f[e])},destroy:function(e,t){B.forEach((function(n){if(!0!==t?n.parent.removeChild(n.gutter):(n.gutter.removeEventListener("mousedown",n._a),n.gutter.removeEventListener("touchstart",n._a)),!0!==e){var a=R(r,n.a.size,n._b);Object.keys(a).forEach((function(e){f[n.a].element.style[e]="",f[n.b].element.style[e]=""}))}}))},parent:y,pairs:B}}},function(e,t,r){var n=r(9),a=r(60);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]);var o={insert:"head",singleton:!1};n(a,o);e.exports=a.locals||{}},function(e,t,r){(t=r(10)(!1)).push([e.i,'#embed-host{position:absolute;right:0px;top:0px;bottom:0px;z-index:10}#__resizable_base__{display:none}#embed{background:#333333;height:100%;margin:0;padding:0;display:grid;grid-template-rows:30px 1fr;font:14px "Arial";overflow:hidden}#embed #header{font-size:16px;color:white;background:#222222;grid-row:1;text-align:center;display:grid;grid-template-columns:30px 1fr 50px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}#embed #header #logo{grid-column:1;width:24px;height:24px;display:flex;align-self:center;justify-self:center}#embed #header #back{grid-column:1;display:grid;align-self:center;justify-self:center;cursor:pointer}#embed #header #title{grid-column:2;display:grid;align-items:center;text-align:center}#embed #header #commands{grid-column:3;display:grid;align-items:center;grid-template-columns:1fr 1fr}#embed #header #commands .expand{grid-column:1;display:grid;align-items:center;justify-items:center;cursor:pointer}#embed #header #commands .close{grid-column:2;display:grid;align-items:center;justify-items:center;cursor:pointer}#embed #split{grid-row:2;overflow:hidden}#embed #split.splitPopup{display:grid;grid-template-rows:300px 2px 1fr}#embed #split.splitPopup .panes{margin-bottom:1px}#embed #split #topPart{grid-row:1;overflow:hidden;display:grid;grid-auto-rows:100%}#embed #split #separator{grid-row:2;background:white;opacity:0.1}#embed #split #bottomPart{overflow:hidden;grid-row:3;display:grid;grid-auto-rows:100%}#embed #split .gutter.gutter-vertical{background-image:none;background:#444444;cursor:row-resize}\n',""]),e.exports=t}])}));