dat.gui/build/dat.gui.min.js

4 lines
108 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.dat=e():t.dat=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";e.__esModule=!0,n(1),e["default"]=n(193),t.exports=e["default"]},function(t,e,n){t.exports=n(2)},function(t,e,n){t.exports=n(3)},function(t,e,n){(function(t){"use strict";if(n(4),n(191),t._babelPolyfill)throw new Error("only one instance of babel/polyfill is allowed");t._babelPolyfill=!0}).call(e,function(){return this}())},function(t,e,n){n(5),n(38),n(44),n(46),n(48),n(50),n(52),n(54),n(55),n(56),n(57),n(58),n(59),n(60),n(61),n(62),n(63),n(64),n(65),n(68),n(69),n(70),n(72),n(73),n(74),n(75),n(76),n(77),n(78),n(80),n(81),n(82),n(84),n(85),n(86),n(88),n(89),n(90),n(91),n(92),n(93),n(94),n(95),n(96),n(97),n(98),n(99),n(100),n(101),n(106),n(107),n(111),n(112),n(114),n(115),n(120),n(121),n(124),n(126),n(128),n(130),n(131),n(132),n(134),n(135),n(137),n(138),n(139),n(140),n(147),n(150),n(151),n(153),n(154),n(155),n(156),n(157),n(158),n(159),n(160),n(161),n(162),n(163),n(164),n(166),n(167),n(168),n(169),n(170),n(171),n(173),n(174),n(175),n(176),n(178),n(179),n(181),n(182),n(184),n(185),n(186),n(189),n(190),t.exports=n(9)},function(t,e,n){"use strict";var r,o=n(6),i=n(7),a=n(12),u=n(11),s=n(18),c=n(19),l=n(21),f=n(22),d=n(23),h=n(13),p=n(24),_=n(17),v=n(20),g=n(25),m=n(27),y=n(29),b=n(30),w=n(31),x=n(28),E=n(15)("__proto__"),S=n(32),A=n(37)(!1),C=Object.prototype,O=Array.prototype,k=O.slice,M=O.join,T=o.setDesc,N=o.getDesc,P=o.setDescs,j={};a||(r=!h(function(){return 7!=T(c("div"),"a",{get:function(){return 7}}).a}),o.setDesc=function(t,e,n){if(r)try{return T(t,e,n)}catch(o){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(p(t)[e]=n.value),t},o.getDesc=function(t,e){if(r)try{return N(t,e)}catch(n){}if(l(t,e))return u(!C.propertyIsEnumerable.call(t,e),t[e])},o.setDescs=P=function(t,e){p(t);for(var n,r=o.getKeys(e),i=r.length,a=0;i>a;)o.setDesc(t,n=r[a++],e[n]);return t}),i(i.S+i.F*!a,"Object",{getOwnPropertyDescriptor:o.getDesc,defineProperty:o.setDesc,defineProperties:P});var L="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),F=L.concat("length","prototype"),R=L.length,D=function(){var t,e=c("iframe"),n=R,r=">";for(e.style.display="none",s.appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object</script"+r),t.close(),D=t.F;n--;)delete D.prototype[L[n]];return D()},I=function(t,e){return function(n){var r,o=m(n),i=0,a=[];for(r in o)r!=E&&l(o,r)&&a.push(r);for(;e>i;)l(o,r=t[i++])&&(~A(a,r)||a.push(r));return a}},B=function(){};i(i.S,"Object",{getPrototypeOf:o.getProto=o.getProto||function(t){return t=g(t),l(t,E)?t[E]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?C:null},getOwnPropertyNames:o.getNames=o.getNames||I(F,F.length,!0),create:o.create=o.create||function(t,e){var n;return null!==t?(B.prototype=p(t),n=new B,B.prototype=null,n[E]=t):n=D(),void 0===e?n:P(n,e)},keys:o.getKeys=o.getKeys||I(L,R,!1)});var H=function(t,e,n){if(!(e in j)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";j[e]=Function("F,a","return new F("+r.join(",")+")")}return j[e](t,n)};i(i.P,"Function",{bind:function(t){var e=_(this),n=k.call(arguments,1),r=function(){var o=n.concat(k.call(arguments));return this instanceof r?H(e,o.length,o):d(e,o,t)};return v(e.prototype)&&(r.prototype=e.prototype),r}}),i(i.P+i.F*h(function(){s&&k.call(s)}),"Array",{slice:function(t,e){var n=w(this.length),r=f(this);if(e=void 0===e?n:e,"Array"==r)return k.call(this,t,e);for(var o=b(t,n),i=b(e,n),a=w(i-o),u=Array(a),s=0;s<a;s++)u[s]="String"==r?this.charAt(o+s):this[o+s];return u}}),i(i.P+i.F*(x!=Object),"Array",{join:function(t){return M.call(x(this),void 0===t?",":t)}}),i(i.S,"Array",{isArray:n(34)});var V=function(t){return function(e,n){_(e);var r=x(this),o=w(r.length),i=t?o-1:0,a=t?-1:1;if(arguments.length<2)for(;;){if(i in r){n=r[i],i+=a;break}if(i+=a,t?i<0:o<=i)throw TypeError("Reduce of empty array with no initial value")}for(;t?i>=0:o>i;i+=a)i in r&&(n=e(n,r[i],i,this));return n}},z=function(t){return function(e){return t(this,e,arguments[1])}};i(i.P,"Array",{forEach:o.each=o.each||z(S(0)),map:z(S(1)),filter:z(S(2)),some:z(S(3)),every:z(S(4)),reduce:V(!1),reduceRight:V(!0),indexOf:z(A),lastIndexOf:function(t,e){var n=m(this),r=w(n.length),o=r-1;for(arguments.length>1&&(o=Math.min(o,y(e))),o<0&&(o=w(r+o));o>=0;o--)if(o in n&&n[o]===t)return o;return-1}}),i(i.S,"Date",{now:function(){return+new Date}});var G=function(t){return t>9?t:"0"+t};i(i.P+i.F*(h(function(){return"0385-07-25T07:06:39.999Z"!=new Date(-5e13-1).toISOString()})||!h(function(){new Date(NaN).toISOString()})),"Date",{toISOString:function(){if(!isFinite(this))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),n=t.getUTCMilliseconds(),r=e<0?"-":e>9999?"+":"";return r+("00000"+Math.abs(e)).slice(r?-6:-4)+"-"+G(t.getUTCMonth()+1)+"-"+G(t.getUTCDate())+"T"+G(t.getUTCHours())+":"+G(t.getUTCMinutes())+":"+G(t.getUTCSeconds())+"."+(n>99?n:"0"+G(n))+"Z"}})},function(t,e){var n=Object;t.exports={create:n.create,getProto:n.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:n.getOwnPropertyDescriptor,setDesc:n.defineProperty,setDescs:n.defineProperties,getKeys:n.keys,getNames:n.getOwnPropertyNames,getSymbols:n.getOwnPropertySymbols,each:[].forEach}},function(t,e,n){var r=n(8),o=n(9),i=n(10),a=n(14),u=n(16),s="prototype",c=function(t,e,n){var l,f,d,h,p=t&c.F,_=t&c.G,v=t&c.S,g=t&c.P,m=t&c.B,y=_?r:v?r[e]||(r[e]={}):(r[e]||{})[s],b=_?o:o[e]||(o[e]={}),w=b[s]||(b[s]={});_&&(n=e);for(l in n)f=!p&&y&&l in y,d=(f?y:n)[l],h=m&&f?u(d,r):g&&"function"==typeof d?u(Function.call,d):d,y&&!f&&a(y,l,d),b[l]!=d&&i(b,l,h),g&&w[l]!=d&&(w[l]=d)};r.core=o,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,t.exports=c},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){var n=t.exports={version:"1.2.6"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(6),o=n(11);t.exports=n(12)?function(t,e,n){return r.setDesc(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){t.exports=!n(13)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},function(t,e,n){var r=n(8),o=n(10),i=n(15)("src"),a="toString",u=Function[a],s=(""+u).split(a);n(9).inspectSource=function(t){return u.call(t)},(t.exports=function(t,e,n,a){"function"==typeof n&&(n.hasOwnProperty(i)||o(n,i,t[e]?""+t[e]:s.join(String(e))),n.hasOwnProperty("name")||o(n,"name",e)),t===r?t[e]=n:(a||delete t[e],o(t,e,n))})(Function.prototype,a,function(){return"function"==typeof this&&this[i]||u.call(this)})},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){var r=n(17);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){t.exports=n(8).document&&document.documentElement},function(t,e,n){var r=n(20),o=n(8).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(20);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){var r=n(26);t.exports=function(t){return Object(r(t))}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(28),o=n(26);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(22);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(29),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(29),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(16),o=n(28),i=n(25),a=n(31),u=n(33);t.exports=function(t){var e=1==t,n=2==t,s=3==t,c=4==t,l=6==t,f=5==t||l;return function(d,h,p){for(var _,v,g=i(d),m=o(g),y=r(h,p,3),b=a(m.length),w=0,x=e?u(d,b):n?u(d,0):void 0;b>w;w++)if((f||w in m)&&(_=m[w],v=y(_,w,g),t))if(e)x[w]=v;else if(v)switch(t){case 3:return!0;case 5:return _;case 6:return w;case 2:x.push(_)}else if(c)return!1;return l?-1:s||c?c:x}}},function(t,e,n){var r=n(20),o=n(34),i=n(35)("species");t.exports=function(t,e){var n;return o(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!o(n.prototype)||(n=void 0),r(n)&&(n=n[i],null===n&&(n=void 0))),new(void 0===n?Array:n)(e)}},function(t,e,n){var r=n(22);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(36)("wks"),o=n(15),i=n(8).Symbol;t.exports=function(t){return r[t]||(r[t]=i&&i[t]||(i||o)("Symbol."+t))}},function(t,e,n){var r=n(8),o="__core-js_shared__",i=r[o]||(r[o]={});t.exports=function(t){return i[t]||(i[t]={})}},function(t,e,n){var r=n(27),o=n(31),i=n(30);t.exports=function(t){return function(e,n,a){var u,s=r(e),c=o(s.length),l=i(a,c);if(t&&n!=n){for(;c>l;)if(u=s[l++],u!=u)return!0}else for(;c>l;l++)if((t||l in s)&&s[l]===n)return t||l;return!t&&-1}}},function(t,e,n){"use strict";var r=n(6),o=n(8),i=n(21),a=n(12),u=n(7),s=n(14),c=n(13),l=n(36),f=n(39),d=n(15),h=n(35),p=n(40),_=n(41),v=n(42),g=n(34),m=n(24),y=n(27),b=n(11),w=r.getDesc,x=r.setDesc,E=r.create,S=_.get,A=o.Symbol,C=o.JSON,O=C&&C.stringify,k=!1,M=h("_hidden"),T=r.isEnum,N=l("symbol-registry"),P=l("symbols"),j="function"==typeof A,L=Object.prototype,F=a&&c(function(){return 7!=E(x({},"a",{get:function(){return x(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=w(L,e);r&&delete L[e],x(t,e,n),r&&t!==L&&x(L,e,r)}:x,R=function(t){var e=P[t]=E(A.prototype);return e._k=t,a&&k&&F(L,t,{configurable:!0,set:function(e){i(this,M)&&i(this[M],t)&&(this[M][t]=!1),F(this,t,b(1,e))}}),e},D=function(t){return"symbol"==typeof t},I=function(t,e,n){return n&&i(P,e)?(n.enumerable?(i(t,M)&&t[M][e]&&(t[M][e]=!1),n=E(n,{enumerable:b(0,!1)})):(i(t,M)||x(t,M,b(1,{})),t[M][e]=!0),F(t,e,n)):x(t,e,n)},B=function(t,e){m(t);for(var n,r=v(e=y(e)),o=0,i=r.length;i>o;)I(t,n=r[o++],e[n]);return t},H=function(t,e){return void 0===e?E(t):B(E(t),e)},V=function(t){var e=T.call(this,t);return!(e||!i(this,t)||!i(P,t)||i(this,M)&&this[M][t])||e},z=function(t,e){var n=w(t=y(t),e);return!n||!i(P,e)||i(t,M)&&t[M][e]||(n.enumerable=!0),n},G=function(t){for(var e,n=S(y(t)),r=[],o=0;n.length>o;)i(P,e=n[o++])||e==M||r.push(e);return r},U=function(t){for(var e,n=S(y(t)),r=[],o=0;n.length>o;)i(P,e=n[o++])&&r.push(P[e]);return r},W=function(t){if(void 0!==t&&!D(t)){for(var e,n,r=[t],o=1,i=arguments;i.length>o;)r.push(i[o++]);return e=r[1],"function"==typeof e&&(n=e),!n&&g(e)||(e=function(t,e){if(n&&(e=n.call(this,t,e)),!D(e))return e}),r[1]=e,O.apply(C,r)}},K=c(function(){var t=A();return"[null]"!=O([t])||"{}"!=O({a:t})||"{}"!=O(Object(t))});j||(A=function(){if(D(this))throw TypeError("Symbol is not a constructor");return R(d(arguments.length>0?arguments[0]:void 0))},s(A.prototype,"toString",function(){return this._k}),D=function(t){return t instanceof A},r.create=H,r.isEnum=V,r.getDesc=z,r.setDesc=I,r.setDescs=B,r.getNames=_.get=G,r.getSymbols=U,a&&!n(43)&&s(L,"propertyIsEnumerable",V,!0));var X={"for":function(t){return i(N,t+="")?N[t]:N[t]=A(t)},keyFor:function(t){return p(N,t)},useSetter:function(){k=!0},useSimple:function(){k=!1}};r.each.call("hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),function(t){var e=h(t);X[t]=j?e:R(e)}),k=!0,u(u.G+u.W,{Symbol:A}),u(u.S,"Symbol",X),u(u.S+u.F*!j,"Object",{create:H,defineProperty:I,defineProperties:B,getOwnPropertyDescriptor:z,getOwnPropertyNames:G,getOwnPropertySymbols:U}),C&&u(u.S+u.F*(!j||K),"JSON",{stringify:W}),f(A,"Symbol"),f(Math,"Math",!0),f(o.JSON,"JSON",!0)},function(t,e,n){var r=n(6).setDesc,o=n(21),i=n(35)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(6),o=n(27);t.exports=function(t,e){for(var n,i=o(t),a=r.getKeys(i),u=a.length,s=0;u>s;)if(i[n=a[s++]]===e)return n}},function(t,e,n){var r=n(27),o=n(6).getNames,i={}.toString,a="object"==typeof window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(t){try{return o(t)}catch(e){return a.slice()}};t.exports.get=function(t){return a&&"[object Window]"==i.call(t)?u(t):o(r(t))}},function(t,e,n){var r=n(6);t.exports=function(t){var e=r.getKeys(t),n=r.getSymbols;if(n)for(var o,i=n(t),a=r.isEnum,u=0;i.length>u;)a.call(t,o=i[u++])&&e.push(o);return e}},function(t,e){t.exports=!1},function(t,e,n){var r=n(7);r(r.S+r.F,"Object",{assign:n(45)})},function(t,e,n){var r=n(6),o=n(25),i=n(28);t.exports=n(13)(function(){var t=Object.assign,e={},n={},r=Symbol(),o="abcdefghijklmnopqrst";return e[r]=7,o.split("").forEach(function(t){n[t]=t}),7!=t({},e)[r]||Object.keys(t({},n)).join("")!=o})?function(t,e){for(var n=o(t),a=arguments,u=a.length,s=1,c=r.getKeys,l=r.getSymbols,f=r.isEnum;u>s;)for(var d,h=i(a[s++]),p=l?c(h).concat(l(h)):c(h),_=p.length,v=0;_>v;)f.call(h,d=p[v++])&&(n[d]=h[d]);return n}:Object.assign},function(t,e,n){var r=n(7);r(r.S,"Object",{is:n(47)})},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t===1/e:t!=t&&e!=e}},function(t,e,n){var r=n(7);r(r.S,"Object",{setPrototypeOf:n(49).set})},function(t,e,n){var r=n(6).getDesc,o=n(20),i=n(24),a=function(t,e){if(i(t),!o(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,o){try{o=n(16)(Function.call,r(Object.prototype,"__proto__").set,2),o(t,[]),e=!(t instanceof Array)}catch(i){e=!0}return function(t,n){return a(t,n),e?t.__proto__=n:o(t,n),t}}({},!1):void 0),check:a}},function(t,e,n){"use strict";var r=n(51),o={};o[n(35)("toStringTag")]="z",o+""!="[object z]"&&n(14)(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},function(t,e,n){var r=n(22),o=n(35)("toStringTag"),i="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=(e=Object(t))[o])?n:i?r(e):"Object"==(a=r(e))&&"function"==typeof e.callee?"Arguments":a}},function(t,e,n){var r=n(20);n(53)("freeze",function(t){return function(e){return t&&r(e)?t(e):e}})},function(t,e,n){var r=n(7),o=n(9),i=n(13);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*i(function(){n(1)}),"Object",a)}},function(t,e,n){var r=n(20);n(53)("seal",function(t){return function(e){return t&&r(e)?t(e):e}})},function(t,e,n){var r=n(20);n(53)("preventExtensions",function(t){return function(e){return t&&r(e)?t(e):e}})},function(t,e,n){var r=n(20);n(53)("isFrozen",function(t){return function(e){return!r(e)||!!t&&t(e)}})},function(t,e,n){var r=n(20);n(53)("isSealed",function(t){return function(e){return!r(e)||!!t&&t(e)}})},function(t,e,n){var r=n(20);n(53)("isExtensible",function(t){return function(e){return!!r(e)&&(!t||t(e))}})},function(t,e,n){var r=n(27);n(53)("getOwnPropertyDescriptor",function(t){return function(e,n){return t(r(e),n)}})},function(t,e,n){var r=n(25);n(53)("getPrototypeOf",function(t){return function(e){return t(r(e))}})},function(t,e,n){var r=n(25);n(53)("keys",function(t){return function(e){return t(r(e))}})},function(t,e,n){n(53)("getOwnPropertyNames",function(){return n(41).get})},function(t,e,n){var r=n(6).setDesc,o=n(11),i=n(21),a=Function.prototype,u=/^\s*function ([^ (]*)/,s="name";s in a||n(12)&&r(a,s,{configurable:!0,get:function(){var t=(""+this).match(u),e=t?t[1]:"";return i(this,s)||r(this,s,o(5,e)),e}})},function(t,e,n){"use strict";var r=n(6),o=n(20),i=n(35)("hasInstance"),a=Function.prototype;i in a||r.setDesc(a,i,{value:function(t){if("function"!=typeof this||!o(t))return!1;if(!o(this.prototype))return t instanceof this;for(;t=r.getProto(t);)if(this.prototype===t)return!0;return!1}})},function(t,e,n){"use strict";var r=n(6),o=n(8),i=n(21),a=n(22),u=n(66),s=n(13),c=n(67).trim,l="Number",f=o[l],d=f,h=f.prototype,p=a(r.create(h))==l,_="trim"in String.prototype,v=function(t){var e=u(t,!1);if("string"==typeof e&&e.length>2){e=_?e.trim():c(e,3);var n,r,o,i=e.charCodeAt(0);if(43===i||45===i){if(n=e.charCodeAt(2),88===n||120===n)return NaN}else if(48===i){switch(e.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+e}for(var a,s=e.slice(2),l=0,f=s.length;l<f;l++)if(a=s.charCodeAt(l),a<48||a>o)return NaN;return parseInt(s,r)}}return+e};f(" 0o1")&&f("0b1")&&!f("+0x1")||(f=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof f&&(p?s(function(){h.valueOf.call(n)}):a(n)!=l)?new d(v(e)):v(e)},r.each.call(n(12)?r.getNames(d):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),function(t){i(d,t)&&!i(f,t)&&r.setDesc(f,t,r.getDesc(d,t))}),f.prototype=h,h.constructor=f,n(14)(o,l,f))},function(t,e,n){var r=n(20);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(7),o=n(26),i=n(13),a="\t\n\x0B\f\r    \u2028\u2029\ufeff",u="["+a+"]",s="…",c=RegExp("^"+u+u+"*"),l=RegExp(u+u+"*$"),f=function(t,e){var n={};n[t]=e(d),r(r.P+r.F*i(function(){return!!a[t]()||s[t]()!=s}),"String",n)},d=f.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(c,"")),2&e&&(t=t.replace(l,"")),t};t.exports=f},function(t,e,n){var r=n(7);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,n){var r=n(7),o=n(8).isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&o(t)}})},function(t,e,n){var r=n(7);r(r.S,"Number",{isInteger:n(71)})},function(t,e,n){var r=n(20),o=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&o(t)===t}},function(t,e,n){var r=n(7);r(r.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,n){var r=n(7),o=n(71),i=Math.abs;r(r.S,"Number",{isSafeInteger:function(t){return o(t)&&i(t)<=9007199254740991}})},function(t,e,n){var r=n(7);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){var r=n(7);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){var r=n(7);r(r.S,"Number",{parseFloat:parseFloat})},function(t,e,n){var r=n(7);r(r.S,"Number",{parseInt:parseInt})},function(t,e,n){var r=n(7),o=n(79),i=Math.sqrt,a=Math.acosh;r(r.S+r.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:o(t-1+i(t-1)*i(t+1))}})},function(t,e){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,e,n){function r(t){return isFinite(t=+t)&&0!=t?t<0?-r(-t):Math.log(t+Math.sqrt(t*t+1)):t}var o=n(7);o(o.S,"Math",{asinh:r})},function(t,e,n){var r=n(7);r(r.S,"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,n){var r=n(7),o=n(83);r(r.S,"Math",{cbrt:function(t){return o(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e,n){var r=n(7);r(r.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,n){var r=n(7),o=Math.exp;r(r.S,"Math",{cosh:function(t){return(o(t=+t)+o(-t))/2}})},function(t,e,n){var r=n(7);r(r.S,"Math",{expm1:n(87)})},function(t,e){t.exports=Math.expm1||function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}},function(t,e,n){var r=n(7),o=n(83),i=Math.pow,a=i(2,-52),u=i(2,-23),s=i(2,127)*(2-u),c=i(2,-126),l=function(t){return t+1/a-1/a};r(r.S,"Math",{fround:function(t){var e,n,r=Math.abs(t),i=o(t);return r<c?i*l(r/c/u)*c*u:(e=(1+u/a)*r,n=e-(e-r),n>s||n!=n?i*(1/0):i*n)}})},function(t,e,n){var r=n(7),o=Math.abs;r(r.S,"Math",{hypot:function(t,e){for(var n,r,i=0,a=0,u=arguments,s=u.length,c=0;a<s;)n=o(u[a++]),c<n?(r=c/n,i=i*r*r+1,c=n):n>0?(r=n/c,i+=r*r):i+=n;return c===1/0?1/0:c*Math.sqrt(i)}})},function(t,e,n){var r=n(7),o=Math.imul;r(r.S+r.F*n(13)(function(){return o(4294967295,5)!=-5||2!=o.length}),"Math",{imul:function(t,e){var n=65535,r=+t,o=+e,i=n&r,a=n&o;return 0|i*a+((n&r>>>16)*a+i*(n&o>>>16)<<16>>>0)}})},function(t,e,n){var r=n(7);r(r.S,"Math",{log10:function(t){return Math.log(t)/Math.LN10}})},function(t,e,n){var r=n(7);r(r.S,"Math",{log1p:n(79)})},function(t,e,n){var r=n(7);r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,n){var r=n(7);r(r.S,"Math",{sign:n(83)})},function(t,e,n){var r=n(7),o=n(87),i=Math.exp;r(r.S+r.F*n(13)(function(){return!Math.sinh(-2e-17)!=-2e-17}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(o(t)-o(-t))/2:(i(t-1)-i(-t-1))*(Math.E/2)}})},function(t,e,n){var r=n(7),o=n(87),i=Math.exp;r(r.S,"Math",{tanh:function(t){var e=o(t=+t),n=o(-t);return e==1/0?1:n==1/0?-1:(e-n)/(i(t)+i(-t))}})},function(t,e,n){var r=n(7);r(r.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,n){var r=n(7),o=n(30),i=String.fromCharCode,a=String.fromCodePoint;r(r.S+r.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(t){for(var e,n=[],r=arguments,a=r.length,u=0;a>u;){if(e=+r[u++],o(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?i(e):i(((e-=65536)>>10)+55296,e%1024+56320))}return n.join("")}})},function(t,e,n){var r=n(7),o=n(27),i=n(31);r(r.S,"String",{raw:function(t){for(var e=o(t.raw),n=i(e.length),r=arguments,a=r.length,u=[],s=0;n>s;)u.push(String(e[s++])),s<a&&u.push(String(r[s]));return u.join("")}})},function(t,e,n){"use strict";n(67)("trim",function(t){return function(){return t(this,3)}})},function(t,e,n){"use strict";var r=n(102)(!0);n(103)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){var r=n(29),o=n(26);t.exports=function(t){return function(e,n){var i,a,u=String(o(e)),s=r(n),c=u.length;return s<0||s>=c?t?"":void 0:(i=u.charCodeAt(s),i<55296||i>56319||s+1===c||(a=u.charCodeAt(s+1))<56320||a>57343?t?u.charAt(s):i:t?u.slice(s,s+2):(i-55296<<10)+(a-56320)+65536)}}},function(t,e,n){"use strict";var r=n(43),o=n(7),i=n(14),a=n(10),u=n(21),s=n(104),c=n(105),l=n(39),f=n(6).getProto,d=n(35)("iterator"),h=!([].keys&&"next"in[].keys()),p="@@iterator",_="keys",v="values",g=function(){return this};t.exports=function(t,e,n,m,y,b,w){c(n,e,m);var x,E,S=function(t){if(!h&&t in k)return k[t];switch(t){case _:return function(){return new n(this,t)};case v:return function(){return new n(this,t)}}return function(){return new n(this,t)}},A=e+" Iterator",C=y==v,O=!1,k=t.prototype,M=k[d]||k[p]||y&&k[y],T=M||S(y);if(M){var N=f(T.call(new t));l(N,A,!0),!r&&u(k,p)&&a(N,d,g),C&&M.name!==v&&(O=!0,T=function(){return M.call(this)})}if(r&&!w||!h&&!O&&k[d]||a(k,d,T),s[e]=T,s[A]=g,y)if(x={values:C?T:S(v),keys:b?T:S(_),entries:C?S("entries"):T},w)for(E in x)E in k||i(k,E,x[E]);else o(o.P+o.F*(h||O),e,x);return x}},function(t,e){t.exports={}},function(t,e,n){"use strict";var r=n(6),o=n(11),i=n(39),a={};n(10)(a,n(35)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r.create(a,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){"use strict";var r=n(7),o=n(102)(!1);r(r.P,"String",{codePointAt:function(t){return o(this,t)}})},function(t,e,n){"use strict";var r=n(7),o=n(31),i=n(108),a="endsWith",u=""[a];r(r.P+r.F*n(110)(a),"String",{endsWith:function(t){var e=i(this,t,a),n=arguments,r=n.length>1?n[1]:void 0,s=o(e.length),c=void 0===r?s:Math.min(o(r),s),l=String(t);return u?u.call(e,l,c):e.slice(c-l.length,c)===l}})},function(t,e,n){var r=n(109),o=n(26);t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(t))}},function(t,e,n){var r=n(20),o=n(22),i=n(35)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},function(t,e,n){var r=n(35)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(o){}}return!0}},function(t,e,n){"use strict";var r=n(7),o=n(108),i="includes";r(r.P+r.F*n(110)(i),"String",{includes:function(t){return!!~o(this,t,i).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(7);r(r.P,"String",{repeat:n(113)})},function(t,e,n){"use strict";var r=n(29),o=n(26);t.exports=function(t){var e=String(o(this)),n="",i=r(t);if(i<0||i==1/0)throw RangeError("Count can't be negative");for(;i>0;(i>>>=1)&&(e+=e))1&i&&(n+=e);return n}},function(t,e,n){"use strict";var r=n(7),o=n(31),i=n(108),a="startsWith",u=""[a];r(r.P+r.F*n(110)(a),"String",{startsWith:function(t){var e=i(this,t,a),n=arguments,r=o(Math.min(n.length>1?n[1]:void 0,e.length)),s=String(t);return u?u.call(e,s,r):e.slice(r,r+s.length)===s}})},function(t,e,n){"use strict";var r=n(16),o=n(7),i=n(25),a=n(116),u=n(117),s=n(31),c=n(118);o(o.S+o.F*!n(119)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,o,l,f=i(t),d="function"==typeof this?this:Array,h=arguments,p=h.length,_=p>1?h[1]:void 0,v=void 0!==_,g=0,m=c(f);if(v&&(_=r(_,p>2?h[2]:void 0,2)),void 0==m||d==Array&&u(m))for(e=s(f.length),n=new d(e);e>g;g++)n[g]=v?_(f[g],g):f[g];else for(l=m.call(f),n=new d;!(o=l.next()).done;g++)n[g]=v?a(l,_,[o.value,g],!0):o.value;return n.length=g,n}})},function(t,e,n){var r=n(24);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(i){var a=t["return"];throw void 0!==a&&r(a.call(t)),i}}},function(t,e,n){var r=n(104),o=n(35)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,e,n){var r=n(51),o=n(35)("iterator"),i=n(104);t.exports=n(9).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,e,n){var r=n(35)("iterator"),o=!1;try{var i=[7][r]();i["return"]=function(){o=!0},Array.from(i,function(){throw 2})}catch(a){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},t(i)}catch(u){}return n}},function(t,e,n){"use strict";var r=n(7);r(r.S+r.F*n(13)(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,e=arguments,n=e.length,r=new("function"==typeof this?this:Array)(n);n>t;)r[t]=e[t++];return r.length=n,r}})},function(t,e,n){"use strict";var r=n(122),o=n(123),i=n(104),a=n(27);t.exports=n(103)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,n):"values"==e?o(0,t[n]):o(0,[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e,n){var r=n(35)("unscopables"),o=Array.prototype;void 0==o[r]&&n(10)(o,r,{}),t.exports=function(t){o[r][t]=!0}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){n(125)("Array")},function(t,e,n){"use strict";var r=n(8),o=n(6),i=n(12),a=n(35)("species");t.exports=function(t){var e=r[t];i&&e&&!e[a]&&o.setDesc(e,a,{configurable:!0,get:function(){return this}})}},function(t,e,n){var r=n(7);r(r.P,"Array",{copyWithin:n(127)}),n(122)("copyWithin")},function(t,e,n){"use strict";var r=n(25),o=n(30),i=n(31);t.exports=[].copyWithin||function(t,e){var n=r(this),a=i(n.length),u=o(t,a),s=o(e,a),c=arguments,l=c.length>2?c[2]:void 0,f=Math.min((void 0===l?a:o(l,a))-s,a-u),d=1;for(s<u&&u<s+f&&(d=-1,s+=f-1,u+=f-1);f-- >0;)s in n?n[u]=n[s]:delete n[u],u+=d,s+=d;return n}},function(t,e,n){var r=n(7);r(r.P,"Array",{fill:n(129)}),n(122)("fill")},function(t,e,n){"use strict";var r=n(25),o=n(30),i=n(31);t.exports=[].fill||function(t){for(var e=r(this),n=i(e.length),a=arguments,u=a.length,s=o(u>1?a[1]:void 0,n),c=u>2?a[2]:void 0,l=void 0===c?n:o(c,n);l>s;)e[s++]=t;return e}},function(t,e,n){"use strict";var r=n(7),o=n(32)(5),i="find",a=!0;i in[]&&Array(1)[i](function(){a=!1}),r(r.P+r.F*a,"Array",{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(122)(i)},function(t,e,n){"use strict";var r=n(7),o=n(32)(6),i="findIndex",a=!0;i in[]&&Array(1)[i](function(){a=!1}),r(r.P+r.F*a,"Array",{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(122)(i)},function(t,e,n){var r=n(6),o=n(8),i=n(109),a=n(133),u=o.RegExp,s=u,c=u.prototype,l=/a/g,f=/a/g,d=new u(l)!==l;!n(12)||d&&!n(13)(function(){return f[n(35)("match")]=!1,u(l)!=l||u(f)==f||"/a/i"!=u(l,"i")})||(u=function(t,e){var n=i(t),r=void 0===e;return this instanceof u||!n||t.constructor!==u||!r?d?new s(n&&!r?t.source:t,e):s((n=t instanceof u)?t.source:t,n&&r?a.call(t):e):t},r.each.call(r.getNames(s),function(t){t in u||r.setDesc(u,t,{configurable:!0,get:function(){return s[t]},set:function(e){s[t]=e}})}),c.constructor=u,u.prototype=c,n(14)(o,"RegExp",u)),n(125)("RegExp")},function(t,e,n){"use strict";var r=n(24);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){var r=n(6);n(12)&&"g"!=/./g.flags&&r.setDesc(RegExp.prototype,"flags",{configurable:!0,get:n(133)})},function(t,e,n){n(136)("match",1,function(t,e){return function(n){"use strict";var r=t(this),o=void 0==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))}})},function(t,e,n){"use strict";var r=n(10),o=n(14),i=n(13),a=n(26),u=n(35);t.exports=function(t,e,n){var s=u(t),c=""[t];i(function(){var e={};return e[s]=function(){return 7},7!=""[t](e)})&&(o(String.prototype,t,n(a,s,c)),r(RegExp.prototype,s,2==e?function(t,e){return c.call(t,this,e)}:function(t){return c.call(t,this)}))}},function(t,e,n){n(136)("replace",2,function(t,e,n){return function(r,o){"use strict";var i=t(this),a=void 0==r?void 0:r[e];return void 0!==a?a.call(r,i,o):n.call(String(i),r,o)}})},function(t,e,n){n(136)("search",1,function(t,e){return function(n){"use strict";var r=t(this),o=void 0==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))}})},function(t,e,n){n(136)("split",2,function(t,e,n){return function(r,o){"use strict";var i=t(this),a=void 0==r?void 0:r[e];return void 0!==a?a.call(r,i,o):n.call(String(i),r,o)}})},function(t,e,n){"use strict";var r,o=n(6),i=n(43),a=n(8),u=n(16),s=n(51),c=n(7),l=n(20),f=n(24),d=n(17),h=n(141),p=n(142),_=n(49).set,v=n(47),g=n(35)("species"),m=n(143),y=n(144),b="Promise",w=a.process,x="process"==s(w),E=a[b],S=function(){},A=function(t){
var e,n=new E(S);return t&&(n.constructor=function(t){t(S,S)}),(e=E.resolve(n))["catch"](S),e===n},C=function(){function t(e){var n=new E(e);return _(n,t.prototype),n}var e=!1;try{if(e=E&&E.resolve&&A(),_(t,E),t.prototype=o.create(E.prototype,{constructor:{value:t}}),t.resolve(5).then(function(){})instanceof t||(e=!1),e&&n(12)){var r=!1;E.resolve(o.setDesc({},"then",{get:function(){r=!0}})),e=r}}catch(i){e=!1}return e}(),O=function(t,e){return!(!i||t!==E||e!==r)||v(t,e)},k=function(t){var e=f(t)[g];return void 0!=e?e:t},M=function(t){var e;return!(!l(t)||"function"!=typeof(e=t.then))&&e},T=function(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=d(e),this.reject=d(n)},N=function(t){try{t()}catch(e){return{error:e}}},P=function(t,e){if(!t.n){t.n=!0;var n=t.c;y(function(){for(var r=t.v,o=1==t.s,i=0,u=function(e){var n,i,a=o?e.ok:e.fail,u=e.resolve,s=e.reject;try{a?(o||(t.h=!0),n=a===!0?r:a(r),n===e.promise?s(TypeError("Promise-chain cycle")):(i=M(n))?i.call(n,u,s):u(n)):s(r)}catch(c){s(c)}};n.length>i;)u(n[i++]);n.length=0,t.n=!1,e&&setTimeout(function(){var e,n,o=t.p;j(o)&&(x?w.emit("unhandledRejection",r,o):(e=a.onunhandledrejection)?e({promise:o,reason:r}):(n=a.console)&&n.error&&n.error("Unhandled promise rejection",r)),t.a=void 0},1)})}},j=function(t){var e,n=t._d,r=n.a||n.c,o=0;if(n.h)return!1;for(;r.length>o;)if(e=r[o++],e.fail||!j(e.promise))return!1;return!0},L=function(t){var e=this;e.d||(e.d=!0,e=e.r||e,e.v=t,e.s=2,e.a=e.c.slice(),P(e,!0))},F=function(t){var e,n=this;if(!n.d){n.d=!0,n=n.r||n;try{if(n.p===t)throw TypeError("Promise can't be resolved itself");(e=M(t))?y(function(){var r={r:n,d:!1};try{e.call(t,u(F,r,1),u(L,r,1))}catch(o){L.call(r,o)}}):(n.v=t,n.s=1,P(n,!1))}catch(r){L.call({r:n,d:!1},r)}}};C||(E=function(t){d(t);var e=this._d={p:h(this,E,b),c:[],a:void 0,s:0,d:!1,v:void 0,h:!1,n:!1};try{t(u(F,e,1),u(L,e,1))}catch(n){L.call(e,n)}},n(146)(E.prototype,{then:function(t,e){var n=new T(m(this,E)),r=n.promise,o=this._d;return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,o.c.push(n),o.a&&o.a.push(n),o.s&&P(o,!1),r},"catch":function(t){return this.then(void 0,t)}})),c(c.G+c.W+c.F*!C,{Promise:E}),n(39)(E,b),n(125)(b),r=n(9)[b],c(c.S+c.F*!C,b,{reject:function(t){var e=new T(this),n=e.reject;return n(t),e.promise}}),c(c.S+c.F*(!C||A(!0)),b,{resolve:function(t){if(t instanceof E&&O(t.constructor,this))return t;var e=new T(this),n=e.resolve;return n(t),e.promise}}),c(c.S+c.F*!(C&&n(119)(function(t){E.all(t)["catch"](function(){})})),b,{all:function(t){var e=k(this),n=new T(e),r=n.resolve,i=n.reject,a=[],u=N(function(){p(t,!1,a.push,a);var n=a.length,u=Array(n);n?o.each.call(a,function(t,o){var a=!1;e.resolve(t).then(function(t){a||(a=!0,u[o]=t,--n||r(u))},i)}):r(u)});return u&&i(u.error),n.promise},race:function(t){var e=k(this),n=new T(e),r=n.reject,o=N(function(){p(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return o&&r(o.error),n.promise}})},function(t,e){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError(n+": use the 'new' operator!");return t}},function(t,e,n){var r=n(16),o=n(116),i=n(117),a=n(24),u=n(31),s=n(118);t.exports=function(t,e,n,c){var l,f,d,h=s(t),p=r(n,c,e?2:1),_=0;if("function"!=typeof h)throw TypeError(t+" is not iterable!");if(i(h))for(l=u(t.length);l>_;_++)e?p(a(f=t[_])[0],f[1]):p(t[_]);else for(d=h.call(t);!(f=d.next()).done;)o(d,p,f.value,e)}},function(t,e,n){var r=n(24),o=n(17),i=n(35)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||void 0==(n=r(a)[i])?e:o(n)}},function(t,e,n){var r,o,i,a=n(8),u=n(145).set,s=a.MutationObserver||a.WebKitMutationObserver,c=a.process,l=a.Promise,f="process"==n(22)(c),d=function(){var t,e,n;for(f&&(t=c.domain)&&(c.domain=null,t.exit());r;)e=r.domain,n=r.fn,e&&e.enter(),n(),e&&e.exit(),r=r.next;o=void 0,t&&t.enter()};if(f)i=function(){c.nextTick(d)};else if(s){var h=1,p=document.createTextNode("");new s(d).observe(p,{characterData:!0}),i=function(){p.data=h=-h}}else i=l&&l.resolve?function(){l.resolve().then(d)}:function(){u.call(a,d)};t.exports=function(t){var e={fn:t,next:void 0,domain:f&&c.domain};o&&(o.next=e),r||(r=e,i()),o=e}},function(t,e,n){var r,o,i,a=n(16),u=n(23),s=n(18),c=n(19),l=n(8),f=l.process,d=l.setImmediate,h=l.clearImmediate,p=l.MessageChannel,_=0,v={},g="onreadystatechange",m=function(){var t=+this;if(v.hasOwnProperty(t)){var e=v[t];delete v[t],e()}},y=function(t){m.call(t.data)};d&&h||(d=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return v[++_]=function(){u("function"==typeof t?t:Function(t),e)},r(_),_},h=function(t){delete v[t]},"process"==n(22)(f)?r=function(t){f.nextTick(a(m,t,1))}:p?(o=new p,i=o.port2,o.port1.onmessage=y,r=a(i.postMessage,i,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(t){l.postMessage(t+"","*")},l.addEventListener("message",y,!1)):r=g in c("script")?function(t){s.appendChild(c("script"))[g]=function(){s.removeChild(this),m.call(t)}}:function(t){setTimeout(a(m,t,1),0)}),t.exports={set:d,clear:h}},function(t,e,n){var r=n(14);t.exports=function(t,e){for(var n in e)r(t,n,e[n]);return t}},function(t,e,n){"use strict";var r=n(148);n(149)("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var e=r.getEntry(this,t);return e&&e.v},set:function(t,e){return r.def(this,0===t?0:t,e)}},r,!0)},function(t,e,n){"use strict";var r=n(6),o=n(10),i=n(146),a=n(16),u=n(141),s=n(26),c=n(142),l=n(103),f=n(123),d=n(15)("id"),h=n(21),p=n(20),_=n(125),v=n(12),g=Object.isExtensible||p,m=v?"_s":"size",y=0,b=function(t,e){if(!p(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!h(t,d)){if(!g(t))return"F";if(!e)return"E";o(t,d,++y)}return"O"+t[d]},w=function(t,e){var n,r=b(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,o){var l=t(function(t,i){u(t,l,e),t._i=r.create(null),t._f=void 0,t._l=void 0,t[m]=0,void 0!=i&&c(i,n,t[o],t)});return i(l.prototype,{clear:function(){for(var t=this,e=t._i,n=t._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete e[n.i];t._f=t._l=void 0,t[m]=0},"delete":function(t){var e=this,n=w(e,t);if(n){var r=n.n,o=n.p;delete e._i[n.i],n.r=!0,o&&(o.n=r),r&&(r.p=o),e._f==n&&(e._f=r),e._l==n&&(e._l=o),e[m]--}return!!n},forEach:function(t){for(var e,n=a(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.n:this._f;)for(n(e.v,e.k,this);e&&e.r;)e=e.p},has:function(t){return!!w(this,t)}}),v&&r.setDesc(l.prototype,"size",{get:function(){return s(this[m])}}),l},def:function(t,e,n){var r,o,i=w(t,e);return i?i.v=n:(t._l=i={i:o=b(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=i),r&&(r.n=i),t[m]++,"F"!==o&&(t._i[o]=i)),t},getEntry:w,setStrong:function(t,e,n){l(t,e,function(t,e){this._t=t,this._k=e,this._l=void 0},function(){for(var t=this,e=t._k,n=t._l;n&&n.r;)n=n.p;return t._t&&(t._l=n=n?n.n:t._t._f)?"keys"==e?f(0,n.k):"values"==e?f(0,n.v):f(0,[n.k,n.v]):(t._t=void 0,f(1))},n?"entries":"values",!n,!0),_(e)}}},function(t,e,n){"use strict";var r=n(8),o=n(7),i=n(14),a=n(146),u=n(142),s=n(141),c=n(20),l=n(13),f=n(119),d=n(39);t.exports=function(t,e,n,h,p,_){var v=r[t],g=v,m=p?"set":"add",y=g&&g.prototype,b={},w=function(t){var e=y[t];i(y,t,"delete"==t?function(t){return!(_&&!c(t))&&e.call(this,0===t?0:t)}:"has"==t?function(t){return!(_&&!c(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return _&&!c(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof g&&(_||y.forEach&&!l(function(){(new g).entries().next()}))){var x,E=new g,S=E[m](_?{}:-0,1)!=E,A=l(function(){E.has(1)}),C=f(function(t){new g(t)});C||(g=e(function(e,n){s(e,g,t);var r=new v;return void 0!=n&&u(n,p,r[m],r),r}),g.prototype=y,y.constructor=g),_||E.forEach(function(t,e){x=1/e===-(1/0)}),(A||x)&&(w("delete"),w("has"),p&&w("get")),(x||S)&&w(m),_&&y.clear&&delete y.clear}else g=h.getConstructor(e,t,p,m),a(g.prototype,n);return d(g,t),b[t]=g,o(o.G+o.W+o.F*(g!=v),b),_||h.setStrong(g,t,p),g}},function(t,e,n){"use strict";var r=n(148);n(149)("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return r.def(this,t=0===t?0:t,t)}},r)},function(t,e,n){"use strict";var r=n(6),o=n(14),i=n(152),a=n(20),u=n(21),s=i.frozenStore,c=i.WEAK,l=Object.isExtensible||a,f={},d=n(149)("WeakMap",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){if(a(t)){if(!l(t))return s(this).get(t);if(u(t,c))return t[c][this._i]}},set:function(t,e){return i.def(this,t,e)}},i,!0,!0);7!=(new d).set((Object.freeze||Object)(f),7).get(f)&&r.each.call(["delete","has","get","set"],function(t){var e=d.prototype,n=e[t];o(e,t,function(e,r){if(a(e)&&!l(e)){var o=s(this)[t](e,r);return"set"==t?this:o}return n.call(this,e,r)})})},function(t,e,n){"use strict";var r=n(10),o=n(146),i=n(24),a=n(20),u=n(141),s=n(142),c=n(32),l=n(21),f=n(15)("weak"),d=Object.isExtensible||a,h=c(5),p=c(6),_=0,v=function(t){return t._l||(t._l=new g)},g=function(){this.a=[]},m=function(t,e){return h(t.a,function(t){return t[0]===e})};g.prototype={get:function(t){var e=m(this,t);if(e)return e[1]},has:function(t){return!!m(this,t)},set:function(t,e){var n=m(this,t);n?n[1]=e:this.a.push([t,e])},"delete":function(t){var e=p(this.a,function(e){return e[0]===t});return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,r){var i=t(function(t,o){u(t,i,e),t._i=_++,t._l=void 0,void 0!=o&&s(o,n,t[r],t)});return o(i.prototype,{"delete":function(t){return!!a(t)&&(d(t)?l(t,f)&&l(t[f],this._i)&&delete t[f][this._i]:v(this)["delete"](t))},has:function(t){return!!a(t)&&(d(t)?l(t,f)&&l(t[f],this._i):v(this).has(t))}}),i},def:function(t,e,n){return d(i(e))?(l(e,f)||r(e,f,{}),e[f][t._i]=n):v(t).set(e,n),t},frozenStore:v,WEAK:f}},function(t,e,n){"use strict";var r=n(152);n(149)("WeakSet",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return r.def(this,t,!0)}},r,!1,!0)},function(t,e,n){var r=n(7),o=Function.apply,i=n(24);r(r.S,"Reflect",{apply:function(t,e,n){return o.call(t,e,i(n))}})},function(t,e,n){var r=n(6),o=n(7),i=n(17),a=n(24),u=n(20),s=Function.bind||n(9).Function.prototype.bind;o(o.S+o.F*n(13)(function(){function t(){}return!(Reflect.construct(function(){},[],t)instanceof t)}),"Reflect",{construct:function(t,e){i(t),a(e);var n=arguments.length<3?t:i(arguments[2]);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var o=[null];return o.push.apply(o,e),new(s.apply(t,o))}var c=n.prototype,l=r.create(u(c)?c:Object.prototype),f=Function.apply.call(t,l,e);return u(f)?f:l}})},function(t,e,n){var r=n(6),o=n(7),i=n(24);o(o.S+o.F*n(13)(function(){Reflect.defineProperty(r.setDesc({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(t,e,n){i(t);try{return r.setDesc(t,e,n),!0}catch(o){return!1}}})},function(t,e,n){var r=n(7),o=n(6).getDesc,i=n(24);r(r.S,"Reflect",{deleteProperty:function(t,e){var n=o(i(t),e);return!(n&&!n.configurable)&&delete t[e]}})},function(t,e,n){"use strict";var r=n(7),o=n(24),i=function(t){this._t=o(t),this._i=0;var e,n=this._k=[];for(e in t)n.push(e)};n(105)(i,"Object",function(){var t,e=this,n=e._k;do if(e._i>=n.length)return{value:void 0,done:!0};while(!((t=n[e._i++])in e._t));return{value:t,done:!1}}),r(r.S,"Reflect",{enumerate:function(t){return new i(t)}})},function(t,e,n){function r(t,e){var n,a,c=arguments.length<3?t:arguments[2];return s(t)===c?t[e]:(n=o.getDesc(t,e))?i(n,"value")?n.value:void 0!==n.get?n.get.call(c):void 0:u(a=o.getProto(t))?r(a,e,c):void 0}var o=n(6),i=n(21),a=n(7),u=n(20),s=n(24);a(a.S,"Reflect",{get:r})},function(t,e,n){var r=n(6),o=n(7),i=n(24);o(o.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return r.getDesc(i(t),e)}})},function(t,e,n){var r=n(7),o=n(6).getProto,i=n(24);r(r.S,"Reflect",{getPrototypeOf:function(t){return o(i(t))}})},function(t,e,n){var r=n(7);r(r.S,"Reflect",{has:function(t,e){return e in t}})},function(t,e,n){var r=n(7),o=n(24),i=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(t){return o(t),!i||i(t)}})},function(t,e,n){var r=n(7);r(r.S,"Reflect",{ownKeys:n(165)})},function(t,e,n){var r=n(6),o=n(24),i=n(8).Reflect;t.exports=i&&i.ownKeys||function(t){var e=r.getNames(o(t)),n=r.getSymbols;return n?e.concat(n(t)):e}},function(t,e,n){var r=n(7),o=n(24),i=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(t){o(t);try{return i&&i(t),!0}catch(e){return!1}}})},function(t,e,n){function r(t,e,n){var a,l,f=arguments.length<4?t:arguments[3],d=o.getDesc(s(t),e);if(!d){if(c(l=o.getProto(t)))return r(l,e,n,f);d=u(0)}return i(d,"value")?!(d.writable===!1||!c(f))&&(a=o.getDesc(f,e)||u(0),a.value=n,o.setDesc(f,e,a),!0):void 0!==d.set&&(d.set.call(f,n),!0)}var o=n(6),i=n(21),a=n(7),u=n(11),s=n(24),c=n(20);a(a.S,"Reflect",{set:r})},function(t,e,n){var r=n(7),o=n(49);o&&r(r.S,"Reflect",{setPrototypeOf:function(t,e){o.check(t,e);try{return o.set(t,e),!0}catch(n){return!1}}})},function(t,e,n){"use strict";var r=n(7),o=n(37)(!0);r(r.P,"Array",{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(122)("includes")},function(t,e,n){"use strict";var r=n(7),o=n(102)(!0);r(r.P,"String",{at:function(t){return o(this,t)}})},function(t,e,n){"use strict";var r=n(7),o=n(172);r(r.P,"String",{padLeft:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,e,n){var r=n(31),o=n(113),i=n(26);t.exports=function(t,e,n,a){var u=String(i(t)),s=u.length,c=void 0===n?" ":String(n),l=r(e);if(l<=s)return u;""==c&&(c=" ");var f=l-s,d=o.call(c,Math.ceil(f/c.length));return d.length>f&&(d=d.slice(0,f)),a?d+u:u+d}},function(t,e,n){"use strict";var r=n(7),o=n(172);r(r.P,"String",{padRight:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,e,n){"use strict";n(67)("trimLeft",function(t){return function(){return t(this,1)}})},function(t,e,n){"use strict";n(67)("trimRight",function(t){return function(){return t(this,2)}})},function(t,e,n){var r=n(7),o=n(177)(/[\\^$*+?.()|[\]{}]/g,"\\$&");r(r.S,"RegExp",{escape:function(t){return o(t)}})},function(t,e){t.exports=function(t,e){var n=e===Object(e)?function(t){return e[t]}:e;return function(e){return String(e).replace(t,n)}}},function(t,e,n){var r=n(6),o=n(7),i=n(165),a=n(27),u=n(11);o(o.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n,o=a(t),s=r.setDesc,c=r.getDesc,l=i(o),f={},d=0;l.length>d;)n=c(o,e=l[d++]),e in f?s(f,e,u(0,n)):f[e]=n;return f}})},function(t,e,n){var r=n(7),o=n(180)(!1);r(r.S,"Object",{values:function(t){return o(t)}})},function(t,e,n){var r=n(6),o=n(27),i=r.isEnum;t.exports=function(t){return function(e){for(var n,a=o(e),u=r.getKeys(a),s=u.length,c=0,l=[];s>c;)i.call(a,n=u[c++])&&l.push(t?[n,a[n]]:a[n]);return l}}},function(t,e,n){var r=n(7),o=n(180)(!0);r(r.S,"Object",{entries:function(t){return o(t)}})},function(t,e,n){var r=n(7);r(r.P,"Map",{toJSON:n(183)("Map")})},function(t,e,n){var r=n(142),o=n(51);t.exports=function(t){return function(){if(o(this)!=t)throw TypeError(t+"#toJSON isn't generic");var e=[];return r(this,!1,e.push,e),e}}},function(t,e,n){var r=n(7);r(r.P,"Set",{toJSON:n(183)("Set")})},function(t,e,n){var r=n(6),o=n(7),i=n(16),a=n(9).Array||Array,u={},s=function(t,e){r.each.call(t.split(","),function(t){void 0==e&&t in a?u[t]=a[t]:t in[]&&(u[t]=i(Function.call,[][t],e))})};s("pop,reverse,shift,keys,values,entries",1),s("indexOf,every,some,forEach,map,filter,find,findIndex,includes",3),s("join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill"),o(o.S,"Array",u)},function(t,e,n){var r=n(8),o=n(7),i=n(23),a=n(187),u=r.navigator,s=!!u&&/MSIE .\./.test(u.userAgent),c=function(t){return s?function(e,n){return t(i(a,[].slice.call(arguments,2),"function"==typeof e?e:Function(e)),n)}:t};o(o.G+o.B+o.F*s,{setTimeout:c(r.setTimeout),setInterval:c(r.setInterval)})},function(t,e,n){"use strict";var r=n(188),o=n(23),i=n(17);t.exports=function(){for(var t=i(this),e=arguments.length,n=Array(e),a=0,u=r._,s=!1;e>a;)(n[a]=arguments[a++])===u&&(s=!0);return function(){var r,i=this,a=arguments,c=a.length,l=0,f=0;if(!s&&!c)return o(t,n,i);if(r=n.slice(),s)for(;e>l;l++)r[l]===u&&(r[l]=a[f++]);for(;c>f;)r.push(a[f++]);return o(t,r,i)}}},function(t,e,n){t.exports=n(8)},function(t,e,n){var r=n(7),o=n(145);r(r.G+r.B,{setImmediate:o.set,clearImmediate:o.clear})},function(t,e,n){n(121);var r=n(8),o=n(10),i=n(104),a=n(35)("iterator"),u=r.NodeList,s=r.HTMLCollection,c=u&&u.prototype,l=s&&s.prototype,f=i.NodeList=i.HTMLCollection=i.Array;c&&!c[a]&&o(c,a,f),l&&!l[a]&&o(l,a,f)},function(t,e,n){(function(e,n){!function(e){"use strict";function r(t,e,n,r){var o=Object.create((e||i).prototype),a=new p(r||[]);return o._invoke=f(t,n,a),o}function o(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(r){return{type:"throw",arg:r}}}function i(){}function a(){}function u(){}function s(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function c(t){this.arg=t}function l(t){function e(e,n){var r=t[e](n),o=r.value;return o instanceof c?Promise.resolve(o.arg).then(i,a):Promise.resolve(o).then(function(t){return r.value=t,r})}function r(t,n){function r(){return e(t,n)}return o=o?o.then(r,r):new Promise(function(t){t(r())})}"object"==typeof n&&n.domain&&(e=n.domain.bind(e));var o,i=e.bind(t,"next"),a=e.bind(t,"throw");e.bind(t,"return");this._invoke=r}function f(t,e,n){var r=x;return function(i,a){if(r===S)throw new Error("Generator is already running");if(r===A){if("throw"===i)throw a;return v()}for(;;){var u=n.delegate;if(u){if("return"===i||"throw"===i&&u.iterator[i]===g){n.delegate=null;var s=u.iterator["return"];if(s){var c=o(s,u.iterator,a);if("throw"===c.type){i="throw",a=c.arg;continue}}if("return"===i)continue}var c=o(u.iterator[i],u.iterator,a);if("throw"===c.type){n.delegate=null,i="throw",a=c.arg;continue}i="next",a=g;var l=c.arg;if(!l.done)return r=E,l;n[u.resultName]=l.value,n.next=u.nextLoc,n.delegate=null}if("next"===i)r===E?n.sent=a:n.sent=g;else if("throw"===i){if(r===x)throw r=A,a;n.dispatchException(a)&&(i="next",a=g)}else"return"===i&&n.abrupt("return",a);r=S;var c=o(t,e,n);if("normal"===c.type){r=n.done?A:E;var l={value:c.arg,done:n.done};if(c.arg!==C)return l;n.delegate&&"next"===i&&(a=g)}else"throw"===c.type&&(r=A,i="throw",a=c.arg)}}}function d(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function h(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function p(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(d,this),this.reset(!0)}function _(t){if(t){var e=t[y];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function o(){for(;++n<t.length;)if(m.call(t,n))return o.value=t[n],o.done=!1,o;return o.value=g,o.done=!0,o};return r.next=r}}return{next:v}}function v(){return{value:g,done:!0}}var g,m=Object.prototype.hasOwnProperty,y="function"==typeof Symbol&&Symbol.iterator||"@@iterator",b="object"==typeof t,w=e.regeneratorRuntime;if(w)return void(b&&(t.exports=w));w=e.regeneratorRuntime=b?t.exports:{},w.wrap=r;var x="suspendedStart",E="suspendedYield",S="executing",A="completed",C={},O=u.prototype=i.prototype;a.prototype=O.constructor=u,u.constructor=a,a.displayName="GeneratorFunction",w.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===a||"GeneratorFunction"===(e.displayName||e.name))},w.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,u):t.__proto__=u,t.prototype=Object.create(O),t},w.awrap=function(t){return new c(t)},s(l.prototype),w.async=function(t,e,n,o){var i=new l(r(t,e,n,o));return w.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},s(O),O[y]=function(){return this},O.toString=function(){return"[object Generator]"},w.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},w.values=_,p.prototype={constructor:p,reset:function(t){if(this.prev=0,this.next=0,this.sent=g,this.done=!1,this.delegate=null,this.tryEntries.forEach(h),!t)for(var e in this)"t"===e.charAt(0)&&m.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=g)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){function e(e,r){return i.type="throw",i.arg=t,n.next=e,!!r}if(this.done)throw t;for(var n=this,r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],i=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var a=m.call(o,"catchLoc"),u=m.call(o,"finallyLoc");if(a&&u){if(this.prev<o.catchLoc)return e(o.catchLoc,!0);if(this.prev<o.finallyLoc)return e(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return e(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return e(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&m.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?this.next=o.finallyLoc:this.complete(i),C},complete:function(t,e){if("throw"===t.type)throw t.arg;"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=t.arg,this.next="end"):"normal"===t.type&&e&&(this.next=e)},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),h(n),C}},"catch":function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;h(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:_(t),resultName:e,nextLoc:n},C}}}("object"==typeof e?e:"object"==typeof window?window:"object"==typeof self?self:this)}).call(e,function(){return this}(),n(192))},function(t,e){function n(t){if(s===setTimeout)return setTimeout(t,0);try{return s(t,0)}catch(e){try{return s.call(null,t,0)}catch(e){return s.call(this,t,0)}}}function r(t){if(c===clearTimeout)return clearTimeout(t);try{return c(t)}catch(e){try{return c.call(null,t)}catch(e){return c.call(this,t)}}}function o(){h&&f&&(h=!1,f.length?d=f.concat(d):p=-1,d.length&&i())}function i(){if(!h){var t=n(o);h=!0;for(var e=d.length;e;){for(f=d,d=[];++p<e;)f&&f[p].run();p=-1,e=d.length}f=null,h=!1,r(t)}}function a(t,e){this.fun=t,this.array=e}function u(){}var s,c,l=t.exports={};!function(){try{s=setTimeout}catch(t){s=function(){throw new Error("setTimeout is not defined")}}try{c=clearTimeout}catch(t){c=function(){throw new Error("clearTimeout is not defined")}}}();var f,d=[],h=!1,p=-1;l.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];d.push(new a(t,e)),1!==d.length||h||n(i)},a.prototype.run=function(){this.fun.apply(null,this.array)},l.title="browser",l.browser=!0,l.env={},l.argv=[],l.version="",l.versions={},l.on=u,l.addListener=u,l.once=u,l.off=u,l.removeListener=u,l.removeAllListeners=u,l.emit=u,l.binding=function(t){throw new Error("process.binding is not supported")},l.cwd=function(){return"/"},l.chdir=function(t){throw new Error("process.chdir is not supported")},l.umask=function(){return 0}},function(t,e,n){"use strict";e.__esModule=!0,e["default"]={color:{Color:n(194),math:n(198),interpret:n(195)},controllers:{Controller:n(199),BooleanController:n(200),OptionController:n(202),StringController:n(203),NumberController:n(204),NumberControllerBox:n(205),NumberControllerSlider:n(206),FunctionController:n(207),ColorController:n(208)},dom:{dom:n(201)},gui:{GUI:n(209)},GUI:n(209)},t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e,n){Object.defineProperty(t,e,{get:function(){return"RGB"===this.__state.space?this.__state[e]:(_.recalculateRGB(this,e,n),this.__state[e])},set:function(t){"RGB"!==this.__state.space&&(_.recalculateRGB(this,e,n),this.__state.space="RGB"),this.__state[e]=t}})}function a(t,e){Object.defineProperty(t,e,{get:function(){return"HSV"===this.__state.space?this.__state[e]:(_.recalculateHSV(this),this.__state[e])},set:function(t){"HSV"!==this.__state.space&&(_.recalculateHSV(this),this.__state.space="HSV"),this.__state[e]=t}})}e.__esModule=!0;var u=n(195),s=r(u),c=n(198),l=r(c),f=n(196),d=r(f),h=n(197),p=r(h),_=function(){function t(){if(o(this,t),this.__state=s["default"].apply(this,arguments),this.__state===!1)throw new Error("Failed to interpret color arguments");this.__state.a=this.__state.a||1}return t.prototype.toString=function(){return d["default"](this)},t.prototype.toOriginal=function(){return this.__state.conversion.write(this)},t}();_.recalculateRGB=function(t,e,n){if("HEX"===t.__state.space)t.__state[e]=l["default"].component_from_hex(t.__state.hex,n);else{if("HSV"!==t.__state.space)throw new Error("Corrupted color state");p["default"].extend(t.__state,l["default"].hsv_to_rgb(t.__state.h,t.__state.s,t.__state.v))}},_.recalculateHSV=function(t){var e=l["default"].rgb_to_hsv(t.r,t.g,t.b);p["default"].extend(t.__state,{s:e.s,v:e.v}),p["default"].isNaN(e.h)?p["default"].isUndefined(t.__state.h)&&(t.__state.h=0):t.__state.h=e.h},_.COMPONENTS=["r","g","b","h","s","v","hex","a"],i(_.prototype,"r",2),i(_.prototype,"g",1),i(_.prototype,"b",0),a(_.prototype,"h"),a(_.prototype,"s"),a(_.prototype,"v"),Object.defineProperty(_.prototype,"a",{get:function(){return this.__state.a},set:function(t){this.__state.a=t}}),Object.defineProperty(_.prototype,"hex",{get:function(){return"HEX"!==!this.__state.space&&(this.__state.hex=l["default"].rgb_to_hex(this.r,this.g,this.b)),this.__state.hex},set:function(t){this.__state.space="HEX",this.__state.hex=t}}),e["default"]=_,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(196),i=r(o),a=n(197),u=r(a),s=[{litmus:u["default"].isString,conversions:{THREE_CHAR_HEX:{read:function(t){var e=t.match(/^#([A-F0-9])([A-F0-9])([A-F0-9])$/i);return null!==e&&{space:"HEX",hex:parseInt("0x"+e[1].toString()+e[1].toString()+e[2].toString()+e[2].toString()+e[3].toString()+e[3].toString(),0)}},write:i["default"]},SIX_CHAR_HEX:{read:function(t){var e=t.match(/^#([A-F0-9]{6})$/i);return null!==e&&{space:"HEX",hex:parseInt("0x"+e[1].toString(),0)}},write:i["default"]},CSS_RGB:{read:function(t){var e=t.match(/^rgb\(\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*\)/);return null!==e&&{space:"RGB",r:parseFloat(e[1]),g:parseFloat(e[2]),b:parseFloat(e[3])}},write:i["default"]},CSS_RGBA:{read:function(t){var e=t.match(/^rgba\(\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*\,\s*(.+)\s*\)/);return null!==e&&{space:"RGB",r:parseFloat(e[1]),g:parseFloat(e[2]),b:parseFloat(e[3]),a:parseFloat(e[4])}},write:i["default"]}}},{litmus:u["default"].isNumber,conversions:{HEX:{read:function(t){return{space:"HEX",hex:t,conversionName:"HEX"}},write:function(t){return t.hex}}}},{litmus:u["default"].isArray,conversions:{RGB_ARRAY:{read:function(t){return 3===t.length&&{space:"RGB",r:t[0],g:t[1],b:t[2]}},write:function(t){return[t.r,t.g,t.b]}},RGBA_ARRAY:{read:function(t){return 4===t.length&&{space:"RGB",r:t[0],g:t[1],b:t[2],a:t[3]}},write:function(t){return[t.r,t.g,t.b,t.a]}}}},{litmus:u["default"].isObject,conversions:{RGBA_OBJ:{read:function(t){return!!(u["default"].isNumber(t.r)&&u["default"].isNumber(t.g)&&u["default"].isNumber(t.b)&&u["default"].isNumber(t.a))&&{space:"RGB",r:t.r,g:t.g,b:t.b,a:t.a}},write:function(t){return{r:t.r,g:t.g,b:t.b,a:t.a}}},RGB_OBJ:{read:function(t){return!!(u["default"].isNumber(t.r)&&u["default"].isNumber(t.g)&&u["default"].isNumber(t.b))&&{space:"RGB",r:t.r,g:t.g,b:t.b}},write:function(t){return{r:t.r,g:t.g,b:t.b}}},HSVA_OBJ:{read:function(t){return!!(u["default"].isNumber(t.h)&&u["default"].isNumber(t.s)&&u["default"].isNumber(t.v)&&u["default"].isNumber(t.a))&&{space:"HSV",h:t.h,s:t.s,v:t.v,a:t.a}},write:function(t){return{h:t.h,s:t.s,v:t.v,a:t.a}}},HSV_OBJ:{read:function(t){return!!(u["default"].isNumber(t.h)&&u["default"].isNumber(t.s)&&u["default"].isNumber(t.v))&&{space:"HSV",h:t.h,s:t.s,v:t.v}},write:function(t){return{h:t.h,s:t.s,v:t.v}}}}}],c=void 0,l=void 0,f=function(){l=!1;var t=arguments.length>1?u["default"].toArray(arguments):arguments[0];return u["default"].each(s,function(e){if(e.litmus(t))return u["default"].each(e.conversions,function(e,n){if(c=e.read(t),l===!1&&c!==!1)return l=c,c.conversionName=n,c.conversion=e,u["default"].BREAK}),u["default"].BREAK}),l};e["default"]=f,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(197),i=r(o);e["default"]=function(t){if(1===t.a||i["default"].isUndefined(t.a)){for(var e=t.hex.toString(16);e.length<6;)e="0"+e;return"#"+e}return"rgba("+Math.round(t.r)+","+Math.round(t.g)+","+Math.round(t.b)+","+t.a+")"},t.exports=e["default"]},function(t,e){"use strict";e.__esModule=!0;var n=Array.prototype.forEach,r=Array.prototype.slice,o={BREAK:{},extend:function(t){return this.each(r.call(arguments,1),function(e){for(var n in e)this.isUndefined(e[n])||(t[n]=e[n])},this),t},defaults:function(t){return this.each(r.call(arguments,1),function(e){for(var n in e)this.isUndefined(t[n])&&(t[n]=e[n])},this),t},compose:function(){var t=r.call(arguments);return function(){for(var e=r.call(arguments),n=t.length-1;n>=0;n--)e=[t[n].apply(this,e)];return e[0]}},each:function(t,e,r){if(t)if(n&&t.forEach&&t.forEach===n)t.forEach(e,r);else if(t.length===t.length+0){var o=void 0,i=void 0;for(o=0,i=t.length;o<i;o++)if(o in t&&e.call(r,t[o],o)===this.BREAK)return}else for(var o in t)if(e.call(r,t[o],o)===this.BREAK)return},defer:function(t){setTimeout(t,0)},debounce:function(t,e){var n=void 0;return function(){function r(){n=null}var o=this,i=arguments,a=!n;clearTimeout(n),n=setTimeout(r,e),a&&t.apply(o,i)}},toArray:function(t){return t.toArray?t.toArray():r.call(t)},isUndefined:function(t){return void 0===t},isNull:function(t){return null===t},isNaN:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(t){return isNaN(t)}),isArray:Array.isArray||function(t){return t.constructor===Array},isObject:function(t){return t===Object(t)},isNumber:function(t){return t===t+0},isString:function(t){return t===t+""},isBoolean:function(t){return t===!1||t===!0},isFunction:function(t){return"[object Function]"===Object.prototype.toString.call(t)}};e["default"]=o,t.exports=e["default"]},function(t,e){"use strict";e.__esModule=!0;var n=void 0,r={hsv_to_rgb:function(t,e,n){var r=Math.floor(t/60)%6,o=t/60-Math.floor(t/60),i=n*(1-e),a=n*(1-o*e),u=n*(1-(1-o)*e),s=[[n,u,i],[a,n,i],[i,n,u],[i,a,n],[u,i,n],[n,i,a]][r];return{r:255*s[0],g:255*s[1],b:255*s[2]}},rgb_to_hsv:function(t,e,n){var r=Math.min(t,e,n),o=Math.max(t,e,n),i=o-r,a=void 0,u=void 0;return 0===o?{h:NaN,s:0,v:0}:(u=i/o,a=t===o?(e-n)/i:e===o?2+(n-t)/i:4+(t-e)/i,a/=6,a<0&&(a+=1),{h:360*a,s:u,v:o/255})},rgb_to_hex:function(t,e,n){var r=this.hex_with_component(0,2,t);return r=this.hex_with_component(r,1,e),r=this.hex_with_component(r,0,n)},component_from_hex:function(t,e){return t>>8*e&255},hex_with_component:function(t,e,r){return r<<(n=8*e)|t&~(255<<n)}};e["default"]=r,t.exports=e["default"]},function(t,e){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");
}e.__esModule=!0;var r=function(){function t(e,r){n(this,t),this.initialValue=e[r],this.domElement=document.createElement("div"),this.object=e,this.property=r,this.__onChange=void 0,this.__onFinishChange=void 0}return t.prototype.onChange=function(t){return this.__onChange=t,this},t.prototype.onFinishChange=function(t){return this.__onFinishChange=t,this},t.prototype.setValue=function(t){return this.object[this.property]=t,this.__onChange&&this.__onChange.call(this,t),this.updateDisplay(),this},t.prototype.getValue=function(){return this.object[this.property]},t.prototype.updateDisplay=function(){return this},t.prototype.isModified=function(){return this.initialValue!==this.getValue()},t}();e["default"]=r,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var a=n(199),u=r(a),s=n(201),c=r(s),l=function(t){function e(n,r){function i(){a.setValue(!a.__prev)}o(this,e),t.call(this,n,r);var a=this;this.__prev=this.getValue(),this.__checkbox=document.createElement("input"),this.__checkbox.setAttribute("type","checkbox"),c["default"].bind(this.__checkbox,"change",i,!1),this.domElement.appendChild(this.__checkbox),this.updateDisplay()}return i(e,t),e.prototype.setValue=function(e){var n=t.prototype.setValue.call(this,e);return this.__onFinishChange&&this.__onFinishChange.call(this,this.getValue()),this.__prev=this.getValue(),n},e.prototype.updateDisplay=function(){return this.getValue()===!0?(this.__checkbox.setAttribute("checked","checked"),this.__checkbox.checked=!0):this.__checkbox.checked=!1,t.prototype.updateDisplay.call(this)},e}(u["default"]);e["default"]=l,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t){if("0"===t||a["default"].isUndefined(t))return 0;var e=t.match(c);return a["default"].isNull(e)?0:parseFloat(e[1])}e.__esModule=!0;var i=n(197),a=r(i),u={HTMLEvents:["change"],MouseEvents:["click","mousemove","mousedown","mouseup","mouseover"],KeyboardEvents:["keydown"]},s={};a["default"].each(u,function(t,e){a["default"].each(t,function(t){s[t]=e})});var c=/(\d+(\.\d+)?)px/,l={makeSelectable:function(t,e){void 0!==t&&void 0!==t.style&&(t.onselectstart=e?function(){return!1}:function(){},t.style.MozUserSelect=e?"auto":"none",t.style.KhtmlUserSelect=e?"auto":"none",t.unselectable=e?"on":"off")},makeFullscreen:function(t,e,n){var r=n,o=e;a["default"].isUndefined(o)&&(o=!0),a["default"].isUndefined(r)&&(r=!0),t.style.position="absolute",o&&(t.style.left=0,t.style.right=0),r&&(t.style.top=0,t.style.bottom=0)},fakeEvent:function(t,e,n,r){var o=n||{},i=s[e];if(!i)throw new Error("Event type "+e+" not supported.");var u=document.createEvent(i);switch(i){case"MouseEvents":var c=o.x||o.clientX||0,l=o.y||o.clientY||0;u.initMouseEvent(e,o.bubbles||!1,o.cancelable||!0,window,o.clickCount||1,0,0,c,l,!1,!1,!1,!1,0,null);break;case"KeyboardEvents":var f=u.initKeyboardEvent||u.initKeyEvent;a["default"].defaults(o,{cancelable:!0,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,keyCode:void 0,charCode:void 0}),f(e,o.bubbles||!1,o.cancelable,window,o.ctrlKey,o.altKey,o.shiftKey,o.metaKey,o.keyCode,o.charCode);break;default:u.initEvent(e,o.bubbles||!1,o.cancelable||!0)}a["default"].defaults(u,r),t.dispatchEvent(u)},bind:function(t,e,n,r){var o=r||!1;return t.addEventListener?t.addEventListener(e,n,o):t.attachEvent&&t.attachEvent("on"+e,n),l},unbind:function(t,e,n,r){var o=r||!1;return t.removeEventListener?t.removeEventListener(e,n,o):t.detachEvent&&t.detachEvent("on"+e,n),l},addClass:function(t,e){if(void 0===t.className)t.className=e;else if(t.className!==e){var n=t.className.split(/ +/);n.indexOf(e)===-1&&(n.push(e),t.className=n.join(" ").replace(/^\s+/,"").replace(/\s+$/,""))}return l},removeClass:function(t,e){if(e)if(t.className===e)t.removeAttribute("class");else{var n=t.className.split(/ +/),r=n.indexOf(e);r!==-1&&(n.splice(r,1),t.className=n.join(" "))}else t.className=void 0;return l},hasClass:function(t,e){return new RegExp("(?:^|\\s+)"+e+"(?:\\s+|$)").test(t.className)||!1},getWidth:function(t){var e=getComputedStyle(t);return o(e["border-left-width"])+o(e["border-right-width"])+o(e["padding-left"])+o(e["padding-right"])+o(e.width)},getHeight:function(t){var e=getComputedStyle(t);return o(e["border-top-width"])+o(e["border-bottom-width"])+o(e["padding-top"])+o(e["padding-bottom"])+o(e.height)},getOffset:function(t){var e=t,n={left:0,top:0};if(e.offsetParent)do n.left+=e.offsetLeft,n.top+=e.offsetTop,e=e.offsetParent;while(e);return n},isActive:function(t){return t===document.activeElement&&(t.type||t.href)}};e["default"]=l,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var a=n(199),u=r(a),s=n(201),c=r(s),l=n(197),f=r(l),d=function(t){function e(n,r,i){o(this,e),t.call(this,n,r);var a=i,u=this;this.__select=document.createElement("select"),f["default"].isArray(a)&&!function(){var t={};f["default"].each(a,function(e){t[e]=e}),a=t}(),f["default"].each(a,function(t,e){var n=document.createElement("option");n.innerHTML=e,n.setAttribute("value",t),u.__select.appendChild(n)}),this.updateDisplay(),c["default"].bind(this.__select,"change",function(){var t=this.options[this.selectedIndex].value;u.setValue(t)}),this.domElement.appendChild(this.__select)}return i(e,t),e.prototype.setValue=function(e){var n=t.prototype.setValue.call(this,e);return this.__onFinishChange&&this.__onFinishChange.call(this,this.getValue()),n},e.prototype.updateDisplay=function(){return c["default"].isActive(this.__select)?this:(this.__select.value=this.getValue(),t.prototype.updateDisplay.call(this))},e}(u["default"]);e["default"]=d,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var a=n(199),u=r(a),s=n(201),c=r(s),l=function(t){function e(n,r){function i(){u.setValue(u.__input.value)}function a(){u.__onFinishChange&&u.__onFinishChange.call(u,u.getValue())}o(this,e),t.call(this,n,r);var u=this;this.__input=document.createElement("input"),this.__input.setAttribute("type","text"),c["default"].bind(this.__input,"keyup",i),c["default"].bind(this.__input,"change",i),c["default"].bind(this.__input,"blur",a),c["default"].bind(this.__input,"keydown",function(t){13===t.keyCode&&this.blur()}),this.updateDisplay(),this.domElement.appendChild(this.__input)}return i(e,t),e.prototype.updateDisplay=function(){return c["default"].isActive(this.__input)||(this.__input.value=this.getValue()),t.prototype.updateDisplay.call(this)},e}(u["default"]);e["default"]=l,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t){var e=t.toString();return e.indexOf(".")>-1?e.length-e.indexOf(".")-1:0}e.__esModule=!0;var u=n(199),s=r(u),c=n(197),l=r(c),f=function(t){function e(n,r,i){o(this,e),t.call(this,n,r);var u=i||{};this.__min=u.min,this.__max=u.max,this.__step=u.step,l["default"].isUndefined(this.__step)?0===this.initialValue?this.__impliedStep=1:this.__impliedStep=Math.pow(10,Math.floor(Math.log(Math.abs(this.initialValue))/Math.LN10))/10:this.__impliedStep=this.__step,this.__precision=a(this.__impliedStep)}return i(e,t),e.prototype.setValue=function(e){var n=e;return void 0!==this.__min&&n<this.__min?n=this.__min:void 0!==this.__max&&n>this.__max&&(n=this.__max),void 0!==this.__step&&n%this.__step!==0&&(n=Math.round(n/this.__step)*this.__step),t.prototype.setValue.call(this,n)},e.prototype.min=function(t){return this.__min=t,this},e.prototype.max=function(t){return this.__max=t,this},e.prototype.step=function(t){return this.__step=t,this.__impliedStep=t,this.__precision=a(t),this},e}(s["default"]);e["default"]=f,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t,e){var n=Math.pow(10,e);return Math.round(t*n)/n}e.__esModule=!0;var u=n(204),s=r(u),c=n(201),l=r(c),f=n(197),d=r(f),h=function(t){function e(n,r,i){function a(){var t=parseFloat(h.__input.value);d["default"].isNaN(t)||h.setValue(t)}function u(){a(),h.__onFinishChange&&h.__onFinishChange.call(h,h.getValue())}function s(t){document.activeElement.blur();var e=p-t.clientY;h.setValue(h.getValue()+e*h.__impliedStep),p=t.clientY}function c(){l["default"].unbind(window,"mousemove",s),l["default"].unbind(window,"mouseup",c)}function f(t){l["default"].bind(window,"mousemove",s),l["default"].bind(window,"mouseup",c),p=t.clientY}o(this,e),t.call(this,n,r,i),this.__truncationSuspended=!1;var h=this,p=void 0;this.__input=document.createElement("input"),this.__input.setAttribute("type","text"),l["default"].bind(this.__input,"change",a),l["default"].bind(this.__input,"blur",u),l["default"].bind(this.__input,"mousedown",f),l["default"].bind(this.__input,"keydown",function(t){13===t.keyCode&&(h.__truncationSuspended=!0,this.blur(),h.__truncationSuspended=!1)}),this.updateDisplay(),this.domElement.appendChild(this.__input)}return i(e,t),e.prototype.updateDisplay=function(){return l["default"].isActive(this.__input)?this:(this.__input.value=this.__truncationSuspended?this.getValue():a(this.getValue(),this.__precision),t.prototype.updateDisplay.call(this))},e}(s["default"]);e["default"]=h,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t,e,n,r,o){return r+(o-r)*((t-e)/(n-e))}e.__esModule=!0;var u=n(204),s=r(u),c=n(201),l=r(c),f=function(t){function e(n,r,i,u,s){function c(t){document.activeElement.blur(),l["default"].bind(window,"mousemove",f),l["default"].bind(window,"mouseup",d),f(t)}function f(t){t.preventDefault();var e=l["default"].getOffset(h.__background),n=l["default"].getWidth(h.__background);return h.setValue(a(t.clientX,e.left,e.left+n,h.__min,h.__max)),!1}function d(){l["default"].unbind(window,"mousemove",f),l["default"].unbind(window,"mouseup",d),h.__onFinishChange&&h.__onFinishChange.call(h,h.getValue())}o(this,e),t.call(this,n,r,{min:i,max:u,step:s});var h=this;this.__background=document.createElement("div"),this.__foreground=document.createElement("div"),l["default"].bind(this.__background,"mousedown",c),l["default"].addClass(this.__background,"slider"),l["default"].addClass(this.__foreground,"slider-fg"),this.updateDisplay(),this.__background.appendChild(this.__foreground),this.domElement.appendChild(this.__background)}return i(e,t),e.prototype.updateDisplay=function(){var e=(this.getValue()-this.__min)/(this.__max-this.__min);return this.__foreground.style.width=100*e+"%",t.prototype.updateDisplay.call(this)},e}(s["default"]);e["default"]=f,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var a=n(199),u=r(a),s=n(201),c=r(s),l=function(t){function e(n,r,i){o(this,e),t.call(this,n,r);var a=this;this.__button=document.createElement("div"),this.__button.innerHTML=void 0===i?"Fire":i,c["default"].bind(this.__button,"click",function(t){return t.preventDefault(),a.fire(),!1}),c["default"].addClass(this.__button,"button"),this.domElement.appendChild(this.__button)}return i(e,t),e.prototype.fire=function(){this.__onChange&&this.__onChange.call(this),this.getValue().call(this.object),this.__onFinishChange&&this.__onFinishChange.call(this,this.getValue())},e}(u["default"]);e["default"]=l,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t,e,n,r){t.style.background="",g["default"].each(y,function(o){t.style.cssText+="background: "+o+"linear-gradient("+e+", "+n+" 0%, "+r+" 100%); "})}function u(t){t.style.background="",t.style.cssText+="background: -moz-linear-gradient(top, #ff0000 0%, #ff00ff 17%, #0000ff 34%, #00ffff 50%, #00ff00 67%, #ffff00 84%, #ff0000 100%);",t.style.cssText+="background: -webkit-linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);",t.style.cssText+="background: -o-linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);",t.style.cssText+="background: -ms-linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);",t.style.cssText+="background: linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);"}e.__esModule=!0;var s=n(199),c=r(s),l=n(201),f=r(l),d=n(194),h=r(d),p=n(195),_=r(p),v=n(197),g=r(v),m=function(t){function e(n,r){function i(t){p(t),f["default"].bind(window,"mousemove",p),f["default"].bind(window,"mouseup",s)}function s(){f["default"].unbind(window,"mousemove",p),f["default"].unbind(window,"mouseup",s),d()}function c(){var t=_["default"](this.value);t!==!1?(m.__color.__state=t,m.setValue(m.__color.toOriginal())):this.value=m.__color.toString()}function l(){f["default"].unbind(window,"mousemove",v),f["default"].unbind(window,"mouseup",l),d()}function d(){m.__onFinishChange&&m.__onFinishChange.call(m,m.__color.toString())}function p(t){t.preventDefault();var e=f["default"].getWidth(m.__saturation_field),n=f["default"].getOffset(m.__saturation_field),r=(t.clientX-n.left+document.body.scrollLeft)/e,o=1-(t.clientY-n.top+document.body.scrollTop)/e;return o>1?o=1:o<0&&(o=0),r>1?r=1:r<0&&(r=0),m.__color.v=o,m.__color.s=r,m.setValue(m.__color.toOriginal()),!1}function v(t){t.preventDefault();var e=f["default"].getHeight(m.__hue_field),n=f["default"].getOffset(m.__hue_field),r=1-(t.clientY-n.top+document.body.scrollTop)/e;return r>1?r=1:r<0&&(r=0),m.__color.h=360*r,m.setValue(m.__color.toOriginal()),!1}o(this,e),t.call(this,n,r),this.__color=new h["default"](this.getValue()),this.__temp=new h["default"](0);var m=this;this.domElement=document.createElement("div"),f["default"].makeSelectable(this.domElement,!1),this.__selector=document.createElement("div"),this.__selector.className="selector",this.__saturation_field=document.createElement("div"),this.__saturation_field.className="saturation-field",this.__field_knob=document.createElement("div"),this.__field_knob.className="field-knob",this.__field_knob_border="2px solid ",this.__hue_knob=document.createElement("div"),this.__hue_knob.className="hue-knob",this.__hue_field=document.createElement("div"),this.__hue_field.className="hue-field",this.__input=document.createElement("input"),this.__input.type="text",this.__input_textShadow="0 1px 1px ",f["default"].bind(this.__input,"keydown",function(t){13===t.keyCode&&c.call(this)}),f["default"].bind(this.__input,"blur",c),f["default"].bind(this.__selector,"mousedown",function(){f["default"].addClass(this,"drag").bind(window,"mouseup",function(){f["default"].removeClass(m.__selector,"drag")})});var y=document.createElement("div");g["default"].extend(this.__selector.style,{width:"122px",height:"102px",padding:"3px",backgroundColor:"#222",boxShadow:"0px 1px 3px rgba(0,0,0,0.3)"}),g["default"].extend(this.__field_knob.style,{position:"absolute",width:"12px",height:"12px",border:this.__field_knob_border+(this.__color.v<.5?"#fff":"#000"),boxShadow:"0px 1px 3px rgba(0,0,0,0.5)",borderRadius:"12px",zIndex:1}),g["default"].extend(this.__hue_knob.style,{position:"absolute",width:"15px",height:"2px",borderRight:"4px solid #fff",zIndex:1}),g["default"].extend(this.__saturation_field.style,{width:"100px",height:"100px",border:"1px solid #555",marginRight:"3px",display:"inline-block",cursor:"pointer"}),g["default"].extend(y.style,{width:"100%",height:"100%",background:"none"}),a(y,"top","rgba(0,0,0,0)","#000"),g["default"].extend(this.__hue_field.style,{width:"15px",height:"100px",border:"1px solid #555",cursor:"ns-resize",position:"absolute",top:"3px",right:"3px"}),u(this.__hue_field),g["default"].extend(this.__input.style,{outline:"none",textAlign:"center",color:"#fff",border:0,fontWeight:"bold",textShadow:this.__input_textShadow+"rgba(0,0,0,0.7)"}),f["default"].bind(this.__saturation_field,"mousedown",i),f["default"].bind(this.__field_knob,"mousedown",i),f["default"].bind(this.__hue_field,"mousedown",function(t){v(t),f["default"].bind(window,"mousemove",v),f["default"].bind(window,"mouseup",l)}),this.__saturation_field.appendChild(y),this.__selector.appendChild(this.__field_knob),this.__selector.appendChild(this.__saturation_field),this.__selector.appendChild(this.__hue_field),this.__hue_field.appendChild(this.__hue_knob),this.domElement.appendChild(this.__input),this.domElement.appendChild(this.__selector),this.updateDisplay()}return i(e,t),e.prototype.updateDisplay=function(){var t=_["default"](this.getValue());if(t!==!1){var e=!1;g["default"].each(h["default"].COMPONENTS,function(n){if(!g["default"].isUndefined(t[n])&&!g["default"].isUndefined(this.__color.__state[n])&&t[n]!==this.__color.__state[n])return e=!0,{}},this),e&&g["default"].extend(this.__color.__state,t)}g["default"].extend(this.__temp.__state,this.__color.__state),this.__temp.a=1;var n=this.__color.v<.5||this.__color.s>.5?255:0,r=255-n;g["default"].extend(this.__field_knob.style,{marginLeft:100*this.__color.s-7+"px",marginTop:100*(1-this.__color.v)-7+"px",backgroundColor:this.__temp.toString(),border:this.__field_knob_border+"rgb("+n+","+n+","+n+")"}),this.__hue_knob.style.marginTop=100*(1-this.__color.h/360)+"px",this.__temp.s=1,this.__temp.v=1,a(this.__saturation_field,"left","#fff",this.__temp.toString()),g["default"].extend(this.__input.style,{backgroundColor:this.__input.value=this.__color.toString(),color:"rgb("+n+","+n+","+n+")",textShadow:this.__input_textShadow+"rgba("+r+","+r+","+r+",.7)"})},e}(c["default"]),y=["-moz-","-o-","-webkit-","-ms-",""];e["default"]=m,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e,n){var r=document.createElement("li");return e&&r.appendChild(e),n?t.__ul.insertBefore(r,n):t.__ul.appendChild(r),t.onResize(),r}function i(t,e){var n=t.__preset_select[t.__preset_select.selectedIndex];e?n.innerHTML=n.value+"*":n.innerHTML=n.value}function a(t,e,n){if(n.__li=e,n.__gui=t,G["default"].extend(n,{options:function(e){if(arguments.length>1){var r=n.__li.nextElementSibling;return n.remove(),s(t,n.object,n.property,{before:r,factoryArgs:[G["default"].toArray(arguments)]})}if(G["default"].isArray(e)||G["default"].isObject(e)){var r=n.__li.nextElementSibling;return n.remove(),s(t,n.object,n.property,{before:r,factoryArgs:[e]})}},name:function(t){return n.__li.firstElementChild.firstElementChild.innerHTML=t,n},listen:function(){return n.__gui.listen(n),n},remove:function(){return n.__gui.remove(n),n}}),n instanceof j["default"])!function(){var t=new N["default"](n.object,n.property,{min:n.__min,max:n.__max,step:n.__step});G["default"].each(["updateDisplay","onChange","onFinishChange","step"],function(e){var r=n[e],o=t[e];n[e]=t[e]=function(){var e=Array.prototype.slice.call(arguments);return o.apply(t,e),r.apply(n,e)}}),V["default"].addClass(e,"has-slider"),n.domElement.insertBefore(t.domElement,n.domElement.firstElementChild)}();else if(n instanceof N["default"]){var r=function(e){return G["default"].isNumber(n.__min)&&G["default"].isNumber(n.__max)?(n.remove(),s(t,n.object,n.property,{before:n.__li.nextElementSibling,factoryArgs:[n.__min,n.__max,n.__step]})):e};n.min=G["default"].compose(r,n.min),n.max=G["default"].compose(r,n.max)}else n instanceof O["default"]?(V["default"].bind(e,"click",function(){V["default"].fakeEvent(n.__checkbox,"click")}),V["default"].bind(n.__checkbox,"click",function(t){t.stopPropagation()})):n instanceof M["default"]?(V["default"].bind(e,"click",function(){V["default"].fakeEvent(n.__button,"click")}),V["default"].bind(e,"mouseover",function(){V["default"].addClass(n.__button,"hover")}),V["default"].bind(e,"mouseout",function(){V["default"].removeClass(n.__button,"hover")})):n instanceof F["default"]&&(V["default"].addClass(e,"color"),n.updateDisplay=G["default"].compose(function(t){return e.style.borderLeftColor=n.__color.toString(),t},n.updateDisplay),n.updateDisplay());n.setValue=G["default"].compose(function(e){return t.getRoot().__preset_select&&n.isModified()&&i(t.getRoot(),!0),e},n.setValue)}function u(t,e){var n=t.getRoot(),r=n.__rememberedObjects.indexOf(e.object);if(r!==-1){var o=n.__rememberedObjectIndecesToControllers[r];if(void 0===o&&(o={},n.__rememberedObjectIndecesToControllers[r]=o),o[e.property]=e,n.load&&n.load.remembered){var i=n.load.remembered,a=void 0;if(i[t.preset])a=i[t.preset];else{if(!i[q])return;a=i[q]}if(a[r]&&void 0!==a[r][e.property]){var u=a[r][e.property];e.initialValue=u,e.setValue(u)}}}}function s(t,e,n,r){if(void 0===e[n])throw new Error('Object "'+e+'" has no property "'+n+'"');var i=void 0;if(r.color)i=new F["default"](e,n);else{var s=[e,n].concat(r.factoryArgs);i=E["default"].apply(t,s)}r.before instanceof A["default"]&&(r.before=r.before.__li),u(t,i),V["default"].addClass(i.domElement,"c");var c=document.createElement("span");V["default"].addClass(c,"property-name"),c.innerHTML=i.property;var l=document.createElement("div");l.appendChild(c),l.appendChild(i.domElement);var f=o(t,l,r.before);return V["default"].addClass(f,ot.CLASS_CONTROLLER_ROW),i instanceof F["default"]?V["default"].addClass(f,"color"):V["default"].addClass(f,typeof i.getValue()),a(t,f,i),t.__controllers.push(i),i}function c(t,e){return document.location.href+"."+e}function l(t,e,n){var r=document.createElement("option");r.innerHTML=e,r.value=e,t.__preset_select.appendChild(r),n&&(t.__preset_select.selectedIndex=t.__preset_select.length-1)}function f(t,e){e.style.display=t.useLocalStorage?"block":"none"}function d(t){var e=t.__save_row=document.createElement("li");V["default"].addClass(t.domElement,"has-save"),t.__ul.insertBefore(e,t.__ul.firstChild),V["default"].addClass(e,"save-row");var n=document.createElement("span");n.innerHTML="&nbsp;",V["default"].addClass(n,"button gears");var r=document.createElement("span");r.innerHTML="Save",V["default"].addClass(r,"button"),V["default"].addClass(r,"save");var o=document.createElement("span");o.innerHTML="New",V["default"].addClass(o,"button"),V["default"].addClass(o,"save-as");var i=document.createElement("span");i.innerHTML="Revert",V["default"].addClass(i,"button"),V["default"].addClass(i,"revert");var a=t.__preset_select=document.createElement("select");t.load&&t.load.remembered?G["default"].each(t.load.remembered,function(e,n){l(t,n,n===t.preset)}):l(t,q,!1),V["default"].bind(a,"change",function(){for(var e=0;e<t.__preset_select.length;e++)t.__preset_select[e].innerHTML=t.__preset_select[e].value;t.preset=this.value}),e.appendChild(a),e.appendChild(n),e.appendChild(r),e.appendChild(o),e.appendChild(i),Z&&!function(){var e=document.getElementById("dg-local-explain"),n=document.getElementById("dg-local-storage"),r=document.getElementById("dg-save-locally");r.style.display="block","true"===localStorage.getItem(c(t,"isLocal"))&&n.setAttribute("checked","checked"),f(t,e),V["default"].bind(n,"change",function(){t.useLocalStorage=!t.useLocalStorage,f(t,e)})}();var u=document.getElementById("dg-new-constructor");V["default"].bind(u,"keydown",function(t){!t.metaKey||67!==t.which&&67!==t.keyCode||$.hide()}),V["default"].bind(n,"click",function(){u.innerHTML=JSON.stringify(t.getSaveObject(),void 0,2),$.show(),u.focus(),u.select()}),V["default"].bind(r,"click",function(){t.save()}),V["default"].bind(o,"click",function(){var e=prompt("Enter a new preset name.");e&&t.saveAs(e)}),V["default"].bind(i,"click",function(){t.revert()})}function h(t){function e(e){return e.preventDefault(),t.width+=o-e.clientX,t.onResize(),o=e.clientX,!1}function n(){V["default"].removeClass(t.__closeButton,ot.CLASS_DRAG),V["default"].unbind(window,"mousemove",e),V["default"].unbind(window,"mouseup",n)}function r(r){return r.preventDefault(),o=r.clientX,V["default"].addClass(t.__closeButton,ot.CLASS_DRAG),V["default"].bind(window,"mousemove",e),V["default"].bind(window,"mouseup",n),!1}var o=void 0;t.__resize_handle=document.createElement("div"),G["default"].extend(t.__resize_handle.style,{width:"6px",marginLeft:"-3px",height:"200px",cursor:"ew-resize",position:"absolute"}),V["default"].bind(t.__resize_handle,"mousedown",r),V["default"].bind(t.__closeButton,"mousedown",r),t.domElement.insertBefore(t.__resize_handle,t.domElement.firstElementChild)}function p(t,e){t.domElement.style.width=e+"px",t.__save_row&&t.autoPlace&&(t.__save_row.style.width=e+"px"),t.__closeButton&&(t.__closeButton.style.width=e+"px")}function _(t,e){var n={};return G["default"].each(t.__rememberedObjects,function(r,o){var i={},a=t.__rememberedObjectIndecesToControllers[o];G["default"].each(a,function(t,n){i[n]=e?t.initialValue:t.getValue()}),n[o]=i}),n}function v(t){for(var e=0;e<t.__preset_select.length;e++)t.__preset_select[e].value===t.preset&&(t.__preset_select.selectedIndex=e)}function g(t){0!==t.length&&D["default"].call(window,function(){g(t)}),G["default"].each(t,function(t){t.updateDisplay()})}var m=n(210),y=r(m),b=n(211),w=r(b),x=n(212),E=r(x),S=n(199),A=r(S),C=n(200),O=r(C),k=n(207),M=r(k),T=n(205),N=r(T),P=n(206),j=r(P),L=n(208),F=r(L),R=n(213),D=r(R),I=n(214),B=r(I),H=n(201),V=r(H),z=n(197),G=r(z),U=n(215),W=r(U),K=n(217),X=r(K);y["default"].inject(W["default"]),console.log(X["default"]);var Y="dg",J=72,Q=20,q="Default",Z=function(){try{return"localStorage"in window&&null!==window.localStorage}catch(t){return!1}}(),$=void 0,tt=!0,et=void 0,nt=!1,rt=[],ot=function it(t){function e(){var t=n.getRoot();t.width+=1,G["default"].defer(function(){t.width-=1})}var n=this,r=t||{};this.domElement=document.createElement("div"),this.__ul=document.createElement("ul"),this.domElement.appendChild(this.__ul),V["default"].addClass(this.domElement,Y),this.__folders={},this.__controllers=[],this.__rememberedObjects=[],this.__rememberedObjectIndecesToControllers=[],this.__listening=[],r=G["default"].defaults(r,{autoPlace:!0,width:it.DEFAULT_WIDTH}),r=G["default"].defaults(r,{resizable:r.autoPlace,hideable:r.autoPlace}),G["default"].isUndefined(r.load)?r.load={preset:q}:r.preset&&(r.load.preset=r.preset),G["default"].isUndefined(r.parent)&&r.hideable&&rt.push(this),r.resizable=G["default"].isUndefined(r.parent)&&r.resizable,r.autoPlace&&G["default"].isUndefined(r.scrollable)&&(r.scrollable=!0);var i=Z&&"true"===localStorage.getItem(c(this,"isLocal")),a=void 0;if(Object.defineProperties(this,{parent:{get:function(){return r.parent}},scrollable:{get:function(){return r.scrollable}},autoPlace:{get:function(){return r.autoPlace}},preset:{get:function(){return n.parent?n.getRoot().preset:r.load.preset},set:function(t){n.parent?n.getRoot().preset=t:r.load.preset=t,v(this),n.revert()}},width:{get:function(){return r.width},set:function(t){r.width=t,p(n,t)}},name:{get:function(){return r.name},set:function(t){r.name=t,titleRowName&&(titleRowName.innerHTML=r.name)}},closed:{get:function(){return r.closed},set:function(t){r.closed=t,r.closed?V["default"].addClass(n.__ul,it.CLASS_CLOSED):V["default"].removeClass(n.__ul,it.CLASS_CLOSED),this.onResize(),n.__closeButton&&(n.__closeButton.innerHTML=t?it.TEXT_OPEN:it.TEXT_CLOSED)}},load:{get:function(){return r.load}},useLocalStorage:{get:function(){return i},set:function(t){Z&&(i=t,t?V["default"].bind(window,"unload",a):V["default"].unbind(window,"unload",a),localStorage.setItem(c(n,"isLocal"),t))}}}),G["default"].isUndefined(r.parent)){if(r.closed=!1,V["default"].addClass(this.domElement,it.CLASS_MAIN),V["default"].makeSelectable(this.domElement,!1),Z&&i){n.useLocalStorage=!0;var u=localStorage.getItem(c(this,"gui"));u&&(r.load=JSON.parse(u))}this.__closeButton=document.createElement("div"),this.__closeButton.innerHTML=it.TEXT_CLOSED,V["default"].addClass(this.__closeButton,it.CLASS_CLOSE_BUTTON),this.domElement.appendChild(this.__closeButton),V["default"].bind(this.__closeButton,"click",function(){n.closed=!n.closed})}else{void 0===r.closed&&(r.closed=!0);var s=document.createTextNode(r.name);V["default"].addClass(s,"controller-name");var l=o(n,s),f=function(t){return t.preventDefault(),n.closed=!n.closed,!1};V["default"].addClass(this.__ul,it.CLASS_CLOSED),V["default"].addClass(l,"title"),V["default"].bind(l,"click",f),r.closed||(this.closed=!1)}r.autoPlace&&(G["default"].isUndefined(r.parent)&&(tt&&(et=document.createElement("div"),V["default"].addClass(et,Y),V["default"].addClass(et,it.CLASS_AUTO_PLACE_CONTAINER),document.body.appendChild(et),tt=!1),et.appendChild(this.domElement),V["default"].addClass(this.domElement,it.CLASS_AUTO_PLACE)),this.parent||p(n,r.width)),this.__resizeHandler=function(){n.onResize()},V["default"].bind(window,"resize",this.__resizeHandler),V["default"].bind(this.__ul,"webkitTransitionEnd",this.__resizeHandler),V["default"].bind(this.__ul,"transitionend",this.__resizeHandler),V["default"].bind(this.__ul,"oTransitionEnd",this.__resizeHandler),
this.onResize(),r.resizable&&h(this),a=function(){Z&&"true"===localStorage.getItem(c(n,"isLocal"))&&localStorage.setItem(c(n,"gui"),JSON.stringify(n.getSaveObject()))},this.saveToLocalStorageIfPossible=a,r.parent||e()};ot.toggleHide=function(){nt=!nt,G["default"].each(rt,function(t){t.domElement.style.display=nt?"none":""})},ot.CLASS_AUTO_PLACE="a",ot.CLASS_AUTO_PLACE_CONTAINER="ac",ot.CLASS_MAIN="main",ot.CLASS_CONTROLLER_ROW="cr",ot.CLASS_TOO_TALL="taller-than-window",ot.CLASS_CLOSED="closed",ot.CLASS_CLOSE_BUTTON="close-button",ot.CLASS_DRAG="drag",ot.DEFAULT_WIDTH=245,ot.TEXT_CLOSED="Close Controls",ot.TEXT_OPEN="Open Controls",ot._keydownHandler=function(t){"text"===document.activeElement.type||t.which!==J&&t.keyCode!==J||ot.toggleHide()},V["default"].bind(window,"keydown",ot._keydownHandler,!1),G["default"].extend(ot.prototype,{add:function(t,e){return s(this,t,e,{factoryArgs:Array.prototype.slice.call(arguments,2)})},addColor:function(t,e){return s(this,t,e,{color:!0})},remove:function(t){this.__ul.removeChild(t.__li),this.__controllers.splice(this.__controllers.indexOf(t),1);var e=this;G["default"].defer(function(){e.onResize()})},destroy:function(){this.autoPlace&&et.removeChild(this.domElement),V["default"].unbind(window,"keydown",ot._keydownHandler,!1),V["default"].unbind(window,"resize",this.__resizeHandler),this.saveToLocalStorageIfPossible&&V["default"].unbind(window,"unload",this.saveToLocalStorageIfPossible)},addFolder:function(t){if(void 0!==this.__folders[t])throw new Error('You already have a folder in this GUI by the name "'+t+'"');var e={name:t,parent:this};e.autoPlace=this.autoPlace,this.load&&this.load.folders&&this.load.folders[t]&&(e.closed=this.load.folders[t].closed,e.load=this.load.folders[t]);var n=new ot(e);this.__folders[t]=n;var r=o(this,n.domElement);return V["default"].addClass(r,"folder"),n},open:function(){this.closed=!1},close:function(){this.closed=!0},onResize:G["default"].debounce(function(){var t=this.getRoot();if(t.scrollable){var e=V["default"].getOffset(t.__ul).top,n=0;G["default"].each(t.__ul.childNodes,function(e){t.autoPlace&&e===t.__save_row||(n+=V["default"].getHeight(e))}),window.innerHeight-e-Q<n?(V["default"].addClass(t.domElement,ot.CLASS_TOO_TALL),t.__ul.style.height=window.innerHeight-e-Q+"px"):(V["default"].removeClass(t.domElement,ot.CLASS_TOO_TALL),t.__ul.style.height="auto")}t.__resize_handle&&G["default"].defer(function(){t.__resize_handle.style.height=t.__ul.offsetHeight+"px"}),t.__closeButton&&(t.__closeButton.style.width=t.width+"px")},200),remember:function(){if(G["default"].isUndefined($)&&($=new B["default"],$.domElement.innerHTML=w["default"]),this.parent)throw new Error("You can only call remember on a top level GUI.");var t=this;G["default"].each(Array.prototype.slice.call(arguments),function(e){0===t.__rememberedObjects.length&&d(t),t.__rememberedObjects.indexOf(e)===-1&&t.__rememberedObjects.push(e)}),this.autoPlace&&p(this,this.width)},getRoot:function(){for(var t=this;t.parent;)t=t.parent;return t},getSaveObject:function(){var t=this.load;return t.closed=this.closed,this.__rememberedObjects.length>0&&(t.preset=this.preset,t.remembered||(t.remembered={}),t.remembered[this.preset]=_(this)),t.folders={},G["default"].each(this.__folders,function(e,n){t.folders[n]=e.getSaveObject()}),t},save:function(){this.load.remembered||(this.load.remembered={}),this.load.remembered[this.preset]=_(this),i(this,!1),this.saveToLocalStorageIfPossible()},saveAs:function(t){this.load.remembered||(this.load.remembered={},this.load.remembered[q]=_(this,!0)),this.load.remembered[t]=_(this),this.preset=t,l(this,t,!0),this.saveToLocalStorageIfPossible()},revert:function(t){G["default"].each(this.__controllers,function(e){this.getRoot().load.remembered?u(t||this.getRoot(),e):e.setValue(e.initialValue),e.__onFinishChange&&e.__onFinishChange.call(e,e.getValue())},this),G["default"].each(this.__folders,function(t){t.revert(t)}),t||i(this.getRoot(),!1)},listen:function(t){var e=0===this.__listening.length;this.__listening.push(t),e&&g(this.__listening)},updateDisplay:function(){G["default"].each(this.__controllers,function(t){t.updateDisplay()}),G["default"].each(this.__folders,function(t){t.updateDisplay()})}}),t.exports=ot},function(t,e){"use strict";t.exports={load:function(t,e){var n=e||document,r=n.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=t,n.getElementsByTagName("head")[0].appendChild(r)},inject:function(t,e){var n=e||document,r=document.createElement("style");r.type="text/css",r.innerHTML=t;var o=n.getElementsByTagName("head")[0];try{o.appendChild(r)}catch(i){}}}},function(t,e){t.exports='<div id=dg-save class="dg dialogue">Here\'s the new load parameter for your <code>GUI</code>\'s constructor:<textarea id=dg-new-constructor></textarea><div id=dg-save-locally><input id=dg-local-storage type="checkbox"> Automatically save values to <code>localStorage</code> on exit.<div id=dg-local-explain>The values saved to <code>localStorage</code> will override those passed to <code>dat.GUI</code>\'s constructor. This makes it easier to work incrementally, but <code>localStorage</code> is fragile, and your friends may not see the same values you do.</div></div></div>'},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(202),i=r(o),a=n(205),u=r(a),s=n(206),c=r(s),l=n(203),f=r(l),d=n(207),h=r(d),p=n(200),_=r(p),v=n(197),g=r(v),m=function(t,e){var n=t[e];return g["default"].isArray(arguments[2])||g["default"].isObject(arguments[2])?new i["default"](t,e,arguments[2]):g["default"].isNumber(n)?g["default"].isNumber(arguments[2])&&g["default"].isNumber(arguments[3])?g["default"].isNumber(arguments[4])?new c["default"](t,e,arguments[2],arguments[3],arguments[4]):new c["default"](t,e,arguments[2],arguments[3]):g["default"].isNumber(arguments[4])?new u["default"](t,e,{min:arguments[2],max:arguments[3],step:arguments[4]}):new u["default"](t,e,{min:arguments[2],max:arguments[3]}):g["default"].isString(n)?new f["default"](t,e):g["default"].isFunction(n)?new h["default"](t,e,""):g["default"].isBoolean(n)?new _["default"](t,e):void 0};e["default"]=m,t.exports=e["default"]},function(t,e){"use strict";function n(t){setTimeout(t,1e3/60)}e.__esModule=!0,e["default"]=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||n,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var i=n(201),a=r(i),u=n(197),s=r(u),c=function(){function t(){o(this,t),this.backgroundElement=document.createElement("div"),s["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"}),a["default"].makeFullscreen(this.backgroundElement),this.backgroundElement.style.position="fixed",this.domElement=document.createElement("div"),s["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 e=this;a["default"].bind(this.backgroundElement,"click",function(){e.hide()})}return t.prototype.show=function(){var t=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(),s["default"].defer(function(){t.backgroundElement.style.opacity=1,t.domElement.style.opacity=1,t.domElement.style.webkitTransform="scale(1)"})},t.prototype.hide=function e(){var t=this,e=function n(){t.domElement.style.display="none",t.backgroundElement.style.display="none",a["default"].unbind(t.domElement,"webkitTransitionEnd",n),a["default"].unbind(t.domElement,"transitionend",n),a["default"].unbind(t.domElement,"oTransitionEnd",n)};a["default"].bind(this.domElement,"webkitTransitionEnd",e),a["default"].bind(this.domElement,"transitionend",e),a["default"].bind(this.domElement,"oTransitionEnd",e),this.backgroundElement.style.opacity=0,this.domElement.style.opacity=0,this.domElement.style.webkitTransform="scale(1.1)"},t.prototype.layout=function(){this.domElement.style.left=window.innerWidth/2-a["default"].getWidth(this.domElement)/2+"px",this.domElement.style.top=window.innerHeight/2-a["default"].getHeight(this.domElement)/2+"px"},t}();e["default"]=c,t.exports=e["default"]},function(t,e,n){e=t.exports=n(216)(),e.push([t.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:9pt 0;display:block;width:440px;overflow-y:scroll;height:75pt;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:81pt}.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:1pc;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:0}.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(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e<this.length;e++){var n=this[e];n[2]?t.push("@media "+n[2]+"{"+n[1]+"}"):t.push(n[1])}return t.join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<e.length;o++){var a=e[o];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(t,e,n){t.exports=n.p+"dat.gui.css"}])});