!function(e,t){"object"==typeofexports&&"object"==typeofmodule?module.exports=t():"function"==typeofdefine&&define.amd?define([],t):"object"==typeofexports?exports.dat=t():e.dat=t()}(this,function(){returnfunction(e){functiont(n){if(o[n])returno[n].exports;vari=o[n]={exports:{},id:n,loaded:!1};returne[n].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}varo={};returnt.m=e,t.c=o,t.p="",t(0)}([function(e,t,o){"use strict";functionn(e){returne&&e.__esModule?e:{default:e}}t.__esModule=!0;vari=o(1),l=n(i);t.default=l.default,e.exports=t.default},function(e,t,o){"use strict";functionn(e){returne&&e.__esModule?e:{default:e}}t.__esModule=!0;vari=o(2),l=n(i),a=o(6),r=n(a),d=o(3),s=n(d),u=o(7),f=n(u),_=o(8),c=n(_),p=o(10),h=n(p),b=o(11),m=n(b),g=o(12),x=n(g),v=o(13),y=n(v),w=o(14),C=n(w),E=o(15),k=n(E),S=o(16),A=n(S),O=o(17),T=n(O),R=o(18),L=n(R),N=o(19),M=n(N),j=o(20),H=n(j),V=o(9),B=n(V),D=o(21),F=n(D);t.default={color:{Color:l.default,math:r.default,interpret:s.default},controllers:{Controller:f.default,BooleanController:c.default,OptionController:h.default,StringController:m.default,NumberController:x.default,NumberControllerBox:y.default,NumberControllerSlider:C.default,FunctionController:k.default,ColorController:A.default,BgColorController:T.default,NgColorController:L.default,HSVColorController:H.default,GtColorController:M.default},dom:{dom:B.default},gui:{GUI:F.default},GUI:F.default},e.exports=t.default},function(e,t,o){"use strict";functionn(e){returne&&e.__esModule?e:{default:e}}functioni(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}functionl(e,t,o){Object.defineProperty(e,t,{get:function(){return"RGB"===this.__state.space?this.__state[t]:(h.recalculateRGB(this,t,o),this.__state[t])},set:function(e){"RGB"!==this.__state.space&&(h.recalculateRGB(this,t,o),this.__state.space="RGB"),this.__state[t]=e}})}functiona(e,t){Object.defineProperty(e,t,{get:function(){return"HSV"===this.__state.space?this.__state[t]:(h.recalculateHSV(this),this.__state[t])},set:function(e){"HSV"!==this.__state.space&&(h.recalculateHSV(this),this.__state.space="HSV"),this.__state[t]=e}})}t.__esModule=!0;varr=o(3),d=n(r),s=o(6),u=n(s),f=o(4),_=n(f),c=o(5),p=n(c),h=function(){functione(){if(i(this,e),this.__state=d.default.apply(this,arguments),this.__state===!1)thrownewError("Failed to interpret color arguments");this.__state.a=this.__state.a||1}returne.prototype.toString=function(){return(0,_.default)(this)},e.prototype.toHexString=function(){return(0,_.default)(this,!0)},e.prototype.toOriginal=function(){returnthis.__state.conversion.write(this)},e}();h.recalculateRGB=function(e,t,o){if("HEX"===e.__state.space)e.__state[t]=u.default.component_from_hex(e.__state.hex,o);else{if("HSV"!==e.__state.space)thrownewError("Corrupted color state");p.default.extend(e.__state,u.default.hsv_to_rgb(e.__state.h,e.__state.s,e.__state.v))}},h.recalculateHSV=function(e){vart=u.default.rgb_to_hsv(e.r,e.g,e.b);p.default.extend(e.__state,{s:t.s,v:t.v}),p.default.isNaN(t.h)?p.default.isUndefined(e.__state.h)&&(e.__state.h=0):e.__state.h=t.h},h.COMPONENTS=["r","g","b","h","s","v","hex","a"],l(h.prototype,"r",2),l(h.prototype,"g",1),l(h.prototype,"b",0),a(h.prototype,"h"),a(h.prototype,"s"),a(h.prototype,"v"),Object.defineProperty(h.prototype,"a",{get:function(){returnthis.__state.a},set:function(e){this.__state.a=e}}),Object.defineProperty(h.prototype,"hex",{get:function(){return"HEX"!==!this.__state.space&&(this.__state.hex=u.default.rgb_to_hex(this.r,this.g,this.b)),this.__state.hex},set:function(e){this.__state.space="HEX",this.__state.hex=e}}),t.default=h,e.exports=t.default},function(e,t,o){"use strict";functionn(e){returne&&e.__esModule?e:{default:e}}t.__esModule=!0;vari=o(4),l=n(i),a=o(5),r=n(a),d=[{litmus:r.default.isString,conversions:{THREE_CHAR_HEX:{read:function(e){vart=e.match(/^#([A-F0-9])([A-F0-9])([A-F0-9])$/i);returnnull!==t&&{space:"HEX",hex:parseInt("0x"+t[1].toString()+t[1].toString()+t[2].toString()+t[2].toString()+t[3].toString()+t[3].toString(),0)}},write:l.default},SI
},function(e,t){e.exports=function(){vare=[];returne.toString=function(){for(vare=[],t=0;t<this.length;t++){varo=this[t];o[2]?e.push("@media "+o[2]+"{"+o[1]+"}"):e.push(o[1])}returne.join("")},e.i=function(t,o){"string"==typeoft&&(t=[[null,t,""]]);for(varn={},i=0;i<this.length;i++){varl=this[i][0];"number"==typeofl&&(n[l]=!0)}for(i=0;i<t.length;i++){vara=t[i];"number"==typeofa[0]&&n[a[0]]||(o&&!a[2]?a[2]=o:o&&(a[2]="("+a[2]+") and ("+o+")"),e.push(a))}},e}}])});