@sheetxl/studio-mui 0.4.12 → 0.4.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/cjs/{CNDDYOoLCrGsUMYL.cjs → 34mwIxXhbXYv5xsc.cjs} +1 -1
- package/browser/cjs/{DuwawlAm4aRBNTBm.cjs → 3OIgTi54FC0IBzyK.cjs} +2 -2
- package/browser/cjs/{BNGixOiIsu8jZlvn.cjs → B-Aq2h8aSDrc_0iZ.cjs} +1 -1
- package/browser/cjs/{CITvaW7L_iZfIyAN.cjs → BDhT8qcsUqUILki7.cjs} +1 -1
- package/browser/cjs/{BpiMMYip132x0r1O.cjs → BKJsMQHem8u-jMiR.cjs} +1 -1
- package/browser/cjs/{Dc2rbOjtcmSIm8D4.cjs → BO7LEbRChpLg-xKv.cjs} +1 -1
- package/browser/cjs/{DqAlQQIZIyF7HMib.cjs → BZR-qDCIYdiDtD-U.cjs} +1 -1
- package/browser/cjs/{CeTd2nFbE5yFzf7T.cjs → BfE1_C2EpBrmB7bt.cjs} +1 -1
- package/browser/cjs/{BzD7LV8VmFKLAJyW.cjs → Brij8vl9GntSQBer.cjs} +2 -2
- package/browser/cjs/{C8Azx_ZaQa4WvAtR.cjs → C61z_849Y2mg6eYL.cjs} +2 -2
- package/browser/cjs/{CYbeY5OVZDqHGSOm.cjs → CaKjImRkCm3-QSAI.cjs} +2 -2
- package/browser/cjs/{reQ9miE5C5qMfbRJ.cjs → Cw7iXqLfwZMRGb3J.cjs} +2 -2
- package/browser/cjs/{Dx9UUJj-yeubDjm4.cjs → CwwItA5xvSx0QgDn.cjs} +2 -2
- package/browser/cjs/{Cfe7IbPNI8-CgoDI.cjs → DPTcPoZ3PiOOW7lp.cjs} +2 -2
- package/browser/cjs/{C_SgucbRn-v9IkNO.cjs → DhmN913n5MBAZsij.cjs} +2 -2
- package/browser/cjs/{ByZ_Q-J7jgF7AoWR.cjs → DhoDW4ohnPkwiE_o.cjs} +2 -2
- package/browser/cjs/{Bk6VhhWsnCRyBu2F.cjs → Dj_PjsvImW3tjX0i.cjs} +2 -2
- package/browser/cjs/{IC19hB4Ntvw1158j.cjs → Dl4WPIJFTvpCXOs3.cjs} +2 -2
- package/browser/cjs/{Ctyk-ajkSsTDJuvY.cjs → QCtfu4qn-ovJa_wL.cjs} +2 -2
- package/browser/cjs/{DBhTQLbjAtU-A1YA.cjs → VQ4Cuzvkmtel1iE_.cjs} +2 -2
- package/browser/cjs/{DcsvUmoS8zGG5GB8.cjs → VTMW1yjPzEJGyBmh.cjs} +1 -1
- package/browser/cjs/{B7qLzxylqOaybl3H.cjs → hY59MepmKCIoN0hM.cjs} +2 -2
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{BUYxt7KgFkIIIMyc.cjs → pKp_fof7vGupYAM2.cjs} +2 -2
- package/browser/cjs/{C6_zcNM0Efa11KEE.cjs → t-9gaLqrOnGiw-3T.cjs} +1 -1
- package/browser/esm/{UkNAvQj0NVgeMpUl.mjs → 5U4XS5qxb3oJ33qK.mjs} +1 -1
- package/browser/esm/{Cc7y1nMDr5J8jWx-.mjs → BPMMuKIe5xb3-D8V.mjs} +2 -2
- package/browser/esm/{x9MyDRdLE47dI9dF.mjs → BXartMrqQuAXu0Qz.mjs} +1 -1
- package/browser/esm/{obM68UOvA5HV7Lt1.mjs → Bc8N72T3wtTApPEG.mjs} +2 -2
- package/browser/esm/{CMCOU0nDlymDFS9l.mjs → BjoQXBQuDry5Fgc_.mjs} +2 -2
- package/browser/esm/{Cta0yn5UIrP2UoT4.mjs → BlUq84tk9v01SQgx.mjs} +2 -2
- package/browser/esm/{CloqVDbJmTL4oFek.mjs → C5iuJTeAtknnUEIE.mjs} +1 -1
- package/browser/esm/{DI-ZGstUJFwkx4H6.mjs → CN67iG3xuQhXAPad.mjs} +2 -2
- package/browser/esm/{B1Ey4ZP8BHUzHW7G.mjs → CQgUOqCEwTc61uuT.mjs} +1 -1
- package/browser/esm/{BThbC01mtb7qq8_A.mjs → Cq1DtQcbtmTtKOc4.mjs} +2 -2
- package/browser/esm/{DhOXsRr8c7bDS1jM.mjs → Cqz35dsi-gZArS0S.mjs} +2 -2
- package/browser/esm/{B8dJHVZJta8QbNKG.mjs → D9wzPAaUYfW5yKFN.mjs} +1 -1
- package/browser/esm/{CHPXsEre3jry2-jF.mjs → DRRzJ8Ep6_Tyd6ne.mjs} +1 -1
- package/browser/esm/{JPwh2m5-pXkdPVzF.mjs → DSGJzNzS8OeMxUW1.mjs} +1 -1
- package/browser/esm/{yW9jxnamUqAhVQkJ.mjs → DSIpyed_o2mrjd0r.mjs} +2 -2
- package/browser/esm/{ZUfck_LDsQb9gpvU.mjs → DWgrVUwlK4kwFJn-.mjs} +2 -2
- package/browser/esm/{DQTfmweCXjuIlITn.mjs → Dr6QLJSwckbF9K_u.mjs} +2 -2
- package/browser/esm/{CesL-3BNbMB1f_if.mjs → DuSF-rjIFFvyCoo8.mjs} +2 -2
- package/browser/esm/{CwRyQHiDoBLx5_1g.mjs → EiBc8VBUeU8VXEhw.mjs} +1 -1
- package/browser/esm/{DUIfOO25d1fqtJzn.mjs → R3CPiIXdp_rdc-Bw.mjs} +2 -2
- package/browser/esm/{BqN0SYrEO0RZQtv-.mjs → eXqnYk6V-QI6pGI5.mjs} +2 -2
- package/browser/esm/{CfvNSnuQLa1SPbNL.mjs → hdx26DrfopUuM4j1.mjs} +1 -1
- package/browser/esm/index.mjs +2 -2
- package/browser/esm/{gHhqkr52cxXkga0T.mjs → oXfsh9SiDjQuu2ZE.mjs} +2 -2
- package/browser/esm/{Bnt1M91BRyMvXrc4.mjs → zBIGDTI8z3bRbFxO.mjs} +2 -2
- package/licenses/dependencies.txt +6 -6
- package/node/esm/{PF5CCBvapZxEzc7k.mjs → -mcJjjdCwl8lh-eg.mjs} +1 -1
- package/node/esm/{wdtYNTNCynMMS4_P.mjs → 4WfRn0Og_yApP_Q8.mjs} +1 -1
- package/node/esm/{bv_GA6NGCT0sJaXy.mjs → BEWR_Oinb-P8gswu.mjs} +1 -1
- package/node/esm/{D1C8ifsmXsypL6pp.mjs → BO6cKQ_efCO2YTyW.mjs} +1 -1
- package/node/esm/{CryVonGjJnmo2dE_.mjs → BPG7zfcXK20urqr_.mjs} +5 -5
- package/node/esm/{C2P_M1JNT_WZZN3H.mjs → BZ8BYhQCAcmtqV_l.mjs} +3 -3
- package/node/esm/{BIRLX0-9t62Lqats.mjs → BqcpB9wQAjq0QKR1.mjs} +1 -1
- package/node/esm/{DUfB1ollhqU-JIk5.mjs → BqsJ9biuGwjU2xgY.mjs} +1 -1
- package/node/esm/{B3M2CzPvK2oKOfg5.mjs → BxJ8RdpZW49RjtqB.mjs} +1 -1
- package/node/esm/{h1y2hBFecTqRgUa-.mjs → CQ1mTChRFSKFU2O1.mjs} +1 -1
- package/node/esm/{M3UB6IrhVERZziiJ.mjs → CcOchU9ZOmdG4JFr.mjs} +1 -1
- package/node/esm/{Dx2vq1Hdt4pqmOF-.mjs → CdLN7JEivNllaQ6w.mjs} +1 -1
- package/node/esm/{BJY8yNMmN_yyRtIG.mjs → CfO2Xok0ch8kylzr.mjs} +1 -1
- package/node/esm/{Bt5y5wVaVAVjwHBl.mjs → CsPaYpANdd8Rpel-.mjs} +1 -1
- package/node/esm/{Bj8uU2shfkvN4LnE.mjs → DKho7vhsoPr3NuMl.mjs} +1 -1
- package/node/esm/{CKtVB9hMCfabQMxC.mjs → DW7i1Qv4kcmwOTvD.mjs} +1 -1
- package/node/esm/{D1xD8cOQDGcbjIlG.mjs → DvKUmpzXvELOJbAq.mjs} +1 -1
- package/node/esm/{kIQFLB3nmEJdn_OT.mjs → RpUFmc_WL9-PMYhx.mjs} +1 -1
- package/node/esm/{CVGxETc4rIE1gNAH.mjs → VnhwCsWDUmo5-K5N.mjs} +1 -1
- package/node/esm/index.mjs +9 -9
- package/node/esm/{CBGAl2mih9mHDt5w.mjs → nmVSg6Qpwj9V1oA0.mjs} +1 -1
- package/node/esm/{kHsChOtl8GUkzj5Q.mjs → o-JVx3HFrRjVjKmi.mjs} +2 -2
- package/node/esm/{m8fyd2BoYkTOJlc1.mjs → uAAAbPd_k3kmgO5f.mjs} +1 -1
- package/package.json +8 -8
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.13
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),e=require("react"),r=require("@mui/material"),n=require("./BzD7LV8VmFKLAJyW.cjs");var o=n.requirePropTypes();const i=n.getDefaultExportFromCjs(o);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}var u=/^\s+/,s=/\s+$/;function c(t,e){if(e=e||{},(t=t||"")instanceof c)return t;if(!(this instanceof c))return new c(t,e);var r=function(t){var e={r:0,g:0,b:0},r=1,n=null,o=null,i=null,c=!1,f=!1;"string"==typeof t&&(t=function(t){t=t.replace(u,"").replace(s,"").toLowerCase();var e,r=!1;if(S[t])t=S[t],r=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};if(e=B.rgb.exec(t))return{r:e[1],g:e[2],b:e[3]};if(e=B.rgba.exec(t))return{r:e[1],g:e[2],b:e[3],a:e[4]};if(e=B.hsl.exec(t))return{h:e[1],s:e[2],l:e[3]};if(e=B.hsla.exec(t))return{h:e[1],s:e[2],l:e[3],a:e[4]};if(e=B.hsv.exec(t))return{h:e[1],s:e[2],v:e[3]};if(e=B.hsva.exec(t))return{h:e[1],s:e[2],v:e[3],a:e[4]};if(e=B.hex8.exec(t))return{r:R(e[1]),g:R(e[2]),b:R(e[3]),a:U(e[4]),format:r?"name":"hex8"};if(e=B.hex6.exec(t))return{r:R(e[1]),g:R(e[2]),b:R(e[3]),format:r?"name":"hex"};if(e=B.hex4.exec(t))return{r:R(e[1]+""+e[1]),g:R(e[2]+""+e[2]),b:R(e[3]+""+e[3]),a:U(e[4]+""+e[4]),format:r?"name":"hex8"};if(e=B.hex3.exec(t))return{r:R(e[1]+""+e[1]),g:R(e[2]+""+e[2]),b:R(e[3]+""+e[3]),format:r?"name":"hex"};return!1}(t));"object"==a(t)&&(H(t.r)&&H(t.g)&&H(t.b)?(l=t.r,h=t.g,p=t.b,e={r:255*A(l,255),g:255*A(h,255),b:255*A(p,255)},c=!0,f="%"===String(t.r).substr(-1)?"prgb":"rgb"):H(t.h)&&H(t.s)&&H(t.v)?(n=T(t.s),o=T(t.v),e=function(t,e,r){t=6*A(t,360),e=A(e,100),r=A(r,100);var n=Math.floor(t),o=t-n,i=r*(1-e),a=r*(1-o*e),u=r*(1-(1-o)*e),s=n%6,c=[r,a,i,i,u,r][s],f=[u,r,r,a,i,i][s],l=[i,i,u,r,r,a][s];return{r:255*c,g:255*f,b:255*l}}(t.h,n,o),c=!0,f="hsv"):H(t.h)&&H(t.s)&&H(t.l)&&(n=T(t.s),i=T(t.l),e=function(t,e,r){var n,o,i;function a(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}if(t=A(t,360),e=A(e,100),r=A(r,100),0===e)n=o=i=r;else{var u=r<.5?r*(1+e):r+e-r*e,s=2*r-u;n=a(s,u,t+1/3),o=a(s,u,t),i=a(s,u,t-1/3)}return{r:255*n,g:255*o,b:255*i}}(t.h,n,i),c=!0,f="hsl"),t.hasOwnProperty("a")&&(r=t.a));var l,h,p;return r=C(r),{ok:c,format:t.format||f,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:r}}(t);this._originalInput=t,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||r.format,this._gradientType=e.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=r.ok}function f(t,e,r){t=A(t,255),e=A(e,255),r=A(r,255);var n,o,i=Math.max(t,e,r),a=Math.min(t,e,r),u=(i+a)/2;if(i==a)n=o=0;else{var s=i-a;switch(o=u>.5?s/(2-i-a):s/(i+a),i){case t:n=(e-r)/s+(e<r?6:0);break;case e:n=(r-t)/s+2;break;case r:n=(t-e)/s+4}n/=6}return{h:n,s:o,l:u}}function l(t,e,r){t=A(t,255),e=A(e,255),r=A(r,255);var n,o,i=Math.max(t,e,r),a=Math.min(t,e,r),u=i,s=i-a;if(o=0===i?0:s/i,i==a)n=0;else{switch(i){case t:n=(e-r)/s+(e<r?6:0);break;case e:n=(r-t)/s+2;break;case r:n=(t-e)/s+4}n/=6}return{h:n,s:o,v:u}}function h(t,e,r,n){var o=[P(Math.round(t).toString(16)),P(Math.round(e).toString(16)),P(Math.round(r).toString(16))];return n&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function p(t,e,r,n){return[P(L(n)),P(Math.round(t).toString(16)),P(Math.round(e).toString(16)),P(Math.round(r).toString(16))].join("")}function d(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.s-=e/100,r.s=E(r.s),c(r)}function b(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.s+=e/100,r.s=E(r.s),c(r)}function v(t){return c(t).desaturate(100)}function g(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.l+=e/100,r.l=E(r.l),c(r)}function y(t,e){e=0===e?0:e||10;var r=c(t).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(-e/100*255))),r.g=Math.max(0,Math.min(255,r.g-Math.round(-e/100*255))),r.b=Math.max(0,Math.min(255,r.b-Math.round(-e/100*255))),c(r)}function m(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.l-=e/100,r.l=E(r.l),c(r)}function w(t,e){var r=c(t).toHsl(),n=(r.h+e)%360;return r.h=n<0?360+n:n,c(r)}function _(t){var e=c(t).toHsl();return e.h=(e.h+180)%360,c(e)}function x(t,e){if(isNaN(e)||e<=0)throw new Error("Argument to polyad must be a positive number");for(var r=c(t).toHsl(),n=[c(t)],o=360/e,i=1;i<e;i++)n.push(c({h:(r.h+i*o)%360,s:r.s,l:r.l}));return n}function j(t){var e=c(t).toHsl(),r=e.h;return[c(t),c({h:(r+72)%360,s:e.s,l:e.l}),c({h:(r+216)%360,s:e.s,l:e.l})]}function O(t,e,r){e=e||6,r=r||30;var n=c(t).toHsl(),o=360/r,i=[c(t)];for(n.h=(n.h-(o*e>>1)+720)%360;--e;)n.h=(n.h+o)%360,i.push(c(n));return i}function M(t,e){e=e||6;for(var r=c(t).toHsv(),n=r.h,o=r.s,i=r.v,a=[],u=1/e;e--;)a.push(c({h:n,s:o,v:i})),i=(i+u)%1;return a}c.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,e,r,n=this.toRgb();return t=n.r/255,e=n.g/255,r=n.b/255,.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},setAlpha:function(t){return this._a=C(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=l(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=l(this._r,this._g,this._b),e=Math.round(360*t.h),r=Math.round(100*t.s),n=Math.round(100*t.v);return 1==this._a?"hsv("+e+", "+r+"%, "+n+"%)":"hsva("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var t=f(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=f(this._r,this._g,this._b),e=Math.round(360*t.h),r=Math.round(100*t.s),n=Math.round(100*t.l);return 1==this._a?"hsl("+e+", "+r+"%, "+n+"%)":"hsla("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(t){return h(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,e,r,n,o){var i=[P(Math.round(t).toString(16)),P(Math.round(e).toString(16)),P(Math.round(r).toString(16)),P(L(n))];if(o&&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))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return 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)&&(k[h(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+p(this._r,this._g,this._b,this._a),r=e,n=this._gradientType?"GradientType = 1, ":"";if(t){var o=c(t);r="#"+p(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+e+",endColorstr="+r+")"},toString:function(t){var e=!!t;t=t||this._format;var r=!1,n=this._a<1&&this._a>=0;return e||!n||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(r=this.toRgbString()),"prgb"===t&&(r=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(r=this.toHexString()),"hex3"===t&&(r=this.toHexString(!0)),"hex4"===t&&(r=this.toHex8String(!0)),"hex8"===t&&(r=this.toHex8String()),"name"===t&&(r=this.toName()),"hsl"===t&&(r=this.toHslString()),"hsv"===t&&(r=this.toHsvString()),r||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return c(this.toString())},_applyModification:function(t,e){var r=t.apply(null,[this].concat([].slice.call(e)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(g,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(m,arguments)},desaturate:function(){return this._applyModification(d,arguments)},saturate:function(){return this._applyModification(b,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(w,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(O,arguments)},complement:function(){return this._applyCombination(_,arguments)},monochromatic:function(){return this._applyCombination(M,arguments)},splitcomplement:function(){return this._applyCombination(j,arguments)},triad:function(){return this._applyCombination(x,[3])},tetrad:function(){return this._applyCombination(x,[4])}},c.fromRatio=function(t,e){if("object"==a(t)){var r={};for(var n in t)t.hasOwnProperty(n)&&(r[n]="a"===n?t[n]:T(t[n]));t=r}return c(t,e)},c.equals=function(t,e){return!(!t||!e)&&c(t).toRgbString()==c(e).toRgbString()},c.random=function(){return c.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},c.mix=function(t,e,r){r=0===r?0:r||50;var n=c(t).toRgb(),o=c(e).toRgb(),i=r/100;return c({r:(o.r-n.r)*i+n.r,g:(o.g-n.g)*i+n.g,b:(o.b-n.b)*i+n.b,a:(o.a-n.a)*i+n.a})},c.readability=function(t,e){var r=c(t),n=c(e);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},c.isReadable=function(t,e,r){var n,o,i=c.readability(t,e);switch(o=!1,(n=function(t){var e,r;e=((t=t||{level:"AA",size:"small"}).level||"AA").toUpperCase(),r=(t.size||"small").toLowerCase(),"AA"!==e&&"AAA"!==e&&(e="AA");"small"!==r&&"large"!==r&&(r="small");return{level:e,size:r}}(r)).level+n.size){case"AAsmall":case"AAAlarge":o=i>=4.5;break;case"AAlarge":o=i>=3;break;case"AAAsmall":o=i>=7}return o},c.mostReadable=function(t,e,r){var n,o,i,a,u=null,s=0;o=(r=r||{}).includeFallbackColors,i=r.level,a=r.size;for(var f=0;f<e.length;f++)(n=c.readability(t,e[f]))>s&&(s=n,u=c(e[f]));return c.isReadable(t,u,{level:i,size:a})||!o?u:(r.includeFallbackColors=!1,c.mostReadable(t,["#fff","#000"],r))};var S=c.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"},k=c.hexNames=function(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}(S);function C(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function A(t,e){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var r=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(t);return t=Math.min(e,Math.max(0,parseFloat(t))),r&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function E(t){return Math.min(1,Math.max(0,t))}function R(t){return parseInt(t,16)}function P(t){return 1==t.length?"0"+t:""+t}function T(t){return t<=1&&(t=100*t+"%"),t}function L(t){return Math.round(255*parseFloat(t)).toString(16)}function U(t){return R(t)/255}var F,D,z,B=(D="[\\s|\\(]+("+(F="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+F+")[,|\\s]+("+F+")\\s*\\)?",z="[\\s|\\(]+("+F+")[,|\\s]+("+F+")[,|\\s]+("+F+")[,|\\s]+("+F+")\\s*\\)?",{CSS_UNIT:new RegExp(F),rgb:new RegExp("rgb"+D),rgba:new RegExp("rgba"+z),hsl:new RegExp("hsl"+D),hsla:new RegExp("hsla"+z),hsv:new RegExp("hsv"+D),hsva:new RegExp("hsva"+z),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 H(t){return!!B.CSS_UNIT.exec(t)}var W,$,N,I,V,X,q,Y,G,K,J,Q,Z,tt,et,rt,nt,ot,it,at,ut,st,ct,ft,lt,ht,pt,dt,bt={},vt={};function gt(){if($)return W;$=1;var t="object"==typeof n.commonjsGlobal&&n.commonjsGlobal&&n.commonjsGlobal.Object===Object&&n.commonjsGlobal;return W=t}function yt(){if(I)return N;I=1;var t=gt(),e="object"==typeof self&&self&&self.Object===Object&&self,r=t||e||Function("return this")();return N=r}function mt(){if(X)return V;X=1;var t=yt().Symbol;return V=t}function wt(){if(Q)return J;Q=1;var t=mt(),e=function(){if(Y)return q;Y=1;var t=mt(),e=Object.prototype,r=e.hasOwnProperty,n=e.toString,o=t?t.toStringTag:void 0;return q=function(t){var e=r.call(t,o),i=t[o];try{t[o]=void 0;var a=!0}catch(t){}var u=n.call(t);return a&&(e?t[o]=i:delete t[o]),u}}(),r=function(){if(K)return G;K=1;var t=Object.prototype.toString;return G=function(e){return t.call(e)}}(),n=t?t.toStringTag:void 0;return J=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":n&&n in Object(t)?e(t):r(t)}}function _t(){if(tt)return Z;tt=1;var t=Array.isArray;return Z=t}function xt(){if(rt)return et;return rt=1,et=function(t){return null!=t&&"object"==typeof t}}function jt(){if(st)return ut;st=1;var t=(at||(at=1,it=function(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),u=a.length;u--;){var s=a[t?u:++o];if(!1===r(i[s],s,i))break}return e}}),it),e=t();return ut=e}function Ot(){if(dt)return pt;dt=1;var t=function(){if(ht)return lt;ht=1;var t=wt(),e=xt();return lt=function(r){return e(r)&&"[object Arguments]"==t(r)}}(),e=xt(),r=Object.prototype,n=r.hasOwnProperty,o=r.propertyIsEnumerable,i=t(function(){return arguments}())?t:function(t){return e(t)&&n.call(t,"callee")&&!o.call(t,"callee")};return pt=i}var Mt,St,kt,Ct,At,Et,Rt,Pt,Tt,Lt,Ut,Ft={exports:{}};function Dt(){return kt||(kt=1,function(t,e){var r=yt(),n=St?Mt:(St=1,Mt=function(){return!1}),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o?r.Buffer:void 0,u=(a?a.isBuffer:void 0)||n;t.exports=u}(Ft,Ft.exports)),Ft.exports}function zt(){if(At)return Ct;At=1;var t=/^(?:0|[1-9]\d*)$/;return Ct=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}}function Bt(){if(Rt)return Et;Rt=1;return Et=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}}function Ht(){if(Ut)return Lt;return Ut=1,Lt=function(t){return function(e){return t(e)}}}var Wt,$t,Nt,It,Vt,Xt,qt,Yt,Gt,Kt,Jt,Qt,Zt,te,ee,re,ne,oe,ie,ae,ue,se,ce,fe,le,he,pe,de,be,ve,ge,ye,me,we,_e,xe,je,Oe,Me,Se,ke,Ce,Ae,Ee,Re,Pe,Te,Le,Ue,Fe,De,ze,Be,He,We,$e,Ne,Ie,Ve,Xe,qe,Ye,Ge,Ke,Je,Qe,Ze,tr,er,rr,nr,or,ir,ar,ur,sr,cr,fr,lr,hr,pr,dr,br,vr,gr,yr,mr,wr,_r,xr,jr,Or,Mr,Sr,kr,Cr,Ar,Er,Rr,Pr,Tr,Lr,Ur,Fr,Dr,zr,Br,Hr,Wr,$r,Nr,Ir,Vr,Xr,qr,Yr,Gr,Kr,Jr,Qr,Zr,tn,en,rn,nn,on,an,un,sn,cn,fn,ln,hn,pn,dn,bn,vn,gn,yn,mn,wn,_n,xn,jn,On,Mn,Sn,kn,Cn,An,En,Rn,Pn,Tn,Ln,Un,Fn,Dn,zn,Bn,Hn,Wn,$n,Nn,In,Vn,Xn,qn,Yn,Gn,Kn,Jn,Qn,Zn,to,eo,ro,no,oo,io,ao,uo,so,co,fo,lo,ho,po,bo,vo,go,yo,mo,wo,_o,xo,jo,Oo,Mo,So,ko,Co,Ao,Eo,Ro,Po,To,Lo,Uo,Fo,Do,zo,Bo={exports:{}};function Ho(){return Wt||(Wt=1,function(t,e){var r=gt(),n=e&&!e.nodeType&&e,o=n&&t&&!t.nodeType&&t,i=o&&o.exports===n&&r.process,a=function(){try{var t=o&&o.require&&o.require("util").types;return t||i&&i.binding&&i.binding("util")}catch(t){}}();t.exports=a}(Bo,Bo.exports)),Bo.exports}function Wo(){if(Nt)return $t;Nt=1;var t=function(){if(Tt)return Pt;Tt=1;var t=wt(),e=Bt(),r=xt(),n={};return n["[object Float32Array]"]=n["[object Float64Array]"]=n["[object Int8Array]"]=n["[object Int16Array]"]=n["[object Int32Array]"]=n["[object Uint8Array]"]=n["[object Uint8ClampedArray]"]=n["[object Uint16Array]"]=n["[object Uint32Array]"]=!0,n["[object Arguments]"]=n["[object Array]"]=n["[object ArrayBuffer]"]=n["[object Boolean]"]=n["[object DataView]"]=n["[object Date]"]=n["[object Error]"]=n["[object Function]"]=n["[object Map]"]=n["[object Number]"]=n["[object Object]"]=n["[object RegExp]"]=n["[object Set]"]=n["[object String]"]=n["[object WeakMap]"]=!1,Pt=function(o){return r(o)&&e(o.length)&&!!n[t(o)]}}(),e=Ht(),r=Ho(),n=r&&r.isTypedArray,o=n?e(n):t;return $t=o}function $o(){if(Vt)return It;Vt=1;var t=(ft||(ft=1,ct=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}),ct),e=Ot(),r=_t(),n=Dt(),o=zt(),i=Wo(),a=Object.prototype.hasOwnProperty;return It=function(u,s){var c=r(u),f=!c&&e(u),l=!c&&!f&&n(u),h=!c&&!f&&!l&&i(u),p=c||f||l||h,d=p?t(u.length,String):[],b=d.length;for(var v in u)!s&&!a.call(u,v)||p&&("length"==v||l&&("offset"==v||"parent"==v)||h&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||o(v,b))||d.push(v);return d}}function No(){if(qt)return Xt;qt=1;var t=Object.prototype;return Xt=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}}function Io(){if(Gt)return Yt;return Gt=1,Yt=function(t,e){return function(r){return t(e(r))}}}function Vo(){if(Zt)return Qt;Zt=1;var t=No(),e=function(){if(Jt)return Kt;Jt=1;var t=Io()(Object.keys,Object);return Kt=t}(),r=Object.prototype.hasOwnProperty;return Qt=function(n){if(!t(n))return e(n);var o=[];for(var i in Object(n))r.call(n,i)&&"constructor"!=i&&o.push(i);return o}}function Xo(){if(ee)return te;return ee=1,te=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}}function qo(){if(ne)return re;ne=1;var t=wt(),e=Xo();return re=function(r){if(!e(r))return!1;var n=t(r);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}}function Yo(){if(ie)return oe;ie=1;var t=qo(),e=Bt();return oe=function(r){return null!=r&&e(r.length)&&!t(r)}}function Go(){if(ue)return ae;ue=1;var t=$o(),e=Vo(),r=Yo();return ae=function(n){return r(n)?t(n):e(n)}}function Ko(){if(ce)return se;ce=1;var t=jt(),e=Go();return se=function(r,n){return r&&t(r,n,e)}}function Jo(){if(le)return fe;return le=1,fe=function(t){return t}}function Qo(){if(be)return de;be=1;var t=Ko(),e=function(){if(pe)return he;pe=1;var t=Jo();return he=function(e){return"function"==typeof e?e:t}}();return de=function(r,n){return r&&t(r,e(n))}}function Zo(){if(ge)return ve;ge=1;var t=Io()(Object.getPrototypeOf,Object);return ve=t}function ti(){if(_e)return we;return _e=1,we=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o},we}function ei(){if(Me)return Oe;return Me=1,Oe=function(t,e){return t===e||t!=t&&e!=e}}function ri(){if(ke)return Se;ke=1;var t=ei();return Se=function(e,r){for(var n=e.length;n--;)if(t(e[n][0],r))return n;return-1}}function ni(){if(De)return Fe;De=1;var t=je?xe:(je=1,xe=function(){this.__data__=[],this.size=0}),e=function(){if(Ae)return Ce;Ae=1;var t=ri(),e=Array.prototype.splice;return Ce=function(r){var n=this.__data__,o=t(n,r);return!(o<0||(o==n.length-1?n.pop():e.call(n,o,1),--this.size,0))},Ce}(),r=function(){if(Re)return Ee;Re=1;var t=ri();return Ee=function(e){var r=this.__data__,n=t(r,e);return n<0?void 0:r[n][1]},Ee}(),n=function(){if(Te)return Pe;Te=1;var t=ri();return Pe=function(e){return t(this.__data__,e)>-1}}(),o=function(){if(Ue)return Le;Ue=1;var t=ri();return Le=function(e,r){var n=this.__data__,o=t(n,e);return o<0?(++this.size,n.push([e,r])):n[o][1]=r,this},Le}();function i(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}return i.prototype.clear=t,i.prototype.delete=e,i.prototype.get=r,i.prototype.has=n,i.prototype.set=o,Fe=i}function oi(){if(Ge)return Ye;Ge=1;var t,e=function(){if(qe)return Xe;qe=1;var t=yt()["__core-js_shared__"];return Xe=t}(),r=(t=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||""))?"Symbol(src)_1."+t:"";return Ye=function(t){return!!r&&r in t}}function ii(){if(Je)return Ke;Je=1;var t=Function.prototype.toString;return Ke=function(e){if(null!=e){try{return t.call(e)}catch(t){}try{return e+""}catch(t){}}return""}}function ai(){if(nr)return rr;nr=1;var t=function(){if(Ze)return Qe;Ze=1;var t=qo(),e=oi(),r=Xo(),n=ii(),o=/^\[object .+?Constructor\]$/,i=Function.prototype,a=Object.prototype,u=i.toString,s=a.hasOwnProperty,c=RegExp("^"+u.call(s).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return Qe=function(i){return!(!r(i)||e(i))&&(t(i)?c:o).test(n(i))}}(),e=er?tr:(er=1,tr=function(t,e){return null==t?void 0:t[e]});return rr=function(r,n){var o=e(r,n);return t(o)?o:void 0}}function ui(){if(ir)return or;ir=1;var t=ai()(yt(),"Map");return or=t}function si(){if(ur)return ar;ur=1;var t=ai()(Object,"create");return ar=t}function ci(){if(mr)return yr;mr=1;var t=function(){if(cr)return sr;cr=1;var t=si();return sr=function(){this.__data__=t?t(null):{},this.size=0}}(),e=lr?fr:(lr=1,fr=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}),r=function(){if(pr)return hr;pr=1;var t=si(),e=Object.prototype.hasOwnProperty;return hr=function(r){var n=this.__data__;if(t){var o=n[r];return"__lodash_hash_undefined__"===o?void 0:o}return e.call(n,r)?n[r]:void 0}}(),n=function(){if(br)return dr;br=1;var t=si(),e=Object.prototype.hasOwnProperty;return dr=function(r){var n=this.__data__;return t?void 0!==n[r]:e.call(n,r)}}(),o=function(){if(gr)return vr;gr=1;var t=si();return vr=function(e,r){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=t&&void 0===r?"__lodash_hash_undefined__":r,this}}();function i(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}return i.prototype.clear=t,i.prototype.delete=e,i.prototype.get=r,i.prototype.has=n,i.prototype.set=o,yr=i}function fi(){if(Mr)return Or;Mr=1;var t=jr?xr:(jr=1,xr=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t});return Or=function(e,r){var n=e.__data__;return t(r)?n["string"==typeof r?"string":"hash"]:n.map}}function li(){if(Ur)return Lr;Ur=1;var t=function(){if(_r)return wr;_r=1;var t=ci(),e=ni(),r=ui();return wr=function(){this.size=0,this.__data__={hash:new t,map:new(r||e),string:new t}}}(),e=function(){if(kr)return Sr;kr=1;var t=fi();return Sr=function(e){var r=t(this,e).delete(e);return this.size-=r?1:0,r}}(),r=function(){if(Ar)return Cr;Ar=1;var t=fi();return Cr=function(e){return t(this,e).get(e)}}(),n=function(){if(Rr)return Er;Rr=1;var t=fi();return Er=function(e){return t(this,e).has(e)}}(),o=function(){if(Tr)return Pr;Tr=1;var t=fi();return Pr=function(e,r){var n=t(this,e),o=n.size;return n.set(e,r),this.size+=n.size==o?0:1,this}}();function i(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}return i.prototype.clear=t,i.prototype.delete=e,i.prototype.get=r,i.prototype.has=n,i.prototype.set=o,Lr=i}function hi(){if(Br)return zr;Br=1;var t=ni(),e=function(){if(Be)return ze;Be=1;var t=ni();return ze=function(){this.__data__=new t,this.size=0}}(),r=We?He:(We=1,He=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}),n=Ne?$e:(Ne=1,$e=function(t){return this.__data__.get(t)}),o=Ve?Ie:(Ve=1,Ie=function(t){return this.__data__.has(t)}),i=function(){if(Dr)return Fr;Dr=1;var t=ni(),e=ui(),r=li();return Fr=function(n,o){var i=this.__data__;if(i instanceof t){var a=i.__data__;if(!e||a.length<199)return a.push([n,o]),this.size=++i.size,this;i=this.__data__=new r(a)}return i.set(n,o),this.size=i.size,this}}();function a(e){var r=this.__data__=new t(e);this.size=r.size}return a.prototype.clear=e,a.prototype.delete=r,a.prototype.get=n,a.prototype.has=o,a.prototype.set=i,zr=a}function pi(){if(Vr)return Ir;Vr=1;var t=li(),e=Wr?Hr:(Wr=1,Hr=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}),r=Nr?$r:(Nr=1,$r=function(t){return this.__data__.has(t)});function n(e){var r=-1,n=null==e?0:e.length;for(this.__data__=new t;++r<n;)this.add(e[r])}return n.prototype.add=n.prototype.push=e,n.prototype.has=r,Ir=n}function di(){if(Jr)return Kr;Jr=1;var t=pi(),e=(qr||(qr=1,Xr=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}),Xr),r=Gr?Yr:(Gr=1,Yr=function(t,e){return t.has(e)});return Kr=function(n,o,i,a,u,s){var c=1&i,f=n.length,l=o.length;if(f!=l&&!(c&&l>f))return!1;var h=s.get(n),p=s.get(o);if(h&&p)return h==o&&p==n;var d=-1,b=!0,v=2&i?new t:void 0;for(s.set(n,o),s.set(o,n);++d<f;){var g=n[d],y=o[d];if(a)var m=c?a(y,g,d,o,n,s):a(g,y,d,n,o,s);if(void 0!==m){if(m)continue;b=!1;break}if(v){if(!e(o,function(t,e){if(!r(v,e)&&(g===t||u(g,t,i,a,s)))return v.push(e)})){b=!1;break}}else if(g!==y&&!u(g,y,i,a,s)){b=!1;break}}return s.delete(n),s.delete(o),b},Kr}function bi(){if(Zr)return Qr;Zr=1;var t=yt().Uint8Array;return Qr=t}function vi(){if(an)return on;an=1;var t=mt(),e=bi(),r=ei(),n=di(),o=(en||(en=1,tn=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}),tn),i=(nn||(nn=1,rn=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}),rn),a=t?t.prototype:void 0,u=a?a.valueOf:void 0;return on=function(t,a,s,c,f,l,h){switch(s){case"[object DataView]":if(t.byteLength!=a.byteLength||t.byteOffset!=a.byteOffset)return!1;t=t.buffer,a=a.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=a.byteLength||!l(new e(t),new e(a)));case"[object Boolean]":case"[object Date]":case"[object Number]":return r(+t,+a);case"[object Error]":return t.name==a.name&&t.message==a.message;case"[object RegExp]":case"[object String]":return t==a+"";case"[object Map]":var p=o;case"[object Set]":var d=1&c;if(p||(p=i),t.size!=a.size&&!d)return!1;var b=h.get(t);if(b)return b==a;c|=2,h.set(t,a);var v=n(p(t),p(a),c,f,l,h);return h.delete(t),v;case"[object Symbol]":if(u)return u.call(t)==u.call(a)}return!1}}function gi(){if(sn)return un;return sn=1,un=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t},un}function yi(){if(fn)return cn;fn=1;var t=gi(),e=_t();return cn=function(r,n,o){var i=n(r);return e(r)?i:t(i,o(r))}}function mi(){if(dn)return pn;return dn=1,pn=function(){return[]}}function wi(){if(vn)return bn;vn=1;var t=(hn||(hn=1,ln=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var a=t[r];e(a,r,t)&&(i[o++]=a)}return i}),ln),e=mi(),r=Object.prototype.propertyIsEnumerable,n=Object.getOwnPropertySymbols;return bn=n?function(e){return null==e?[]:(e=Object(e),t(n(e),function(t){return r.call(e,t)}))}:e}function _i(){if(yn)return gn;yn=1;var t=yi(),e=wi(),r=Go();return gn=function(n){return t(n,r,e)}}function xi(){if(En)return An;En=1;var t=function(){if(xn)return _n;xn=1;var t=ai()(yt(),"DataView");return _n=t}(),e=ui(),r=function(){if(On)return jn;On=1;var t=ai()(yt(),"Promise");return jn=t}(),n=function(){if(Sn)return Mn;Sn=1;var t=ai()(yt(),"Set");return Mn=t}(),o=function(){if(Cn)return kn;Cn=1;var t=ai()(yt(),"WeakMap");return kn=t}(),i=wt(),a=ii(),u="[object Map]",s="[object Promise]",c="[object Set]",f="[object WeakMap]",l="[object DataView]",h=a(t),p=a(e),d=a(r),b=a(n),v=a(o),g=i;return(t&&g(new t(new ArrayBuffer(1)))!=l||e&&g(new e)!=u||r&&g(r.resolve())!=s||n&&g(new n)!=c||o&&g(new o)!=f)&&(g=function(t){var e=i(t),r="[object Object]"==e?t.constructor:void 0,n=r?a(r):"";if(n)switch(n){case h:return l;case p:return u;case d:return s;case b:return c;case v:return f}return e}),An=g}function ji(){if(Pn)return Rn;Pn=1;var t=hi(),e=di(),r=vi(),n=function(){if(wn)return mn;wn=1;var t=_i(),e=Object.prototype.hasOwnProperty;return mn=function(r,n,o,i,a,u){var s=1&o,c=t(r),f=c.length;if(f!=t(n).length&&!s)return!1;for(var l=f;l--;){var h=c[l];if(!(s?h in n:e.call(n,h)))return!1}var p=u.get(r),d=u.get(n);if(p&&d)return p==n&&d==r;var b=!0;u.set(r,n),u.set(n,r);for(var v=s;++l<f;){var g=r[h=c[l]],y=n[h];if(i)var m=s?i(y,g,h,n,r,u):i(g,y,h,r,n,u);if(!(void 0===m?g===y||a(g,y,o,i,u):m)){b=!1;break}v||(v="constructor"==h)}if(b&&!v){var w=r.constructor,_=n.constructor;w==_||!("constructor"in r)||!("constructor"in n)||"function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _||(b=!1)}return u.delete(r),u.delete(n),b},mn}(),o=xi(),i=_t(),a=Dt(),u=Wo(),s="[object Arguments]",c="[object Array]",f="[object Object]",l=Object.prototype.hasOwnProperty;return Rn=function(h,p,d,b,v,g){var y=i(h),m=i(p),w=y?c:o(h),_=m?c:o(p),x=(w=w==s?f:w)==f,j=(_=_==s?f:_)==f,O=w==_;if(O&&a(h)){if(!a(p))return!1;y=!0,x=!1}if(O&&!x)return g||(g=new t),y||u(h)?e(h,p,d,b,v,g):r(h,p,w,d,b,v,g);if(!(1&d)){var M=x&&l.call(h,"__wrapped__"),S=j&&l.call(p,"__wrapped__");if(M||S){var k=M?h.value():h,C=S?p.value():p;return g||(g=new t),v(k,C,d,b,g)}}return!!O&&(g||(g=new t),n(h,p,d,b,v,g))}}function Oi(){if(Ln)return Tn;Ln=1;var t=ji(),e=xt();return Tn=function r(n,o,i,a,u){return n===o||(null==n||null==o||!e(n)&&!e(o)?n!=n&&o!=o:t(n,o,i,a,r,u))},Tn}function Mi(){if(zn)return Dn;zn=1;var t=Xo();return Dn=function(e){return e==e&&!t(e)}}function Si(){if($n)return Wn;return $n=1,Wn=function(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}}}function ki(){if(In)return Nn;In=1;var t=function(){if(Fn)return Un;Fn=1;var t=hi(),e=Oi();return Un=function(r,n,o,i){var a=o.length,u=a,s=!i;if(null==r)return!u;for(r=Object(r);a--;){var c=o[a];if(s&&c[2]?c[1]!==r[c[0]]:!(c[0]in r))return!1}for(;++a<u;){var f=(c=o[a])[0],l=r[f],h=c[1];if(s&&c[2]){if(void 0===l&&!(f in r))return!1}else{var p=new t;if(i)var d=i(l,h,f,r,n,p);if(!(void 0===d?e(h,l,3,i,p):d))return!1}}return!0},Un}(),e=function(){if(Hn)return Bn;Hn=1;var t=Mi(),e=Go();return Bn=function(r){for(var n=e(r),o=n.length;o--;){var i=n[o],a=r[i];n[o]=[i,a,t(a)]}return n}}(),r=Si();return Nn=function(n){var o=e(n);return 1==o.length&&o[0][2]?r(o[0][0],o[0][1]):function(e){return e===n||t(e,n,o)}}}function Ci(){if(Xn)return Vn;Xn=1;var t=wt(),e=xt();return Vn=function(r){return"symbol"==typeof r||e(r)&&"[object Symbol]"==t(r)}}function Ai(){if(Yn)return qn;Yn=1;var t=_t(),e=Ci(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;return qn=function(o,i){if(t(o))return!1;var a=typeof o;return!("number"!=a&&"symbol"!=a&&"boolean"!=a&&null!=o&&!e(o))||(n.test(o)||!r.test(o)||null!=i&&o in Object(i))}}function Ei(){if(Qn)return Jn;Qn=1;var t=function(){if(Kn)return Gn;Kn=1;var t=li();function e(r,n){if("function"!=typeof r||null!=n&&"function"!=typeof n)throw new TypeError("Expected a function");var o=function(){var t=arguments,e=n?n.apply(this,t):t[0],i=o.cache;if(i.has(e))return i.get(e);var a=r.apply(this,t);return o.cache=i.set(e,a)||i,a};return o.cache=new(e.Cache||t),o}return e.Cache=t,Gn=e}();return Jn=function(e){var r=t(e,function(t){return 500===n.size&&n.clear(),t}),n=r.cache;return r}}function Ri(){if(oo)return no;oo=1;var t=function(){if(ro)return eo;ro=1;var t=mt(),e=ti(),r=_t(),n=Ci(),o=t?t.prototype:void 0,i=o?o.toString:void 0;return eo=function t(o){if("string"==typeof o)return o;if(r(o))return e(o,t)+"";if(n(o))return i?i.call(o):"";var a=o+"";return"0"==a&&1/o==-1/0?"-0":a},eo}();return no=function(e){return null==e?"":t(e)}}function Pi(){if(ao)return io;ao=1;var t=_t(),e=Ai(),r=function(){if(to)return Zn;to=1;var t=Ei(),e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=t(function(t){var n=[];return 46===t.charCodeAt(0)&&n.push(""),t.replace(e,function(t,e,o,i){n.push(o?i.replace(r,"$1"):e||t)}),n});return Zn=n}(),n=Ri();return io=function(o,i){return t(o)?o:e(o,i)?[o]:r(n(o))}}function Ti(){if(so)return uo;so=1;var t=Ci();return uo=function(e){if("string"==typeof e||t(e))return e;var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}}function Li(){if(fo)return co;fo=1;var t=Pi(),e=Ti();return co=function(r,n){for(var o=0,i=(n=t(n,r)).length;null!=r&&o<i;)r=r[e(n[o++])];return o&&o==i?r:void 0},co}function Ui(){if(mo)return yo;mo=1;var t=bo?po:(bo=1,po=function(t,e){return null!=t&&e in Object(t)}),e=function(){if(go)return vo;go=1;var t=Pi(),e=Ot(),r=_t(),n=zt(),o=Bt(),i=Ti();return vo=function(a,u,s){for(var c=-1,f=(u=t(u,a)).length,l=!1;++c<f;){var h=i(u[c]);if(!(l=null!=a&&s(a,h)))break;a=a[h]}return l||++c!=f?l:!!(f=null==a?0:a.length)&&o(f)&&n(h,f)&&(r(a)||e(a))},vo}();return yo=function(r,n){return null!=r&&e(r,n,t)}}function Fi(){if(_o)return wo;_o=1;var t=Oi(),e=function(){if(ho)return lo;ho=1;var t=Li();return lo=function(e,r,n){var o=null==e?void 0:t(e,r);return void 0===o?n:o}}(),r=Ui(),n=Ai(),o=Mi(),i=Si(),a=Ti();return wo=function(u,s){return n(u)&&o(s)?i(a(u),s):function(n){var o=e(n,u);return void 0===o&&o===s?r(n,u):t(s,o,3)}}}function Di(){if(ko)return So;ko=1;var t=jo?xo:(jo=1,xo=function(t){return function(e){return null==e?void 0:e[t]}}),e=function(){if(Mo)return Oo;Mo=1;var t=Li();return Oo=function(e){return function(r){return t(r,e)}}}(),r=Ai(),n=Ti();return So=function(o){return r(o)?t(n(o)):e(o)}}function zi(){if(To)return Po;To=1;var t=Ko(),e=function(){if(Ro)return Eo;Ro=1;var t=Yo();return Eo=function(e,r){return function(n,o){if(null==n)return n;if(!t(n))return e(n,o);for(var i=n.length,a=r?i:-1,u=Object(n);(r?a--:++a<i)&&!1!==o(u[a],a,u););return n}},Eo}(),r=e(t);return Po=r}function Bi(){if(Do)return Fo;Do=1;var t=ti(),e=function(){if(Ao)return Co;Ao=1;var t=ki(),e=Fi(),r=Jo(),n=_t(),o=Di();return Co=function(i){return"function"==typeof i?i:null==i?r:"object"==typeof i?n(i)?e(i[0],i[1]):t(i):o(i)}}(),r=function(){if(Uo)return Lo;Uo=1;var t=zi(),e=Yo();return Lo=function(r,n){var o=-1,i=e(r)?Array(r.length):[];return t(r,function(t,e,r){i[++o]=n(t,e,r)}),i},Lo}(),n=_t();return Fo=function(o,i){return(n(o)?t:r)(o,e(i,3))}}function Hi(){if(zo)return vt;zo=1,Object.defineProperty(vt,"__esModule",{value:!0}),vt.flattenNames=void 0;var t=function(){if(ot)return nt;ot=1;var t=wt(),e=_t(),r=xt();return nt=function(n){return"string"==typeof n||!e(n)&&r(n)&&"[object String]"==t(n)}}(),e=a(t),r=a(Qo()),n=function(){if(me)return ye;me=1;var t=wt(),e=Zo(),r=xt(),n=Function.prototype,o=Object.prototype,i=n.toString,a=o.hasOwnProperty,u=i.call(Object);return ye=function(n){if(!r(n)||"[object Object]"!=t(n))return!1;var o=e(n);if(null===o)return!0;var s=a.call(o,"constructor")&&o.constructor;return"function"==typeof s&&s instanceof s&&i.call(s)==u}}(),o=a(n),i=a(Bi());function a(t){return t&&t.__esModule?t:{default:t}}var u=vt.flattenNames=function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=[];return(0,i.default)(n,function(n){Array.isArray(n)?t(n).map(function(t){return a.push(t)}):(0,o.default)(n)?(0,r.default)(n,function(t,e){!0===t&&a.push(e),a.push(e+"-"+t)}):(0,e.default)(n)&&a.push(n)}),a};return vt.default=u,vt}var Wi,$i,Ni,Ii,Vi,Xi,qi,Yi,Gi,Ki,Ji,Qi,Zi,ta,ea,ra,na,oa,ia,aa,ua={};function sa(){if(Xi)return Vi;Xi=1;var t=function(){if(Ii)return Ni;Ii=1;var t=ai(),e=function(){try{var e=t(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();return Ni=e}();return Vi=function(e,r,n){"__proto__"==r&&t?t(e,r,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[r]=n}}function ca(){if(Yi)return qi;Yi=1;var t=sa(),e=ei(),r=Object.prototype.hasOwnProperty;return qi=function(n,o,i){var a=n[o];r.call(n,o)&&e(a,i)&&(void 0!==i||o in n)||t(n,o,i)}}function fa(){if(Ki)return Gi;Ki=1;var t=ca(),e=sa();return Gi=function(r,n,o,i){var a=!o;o||(o={});for(var u=-1,s=n.length;++u<s;){var c=n[u],f=i?i(o[c],r[c],c,o,r):void 0;void 0===f&&(f=r[c]),a?e(o,c,f):t(o,c,f)}return o},Gi}function la(){if(ra)return ea;ra=1;var t=Xo(),e=No(),r=ta?Zi:(ta=1,Zi=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}),n=Object.prototype.hasOwnProperty;return ea=function(o){if(!t(o))return r(o);var i=e(o),a=[];for(var u in o)("constructor"!=u||!i&&n.call(o,u))&&a.push(u);return a}}function ha(){if(oa)return na;oa=1;var t=$o(),e=la(),r=Yo();return na=function(n){return r(n)?t(n,!0):e(n)}}var pa,da,ba,va,ga,ya,ma,wa,_a,xa,ja,Oa,Ma,Sa,ka,Ca,Aa,Ea,Ra,Pa,Ta,La,Ua,Fa,Da,za,Ba,Ha,Wa,$a,Na,Ia,Va,Xa,qa,Ya,Ga,Ka,Ja,Qa,Za,tu,eu={exports:{}};function ru(){if(ma)return ya;ma=1;var t=gi(),e=Zo(),r=wi(),n=mi(),o=Object.getOwnPropertySymbols;return ya=o?function(n){for(var o=[];n;)t(o,r(n)),n=e(n);return o}:n}function nu(){if(ka)return Sa;ka=1;var t=bi();return Sa=function(e){var r=new e.constructor(e.byteLength);return new t(r).set(new t(e)),r}}function ou(){if(Da)return Fa;Da=1;var t=nu(),e=function(){if(Aa)return Ca;Aa=1;var t=nu();return Ca=function(e,r){var n=r?t(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}}(),r=function(){if(Ra)return Ea;Ra=1;var t=/\w*$/;return Ea=function(e){var r=new e.constructor(e.source,t.exec(e));return r.lastIndex=e.lastIndex,r}}(),n=function(){if(Ta)return Pa;Ta=1;var t=mt(),e=t?t.prototype:void 0,r=e?e.valueOf:void 0;return Pa=function(t){return r?Object(r.call(t)):{}}}(),o=function(){if(Ua)return La;Ua=1;var t=nu();return La=function(e,r){var n=r?t(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}}();return Fa=function(i,a,u){var s=i.constructor;switch(a){case"[object ArrayBuffer]":return t(i);case"[object Boolean]":case"[object Date]":return new s(+i);case"[object DataView]":return e(i,u);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return o(i,u);case"[object Map]":case"[object Set]":return new s;case"[object Number]":case"[object String]":return new s(i);case"[object RegExp]":return r(i);case"[object Symbol]":return n(i)}}}function iu(){if(Wa)return Ha;Wa=1;var t=function(){if(Ba)return za;Ba=1;var t=Xo(),e=Object.create,r=function(){function r(){}return function(n){if(!t(n))return{};if(e)return e(n);r.prototype=n;var o=new r;return r.prototype=void 0,o}}();return za=r}(),e=Zo(),r=No();return Ha=function(n){return"function"!=typeof n.constructor||r(n)?{}:t(e(n))}}function au(){if(Va)return Ia;Va=1;var t=function(){if(Na)return $a;Na=1;var t=xi(),e=xt();return $a=function(r){return e(r)&&"[object Map]"==t(r)}}(),e=Ht(),r=Ho(),n=r&&r.isMap,o=n?e(n):t;return Ia=o}function uu(){if(Ga)return Ya;Ga=1;var t=function(){if(qa)return Xa;qa=1;var t=xi(),e=xt();return Xa=function(r){return e(r)&&"[object Set]"==t(r)}}(),e=Ht(),r=Ho(),n=r&&r.isSet,o=n?e(n):t;return Ya=o}function su(){if(Ja)return Ka;Ja=1;var t=hi(),e=($i||($i=1,Wi=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}),Wi),r=ca(),n=function(){if(Qi)return Ji;Qi=1;var t=fa(),e=Go();return Ji=function(r,n){return r&&t(n,e(n),r)}}(),o=function(){if(aa)return ia;aa=1;var t=fa(),e=ha();return ia=function(r,n){return r&&t(n,e(n),r)}}(),i=(pa||(pa=1,function(t,e){var r=yt(),n=e&&!e.nodeType&&e,o=n&&t&&!t.nodeType&&t,i=o&&o.exports===n?r.Buffer:void 0,a=i?i.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var r=t.length,n=a?a(r):new t.constructor(r);return t.copy(n),n}}(eu,eu.exports)),eu.exports),a=(ba||(ba=1,da=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}),da),u=function(){if(ga)return va;ga=1;var t=fa(),e=wi();return va=function(r,n){return t(r,e(r),n)}}(),s=function(){if(_a)return wa;_a=1;var t=fa(),e=ru();return wa=function(r,n){return t(r,e(r),n)}}(),c=_i(),f=function(){if(ja)return xa;ja=1;var t=yi(),e=ru(),r=ha();return xa=function(n){return t(n,r,e)}}(),l=xi(),h=function(){if(Ma)return Oa;Ma=1;var t=Object.prototype.hasOwnProperty;return Oa=function(e){var r=e.length,n=new e.constructor(r);return r&&"string"==typeof e[0]&&t.call(e,"index")&&(n.index=e.index,n.input=e.input),n}}(),p=ou(),d=iu(),b=_t(),v=Dt(),g=au(),y=Xo(),m=uu(),w=Go(),_=ha(),x="[object Arguments]",j="[object Function]",O="[object Object]",M={};return M[x]=M["[object Array]"]=M["[object ArrayBuffer]"]=M["[object DataView]"]=M["[object Boolean]"]=M["[object Date]"]=M["[object Float32Array]"]=M["[object Float64Array]"]=M["[object Int8Array]"]=M["[object Int16Array]"]=M["[object Int32Array]"]=M["[object Map]"]=M["[object Number]"]=M[O]=M["[object RegExp]"]=M["[object Set]"]=M["[object String]"]=M["[object Symbol]"]=M["[object Uint8Array]"]=M["[object Uint8ClampedArray]"]=M["[object Uint16Array]"]=M["[object Uint32Array]"]=!0,M["[object Error]"]=M[j]=M["[object WeakMap]"]=!1,Ka=function S(k,C,A,E,R,P){var T,L=1&C,U=2&C,F=4&C;if(A&&(T=R?A(k,E,R,P):A(k)),void 0!==T)return T;if(!y(k))return k;var D=b(k);if(D){if(T=h(k),!L)return a(k,T)}else{var z=l(k),B=z==j||"[object GeneratorFunction]"==z;if(v(k))return i(k,L);if(z==O||z==x||B&&!R){if(T=U||B?{}:d(k),!L)return U?s(k,o(T,k)):u(k,n(T,k))}else{if(!M[z])return R?k:{};T=p(k,z,L)}}P||(P=new t);var H=P.get(k);if(H)return H;P.set(k,T),m(k)?k.forEach(function(t){T.add(S(t,C,A,t,k,P))}):g(k)&&k.forEach(function(t,e){T.set(e,S(t,C,A,e,k,P))});var W=D?void 0:(F?U?f:c:U?_:w)(k);return e(W||k,function(t,e){W&&(t=k[e=t]),r(T,e,S(t,C,A,e,k,P))}),T},Ka}function cu(){if(tu)return ua;tu=1,Object.defineProperty(ua,"__esModule",{value:!0}),ua.mergeClasses=void 0;var t=n(Qo()),e=n(function(){if(Za)return Qa;Za=1;var t=su();return Qa=function(e){return t(e,5)}}()),r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};function n(t){return t&&t.__esModule?t:{default:t}}var o=ua.mergeClasses=function(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=n.default&&(0,e.default)(n.default)||{};return o.map(function(e){var o=n[e];return o&&(0,t.default)(o,function(t,e){i[e]||(i[e]={}),i[e]=r({},i[e],o[e])}),e}),i};return ua.default=o,ua}var fu,lu={};var hu,pu={};function du(){if(hu)return pu;hu=1,Object.defineProperty(pu,"__esModule",{value:!0}),pu.hover=void 0;var t,r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},n=(t=e)&&t.__esModule?t:{default:t};function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var i=pu.hover=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(i){function a(){var i,u,s;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a);for(var c=arguments.length,f=Array(c),l=0;l<c;l++)f[l]=arguments[l];return u=s=o(this,(i=a.__proto__||Object.getPrototypeOf(a)).call.apply(i,[this].concat(f))),s.state={hover:!1},s.handleMouseOver=function(){return s.setState({hover:!0})},s.handleMouseOut=function(){return s.setState({hover:!1})},s.render=function(){return n.default.createElement(e,{onMouseOver:s.handleMouseOver,onMouseOut:s.handleMouseOut},n.default.createElement(t,r({},s.props,s.state)))},o(s,u)}return function(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)}(a,i),a}(n.default.Component)};return pu.default=i,pu}var bu,vu={};function gu(){if(bu)return vu;bu=1,Object.defineProperty(vu,"__esModule",{value:!0}),vu.active=void 0;var t,r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},n=(t=e)&&t.__esModule?t:{default:t};function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var i=vu.active=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(i){function a(){var i,u,s;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a);for(var c=arguments.length,f=Array(c),l=0;l<c;l++)f[l]=arguments[l];return u=s=o(this,(i=a.__proto__||Object.getPrototypeOf(a)).call.apply(i,[this].concat(f))),s.state={active:!1},s.handleMouseDown=function(){return s.setState({active:!0})},s.handleMouseUp=function(){return s.setState({active:!1})},s.render=function(){return n.default.createElement(e,{onMouseDown:s.handleMouseDown,onMouseUp:s.handleMouseUp},n.default.createElement(t,r({},s.props,s.state)))},o(s,u)}return function(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)}(a,i),a}(n.default.Component)};return vu.default=i,vu}var yu,mu,wu={};var _u=function(){if(mu)return bt;mu=1,Object.defineProperty(bt,"__esModule",{value:!0}),bt.ReactCSS=bt.loop=bt.handleActive=bt.handleHover=bt.hover=void 0;var t=u(Hi()),e=u(cu()),r=function(){if(fu)return lu;fu=1,Object.defineProperty(lu,"__esModule",{value:!0}),lu.autoprefix=void 0;var t,e=Qo(),r=(t=e)&&t.__esModule?t:{default:t},n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},o={borderRadius:function(t){return{msBorderRadius:t,MozBorderRadius:t,OBorderRadius:t,WebkitBorderRadius:t,borderRadius:t}},boxShadow:function(t){return{msBoxShadow:t,MozBoxShadow:t,OBoxShadow:t,WebkitBoxShadow:t,boxShadow:t}},userSelect:function(t){return{WebkitTouchCallout:t,KhtmlUserSelect:t,MozUserSelect:t,msUserSelect:t,WebkitUserSelect:t,userSelect:t}},flex:function(t){return{WebkitBoxFlex:t,MozBoxFlex:t,WebkitFlex:t,msFlex:t,flex:t}},flexBasis:function(t){return{WebkitFlexBasis:t,flexBasis:t}},justifyContent:function(t){return{WebkitJustifyContent:t,justifyContent:t}},transition:function(t){return{msTransition:t,MozTransition:t,OTransition:t,WebkitTransition:t,transition:t}},transform:function(t){return{msTransform:t,MozTransform:t,OTransform:t,WebkitTransform:t,transform:t}},absolute:function(t){var e=t&&t.split(" ");return{position:"absolute",top:e&&e[0],right:e&&e[1],bottom:e&&e[2],left:e&&e[3]}},extend:function(t,e){return e[t]||{extend:t}}},i=lu.autoprefix=function(t){var e={};return(0,r.default)(t,function(t,i){var a={};(0,r.default)(t,function(t,e){var r=o[e];r?a=n({},a,r(t)):a[e]=t}),e[i]=a}),e};return lu.default=i,lu}(),n=u(r),o=u(du()),i=u(gu()),a=u((yu||(yu=1,Object.defineProperty(wu,"__esModule",{value:!0}),wu.default=function(t,e){var r={},n=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];r[t]=e};return 0===t&&n("first-child"),t===e-1&&n("last-child"),(0===t||t%2==0)&&n("even"),1===Math.abs(t%2)&&n("odd"),n("nth-child",t),r}),wu));function u(t){return t&&t.__esModule?t:{default:t}}bt.hover=o.default,bt.handleHover=o.default,bt.handleActive=i.default,bt.loop=a.default;var s=bt.ReactCSS=function(r){for(var o=arguments.length,i=Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];var u=(0,t.default)(i),s=(0,e.default)(r,u);return(0,n.default)(s)};return bt.default=s,bt}();const xu=n.getDefaultExportFromCjs(_u);var ju={},Ou=function(t,e,r,n){var o=t+"-"+e+"-"+r+(n?"-server":"");if(ju[o])return ju[o];var i=function(t,e,r,n){if("undefined"==typeof document&&!n)return null;var o=n?new n:document.createElement("canvas");o.width=2*r,o.height=2*r;var i=o.getContext("2d");return i?(i.fillStyle=t,i.fillRect(0,0,o.width,o.height),i.fillStyle=e,i.fillRect(0,0,r,r),i.translate(r,r),i.fillRect(0,0,r,r),o.toDataURL()):null}(t,e,r,n);return ju[o]=i,i},Mu=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Su=function(t){var r=t.white,n=t.grey,o=t.size,i=t.renderers,a=t.borderRadius,u=t.boxShadow,s=t.children,c=xu({default:{grid:{borderRadius:a,boxShadow:u,absolute:"0px 0px 0px 0px",background:"url("+Ou(r,n,o,i.canvas)+") center left"}}});return e.isValidElement(s)?e.cloneElement(s,Mu({},s.props,{style:Mu({},s.props.style,c.grid)})):e.createElement("div",{style:c.grid})};Su.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var ku=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Cu=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();function Au(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var Eu=function(){function t(){var e,r,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=n=Au(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),n.handleChange=function(t){var e=function(t,e,r,n,o){var i=o.clientWidth,a=o.clientHeight,u="number"==typeof t.pageX?t.pageX:t.touches[0].pageX,s="number"==typeof t.pageY?t.pageY:t.touches[0].pageY,c=u-(o.getBoundingClientRect().left+window.pageXOffset),f=s-(o.getBoundingClientRect().top+window.pageYOffset);if("vertical"===r){var l=void 0;if(l=f<0?0:f>a?1:Math.round(100*f/a)/100,e.a!==l)return{h:e.h,s:e.s,l:e.l,a:l,source:"rgb"}}else{var h=void 0;if(n!==(h=c<0?0:c>i?1:Math.round(100*c/i)/100))return{h:e.h,s:e.s,l:e.l,a:h,source:"rgb"}}return null}(t,n.props.hsl,n.props.direction,n.props.a,n.container);e&&"function"==typeof n.props.onChange&&n.props.onChange(e,t)},n.handleMouseDown=function(t){n.handleChange(t),window.addEventListener("mousemove",n.handleChange),window.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleChange),window.removeEventListener("mouseup",n.handleMouseUp)},Au(n,r)}return function(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)}(t,e.PureComponent||e.Component),Cu(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var t=this,r=this.props.rgb,n=xu({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+r.r+","+r.g+","+r.b+", 0) 0%,\n rgba("+r.r+","+r.g+","+r.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:100*r.a+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+r.r+","+r.g+","+r.b+", 0) 0%,\n rgba("+r.r+","+r.g+","+r.b+", 1) 100%)"},pointer:{left:0,top:100*r.a+"%"}},overwrite:ku({},this.props.style)},{vertical:"vertical"===this.props.direction,overwrite:!0});return e.createElement("div",{style:n.alpha},e.createElement("div",{style:n.checkboard},e.createElement(Su,{renderers:this.props.renderers})),e.createElement("div",{style:n.gradient}),e.createElement("div",{style:n.container,ref:function(e){return t.container=e},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},e.createElement("div",{style:n.pointer},this.props.pointer?e.createElement(this.props.pointer,this.props):e.createElement("div",{style:n.slider}))))}}]),t}(),Ru=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();var Pu=[38,40],Tu=1,Lu=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.handleBlur=function(){r.state.blurValue&&r.setState({value:r.state.blurValue,blurValue:null})},r.handleChange=function(t){r.setUpdatedValue(t.target.value,t)},r.handleKeyDown=function(t){var e,n=function(t){return Number(String(t).replace(/%/g,""))}(t.target.value);if(!isNaN(n)&&(e=t.keyCode,Pu.indexOf(e)>-1)){var o=r.getArrowOffset(),i=38===t.keyCode?n+o:n-o;r.setUpdatedValue(i,t)}},r.handleDrag=function(t){if(r.props.dragLabel){var e=Math.round(r.props.value+t.movementX);e>=0&&e<=r.props.dragMax&&r.props.onChange&&r.props.onChange(r.getValueObjectWithLabel(e),t)}},r.handleMouseDown=function(t){r.props.dragLabel&&(t.preventDefault(),r.handleDrag(t),window.addEventListener("mousemove",r.handleDrag),window.addEventListener("mouseup",r.handleMouseUp))},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleDrag),window.removeEventListener("mouseup",r.handleMouseUp)},r.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},r.inputId="rc-editable-input-"+Tu++,r}return function(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)}(t,e.PureComponent||e.Component),Ru(t,[{key:"componentDidUpdate",value:function(t,e){this.props.value===this.state.value||t.value===this.props.value&&e.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(t){return function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}({},this.props.label,t)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function(t,e){var r=this.props.label?this.getValueObjectWithLabel(t):t;this.props.onChange&&this.props.onChange(r,e),this.setState({value:t})}},{key:"render",value:function(){var t=this,r=xu({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 e.createElement("div",{style:r.wrap},e.createElement("input",{id:this.inputId,style:r.input,ref:function(e){return t.input=e},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?e.createElement("label",{htmlFor:this.inputId,style:r.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(),Uu=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();function Fu(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var Du=function(){function t(){var e,r,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=n=Fu(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),n.handleChange=function(t){var e=function(t,e,r,n){var o=n.clientWidth,i=n.clientHeight,a="number"==typeof t.pageX?t.pageX:t.touches[0].pageX,u="number"==typeof t.pageY?t.pageY:t.touches[0].pageY,s=a-(n.getBoundingClientRect().left+window.pageXOffset),c=u-(n.getBoundingClientRect().top+window.pageYOffset);if("vertical"===e){var f=void 0;if(f=c<0?359:c>i?0:360*(-100*c/i+100)/100,r.h!==f)return{h:f,s:r.s,l:r.l,a:r.a,source:"hsl"}}else{var l=void 0;if(l=s<0?0:s>o?359:100*s/o*360/100,r.h!==l)return{h:l,s:r.s,l:r.l,a:r.a,source:"hsl"}}return null}(t,n.props.direction,n.props.hsl,n.container);e&&"function"==typeof n.props.onChange&&n.props.onChange(e,t)},n.handleMouseDown=function(t){n.handleChange(t),window.addEventListener("mousemove",n.handleChange),window.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},Fu(n,r)}return function(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)}(t,e.PureComponent||e.Component),Uu(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var t=this,r=this.props.direction,n=void 0===r?"horizontal":r,o=xu({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:100*this.props.hsl.h/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-100*this.props.hsl.h/360+100+"%"}}},{vertical:"vertical"===n});return e.createElement("div",{style:o.hue},e.createElement("div",{className:"hue-"+n,style:o.container,ref:function(e){return t.container=e},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},e.createElement("style",null,"\n .hue-horizontal {\n background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n\n .hue-vertical {\n background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n "),e.createElement("div",{style:o.pointer},this.props.pointer?e.createElement(this.props.pointer,this.props):e.createElement("div",{style:o.slider}))))}}]),t}(),zu="object"==typeof global&&global&&global.Object===Object&&global,Bu="object"==typeof self&&self&&self.Object===Object&&self,Hu=zu||Bu||Function("return this")(),Wu=Hu.Symbol,$u=Object.prototype,Nu=$u.hasOwnProperty,Iu=$u.toString,Vu=Wu?Wu.toStringTag:void 0;var Xu=Object.prototype.toString;var qu=Wu?Wu.toStringTag:void 0;function Yu(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":qu&&qu in Object(t)?function(t){var e=Nu.call(t,Vu),r=t[Vu];try{t[Vu]=void 0;var n=!0}catch(t){}var o=Iu.call(t);return n&&(e?t[Vu]=r:delete t[Vu]),o}(t):function(t){return Xu.call(t)}(t)}function Gu(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}i.string,i.oneOf([0,1,2,3,4,5]),i.number,i.object;var Ku=function(){return Hu.Date.now()},Ju=/\s/;var Qu=/^\s+/;function Zu(t){return t?t.slice(0,function(t){for(var e=t.length;e--&&Ju.test(t.charAt(e)););return e}(t)+1).replace(Qu,""):t}var ts=/^[-+]0x[0-9a-f]+$/i,es=/^0b[01]+$/i,rs=/^0o[0-7]+$/i,ns=parseInt;function os(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return null!=t&&"object"==typeof t}(t)&&"[object Symbol]"==Yu(t)}(t))return NaN;if(Gu(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Gu(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Zu(t);var r=es.test(t);return r||rs.test(t)?ns(t.slice(2),r?2:8):ts.test(t)?NaN:+t}var is=Math.max,as=Math.min;function us(t,e,r){var n,o,i,a,u,s,c=0,f=!1,l=!1,h=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function p(e){var r=n,i=o;return n=o=void 0,c=e,a=t.apply(i,r)}function d(t){var r=t-s;return void 0===s||r>=e||r<0||l&&t-c>=i}function b(){var t=Ku();if(d(t))return v(t);u=setTimeout(b,function(t){var r=e-(t-s);return l?as(r,i-(t-c)):r}(t))}function v(t){return u=void 0,h&&n?p(t):(n=o=void 0,a)}function g(){var t=Ku(),r=d(t);if(n=arguments,o=this,s=t,r){if(void 0===u)return function(t){return c=t,u=setTimeout(b,e),f?p(t):a}(s);if(l)return clearTimeout(u),u=setTimeout(b,e),p(s)}return void 0===u&&(u=setTimeout(b,e)),a}return e=os(e)||0,Gu(r)&&(f=!!r.leading,i=(l="maxWait"in r)?is(os(r.maxWait)||0,e):i,h="trailing"in r?!!r.trailing:h),g.cancel=function(){void 0!==u&&clearTimeout(u),c=0,n=s=o=u=void 0},g.flush=function(){return void 0===u?a:v(Ku())},g}var ss=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();!function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.handleChange=function(t){"function"==typeof r.props.onChange&&r.throttle(r.props.onChange,function(t,e,r){var n=r.getBoundingClientRect(),o=n.width,i=n.height,a="number"==typeof t.pageX?t.pageX:t.touches[0].pageX,u="number"==typeof t.pageY?t.pageY:t.touches[0].pageY,s=a-(r.getBoundingClientRect().left+window.pageXOffset),c=u-(r.getBoundingClientRect().top+window.pageYOffset);s<0?s=0:s>o&&(s=o),c<0?c=0:c>i&&(c=i);var f=s/o,l=1-c/i;return{h:e.h,s:f,v:l,a:e.a,source:"hsv"}}(t,r.props.hsl,r.container),t)},r.handleMouseDown=function(t){r.handleChange(t);var e=r.getContainerRenderWindow();e.addEventListener("mousemove",r.handleChange),e.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r.throttle=function(t,e,r){var n=!0,o=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return Gu(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),us(t,e,{leading:n,maxWait:e,trailing:o})}(function(t,e,r){t(e,r)},50),r}(function(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)})(t,e.PureComponent||e.Component),ss(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var t=this.container,e=window;!e.document.contains(t)&&e.parent!==e;)e=e.parent;return e}},{key:"unbindEventListeners",value:function(){var t=this.getContainerRenderWindow();t.removeEventListener("mousemove",this.handleChange),t.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var t=this,r=this.props.style||{},n=r.color,o=r.white,i=r.black,a=r.pointer,u=r.circle,s=xu({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-100*this.props.hsv.v+100+"%",left:100*this.props.hsv.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:"0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n 0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:n,white:o,black:i,pointer:a,circle:u}},{custom:!!this.props.style});return e.createElement("div",{style:s.color,ref:function(e){return t.container=e},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},e.createElement("style",null,"\n .saturation-white {\n background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n }\n .saturation-black {\n background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n background: linear-gradient(to top, #000, rgba(0,0,0,0));\n }\n "),e.createElement("div",{style:s.white,className:"saturation-white"},e.createElement("div",{style:s.black,className:"saturation-black"}),e.createElement("div",{style:s.pointer},this.props.pointer?e.createElement(this.props.pointer,this.props):e.createElement("div",{style:s.circle}))))}}])}();var cs=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},fs=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();function ls(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var hs=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};!function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";(function(){function n(){var t,e,r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=r=ls(this,(t=n.__proto__||Object.getPrototypeOf(n)).call.apply(t,[this].concat(i))),r.state={focus:!1},r.handleFocus=function(){return r.setState({focus:!0})},r.handleBlur=function(){return r.setState({focus:!1})},ls(r,e)}(function(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)})(n,e.Component),fs(n,[{key:"render",value:function(){return e.createElement(r,{onFocus:this.handleFocus,onBlur:this.handleBlur},e.createElement(t,cs({},this.props,this.state)))}}])})()}(function(t){var r=t.color,n=t.style,o=t.onClick,i=void 0===o?function(){}:o,a=t.onHover,u=t.title,s=void 0===u?r:u,c=t.children,f=t.focus,l=t.focusStyle,h="transparent"===r,p=xu({default:{swatch:hs({background:r,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},n,f?void 0===l?{}:l:{})}}),d={};return a&&(d.onMouseOver=function(t){return a(r,t)}),e.createElement("div",hs({style:p.swatch,onClick:function(t){return i(r,t)},title:s,tabIndex:0,onKeyDown:function(t){return 13===t.keyCode&&i(r,t)}},d),c,h&&e.createElement(Su,{borderRadius:p.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))});var ps=function(t){var r=t.onChange,n=t.rgb,o=t.hsl,i=t.hex,a=t.disableAlpha,u=xu({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:a}),s=function(t,e){t.hex?function(t){if("transparent"===t)return!0;var e="#"===String(t).charAt(0)?1:0;return t.length!==4+e&&t.length<7+e&&c(t).isValid()}(t.hex)&&r({hex:t.hex,source:"hex"},e):t.r||t.g||t.b?r({r:t.r||n.r,g:t.g||n.g,b:t.b||n.b,a:n.a,source:"rgb"},e):t.a&&(t.a<0?t.a=0:t.a>100&&(t.a=100),t.a/=100,r({h:o.h,s:o.s,l:o.l,a:t.a,source:"rgb"},e))};return e.createElement("div",{style:u.fields,className:"flexbox-fix"},e.createElement("div",{style:u.double},e.createElement(Lu,{style:{input:u.input,label:u.label},label:"hex",value:i.replace("#",""),onChange:s})),e.createElement("div",{style:u.single},e.createElement(Lu,{style:{input:u.input,label:u.label},label:"r",value:n.r,onChange:s,dragLabel:"true",dragMax:"255"})),e.createElement("div",{style:u.single},e.createElement(Lu,{style:{input:u.input,label:u.label},label:"g",value:n.g,onChange:s,dragLabel:"true",dragMax:"255"})),e.createElement("div",{style:u.single},e.createElement(Lu,{style:{input:u.input,label:u.label},label:"b",value:n.b,onChange:s,dragLabel:"true",dragMax:"255"})),e.createElement("div",{style:u.alpha},e.createElement(Lu,{style:{input:u.input,label:u.label},label:"a",value:Math.round(100*n.a),onChange:s,dragLabel:"true",dragMax:"100"})))};class ds extends(e.PureComponent||e.Component){constructor(t){super(t),this.handleChange=t=>{"function"==typeof this.props.onChange&&this.throttle(this.props.onChange,((t,e,r)=>{var n=r.getBoundingClientRect(),o=n.width,i=n.height,a="number"==typeof t.pageX?t.pageX:t.touches[0].pageX,u="number"==typeof t.pageY?t.pageY:t.touches[0].pageY,s=a-(r.getBoundingClientRect().left+window.pageXOffset),c=u-(r.getBoundingClientRect().top+window.pageYOffset);s<0?s=0:s>o&&(s=o),c<0?c=0:c>i&&(c=i);var f=s/o,l=1-c/i;return{h:e.h,s:f,v:l,a:e.a,source:"hsv"}})(t,this.props.hsl,this.container),t),t.preventDefault()},this.handleMouseDown=t=>{this.handleChange(t);const e=this.getContainerRenderWindow();e.addEventListener("mousemove",this.handleChange),e.addEventListener("mouseup",this.handleMouseUp)},this.handleMouseUp=t=>{t.preventDefault(),this.unbindEventListeners()},this.throttle=function(t,e,r){let n,o,i,a;var u=0;r||(r={});let s=function(){u=!1===r.leading?0:Date.now(),n=null,a=t.apply(o,i),n||(o=i=null)},c=function(){var c=Date.now();u||!1!==r.leading||(u=c);var f=e-(c-u);return o=this,i=arguments,f<=0||f>e?(n&&(clearTimeout(n),n=null),u=c,a=t.apply(o,i),n||(o=i=null)):n||!1===r.trailing||(n=setTimeout(s,f)),a};return c.cancel=function(){clearTimeout(n),u=0,n=o=i=null},c}((t,e,r)=>{t(e,r)},50)}componentWillUnmount(){this.throttle.cancel(),this.unbindEventListeners()}getContainerRenderWindow(){const{container:t}=this;let e=window;for(;!e.document.contains(t)&&e.parent!==e;)e=e.parent;return e}unbindEventListeners(){const t=this.getContainerRenderWindow();t.removeEventListener("mousemove",this.handleChange),t.removeEventListener("mouseup",this.handleMouseUp)}render(){const{color:e,white:r,black:n,pointer:o,circle:i}=this.props||{},a={position:"absolute",top:"0px",left:"0px",right:"0px",bottom:"0px"},u={color:{...a,backgroundColor:`hsl(${this.props.hsl?.h},100%, 50%)`,borderRadius:this.props.style?.borderRadius},white:{...a,borderRadius:this.props.style?.borderRadius},black:{...a,boxShadow:this.props.style?.boxShadow,borderRadius:this.props.style?.borderRadius},pointer:{...a,top:-100*this.props.hsv?.v+100+"%",left:100*this.props.hsv?.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:"0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n 0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}};return t.jsxs("div",{style:u.color,ref:t=>this.container=t,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange,children:[t.jsx("style",{children:"\n .saturation-white {\n background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n }\n .saturation-black {\n background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n background: linear-gradient(to top, #000, rgba(0,0,0,0));\n }\n "}),t.jsxs("div",{style:u.white,className:"saturation-white",children:[t.jsx("div",{style:u.black,className:"saturation-black"}),t.jsx("div",{style:u.pointer,children:this.props.pointer?t.jsx(this.props.pointer,{...this.props}):t.jsx("div",{style:u.circle})})]})]})}}const bs=(t,e=null)=>{const r=t.hex?c(t.hex):c(t||"transparent"),n=r.toHsl(),o=r.toHsv(),i=r.toRgb(),a=r.toHex();return 0===n.s&&(n.h=e??0,o.h=e??0),{hsl:n,hex:"#"+a,rgb:i,hsv:o,source:t.source}},vs=e.memo(o=>{const{selectedColor:i,onColorChange:a,renderers:u,disableAlpha:s=!1,style:c=n.yt.EmptyCssProperties,...f}=o,l=n.useTheme(),[h,p]=e.useState(()=>bs(i)),[d,b]=e.useState(h.hsl.h??0),v=e.useCallback(t=>{let e=bs(t,d);return b(e.hsl.h??0),p(e),e},[d]),g=e.useCallback(t=>{const e=v(t),r=`rgba(${e.rgb.r},${e.rgb.g},${e.rgb.b},${s?1:e.rgb.a})`;a?.(r)},[a,v,s]);e.useLayoutEffect(()=>{v(i)},[i,v]);const y=t.jsx("div",{style:{position:"relative",minHeight:"10px",maxHeight:"10px",width:"100%"},children:t.jsx(Eu,{style:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},rgb:h.rgb,hsl:h.hsl,renderers:u,onChange:g})});return t.jsxs("div",{style:{display:"flex",flexDirection:"column",...c},...f,children:[t.jsx("div",{style:{width:"100%",flex:"1 1 100%",position:"relative",overflow:"hidden"},children:t.jsx(ds,{style:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hsl:h.hsl,hsv:h.hsv,onChange:g})}),t.jsxs("div",{style:{marginTop:"4px",display:"flex",gap:"4px"},children:[t.jsxs("div",{style:{flex:"1",display:"flex",flexDirection:s?"row":"column",justifyContent:"space-between",alignItems:"center"},children:[t.jsx("div",{style:{position:"relative",minHeight:"10px",maxHeight:"10px",width:"100%"},children:t.jsx(Du,{style:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hsl:h.hsl,onChange:g})}),s?null:y]}),t.jsxs("div",{style:{minWidth:"24px",maxWidth:"24px",minHeight:"24px",maxHeight:"24px",position:"relative",borderRadius:"1px",overflow:"hidden"},children:[t.jsx(n.Checkboard,{grey:l.palette.text.icon??l.palette.action.active}),t.jsx("div",{style:{position:"absolute",height:"100%",width:"100%",background:`rgba(${h.rgb.r},${h.rgb.g},${h.rgb.b},${s?1:h.rgb.a})`,boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}})]})]}),t.jsx(r.Box,{sx:{marginBottom:"4px","& label":{fontFamily:t=>`${t.typography.fontFamily} !important`,color:t=>`${t.palette.text.secondary} !important`},"& *":{fontFamily:t=>`${t.typography.fontFamily} !important`,userSelect:"none"},"& input":{paddingLeft:t=>`${t.spacing(.5)} !important`,paddingRight:t=>`${t.spacing(.5)} !important`,outline:"none",boxSizing:"border-box",width:"100% !important",textAlign:"center"}},children:t.jsx(ps,{rgb:h.rgb,hsl:h.hsl,hex:h.hex,disableAlpha:s,onChange:g})})]})});exports.CustomColorPanel=vs,exports.default=vs,exports.toState=bs;
|
|
7
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),e=require("react"),r=require("@mui/material"),n=require("./Brij8vl9GntSQBer.cjs");var o=n.requirePropTypes();const i=n.getDefaultExportFromCjs(o);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}var u=/^\s+/,s=/\s+$/;function c(t,e){if(e=e||{},(t=t||"")instanceof c)return t;if(!(this instanceof c))return new c(t,e);var r=function(t){var e={r:0,g:0,b:0},r=1,n=null,o=null,i=null,c=!1,f=!1;"string"==typeof t&&(t=function(t){t=t.replace(u,"").replace(s,"").toLowerCase();var e,r=!1;if(S[t])t=S[t],r=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};if(e=B.rgb.exec(t))return{r:e[1],g:e[2],b:e[3]};if(e=B.rgba.exec(t))return{r:e[1],g:e[2],b:e[3],a:e[4]};if(e=B.hsl.exec(t))return{h:e[1],s:e[2],l:e[3]};if(e=B.hsla.exec(t))return{h:e[1],s:e[2],l:e[3],a:e[4]};if(e=B.hsv.exec(t))return{h:e[1],s:e[2],v:e[3]};if(e=B.hsva.exec(t))return{h:e[1],s:e[2],v:e[3],a:e[4]};if(e=B.hex8.exec(t))return{r:R(e[1]),g:R(e[2]),b:R(e[3]),a:U(e[4]),format:r?"name":"hex8"};if(e=B.hex6.exec(t))return{r:R(e[1]),g:R(e[2]),b:R(e[3]),format:r?"name":"hex"};if(e=B.hex4.exec(t))return{r:R(e[1]+""+e[1]),g:R(e[2]+""+e[2]),b:R(e[3]+""+e[3]),a:U(e[4]+""+e[4]),format:r?"name":"hex8"};if(e=B.hex3.exec(t))return{r:R(e[1]+""+e[1]),g:R(e[2]+""+e[2]),b:R(e[3]+""+e[3]),format:r?"name":"hex"};return!1}(t));"object"==a(t)&&(H(t.r)&&H(t.g)&&H(t.b)?(l=t.r,h=t.g,p=t.b,e={r:255*A(l,255),g:255*A(h,255),b:255*A(p,255)},c=!0,f="%"===String(t.r).substr(-1)?"prgb":"rgb"):H(t.h)&&H(t.s)&&H(t.v)?(n=T(t.s),o=T(t.v),e=function(t,e,r){t=6*A(t,360),e=A(e,100),r=A(r,100);var n=Math.floor(t),o=t-n,i=r*(1-e),a=r*(1-o*e),u=r*(1-(1-o)*e),s=n%6,c=[r,a,i,i,u,r][s],f=[u,r,r,a,i,i][s],l=[i,i,u,r,r,a][s];return{r:255*c,g:255*f,b:255*l}}(t.h,n,o),c=!0,f="hsv"):H(t.h)&&H(t.s)&&H(t.l)&&(n=T(t.s),i=T(t.l),e=function(t,e,r){var n,o,i;function a(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}if(t=A(t,360),e=A(e,100),r=A(r,100),0===e)n=o=i=r;else{var u=r<.5?r*(1+e):r+e-r*e,s=2*r-u;n=a(s,u,t+1/3),o=a(s,u,t),i=a(s,u,t-1/3)}return{r:255*n,g:255*o,b:255*i}}(t.h,n,i),c=!0,f="hsl"),t.hasOwnProperty("a")&&(r=t.a));var l,h,p;return r=C(r),{ok:c,format:t.format||f,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:r}}(t);this._originalInput=t,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||r.format,this._gradientType=e.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=r.ok}function f(t,e,r){t=A(t,255),e=A(e,255),r=A(r,255);var n,o,i=Math.max(t,e,r),a=Math.min(t,e,r),u=(i+a)/2;if(i==a)n=o=0;else{var s=i-a;switch(o=u>.5?s/(2-i-a):s/(i+a),i){case t:n=(e-r)/s+(e<r?6:0);break;case e:n=(r-t)/s+2;break;case r:n=(t-e)/s+4}n/=6}return{h:n,s:o,l:u}}function l(t,e,r){t=A(t,255),e=A(e,255),r=A(r,255);var n,o,i=Math.max(t,e,r),a=Math.min(t,e,r),u=i,s=i-a;if(o=0===i?0:s/i,i==a)n=0;else{switch(i){case t:n=(e-r)/s+(e<r?6:0);break;case e:n=(r-t)/s+2;break;case r:n=(t-e)/s+4}n/=6}return{h:n,s:o,v:u}}function h(t,e,r,n){var o=[P(Math.round(t).toString(16)),P(Math.round(e).toString(16)),P(Math.round(r).toString(16))];return n&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function p(t,e,r,n){return[P(L(n)),P(Math.round(t).toString(16)),P(Math.round(e).toString(16)),P(Math.round(r).toString(16))].join("")}function d(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.s-=e/100,r.s=E(r.s),c(r)}function b(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.s+=e/100,r.s=E(r.s),c(r)}function v(t){return c(t).desaturate(100)}function g(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.l+=e/100,r.l=E(r.l),c(r)}function y(t,e){e=0===e?0:e||10;var r=c(t).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(-e/100*255))),r.g=Math.max(0,Math.min(255,r.g-Math.round(-e/100*255))),r.b=Math.max(0,Math.min(255,r.b-Math.round(-e/100*255))),c(r)}function m(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.l-=e/100,r.l=E(r.l),c(r)}function w(t,e){var r=c(t).toHsl(),n=(r.h+e)%360;return r.h=n<0?360+n:n,c(r)}function _(t){var e=c(t).toHsl();return e.h=(e.h+180)%360,c(e)}function x(t,e){if(isNaN(e)||e<=0)throw new Error("Argument to polyad must be a positive number");for(var r=c(t).toHsl(),n=[c(t)],o=360/e,i=1;i<e;i++)n.push(c({h:(r.h+i*o)%360,s:r.s,l:r.l}));return n}function j(t){var e=c(t).toHsl(),r=e.h;return[c(t),c({h:(r+72)%360,s:e.s,l:e.l}),c({h:(r+216)%360,s:e.s,l:e.l})]}function O(t,e,r){e=e||6,r=r||30;var n=c(t).toHsl(),o=360/r,i=[c(t)];for(n.h=(n.h-(o*e>>1)+720)%360;--e;)n.h=(n.h+o)%360,i.push(c(n));return i}function M(t,e){e=e||6;for(var r=c(t).toHsv(),n=r.h,o=r.s,i=r.v,a=[],u=1/e;e--;)a.push(c({h:n,s:o,v:i})),i=(i+u)%1;return a}c.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,e,r,n=this.toRgb();return t=n.r/255,e=n.g/255,r=n.b/255,.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},setAlpha:function(t){return this._a=C(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=l(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=l(this._r,this._g,this._b),e=Math.round(360*t.h),r=Math.round(100*t.s),n=Math.round(100*t.v);return 1==this._a?"hsv("+e+", "+r+"%, "+n+"%)":"hsva("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var t=f(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=f(this._r,this._g,this._b),e=Math.round(360*t.h),r=Math.round(100*t.s),n=Math.round(100*t.l);return 1==this._a?"hsl("+e+", "+r+"%, "+n+"%)":"hsla("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(t){return h(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,e,r,n,o){var i=[P(Math.round(t).toString(16)),P(Math.round(e).toString(16)),P(Math.round(r).toString(16)),P(L(n))];if(o&&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))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return 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)&&(k[h(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+p(this._r,this._g,this._b,this._a),r=e,n=this._gradientType?"GradientType = 1, ":"";if(t){var o=c(t);r="#"+p(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+e+",endColorstr="+r+")"},toString:function(t){var e=!!t;t=t||this._format;var r=!1,n=this._a<1&&this._a>=0;return e||!n||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(r=this.toRgbString()),"prgb"===t&&(r=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(r=this.toHexString()),"hex3"===t&&(r=this.toHexString(!0)),"hex4"===t&&(r=this.toHex8String(!0)),"hex8"===t&&(r=this.toHex8String()),"name"===t&&(r=this.toName()),"hsl"===t&&(r=this.toHslString()),"hsv"===t&&(r=this.toHsvString()),r||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return c(this.toString())},_applyModification:function(t,e){var r=t.apply(null,[this].concat([].slice.call(e)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(g,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(m,arguments)},desaturate:function(){return this._applyModification(d,arguments)},saturate:function(){return this._applyModification(b,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(w,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(O,arguments)},complement:function(){return this._applyCombination(_,arguments)},monochromatic:function(){return this._applyCombination(M,arguments)},splitcomplement:function(){return this._applyCombination(j,arguments)},triad:function(){return this._applyCombination(x,[3])},tetrad:function(){return this._applyCombination(x,[4])}},c.fromRatio=function(t,e){if("object"==a(t)){var r={};for(var n in t)t.hasOwnProperty(n)&&(r[n]="a"===n?t[n]:T(t[n]));t=r}return c(t,e)},c.equals=function(t,e){return!(!t||!e)&&c(t).toRgbString()==c(e).toRgbString()},c.random=function(){return c.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},c.mix=function(t,e,r){r=0===r?0:r||50;var n=c(t).toRgb(),o=c(e).toRgb(),i=r/100;return c({r:(o.r-n.r)*i+n.r,g:(o.g-n.g)*i+n.g,b:(o.b-n.b)*i+n.b,a:(o.a-n.a)*i+n.a})},c.readability=function(t,e){var r=c(t),n=c(e);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},c.isReadable=function(t,e,r){var n,o,i=c.readability(t,e);switch(o=!1,(n=function(t){var e,r;e=((t=t||{level:"AA",size:"small"}).level||"AA").toUpperCase(),r=(t.size||"small").toLowerCase(),"AA"!==e&&"AAA"!==e&&(e="AA");"small"!==r&&"large"!==r&&(r="small");return{level:e,size:r}}(r)).level+n.size){case"AAsmall":case"AAAlarge":o=i>=4.5;break;case"AAlarge":o=i>=3;break;case"AAAsmall":o=i>=7}return o},c.mostReadable=function(t,e,r){var n,o,i,a,u=null,s=0;o=(r=r||{}).includeFallbackColors,i=r.level,a=r.size;for(var f=0;f<e.length;f++)(n=c.readability(t,e[f]))>s&&(s=n,u=c(e[f]));return c.isReadable(t,u,{level:i,size:a})||!o?u:(r.includeFallbackColors=!1,c.mostReadable(t,["#fff","#000"],r))};var S=c.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"},k=c.hexNames=function(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}(S);function C(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function A(t,e){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var r=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(t);return t=Math.min(e,Math.max(0,parseFloat(t))),r&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function E(t){return Math.min(1,Math.max(0,t))}function R(t){return parseInt(t,16)}function P(t){return 1==t.length?"0"+t:""+t}function T(t){return t<=1&&(t=100*t+"%"),t}function L(t){return Math.round(255*parseFloat(t)).toString(16)}function U(t){return R(t)/255}var F,D,z,B=(D="[\\s|\\(]+("+(F="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+F+")[,|\\s]+("+F+")\\s*\\)?",z="[\\s|\\(]+("+F+")[,|\\s]+("+F+")[,|\\s]+("+F+")[,|\\s]+("+F+")\\s*\\)?",{CSS_UNIT:new RegExp(F),rgb:new RegExp("rgb"+D),rgba:new RegExp("rgba"+z),hsl:new RegExp("hsl"+D),hsla:new RegExp("hsla"+z),hsv:new RegExp("hsv"+D),hsva:new RegExp("hsva"+z),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 H(t){return!!B.CSS_UNIT.exec(t)}var W,$,N,I,V,X,q,Y,G,K,J,Q,Z,tt,et,rt,nt,ot,it,at,ut,st,ct,ft,lt,ht,pt,dt,bt={},vt={};function gt(){if($)return W;$=1;var t="object"==typeof n.commonjsGlobal&&n.commonjsGlobal&&n.commonjsGlobal.Object===Object&&n.commonjsGlobal;return W=t}function yt(){if(I)return N;I=1;var t=gt(),e="object"==typeof self&&self&&self.Object===Object&&self,r=t||e||Function("return this")();return N=r}function mt(){if(X)return V;X=1;var t=yt().Symbol;return V=t}function wt(){if(Q)return J;Q=1;var t=mt(),e=function(){if(Y)return q;Y=1;var t=mt(),e=Object.prototype,r=e.hasOwnProperty,n=e.toString,o=t?t.toStringTag:void 0;return q=function(t){var e=r.call(t,o),i=t[o];try{t[o]=void 0;var a=!0}catch(t){}var u=n.call(t);return a&&(e?t[o]=i:delete t[o]),u}}(),r=function(){if(K)return G;K=1;var t=Object.prototype.toString;return G=function(e){return t.call(e)}}(),n=t?t.toStringTag:void 0;return J=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":n&&n in Object(t)?e(t):r(t)}}function _t(){if(tt)return Z;tt=1;var t=Array.isArray;return Z=t}function xt(){if(rt)return et;return rt=1,et=function(t){return null!=t&&"object"==typeof t}}function jt(){if(st)return ut;st=1;var t=(at||(at=1,it=function(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),u=a.length;u--;){var s=a[t?u:++o];if(!1===r(i[s],s,i))break}return e}}),it),e=t();return ut=e}function Ot(){if(dt)return pt;dt=1;var t=function(){if(ht)return lt;ht=1;var t=wt(),e=xt();return lt=function(r){return e(r)&&"[object Arguments]"==t(r)}}(),e=xt(),r=Object.prototype,n=r.hasOwnProperty,o=r.propertyIsEnumerable,i=t(function(){return arguments}())?t:function(t){return e(t)&&n.call(t,"callee")&&!o.call(t,"callee")};return pt=i}var Mt,St,kt,Ct,At,Et,Rt,Pt,Tt,Lt,Ut,Ft={exports:{}};function Dt(){return kt||(kt=1,function(t,e){var r=yt(),n=St?Mt:(St=1,Mt=function(){return!1}),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o?r.Buffer:void 0,u=(a?a.isBuffer:void 0)||n;t.exports=u}(Ft,Ft.exports)),Ft.exports}function zt(){if(At)return Ct;At=1;var t=/^(?:0|[1-9]\d*)$/;return Ct=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}}function Bt(){if(Rt)return Et;Rt=1;return Et=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}}function Ht(){if(Ut)return Lt;return Ut=1,Lt=function(t){return function(e){return t(e)}}}var Wt,$t,Nt,It,Vt,Xt,qt,Yt,Gt,Kt,Jt,Qt,Zt,te,ee,re,ne,oe,ie,ae,ue,se,ce,fe,le,he,pe,de,be,ve,ge,ye,me,we,_e,xe,je,Oe,Me,Se,ke,Ce,Ae,Ee,Re,Pe,Te,Le,Ue,Fe,De,ze,Be,He,We,$e,Ne,Ie,Ve,Xe,qe,Ye,Ge,Ke,Je,Qe,Ze,tr,er,rr,nr,or,ir,ar,ur,sr,cr,fr,lr,hr,pr,dr,br,vr,gr,yr,mr,wr,_r,xr,jr,Or,Mr,Sr,kr,Cr,Ar,Er,Rr,Pr,Tr,Lr,Ur,Fr,Dr,zr,Br,Hr,Wr,$r,Nr,Ir,Vr,Xr,qr,Yr,Gr,Kr,Jr,Qr,Zr,tn,en,rn,nn,on,an,un,sn,cn,fn,ln,hn,pn,dn,bn,vn,gn,yn,mn,wn,_n,xn,jn,On,Mn,Sn,kn,Cn,An,En,Rn,Pn,Tn,Ln,Un,Fn,Dn,zn,Bn,Hn,Wn,$n,Nn,In,Vn,Xn,qn,Yn,Gn,Kn,Jn,Qn,Zn,to,eo,ro,no,oo,io,ao,uo,so,co,fo,lo,ho,po,bo,vo,go,yo,mo,wo,_o,xo,jo,Oo,Mo,So,ko,Co,Ao,Eo,Ro,Po,To,Lo,Uo,Fo,Do,zo,Bo={exports:{}};function Ho(){return Wt||(Wt=1,function(t,e){var r=gt(),n=e&&!e.nodeType&&e,o=n&&t&&!t.nodeType&&t,i=o&&o.exports===n&&r.process,a=function(){try{var t=o&&o.require&&o.require("util").types;return t||i&&i.binding&&i.binding("util")}catch(t){}}();t.exports=a}(Bo,Bo.exports)),Bo.exports}function Wo(){if(Nt)return $t;Nt=1;var t=function(){if(Tt)return Pt;Tt=1;var t=wt(),e=Bt(),r=xt(),n={};return n["[object Float32Array]"]=n["[object Float64Array]"]=n["[object Int8Array]"]=n["[object Int16Array]"]=n["[object Int32Array]"]=n["[object Uint8Array]"]=n["[object Uint8ClampedArray]"]=n["[object Uint16Array]"]=n["[object Uint32Array]"]=!0,n["[object Arguments]"]=n["[object Array]"]=n["[object ArrayBuffer]"]=n["[object Boolean]"]=n["[object DataView]"]=n["[object Date]"]=n["[object Error]"]=n["[object Function]"]=n["[object Map]"]=n["[object Number]"]=n["[object Object]"]=n["[object RegExp]"]=n["[object Set]"]=n["[object String]"]=n["[object WeakMap]"]=!1,Pt=function(o){return r(o)&&e(o.length)&&!!n[t(o)]}}(),e=Ht(),r=Ho(),n=r&&r.isTypedArray,o=n?e(n):t;return $t=o}function $o(){if(Vt)return It;Vt=1;var t=(ft||(ft=1,ct=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}),ct),e=Ot(),r=_t(),n=Dt(),o=zt(),i=Wo(),a=Object.prototype.hasOwnProperty;return It=function(u,s){var c=r(u),f=!c&&e(u),l=!c&&!f&&n(u),h=!c&&!f&&!l&&i(u),p=c||f||l||h,d=p?t(u.length,String):[],b=d.length;for(var v in u)!s&&!a.call(u,v)||p&&("length"==v||l&&("offset"==v||"parent"==v)||h&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||o(v,b))||d.push(v);return d}}function No(){if(qt)return Xt;qt=1;var t=Object.prototype;return Xt=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}}function Io(){if(Gt)return Yt;return Gt=1,Yt=function(t,e){return function(r){return t(e(r))}}}function Vo(){if(Zt)return Qt;Zt=1;var t=No(),e=function(){if(Jt)return Kt;Jt=1;var t=Io()(Object.keys,Object);return Kt=t}(),r=Object.prototype.hasOwnProperty;return Qt=function(n){if(!t(n))return e(n);var o=[];for(var i in Object(n))r.call(n,i)&&"constructor"!=i&&o.push(i);return o}}function Xo(){if(ee)return te;return ee=1,te=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}}function qo(){if(ne)return re;ne=1;var t=wt(),e=Xo();return re=function(r){if(!e(r))return!1;var n=t(r);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}}function Yo(){if(ie)return oe;ie=1;var t=qo(),e=Bt();return oe=function(r){return null!=r&&e(r.length)&&!t(r)}}function Go(){if(ue)return ae;ue=1;var t=$o(),e=Vo(),r=Yo();return ae=function(n){return r(n)?t(n):e(n)}}function Ko(){if(ce)return se;ce=1;var t=jt(),e=Go();return se=function(r,n){return r&&t(r,n,e)}}function Jo(){if(le)return fe;return le=1,fe=function(t){return t}}function Qo(){if(be)return de;be=1;var t=Ko(),e=function(){if(pe)return he;pe=1;var t=Jo();return he=function(e){return"function"==typeof e?e:t}}();return de=function(r,n){return r&&t(r,e(n))}}function Zo(){if(ge)return ve;ge=1;var t=Io()(Object.getPrototypeOf,Object);return ve=t}function ti(){if(_e)return we;return _e=1,we=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o},we}function ei(){if(Me)return Oe;return Me=1,Oe=function(t,e){return t===e||t!=t&&e!=e}}function ri(){if(ke)return Se;ke=1;var t=ei();return Se=function(e,r){for(var n=e.length;n--;)if(t(e[n][0],r))return n;return-1}}function ni(){if(De)return Fe;De=1;var t=je?xe:(je=1,xe=function(){this.__data__=[],this.size=0}),e=function(){if(Ae)return Ce;Ae=1;var t=ri(),e=Array.prototype.splice;return Ce=function(r){var n=this.__data__,o=t(n,r);return!(o<0||(o==n.length-1?n.pop():e.call(n,o,1),--this.size,0))},Ce}(),r=function(){if(Re)return Ee;Re=1;var t=ri();return Ee=function(e){var r=this.__data__,n=t(r,e);return n<0?void 0:r[n][1]},Ee}(),n=function(){if(Te)return Pe;Te=1;var t=ri();return Pe=function(e){return t(this.__data__,e)>-1}}(),o=function(){if(Ue)return Le;Ue=1;var t=ri();return Le=function(e,r){var n=this.__data__,o=t(n,e);return o<0?(++this.size,n.push([e,r])):n[o][1]=r,this},Le}();function i(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}return i.prototype.clear=t,i.prototype.delete=e,i.prototype.get=r,i.prototype.has=n,i.prototype.set=o,Fe=i}function oi(){if(Ge)return Ye;Ge=1;var t,e=function(){if(qe)return Xe;qe=1;var t=yt()["__core-js_shared__"];return Xe=t}(),r=(t=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||""))?"Symbol(src)_1."+t:"";return Ye=function(t){return!!r&&r in t}}function ii(){if(Je)return Ke;Je=1;var t=Function.prototype.toString;return Ke=function(e){if(null!=e){try{return t.call(e)}catch(t){}try{return e+""}catch(t){}}return""}}function ai(){if(nr)return rr;nr=1;var t=function(){if(Ze)return Qe;Ze=1;var t=qo(),e=oi(),r=Xo(),n=ii(),o=/^\[object .+?Constructor\]$/,i=Function.prototype,a=Object.prototype,u=i.toString,s=a.hasOwnProperty,c=RegExp("^"+u.call(s).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return Qe=function(i){return!(!r(i)||e(i))&&(t(i)?c:o).test(n(i))}}(),e=er?tr:(er=1,tr=function(t,e){return null==t?void 0:t[e]});return rr=function(r,n){var o=e(r,n);return t(o)?o:void 0}}function ui(){if(ir)return or;ir=1;var t=ai()(yt(),"Map");return or=t}function si(){if(ur)return ar;ur=1;var t=ai()(Object,"create");return ar=t}function ci(){if(mr)return yr;mr=1;var t=function(){if(cr)return sr;cr=1;var t=si();return sr=function(){this.__data__=t?t(null):{},this.size=0}}(),e=lr?fr:(lr=1,fr=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}),r=function(){if(pr)return hr;pr=1;var t=si(),e=Object.prototype.hasOwnProperty;return hr=function(r){var n=this.__data__;if(t){var o=n[r];return"__lodash_hash_undefined__"===o?void 0:o}return e.call(n,r)?n[r]:void 0}}(),n=function(){if(br)return dr;br=1;var t=si(),e=Object.prototype.hasOwnProperty;return dr=function(r){var n=this.__data__;return t?void 0!==n[r]:e.call(n,r)}}(),o=function(){if(gr)return vr;gr=1;var t=si();return vr=function(e,r){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=t&&void 0===r?"__lodash_hash_undefined__":r,this}}();function i(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}return i.prototype.clear=t,i.prototype.delete=e,i.prototype.get=r,i.prototype.has=n,i.prototype.set=o,yr=i}function fi(){if(Mr)return Or;Mr=1;var t=jr?xr:(jr=1,xr=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t});return Or=function(e,r){var n=e.__data__;return t(r)?n["string"==typeof r?"string":"hash"]:n.map}}function li(){if(Ur)return Lr;Ur=1;var t=function(){if(_r)return wr;_r=1;var t=ci(),e=ni(),r=ui();return wr=function(){this.size=0,this.__data__={hash:new t,map:new(r||e),string:new t}}}(),e=function(){if(kr)return Sr;kr=1;var t=fi();return Sr=function(e){var r=t(this,e).delete(e);return this.size-=r?1:0,r}}(),r=function(){if(Ar)return Cr;Ar=1;var t=fi();return Cr=function(e){return t(this,e).get(e)}}(),n=function(){if(Rr)return Er;Rr=1;var t=fi();return Er=function(e){return t(this,e).has(e)}}(),o=function(){if(Tr)return Pr;Tr=1;var t=fi();return Pr=function(e,r){var n=t(this,e),o=n.size;return n.set(e,r),this.size+=n.size==o?0:1,this}}();function i(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}return i.prototype.clear=t,i.prototype.delete=e,i.prototype.get=r,i.prototype.has=n,i.prototype.set=o,Lr=i}function hi(){if(Br)return zr;Br=1;var t=ni(),e=function(){if(Be)return ze;Be=1;var t=ni();return ze=function(){this.__data__=new t,this.size=0}}(),r=We?He:(We=1,He=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}),n=Ne?$e:(Ne=1,$e=function(t){return this.__data__.get(t)}),o=Ve?Ie:(Ve=1,Ie=function(t){return this.__data__.has(t)}),i=function(){if(Dr)return Fr;Dr=1;var t=ni(),e=ui(),r=li();return Fr=function(n,o){var i=this.__data__;if(i instanceof t){var a=i.__data__;if(!e||a.length<199)return a.push([n,o]),this.size=++i.size,this;i=this.__data__=new r(a)}return i.set(n,o),this.size=i.size,this}}();function a(e){var r=this.__data__=new t(e);this.size=r.size}return a.prototype.clear=e,a.prototype.delete=r,a.prototype.get=n,a.prototype.has=o,a.prototype.set=i,zr=a}function pi(){if(Vr)return Ir;Vr=1;var t=li(),e=Wr?Hr:(Wr=1,Hr=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}),r=Nr?$r:(Nr=1,$r=function(t){return this.__data__.has(t)});function n(e){var r=-1,n=null==e?0:e.length;for(this.__data__=new t;++r<n;)this.add(e[r])}return n.prototype.add=n.prototype.push=e,n.prototype.has=r,Ir=n}function di(){if(Jr)return Kr;Jr=1;var t=pi(),e=(qr||(qr=1,Xr=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}),Xr),r=Gr?Yr:(Gr=1,Yr=function(t,e){return t.has(e)});return Kr=function(n,o,i,a,u,s){var c=1&i,f=n.length,l=o.length;if(f!=l&&!(c&&l>f))return!1;var h=s.get(n),p=s.get(o);if(h&&p)return h==o&&p==n;var d=-1,b=!0,v=2&i?new t:void 0;for(s.set(n,o),s.set(o,n);++d<f;){var g=n[d],y=o[d];if(a)var m=c?a(y,g,d,o,n,s):a(g,y,d,n,o,s);if(void 0!==m){if(m)continue;b=!1;break}if(v){if(!e(o,function(t,e){if(!r(v,e)&&(g===t||u(g,t,i,a,s)))return v.push(e)})){b=!1;break}}else if(g!==y&&!u(g,y,i,a,s)){b=!1;break}}return s.delete(n),s.delete(o),b},Kr}function bi(){if(Zr)return Qr;Zr=1;var t=yt().Uint8Array;return Qr=t}function vi(){if(an)return on;an=1;var t=mt(),e=bi(),r=ei(),n=di(),o=(en||(en=1,tn=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}),tn),i=(nn||(nn=1,rn=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}),rn),a=t?t.prototype:void 0,u=a?a.valueOf:void 0;return on=function(t,a,s,c,f,l,h){switch(s){case"[object DataView]":if(t.byteLength!=a.byteLength||t.byteOffset!=a.byteOffset)return!1;t=t.buffer,a=a.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=a.byteLength||!l(new e(t),new e(a)));case"[object Boolean]":case"[object Date]":case"[object Number]":return r(+t,+a);case"[object Error]":return t.name==a.name&&t.message==a.message;case"[object RegExp]":case"[object String]":return t==a+"";case"[object Map]":var p=o;case"[object Set]":var d=1&c;if(p||(p=i),t.size!=a.size&&!d)return!1;var b=h.get(t);if(b)return b==a;c|=2,h.set(t,a);var v=n(p(t),p(a),c,f,l,h);return h.delete(t),v;case"[object Symbol]":if(u)return u.call(t)==u.call(a)}return!1}}function gi(){if(sn)return un;return sn=1,un=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t},un}function yi(){if(fn)return cn;fn=1;var t=gi(),e=_t();return cn=function(r,n,o){var i=n(r);return e(r)?i:t(i,o(r))}}function mi(){if(dn)return pn;return dn=1,pn=function(){return[]}}function wi(){if(vn)return bn;vn=1;var t=(hn||(hn=1,ln=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var a=t[r];e(a,r,t)&&(i[o++]=a)}return i}),ln),e=mi(),r=Object.prototype.propertyIsEnumerable,n=Object.getOwnPropertySymbols;return bn=n?function(e){return null==e?[]:(e=Object(e),t(n(e),function(t){return r.call(e,t)}))}:e}function _i(){if(yn)return gn;yn=1;var t=yi(),e=wi(),r=Go();return gn=function(n){return t(n,r,e)}}function xi(){if(En)return An;En=1;var t=function(){if(xn)return _n;xn=1;var t=ai()(yt(),"DataView");return _n=t}(),e=ui(),r=function(){if(On)return jn;On=1;var t=ai()(yt(),"Promise");return jn=t}(),n=function(){if(Sn)return Mn;Sn=1;var t=ai()(yt(),"Set");return Mn=t}(),o=function(){if(Cn)return kn;Cn=1;var t=ai()(yt(),"WeakMap");return kn=t}(),i=wt(),a=ii(),u="[object Map]",s="[object Promise]",c="[object Set]",f="[object WeakMap]",l="[object DataView]",h=a(t),p=a(e),d=a(r),b=a(n),v=a(o),g=i;return(t&&g(new t(new ArrayBuffer(1)))!=l||e&&g(new e)!=u||r&&g(r.resolve())!=s||n&&g(new n)!=c||o&&g(new o)!=f)&&(g=function(t){var e=i(t),r="[object Object]"==e?t.constructor:void 0,n=r?a(r):"";if(n)switch(n){case h:return l;case p:return u;case d:return s;case b:return c;case v:return f}return e}),An=g}function ji(){if(Pn)return Rn;Pn=1;var t=hi(),e=di(),r=vi(),n=function(){if(wn)return mn;wn=1;var t=_i(),e=Object.prototype.hasOwnProperty;return mn=function(r,n,o,i,a,u){var s=1&o,c=t(r),f=c.length;if(f!=t(n).length&&!s)return!1;for(var l=f;l--;){var h=c[l];if(!(s?h in n:e.call(n,h)))return!1}var p=u.get(r),d=u.get(n);if(p&&d)return p==n&&d==r;var b=!0;u.set(r,n),u.set(n,r);for(var v=s;++l<f;){var g=r[h=c[l]],y=n[h];if(i)var m=s?i(y,g,h,n,r,u):i(g,y,h,r,n,u);if(!(void 0===m?g===y||a(g,y,o,i,u):m)){b=!1;break}v||(v="constructor"==h)}if(b&&!v){var w=r.constructor,_=n.constructor;w==_||!("constructor"in r)||!("constructor"in n)||"function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _||(b=!1)}return u.delete(r),u.delete(n),b},mn}(),o=xi(),i=_t(),a=Dt(),u=Wo(),s="[object Arguments]",c="[object Array]",f="[object Object]",l=Object.prototype.hasOwnProperty;return Rn=function(h,p,d,b,v,g){var y=i(h),m=i(p),w=y?c:o(h),_=m?c:o(p),x=(w=w==s?f:w)==f,j=(_=_==s?f:_)==f,O=w==_;if(O&&a(h)){if(!a(p))return!1;y=!0,x=!1}if(O&&!x)return g||(g=new t),y||u(h)?e(h,p,d,b,v,g):r(h,p,w,d,b,v,g);if(!(1&d)){var M=x&&l.call(h,"__wrapped__"),S=j&&l.call(p,"__wrapped__");if(M||S){var k=M?h.value():h,C=S?p.value():p;return g||(g=new t),v(k,C,d,b,g)}}return!!O&&(g||(g=new t),n(h,p,d,b,v,g))}}function Oi(){if(Ln)return Tn;Ln=1;var t=ji(),e=xt();return Tn=function r(n,o,i,a,u){return n===o||(null==n||null==o||!e(n)&&!e(o)?n!=n&&o!=o:t(n,o,i,a,r,u))},Tn}function Mi(){if(zn)return Dn;zn=1;var t=Xo();return Dn=function(e){return e==e&&!t(e)}}function Si(){if($n)return Wn;return $n=1,Wn=function(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}}}function ki(){if(In)return Nn;In=1;var t=function(){if(Fn)return Un;Fn=1;var t=hi(),e=Oi();return Un=function(r,n,o,i){var a=o.length,u=a,s=!i;if(null==r)return!u;for(r=Object(r);a--;){var c=o[a];if(s&&c[2]?c[1]!==r[c[0]]:!(c[0]in r))return!1}for(;++a<u;){var f=(c=o[a])[0],l=r[f],h=c[1];if(s&&c[2]){if(void 0===l&&!(f in r))return!1}else{var p=new t;if(i)var d=i(l,h,f,r,n,p);if(!(void 0===d?e(h,l,3,i,p):d))return!1}}return!0},Un}(),e=function(){if(Hn)return Bn;Hn=1;var t=Mi(),e=Go();return Bn=function(r){for(var n=e(r),o=n.length;o--;){var i=n[o],a=r[i];n[o]=[i,a,t(a)]}return n}}(),r=Si();return Nn=function(n){var o=e(n);return 1==o.length&&o[0][2]?r(o[0][0],o[0][1]):function(e){return e===n||t(e,n,o)}}}function Ci(){if(Xn)return Vn;Xn=1;var t=wt(),e=xt();return Vn=function(r){return"symbol"==typeof r||e(r)&&"[object Symbol]"==t(r)}}function Ai(){if(Yn)return qn;Yn=1;var t=_t(),e=Ci(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;return qn=function(o,i){if(t(o))return!1;var a=typeof o;return!("number"!=a&&"symbol"!=a&&"boolean"!=a&&null!=o&&!e(o))||(n.test(o)||!r.test(o)||null!=i&&o in Object(i))}}function Ei(){if(Qn)return Jn;Qn=1;var t=function(){if(Kn)return Gn;Kn=1;var t=li();function e(r,n){if("function"!=typeof r||null!=n&&"function"!=typeof n)throw new TypeError("Expected a function");var o=function(){var t=arguments,e=n?n.apply(this,t):t[0],i=o.cache;if(i.has(e))return i.get(e);var a=r.apply(this,t);return o.cache=i.set(e,a)||i,a};return o.cache=new(e.Cache||t),o}return e.Cache=t,Gn=e}();return Jn=function(e){var r=t(e,function(t){return 500===n.size&&n.clear(),t}),n=r.cache;return r}}function Ri(){if(oo)return no;oo=1;var t=function(){if(ro)return eo;ro=1;var t=mt(),e=ti(),r=_t(),n=Ci(),o=t?t.prototype:void 0,i=o?o.toString:void 0;return eo=function t(o){if("string"==typeof o)return o;if(r(o))return e(o,t)+"";if(n(o))return i?i.call(o):"";var a=o+"";return"0"==a&&1/o==-1/0?"-0":a},eo}();return no=function(e){return null==e?"":t(e)}}function Pi(){if(ao)return io;ao=1;var t=_t(),e=Ai(),r=function(){if(to)return Zn;to=1;var t=Ei(),e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=t(function(t){var n=[];return 46===t.charCodeAt(0)&&n.push(""),t.replace(e,function(t,e,o,i){n.push(o?i.replace(r,"$1"):e||t)}),n});return Zn=n}(),n=Ri();return io=function(o,i){return t(o)?o:e(o,i)?[o]:r(n(o))}}function Ti(){if(so)return uo;so=1;var t=Ci();return uo=function(e){if("string"==typeof e||t(e))return e;var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}}function Li(){if(fo)return co;fo=1;var t=Pi(),e=Ti();return co=function(r,n){for(var o=0,i=(n=t(n,r)).length;null!=r&&o<i;)r=r[e(n[o++])];return o&&o==i?r:void 0},co}function Ui(){if(mo)return yo;mo=1;var t=bo?po:(bo=1,po=function(t,e){return null!=t&&e in Object(t)}),e=function(){if(go)return vo;go=1;var t=Pi(),e=Ot(),r=_t(),n=zt(),o=Bt(),i=Ti();return vo=function(a,u,s){for(var c=-1,f=(u=t(u,a)).length,l=!1;++c<f;){var h=i(u[c]);if(!(l=null!=a&&s(a,h)))break;a=a[h]}return l||++c!=f?l:!!(f=null==a?0:a.length)&&o(f)&&n(h,f)&&(r(a)||e(a))},vo}();return yo=function(r,n){return null!=r&&e(r,n,t)}}function Fi(){if(_o)return wo;_o=1;var t=Oi(),e=function(){if(ho)return lo;ho=1;var t=Li();return lo=function(e,r,n){var o=null==e?void 0:t(e,r);return void 0===o?n:o}}(),r=Ui(),n=Ai(),o=Mi(),i=Si(),a=Ti();return wo=function(u,s){return n(u)&&o(s)?i(a(u),s):function(n){var o=e(n,u);return void 0===o&&o===s?r(n,u):t(s,o,3)}}}function Di(){if(ko)return So;ko=1;var t=jo?xo:(jo=1,xo=function(t){return function(e){return null==e?void 0:e[t]}}),e=function(){if(Mo)return Oo;Mo=1;var t=Li();return Oo=function(e){return function(r){return t(r,e)}}}(),r=Ai(),n=Ti();return So=function(o){return r(o)?t(n(o)):e(o)}}function zi(){if(To)return Po;To=1;var t=Ko(),e=function(){if(Ro)return Eo;Ro=1;var t=Yo();return Eo=function(e,r){return function(n,o){if(null==n)return n;if(!t(n))return e(n,o);for(var i=n.length,a=r?i:-1,u=Object(n);(r?a--:++a<i)&&!1!==o(u[a],a,u););return n}},Eo}(),r=e(t);return Po=r}function Bi(){if(Do)return Fo;Do=1;var t=ti(),e=function(){if(Ao)return Co;Ao=1;var t=ki(),e=Fi(),r=Jo(),n=_t(),o=Di();return Co=function(i){return"function"==typeof i?i:null==i?r:"object"==typeof i?n(i)?e(i[0],i[1]):t(i):o(i)}}(),r=function(){if(Uo)return Lo;Uo=1;var t=zi(),e=Yo();return Lo=function(r,n){var o=-1,i=e(r)?Array(r.length):[];return t(r,function(t,e,r){i[++o]=n(t,e,r)}),i},Lo}(),n=_t();return Fo=function(o,i){return(n(o)?t:r)(o,e(i,3))}}function Hi(){if(zo)return vt;zo=1,Object.defineProperty(vt,"__esModule",{value:!0}),vt.flattenNames=void 0;var t=function(){if(ot)return nt;ot=1;var t=wt(),e=_t(),r=xt();return nt=function(n){return"string"==typeof n||!e(n)&&r(n)&&"[object String]"==t(n)}}(),e=a(t),r=a(Qo()),n=function(){if(me)return ye;me=1;var t=wt(),e=Zo(),r=xt(),n=Function.prototype,o=Object.prototype,i=n.toString,a=o.hasOwnProperty,u=i.call(Object);return ye=function(n){if(!r(n)||"[object Object]"!=t(n))return!1;var o=e(n);if(null===o)return!0;var s=a.call(o,"constructor")&&o.constructor;return"function"==typeof s&&s instanceof s&&i.call(s)==u}}(),o=a(n),i=a(Bi());function a(t){return t&&t.__esModule?t:{default:t}}var u=vt.flattenNames=function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=[];return(0,i.default)(n,function(n){Array.isArray(n)?t(n).map(function(t){return a.push(t)}):(0,o.default)(n)?(0,r.default)(n,function(t,e){!0===t&&a.push(e),a.push(e+"-"+t)}):(0,e.default)(n)&&a.push(n)}),a};return vt.default=u,vt}var Wi,$i,Ni,Ii,Vi,Xi,qi,Yi,Gi,Ki,Ji,Qi,Zi,ta,ea,ra,na,oa,ia,aa,ua={};function sa(){if(Xi)return Vi;Xi=1;var t=function(){if(Ii)return Ni;Ii=1;var t=ai(),e=function(){try{var e=t(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();return Ni=e}();return Vi=function(e,r,n){"__proto__"==r&&t?t(e,r,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[r]=n}}function ca(){if(Yi)return qi;Yi=1;var t=sa(),e=ei(),r=Object.prototype.hasOwnProperty;return qi=function(n,o,i){var a=n[o];r.call(n,o)&&e(a,i)&&(void 0!==i||o in n)||t(n,o,i)}}function fa(){if(Ki)return Gi;Ki=1;var t=ca(),e=sa();return Gi=function(r,n,o,i){var a=!o;o||(o={});for(var u=-1,s=n.length;++u<s;){var c=n[u],f=i?i(o[c],r[c],c,o,r):void 0;void 0===f&&(f=r[c]),a?e(o,c,f):t(o,c,f)}return o},Gi}function la(){if(ra)return ea;ra=1;var t=Xo(),e=No(),r=ta?Zi:(ta=1,Zi=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}),n=Object.prototype.hasOwnProperty;return ea=function(o){if(!t(o))return r(o);var i=e(o),a=[];for(var u in o)("constructor"!=u||!i&&n.call(o,u))&&a.push(u);return a}}function ha(){if(oa)return na;oa=1;var t=$o(),e=la(),r=Yo();return na=function(n){return r(n)?t(n,!0):e(n)}}var pa,da,ba,va,ga,ya,ma,wa,_a,xa,ja,Oa,Ma,Sa,ka,Ca,Aa,Ea,Ra,Pa,Ta,La,Ua,Fa,Da,za,Ba,Ha,Wa,$a,Na,Ia,Va,Xa,qa,Ya,Ga,Ka,Ja,Qa,Za,tu,eu={exports:{}};function ru(){if(ma)return ya;ma=1;var t=gi(),e=Zo(),r=wi(),n=mi(),o=Object.getOwnPropertySymbols;return ya=o?function(n){for(var o=[];n;)t(o,r(n)),n=e(n);return o}:n}function nu(){if(ka)return Sa;ka=1;var t=bi();return Sa=function(e){var r=new e.constructor(e.byteLength);return new t(r).set(new t(e)),r}}function ou(){if(Da)return Fa;Da=1;var t=nu(),e=function(){if(Aa)return Ca;Aa=1;var t=nu();return Ca=function(e,r){var n=r?t(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}}(),r=function(){if(Ra)return Ea;Ra=1;var t=/\w*$/;return Ea=function(e){var r=new e.constructor(e.source,t.exec(e));return r.lastIndex=e.lastIndex,r}}(),n=function(){if(Ta)return Pa;Ta=1;var t=mt(),e=t?t.prototype:void 0,r=e?e.valueOf:void 0;return Pa=function(t){return r?Object(r.call(t)):{}}}(),o=function(){if(Ua)return La;Ua=1;var t=nu();return La=function(e,r){var n=r?t(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}}();return Fa=function(i,a,u){var s=i.constructor;switch(a){case"[object ArrayBuffer]":return t(i);case"[object Boolean]":case"[object Date]":return new s(+i);case"[object DataView]":return e(i,u);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return o(i,u);case"[object Map]":case"[object Set]":return new s;case"[object Number]":case"[object String]":return new s(i);case"[object RegExp]":return r(i);case"[object Symbol]":return n(i)}}}function iu(){if(Wa)return Ha;Wa=1;var t=function(){if(Ba)return za;Ba=1;var t=Xo(),e=Object.create,r=function(){function r(){}return function(n){if(!t(n))return{};if(e)return e(n);r.prototype=n;var o=new r;return r.prototype=void 0,o}}();return za=r}(),e=Zo(),r=No();return Ha=function(n){return"function"!=typeof n.constructor||r(n)?{}:t(e(n))}}function au(){if(Va)return Ia;Va=1;var t=function(){if(Na)return $a;Na=1;var t=xi(),e=xt();return $a=function(r){return e(r)&&"[object Map]"==t(r)}}(),e=Ht(),r=Ho(),n=r&&r.isMap,o=n?e(n):t;return Ia=o}function uu(){if(Ga)return Ya;Ga=1;var t=function(){if(qa)return Xa;qa=1;var t=xi(),e=xt();return Xa=function(r){return e(r)&&"[object Set]"==t(r)}}(),e=Ht(),r=Ho(),n=r&&r.isSet,o=n?e(n):t;return Ya=o}function su(){if(Ja)return Ka;Ja=1;var t=hi(),e=($i||($i=1,Wi=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}),Wi),r=ca(),n=function(){if(Qi)return Ji;Qi=1;var t=fa(),e=Go();return Ji=function(r,n){return r&&t(n,e(n),r)}}(),o=function(){if(aa)return ia;aa=1;var t=fa(),e=ha();return ia=function(r,n){return r&&t(n,e(n),r)}}(),i=(pa||(pa=1,function(t,e){var r=yt(),n=e&&!e.nodeType&&e,o=n&&t&&!t.nodeType&&t,i=o&&o.exports===n?r.Buffer:void 0,a=i?i.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var r=t.length,n=a?a(r):new t.constructor(r);return t.copy(n),n}}(eu,eu.exports)),eu.exports),a=(ba||(ba=1,da=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}),da),u=function(){if(ga)return va;ga=1;var t=fa(),e=wi();return va=function(r,n){return t(r,e(r),n)}}(),s=function(){if(_a)return wa;_a=1;var t=fa(),e=ru();return wa=function(r,n){return t(r,e(r),n)}}(),c=_i(),f=function(){if(ja)return xa;ja=1;var t=yi(),e=ru(),r=ha();return xa=function(n){return t(n,r,e)}}(),l=xi(),h=function(){if(Ma)return Oa;Ma=1;var t=Object.prototype.hasOwnProperty;return Oa=function(e){var r=e.length,n=new e.constructor(r);return r&&"string"==typeof e[0]&&t.call(e,"index")&&(n.index=e.index,n.input=e.input),n}}(),p=ou(),d=iu(),b=_t(),v=Dt(),g=au(),y=Xo(),m=uu(),w=Go(),_=ha(),x="[object Arguments]",j="[object Function]",O="[object Object]",M={};return M[x]=M["[object Array]"]=M["[object ArrayBuffer]"]=M["[object DataView]"]=M["[object Boolean]"]=M["[object Date]"]=M["[object Float32Array]"]=M["[object Float64Array]"]=M["[object Int8Array]"]=M["[object Int16Array]"]=M["[object Int32Array]"]=M["[object Map]"]=M["[object Number]"]=M[O]=M["[object RegExp]"]=M["[object Set]"]=M["[object String]"]=M["[object Symbol]"]=M["[object Uint8Array]"]=M["[object Uint8ClampedArray]"]=M["[object Uint16Array]"]=M["[object Uint32Array]"]=!0,M["[object Error]"]=M[j]=M["[object WeakMap]"]=!1,Ka=function S(k,C,A,E,R,P){var T,L=1&C,U=2&C,F=4&C;if(A&&(T=R?A(k,E,R,P):A(k)),void 0!==T)return T;if(!y(k))return k;var D=b(k);if(D){if(T=h(k),!L)return a(k,T)}else{var z=l(k),B=z==j||"[object GeneratorFunction]"==z;if(v(k))return i(k,L);if(z==O||z==x||B&&!R){if(T=U||B?{}:d(k),!L)return U?s(k,o(T,k)):u(k,n(T,k))}else{if(!M[z])return R?k:{};T=p(k,z,L)}}P||(P=new t);var H=P.get(k);if(H)return H;P.set(k,T),m(k)?k.forEach(function(t){T.add(S(t,C,A,t,k,P))}):g(k)&&k.forEach(function(t,e){T.set(e,S(t,C,A,e,k,P))});var W=D?void 0:(F?U?f:c:U?_:w)(k);return e(W||k,function(t,e){W&&(t=k[e=t]),r(T,e,S(t,C,A,e,k,P))}),T},Ka}function cu(){if(tu)return ua;tu=1,Object.defineProperty(ua,"__esModule",{value:!0}),ua.mergeClasses=void 0;var t=n(Qo()),e=n(function(){if(Za)return Qa;Za=1;var t=su();return Qa=function(e){return t(e,5)}}()),r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};function n(t){return t&&t.__esModule?t:{default:t}}var o=ua.mergeClasses=function(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=n.default&&(0,e.default)(n.default)||{};return o.map(function(e){var o=n[e];return o&&(0,t.default)(o,function(t,e){i[e]||(i[e]={}),i[e]=r({},i[e],o[e])}),e}),i};return ua.default=o,ua}var fu,lu={};var hu,pu={};function du(){if(hu)return pu;hu=1,Object.defineProperty(pu,"__esModule",{value:!0}),pu.hover=void 0;var t,r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},n=(t=e)&&t.__esModule?t:{default:t};function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var i=pu.hover=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(i){function a(){var i,u,s;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a);for(var c=arguments.length,f=Array(c),l=0;l<c;l++)f[l]=arguments[l];return u=s=o(this,(i=a.__proto__||Object.getPrototypeOf(a)).call.apply(i,[this].concat(f))),s.state={hover:!1},s.handleMouseOver=function(){return s.setState({hover:!0})},s.handleMouseOut=function(){return s.setState({hover:!1})},s.render=function(){return n.default.createElement(e,{onMouseOver:s.handleMouseOver,onMouseOut:s.handleMouseOut},n.default.createElement(t,r({},s.props,s.state)))},o(s,u)}return function(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)}(a,i),a}(n.default.Component)};return pu.default=i,pu}var bu,vu={};function gu(){if(bu)return vu;bu=1,Object.defineProperty(vu,"__esModule",{value:!0}),vu.active=void 0;var t,r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},n=(t=e)&&t.__esModule?t:{default:t};function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var i=vu.active=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(i){function a(){var i,u,s;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a);for(var c=arguments.length,f=Array(c),l=0;l<c;l++)f[l]=arguments[l];return u=s=o(this,(i=a.__proto__||Object.getPrototypeOf(a)).call.apply(i,[this].concat(f))),s.state={active:!1},s.handleMouseDown=function(){return s.setState({active:!0})},s.handleMouseUp=function(){return s.setState({active:!1})},s.render=function(){return n.default.createElement(e,{onMouseDown:s.handleMouseDown,onMouseUp:s.handleMouseUp},n.default.createElement(t,r({},s.props,s.state)))},o(s,u)}return function(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)}(a,i),a}(n.default.Component)};return vu.default=i,vu}var yu,mu,wu={};var _u=function(){if(mu)return bt;mu=1,Object.defineProperty(bt,"__esModule",{value:!0}),bt.ReactCSS=bt.loop=bt.handleActive=bt.handleHover=bt.hover=void 0;var t=u(Hi()),e=u(cu()),r=function(){if(fu)return lu;fu=1,Object.defineProperty(lu,"__esModule",{value:!0}),lu.autoprefix=void 0;var t,e=Qo(),r=(t=e)&&t.__esModule?t:{default:t},n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},o={borderRadius:function(t){return{msBorderRadius:t,MozBorderRadius:t,OBorderRadius:t,WebkitBorderRadius:t,borderRadius:t}},boxShadow:function(t){return{msBoxShadow:t,MozBoxShadow:t,OBoxShadow:t,WebkitBoxShadow:t,boxShadow:t}},userSelect:function(t){return{WebkitTouchCallout:t,KhtmlUserSelect:t,MozUserSelect:t,msUserSelect:t,WebkitUserSelect:t,userSelect:t}},flex:function(t){return{WebkitBoxFlex:t,MozBoxFlex:t,WebkitFlex:t,msFlex:t,flex:t}},flexBasis:function(t){return{WebkitFlexBasis:t,flexBasis:t}},justifyContent:function(t){return{WebkitJustifyContent:t,justifyContent:t}},transition:function(t){return{msTransition:t,MozTransition:t,OTransition:t,WebkitTransition:t,transition:t}},transform:function(t){return{msTransform:t,MozTransform:t,OTransform:t,WebkitTransform:t,transform:t}},absolute:function(t){var e=t&&t.split(" ");return{position:"absolute",top:e&&e[0],right:e&&e[1],bottom:e&&e[2],left:e&&e[3]}},extend:function(t,e){return e[t]||{extend:t}}},i=lu.autoprefix=function(t){var e={};return(0,r.default)(t,function(t,i){var a={};(0,r.default)(t,function(t,e){var r=o[e];r?a=n({},a,r(t)):a[e]=t}),e[i]=a}),e};return lu.default=i,lu}(),n=u(r),o=u(du()),i=u(gu()),a=u((yu||(yu=1,Object.defineProperty(wu,"__esModule",{value:!0}),wu.default=function(t,e){var r={},n=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];r[t]=e};return 0===t&&n("first-child"),t===e-1&&n("last-child"),(0===t||t%2==0)&&n("even"),1===Math.abs(t%2)&&n("odd"),n("nth-child",t),r}),wu));function u(t){return t&&t.__esModule?t:{default:t}}bt.hover=o.default,bt.handleHover=o.default,bt.handleActive=i.default,bt.loop=a.default;var s=bt.ReactCSS=function(r){for(var o=arguments.length,i=Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];var u=(0,t.default)(i),s=(0,e.default)(r,u);return(0,n.default)(s)};return bt.default=s,bt}();const xu=n.getDefaultExportFromCjs(_u);var ju={},Ou=function(t,e,r,n){var o=t+"-"+e+"-"+r+(n?"-server":"");if(ju[o])return ju[o];var i=function(t,e,r,n){if("undefined"==typeof document&&!n)return null;var o=n?new n:document.createElement("canvas");o.width=2*r,o.height=2*r;var i=o.getContext("2d");return i?(i.fillStyle=t,i.fillRect(0,0,o.width,o.height),i.fillStyle=e,i.fillRect(0,0,r,r),i.translate(r,r),i.fillRect(0,0,r,r),o.toDataURL()):null}(t,e,r,n);return ju[o]=i,i},Mu=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Su=function(t){var r=t.white,n=t.grey,o=t.size,i=t.renderers,a=t.borderRadius,u=t.boxShadow,s=t.children,c=xu({default:{grid:{borderRadius:a,boxShadow:u,absolute:"0px 0px 0px 0px",background:"url("+Ou(r,n,o,i.canvas)+") center left"}}});return e.isValidElement(s)?e.cloneElement(s,Mu({},s.props,{style:Mu({},s.props.style,c.grid)})):e.createElement("div",{style:c.grid})};Su.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var ku=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Cu=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();function Au(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var Eu=function(){function t(){var e,r,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=n=Au(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),n.handleChange=function(t){var e=function(t,e,r,n,o){var i=o.clientWidth,a=o.clientHeight,u="number"==typeof t.pageX?t.pageX:t.touches[0].pageX,s="number"==typeof t.pageY?t.pageY:t.touches[0].pageY,c=u-(o.getBoundingClientRect().left+window.pageXOffset),f=s-(o.getBoundingClientRect().top+window.pageYOffset);if("vertical"===r){var l=void 0;if(l=f<0?0:f>a?1:Math.round(100*f/a)/100,e.a!==l)return{h:e.h,s:e.s,l:e.l,a:l,source:"rgb"}}else{var h=void 0;if(n!==(h=c<0?0:c>i?1:Math.round(100*c/i)/100))return{h:e.h,s:e.s,l:e.l,a:h,source:"rgb"}}return null}(t,n.props.hsl,n.props.direction,n.props.a,n.container);e&&"function"==typeof n.props.onChange&&n.props.onChange(e,t)},n.handleMouseDown=function(t){n.handleChange(t),window.addEventListener("mousemove",n.handleChange),window.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleChange),window.removeEventListener("mouseup",n.handleMouseUp)},Au(n,r)}return function(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)}(t,e.PureComponent||e.Component),Cu(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var t=this,r=this.props.rgb,n=xu({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+r.r+","+r.g+","+r.b+", 0) 0%,\n rgba("+r.r+","+r.g+","+r.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:100*r.a+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+r.r+","+r.g+","+r.b+", 0) 0%,\n rgba("+r.r+","+r.g+","+r.b+", 1) 100%)"},pointer:{left:0,top:100*r.a+"%"}},overwrite:ku({},this.props.style)},{vertical:"vertical"===this.props.direction,overwrite:!0});return e.createElement("div",{style:n.alpha},e.createElement("div",{style:n.checkboard},e.createElement(Su,{renderers:this.props.renderers})),e.createElement("div",{style:n.gradient}),e.createElement("div",{style:n.container,ref:function(e){return t.container=e},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},e.createElement("div",{style:n.pointer},this.props.pointer?e.createElement(this.props.pointer,this.props):e.createElement("div",{style:n.slider}))))}}]),t}(),Ru=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();var Pu=[38,40],Tu=1,Lu=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.handleBlur=function(){r.state.blurValue&&r.setState({value:r.state.blurValue,blurValue:null})},r.handleChange=function(t){r.setUpdatedValue(t.target.value,t)},r.handleKeyDown=function(t){var e,n=function(t){return Number(String(t).replace(/%/g,""))}(t.target.value);if(!isNaN(n)&&(e=t.keyCode,Pu.indexOf(e)>-1)){var o=r.getArrowOffset(),i=38===t.keyCode?n+o:n-o;r.setUpdatedValue(i,t)}},r.handleDrag=function(t){if(r.props.dragLabel){var e=Math.round(r.props.value+t.movementX);e>=0&&e<=r.props.dragMax&&r.props.onChange&&r.props.onChange(r.getValueObjectWithLabel(e),t)}},r.handleMouseDown=function(t){r.props.dragLabel&&(t.preventDefault(),r.handleDrag(t),window.addEventListener("mousemove",r.handleDrag),window.addEventListener("mouseup",r.handleMouseUp))},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleDrag),window.removeEventListener("mouseup",r.handleMouseUp)},r.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},r.inputId="rc-editable-input-"+Tu++,r}return function(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)}(t,e.PureComponent||e.Component),Ru(t,[{key:"componentDidUpdate",value:function(t,e){this.props.value===this.state.value||t.value===this.props.value&&e.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(t){return function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}({},this.props.label,t)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function(t,e){var r=this.props.label?this.getValueObjectWithLabel(t):t;this.props.onChange&&this.props.onChange(r,e),this.setState({value:t})}},{key:"render",value:function(){var t=this,r=xu({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 e.createElement("div",{style:r.wrap},e.createElement("input",{id:this.inputId,style:r.input,ref:function(e){return t.input=e},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?e.createElement("label",{htmlFor:this.inputId,style:r.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(),Uu=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();function Fu(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var Du=function(){function t(){var e,r,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=n=Fu(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),n.handleChange=function(t){var e=function(t,e,r,n){var o=n.clientWidth,i=n.clientHeight,a="number"==typeof t.pageX?t.pageX:t.touches[0].pageX,u="number"==typeof t.pageY?t.pageY:t.touches[0].pageY,s=a-(n.getBoundingClientRect().left+window.pageXOffset),c=u-(n.getBoundingClientRect().top+window.pageYOffset);if("vertical"===e){var f=void 0;if(f=c<0?359:c>i?0:360*(-100*c/i+100)/100,r.h!==f)return{h:f,s:r.s,l:r.l,a:r.a,source:"hsl"}}else{var l=void 0;if(l=s<0?0:s>o?359:100*s/o*360/100,r.h!==l)return{h:l,s:r.s,l:r.l,a:r.a,source:"hsl"}}return null}(t,n.props.direction,n.props.hsl,n.container);e&&"function"==typeof n.props.onChange&&n.props.onChange(e,t)},n.handleMouseDown=function(t){n.handleChange(t),window.addEventListener("mousemove",n.handleChange),window.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},Fu(n,r)}return function(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)}(t,e.PureComponent||e.Component),Uu(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var t=this,r=this.props.direction,n=void 0===r?"horizontal":r,o=xu({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:100*this.props.hsl.h/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-100*this.props.hsl.h/360+100+"%"}}},{vertical:"vertical"===n});return e.createElement("div",{style:o.hue},e.createElement("div",{className:"hue-"+n,style:o.container,ref:function(e){return t.container=e},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},e.createElement("style",null,"\n .hue-horizontal {\n background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n\n .hue-vertical {\n background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n "),e.createElement("div",{style:o.pointer},this.props.pointer?e.createElement(this.props.pointer,this.props):e.createElement("div",{style:o.slider}))))}}]),t}(),zu="object"==typeof global&&global&&global.Object===Object&&global,Bu="object"==typeof self&&self&&self.Object===Object&&self,Hu=zu||Bu||Function("return this")(),Wu=Hu.Symbol,$u=Object.prototype,Nu=$u.hasOwnProperty,Iu=$u.toString,Vu=Wu?Wu.toStringTag:void 0;var Xu=Object.prototype.toString;var qu=Wu?Wu.toStringTag:void 0;function Yu(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":qu&&qu in Object(t)?function(t){var e=Nu.call(t,Vu),r=t[Vu];try{t[Vu]=void 0;var n=!0}catch(t){}var o=Iu.call(t);return n&&(e?t[Vu]=r:delete t[Vu]),o}(t):function(t){return Xu.call(t)}(t)}function Gu(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}i.string,i.oneOf([0,1,2,3,4,5]),i.number,i.object;var Ku=function(){return Hu.Date.now()},Ju=/\s/;var Qu=/^\s+/;function Zu(t){return t?t.slice(0,function(t){for(var e=t.length;e--&&Ju.test(t.charAt(e)););return e}(t)+1).replace(Qu,""):t}var ts=/^[-+]0x[0-9a-f]+$/i,es=/^0b[01]+$/i,rs=/^0o[0-7]+$/i,ns=parseInt;function os(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return null!=t&&"object"==typeof t}(t)&&"[object Symbol]"==Yu(t)}(t))return NaN;if(Gu(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Gu(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Zu(t);var r=es.test(t);return r||rs.test(t)?ns(t.slice(2),r?2:8):ts.test(t)?NaN:+t}var is=Math.max,as=Math.min;function us(t,e,r){var n,o,i,a,u,s,c=0,f=!1,l=!1,h=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function p(e){var r=n,i=o;return n=o=void 0,c=e,a=t.apply(i,r)}function d(t){var r=t-s;return void 0===s||r>=e||r<0||l&&t-c>=i}function b(){var t=Ku();if(d(t))return v(t);u=setTimeout(b,function(t){var r=e-(t-s);return l?as(r,i-(t-c)):r}(t))}function v(t){return u=void 0,h&&n?p(t):(n=o=void 0,a)}function g(){var t=Ku(),r=d(t);if(n=arguments,o=this,s=t,r){if(void 0===u)return function(t){return c=t,u=setTimeout(b,e),f?p(t):a}(s);if(l)return clearTimeout(u),u=setTimeout(b,e),p(s)}return void 0===u&&(u=setTimeout(b,e)),a}return e=os(e)||0,Gu(r)&&(f=!!r.leading,i=(l="maxWait"in r)?is(os(r.maxWait)||0,e):i,h="trailing"in r?!!r.trailing:h),g.cancel=function(){void 0!==u&&clearTimeout(u),c=0,n=s=o=u=void 0},g.flush=function(){return void 0===u?a:v(Ku())},g}var ss=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();!function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.handleChange=function(t){"function"==typeof r.props.onChange&&r.throttle(r.props.onChange,function(t,e,r){var n=r.getBoundingClientRect(),o=n.width,i=n.height,a="number"==typeof t.pageX?t.pageX:t.touches[0].pageX,u="number"==typeof t.pageY?t.pageY:t.touches[0].pageY,s=a-(r.getBoundingClientRect().left+window.pageXOffset),c=u-(r.getBoundingClientRect().top+window.pageYOffset);s<0?s=0:s>o&&(s=o),c<0?c=0:c>i&&(c=i);var f=s/o,l=1-c/i;return{h:e.h,s:f,v:l,a:e.a,source:"hsv"}}(t,r.props.hsl,r.container),t)},r.handleMouseDown=function(t){r.handleChange(t);var e=r.getContainerRenderWindow();e.addEventListener("mousemove",r.handleChange),e.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r.throttle=function(t,e,r){var n=!0,o=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return Gu(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),us(t,e,{leading:n,maxWait:e,trailing:o})}(function(t,e,r){t(e,r)},50),r}(function(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)})(t,e.PureComponent||e.Component),ss(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var t=this.container,e=window;!e.document.contains(t)&&e.parent!==e;)e=e.parent;return e}},{key:"unbindEventListeners",value:function(){var t=this.getContainerRenderWindow();t.removeEventListener("mousemove",this.handleChange),t.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var t=this,r=this.props.style||{},n=r.color,o=r.white,i=r.black,a=r.pointer,u=r.circle,s=xu({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-100*this.props.hsv.v+100+"%",left:100*this.props.hsv.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:"0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n 0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:n,white:o,black:i,pointer:a,circle:u}},{custom:!!this.props.style});return e.createElement("div",{style:s.color,ref:function(e){return t.container=e},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},e.createElement("style",null,"\n .saturation-white {\n background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n }\n .saturation-black {\n background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n background: linear-gradient(to top, #000, rgba(0,0,0,0));\n }\n "),e.createElement("div",{style:s.white,className:"saturation-white"},e.createElement("div",{style:s.black,className:"saturation-black"}),e.createElement("div",{style:s.pointer},this.props.pointer?e.createElement(this.props.pointer,this.props):e.createElement("div",{style:s.circle}))))}}])}();var cs=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},fs=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();function ls(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var hs=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};!function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";(function(){function n(){var t,e,r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=r=ls(this,(t=n.__proto__||Object.getPrototypeOf(n)).call.apply(t,[this].concat(i))),r.state={focus:!1},r.handleFocus=function(){return r.setState({focus:!0})},r.handleBlur=function(){return r.setState({focus:!1})},ls(r,e)}(function(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)})(n,e.Component),fs(n,[{key:"render",value:function(){return e.createElement(r,{onFocus:this.handleFocus,onBlur:this.handleBlur},e.createElement(t,cs({},this.props,this.state)))}}])})()}(function(t){var r=t.color,n=t.style,o=t.onClick,i=void 0===o?function(){}:o,a=t.onHover,u=t.title,s=void 0===u?r:u,c=t.children,f=t.focus,l=t.focusStyle,h="transparent"===r,p=xu({default:{swatch:hs({background:r,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},n,f?void 0===l?{}:l:{})}}),d={};return a&&(d.onMouseOver=function(t){return a(r,t)}),e.createElement("div",hs({style:p.swatch,onClick:function(t){return i(r,t)},title:s,tabIndex:0,onKeyDown:function(t){return 13===t.keyCode&&i(r,t)}},d),c,h&&e.createElement(Su,{borderRadius:p.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))});var ps=function(t){var r=t.onChange,n=t.rgb,o=t.hsl,i=t.hex,a=t.disableAlpha,u=xu({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:a}),s=function(t,e){t.hex?function(t){if("transparent"===t)return!0;var e="#"===String(t).charAt(0)?1:0;return t.length!==4+e&&t.length<7+e&&c(t).isValid()}(t.hex)&&r({hex:t.hex,source:"hex"},e):t.r||t.g||t.b?r({r:t.r||n.r,g:t.g||n.g,b:t.b||n.b,a:n.a,source:"rgb"},e):t.a&&(t.a<0?t.a=0:t.a>100&&(t.a=100),t.a/=100,r({h:o.h,s:o.s,l:o.l,a:t.a,source:"rgb"},e))};return e.createElement("div",{style:u.fields,className:"flexbox-fix"},e.createElement("div",{style:u.double},e.createElement(Lu,{style:{input:u.input,label:u.label},label:"hex",value:i.replace("#",""),onChange:s})),e.createElement("div",{style:u.single},e.createElement(Lu,{style:{input:u.input,label:u.label},label:"r",value:n.r,onChange:s,dragLabel:"true",dragMax:"255"})),e.createElement("div",{style:u.single},e.createElement(Lu,{style:{input:u.input,label:u.label},label:"g",value:n.g,onChange:s,dragLabel:"true",dragMax:"255"})),e.createElement("div",{style:u.single},e.createElement(Lu,{style:{input:u.input,label:u.label},label:"b",value:n.b,onChange:s,dragLabel:"true",dragMax:"255"})),e.createElement("div",{style:u.alpha},e.createElement(Lu,{style:{input:u.input,label:u.label},label:"a",value:Math.round(100*n.a),onChange:s,dragLabel:"true",dragMax:"100"})))};class ds extends(e.PureComponent||e.Component){constructor(t){super(t),this.handleChange=t=>{"function"==typeof this.props.onChange&&this.throttle(this.props.onChange,((t,e,r)=>{var n=r.getBoundingClientRect(),o=n.width,i=n.height,a="number"==typeof t.pageX?t.pageX:t.touches[0].pageX,u="number"==typeof t.pageY?t.pageY:t.touches[0].pageY,s=a-(r.getBoundingClientRect().left+window.pageXOffset),c=u-(r.getBoundingClientRect().top+window.pageYOffset);s<0?s=0:s>o&&(s=o),c<0?c=0:c>i&&(c=i);var f=s/o,l=1-c/i;return{h:e.h,s:f,v:l,a:e.a,source:"hsv"}})(t,this.props.hsl,this.container),t),t.preventDefault()},this.handleMouseDown=t=>{this.handleChange(t);const e=this.getContainerRenderWindow();e.addEventListener("mousemove",this.handleChange),e.addEventListener("mouseup",this.handleMouseUp)},this.handleMouseUp=t=>{t.preventDefault(),this.unbindEventListeners()},this.throttle=function(t,e,r){let n,o,i,a;var u=0;r||(r={});let s=function(){u=!1===r.leading?0:Date.now(),n=null,a=t.apply(o,i),n||(o=i=null)},c=function(){var c=Date.now();u||!1!==r.leading||(u=c);var f=e-(c-u);return o=this,i=arguments,f<=0||f>e?(n&&(clearTimeout(n),n=null),u=c,a=t.apply(o,i),n||(o=i=null)):n||!1===r.trailing||(n=setTimeout(s,f)),a};return c.cancel=function(){clearTimeout(n),u=0,n=o=i=null},c}((t,e,r)=>{t(e,r)},50)}componentWillUnmount(){this.throttle.cancel(),this.unbindEventListeners()}getContainerRenderWindow(){const{container:t}=this;let e=window;for(;!e.document.contains(t)&&e.parent!==e;)e=e.parent;return e}unbindEventListeners(){const t=this.getContainerRenderWindow();t.removeEventListener("mousemove",this.handleChange),t.removeEventListener("mouseup",this.handleMouseUp)}render(){const{color:e,white:r,black:n,pointer:o,circle:i}=this.props||{},a={position:"absolute",top:"0px",left:"0px",right:"0px",bottom:"0px"},u={color:{...a,backgroundColor:`hsl(${this.props.hsl?.h},100%, 50%)`,borderRadius:this.props.style?.borderRadius},white:{...a,borderRadius:this.props.style?.borderRadius},black:{...a,boxShadow:this.props.style?.boxShadow,borderRadius:this.props.style?.borderRadius},pointer:{...a,top:-100*this.props.hsv?.v+100+"%",left:100*this.props.hsv?.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:"0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n 0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}};return t.jsxs("div",{style:u.color,ref:t=>this.container=t,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange,children:[t.jsx("style",{children:"\n .saturation-white {\n background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n }\n .saturation-black {\n background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n background: linear-gradient(to top, #000, rgba(0,0,0,0));\n }\n "}),t.jsxs("div",{style:u.white,className:"saturation-white",children:[t.jsx("div",{style:u.black,className:"saturation-black"}),t.jsx("div",{style:u.pointer,children:this.props.pointer?t.jsx(this.props.pointer,{...this.props}):t.jsx("div",{style:u.circle})})]})]})}}const bs=(t,e=null)=>{const r=t.hex?c(t.hex):c(t||"transparent"),n=r.toHsl(),o=r.toHsv(),i=r.toRgb(),a=r.toHex();return 0===n.s&&(n.h=e??0,o.h=e??0),{hsl:n,hex:"#"+a,rgb:i,hsv:o,source:t.source}},vs=e.memo(o=>{const{selectedColor:i,onColorChange:a,renderers:u,disableAlpha:s=!1,style:c=n.yt.EmptyCssProperties,...f}=o,l=n.useTheme(),[h,p]=e.useState(()=>bs(i)),[d,b]=e.useState(h.hsl.h??0),v=e.useCallback(t=>{let e=bs(t,d);return b(e.hsl.h??0),p(e),e},[d]),g=e.useCallback(t=>{const e=v(t),r=`rgba(${e.rgb.r},${e.rgb.g},${e.rgb.b},${s?1:e.rgb.a})`;a?.(r)},[a,v,s]);e.useLayoutEffect(()=>{v(i)},[i,v]);const y=t.jsx("div",{style:{position:"relative",minHeight:"10px",maxHeight:"10px",width:"100%"},children:t.jsx(Eu,{style:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},rgb:h.rgb,hsl:h.hsl,renderers:u,onChange:g})});return t.jsxs("div",{style:{display:"flex",flexDirection:"column",...c},...f,children:[t.jsx("div",{style:{width:"100%",flex:"1 1 100%",position:"relative",overflow:"hidden"},children:t.jsx(ds,{style:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hsl:h.hsl,hsv:h.hsv,onChange:g})}),t.jsxs("div",{style:{marginTop:"4px",display:"flex",gap:"4px"},children:[t.jsxs("div",{style:{flex:"1",display:"flex",flexDirection:s?"row":"column",justifyContent:"space-between",alignItems:"center"},children:[t.jsx("div",{style:{position:"relative",minHeight:"10px",maxHeight:"10px",width:"100%"},children:t.jsx(Du,{style:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hsl:h.hsl,onChange:g})}),s?null:y]}),t.jsxs("div",{style:{minWidth:"24px",maxWidth:"24px",minHeight:"24px",maxHeight:"24px",position:"relative",borderRadius:"1px",overflow:"hidden"},children:[t.jsx(n.Checkboard,{grey:l.palette.text.icon??l.palette.action.active}),t.jsx("div",{style:{position:"absolute",height:"100%",width:"100%",background:`rgba(${h.rgb.r},${h.rgb.g},${h.rgb.b},${s?1:h.rgb.a})`,boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}})]})]}),t.jsx(r.Box,{sx:{marginBottom:"4px","& label":{fontFamily:t=>`${t.typography.fontFamily} !important`,color:t=>`${t.palette.text.secondary} !important`},"& *":{fontFamily:t=>`${t.typography.fontFamily} !important`,userSelect:"none"},"& input":{paddingLeft:t=>`${t.spacing(.5)} !important`,paddingRight:t=>`${t.spacing(.5)} !important`,outline:"none",boxSizing:"border-box",width:"100% !important",textAlign:"center"}},children:t.jsx(ps,{rgb:h.rgb,hsl:h.hsl,hex:h.hex,disableAlpha:s,onChange:g})})]})});exports.CustomColorPanel=vs,exports.default=vs,exports.toState=bs;
|