;/*!node_modules/reactcss/lib/flattenNames.js*/ amis.define("3bfb781",(function(e,t,u,f){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flattenNames=void 0;var n=i(e("01f4deb")),a=i(e("2649381")),r=i(e("ef77dbd")),d=i(e("9f9923c"));function i(e){return e&&e.__esModule?e:{default:e}}var l=t.flattenNames=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=[];return(0,d.default)(t,(function(t){Array.isArray(t)?e(t).map((function(e){return u.push(e)})):(0,r.default)(t)?(0,a.default)(t,(function(e,t){!0===e&&u.push(t),u.push(t+"-"+e)})):(0,n.default)(t)&&u.push(t)})),u};t.default=l})); ;/*!node_modules/reactcss/lib/mergeClasses.js*/ amis.define("8d8d3ce",(function(e,t,r,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeClasses=void 0;var a=f(e("2649381")),u=f(e("dd87b44")),d=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:[],r=e.default&&(0,u.default)(e.default)||{};return t.map((function(t){var n=e[t];return n&&(0,a.default)(n,(function(e,t){r[t]||(r[t]={}),r[t]=d({},r[t],n[t])})),t})),r};t.default=o})); ;/*!node_modules/reactcss/lib/autoprefix.js*/ amis.define("f5daa2b",(function(t,e,r,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.autoprefix=void 0;var n,i=t("2649381"),a=(n=i)&&n.__esModule?n:{default:n},u=Object.assign||function(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var n,o,u;i(this,r);for(var s=arguments.length,l=Array(s),p=0;p1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function o(){var n,r,u;i(this,o);for(var s=arguments.length,l=Array(s),p=0;p1&&void 0!==arguments[1])||arguments[1];i[e]=t};return 0===e&&n("first-child"),e===t-1&&n("last-child"),(0===e||e%2==0)&&n("even"),1===Math.abs(e%2)&&n("odd"),n("nth-child",e),i}})); ;/*!node_modules/reactcss/lib/index.js*/ amis.define("14f8a44",(function(e,a,t,d){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.ReactCSS=a.loop=a.handleActive=a.handleHover=a.hover=void 0;var l=c(e("3bfb781")),f=c(e("8d8d3ce")),r=c(e("f5daa2b")),u=c(e("2ebd1cc")),o=c(e("e2b8897")),n=c(e("b18e968"));function c(e){return e&&e.__esModule?e:{default:e}}a.hover=u.default,a.handleHover=u.default,a.handleActive=o.default,a.loop=n.default;var v=a.ReactCSS=function(e){for(var a=arguments.length,t=Array(a>1?a-1:0),d=1;du?1:Math.round(100*c/u)/100,t.a!==s)return{h:t.h,s:t.s,l:t.l,a:s,source:"rgb"}}else{var f=void 0;if(a!==(f=g<0?0:g>r?1:Math.round(100*g/r)/100))return{h:t.h,s:t.s,l:t.l,a:f,source:"rgb"}}return null}})); ;/*!node_modules/react-color/lib/helpers/checkboard.js*/ amis.define("895b2a4",(function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l={},i=t.render=function(e,t,n,r){if("undefined"==typeof document&&!r)return null;var l=r?new r:document.createElement("canvas");l.width=2*n,l.height=2*n;var i=l.getContext("2d");return i?(i.fillStyle=e,i.fillRect(0,0,l.width,l.height),i.fillStyle=t,i.fillRect(0,0,n,n),i.translate(n,n),i.fillRect(0,0,n,n),l.toDataURL()):null};t.get=function(e,t,n,r){var a=e+"-"+t+"-"+n+(r?"-server":"");if(l[a])return l[a];var u=i(e,t,n,r);return l[a]=u,u}})); ;/*!node_modules/react-color/lib/components/common/Checkboard.js*/ amis.define("ece0b7d",(function(e,r,t,a){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.Checkboard=void 0;var n=Object.assign||function(e){for(var r=1;r-1)){var a=n.getArrowOffset(),o=38===e.keyCode?r+a:r-a;n.setUpdatedValue(o,e)}},n.handleDrag=function(e){if(n.props.dragLabel){var t=Math.round(n.props.value+e.movementX);t>=0&&t<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(t),e)}},n.handleMouseDown=function(e){n.props.dragLabel&&(e.preventDefault(),n.handleDrag(e),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},n.inputId="rc-editable-input-"+p++,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"componentDidUpdate",value:function(e,t){this.props.value===this.state.value||e.value===this.props.value&&t.value===this.state.value||(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(e){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},this.props.label,e)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function(e,t){var n=this.props.label?this.getValueObjectWithLabel(e):e;this.props.onChange&&this.props.onChange(n,t),this.setState({value:e})}},{key:"render",value:function(){var e=this,t=(0,u.default)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return l.default.createElement("div",{style:t.wrap},l.default.createElement("input",{id:this.inputId,style:t.input,ref:function(t){return e.input=t},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?l.default.createElement("label",{htmlFor:this.inputId,style:t.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(o.PureComponent||o.Component);t.default=h})); ;/*!node_modules/react-color/lib/helpers/hue.js*/ amis.define("e8c7892",(function(e,t,i,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.calculateChange=function(e,t,i,l){var n=l.clientWidth,a=l.clientHeight,s="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,f="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,u=s-(l.getBoundingClientRect().left+window.pageXOffset),o=f-(l.getBoundingClientRect().top+window.pageYOffset);if("vertical"===t){var r=void 0;if(o<0)r=359;else if(o>a)r=0;else{r=360*(-100*o/a+100)/100}if(i.h!==r)return{h:r,s:i.s,l:i.l,a:i.a,source:"hsl"}}else{var c=void 0;if(u<0)c=0;else if(u>n)c=359;else{c=360*(100*u/n)/100}if(i.h!==c)return{h:c,s:i.s,l:i.l,a:i.a,source:"hsl"}}return null}})); ;/*!node_modules/react-color/lib/components/common/Hue.js*/ amis.define("88f48bf",(function(e,n,t,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Hue=void 0;var r=function(){function e(e,n){for(var t=0;tg&&(c=g),p<0?p=0:p>i&&(p=i);var f=c/g,s=1-p/i;return{h:t.h,s:f,v:s,a:t.a,source:"hsv"}}})); ;/*!node_modules/react-color/lib/components/common/Saturation.js*/ amis.define("f80b32b",(function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Saturation=void 0;var o=function(){function e(e,t){for(var n=0;n1&&(e-=1),e<1/6?t+6*(r-t)*e:e<.5?r:e<2/3?t+(r-t)*(2/3-e)*6:t}if(t=A(t,360),r=A(r,100),e=A(e,100),0===r)a=n=i=e;else{var h=e<.5?e*(1+r):e+r-e*r,s=2*e-h;a=o(s,h,t+1/3),n=o(s,h,t),i=o(s,h,t-1/3)}return{r:255*a,g:255*n,b:255*i}}(a.h,f,l),c=!0,d="hsl"),a.hasOwnProperty("a")&&(s=a.a)),s=x(s),{ok:c,format:a.format||d,r:Math.min(255,Math.max(h.r,0)),g:Math.min(255,Math.max(h.g,0)),b:Math.min(255,Math.max(h.b,0)),a:s}}(n);this._originalInput=n,this._r=o.r,this._g=o.g,this._b=o.b,this._a=o.a,this._roundA=Math.round(100*this._a)/100,this._format=i.format||o.format,this._gradientType=i.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=o.ok}function n(t,r,e){t=A(t,255),r=A(r,255),e=A(e,255);var a,n,i=Math.max(t,r,e),o=Math.min(t,r,e),h=(i+o)/2;if(i==o)a=n=0;else{var s=i-o;switch(n=h>.5?s/(2-i-o):s/(i+o),i){case t:a=(r-e)/s+(r>1)+720)%360;--r;)n.h=(n.h+i)%360,o.push(a(n));return o}function v(t,r){r=r||6;for(var e=a(t).toHsv(),n=e.h,i=e.s,o=e.v,h=[],s=1/r;r--;)h.push(a({h:n,s:i,v:o})),o=(o+s)%1;return h}a.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,r,e,a=this.toRgb();return t=a.r/255,r=a.g/255,e=a.b/255,.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.0722*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))},setAlpha:function(t){return this._a=x(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=i(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=i(this._r,this._g,this._b),r=Math.round(360*t.h),e=Math.round(100*t.s),a=Math.round(100*t.v);return 1==this._a?"hsv("+r+", "+e+"%, "+a+"%)":"hsva("+r+", "+e+"%, "+a+"%, "+this._roundA+")"},toHsl:function(){var t=n(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=n(this._r,this._g,this._b),r=Math.round(360*t.h),e=Math.round(100*t.s),a=Math.round(100*t.l);return 1==this._a?"hsl("+r+", "+e+"%, "+a+"%)":"hsla("+r+", "+e+"%, "+a+"%, "+this._roundA+")"},toHex:function(t){return o(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,r,e,a,n){var i=[S(Math.round(t).toString(16)),S(Math.round(r).toString(16)),S(Math.round(e).toString(16)),S(R(a))];return n&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*A(this._r,255))+"%",g:Math.round(100*A(this._g,255))+"%",b:Math.round(100*A(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*A(this._r,255))+"%, "+Math.round(100*A(this._g,255))+"%, "+Math.round(100*A(this._b,255))+"%)":"rgba("+Math.round(100*A(this._r,255))+"%, "+Math.round(100*A(this._g,255))+"%, "+Math.round(100*A(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(M[o(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var r="#"+h(this._r,this._g,this._b,this._a),e=r,n=this._gradientType?"GradientType = 1, ":"";if(t){var i=a(t);e="#"+h(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+r+",endColorstr="+e+")"},toString:function(t){var r=!!t;t=t||this._format;var e=!1,a=this._a<1&&this._a>=0;return r||!a||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(e=this.toRgbString()),"prgb"===t&&(e=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(e=this.toHexString()),"hex3"===t&&(e=this.toHexString(!0)),"hex4"===t&&(e=this.toHex8String(!0)),"hex8"===t&&(e=this.toHex8String()),"name"===t&&(e=this.toName()),"hsl"===t&&(e=this.toHslString()),"hsv"===t&&(e=this.toHsvString()),e||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return a(this.toString())},_applyModification:function(t,r){var e=t.apply(null,[this].concat([].slice.call(r)));return this._r=e._r,this._g=e._g,this._b=e._b,this.setAlpha(e._a),this},lighten:function(){return this._applyModification(l,arguments)},brighten:function(){return this._applyModification(c,arguments)},darken:function(){return this._applyModification(d,arguments)},desaturate:function(){return this._applyModification(s,arguments)},saturate:function(){return this._applyModification(f,arguments)},greyscale:function(){return this._applyModification(u,arguments)},spin:function(){return this._applyModification(g,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(_,arguments)},complement:function(){return this._applyCombination(b,arguments)},monochromatic:function(){return this._applyCombination(v,arguments)},splitcomplement:function(){return this._applyCombination(p,arguments)},triad:function(){return this._applyCombination(m,[3])},tetrad:function(){return this._applyCombination(m,[4])}},a.fromRatio=function(r,e){if("object"==t(r)){var n={};for(var i in r)r.hasOwnProperty(i)&&(n[i]="a"===i?r[i]:H(r[i]));r=n}return a(r,e)},a.equals=function(t,r){return!(!t||!r)&&a(t).toRgbString()==a(r).toRgbString()},a.random=function(){return a.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},a.mix=function(t,r,e){e=0===e?0:e||50;var n=a(t).toRgb(),i=a(r).toRgb(),o=e/100;return a({r:(i.r-n.r)*o+n.r,g:(i.g-n.g)*o+n.g,b:(i.b-n.b)*o+n.b,a:(i.a-n.a)*o+n.a})},a.readability=function(t,r){var e=a(t),n=a(r);return(Math.max(e.getLuminance(),n.getLuminance())+.05)/(Math.min(e.getLuminance(),n.getLuminance())+.05)},a.isReadable=function(t,r,e){var n,i,o,h,s,f=a.readability(t,r);switch(i=!1,(o=e,h=((o=o||{level:"AA",size:"small"}).level||"AA").toUpperCase(),s=(o.size||"small").toLowerCase(),"AA"!==h&&"AAA"!==h&&(h="AA"),"small"!==s&&"large"!==s&&(s="small"),n={level:h,size:s}).level+n.size){case"AAsmall":case"AAAlarge":i=f>=4.5;break;case"AAlarge":i=f>=3;break;case"AAAsmall":i=f>=7}return i},a.mostReadable=function(t,r,e){var n,i,o,h,s=null,f=0;i=(e=e||{}).includeFallbackColors,o=e.level,h=e.size;for(var u=0;uf&&(f=n,s=a(r[u]));return a.isReadable(t,s,{level:o,size:h})||!i?s:(e.includeFallbackColors=!1,a.mostReadable(t,["#fff","#000"],e))};var y=a.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},M=a.hexNames=function(t){var r={};for(var e in t)t.hasOwnProperty(e)&&(r[t[e]]=e);return r}(y);function x(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function A(t,r){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var e=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(t);return t=Math.min(r,Math.max(0,parseFloat(t))),e&&(t=parseInt(t*r,10)/100),Math.abs(t-r)<1e-6?1:t%r/parseFloat(r)}function k(t){return Math.min(1,Math.max(0,t))}function w(t){return parseInt(t,16)}function S(t){return 1==t.length?"0"+t:""+t}function H(t){return t<=1&&(t=100*t+"%"),t}function R(t){return Math.round(255*parseFloat(t)).toString(16)}function F(t){return w(t)/255}var C,q,N,T=(q="[\\s|\\(]+("+(C="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+C+")[,|\\s]+("+C+")\\s*\\)?",N="[\\s|\\(]+("+C+")[,|\\s]+("+C+")[,|\\s]+("+C+")[,|\\s]+("+C+")\\s*\\)?",{CSS_UNIT:new RegExp(C),rgb:new RegExp("rgb"+q),rgba:new RegExp("rgba"+N),hsl:new RegExp("hsl"+q),hsla:new RegExp("hsla"+N),hsv:new RegExp("hsv"+q),hsva:new RegExp("hsva"+N),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function E(t){return!!T.CSS_UNIT.exec(t)}return a},"object"==typeof r&&void 0!==e?e.exports=i():"function"==typeof a&&a.amd?a(i):(n="undefined"!=typeof globalThis?globalThis:n||self).tinycolor=i()})); ;/*!node_modules/react-color/lib/helpers/color.js*/ amis.define("a79397f",(function(r,e,t,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isvalidColorString=e.red=e.getContrastingColor=e.isValidHex=e.toState=e.simpleCheckForValidColor=void 0;var n=i(r("22f99fc")),o=i(r("aa77ec5"));function i(r){return r&&r.__esModule?r:{default:r}}e.simpleCheckForValidColor=function(r){var e=0,t=0;return(0,n.default)(["r","g","b","a","h","s","l","v"],(function(a){if(r[a]&&(e+=1,isNaN(r[a])||(t+=1),"s"===a||"l"===a)){/^\d+%$/.test(r[a])&&(t+=1)}})),e===t&&r};var l=e.toState=function(r,e){var t=r.hex?(0,o.default)(r.hex):(0,o.default)(r),a=t.toHsl(),n=t.toHsv(),i=t.toRgb(),l=t.toHex();return 0===a.s&&(a.h=e||0,n.h=e||0),{hsl:a,hex:"000000"===l&&0===i.a?"transparent":"#"+l,rgb:i,hsv:n,oldHue:r.h||e||a.h,source:r.source}};e.isValidHex=function(r){if("transparent"===r)return!0;var e="#"===String(r).charAt(0)?1:0;return r.length!==4+e&&r.length<7+e&&(0,o.default)(r).isValid()},e.getContrastingColor=function(r){if(!r)return"#fff";var e=l(r);return"transparent"===e.hex?"rgba(0,0,0,0.4)":(299*e.rgb.r+587*e.rgb.g+114*e.rgb.b)/1e3>=128?"#000":"#fff"},e.red={hsl:{a:1,h:0,l:.5,s:1},hex:"#ff0000",rgb:{r:255,g:0,b:0,a:1},hsv:{h:0,s:1,v:1,a:1}},e.isvalidColorString=function(r,e){var t=r.replace("°","");return(0,o.default)(e+" ("+t+")")._ok}})); ;/*!node_modules/react-color/lib/components/common/ColorWrap.js*/ amis.define("b420dda",(function(e,t,o,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorWrap=void 0;var n=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var e,t,n;l(this,r);for(var o=arguments.length,u=Array(o),a=0;a1&&(e.a=1),l.props.onChange({h:l.props.hsl.h,s:l.props.hsl.s,l:l.props.hsl.l,a:Math.round(100*e.a)/100,source:"rgb"},t)):(e.h||e.s||e.l)&&("string"==typeof e.s&&e.s.includes("%")&&(e.s=e.s.replace("%","")),"string"==typeof e.l&&e.l.includes("%")&&(e.l=e.l.replace("%","")),1==e.s?e.s=.01:1==e.l&&(e.l=.01),l.props.onChange({h:e.h||l.props.hsl.h,s:Number((0,o.default)(e.s)?l.props.hsl.s:e.s),l:Number((0,o.default)(e.l)?l.props.hsl.l:e.l),source:"hsl"},t))},l.showHighlight=function(e){e.currentTarget.style.background="#eee"},l.hideHighlight=function(e){e.currentTarget.style.background="transparent"},1!==e.hsl.a&&"hex"===e.view?l.state={view:"rgb"}:l.state={view:e.view},l}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n(t,[{key:"render",value:function(){var e=this,t=(0,r.default)({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),l=void 0;return"hex"===this.state.view?l=i.default.createElement("div",{style:t.fields,className:"flexbox-fix"},i.default.createElement("div",{style:t.field},i.default.createElement(p.EditableInput,{style:{input:t.input,label:t.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):"rgb"===this.state.view?l=i.default.createElement("div",{style:t.fields,className:"flexbox-fix"},i.default.createElement("div",{style:t.field},i.default.createElement(p.EditableInput,{style:{input:t.input,label:t.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),i.default.createElement("div",{style:t.field},i.default.createElement(p.EditableInput,{style:{input:t.input,label:t.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),i.default.createElement("div",{style:t.field},i.default.createElement(p.EditableInput,{style:{input:t.input,label:t.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),i.default.createElement("div",{style:t.alpha},i.default.createElement(p.EditableInput,{style:{input:t.input,label:t.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):"hsl"===this.state.view&&(l=i.default.createElement("div",{style:t.fields,className:"flexbox-fix"},i.default.createElement("div",{style:t.field},i.default.createElement(p.EditableInput,{style:{input:t.input,label:t.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),i.default.createElement("div",{style:t.field},i.default.createElement(p.EditableInput,{style:{input:t.input,label:t.label},label:"s",value:Math.round(100*this.props.hsl.s)+"%",onChange:this.handleChange})),i.default.createElement("div",{style:t.field},i.default.createElement(p.EditableInput,{style:{input:t.input,label:t.label},label:"l",value:Math.round(100*this.props.hsl.l)+"%",onChange:this.handleChange})),i.default.createElement("div",{style:t.alpha},i.default.createElement(p.EditableInput,{style:{input:t.input,label:t.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),i.default.createElement("div",{style:t.wrap,className:"flexbox-fix"},l,i.default.createElement("div",{style:t.toggle},i.default.createElement("div",{style:t.icon,onClick:this.toggleViews,ref:function(t){return e.icon=t}},i.default.createElement(h.default,{style:t.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 1!==e.hsl.a&&"hex"===t.view?{view:"rgb"}:null}}]),t}(i.default.Component);d.defaultProps={view:"hex"},t.default=d})); ;/*!node_modules/react-color/lib/components/chrome/ChromePointer.js*/ amis.define("1d4fb55",(function(e,r,t,a){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ChromePointer=void 0;var d=i(e("ce101d6")),o=i(e("14f8a44"));function i(e){return e&&e.__esModule?e:{default:e}}var n=r.ChromePointer=function(){var e=(0,o.default)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return d.default.createElement("div",{style:e.picker})};r.default=n})); ;/*!node_modules/react-color/lib/components/chrome/ChromePointerCircle.js*/ amis.define("452f796",(function(e,t,r,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChromePointerCircle=void 0;var a=f(e("ce101d6")),d=f(e("14f8a44"));function f(e){return e&&e.__esModule?e:{default:e}}var n=t.ChromePointerCircle=function(){var e=(0,d.default)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return a.default.createElement("div",{style:e.picker})};t.default=n})); ;/*!node_modules/react-color/lib/components/chrome/Chrome.js*/ amis.define("9100bf8",(function(e,t,a,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Chrome=void 0;var d=h(e("ce101d6")),i=h(e("d3917d8")),r=h(e("14f8a44")),o=h(e("eb18a08")),n=e("736b4de"),s=h(e("ecad1ab")),p=h(e("1d4fb55")),u=h(e("452f796"));function h(e){return e&&e.__esModule?e:{default:e}}var f=t.Chrome=function(e){var t=e.width,a=e.onChange,l=e.disableAlpha,i=e.rgb,h=e.hsl,f=e.hsv,x=e.hex,c=e.renderers,b=e.styles,g=void 0===b?{}:b,m=e.className,v=void 0===m?"":m,y=e.defaultView,w=(0,r.default)((0,o.default)({default:{picker:{width:t,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+i.r+", "+i.g+", "+i.b+", "+i.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},g),{disableAlpha:l});return d.default.createElement("div",{style:w.picker,className:"chrome-picker "+v},d.default.createElement("div",{style:w.saturation},d.default.createElement(n.Saturation,{style:w.Saturation,hsl:h,hsv:f,pointer:u.default,onChange:a})),d.default.createElement("div",{style:w.body},d.default.createElement("div",{style:w.controls,className:"flexbox-fix"},d.default.createElement("div",{style:w.color},d.default.createElement("div",{style:w.swatch},d.default.createElement("div",{style:w.active}),d.default.createElement(n.Checkboard,{renderers:c}))),d.default.createElement("div",{style:w.toggles},d.default.createElement("div",{style:w.hue},d.default.createElement(n.Hue,{style:w.Hue,hsl:h,pointer:p.default,onChange:a})),d.default.createElement("div",{style:w.alpha},d.default.createElement(n.Alpha,{style:w.Alpha,rgb:i,hsl:h,pointer:p.default,renderers:c,onChange:a})))),d.default.createElement(s.default,{rgb:i,hsl:h,hex:x,view:y,onChange:a,disableAlpha:l})))};f.propTypes={width:i.default.oneOfType([i.default.string,i.default.number]),disableAlpha:i.default.bool,styles:i.default.object,defaultView:i.default.oneOf(["hex","rgb","hsl"])},f.defaultProps={width:225,disableAlpha:!1,styles:{}},t.default=(0,n.ColorWrap)(f)})); ;/*!node_modules/react-color/lib/components/compact/CompactColor.js*/ amis.define("b7378d2",(function(o,t,e,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompactColor=void 0;var a=d(o("ce101d6")),n=d(o("14f8a44")),c=function(o){if(o&&o.__esModule)return o;var t={};if(null!=o)for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&(t[e]=o[e]);return t.default=o,t}(o("a79397f")),l=o("736b4de");function d(o){return o&&o.__esModule?o:{default:o}}var i=t.CompactColor=function(o){var t=o.color,e=o.onClick,r=void 0===e?function(){}:e,d=o.onSwatchHover,i=o.active,u=(0,n.default)({default:{color:{background:t,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:c.getContrastingColor(t),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:i,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return a.default.createElement(l.Swatch,{style:u.color,color:t,onClick:r,onHover:d,focusStyle:{boxShadow:"0 0 4px "+t}},a.default.createElement("div",{style:u.dot}))};t.default=i})); ;/*!node_modules/react-color/lib/components/compact/CompactFields.js*/ amis.define("eed0e9a",(function(e,t,l,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompactFields=void 0;var n=o(e("ce101d6")),i=o(e("14f8a44")),p=e("736b4de");function o(e){return e&&e.__esModule?e:{default:e}}var r=t.CompactFields=function(e){var t=e.hex,l=e.rgb,a=e.onChange,o=(0,i.default)({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:t},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),r=function(e,t){e.r||e.g||e.b?a({r:e.r||l.r,g:e.g||l.g,b:e.b||l.b,source:"rgb"},t):a({hex:e.hex,source:"hex"},t)};return n.default.createElement("div",{style:o.fields,className:"flexbox-fix"},n.default.createElement("div",{style:o.active}),n.default.createElement(p.EditableInput,{style:{wrap:o.HEXwrap,input:o.HEXinput,label:o.HEXlabel},label:"hex",value:t,onChange:r}),n.default.createElement(p.EditableInput,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"r",value:l.r,onChange:r}),n.default.createElement(p.EditableInput,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"g",value:l.g,onChange:r}),n.default.createElement(p.EditableInput,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"b",value:l.b,onChange:r}))};t.default=r})); ;/*!node_modules/react-color/lib/components/compact/Compact.js*/ amis.define("aa5da80",(function(e,t,a,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Compact=void 0;var c=F(e("ce101d6")),o=F(e("d3917d8")),r=F(e("14f8a44")),d=F(e("9f9923c")),n=F(e("eb18a08")),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}(e("a79397f")),f=e("736b4de"),i=F(e("b7378d2")),s=F(e("eed0e9a"));function F(e){return e&&e.__esModule?e:{default:e}}var p=t.Compact=function(e){var t=e.onChange,a=e.onSwatchHover,l=e.colors,o=e.hex,F=e.rgb,p=e.styles,C=void 0===p?{}:p,m=e.className,v=void 0===m?"":m,h=(0,r.default)((0,n.default)({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},C)),x=function(e,a){e.hex?u.isValidHex(e.hex)&&t({hex:e.hex,source:"hex"},a):t(e,a)};return c.default.createElement(f.Raised,{style:h.Compact,styles:C},c.default.createElement("div",{style:h.compact,className:"compact-picker "+v},c.default.createElement("div",null,(0,d.default)(l,(function(e){return c.default.createElement(i.default,{key:e,color:e,active:e.toLowerCase()===o,onClick:x,onSwatchHover:a})})),c.default.createElement("div",{style:h.clear})),c.default.createElement(s.default,{hex:o,rgb:F,onChange:x})))};p.propTypes={colors:o.default.arrayOf(o.default.string),styles:o.default.object},p.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}},t.default=(0,f.ColorWrap)(p)})); ;/*!node_modules/react-color/lib/components/github/GithubSwatch.js*/ amis.define("6a4e74a",(function(e,t,o,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GithubSwatch=void 0;var r=c(e("ce101d6")),i=e("14f8a44"),l=c(i),n=e("736b4de");function c(e){return e&&e.__esModule?e:{default:e}}var d=t.GithubSwatch=function(e){var t=e.hover,o=e.color,a=e.onClick,i=e.onSwatchHover,c={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},d=(0,l.default)({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:c}},{hover:t});return r.default.createElement("div",{style:d.swatch},r.default.createElement(n.Swatch,{color:o,onClick:a,onHover:i,focusStyle:c}))};t.default=(0,i.handleHover)(d)})); ;/*!node_modules/react-color/lib/components/github/Github.js*/ amis.define("eefb786",(function(t,e,r,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Github=void 0;var a=g(t("ce101d6")),l=g(t("d3917d8")),i=g(t("14f8a44")),n=g(t("9f9923c")),d=g(t("eb18a08")),p=t("736b4de"),f=g(t("6a4e74a"));function g(t){return t&&t.__esModule?t:{default:t}}var s=e.Github=function(t){var e=t.width,r=t.colors,o=t.onChange,l=t.onSwatchHover,p=t.triangle,g=t.styles,s=void 0===g?{}:g,u=t.className,h=void 0===u?"":u,b=(0,i.default)((0,d.default)({default:{card:{width:e,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},s),{"hide-triangle":"hide"===p,"top-left-triangle":"top-left"===p,"top-right-triangle":"top-right"===p,"bottom-left-triangle":"bottom-left"===p,"bottom-right-triangle":"bottom-right"===p}),c=function(t,e){return o({hex:t,source:"hex"},e)};return a.default.createElement("div",{style:b.card,className:"github-picker "+h},a.default.createElement("div",{style:b.triangleShadow}),a.default.createElement("div",{style:b.triangle}),(0,n.default)(r,(function(t){return a.default.createElement(f.default,{color:t,key:t,onClick:c,onSwatchHover:l})})))};s.propTypes={width:l.default.oneOfType([l.default.string,l.default.number]),colors:l.default.arrayOf(l.default.string),triangle:l.default.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:l.default.object},s.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}},e.default=(0,p.ColorWrap)(s)})); ;/*!node_modules/react-color/lib/components/hue/HuePointer.js*/ amis.define("88db66e",(function(e,r,t,a){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.SliderPointer=void 0;var i=n(e("ce101d6")),d=n(e("14f8a44"));function n(e){return e&&e.__esModule?e:{default:e}}var l=r.SliderPointer=function(e){var r=e.direction,t=(0,d.default)({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===r});return i.default.createElement("div",{style:t.picker})};r.default=l})); ;/*!node_modules/react-color/lib/components/hue/Hue.js*/ amis.define("0b6f5e4",(function(e,t,r,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HuePicker=void 0;var a=Object.assign||function(e){for(var t=1;t.5});return r.default.createElement("div",{style:i.picker})};t.default=n})); ;/*!node_modules/react-color/lib/components/photoshop/PhotoshopPointer.js*/ amis.define("4d5505b",(function(e,t,r,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoshopPointerCircle=void 0;var a=d(e("ce101d6")),l=d(e("14f8a44"));function d(e){return e&&e.__esModule?e:{default:e}}var i=t.PhotoshopPointerCircle=function(){var e=(0,l.default)({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return a.default.createElement("div",{style:e.pointer},a.default.createElement("div",{style:e.left},a.default.createElement("div",{style:e.leftInside})),a.default.createElement("div",{style:e.right},a.default.createElement("div",{style:e.rightInside})))};t.default=i})); ;/*!node_modules/react-color/lib/components/photoshop/PhotoshopButton.js*/ amis.define("379d93d",(function(e,t,o,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoshopButton=void 0;var i=a(e("ce101d6")),r=a(e("14f8a44"));function a(e){return e&&e.__esModule?e:{default:e}}var d=t.PhotoshopButton=function(e){var t=e.onClick,o=e.label,n=e.children,a=e.active,d=(0,r.default)({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:a});return i.default.createElement("div",{style:d.button,onClick:t},o||n)};t.default=d})); ;/*!node_modules/react-color/lib/components/photoshop/PhotoshopPreviews.js*/ amis.define("ea661ee",(function(e,t,r,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoshopPreviews=void 0;var n=o(e("ce101d6")),a=o(e("14f8a44"));function o(e){return e&&e.__esModule?e:{default:e}}var d=t.PhotoshopPreviews=function(e){var t=e.rgb,r=e.currentColor,l=(0,a.default)({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+t.r+","+t.g+", "+t.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:r,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return n.default.createElement("div",null,n.default.createElement("div",{style:l.label},"new"),n.default.createElement("div",{style:l.swatches},n.default.createElement("div",{style:l.new}),n.default.createElement("div",{style:l.current})),n.default.createElement("div",{style:l.label},"current"))};t.default=d})); ;/*!node_modules/react-color/lib/components/photoshop/Photoshop.js*/ amis.define("590aa97",(function(e,t,r,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Photoshop=void 0;var a=function(){function e(e,t){for(var r=0;r100&&(e.a=100),e.a/=100,l({h:t.h,s:t.s,l:t.l,a:e.a,source:"rgb"},n))};return n.default.createElement("div",{style:b.fields,className:"flexbox-fix"},n.default.createElement("div",{style:b.double},n.default.createElement(r.EditableInput,{style:{input:b.input,label:b.label},label:"hex",value:u.replace("#",""),onChange:s})),n.default.createElement("div",{style:b.single},n.default.createElement(r.EditableInput,{style:{input:b.input,label:b.label},label:"r",value:a.r,onChange:s,dragLabel:"true",dragMax:"255"})),n.default.createElement("div",{style:b.single},n.default.createElement(r.EditableInput,{style:{input:b.input,label:b.label},label:"g",value:a.g,onChange:s,dragLabel:"true",dragMax:"255"})),n.default.createElement("div",{style:b.single},n.default.createElement(r.EditableInput,{style:{input:b.input,label:b.label},label:"b",value:a.b,onChange:s,dragLabel:"true",dragMax:"255"})),n.default.createElement("div",{style:b.alpha},n.default.createElement(r.EditableInput,{style:{input:b.input,label:b.label},label:"a",value:Math.round(100*a.a),onChange:s,dragLabel:"true",dragMax:"100"})))};l.default=p})); ;/*!node_modules/react-color/lib/components/sketch/SketchPresetColors.js*/ amis.define("783abbc",(function(e,t,r,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SketchPresetColors=void 0;var a=Object.assign||function(e){for(var t=1;t