!function(d,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.dat=e():d.dat=e()}(this,function(){return function(d){function e(b){if(c[b])return c[b].exports;var h=c[b]={exports:{},id:b,loaded:!1};return d[b].call(h.exports,h,h.exports,e),h.loaded=!0,h.exports}var c={};return e.m=d,e.c=c,e.p="",e(0)}([function(d,e,c){e=c(1);d.exports=(e&&e.__esModule?e:{"default":e})["default"]},function(d,e, c){function b(a){return a&&a.__esModule?a:{"default":a}}e.__esModule=!0;d=c(2);d=b(d);var h=c(6),h=b(h),l=c(3),l=b(l),g=c(7),g=b(g),a=c(8),a=b(a),f=c(10),f=b(f),p=c(11),p=b(p),n=c(12),n=b(n),x=c(13),x=b(x),t=c(14),t=b(t),y=c(15),y=b(y),B=c(16),B=b(B),w=c(9),w=b(w);c=c(17);c=b(c);e["default"]={color:{Color:d["default"],math:h["default"],interpret:l["default"]},controllers:{Controller:g["default"],BooleanController:a["default"],OptionController:f["default"],StringController:p["default"],NumberController:n["default"], NumberControllerBox:x["default"],NumberControllerSlider:t["default"],FunctionController:y["default"],ColorController:B["default"]},dom:{dom:w["default"]},gui:{GUI:c["default"]},GUI:c["default"]}},function(d,e,c){function b(a){return a&&a.__esModule?a:{"default":a}}function h(a,f,b){Object.defineProperty(a,f,{get:function(){return"RGB"===this.__state.space?this.__state[f]:(n.recalculateRGB(this,f,b),this.__state[f])},set:function(a){"RGB"!==this.__state.space&&(n.recalculateRGB(this,f,b),this.__state.space= "RGB");this.__state[f]=a}})}function l(a,f){Object.defineProperty(a,f,{get:function(){return"HSV"===this.__state.space?this.__state[f]:(n.recalculateHSV(this),this.__state[f])},set:function(a){"HSV"!==this.__state.space&&(n.recalculateHSV(this),this.__state.space="HSV");this.__state[f]=a}})}e.__esModule=!0;d=c(3);var g=b(d);d=c(6);var a=b(d);d=c(4);var f=b(d);c=c(5);var p=b(c),n=function(){function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");if(this.__state= g["default"].apply(this,arguments),!1===this.__state)throw Error("Failed to interpret color arguments");this.__state.a=this.__state.a||1}return a.prototype.toString=function(){return(0,f["default"])(this)},a.prototype.toOriginal=function(){return this.__state.conversion.write(this)},a}();n.recalculateRGB=function(f,b,c){if("HEX"===f.__state.space)f.__state[b]=a["default"].component_from_hex(f.__state.hex,c);else{if("HSV"!==f.__state.space)throw Error("Corrupted color state");p["default"].extend(f.__state, a["default"].hsv_to_rgb(f.__state.h,f.__state.s,f.__state.v))}};n.recalculateHSV=function(f){var b=a["default"].rgb_to_hsv(f.r,f.g,f.b);p["default"].extend(f.__state,{s:b.s,v:b.v});p["default"].isNaN(b.h)?p["default"].isUndefined(f.__state.h)&&(f.__state.h=0):f.__state.h=b.h};n.COMPONENTS="r g b h s v hex a".split(" ");h(n.prototype,"r",2);h(n.prototype,"g",1);h(n.prototype,"b",0);l(n.prototype,"h");l(n.prototype,"s");l(n.prototype,"v");Object.defineProperty(n.prototype,"a",{get:function(){return this.__state.a}, set:function(a){this.__state.a=a}});Object.defineProperty(n.prototype,"hex",{get:function(){return"HEX"!==!this.__state.space&&(this.__state.hex=a["default"].rgb_to_hex(this.r,this.g,this.b)),this.__state.hex},set:function(a){this.__state.space="HEX";this.__state.hex=a}});e["default"]=n},function(d,e,c){e.__esModule=!0;d=(d=c(4))&&d.__esModule?d:{"default":d};var b=(c=c(5))&&c.__esModule?c:{"default":c},h=[{litmus:b["default"].isString,conversions:{THREE_CHAR_HEX:{read:function(a){a=a.match(/^#([A-F0-9])([A-F0-9])([A-F0-9])$/i); return null!==a&&{space:"HEX",hex:parseInt("0x"+a[1].toString()+a[1].toString()+a[2].toString()+a[2].toString()+a[3].toString()+a[3].toString(),0)}},write:d["default"]},SIX_CHAR_HEX:{read:function(a){a=a.match(/^#([A-F0-9]{6})$/i);return null!==a&&{space:"HEX",hex:parseInt("0x"+a[1].toString(),0)}},write:d["default"]},CSS_RGB:{read:function(a){a=a.match(/^rgb\(\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*\)/);return null!==a&&{space:"RGB",r:parseFloat(a[1]),g:parseFloat(a[2]),b:parseFloat(a[3])}},write:d["default"]}, CSS_RGBA:{read:function(a){a=a.match(/^rgba\(\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*\)/);return null!==a&&{space:"RGB",r:parseFloat(a[1]),g:parseFloat(a[2]),b:parseFloat(a[3]),a:parseFloat(a[4])}},write:d["default"]}}},{litmus:b["default"].isNumber,conversions:{HEX:{read:function(a){return{space:"HEX",hex:a,conversionName:"HEX"}},write:function(a){return a.hex}}}},{litmus:b["default"].isArray,conversions:{RGB_ARRAY:{read:function(a){return 3===a.length&&{space:"RGB",r:a[0],g:a[1],b:a[2]}},write:function(a){return[a.r, a.g,a.b]}},RGBA_ARRAY:{read:function(a){return 4===a.length&&{space:"RGB",r:a[0],g:a[1],b:a[2],a:a[3]}},write:function(a){return[a.r,a.g,a.b,a.a]}}}},{litmus:b["default"].isObject,conversions:{RGBA_OBJ:{read:function(a){return!!(b["default"].isNumber(a.r)&&b["default"].isNumber(a.g)&&b["default"].isNumber(a.b)&&b["default"].isNumber(a.a))&&{space:"RGB",r:a.r,g:a.g,b:a.b,a:a.a}},write:function(a){return{r:a.r,g:a.g,b:a.b,a:a.a}}},RGB_OBJ:{read:function(a){return!!(b["default"].isNumber(a.r)&&b["default"].isNumber(a.g)&& b["default"].isNumber(a.b))&&{space:"RGB",r:a.r,g:a.g,b:a.b}},write:function(a){return{r:a.r,g:a.g,b:a.b}}},HSVA_OBJ:{read:function(a){return!!(b["default"].isNumber(a.h)&&b["default"].isNumber(a.s)&&b["default"].isNumber(a.v)&&b["default"].isNumber(a.a))&&{space:"HSV",h:a.h,s:a.s,v:a.v,a:a.a}},write:function(a){return{h:a.h,s:a.s,v:a.v,a:a.a}}},HSV_OBJ:{read:function(a){return!!(b["default"].isNumber(a.h)&&b["default"].isNumber(a.s)&&b["default"].isNumber(a.v))&&{space:"HSV",h:a.h,s:a.s,v:a.v}}, write:function(a){return{h:a.h,s:a.s,v:a.v}}}}}],l=void 0,g=void 0;e["default"]=function(){g=!1;var a=1 c.length;)c="0"+c;return"#"+c}return"rgba("+Math.round(c.r)+","+Math.round(c.g)+","+Math.round(c.b)+","+c.a+")"};var b=(d=c(5))&&d.__esModule?d:{"default":d}},function(d,e){e.__esModule=!0;var c=Array.prototype.forEach,b=Array.prototype.slice,h={BREAK:{},extend:function(c){return this.each(b.call(arguments,1),function(b){(this.isObject(b)?Object.keys(b):[]).forEach(function(a){this.isUndefined(b[a])||(c[a]=b[a])}.bind(this))},this),c},defaults:function(c){return this.each(b.call(arguments,1),function(b){(this.isObject(b)? Object.keys(b):[]).forEach(function(a){this.isUndefined(c[a])&&(c[a]=b[a])}.bind(this))},this),c},compose:function(){var c=b.call(arguments);return function(){for(var g=b.call(arguments),a=c.length-1;0<=a;a--)g=[c[a].apply(this,g)];return g[0]}},each:function(b,g,a){if(b)if(c&&b.forEach&&b.forEach===c)b.forEach(g,a);else if(b.length===b.length+0)for(var f=void 0,p=void 0,f=0,p=b.length;ff&&(f+=1),{h:360*f,s:p,v:g/255})},rgb_to_hex:function(b,c,d){b=this.hex_with_component(0,2,b);return b=this.hex_with_component(b,1,c),this.hex_with_component(b,0,d)},component_from_hex:function(b,c){return b>>8*c&255},hex_with_component:function(b,d,e){return e<<(c=8*d)|b&~(255<this.__max&&(a=this.__max),void 0!==this.__step&&0!==a%this.__step&&(a=Math.round(a/this.__step)*this.__step),c.prototype.setValue.call(this, a)},a.prototype.min=function(a){return this.__min=a,this},a.prototype.max=function(a){return this.__max=a,this},a.prototype.step=function(a){return this.__step=a,this.__impliedStep=a,this.__precision=h(a),this},a}(d["default"]);e["default"]=c},function(d,e,c){function b(a){return a&&a.__esModule?a:{"default":a}}function h(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function l(a,b){if("function"!= typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}e.__esModule=!0;d=c(12);d=b(d);var g=c(9),a=b(g);c=c(5);var f=b(c);c=function(b){function c(d,e,g){function l(){var a=parseFloat(z.__input.value);f["default"].isNaN(a)||z.setValue(a)}function w(a){document.activeElement.blur(); var b=F-a.clientY;z.setValue(z.getValue()+b*z.__impliedStep);F=a.clientY}function q(){a["default"].unbind(window,"mousemove",w);a["default"].unbind(window,"mouseup",q)}if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");d=h(this,b.call(this,d,e,g));d.__truncationSuspended=!1;var z=d,F=void 0;return d.__input=document.createElement("input"),d.__input.setAttribute("type","text"),a["default"].bind(d.__input,"change",l),a["default"].bind(d.__input,"blur",function(){l();z.__onFinishChange&& z.__onFinishChange.call(z,z.getValue())}),a["default"].bind(d.__input,"mousedown",function(b){a["default"].bind(window,"mousemove",w);a["default"].bind(window,"mouseup",q);F=b.clientY}),a["default"].bind(d.__input,"keydown",function(a){13===a.keyCode&&(z.__truncationSuspended=!0,this.blur(),z.__truncationSuspended=!1)}),d.updateDisplay(),d.domElement.appendChild(d.__input),d}return l(c,b),c.prototype.updateDisplay=function(){var c;if(a["default"].isActive(this.__input))c=this;else{c=this.__input; var d;if(this.__truncationSuspended)d=this.getValue();else{d=this.getValue();var f=Math.pow(10,this.__precision);d=Math.round(d*f)/f}c=(c.value=d,b.prototype.updateDisplay.call(this))}return c},c}(d["default"]);e["default"]=c},function(d,e,c){function b(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+ typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}function l(a,b,c,d,e){return d+(a-b)/(c-b)*(e-d)}e.__esModule=!0;d=(d=c(12))&&d.__esModule?d:{"default":d};var g=(c=c(9))&&c.__esModule?c:{"default":c};c=function(a){function c(d,e,h,t,y){function B(a){a.preventDefault();var b=g["default"].getOffset(q.__background),c=g["default"].getWidth(q.__background);return q.setValue(l(a.clientX, b.left,b.left+c,q.__min,q.__max)),!1}function w(){g["default"].unbind(window,"mousemove",B);g["default"].unbind(window,"mouseup",w);q.__onFinishChange&&q.__onFinishChange.call(q,q.getValue())}if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");var q=d=b(this,a.call(this,d,e,{min:h,max:t,step:y}));return d.__background=document.createElement("div"),d.__foreground=document.createElement("div"),g["default"].bind(d.__background,"mousedown",function(a){document.activeElement.blur(); g["default"].bind(window,"mousemove",B);g["default"].bind(window,"mouseup",w);B(a)}),g["default"].addClass(d.__background,"slider"),g["default"].addClass(d.__foreground,"slider-fg"),d.updateDisplay(),d.__background.appendChild(d.__foreground),d.domElement.appendChild(d.__background),d}return h(c,a),c.prototype.updateDisplay=function(){var b=(this.getValue()-this.__min)/(this.__max-this.__min);return this.__foreground.style.width=100*b+"%",a.prototype.updateDisplay.call(this)},c}(d["default"]);e["default"]= c},function(d,e,c){function b(b,a){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!=typeof a&&"function"!=typeof a?b:a}function h(b,a){if("function"!=typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);b.prototype=Object.create(a&&a.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}});a&&(Object.setPrototypeOf?Object.setPrototypeOf(b,a):b.__proto__=a)}e.__esModule= !0;d=(d=c(7))&&d.__esModule?d:{"default":d};var l=(c=c(9))&&c.__esModule?c:{"default":c};c=function(c){function a(d,e,h){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");var x=b(this,c.call(this,d,e));return x.__button=document.createElement("div"),x.__button.innerHTML=void 0===h?"Fire":h,l["default"].bind(x.__button,"click",function(a){return a.preventDefault(),x.fire(),!1}),l["default"].addClass(x.__button,"button"),x.domElement.appendChild(x.__button),x}return h(a, c),a.prototype.fire=function(){this.__onChange&&this.__onChange.call(this);this.getValue().call(this.object);this.__onFinishChange&&this.__onFinishChange.call(this,this.getValue())},a}(d["default"]);e["default"]=c},function(d,e,c){function b(a){return a&&a.__esModule?a:{"default":a}}function h(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function l(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+ typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}function g(a,b,c,d){a.style.background="";t["default"].each(y,function(e){a.style.cssText+="background: "+e+"linear-gradient("+b+", "+c+" 0%, "+d+" 100%); "})}function a(a){a.style.background="";a.style.cssText+="background: -moz-linear-gradient(top, #ff0000 0%, #ff00ff 17%, #0000ff 34%, #00ffff 50%, #00ff00 67%, #ffff00 84%, #ff0000 100%);"; a.style.cssText+="background: -webkit-linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);";a.style.cssText+="background: -o-linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);";a.style.cssText+="background: -ms-linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);";a.style.cssText+="background: linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);"} e.__esModule=!0;d=c(7);d=b(d);var f=c(9),p=b(f),f=c(2),n=b(f),f=c(3),x=b(f);c=c(5);var t=b(c);c=function(b){function c(d,e){function f(a){G(a);p["default"].bind(window,"mousemove",G);p["default"].bind(window,"mouseup",l)}function l(){p["default"].unbind(window,"mousemove",G);p["default"].unbind(window,"mouseup",l);H()}function y(){var a=(0,x["default"])(this.value);!1!==a?(v.__color.__state=a,v.setValue(v.__color.toOriginal())):this.value=v.__color.toString()}function K(){p["default"].unbind(window, "mousemove",C);p["default"].unbind(window,"mouseup",K);H()}function H(){v.__onFinishChange&&v.__onFinishChange.call(v,v.__color.toString())}function G(a){a.preventDefault();var b=p["default"].getWidth(v.__saturation_field),c=p["default"].getOffset(v.__saturation_field),d=(a.clientX-c.left+document.body.scrollLeft)/b;a=1-(a.clientY-c.top+document.body.scrollTop)/b;return 1a&&(a=0),1d&&(d=0),v.__color.v=a,v.__color.s=d,v.setValue(v.__color.toOriginal()),!1}function C(a){a.preventDefault(); var b=p["default"].getHeight(v.__hue_field),c=p["default"].getOffset(v.__hue_field);a=1-(a.clientY-c.top+document.body.scrollTop)/b;return 1a&&(a=0),v.__color.h=360*a,v.setValue(v.__color.toOriginal()),!1}if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");var m=h(this,b.call(this,d,e));m.__color=new n["default"](m.getValue());m.__temp=new n["default"](0);var v=m;m.domElement=document.createElement("div");p["default"].makeSelectable(m.domElement,!1);m.__selector= document.createElement("div");m.__selector.className="selector";m.__saturation_field=document.createElement("div");m.__saturation_field.className="saturation-field";m.__field_knob=document.createElement("div");m.__field_knob.className="field-knob";m.__field_knob_border="2px solid ";m.__hue_knob=document.createElement("div");m.__hue_knob.className="hue-knob";m.__hue_field=document.createElement("div");m.__hue_field.className="hue-field";m.__input=document.createElement("input");m.__input.type="text"; m.__input_textShadow="0 1px 1px ";p["default"].bind(m.__input,"keydown",function(a){13===a.keyCode&&y.call(this)});p["default"].bind(m.__input,"blur",y);p["default"].bind(m.__selector,"mousedown",function(){p["default"].addClass(this,"drag").bind(window,"mouseup",function(){p["default"].removeClass(v.__selector,"drag")})});var k=document.createElement("div");return t["default"].extend(m.__selector.style,{width:"122px",height:"102px",padding:"3px",backgroundColor:"#222",boxShadow:"0px 1px 3px rgba(0,0,0,0.3)"}), t["default"].extend(m.__field_knob.style,{position:"absolute",width:"12px",height:"12px",border:m.__field_knob_border+(.5>m.__color.v?"#fff":"#000"),boxShadow:"0px 1px 3px rgba(0,0,0,0.5)",borderRadius:"12px",zIndex:1}),t["default"].extend(m.__hue_knob.style,{position:"absolute",width:"15px",height:"2px",borderRight:"4px solid #fff",zIndex:1}),t["default"].extend(m.__saturation_field.style,{width:"100px",height:"100px",border:"1px solid #555",marginRight:"3px",display:"inline-block",cursor:"pointer"}), t["default"].extend(k.style,{width:"100%",height:"100%",background:"none"}),g(k,"top","rgba(0,0,0,0)","#000"),t["default"].extend(m.__hue_field.style,{width:"15px",height:"100px",border:"1px solid #555",cursor:"ns-resize",position:"absolute",top:"3px",right:"3px"}),a(m.__hue_field),t["default"].extend(m.__input.style,{outline:"none",textAlign:"center",color:"#fff",border:0,fontWeight:"bold",textShadow:m.__input_textShadow+"rgba(0,0,0,0.7)"}),p["default"].bind(m.__saturation_field,"mousedown",f),p["default"].bind(m.__field_knob, "mousedown",f),p["default"].bind(m.__hue_field,"mousedown",function(a){C(a);p["default"].bind(window,"mousemove",C);p["default"].bind(window,"mouseup",K)}),m.__saturation_field.appendChild(k),m.__selector.appendChild(m.__field_knob),m.__selector.appendChild(m.__saturation_field),m.__selector.appendChild(m.__hue_field),m.__hue_field.appendChild(m.__hue_knob),m.domElement.appendChild(m.__input),m.domElement.appendChild(m.__selector),m.updateDisplay(),m}return l(c,b),c.prototype.updateDisplay=function(){var a= (0,x["default"])(this.getValue());if(!1!==a){var b=!1;t["default"].each(n["default"].COMPONENTS,function(c){if(!t["default"].isUndefined(a[c])&&!t["default"].isUndefined(this.__color.__state[c])&&a[c]!==this.__color.__state[c])return b=!0,{}},this);b&&t["default"].extend(this.__color.__state,a)}t["default"].extend(this.__temp.__state,this.__color.__state);this.__temp.a=1;var c=.5>this.__color.v||.5 Here's the new load parameter for your GUI's constructor:
Automatically save values to localStorage on exit.
The values saved to localStorage will override those passed to dat.GUI's constructor. This makes it easier to work incrementally, but localStorage is fragile, and your friends may not see the same values you do.
"}, function(d,e,c){function b(a){return a&&a.__esModule?a:{"default":a}}e.__esModule=!0;d=c(10);var h=b(d);d=c(13);var l=b(d);d=c(14);var g=b(d);d=c(11);var a=b(d);d=c(15);var f=b(d);d=c(8);var p=b(d);c=c(5);var n=b(c);e["default"]=function(b,c,d,e,w){var q=b[c];return n["default"].isArray(d)||n["default"].isObject(d)?new h["default"](b,c,d):n["default"].isNumber(q)?n["default"].isNumber(d)&&n["default"].isNumber(e)?n["default"].isNumber(w)?new g["default"](b,c,d,e,w):new g["default"](b,c,d,e):n["default"].isNumber(w)? new l["default"](b,c,{min:d,max:e,step:w}):new l["default"](b,c,{min:d,max:e}):n["default"].isString(q)?new a["default"](b,c):n["default"].isFunction(q)?new f["default"](b,c,""):n["default"].isBoolean(q)?new p["default"](b,c):null}},function(d,e){function c(b){setTimeout(b,1E3/60)}e.__esModule=!0;e["default"]=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||c},function(d,e,c){e.__esModule= !0;var b=(d=c(9))&&d.__esModule?d:{"default":d},h=(c=c(5))&&c.__esModule?c:{"default":c};c=function(){function c(){if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");this.backgroundElement=document.createElement("div");h["default"].extend(this.backgroundElement.style,{backgroundColor:"rgba(0,0,0,0.8)",top:0,left:0,display:"none",zIndex:"1000",opacity:0,WebkitTransition:"opacity 0.2s linear",transition:"opacity 0.2s linear"});b["default"].makeFullscreen(this.backgroundElement); this.backgroundElement.style.position="fixed";this.domElement=document.createElement("div");h["default"].extend(this.domElement.style,{position:"fixed",display:"none",zIndex:"1001",opacity:0,WebkitTransition:"-webkit-transform 0.2s ease-out, opacity 0.2s linear",transition:"transform 0.2s ease-out, opacity 0.2s linear"});document.body.appendChild(this.backgroundElement);document.body.appendChild(this.domElement);var d=this;b["default"].bind(this.backgroundElement,"click",function(){d.hide()})}return c.prototype.show= function(){var b=this;this.backgroundElement.style.display="block";this.domElement.style.display="block";this.domElement.style.opacity=0;this.domElement.style.webkitTransform="scale(1.1)";this.layout();h["default"].defer(function(){b.backgroundElement.style.opacity=1;b.domElement.style.opacity=1;b.domElement.style.webkitTransform="scale(1)"})},c.prototype.hide=function(){var c=this,a=function p(){c.domElement.style.display="none";c.backgroundElement.style.display="none";b["default"].unbind(c.domElement, "webkitTransitionEnd",p);b["default"].unbind(c.domElement,"transitionend",p);b["default"].unbind(c.domElement,"oTransitionEnd",p)};b["default"].bind(this.domElement,"webkitTransitionEnd",a);b["default"].bind(this.domElement,"transitionend",a);b["default"].bind(this.domElement,"oTransitionEnd",a);this.backgroundElement.style.opacity=0;this.domElement.style.opacity=0;this.domElement.style.webkitTransform="scale(1.1)"},c.prototype.layout=function(){this.domElement.style.left=window.innerWidth/2-b["default"].getWidth(this.domElement)/ 2+"px";this.domElement.style.top=window.innerHeight/2-b["default"].getHeight(this.domElement)/2+"px"},c}();e["default"]=c},function(d,e,c){e=d.exports=c(24)();e.push([d.id,".dg ul{list-style:none;margin:0;padding:0;width:100%;clear:both}.dg.ac{position:fixed;top:0;left:0;right:0;height:0;z-index:0}.dg:not(.ac) .main{overflow:hidden}.dg.main{-webkit-transition:opacity .1s linear;transition:opacity .1s linear}.dg.main.taller-than-window{overflow-y:auto}.dg.main.taller-than-window .close-button{opacity:1;margin-top:-1px;border-top:1px solid #2c2c2c}.dg.main ul.closed .close-button{opacity:1!important}.dg.main .close-button.drag,.dg.main:hover .close-button{opacity:1}.dg.main .close-button{-webkit-transition:opacity .1s linear;transition:opacity .1s linear;border:0;position:absolute;line-height:19px;height:20px;cursor:pointer;text-align:center;background-color:#000}.dg.main .close-button:hover{background-color:#111}.dg.a{float:right;margin-right:15px;overflow-x:hidden}.dg.a.has-save>ul{margin-top:27px}.dg.a.has-save>ul.closed{margin-top:0}.dg.a .save-row{position:fixed;top:0;z-index:1002}.dg li{-webkit-transition:height .1s ease-out;transition:height .1s ease-out}.dg li:not(.folder){cursor:auto;height:27px;line-height:27px;overflow:hidden;padding:0 4px 0 5px}.dg li.folder{padding:0;border-left:4px solid transparent}.dg li.title{cursor:pointer;margin-left:-4px}.dg .closed li:not(.title),.dg .closed ul li,.dg .closed ul li>*{height:0;overflow:hidden;border:0}.dg .cr{clear:both;padding-left:3px;height:27px}.dg .property-name{cursor:default;float:left;clear:left;width:40%;overflow:hidden;text-overflow:ellipsis}.dg .c{float:left;width:60%}.dg .c input[type=text]{border:0;margin-top:4px;padding:3px;width:100%;float:right}.dg .has-slider input[type=text]{width:30%;margin-left:0}.dg .slider{float:left;width:66%;margin-left:-5px;margin-right:0;height:19px;margin-top:4px}.dg .slider-fg{height:100%}.dg .c input[type=checkbox]{margin-top:9px}.dg .c select{margin-top:5px}.dg .cr.boolean,.dg .cr.boolean *,.dg .cr.function,.dg .cr.function *,.dg .cr.function .property-name{cursor:pointer}.dg .selector{display:none;position:absolute;margin-left:-9px;margin-top:23px;z-index:10}.dg .c:hover .selector,.dg .selector.drag{display:block}.dg li.save-row{padding:0}.dg li.save-row .button{display:inline-block;padding:0 6px}.dg.dialogue{background-color:#222;width:460px;padding:15px;font-size:13px;line-height:15px}#dg-new-constructor{padding:10px;color:#222;font-family:Monaco,monospace;font-size:10px;border:0;resize:none;box-shadow:inset 1px 1px 1px #888;word-wrap:break-word;margin:12px 0;display:block;width:440px;overflow-y:scroll;height:100px;position:relative}#dg-local-explain{display:none;font-size:11px;line-height:17px;border-radius:3px;background-color:#333;padding:8px;margin-top:10px}#dg-local-explain code{font-size:10px}#dat-gui-save-locally{display:none}.dg{color:#eee;font:11px Lucida Grande,sans-serif;text-shadow:0 -1px 0 #111}.dg.main::-webkit-scrollbar{width:5px;background:#1a1a1a}.dg.main::-webkit-scrollbar-corner{height:0;display:none}.dg.main::-webkit-scrollbar-thumb{border-radius:5px;background:#676767}.dg li:not(.folder){background:#1a1a1a;border-bottom:1px solid #2c2c2c}.dg li.save-row{line-height:25px;background:#dad5cb;border:0}.dg li.save-row select{margin-left:5px;width:108px}.dg li.save-row .button{margin-left:5px;margin-top:1px;border-radius:2px;font-size:9px;line-height:7px;padding:4px 4px 5px;background:#c5bdad;color:#fff;text-shadow:0 1px 0 #b0a58f;box-shadow:0 -1px 0 #b0a58f;cursor:pointer}.dg li.save-row .button.gears{background:#c5bdad url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAANCAYAAAB/9ZQ7AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAQJJREFUeNpiYKAU/P//PwGIC/ApCABiBSAW+I8AClAcgKxQ4T9hoMAEUrxx2QSGN6+egDX+/vWT4e7N82AMYoPAx/evwWoYoSYbACX2s7KxCxzcsezDh3evFoDEBYTEEqycggWAzA9AuUSQQgeYPa9fPv6/YWm/Acx5IPb7ty/fw+QZblw67vDs8R0YHyQhgObx+yAJkBqmG5dPPDh1aPOGR/eugW0G4vlIoTIfyFcA+QekhhHJhPdQxbiAIguMBTQZrPD7108M6roWYDFQiIAAv6Aow/1bFwXgis+f2LUAynwoIaNcz8XNx3Dl7MEJUDGQpx9gtQ8YCueB+D26OECAAQDadt7e46D42QAAAABJRU5ErkJggg==) 2px 1px no-repeat;height:7px;width:8px}.dg li.save-row .button:hover{background-color:#bab19e;box-shadow:0 -1px 0 #b0a58f}.dg li.folder{border-bottom:0}.dg li.title{padding-left:16px;background:#000 url(data:image/gif;base64,R0lGODlhBQAFAJEAAP////Pz8////////yH5BAEAAAIALAAAAAAFAAUAAAIIlI+hKgFxoCgAOw==) 6px 10px no-repeat;cursor:pointer;border-bottom:1px solid hsla(0,0%,100%,.2)}.dg .closed li.title{background-image:url(data:image/gif;base64,R0lGODlhBQAFAJEAAP////Pz8////////yH5BAEAAAIALAAAAAAFAAUAAAIIlGIWqMCbWAEAOw==)}.dg .cr.boolean{border-left:3px solid #806787}.dg .cr.color{border-left:3px solid}.dg .cr.function{border-left:3px solid #e61d5f}.dg .cr.number{border-left:3px solid #2fa1d6}.dg .cr.number input[type=text]{color:#2fa1d6}.dg .cr.string{border-left:3px solid #1ed36f}.dg .cr.string input[type=text]{color:#1ed36f}.dg .cr.boolean:hover,.dg .cr.function:hover{background:#111}.dg .c input[type=text]{background:#303030;outline:none}.dg .c input[type=text]:hover{background:#3c3c3c}.dg .c input[type=text]:focus{background:#494949;color:#fff}.dg .c .slider{background:#303030;cursor:ew-resize}.dg .c .slider-fg{background:#2fa1d6;max-width:100%}.dg .c .slider:hover{background:#3c3c3c}.dg .c .slider:hover .slider-fg{background:#44abda}", ""])},function(d,e){d.exports=function(){var c=[];return c.toString=function(){for(var b=[],c=0;c