@sillsdev/config-r 1.0.0-alpha.16 → 1.0.0-alpha.17

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.
@@ -1,20 +1,20 @@
1
- (function(B,m){typeof exports=="object"&&typeof module<"u"?m(exports,require("@emotion/react/jsx-runtime"),require("@emotion/react"),require("@mui/material"),require("react"),require("@mui/material/styles"),require("@mui/icons-material/Search"),require("@mui/icons-material/ArrowRight"),require("@mui/icons-material/ArrowBack"),require("@mui/material/TextField"),require("@mui/material/FormControl"),require("@mui/material/FormHelperText"),require("@mui/material/InputLabel"),require("@mui/material/Select"),require("@mui/material/Switch"),require("@mui/material/Checkbox"),require("@mui/material/ToggleButtonGroup")):typeof define=="function"&&define.amd?define(["exports","@emotion/react/jsx-runtime","@emotion/react","@mui/material","react","@mui/material/styles","@mui/icons-material/Search","@mui/icons-material/ArrowRight","@mui/icons-material/ArrowBack","@mui/material/TextField","@mui/material/FormControl","@mui/material/FormHelperText","@mui/material/InputLabel","@mui/material/Select","@mui/material/Switch","@mui/material/Checkbox","@mui/material/ToggleButtonGroup"],m):(B=typeof globalThis<"u"?globalThis:B||self,m(B.configr={},B["emotion-react-jsx-runtime"],B["emotion-react"],B["mui-material"],B.React,B["mui-material/styles"],B.SearchIcon,B.ArrowRightIcon,B.ArrowBackIcon,B.MuiTextField,B["mui-material-formcontrol"],B["mui-material-form-helper-text"],B["mui-material-input-label"],B["mui-material-select"],B.MuiSwitch,B.MuiCheckbox,B.MuiToggleButtonGroup))})(this,function(B,m,ve,j,d,nt,qu,Yu,Xu,Ju,Zu,Qu,ec,tc,rc,nc,ac){"use strict";function ic(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const K=ic(d),oc=nt.styled("div")(({theme:e})=>({position:"relative",borderRadius:e.shape.borderRadius,backgroundColor:nt.alpha(e.palette.common.white,.15),"&:hover":{backgroundColor:nt.alpha(e.palette.common.white,.25)},marginRight:e.spacing(2),marginLeft:0,width:"100%",[e.breakpoints.up("sm")]:{marginLeft:e.spacing(3),width:"auto"}})),sc=nt.styled("div")(({theme:e})=>({padding:e.spacing(0,2),height:"100%",position:"absolute",pointerEvents:"none",display:"flex",alignItems:"center",justifyContent:"center"})),lc=nt.styled(j.InputBase)(({theme:e})=>({color:"inherit","& .MuiInputBase-input":{padding:e.spacing(1,1,1,0),paddingLeft:`calc(1em + ${e.spacing(4)})`,transition:e.transitions.create("width"),width:"100%",[e.breakpoints.up("md")]:{width:"20ch"}}})),uc=e=>(console.log("Rendering appbar. searchValue="+e.searchValue),m.jsx(j.Box,{sx:{flexGrow:1},children:m.jsx(j.AppBar,{position:"static",children:m.jsxs(j.Toolbar,{children:[m.jsx(j.Typography,{variant:"h6",noWrap:!0,component:"div",sx:{display:{xs:"none",sm:"block"}},children:e.label}),e.showSearch!==!1&&m.jsxs(oc,{children:[m.jsx(sc,{children:m.jsx(qu,{})}),m.jsx(lc,{value:e.searchValue??"",placeholder:"Search…",inputProps:{"aria-label":"search"},onChange:t=>e.setSearchString(t.target.value)})]})]})})}));var rr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function cc(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}var bn=cc;function fc(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var Ai=fc,dc=Array.isArray,Le=dc,hc=typeof rr=="object"&&rr&&rr.Object===Object&&rr,Pi=hc,pc=Pi,vc=typeof self=="object"&&self&&self.Object===Object&&self,gc=pc||vc||Function("return this")(),Re=gc,bc=Re,yc=bc.Symbol,nr=yc,Mi=nr,Ii=Object.prototype,mc=Ii.hasOwnProperty,xc=Ii.toString,ar=Mi?Mi.toStringTag:void 0;function Sc(e){var t=mc.call(e,ar),r=e[ar];try{e[ar]=void 0;var n=!0}catch{}var a=xc.call(e);return n&&(t?e[ar]=r:delete e[ar]),a}var wc=Sc,Ec=Object.prototype,_c=Ec.toString;function Cc(e){return _c.call(e)}var $c=Cc,Fi=nr,Tc=wc,Oc=$c,Ac="[object Null]",Pc="[object Undefined]",ki=Fi?Fi.toStringTag:void 0;function Mc(e){return e==null?e===void 0?Pc:Ac:ki&&ki in Object(e)?Tc(e):Oc(e)}var ut=Mc;function Ic(e){return e!=null&&typeof e=="object"}var Ze=Ic,Fc=ut,kc=Ze,jc="[object Symbol]";function Lc(e){return typeof e=="symbol"||kc(e)&&Fc(e)==jc}var jr=Lc;function Dc(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ct=Dc,Nc=ut,Bc=Ct,Hc="[object AsyncFunction]",Gc="[object Function]",Vc="[object GeneratorFunction]",Uc="[object Proxy]";function zc(e){if(!Bc(e))return!1;var t=Nc(e);return t==Gc||t==Vc||t==Hc||t==Uc}var ji=zc,Wc=Re,Rc=Wc["__core-js_shared__"],Kc=Rc,yn=Kc,Li=function(){var e=/[^.]+$/.exec(yn&&yn.keys&&yn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function qc(e){return!!Li&&Li in e}var Yc=qc,Xc=Function.prototype,Jc=Xc.toString;function Zc(e){if(e!=null){try{return Jc.call(e)}catch{}try{return e+""}catch{}}return""}var Di=Zc,Qc=ji,ef=Yc,tf=Ct,rf=Di,nf=/[\\^$.*+?()[\]{}|]/g,af=/^\[object .+?Constructor\]$/,of=Function.prototype,sf=Object.prototype,lf=of.toString,uf=sf.hasOwnProperty,cf=RegExp("^"+lf.call(uf).replace(nf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ff(e){if(!tf(e)||ef(e))return!1;var t=Qc(e)?cf:af;return t.test(rf(e))}var df=ff;function hf(e,t){return e==null?void 0:e[t]}var pf=hf,vf=df,gf=pf;function bf(e,t){var r=gf(e,t);return vf(r)?r:void 0}var ct=bf,yf=ct,mf=yf(Object,"create"),Lr=mf,Ni=Lr;function xf(){this.__data__=Ni?Ni(null):{},this.size=0}var Sf=xf;function wf(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Ef=wf,_f=Lr,Cf="__lodash_hash_undefined__",$f=Object.prototype,Tf=$f.hasOwnProperty;function Of(e){var t=this.__data__;if(_f){var r=t[e];return r===Cf?void 0:r}return Tf.call(t,e)?t[e]:void 0}var Af=Of,Pf=Lr,Mf=Object.prototype,If=Mf.hasOwnProperty;function Ff(e){var t=this.__data__;return Pf?t[e]!==void 0:If.call(t,e)}var kf=Ff,jf=Lr,Lf="__lodash_hash_undefined__";function Df(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=jf&&t===void 0?Lf:t,this}var Nf=Df,Bf=Sf,Hf=Ef,Gf=Af,Vf=kf,Uf=Nf;function $t(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}$t.prototype.clear=Bf,$t.prototype.delete=Hf,$t.prototype.get=Gf,$t.prototype.has=Vf,$t.prototype.set=Uf;var zf=$t;function Wf(){this.__data__=[],this.size=0}var Rf=Wf;function Kf(e,t){return e===t||e!==e&&t!==t}var mn=Kf,qf=mn;function Yf(e,t){for(var r=e.length;r--;)if(qf(e[r][0],t))return r;return-1}var Dr=Yf,Xf=Dr,Jf=Array.prototype,Zf=Jf.splice;function Qf(e){var t=this.__data__,r=Xf(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Zf.call(t,r,1),--this.size,!0}var ed=Qf,td=Dr;function rd(e){var t=this.__data__,r=td(t,e);return r<0?void 0:t[r][1]}var nd=rd,ad=Dr;function id(e){return ad(this.__data__,e)>-1}var od=id,sd=Dr;function ld(e,t){var r=this.__data__,n=sd(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var ud=ld,cd=Rf,fd=ed,dd=nd,hd=od,pd=ud;function Tt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Tt.prototype.clear=cd,Tt.prototype.delete=fd,Tt.prototype.get=dd,Tt.prototype.has=hd,Tt.prototype.set=pd;var Nr=Tt,vd=ct,gd=Re,bd=vd(gd,"Map"),xn=bd,Bi=zf,yd=Nr,md=xn;function xd(){this.size=0,this.__data__={hash:new Bi,map:new(md||yd),string:new Bi}}var Sd=xd;function wd(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Ed=wd,_d=Ed;function Cd(e,t){var r=e.__data__;return _d(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Br=Cd,$d=Br;function Td(e){var t=$d(this,e).delete(e);return this.size-=t?1:0,t}var Od=Td,Ad=Br;function Pd(e){return Ad(this,e).get(e)}var Md=Pd,Id=Br;function Fd(e){return Id(this,e).has(e)}var kd=Fd,jd=Br;function Ld(e,t){var r=jd(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var Dd=Ld,Nd=Sd,Bd=Od,Hd=Md,Gd=kd,Vd=Dd;function Ot(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ot.prototype.clear=Nd,Ot.prototype.delete=Bd,Ot.prototype.get=Hd,Ot.prototype.has=Gd,Ot.prototype.set=Vd;var Sn=Ot,Hi=Sn,Ud="Expected a function";function wn(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Ud);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],i=r.cache;if(i.has(a))return i.get(a);var o=e.apply(this,n);return r.cache=i.set(a,o)||i,o};return r.cache=new(wn.Cache||Hi),r}wn.Cache=Hi;var zd=wn,Wd=zd,Rd=500;function Kd(e){var t=Wd(e,function(n){return r.size===Rd&&r.clear(),n}),r=t.cache;return t}var qd=Kd,Yd=qd,Xd=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Jd=/\\(\\)?/g,Zd=Yd(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Xd,function(r,n,a,i){t.push(a?i.replace(Jd,"$1"):n||r)}),t}),Gi=Zd,Qd=jr,eh=1/0;function th(e){if(typeof e=="string"||Qd(e))return e;var t=e+"";return t=="0"&&1/e==-eh?"-0":t}var ir=th,Vi=nr,rh=bn,nh=Le,ah=jr,ih=1/0,Ui=Vi?Vi.prototype:void 0,zi=Ui?Ui.toString:void 0;function Wi(e){if(typeof e=="string")return e;if(nh(e))return rh(e,Wi)+"";if(ah(e))return zi?zi.call(e):"";var t=e+"";return t=="0"&&1/e==-ih?"-0":t}var oh=Wi,sh=oh;function lh(e){return e==null?"":sh(e)}var Ri=lh,uh=bn,ch=Ai,fh=Le,dh=jr,hh=Gi,ph=ir,vh=Ri;function gh(e){return fh(e)?uh(e,ph):dh(e)?[e]:ch(hh(vh(e)))}var bh=gh;const yh=_t(bh);var Ki=Array.isArray,qi=Object.keys,mh=Object.prototype.hasOwnProperty,xh=typeof Element<"u";function En(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var r=Ki(e),n=Ki(t),a,i,o;if(r&&n){if(i=e.length,i!=t.length)return!1;for(a=i;a--!==0;)if(!En(e[a],t[a]))return!1;return!0}if(r!=n)return!1;var s=e instanceof Date,c=t instanceof Date;if(s!=c)return!1;if(s&&c)return e.getTime()==t.getTime();var u=e instanceof RegExp,h=t instanceof RegExp;if(u!=h)return!1;if(u&&h)return e.toString()==t.toString();var l=qi(e);if(i=l.length,i!==qi(t).length)return!1;for(a=i;a--!==0;)if(!mh.call(t,l[a]))return!1;if(xh&&e instanceof Element&&t instanceof Element)return e===t;for(a=i;a--!==0;)if(o=l[a],!(o==="_owner"&&e.$$typeof)&&!En(e[o],t[o]))return!1;return!0}return e!==e&&t!==t}var Sh=function(t,r){try{return En(t,r)}catch(n){if(n.message&&n.message.match(/stack|recursion/i)||n.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",n.name,n.message),!1;throw n}};const ft=_t(Sh);var wh=function(t){return Eh(t)&&!_h(t)};function Eh(e){return!!e&&typeof e=="object"}function _h(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Th(e)}var Ch=typeof Symbol=="function"&&Symbol.for,$h=Ch?Symbol.for("react.element"):60103;function Th(e){return e.$$typeof===$h}function Oh(e){return Array.isArray(e)?[]:{}}function Hr(e,t){return t.clone!==!1&&t.isMergeableObject(e)?or(Oh(e),e,t):e}function Ah(e,t,r){return e.concat(t).map(function(n){return Hr(n,r)})}function Ph(e,t,r){var n={};return r.isMergeableObject(e)&&Object.keys(e).forEach(function(a){n[a]=Hr(e[a],r)}),Object.keys(t).forEach(function(a){!r.isMergeableObject(t[a])||!e[a]?n[a]=Hr(t[a],r):n[a]=or(e[a],t[a],r)}),n}function or(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Ah,r.isMergeableObject=r.isMergeableObject||wh;var n=Array.isArray(t),a=Array.isArray(e),i=n===a;return i?n?r.arrayMerge(e,t,r):Ph(e,t,r):Hr(t,r)}or.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,a){return or(n,a,r)},{})};var _n=or,Yi=typeof global=="object"&&global&&global.Object===Object&&global,Mh=typeof self=="object"&&self&&self.Object===Object&&self,He=Yi||Mh||Function("return this")(),Ke=He.Symbol,Xi=Object.prototype,Ih=Xi.hasOwnProperty,Fh=Xi.toString,sr=Ke?Ke.toStringTag:void 0;function kh(e){var t=Ih.call(e,sr),r=e[sr];try{e[sr]=void 0;var n=!0}catch{}var a=Fh.call(e);return n&&(t?e[sr]=r:delete e[sr]),a}var jh=Object.prototype,Lh=jh.toString;function Dh(e){return Lh.call(e)}var Nh="[object Null]",Bh="[object Undefined]",Ji=Ke?Ke.toStringTag:void 0;function dt(e){return e==null?e===void 0?Bh:Nh:Ji&&Ji in Object(e)?kh(e):Dh(e)}function Zi(e,t){return function(r){return e(t(r))}}var Cn=Zi(Object.getPrototypeOf,Object);function qe(e){return e!=null&&typeof e=="object"}var Hh="[object Object]",Gh=Function.prototype,Vh=Object.prototype,Qi=Gh.toString,Uh=Vh.hasOwnProperty,zh=Qi.call(Object);function $n(e){if(!qe(e)||dt(e)!=Hh)return!1;var t=Cn(e);if(t===null)return!0;var r=Uh.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Qi.call(r)==zh}function Wh(){this.__data__=[],this.size=0}function lr(e,t){return e===t||e!==e&&t!==t}function Gr(e,t){for(var r=e.length;r--;)if(lr(e[r][0],t))return r;return-1}var Rh=Array.prototype,Kh=Rh.splice;function qh(e){var t=this.__data__,r=Gr(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Kh.call(t,r,1),--this.size,!0}function Yh(e){var t=this.__data__,r=Gr(t,e);return r<0?void 0:t[r][1]}function Xh(e){return Gr(this.__data__,e)>-1}function Jh(e,t){var r=this.__data__,n=Gr(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Qe(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Qe.prototype.clear=Wh,Qe.prototype.delete=qh,Qe.prototype.get=Yh,Qe.prototype.has=Xh,Qe.prototype.set=Jh;function Zh(){this.__data__=new Qe,this.size=0}function Qh(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function ep(e){return this.__data__.get(e)}function tp(e){return this.__data__.has(e)}function ke(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var rp="[object AsyncFunction]",np="[object Function]",ap="[object GeneratorFunction]",ip="[object Proxy]";function Tn(e){if(!ke(e))return!1;var t=dt(e);return t==np||t==ap||t==rp||t==ip}var On=He["__core-js_shared__"],eo=function(){var e=/[^.]+$/.exec(On&&On.keys&&On.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function op(e){return!!eo&&eo in e}var sp=Function.prototype,lp=sp.toString;function ht(e){if(e!=null){try{return lp.call(e)}catch{}try{return e+""}catch{}}return""}var up=/[\\^$.*+?()[\]{}|]/g,cp=/^\[object .+?Constructor\]$/,fp=Function.prototype,dp=Object.prototype,hp=fp.toString,pp=dp.hasOwnProperty,vp=RegExp("^"+hp.call(pp).replace(up,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function gp(e){if(!ke(e)||op(e))return!1;var t=Tn(e)?vp:cp;return t.test(ht(e))}function bp(e,t){return e==null?void 0:e[t]}function pt(e,t){var r=bp(e,t);return gp(r)?r:void 0}var ur=pt(He,"Map"),cr=pt(Object,"create");function yp(){this.__data__=cr?cr(null):{},this.size=0}function mp(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var xp="__lodash_hash_undefined__",Sp=Object.prototype,wp=Sp.hasOwnProperty;function Ep(e){var t=this.__data__;if(cr){var r=t[e];return r===xp?void 0:r}return wp.call(t,e)?t[e]:void 0}var _p=Object.prototype,Cp=_p.hasOwnProperty;function $p(e){var t=this.__data__;return cr?t[e]!==void 0:Cp.call(t,e)}var Tp="__lodash_hash_undefined__";function Op(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=cr&&t===void 0?Tp:t,this}function vt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}vt.prototype.clear=yp,vt.prototype.delete=mp,vt.prototype.get=Ep,vt.prototype.has=$p,vt.prototype.set=Op;function Ap(){this.size=0,this.__data__={hash:new vt,map:new(ur||Qe),string:new vt}}function Pp(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Vr(e,t){var r=e.__data__;return Pp(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Mp(e){var t=Vr(this,e).delete(e);return this.size-=t?1:0,t}function Ip(e){return Vr(this,e).get(e)}function Fp(e){return Vr(this,e).has(e)}function kp(e,t){var r=Vr(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function et(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}et.prototype.clear=Ap,et.prototype.delete=Mp,et.prototype.get=Ip,et.prototype.has=Fp,et.prototype.set=kp;var jp=200;function Lp(e,t){var r=this.__data__;if(r instanceof Qe){var n=r.__data__;if(!ur||n.length<jp-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new et(n)}return r.set(e,t),this.size=r.size,this}function Ge(e){var t=this.__data__=new Qe(e);this.size=t.size}Ge.prototype.clear=Zh,Ge.prototype.delete=Qh,Ge.prototype.get=ep,Ge.prototype.has=tp,Ge.prototype.set=Lp;function to(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var Ur=function(){try{var e=pt(Object,"defineProperty");return e({},"",{}),e}catch{}}();function An(e,t,r){t=="__proto__"&&Ur?Ur(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var Dp=Object.prototype,Np=Dp.hasOwnProperty;function ro(e,t,r){var n=e[t];(!(Np.call(e,t)&&lr(n,r))||r===void 0&&!(t in e))&&An(e,t,r)}function fr(e,t,r,n){var a=!r;r||(r={});for(var i=-1,o=t.length;++i<o;){var s=t[i],c=void 0;c===void 0&&(c=e[s]),a?An(r,s,c):ro(r,s,c)}return r}function Bp(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Hp="[object Arguments]";function no(e){return qe(e)&&dt(e)==Hp}var ao=Object.prototype,Gp=ao.hasOwnProperty,Vp=ao.propertyIsEnumerable,zr=no(function(){return arguments}())?no:function(e){return qe(e)&&Gp.call(e,"callee")&&!Vp.call(e,"callee")},$e=Array.isArray;function Up(){return!1}var io=typeof B=="object"&&B&&!B.nodeType&&B,oo=io&&typeof module=="object"&&module&&!module.nodeType&&module,zp=oo&&oo.exports===io,so=zp?He.Buffer:void 0,Wp=so?so.isBuffer:void 0,dr=Wp||Up,Rp=9007199254740991,Kp=/^(?:0|[1-9]\d*)$/;function Pn(e,t){var r=typeof e;return t=t??Rp,!!t&&(r=="number"||r!="symbol"&&Kp.test(e))&&e>-1&&e%1==0&&e<t}var qp=9007199254740991;function Mn(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=qp}var Yp="[object Arguments]",Xp="[object Array]",Jp="[object Boolean]",Zp="[object Date]",Qp="[object Error]",ev="[object Function]",tv="[object Map]",rv="[object Number]",nv="[object Object]",av="[object RegExp]",iv="[object Set]",ov="[object String]",sv="[object WeakMap]",lv="[object ArrayBuffer]",uv="[object DataView]",cv="[object Float32Array]",fv="[object Float64Array]",dv="[object Int8Array]",hv="[object Int16Array]",pv="[object Int32Array]",vv="[object Uint8Array]",gv="[object Uint8ClampedArray]",bv="[object Uint16Array]",yv="[object Uint32Array]",ue={};ue[cv]=ue[fv]=ue[dv]=ue[hv]=ue[pv]=ue[vv]=ue[gv]=ue[bv]=ue[yv]=!0,ue[Yp]=ue[Xp]=ue[lv]=ue[Jp]=ue[uv]=ue[Zp]=ue[Qp]=ue[ev]=ue[tv]=ue[rv]=ue[nv]=ue[av]=ue[iv]=ue[ov]=ue[sv]=!1;function mv(e){return qe(e)&&Mn(e.length)&&!!ue[dt(e)]}function In(e){return function(t){return e(t)}}var lo=typeof B=="object"&&B&&!B.nodeType&&B,hr=lo&&typeof module=="object"&&module&&!module.nodeType&&module,xv=hr&&hr.exports===lo,Fn=xv&&Yi.process,At=function(){try{var e=hr&&hr.require&&hr.require("util").types;return e||Fn&&Fn.binding&&Fn.binding("util")}catch{}}(),uo=At&&At.isTypedArray,kn=uo?In(uo):mv,Sv=Object.prototype,wv=Sv.hasOwnProperty;function co(e,t){var r=$e(e),n=!r&&zr(e),a=!r&&!n&&dr(e),i=!r&&!n&&!a&&kn(e),o=r||n||a||i,s=o?Bp(e.length,String):[],c=s.length;for(var u in e)(t||wv.call(e,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Pn(u,c)))&&s.push(u);return s}var Ev=Object.prototype;function jn(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Ev;return e===r}var _v=Zi(Object.keys,Object),Cv=Object.prototype,$v=Cv.hasOwnProperty;function Tv(e){if(!jn(e))return _v(e);var t=[];for(var r in Object(e))$v.call(e,r)&&r!="constructor"&&t.push(r);return t}function Pt(e){return e!=null&&Mn(e.length)&&!Tn(e)}function pr(e){return Pt(e)?co(e):Tv(e)}function Ov(e,t){return e&&fr(t,pr(t),e)}function Av(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var Pv=Object.prototype,Mv=Pv.hasOwnProperty;function Iv(e){if(!ke(e))return Av(e);var t=jn(e),r=[];for(var n in e)n=="constructor"&&(t||!Mv.call(e,n))||r.push(n);return r}function vr(e){return Pt(e)?co(e,!0):Iv(e)}function Fv(e,t){return e&&fr(t,vr(t),e)}var fo=typeof B=="object"&&B&&!B.nodeType&&B,ho=fo&&typeof module=="object"&&module&&!module.nodeType&&module,kv=ho&&ho.exports===fo,po=kv?He.Buffer:void 0,vo=po?po.allocUnsafe:void 0;function go(e,t){if(t)return e.slice();var r=e.length,n=vo?vo(r):new e.constructor(r);return e.copy(n),n}function Ln(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}function jv(e,t){for(var r=-1,n=e==null?0:e.length,a=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[a++]=o)}return i}function bo(){return[]}var Lv=Object.prototype,Dv=Lv.propertyIsEnumerable,yo=Object.getOwnPropertySymbols,Dn=yo?function(e){return e==null?[]:(e=Object(e),jv(yo(e),function(t){return Dv.call(e,t)}))}:bo;function Nv(e,t){return fr(e,Dn(e),t)}function mo(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var Bv=Object.getOwnPropertySymbols,xo=Bv?function(e){for(var t=[];e;)mo(t,Dn(e)),e=Cn(e);return t}:bo;function Hv(e,t){return fr(e,xo(e),t)}function So(e,t,r){var n=t(e);return $e(e)?n:mo(n,r(e))}function Nn(e){return So(e,pr,Dn)}function Gv(e){return So(e,vr,xo)}var Bn=pt(He,"DataView"),Hn=pt(He,"Promise"),Gn=pt(He,"Set"),Vn=pt(He,"WeakMap"),wo="[object Map]",Vv="[object Object]",Eo="[object Promise]",_o="[object Set]",Co="[object WeakMap]",$o="[object DataView]",Uv=ht(Bn),zv=ht(ur),Wv=ht(Hn),Rv=ht(Gn),Kv=ht(Vn),Ve=dt;(Bn&&Ve(new Bn(new ArrayBuffer(1)))!=$o||ur&&Ve(new ur)!=wo||Hn&&Ve(Hn.resolve())!=Eo||Gn&&Ve(new Gn)!=_o||Vn&&Ve(new Vn)!=Co)&&(Ve=function(e){var t=dt(e),r=t==Vv?e.constructor:void 0,n=r?ht(r):"";if(n)switch(n){case Uv:return $o;case zv:return wo;case Wv:return Eo;case Rv:return _o;case Kv:return Co}return t});var qv=Object.prototype,Yv=qv.hasOwnProperty;function Xv(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&Yv.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var Wr=He.Uint8Array;function Un(e){var t=new e.constructor(e.byteLength);return new Wr(t).set(new Wr(e)),t}function Jv(e,t){var r=t?Un(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var Zv=/\w*$/;function Qv(e){var t=new e.constructor(e.source,Zv.exec(e));return t.lastIndex=e.lastIndex,t}var To=Ke?Ke.prototype:void 0,Oo=To?To.valueOf:void 0;function eg(e){return Oo?Object(Oo.call(e)):{}}function Ao(e,t){var r=t?Un(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var tg="[object Boolean]",rg="[object Date]",ng="[object Map]",ag="[object Number]",ig="[object RegExp]",og="[object Set]",sg="[object String]",lg="[object Symbol]",ug="[object ArrayBuffer]",cg="[object DataView]",fg="[object Float32Array]",dg="[object Float64Array]",hg="[object Int8Array]",pg="[object Int16Array]",vg="[object Int32Array]",gg="[object Uint8Array]",bg="[object Uint8ClampedArray]",yg="[object Uint16Array]",mg="[object Uint32Array]";function xg(e,t,r){var n=e.constructor;switch(t){case ug:return Un(e);case tg:case rg:return new n(+e);case cg:return Jv(e,r);case fg:case dg:case hg:case pg:case vg:case gg:case bg:case yg:case mg:return Ao(e,r);case ng:return new n;case ag:case sg:return new n(e);case ig:return Qv(e);case og:return new n;case lg:return eg(e)}}var Po=Object.create,Sg=function(){function e(){}return function(t){if(!ke(t))return{};if(Po)return Po(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function Mo(e){return typeof e.constructor=="function"&&!jn(e)?Sg(Cn(e)):{}}var wg="[object Map]";function Eg(e){return qe(e)&&Ve(e)==wg}var Io=At&&At.isMap,_g=Io?In(Io):Eg,Cg="[object Set]";function $g(e){return qe(e)&&Ve(e)==Cg}var Fo=At&&At.isSet,Tg=Fo?In(Fo):$g,Og=1,Ag=2,Pg=4,ko="[object Arguments]",Mg="[object Array]",Ig="[object Boolean]",Fg="[object Date]",kg="[object Error]",jo="[object Function]",jg="[object GeneratorFunction]",Lg="[object Map]",Dg="[object Number]",Lo="[object Object]",Ng="[object RegExp]",Bg="[object Set]",Hg="[object String]",Gg="[object Symbol]",Vg="[object WeakMap]",Ug="[object ArrayBuffer]",zg="[object DataView]",Wg="[object Float32Array]",Rg="[object Float64Array]",Kg="[object Int8Array]",qg="[object Int16Array]",Yg="[object Int32Array]",Xg="[object Uint8Array]",Jg="[object Uint8ClampedArray]",Zg="[object Uint16Array]",Qg="[object Uint32Array]",se={};se[ko]=se[Mg]=se[Ug]=se[zg]=se[Ig]=se[Fg]=se[Wg]=se[Rg]=se[Kg]=se[qg]=se[Yg]=se[Lg]=se[Dg]=se[Lo]=se[Ng]=se[Bg]=se[Hg]=se[Gg]=se[Xg]=se[Jg]=se[Zg]=se[Qg]=!0,se[kg]=se[jo]=se[Vg]=!1;function Rr(e,t,r,n,a,i){var o,s=t&Og,c=t&Ag,u=t&Pg;if(o!==void 0)return o;if(!ke(e))return e;var h=$e(e);if(h){if(o=Xv(e),!s)return Ln(e,o)}else{var l=Ve(e),f=l==jo||l==jg;if(dr(e))return go(e,s);if(l==Lo||l==ko||f&&!a){if(o=c||f?{}:Mo(e),!s)return c?Hv(e,Fv(o,e)):Nv(e,Ov(o,e))}else{if(!se[l])return a?e:{};o=xg(e,l,s)}}i||(i=new Ge);var p=i.get(e);if(p)return p;i.set(e,o),Tg(e)?e.forEach(function(y){o.add(Rr(y,t,r,y,e,i))}):_g(e)&&e.forEach(function(y,x){o.set(x,Rr(y,t,r,x,e,i))});var v=u?c?Gv:Nn:c?vr:pr,g=h?void 0:v(e);return to(g||e,function(y,x){g&&(x=y,y=e[x]),ro(o,x,Rr(y,t,r,x,e,i))}),o}var e0=4;function Do(e){return Rr(e,e0)}function zn(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}var t0="[object Symbol]";function gr(e){return typeof e=="symbol"||qe(e)&&dt(e)==t0}var r0="Expected a function";function Wn(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(r0);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],i=r.cache;if(i.has(a))return i.get(a);var o=e.apply(this,n);return r.cache=i.set(a,o)||i,o};return r.cache=new(Wn.Cache||et),r}Wn.Cache=et;var n0=500;function a0(e){var t=Wn(e,function(n){return r.size===n0&&r.clear(),n}),r=t.cache;return t}var i0=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o0=/\\(\\)?/g,No=a0(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(i0,function(r,n,a,i){t.push(a?i.replace(o0,"$1"):n||r)}),t}),s0=1/0;function br(e){if(typeof e=="string"||gr(e))return e;var t=e+"";return t=="0"&&1/e==-s0?"-0":t}var l0=1/0,Bo=Ke?Ke.prototype:void 0,Ho=Bo?Bo.toString:void 0;function Go(e){if(typeof e=="string")return e;if($e(e))return zn(e,Go)+"";if(gr(e))return Ho?Ho.call(e):"";var t=e+"";return t=="0"&&1/e==-l0?"-0":t}function Vo(e){return e==null?"":Go(e)}function Uo(e){return $e(e)?zn(e,br):gr(e)?[e]:Ln(No(Vo(e)))}var u0=process.env.NODE_ENV==="production";function de(e,t){if(!u0){if(e)return;var r="Warning: "+t;typeof console<"u"&&console.warn(r);try{throw Error(r)}catch{}}}var Rn={exports:{}},ee={};/** @license React v16.13.1
1
+ (function(B,m){typeof exports=="object"&&typeof module<"u"?m(exports,require("@emotion/react/jsx-runtime"),require("@emotion/react"),require("@mui/material"),require("react"),require("@mui/material/styles"),require("@mui/icons-material/Search"),require("@mui/icons-material/ArrowRight"),require("@mui/icons-material/ArrowBack"),require("@mui/material/TextField"),require("@mui/material/FormControl"),require("@mui/material/FormHelperText"),require("@mui/material/InputLabel"),require("@mui/material/Select"),require("@mui/material/Switch"),require("@mui/material/Checkbox"),require("@mui/material/ToggleButtonGroup")):typeof define=="function"&&define.amd?define(["exports","@emotion/react/jsx-runtime","@emotion/react","@mui/material","react","@mui/material/styles","@mui/icons-material/Search","@mui/icons-material/ArrowRight","@mui/icons-material/ArrowBack","@mui/material/TextField","@mui/material/FormControl","@mui/material/FormHelperText","@mui/material/InputLabel","@mui/material/Select","@mui/material/Switch","@mui/material/Checkbox","@mui/material/ToggleButtonGroup"],m):(B=typeof globalThis<"u"?globalThis:B||self,m(B.configr={},B["emotion-react-jsx-runtime"],B["emotion-react"],B["mui-material"],B.React,B["mui-material/styles"],B.SearchIcon,B.ArrowRightIcon,B.ArrowBackIcon,B.MuiTextField,B["mui-material-formcontrol"],B["mui-material-form-helper-text"],B["mui-material-input-label"],B["mui-material-select"],B.MuiSwitch,B.MuiCheckbox,B.MuiToggleButtonGroup))})(this,function(B,m,de,F,d,nt,qu,Yu,Xu,Ju,Zu,Qu,ec,tc,rc,nc,ac){"use strict";function ic(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const K=ic(d),oc=nt.styled("div")(({theme:e})=>({position:"relative",borderRadius:e.shape.borderRadius,backgroundColor:nt.alpha(e.palette.common.white,.15),"&:hover":{backgroundColor:nt.alpha(e.palette.common.white,.25)},marginRight:e.spacing(2),marginLeft:0,width:"100%",[e.breakpoints.up("sm")]:{marginLeft:e.spacing(3),width:"auto"}})),sc=nt.styled("div")(({theme:e})=>({padding:e.spacing(0,2),height:"100%",position:"absolute",pointerEvents:"none",display:"flex",alignItems:"center",justifyContent:"center"})),lc=nt.styled(F.InputBase)(({theme:e})=>({color:"inherit","& .MuiInputBase-input":{padding:e.spacing(1,1,1,0),paddingLeft:`calc(1em + ${e.spacing(4)})`,transition:e.transitions.create("width"),width:"100%",[e.breakpoints.up("md")]:{width:"20ch"}}})),uc=e=>(console.log("Rendering appbar. searchValue="+e.searchValue),m.jsx(F.Box,{sx:{flexGrow:1},children:m.jsx(F.AppBar,{position:"static",children:m.jsxs(F.Toolbar,{children:[m.jsx(F.Typography,{variant:"h6",noWrap:!0,component:"div",sx:{display:{xs:"none",sm:"block"}},children:e.label}),e.showSearch!==!1&&m.jsxs(oc,{children:[m.jsx(sc,{children:m.jsx(qu,{})}),m.jsx(lc,{value:e.searchValue??"",placeholder:"Search…",inputProps:{"aria-label":"search"},onChange:t=>e.setSearchString(t.target.value)})]})]})})}));var rr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function cc(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}var yn=cc;function fc(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var Pi=fc,dc=Array.isArray,Le=dc,hc=typeof rr=="object"&&rr&&rr.Object===Object&&rr,Mi=hc,pc=Mi,vc=typeof self=="object"&&self&&self.Object===Object&&self,gc=pc||vc||Function("return this")(),Re=gc,bc=Re,yc=bc.Symbol,nr=yc,Ii=nr,Fi=Object.prototype,mc=Fi.hasOwnProperty,xc=Fi.toString,ar=Ii?Ii.toStringTag:void 0;function Sc(e){var t=mc.call(e,ar),r=e[ar];try{e[ar]=void 0;var n=!0}catch{}var a=xc.call(e);return n&&(t?e[ar]=r:delete e[ar]),a}var wc=Sc,Ec=Object.prototype,_c=Ec.toString;function Cc(e){return _c.call(e)}var $c=Cc,ki=nr,Tc=wc,Oc=$c,Ac="[object Null]",Pc="[object Undefined]",ji=ki?ki.toStringTag:void 0;function Mc(e){return e==null?e===void 0?Pc:Ac:ji&&ji in Object(e)?Tc(e):Oc(e)}var ut=Mc;function Ic(e){return e!=null&&typeof e=="object"}var Ze=Ic,Fc=ut,kc=Ze,jc="[object Symbol]";function Lc(e){return typeof e=="symbol"||kc(e)&&Fc(e)==jc}var jr=Lc;function Dc(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ct=Dc,Nc=ut,Bc=Ct,Hc="[object AsyncFunction]",Gc="[object Function]",Vc="[object GeneratorFunction]",Uc="[object Proxy]";function zc(e){if(!Bc(e))return!1;var t=Nc(e);return t==Gc||t==Vc||t==Hc||t==Uc}var Li=zc,Wc=Re,Rc=Wc["__core-js_shared__"],Kc=Rc,mn=Kc,Di=function(){var e=/[^.]+$/.exec(mn&&mn.keys&&mn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function qc(e){return!!Di&&Di in e}var Yc=qc,Xc=Function.prototype,Jc=Xc.toString;function Zc(e){if(e!=null){try{return Jc.call(e)}catch{}try{return e+""}catch{}}return""}var Ni=Zc,Qc=Li,ef=Yc,tf=Ct,rf=Ni,nf=/[\\^$.*+?()[\]{}|]/g,af=/^\[object .+?Constructor\]$/,of=Function.prototype,sf=Object.prototype,lf=of.toString,uf=sf.hasOwnProperty,cf=RegExp("^"+lf.call(uf).replace(nf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ff(e){if(!tf(e)||ef(e))return!1;var t=Qc(e)?cf:af;return t.test(rf(e))}var df=ff;function hf(e,t){return e==null?void 0:e[t]}var pf=hf,vf=df,gf=pf;function bf(e,t){var r=gf(e,t);return vf(r)?r:void 0}var ct=bf,yf=ct,mf=yf(Object,"create"),Lr=mf,Bi=Lr;function xf(){this.__data__=Bi?Bi(null):{},this.size=0}var Sf=xf;function wf(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Ef=wf,_f=Lr,Cf="__lodash_hash_undefined__",$f=Object.prototype,Tf=$f.hasOwnProperty;function Of(e){var t=this.__data__;if(_f){var r=t[e];return r===Cf?void 0:r}return Tf.call(t,e)?t[e]:void 0}var Af=Of,Pf=Lr,Mf=Object.prototype,If=Mf.hasOwnProperty;function Ff(e){var t=this.__data__;return Pf?t[e]!==void 0:If.call(t,e)}var kf=Ff,jf=Lr,Lf="__lodash_hash_undefined__";function Df(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=jf&&t===void 0?Lf:t,this}var Nf=Df,Bf=Sf,Hf=Ef,Gf=Af,Vf=kf,Uf=Nf;function $t(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}$t.prototype.clear=Bf,$t.prototype.delete=Hf,$t.prototype.get=Gf,$t.prototype.has=Vf,$t.prototype.set=Uf;var zf=$t;function Wf(){this.__data__=[],this.size=0}var Rf=Wf;function Kf(e,t){return e===t||e!==e&&t!==t}var xn=Kf,qf=xn;function Yf(e,t){for(var r=e.length;r--;)if(qf(e[r][0],t))return r;return-1}var Dr=Yf,Xf=Dr,Jf=Array.prototype,Zf=Jf.splice;function Qf(e){var t=this.__data__,r=Xf(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Zf.call(t,r,1),--this.size,!0}var ed=Qf,td=Dr;function rd(e){var t=this.__data__,r=td(t,e);return r<0?void 0:t[r][1]}var nd=rd,ad=Dr;function id(e){return ad(this.__data__,e)>-1}var od=id,sd=Dr;function ld(e,t){var r=this.__data__,n=sd(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var ud=ld,cd=Rf,fd=ed,dd=nd,hd=od,pd=ud;function Tt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Tt.prototype.clear=cd,Tt.prototype.delete=fd,Tt.prototype.get=dd,Tt.prototype.has=hd,Tt.prototype.set=pd;var Nr=Tt,vd=ct,gd=Re,bd=vd(gd,"Map"),Sn=bd,Hi=zf,yd=Nr,md=Sn;function xd(){this.size=0,this.__data__={hash:new Hi,map:new(md||yd),string:new Hi}}var Sd=xd;function wd(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Ed=wd,_d=Ed;function Cd(e,t){var r=e.__data__;return _d(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Br=Cd,$d=Br;function Td(e){var t=$d(this,e).delete(e);return this.size-=t?1:0,t}var Od=Td,Ad=Br;function Pd(e){return Ad(this,e).get(e)}var Md=Pd,Id=Br;function Fd(e){return Id(this,e).has(e)}var kd=Fd,jd=Br;function Ld(e,t){var r=jd(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var Dd=Ld,Nd=Sd,Bd=Od,Hd=Md,Gd=kd,Vd=Dd;function Ot(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ot.prototype.clear=Nd,Ot.prototype.delete=Bd,Ot.prototype.get=Hd,Ot.prototype.has=Gd,Ot.prototype.set=Vd;var wn=Ot,Gi=wn,Ud="Expected a function";function En(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Ud);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],i=r.cache;if(i.has(a))return i.get(a);var o=e.apply(this,n);return r.cache=i.set(a,o)||i,o};return r.cache=new(En.Cache||Gi),r}En.Cache=Gi;var zd=En,Wd=zd,Rd=500;function Kd(e){var t=Wd(e,function(n){return r.size===Rd&&r.clear(),n}),r=t.cache;return t}var qd=Kd,Yd=qd,Xd=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Jd=/\\(\\)?/g,Zd=Yd(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Xd,function(r,n,a,i){t.push(a?i.replace(Jd,"$1"):n||r)}),t}),Vi=Zd,Qd=jr,eh=1/0;function th(e){if(typeof e=="string"||Qd(e))return e;var t=e+"";return t=="0"&&1/e==-eh?"-0":t}var ir=th,Ui=nr,rh=yn,nh=Le,ah=jr,ih=1/0,zi=Ui?Ui.prototype:void 0,Wi=zi?zi.toString:void 0;function Ri(e){if(typeof e=="string")return e;if(nh(e))return rh(e,Ri)+"";if(ah(e))return Wi?Wi.call(e):"";var t=e+"";return t=="0"&&1/e==-ih?"-0":t}var oh=Ri,sh=oh;function lh(e){return e==null?"":sh(e)}var Ki=lh,uh=yn,ch=Pi,fh=Le,dh=jr,hh=Vi,ph=ir,vh=Ki;function gh(e){return fh(e)?uh(e,ph):dh(e)?[e]:ch(hh(vh(e)))}var bh=gh;const yh=_t(bh);var qi=Array.isArray,Yi=Object.keys,mh=Object.prototype.hasOwnProperty,xh=typeof Element<"u";function _n(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var r=qi(e),n=qi(t),a,i,o;if(r&&n){if(i=e.length,i!=t.length)return!1;for(a=i;a--!==0;)if(!_n(e[a],t[a]))return!1;return!0}if(r!=n)return!1;var s=e instanceof Date,c=t instanceof Date;if(s!=c)return!1;if(s&&c)return e.getTime()==t.getTime();var u=e instanceof RegExp,h=t instanceof RegExp;if(u!=h)return!1;if(u&&h)return e.toString()==t.toString();var l=Yi(e);if(i=l.length,i!==Yi(t).length)return!1;for(a=i;a--!==0;)if(!mh.call(t,l[a]))return!1;if(xh&&e instanceof Element&&t instanceof Element)return e===t;for(a=i;a--!==0;)if(o=l[a],!(o==="_owner"&&e.$$typeof)&&!_n(e[o],t[o]))return!1;return!0}return e!==e&&t!==t}var Sh=function(t,r){try{return _n(t,r)}catch(n){if(n.message&&n.message.match(/stack|recursion/i)||n.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",n.name,n.message),!1;throw n}};const ft=_t(Sh);var wh=function(t){return Eh(t)&&!_h(t)};function Eh(e){return!!e&&typeof e=="object"}function _h(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Th(e)}var Ch=typeof Symbol=="function"&&Symbol.for,$h=Ch?Symbol.for("react.element"):60103;function Th(e){return e.$$typeof===$h}function Oh(e){return Array.isArray(e)?[]:{}}function Hr(e,t){return t.clone!==!1&&t.isMergeableObject(e)?or(Oh(e),e,t):e}function Ah(e,t,r){return e.concat(t).map(function(n){return Hr(n,r)})}function Ph(e,t,r){var n={};return r.isMergeableObject(e)&&Object.keys(e).forEach(function(a){n[a]=Hr(e[a],r)}),Object.keys(t).forEach(function(a){!r.isMergeableObject(t[a])||!e[a]?n[a]=Hr(t[a],r):n[a]=or(e[a],t[a],r)}),n}function or(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Ah,r.isMergeableObject=r.isMergeableObject||wh;var n=Array.isArray(t),a=Array.isArray(e),i=n===a;return i?n?r.arrayMerge(e,t,r):Ph(e,t,r):Hr(t,r)}or.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,a){return or(n,a,r)},{})};var Cn=or,Xi=typeof global=="object"&&global&&global.Object===Object&&global,Mh=typeof self=="object"&&self&&self.Object===Object&&self,He=Xi||Mh||Function("return this")(),Ke=He.Symbol,Ji=Object.prototype,Ih=Ji.hasOwnProperty,Fh=Ji.toString,sr=Ke?Ke.toStringTag:void 0;function kh(e){var t=Ih.call(e,sr),r=e[sr];try{e[sr]=void 0;var n=!0}catch{}var a=Fh.call(e);return n&&(t?e[sr]=r:delete e[sr]),a}var jh=Object.prototype,Lh=jh.toString;function Dh(e){return Lh.call(e)}var Nh="[object Null]",Bh="[object Undefined]",Zi=Ke?Ke.toStringTag:void 0;function dt(e){return e==null?e===void 0?Bh:Nh:Zi&&Zi in Object(e)?kh(e):Dh(e)}function Qi(e,t){return function(r){return e(t(r))}}var $n=Qi(Object.getPrototypeOf,Object);function qe(e){return e!=null&&typeof e=="object"}var Hh="[object Object]",Gh=Function.prototype,Vh=Object.prototype,eo=Gh.toString,Uh=Vh.hasOwnProperty,zh=eo.call(Object);function Tn(e){if(!qe(e)||dt(e)!=Hh)return!1;var t=$n(e);if(t===null)return!0;var r=Uh.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&eo.call(r)==zh}function Wh(){this.__data__=[],this.size=0}function lr(e,t){return e===t||e!==e&&t!==t}function Gr(e,t){for(var r=e.length;r--;)if(lr(e[r][0],t))return r;return-1}var Rh=Array.prototype,Kh=Rh.splice;function qh(e){var t=this.__data__,r=Gr(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Kh.call(t,r,1),--this.size,!0}function Yh(e){var t=this.__data__,r=Gr(t,e);return r<0?void 0:t[r][1]}function Xh(e){return Gr(this.__data__,e)>-1}function Jh(e,t){var r=this.__data__,n=Gr(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Qe(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Qe.prototype.clear=Wh,Qe.prototype.delete=qh,Qe.prototype.get=Yh,Qe.prototype.has=Xh,Qe.prototype.set=Jh;function Zh(){this.__data__=new Qe,this.size=0}function Qh(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function ep(e){return this.__data__.get(e)}function tp(e){return this.__data__.has(e)}function ke(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var rp="[object AsyncFunction]",np="[object Function]",ap="[object GeneratorFunction]",ip="[object Proxy]";function On(e){if(!ke(e))return!1;var t=dt(e);return t==np||t==ap||t==rp||t==ip}var An=He["__core-js_shared__"],to=function(){var e=/[^.]+$/.exec(An&&An.keys&&An.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function op(e){return!!to&&to in e}var sp=Function.prototype,lp=sp.toString;function ht(e){if(e!=null){try{return lp.call(e)}catch{}try{return e+""}catch{}}return""}var up=/[\\^$.*+?()[\]{}|]/g,cp=/^\[object .+?Constructor\]$/,fp=Function.prototype,dp=Object.prototype,hp=fp.toString,pp=dp.hasOwnProperty,vp=RegExp("^"+hp.call(pp).replace(up,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function gp(e){if(!ke(e)||op(e))return!1;var t=On(e)?vp:cp;return t.test(ht(e))}function bp(e,t){return e==null?void 0:e[t]}function pt(e,t){var r=bp(e,t);return gp(r)?r:void 0}var ur=pt(He,"Map"),cr=pt(Object,"create");function yp(){this.__data__=cr?cr(null):{},this.size=0}function mp(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var xp="__lodash_hash_undefined__",Sp=Object.prototype,wp=Sp.hasOwnProperty;function Ep(e){var t=this.__data__;if(cr){var r=t[e];return r===xp?void 0:r}return wp.call(t,e)?t[e]:void 0}var _p=Object.prototype,Cp=_p.hasOwnProperty;function $p(e){var t=this.__data__;return cr?t[e]!==void 0:Cp.call(t,e)}var Tp="__lodash_hash_undefined__";function Op(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=cr&&t===void 0?Tp:t,this}function vt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}vt.prototype.clear=yp,vt.prototype.delete=mp,vt.prototype.get=Ep,vt.prototype.has=$p,vt.prototype.set=Op;function Ap(){this.size=0,this.__data__={hash:new vt,map:new(ur||Qe),string:new vt}}function Pp(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Vr(e,t){var r=e.__data__;return Pp(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Mp(e){var t=Vr(this,e).delete(e);return this.size-=t?1:0,t}function Ip(e){return Vr(this,e).get(e)}function Fp(e){return Vr(this,e).has(e)}function kp(e,t){var r=Vr(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function et(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}et.prototype.clear=Ap,et.prototype.delete=Mp,et.prototype.get=Ip,et.prototype.has=Fp,et.prototype.set=kp;var jp=200;function Lp(e,t){var r=this.__data__;if(r instanceof Qe){var n=r.__data__;if(!ur||n.length<jp-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new et(n)}return r.set(e,t),this.size=r.size,this}function Ge(e){var t=this.__data__=new Qe(e);this.size=t.size}Ge.prototype.clear=Zh,Ge.prototype.delete=Qh,Ge.prototype.get=ep,Ge.prototype.has=tp,Ge.prototype.set=Lp;function ro(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var Ur=function(){try{var e=pt(Object,"defineProperty");return e({},"",{}),e}catch{}}();function Pn(e,t,r){t=="__proto__"&&Ur?Ur(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var Dp=Object.prototype,Np=Dp.hasOwnProperty;function no(e,t,r){var n=e[t];(!(Np.call(e,t)&&lr(n,r))||r===void 0&&!(t in e))&&Pn(e,t,r)}function fr(e,t,r,n){var a=!r;r||(r={});for(var i=-1,o=t.length;++i<o;){var s=t[i],c=void 0;c===void 0&&(c=e[s]),a?Pn(r,s,c):no(r,s,c)}return r}function Bp(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Hp="[object Arguments]";function ao(e){return qe(e)&&dt(e)==Hp}var io=Object.prototype,Gp=io.hasOwnProperty,Vp=io.propertyIsEnumerable,zr=ao(function(){return arguments}())?ao:function(e){return qe(e)&&Gp.call(e,"callee")&&!Vp.call(e,"callee")},$e=Array.isArray;function Up(){return!1}var oo=typeof B=="object"&&B&&!B.nodeType&&B,so=oo&&typeof module=="object"&&module&&!module.nodeType&&module,zp=so&&so.exports===oo,lo=zp?He.Buffer:void 0,Wp=lo?lo.isBuffer:void 0,dr=Wp||Up,Rp=9007199254740991,Kp=/^(?:0|[1-9]\d*)$/;function Mn(e,t){var r=typeof e;return t=t??Rp,!!t&&(r=="number"||r!="symbol"&&Kp.test(e))&&e>-1&&e%1==0&&e<t}var qp=9007199254740991;function In(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=qp}var Yp="[object Arguments]",Xp="[object Array]",Jp="[object Boolean]",Zp="[object Date]",Qp="[object Error]",ev="[object Function]",tv="[object Map]",rv="[object Number]",nv="[object Object]",av="[object RegExp]",iv="[object Set]",ov="[object String]",sv="[object WeakMap]",lv="[object ArrayBuffer]",uv="[object DataView]",cv="[object Float32Array]",fv="[object Float64Array]",dv="[object Int8Array]",hv="[object Int16Array]",pv="[object Int32Array]",vv="[object Uint8Array]",gv="[object Uint8ClampedArray]",bv="[object Uint16Array]",yv="[object Uint32Array]",ue={};ue[cv]=ue[fv]=ue[dv]=ue[hv]=ue[pv]=ue[vv]=ue[gv]=ue[bv]=ue[yv]=!0,ue[Yp]=ue[Xp]=ue[lv]=ue[Jp]=ue[uv]=ue[Zp]=ue[Qp]=ue[ev]=ue[tv]=ue[rv]=ue[nv]=ue[av]=ue[iv]=ue[ov]=ue[sv]=!1;function mv(e){return qe(e)&&In(e.length)&&!!ue[dt(e)]}function Fn(e){return function(t){return e(t)}}var uo=typeof B=="object"&&B&&!B.nodeType&&B,hr=uo&&typeof module=="object"&&module&&!module.nodeType&&module,xv=hr&&hr.exports===uo,kn=xv&&Xi.process,At=function(){try{var e=hr&&hr.require&&hr.require("util").types;return e||kn&&kn.binding&&kn.binding("util")}catch{}}(),co=At&&At.isTypedArray,jn=co?Fn(co):mv,Sv=Object.prototype,wv=Sv.hasOwnProperty;function fo(e,t){var r=$e(e),n=!r&&zr(e),a=!r&&!n&&dr(e),i=!r&&!n&&!a&&jn(e),o=r||n||a||i,s=o?Bp(e.length,String):[],c=s.length;for(var u in e)(t||wv.call(e,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Mn(u,c)))&&s.push(u);return s}var Ev=Object.prototype;function Ln(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Ev;return e===r}var _v=Qi(Object.keys,Object),Cv=Object.prototype,$v=Cv.hasOwnProperty;function Tv(e){if(!Ln(e))return _v(e);var t=[];for(var r in Object(e))$v.call(e,r)&&r!="constructor"&&t.push(r);return t}function Pt(e){return e!=null&&In(e.length)&&!On(e)}function pr(e){return Pt(e)?fo(e):Tv(e)}function Ov(e,t){return e&&fr(t,pr(t),e)}function Av(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var Pv=Object.prototype,Mv=Pv.hasOwnProperty;function Iv(e){if(!ke(e))return Av(e);var t=Ln(e),r=[];for(var n in e)n=="constructor"&&(t||!Mv.call(e,n))||r.push(n);return r}function vr(e){return Pt(e)?fo(e,!0):Iv(e)}function Fv(e,t){return e&&fr(t,vr(t),e)}var ho=typeof B=="object"&&B&&!B.nodeType&&B,po=ho&&typeof module=="object"&&module&&!module.nodeType&&module,kv=po&&po.exports===ho,vo=kv?He.Buffer:void 0,go=vo?vo.allocUnsafe:void 0;function bo(e,t){if(t)return e.slice();var r=e.length,n=go?go(r):new e.constructor(r);return e.copy(n),n}function Dn(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}function jv(e,t){for(var r=-1,n=e==null?0:e.length,a=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[a++]=o)}return i}function yo(){return[]}var Lv=Object.prototype,Dv=Lv.propertyIsEnumerable,mo=Object.getOwnPropertySymbols,Nn=mo?function(e){return e==null?[]:(e=Object(e),jv(mo(e),function(t){return Dv.call(e,t)}))}:yo;function Nv(e,t){return fr(e,Nn(e),t)}function xo(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var Bv=Object.getOwnPropertySymbols,So=Bv?function(e){for(var t=[];e;)xo(t,Nn(e)),e=$n(e);return t}:yo;function Hv(e,t){return fr(e,So(e),t)}function wo(e,t,r){var n=t(e);return $e(e)?n:xo(n,r(e))}function Bn(e){return wo(e,pr,Nn)}function Gv(e){return wo(e,vr,So)}var Hn=pt(He,"DataView"),Gn=pt(He,"Promise"),Vn=pt(He,"Set"),Un=pt(He,"WeakMap"),Eo="[object Map]",Vv="[object Object]",_o="[object Promise]",Co="[object Set]",$o="[object WeakMap]",To="[object DataView]",Uv=ht(Hn),zv=ht(ur),Wv=ht(Gn),Rv=ht(Vn),Kv=ht(Un),Ve=dt;(Hn&&Ve(new Hn(new ArrayBuffer(1)))!=To||ur&&Ve(new ur)!=Eo||Gn&&Ve(Gn.resolve())!=_o||Vn&&Ve(new Vn)!=Co||Un&&Ve(new Un)!=$o)&&(Ve=function(e){var t=dt(e),r=t==Vv?e.constructor:void 0,n=r?ht(r):"";if(n)switch(n){case Uv:return To;case zv:return Eo;case Wv:return _o;case Rv:return Co;case Kv:return $o}return t});var qv=Object.prototype,Yv=qv.hasOwnProperty;function Xv(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&Yv.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var Wr=He.Uint8Array;function zn(e){var t=new e.constructor(e.byteLength);return new Wr(t).set(new Wr(e)),t}function Jv(e,t){var r=t?zn(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var Zv=/\w*$/;function Qv(e){var t=new e.constructor(e.source,Zv.exec(e));return t.lastIndex=e.lastIndex,t}var Oo=Ke?Ke.prototype:void 0,Ao=Oo?Oo.valueOf:void 0;function eg(e){return Ao?Object(Ao.call(e)):{}}function Po(e,t){var r=t?zn(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var tg="[object Boolean]",rg="[object Date]",ng="[object Map]",ag="[object Number]",ig="[object RegExp]",og="[object Set]",sg="[object String]",lg="[object Symbol]",ug="[object ArrayBuffer]",cg="[object DataView]",fg="[object Float32Array]",dg="[object Float64Array]",hg="[object Int8Array]",pg="[object Int16Array]",vg="[object Int32Array]",gg="[object Uint8Array]",bg="[object Uint8ClampedArray]",yg="[object Uint16Array]",mg="[object Uint32Array]";function xg(e,t,r){var n=e.constructor;switch(t){case ug:return zn(e);case tg:case rg:return new n(+e);case cg:return Jv(e,r);case fg:case dg:case hg:case pg:case vg:case gg:case bg:case yg:case mg:return Po(e,r);case ng:return new n;case ag:case sg:return new n(e);case ig:return Qv(e);case og:return new n;case lg:return eg(e)}}var Mo=Object.create,Sg=function(){function e(){}return function(t){if(!ke(t))return{};if(Mo)return Mo(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function Io(e){return typeof e.constructor=="function"&&!Ln(e)?Sg($n(e)):{}}var wg="[object Map]";function Eg(e){return qe(e)&&Ve(e)==wg}var Fo=At&&At.isMap,_g=Fo?Fn(Fo):Eg,Cg="[object Set]";function $g(e){return qe(e)&&Ve(e)==Cg}var ko=At&&At.isSet,Tg=ko?Fn(ko):$g,Og=1,Ag=2,Pg=4,jo="[object Arguments]",Mg="[object Array]",Ig="[object Boolean]",Fg="[object Date]",kg="[object Error]",Lo="[object Function]",jg="[object GeneratorFunction]",Lg="[object Map]",Dg="[object Number]",Do="[object Object]",Ng="[object RegExp]",Bg="[object Set]",Hg="[object String]",Gg="[object Symbol]",Vg="[object WeakMap]",Ug="[object ArrayBuffer]",zg="[object DataView]",Wg="[object Float32Array]",Rg="[object Float64Array]",Kg="[object Int8Array]",qg="[object Int16Array]",Yg="[object Int32Array]",Xg="[object Uint8Array]",Jg="[object Uint8ClampedArray]",Zg="[object Uint16Array]",Qg="[object Uint32Array]",se={};se[jo]=se[Mg]=se[Ug]=se[zg]=se[Ig]=se[Fg]=se[Wg]=se[Rg]=se[Kg]=se[qg]=se[Yg]=se[Lg]=se[Dg]=se[Do]=se[Ng]=se[Bg]=se[Hg]=se[Gg]=se[Xg]=se[Jg]=se[Zg]=se[Qg]=!0,se[kg]=se[Lo]=se[Vg]=!1;function Rr(e,t,r,n,a,i){var o,s=t&Og,c=t&Ag,u=t&Pg;if(o!==void 0)return o;if(!ke(e))return e;var h=$e(e);if(h){if(o=Xv(e),!s)return Dn(e,o)}else{var l=Ve(e),f=l==Lo||l==jg;if(dr(e))return bo(e,s);if(l==Do||l==jo||f&&!a){if(o=c||f?{}:Io(e),!s)return c?Hv(e,Fv(o,e)):Nv(e,Ov(o,e))}else{if(!se[l])return a?e:{};o=xg(e,l,s)}}i||(i=new Ge);var p=i.get(e);if(p)return p;i.set(e,o),Tg(e)?e.forEach(function(y){o.add(Rr(y,t,r,y,e,i))}):_g(e)&&e.forEach(function(y,x){o.set(x,Rr(y,t,r,x,e,i))});var v=u?c?Gv:Bn:c?vr:pr,g=h?void 0:v(e);return ro(g||e,function(y,x){g&&(x=y,y=e[x]),no(o,x,Rr(y,t,r,x,e,i))}),o}var e0=4;function No(e){return Rr(e,e0)}function Wn(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}var t0="[object Symbol]";function gr(e){return typeof e=="symbol"||qe(e)&&dt(e)==t0}var r0="Expected a function";function Rn(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(r0);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],i=r.cache;if(i.has(a))return i.get(a);var o=e.apply(this,n);return r.cache=i.set(a,o)||i,o};return r.cache=new(Rn.Cache||et),r}Rn.Cache=et;var n0=500;function a0(e){var t=Rn(e,function(n){return r.size===n0&&r.clear(),n}),r=t.cache;return t}var i0=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o0=/\\(\\)?/g,Bo=a0(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(i0,function(r,n,a,i){t.push(a?i.replace(o0,"$1"):n||r)}),t}),s0=1/0;function br(e){if(typeof e=="string"||gr(e))return e;var t=e+"";return t=="0"&&1/e==-s0?"-0":t}var l0=1/0,Ho=Ke?Ke.prototype:void 0,Go=Ho?Ho.toString:void 0;function Vo(e){if(typeof e=="string")return e;if($e(e))return Wn(e,Vo)+"";if(gr(e))return Go?Go.call(e):"";var t=e+"";return t=="0"&&1/e==-l0?"-0":t}function Uo(e){return e==null?"":Vo(e)}function zo(e){return $e(e)?Wn(e,br):gr(e)?[e]:Dn(Bo(Uo(e)))}var u0=process.env.NODE_ENV==="production";function he(e,t){if(!u0){if(e)return;var r="Warning: "+t;typeof console<"u"&&console.warn(r);try{throw Error(r)}catch{}}}var Kn={exports:{}},ee={};/** @license React v16.13.1
2
2
  * react-is.production.min.js
3
3
  *
4
4
  * Copyright (c) Facebook, Inc. and its affiliates.
5
5
  *
6
6
  * This source code is licensed under the MIT license found in the
7
7
  * LICENSE file in the root directory of this source tree.
8
- */var zo;function c0(){if(zo)return ee;zo=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,l=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function _(b){if(typeof b=="object"&&b!==null){var T=b.$$typeof;switch(T){case t:switch(b=b.type,b){case c:case u:case n:case i:case a:case l:return b;default:switch(b=b&&b.$$typeof,b){case s:case h:case v:case p:case o:return b;default:return T}}case r:return T}}}function S(b){return _(b)===u}return ee.AsyncMode=c,ee.ConcurrentMode=u,ee.ContextConsumer=s,ee.ContextProvider=o,ee.Element=t,ee.ForwardRef=h,ee.Fragment=n,ee.Lazy=v,ee.Memo=p,ee.Portal=r,ee.Profiler=i,ee.StrictMode=a,ee.Suspense=l,ee.isAsyncMode=function(b){return S(b)||_(b)===c},ee.isConcurrentMode=S,ee.isContextConsumer=function(b){return _(b)===s},ee.isContextProvider=function(b){return _(b)===o},ee.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===t},ee.isForwardRef=function(b){return _(b)===h},ee.isFragment=function(b){return _(b)===n},ee.isLazy=function(b){return _(b)===v},ee.isMemo=function(b){return _(b)===p},ee.isPortal=function(b){return _(b)===r},ee.isProfiler=function(b){return _(b)===i},ee.isStrictMode=function(b){return _(b)===a},ee.isSuspense=function(b){return _(b)===l},ee.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===n||b===u||b===i||b===a||b===l||b===f||typeof b=="object"&&b!==null&&(b.$$typeof===v||b.$$typeof===p||b.$$typeof===o||b.$$typeof===s||b.$$typeof===h||b.$$typeof===y||b.$$typeof===x||b.$$typeof===C||b.$$typeof===g)},ee.typeOf=_,ee}var te={};/** @license React v16.13.1
8
+ */var Wo;function c0(){if(Wo)return ee;Wo=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,l=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function _(b){if(typeof b=="object"&&b!==null){var T=b.$$typeof;switch(T){case t:switch(b=b.type,b){case c:case u:case n:case i:case a:case l:return b;default:switch(b=b&&b.$$typeof,b){case s:case h:case v:case p:case o:return b;default:return T}}case r:return T}}}function S(b){return _(b)===u}return ee.AsyncMode=c,ee.ConcurrentMode=u,ee.ContextConsumer=s,ee.ContextProvider=o,ee.Element=t,ee.ForwardRef=h,ee.Fragment=n,ee.Lazy=v,ee.Memo=p,ee.Portal=r,ee.Profiler=i,ee.StrictMode=a,ee.Suspense=l,ee.isAsyncMode=function(b){return S(b)||_(b)===c},ee.isConcurrentMode=S,ee.isContextConsumer=function(b){return _(b)===s},ee.isContextProvider=function(b){return _(b)===o},ee.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===t},ee.isForwardRef=function(b){return _(b)===h},ee.isFragment=function(b){return _(b)===n},ee.isLazy=function(b){return _(b)===v},ee.isMemo=function(b){return _(b)===p},ee.isPortal=function(b){return _(b)===r},ee.isProfiler=function(b){return _(b)===i},ee.isStrictMode=function(b){return _(b)===a},ee.isSuspense=function(b){return _(b)===l},ee.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===n||b===u||b===i||b===a||b===l||b===f||typeof b=="object"&&b!==null&&(b.$$typeof===v||b.$$typeof===p||b.$$typeof===o||b.$$typeof===s||b.$$typeof===h||b.$$typeof===y||b.$$typeof===x||b.$$typeof===C||b.$$typeof===g)},ee.typeOf=_,ee}var te={};/** @license React v16.13.1
9
9
  * react-is.development.js
10
10
  *
11
11
  * Copyright (c) Facebook, Inc. and its affiliates.
12
12
  *
13
13
  * This source code is licensed under the MIT license found in the
14
14
  * LICENSE file in the root directory of this source tree.
15
- */var Wo;function f0(){return Wo||(Wo=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,l=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function _(E){return typeof E=="string"||typeof E=="function"||E===n||E===u||E===i||E===a||E===l||E===f||typeof E=="object"&&E!==null&&(E.$$typeof===v||E.$$typeof===p||E.$$typeof===o||E.$$typeof===s||E.$$typeof===h||E.$$typeof===y||E.$$typeof===x||E.$$typeof===C||E.$$typeof===g)}function S(E){if(typeof E=="object"&&E!==null){var Ce=E.$$typeof;switch(Ce){case t:var We=E.type;switch(We){case c:case u:case n:case i:case a:case l:return We;default:var Et=We&&We.$$typeof;switch(Et){case s:case h:case v:case p:case o:return Et;default:return Ce}}case r:return Ce}}}var b=c,T=u,k=s,W=o,q=t,ge=h,ae=n,fe=v,xe=p,be=r,_e=i,oe=a,ye=l,Oe=!1;function Ae(E){return Oe||(Oe=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),$(E)||S(E)===c}function $(E){return S(E)===u}function A(E){return S(E)===s}function U(E){return S(E)===o}function G(E){return typeof E=="object"&&E!==null&&E.$$typeof===t}function M(E){return S(E)===h}function D(E){return S(E)===n}function N(E){return S(E)===v}function H(E){return S(E)===p}function P(E){return S(E)===r}function R(E){return S(E)===i}function X(E){return S(E)===a}function Se(E){return S(E)===l}te.AsyncMode=b,te.ConcurrentMode=T,te.ContextConsumer=k,te.ContextProvider=W,te.Element=q,te.ForwardRef=ge,te.Fragment=ae,te.Lazy=fe,te.Memo=xe,te.Portal=be,te.Profiler=_e,te.StrictMode=oe,te.Suspense=ye,te.isAsyncMode=Ae,te.isConcurrentMode=$,te.isContextConsumer=A,te.isContextProvider=U,te.isElement=G,te.isForwardRef=M,te.isFragment=D,te.isLazy=N,te.isMemo=H,te.isPortal=P,te.isProfiler=R,te.isStrictMode=X,te.isSuspense=Se,te.isValidElementType=_,te.typeOf=S}()),te}process.env.NODE_ENV==="production"?Rn.exports=c0():Rn.exports=f0();var d0=Rn.exports,Ro=d0,h0={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},p0={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ko={};Ko[Ro.ForwardRef]=h0,Ko[Ro.Memo]=p0;function he(){return he=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},he.apply(this,arguments)}function Mt(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var Te=function(t){return typeof t=="function"},yr=function(t){return t!==null&&typeof t=="object"},v0=function(t){return String(Math.floor(Number(t)))===t},Kn=function(t){return Object.prototype.toString.call(t)==="[object String]"},qo=function(t){return d.Children.count(t)===0},qn=function(t){return yr(t)&&Te(t.then)};function g0(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ee(e,t,r,n){n===void 0&&(n=0);for(var a=Uo(t);e&&n<a.length;)e=e[a[n++]];return e===void 0?r:e}function gt(e,t,r){for(var n=Do(e),a=n,i=0,o=Uo(t);i<o.length-1;i++){var s=o[i],c=Ee(e,o.slice(0,i+1));if(c&&(yr(c)||Array.isArray(c)))a=a[s]=Do(c);else{var u=o[i+1];a=a[s]=v0(u)&&Number(u)>=0?[]:{}}}return(i===0?e:a)[o[i]]===r?e:(r===void 0?delete a[o[i]]:a[o[i]]=r,i===0&&r===void 0&&delete n[o[i]],n)}function Yo(e,t,r,n){r===void 0&&(r=new WeakMap),n===void 0&&(n={});for(var a=0,i=Object.keys(e);a<i.length;a++){var o=i[a],s=e[o];yr(s)?r.get(s)||(r.set(s,!0),n[o]=Array.isArray(s)?[]:{},Yo(s,t,r,n[o])):n[o]=t}return n}var Kr=d.createContext(void 0);Kr.displayName="FormikContext";var b0=Kr.Provider;Kr.Consumer;function at(){var e=d.useContext(Kr);return e||(process.env.NODE_ENV!=="production"?de(!1,"Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component."):de(!1)),e}function y0(e,t){switch(t.type){case"SET_VALUES":return he({},e,{values:t.payload});case"SET_TOUCHED":return he({},e,{touched:t.payload});case"SET_ERRORS":return ft(e.errors,t.payload)?e:he({},e,{errors:t.payload});case"SET_STATUS":return he({},e,{status:t.payload});case"SET_ISSUBMITTING":return he({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return he({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return he({},e,{values:gt(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return he({},e,{touched:gt(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return he({},e,{errors:gt(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return he({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return he({},e,{touched:Yo(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":return he({},e,{isSubmitting:!1});case"SUBMIT_SUCCESS":return he({},e,{isSubmitting:!1});default:return e}}var bt={},qr={};function m0(e){var t=e.validateOnChange,r=t===void 0?!0:t,n=e.validateOnBlur,a=n===void 0?!0:n,i=e.validateOnMount,o=i===void 0?!1:i,s=e.isInitialValid,c=e.enableReinitialize,u=c===void 0?!1:c,h=e.onSubmit,l=Mt(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),f=he({validateOnChange:r,validateOnBlur:a,validateOnMount:o,onSubmit:h},l),p=d.useRef(f.initialValues),v=d.useRef(f.initialErrors||bt),g=d.useRef(f.initialTouched||qr),y=d.useRef(f.initialStatus),x=d.useRef(!1),C=d.useRef({});process.env.NODE_ENV!=="production"&&d.useEffect(function(){typeof s>"u"||(process.env.NODE_ENV!=="production"?de(!1,"isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead."):de(!1))},[]),d.useEffect(function(){return x.current=!0,function(){x.current=!1}},[]);var _=d.useReducer(y0,{values:f.initialValues,errors:f.initialErrors||bt,touched:f.initialTouched||qr,status:f.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}),S=_[0],b=_[1],T=d.useCallback(function(w,I){return new Promise(function(L,V){var Y=f.validate(w,I);Y==null?L(bt):qn(Y)?Y.then(function(Q){L(Q||bt)},function(Q){process.env.NODE_ENV!=="production"&&console.warn("Warning: An unhandled error was caught during validation in <Formik validate />",Q),V(Q)}):L(Y)})},[f.validate]),k=d.useCallback(function(w,I){var L=f.validationSchema,V=Te(L)?L(I):L,Y=I&&V.validateAt?V.validateAt(I,w):w0(w,V);return new Promise(function(Q,we){Y.then(function(){Q(bt)},function(Je){Je.name==="ValidationError"?Q(S0(Je)):(process.env.NODE_ENV!=="production"&&console.warn("Warning: An unhandled error was caught during validation in <Formik validationSchema />",Je),we(Je))})})},[f.validationSchema]),W=d.useCallback(function(w,I){return new Promise(function(L){return L(C.current[w].validate(I))})},[]),q=d.useCallback(function(w){var I=Object.keys(C.current).filter(function(V){return Te(C.current[V].validate)}),L=I.length>0?I.map(function(V){return W(V,Ee(w,V))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(L).then(function(V){return V.reduce(function(Y,Q,we){return Q==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||Q&&(Y=gt(Y,I[we],Q)),Y},{})})},[W]),ge=d.useCallback(function(w){return Promise.all([q(w),f.validationSchema?k(w):{},f.validate?T(w):{}]).then(function(I){var L=I[0],V=I[1],Y=I[2],Q=_n.all([L,V,Y],{arrayMerge:E0});return Q})},[f.validate,f.validationSchema,q,T,k]),ae=De(function(w){return w===void 0&&(w=S.values),b({type:"SET_ISVALIDATING",payload:!0}),ge(w).then(function(I){return x.current&&(b({type:"SET_ISVALIDATING",payload:!1}),b({type:"SET_ERRORS",payload:I})),I})});d.useEffect(function(){o&&x.current===!0&&ft(p.current,f.initialValues)&&ae(p.current)},[o,ae]);var fe=d.useCallback(function(w){var I=w&&w.values?w.values:p.current,L=w&&w.errors?w.errors:v.current?v.current:f.initialErrors||{},V=w&&w.touched?w.touched:g.current?g.current:f.initialTouched||{},Y=w&&w.status?w.status:y.current?y.current:f.initialStatus;p.current=I,v.current=L,g.current=V,y.current=Y;var Q=function(){b({type:"RESET_FORM",payload:{isSubmitting:!!w&&!!w.isSubmitting,errors:L,touched:V,status:Y,values:I,isValidating:!!w&&!!w.isValidating,submitCount:w&&w.submitCount&&typeof w.submitCount=="number"?w.submitCount:0}})};if(f.onReset){var we=f.onReset(S.values,Se);qn(we)?we.then(Q):Q()}else Q()},[f.initialErrors,f.initialStatus,f.initialTouched]);d.useEffect(function(){x.current===!0&&!ft(p.current,f.initialValues)&&(u&&(p.current=f.initialValues,fe()),o&&ae(p.current))},[u,f.initialValues,fe,o,ae]),d.useEffect(function(){u&&x.current===!0&&!ft(v.current,f.initialErrors)&&(v.current=f.initialErrors||bt,b({type:"SET_ERRORS",payload:f.initialErrors||bt}))},[u,f.initialErrors]),d.useEffect(function(){u&&x.current===!0&&!ft(g.current,f.initialTouched)&&(g.current=f.initialTouched||qr,b({type:"SET_TOUCHED",payload:f.initialTouched||qr}))},[u,f.initialTouched]),d.useEffect(function(){u&&x.current===!0&&!ft(y.current,f.initialStatus)&&(y.current=f.initialStatus,b({type:"SET_STATUS",payload:f.initialStatus}))},[u,f.initialStatus,f.initialTouched]);var xe=De(function(w){if(C.current[w]&&Te(C.current[w].validate)){var I=Ee(S.values,w),L=C.current[w].validate(I);return qn(L)?(b({type:"SET_ISVALIDATING",payload:!0}),L.then(function(V){return V}).then(function(V){b({type:"SET_FIELD_ERROR",payload:{field:w,value:V}}),b({type:"SET_ISVALIDATING",payload:!1})})):(b({type:"SET_FIELD_ERROR",payload:{field:w,value:L}}),Promise.resolve(L))}else if(f.validationSchema)return b({type:"SET_ISVALIDATING",payload:!0}),k(S.values,w).then(function(V){return V}).then(function(V){b({type:"SET_FIELD_ERROR",payload:{field:w,value:V[w]}}),b({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),be=d.useCallback(function(w,I){var L=I.validate;C.current[w]={validate:L}},[]),_e=d.useCallback(function(w){delete C.current[w]},[]),oe=De(function(w,I){b({type:"SET_TOUCHED",payload:w});var L=I===void 0?a:I;return L?ae(S.values):Promise.resolve()}),ye=d.useCallback(function(w){b({type:"SET_ERRORS",payload:w})},[]),Oe=De(function(w,I){var L=Te(w)?w(S.values):w;b({type:"SET_VALUES",payload:L});var V=I===void 0?r:I;return V?ae(L):Promise.resolve()}),Ae=d.useCallback(function(w,I){b({type:"SET_FIELD_ERROR",payload:{field:w,value:I}})},[]),$=De(function(w,I,L){b({type:"SET_FIELD_VALUE",payload:{field:w,value:I}});var V=L===void 0?r:L;return V?ae(gt(S.values,w,I)):Promise.resolve()}),A=d.useCallback(function(w,I){var L=I,V=w,Y;if(!Kn(w)){w.persist&&w.persist();var Q=w.target?w.target:w.currentTarget,we=Q.type,Je=Q.name,Ti=Q.id,Oi=Q.value,l5=Q.checked,u5=Q.outerHTML,Ku=Q.options,c5=Q.multiple;L=I||Je||Ti,!L&&process.env.NODE_ENV!=="production"&&Xo({htmlContent:u5,documentationAnchorLink:"handlechange-e-reactchangeeventany--void",handlerName:"handleChange"}),V=/number|range/.test(we)?(Y=parseFloat(Oi),isNaN(Y)?"":Y):/checkbox/.test(we)?C0(Ee(S.values,L),l5,Oi):Ku&&c5?_0(Ku):Oi}L&&$(L,V)},[$,S.values]),U=De(function(w){if(Kn(w))return function(I){return A(I,w)};A(w)}),G=De(function(w,I,L){I===void 0&&(I=!0),b({type:"SET_FIELD_TOUCHED",payload:{field:w,value:I}});var V=L===void 0?a:L;return V?ae(S.values):Promise.resolve()}),M=d.useCallback(function(w,I){w.persist&&w.persist();var L=w.target,V=L.name,Y=L.id,Q=L.outerHTML,we=I||V||Y;!we&&process.env.NODE_ENV!=="production"&&Xo({htmlContent:Q,documentationAnchorLink:"handleblur-e-any--void",handlerName:"handleBlur"}),G(we,!0)},[G]),D=De(function(w){if(Kn(w))return function(I){return M(I,w)};M(w)}),N=d.useCallback(function(w){Te(w)?b({type:"SET_FORMIK_STATE",payload:w}):b({type:"SET_FORMIK_STATE",payload:function(){return w}})},[]),H=d.useCallback(function(w){b({type:"SET_STATUS",payload:w})},[]),P=d.useCallback(function(w){b({type:"SET_ISSUBMITTING",payload:w})},[]),R=De(function(){return b({type:"SUBMIT_ATTEMPT"}),ae().then(function(w){var I=w instanceof Error,L=!I&&Object.keys(w).length===0;if(L){var V;try{if(V=E(),V===void 0)return}catch(Y){throw Y}return Promise.resolve(V).then(function(Y){return x.current&&b({type:"SUBMIT_SUCCESS"}),Y}).catch(function(Y){if(x.current)throw b({type:"SUBMIT_FAILURE"}),Y})}else if(x.current&&(b({type:"SUBMIT_FAILURE"}),I))throw w})}),X=De(function(w){if(w&&w.preventDefault&&Te(w.preventDefault)&&w.preventDefault(),w&&w.stopPropagation&&Te(w.stopPropagation)&&w.stopPropagation(),process.env.NODE_ENV!=="production"&&typeof document<"u"){var I=g0();I!==null&&I instanceof HTMLButtonElement&&(I.attributes&&I.attributes.getNamedItem("type")||(process.env.NODE_ENV!=="production"?de(!1,'You submitted a Formik form using a button with an unspecified `type` attribute. Most browsers default button elements to `type="submit"`. If this is not a submit button, please add `type="button"`.'):de(!1)))}R().catch(function(L){console.warn("Warning: An unhandled error was caught from submitForm()",L)})}),Se={resetForm:fe,validateForm:ae,validateField:xe,setErrors:ye,setFieldError:Ae,setFieldTouched:G,setFieldValue:$,setStatus:H,setSubmitting:P,setTouched:oe,setValues:Oe,setFormikState:N,submitForm:R},E=De(function(){return h(S.values,Se)}),Ce=De(function(w){w&&w.preventDefault&&Te(w.preventDefault)&&w.preventDefault(),w&&w.stopPropagation&&Te(w.stopPropagation)&&w.stopPropagation(),fe()}),We=d.useCallback(function(w){return{value:Ee(S.values,w),error:Ee(S.errors,w),touched:!!Ee(S.touched,w),initialValue:Ee(p.current,w),initialTouched:!!Ee(g.current,w),initialError:Ee(v.current,w)}},[S.errors,S.touched,S.values]),Et=d.useCallback(function(w){return{setValue:function(L,V){return $(w,L,V)},setTouched:function(L,V){return G(w,L,V)},setError:function(L){return Ae(w,L)}}},[$,G,Ae]),i5=d.useCallback(function(w){var I=yr(w),L=I?w.name:w,V=Ee(S.values,L),Y={name:L,value:V,onChange:U,onBlur:D};if(I){var Q=w.type,we=w.value,Je=w.as,Ti=w.multiple;Q==="checkbox"?we===void 0?Y.checked=!!V:(Y.checked=!!(Array.isArray(V)&&~V.indexOf(we)),Y.value=we):Q==="radio"?(Y.checked=V===we,Y.value=we):Je==="select"&&Ti&&(Y.value=Y.value||[],Y.multiple=!0)}return Y},[D,U,S.values]),$i=d.useMemo(function(){return!ft(p.current,S.values)},[p.current,S.values]),o5=d.useMemo(function(){return typeof s<"u"?$i?S.errors&&Object.keys(S.errors).length===0:s!==!1&&Te(s)?s(f):s:S.errors&&Object.keys(S.errors).length===0},[s,$i,S.errors,f]),s5=he({},S,{initialValues:p.current,initialErrors:v.current,initialTouched:g.current,initialStatus:y.current,handleBlur:D,handleChange:U,handleReset:Ce,handleSubmit:X,resetForm:fe,setErrors:ye,setFormikState:N,setFieldTouched:G,setFieldValue:$,setFieldError:Ae,setStatus:H,setSubmitting:P,setTouched:oe,setValues:Oe,submitForm:R,validateForm:ae,validateField:xe,isValid:o5,dirty:$i,unregisterField:_e,registerField:be,getFieldProps:i5,getFieldMeta:We,getFieldHelpers:Et,validateOnBlur:a,validateOnChange:r,validateOnMount:o});return s5}function x0(e){var t=m0(e),r=e.component,n=e.children,a=e.render,i=e.innerRef;return d.useImperativeHandle(i,function(){return t}),process.env.NODE_ENV!=="production"&&d.useEffect(function(){e.render&&(process.env.NODE_ENV!=="production"?de(!1,"<Formik render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Formik render={(props) => ...} /> with <Formik>{(props) => ...}</Formik>"):de(!1))},[]),d.createElement(b0,{value:t},r?d.createElement(r,t):a?a(t):n?Te(n)?n(t):qo(n)?null:d.Children.only(n):null)}function Xo(e){var t=e.htmlContent,r=e.documentationAnchorLink,n=e.handlerName;console.warn("Warning: Formik called `"+n+"`, but you forgot to pass an `id` or `name` attribute to your input:\n "+t+`
15
+ */var Ro;function f0(){return Ro||(Ro=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,l=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function _(E){return typeof E=="string"||typeof E=="function"||E===n||E===u||E===i||E===a||E===l||E===f||typeof E=="object"&&E!==null&&(E.$$typeof===v||E.$$typeof===p||E.$$typeof===o||E.$$typeof===s||E.$$typeof===h||E.$$typeof===y||E.$$typeof===x||E.$$typeof===C||E.$$typeof===g)}function S(E){if(typeof E=="object"&&E!==null){var Ce=E.$$typeof;switch(Ce){case t:var We=E.type;switch(We){case c:case u:case n:case i:case a:case l:return We;default:var Et=We&&We.$$typeof;switch(Et){case s:case h:case v:case p:case o:return Et;default:return Ce}}case r:return Ce}}}var b=c,T=u,j=s,W=o,q=t,ge=h,ae=n,fe=v,xe=p,be=r,_e=i,oe=a,ye=l,Oe=!1;function Ae(E){return Oe||(Oe=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),$(E)||S(E)===c}function $(E){return S(E)===u}function A(E){return S(E)===s}function U(E){return S(E)===o}function G(E){return typeof E=="object"&&E!==null&&E.$$typeof===t}function M(E){return S(E)===h}function D(E){return S(E)===n}function N(E){return S(E)===v}function H(E){return S(E)===p}function P(E){return S(E)===r}function R(E){return S(E)===i}function X(E){return S(E)===a}function Se(E){return S(E)===l}te.AsyncMode=b,te.ConcurrentMode=T,te.ContextConsumer=j,te.ContextProvider=W,te.Element=q,te.ForwardRef=ge,te.Fragment=ae,te.Lazy=fe,te.Memo=xe,te.Portal=be,te.Profiler=_e,te.StrictMode=oe,te.Suspense=ye,te.isAsyncMode=Ae,te.isConcurrentMode=$,te.isContextConsumer=A,te.isContextProvider=U,te.isElement=G,te.isForwardRef=M,te.isFragment=D,te.isLazy=N,te.isMemo=H,te.isPortal=P,te.isProfiler=R,te.isStrictMode=X,te.isSuspense=Se,te.isValidElementType=_,te.typeOf=S}()),te}process.env.NODE_ENV==="production"?Kn.exports=c0():Kn.exports=f0();var d0=Kn.exports,Ko=d0,h0={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},p0={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},qo={};qo[Ko.ForwardRef]=h0,qo[Ko.Memo]=p0;function pe(){return pe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pe.apply(this,arguments)}function Mt(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var Te=function(t){return typeof t=="function"},yr=function(t){return t!==null&&typeof t=="object"},v0=function(t){return String(Math.floor(Number(t)))===t},qn=function(t){return Object.prototype.toString.call(t)==="[object String]"},Yo=function(t){return d.Children.count(t)===0},Yn=function(t){return yr(t)&&Te(t.then)};function g0(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ee(e,t,r,n){n===void 0&&(n=0);for(var a=zo(t);e&&n<a.length;)e=e[a[n++]];return e===void 0?r:e}function gt(e,t,r){for(var n=No(e),a=n,i=0,o=zo(t);i<o.length-1;i++){var s=o[i],c=Ee(e,o.slice(0,i+1));if(c&&(yr(c)||Array.isArray(c)))a=a[s]=No(c);else{var u=o[i+1];a=a[s]=v0(u)&&Number(u)>=0?[]:{}}}return(i===0?e:a)[o[i]]===r?e:(r===void 0?delete a[o[i]]:a[o[i]]=r,i===0&&r===void 0&&delete n[o[i]],n)}function Xo(e,t,r,n){r===void 0&&(r=new WeakMap),n===void 0&&(n={});for(var a=0,i=Object.keys(e);a<i.length;a++){var o=i[a],s=e[o];yr(s)?r.get(s)||(r.set(s,!0),n[o]=Array.isArray(s)?[]:{},Xo(s,t,r,n[o])):n[o]=t}return n}var Kr=d.createContext(void 0);Kr.displayName="FormikContext";var b0=Kr.Provider;Kr.Consumer;function at(){var e=d.useContext(Kr);return e||(process.env.NODE_ENV!=="production"?he(!1,"Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component."):he(!1)),e}function y0(e,t){switch(t.type){case"SET_VALUES":return pe({},e,{values:t.payload});case"SET_TOUCHED":return pe({},e,{touched:t.payload});case"SET_ERRORS":return ft(e.errors,t.payload)?e:pe({},e,{errors:t.payload});case"SET_STATUS":return pe({},e,{status:t.payload});case"SET_ISSUBMITTING":return pe({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return pe({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return pe({},e,{values:gt(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return pe({},e,{touched:gt(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return pe({},e,{errors:gt(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return pe({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return pe({},e,{touched:Xo(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":return pe({},e,{isSubmitting:!1});case"SUBMIT_SUCCESS":return pe({},e,{isSubmitting:!1});default:return e}}var bt={},qr={};function m0(e){var t=e.validateOnChange,r=t===void 0?!0:t,n=e.validateOnBlur,a=n===void 0?!0:n,i=e.validateOnMount,o=i===void 0?!1:i,s=e.isInitialValid,c=e.enableReinitialize,u=c===void 0?!1:c,h=e.onSubmit,l=Mt(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),f=pe({validateOnChange:r,validateOnBlur:a,validateOnMount:o,onSubmit:h},l),p=d.useRef(f.initialValues),v=d.useRef(f.initialErrors||bt),g=d.useRef(f.initialTouched||qr),y=d.useRef(f.initialStatus),x=d.useRef(!1),C=d.useRef({});process.env.NODE_ENV!=="production"&&d.useEffect(function(){typeof s>"u"||(process.env.NODE_ENV!=="production"?he(!1,"isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead."):he(!1))},[]),d.useEffect(function(){return x.current=!0,function(){x.current=!1}},[]);var _=d.useReducer(y0,{values:f.initialValues,errors:f.initialErrors||bt,touched:f.initialTouched||qr,status:f.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}),S=_[0],b=_[1],T=d.useCallback(function(w,I){return new Promise(function(L,V){var Y=f.validate(w,I);Y==null?L(bt):Yn(Y)?Y.then(function(Q){L(Q||bt)},function(Q){process.env.NODE_ENV!=="production"&&console.warn("Warning: An unhandled error was caught during validation in <Formik validate />",Q),V(Q)}):L(Y)})},[f.validate]),j=d.useCallback(function(w,I){var L=f.validationSchema,V=Te(L)?L(I):L,Y=I&&V.validateAt?V.validateAt(I,w):w0(w,V);return new Promise(function(Q,we){Y.then(function(){Q(bt)},function(Je){Je.name==="ValidationError"?Q(S0(Je)):(process.env.NODE_ENV!=="production"&&console.warn("Warning: An unhandled error was caught during validation in <Formik validationSchema />",Je),we(Je))})})},[f.validationSchema]),W=d.useCallback(function(w,I){return new Promise(function(L){return L(C.current[w].validate(I))})},[]),q=d.useCallback(function(w){var I=Object.keys(C.current).filter(function(V){return Te(C.current[V].validate)}),L=I.length>0?I.map(function(V){return W(V,Ee(w,V))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(L).then(function(V){return V.reduce(function(Y,Q,we){return Q==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||Q&&(Y=gt(Y,I[we],Q)),Y},{})})},[W]),ge=d.useCallback(function(w){return Promise.all([q(w),f.validationSchema?j(w):{},f.validate?T(w):{}]).then(function(I){var L=I[0],V=I[1],Y=I[2],Q=Cn.all([L,V,Y],{arrayMerge:E0});return Q})},[f.validate,f.validationSchema,q,T,j]),ae=De(function(w){return w===void 0&&(w=S.values),b({type:"SET_ISVALIDATING",payload:!0}),ge(w).then(function(I){return x.current&&(b({type:"SET_ISVALIDATING",payload:!1}),b({type:"SET_ERRORS",payload:I})),I})});d.useEffect(function(){o&&x.current===!0&&ft(p.current,f.initialValues)&&ae(p.current)},[o,ae]);var fe=d.useCallback(function(w){var I=w&&w.values?w.values:p.current,L=w&&w.errors?w.errors:v.current?v.current:f.initialErrors||{},V=w&&w.touched?w.touched:g.current?g.current:f.initialTouched||{},Y=w&&w.status?w.status:y.current?y.current:f.initialStatus;p.current=I,v.current=L,g.current=V,y.current=Y;var Q=function(){b({type:"RESET_FORM",payload:{isSubmitting:!!w&&!!w.isSubmitting,errors:L,touched:V,status:Y,values:I,isValidating:!!w&&!!w.isValidating,submitCount:w&&w.submitCount&&typeof w.submitCount=="number"?w.submitCount:0}})};if(f.onReset){var we=f.onReset(S.values,Se);Yn(we)?we.then(Q):Q()}else Q()},[f.initialErrors,f.initialStatus,f.initialTouched]);d.useEffect(function(){x.current===!0&&!ft(p.current,f.initialValues)&&(u&&(p.current=f.initialValues,fe()),o&&ae(p.current))},[u,f.initialValues,fe,o,ae]),d.useEffect(function(){u&&x.current===!0&&!ft(v.current,f.initialErrors)&&(v.current=f.initialErrors||bt,b({type:"SET_ERRORS",payload:f.initialErrors||bt}))},[u,f.initialErrors]),d.useEffect(function(){u&&x.current===!0&&!ft(g.current,f.initialTouched)&&(g.current=f.initialTouched||qr,b({type:"SET_TOUCHED",payload:f.initialTouched||qr}))},[u,f.initialTouched]),d.useEffect(function(){u&&x.current===!0&&!ft(y.current,f.initialStatus)&&(y.current=f.initialStatus,b({type:"SET_STATUS",payload:f.initialStatus}))},[u,f.initialStatus,f.initialTouched]);var xe=De(function(w){if(C.current[w]&&Te(C.current[w].validate)){var I=Ee(S.values,w),L=C.current[w].validate(I);return Yn(L)?(b({type:"SET_ISVALIDATING",payload:!0}),L.then(function(V){return V}).then(function(V){b({type:"SET_FIELD_ERROR",payload:{field:w,value:V}}),b({type:"SET_ISVALIDATING",payload:!1})})):(b({type:"SET_FIELD_ERROR",payload:{field:w,value:L}}),Promise.resolve(L))}else if(f.validationSchema)return b({type:"SET_ISVALIDATING",payload:!0}),j(S.values,w).then(function(V){return V}).then(function(V){b({type:"SET_FIELD_ERROR",payload:{field:w,value:V[w]}}),b({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),be=d.useCallback(function(w,I){var L=I.validate;C.current[w]={validate:L}},[]),_e=d.useCallback(function(w){delete C.current[w]},[]),oe=De(function(w,I){b({type:"SET_TOUCHED",payload:w});var L=I===void 0?a:I;return L?ae(S.values):Promise.resolve()}),ye=d.useCallback(function(w){b({type:"SET_ERRORS",payload:w})},[]),Oe=De(function(w,I){var L=Te(w)?w(S.values):w;b({type:"SET_VALUES",payload:L});var V=I===void 0?r:I;return V?ae(L):Promise.resolve()}),Ae=d.useCallback(function(w,I){b({type:"SET_FIELD_ERROR",payload:{field:w,value:I}})},[]),$=De(function(w,I,L){b({type:"SET_FIELD_VALUE",payload:{field:w,value:I}});var V=L===void 0?r:L;return V?ae(gt(S.values,w,I)):Promise.resolve()}),A=d.useCallback(function(w,I){var L=I,V=w,Y;if(!qn(w)){w.persist&&w.persist();var Q=w.target?w.target:w.currentTarget,we=Q.type,Je=Q.name,Oi=Q.id,Ai=Q.value,s5=Q.checked,l5=Q.outerHTML,Ku=Q.options,u5=Q.multiple;L=I||Je||Oi,!L&&process.env.NODE_ENV!=="production"&&Jo({htmlContent:l5,documentationAnchorLink:"handlechange-e-reactchangeeventany--void",handlerName:"handleChange"}),V=/number|range/.test(we)?(Y=parseFloat(Ai),isNaN(Y)?"":Y):/checkbox/.test(we)?C0(Ee(S.values,L),s5,Ai):Ku&&u5?_0(Ku):Ai}L&&$(L,V)},[$,S.values]),U=De(function(w){if(qn(w))return function(I){return A(I,w)};A(w)}),G=De(function(w,I,L){I===void 0&&(I=!0),b({type:"SET_FIELD_TOUCHED",payload:{field:w,value:I}});var V=L===void 0?a:L;return V?ae(S.values):Promise.resolve()}),M=d.useCallback(function(w,I){w.persist&&w.persist();var L=w.target,V=L.name,Y=L.id,Q=L.outerHTML,we=I||V||Y;!we&&process.env.NODE_ENV!=="production"&&Jo({htmlContent:Q,documentationAnchorLink:"handleblur-e-any--void",handlerName:"handleBlur"}),G(we,!0)},[G]),D=De(function(w){if(qn(w))return function(I){return M(I,w)};M(w)}),N=d.useCallback(function(w){Te(w)?b({type:"SET_FORMIK_STATE",payload:w}):b({type:"SET_FORMIK_STATE",payload:function(){return w}})},[]),H=d.useCallback(function(w){b({type:"SET_STATUS",payload:w})},[]),P=d.useCallback(function(w){b({type:"SET_ISSUBMITTING",payload:w})},[]),R=De(function(){return b({type:"SUBMIT_ATTEMPT"}),ae().then(function(w){var I=w instanceof Error,L=!I&&Object.keys(w).length===0;if(L){var V;try{if(V=E(),V===void 0)return}catch(Y){throw Y}return Promise.resolve(V).then(function(Y){return x.current&&b({type:"SUBMIT_SUCCESS"}),Y}).catch(function(Y){if(x.current)throw b({type:"SUBMIT_FAILURE"}),Y})}else if(x.current&&(b({type:"SUBMIT_FAILURE"}),I))throw w})}),X=De(function(w){if(w&&w.preventDefault&&Te(w.preventDefault)&&w.preventDefault(),w&&w.stopPropagation&&Te(w.stopPropagation)&&w.stopPropagation(),process.env.NODE_ENV!=="production"&&typeof document<"u"){var I=g0();I!==null&&I instanceof HTMLButtonElement&&(I.attributes&&I.attributes.getNamedItem("type")||(process.env.NODE_ENV!=="production"?he(!1,'You submitted a Formik form using a button with an unspecified `type` attribute. Most browsers default button elements to `type="submit"`. If this is not a submit button, please add `type="button"`.'):he(!1)))}R().catch(function(L){console.warn("Warning: An unhandled error was caught from submitForm()",L)})}),Se={resetForm:fe,validateForm:ae,validateField:xe,setErrors:ye,setFieldError:Ae,setFieldTouched:G,setFieldValue:$,setStatus:H,setSubmitting:P,setTouched:oe,setValues:Oe,setFormikState:N,submitForm:R},E=De(function(){return h(S.values,Se)}),Ce=De(function(w){w&&w.preventDefault&&Te(w.preventDefault)&&w.preventDefault(),w&&w.stopPropagation&&Te(w.stopPropagation)&&w.stopPropagation(),fe()}),We=d.useCallback(function(w){return{value:Ee(S.values,w),error:Ee(S.errors,w),touched:!!Ee(S.touched,w),initialValue:Ee(p.current,w),initialTouched:!!Ee(g.current,w),initialError:Ee(v.current,w)}},[S.errors,S.touched,S.values]),Et=d.useCallback(function(w){return{setValue:function(L,V){return $(w,L,V)},setTouched:function(L,V){return G(w,L,V)},setError:function(L){return Ae(w,L)}}},[$,G,Ae]),a5=d.useCallback(function(w){var I=yr(w),L=I?w.name:w,V=Ee(S.values,L),Y={name:L,value:V,onChange:U,onBlur:D};if(I){var Q=w.type,we=w.value,Je=w.as,Oi=w.multiple;Q==="checkbox"?we===void 0?Y.checked=!!V:(Y.checked=!!(Array.isArray(V)&&~V.indexOf(we)),Y.value=we):Q==="radio"?(Y.checked=V===we,Y.value=we):Je==="select"&&Oi&&(Y.value=Y.value||[],Y.multiple=!0)}return Y},[D,U,S.values]),Ti=d.useMemo(function(){return!ft(p.current,S.values)},[p.current,S.values]),i5=d.useMemo(function(){return typeof s<"u"?Ti?S.errors&&Object.keys(S.errors).length===0:s!==!1&&Te(s)?s(f):s:S.errors&&Object.keys(S.errors).length===0},[s,Ti,S.errors,f]),o5=pe({},S,{initialValues:p.current,initialErrors:v.current,initialTouched:g.current,initialStatus:y.current,handleBlur:D,handleChange:U,handleReset:Ce,handleSubmit:X,resetForm:fe,setErrors:ye,setFormikState:N,setFieldTouched:G,setFieldValue:$,setFieldError:Ae,setStatus:H,setSubmitting:P,setTouched:oe,setValues:Oe,submitForm:R,validateForm:ae,validateField:xe,isValid:i5,dirty:Ti,unregisterField:_e,registerField:be,getFieldProps:a5,getFieldMeta:We,getFieldHelpers:Et,validateOnBlur:a,validateOnChange:r,validateOnMount:o});return o5}function x0(e){var t=m0(e),r=e.component,n=e.children,a=e.render,i=e.innerRef;return d.useImperativeHandle(i,function(){return t}),process.env.NODE_ENV!=="production"&&d.useEffect(function(){e.render&&(process.env.NODE_ENV!=="production"?he(!1,"<Formik render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Formik render={(props) => ...} /> with <Formik>{(props) => ...}</Formik>"):he(!1))},[]),d.createElement(b0,{value:t},r?d.createElement(r,t):a?a(t):n?Te(n)?n(t):Yo(n)?null:d.Children.only(n):null)}function Jo(e){var t=e.htmlContent,r=e.documentationAnchorLink,n=e.handlerName;console.warn("Warning: Formik called `"+n+"`, but you forgot to pass an `id` or `name` attribute to your input:\n "+t+`
16
16
  Formik cannot determine which value to update. For more info see https://formik.org/docs/api/formik#`+r+`
17
- `)}function S0(e){var t={};if(e.inner){if(e.inner.length===0)return gt(t,e.path,e.message);for(var a=e.inner,r=Array.isArray(a),n=0,a=r?a:a[Symbol.iterator]();;){var i;if(r){if(n>=a.length)break;i=a[n++]}else{if(n=a.next(),n.done)break;i=n.value}var o=i;Ee(t,o.path)||(t=gt(t,o.path,o.message))}}return t}function w0(e,t,r,n){r===void 0&&(r=!1),n===void 0&&(n={});var a=Yn(e);return t[r?"validateSync":"validate"](a,{abortEarly:!1,context:n})}function Yn(e){var t=Array.isArray(e)?[]:{};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=String(r);Array.isArray(e[n])===!0?t[n]=e[n].map(function(a){return Array.isArray(a)===!0||$n(a)?Yn(a):a!==""?a:void 0}):$n(e[n])?t[n]=Yn(e[n]):t[n]=e[n]!==""?e[n]:void 0}return t}function E0(e,t,r){var n=e.slice();return t.forEach(function(i,o){if(typeof n[o]>"u"){var s=r.clone!==!1,c=s&&r.isMergeableObject(i);n[o]=c?_n(Array.isArray(i)?[]:{},i,r):i}else r.isMergeableObject(i)?n[o]=_n(e[o],i,r):e.indexOf(i)===-1&&n.push(i)}),n}function _0(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function C0(e,t,r){if(typeof e=="boolean")return!!t;var n=[],a=!1,i=-1;if(Array.isArray(e))n=e,i=e.indexOf(r),a=i>=0;else if(!r||r=="true"||r=="false")return!!t;return t&&r&&!a?n.concat(r):a?n.slice(0,i).concat(n.slice(i+1)):n}var $0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?d.useLayoutEffect:d.useEffect;function De(e){var t=d.useRef(e);return $0(function(){t.current=e}),d.useCallback(function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t.current.apply(void 0,n)},[])}function yt(e){var t=at(),r=t.getFieldProps,n=t.getFieldMeta,a=t.getFieldHelpers,i=t.registerField,o=t.unregisterField,s=yr(e),c=s?e:{name:e},u=c.name,h=c.validate;return d.useEffect(function(){return u&&i(u,{validate:h}),function(){u&&o(u)}},[i,o,u,h]),process.env.NODE_ENV!=="production"&&(t||(process.env.NODE_ENV!=="production"?de(!1,"useField() / <Field /> must be used underneath a <Formik> component or withFormik() higher order component"):de(!1))),u||(process.env.NODE_ENV!=="production"?de(!1,"Invalid field name. Either pass `useField` a string or an object containing a `name` key."):de(!1)),[r(c),n(u),a(u)]}function mr(e){var t=e.validate,r=e.name,n=e.render,a=e.children,i=e.as,o=e.component,s=Mt(e,["validate","name","render","children","as","component"]),c=at(),u=Mt(c,["validate","validationSchema"]);process.env.NODE_ENV!=="production"&&d.useEffect(function(){n&&(process.env.NODE_ENV!=="production"?de(!1,'<Field render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Field name="'+r+'" render={({field, form}) => ...} /> with <Field name="'+r+'">{({field, form, meta}) => ...}</Field>'):de(!1)),i&&a&&Te(a)&&(process.env.NODE_ENV!=="production"?de(!1,"You should not use <Field as> and <Field children> as a function in the same <Field> component; <Field as> will be ignored."):de(!1)),o&&a&&Te(a)&&(process.env.NODE_ENV!=="production"?de(!1,"You should not use <Field component> and <Field children> as a function in the same <Field> component; <Field component> will be ignored."):de(!1)),n&&a&&!qo(a)&&(process.env.NODE_ENV!=="production"?de(!1,"You should not use <Field render> and <Field children> in the same <Field> component; <Field children> will be ignored"):de(!1))},[]);var h=u.registerField,l=u.unregisterField;d.useEffect(function(){return h(r,{validate:t}),function(){l(r)}},[h,l,r,t]);var f=u.getFieldProps(he({name:r},s)),p=u.getFieldMeta(r),v={field:f,form:u};if(n)return n(he({},v,{meta:p}));if(Te(a))return a(he({},v,{meta:p}));if(o){if(typeof o=="string"){var g=s.innerRef,y=Mt(s,["innerRef"]);return d.createElement(o,he({ref:g},f,y),a)}return d.createElement(o,he({field:f,form:u},s),a)}var x=i||"input";if(typeof x=="string"){var C=s.innerRef,_=Mt(s,["innerRef"]);return d.createElement(x,he({ref:C},f,_),a)}return d.createElement(x,he({},f,s),a)}var T0=d.forwardRef(function(e,t){var r=e.action,n=Mt(e,["action"]),a=r??"#",i=at(),o=i.handleReset,s=i.handleSubmit;return d.createElement("form",Object.assign({onSubmit:s,ref:t,onReset:o,action:a},n))});T0.displayName="Form";/*! *****************************************************************************
17
+ `)}function S0(e){var t={};if(e.inner){if(e.inner.length===0)return gt(t,e.path,e.message);for(var a=e.inner,r=Array.isArray(a),n=0,a=r?a:a[Symbol.iterator]();;){var i;if(r){if(n>=a.length)break;i=a[n++]}else{if(n=a.next(),n.done)break;i=n.value}var o=i;Ee(t,o.path)||(t=gt(t,o.path,o.message))}}return t}function w0(e,t,r,n){r===void 0&&(r=!1),n===void 0&&(n={});var a=Xn(e);return t[r?"validateSync":"validate"](a,{abortEarly:!1,context:n})}function Xn(e){var t=Array.isArray(e)?[]:{};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=String(r);Array.isArray(e[n])===!0?t[n]=e[n].map(function(a){return Array.isArray(a)===!0||Tn(a)?Xn(a):a!==""?a:void 0}):Tn(e[n])?t[n]=Xn(e[n]):t[n]=e[n]!==""?e[n]:void 0}return t}function E0(e,t,r){var n=e.slice();return t.forEach(function(i,o){if(typeof n[o]>"u"){var s=r.clone!==!1,c=s&&r.isMergeableObject(i);n[o]=c?Cn(Array.isArray(i)?[]:{},i,r):i}else r.isMergeableObject(i)?n[o]=Cn(e[o],i,r):e.indexOf(i)===-1&&n.push(i)}),n}function _0(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function C0(e,t,r){if(typeof e=="boolean")return!!t;var n=[],a=!1,i=-1;if(Array.isArray(e))n=e,i=e.indexOf(r),a=i>=0;else if(!r||r=="true"||r=="false")return!!t;return t&&r&&!a?n.concat(r):a?n.slice(0,i).concat(n.slice(i+1)):n}var $0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?d.useLayoutEffect:d.useEffect;function De(e){var t=d.useRef(e);return $0(function(){t.current=e}),d.useCallback(function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t.current.apply(void 0,n)},[])}function yt(e){var t=at(),r=t.getFieldProps,n=t.getFieldMeta,a=t.getFieldHelpers,i=t.registerField,o=t.unregisterField,s=yr(e),c=s?e:{name:e},u=c.name,h=c.validate;return d.useEffect(function(){return u&&i(u,{validate:h}),function(){u&&o(u)}},[i,o,u,h]),process.env.NODE_ENV!=="production"&&(t||(process.env.NODE_ENV!=="production"?he(!1,"useField() / <Field /> must be used underneath a <Formik> component or withFormik() higher order component"):he(!1))),u||(process.env.NODE_ENV!=="production"?he(!1,"Invalid field name. Either pass `useField` a string or an object containing a `name` key."):he(!1)),[r(c),n(u),a(u)]}function mr(e){var t=e.validate,r=e.name,n=e.render,a=e.children,i=e.as,o=e.component,s=Mt(e,["validate","name","render","children","as","component"]),c=at(),u=Mt(c,["validate","validationSchema"]);process.env.NODE_ENV!=="production"&&d.useEffect(function(){n&&(process.env.NODE_ENV!=="production"?he(!1,'<Field render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Field name="'+r+'" render={({field, form}) => ...} /> with <Field name="'+r+'">{({field, form, meta}) => ...}</Field>'):he(!1)),i&&a&&Te(a)&&(process.env.NODE_ENV!=="production"?he(!1,"You should not use <Field as> and <Field children> as a function in the same <Field> component; <Field as> will be ignored."):he(!1)),o&&a&&Te(a)&&(process.env.NODE_ENV!=="production"?he(!1,"You should not use <Field component> and <Field children> as a function in the same <Field> component; <Field component> will be ignored."):he(!1)),n&&a&&!Yo(a)&&(process.env.NODE_ENV!=="production"?he(!1,"You should not use <Field render> and <Field children> in the same <Field> component; <Field children> will be ignored"):he(!1))},[]);var h=u.registerField,l=u.unregisterField;d.useEffect(function(){return h(r,{validate:t}),function(){l(r)}},[h,l,r,t]);var f=u.getFieldProps(pe({name:r},s)),p=u.getFieldMeta(r),v={field:f,form:u};if(n)return n(pe({},v,{meta:p}));if(Te(a))return a(pe({},v,{meta:p}));if(o){if(typeof o=="string"){var g=s.innerRef,y=Mt(s,["innerRef"]);return d.createElement(o,pe({ref:g},f,y),a)}return d.createElement(o,pe({field:f,form:u},s),a)}var x=i||"input";if(typeof x=="string"){var C=s.innerRef,_=Mt(s,["innerRef"]);return d.createElement(x,pe({ref:C},f,_),a)}return d.createElement(x,pe({},f,s),a)}var T0=d.forwardRef(function(e,t){var r=e.action,n=Mt(e,["action"]),a=r??"#",i=at(),o=i.handleReset,s=i.handleSubmit;return d.createElement("form",Object.assign({onSubmit:s,ref:t,onReset:o,action:a},n))});T0.displayName="Form";/*! *****************************************************************************
18
18
  Copyright (c) Microsoft Corporation.
19
19
 
20
20
  Permission to use, copy, modify, and/or distribute this software for any
@@ -27,60 +27,60 @@
27
27
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
28
28
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
29
29
  PERFORMANCE OF THIS SOFTWARE.
30
- ***************************************************************************** */var me=function(){return me=Object.assign||function(t){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},me.apply(this,arguments)};function Pe(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}function O0(e,t,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function s(h){try{u(n.next(h))}catch(l){o(l)}}function c(h){try{u(n.throw(h))}catch(l){o(l)}}function u(h){h.done?i(h.value):a(h.value).then(s,c)}u((n=n.apply(e,[])).next())})}function A0(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(u){return function(h){return c([u,h])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,a=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){r.label=u[1];break}if(u[0]===6&&r.label<i[1]){r.label=i[1],i=u;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(u);break}i[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(h){u=[6,h],a=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function P0(e){var t=e.disabled,r=e.field,n=r.onBlur,a=Pe(r,["onBlur"]),i=e.form.isSubmitting,o=e.type,s=e.onBlur,c=Pe(e,["disabled","field","form","type","onBlur"]),u=!Array.isArray(a.value)&&a.value==null;return process.env.NODE_ENV!=="production"&&de(o==="checkbox","property type=checkbox is missing from field "+a.name+", this can caused unexpected behaviour"),me(me({disabled:t??i,indeterminate:u,onBlur:s??function(h){n(h??a.name)}},a),c)}function Jo(e){return K.createElement(nc,me({},P0(e)))}Jo.displayName="FormikMaterialUICheckbox";function M0(e){var t=this,r=e.disabled,n=e.field;n.onBlur;var a=n.onChange,i=Pe(n,["onBlur","onChange"]),o=e.form,s=o.isSubmitting,c=o.touched,u=o.errors,h=o.setFieldTouched,l=o.setFieldValue,f=e.onClose,p=Pe(e,["disabled","field","form","onClose"]),v=Ee(u,i.name),g=Ee(c,i.name)&&!!v;return me(me({disabled:r??s,error:g,formError:g?v:void 0,onBlur:function(){},onChange:a??function(){},onClose:f??function(y){return O0(t,void 0,void 0,function(){var x;return A0(this,function(C){switch(C.label){case 0:return x=y.target.dataset,x&&x.value?[4,l(i.name,x.value,!1)]:[3,2];case 1:C.sent(),C.label=2;case 2:return h(i.name,!0,!0),[2]}})})}},i),p)}function Zo(e){var t=e.formControl,r=e.inputLabel,n=e.formHelperText,a=Pe(e,["formControl","inputLabel","formHelperText"]),i=M0(a),o=i.error,s=i.formError,c=i.disabled,u=Pe(i,["error","formError","disabled"]),h=n||{},l=h.children,f=Pe(h,["children"]),p=o||l;return K.createElement(Zu,me({disabled:c,error:o},t),K.createElement(ec,me({id:u.labelId},r),u.label),K.createElement(tc,me({},u)),p&&K.createElement(Qu,me({},f),o?s:l))}Zo.displayName="FormikMaterialUISelect";function I0(e){var t=e.disabled,r=e.field,n=r.onBlur,a=Pe(r,["onBlur"]),i=e.form.isSubmitting,o=e.type,s=e.onBlur,c=Pe(e,["disabled","field","form","type","onBlur"]);return process.env.NODE_ENV!=="production"&&de(o==="checkbox","property type=checkbox is missing from field "+a.name+", this can caused unexpected behaviour"),me(me({disabled:t??i,onBlur:s??function(u){n(u??a.name)}},a),c)}function Qo(e){return K.createElement(rc,me({},I0(e)))}Qo.displayName="FormikMaterialUISwitch";function F0(e){var t=e.disabled,r=e.field,n=r.onBlur,a=Pe(r,["onBlur"]),i=e.form,o=i.isSubmitting,s=i.touched,c=i.errors,u=e.onBlur,h=e.helperText,l=Pe(e,["disabled","field","form","onBlur","helperText"]),f=Ee(c,a.name),p=Ee(s,a.name)&&!!f;return me(me({error:p,helperText:p?f:h,disabled:t??o,onBlur:u??function(v){n(v??a.name)}},a),l)}function es(e){var t=e.children,r=Pe(e,["children"]);return K.createElement(Ju,me({},F0(r)),t)}es.displayName="FormikMaterialUITextField";function k0(e){var t=e.field;t.onChange;var r=t.onBlur,n=Pe(t,["onChange","onBlur"]),a=e.type,i=e.onChange,o=e.onBlur,s=e.form,c=Pe(e,["field","type","onChange","onBlur","form"]);return process.env.NODE_ENV!=="production"&&(de(a==="checkbox","property type=checkbox is missing from field "+n.name+", this can caused unexpected behaviour"),c.exclusive||de(Array.isArray(n.value),"value for "+n.name+" is not an array, this can caused unexpected behaviour")),me(me({onBlur:o??function(){r(n.name)},onChange:i??function(u,h){s.setFieldValue(n.name,h)}},n),c)}function ts(e){return K.createElement(ac,me({},k0(e)))}ts.displayName="FormikMaterialUIToggleButtonGroup";var rs={exports:{}};/*!***************************************************
30
+ ***************************************************************************** */var me=function(){return me=Object.assign||function(t){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},me.apply(this,arguments)};function Pe(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}function O0(e,t,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function s(h){try{u(n.next(h))}catch(l){o(l)}}function c(h){try{u(n.throw(h))}catch(l){o(l)}}function u(h){h.done?i(h.value):a(h.value).then(s,c)}u((n=n.apply(e,[])).next())})}function A0(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(u){return function(h){return c([u,h])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,a=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){r.label=u[1];break}if(u[0]===6&&r.label<i[1]){r.label=i[1],i=u;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(u);break}i[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(h){u=[6,h],a=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function P0(e){var t=e.disabled,r=e.field,n=r.onBlur,a=Pe(r,["onBlur"]),i=e.form.isSubmitting,o=e.type,s=e.onBlur,c=Pe(e,["disabled","field","form","type","onBlur"]),u=!Array.isArray(a.value)&&a.value==null;return process.env.NODE_ENV!=="production"&&he(o==="checkbox","property type=checkbox is missing from field "+a.name+", this can caused unexpected behaviour"),me(me({disabled:t??i,indeterminate:u,onBlur:s??function(h){n(h??a.name)}},a),c)}function Zo(e){return K.createElement(nc,me({},P0(e)))}Zo.displayName="FormikMaterialUICheckbox";function M0(e){var t=this,r=e.disabled,n=e.field;n.onBlur;var a=n.onChange,i=Pe(n,["onBlur","onChange"]),o=e.form,s=o.isSubmitting,c=o.touched,u=o.errors,h=o.setFieldTouched,l=o.setFieldValue,f=e.onClose,p=Pe(e,["disabled","field","form","onClose"]),v=Ee(u,i.name),g=Ee(c,i.name)&&!!v;return me(me({disabled:r??s,error:g,formError:g?v:void 0,onBlur:function(){},onChange:a??function(){},onClose:f??function(y){return O0(t,void 0,void 0,function(){var x;return A0(this,function(C){switch(C.label){case 0:return x=y.target.dataset,x&&x.value?[4,l(i.name,x.value,!1)]:[3,2];case 1:C.sent(),C.label=2;case 2:return h(i.name,!0,!0),[2]}})})}},i),p)}function Qo(e){var t=e.formControl,r=e.inputLabel,n=e.formHelperText,a=Pe(e,["formControl","inputLabel","formHelperText"]),i=M0(a),o=i.error,s=i.formError,c=i.disabled,u=Pe(i,["error","formError","disabled"]),h=n||{},l=h.children,f=Pe(h,["children"]),p=o||l;return K.createElement(Zu,me({disabled:c,error:o},t),K.createElement(ec,me({id:u.labelId},r),u.label),K.createElement(tc,me({},u)),p&&K.createElement(Qu,me({},f),o?s:l))}Qo.displayName="FormikMaterialUISelect";function I0(e){var t=e.disabled,r=e.field,n=r.onBlur,a=Pe(r,["onBlur"]),i=e.form.isSubmitting,o=e.type,s=e.onBlur,c=Pe(e,["disabled","field","form","type","onBlur"]);return process.env.NODE_ENV!=="production"&&he(o==="checkbox","property type=checkbox is missing from field "+a.name+", this can caused unexpected behaviour"),me(me({disabled:t??i,onBlur:s??function(u){n(u??a.name)}},a),c)}function es(e){return K.createElement(rc,me({},I0(e)))}es.displayName="FormikMaterialUISwitch";function F0(e){var t=e.disabled,r=e.field,n=r.onBlur,a=Pe(r,["onBlur"]),i=e.form,o=i.isSubmitting,s=i.touched,c=i.errors,u=e.onBlur,h=e.helperText,l=Pe(e,["disabled","field","form","onBlur","helperText"]),f=Ee(c,a.name),p=Ee(s,a.name)&&!!f;return me(me({error:p,helperText:p?f:h,disabled:t??o,onBlur:u??function(v){n(v??a.name)}},a),l)}function ts(e){var t=e.children,r=Pe(e,["children"]);return K.createElement(Ju,me({},F0(r)),t)}ts.displayName="FormikMaterialUITextField";function k0(e){var t=e.field;t.onChange;var r=t.onBlur,n=Pe(t,["onChange","onBlur"]),a=e.type,i=e.onChange,o=e.onBlur,s=e.form,c=Pe(e,["field","type","onChange","onBlur","form"]);return process.env.NODE_ENV!=="production"&&(he(a==="checkbox","property type=checkbox is missing from field "+n.name+", this can caused unexpected behaviour"),c.exclusive||he(Array.isArray(n.value),"value for "+n.name+" is not an array, this can caused unexpected behaviour")),me(me({onBlur:o??function(){r(n.name)},onChange:i??function(u,h){s.setFieldValue(n.name,h)}},n),c)}function rs(e){return K.createElement(ac,me({},k0(e)))}rs.displayName="FormikMaterialUIToggleButtonGroup";var ns={exports:{}};/*!***************************************************
31
31
  * mark.js v8.11.1
32
32
  * https://markjs.io/
33
33
  * Copyright (c) 2014–2018, Julian Kühnel
34
34
  * Released under the MIT license https://git.io/vwTVl
35
- *****************************************************/(function(e,t){(function(r,n){e.exports=n()})(rr,function(){var r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},n=function(u,h){if(!(u instanceof h))throw new TypeError("Cannot call a class as a function")},a=function(){function u(h,l){for(var f=0;f<l.length;f++){var p=l[f];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(h,p.key,p)}}return function(h,l,f){return l&&u(h.prototype,l),f&&u(h,f),h}}(),i=Object.assign||function(u){for(var h=1;h<arguments.length;h++){var l=arguments[h];for(var f in l)Object.prototype.hasOwnProperty.call(l,f)&&(u[f]=l[f])}return u},o=function(){function u(h){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:5e3;n(this,u),this.ctx=h,this.iframes=l,this.exclude=f,this.iframesTimeout=p}return a(u,[{key:"getContexts",value:function(){var l=void 0,f=[];return typeof this.ctx>"u"||!this.ctx?l=[]:NodeList.prototype.isPrototypeOf(this.ctx)?l=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?l=this.ctx:typeof this.ctx=="string"?l=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):l=[this.ctx],l.forEach(function(p){var v=f.filter(function(g){return g.contains(p)}).length>0;f.indexOf(p)===-1&&!v&&f.push(p)}),f}},{key:"getIframeContents",value:function(l,f){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},v=void 0;try{var g=l.contentWindow;if(v=g.document,!g||!v)throw new Error("iframe inaccessible")}catch{p()}v&&f(v)}},{key:"isIframeBlank",value:function(l){var f="about:blank",p=l.getAttribute("src").trim(),v=l.contentWindow.location.href;return v===f&&p!==f&&p}},{key:"observeIframeLoad",value:function(l,f,p){var v=this,g=!1,y=null,x=function C(){if(!g){g=!0,clearTimeout(y);try{v.isIframeBlank(l)||(l.removeEventListener("load",C),v.getIframeContents(l,f,p))}catch{p()}}};l.addEventListener("load",x),y=setTimeout(x,this.iframesTimeout)}},{key:"onIframeReady",value:function(l,f,p){try{l.contentWindow.document.readyState==="complete"?this.isIframeBlank(l)?this.observeIframeLoad(l,f,p):this.getIframeContents(l,f,p):this.observeIframeLoad(l,f,p)}catch{p()}}},{key:"waitForIframes",value:function(l,f){var p=this,v=0;this.forEachIframe(l,function(){return!0},function(g){v++,p.waitForIframes(g.querySelector("html"),function(){--v||f()})},function(g){g||f()})}},{key:"forEachIframe",value:function(l,f,p){var v=this,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},y=l.querySelectorAll("iframe"),x=y.length,C=0;y=Array.prototype.slice.call(y);var _=function(){--x<=0&&g(C)};x||_(),y.forEach(function(S){u.matches(S,v.exclude)?_():v.onIframeReady(S,function(b){f(S)&&(C++,p(b)),_()},_)})}},{key:"createIterator",value:function(l,f,p){return document.createNodeIterator(l,f,p,!1)}},{key:"createInstanceOnIframe",value:function(l){return new u(l.querySelector("html"),this.iframes)}},{key:"compareNodeIframe",value:function(l,f,p){var v=l.compareDocumentPosition(p),g=Node.DOCUMENT_POSITION_PRECEDING;if(v&g)if(f!==null){var y=f.compareDocumentPosition(p),x=Node.DOCUMENT_POSITION_FOLLOWING;if(y&x)return!0}else return!0;return!1}},{key:"getIteratorNode",value:function(l){var f=l.previousNode(),p=void 0;return f===null?p=l.nextNode():p=l.nextNode()&&l.nextNode(),{prevNode:f,node:p}}},{key:"checkIframeFilter",value:function(l,f,p,v){var g=!1,y=!1;return v.forEach(function(x,C){x.val===p&&(g=C,y=x.handled)}),this.compareNodeIframe(l,f,p)?(g===!1&&!y?v.push({val:p,handled:!0}):g!==!1&&!y&&(v[g].handled=!0),!0):(g===!1&&v.push({val:p,handled:!1}),!1)}},{key:"handleOpenIframes",value:function(l,f,p,v){var g=this;l.forEach(function(y){y.handled||g.getIframeContents(y.val,function(x){g.createInstanceOnIframe(x).forEachNode(f,p,v)})})}},{key:"iterateThroughNodes",value:function(l,f,p,v,g){for(var y=this,x=this.createIterator(f,l,v),C=[],_=[],S=void 0,b=void 0,T=function(){var W=y.getIteratorNode(x);return b=W.prevNode,S=W.node,S};T();)this.iframes&&this.forEachIframe(f,function(k){return y.checkIframeFilter(S,b,k,C)},function(k){y.createInstanceOnIframe(k).forEachNode(l,function(W){return _.push(W)},v)}),_.push(S);_.forEach(function(k){p(k)}),this.iframes&&this.handleOpenIframes(C,l,p,v),g()}},{key:"forEachNode",value:function(l,f,p){var v=this,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},y=this.getContexts(),x=y.length;x||g(),y.forEach(function(C){var _=function(){v.iterateThroughNodes(l,C,f,p,function(){--x<=0&&g()})};v.iframes?v.waitForIframes(C,_):_()})}}],[{key:"matches",value:function(l,f){var p=typeof f=="string"?[f]:f,v=l.matches||l.matchesSelector||l.msMatchesSelector||l.mozMatchesSelector||l.oMatchesSelector||l.webkitMatchesSelector;if(v){var g=!1;return p.every(function(y){return v.call(l,y)?(g=!0,!1):!0}),g}else return!1}}]),u}(),s=function(){function u(h){n(this,u),this.ctx=h,this.ie=!1;var l=window.navigator.userAgent;(l.indexOf("MSIE")>-1||l.indexOf("Trident")>-1)&&(this.ie=!0)}return a(u,[{key:"log",value:function(l){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"debug",p=this.opt.log;this.opt.debug&&(typeof p>"u"?"undefined":r(p))==="object"&&typeof p[f]=="function"&&p[f]("mark.js: "+l)}},{key:"escapeStr",value:function(l){return l.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}},{key:"createRegExp",value:function(l){return this.opt.wildcards!=="disabled"&&(l=this.setupWildcardsRegExp(l)),l=this.escapeStr(l),Object.keys(this.opt.synonyms).length&&(l=this.createSynonymsRegExp(l)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(l=this.setupIgnoreJoinersRegExp(l)),this.opt.diacritics&&(l=this.createDiacriticsRegExp(l)),l=this.createMergedBlanksRegExp(l),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(l=this.createJoinersRegExp(l)),this.opt.wildcards!=="disabled"&&(l=this.createWildcardsRegExp(l)),l=this.createAccuracyRegExp(l),l}},{key:"createSynonymsRegExp",value:function(l){var f=this.opt.synonyms,p=this.opt.caseSensitive?"":"i",v=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(var g in f)if(f.hasOwnProperty(g)){var y=f[g],x=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(g):this.escapeStr(g),C=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(y):this.escapeStr(y);x!==""&&C!==""&&(l=l.replace(new RegExp("("+this.escapeStr(x)+"|"+this.escapeStr(C)+")","gm"+p),v+("("+this.processSynomyms(x)+"|")+(this.processSynomyms(C)+")")+v))}return l}},{key:"processSynomyms",value:function(l){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(l=this.setupIgnoreJoinersRegExp(l)),l}},{key:"setupWildcardsRegExp",value:function(l){return l=l.replace(/(?:\\)*\?/g,function(f){return f.charAt(0)==="\\"?"?":""}),l.replace(/(?:\\)*\*/g,function(f){return f.charAt(0)==="\\"?"*":""})}},{key:"createWildcardsRegExp",value:function(l){var f=this.opt.wildcards==="withSpaces";return l.replace(/\u0001/g,f?"[\\S\\s]?":"\\S?").replace(/\u0002/g,f?"[\\S\\s]*?":"\\S*")}},{key:"setupIgnoreJoinersRegExp",value:function(l){return l.replace(/[^(|)\\]/g,function(f,p,v){var g=v.charAt(p+1);return/[(|)\\]/.test(g)||g===""?f:f+"\0"})}},{key:"createJoinersRegExp",value:function(l){var f=[],p=this.opt.ignorePunctuation;return Array.isArray(p)&&p.length&&f.push(this.escapeStr(p.join(""))),this.opt.ignoreJoiners&&f.push("\\u00ad\\u200b\\u200c\\u200d"),f.length?l.split(/\u0000+/).join("["+f.join("")+"]*"):l}},{key:"createDiacriticsRegExp",value:function(l){var f=this.opt.caseSensitive?"":"i",p=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"],v=[];return l.split("").forEach(function(g){p.every(function(y){if(y.indexOf(g)!==-1){if(v.indexOf(y)>-1)return!1;l=l.replace(new RegExp("["+y+"]","gm"+f),"["+y+"]"),v.push(y)}return!0})}),l}},{key:"createMergedBlanksRegExp",value:function(l){return l.replace(/[\s]+/gmi,"[\\s]+")}},{key:"createAccuracyRegExp",value:function(l){var f=this,p="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿",v=this.opt.accuracy,g=typeof v=="string"?v:v.value,y=typeof v=="string"?[]:v.limiters,x="";switch(y.forEach(function(C){x+="|"+f.escapeStr(C)}),g){case"partially":default:return"()("+l+")";case"complementary":return x="\\s"+(x||this.escapeStr(p)),"()([^"+x+"]*"+l+"[^"+x+"]*)";case"exactly":return"(^|\\s"+x+")("+l+")(?=$|\\s"+x+")"}}},{key:"getSeparatedKeywords",value:function(l){var f=this,p=[];return l.forEach(function(v){f.opt.separateWordSearch?v.split(" ").forEach(function(g){g.trim()&&p.indexOf(g)===-1&&p.push(g)}):v.trim()&&p.indexOf(v)===-1&&p.push(v)}),{keywords:p.sort(function(v,g){return g.length-v.length}),length:p.length}}},{key:"isNumeric",value:function(l){return Number(parseFloat(l))==l}},{key:"checkRanges",value:function(l){var f=this;if(!Array.isArray(l)||Object.prototype.toString.call(l[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(l),[];var p=[],v=0;return l.sort(function(g,y){return g.start-y.start}).forEach(function(g){var y=f.callNoMatchOnInvalidRanges(g,v),x=y.start,C=y.end,_=y.valid;_&&(g.start=x,g.length=C-x,p.push(g),v=C)}),p}},{key:"callNoMatchOnInvalidRanges",value:function(l,f){var p=void 0,v=void 0,g=!1;return l&&typeof l.start<"u"?(p=parseInt(l.start,10),v=p+parseInt(l.length,10),this.isNumeric(l.start)&&this.isNumeric(l.length)&&v-f>0&&v-p>0?g=!0:(this.log("Ignoring invalid or overlapping range: "+(""+JSON.stringify(l))),this.opt.noMatch(l))):(this.log("Ignoring invalid range: "+JSON.stringify(l)),this.opt.noMatch(l)),{start:p,end:v,valid:g}}},{key:"checkWhitespaceRanges",value:function(l,f,p){var v=void 0,g=!0,y=p.length,x=f-y,C=parseInt(l.start,10)-x;return C=C>y?y:C,v=C+parseInt(l.length,10),v>y&&(v=y,this.log("End range automatically set to the max value of "+y)),C<0||v-C<0||C>y||v>y?(g=!1,this.log("Invalid range: "+JSON.stringify(l)),this.opt.noMatch(l)):p.substring(C,v).replace(/\s+/g,"")===""&&(g=!1,this.log("Skipping whitespace only range: "+JSON.stringify(l)),this.opt.noMatch(l)),{start:C,end:v,valid:g}}},{key:"getTextNodes",value:function(l){var f=this,p="",v=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,function(g){v.push({start:p.length,end:(p+=g.textContent).length,node:g})},function(g){return f.matchesExclude(g.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},function(){l({value:p,nodes:v})})}},{key:"matchesExclude",value:function(l){return o.matches(l,this.opt.exclude.concat(["script","style","title","head","html"]))}},{key:"wrapRangeInTextNode",value:function(l,f,p){var v=this.opt.element?this.opt.element:"mark",g=l.splitText(f),y=g.splitText(p-f),x=document.createElement(v);return x.setAttribute("data-markjs","true"),this.opt.className&&x.setAttribute("class",this.opt.className),x.textContent=g.textContent,g.parentNode.replaceChild(x,g),y}},{key:"wrapRangeInMappedTextNode",value:function(l,f,p,v,g){var y=this;l.nodes.every(function(x,C){var _=l.nodes[C+1];if(typeof _>"u"||_.start>f){if(!v(x.node))return!1;var S=f-x.start,b=(p>x.end?x.end:p)-x.start,T=l.value.substr(0,x.start),k=l.value.substr(b+x.start);if(x.node=y.wrapRangeInTextNode(x.node,S,b),l.value=T+k,l.nodes.forEach(function(W,q){q>=C&&(l.nodes[q].start>0&&q!==C&&(l.nodes[q].start-=b),l.nodes[q].end-=b)}),p-=b,g(x.node.previousSibling,x.start),p>x.end)f=x.end;else return!1}return!0})}},{key:"wrapMatches",value:function(l,f,p,v,g){var y=this,x=f===0?0:f+1;this.getTextNodes(function(C){C.nodes.forEach(function(_){_=_.node;for(var S=void 0;(S=l.exec(_.textContent))!==null&&S[x]!=="";)if(p(S[x],_)){var b=S.index;if(x!==0)for(var T=1;T<x;T++)b+=S[T].length;_=y.wrapRangeInTextNode(_,b,b+S[x].length),v(_.previousSibling),l.lastIndex=0}}),g()})}},{key:"wrapMatchesAcrossElements",value:function(l,f,p,v,g){var y=this,x=f===0?0:f+1;this.getTextNodes(function(C){for(var _=void 0;(_=l.exec(C.value))!==null&&_[x]!=="";){var S=_.index;if(x!==0)for(var b=1;b<x;b++)S+=_[b].length;var T=S+_[x].length;y.wrapRangeInMappedTextNode(C,S,T,function(k){return p(_[x],k)},function(k,W){l.lastIndex=W,v(k)})}g()})}},{key:"wrapRangeFromIndex",value:function(l,f,p,v){var g=this;this.getTextNodes(function(y){var x=y.value.length;l.forEach(function(C,_){var S=g.checkWhitespaceRanges(C,x,y.value),b=S.start,T=S.end,k=S.valid;k&&g.wrapRangeInMappedTextNode(y,b,T,function(W){return f(W,C,y.value.substring(b,T),_)},function(W){p(W,C)})}),v()})}},{key:"unwrapMatches",value:function(l){for(var f=l.parentNode,p=document.createDocumentFragment();l.firstChild;)p.appendChild(l.removeChild(l.firstChild));f.replaceChild(p,l),this.ie?this.normalizeTextNode(f):f.normalize()}},{key:"normalizeTextNode",value:function(l){if(l){if(l.nodeType===3)for(;l.nextSibling&&l.nextSibling.nodeType===3;)l.nodeValue+=l.nextSibling.nodeValue,l.parentNode.removeChild(l.nextSibling);else this.normalizeTextNode(l.firstChild);this.normalizeTextNode(l.nextSibling)}}},{key:"markRegExp",value:function(l,f){var p=this;this.opt=f,this.log('Searching with expression "'+l+'"');var v=0,g="wrapMatches",y=function(C){v++,p.opt.each(C)};this.opt.acrossElements&&(g="wrapMatchesAcrossElements"),this[g](l,this.opt.ignoreGroups,function(x,C){return p.opt.filter(C,x,v)},y,function(){v===0&&p.opt.noMatch(l),p.opt.done(v)})}},{key:"mark",value:function(l,f){var p=this;this.opt=f;var v=0,g="wrapMatches",y=this.getSeparatedKeywords(typeof l=="string"?[l]:l),x=y.keywords,C=y.length,_=this.opt.caseSensitive?"":"i",S=function b(T){var k=new RegExp(p.createRegExp(T),"gm"+_),W=0;p.log('Searching with expression "'+k+'"'),p[g](k,1,function(q,ge){return p.opt.filter(ge,T,v,W)},function(q){W++,v++,p.opt.each(q)},function(){W===0&&p.opt.noMatch(T),x[C-1]===T?p.opt.done(v):b(x[x.indexOf(T)+1])})};this.opt.acrossElements&&(g="wrapMatchesAcrossElements"),C===0?this.opt.done(v):S(x[0])}},{key:"markRanges",value:function(l,f){var p=this;this.opt=f;var v=0,g=this.checkRanges(l);g&&g.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(g)),this.wrapRangeFromIndex(g,function(y,x,C,_){return p.opt.filter(y,x,C,_)},function(y,x){v++,p.opt.each(y,x)},function(){p.opt.done(v)})):this.opt.done(v)}},{key:"unmark",value:function(l){var f=this;this.opt=l;var p=this.opt.element?this.opt.element:"*";p+="[data-markjs]",this.opt.className&&(p+="."+this.opt.className),this.log('Removal selector "'+p+'"'),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,function(v){f.unwrapMatches(v)},function(v){var g=o.matches(v,p),y=f.matchesExclude(v);return!g||y?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}},{key:"opt",set:function(l){this._opt=i({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:function(){},noMatch:function(){},filter:function(){return!0},done:function(){},debug:!1,log:window.console},l)},get:function(){return this._opt}},{key:"iterator",get:function(){return new o(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}}]),u}();function c(u){var h=this,l=new s(u);return this.mark=function(f,p){return l.mark(f,p),h},this.markRegExp=function(f,p){return l.markRegExp(f,p),h},this.markRanges=function(f,p){return l.markRanges(f,p),h},this.unmark=function(f){return l.unmark(f),h},this}return c})})(rs);var j0=rs.exports;const L0=_t(j0),D0=e=>{const[t,r]=d.useState(),n=d.useRef(null);return K.useEffect(()=>{n.current&&r(new L0(n.current))},[n.current]),d.useEffect(()=>{t&&t.unmark({done:()=>{e.searchString&&t.mark(e.searchString)}})},[e.searchString,e.focussedPageKey]),m.jsx("div",{ref:n,children:e.children})},xr=K.createContext({searchString:"",searchRegEx:null,setSearchString:e=>{}}),N0=e=>{const t="",[r,n]=d.useState(t),a=i=>{!i||!i.trim()?n(null):n(i)};return m.jsx(xr.Provider,{value:{searchString:r,searchRegEx:r?new RegExp(r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gi"):null,setSearchString:a},children:e.children})},ns="rgba(5, 1, 1, 0.26)",B0="rgba(0, 0, 0, 0.54)",as=K.createContext({focussedPageKey:"",goToPage:e=>{},goBack:()=>{}});K.createContext({alreadyFiltering:!1});const is=e=>{const[t,r]=d.useState("");K.useEffect(()=>{var p;const l=K.Children.toArray(e.children).filter(v=>v)[e.currentAreaIndex||0],f=K.isValidElement(l)?(p=l.props)==null?void 0:p.pageKey:void 0;r(f)},[e.children,e.currentAreaIndex]);const n=K.useRef(e.initialValues),a=K.useRef(JSON.stringify(e.initialValues)),i=l=>{if(!e.onChange)return;let f=l;f[It]&&(f={...l},delete f[It]);const p=JSON.stringify(f);p!==a.current&&(a.current=p,n.current=f,e.onChange(n.current))},o=()=>{c(s.slice(0,-1)),r(s[s.length-1])},[s,c]=d.useState([]),u=l=>{c([...s,t]),r(l)},h=()=>K.Children.map(e.children,l=>l?K.cloneElement(l,{topLevel:!0}):null).filter(l=>l);return m.jsx(as.Provider,{value:{focussedPageKey:t,goToPage:u,goBack:o},children:m.jsx(x0,{initialValues:e.initialValues,onSubmit:l=>{},children:({values:l,errors:f,touched:p,handleChange:v,handleBlur:g,handleSubmit:y,isSubmitting:x})=>(e.setValueGetter&&e.setValueGetter(()=>l),i(l),m.jsx("form",{onSubmit:y,css:ve.css`
35
+ *****************************************************/(function(e,t){(function(r,n){e.exports=n()})(rr,function(){var r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},n=function(u,h){if(!(u instanceof h))throw new TypeError("Cannot call a class as a function")},a=function(){function u(h,l){for(var f=0;f<l.length;f++){var p=l[f];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(h,p.key,p)}}return function(h,l,f){return l&&u(h.prototype,l),f&&u(h,f),h}}(),i=Object.assign||function(u){for(var h=1;h<arguments.length;h++){var l=arguments[h];for(var f in l)Object.prototype.hasOwnProperty.call(l,f)&&(u[f]=l[f])}return u},o=function(){function u(h){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:5e3;n(this,u),this.ctx=h,this.iframes=l,this.exclude=f,this.iframesTimeout=p}return a(u,[{key:"getContexts",value:function(){var l=void 0,f=[];return typeof this.ctx>"u"||!this.ctx?l=[]:NodeList.prototype.isPrototypeOf(this.ctx)?l=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?l=this.ctx:typeof this.ctx=="string"?l=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):l=[this.ctx],l.forEach(function(p){var v=f.filter(function(g){return g.contains(p)}).length>0;f.indexOf(p)===-1&&!v&&f.push(p)}),f}},{key:"getIframeContents",value:function(l,f){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},v=void 0;try{var g=l.contentWindow;if(v=g.document,!g||!v)throw new Error("iframe inaccessible")}catch{p()}v&&f(v)}},{key:"isIframeBlank",value:function(l){var f="about:blank",p=l.getAttribute("src").trim(),v=l.contentWindow.location.href;return v===f&&p!==f&&p}},{key:"observeIframeLoad",value:function(l,f,p){var v=this,g=!1,y=null,x=function C(){if(!g){g=!0,clearTimeout(y);try{v.isIframeBlank(l)||(l.removeEventListener("load",C),v.getIframeContents(l,f,p))}catch{p()}}};l.addEventListener("load",x),y=setTimeout(x,this.iframesTimeout)}},{key:"onIframeReady",value:function(l,f,p){try{l.contentWindow.document.readyState==="complete"?this.isIframeBlank(l)?this.observeIframeLoad(l,f,p):this.getIframeContents(l,f,p):this.observeIframeLoad(l,f,p)}catch{p()}}},{key:"waitForIframes",value:function(l,f){var p=this,v=0;this.forEachIframe(l,function(){return!0},function(g){v++,p.waitForIframes(g.querySelector("html"),function(){--v||f()})},function(g){g||f()})}},{key:"forEachIframe",value:function(l,f,p){var v=this,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},y=l.querySelectorAll("iframe"),x=y.length,C=0;y=Array.prototype.slice.call(y);var _=function(){--x<=0&&g(C)};x||_(),y.forEach(function(S){u.matches(S,v.exclude)?_():v.onIframeReady(S,function(b){f(S)&&(C++,p(b)),_()},_)})}},{key:"createIterator",value:function(l,f,p){return document.createNodeIterator(l,f,p,!1)}},{key:"createInstanceOnIframe",value:function(l){return new u(l.querySelector("html"),this.iframes)}},{key:"compareNodeIframe",value:function(l,f,p){var v=l.compareDocumentPosition(p),g=Node.DOCUMENT_POSITION_PRECEDING;if(v&g)if(f!==null){var y=f.compareDocumentPosition(p),x=Node.DOCUMENT_POSITION_FOLLOWING;if(y&x)return!0}else return!0;return!1}},{key:"getIteratorNode",value:function(l){var f=l.previousNode(),p=void 0;return f===null?p=l.nextNode():p=l.nextNode()&&l.nextNode(),{prevNode:f,node:p}}},{key:"checkIframeFilter",value:function(l,f,p,v){var g=!1,y=!1;return v.forEach(function(x,C){x.val===p&&(g=C,y=x.handled)}),this.compareNodeIframe(l,f,p)?(g===!1&&!y?v.push({val:p,handled:!0}):g!==!1&&!y&&(v[g].handled=!0),!0):(g===!1&&v.push({val:p,handled:!1}),!1)}},{key:"handleOpenIframes",value:function(l,f,p,v){var g=this;l.forEach(function(y){y.handled||g.getIframeContents(y.val,function(x){g.createInstanceOnIframe(x).forEachNode(f,p,v)})})}},{key:"iterateThroughNodes",value:function(l,f,p,v,g){for(var y=this,x=this.createIterator(f,l,v),C=[],_=[],S=void 0,b=void 0,T=function(){var W=y.getIteratorNode(x);return b=W.prevNode,S=W.node,S};T();)this.iframes&&this.forEachIframe(f,function(j){return y.checkIframeFilter(S,b,j,C)},function(j){y.createInstanceOnIframe(j).forEachNode(l,function(W){return _.push(W)},v)}),_.push(S);_.forEach(function(j){p(j)}),this.iframes&&this.handleOpenIframes(C,l,p,v),g()}},{key:"forEachNode",value:function(l,f,p){var v=this,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},y=this.getContexts(),x=y.length;x||g(),y.forEach(function(C){var _=function(){v.iterateThroughNodes(l,C,f,p,function(){--x<=0&&g()})};v.iframes?v.waitForIframes(C,_):_()})}}],[{key:"matches",value:function(l,f){var p=typeof f=="string"?[f]:f,v=l.matches||l.matchesSelector||l.msMatchesSelector||l.mozMatchesSelector||l.oMatchesSelector||l.webkitMatchesSelector;if(v){var g=!1;return p.every(function(y){return v.call(l,y)?(g=!0,!1):!0}),g}else return!1}}]),u}(),s=function(){function u(h){n(this,u),this.ctx=h,this.ie=!1;var l=window.navigator.userAgent;(l.indexOf("MSIE")>-1||l.indexOf("Trident")>-1)&&(this.ie=!0)}return a(u,[{key:"log",value:function(l){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"debug",p=this.opt.log;this.opt.debug&&(typeof p>"u"?"undefined":r(p))==="object"&&typeof p[f]=="function"&&p[f]("mark.js: "+l)}},{key:"escapeStr",value:function(l){return l.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}},{key:"createRegExp",value:function(l){return this.opt.wildcards!=="disabled"&&(l=this.setupWildcardsRegExp(l)),l=this.escapeStr(l),Object.keys(this.opt.synonyms).length&&(l=this.createSynonymsRegExp(l)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(l=this.setupIgnoreJoinersRegExp(l)),this.opt.diacritics&&(l=this.createDiacriticsRegExp(l)),l=this.createMergedBlanksRegExp(l),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(l=this.createJoinersRegExp(l)),this.opt.wildcards!=="disabled"&&(l=this.createWildcardsRegExp(l)),l=this.createAccuracyRegExp(l),l}},{key:"createSynonymsRegExp",value:function(l){var f=this.opt.synonyms,p=this.opt.caseSensitive?"":"i",v=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(var g in f)if(f.hasOwnProperty(g)){var y=f[g],x=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(g):this.escapeStr(g),C=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(y):this.escapeStr(y);x!==""&&C!==""&&(l=l.replace(new RegExp("("+this.escapeStr(x)+"|"+this.escapeStr(C)+")","gm"+p),v+("("+this.processSynomyms(x)+"|")+(this.processSynomyms(C)+")")+v))}return l}},{key:"processSynomyms",value:function(l){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(l=this.setupIgnoreJoinersRegExp(l)),l}},{key:"setupWildcardsRegExp",value:function(l){return l=l.replace(/(?:\\)*\?/g,function(f){return f.charAt(0)==="\\"?"?":""}),l.replace(/(?:\\)*\*/g,function(f){return f.charAt(0)==="\\"?"*":""})}},{key:"createWildcardsRegExp",value:function(l){var f=this.opt.wildcards==="withSpaces";return l.replace(/\u0001/g,f?"[\\S\\s]?":"\\S?").replace(/\u0002/g,f?"[\\S\\s]*?":"\\S*")}},{key:"setupIgnoreJoinersRegExp",value:function(l){return l.replace(/[^(|)\\]/g,function(f,p,v){var g=v.charAt(p+1);return/[(|)\\]/.test(g)||g===""?f:f+"\0"})}},{key:"createJoinersRegExp",value:function(l){var f=[],p=this.opt.ignorePunctuation;return Array.isArray(p)&&p.length&&f.push(this.escapeStr(p.join(""))),this.opt.ignoreJoiners&&f.push("\\u00ad\\u200b\\u200c\\u200d"),f.length?l.split(/\u0000+/).join("["+f.join("")+"]*"):l}},{key:"createDiacriticsRegExp",value:function(l){var f=this.opt.caseSensitive?"":"i",p=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"],v=[];return l.split("").forEach(function(g){p.every(function(y){if(y.indexOf(g)!==-1){if(v.indexOf(y)>-1)return!1;l=l.replace(new RegExp("["+y+"]","gm"+f),"["+y+"]"),v.push(y)}return!0})}),l}},{key:"createMergedBlanksRegExp",value:function(l){return l.replace(/[\s]+/gmi,"[\\s]+")}},{key:"createAccuracyRegExp",value:function(l){var f=this,p="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿",v=this.opt.accuracy,g=typeof v=="string"?v:v.value,y=typeof v=="string"?[]:v.limiters,x="";switch(y.forEach(function(C){x+="|"+f.escapeStr(C)}),g){case"partially":default:return"()("+l+")";case"complementary":return x="\\s"+(x||this.escapeStr(p)),"()([^"+x+"]*"+l+"[^"+x+"]*)";case"exactly":return"(^|\\s"+x+")("+l+")(?=$|\\s"+x+")"}}},{key:"getSeparatedKeywords",value:function(l){var f=this,p=[];return l.forEach(function(v){f.opt.separateWordSearch?v.split(" ").forEach(function(g){g.trim()&&p.indexOf(g)===-1&&p.push(g)}):v.trim()&&p.indexOf(v)===-1&&p.push(v)}),{keywords:p.sort(function(v,g){return g.length-v.length}),length:p.length}}},{key:"isNumeric",value:function(l){return Number(parseFloat(l))==l}},{key:"checkRanges",value:function(l){var f=this;if(!Array.isArray(l)||Object.prototype.toString.call(l[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(l),[];var p=[],v=0;return l.sort(function(g,y){return g.start-y.start}).forEach(function(g){var y=f.callNoMatchOnInvalidRanges(g,v),x=y.start,C=y.end,_=y.valid;_&&(g.start=x,g.length=C-x,p.push(g),v=C)}),p}},{key:"callNoMatchOnInvalidRanges",value:function(l,f){var p=void 0,v=void 0,g=!1;return l&&typeof l.start<"u"?(p=parseInt(l.start,10),v=p+parseInt(l.length,10),this.isNumeric(l.start)&&this.isNumeric(l.length)&&v-f>0&&v-p>0?g=!0:(this.log("Ignoring invalid or overlapping range: "+(""+JSON.stringify(l))),this.opt.noMatch(l))):(this.log("Ignoring invalid range: "+JSON.stringify(l)),this.opt.noMatch(l)),{start:p,end:v,valid:g}}},{key:"checkWhitespaceRanges",value:function(l,f,p){var v=void 0,g=!0,y=p.length,x=f-y,C=parseInt(l.start,10)-x;return C=C>y?y:C,v=C+parseInt(l.length,10),v>y&&(v=y,this.log("End range automatically set to the max value of "+y)),C<0||v-C<0||C>y||v>y?(g=!1,this.log("Invalid range: "+JSON.stringify(l)),this.opt.noMatch(l)):p.substring(C,v).replace(/\s+/g,"")===""&&(g=!1,this.log("Skipping whitespace only range: "+JSON.stringify(l)),this.opt.noMatch(l)),{start:C,end:v,valid:g}}},{key:"getTextNodes",value:function(l){var f=this,p="",v=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,function(g){v.push({start:p.length,end:(p+=g.textContent).length,node:g})},function(g){return f.matchesExclude(g.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},function(){l({value:p,nodes:v})})}},{key:"matchesExclude",value:function(l){return o.matches(l,this.opt.exclude.concat(["script","style","title","head","html"]))}},{key:"wrapRangeInTextNode",value:function(l,f,p){var v=this.opt.element?this.opt.element:"mark",g=l.splitText(f),y=g.splitText(p-f),x=document.createElement(v);return x.setAttribute("data-markjs","true"),this.opt.className&&x.setAttribute("class",this.opt.className),x.textContent=g.textContent,g.parentNode.replaceChild(x,g),y}},{key:"wrapRangeInMappedTextNode",value:function(l,f,p,v,g){var y=this;l.nodes.every(function(x,C){var _=l.nodes[C+1];if(typeof _>"u"||_.start>f){if(!v(x.node))return!1;var S=f-x.start,b=(p>x.end?x.end:p)-x.start,T=l.value.substr(0,x.start),j=l.value.substr(b+x.start);if(x.node=y.wrapRangeInTextNode(x.node,S,b),l.value=T+j,l.nodes.forEach(function(W,q){q>=C&&(l.nodes[q].start>0&&q!==C&&(l.nodes[q].start-=b),l.nodes[q].end-=b)}),p-=b,g(x.node.previousSibling,x.start),p>x.end)f=x.end;else return!1}return!0})}},{key:"wrapMatches",value:function(l,f,p,v,g){var y=this,x=f===0?0:f+1;this.getTextNodes(function(C){C.nodes.forEach(function(_){_=_.node;for(var S=void 0;(S=l.exec(_.textContent))!==null&&S[x]!=="";)if(p(S[x],_)){var b=S.index;if(x!==0)for(var T=1;T<x;T++)b+=S[T].length;_=y.wrapRangeInTextNode(_,b,b+S[x].length),v(_.previousSibling),l.lastIndex=0}}),g()})}},{key:"wrapMatchesAcrossElements",value:function(l,f,p,v,g){var y=this,x=f===0?0:f+1;this.getTextNodes(function(C){for(var _=void 0;(_=l.exec(C.value))!==null&&_[x]!=="";){var S=_.index;if(x!==0)for(var b=1;b<x;b++)S+=_[b].length;var T=S+_[x].length;y.wrapRangeInMappedTextNode(C,S,T,function(j){return p(_[x],j)},function(j,W){l.lastIndex=W,v(j)})}g()})}},{key:"wrapRangeFromIndex",value:function(l,f,p,v){var g=this;this.getTextNodes(function(y){var x=y.value.length;l.forEach(function(C,_){var S=g.checkWhitespaceRanges(C,x,y.value),b=S.start,T=S.end,j=S.valid;j&&g.wrapRangeInMappedTextNode(y,b,T,function(W){return f(W,C,y.value.substring(b,T),_)},function(W){p(W,C)})}),v()})}},{key:"unwrapMatches",value:function(l){for(var f=l.parentNode,p=document.createDocumentFragment();l.firstChild;)p.appendChild(l.removeChild(l.firstChild));f.replaceChild(p,l),this.ie?this.normalizeTextNode(f):f.normalize()}},{key:"normalizeTextNode",value:function(l){if(l){if(l.nodeType===3)for(;l.nextSibling&&l.nextSibling.nodeType===3;)l.nodeValue+=l.nextSibling.nodeValue,l.parentNode.removeChild(l.nextSibling);else this.normalizeTextNode(l.firstChild);this.normalizeTextNode(l.nextSibling)}}},{key:"markRegExp",value:function(l,f){var p=this;this.opt=f,this.log('Searching with expression "'+l+'"');var v=0,g="wrapMatches",y=function(C){v++,p.opt.each(C)};this.opt.acrossElements&&(g="wrapMatchesAcrossElements"),this[g](l,this.opt.ignoreGroups,function(x,C){return p.opt.filter(C,x,v)},y,function(){v===0&&p.opt.noMatch(l),p.opt.done(v)})}},{key:"mark",value:function(l,f){var p=this;this.opt=f;var v=0,g="wrapMatches",y=this.getSeparatedKeywords(typeof l=="string"?[l]:l),x=y.keywords,C=y.length,_=this.opt.caseSensitive?"":"i",S=function b(T){var j=new RegExp(p.createRegExp(T),"gm"+_),W=0;p.log('Searching with expression "'+j+'"'),p[g](j,1,function(q,ge){return p.opt.filter(ge,T,v,W)},function(q){W++,v++,p.opt.each(q)},function(){W===0&&p.opt.noMatch(T),x[C-1]===T?p.opt.done(v):b(x[x.indexOf(T)+1])})};this.opt.acrossElements&&(g="wrapMatchesAcrossElements"),C===0?this.opt.done(v):S(x[0])}},{key:"markRanges",value:function(l,f){var p=this;this.opt=f;var v=0,g=this.checkRanges(l);g&&g.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(g)),this.wrapRangeFromIndex(g,function(y,x,C,_){return p.opt.filter(y,x,C,_)},function(y,x){v++,p.opt.each(y,x)},function(){p.opt.done(v)})):this.opt.done(v)}},{key:"unmark",value:function(l){var f=this;this.opt=l;var p=this.opt.element?this.opt.element:"*";p+="[data-markjs]",this.opt.className&&(p+="."+this.opt.className),this.log('Removal selector "'+p+'"'),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,function(v){f.unwrapMatches(v)},function(v){var g=o.matches(v,p),y=f.matchesExclude(v);return!g||y?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}},{key:"opt",set:function(l){this._opt=i({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:function(){},noMatch:function(){},filter:function(){return!0},done:function(){},debug:!1,log:window.console},l)},get:function(){return this._opt}},{key:"iterator",get:function(){return new o(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}}]),u}();function c(u){var h=this,l=new s(u);return this.mark=function(f,p){return l.mark(f,p),h},this.markRegExp=function(f,p){return l.markRegExp(f,p),h},this.markRanges=function(f,p){return l.markRanges(f,p),h},this.unmark=function(f){return l.unmark(f),h},this}return c})})(ns);var j0=ns.exports;const L0=_t(j0),D0=e=>{const[t,r]=d.useState(),n=d.useRef(null);return K.useEffect(()=>{n.current&&r(new L0(n.current))},[n.current]),d.useEffect(()=>{t&&t.unmark({done:()=>{e.searchString&&t.mark(e.searchString)}})},[e.searchString,e.focussedPageKey]),m.jsx("div",{ref:n,children:e.children})},xr=K.createContext({searchString:"",searchRegEx:null,setSearchString:e=>{}}),N0=e=>{const t="",[r,n]=d.useState(t),a=i=>{!i||!i.trim()?n(null):n(i)};return m.jsx(xr.Provider,{value:{searchString:r,searchRegEx:r?new RegExp(r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gi"):null,setSearchString:a},children:e.children})},as="rgba(5, 1, 1, 0.26)",B0="rgba(0, 0, 0, 0.54)",is=K.createContext({focussedPageKey:"",goToPage:e=>{},goBack:()=>{}});K.createContext({alreadyFiltering:!1});const os=e=>{const[t,r]=d.useState("");K.useEffect(()=>{var p;const l=K.Children.toArray(e.children).filter(v=>v)[e.currentTopLevelPageIndex||0],f=K.isValidElement(l)?(p=l.props)==null?void 0:p.pageKey:void 0;r(f)},[e.children,e.currentTopLevelPageIndex]);const n=K.useRef(e.initialValues),a=K.useRef(JSON.stringify(e.initialValues)),i=l=>{if(!e.onChange)return;let f=l;f[It]&&(f={...l},delete f[It]);const p=JSON.stringify(f);p!==a.current&&(a.current=p,n.current=f,e.onChange(n.current))},o=()=>{c(s.slice(0,-1)),r(s[s.length-1])},[s,c]=d.useState([]),u=()=>K.Children.map(e.children,l=>l&&l.type===Zn?K.cloneElement(l,{topLevel:!0}):null).filter(l=>l),h=l=>{c([...s,t]),r(l)};return m.jsx(is.Provider,{value:{focussedPageKey:t,goToPage:h,goBack:o},children:m.jsx(x0,{initialValues:e.initialValues,onSubmit:l=>{},children:({values:l,errors:f,touched:p,handleChange:v,handleBlur:g,handleSubmit:y,isSubmitting:x})=>(e.setValueGetter&&e.setValueGetter(()=>l),i(l),m.jsx("form",{onSubmit:y,css:de.css`
36
36
  flex-grow: 1;
37
- `,children:m.jsx(xr.Consumer,{children:({searchString:C})=>C?m.jsx(D0,{searchString:C,focussedPageKey:t,children:h()}):h()})}))})})},H0=e=>m.jsx(G0,{...e,children:e.children}),G0=e=>{var t;return e.inFocussedPage?(console.log("RowCluster infocuschildren:"+K.Children.count(e.children)),m.jsx(j.Paper,{className:"indentIfInSubPage",elevation:2,css:ve.css`
37
+ `,children:m.jsx(xr.Consumer,{children:({searchString:C})=>C?m.jsx(D0,{searchString:C,focussedPageKey:t,children:u()}):u()})}))})})},H0=e=>{var t;if(e.inFocussedPage){console.log("RowCluster infocuschildren:"+K.Children.count(e.children));const r=K.Children.toArray(e.children).filter(n=>n).length;return m.jsx(F.Paper,{elevation:2,css:de.css`
38
38
  //width: 100%; doesn't work with shadow
39
39
  margin-left: 2px; //needed to show shadow
40
40
  margin-right: 2px; //needed to show shadow
41
41
  margin-bottom: 12px !important;
42
- `,children:m.jsx(j.List,{component:"nav",css:ve.css`
42
+ `,children:m.jsx(F.List,{component:"nav",css:de.css`
43
43
  width: calc(100% - 20px);
44
- `,children:(t=K.Children.map(e.children,r=>r?K.cloneElement(r,{inFocussedPage:!0}):null))==null?void 0:t.filter(r=>r)})})):(console.log("RowCluster props",e),m.jsx(m.Fragment,{children:K.Children.toArray(e.children).filter(r=>r?r.type===os||r.type===Jn:null)}))},V0=e=>m.jsxs(j.ListItem,{css:ve.css`
44
+ `,children:(t=K.Children.map(e.children,(n,a)=>n?m.jsxs(m.Fragment,{children:[K.cloneElement(n,{inFocussedPage:!0}),a<r-1&&m.jsx(F.Divider,{component:"li"},"divider"+a.toString())]}):null))==null?void 0:t.filter(n=>n)})})}else return m.jsx(m.Fragment,{children:K.Children.map(e.children,r=>r&&(r==null?void 0:r.type)===Zn||(r==null?void 0:r.type)===Yr?r:null).filter(r=>r)})},G0=e=>m.jsxs(F.ListItem,{css:de.css`
45
45
  flex-direction: column;
46
46
  // I don't understand why this is needed. Else, it's centered
47
47
  align-items: flex-start;
48
- `,children:[m.jsx(j.ListItemText,{primaryTypographyProps:{variant:"h4"},primary:e.label,secondary:ls(e.description)}),e.control]}),Ye=e=>{const t=m.jsx(xr.Consumer,{children:({searchRegEx:r})=>{const n=m.jsxs("div",{css:ve.css`
48
+ `,children:[m.jsx(F.ListItemText,{primaryTypographyProps:{variant:"h4"},primary:e.label,secondary:ls(e.description)}),e.control]}),Ye=e=>{const t=m.jsx(xr.Consumer,{children:({searchRegEx:r})=>{const n=m.jsxs("div",{css:de.css`
49
49
  display: flex;
50
50
  flex-direction: column;
51
51
  width: 100%;
52
- `,children:[m.jsx(j.ListItemText,{primaryTypographyProps:{variant:"h4"},title:e.path,css:ve.css`
52
+ `,children:[m.jsx(F.ListItemText,{primaryTypographyProps:{variant:"h4"},title:e.path,css:de.css`
53
53
  /* no: doing this ends up double-fading the label
54
- color: ${e.disabled?ns:"unset"}; */
54
+ color: ${e.disabled?as:"unset"}; */
55
55
  ${e.height?"height:"+e.height:""}
56
56
  ${e.indented&&"margin-left: 30px;"}
57
57
  user-select: none;
58
58
  * {
59
59
  ${e.labelCss}
60
60
  }
61
- `,primary:e.label}),m.jsx(j.ListItemSecondaryAction,{css:ve.css`
61
+ `,primary:e.label}),m.jsx(F.ListItemSecondaryAction,{css:de.css`
62
62
  // OK, this feels like a hack. But the MUI default puts it at
63
63
  // top:50% which is fine until you have a secondary label, in
64
64
  // which case the whole thing gets very tall but really the
65
65
  // button should be top-aligned.
66
66
  /// Months later.. but it messed up toggleGroups and I'm not seeing the problem it was solving, at the moment.
67
67
  //top: 22px;
68
- `,children:e.control}),m.jsx(j.Typography,{variant:"caption",css:ve.css`
68
+ `,children:e.control}),m.jsx(F.Typography,{variant:"caption",css:de.css`
69
69
  &,
70
70
  * {
71
71
  // this is a hack... we need to figured out how to have this MUI List stuff allow a text along the bottom
72
72
  max-width: calc(100% - 200px);
73
- color: ${e.disabled?ns:"unset"};
73
+ color: ${e.disabled?as:"unset"};
74
74
  }
75
- `,children:ls(e.description)})]});if(r){const a=K.Children.toArray(e.children).filter(i=>i&&r.exec(i.props.label)).length;if(a)return m.jsxs("div",{children:[n,m.jsx("span",{css:ve.css`
75
+ `,children:ls(e.description)})]});if(r){const a=K.Children.toArray(e.children).filter(i=>i&&r.exec(i.props.label)).length;if(a)return m.jsxs("div",{children:[n,m.jsx("span",{css:de.css`
76
76
  background-color: yellow;
77
- `,children:`${a} matches`})]})}return n}});return e.onClick?m.jsx(j.ListItemButton,{onClick:e.onClick,disabled:e.disabled,children:t}):m.jsx(j.ListItem,{css:ve.css`
77
+ `,children:`${a} matches`})]})}return n}});return e.onClick?m.jsx(F.ListItemButton,{onClick:e.onClick,disabled:e.disabled,children:t}):m.jsx(F.ListItem,{css:de.css`
78
78
  height: ${e.height};
79
- `,children:t})};function Xe(e){const{values:t}=at();if(e.overrideValue===void 0)return e;const r=e.path.replace(/[.[\]]/g,"_");let n=t[It];t[It]||(t[It]=n={}),n[r]=e.overrideValue;const a=`${e.description??""} (${e.overrideDescription??""})`.replace(" ()","").trim();return{...e,description:a,disabled:!0,path:It+"."+r}}const It="overrideValue$",U0=e=>(e=Xe(e),m.jsx(Ye,{...e,control:m.jsx(mr,{component:es,variant:"standard",name:e.path,type:e.type??"text",InputProps:e.units?{endAdornment:m.jsx(j.InputAdornment,{position:"end",children:e.units})}:void 0,css:ve.css`
79
+ `,children:t})};function Xe(e){const{values:t}=at();if(e.overrideValue===void 0)return e;const r=e.path.replace(/[.[\]]/g,"_");let n=t[It];t[It]||(t[It]=n={}),n[r]=e.overrideValue;const a=`${e.description??""} (${e.overrideDescription??""})`.replace(" ()","").trim();return{...e,description:a,disabled:!0,path:It+"."+r}}const It="overrideValue$",V0=e=>(e=Xe(e),m.jsx(Ye,{...e,control:m.jsx(mr,{component:ts,variant:"standard",name:e.path,type:e.type??"text",InputProps:e.units?{endAdornment:m.jsx(F.InputAdornment,{position:"end",children:e.units})}:void 0,css:de.css`
80
80
  input {
81
81
  text-align: end;
82
82
  }
83
- `})})),z0=e=>{e=Xe(e);const[t,r,n]=yt(e.path),{value:a}=r,{setValue:i}=n;return m.jsx(Ye,{...e,control:m.jsx(e.control,{disabled:e.disabled,value:a,onChange:i})})},W0=e=>{e=Xe(e);const[t,r,n]=yt(e.path),{value:a}=r,{setValue:i}=n;return m.jsx(Ye,{...e,control:m.jsx(e.control,{disabled:e.disabled,value:a,onChange:i})})},R0=e=>{e=Xe(e);const[t,r,n]=yt(e.path),{value:a}=r,{setValue:i}=n;return m.jsx(Ye,{...e,control:m.jsx(e.control,{disabled:e.disabled,value:a,onChange:i})})};function K0(e){e=Xe(e);const[t,r,n]=yt(e.path),{value:a}=r,{setValue:i}=n;return m.jsx(Ye,{...e,control:m.jsx(e.control,{value:a,disabled:e.disabled,onChange:i})})}const q0=e=>{e=Xe(e);const t=e.disabled||!ab(!0,e.enableWhen);return m.jsx(Ye,{...e,disabled:t,control:m.jsx(mr,{name:e.path,disabled:t,component:Zo,defaultValue:"",displayEmpty:!0,sx:{minWidth:180},css:ve.css`
83
+ `})})),U0=e=>{e=Xe(e);const[t,r,n]=yt(e.path),{value:a}=r,{setValue:i}=n;return m.jsx(Ye,{...e,control:m.jsx(e.control,{disabled:e.disabled,value:a,onChange:i})})},z0=e=>{e=Xe(e);const[t,r,n]=yt(e.path),{value:a}=r,{setValue:i}=n;return m.jsx(Ye,{...e,control:m.jsx(e.control,{disabled:e.disabled,value:a,onChange:i})})},W0=e=>{e=Xe(e);const[t,r,n]=yt(e.path),{value:a}=r,{setValue:i}=n;return m.jsx(Ye,{...e,control:m.jsx(e.control,{disabled:e.disabled,value:a,onChange:i})})};function R0(e){e=Xe(e);const[t,r,n]=yt(e.path),{value:a}=r,{setValue:i}=n;return m.jsx(Ye,{...e,control:m.jsx(e.control,{value:a,disabled:e.disabled,onChange:i})})}const K0=e=>{e=Xe(e);const t=e.disabled||!nb(!0,e.enableWhen);return m.jsx(Ye,{...e,disabled:t,control:m.jsx(mr,{name:e.path,disabled:t,component:Qo,defaultValue:"",displayEmpty:!0,sx:{minWidth:180},css:de.css`
84
84
  .MuiSelect-select {
85
85
  padding: 3px !important;
86
86
  padding-left: 9px !important;
@@ -89,16 +89,21 @@
89
89
  * {
90
90
  border-style: none;
91
91
  }
92
- `,children:e.options.map(r=>{if(typeof r=="number")return m.jsx(j.MenuItem,{value:r,children:m.jsx("span",{children:r})},r);const n=r.label??r.value,a=r.value??r.label;return n!=null&&n.startsWith("--")?m.jsx(j.Divider,{},n):m.jsx(j.MenuItem,{value:a,children:r.description?m.jsx(j.Tooltip,{title:r.description,children:m.jsx("span",{children:n})}):m.jsx("span",{children:n})},n)})})})},Xn=e=>m.jsx(H0,{...e,level:2,children:e.children}),os=e=>{var n;const t=e.pageKey||e.label,r=K.Children.toArray(e.children).find(a=>a&&a.type!==Xn&&a.type!==Jn);if(r)throw Error(`<ConfigrPage pageKey='${t}'> ConfigrPage children must be of type ConfigrGroup or ConfigrForEach. Label of offending element is "${(n=r.props)==null?void 0:n.label}"`);return m.jsx(as.Consumer,{children:({focussedPageKey:a,goToPage:i,goBack:o})=>{var s,c;return console.log(`<ConfigrPage pageKey='${t}' inFocussedPage=${e.inFocussedPage} focussedPageKey='${a}'>`),e.inFocussedPage?m.jsx(Ye,{path:t,onClick:()=>i(t),control:m.jsx(Yu,{}),...e}):a===e.pageKey?m.jsxs(m.Fragment,{children:[!e.topLevel&&m.jsxs("div",{css:e.labelCss,children:[m.jsx(j.IconButton,{onClick:()=>o(),children:m.jsx(Xu,{})}),e.label]}),m.jsx("div",{css:ve.css`
93
- .indentIfInSubPage {
92
+ `,children:e.options.map(r=>{if(typeof r=="number")return m.jsx(F.MenuItem,{value:r,children:m.jsx("span",{children:r})},r);const n=r.label??r.value,a=r.value??r.label;return n!=null&&n.startsWith("--")?m.jsx(F.Divider,{},n):m.jsx(F.MenuItem,{value:a,children:r.description?m.jsx(F.Tooltip,{title:r.description,children:m.jsx("span",{children:n})}):m.jsx("span",{children:n})},n)})})})},Jn=e=>m.jsxs(m.Fragment,{children:[e.inFocussedPage&&e.label&&m.jsx(F.Typography,{variant:"h3",children:e.label}),m.jsx(H0,{...e,children:e.children})]}),Zn=e=>{var n;const t=e.pageKey||e.label,r=K.Children.toArray(e.children).find(a=>a&&a.type!==Jn&&a.type!==Yr);if(r)throw Error(`<ConfigrPage pageKey='${t}'> ConfigrPage children must be of type ConfigrGroup or ConfigrForEach. Label of offending element is "${(n=r.props)==null?void 0:n.label}"`);return m.jsx(is.Consumer,{children:({focussedPageKey:a,goToPage:i,goBack:o})=>{var s,c;return console.log(`<ConfigrPage pageKey='${t}' inFocussedPage=${e.inFocussedPage} focussedPageKey='${a}'>`),e.inFocussedPage?m.jsx(Ye,{path:t,onClick:()=>i(t),control:m.jsx(Yu,{}),...e}):a===e.pageKey?m.jsxs(m.Fragment,{children:[!e.topLevel&&m.jsxs("div",{css:e.labelCss,children:[m.jsx(F.IconButton,{onClick:()=>o(),children:m.jsx(Xu,{})}),e.label]}),e.topLevel&&e.label&&m.jsx(F.Typography,{variant:"h2",css:de.css`
93
+ margin-bottom: 0.5em;
94
+ `,children:e.label}),m.jsx("div",{css:de.css`
95
+ /* .indentIfInSubPage {
94
96
  margin-left: 20px;
95
97
  //margin-right: 20px;
96
- }
97
- `,children:(s=K.Children.map(e.children,u=>u?K.cloneElement(u,{inFocussedPage:!0}):null))==null?void 0:s.filter(u=>u)})]}):m.jsx(K.Fragment,{children:(c=K.Children.map(e.children,u=>u&&u.type===Xn?u:null))==null?void 0:c.filter(u=>u)})}})},Jn=e=>{const{values:t}=at(),r=ss(t,e.path);return m.jsx(K.Fragment,{children:r.map((n,a)=>{const i=e.render(`${e.path}[${a}]`,a);return K.cloneElement(i,{inFocussedPage:e.inFocussedPage})})})},Y0=e=>{e=Xe(e);const[t,r,n]=yt(e.path);(t.value===void 0||t.value===null)&&window.setTimeout(()=>n.setValue(!1),0);const a=e.immediateEffect?m.jsx(mr,{component:Qo,type:"checkbox",name:e.path,label:e.label,disabled:e.disabled||e.locked}):m.jsx(mr,{component:Jo,type:"checkbox",disabled:e.disabled||e.locked,name:e.path,label:e.label});return m.jsx(Ye,{onClick:()=>{e.locked||n.setValue(!t.value)},control:a,...e,disabled:e.disabled&&!e.locked})},X0=e=>(e=Xe(e),m.jsx(V0,{...e,control:m.jsx(J0,{...e})})),J0=e=>{const[t]=yt(e.path);return m.jsx(j.RadioGroup,{row:e.row,...t,...e,children:e.children})},Z0=e=>{const t=j.useRadioGroup();return console.log("useRadioGroup "+JSON.stringify(t)),e.label?m.jsx(j.FormControlLabel,{value:e.value,control:m.jsx(j.Radio,{}),label:e.label}):m.jsx(K.Fragment,{children:e.children})},Q0=e=>(e=Xe(e),m.jsx(Ye,{...e,control:m.jsx(eb,{...e})})),eb=e=>m.jsx(mr,{component:ts,name:e.path,type:"checkbox",exclusive:!0,children:e.children});function tb(e,t){return m.jsx(j.ToggleButton,{value:e,children:t})}const rb=e=>{e=Xe(e);const{setFieldValue:t}=at(),[r]=yt(e.path);return m.jsx(Ye,{...e,height:"50px",control:m.jsxs("div",{css:ve.css`
98
+ } */
99
+ display: flex;
100
+ flex-direction: column;
101
+ gap: 0.5em;
102
+ `,children:(s=K.Children.map(e.children,u=>u?K.cloneElement(u,{inFocussedPage:!0}):null))==null?void 0:s.filter(u=>u)})]}):m.jsx(K.Fragment,{children:(c=K.Children.map(e.children,u=>u&&u.type===Jn||u&&u.type===Yr?u:null))==null?void 0:c.filter(u=>u)})}})},Yr=e=>{const{values:t}=at(),r=ss(t,e.path);return m.jsx(K.Fragment,{children:r.map((n,a)=>{const i=e.render(`${e.path}[${a}]`,a);return K.cloneElement(i,{inFocussedPage:e.inFocussedPage})})})},q0=e=>{e=Xe(e);const[t,r,n]=yt(e.path);(t.value===void 0||t.value===null)&&window.setTimeout(()=>n.setValue(!1),0);const a=e.immediateEffect?m.jsx(mr,{component:es,type:"checkbox",name:e.path,label:e.label,disabled:e.disabled||e.locked}):m.jsx(mr,{component:Zo,type:"checkbox",disabled:e.disabled||e.locked,name:e.path,label:e.label});return m.jsx(Ye,{onClick:()=>{e.locked||n.setValue(!t.value)},control:a,...e,disabled:e.disabled&&!e.locked})},Y0=e=>(e=Xe(e),m.jsx(G0,{...e,control:m.jsx(X0,{...e})})),X0=e=>{const[t]=yt(e.path);return m.jsx(F.RadioGroup,{row:e.row,...t,...e,children:e.children})},J0=e=>{const t=F.useRadioGroup();return console.log("useRadioGroup "+JSON.stringify(t)),e.label?m.jsx(F.FormControlLabel,{value:e.value,control:m.jsx(F.Radio,{}),label:e.label}):m.jsx(K.Fragment,{children:e.children})},Z0=e=>(e=Xe(e),m.jsx(Ye,{...e,control:m.jsx(Q0,{...e})})),Q0=e=>m.jsx(mr,{component:rs,name:e.path,type:"checkbox",exclusive:!0,children:e.children});function eb(e,t){return m.jsx(F.ToggleButton,{value:e,children:t})}const tb=e=>{e=Xe(e);const{setFieldValue:t}=at(),[r]=yt(e.path);return m.jsx(Ye,{...e,height:"50px",control:m.jsxs("div",{css:de.css`
98
103
  height: 56px; // leave room to show the path below the button
99
- `,children:[m.jsx(j.Button,{disabled:e.disabled,variant:"outlined",onClick:()=>{const n=e.chooseAction(r.value);t(e.path,n)},children:e.buttonLabel}),m.jsx("div",{css:ve.css`
104
+ `,children:[m.jsx(F.Button,{disabled:e.disabled,variant:"outlined",onClick:()=>{const n=e.chooseAction(r.value);t(e.path,n)},children:e.buttonLabel}),m.jsx("div",{css:de.css`
100
105
  color: ${B0};
101
- `,children:r.value})]})})},nb=e=>{const[t,r]=d.useState([]);d.useEffect(()=>{r(K.Children.toArray(e.children).filter(o=>o))},[e.children]);const{values:n}=at(),a=e.enableWhen?!e.enableWhen(n):!1;return(e.visibleWhen?e.visibleWhen(n):!0)?m.jsx(K.Fragment,{children:K.Children.map(t,o=>K.isValidElement(o)?K.cloneElement(o,{disabled:a}):o)}):null};function ss(e,t,r,n=0){const a=yh(t);for(;e&&n<a.length;)e=e[a[n++]];return e===void 0?r:e}function ab(e,t){const{values:r}=at();return t?typeof t=="string"?ss(r,t)===!0:t(r):e}function ls(e){if(!e)return null;if(typeof e!="string")return e;const t=/\[([^\]]+)\]\(([^)]+)\)/g;let r,n=0;const a=[];for(;(r=t.exec(e))!==null;)r.index===t.lastIndex&&t.lastIndex++,a.push(e.substring(n,r.index)),a.push(m.jsx("a",{href:r[2],target:"_blank",rel:"noreferrer",children:r[1]})),n=t.lastIndex;return a.push(e.substring(n)),a}const us={typography:{fontFamily:["system-ui",'"Segoe UI"',"Roboto","Arial","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"'].join(","),h2:{fontSize:"20px",fontWeight:"600"},h3:{fontSize:"14px",fontWeight:"600"},h4:{fontSize:"14px",fontWeight:"600"},caption:{fontSize:"12px",lineHeight:"14px",marginTop:"4px"}},components:{MuiSelect:{styleOverrides:{select:{fontSize:"14px"}}},MuiDivider:{styleOverrides:{root:{borderColor:"rgb(234, 234, 234)"}}},MuiFormControlLabel:{styleOverrides:{label:{fontSize:"14px",fontWeight:"600"}}}}},ib={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},cs=e=>{let t;const r=new Set,n=(c,u)=>{const h=typeof c=="function"?c(t):c;if(!Object.is(h,t)){const l=t;t=u??typeof h!="object"?h:Object.assign({},t,h),r.forEach(f=>f(t,l))}},a=()=>t,s={setState:n,getState:a,subscribe:c=>(r.add(c),()=>r.delete(c)),destroy:()=>{var c;((c=ib)==null?void 0:c.MODE)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}};return t=e(n,a,s),s},ob=e=>e?cs(e):cs;var Zn={exports:{}},Qn={},Yr={exports:{}},ea={};/**
106
+ `,children:r.value})]})})},rb=e=>{const[t,r]=d.useState([]);d.useEffect(()=>{r(K.Children.toArray(e.children).filter(o=>o))},[e.children]);const{values:n}=at(),a=e.enableWhen?!e.enableWhen(n):!1;return(e.visibleWhen?e.visibleWhen(n):!0)?m.jsx(K.Fragment,{children:K.Children.map(t,o=>K.isValidElement(o)?K.cloneElement(o,{disabled:a}):o)}):null};function ss(e,t,r,n=0){const a=yh(t);for(;e&&n<a.length;)e=e[a[n++]];return e===void 0?r:e}function nb(e,t){const{values:r}=at();return t?typeof t=="string"?ss(r,t)===!0:t(r):e}function ls(e){if(!e)return null;if(typeof e!="string")return e;const t=/\[([^\]]+)\]\(([^)]+)\)/g;let r,n=0;const a=[];for(;(r=t.exec(e))!==null;)r.index===t.lastIndex&&t.lastIndex++,a.push(e.substring(n,r.index)),a.push(m.jsx("a",{href:r[2],target:"_blank",rel:"noreferrer",children:r[1]})),n=t.lastIndex;return a.push(e.substring(n)),a}const us={typography:{fontFamily:["system-ui",'"Segoe UI"',"Roboto","Arial","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"'].join(","),h2:{fontSize:"20px",fontWeight:"600"},h3:{fontSize:"14px",fontWeight:"600"},h4:{fontSize:"14px",fontWeight:"600"},caption:{fontSize:"12px",lineHeight:"14px",marginTop:"4px"}},components:{MuiSelect:{styleOverrides:{select:{fontSize:"14px"}}},MuiDivider:{styleOverrides:{root:{borderColor:"rgb(234, 234, 234)"}}},MuiFormControlLabel:{styleOverrides:{label:{fontSize:"14px",fontWeight:"600"}}}}},ab={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},cs=e=>{let t;const r=new Set,n=(c,u)=>{const h=typeof c=="function"?c(t):c;if(!Object.is(h,t)){const l=t;t=u??typeof h!="object"?h:Object.assign({},t,h),r.forEach(f=>f(t,l))}},a=()=>t,s={setState:n,getState:a,subscribe:c=>(r.add(c),()=>r.delete(c)),destroy:()=>{var c;((c=ab)==null?void 0:c.MODE)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}};return t=e(n,a,s),s},ib=e=>e?cs(e):cs;var Qn={exports:{}},ea={},Xr={exports:{}},ta={};/**
102
107
  * @license React
103
108
  * use-sync-external-store-shim.production.min.js
104
109
  *
@@ -106,7 +111,7 @@
106
111
  *
107
112
  * This source code is licensed under the MIT license found in the
108
113
  * LICENSE file in the root directory of this source tree.
109
- */var fs;function sb(){if(fs)return ea;fs=1;var e=d;function t(l,f){return l===f&&(l!==0||1/l===1/f)||l!==l&&f!==f}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,a=e.useEffect,i=e.useLayoutEffect,o=e.useDebugValue;function s(l,f){var p=f(),v=n({inst:{value:p,getSnapshot:f}}),g=v[0].inst,y=v[1];return i(function(){g.value=p,g.getSnapshot=f,c(g)&&y({inst:g})},[l,p,f]),a(function(){return c(g)&&y({inst:g}),l(function(){c(g)&&y({inst:g})})},[l]),o(p),p}function c(l){var f=l.getSnapshot;l=l.value;try{var p=f();return!r(l,p)}catch{return!0}}function u(l,f){return f()}var h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:s;return ea.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:h,ea}var ta={};/**
114
+ */var fs;function ob(){if(fs)return ta;fs=1;var e=d;function t(l,f){return l===f&&(l!==0||1/l===1/f)||l!==l&&f!==f}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,a=e.useEffect,i=e.useLayoutEffect,o=e.useDebugValue;function s(l,f){var p=f(),v=n({inst:{value:p,getSnapshot:f}}),g=v[0].inst,y=v[1];return i(function(){g.value=p,g.getSnapshot=f,c(g)&&y({inst:g})},[l,p,f]),a(function(){return c(g)&&y({inst:g}),l(function(){c(g)&&y({inst:g})})},[l]),o(p),p}function c(l){var f=l.getSnapshot;l=l.value;try{var p=f();return!r(l,p)}catch{return!0}}function u(l,f){return f()}var h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:s;return ta.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:h,ta}var ra={};/**
110
115
  * @license React
111
116
  * use-sync-external-store-shim.development.js
112
117
  *
@@ -114,7 +119,7 @@
114
119
  *
115
120
  * This source code is licensed under the MIT license found in the
116
121
  * LICENSE file in the root directory of this source tree.
117
- */var ds;function lb(){return ds||(ds=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=d,t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(_){{for(var S=arguments.length,b=new Array(S>1?S-1:0),T=1;T<S;T++)b[T-1]=arguments[T];n("error",_,b)}}function n(_,S,b){{var T=t.ReactDebugCurrentFrame,k=T.getStackAddendum();k!==""&&(S+="%s",b=b.concat([k]));var W=b.map(function(q){return String(q)});W.unshift("Warning: "+S),Function.prototype.apply.call(console[_],console,W)}}function a(_,S){return _===S&&(_!==0||1/_===1/S)||_!==_&&S!==S}var i=typeof Object.is=="function"?Object.is:a,o=e.useState,s=e.useEffect,c=e.useLayoutEffect,u=e.useDebugValue,h=!1,l=!1;function f(_,S,b){h||e.startTransition!==void 0&&(h=!0,r("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var T=S();if(!l){var k=S();i(T,k)||(r("The result of getSnapshot should be cached to avoid an infinite loop"),l=!0)}var W=o({inst:{value:T,getSnapshot:S}}),q=W[0].inst,ge=W[1];return c(function(){q.value=T,q.getSnapshot=S,p(q)&&ge({inst:q})},[_,T,S]),s(function(){p(q)&&ge({inst:q});var ae=function(){p(q)&&ge({inst:q})};return _(ae)},[_]),u(T),T}function p(_){var S=_.getSnapshot,b=_.value;try{var T=S();return!i(b,T)}catch{return!0}}function v(_,S,b){return S()}var g=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",y=!g,x=y?v:f,C=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:x;ta.useSyncExternalStore=C,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),ta}var hs;function ps(){return hs||(hs=1,process.env.NODE_ENV==="production"?Yr.exports=sb():Yr.exports=lb()),Yr.exports}/**
122
+ */var ds;function sb(){return ds||(ds=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=d,t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(_){{for(var S=arguments.length,b=new Array(S>1?S-1:0),T=1;T<S;T++)b[T-1]=arguments[T];n("error",_,b)}}function n(_,S,b){{var T=t.ReactDebugCurrentFrame,j=T.getStackAddendum();j!==""&&(S+="%s",b=b.concat([j]));var W=b.map(function(q){return String(q)});W.unshift("Warning: "+S),Function.prototype.apply.call(console[_],console,W)}}function a(_,S){return _===S&&(_!==0||1/_===1/S)||_!==_&&S!==S}var i=typeof Object.is=="function"?Object.is:a,o=e.useState,s=e.useEffect,c=e.useLayoutEffect,u=e.useDebugValue,h=!1,l=!1;function f(_,S,b){h||e.startTransition!==void 0&&(h=!0,r("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var T=S();if(!l){var j=S();i(T,j)||(r("The result of getSnapshot should be cached to avoid an infinite loop"),l=!0)}var W=o({inst:{value:T,getSnapshot:S}}),q=W[0].inst,ge=W[1];return c(function(){q.value=T,q.getSnapshot=S,p(q)&&ge({inst:q})},[_,T,S]),s(function(){p(q)&&ge({inst:q});var ae=function(){p(q)&&ge({inst:q})};return _(ae)},[_]),u(T),T}function p(_){var S=_.getSnapshot,b=_.value;try{var T=S();return!i(b,T)}catch{return!0}}function v(_,S,b){return S()}var g=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",y=!g,x=y?v:f,C=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:x;ra.useSyncExternalStore=C,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),ra}var hs;function ps(){return hs||(hs=1,process.env.NODE_ENV==="production"?Xr.exports=ob():Xr.exports=sb()),Xr.exports}/**
118
123
  * @license React
119
124
  * use-sync-external-store-shim/with-selector.production.min.js
120
125
  *
@@ -122,7 +127,7 @@
122
127
  *
123
128
  * This source code is licensed under the MIT license found in the
124
129
  * LICENSE file in the root directory of this source tree.
125
- */var vs;function ub(){if(vs)return Qn;vs=1;var e=d,t=ps();function r(u,h){return u===h&&(u!==0||1/u===1/h)||u!==u&&h!==h}var n=typeof Object.is=="function"?Object.is:r,a=t.useSyncExternalStore,i=e.useRef,o=e.useEffect,s=e.useMemo,c=e.useDebugValue;return Qn.useSyncExternalStoreWithSelector=function(u,h,l,f,p){var v=i(null);if(v.current===null){var g={hasValue:!1,value:null};v.current=g}else g=v.current;v=s(function(){function x(T){if(!C){if(C=!0,_=T,T=f(T),p!==void 0&&g.hasValue){var k=g.value;if(p(k,T))return S=k}return S=T}if(k=S,n(_,T))return k;var W=f(T);return p!==void 0&&p(k,W)?k:(_=T,S=W)}var C=!1,_,S,b=l===void 0?null:l;return[function(){return x(h())},b===null?void 0:function(){return x(b())}]},[h,l,f,p]);var y=a(u,v[0],v[1]);return o(function(){g.hasValue=!0,g.value=y},[y]),c(y),y},Qn}var ra={};/**
130
+ */var vs;function lb(){if(vs)return ea;vs=1;var e=d,t=ps();function r(u,h){return u===h&&(u!==0||1/u===1/h)||u!==u&&h!==h}var n=typeof Object.is=="function"?Object.is:r,a=t.useSyncExternalStore,i=e.useRef,o=e.useEffect,s=e.useMemo,c=e.useDebugValue;return ea.useSyncExternalStoreWithSelector=function(u,h,l,f,p){var v=i(null);if(v.current===null){var g={hasValue:!1,value:null};v.current=g}else g=v.current;v=s(function(){function x(T){if(!C){if(C=!0,_=T,T=f(T),p!==void 0&&g.hasValue){var j=g.value;if(p(j,T))return S=j}return S=T}if(j=S,n(_,T))return j;var W=f(T);return p!==void 0&&p(j,W)?j:(_=T,S=W)}var C=!1,_,S,b=l===void 0?null:l;return[function(){return x(h())},b===null?void 0:function(){return x(b())}]},[h,l,f,p]);var y=a(u,v[0],v[1]);return o(function(){g.hasValue=!0,g.value=y},[y]),c(y),y},ea}var na={};/**
126
131
  * @license React
127
132
  * use-sync-external-store-shim/with-selector.development.js
128
133
  *
@@ -130,10 +135,10 @@
130
135
  *
131
136
  * This source code is licensed under the MIT license found in the
132
137
  * LICENSE file in the root directory of this source tree.
133
- */var gs;function cb(){return gs||(gs=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=d,t=ps();function r(h,l){return h===l&&(h!==0||1/h===1/l)||h!==h&&l!==l}var n=typeof Object.is=="function"?Object.is:r,a=t.useSyncExternalStore,i=e.useRef,o=e.useEffect,s=e.useMemo,c=e.useDebugValue;function u(h,l,f,p,v){var g=i(null),y;g.current===null?(y={hasValue:!1,value:null},g.current=y):y=g.current;var x=s(function(){var b=!1,T,k,W=function(fe){if(!b){b=!0,T=fe;var xe=p(fe);if(v!==void 0&&y.hasValue){var be=y.value;if(v(be,xe))return k=be,be}return k=xe,xe}var _e=T,oe=k;if(n(_e,fe))return oe;var ye=p(fe);return v!==void 0&&v(oe,ye)?oe:(T=fe,k=ye,ye)},q=f===void 0?null:f,ge=function(){return W(l())},ae=q===null?void 0:function(){return W(q())};return[ge,ae]},[l,f,p,v]),C=x[0],_=x[1],S=a(h,C,_);return o(function(){y.hasValue=!0,y.value=S},[S]),c(S),S}ra.useSyncExternalStoreWithSelector=u,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),ra}process.env.NODE_ENV==="production"?Zn.exports=ub():Zn.exports=cb();var fb=Zn.exports;const db=_t(fb),bs={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},{useSyncExternalStoreWithSelector:hb}=db;function ys(e,t=e.getState,r){const n=hb(e.subscribe,e.getState,e.getServerState||e.getState,t,r);return d.useDebugValue(n),n}const ms=e=>{var t;((t=bs)==null?void 0:t.MODE)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const r=typeof e=="function"?ob(e):e,n=(a,i)=>ys(r,a,i);return Object.assign(n,r),n},pb=e=>e?ms(e):ms;var xs=e=>{var t;return((t=bs)==null?void 0:t.MODE)!=="production"&&console.warn("[DEPRECATED] Default export is deprecated. Instead use `import { create } from 'zustand'`."),pb(e)};const vb={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};function Ss(){var e;((e=vb)==null?void 0:e.MODE)!=="production"&&console.warn("[DEPRECATED] `context` will be removed in a future version. Instead use `import { createStore, useStore } from 'zustand'`. See: https://github.com/pmndrs/zustand/discussions/1180.");const t=d.createContext(void 0);return{Provider:({createStore:i,children:o})=>{const s=d.useRef();return s.current||(s.current=i()),d.createElement(t.Provider,{value:s.current},o)},useStore:(i,o)=>{const s=d.useContext(t);if(!s)throw new Error("Seems like you have not used zustand provider as an ancestor.");return ys(s,i,o)},useStoreApi:()=>{const i=d.useContext(t);if(!i)throw new Error("Seems like you have not used zustand provider as an ancestor.");return d.useMemo(()=>({...i}),[i])}}}const ws=(e,t)=>(...r)=>Object.assign({},e,t(...r));var gb=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(a){e.addRange(a)}),t&&t.focus()}},bb=gb,Es={"text/plain":"Text","text/html":"Url",default:"Text"},yb="Copy to clipboard: #{key}, Enter";function mb(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function xb(e,t){var r,n,a,i,o,s,c=!1;t||(t={}),r=t.debug||!1;try{a=bb(),i=document.createRange(),o=document.getSelection(),s=document.createElement("span"),s.textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",function(h){if(h.stopPropagation(),t.format)if(h.preventDefault(),typeof h.clipboardData>"u"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var l=Es[t.format]||Es.default;window.clipboardData.setData(l,e)}else h.clipboardData.clearData(),h.clipboardData.setData(t.format,e);t.onCopy&&(h.preventDefault(),t.onCopy(h.clipboardData))}),document.body.appendChild(s),i.selectNodeContents(s),o.addRange(i);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");c=!0}catch(h){r&&console.error("unable to copy using execCommand: ",h),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(l){r&&console.error("unable to copy using clipboardData: ",l),r&&console.error("falling back to prompt"),n=mb("message"in t?t.message:yb),window.prompt(n,e)}}finally{o&&(typeof o.removeRange=="function"?o.removeRange(i):o.removeAllRanges()),s&&document.body.removeChild(s),a()}return c}var Sb=xb;const _s=_t(Sb);function na(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ie(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable}))),n.forEach(function(a){na(e,a,r[a])})}return e}function wb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r}function Sr(e,t){return t=t??{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):wb(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function aa(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Eb(e){if(Array.isArray(e))return aa(e)}function Cs(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _b(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function $s(e,t){if(e){if(typeof e=="string")return aa(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return aa(e,t)}}function it(e){return Eb(e)||Cs(e)||$s(e)||_b()}function Cb(e){if(Array.isArray(e))return e}function $b(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Me(e,t){return Cb(e)||Cs(e)||$s(e,t)||$b()}var ia={scheme:"Light Theme",author:"mac gainor (https://github.com/mac-s-g)",base00:"rgba(0, 0, 0, 0)",base01:"rgb(245, 245, 245)",base02:"rgb(235, 235, 235)",base03:"#93a1a1",base04:"rgba(0, 0, 0, 0.3)",base05:"#586e75",base06:"#073642",base07:"#002b36",base08:"#d33682",base09:"#cb4b16",base0A:"#dc322f",base0B:"#859900",base0C:"#6c71c4",base0D:"#586e75",base0E:"#2aa198",base0F:"#268bd2"},Ts={scheme:"Dark Theme",author:"Chris Kempson (http://chriskempson.com)",base00:"#181818",base01:"#282828",base02:"#383838",base03:"#585858",base04:"#b8b8b8",base05:"#d8d8d8",base06:"#e8e8e8",base07:"#f8f8f8",base08:"#ab4642",base09:"#dc9656",base0A:"#f7ca88",base0B:"#a1b56c",base0C:"#86c1b9",base0D:"#7cafc2",base0E:"#ba8baf",base0F:"#a16946"},Os=function(){return null};Os.when=function(){return!1};var oa,sa,la,ua,ca,fa,da,ha,pa,va,ga,ba,ya,ma,xa,Tb=function(e){return xs(ws({enableClipboard:(oa=e.enableClipboard)!==null&&oa!==void 0?oa:!0,indentWidth:(sa=e.indentWidth)!==null&&sa!==void 0?sa:3,groupArraysAfterLength:(la=e.groupArraysAfterLength)!==null&&la!==void 0?la:100,collapseStringsAfterLength:e.collapseStringsAfterLength===!1?Number.MAX_VALUE:(ua=e.collapseStringsAfterLength)!==null&&ua!==void 0?ua:50,maxDisplayLength:(ca=e.maxDisplayLength)!==null&&ca!==void 0?ca:30,rootName:(fa=e.rootName)!==null&&fa!==void 0?fa:"root",onChange:(da=e.onChange)!==null&&da!==void 0?da:function(){},onCopy:(ha=e.onCopy)!==null&&ha!==void 0?ha:void 0,keyRenderer:(pa=e.keyRenderer)!==null&&pa!==void 0?pa:Os,editable:(va=e.editable)!==null&&va!==void 0?va:!1,defaultInspectDepth:(ga=e.defaultInspectDepth)!==null&&ga!==void 0?ga:5,objectSortKeys:(ba=e.objectSortKeys)!==null&&ba!==void 0?ba:!1,quotesOnKeys:(ya=e.quotesOnKeys)!==null&&ya!==void 0?ya:!0,displayDataTypes:(ma=e.displayDataTypes)!==null&&ma!==void 0?ma:!0,inspectCache:{},hoverPath:null,colorspace:ia,value:e.value,displayObjectSize:(xa=e.displayObjectSize)!==null&&xa!==void 0?xa:!0},function(t,r){return{getInspectCache:function(n,a){var i=a!==void 0?n.join(".")+"[".concat(a,"]nt"):n.join(".");return r().inspectCache[i]},setInspectCache:function(n,a,i){var o=i!==void 0?n.join(".")+"[".concat(i,"]nt"):n.join(".");t(function(s){return{inspectCache:Sr(ie({},s.inspectCache),na({},o,typeof a=="function"?a(s.inspectCache[o]):a))}})},setHover:function(n,a){t({hoverPath:n?{path:n,nestedIndex:a}:null})}}}))},Sa=Ss(),J=Sa.useStore,As=Sa.useStoreApi,Ob=Sa.Provider,wa=function(){return J(function(e){return e.colorspace.base07})};function ot(e,t){return t!=null&&typeof Symbol<"u"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function Ab(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.timeout,r=t===void 0?2e3:t,n=Me(d.useState(!1),2),a=n[0],i=n[1],o=d.useRef(null),s=d.useCallback(function(l){var f=o.current;f&&window.clearTimeout(f),o.current=window.setTimeout(function(){return i(!1)},r),i(l)},[r]),c=J(function(l){return l.onCopy}),u=d.useCallback(function(l,f){if(typeof c=="function")try{var p=c(l,f);ot(p,Promise)?p.then(function(){s(!0)}).catch(function(g){console.error("error when copy ".concat(l.length===0?"src":"src[".concat(l.join(".")),"]"),g)}):s(!0)}catch(g){console.error("error when copy ".concat(l.length===0?"src":"src[".concat(l.join(".")),"]"),g)}else{var v=JSON.stringify(typeof f=="function"?f.toString():f,null," ");"clipboard"in navigator?navigator.clipboard.writeText(v).then(function(){return s(!0)}).catch(function(){return _s(v)}):_s(v)}},[s,c]),h=d.useCallback(function(){i(!1),o.current&&clearTimeout(o.current)},[]);return{copy:u,reset:h,copied:a}}var Pb=function(e,t,r){if(e===null||r===null||typeof e!="object"||typeof r!="object")return!1;if(Object.is(e,r)&&t.length!==0)return"";for(var n=[],a=it(t),i=e;i!==r||a.length!==0;){if(typeof i!="object"||i===null)return!1;if(Object.is(i,r))return n.reduce(function(s,c,u){return typeof c=="number"?s+"[".concat(c,"]"):s+"".concat(u===0?"":".").concat(c)},"");var o=a.shift();n.push(o),i=i[o]}return!1};function wr(e){return e===null?0:Array.isArray(e)?e.length:ot(e,Map)||ot(e,Set)?e.size:ot(e,Date)?1:typeof e=="object"?Object.keys(e).length:typeof e=="string"?e.length:1}function Mb(e,t){for(var r=[],n=0;n<e.length;)r.push(e.slice(n,n+t)),n+=t;return r}function Ea(e,t){var r=J(function(n){return n.value});return d.useMemo(function(){return Pb(r,e,t)},[e,t,r])}function Ib(e,t,r){var n=e.length,a=Ea(e,t),i=J(function(f){return f.getInspectCache}),o=J(function(f){return f.setInspectCache}),s=J(function(f){return f.defaultInspectDepth});d.useEffect(function(){var f=i(e,r);if(f===void 0)if(r!==void 0)o(e,!1,r);else{var p=a?!1:n<s;o(e,p)}},[s,n,i,a,r,e,o]);var c=Me(d.useState(function(){var f=i(e,r);return f!==void 0?f:r!==void 0||a?!1:n<s}),2),u=c[0],h=c[1],l=d.useCallback(function(f){h(function(p){var v=typeof f=="boolean"?f:f(p);return o(e,v,r),v})},[r,e,o]);return[u,l]}function Fb(e){"@swc/helpers - typeof";return e&&e.constructor===Symbol?"symbol":typeof e}var st=function(e){return m.jsx(j.Box,Sr(ie({component:"div"},e),{sx:ie({display:"inline-block"},e.sx)}))},Ps=function(e){var t=e.dataType,r=e.enable,n=r===void 0?!0:r;return n?m.jsx(st,{className:"data-type-label",sx:{mx:.5,fontSize:"0.7rem",opacity:.8,userSelect:"none"},children:t}):null};function tt(e,t,r){var n,a=(n=r.displayTypeLabel)!==null&&n!==void 0?n:!0,i=d.memo(t),o=function(u){var h=J(function(f){return f.displayDataTypes}),l=J(function(f){return f.colorspace[r.colorKey]});return m.jsxs(st,{sx:{color:l},children:[a&&h&&m.jsx(Ps,{dataType:e}),m.jsx(st,{className:"".concat(e,"-value"),children:m.jsx(i,{value:u.value})})]})};if(o.displayName="easy-".concat(e,"-type"),!r.fromString)return{Component:o};var s=r.fromString,c=function(u){var h=u.value,l=u.setValue,f=J(function(p){return p.colorspace[r.colorKey]});return m.jsx(j.InputBase,{value:h,onChange:d.useCallback(function(p){var v=s(p.target.value);l(v)},[l]),size:"small",multiline:!0,sx:{color:f,padding:.5,borderStyle:"solid",borderColor:"black",borderWidth:1,fontSize:"0.8rem",fontFamily:"monospace",display:"inline-flex"}})};return c.displayName="easy-".concat(e,"-type-editor"),{Component:o,Editor:c}}var kb=function(e){var t=e.toString(),r=!0,n=t.indexOf(")"),a=t.indexOf("=>");return a!==-1&&a>n&&(r=!1),r?t.substring(t.indexOf("{",n)+1,t.lastIndexOf("}")):t.substring(t.indexOf("=>")+2)},jb=function(e){var t=e.toString(),r=t.indexOf("function")!==-1;return r?t.substring(8,t.indexOf("{")).trim():t.substring(0,t.indexOf("=>")+2).trim()},Lb="{",Db="}",Nb=function(e){return m.jsxs(j.NoSsr,{children:[m.jsx(Ps,{dataType:"function"}),m.jsxs(j.Box,{component:"span",className:"data-function-start",sx:{letterSpacing:.5},children:[jb(e.value)," ",Lb]})]})},Bb=function(){return m.jsx(j.NoSsr,{children:m.jsx(j.Box,{component:"span",className:"data-function-end",children:Db})})},Hb=function(e){var t=J(function(r){return r.colorspace.base05});return m.jsx(j.NoSsr,{children:m.jsx(j.Box,{className:"data-function",sx:{display:e.inspect?"block":"inline-block",pl:e.inspect?2:0,color:t},children:e.inspect?kb(e.value):m.jsx(j.Box,{component:"span",className:"data-function-body",onClick:function(){return e.setInspect(!0)},sx:{"&:hover":{cursor:"pointer"},padding:.5},children:"…"})})})};function Gb(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function Vb(e,t){if(e==null)return{};var r=Gb(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var mt=function(e){var t=e.d,r=Vb(e,["d"]);return m.jsx(j.SvgIcon,Sr(ie({},r),{children:m.jsx("path",{d:t})}))},Ub="M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z",zb="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",Wb="M 12 2 C 10.615 1.998 9.214625 2.2867656 7.890625 2.8847656 L 8.9003906 4.6328125 C 9.9043906 4.2098125 10.957 3.998 12 4 C 15.080783 4 17.738521 5.7633175 19.074219 8.3222656 L 17.125 9 L 21.25 11 L 22.875 7 L 20.998047 7.6523438 C 19.377701 4.3110398 15.95585 2 12 2 z M 6.5097656 4.4882812 L 2.2324219 5.0820312 L 3.734375 6.3808594 C 1.6515335 9.4550558 1.3615962 13.574578 3.3398438 17 C 4.0308437 18.201 4.9801562 19.268234 6.1601562 20.115234 L 7.1699219 18.367188 C 6.3019219 17.710187 5.5922656 16.904 5.0722656 16 C 3.5320014 13.332354 3.729203 10.148679 5.2773438 7.7128906 L 6.8398438 9.0625 L 6.5097656 4.4882812 z M 19.929688 13 C 19.794687 14.08 19.450734 15.098 18.927734 16 C 17.386985 18.668487 14.531361 20.090637 11.646484 19.966797 L 12.035156 17.9375 L 8.2402344 20.511719 L 10.892578 23.917969 L 11.265625 21.966797 C 14.968963 22.233766 18.681899 20.426323 20.660156 17 C 21.355156 15.801 21.805219 14.445 21.949219 13 L 19.929688 13 z",Rb="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",Kb="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",qb="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z",Yb="M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z",Ms=function(e){return m.jsx(mt,ie({d:Ub},e))},Xb=function(e){return m.jsx(mt,ie({d:zb},e))},Jb=function(e){return m.jsx(mt,ie({d:Wb},e))},Zb=function(e){return m.jsx(mt,ie({d:Rb},e))},Qb=function(e){return m.jsx(mt,ie({d:Kb},e))},ey=function(e){return m.jsx(mt,ie({d:qb},e))},ty=function(e){return m.jsx(mt,ie({d:Yb},e))},ry="{",ny="[",ay="}",iy="]";function Is(e){var t=wr(e),r="";return(ot(e,Map)||ot(e,Set))&&(r=e[Symbol.toStringTag]),Object.prototype.hasOwnProperty.call(e,Symbol.toStringTag)&&(r=e[Symbol.toStringTag]),"".concat(t," Items").concat(r?" (".concat(r,")"):"")}var oy=function(e){var t=J(function(c){return c.colorspace.base04}),r=wa(),n=d.useMemo(function(){return Array.isArray(e.value)},[e.value]),a=d.useMemo(function(){return wr(e.value)===0},[e.value]),i=d.useMemo(function(){return Is(e.value)},[e.inspect,e.value]),o=J(function(c){return c.displayObjectSize}),s=Ea(e.path,e.value);return m.jsxs(j.Box,{component:"span",className:"data-object-start",sx:{letterSpacing:.5},children:[n?ny:ry,o&&e.inspect&&!a&&m.jsx(j.Box,{component:"span",sx:{pl:.5,fontStyle:"italic",color:t,userSelect:"none"},children:i}),s&&!e.inspect?m.jsxs(m.Fragment,{children:[m.jsx(Jb,{sx:{fontSize:12,color:r,mx:.5}}),s]}):null]})},sy=function(e){var t=J(function(o){return o.colorspace.base04}),r=d.useMemo(function(){return Array.isArray(e.value)},[e.value]),n=J(function(o){return o.displayObjectSize}),a=d.useMemo(function(){return wr(e.value)===0},[e.value]),i=d.useMemo(function(){return Is(e.value)},[e.inspect,e.value]);return m.jsxs(j.Box,{component:"span",className:"data-object-end",children:[r?iy:ay,n&&(a||!e.inspect)?m.jsx(j.Box,{component:"span",sx:{pl:.5,fontStyle:"italic",color:t,userSelect:"none"},children:i}):null]})};function ly(e){return typeof(e==null?void 0:e[Symbol.iterator])=="function"}var uy=function(e){var t=wa(),r=J(function(v){return v.colorspace.base02}),n=J(function(v){return v.groupArraysAfterLength}),a=Ea(e.path,e.value),i=Me(d.useState(J(function(v){return v.maxDisplayLength})),2),o=i[0],s=i[1],c=J(function(v){return v.objectSortKeys}),u=d.useMemo(function(){if(!e.inspect)return null;var v=e.value,g=ly(v);if(g&&!Array.isArray(v)){var y=[];if(ot(v,Map)){var x=!0,C=!1,_=void 0;try{for(var S=v[Symbol.iterator](),b;!(x=(b=S.next()).done);x=!0){var T=b.value,k=Me(T,2),W=k[0],q=k[1],ge="".concat(W);y.push(m.jsx(Ft,{path:it(e.path).concat([ge]),value:q,editable:!1},ge))}}catch(M){C=!0,_=M}finally{try{!x&&S.return!=null&&S.return()}finally{if(C)throw _}}}else{var ae=0,fe=!0,xe=!1,be=void 0;try{for(var _e=v[Symbol.iterator](),oe;!(fe=(oe=_e.next()).done);fe=!0){var ye=oe.value;y.push(m.jsx(Ft,{path:it(e.path).concat(["iterator:".concat(ae)]),value:ye,nestedIndex:ae,editable:!1},ae)),ae++}}catch(M){xe=!0,be=M}finally{try{!fe&&_e.return!=null&&_e.return()}finally{if(xe)throw be}}}return y}if(Array.isArray(v)){if(v.length<=n){var Oe=v.slice(0,o).map(function(M,D){var N=it(e.path).concat([D]);return m.jsx(Ft,{path:N,value:M},D)});if(v.length>o){var Ae=v.length-o;Oe.push(m.jsxs(st,{sx:{cursor:"pointer",lineHeight:1.5,color:t,letterSpacing:.5,opacity:.8,userSelect:"none"},onClick:function(){return s(function(M){return M*2})},children:["hidden ",Ae," items…"]},"last"))}return Oe}var $=Mb(v,n);return $.map(function(M,D){var N=it(e.path);return m.jsx(Ft,{path:N,value:M,nestedIndex:D},D)})}var A=Object.entries(v);c&&(A=c===!0?A.sort(function(M,D){var N=Me(M,1),H=N[0],P=Me(D,1),R=P[0];return H.localeCompare(R)}):A.sort(function(M,D){var N=Me(M,1),H=N[0],P=Me(D,1),R=P[0];return c(H,R)}));var U=A.slice(0,o).map(function(M){var D=Me(M,2),N=D[0],H=D[1],P=it(e.path).concat([N]);return m.jsx(Ft,{path:P,value:H},N)});if(A.length>o){var G=A.length-o;U.push(m.jsxs(st,{sx:{cursor:"pointer",lineHeight:1.5,color:t,letterSpacing:.5,opacity:.8,userSelect:"none"},onClick:function(){return s(function(M){return M*2})},children:["hidden ",G," items…"]},"last"))}return U},[e.inspect,e.value,e.path,n,o,t,c]),h=e.inspect?.6:0,l=J(function(v){return v.indentWidth}),f=e.inspect?l-h:l,p=d.useMemo(function(){return wr(e.value)===0},[e.value]);return p?null:m.jsx(j.Box,{className:"data-object",sx:{display:e.inspect?"block":"inline-block",pl:e.inspect?f-.6:0,marginLeft:h,color:t,borderLeft:e.inspect?"1px solid ".concat(r):"none"},children:e.inspect?u:a?null:m.jsx(j.Box,{component:"span",className:"data-object-body",onClick:function(){return e.setInspect(!0)},sx:{"&:hover":{cursor:"pointer"},padding:.5,userSelect:"none"},children:"…"})})},cy=function(){return xs(ws({registry:[]},function(e){return{registerTypes:function(t){e(function(r){return{registry:typeof t=="function"?t(r.registry):t}})}}}))},Fs=Ss(),fy=Fs.Provider,ks=Fs.useStore,dy={is:function(e){return typeof e=="object"},Component:uy,PreComponent:oy,PostComponent:sy};function hy(e,t,r){var n,a=!0,i=!1,o=void 0;try{for(var s=r[Symbol.iterator](),c;!(a=(c=s.next()).done);a=!0){var u=c.value;if(u.is(e,t)&&(n=u,typeof e=="object"))return u}}catch(h){i=!0,o=h}finally{try{!a&&s.return!=null&&s.return()}finally{if(i)throw o}}if(n===void 0){if(typeof e=="object")return dy;throw new Error("this is not possible")}return n}function py(e,t){var r=ks(function(n){return n.registry});return d.useMemo(function(){return hy(e,t,r)},[e,t,r])}function vy(){var e=function(i){function o(s,c){var u,h;return Object.is(s.value,c.value)&&s.inspect&&c.inspect&&((u=s.path)===null||u===void 0?void 0:u.join("."))===((h=c.path)===null||h===void 0?void 0:h.join("."))}i.Component=d.memo(i.Component,o),i.Editor&&(i.Editor=d.memo(i.Editor,function(c,u){return Object.is(c.value,u.value)})),i.PreComponent&&(i.PreComponent=d.memo(i.PreComponent,o)),i.PostComponent&&(i.PostComponent=d.memo(i.PostComponent,o)),t.push(i)},t=[];e(ie({is:function(a){return typeof a=="boolean"}},tt("bool",function(a){var i=a.value;return m.jsx(m.Fragment,{children:i?"true":"false"})},{colorKey:"base0E",fromString:function(a){return!!a}})));var r={weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"};e(ie({is:function(a){return ot(a,Date)}},tt("date",function(a){var i=a.value;return m.jsx(m.Fragment,{children:i.toLocaleTimeString("en-us",r)})},{colorKey:"base0D"}))),e(ie({is:function(a){return a===null}},tt("null",function(){var a=J(function(i){return i.colorspace.base02});return m.jsx(j.Box,{sx:{fontSize:"0.8rem",backgroundColor:a,fontWeight:"bold",borderRadius:"3px",padding:"0.5px 2px"},children:"NULL"})},{colorKey:"base08",displayTypeLabel:!1}))),e(ie({is:function(a){return a===void 0}},tt("undefined",function(){var a=J(function(i){return i.colorspace.base02});return m.jsx(j.Box,{sx:{fontSize:"0.7rem",backgroundColor:a,borderRadius:"3px",padding:"0.5px 2px"},children:"undefined"})},{colorKey:"base05",displayTypeLabel:!1}))),e(ie({is:function(a){return typeof a=="string"}},tt("string",function(a){var i=Me(d.useState(!1),2),o=i[0],s=i[1],c=J(function(l){return l.collapseStringsAfterLength}),u=o?a.value:a.value.slice(0,c),h=a.value.length>c;return m.jsxs(j.Box,{component:"span",sx:{overflowWrap:"anywhere",cursor:h?"pointer":"inherit"},onClick:function(){h&&s(function(l){return!l})},children:['"',u,h&&!o&&m.jsx(j.Box,{component:"span",sx:{padding:.5},children:"…"}),'"']})},{colorKey:"base09",fromString:function(a){return a}}))),e({is:function(a){return typeof a=="function"},Component:Hb,PreComponent:Nb,PostComponent:Bb});var n=function(a){return a%1===0};return e(ie({is:function(a){return typeof a=="number"&&isNaN(a)}},tt("NaN",function(){var a=J(function(i){return i.colorspace.base02});return m.jsx(j.Box,{sx:{backgroundColor:a,fontSize:"0.8rem",fontWeight:"bold",borderRadius:"3px"},children:"NaN"})},{colorKey:"base08",displayTypeLabel:!1}))),e(ie({is:function(a){return typeof a=="number"&&!n(a)}},tt("float",function(a){var i=a.value;return m.jsx(m.Fragment,{children:i})},{colorKey:"base0B",fromString:function(a){return parseFloat(a)}}))),e(ie({is:function(a){return typeof a=="number"&&n(a)}},tt("int",function(a){var i=a.value;return m.jsx(m.Fragment,{children:i})},{colorKey:"base0F",fromString:function(a){return parseInt(a)}}))),e(ie({is:function(a){return(typeof a>"u"?"undefined":Fb(a))==="bigint"}},tt("bigint",function(a){var i=a.value;return m.jsx(m.Fragment,{children:"".concat(i,"n")})},{colorKey:"base0F",fromString:function(a){return BigInt(a.replace(/\D/g,""))}}))),t}var Xr=function(e){return m.jsx(j.Box,Sr(ie({component:"span"},e),{sx:ie({cursor:"pointer",paddingLeft:"0.7rem"},e.sx)}))},Ft=function(e){var t=e.value,r=e.path,n=e.nestedIndex,a,i=(a=e.editable)!==null&&a!==void 0?a:void 0,o=J(function(P){return P.editable}),s=d.useMemo(function(){return o===!1||i===!1?!1:typeof o=="function"?!!o(r,t):o},[r,i,o,t]),c=Me(d.useState(typeof t=="function"?function(){return t}:t),2),u=c[0],h=c[1],l=r.length,f=r[l-1],p=J(function(P){return P.hoverPath}),v=d.useMemo(function(){return p&&r.every(function(P,R){return P===p.path[R]&&n===p.nestedIndex})},[p,r,n]),g=J(function(P){return P.setHover}),y=J(function(P){return P.value}),x=Me(Ib(r,t,n),2),C=x[0],_=x[1],S=Me(d.useState(!1),2),b=S[0],T=S[1],k=J(function(P){return P.onChange}),W=wa(),q=J(function(P){return P.colorspace.base0C}),ge=py(t,r),ae=ge.Component,fe=ge.PreComponent,xe=ge.PostComponent,be=ge.Editor,_e=J(function(P){return P.quotesOnKeys}),oe=J(function(P){return P.rootName}),ye=y===t,Oe=Number.isInteger(Number(f)),Ae=J(function(P){return P.enableClipboard}),$=Ab(),A=$.copy,U=$.copied,G=d.useMemo(function(){return b?m.jsxs(m.Fragment,{children:[m.jsx(Xr,{children:m.jsx(Zb,{sx:{fontSize:".8rem"},onClick:function(){T(!1),h(t)}})}),m.jsx(Xr,{children:m.jsx(Ms,{sx:{fontSize:".8rem"},onClick:function(){T(!1),k(r,t,u)}})})]}):m.jsxs(m.Fragment,{children:[Ae&&m.jsx(Xr,{onClick:function(P){P.preventDefault();try{A(r,t)}catch(R){console.error(R)}},children:U?m.jsx(Ms,{sx:{fontSize:".8rem"}}):m.jsx(Qb,{sx:{fontSize:".8rem"}})}),be&&s&&m.jsx(Xr,{onClick:function(P){P.preventDefault(),T(!0)},children:m.jsx(ey,{sx:{fontSize:".8rem"}})})]})},[be,U,A,s,b,Ae,k,r,u,t]),M=d.useMemo(function(){return wr(t)===0},[t]),D=!M&&!!(fe&&xe),N=J(function(P){return P.keyRenderer}),H=d.useMemo(function(){return{path:r,inspect:C,setInspect:_,value:t}},[C,r,_,t]);return m.jsxs(j.Box,{className:"data-key-pair","data-testid":"data-key-pair"+r.join("."),sx:{userSelect:"text"},onMouseEnter:d.useCallback(function(){return g(r,n)},[g,r,n]),children:[m.jsxs(st,{component:"span",className:"data-key",sx:{lineHeight:1.5,color:W,letterSpacing:.5,opacity:.8},onClick:d.useCallback(function(P){P.isDefaultPrevented()||M||_(function(R){return!R})},[_]),children:[D?C?m.jsx(ty,{sx:{fontSize:".8rem","&:hover":{cursor:"pointer"}}}):m.jsx(Xb,{sx:{fontSize:".8rem","&:hover":{cursor:"pointer"}}}):null,ye?oe!==!1?_e?m.jsxs(m.Fragment,{children:['"',oe,'"']}):m.jsx(m.Fragment,{children:oe}):null:N.when(H)?m.jsx(N,ie({},H)):n===void 0&&(Oe?m.jsx(j.Box,{component:"span",style:{color:q},children:f}):_e?m.jsxs(m.Fragment,{children:['"',f,'"']}):m.jsx(m.Fragment,{children:f})),ye?oe!==!1?m.jsx(st,{sx:{mr:.5},children:":"}):null:n===void 0&&m.jsx(st,{sx:{mr:.5},children:":"}),fe&&m.jsx(fe,ie({},H)),v&&D&&C&&G]}),b&&s?be&&m.jsx(be,{value:u,setValue:h}):ae?m.jsx(ae,ie({},H)):m.jsx(j.Box,{component:"span",className:"data-value-fallback",children:"fallback: ".concat(t)}),xe&&m.jsx(xe,ie({},H)),v&&D&&!C&&G,v&&!D&&G]})},js="(prefers-color-scheme: dark)";function gy(){var e=Me(d.useState(!1),2),t=e[0],r=e[1];return d.useEffect(function(){var n=function(i){r(i.matches)};r(window.matchMedia(js).matches);var a=window.matchMedia(js);return a.addEventListener("change",n),function(){return a.removeEventListener("change",n)}},[]),t}function Ne(e,t){var r=As();d.useEffect(function(){t!==void 0&&r.setState(na({},e,t))},[e,t,r])}var by=function(e){var t=As();Ne("value",e.value),Ne("editable",e.editable),Ne("indentWidth",e.indentWidth),Ne("onChange",e.onChange),Ne("groupArraysAfterLength",e.groupArraysAfterLength),Ne("keyRenderer",e.keyRenderer),Ne("maxDisplayLength",e.maxDisplayLength),Ne("enableClipboard",e.enableClipboard),Ne("rootName",e.rootName),Ne("displayDataTypes",e.displayDataTypes),Ne("displayObjectSize",e.displayObjectSize),Ne("onCopy",e.onCopy),d.useEffect(function(){e.theme==="light"?t.setState({colorspace:ia}):e.theme==="dark"?t.setState({colorspace:Ts}):typeof e.theme=="object"&&t.setState({colorspace:e.theme})},[t,e.theme]);var r=d.useRef(!0),n=d.useMemo(function(){return vy()},[]),a=ks(function(u){return u.registerTypes});if(r.current){var i,o=it(n);(i=e.valueTypes)===null||i===void 0||i.forEach(function(u){o.push(u)}),a(o),r.current=!1}d.useEffect(function(){var u,h=it(n);(u=e.valueTypes)===null||u===void 0||u.forEach(function(l){h.push(l)}),a(h)},[n,e.valueTypes,a]);var s=J(function(u){return u.value}),c=J(function(u){return u.setHover});return m.jsx(j.Paper,{elevation:0,className:e.className,style:e.style,sx:{fontFamily:"monospace",userSelect:"none",contentVisibility:"auto"},onMouseLeave:d.useCallback(function(){c(null)},[c]),children:m.jsx(Ft,{value:s,path:d.useMemo(function(){return[]},[])})})},yy=function(t){var r=gy(),n,a=d.useMemo(function(){return t.theme==="auto"?r?"light":"dark":(n=t.theme)!==null&&n!==void 0?n:"light"},[r,t.theme]),i=d.useMemo(function(){var s=typeof a=="object"?a.base00:a==="dark"?Ts.base00:ia.base00;return j.createTheme({components:{MuiPaper:{styleOverrides:{root:{backgroundColor:s}}}},palette:{mode:a==="dark"?"dark":"light",background:{default:s}}})},[a]),o=Sr(ie({},t),{theme:a});return m.jsx(j.ThemeProvider,{theme:i,children:m.jsx(fy,{createStore:cy,children:m.jsx(Ob,{createStore:function(){return Tb(t)},children:m.jsx(by,ie({},o))})})})};const my=e=>{const[t,r]=d.useState(e.selectedAreaIndex??0),n=e.themeOverrides?nt.createTheme(us,e.themeOverrides):nt.createTheme(us),a=K.Children.toArray(e.children).length>1,[i,o]=d.useState(e.initialValues),s=h=>{e.onChange&&e.onChange(h),o(h)},{onChange:c,...u}=e;return m.jsxs("div",{css:ve.css`
138
+ */var gs;function ub(){return gs||(gs=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=d,t=ps();function r(h,l){return h===l&&(h!==0||1/h===1/l)||h!==h&&l!==l}var n=typeof Object.is=="function"?Object.is:r,a=t.useSyncExternalStore,i=e.useRef,o=e.useEffect,s=e.useMemo,c=e.useDebugValue;function u(h,l,f,p,v){var g=i(null),y;g.current===null?(y={hasValue:!1,value:null},g.current=y):y=g.current;var x=s(function(){var b=!1,T,j,W=function(fe){if(!b){b=!0,T=fe;var xe=p(fe);if(v!==void 0&&y.hasValue){var be=y.value;if(v(be,xe))return j=be,be}return j=xe,xe}var _e=T,oe=j;if(n(_e,fe))return oe;var ye=p(fe);return v!==void 0&&v(oe,ye)?oe:(T=fe,j=ye,ye)},q=f===void 0?null:f,ge=function(){return W(l())},ae=q===null?void 0:function(){return W(q())};return[ge,ae]},[l,f,p,v]),C=x[0],_=x[1],S=a(h,C,_);return o(function(){y.hasValue=!0,y.value=S},[S]),c(S),S}na.useSyncExternalStoreWithSelector=u,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),na}process.env.NODE_ENV==="production"?Qn.exports=lb():Qn.exports=ub();var cb=Qn.exports;const fb=_t(cb),bs={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},{useSyncExternalStoreWithSelector:db}=fb;function ys(e,t=e.getState,r){const n=db(e.subscribe,e.getState,e.getServerState||e.getState,t,r);return d.useDebugValue(n),n}const ms=e=>{var t;((t=bs)==null?void 0:t.MODE)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const r=typeof e=="function"?ib(e):e,n=(a,i)=>ys(r,a,i);return Object.assign(n,r),n},hb=e=>e?ms(e):ms;var xs=e=>{var t;return((t=bs)==null?void 0:t.MODE)!=="production"&&console.warn("[DEPRECATED] Default export is deprecated. Instead use `import { create } from 'zustand'`."),hb(e)};const pb={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};function Ss(){var e;((e=pb)==null?void 0:e.MODE)!=="production"&&console.warn("[DEPRECATED] `context` will be removed in a future version. Instead use `import { createStore, useStore } from 'zustand'`. See: https://github.com/pmndrs/zustand/discussions/1180.");const t=d.createContext(void 0);return{Provider:({createStore:i,children:o})=>{const s=d.useRef();return s.current||(s.current=i()),d.createElement(t.Provider,{value:s.current},o)},useStore:(i,o)=>{const s=d.useContext(t);if(!s)throw new Error("Seems like you have not used zustand provider as an ancestor.");return ys(s,i,o)},useStoreApi:()=>{const i=d.useContext(t);if(!i)throw new Error("Seems like you have not used zustand provider as an ancestor.");return d.useMemo(()=>({...i}),[i])}}}const ws=(e,t)=>(...r)=>Object.assign({},e,t(...r));var vb=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(a){e.addRange(a)}),t&&t.focus()}},gb=vb,Es={"text/plain":"Text","text/html":"Url",default:"Text"},bb="Copy to clipboard: #{key}, Enter";function yb(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function mb(e,t){var r,n,a,i,o,s,c=!1;t||(t={}),r=t.debug||!1;try{a=gb(),i=document.createRange(),o=document.getSelection(),s=document.createElement("span"),s.textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",function(h){if(h.stopPropagation(),t.format)if(h.preventDefault(),typeof h.clipboardData>"u"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var l=Es[t.format]||Es.default;window.clipboardData.setData(l,e)}else h.clipboardData.clearData(),h.clipboardData.setData(t.format,e);t.onCopy&&(h.preventDefault(),t.onCopy(h.clipboardData))}),document.body.appendChild(s),i.selectNodeContents(s),o.addRange(i);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");c=!0}catch(h){r&&console.error("unable to copy using execCommand: ",h),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(l){r&&console.error("unable to copy using clipboardData: ",l),r&&console.error("falling back to prompt"),n=yb("message"in t?t.message:bb),window.prompt(n,e)}}finally{o&&(typeof o.removeRange=="function"?o.removeRange(i):o.removeAllRanges()),s&&document.body.removeChild(s),a()}return c}var xb=mb;const _s=_t(xb);function aa(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ie(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable}))),n.forEach(function(a){aa(e,a,r[a])})}return e}function Sb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r}function Sr(e,t){return t=t??{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Sb(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function ia(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function wb(e){if(Array.isArray(e))return ia(e)}function Cs(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Eb(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function $s(e,t){if(e){if(typeof e=="string")return ia(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ia(e,t)}}function it(e){return wb(e)||Cs(e)||$s(e)||Eb()}function _b(e){if(Array.isArray(e))return e}function Cb(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Me(e,t){return _b(e)||Cs(e)||$s(e,t)||Cb()}var oa={scheme:"Light Theme",author:"mac gainor (https://github.com/mac-s-g)",base00:"rgba(0, 0, 0, 0)",base01:"rgb(245, 245, 245)",base02:"rgb(235, 235, 235)",base03:"#93a1a1",base04:"rgba(0, 0, 0, 0.3)",base05:"#586e75",base06:"#073642",base07:"#002b36",base08:"#d33682",base09:"#cb4b16",base0A:"#dc322f",base0B:"#859900",base0C:"#6c71c4",base0D:"#586e75",base0E:"#2aa198",base0F:"#268bd2"},Ts={scheme:"Dark Theme",author:"Chris Kempson (http://chriskempson.com)",base00:"#181818",base01:"#282828",base02:"#383838",base03:"#585858",base04:"#b8b8b8",base05:"#d8d8d8",base06:"#e8e8e8",base07:"#f8f8f8",base08:"#ab4642",base09:"#dc9656",base0A:"#f7ca88",base0B:"#a1b56c",base0C:"#86c1b9",base0D:"#7cafc2",base0E:"#ba8baf",base0F:"#a16946"},Os=function(){return null};Os.when=function(){return!1};var sa,la,ua,ca,fa,da,ha,pa,va,ga,ba,ya,ma,xa,Sa,$b=function(e){return xs(ws({enableClipboard:(sa=e.enableClipboard)!==null&&sa!==void 0?sa:!0,indentWidth:(la=e.indentWidth)!==null&&la!==void 0?la:3,groupArraysAfterLength:(ua=e.groupArraysAfterLength)!==null&&ua!==void 0?ua:100,collapseStringsAfterLength:e.collapseStringsAfterLength===!1?Number.MAX_VALUE:(ca=e.collapseStringsAfterLength)!==null&&ca!==void 0?ca:50,maxDisplayLength:(fa=e.maxDisplayLength)!==null&&fa!==void 0?fa:30,rootName:(da=e.rootName)!==null&&da!==void 0?da:"root",onChange:(ha=e.onChange)!==null&&ha!==void 0?ha:function(){},onCopy:(pa=e.onCopy)!==null&&pa!==void 0?pa:void 0,keyRenderer:(va=e.keyRenderer)!==null&&va!==void 0?va:Os,editable:(ga=e.editable)!==null&&ga!==void 0?ga:!1,defaultInspectDepth:(ba=e.defaultInspectDepth)!==null&&ba!==void 0?ba:5,objectSortKeys:(ya=e.objectSortKeys)!==null&&ya!==void 0?ya:!1,quotesOnKeys:(ma=e.quotesOnKeys)!==null&&ma!==void 0?ma:!0,displayDataTypes:(xa=e.displayDataTypes)!==null&&xa!==void 0?xa:!0,inspectCache:{},hoverPath:null,colorspace:oa,value:e.value,displayObjectSize:(Sa=e.displayObjectSize)!==null&&Sa!==void 0?Sa:!0},function(t,r){return{getInspectCache:function(n,a){var i=a!==void 0?n.join(".")+"[".concat(a,"]nt"):n.join(".");return r().inspectCache[i]},setInspectCache:function(n,a,i){var o=i!==void 0?n.join(".")+"[".concat(i,"]nt"):n.join(".");t(function(s){return{inspectCache:Sr(ie({},s.inspectCache),aa({},o,typeof a=="function"?a(s.inspectCache[o]):a))}})},setHover:function(n,a){t({hoverPath:n?{path:n,nestedIndex:a}:null})}}}))},wa=Ss(),J=wa.useStore,As=wa.useStoreApi,Tb=wa.Provider,Ea=function(){return J(function(e){return e.colorspace.base07})};function ot(e,t){return t!=null&&typeof Symbol<"u"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function Ob(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.timeout,r=t===void 0?2e3:t,n=Me(d.useState(!1),2),a=n[0],i=n[1],o=d.useRef(null),s=d.useCallback(function(l){var f=o.current;f&&window.clearTimeout(f),o.current=window.setTimeout(function(){return i(!1)},r),i(l)},[r]),c=J(function(l){return l.onCopy}),u=d.useCallback(function(l,f){if(typeof c=="function")try{var p=c(l,f);ot(p,Promise)?p.then(function(){s(!0)}).catch(function(g){console.error("error when copy ".concat(l.length===0?"src":"src[".concat(l.join(".")),"]"),g)}):s(!0)}catch(g){console.error("error when copy ".concat(l.length===0?"src":"src[".concat(l.join(".")),"]"),g)}else{var v=JSON.stringify(typeof f=="function"?f.toString():f,null," ");"clipboard"in navigator?navigator.clipboard.writeText(v).then(function(){return s(!0)}).catch(function(){return _s(v)}):_s(v)}},[s,c]),h=d.useCallback(function(){i(!1),o.current&&clearTimeout(o.current)},[]);return{copy:u,reset:h,copied:a}}var Ab=function(e,t,r){if(e===null||r===null||typeof e!="object"||typeof r!="object")return!1;if(Object.is(e,r)&&t.length!==0)return"";for(var n=[],a=it(t),i=e;i!==r||a.length!==0;){if(typeof i!="object"||i===null)return!1;if(Object.is(i,r))return n.reduce(function(s,c,u){return typeof c=="number"?s+"[".concat(c,"]"):s+"".concat(u===0?"":".").concat(c)},"");var o=a.shift();n.push(o),i=i[o]}return!1};function wr(e){return e===null?0:Array.isArray(e)?e.length:ot(e,Map)||ot(e,Set)?e.size:ot(e,Date)?1:typeof e=="object"?Object.keys(e).length:typeof e=="string"?e.length:1}function Pb(e,t){for(var r=[],n=0;n<e.length;)r.push(e.slice(n,n+t)),n+=t;return r}function _a(e,t){var r=J(function(n){return n.value});return d.useMemo(function(){return Ab(r,e,t)},[e,t,r])}function Mb(e,t,r){var n=e.length,a=_a(e,t),i=J(function(f){return f.getInspectCache}),o=J(function(f){return f.setInspectCache}),s=J(function(f){return f.defaultInspectDepth});d.useEffect(function(){var f=i(e,r);if(f===void 0)if(r!==void 0)o(e,!1,r);else{var p=a?!1:n<s;o(e,p)}},[s,n,i,a,r,e,o]);var c=Me(d.useState(function(){var f=i(e,r);return f!==void 0?f:r!==void 0||a?!1:n<s}),2),u=c[0],h=c[1],l=d.useCallback(function(f){h(function(p){var v=typeof f=="boolean"?f:f(p);return o(e,v,r),v})},[r,e,o]);return[u,l]}function Ib(e){"@swc/helpers - typeof";return e&&e.constructor===Symbol?"symbol":typeof e}var st=function(e){return m.jsx(F.Box,Sr(ie({component:"div"},e),{sx:ie({display:"inline-block"},e.sx)}))},Ps=function(e){var t=e.dataType,r=e.enable,n=r===void 0?!0:r;return n?m.jsx(st,{className:"data-type-label",sx:{mx:.5,fontSize:"0.7rem",opacity:.8,userSelect:"none"},children:t}):null};function tt(e,t,r){var n,a=(n=r.displayTypeLabel)!==null&&n!==void 0?n:!0,i=d.memo(t),o=function(u){var h=J(function(f){return f.displayDataTypes}),l=J(function(f){return f.colorspace[r.colorKey]});return m.jsxs(st,{sx:{color:l},children:[a&&h&&m.jsx(Ps,{dataType:e}),m.jsx(st,{className:"".concat(e,"-value"),children:m.jsx(i,{value:u.value})})]})};if(o.displayName="easy-".concat(e,"-type"),!r.fromString)return{Component:o};var s=r.fromString,c=function(u){var h=u.value,l=u.setValue,f=J(function(p){return p.colorspace[r.colorKey]});return m.jsx(F.InputBase,{value:h,onChange:d.useCallback(function(p){var v=s(p.target.value);l(v)},[l]),size:"small",multiline:!0,sx:{color:f,padding:.5,borderStyle:"solid",borderColor:"black",borderWidth:1,fontSize:"0.8rem",fontFamily:"monospace",display:"inline-flex"}})};return c.displayName="easy-".concat(e,"-type-editor"),{Component:o,Editor:c}}var Fb=function(e){var t=e.toString(),r=!0,n=t.indexOf(")"),a=t.indexOf("=>");return a!==-1&&a>n&&(r=!1),r?t.substring(t.indexOf("{",n)+1,t.lastIndexOf("}")):t.substring(t.indexOf("=>")+2)},kb=function(e){var t=e.toString(),r=t.indexOf("function")!==-1;return r?t.substring(8,t.indexOf("{")).trim():t.substring(0,t.indexOf("=>")+2).trim()},jb="{",Lb="}",Db=function(e){return m.jsxs(F.NoSsr,{children:[m.jsx(Ps,{dataType:"function"}),m.jsxs(F.Box,{component:"span",className:"data-function-start",sx:{letterSpacing:.5},children:[kb(e.value)," ",jb]})]})},Nb=function(){return m.jsx(F.NoSsr,{children:m.jsx(F.Box,{component:"span",className:"data-function-end",children:Lb})})},Bb=function(e){var t=J(function(r){return r.colorspace.base05});return m.jsx(F.NoSsr,{children:m.jsx(F.Box,{className:"data-function",sx:{display:e.inspect?"block":"inline-block",pl:e.inspect?2:0,color:t},children:e.inspect?Fb(e.value):m.jsx(F.Box,{component:"span",className:"data-function-body",onClick:function(){return e.setInspect(!0)},sx:{"&:hover":{cursor:"pointer"},padding:.5},children:"…"})})})};function Hb(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function Gb(e,t){if(e==null)return{};var r=Hb(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var mt=function(e){var t=e.d,r=Gb(e,["d"]);return m.jsx(F.SvgIcon,Sr(ie({},r),{children:m.jsx("path",{d:t})}))},Vb="M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z",Ub="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",zb="M 12 2 C 10.615 1.998 9.214625 2.2867656 7.890625 2.8847656 L 8.9003906 4.6328125 C 9.9043906 4.2098125 10.957 3.998 12 4 C 15.080783 4 17.738521 5.7633175 19.074219 8.3222656 L 17.125 9 L 21.25 11 L 22.875 7 L 20.998047 7.6523438 C 19.377701 4.3110398 15.95585 2 12 2 z M 6.5097656 4.4882812 L 2.2324219 5.0820312 L 3.734375 6.3808594 C 1.6515335 9.4550558 1.3615962 13.574578 3.3398438 17 C 4.0308437 18.201 4.9801562 19.268234 6.1601562 20.115234 L 7.1699219 18.367188 C 6.3019219 17.710187 5.5922656 16.904 5.0722656 16 C 3.5320014 13.332354 3.729203 10.148679 5.2773438 7.7128906 L 6.8398438 9.0625 L 6.5097656 4.4882812 z M 19.929688 13 C 19.794687 14.08 19.450734 15.098 18.927734 16 C 17.386985 18.668487 14.531361 20.090637 11.646484 19.966797 L 12.035156 17.9375 L 8.2402344 20.511719 L 10.892578 23.917969 L 11.265625 21.966797 C 14.968963 22.233766 18.681899 20.426323 20.660156 17 C 21.355156 15.801 21.805219 14.445 21.949219 13 L 19.929688 13 z",Wb="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",Rb="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",Kb="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z",qb="M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z",Ms=function(e){return m.jsx(mt,ie({d:Vb},e))},Yb=function(e){return m.jsx(mt,ie({d:Ub},e))},Xb=function(e){return m.jsx(mt,ie({d:zb},e))},Jb=function(e){return m.jsx(mt,ie({d:Wb},e))},Zb=function(e){return m.jsx(mt,ie({d:Rb},e))},Qb=function(e){return m.jsx(mt,ie({d:Kb},e))},ey=function(e){return m.jsx(mt,ie({d:qb},e))},ty="{",ry="[",ny="}",ay="]";function Is(e){var t=wr(e),r="";return(ot(e,Map)||ot(e,Set))&&(r=e[Symbol.toStringTag]),Object.prototype.hasOwnProperty.call(e,Symbol.toStringTag)&&(r=e[Symbol.toStringTag]),"".concat(t," Items").concat(r?" (".concat(r,")"):"")}var iy=function(e){var t=J(function(c){return c.colorspace.base04}),r=Ea(),n=d.useMemo(function(){return Array.isArray(e.value)},[e.value]),a=d.useMemo(function(){return wr(e.value)===0},[e.value]),i=d.useMemo(function(){return Is(e.value)},[e.inspect,e.value]),o=J(function(c){return c.displayObjectSize}),s=_a(e.path,e.value);return m.jsxs(F.Box,{component:"span",className:"data-object-start",sx:{letterSpacing:.5},children:[n?ry:ty,o&&e.inspect&&!a&&m.jsx(F.Box,{component:"span",sx:{pl:.5,fontStyle:"italic",color:t,userSelect:"none"},children:i}),s&&!e.inspect?m.jsxs(m.Fragment,{children:[m.jsx(Xb,{sx:{fontSize:12,color:r,mx:.5}}),s]}):null]})},oy=function(e){var t=J(function(o){return o.colorspace.base04}),r=d.useMemo(function(){return Array.isArray(e.value)},[e.value]),n=J(function(o){return o.displayObjectSize}),a=d.useMemo(function(){return wr(e.value)===0},[e.value]),i=d.useMemo(function(){return Is(e.value)},[e.inspect,e.value]);return m.jsxs(F.Box,{component:"span",className:"data-object-end",children:[r?ay:ny,n&&(a||!e.inspect)?m.jsx(F.Box,{component:"span",sx:{pl:.5,fontStyle:"italic",color:t,userSelect:"none"},children:i}):null]})};function sy(e){return typeof(e==null?void 0:e[Symbol.iterator])=="function"}var ly=function(e){var t=Ea(),r=J(function(v){return v.colorspace.base02}),n=J(function(v){return v.groupArraysAfterLength}),a=_a(e.path,e.value),i=Me(d.useState(J(function(v){return v.maxDisplayLength})),2),o=i[0],s=i[1],c=J(function(v){return v.objectSortKeys}),u=d.useMemo(function(){if(!e.inspect)return null;var v=e.value,g=sy(v);if(g&&!Array.isArray(v)){var y=[];if(ot(v,Map)){var x=!0,C=!1,_=void 0;try{for(var S=v[Symbol.iterator](),b;!(x=(b=S.next()).done);x=!0){var T=b.value,j=Me(T,2),W=j[0],q=j[1],ge="".concat(W);y.push(m.jsx(Ft,{path:it(e.path).concat([ge]),value:q,editable:!1},ge))}}catch(M){C=!0,_=M}finally{try{!x&&S.return!=null&&S.return()}finally{if(C)throw _}}}else{var ae=0,fe=!0,xe=!1,be=void 0;try{for(var _e=v[Symbol.iterator](),oe;!(fe=(oe=_e.next()).done);fe=!0){var ye=oe.value;y.push(m.jsx(Ft,{path:it(e.path).concat(["iterator:".concat(ae)]),value:ye,nestedIndex:ae,editable:!1},ae)),ae++}}catch(M){xe=!0,be=M}finally{try{!fe&&_e.return!=null&&_e.return()}finally{if(xe)throw be}}}return y}if(Array.isArray(v)){if(v.length<=n){var Oe=v.slice(0,o).map(function(M,D){var N=it(e.path).concat([D]);return m.jsx(Ft,{path:N,value:M},D)});if(v.length>o){var Ae=v.length-o;Oe.push(m.jsxs(st,{sx:{cursor:"pointer",lineHeight:1.5,color:t,letterSpacing:.5,opacity:.8,userSelect:"none"},onClick:function(){return s(function(M){return M*2})},children:["hidden ",Ae," items…"]},"last"))}return Oe}var $=Pb(v,n);return $.map(function(M,D){var N=it(e.path);return m.jsx(Ft,{path:N,value:M,nestedIndex:D},D)})}var A=Object.entries(v);c&&(A=c===!0?A.sort(function(M,D){var N=Me(M,1),H=N[0],P=Me(D,1),R=P[0];return H.localeCompare(R)}):A.sort(function(M,D){var N=Me(M,1),H=N[0],P=Me(D,1),R=P[0];return c(H,R)}));var U=A.slice(0,o).map(function(M){var D=Me(M,2),N=D[0],H=D[1],P=it(e.path).concat([N]);return m.jsx(Ft,{path:P,value:H},N)});if(A.length>o){var G=A.length-o;U.push(m.jsxs(st,{sx:{cursor:"pointer",lineHeight:1.5,color:t,letterSpacing:.5,opacity:.8,userSelect:"none"},onClick:function(){return s(function(M){return M*2})},children:["hidden ",G," items…"]},"last"))}return U},[e.inspect,e.value,e.path,n,o,t,c]),h=e.inspect?.6:0,l=J(function(v){return v.indentWidth}),f=e.inspect?l-h:l,p=d.useMemo(function(){return wr(e.value)===0},[e.value]);return p?null:m.jsx(F.Box,{className:"data-object",sx:{display:e.inspect?"block":"inline-block",pl:e.inspect?f-.6:0,marginLeft:h,color:t,borderLeft:e.inspect?"1px solid ".concat(r):"none"},children:e.inspect?u:a?null:m.jsx(F.Box,{component:"span",className:"data-object-body",onClick:function(){return e.setInspect(!0)},sx:{"&:hover":{cursor:"pointer"},padding:.5,userSelect:"none"},children:"…"})})},uy=function(){return xs(ws({registry:[]},function(e){return{registerTypes:function(t){e(function(r){return{registry:typeof t=="function"?t(r.registry):t}})}}}))},Fs=Ss(),cy=Fs.Provider,ks=Fs.useStore,fy={is:function(e){return typeof e=="object"},Component:ly,PreComponent:iy,PostComponent:oy};function dy(e,t,r){var n,a=!0,i=!1,o=void 0;try{for(var s=r[Symbol.iterator](),c;!(a=(c=s.next()).done);a=!0){var u=c.value;if(u.is(e,t)&&(n=u,typeof e=="object"))return u}}catch(h){i=!0,o=h}finally{try{!a&&s.return!=null&&s.return()}finally{if(i)throw o}}if(n===void 0){if(typeof e=="object")return fy;throw new Error("this is not possible")}return n}function hy(e,t){var r=ks(function(n){return n.registry});return d.useMemo(function(){return dy(e,t,r)},[e,t,r])}function py(){var e=function(i){function o(s,c){var u,h;return Object.is(s.value,c.value)&&s.inspect&&c.inspect&&((u=s.path)===null||u===void 0?void 0:u.join("."))===((h=c.path)===null||h===void 0?void 0:h.join("."))}i.Component=d.memo(i.Component,o),i.Editor&&(i.Editor=d.memo(i.Editor,function(c,u){return Object.is(c.value,u.value)})),i.PreComponent&&(i.PreComponent=d.memo(i.PreComponent,o)),i.PostComponent&&(i.PostComponent=d.memo(i.PostComponent,o)),t.push(i)},t=[];e(ie({is:function(a){return typeof a=="boolean"}},tt("bool",function(a){var i=a.value;return m.jsx(m.Fragment,{children:i?"true":"false"})},{colorKey:"base0E",fromString:function(a){return!!a}})));var r={weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"};e(ie({is:function(a){return ot(a,Date)}},tt("date",function(a){var i=a.value;return m.jsx(m.Fragment,{children:i.toLocaleTimeString("en-us",r)})},{colorKey:"base0D"}))),e(ie({is:function(a){return a===null}},tt("null",function(){var a=J(function(i){return i.colorspace.base02});return m.jsx(F.Box,{sx:{fontSize:"0.8rem",backgroundColor:a,fontWeight:"bold",borderRadius:"3px",padding:"0.5px 2px"},children:"NULL"})},{colorKey:"base08",displayTypeLabel:!1}))),e(ie({is:function(a){return a===void 0}},tt("undefined",function(){var a=J(function(i){return i.colorspace.base02});return m.jsx(F.Box,{sx:{fontSize:"0.7rem",backgroundColor:a,borderRadius:"3px",padding:"0.5px 2px"},children:"undefined"})},{colorKey:"base05",displayTypeLabel:!1}))),e(ie({is:function(a){return typeof a=="string"}},tt("string",function(a){var i=Me(d.useState(!1),2),o=i[0],s=i[1],c=J(function(l){return l.collapseStringsAfterLength}),u=o?a.value:a.value.slice(0,c),h=a.value.length>c;return m.jsxs(F.Box,{component:"span",sx:{overflowWrap:"anywhere",cursor:h?"pointer":"inherit"},onClick:function(){h&&s(function(l){return!l})},children:['"',u,h&&!o&&m.jsx(F.Box,{component:"span",sx:{padding:.5},children:"…"}),'"']})},{colorKey:"base09",fromString:function(a){return a}}))),e({is:function(a){return typeof a=="function"},Component:Bb,PreComponent:Db,PostComponent:Nb});var n=function(a){return a%1===0};return e(ie({is:function(a){return typeof a=="number"&&isNaN(a)}},tt("NaN",function(){var a=J(function(i){return i.colorspace.base02});return m.jsx(F.Box,{sx:{backgroundColor:a,fontSize:"0.8rem",fontWeight:"bold",borderRadius:"3px"},children:"NaN"})},{colorKey:"base08",displayTypeLabel:!1}))),e(ie({is:function(a){return typeof a=="number"&&!n(a)}},tt("float",function(a){var i=a.value;return m.jsx(m.Fragment,{children:i})},{colorKey:"base0B",fromString:function(a){return parseFloat(a)}}))),e(ie({is:function(a){return typeof a=="number"&&n(a)}},tt("int",function(a){var i=a.value;return m.jsx(m.Fragment,{children:i})},{colorKey:"base0F",fromString:function(a){return parseInt(a)}}))),e(ie({is:function(a){return(typeof a>"u"?"undefined":Ib(a))==="bigint"}},tt("bigint",function(a){var i=a.value;return m.jsx(m.Fragment,{children:"".concat(i,"n")})},{colorKey:"base0F",fromString:function(a){return BigInt(a.replace(/\D/g,""))}}))),t}var Jr=function(e){return m.jsx(F.Box,Sr(ie({component:"span"},e),{sx:ie({cursor:"pointer",paddingLeft:"0.7rem"},e.sx)}))},Ft=function(e){var t=e.value,r=e.path,n=e.nestedIndex,a,i=(a=e.editable)!==null&&a!==void 0?a:void 0,o=J(function(P){return P.editable}),s=d.useMemo(function(){return o===!1||i===!1?!1:typeof o=="function"?!!o(r,t):o},[r,i,o,t]),c=Me(d.useState(typeof t=="function"?function(){return t}:t),2),u=c[0],h=c[1],l=r.length,f=r[l-1],p=J(function(P){return P.hoverPath}),v=d.useMemo(function(){return p&&r.every(function(P,R){return P===p.path[R]&&n===p.nestedIndex})},[p,r,n]),g=J(function(P){return P.setHover}),y=J(function(P){return P.value}),x=Me(Mb(r,t,n),2),C=x[0],_=x[1],S=Me(d.useState(!1),2),b=S[0],T=S[1],j=J(function(P){return P.onChange}),W=Ea(),q=J(function(P){return P.colorspace.base0C}),ge=hy(t,r),ae=ge.Component,fe=ge.PreComponent,xe=ge.PostComponent,be=ge.Editor,_e=J(function(P){return P.quotesOnKeys}),oe=J(function(P){return P.rootName}),ye=y===t,Oe=Number.isInteger(Number(f)),Ae=J(function(P){return P.enableClipboard}),$=Ob(),A=$.copy,U=$.copied,G=d.useMemo(function(){return b?m.jsxs(m.Fragment,{children:[m.jsx(Jr,{children:m.jsx(Jb,{sx:{fontSize:".8rem"},onClick:function(){T(!1),h(t)}})}),m.jsx(Jr,{children:m.jsx(Ms,{sx:{fontSize:".8rem"},onClick:function(){T(!1),j(r,t,u)}})})]}):m.jsxs(m.Fragment,{children:[Ae&&m.jsx(Jr,{onClick:function(P){P.preventDefault();try{A(r,t)}catch(R){console.error(R)}},children:U?m.jsx(Ms,{sx:{fontSize:".8rem"}}):m.jsx(Zb,{sx:{fontSize:".8rem"}})}),be&&s&&m.jsx(Jr,{onClick:function(P){P.preventDefault(),T(!0)},children:m.jsx(Qb,{sx:{fontSize:".8rem"}})})]})},[be,U,A,s,b,Ae,j,r,u,t]),M=d.useMemo(function(){return wr(t)===0},[t]),D=!M&&!!(fe&&xe),N=J(function(P){return P.keyRenderer}),H=d.useMemo(function(){return{path:r,inspect:C,setInspect:_,value:t}},[C,r,_,t]);return m.jsxs(F.Box,{className:"data-key-pair","data-testid":"data-key-pair"+r.join("."),sx:{userSelect:"text"},onMouseEnter:d.useCallback(function(){return g(r,n)},[g,r,n]),children:[m.jsxs(st,{component:"span",className:"data-key",sx:{lineHeight:1.5,color:W,letterSpacing:.5,opacity:.8},onClick:d.useCallback(function(P){P.isDefaultPrevented()||M||_(function(R){return!R})},[_]),children:[D?C?m.jsx(ey,{sx:{fontSize:".8rem","&:hover":{cursor:"pointer"}}}):m.jsx(Yb,{sx:{fontSize:".8rem","&:hover":{cursor:"pointer"}}}):null,ye?oe!==!1?_e?m.jsxs(m.Fragment,{children:['"',oe,'"']}):m.jsx(m.Fragment,{children:oe}):null:N.when(H)?m.jsx(N,ie({},H)):n===void 0&&(Oe?m.jsx(F.Box,{component:"span",style:{color:q},children:f}):_e?m.jsxs(m.Fragment,{children:['"',f,'"']}):m.jsx(m.Fragment,{children:f})),ye?oe!==!1?m.jsx(st,{sx:{mr:.5},children:":"}):null:n===void 0&&m.jsx(st,{sx:{mr:.5},children:":"}),fe&&m.jsx(fe,ie({},H)),v&&D&&C&&G]}),b&&s?be&&m.jsx(be,{value:u,setValue:h}):ae?m.jsx(ae,ie({},H)):m.jsx(F.Box,{component:"span",className:"data-value-fallback",children:"fallback: ".concat(t)}),xe&&m.jsx(xe,ie({},H)),v&&D&&!C&&G,v&&!D&&G]})},js="(prefers-color-scheme: dark)";function vy(){var e=Me(d.useState(!1),2),t=e[0],r=e[1];return d.useEffect(function(){var n=function(i){r(i.matches)};r(window.matchMedia(js).matches);var a=window.matchMedia(js);return a.addEventListener("change",n),function(){return a.removeEventListener("change",n)}},[]),t}function Ne(e,t){var r=As();d.useEffect(function(){t!==void 0&&r.setState(aa({},e,t))},[e,t,r])}var gy=function(e){var t=As();Ne("value",e.value),Ne("editable",e.editable),Ne("indentWidth",e.indentWidth),Ne("onChange",e.onChange),Ne("groupArraysAfterLength",e.groupArraysAfterLength),Ne("keyRenderer",e.keyRenderer),Ne("maxDisplayLength",e.maxDisplayLength),Ne("enableClipboard",e.enableClipboard),Ne("rootName",e.rootName),Ne("displayDataTypes",e.displayDataTypes),Ne("displayObjectSize",e.displayObjectSize),Ne("onCopy",e.onCopy),d.useEffect(function(){e.theme==="light"?t.setState({colorspace:oa}):e.theme==="dark"?t.setState({colorspace:Ts}):typeof e.theme=="object"&&t.setState({colorspace:e.theme})},[t,e.theme]);var r=d.useRef(!0),n=d.useMemo(function(){return py()},[]),a=ks(function(u){return u.registerTypes});if(r.current){var i,o=it(n);(i=e.valueTypes)===null||i===void 0||i.forEach(function(u){o.push(u)}),a(o),r.current=!1}d.useEffect(function(){var u,h=it(n);(u=e.valueTypes)===null||u===void 0||u.forEach(function(l){h.push(l)}),a(h)},[n,e.valueTypes,a]);var s=J(function(u){return u.value}),c=J(function(u){return u.setHover});return m.jsx(F.Paper,{elevation:0,className:e.className,style:e.style,sx:{fontFamily:"monospace",userSelect:"none",contentVisibility:"auto"},onMouseLeave:d.useCallback(function(){c(null)},[c]),children:m.jsx(Ft,{value:s,path:d.useMemo(function(){return[]},[])})})},by=function(t){var r=vy(),n,a=d.useMemo(function(){return t.theme==="auto"?r?"light":"dark":(n=t.theme)!==null&&n!==void 0?n:"light"},[r,t.theme]),i=d.useMemo(function(){var s=typeof a=="object"?a.base00:a==="dark"?Ts.base00:oa.base00;return F.createTheme({components:{MuiPaper:{styleOverrides:{root:{backgroundColor:s}}}},palette:{mode:a==="dark"?"dark":"light",background:{default:s}}})},[a]),o=Sr(ie({},t),{theme:a});return m.jsx(F.ThemeProvider,{theme:i,children:m.jsx(cy,{createStore:uy,children:m.jsx(Tb,{createStore:function(){return $b(t)},children:m.jsx(gy,ie({},o))})})})};const yy=e=>{const[t,r]=d.useState(e.initiallySelectedTopLevelPageIndex??0),n=e.themeOverrides?nt.createTheme(us,e.themeOverrides):nt.createTheme(us),a=K.Children.toArray(e.children).length>1,[i,o]=d.useState(e.initialValues),s=h=>{e.onChange&&e.onChange(h),o(h)},{onChange:c,...u}=e;return m.jsxs("div",{css:de.css`
134
139
  display: flex;
135
140
  flex-direction: column;
136
- `,children:[m.jsx(nt.ThemeProvider,{theme:n,children:m.jsx(N0,{children:m.jsx(xr.Consumer,{children:({searchString:h,setSearchString:l})=>m.jsxs(K.Fragment,{children:[e.showAppBar&&m.jsx(uc,{label:e.label,showSearch:e.showSearch,searchValue:h,setSearchString:f=>{h!==f&&(l(f),r(f?void 0:0))}}),m.jsxs("div",{id:"configr-pane",css:ve.css`
141
+ `,children:[m.jsx(nt.ThemeProvider,{theme:n,children:m.jsx(N0,{children:m.jsx(xr.Consumer,{children:({searchString:h,setSearchString:l})=>m.jsxs(K.Fragment,{children:[e.showAppBar&&m.jsx(uc,{label:e.label,showSearch:e.showSearch,searchValue:h,setSearchString:f=>{h!==f&&(l(f),r(f?void 0:0))}}),m.jsxs("div",{id:"configr-pane",css:de.css`
137
142
  // no. Make client set the background color: background-color: #f8f9fa;
138
143
  height: 100%;
139
144
  display: flex;
@@ -142,21 +147,21 @@
142
147
  text-align: left;
143
148
  align-items: start;
144
149
  }
145
- `,className:e.className,children:[a&&m.jsx(xy,{currentGroup:t,setCurrentAreaIndex:r,children:e.children}),m.jsx(is,{currentAreaIndex:t,...u,onChange:s})]})]})})})}),e.showJson&&m.jsx("div",{css:ve.css`
150
+ `,className:e.className,children:[a&&m.jsx(my,{currentGroup:t,setCurrentAreaIndex:r,children:e.children}),m.jsx(os,{currentTopLevelPageIndex:t,...u,onChange:s})]})]})})})}),e.showJson&&m.jsx("div",{css:de.css`
146
151
  white-space: pre;
147
152
  margin-left: 20px;
148
153
  .data-type-label {
149
154
  color: lightblue;
150
155
  font-size: 7px;
151
156
  }
152
- `,children:m.jsx(yy,{value:i})})]})},xy=e=>{const t=d.useMemo(()=>K.Children.map(e.children,r=>m.jsx(j.Tab,{label:r.props.label,css:ve.css`
157
+ `,children:m.jsx(by,{value:i})})]})},my=e=>{const t=d.useMemo(()=>K.Children.map(e.children,r=>m.jsx(F.Tab,{label:r.props.label,css:de.css`
153
158
  font-weight: 500;
154
159
  align-items: start;
155
160
  text-transform: unset;
156
161
  color: black;
157
162
  font-weight: 500;
158
163
  font-size: 13px;
159
- `},r.props.label)),[e.children]);return m.jsx(xr.Consumer,{children:({searchString:r,setSearchString:n})=>m.jsx(j.Tabs,{value:e.currentGroup===void 0?!1:e.currentGroup,onChange:(a,i)=>{r&&(console.log("clearing search from onchange from tab"),n("")),e.setCurrentAreaIndex(i)},centered:!1,orientation:"vertical",css:ve.css`
164
+ `},r.props.label)),[e.children]);return m.jsx(xr.Consumer,{children:({searchString:r,setSearchString:n})=>m.jsx(F.Tabs,{value:e.currentGroup===void 0?!1:e.currentGroup,onChange:(a,i)=>{r&&(console.log("clearing search from onchange from tab"),n("")),e.setCurrentAreaIndex(i)},centered:!1,orientation:"vertical",css:de.css`
160
165
  min-width: 150px;
161
166
  .MuiTabs-indicator {
162
167
  display: none;
@@ -169,9 +174,9 @@
169
174
  min-height: 0;
170
175
  padding-top: 0;
171
176
  }
172
- `,children:t})})};var Be={},Er={},Sy=ut,wy=Le,Ey=Ze,_y="[object String]";function Cy(e){return typeof e=="string"||!wy(e)&&Ey(e)&&Sy(e)==_y}var $y=Cy;function Ty(e){return function(t,r,n){for(var a=-1,i=Object(t),o=n(t),s=o.length;s--;){var c=o[e?s:++a];if(r(i[c],c,i)===!1)break}return t}}var Oy=Ty,Ay=Oy,Py=Ay(),My=Py;function Iy(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Fy=Iy,ky=ut,jy=Ze,Ly="[object Arguments]";function Dy(e){return jy(e)&&ky(e)==Ly}var Ny=Dy,Ls=Ny,By=Ze,Ds=Object.prototype,Hy=Ds.hasOwnProperty,Gy=Ds.propertyIsEnumerable,Vy=Ls(function(){return arguments}())?Ls:function(e){return By(e)&&Hy.call(e,"callee")&&!Gy.call(e,"callee")},Ns=Vy,Jr={exports:{}};function Uy(){return!1}var zy=Uy;Jr.exports,function(e,t){var r=Re,n=zy,a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===a,s=o?r.Buffer:void 0,c=s?s.isBuffer:void 0,u=c||n;e.exports=u}(Jr,Jr.exports);var _a=Jr.exports,Wy=9007199254740991,Ry=/^(?:0|[1-9]\d*)$/;function Ky(e,t){var r=typeof e;return t=t??Wy,!!t&&(r=="number"||r!="symbol"&&Ry.test(e))&&e>-1&&e%1==0&&e<t}var Bs=Ky,qy=9007199254740991;function Yy(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=qy}var Ca=Yy,Xy=ut,Jy=Ca,Zy=Ze,Qy="[object Arguments]",em="[object Array]",tm="[object Boolean]",rm="[object Date]",nm="[object Error]",am="[object Function]",im="[object Map]",om="[object Number]",sm="[object Object]",lm="[object RegExp]",um="[object Set]",cm="[object String]",fm="[object WeakMap]",dm="[object ArrayBuffer]",hm="[object DataView]",pm="[object Float32Array]",vm="[object Float64Array]",gm="[object Int8Array]",bm="[object Int16Array]",ym="[object Int32Array]",mm="[object Uint8Array]",xm="[object Uint8ClampedArray]",Sm="[object Uint16Array]",wm="[object Uint32Array]",ce={};ce[pm]=ce[vm]=ce[gm]=ce[bm]=ce[ym]=ce[mm]=ce[xm]=ce[Sm]=ce[wm]=!0,ce[Qy]=ce[em]=ce[dm]=ce[tm]=ce[hm]=ce[rm]=ce[nm]=ce[am]=ce[im]=ce[om]=ce[sm]=ce[lm]=ce[um]=ce[cm]=ce[fm]=!1;function Em(e){return Zy(e)&&Jy(e.length)&&!!ce[Xy(e)]}var _m=Em;function Cm(e){return function(t){return e(t)}}var $a=Cm,Zr={exports:{}};Zr.exports,function(e,t){var r=Pi,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,o=i&&r.process,s=function(){try{var c=a&&a.require&&a.require("util").types;return c||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s}(Zr,Zr.exports);var Ta=Zr.exports,$m=_m,Tm=$a,Hs=Ta,Gs=Hs&&Hs.isTypedArray,Om=Gs?Tm(Gs):$m,Vs=Om,Am=Fy,Pm=Ns,Mm=Le,Im=_a,Fm=Bs,km=Vs,jm=Object.prototype,Lm=jm.hasOwnProperty;function Dm(e,t){var r=Mm(e),n=!r&&Pm(e),a=!r&&!n&&Im(e),i=!r&&!n&&!a&&km(e),o=r||n||a||i,s=o?Am(e.length,String):[],c=s.length;for(var u in e)(t||Lm.call(e,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Fm(u,c)))&&s.push(u);return s}var Us=Dm,Nm=Object.prototype;function Bm(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Nm;return e===r}var Oa=Bm;function Hm(e,t){return function(r){return e(t(r))}}var zs=Hm,Gm=zs,Vm=Gm(Object.keys,Object),Um=Vm,zm=Oa,Wm=Um,Rm=Object.prototype,Km=Rm.hasOwnProperty;function qm(e){if(!zm(e))return Wm(e);var t=[];for(var r in Object(e))Km.call(e,r)&&r!="constructor"&&t.push(r);return t}var Ym=qm,Xm=ji,Jm=Ca;function Zm(e){return e!=null&&Jm(e.length)&&!Xm(e)}var Qr=Zm,Qm=Us,e1=Ym,t1=Qr;function r1(e){return t1(e)?Qm(e):e1(e)}var _r=r1,n1=My,a1=_r;function i1(e,t){return e&&n1(e,t,a1)}var Ws=i1;function o1(e){return e}var Rs=o1,s1=Rs;function l1(e){return typeof e=="function"?e:s1}var u1=l1,c1=Ws,f1=u1;function d1(e,t){return e&&c1(e,f1(t))}var Aa=d1,h1=zs,p1=h1(Object.getPrototypeOf,Object),Pa=p1,v1=ut,g1=Pa,b1=Ze,y1="[object Object]",m1=Function.prototype,x1=Object.prototype,Ks=m1.toString,S1=x1.hasOwnProperty,w1=Ks.call(Object);function E1(e){if(!b1(e)||v1(e)!=y1)return!1;var t=g1(e);if(t===null)return!0;var r=S1.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Ks.call(r)==w1}var _1=E1,C1=Nr;function $1(){this.__data__=new C1,this.size=0}var T1=$1;function O1(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var A1=O1;function P1(e){return this.__data__.get(e)}var M1=P1;function I1(e){return this.__data__.has(e)}var F1=I1,k1=Nr,j1=xn,L1=Sn,D1=200;function N1(e,t){var r=this.__data__;if(r instanceof k1){var n=r.__data__;if(!j1||n.length<D1-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new L1(n)}return r.set(e,t),this.size=r.size,this}var B1=N1,H1=Nr,G1=T1,V1=A1,U1=M1,z1=F1,W1=B1;function kt(e){var t=this.__data__=new H1(e);this.size=t.size}kt.prototype.clear=G1,kt.prototype.delete=V1,kt.prototype.get=U1,kt.prototype.has=z1,kt.prototype.set=W1;var Ma=kt,R1="__lodash_hash_undefined__";function K1(e){return this.__data__.set(e,R1),this}var q1=K1;function Y1(e){return this.__data__.has(e)}var X1=Y1,J1=Sn,Z1=q1,Q1=X1;function en(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new J1;++t<r;)this.add(e[t])}en.prototype.add=en.prototype.push=Z1,en.prototype.has=Q1;var ex=en;function tx(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var rx=tx;function nx(e,t){return e.has(t)}var ax=nx,ix=ex,ox=rx,sx=ax,lx=1,ux=2;function cx(e,t,r,n,a,i){var o=r&lx,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var u=i.get(e),h=i.get(t);if(u&&h)return u==t&&h==e;var l=-1,f=!0,p=r&ux?new ix:void 0;for(i.set(e,t),i.set(t,e);++l<s;){var v=e[l],g=t[l];if(n)var y=o?n(g,v,l,t,e,i):n(v,g,l,e,t,i);if(y!==void 0){if(y)continue;f=!1;break}if(p){if(!ox(t,function(x,C){if(!sx(p,C)&&(v===x||a(v,x,r,n,i)))return p.push(C)})){f=!1;break}}else if(!(v===g||a(v,g,r,n,i))){f=!1;break}}return i.delete(e),i.delete(t),f}var qs=cx,fx=Re,dx=fx.Uint8Array,Ys=dx;function hx(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}var px=hx;function vx(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var gx=vx,Xs=nr,Js=Ys,bx=mn,yx=qs,mx=px,xx=gx,Sx=1,wx=2,Ex="[object Boolean]",_x="[object Date]",Cx="[object Error]",$x="[object Map]",Tx="[object Number]",Ox="[object RegExp]",Ax="[object Set]",Px="[object String]",Mx="[object Symbol]",Ix="[object ArrayBuffer]",Fx="[object DataView]",Zs=Xs?Xs.prototype:void 0,Ia=Zs?Zs.valueOf:void 0;function kx(e,t,r,n,a,i,o){switch(r){case Fx:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Ix:return!(e.byteLength!=t.byteLength||!i(new Js(e),new Js(t)));case Ex:case _x:case Tx:return bx(+e,+t);case Cx:return e.name==t.name&&e.message==t.message;case Ox:case Px:return e==t+"";case $x:var s=mx;case Ax:var c=n&Sx;if(s||(s=xx),e.size!=t.size&&!c)return!1;var u=o.get(e);if(u)return u==t;n|=wx,o.set(e,t);var h=yx(s(e),s(t),n,a,i,o);return o.delete(e),h;case Mx:if(Ia)return Ia.call(e)==Ia.call(t)}return!1}var jx=kx;function Lx(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var Qs=Lx,Dx=Qs,Nx=Le;function Bx(e,t,r){var n=t(e);return Nx(e)?n:Dx(n,r(e))}var el=Bx;function Hx(e,t){for(var r=-1,n=e==null?0:e.length,a=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[a++]=o)}return i}var Gx=Hx;function Vx(){return[]}var tl=Vx,Ux=Gx,zx=tl,Wx=Object.prototype,Rx=Wx.propertyIsEnumerable,rl=Object.getOwnPropertySymbols,Kx=rl?function(e){return e==null?[]:(e=Object(e),Ux(rl(e),function(t){return Rx.call(e,t)}))}:zx,Fa=Kx,qx=el,Yx=Fa,Xx=_r;function Jx(e){return qx(e,Xx,Yx)}var nl=Jx,al=nl,Zx=1,Qx=Object.prototype,eS=Qx.hasOwnProperty;function tS(e,t,r,n,a,i){var o=r&Zx,s=al(e),c=s.length,u=al(t),h=u.length;if(c!=h&&!o)return!1;for(var l=c;l--;){var f=s[l];if(!(o?f in t:eS.call(t,f)))return!1}var p=i.get(e),v=i.get(t);if(p&&v)return p==t&&v==e;var g=!0;i.set(e,t),i.set(t,e);for(var y=o;++l<c;){f=s[l];var x=e[f],C=t[f];if(n)var _=o?n(C,x,f,t,e,i):n(x,C,f,e,t,i);if(!(_===void 0?x===C||a(x,C,r,n,i):_)){g=!1;break}y||(y=f=="constructor")}if(g&&!y){var S=e.constructor,b=t.constructor;S!=b&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof b=="function"&&b instanceof b)&&(g=!1)}return i.delete(e),i.delete(t),g}var rS=tS,nS=ct,aS=Re,iS=nS(aS,"DataView"),oS=iS,sS=ct,lS=Re,uS=sS(lS,"Promise"),cS=uS,fS=ct,dS=Re,hS=fS(dS,"Set"),pS=hS,vS=ct,gS=Re,bS=vS(gS,"WeakMap"),yS=bS,ka=oS,ja=xn,La=cS,Da=pS,Na=yS,il=ut,jt=Di,ol="[object Map]",mS="[object Object]",sl="[object Promise]",ll="[object Set]",ul="[object WeakMap]",cl="[object DataView]",xS=jt(ka),SS=jt(ja),wS=jt(La),ES=jt(Da),_S=jt(Na),xt=il;(ka&&xt(new ka(new ArrayBuffer(1)))!=cl||ja&&xt(new ja)!=ol||La&&xt(La.resolve())!=sl||Da&&xt(new Da)!=ll||Na&&xt(new Na)!=ul)&&(xt=function(e){var t=il(e),r=t==mS?e.constructor:void 0,n=r?jt(r):"";if(n)switch(n){case xS:return cl;case SS:return ol;case wS:return sl;case ES:return ll;case _S:return ul}return t});var tn=xt,Ba=Ma,CS=qs,$S=jx,TS=rS,fl=tn,dl=Le,hl=_a,OS=Vs,AS=1,pl="[object Arguments]",vl="[object Array]",rn="[object Object]",PS=Object.prototype,gl=PS.hasOwnProperty;function MS(e,t,r,n,a,i){var o=dl(e),s=dl(t),c=o?vl:fl(e),u=s?vl:fl(t);c=c==pl?rn:c,u=u==pl?rn:u;var h=c==rn,l=u==rn,f=c==u;if(f&&hl(e)){if(!hl(t))return!1;o=!0,h=!1}if(f&&!h)return i||(i=new Ba),o||OS(e)?CS(e,t,r,n,a,i):$S(e,t,c,r,n,a,i);if(!(r&AS)){var p=h&&gl.call(e,"__wrapped__"),v=l&&gl.call(t,"__wrapped__");if(p||v){var g=p?e.value():e,y=v?t.value():t;return i||(i=new Ba),a(g,y,r,n,i)}}return f?(i||(i=new Ba),TS(e,t,r,n,a,i)):!1}var IS=MS,FS=IS,bl=Ze;function yl(e,t,r,n,a){return e===t?!0:e==null||t==null||!bl(e)&&!bl(t)?e!==e&&t!==t:FS(e,t,r,n,yl,a)}var ml=yl,kS=Ma,jS=ml,LS=1,DS=2;function NS(e,t,r,n){var a=r.length,i=a,o=!n;if(e==null)return!i;for(e=Object(e);a--;){var s=r[a];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<i;){s=r[a];var c=s[0],u=e[c],h=s[1];if(o&&s[2]){if(u===void 0&&!(c in e))return!1}else{var l=new kS;if(n)var f=n(u,h,c,e,t,l);if(!(f===void 0?jS(h,u,LS|DS,n,l):f))return!1}}return!0}var BS=NS,HS=Ct;function GS(e){return e===e&&!HS(e)}var xl=GS,VS=xl,US=_r;function zS(e){for(var t=US(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,VS(a)]}return t}var WS=zS;function RS(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var Sl=RS,KS=BS,qS=WS,YS=Sl;function XS(e){var t=qS(e);return t.length==1&&t[0][2]?YS(t[0][0],t[0][1]):function(r){return r===e||KS(r,e,t)}}var JS=XS,ZS=Le,QS=jr,ew=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,tw=/^\w*$/;function rw(e,t){if(ZS(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||QS(e)?!0:tw.test(e)||!ew.test(e)||t!=null&&e in Object(t)}var Ha=rw,nw=Le,aw=Ha,iw=Gi,ow=Ri;function sw(e,t){return nw(e)?e:aw(e,t)?[e]:iw(ow(e))}var wl=sw,lw=wl,uw=ir;function cw(e,t){t=lw(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[uw(t[r++])];return r&&r==n?e:void 0}var El=cw,fw=El;function dw(e,t,r){var n=e==null?void 0:fw(e,t);return n===void 0?r:n}var hw=dw;function pw(e,t){return e!=null&&t in Object(e)}var vw=pw,gw=wl,bw=Ns,yw=Le,mw=Bs,xw=Ca,Sw=ir;function ww(e,t,r){t=gw(t,e);for(var n=-1,a=t.length,i=!1;++n<a;){var o=Sw(t[n]);if(!(i=e!=null&&r(e,o)))break;e=e[o]}return i||++n!=a?i:(a=e==null?0:e.length,!!a&&xw(a)&&mw(o,a)&&(yw(e)||bw(e)))}var Ew=ww,_w=vw,Cw=Ew;function $w(e,t){return e!=null&&Cw(e,t,_w)}var Tw=$w,Ow=ml,Aw=hw,Pw=Tw,Mw=Ha,Iw=xl,Fw=Sl,kw=ir,jw=1,Lw=2;function Dw(e,t){return Mw(e)&&Iw(t)?Fw(kw(e),t):function(r){var n=Aw(r,e);return n===void 0&&n===t?Pw(r,e):Ow(t,n,jw|Lw)}}var Nw=Dw;function Bw(e){return function(t){return t==null?void 0:t[e]}}var Hw=Bw,Gw=El;function Vw(e){return function(t){return Gw(t,e)}}var Uw=Vw,zw=Hw,Ww=Uw,Rw=Ha,Kw=ir;function qw(e){return Rw(e)?zw(Kw(e)):Ww(e)}var Yw=qw,Xw=JS,Jw=Nw,Zw=Rs,Qw=Le,eE=Yw;function tE(e){return typeof e=="function"?e:e==null?Zw:typeof e=="object"?Qw(e)?Jw(e[0],e[1]):Xw(e):eE(e)}var rE=tE,nE=Qr;function aE(e,t){return function(r,n){if(r==null)return r;if(!nE(r))return e(r,n);for(var a=r.length,i=t?a:-1,o=Object(r);(t?i--:++i<a)&&n(o[i],i,o)!==!1;);return r}}var iE=aE,oE=Ws,sE=iE,lE=sE(oE),uE=lE,cE=uE,fE=Qr;function dE(e,t){var r=-1,n=fE(e)?Array(e.length):[];return cE(e,function(a,i,o){n[++r]=t(a,i,o)}),n}var hE=dE,pE=bn,vE=rE,gE=hE,bE=Le;function yE(e,t){var r=bE(e)?pE:gE;return r(e,vE(t))}var mE=yE;Object.defineProperty(Er,"__esModule",{value:!0}),Er.flattenNames=void 0;var xE=$y,SE=nn(xE),wE=Aa,EE=nn(wE),_E=_1,CE=nn(_E),$E=mE,TE=nn($E);function nn(e){return e&&e.__esModule?e:{default:e}}var OE=Er.flattenNames=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[];return(0,TE.default)(t,function(n){Array.isArray(n)?e(n).map(function(a){return r.push(a)}):(0,CE.default)(n)?(0,EE.default)(n,function(a,i){a===!0&&r.push(i),r.push(i+"-"+a)}):(0,SE.default)(n)&&r.push(n)}),r};Er.default=OE;var Cr={};function AE(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var PE=AE,ME=ct,IE=function(){try{var e=ME(Object,"defineProperty");return e({},"",{}),e}catch{}}(),FE=IE,_l=FE;function kE(e,t,r){t=="__proto__"&&_l?_l(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var Cl=kE,jE=Cl,LE=mn,DE=Object.prototype,NE=DE.hasOwnProperty;function BE(e,t,r){var n=e[t];(!(NE.call(e,t)&&LE(n,r))||r===void 0&&!(t in e))&&jE(e,t,r)}var $l=BE,HE=$l,GE=Cl;function VE(e,t,r,n){var a=!r;r||(r={});for(var i=-1,o=t.length;++i<o;){var s=t[i],c=n?n(r[s],e[s],s,r,e):void 0;c===void 0&&(c=e[s]),a?GE(r,s,c):HE(r,s,c)}return r}var an=VE,UE=an,zE=_r;function WE(e,t){return e&&UE(t,zE(t),e)}var RE=WE;function KE(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var qE=KE,YE=Ct,XE=Oa,JE=qE,ZE=Object.prototype,QE=ZE.hasOwnProperty;function e_(e){if(!YE(e))return JE(e);var t=XE(e),r=[];for(var n in e)n=="constructor"&&(t||!QE.call(e,n))||r.push(n);return r}var t_=e_,r_=Us,n_=t_,a_=Qr;function i_(e){return a_(e)?r_(e,!0):n_(e)}var Ga=i_,o_=an,s_=Ga;function l_(e,t){return e&&o_(t,s_(t),e)}var u_=l_,on={exports:{}};on.exports,function(e,t){var r=Re,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,o=i?r.Buffer:void 0,s=o?o.allocUnsafe:void 0;function c(u,h){if(h)return u.slice();var l=u.length,f=s?s(l):new u.constructor(l);return u.copy(f),f}e.exports=c}(on,on.exports);var c_=on.exports,f_=an,d_=Fa;function h_(e,t){return f_(e,d_(e),t)}var p_=h_,v_=Qs,g_=Pa,b_=Fa,y_=tl,m_=Object.getOwnPropertySymbols,x_=m_?function(e){for(var t=[];e;)v_(t,b_(e)),e=g_(e);return t}:y_,Tl=x_,S_=an,w_=Tl;function E_(e,t){return S_(e,w_(e),t)}var __=E_,C_=el,$_=Tl,T_=Ga;function O_(e){return C_(e,T_,$_)}var A_=O_,P_=Object.prototype,M_=P_.hasOwnProperty;function I_(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&M_.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var F_=I_,Ol=Ys;function k_(e){var t=new e.constructor(e.byteLength);return new Ol(t).set(new Ol(e)),t}var Va=k_,j_=Va;function L_(e,t){var r=t?j_(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var D_=L_,N_=/\w*$/;function B_(e){var t=new e.constructor(e.source,N_.exec(e));return t.lastIndex=e.lastIndex,t}var H_=B_,Al=nr,Pl=Al?Al.prototype:void 0,Ml=Pl?Pl.valueOf:void 0;function G_(e){return Ml?Object(Ml.call(e)):{}}var V_=G_,U_=Va;function z_(e,t){var r=t?U_(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var W_=z_,R_=Va,K_=D_,q_=H_,Y_=V_,X_=W_,J_="[object Boolean]",Z_="[object Date]",Q_="[object Map]",eC="[object Number]",tC="[object RegExp]",rC="[object Set]",nC="[object String]",aC="[object Symbol]",iC="[object ArrayBuffer]",oC="[object DataView]",sC="[object Float32Array]",lC="[object Float64Array]",uC="[object Int8Array]",cC="[object Int16Array]",fC="[object Int32Array]",dC="[object Uint8Array]",hC="[object Uint8ClampedArray]",pC="[object Uint16Array]",vC="[object Uint32Array]";function gC(e,t,r){var n=e.constructor;switch(t){case iC:return R_(e);case J_:case Z_:return new n(+e);case oC:return K_(e,r);case sC:case lC:case uC:case cC:case fC:case dC:case hC:case pC:case vC:return X_(e,r);case Q_:return new n;case eC:case nC:return new n(e);case tC:return q_(e);case rC:return new n;case aC:return Y_(e)}}var bC=gC,yC=Ct,Il=Object.create,mC=function(){function e(){}return function(t){if(!yC(t))return{};if(Il)return Il(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),xC=mC,SC=xC,wC=Pa,EC=Oa;function _C(e){return typeof e.constructor=="function"&&!EC(e)?SC(wC(e)):{}}var CC=_C,$C=tn,TC=Ze,OC="[object Map]";function AC(e){return TC(e)&&$C(e)==OC}var PC=AC,MC=PC,IC=$a,Fl=Ta,kl=Fl&&Fl.isMap,FC=kl?IC(kl):MC,kC=FC,jC=tn,LC=Ze,DC="[object Set]";function NC(e){return LC(e)&&jC(e)==DC}var BC=NC,HC=BC,GC=$a,jl=Ta,Ll=jl&&jl.isSet,VC=Ll?GC(Ll):HC,UC=VC,zC=Ma,WC=PE,RC=$l,KC=RE,qC=u_,YC=c_,XC=Ai,JC=p_,ZC=__,QC=nl,e$=A_,t$=tn,r$=F_,n$=bC,a$=CC,i$=Le,o$=_a,s$=kC,l$=Ct,u$=UC,c$=_r,f$=Ga,d$=1,h$=2,p$=4,Dl="[object Arguments]",v$="[object Array]",g$="[object Boolean]",b$="[object Date]",y$="[object Error]",Nl="[object Function]",m$="[object GeneratorFunction]",x$="[object Map]",S$="[object Number]",Bl="[object Object]",w$="[object RegExp]",E$="[object Set]",_$="[object String]",C$="[object Symbol]",$$="[object WeakMap]",T$="[object ArrayBuffer]",O$="[object DataView]",A$="[object Float32Array]",P$="[object Float64Array]",M$="[object Int8Array]",I$="[object Int16Array]",F$="[object Int32Array]",k$="[object Uint8Array]",j$="[object Uint8ClampedArray]",L$="[object Uint16Array]",D$="[object Uint32Array]",le={};le[Dl]=le[v$]=le[T$]=le[O$]=le[g$]=le[b$]=le[A$]=le[P$]=le[M$]=le[I$]=le[F$]=le[x$]=le[S$]=le[Bl]=le[w$]=le[E$]=le[_$]=le[C$]=le[k$]=le[j$]=le[L$]=le[D$]=!0,le[y$]=le[Nl]=le[$$]=!1;function sn(e,t,r,n,a,i){var o,s=t&d$,c=t&h$,u=t&p$;if(r&&(o=a?r(e,n,a,i):r(e)),o!==void 0)return o;if(!l$(e))return e;var h=i$(e);if(h){if(o=r$(e),!s)return XC(e,o)}else{var l=t$(e),f=l==Nl||l==m$;if(o$(e))return YC(e,s);if(l==Bl||l==Dl||f&&!a){if(o=c||f?{}:a$(e),!s)return c?ZC(e,qC(o,e)):JC(e,KC(o,e))}else{if(!le[l])return a?e:{};o=n$(e,l,s)}}i||(i=new zC);var p=i.get(e);if(p)return p;i.set(e,o),u$(e)?e.forEach(function(y){o.add(sn(y,t,r,y,e,i))}):s$(e)&&e.forEach(function(y,x){o.set(x,sn(y,t,r,x,e,i))});var v=u?c?e$:QC:c?f$:c$,g=h?void 0:v(e);return WC(g||e,function(y,x){g&&(x=y,y=e[x]),RC(o,x,sn(y,t,r,x,e,i))}),o}var N$=sn,B$=N$,H$=1,G$=4;function V$(e){return B$(e,H$|G$)}var U$=V$;Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.mergeClasses=void 0;var z$=Aa,W$=Hl(z$),R$=U$,K$=Hl(R$),q$=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};function Hl(e){return e&&e.__esModule?e:{default:e}}var Y$=Cr.mergeClasses=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=t.default&&(0,K$.default)(t.default)||{};return r.map(function(a){var i=t[a];return i&&(0,W$.default)(i,function(o,s){n[s]||(n[s]={}),n[s]=q$({},n[s],i[s])}),a}),n};Cr.default=Y$;var $r={};Object.defineProperty($r,"__esModule",{value:!0}),$r.autoprefix=void 0;var X$=Aa,Gl=Z$(X$),J$=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};function Z$(e){return e&&e.__esModule?e:{default:e}}var Q$={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 r=t&&t.split(" ");return{position:"absolute",top:r&&r[0],right:r&&r[1],bottom:r&&r[2],left:r&&r[3]}},extend:function(t,r){var n=r[t];return n||{extend:t}}},eT=$r.autoprefix=function(t){var r={};return(0,Gl.default)(t,function(n,a){var i={};(0,Gl.default)(n,function(o,s){var c=Q$[s];c?i=J$({},i,c(o)):i[s]=o}),r[a]=i}),r};$r.default=eT;var Tr={};Object.defineProperty(Tr,"__esModule",{value:!0}),Tr.hover=void 0;var tT=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rT=d,Ua=nT(rT);function nT(e){return e&&e.__esModule?e:{default:e}}function aT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vl(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function iT(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var oT=Tr.hover=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){iT(a,n);function a(){var i,o,s,c;aT(this,a);for(var u=arguments.length,h=Array(u),l=0;l<u;l++)h[l]=arguments[l];return c=(o=(s=Vl(this,(i=a.__proto__||Object.getPrototypeOf(a)).call.apply(i,[this].concat(h))),s),s.state={hover:!1},s.handleMouseOver=function(){return s.setState({hover:!0})},s.handleMouseOut=function(){return s.setState({hover:!1})},s.render=function(){return Ua.default.createElement(r,{onMouseOver:s.handleMouseOver,onMouseOut:s.handleMouseOut},Ua.default.createElement(t,tT({},s.props,s.state)))},o),Vl(s,c)}return a}(Ua.default.Component)};Tr.default=oT;var Or={};Object.defineProperty(Or,"__esModule",{value:!0}),Or.active=void 0;var sT=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},lT=d,za=uT(lT);function uT(e){return e&&e.__esModule?e:{default:e}}function cT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ul(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function fT(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var dT=Or.active=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){fT(a,n);function a(){var i,o,s,c;cT(this,a);for(var u=arguments.length,h=Array(u),l=0;l<u;l++)h[l]=arguments[l];return c=(o=(s=Ul(this,(i=a.__proto__||Object.getPrototypeOf(a)).call.apply(i,[this].concat(h))),s),s.state={active:!1},s.handleMouseDown=function(){return s.setState({active:!0})},s.handleMouseUp=function(){return s.setState({active:!1})},s.render=function(){return za.default.createElement(r,{onMouseDown:s.handleMouseDown,onMouseUp:s.handleMouseUp},za.default.createElement(t,sT({},s.props,s.state)))},o),Ul(s,c)}return a}(za.default.Component)};Or.default=dT;var Wa={};Object.defineProperty(Wa,"__esModule",{value:!0});var hT=function(t,r){var n={},a=function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;n[o]=s};return t===0&&a("first-child"),t===r-1&&a("last-child"),(t===0||t%2===0)&&a("even"),Math.abs(t%2)===1&&a("odd"),a("nth-child",t),n};Wa.default=hT,Object.defineProperty(Be,"__esModule",{value:!0}),Be.ReactCSS=Be.loop=Be.handleActive=Ra=Be.handleHover=Be.hover=void 0;var pT=Er,vT=Lt(pT),gT=Cr,bT=Lt(gT),yT=$r,mT=Lt(yT),xT=Tr,zl=Lt(xT),ST=Or,wT=Lt(ST),ET=Wa,_T=Lt(ET);function Lt(e){return e&&e.__esModule?e:{default:e}}Be.hover=zl.default;var Ra=Be.handleHover=zl.default;Be.handleActive=wT.default,Be.loop=_T.default;var CT=Be.ReactCSS=function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];var i=(0,vT.default)(n),o=(0,bT.default)(t,i);return(0,mT.default)(o)},z=Be.default=CT,$T=function(t,r,n,a,i){var o=i.clientWidth,s=i.clientHeight,c=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,u=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,h=c-(i.getBoundingClientRect().left+window.pageXOffset),l=u-(i.getBoundingClientRect().top+window.pageYOffset);if(n==="vertical"){var f=void 0;if(l<0?f=0:l>s?f=1:f=Math.round(l*100/s)/100,r.a!==f)return{h:r.h,s:r.s,l:r.l,a:f,source:"rgb"}}else{var p=void 0;if(h<0?p=0:h>o?p=1:p=Math.round(h*100/o)/100,a!==p)return{h:r.h,s:r.s,l:r.l,a:p,source:"rgb"}}return null},Ka={},TT=function(t,r,n,a){if(typeof document>"u"&&!a)return null;var i=a?new a:document.createElement("canvas");i.width=n*2,i.height=n*2;var o=i.getContext("2d");return o?(o.fillStyle=t,o.fillRect(0,0,i.width,i.height),o.fillStyle=r,o.fillRect(0,0,n,n),o.translate(n,n),o.fillRect(0,0,n,n),i.toDataURL()):null},OT=function(t,r,n,a){var i=t+"-"+r+"-"+n+(a?"-server":"");if(Ka[i])return Ka[i];var o=TT(t,r,n,a);return Ka[i]=o,o},Wl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Dt=function(t){var r=t.white,n=t.grey,a=t.size,i=t.renderers,o=t.borderRadius,s=t.boxShadow,c=t.children,u=z({default:{grid:{borderRadius:o,boxShadow:s,absolute:"0px 0px 0px 0px",background:"url("+OT(r,n,a,i.canvas)+") center left"}}});return d.isValidElement(c)?d.cloneElement(c,Wl({},c.props,{style:Wl({},c.props.style,u.grid)})):d.createElement("div",{style:u.grid})};Dt.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var AT=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},PT=function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function MT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rl(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function IT(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var qa=function(e){IT(t,e);function t(){var r,n,a,i;MT(this,t);for(var o=arguments.length,s=Array(o),c=0;c<o;c++)s[c]=arguments[c];return i=(n=(a=Rl(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(s))),a),a.handleChange=function(u){var h=$T(u,a.props.hsl,a.props.direction,a.props.a,a.container);h&&typeof a.props.onChange=="function"&&a.props.onChange(h,u)},a.handleMouseDown=function(u){a.handleChange(u),window.addEventListener("mousemove",a.handleChange),window.addEventListener("mouseup",a.handleMouseUp)},a.handleMouseUp=function(){a.unbindEventListeners()},a.unbindEventListeners=function(){window.removeEventListener("mousemove",a.handleChange),window.removeEventListener("mouseup",a.handleMouseUp)},n),Rl(a,i)}return PT(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var n=this,a=this.props.rgb,i=z({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("+a.r+","+a.g+","+a.b+`, 0) 0%,
177
+ `,children:t})})};var Be={},Er={},xy=ut,Sy=Le,wy=Ze,Ey="[object String]";function _y(e){return typeof e=="string"||!Sy(e)&&wy(e)&&xy(e)==Ey}var Cy=_y;function $y(e){return function(t,r,n){for(var a=-1,i=Object(t),o=n(t),s=o.length;s--;){var c=o[e?s:++a];if(r(i[c],c,i)===!1)break}return t}}var Ty=$y,Oy=Ty,Ay=Oy(),Py=Ay;function My(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Iy=My,Fy=ut,ky=Ze,jy="[object Arguments]";function Ly(e){return ky(e)&&Fy(e)==jy}var Dy=Ly,Ls=Dy,Ny=Ze,Ds=Object.prototype,By=Ds.hasOwnProperty,Hy=Ds.propertyIsEnumerable,Gy=Ls(function(){return arguments}())?Ls:function(e){return Ny(e)&&By.call(e,"callee")&&!Hy.call(e,"callee")},Ns=Gy,Zr={exports:{}};function Vy(){return!1}var Uy=Vy;Zr.exports,function(e,t){var r=Re,n=Uy,a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===a,s=o?r.Buffer:void 0,c=s?s.isBuffer:void 0,u=c||n;e.exports=u}(Zr,Zr.exports);var Ca=Zr.exports,zy=9007199254740991,Wy=/^(?:0|[1-9]\d*)$/;function Ry(e,t){var r=typeof e;return t=t??zy,!!t&&(r=="number"||r!="symbol"&&Wy.test(e))&&e>-1&&e%1==0&&e<t}var Bs=Ry,Ky=9007199254740991;function qy(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ky}var $a=qy,Yy=ut,Xy=$a,Jy=Ze,Zy="[object Arguments]",Qy="[object Array]",em="[object Boolean]",tm="[object Date]",rm="[object Error]",nm="[object Function]",am="[object Map]",im="[object Number]",om="[object Object]",sm="[object RegExp]",lm="[object Set]",um="[object String]",cm="[object WeakMap]",fm="[object ArrayBuffer]",dm="[object DataView]",hm="[object Float32Array]",pm="[object Float64Array]",vm="[object Int8Array]",gm="[object Int16Array]",bm="[object Int32Array]",ym="[object Uint8Array]",mm="[object Uint8ClampedArray]",xm="[object Uint16Array]",Sm="[object Uint32Array]",ce={};ce[hm]=ce[pm]=ce[vm]=ce[gm]=ce[bm]=ce[ym]=ce[mm]=ce[xm]=ce[Sm]=!0,ce[Zy]=ce[Qy]=ce[fm]=ce[em]=ce[dm]=ce[tm]=ce[rm]=ce[nm]=ce[am]=ce[im]=ce[om]=ce[sm]=ce[lm]=ce[um]=ce[cm]=!1;function wm(e){return Jy(e)&&Xy(e.length)&&!!ce[Yy(e)]}var Em=wm;function _m(e){return function(t){return e(t)}}var Ta=_m,Qr={exports:{}};Qr.exports,function(e,t){var r=Mi,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,o=i&&r.process,s=function(){try{var c=a&&a.require&&a.require("util").types;return c||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s}(Qr,Qr.exports);var Oa=Qr.exports,Cm=Em,$m=Ta,Hs=Oa,Gs=Hs&&Hs.isTypedArray,Tm=Gs?$m(Gs):Cm,Vs=Tm,Om=Iy,Am=Ns,Pm=Le,Mm=Ca,Im=Bs,Fm=Vs,km=Object.prototype,jm=km.hasOwnProperty;function Lm(e,t){var r=Pm(e),n=!r&&Am(e),a=!r&&!n&&Mm(e),i=!r&&!n&&!a&&Fm(e),o=r||n||a||i,s=o?Om(e.length,String):[],c=s.length;for(var u in e)(t||jm.call(e,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Im(u,c)))&&s.push(u);return s}var Us=Lm,Dm=Object.prototype;function Nm(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Dm;return e===r}var Aa=Nm;function Bm(e,t){return function(r){return e(t(r))}}var zs=Bm,Hm=zs,Gm=Hm(Object.keys,Object),Vm=Gm,Um=Aa,zm=Vm,Wm=Object.prototype,Rm=Wm.hasOwnProperty;function Km(e){if(!Um(e))return zm(e);var t=[];for(var r in Object(e))Rm.call(e,r)&&r!="constructor"&&t.push(r);return t}var qm=Km,Ym=Li,Xm=$a;function Jm(e){return e!=null&&Xm(e.length)&&!Ym(e)}var en=Jm,Zm=Us,Qm=qm,e1=en;function t1(e){return e1(e)?Zm(e):Qm(e)}var _r=t1,r1=Py,n1=_r;function a1(e,t){return e&&r1(e,t,n1)}var Ws=a1;function i1(e){return e}var Rs=i1,o1=Rs;function s1(e){return typeof e=="function"?e:o1}var l1=s1,u1=Ws,c1=l1;function f1(e,t){return e&&u1(e,c1(t))}var Pa=f1,d1=zs,h1=d1(Object.getPrototypeOf,Object),Ma=h1,p1=ut,v1=Ma,g1=Ze,b1="[object Object]",y1=Function.prototype,m1=Object.prototype,Ks=y1.toString,x1=m1.hasOwnProperty,S1=Ks.call(Object);function w1(e){if(!g1(e)||p1(e)!=b1)return!1;var t=v1(e);if(t===null)return!0;var r=x1.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Ks.call(r)==S1}var E1=w1,_1=Nr;function C1(){this.__data__=new _1,this.size=0}var $1=C1;function T1(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var O1=T1;function A1(e){return this.__data__.get(e)}var P1=A1;function M1(e){return this.__data__.has(e)}var I1=M1,F1=Nr,k1=Sn,j1=wn,L1=200;function D1(e,t){var r=this.__data__;if(r instanceof F1){var n=r.__data__;if(!k1||n.length<L1-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new j1(n)}return r.set(e,t),this.size=r.size,this}var N1=D1,B1=Nr,H1=$1,G1=O1,V1=P1,U1=I1,z1=N1;function kt(e){var t=this.__data__=new B1(e);this.size=t.size}kt.prototype.clear=H1,kt.prototype.delete=G1,kt.prototype.get=V1,kt.prototype.has=U1,kt.prototype.set=z1;var Ia=kt,W1="__lodash_hash_undefined__";function R1(e){return this.__data__.set(e,W1),this}var K1=R1;function q1(e){return this.__data__.has(e)}var Y1=q1,X1=wn,J1=K1,Z1=Y1;function tn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new X1;++t<r;)this.add(e[t])}tn.prototype.add=tn.prototype.push=J1,tn.prototype.has=Z1;var Q1=tn;function ex(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var tx=ex;function rx(e,t){return e.has(t)}var nx=rx,ax=Q1,ix=tx,ox=nx,sx=1,lx=2;function ux(e,t,r,n,a,i){var o=r&sx,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var u=i.get(e),h=i.get(t);if(u&&h)return u==t&&h==e;var l=-1,f=!0,p=r&lx?new ax:void 0;for(i.set(e,t),i.set(t,e);++l<s;){var v=e[l],g=t[l];if(n)var y=o?n(g,v,l,t,e,i):n(v,g,l,e,t,i);if(y!==void 0){if(y)continue;f=!1;break}if(p){if(!ix(t,function(x,C){if(!ox(p,C)&&(v===x||a(v,x,r,n,i)))return p.push(C)})){f=!1;break}}else if(!(v===g||a(v,g,r,n,i))){f=!1;break}}return i.delete(e),i.delete(t),f}var qs=ux,cx=Re,fx=cx.Uint8Array,Ys=fx;function dx(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}var hx=dx;function px(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var vx=px,Xs=nr,Js=Ys,gx=xn,bx=qs,yx=hx,mx=vx,xx=1,Sx=2,wx="[object Boolean]",Ex="[object Date]",_x="[object Error]",Cx="[object Map]",$x="[object Number]",Tx="[object RegExp]",Ox="[object Set]",Ax="[object String]",Px="[object Symbol]",Mx="[object ArrayBuffer]",Ix="[object DataView]",Zs=Xs?Xs.prototype:void 0,Fa=Zs?Zs.valueOf:void 0;function Fx(e,t,r,n,a,i,o){switch(r){case Ix:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Mx:return!(e.byteLength!=t.byteLength||!i(new Js(e),new Js(t)));case wx:case Ex:case $x:return gx(+e,+t);case _x:return e.name==t.name&&e.message==t.message;case Tx:case Ax:return e==t+"";case Cx:var s=yx;case Ox:var c=n&xx;if(s||(s=mx),e.size!=t.size&&!c)return!1;var u=o.get(e);if(u)return u==t;n|=Sx,o.set(e,t);var h=bx(s(e),s(t),n,a,i,o);return o.delete(e),h;case Px:if(Fa)return Fa.call(e)==Fa.call(t)}return!1}var kx=Fx;function jx(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var Qs=jx,Lx=Qs,Dx=Le;function Nx(e,t,r){var n=t(e);return Dx(e)?n:Lx(n,r(e))}var el=Nx;function Bx(e,t){for(var r=-1,n=e==null?0:e.length,a=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[a++]=o)}return i}var Hx=Bx;function Gx(){return[]}var tl=Gx,Vx=Hx,Ux=tl,zx=Object.prototype,Wx=zx.propertyIsEnumerable,rl=Object.getOwnPropertySymbols,Rx=rl?function(e){return e==null?[]:(e=Object(e),Vx(rl(e),function(t){return Wx.call(e,t)}))}:Ux,ka=Rx,Kx=el,qx=ka,Yx=_r;function Xx(e){return Kx(e,Yx,qx)}var nl=Xx,al=nl,Jx=1,Zx=Object.prototype,Qx=Zx.hasOwnProperty;function eS(e,t,r,n,a,i){var o=r&Jx,s=al(e),c=s.length,u=al(t),h=u.length;if(c!=h&&!o)return!1;for(var l=c;l--;){var f=s[l];if(!(o?f in t:Qx.call(t,f)))return!1}var p=i.get(e),v=i.get(t);if(p&&v)return p==t&&v==e;var g=!0;i.set(e,t),i.set(t,e);for(var y=o;++l<c;){f=s[l];var x=e[f],C=t[f];if(n)var _=o?n(C,x,f,t,e,i):n(x,C,f,e,t,i);if(!(_===void 0?x===C||a(x,C,r,n,i):_)){g=!1;break}y||(y=f=="constructor")}if(g&&!y){var S=e.constructor,b=t.constructor;S!=b&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof b=="function"&&b instanceof b)&&(g=!1)}return i.delete(e),i.delete(t),g}var tS=eS,rS=ct,nS=Re,aS=rS(nS,"DataView"),iS=aS,oS=ct,sS=Re,lS=oS(sS,"Promise"),uS=lS,cS=ct,fS=Re,dS=cS(fS,"Set"),hS=dS,pS=ct,vS=Re,gS=pS(vS,"WeakMap"),bS=gS,ja=iS,La=Sn,Da=uS,Na=hS,Ba=bS,il=ut,jt=Ni,ol="[object Map]",yS="[object Object]",sl="[object Promise]",ll="[object Set]",ul="[object WeakMap]",cl="[object DataView]",mS=jt(ja),xS=jt(La),SS=jt(Da),wS=jt(Na),ES=jt(Ba),xt=il;(ja&&xt(new ja(new ArrayBuffer(1)))!=cl||La&&xt(new La)!=ol||Da&&xt(Da.resolve())!=sl||Na&&xt(new Na)!=ll||Ba&&xt(new Ba)!=ul)&&(xt=function(e){var t=il(e),r=t==yS?e.constructor:void 0,n=r?jt(r):"";if(n)switch(n){case mS:return cl;case xS:return ol;case SS:return sl;case wS:return ll;case ES:return ul}return t});var rn=xt,Ha=Ia,_S=qs,CS=kx,$S=tS,fl=rn,dl=Le,hl=Ca,TS=Vs,OS=1,pl="[object Arguments]",vl="[object Array]",nn="[object Object]",AS=Object.prototype,gl=AS.hasOwnProperty;function PS(e,t,r,n,a,i){var o=dl(e),s=dl(t),c=o?vl:fl(e),u=s?vl:fl(t);c=c==pl?nn:c,u=u==pl?nn:u;var h=c==nn,l=u==nn,f=c==u;if(f&&hl(e)){if(!hl(t))return!1;o=!0,h=!1}if(f&&!h)return i||(i=new Ha),o||TS(e)?_S(e,t,r,n,a,i):CS(e,t,c,r,n,a,i);if(!(r&OS)){var p=h&&gl.call(e,"__wrapped__"),v=l&&gl.call(t,"__wrapped__");if(p||v){var g=p?e.value():e,y=v?t.value():t;return i||(i=new Ha),a(g,y,r,n,i)}}return f?(i||(i=new Ha),$S(e,t,r,n,a,i)):!1}var MS=PS,IS=MS,bl=Ze;function yl(e,t,r,n,a){return e===t?!0:e==null||t==null||!bl(e)&&!bl(t)?e!==e&&t!==t:IS(e,t,r,n,yl,a)}var ml=yl,FS=Ia,kS=ml,jS=1,LS=2;function DS(e,t,r,n){var a=r.length,i=a,o=!n;if(e==null)return!i;for(e=Object(e);a--;){var s=r[a];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<i;){s=r[a];var c=s[0],u=e[c],h=s[1];if(o&&s[2]){if(u===void 0&&!(c in e))return!1}else{var l=new FS;if(n)var f=n(u,h,c,e,t,l);if(!(f===void 0?kS(h,u,jS|LS,n,l):f))return!1}}return!0}var NS=DS,BS=Ct;function HS(e){return e===e&&!BS(e)}var xl=HS,GS=xl,VS=_r;function US(e){for(var t=VS(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,GS(a)]}return t}var zS=US;function WS(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var Sl=WS,RS=NS,KS=zS,qS=Sl;function YS(e){var t=KS(e);return t.length==1&&t[0][2]?qS(t[0][0],t[0][1]):function(r){return r===e||RS(r,e,t)}}var XS=YS,JS=Le,ZS=jr,QS=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ew=/^\w*$/;function tw(e,t){if(JS(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||ZS(e)?!0:ew.test(e)||!QS.test(e)||t!=null&&e in Object(t)}var Ga=tw,rw=Le,nw=Ga,aw=Vi,iw=Ki;function ow(e,t){return rw(e)?e:nw(e,t)?[e]:aw(iw(e))}var wl=ow,sw=wl,lw=ir;function uw(e,t){t=sw(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[lw(t[r++])];return r&&r==n?e:void 0}var El=uw,cw=El;function fw(e,t,r){var n=e==null?void 0:cw(e,t);return n===void 0?r:n}var dw=fw;function hw(e,t){return e!=null&&t in Object(e)}var pw=hw,vw=wl,gw=Ns,bw=Le,yw=Bs,mw=$a,xw=ir;function Sw(e,t,r){t=vw(t,e);for(var n=-1,a=t.length,i=!1;++n<a;){var o=xw(t[n]);if(!(i=e!=null&&r(e,o)))break;e=e[o]}return i||++n!=a?i:(a=e==null?0:e.length,!!a&&mw(a)&&yw(o,a)&&(bw(e)||gw(e)))}var ww=Sw,Ew=pw,_w=ww;function Cw(e,t){return e!=null&&_w(e,t,Ew)}var $w=Cw,Tw=ml,Ow=dw,Aw=$w,Pw=Ga,Mw=xl,Iw=Sl,Fw=ir,kw=1,jw=2;function Lw(e,t){return Pw(e)&&Mw(t)?Iw(Fw(e),t):function(r){var n=Ow(r,e);return n===void 0&&n===t?Aw(r,e):Tw(t,n,kw|jw)}}var Dw=Lw;function Nw(e){return function(t){return t==null?void 0:t[e]}}var Bw=Nw,Hw=El;function Gw(e){return function(t){return Hw(t,e)}}var Vw=Gw,Uw=Bw,zw=Vw,Ww=Ga,Rw=ir;function Kw(e){return Ww(e)?Uw(Rw(e)):zw(e)}var qw=Kw,Yw=XS,Xw=Dw,Jw=Rs,Zw=Le,Qw=qw;function eE(e){return typeof e=="function"?e:e==null?Jw:typeof e=="object"?Zw(e)?Xw(e[0],e[1]):Yw(e):Qw(e)}var tE=eE,rE=en;function nE(e,t){return function(r,n){if(r==null)return r;if(!rE(r))return e(r,n);for(var a=r.length,i=t?a:-1,o=Object(r);(t?i--:++i<a)&&n(o[i],i,o)!==!1;);return r}}var aE=nE,iE=Ws,oE=aE,sE=oE(iE),lE=sE,uE=lE,cE=en;function fE(e,t){var r=-1,n=cE(e)?Array(e.length):[];return uE(e,function(a,i,o){n[++r]=t(a,i,o)}),n}var dE=fE,hE=yn,pE=tE,vE=dE,gE=Le;function bE(e,t){var r=gE(e)?hE:vE;return r(e,pE(t))}var yE=bE;Object.defineProperty(Er,"__esModule",{value:!0}),Er.flattenNames=void 0;var mE=Cy,xE=an(mE),SE=Pa,wE=an(SE),EE=E1,_E=an(EE),CE=yE,$E=an(CE);function an(e){return e&&e.__esModule?e:{default:e}}var TE=Er.flattenNames=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[];return(0,$E.default)(t,function(n){Array.isArray(n)?e(n).map(function(a){return r.push(a)}):(0,_E.default)(n)?(0,wE.default)(n,function(a,i){a===!0&&r.push(i),r.push(i+"-"+a)}):(0,xE.default)(n)&&r.push(n)}),r};Er.default=TE;var Cr={};function OE(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var AE=OE,PE=ct,ME=function(){try{var e=PE(Object,"defineProperty");return e({},"",{}),e}catch{}}(),IE=ME,_l=IE;function FE(e,t,r){t=="__proto__"&&_l?_l(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var Cl=FE,kE=Cl,jE=xn,LE=Object.prototype,DE=LE.hasOwnProperty;function NE(e,t,r){var n=e[t];(!(DE.call(e,t)&&jE(n,r))||r===void 0&&!(t in e))&&kE(e,t,r)}var $l=NE,BE=$l,HE=Cl;function GE(e,t,r,n){var a=!r;r||(r={});for(var i=-1,o=t.length;++i<o;){var s=t[i],c=n?n(r[s],e[s],s,r,e):void 0;c===void 0&&(c=e[s]),a?HE(r,s,c):BE(r,s,c)}return r}var on=GE,VE=on,UE=_r;function zE(e,t){return e&&VE(t,UE(t),e)}var WE=zE;function RE(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var KE=RE,qE=Ct,YE=Aa,XE=KE,JE=Object.prototype,ZE=JE.hasOwnProperty;function QE(e){if(!qE(e))return XE(e);var t=YE(e),r=[];for(var n in e)n=="constructor"&&(t||!ZE.call(e,n))||r.push(n);return r}var e_=QE,t_=Us,r_=e_,n_=en;function a_(e){return n_(e)?t_(e,!0):r_(e)}var Va=a_,i_=on,o_=Va;function s_(e,t){return e&&i_(t,o_(t),e)}var l_=s_,sn={exports:{}};sn.exports,function(e,t){var r=Re,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,o=i?r.Buffer:void 0,s=o?o.allocUnsafe:void 0;function c(u,h){if(h)return u.slice();var l=u.length,f=s?s(l):new u.constructor(l);return u.copy(f),f}e.exports=c}(sn,sn.exports);var u_=sn.exports,c_=on,f_=ka;function d_(e,t){return c_(e,f_(e),t)}var h_=d_,p_=Qs,v_=Ma,g_=ka,b_=tl,y_=Object.getOwnPropertySymbols,m_=y_?function(e){for(var t=[];e;)p_(t,g_(e)),e=v_(e);return t}:b_,Tl=m_,x_=on,S_=Tl;function w_(e,t){return x_(e,S_(e),t)}var E_=w_,__=el,C_=Tl,$_=Va;function T_(e){return __(e,$_,C_)}var O_=T_,A_=Object.prototype,P_=A_.hasOwnProperty;function M_(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&P_.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var I_=M_,Ol=Ys;function F_(e){var t=new e.constructor(e.byteLength);return new Ol(t).set(new Ol(e)),t}var Ua=F_,k_=Ua;function j_(e,t){var r=t?k_(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var L_=j_,D_=/\w*$/;function N_(e){var t=new e.constructor(e.source,D_.exec(e));return t.lastIndex=e.lastIndex,t}var B_=N_,Al=nr,Pl=Al?Al.prototype:void 0,Ml=Pl?Pl.valueOf:void 0;function H_(e){return Ml?Object(Ml.call(e)):{}}var G_=H_,V_=Ua;function U_(e,t){var r=t?V_(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var z_=U_,W_=Ua,R_=L_,K_=B_,q_=G_,Y_=z_,X_="[object Boolean]",J_="[object Date]",Z_="[object Map]",Q_="[object Number]",eC="[object RegExp]",tC="[object Set]",rC="[object String]",nC="[object Symbol]",aC="[object ArrayBuffer]",iC="[object DataView]",oC="[object Float32Array]",sC="[object Float64Array]",lC="[object Int8Array]",uC="[object Int16Array]",cC="[object Int32Array]",fC="[object Uint8Array]",dC="[object Uint8ClampedArray]",hC="[object Uint16Array]",pC="[object Uint32Array]";function vC(e,t,r){var n=e.constructor;switch(t){case aC:return W_(e);case X_:case J_:return new n(+e);case iC:return R_(e,r);case oC:case sC:case lC:case uC:case cC:case fC:case dC:case hC:case pC:return Y_(e,r);case Z_:return new n;case Q_:case rC:return new n(e);case eC:return K_(e);case tC:return new n;case nC:return q_(e)}}var gC=vC,bC=Ct,Il=Object.create,yC=function(){function e(){}return function(t){if(!bC(t))return{};if(Il)return Il(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),mC=yC,xC=mC,SC=Ma,wC=Aa;function EC(e){return typeof e.constructor=="function"&&!wC(e)?xC(SC(e)):{}}var _C=EC,CC=rn,$C=Ze,TC="[object Map]";function OC(e){return $C(e)&&CC(e)==TC}var AC=OC,PC=AC,MC=Ta,Fl=Oa,kl=Fl&&Fl.isMap,IC=kl?MC(kl):PC,FC=IC,kC=rn,jC=Ze,LC="[object Set]";function DC(e){return jC(e)&&kC(e)==LC}var NC=DC,BC=NC,HC=Ta,jl=Oa,Ll=jl&&jl.isSet,GC=Ll?HC(Ll):BC,VC=GC,UC=Ia,zC=AE,WC=$l,RC=WE,KC=l_,qC=u_,YC=Pi,XC=h_,JC=E_,ZC=nl,QC=O_,e$=rn,t$=I_,r$=gC,n$=_C,a$=Le,i$=Ca,o$=FC,s$=Ct,l$=VC,u$=_r,c$=Va,f$=1,d$=2,h$=4,Dl="[object Arguments]",p$="[object Array]",v$="[object Boolean]",g$="[object Date]",b$="[object Error]",Nl="[object Function]",y$="[object GeneratorFunction]",m$="[object Map]",x$="[object Number]",Bl="[object Object]",S$="[object RegExp]",w$="[object Set]",E$="[object String]",_$="[object Symbol]",C$="[object WeakMap]",$$="[object ArrayBuffer]",T$="[object DataView]",O$="[object Float32Array]",A$="[object Float64Array]",P$="[object Int8Array]",M$="[object Int16Array]",I$="[object Int32Array]",F$="[object Uint8Array]",k$="[object Uint8ClampedArray]",j$="[object Uint16Array]",L$="[object Uint32Array]",le={};le[Dl]=le[p$]=le[$$]=le[T$]=le[v$]=le[g$]=le[O$]=le[A$]=le[P$]=le[M$]=le[I$]=le[m$]=le[x$]=le[Bl]=le[S$]=le[w$]=le[E$]=le[_$]=le[F$]=le[k$]=le[j$]=le[L$]=!0,le[b$]=le[Nl]=le[C$]=!1;function ln(e,t,r,n,a,i){var o,s=t&f$,c=t&d$,u=t&h$;if(r&&(o=a?r(e,n,a,i):r(e)),o!==void 0)return o;if(!s$(e))return e;var h=a$(e);if(h){if(o=t$(e),!s)return YC(e,o)}else{var l=e$(e),f=l==Nl||l==y$;if(i$(e))return qC(e,s);if(l==Bl||l==Dl||f&&!a){if(o=c||f?{}:n$(e),!s)return c?JC(e,KC(o,e)):XC(e,RC(o,e))}else{if(!le[l])return a?e:{};o=r$(e,l,s)}}i||(i=new UC);var p=i.get(e);if(p)return p;i.set(e,o),l$(e)?e.forEach(function(y){o.add(ln(y,t,r,y,e,i))}):o$(e)&&e.forEach(function(y,x){o.set(x,ln(y,t,r,x,e,i))});var v=u?c?QC:ZC:c?c$:u$,g=h?void 0:v(e);return zC(g||e,function(y,x){g&&(x=y,y=e[x]),WC(o,x,ln(y,t,r,x,e,i))}),o}var D$=ln,N$=D$,B$=1,H$=4;function G$(e){return N$(e,B$|H$)}var V$=G$;Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.mergeClasses=void 0;var U$=Pa,z$=Hl(U$),W$=V$,R$=Hl(W$),K$=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};function Hl(e){return e&&e.__esModule?e:{default:e}}var q$=Cr.mergeClasses=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=t.default&&(0,R$.default)(t.default)||{};return r.map(function(a){var i=t[a];return i&&(0,z$.default)(i,function(o,s){n[s]||(n[s]={}),n[s]=K$({},n[s],i[s])}),a}),n};Cr.default=q$;var $r={};Object.defineProperty($r,"__esModule",{value:!0}),$r.autoprefix=void 0;var Y$=Pa,Gl=J$(Y$),X$=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};function J$(e){return e&&e.__esModule?e:{default:e}}var Z$={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 r=t&&t.split(" ");return{position:"absolute",top:r&&r[0],right:r&&r[1],bottom:r&&r[2],left:r&&r[3]}},extend:function(t,r){var n=r[t];return n||{extend:t}}},Q$=$r.autoprefix=function(t){var r={};return(0,Gl.default)(t,function(n,a){var i={};(0,Gl.default)(n,function(o,s){var c=Z$[s];c?i=X$({},i,c(o)):i[s]=o}),r[a]=i}),r};$r.default=Q$;var Tr={};Object.defineProperty(Tr,"__esModule",{value:!0}),Tr.hover=void 0;var eT=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},tT=d,za=rT(tT);function rT(e){return e&&e.__esModule?e:{default:e}}function nT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vl(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function aT(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var iT=Tr.hover=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){aT(a,n);function a(){var i,o,s,c;nT(this,a);for(var u=arguments.length,h=Array(u),l=0;l<u;l++)h[l]=arguments[l];return c=(o=(s=Vl(this,(i=a.__proto__||Object.getPrototypeOf(a)).call.apply(i,[this].concat(h))),s),s.state={hover:!1},s.handleMouseOver=function(){return s.setState({hover:!0})},s.handleMouseOut=function(){return s.setState({hover:!1})},s.render=function(){return za.default.createElement(r,{onMouseOver:s.handleMouseOver,onMouseOut:s.handleMouseOut},za.default.createElement(t,eT({},s.props,s.state)))},o),Vl(s,c)}return a}(za.default.Component)};Tr.default=iT;var Or={};Object.defineProperty(Or,"__esModule",{value:!0}),Or.active=void 0;var oT=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sT=d,Wa=lT(sT);function lT(e){return e&&e.__esModule?e:{default:e}}function uT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ul(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function cT(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var fT=Or.active=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){cT(a,n);function a(){var i,o,s,c;uT(this,a);for(var u=arguments.length,h=Array(u),l=0;l<u;l++)h[l]=arguments[l];return c=(o=(s=Ul(this,(i=a.__proto__||Object.getPrototypeOf(a)).call.apply(i,[this].concat(h))),s),s.state={active:!1},s.handleMouseDown=function(){return s.setState({active:!0})},s.handleMouseUp=function(){return s.setState({active:!1})},s.render=function(){return Wa.default.createElement(r,{onMouseDown:s.handleMouseDown,onMouseUp:s.handleMouseUp},Wa.default.createElement(t,oT({},s.props,s.state)))},o),Ul(s,c)}return a}(Wa.default.Component)};Or.default=fT;var Ra={};Object.defineProperty(Ra,"__esModule",{value:!0});var dT=function(t,r){var n={},a=function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;n[o]=s};return t===0&&a("first-child"),t===r-1&&a("last-child"),(t===0||t%2===0)&&a("even"),Math.abs(t%2)===1&&a("odd"),a("nth-child",t),n};Ra.default=dT,Object.defineProperty(Be,"__esModule",{value:!0}),Be.ReactCSS=Be.loop=Be.handleActive=Ka=Be.handleHover=Be.hover=void 0;var hT=Er,pT=Lt(hT),vT=Cr,gT=Lt(vT),bT=$r,yT=Lt(bT),mT=Tr,zl=Lt(mT),xT=Or,ST=Lt(xT),wT=Ra,ET=Lt(wT);function Lt(e){return e&&e.__esModule?e:{default:e}}Be.hover=zl.default;var Ka=Be.handleHover=zl.default;Be.handleActive=ST.default,Be.loop=ET.default;var _T=Be.ReactCSS=function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];var i=(0,pT.default)(n),o=(0,gT.default)(t,i);return(0,yT.default)(o)},z=Be.default=_T,CT=function(t,r,n,a,i){var o=i.clientWidth,s=i.clientHeight,c=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,u=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,h=c-(i.getBoundingClientRect().left+window.pageXOffset),l=u-(i.getBoundingClientRect().top+window.pageYOffset);if(n==="vertical"){var f=void 0;if(l<0?f=0:l>s?f=1:f=Math.round(l*100/s)/100,r.a!==f)return{h:r.h,s:r.s,l:r.l,a:f,source:"rgb"}}else{var p=void 0;if(h<0?p=0:h>o?p=1:p=Math.round(h*100/o)/100,a!==p)return{h:r.h,s:r.s,l:r.l,a:p,source:"rgb"}}return null},qa={},$T=function(t,r,n,a){if(typeof document>"u"&&!a)return null;var i=a?new a:document.createElement("canvas");i.width=n*2,i.height=n*2;var o=i.getContext("2d");return o?(o.fillStyle=t,o.fillRect(0,0,i.width,i.height),o.fillStyle=r,o.fillRect(0,0,n,n),o.translate(n,n),o.fillRect(0,0,n,n),i.toDataURL()):null},TT=function(t,r,n,a){var i=t+"-"+r+"-"+n+(a?"-server":"");if(qa[i])return qa[i];var o=$T(t,r,n,a);return qa[i]=o,o},Wl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Dt=function(t){var r=t.white,n=t.grey,a=t.size,i=t.renderers,o=t.borderRadius,s=t.boxShadow,c=t.children,u=z({default:{grid:{borderRadius:o,boxShadow:s,absolute:"0px 0px 0px 0px",background:"url("+TT(r,n,a,i.canvas)+") center left"}}});return d.isValidElement(c)?d.cloneElement(c,Wl({},c.props,{style:Wl({},c.props.style,u.grid)})):d.createElement("div",{style:u.grid})};Dt.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var OT=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},AT=function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function PT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rl(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function MT(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Ya=function(e){MT(t,e);function t(){var r,n,a,i;PT(this,t);for(var o=arguments.length,s=Array(o),c=0;c<o;c++)s[c]=arguments[c];return i=(n=(a=Rl(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(s))),a),a.handleChange=function(u){var h=CT(u,a.props.hsl,a.props.direction,a.props.a,a.container);h&&typeof a.props.onChange=="function"&&a.props.onChange(h,u)},a.handleMouseDown=function(u){a.handleChange(u),window.addEventListener("mousemove",a.handleChange),window.addEventListener("mouseup",a.handleMouseUp)},a.handleMouseUp=function(){a.unbindEventListeners()},a.unbindEventListeners=function(){window.removeEventListener("mousemove",a.handleChange),window.removeEventListener("mouseup",a.handleMouseUp)},n),Rl(a,i)}return AT(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var n=this,a=this.props.rgb,i=z({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("+a.r+","+a.g+","+a.b+`, 0) 0%,
173
178
  rgba(`+a.r+","+a.g+","+a.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:a.a*100+"%"},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("+a.r+","+a.g+","+a.b+`, 0) 0%,
174
- rgba(`+a.r+","+a.g+","+a.b+", 1) 100%)"},pointer:{left:0,top:a.a*100+"%"}},overwrite:AT({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return d.createElement("div",{style:i.alpha},d.createElement("div",{style:i.checkboard},d.createElement(Dt,{renderers:this.props.renderers})),d.createElement("div",{style:i.gradient}),d.createElement("div",{style:i.container,ref:function(s){return n.container=s},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},d.createElement("div",{style:i.pointer},this.props.pointer?d.createElement(this.props.pointer,this.props):d.createElement("div",{style:i.slider}))))}}]),t}(d.PureComponent||d.Component),FT=function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function kT(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function LT(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function DT(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var NT=1,Kl=38,BT=40,HT=[Kl,BT],GT=function(t){return HT.indexOf(t)>-1},VT=function(t){return Number(String(t).replace(/%/g,""))},UT=1,Z=function(e){DT(t,e);function t(r){jT(this,t);var n=LT(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(a){n.setUpdatedValue(a.target.value,a)},n.handleKeyDown=function(a){var i=VT(a.target.value);if(!isNaN(i)&&GT(a.keyCode)){var o=n.getArrowOffset(),s=a.keyCode===Kl?i+o:i-o;n.setUpdatedValue(s,a)}},n.handleDrag=function(a){if(n.props.dragLabel){var i=Math.round(n.props.value+a.movementX);i>=0&&i<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(i),a)}},n.handleMouseDown=function(a){n.props.dragLabel&&(a.preventDefault(),n.handleDrag(a),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(r.value).toUpperCase(),blurValue:String(r.value).toUpperCase()},n.inputId="rc-editable-input-"+UT++,n}return FT(t,[{key:"componentDidUpdate",value:function(n,a){this.props.value!==this.state.value&&(n.value!==this.props.value||a.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(n){return kT({},this.props.label,n)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||NT}},{key:"setUpdatedValue",value:function(n,a){var i=this.props.label?this.getValueObjectWithLabel(n):n;this.props.onChange&&this.props.onChange(i,a),this.setState({value:n})}},{key:"render",value:function(){var n=this,a=z({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 d.createElement("div",{style:a.wrap},d.createElement("input",{id:this.inputId,style:a.input,ref:function(o){return n.input=o},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?d.createElement("label",{htmlFor:this.inputId,style:a.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(d.PureComponent||d.Component),zT=function(t,r,n,a){var i=a.clientWidth,o=a.clientHeight,s=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,c=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,u=s-(a.getBoundingClientRect().left+window.pageXOffset),h=c-(a.getBoundingClientRect().top+window.pageYOffset);if(r==="vertical"){var l=void 0;if(h<0)l=359;else if(h>o)l=0;else{var f=-(h*100/o)+100;l=360*f/100}if(n.h!==l)return{h:l,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var p=void 0;if(u<0)p=0;else if(u>i)p=359;else{var v=u*100/i;p=360*v/100}if(n.h!==p)return{h:p,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null},WT=function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function RT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ql(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function KT(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Nt=function(e){KT(t,e);function t(){var r,n,a,i;RT(this,t);for(var o=arguments.length,s=Array(o),c=0;c<o;c++)s[c]=arguments[c];return i=(n=(a=ql(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(s))),a),a.handleChange=function(u){var h=zT(u,a.props.direction,a.props.hsl,a.container);h&&typeof a.props.onChange=="function"&&a.props.onChange(h,u)},a.handleMouseDown=function(u){a.handleChange(u),window.addEventListener("mousemove",a.handleChange),window.addEventListener("mouseup",a.handleMouseUp)},a.handleMouseUp=function(){a.unbindEventListeners()},n),ql(a,i)}return WT(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 n=this,a=this.props.direction,i=a===void 0?"horizontal":a,o=z({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:this.props.hsl.h*100/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:-(this.props.hsl.h*100/360)+100+"%"}}},{vertical:i==="vertical"});return d.createElement("div",{style:o.hue},d.createElement("div",{className:"hue-"+i,style:o.container,ref:function(c){return n.container=c},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},d.createElement("style",null,`
179
+ rgba(`+a.r+","+a.g+","+a.b+", 1) 100%)"},pointer:{left:0,top:a.a*100+"%"}},overwrite:OT({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return d.createElement("div",{style:i.alpha},d.createElement("div",{style:i.checkboard},d.createElement(Dt,{renderers:this.props.renderers})),d.createElement("div",{style:i.gradient}),d.createElement("div",{style:i.container,ref:function(s){return n.container=s},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},d.createElement("div",{style:i.pointer},this.props.pointer?d.createElement(this.props.pointer,this.props):d.createElement("div",{style:i.slider}))))}}]),t}(d.PureComponent||d.Component),IT=function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function FT(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jT(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function LT(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var DT=1,Kl=38,NT=40,BT=[Kl,NT],HT=function(t){return BT.indexOf(t)>-1},GT=function(t){return Number(String(t).replace(/%/g,""))},VT=1,Z=function(e){LT(t,e);function t(r){kT(this,t);var n=jT(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(a){n.setUpdatedValue(a.target.value,a)},n.handleKeyDown=function(a){var i=GT(a.target.value);if(!isNaN(i)&&HT(a.keyCode)){var o=n.getArrowOffset(),s=a.keyCode===Kl?i+o:i-o;n.setUpdatedValue(s,a)}},n.handleDrag=function(a){if(n.props.dragLabel){var i=Math.round(n.props.value+a.movementX);i>=0&&i<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(i),a)}},n.handleMouseDown=function(a){n.props.dragLabel&&(a.preventDefault(),n.handleDrag(a),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(r.value).toUpperCase(),blurValue:String(r.value).toUpperCase()},n.inputId="rc-editable-input-"+VT++,n}return IT(t,[{key:"componentDidUpdate",value:function(n,a){this.props.value!==this.state.value&&(n.value!==this.props.value||a.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(n){return FT({},this.props.label,n)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||DT}},{key:"setUpdatedValue",value:function(n,a){var i=this.props.label?this.getValueObjectWithLabel(n):n;this.props.onChange&&this.props.onChange(i,a),this.setState({value:n})}},{key:"render",value:function(){var n=this,a=z({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 d.createElement("div",{style:a.wrap},d.createElement("input",{id:this.inputId,style:a.input,ref:function(o){return n.input=o},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?d.createElement("label",{htmlFor:this.inputId,style:a.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(d.PureComponent||d.Component),UT=function(t,r,n,a){var i=a.clientWidth,o=a.clientHeight,s=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,c=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,u=s-(a.getBoundingClientRect().left+window.pageXOffset),h=c-(a.getBoundingClientRect().top+window.pageYOffset);if(r==="vertical"){var l=void 0;if(h<0)l=359;else if(h>o)l=0;else{var f=-(h*100/o)+100;l=360*f/100}if(n.h!==l)return{h:l,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var p=void 0;if(u<0)p=0;else if(u>i)p=359;else{var v=u*100/i;p=360*v/100}if(n.h!==p)return{h:p,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null},zT=function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function WT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ql(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function RT(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Nt=function(e){RT(t,e);function t(){var r,n,a,i;WT(this,t);for(var o=arguments.length,s=Array(o),c=0;c<o;c++)s[c]=arguments[c];return i=(n=(a=ql(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(s))),a),a.handleChange=function(u){var h=UT(u,a.props.direction,a.props.hsl,a.container);h&&typeof a.props.onChange=="function"&&a.props.onChange(h,u)},a.handleMouseDown=function(u){a.handleChange(u),window.addEventListener("mousemove",a.handleChange),window.addEventListener("mouseup",a.handleMouseUp)},a.handleMouseUp=function(){a.unbindEventListeners()},n),ql(a,i)}return zT(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 n=this,a=this.props.direction,i=a===void 0?"horizontal":a,o=z({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:this.props.hsl.h*100/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:-(this.props.hsl.h*100/360)+100+"%"}}},{vertical:i==="vertical"});return d.createElement("div",{style:o.hue},d.createElement("div",{className:"hue-"+i,style:o.container,ref:function(c){return n.container=c},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},d.createElement("style",null,`
175
180
  .hue-horizontal {
176
181
  background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0
177
182
  33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
@@ -185,26 +190,26 @@
185
190
  background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,
186
191
  #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
187
192
  }
188
- `),d.createElement("div",{style:o.pointer},this.props.pointer?d.createElement(this.props.pointer,this.props):d.createElement("div",{style:o.slider}))))}}]),t}(d.PureComponent||d.Component),Ya={exports:{}},ln={exports:{}},re={};/** @license React v16.13.1
193
+ `),d.createElement("div",{style:o.pointer},this.props.pointer?d.createElement(this.props.pointer,this.props):d.createElement("div",{style:o.slider}))))}}]),t}(d.PureComponent||d.Component),Xa={exports:{}},un={exports:{}},re={};/** @license React v16.13.1
189
194
  * react-is.production.min.js
190
195
  *
191
196
  * Copyright (c) Facebook, Inc. and its affiliates.
192
197
  *
193
198
  * This source code is licensed under the MIT license found in the
194
199
  * LICENSE file in the root directory of this source tree.
195
- */var Yl;function qT(){if(Yl)return re;Yl=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,l=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function _(b){if(typeof b=="object"&&b!==null){var T=b.$$typeof;switch(T){case t:switch(b=b.type,b){case c:case u:case n:case i:case a:case l:return b;default:switch(b=b&&b.$$typeof,b){case s:case h:case v:case p:case o:return b;default:return T}}case r:return T}}}function S(b){return _(b)===u}return re.AsyncMode=c,re.ConcurrentMode=u,re.ContextConsumer=s,re.ContextProvider=o,re.Element=t,re.ForwardRef=h,re.Fragment=n,re.Lazy=v,re.Memo=p,re.Portal=r,re.Profiler=i,re.StrictMode=a,re.Suspense=l,re.isAsyncMode=function(b){return S(b)||_(b)===c},re.isConcurrentMode=S,re.isContextConsumer=function(b){return _(b)===s},re.isContextProvider=function(b){return _(b)===o},re.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===t},re.isForwardRef=function(b){return _(b)===h},re.isFragment=function(b){return _(b)===n},re.isLazy=function(b){return _(b)===v},re.isMemo=function(b){return _(b)===p},re.isPortal=function(b){return _(b)===r},re.isProfiler=function(b){return _(b)===i},re.isStrictMode=function(b){return _(b)===a},re.isSuspense=function(b){return _(b)===l},re.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===n||b===u||b===i||b===a||b===l||b===f||typeof b=="object"&&b!==null&&(b.$$typeof===v||b.$$typeof===p||b.$$typeof===o||b.$$typeof===s||b.$$typeof===h||b.$$typeof===y||b.$$typeof===x||b.$$typeof===C||b.$$typeof===g)},re.typeOf=_,re}var ne={};/** @license React v16.13.1
200
+ */var Yl;function KT(){if(Yl)return re;Yl=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,l=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function _(b){if(typeof b=="object"&&b!==null){var T=b.$$typeof;switch(T){case t:switch(b=b.type,b){case c:case u:case n:case i:case a:case l:return b;default:switch(b=b&&b.$$typeof,b){case s:case h:case v:case p:case o:return b;default:return T}}case r:return T}}}function S(b){return _(b)===u}return re.AsyncMode=c,re.ConcurrentMode=u,re.ContextConsumer=s,re.ContextProvider=o,re.Element=t,re.ForwardRef=h,re.Fragment=n,re.Lazy=v,re.Memo=p,re.Portal=r,re.Profiler=i,re.StrictMode=a,re.Suspense=l,re.isAsyncMode=function(b){return S(b)||_(b)===c},re.isConcurrentMode=S,re.isContextConsumer=function(b){return _(b)===s},re.isContextProvider=function(b){return _(b)===o},re.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===t},re.isForwardRef=function(b){return _(b)===h},re.isFragment=function(b){return _(b)===n},re.isLazy=function(b){return _(b)===v},re.isMemo=function(b){return _(b)===p},re.isPortal=function(b){return _(b)===r},re.isProfiler=function(b){return _(b)===i},re.isStrictMode=function(b){return _(b)===a},re.isSuspense=function(b){return _(b)===l},re.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===n||b===u||b===i||b===a||b===l||b===f||typeof b=="object"&&b!==null&&(b.$$typeof===v||b.$$typeof===p||b.$$typeof===o||b.$$typeof===s||b.$$typeof===h||b.$$typeof===y||b.$$typeof===x||b.$$typeof===C||b.$$typeof===g)},re.typeOf=_,re}var ne={};/** @license React v16.13.1
196
201
  * react-is.development.js
197
202
  *
198
203
  * Copyright (c) Facebook, Inc. and its affiliates.
199
204
  *
200
205
  * This source code is licensed under the MIT license found in the
201
206
  * LICENSE file in the root directory of this source tree.
202
- */var Xl;function YT(){return Xl||(Xl=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,l=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function _(E){return typeof E=="string"||typeof E=="function"||E===n||E===u||E===i||E===a||E===l||E===f||typeof E=="object"&&E!==null&&(E.$$typeof===v||E.$$typeof===p||E.$$typeof===o||E.$$typeof===s||E.$$typeof===h||E.$$typeof===y||E.$$typeof===x||E.$$typeof===C||E.$$typeof===g)}function S(E){if(typeof E=="object"&&E!==null){var Ce=E.$$typeof;switch(Ce){case t:var We=E.type;switch(We){case c:case u:case n:case i:case a:case l:return We;default:var Et=We&&We.$$typeof;switch(Et){case s:case h:case v:case p:case o:return Et;default:return Ce}}case r:return Ce}}}var b=c,T=u,k=s,W=o,q=t,ge=h,ae=n,fe=v,xe=p,be=r,_e=i,oe=a,ye=l,Oe=!1;function Ae(E){return Oe||(Oe=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),$(E)||S(E)===c}function $(E){return S(E)===u}function A(E){return S(E)===s}function U(E){return S(E)===o}function G(E){return typeof E=="object"&&E!==null&&E.$$typeof===t}function M(E){return S(E)===h}function D(E){return S(E)===n}function N(E){return S(E)===v}function H(E){return S(E)===p}function P(E){return S(E)===r}function R(E){return S(E)===i}function X(E){return S(E)===a}function Se(E){return S(E)===l}ne.AsyncMode=b,ne.ConcurrentMode=T,ne.ContextConsumer=k,ne.ContextProvider=W,ne.Element=q,ne.ForwardRef=ge,ne.Fragment=ae,ne.Lazy=fe,ne.Memo=xe,ne.Portal=be,ne.Profiler=_e,ne.StrictMode=oe,ne.Suspense=ye,ne.isAsyncMode=Ae,ne.isConcurrentMode=$,ne.isContextConsumer=A,ne.isContextProvider=U,ne.isElement=G,ne.isForwardRef=M,ne.isFragment=D,ne.isLazy=N,ne.isMemo=H,ne.isPortal=P,ne.isProfiler=R,ne.isStrictMode=X,ne.isSuspense=Se,ne.isValidElementType=_,ne.typeOf=S}()),ne}var Jl;function Zl(){return Jl||(Jl=1,process.env.NODE_ENV==="production"?ln.exports=qT():ln.exports=YT()),ln.exports}/*
207
+ */var Xl;function qT(){return Xl||(Xl=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,l=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function _(E){return typeof E=="string"||typeof E=="function"||E===n||E===u||E===i||E===a||E===l||E===f||typeof E=="object"&&E!==null&&(E.$$typeof===v||E.$$typeof===p||E.$$typeof===o||E.$$typeof===s||E.$$typeof===h||E.$$typeof===y||E.$$typeof===x||E.$$typeof===C||E.$$typeof===g)}function S(E){if(typeof E=="object"&&E!==null){var Ce=E.$$typeof;switch(Ce){case t:var We=E.type;switch(We){case c:case u:case n:case i:case a:case l:return We;default:var Et=We&&We.$$typeof;switch(Et){case s:case h:case v:case p:case o:return Et;default:return Ce}}case r:return Ce}}}var b=c,T=u,j=s,W=o,q=t,ge=h,ae=n,fe=v,xe=p,be=r,_e=i,oe=a,ye=l,Oe=!1;function Ae(E){return Oe||(Oe=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),$(E)||S(E)===c}function $(E){return S(E)===u}function A(E){return S(E)===s}function U(E){return S(E)===o}function G(E){return typeof E=="object"&&E!==null&&E.$$typeof===t}function M(E){return S(E)===h}function D(E){return S(E)===n}function N(E){return S(E)===v}function H(E){return S(E)===p}function P(E){return S(E)===r}function R(E){return S(E)===i}function X(E){return S(E)===a}function Se(E){return S(E)===l}ne.AsyncMode=b,ne.ConcurrentMode=T,ne.ContextConsumer=j,ne.ContextProvider=W,ne.Element=q,ne.ForwardRef=ge,ne.Fragment=ae,ne.Lazy=fe,ne.Memo=xe,ne.Portal=be,ne.Profiler=_e,ne.StrictMode=oe,ne.Suspense=ye,ne.isAsyncMode=Ae,ne.isConcurrentMode=$,ne.isContextConsumer=A,ne.isContextProvider=U,ne.isElement=G,ne.isForwardRef=M,ne.isFragment=D,ne.isLazy=N,ne.isMemo=H,ne.isPortal=P,ne.isProfiler=R,ne.isStrictMode=X,ne.isSuspense=Se,ne.isValidElementType=_,ne.typeOf=S}()),ne}var Jl;function Zl(){return Jl||(Jl=1,process.env.NODE_ENV==="production"?un.exports=KT():un.exports=qT()),un.exports}/*
203
208
  object-assign
204
209
  (c) Sindre Sorhus
205
210
  @license MIT
206
- */var Xa,Ql;function XT(){if(Ql)return Xa;Ql=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function a(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var c=Object.getOwnPropertyNames(o).map(function(h){return o[h]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(h){u[h]=h}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Xa=a()?Object.assign:function(i,o){for(var s,c=n(i),u,h=1;h<arguments.length;h++){s=Object(arguments[h]);for(var l in s)t.call(s,l)&&(c[l]=s[l]);if(e){u=e(s);for(var f=0;f<u.length;f++)r.call(s,u[f])&&(c[u[f]]=s[u[f]])}}return c},Xa}var Ja,eu;function Za(){if(eu)return Ja;eu=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ja=e,Ja}var Qa,tu;function ru(){return tu||(tu=1,Qa=Function.call.bind(Object.prototype.hasOwnProperty)),Qa}var ei,nu;function JT(){if(nu)return ei;nu=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Za(),r={},n=ru();e=function(i){var o="Warning: "+i;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function a(i,o,s,c,u){if(process.env.NODE_ENV!=="production"){for(var h in i)if(n(i,h)){var l;try{if(typeof i[h]!="function"){var f=Error((c||"React class")+": "+s+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}l=i[h](o,h,c,s,null,t)}catch(v){l=v}if(l&&!(l instanceof Error)&&e((c||"React class")+": type specification of "+s+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof l+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),l instanceof Error&&!(l.message in r)){r[l.message]=!0;var p=u?u():"";e("Failed "+s+" type: "+l.message+(p??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},ei=a,ei}var ti,au;function ZT(){if(au)return ti;au=1;var e=Zl(),t=XT(),r=Za(),n=ru(),a=JT(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(s){var c="Warning: "+s;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function o(){return null}return ti=function(s,c){var u=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function l($){var A=$&&(u&&$[u]||$[h]);if(typeof A=="function")return A}var f="<<anonymous>>",p={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:C(),arrayOf:_,element:S(),elementType:b(),instanceOf:T,node:ge(),objectOf:W,oneOf:k,oneOfType:q,shape:fe,exact:xe};function v($,A){return $===A?$!==0||1/$===1/A:$!==$&&A!==A}function g($,A){this.message=$,this.data=A&&typeof A=="object"?A:{},this.stack=""}g.prototype=Error.prototype;function y($){if(process.env.NODE_ENV!=="production")var A={},U=0;function G(D,N,H,P,R,X,Se){if(P=P||f,X=X||H,Se!==r){if(c){var E=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw E.name="Invariant Violation",E}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Ce=P+":"+H;!A[Ce]&&U<3&&(i("You are manually calling a React.PropTypes validation function for the `"+X+"` prop on `"+P+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),A[Ce]=!0,U++)}}return N[H]==null?D?N[H]===null?new g("The "+R+" `"+X+"` is marked as required "+("in `"+P+"`, but its value is `null`.")):new g("The "+R+" `"+X+"` is marked as required in "+("`"+P+"`, but its value is `undefined`.")):null:$(N,H,P,R,X)}var M=G.bind(null,!1);return M.isRequired=G.bind(null,!0),M}function x($){function A(U,G,M,D,N,H){var P=U[G],R=oe(P);if(R!==$){var X=ye(P);return new g("Invalid "+D+" `"+N+"` of type "+("`"+X+"` supplied to `"+M+"`, expected ")+("`"+$+"`."),{expectedType:$})}return null}return y(A)}function C(){return y(o)}function _($){function A(U,G,M,D,N){if(typeof $!="function")return new g("Property `"+N+"` of component `"+M+"` has invalid PropType notation inside arrayOf.");var H=U[G];if(!Array.isArray(H)){var P=oe(H);return new g("Invalid "+D+" `"+N+"` of type "+("`"+P+"` supplied to `"+M+"`, expected an array."))}for(var R=0;R<H.length;R++){var X=$(H,R,M,D,N+"["+R+"]",r);if(X instanceof Error)return X}return null}return y(A)}function S(){function $(A,U,G,M,D){var N=A[U];if(!s(N)){var H=oe(N);return new g("Invalid "+M+" `"+D+"` of type "+("`"+H+"` supplied to `"+G+"`, expected a single ReactElement."))}return null}return y($)}function b(){function $(A,U,G,M,D){var N=A[U];if(!e.isValidElementType(N)){var H=oe(N);return new g("Invalid "+M+" `"+D+"` of type "+("`"+H+"` supplied to `"+G+"`, expected a single ReactElement type."))}return null}return y($)}function T($){function A(U,G,M,D,N){if(!(U[G]instanceof $)){var H=$.name||f,P=Ae(U[G]);return new g("Invalid "+D+" `"+N+"` of type "+("`"+P+"` supplied to `"+M+"`, expected ")+("instance of `"+H+"`."))}return null}return y(A)}function k($){if(!Array.isArray($))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),o;function A(U,G,M,D,N){for(var H=U[G],P=0;P<$.length;P++)if(v(H,$[P]))return null;var R=JSON.stringify($,function(Se,E){var Ce=ye(E);return Ce==="symbol"?String(E):E});return new g("Invalid "+D+" `"+N+"` of value `"+String(H)+"` "+("supplied to `"+M+"`, expected one of "+R+"."))}return y(A)}function W($){function A(U,G,M,D,N){if(typeof $!="function")return new g("Property `"+N+"` of component `"+M+"` has invalid PropType notation inside objectOf.");var H=U[G],P=oe(H);if(P!=="object")return new g("Invalid "+D+" `"+N+"` of type "+("`"+P+"` supplied to `"+M+"`, expected an object."));for(var R in H)if(n(H,R)){var X=$(H,R,M,D,N+"."+R,r);if(X instanceof Error)return X}return null}return y(A)}function q($){if(!Array.isArray($))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var A=0;A<$.length;A++){var U=$[A];if(typeof U!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Oe(U)+" at index "+A+"."),o}function G(M,D,N,H,P){for(var R=[],X=0;X<$.length;X++){var Se=$[X],E=Se(M,D,N,H,P,r);if(E==null)return null;E.data&&n(E.data,"expectedType")&&R.push(E.data.expectedType)}var Ce=R.length>0?", expected one of type ["+R.join(", ")+"]":"";return new g("Invalid "+H+" `"+P+"` supplied to "+("`"+N+"`"+Ce+"."))}return y(G)}function ge(){function $(A,U,G,M,D){return be(A[U])?null:new g("Invalid "+M+" `"+D+"` supplied to "+("`"+G+"`, expected a ReactNode."))}return y($)}function ae($,A,U,G,M){return new g(($||"React class")+": "+A+" type `"+U+"."+G+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+M+"`.")}function fe($){function A(U,G,M,D,N){var H=U[G],P=oe(H);if(P!=="object")return new g("Invalid "+D+" `"+N+"` of type `"+P+"` "+("supplied to `"+M+"`, expected `object`."));for(var R in $){var X=$[R];if(typeof X!="function")return ae(M,D,N,R,ye(X));var Se=X(H,R,M,D,N+"."+R,r);if(Se)return Se}return null}return y(A)}function xe($){function A(U,G,M,D,N){var H=U[G],P=oe(H);if(P!=="object")return new g("Invalid "+D+" `"+N+"` of type `"+P+"` "+("supplied to `"+M+"`, expected `object`."));var R=t({},U[G],$);for(var X in R){var Se=$[X];if(n($,X)&&typeof Se!="function")return ae(M,D,N,X,ye(Se));if(!Se)return new g("Invalid "+D+" `"+N+"` key `"+X+"` supplied to `"+M+"`.\nBad object: "+JSON.stringify(U[G],null," ")+`
207
- Valid keys: `+JSON.stringify(Object.keys($),null," "));var E=Se(H,X,M,D,N+"."+X,r);if(E)return E}return null}return y(A)}function be($){switch(typeof $){case"number":case"string":case"undefined":return!0;case"boolean":return!$;case"object":if(Array.isArray($))return $.every(be);if($===null||s($))return!0;var A=l($);if(A){var U=A.call($),G;if(A!==$.entries){for(;!(G=U.next()).done;)if(!be(G.value))return!1}else for(;!(G=U.next()).done;){var M=G.value;if(M&&!be(M[1]))return!1}}else return!1;return!0;default:return!1}}function _e($,A){return $==="symbol"?!0:A?A["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&A instanceof Symbol:!1}function oe($){var A=typeof $;return Array.isArray($)?"array":$ instanceof RegExp?"object":_e(A,$)?"symbol":A}function ye($){if(typeof $>"u"||$===null)return""+$;var A=oe($);if(A==="object"){if($ instanceof Date)return"date";if($ instanceof RegExp)return"regexp"}return A}function Oe($){var A=ye($);switch(A){case"array":case"object":return"an "+A;case"boolean":case"date":case"regexp":return"a "+A;default:return A}}function Ae($){return!$.constructor||!$.constructor.name?f:$.constructor.name}return p.checkPropTypes=a,p.resetWarningCache=a.resetWarningCache,p.PropTypes=p,p},ti}var ri,iu;function QT(){if(iu)return ri;iu=1;var e=Za();function t(){}function r(){}return r.resetWarningCache=t,ri=function(){function n(o,s,c,u,h,l){if(l!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}n.isRequired=n;function a(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:a,element:n,elementType:n,instanceOf:a,node:n,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i},ri}if(process.env.NODE_ENV!=="production"){var e2=Zl(),t2=!0;Ya.exports=ZT()(e2.isElement,t2)}else Ya.exports=QT()();var r2=Ya.exports;const O=_t(r2);function ni(e,t,r){(r!==void 0&&!lr(e[t],r)||r===void 0&&!(t in e))&&An(e,t,r)}function n2(e){return function(t,r,n){for(var a=-1,i=Object(t),o=n(t),s=o.length;s--;){var c=o[++a];if(r(i[c],c,i)===!1)break}return t}}var ou=n2();function a2(e){return qe(e)&&Pt(e)}function ai(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function i2(e){return fr(e,vr(e))}function o2(e,t,r,n,a,i,o){var s=ai(e,r),c=ai(t,r),u=o.get(c);if(u){ni(e,r,u);return}var h=i?i(s,c,r+"",e,t,o):void 0,l=h===void 0;if(l){var f=$e(c),p=!f&&dr(c),v=!f&&!p&&kn(c);h=c,f||p||v?$e(s)?h=s:a2(s)?h=Ln(s):p?(l=!1,h=go(c,!0)):v?(l=!1,h=Ao(c,!0)):h=[]:$n(c)||zr(c)?(h=s,zr(s)?h=i2(s):(!ke(s)||Tn(s))&&(h=Mo(c))):l=!1}l&&(o.set(c,h),a(h,c,n,i,o),o.delete(c)),ni(e,r,h)}function su(e,t,r,n,a){e!==t&&ou(t,function(i,o){if(a||(a=new Ge),ke(i))o2(e,t,o,r,su,n,a);else{var s=n?n(ai(e,o),i,o+"",e,t,a):void 0;s===void 0&&(s=i),ni(e,o,s)}},vr)}function un(e){return e}function s2(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var lu=Math.max;function l2(e,t,r){return t=lu(t===void 0?e.length-1:t,0),function(){for(var n=arguments,a=-1,i=lu(n.length-t,0),o=Array(i);++a<i;)o[a]=n[t+a];a=-1;for(var s=Array(t+1);++a<t;)s[a]=n[a];return s[t]=r(o),s2(e,this,s)}}function u2(e){return function(){return e}}var c2=Ur?function(e,t){return Ur(e,"toString",{configurable:!0,enumerable:!1,value:u2(t),writable:!0})}:un,f2=800,d2=16,h2=Date.now;function p2(e){var t=0,r=0;return function(){var n=h2(),a=d2-(n-r);if(r=n,a>0){if(++t>=f2)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var v2=p2(c2);function g2(e,t){return v2(l2(e,t,un),e+"")}function b2(e,t,r){if(!ke(r))return!1;var n=typeof t;return(n=="number"?Pt(r)&&Pn(t,r.length):n=="string"&&t in r)?lr(r[t],e):!1}function y2(e){return g2(function(t,r){var n=-1,a=r.length,i=a>1?r[a-1]:void 0,o=a>2?r[2]:void 0;for(i=e.length>3&&typeof i=="function"?(a--,i):void 0,o&&b2(r[0],r[1],o)&&(i=a<3?void 0:i,a=1),t=Object(t);++n<a;){var s=r[n];s&&e(t,s,n,i)}return t})}var Ie=y2(function(e,t,r){su(e,t,r)}),Ar=function(t){var r=t.zDepth,n=t.radius,a=t.background,i=t.children,o=t.styles,s=o===void 0?{}:o,c=z(Ie({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+r+"px "+r*4+"px rgba(0,0,0,.24)",borderRadius:n,background:a}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},s),{"zDepth-1":r===1});return d.createElement("div",{style:c.wrap},d.createElement("div",{style:c.bg}),d.createElement("div",{style:c.content},i))};Ar.propTypes={background:O.string,zDepth:O.oneOf([0,1,2,3,4,5]),radius:O.number,styles:O.object},Ar.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}};var ii=function(){return He.Date.now()},m2=/\s/;function x2(e){for(var t=e.length;t--&&m2.test(e.charAt(t)););return t}var S2=/^\s+/;function w2(e){return e&&e.slice(0,x2(e)+1).replace(S2,"")}var uu=NaN,E2=/^[-+]0x[0-9a-f]+$/i,_2=/^0b[01]+$/i,C2=/^0o[0-7]+$/i,$2=parseInt;function cu(e){if(typeof e=="number")return e;if(gr(e))return uu;if(ke(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ke(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=w2(e);var r=_2.test(e);return r||C2.test(e)?$2(e.slice(2),r?2:8):E2.test(e)?uu:+e}var T2="Expected a function",O2=Math.max,A2=Math.min;function fu(e,t,r){var n,a,i,o,s,c,u=0,h=!1,l=!1,f=!0;if(typeof e!="function")throw new TypeError(T2);t=cu(t)||0,ke(r)&&(h=!!r.leading,l="maxWait"in r,i=l?O2(cu(r.maxWait)||0,t):i,f="trailing"in r?!!r.trailing:f);function p(T){var k=n,W=a;return n=a=void 0,u=T,o=e.apply(W,k),o}function v(T){return u=T,s=setTimeout(x,t),h?p(T):o}function g(T){var k=T-c,W=T-u,q=t-k;return l?A2(q,i-W):q}function y(T){var k=T-c,W=T-u;return c===void 0||k>=t||k<0||l&&W>=i}function x(){var T=ii();if(y(T))return C(T);s=setTimeout(x,g(T))}function C(T){return s=void 0,f&&n?p(T):(n=a=void 0,o)}function _(){s!==void 0&&clearTimeout(s),u=0,n=c=a=s=void 0}function S(){return s===void 0?o:C(ii())}function b(){var T=ii(),k=y(T);if(n=arguments,a=this,c=T,k){if(s===void 0)return v(c);if(l)return clearTimeout(s),s=setTimeout(x,t),p(c)}return s===void 0&&(s=setTimeout(x,t)),o}return b.cancel=_,b.flush=S,b}var P2="Expected a function";function M2(e,t,r){var n=!0,a=!0;if(typeof e!="function")throw new TypeError(P2);return ke(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),fu(e,t,{leading:n,maxWait:t,trailing:a})}var I2=function(t,r,n){var a=n.getBoundingClientRect(),i=a.width,o=a.height,s=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,c=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,u=s-(n.getBoundingClientRect().left+window.pageXOffset),h=c-(n.getBoundingClientRect().top+window.pageYOffset);u<0?u=0:u>i&&(u=i),h<0?h=0:h>o&&(h=o);var l=u/i,f=1-h/o;return{h:r.h,s:l,v:f,a:r.a,source:"hsv"}},F2=function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function k2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j2(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function L2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var cn=function(e){L2(t,e);function t(r){k2(this,t);var n=j2(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r));return n.handleChange=function(a){typeof n.props.onChange=="function"&&n.throttle(n.props.onChange,I2(a,n.props.hsl,n.container),a)},n.handleMouseDown=function(a){n.handleChange(a);var i=n.getContainerRenderWindow();i.addEventListener("mousemove",n.handleChange),i.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.throttle=M2(function(a,i,o){a(i,o)},50),n}return F2(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var n=this.container,a=window;!a.document.contains(n)&&a.parent!==a;)a=a.parent;return a}},{key:"unbindEventListeners",value:function(){var n=this.getContainerRenderWindow();n.removeEventListener("mousemove",this.handleChange),n.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var n=this,a=this.props.style||{},i=a.color,o=a.white,s=a.black,c=a.pointer,u=a.circle,h=z({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:-(this.props.hsv.v*100)+100+"%",left:this.props.hsv.s*100+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:`0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),
211
+ */var Ja,Ql;function YT(){if(Ql)return Ja;Ql=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function a(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var c=Object.getOwnPropertyNames(o).map(function(h){return o[h]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(h){u[h]=h}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Ja=a()?Object.assign:function(i,o){for(var s,c=n(i),u,h=1;h<arguments.length;h++){s=Object(arguments[h]);for(var l in s)t.call(s,l)&&(c[l]=s[l]);if(e){u=e(s);for(var f=0;f<u.length;f++)r.call(s,u[f])&&(c[u[f]]=s[u[f]])}}return c},Ja}var Za,eu;function Qa(){if(eu)return Za;eu=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Za=e,Za}var ei,tu;function ru(){return tu||(tu=1,ei=Function.call.bind(Object.prototype.hasOwnProperty)),ei}var ti,nu;function XT(){if(nu)return ti;nu=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Qa(),r={},n=ru();e=function(i){var o="Warning: "+i;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function a(i,o,s,c,u){if(process.env.NODE_ENV!=="production"){for(var h in i)if(n(i,h)){var l;try{if(typeof i[h]!="function"){var f=Error((c||"React class")+": "+s+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}l=i[h](o,h,c,s,null,t)}catch(v){l=v}if(l&&!(l instanceof Error)&&e((c||"React class")+": type specification of "+s+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof l+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),l instanceof Error&&!(l.message in r)){r[l.message]=!0;var p=u?u():"";e("Failed "+s+" type: "+l.message+(p??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},ti=a,ti}var ri,au;function JT(){if(au)return ri;au=1;var e=Zl(),t=YT(),r=Qa(),n=ru(),a=XT(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(s){var c="Warning: "+s;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function o(){return null}return ri=function(s,c){var u=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function l($){var A=$&&(u&&$[u]||$[h]);if(typeof A=="function")return A}var f="<<anonymous>>",p={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:C(),arrayOf:_,element:S(),elementType:b(),instanceOf:T,node:ge(),objectOf:W,oneOf:j,oneOfType:q,shape:fe,exact:xe};function v($,A){return $===A?$!==0||1/$===1/A:$!==$&&A!==A}function g($,A){this.message=$,this.data=A&&typeof A=="object"?A:{},this.stack=""}g.prototype=Error.prototype;function y($){if(process.env.NODE_ENV!=="production")var A={},U=0;function G(D,N,H,P,R,X,Se){if(P=P||f,X=X||H,Se!==r){if(c){var E=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw E.name="Invariant Violation",E}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Ce=P+":"+H;!A[Ce]&&U<3&&(i("You are manually calling a React.PropTypes validation function for the `"+X+"` prop on `"+P+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),A[Ce]=!0,U++)}}return N[H]==null?D?N[H]===null?new g("The "+R+" `"+X+"` is marked as required "+("in `"+P+"`, but its value is `null`.")):new g("The "+R+" `"+X+"` is marked as required in "+("`"+P+"`, but its value is `undefined`.")):null:$(N,H,P,R,X)}var M=G.bind(null,!1);return M.isRequired=G.bind(null,!0),M}function x($){function A(U,G,M,D,N,H){var P=U[G],R=oe(P);if(R!==$){var X=ye(P);return new g("Invalid "+D+" `"+N+"` of type "+("`"+X+"` supplied to `"+M+"`, expected ")+("`"+$+"`."),{expectedType:$})}return null}return y(A)}function C(){return y(o)}function _($){function A(U,G,M,D,N){if(typeof $!="function")return new g("Property `"+N+"` of component `"+M+"` has invalid PropType notation inside arrayOf.");var H=U[G];if(!Array.isArray(H)){var P=oe(H);return new g("Invalid "+D+" `"+N+"` of type "+("`"+P+"` supplied to `"+M+"`, expected an array."))}for(var R=0;R<H.length;R++){var X=$(H,R,M,D,N+"["+R+"]",r);if(X instanceof Error)return X}return null}return y(A)}function S(){function $(A,U,G,M,D){var N=A[U];if(!s(N)){var H=oe(N);return new g("Invalid "+M+" `"+D+"` of type "+("`"+H+"` supplied to `"+G+"`, expected a single ReactElement."))}return null}return y($)}function b(){function $(A,U,G,M,D){var N=A[U];if(!e.isValidElementType(N)){var H=oe(N);return new g("Invalid "+M+" `"+D+"` of type "+("`"+H+"` supplied to `"+G+"`, expected a single ReactElement type."))}return null}return y($)}function T($){function A(U,G,M,D,N){if(!(U[G]instanceof $)){var H=$.name||f,P=Ae(U[G]);return new g("Invalid "+D+" `"+N+"` of type "+("`"+P+"` supplied to `"+M+"`, expected ")+("instance of `"+H+"`."))}return null}return y(A)}function j($){if(!Array.isArray($))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),o;function A(U,G,M,D,N){for(var H=U[G],P=0;P<$.length;P++)if(v(H,$[P]))return null;var R=JSON.stringify($,function(Se,E){var Ce=ye(E);return Ce==="symbol"?String(E):E});return new g("Invalid "+D+" `"+N+"` of value `"+String(H)+"` "+("supplied to `"+M+"`, expected one of "+R+"."))}return y(A)}function W($){function A(U,G,M,D,N){if(typeof $!="function")return new g("Property `"+N+"` of component `"+M+"` has invalid PropType notation inside objectOf.");var H=U[G],P=oe(H);if(P!=="object")return new g("Invalid "+D+" `"+N+"` of type "+("`"+P+"` supplied to `"+M+"`, expected an object."));for(var R in H)if(n(H,R)){var X=$(H,R,M,D,N+"."+R,r);if(X instanceof Error)return X}return null}return y(A)}function q($){if(!Array.isArray($))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var A=0;A<$.length;A++){var U=$[A];if(typeof U!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Oe(U)+" at index "+A+"."),o}function G(M,D,N,H,P){for(var R=[],X=0;X<$.length;X++){var Se=$[X],E=Se(M,D,N,H,P,r);if(E==null)return null;E.data&&n(E.data,"expectedType")&&R.push(E.data.expectedType)}var Ce=R.length>0?", expected one of type ["+R.join(", ")+"]":"";return new g("Invalid "+H+" `"+P+"` supplied to "+("`"+N+"`"+Ce+"."))}return y(G)}function ge(){function $(A,U,G,M,D){return be(A[U])?null:new g("Invalid "+M+" `"+D+"` supplied to "+("`"+G+"`, expected a ReactNode."))}return y($)}function ae($,A,U,G,M){return new g(($||"React class")+": "+A+" type `"+U+"."+G+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+M+"`.")}function fe($){function A(U,G,M,D,N){var H=U[G],P=oe(H);if(P!=="object")return new g("Invalid "+D+" `"+N+"` of type `"+P+"` "+("supplied to `"+M+"`, expected `object`."));for(var R in $){var X=$[R];if(typeof X!="function")return ae(M,D,N,R,ye(X));var Se=X(H,R,M,D,N+"."+R,r);if(Se)return Se}return null}return y(A)}function xe($){function A(U,G,M,D,N){var H=U[G],P=oe(H);if(P!=="object")return new g("Invalid "+D+" `"+N+"` of type `"+P+"` "+("supplied to `"+M+"`, expected `object`."));var R=t({},U[G],$);for(var X in R){var Se=$[X];if(n($,X)&&typeof Se!="function")return ae(M,D,N,X,ye(Se));if(!Se)return new g("Invalid "+D+" `"+N+"` key `"+X+"` supplied to `"+M+"`.\nBad object: "+JSON.stringify(U[G],null," ")+`
212
+ Valid keys: `+JSON.stringify(Object.keys($),null," "));var E=Se(H,X,M,D,N+"."+X,r);if(E)return E}return null}return y(A)}function be($){switch(typeof $){case"number":case"string":case"undefined":return!0;case"boolean":return!$;case"object":if(Array.isArray($))return $.every(be);if($===null||s($))return!0;var A=l($);if(A){var U=A.call($),G;if(A!==$.entries){for(;!(G=U.next()).done;)if(!be(G.value))return!1}else for(;!(G=U.next()).done;){var M=G.value;if(M&&!be(M[1]))return!1}}else return!1;return!0;default:return!1}}function _e($,A){return $==="symbol"?!0:A?A["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&A instanceof Symbol:!1}function oe($){var A=typeof $;return Array.isArray($)?"array":$ instanceof RegExp?"object":_e(A,$)?"symbol":A}function ye($){if(typeof $>"u"||$===null)return""+$;var A=oe($);if(A==="object"){if($ instanceof Date)return"date";if($ instanceof RegExp)return"regexp"}return A}function Oe($){var A=ye($);switch(A){case"array":case"object":return"an "+A;case"boolean":case"date":case"regexp":return"a "+A;default:return A}}function Ae($){return!$.constructor||!$.constructor.name?f:$.constructor.name}return p.checkPropTypes=a,p.resetWarningCache=a.resetWarningCache,p.PropTypes=p,p},ri}var ni,iu;function ZT(){if(iu)return ni;iu=1;var e=Qa();function t(){}function r(){}return r.resetWarningCache=t,ni=function(){function n(o,s,c,u,h,l){if(l!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}n.isRequired=n;function a(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:a,element:n,elementType:n,instanceOf:a,node:n,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i},ni}if(process.env.NODE_ENV!=="production"){var QT=Zl(),e2=!0;Xa.exports=JT()(QT.isElement,e2)}else Xa.exports=ZT()();var t2=Xa.exports;const O=_t(t2);function ai(e,t,r){(r!==void 0&&!lr(e[t],r)||r===void 0&&!(t in e))&&Pn(e,t,r)}function r2(e){return function(t,r,n){for(var a=-1,i=Object(t),o=n(t),s=o.length;s--;){var c=o[++a];if(r(i[c],c,i)===!1)break}return t}}var ou=r2();function n2(e){return qe(e)&&Pt(e)}function ii(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function a2(e){return fr(e,vr(e))}function i2(e,t,r,n,a,i,o){var s=ii(e,r),c=ii(t,r),u=o.get(c);if(u){ai(e,r,u);return}var h=i?i(s,c,r+"",e,t,o):void 0,l=h===void 0;if(l){var f=$e(c),p=!f&&dr(c),v=!f&&!p&&jn(c);h=c,f||p||v?$e(s)?h=s:n2(s)?h=Dn(s):p?(l=!1,h=bo(c,!0)):v?(l=!1,h=Po(c,!0)):h=[]:Tn(c)||zr(c)?(h=s,zr(s)?h=a2(s):(!ke(s)||On(s))&&(h=Io(c))):l=!1}l&&(o.set(c,h),a(h,c,n,i,o),o.delete(c)),ai(e,r,h)}function su(e,t,r,n,a){e!==t&&ou(t,function(i,o){if(a||(a=new Ge),ke(i))i2(e,t,o,r,su,n,a);else{var s=n?n(ii(e,o),i,o+"",e,t,a):void 0;s===void 0&&(s=i),ai(e,o,s)}},vr)}function cn(e){return e}function o2(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var lu=Math.max;function s2(e,t,r){return t=lu(t===void 0?e.length-1:t,0),function(){for(var n=arguments,a=-1,i=lu(n.length-t,0),o=Array(i);++a<i;)o[a]=n[t+a];a=-1;for(var s=Array(t+1);++a<t;)s[a]=n[a];return s[t]=r(o),o2(e,this,s)}}function l2(e){return function(){return e}}var u2=Ur?function(e,t){return Ur(e,"toString",{configurable:!0,enumerable:!1,value:l2(t),writable:!0})}:cn,c2=800,f2=16,d2=Date.now;function h2(e){var t=0,r=0;return function(){var n=d2(),a=f2-(n-r);if(r=n,a>0){if(++t>=c2)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var p2=h2(u2);function v2(e,t){return p2(s2(e,t,cn),e+"")}function g2(e,t,r){if(!ke(r))return!1;var n=typeof t;return(n=="number"?Pt(r)&&Mn(t,r.length):n=="string"&&t in r)?lr(r[t],e):!1}function b2(e){return v2(function(t,r){var n=-1,a=r.length,i=a>1?r[a-1]:void 0,o=a>2?r[2]:void 0;for(i=e.length>3&&typeof i=="function"?(a--,i):void 0,o&&g2(r[0],r[1],o)&&(i=a<3?void 0:i,a=1),t=Object(t);++n<a;){var s=r[n];s&&e(t,s,n,i)}return t})}var Ie=b2(function(e,t,r){su(e,t,r)}),Ar=function(t){var r=t.zDepth,n=t.radius,a=t.background,i=t.children,o=t.styles,s=o===void 0?{}:o,c=z(Ie({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+r+"px "+r*4+"px rgba(0,0,0,.24)",borderRadius:n,background:a}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},s),{"zDepth-1":r===1});return d.createElement("div",{style:c.wrap},d.createElement("div",{style:c.bg}),d.createElement("div",{style:c.content},i))};Ar.propTypes={background:O.string,zDepth:O.oneOf([0,1,2,3,4,5]),radius:O.number,styles:O.object},Ar.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}};var oi=function(){return He.Date.now()},y2=/\s/;function m2(e){for(var t=e.length;t--&&y2.test(e.charAt(t)););return t}var x2=/^\s+/;function S2(e){return e&&e.slice(0,m2(e)+1).replace(x2,"")}var uu=NaN,w2=/^[-+]0x[0-9a-f]+$/i,E2=/^0b[01]+$/i,_2=/^0o[0-7]+$/i,C2=parseInt;function cu(e){if(typeof e=="number")return e;if(gr(e))return uu;if(ke(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ke(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=S2(e);var r=E2.test(e);return r||_2.test(e)?C2(e.slice(2),r?2:8):w2.test(e)?uu:+e}var $2="Expected a function",T2=Math.max,O2=Math.min;function fu(e,t,r){var n,a,i,o,s,c,u=0,h=!1,l=!1,f=!0;if(typeof e!="function")throw new TypeError($2);t=cu(t)||0,ke(r)&&(h=!!r.leading,l="maxWait"in r,i=l?T2(cu(r.maxWait)||0,t):i,f="trailing"in r?!!r.trailing:f);function p(T){var j=n,W=a;return n=a=void 0,u=T,o=e.apply(W,j),o}function v(T){return u=T,s=setTimeout(x,t),h?p(T):o}function g(T){var j=T-c,W=T-u,q=t-j;return l?O2(q,i-W):q}function y(T){var j=T-c,W=T-u;return c===void 0||j>=t||j<0||l&&W>=i}function x(){var T=oi();if(y(T))return C(T);s=setTimeout(x,g(T))}function C(T){return s=void 0,f&&n?p(T):(n=a=void 0,o)}function _(){s!==void 0&&clearTimeout(s),u=0,n=c=a=s=void 0}function S(){return s===void 0?o:C(oi())}function b(){var T=oi(),j=y(T);if(n=arguments,a=this,c=T,j){if(s===void 0)return v(c);if(l)return clearTimeout(s),s=setTimeout(x,t),p(c)}return s===void 0&&(s=setTimeout(x,t)),o}return b.cancel=_,b.flush=S,b}var A2="Expected a function";function P2(e,t,r){var n=!0,a=!0;if(typeof e!="function")throw new TypeError(A2);return ke(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),fu(e,t,{leading:n,maxWait:t,trailing:a})}var M2=function(t,r,n){var a=n.getBoundingClientRect(),i=a.width,o=a.height,s=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,c=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,u=s-(n.getBoundingClientRect().left+window.pageXOffset),h=c-(n.getBoundingClientRect().top+window.pageYOffset);u<0?u=0:u>i&&(u=i),h<0?h=0:h>o&&(h=o);var l=u/i,f=1-h/o;return{h:r.h,s:l,v:f,a:r.a,source:"hsv"}},I2=function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function F2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k2(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function j2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var fn=function(e){j2(t,e);function t(r){F2(this,t);var n=k2(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r));return n.handleChange=function(a){typeof n.props.onChange=="function"&&n.throttle(n.props.onChange,M2(a,n.props.hsl,n.container),a)},n.handleMouseDown=function(a){n.handleChange(a);var i=n.getContainerRenderWindow();i.addEventListener("mousemove",n.handleChange),i.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.throttle=P2(function(a,i,o){a(i,o)},50),n}return I2(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var n=this.container,a=window;!a.document.contains(n)&&a.parent!==a;)a=a.parent;return a}},{key:"unbindEventListeners",value:function(){var n=this.getContainerRenderWindow();n.removeEventListener("mousemove",this.handleChange),n.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var n=this,a=this.props.style||{},i=a.color,o=a.white,s=a.black,c=a.pointer,u=a.circle,h=z({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:-(this.props.hsv.v*100)+100+"%",left:this.props.hsv.s*100+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:`0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),
208
213
  0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:i,white:o,black:s,pointer:c,circle:u}},{custom:!!this.props.style});return d.createElement("div",{style:h.color,ref:function(f){return n.container=f},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},d.createElement("style",null,`
209
214
  .saturation-white {
210
215
  background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));
@@ -214,16 +219,17 @@ Valid keys: `+JSON.stringify(Object.keys($),null," "));var E=Se(H,X,M,D,N+"."+X
214
219
  background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));
215
220
  background: linear-gradient(to top, #000, rgba(0,0,0,0));
216
221
  }
217
- `),d.createElement("div",{style:h.white,className:"saturation-white"},d.createElement("div",{style:h.black,className:"saturation-black"}),d.createElement("div",{style:h.pointer},this.props.pointer?d.createElement(this.props.pointer,this.props):d.createElement("div",{style:h.circle}))))}}]),t}(d.PureComponent||d.Component);function D2(e,t){return e&&ou(e,t,pr)}function N2(e,t){return function(r,n){if(r==null)return r;if(!Pt(r))return e(r,n);for(var a=r.length,i=-1,o=Object(r);++i<a&&n(o[i],i,o)!==!1;);return r}}var du=N2(D2);function B2(e){return typeof e=="function"?e:un}function H2(e,t){var r=$e(e)?to:du;return r(e,B2(t))}function fn(e){"@babel/helpers - typeof";return fn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fn(e)}var G2=/^\s+/,V2=/\s+$/;function F(e,t){if(e=e||"",t=t||{},e instanceof F)return e;if(!(this instanceof F))return new F(e,t);var r=U2(e);this._originalInput=e,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=t.format||r.format,this._gradientType=t.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}F.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(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),r,n,a,i,o,s;return r=t.r/255,n=t.g/255,a=t.b/255,r<=.03928?i=r/12.92:i=Math.pow((r+.055)/1.055,2.4),n<=.03928?o=n/12.92:o=Math.pow((n+.055)/1.055,2.4),a<=.03928?s=a/12.92:s=Math.pow((a+.055)/1.055,2.4),.2126*i+.7152*o+.0722*s},setAlpha:function(t){return this._a=yu(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=pu(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=pu(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.v*100);return this._a==1?"hsv("+r+", "+n+"%, "+a+"%)":"hsva("+r+", "+n+"%, "+a+"%, "+this._roundA+")"},toHsl:function(){var t=hu(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=hu(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.l*100);return this._a==1?"hsl("+r+", "+n+"%, "+a+"%)":"hsla("+r+", "+n+"%, "+a+"%, "+this._roundA+")"},toHex:function(t){return vu(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return K2(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 this._a==1?"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(pe(this._r,255)*100)+"%",g:Math.round(pe(this._g,255)*100)+"%",b:Math.round(pe(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(pe(this._r,255)*100)+"%, "+Math.round(pe(this._g,255)*100)+"%, "+Math.round(pe(this._b,255)*100)+"%)":"rgba("+Math.round(pe(this._r,255)*100)+"%, "+Math.round(pe(this._g,255)*100)+"%, "+Math.round(pe(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:iO[vu(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var r="#"+gu(this._r,this._g,this._b,this._a),n=r,a=this._gradientType?"GradientType = 1, ":"";if(t){var i=F(t);n="#"+gu(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+a+"startColorstr="+r+",endColorstr="+n+")"},toString:function(t){var r=!!t;t=t||this._format;var n=!1,a=this._a<1&&this._a>=0,i=!r&&a&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return i?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return F(this.toString())},_applyModification:function(t,r){var n=t.apply(null,[this].concat([].slice.call(r)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(J2,arguments)},brighten:function(){return this._applyModification(Z2,arguments)},darken:function(){return this._applyModification(Q2,arguments)},desaturate:function(){return this._applyModification(q2,arguments)},saturate:function(){return this._applyModification(Y2,arguments)},greyscale:function(){return this._applyModification(X2,arguments)},spin:function(){return this._applyModification(eO,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(nO,arguments)},complement:function(){return this._applyCombination(tO,arguments)},monochromatic:function(){return this._applyCombination(aO,arguments)},splitcomplement:function(){return this._applyCombination(rO,arguments)},triad:function(){return this._applyCombination(bu,[3])},tetrad:function(){return this._applyCombination(bu,[4])}},F.fromRatio=function(e,t){if(fn(e)=="object"){var r={};for(var n in e)e.hasOwnProperty(n)&&(n==="a"?r[n]=e[n]:r[n]=Pr(e[n]));e=r}return F(e,t)};function U2(e){var t={r:0,g:0,b:0},r=1,n=null,a=null,i=null,o=!1,s=!1;return typeof e=="string"&&(e=uO(e)),fn(e)=="object"&&(rt(e.r)&&rt(e.g)&&rt(e.b)?(t=z2(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):rt(e.h)&&rt(e.s)&&rt(e.v)?(n=Pr(e.s),a=Pr(e.v),t=R2(e.h,n,a),o=!0,s="hsv"):rt(e.h)&&rt(e.s)&&rt(e.l)&&(n=Pr(e.s),i=Pr(e.l),t=W2(e.h,n,i),o=!0,s="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=yu(r),{ok:o,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}function z2(e,t,r){return{r:pe(e,255)*255,g:pe(t,255)*255,b:pe(r,255)*255}}function hu(e,t,r){e=pe(e,255),t=pe(t,255),r=pe(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),i,o,s=(n+a)/2;if(n==a)i=o=0;else{var c=n-a;switch(o=s>.5?c/(2-n-a):c/(n+a),n){case e:i=(t-r)/c+(t<r?6:0);break;case t:i=(r-e)/c+2;break;case r:i=(e-t)/c+4;break}i/=6}return{h:i,s:o,l:s}}function W2(e,t,r){var n,a,i;e=pe(e,360),t=pe(t,100),r=pe(r,100);function o(u,h,l){return l<0&&(l+=1),l>1&&(l-=1),l<1/6?u+(h-u)*6*l:l<1/2?h:l<2/3?u+(h-u)*(2/3-l)*6:u}if(t===0)n=a=i=r;else{var s=r<.5?r*(1+t):r+t-r*t,c=2*r-s;n=o(c,s,e+1/3),a=o(c,s,e),i=o(c,s,e-1/3)}return{r:n*255,g:a*255,b:i*255}}function pu(e,t,r){e=pe(e,255),t=pe(t,255),r=pe(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),i,o,s=n,c=n-a;if(o=n===0?0:c/n,n==a)i=0;else{switch(n){case e:i=(t-r)/c+(t<r?6:0);break;case t:i=(r-e)/c+2;break;case r:i=(e-t)/c+4;break}i/=6}return{h:i,s:o,v:s}}function R2(e,t,r){e=pe(e,360)*6,t=pe(t,100),r=pe(r,100);var n=Math.floor(e),a=e-n,i=r*(1-t),o=r*(1-a*t),s=r*(1-(1-a)*t),c=n%6,u=[r,o,i,i,s,r][c],h=[s,r,r,o,i,i][c],l=[i,i,s,r,r,o][c];return{r:u*255,g:h*255,b:l*255}}function vu(e,t,r,n){var a=[Ue(Math.round(e).toString(16)),Ue(Math.round(t).toString(16)),Ue(Math.round(r).toString(16))];return n&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function K2(e,t,r,n,a){var i=[Ue(Math.round(e).toString(16)),Ue(Math.round(t).toString(16)),Ue(Math.round(r).toString(16)),Ue(mu(n))];return a&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function gu(e,t,r,n){var a=[Ue(mu(n)),Ue(Math.round(e).toString(16)),Ue(Math.round(t).toString(16)),Ue(Math.round(r).toString(16))];return a.join("")}F.equals=function(e,t){return!e||!t?!1:F(e).toRgbString()==F(t).toRgbString()},F.random=function(){return F.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function q2(e,t){t=t===0?0:t||10;var r=F(e).toHsl();return r.s-=t/100,r.s=dn(r.s),F(r)}function Y2(e,t){t=t===0?0:t||10;var r=F(e).toHsl();return r.s+=t/100,r.s=dn(r.s),F(r)}function X2(e){return F(e).desaturate(100)}function J2(e,t){t=t===0?0:t||10;var r=F(e).toHsl();return r.l+=t/100,r.l=dn(r.l),F(r)}function Z2(e,t){t=t===0?0:t||10;var r=F(e).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),F(r)}function Q2(e,t){t=t===0?0:t||10;var r=F(e).toHsl();return r.l-=t/100,r.l=dn(r.l),F(r)}function eO(e,t){var r=F(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,F(r)}function tO(e){var t=F(e).toHsl();return t.h=(t.h+180)%360,F(t)}function bu(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var r=F(e).toHsl(),n=[F(e)],a=360/t,i=1;i<t;i++)n.push(F({h:(r.h+i*a)%360,s:r.s,l:r.l}));return n}function rO(e){var t=F(e).toHsl(),r=t.h;return[F(e),F({h:(r+72)%360,s:t.s,l:t.l}),F({h:(r+216)%360,s:t.s,l:t.l})]}function nO(e,t,r){t=t||6,r=r||30;var n=F(e).toHsl(),a=360/r,i=[F(e)];for(n.h=(n.h-(a*t>>1)+720)%360;--t;)n.h=(n.h+a)%360,i.push(F(n));return i}function aO(e,t){t=t||6;for(var r=F(e).toHsv(),n=r.h,a=r.s,i=r.v,o=[],s=1/t;t--;)o.push(F({h:n,s:a,v:i})),i=(i+s)%1;return o}F.mix=function(e,t,r){r=r===0?0:r||50;var n=F(e).toRgb(),a=F(t).toRgb(),i=r/100,o={r:(a.r-n.r)*i+n.r,g:(a.g-n.g)*i+n.g,b:(a.b-n.b)*i+n.b,a:(a.a-n.a)*i+n.a};return F(o)},F.readability=function(e,t){var r=F(e),n=F(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},F.isReadable=function(e,t,r){var n=F.readability(e,t),a,i;switch(i=!1,a=cO(r),a.level+a.size){case"AAsmall":case"AAAlarge":i=n>=4.5;break;case"AAlarge":i=n>=3;break;case"AAAsmall":i=n>=7;break}return i},F.mostReadable=function(e,t,r){var n=null,a=0,i,o,s,c;r=r||{},o=r.includeFallbackColors,s=r.level,c=r.size;for(var u=0;u<t.length;u++)i=F.readability(e,t[u]),i>a&&(a=i,n=F(t[u]));return F.isReadable(e,n,{level:s,size:c})||!o?n:(r.includeFallbackColors=!1,F.mostReadable(e,["#fff","#000"],r))};var oi=F.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"},iO=F.hexNames=oO(oi);function oO(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}function yu(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function pe(e,t){sO(e)&&(e="100%");var r=lO(e);return e=Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function dn(e){return Math.min(1,Math.max(0,e))}function je(e){return parseInt(e,16)}function sO(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function lO(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Ue(e){return e.length==1?"0"+e:""+e}function Pr(e){return e<=1&&(e=e*100+"%"),e}function mu(e){return Math.round(parseFloat(e)*255).toString(16)}function xu(e){return je(e)/255}var ze=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",r="(?:"+t+")|(?:"+e+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",a="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+a),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+a),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+a),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 rt(e){return!!ze.CSS_UNIT.exec(e)}function uO(e){e=e.replace(G2,"").replace(V2,"").toLowerCase();var t=!1;if(oi[e])e=oi[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=ze.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=ze.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=ze.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=ze.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=ze.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=ze.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=ze.hex8.exec(e))?{r:je(r[1]),g:je(r[2]),b:je(r[3]),a:xu(r[4]),format:t?"name":"hex8"}:(r=ze.hex6.exec(e))?{r:je(r[1]),g:je(r[2]),b:je(r[3]),format:t?"name":"hex"}:(r=ze.hex4.exec(e))?{r:je(r[1]+""+r[1]),g:je(r[2]+""+r[2]),b:je(r[3]+""+r[3]),a:xu(r[4]+""+r[4]),format:t?"name":"hex8"}:(r=ze.hex3.exec(e))?{r:je(r[1]+""+r[1]),g:je(r[2]+""+r[2]),b:je(r[3]+""+r[3]),format:t?"name":"hex"}:!1}function cO(e){var t,r;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:t,size:r}}var Su=function(t){var r=["r","g","b","a","h","s","l","v"],n=0,a=0;return H2(r,function(i){if(t[i]&&(n+=1,isNaN(t[i])||(a+=1),i==="s"||i==="l")){var o=/^\d+%$/;o.test(t[i])&&(a+=1)}}),n===a?t:!1},Mr=function(t,r){var n=t.hex?F(t.hex):F(t),a=n.toHsl(),i=n.toHsv(),o=n.toRgb(),s=n.toHex();a.s===0&&(a.h=r||0,i.h=r||0);var c=s==="000000"&&o.a===0;return{hsl:a,hex:c?"transparent":"#"+s,rgb:o,hsv:i,oldHue:t.h||r||a.h,source:t.source}},lt=function(t){if(t==="transparent")return!0;var r=String(t).charAt(0)==="#"?1:0;return t.length!==4+r&&t.length<7+r&&F(t).isValid()},si=function(t){if(!t)return"#fff";var r=Mr(t);if(r.hex==="transparent")return"rgba(0,0,0,0.4)";var n=(r.rgb.r*299+r.rgb.g*587+r.rgb.b*114)/1e3;return n>=128?"#000":"#fff"},li=function(t,r){var n=t.replace("°","");return F(r+" ("+n+")")._ok},Ir=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fO=function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function dO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hO(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function pO(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Fe=function(t){var r=function(n){pO(a,n);function a(i){dO(this,a);var o=hO(this,(a.__proto__||Object.getPrototypeOf(a)).call(this));return o.handleChange=function(s,c){var u=Su(s);if(u){var h=Mr(s,s.h||o.state.oldHue);o.setState(h),o.props.onChangeComplete&&o.debounce(o.props.onChangeComplete,h,c),o.props.onChange&&o.props.onChange(h,c)}},o.handleSwatchHover=function(s,c){var u=Su(s);if(u){var h=Mr(s,s.h||o.state.oldHue);o.props.onSwatchHover&&o.props.onSwatchHover(h,c)}},o.state=Ir({},Mr(i.color,0)),o.debounce=fu(function(s,c,u){s(c,u)},100),o}return fO(a,[{key:"render",value:function(){var o={};return this.props.onSwatchHover&&(o.onSwatchHover=this.handleSwatchHover),d.createElement(t,Ir({},this.props,this.state,{onChange:this.handleChange},o))}}],[{key:"getDerivedStateFromProps",value:function(o,s){return Ir({},Mr(o.color,s.oldHue))}}]),a}(d.PureComponent||d.Component);return r.propTypes=Ir({},t.propTypes),r.defaultProps=Ir({},t.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),r},vO=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gO=function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function bO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wu(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function yO(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var mO=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){yO(a,n);function a(){var i,o,s,c;bO(this,a);for(var u=arguments.length,h=Array(u),l=0;l<u;l++)h[l]=arguments[l];return c=(o=(s=wu(this,(i=a.__proto__||Object.getPrototypeOf(a)).call.apply(i,[this].concat(h))),s),s.state={focus:!1},s.handleFocus=function(){return s.setState({focus:!0})},s.handleBlur=function(){return s.setState({focus:!1})},o),wu(s,c)}return gO(a,[{key:"render",value:function(){return d.createElement(r,{onFocus:this.handleFocus,onBlur:this.handleBlur},d.createElement(t,vO({},this.props,this.state)))}}]),a}(d.Component)},Eu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xO=13,SO=function(t){var r=t.color,n=t.style,a=t.onClick,i=a===void 0?function(){}:a,o=t.onHover,s=t.title,c=s===void 0?r:s,u=t.children,h=t.focus,l=t.focusStyle,f=l===void 0?{}:l,p=r==="transparent",v=z({default:{swatch:Eu({background:r,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},n,h?f:{})}}),g=function(S){return i(r,S)},y=function(S){return S.keyCode===xO&&i(r,S)},x=function(S){return o(r,S)},C={};return o&&(C.onMouseOver=x),d.createElement("div",Eu({style:v.swatch,onClick:g,title:c,tabIndex:0,onKeyDown:y},C),u,p&&d.createElement(Dt,{borderRadius:v.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))};const St=mO(SO);var wO=function(t){var r=t.direction,n=z({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:r==="vertical"});return d.createElement("div",{style:n.picker})},EO=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_u=function(t){var r=t.rgb,n=t.hsl,a=t.width,i=t.height,o=t.onChange,s=t.direction,c=t.style,u=t.renderers,h=t.pointer,l=t.className,f=l===void 0?"":l,p=z({default:{picker:{position:"relative",width:a,height:i},alpha:{radius:"2px",style:c}}});return d.createElement("div",{style:p.picker,className:"alpha-picker "+f},d.createElement(qa,EO({},p.alpha,{rgb:r,hsl:n,pointer:h,renderers:u,onChange:o,direction:s})))};_u.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:wO},Fe(_u);var _O="__lodash_hash_undefined__";function CO(e){return this.__data__.set(e,_O),this}function $O(e){return this.__data__.has(e)}function hn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new et;++t<r;)this.add(e[t])}hn.prototype.add=hn.prototype.push=CO,hn.prototype.has=$O;function TO(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function OO(e,t){return e.has(t)}var AO=1,PO=2;function Cu(e,t,r,n,a,i){var o=r&AO,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var u=i.get(e),h=i.get(t);if(u&&h)return u==t&&h==e;var l=-1,f=!0,p=r&PO?new hn:void 0;for(i.set(e,t),i.set(t,e);++l<s;){var v=e[l],g=t[l];if(n)var y=o?n(g,v,l,t,e,i):n(v,g,l,e,t,i);if(y!==void 0){if(y)continue;f=!1;break}if(p){if(!TO(t,function(x,C){if(!OO(p,C)&&(v===x||a(v,x,r,n,i)))return p.push(C)})){f=!1;break}}else if(!(v===g||a(v,g,r,n,i))){f=!1;break}}return i.delete(e),i.delete(t),f}function MO(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}function IO(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var FO=1,kO=2,jO="[object Boolean]",LO="[object Date]",DO="[object Error]",NO="[object Map]",BO="[object Number]",HO="[object RegExp]",GO="[object Set]",VO="[object String]",UO="[object Symbol]",zO="[object ArrayBuffer]",WO="[object DataView]",$u=Ke?Ke.prototype:void 0,ui=$u?$u.valueOf:void 0;function RO(e,t,r,n,a,i,o){switch(r){case WO:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case zO:return!(e.byteLength!=t.byteLength||!i(new Wr(e),new Wr(t)));case jO:case LO:case BO:return lr(+e,+t);case DO:return e.name==t.name&&e.message==t.message;case HO:case VO:return e==t+"";case NO:var s=MO;case GO:var c=n&FO;if(s||(s=IO),e.size!=t.size&&!c)return!1;var u=o.get(e);if(u)return u==t;n|=kO,o.set(e,t);var h=Cu(s(e),s(t),n,a,i,o);return o.delete(e),h;case UO:if(ui)return ui.call(e)==ui.call(t)}return!1}var KO=1,qO=Object.prototype,YO=qO.hasOwnProperty;function XO(e,t,r,n,a,i){var o=r&KO,s=Nn(e),c=s.length,u=Nn(t),h=u.length;if(c!=h&&!o)return!1;for(var l=c;l--;){var f=s[l];if(!(o?f in t:YO.call(t,f)))return!1}var p=i.get(e),v=i.get(t);if(p&&v)return p==t&&v==e;var g=!0;i.set(e,t),i.set(t,e);for(var y=o;++l<c;){f=s[l];var x=e[f],C=t[f];if(n)var _=o?n(C,x,f,t,e,i):n(x,C,f,e,t,i);if(!(_===void 0?x===C||a(x,C,r,n,i):_)){g=!1;break}y||(y=f=="constructor")}if(g&&!y){var S=e.constructor,b=t.constructor;S!=b&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof b=="function"&&b instanceof b)&&(g=!1)}return i.delete(e),i.delete(t),g}var JO=1,Tu="[object Arguments]",Ou="[object Array]",pn="[object Object]",ZO=Object.prototype,Au=ZO.hasOwnProperty;function QO(e,t,r,n,a,i){var o=$e(e),s=$e(t),c=o?Ou:Ve(e),u=s?Ou:Ve(t);c=c==Tu?pn:c,u=u==Tu?pn:u;var h=c==pn,l=u==pn,f=c==u;if(f&&dr(e)){if(!dr(t))return!1;o=!0,h=!1}if(f&&!h)return i||(i=new Ge),o||kn(e)?Cu(e,t,r,n,a,i):RO(e,t,c,r,n,a,i);if(!(r&JO)){var p=h&&Au.call(e,"__wrapped__"),v=l&&Au.call(t,"__wrapped__");if(p||v){var g=p?e.value():e,y=v?t.value():t;return i||(i=new Ge),a(g,y,r,n,i)}}return f?(i||(i=new Ge),XO(e,t,r,n,a,i)):!1}function ci(e,t,r,n,a){return e===t?!0:e==null||t==null||!qe(e)&&!qe(t)?e!==e&&t!==t:QO(e,t,r,n,ci,a)}var eA=1,tA=2;function rA(e,t,r,n){var a=r.length,i=a;if(e==null)return!i;for(e=Object(e);a--;){var o=r[a];if(o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++a<i;){o=r[a];var s=o[0],c=e[s],u=o[1];if(o[2]){if(c===void 0&&!(s in e))return!1}else{var h=new Ge,l;if(!(l===void 0?ci(u,c,eA|tA,n,h):l))return!1}}return!0}function Pu(e){return e===e&&!ke(e)}function nA(e){for(var t=pr(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,Pu(a)]}return t}function Mu(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function aA(e){var t=nA(e);return t.length==1&&t[0][2]?Mu(t[0][0],t[0][1]):function(r){return r===e||rA(r,e,t)}}var iA=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,oA=/^\w*$/;function fi(e,t){if($e(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||gr(e)?!0:oA.test(e)||!iA.test(e)||t!=null&&e in Object(t)}function Iu(e,t){return $e(e)?e:fi(e,t)?[e]:No(Vo(e))}function Fu(e,t){t=Iu(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[br(t[r++])];return r&&r==n?e:void 0}function sA(e,t,r){var n=e==null?void 0:Fu(e,t);return n===void 0?r:n}function lA(e,t){return e!=null&&t in Object(e)}function uA(e,t,r){t=Iu(t,e);for(var n=-1,a=t.length,i=!1;++n<a;){var o=br(t[n]);if(!(i=e!=null&&r(e,o)))break;e=e[o]}return i||++n!=a?i:(a=e==null?0:e.length,!!a&&Mn(a)&&Pn(o,a)&&($e(e)||zr(e)))}function cA(e,t){return e!=null&&uA(e,t,lA)}var fA=1,dA=2;function hA(e,t){return fi(e)&&Pu(t)?Mu(br(e),t):function(r){var n=sA(r,e);return n===void 0&&n===t?cA(r,e):ci(t,n,fA|dA)}}function pA(e){return function(t){return t==null?void 0:t[e]}}function vA(e){return function(t){return Fu(t,e)}}function gA(e){return fi(e)?pA(br(e)):vA(e)}function bA(e){return typeof e=="function"?e:e==null?un:typeof e=="object"?$e(e)?hA(e[0],e[1]):aA(e):gA(e)}function yA(e,t){var r=-1,n=Pt(e)?Array(e.length):[];return du(e,function(a,i,o){n[++r]=t(a,i,o)}),n}function wt(e,t){var r=$e(e)?zn:yA;return r(e,bA(t))}var mA=function(t){var r=t.colors,n=t.onClick,a=t.onSwatchHover,i=z({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return d.createElement("div",{style:i.swatches},wt(r,function(o){return d.createElement(St,{key:o,color:o,style:i.swatch,onClick:n,onHover:a,focusStyle:{boxShadow:"0 0 4px "+o}})}),d.createElement("div",{style:i.clear}))},di=function(t){var r=t.onChange,n=t.onSwatchHover,a=t.hex,i=t.colors,o=t.width,s=t.triangle,c=t.styles,u=c===void 0?{}:c,h=t.className,l=h===void 0?"":h,f=a==="transparent",p=function(y,x){lt(y)&&r({hex:y,source:"hex"},x)},v=z(Ie({default:{card:{width:o,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:a,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:si(a),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+a+" transparent",position:"absolute",top:"-10px",left:"50%",marginLeft:"-10px"},input:{width:"100%",fontSize:"12px",color:"#666",border:"0px",outline:"none",height:"22px",boxShadow:"inset 0 0 0 1px #ddd",borderRadius:"4px",padding:"0 7px",boxSizing:"border-box"}},"hide-triangle":{triangle:{display:"none"}}},u),{"hide-triangle":s==="hide"});return d.createElement("div",{style:v.card,className:"block-picker "+l},d.createElement("div",{style:v.triangle}),d.createElement("div",{style:v.head},f&&d.createElement(Dt,{borderRadius:"6px 6px 0 0"}),d.createElement("div",{style:v.label},a)),d.createElement("div",{style:v.body},d.createElement(mA,{colors:i,onClick:p,onSwatchHover:n}),d.createElement(Z,{style:{input:v.input},value:a,onChange:p})))};di.propTypes={width:O.oneOfType([O.string,O.number]),colors:O.arrayOf(O.string),triangle:O.oneOf(["top","hide"]),styles:O.object},di.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top",styles:{}},Fe(di);var Bt={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",a100:"#ff8a80",a200:"#ff5252",a400:"#ff1744",a700:"#d50000"},Ht={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",a100:"#ff80ab",a200:"#ff4081",a400:"#f50057",a700:"#c51162"},Gt={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",a100:"#ea80fc",a200:"#e040fb",a400:"#d500f9",a700:"#aa00ff"},Vt={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",a100:"#b388ff",a200:"#7c4dff",a400:"#651fff",a700:"#6200ea"},Ut={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",a100:"#8c9eff",a200:"#536dfe",a400:"#3d5afe",a700:"#304ffe"},zt={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",a100:"#82b1ff",a200:"#448aff",a400:"#2979ff",a700:"#2962ff"},Wt={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",a100:"#80d8ff",a200:"#40c4ff",a400:"#00b0ff",a700:"#0091ea"},Rt={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",a100:"#84ffff",a200:"#18ffff",a400:"#00e5ff",a700:"#00b8d4"},Kt={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",a100:"#a7ffeb",a200:"#64ffda",a400:"#1de9b6",a700:"#00bfa5"},Fr={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",a100:"#b9f6ca",a200:"#69f0ae",a400:"#00e676",a700:"#00c853"},qt={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",a100:"#ccff90",a200:"#b2ff59",a400:"#76ff03",a700:"#64dd17"},Yt={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",a100:"#f4ff81",a200:"#eeff41",a400:"#c6ff00",a700:"#aeea00"},Xt={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",a100:"#ffff8d",a200:"#ffff00",a400:"#ffea00",a700:"#ffd600"},Jt={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",a100:"#ffe57f",a200:"#ffd740",a400:"#ffc400",a700:"#ffab00"},Zt={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",a100:"#ffd180",a200:"#ffab40",a400:"#ff9100",a700:"#ff6d00"},Qt={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",a100:"#ff9e80",a200:"#ff6e40",a400:"#ff3d00",a700:"#dd2c00"},er={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},tr={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"},ku=function(t){var r=t.color,n=t.onClick,a=t.onSwatchHover,i=t.hover,o=t.active,s=t.circleSize,c=t.circleSpacing,u=z({default:{swatch:{width:s,height:s,marginRight:c,marginBottom:c,transform:"scale(1)",transition:"100ms transform ease"},Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+(s/2+1)+"px "+r,transition:"100ms box-shadow ease"}},hover:{swatch:{transform:"scale(1.2)"}},active:{Swatch:{boxShadow:"inset 0 0 0 3px "+r}}},{hover:i,active:o});return d.createElement("div",{style:u.swatch},d.createElement(St,{style:u.Swatch,color:r,onClick:n,onHover:a,focusStyle:{boxShadow:u.Swatch.boxShadow+", 0 0 5px "+r}}))};ku.defaultProps={circleSize:28,circleSpacing:14};const xA=Ra(ku);var hi=function(t){var r=t.width,n=t.onChange,a=t.onSwatchHover,i=t.colors,o=t.hex,s=t.circleSize,c=t.styles,u=c===void 0?{}:c,h=t.circleSpacing,l=t.className,f=l===void 0?"":l,p=z(Ie({default:{card:{width:r,display:"flex",flexWrap:"wrap",marginRight:-h,marginBottom:-h}}},u)),v=function(y,x){return n({hex:y,source:"hex"},x)};return d.createElement("div",{style:p.card,className:"circle-picker "+f},wt(i,function(g){return d.createElement(xA,{key:g,color:g,onClick:v,onSwatchHover:a,active:o===g.toLowerCase(),circleSize:s,circleSpacing:h})}))};hi.propTypes={width:O.oneOfType([O.string,O.number]),circleSize:O.number,circleSpacing:O.number,styles:O.object},hi.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[Bt[500],Ht[500],Gt[500],Vt[500],Ut[500],zt[500],Wt[500],Rt[500],Kt[500],Fr[500],qt[500],Yt[500],Xt[500],Jt[500],Zt[500],Qt[500],er[500],tr[500]],styles:{}},Fe(hi);function ju(e){return e===void 0}var Lu={};Object.defineProperty(Lu,"__esModule",{value:!0});var Du=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},SA=d,Nu=wA(SA);function wA(e){return e&&e.__esModule?e:{default:e}}function EA(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}var vn=24,_A=Lu.default=function(e){var t=e.fill,r=t===void 0?"currentColor":t,n=e.width,a=n===void 0?vn:n,i=e.height,o=i===void 0?vn:i,s=e.style,c=s===void 0?{}:s,u=EA(e,["fill","width","height","style"]);return Nu.default.createElement("svg",Du({viewBox:"0 0 "+vn+" "+vn,style:Du({fill:r,width:a,height:o},c)},u),Nu.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))},CA=function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function $A(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TA(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function OA(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Bu=function(e){OA(t,e);function t(r){$A(this,t);var n=TA(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.toggleViews=function(){n.state.view==="hex"?n.setState({view:"rgb"}):n.state.view==="rgb"?n.setState({view:"hsl"}):n.state.view==="hsl"&&(n.props.hsl.a===1?n.setState({view:"hex"}):n.setState({view:"rgb"}))},n.handleChange=function(a,i){a.hex?lt(a.hex)&&n.props.onChange({hex:a.hex,source:"hex"},i):a.r||a.g||a.b?n.props.onChange({r:a.r||n.props.rgb.r,g:a.g||n.props.rgb.g,b:a.b||n.props.rgb.b,source:"rgb"},i):a.a?(a.a<0?a.a=0:a.a>1&&(a.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(a.a*100)/100,source:"rgb"},i)):(a.h||a.s||a.l)&&(typeof a.s=="string"&&a.s.includes("%")&&(a.s=a.s.replace("%","")),typeof a.l=="string"&&a.l.includes("%")&&(a.l=a.l.replace("%","")),a.s==1?a.s=.01:a.l==1&&(a.l=.01),n.props.onChange({h:a.h||n.props.hsl.h,s:Number(ju(a.s)?n.props.hsl.s:a.s),l:Number(ju(a.l)?n.props.hsl.l:a.l),source:"hsl"},i))},n.showHighlight=function(a){a.currentTarget.style.background="#eee"},n.hideHighlight=function(a){a.currentTarget.style.background="transparent"},r.hsl.a!==1&&r.view==="hex"?n.state={view:"rgb"}:n.state={view:r.view},n}return CA(t,[{key:"render",value:function(){var n=this,a=z({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),i=void 0;return this.state.view==="hex"?i=d.createElement("div",{style:a.fields,className:"flexbox-fix"},d.createElement("div",{style:a.field},d.createElement(Z,{style:{input:a.input,label:a.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):this.state.view==="rgb"?i=d.createElement("div",{style:a.fields,className:"flexbox-fix"},d.createElement("div",{style:a.field},d.createElement(Z,{style:{input:a.input,label:a.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),d.createElement("div",{style:a.field},d.createElement(Z,{style:{input:a.input,label:a.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),d.createElement("div",{style:a.field},d.createElement(Z,{style:{input:a.input,label:a.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),d.createElement("div",{style:a.alpha},d.createElement(Z,{style:{input:a.input,label:a.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):this.state.view==="hsl"&&(i=d.createElement("div",{style:a.fields,className:"flexbox-fix"},d.createElement("div",{style:a.field},d.createElement(Z,{style:{input:a.input,label:a.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),d.createElement("div",{style:a.field},d.createElement(Z,{style:{input:a.input,label:a.label},label:"s",value:Math.round(this.props.hsl.s*100)+"%",onChange:this.handleChange})),d.createElement("div",{style:a.field},d.createElement(Z,{style:{input:a.input,label:a.label},label:"l",value:Math.round(this.props.hsl.l*100)+"%",onChange:this.handleChange})),d.createElement("div",{style:a.alpha},d.createElement(Z,{style:{input:a.input,label:a.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),d.createElement("div",{style:a.wrap,className:"flexbox-fix"},i,d.createElement("div",{style:a.toggle},d.createElement("div",{style:a.icon,onClick:this.toggleViews,ref:function(s){return n.icon=s}},d.createElement(_A,{style:a.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(n,a){return n.hsl.a!==1&&a.view==="hex"?{view:"rgb"}:null}}]),t}(d.Component);Bu.defaultProps={view:"hex"};var Hu=function(){var t=z({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return d.createElement("div",{style:t.picker})},AA=function(){var t=z({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return d.createElement("div",{style:t.picker})},pi=function(t){var r=t.width,n=t.onChange,a=t.disableAlpha,i=t.rgb,o=t.hsl,s=t.hsv,c=t.hex,u=t.renderers,h=t.styles,l=h===void 0?{}:h,f=t.className,p=f===void 0?"":f,v=t.defaultView,g=z(Ie({default:{picker:{width:r,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+i.r+", "+i.g+", "+i.b+", "+i.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},l),{disableAlpha:a});return d.createElement("div",{style:g.picker,className:"chrome-picker "+p},d.createElement("div",{style:g.saturation},d.createElement(cn,{style:g.Saturation,hsl:o,hsv:s,pointer:AA,onChange:n})),d.createElement("div",{style:g.body},d.createElement("div",{style:g.controls,className:"flexbox-fix"},d.createElement("div",{style:g.color},d.createElement("div",{style:g.swatch},d.createElement("div",{style:g.active}),d.createElement(Dt,{renderers:u}))),d.createElement("div",{style:g.toggles},d.createElement("div",{style:g.hue},d.createElement(Nt,{style:g.Hue,hsl:o,pointer:Hu,onChange:n})),d.createElement("div",{style:g.alpha},d.createElement(qa,{style:g.Alpha,rgb:i,hsl:o,pointer:Hu,renderers:u,onChange:n})))),d.createElement(Bu,{rgb:i,hsl:o,hex:c,view:v,onChange:n,disableAlpha:a})))};pi.propTypes={width:O.oneOfType([O.string,O.number]),disableAlpha:O.bool,styles:O.object,defaultView:O.oneOf(["hex","rgb","hsl"])},pi.defaultProps={width:225,disableAlpha:!1,styles:{}};const PA=Fe(pi);var MA=function(t){var r=t.color,n=t.onClick,a=n===void 0?function(){}:n,i=t.onSwatchHover,o=t.active,s=z({default:{color:{background:r,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:si(r),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:o,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return d.createElement(St,{style:s.color,color:r,onClick:a,onHover:i,focusStyle:{boxShadow:"0 0 4px "+r}},d.createElement("div",{style:s.dot}))},IA=function(t){var r=t.hex,n=t.rgb,a=t.onChange,i=z({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:r},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),o=function(c,u){c.r||c.g||c.b?a({r:c.r||n.r,g:c.g||n.g,b:c.b||n.b,source:"rgb"},u):a({hex:c.hex,source:"hex"},u)};return d.createElement("div",{style:i.fields,className:"flexbox-fix"},d.createElement("div",{style:i.active}),d.createElement(Z,{style:{wrap:i.HEXwrap,input:i.HEXinput,label:i.HEXlabel},label:"hex",value:r,onChange:o}),d.createElement(Z,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"r",value:n.r,onChange:o}),d.createElement(Z,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"g",value:n.g,onChange:o}),d.createElement(Z,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"b",value:n.b,onChange:o}))},vi=function(t){var r=t.onChange,n=t.onSwatchHover,a=t.colors,i=t.hex,o=t.rgb,s=t.styles,c=s===void 0?{}:s,u=t.className,h=u===void 0?"":u,l=z(Ie({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},c)),f=function(v,g){v.hex?lt(v.hex)&&r({hex:v.hex,source:"hex"},g):r(v,g)};return d.createElement(Ar,{style:l.Compact,styles:c},d.createElement("div",{style:l.compact,className:"compact-picker "+h},d.createElement("div",null,wt(a,function(p){return d.createElement(MA,{key:p,color:p,active:p.toLowerCase()===i,onClick:f,onSwatchHover:n})}),d.createElement("div",{style:l.clear})),d.createElement(IA,{hex:i,rgb:o,onChange:f})))};vi.propTypes={colors:O.arrayOf(O.string),styles:O.object},vi.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}},Fe(vi);var FA=function(t){var r=t.hover,n=t.color,a=t.onClick,i=t.onSwatchHover,o={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},s=z({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:o}},{hover:r});return d.createElement("div",{style:s.swatch},d.createElement(St,{color:n,onClick:a,onHover:i,focusStyle:o}))};const kA=Ra(FA);var gi=function(t){var r=t.width,n=t.colors,a=t.onChange,i=t.onSwatchHover,o=t.triangle,s=t.styles,c=s===void 0?{}:s,u=t.className,h=u===void 0?"":u,l=z(Ie({default:{card:{width:r,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},c),{"hide-triangle":o==="hide","top-left-triangle":o==="top-left","top-right-triangle":o==="top-right","bottom-left-triangle":o==="bottom-left","bottom-right-triangle":o==="bottom-right"}),f=function(v,g){return a({hex:v,source:"hex"},g)};return d.createElement("div",{style:l.card,className:"github-picker "+h},d.createElement("div",{style:l.triangleShadow}),d.createElement("div",{style:l.triangle}),wt(n,function(p){return d.createElement(kA,{color:p,key:p,onClick:f,onSwatchHover:i})}))};gi.propTypes={width:O.oneOfType([O.string,O.number]),colors:O.arrayOf(O.string),triangle:O.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:O.object},gi.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}},Fe(gi);var jA=function(t){var r=t.direction,n=z({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:r==="vertical"});return d.createElement("div",{style:n.picker})},LA=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bi=function(t){var r=t.width,n=t.height,a=t.onChange,i=t.hsl,o=t.direction,s=t.pointer,c=t.styles,u=c===void 0?{}:c,h=t.className,l=h===void 0?"":h,f=z(Ie({default:{picker:{position:"relative",width:r,height:n},hue:{radius:"2px"}}},u)),p=function(g){return a({a:1,h:g.h,l:.5,s:1})};return d.createElement("div",{style:f.picker,className:"hue-picker "+l},d.createElement(Nt,LA({},f.hue,{hsl:i,pointer:s,onChange:p,direction:o})))};bi.propTypes={styles:O.object},bi.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:jA,styles:{}},Fe(bi);var DA=function(t){var r=t.onChange,n=t.hex,a=t.rgb,i=t.styles,o=i===void 0?{}:i,s=t.className,c=s===void 0?"":s,u=z(Ie({default:{material:{width:"98px",height:"98px",padding:"16px",fontFamily:"Roboto"},HEXwrap:{position:"relative"},HEXinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"2px solid "+n,outline:"none",height:"30px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},Hex:{style:{}},RGBwrap:{position:"relative"},RGBinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"1px solid #eee",outline:"none",height:"30px"},RGBlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},split:{display:"flex",marginRight:"-10px",paddingTop:"11px"},third:{flex:"1",paddingRight:"10px"}}},o)),h=function(f,p){f.hex?lt(f.hex)&&r({hex:f.hex,source:"hex"},p):(f.r||f.g||f.b)&&r({r:f.r||a.r,g:f.g||a.g,b:f.b||a.b,source:"rgb"},p)};return d.createElement(Ar,{styles:o},d.createElement("div",{style:u.material,className:"material-picker "+c},d.createElement(Z,{style:{wrap:u.HEXwrap,input:u.HEXinput,label:u.HEXlabel},label:"hex",value:n,onChange:h}),d.createElement("div",{style:u.split,className:"flexbox-fix"},d.createElement("div",{style:u.third},d.createElement(Z,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"r",value:a.r,onChange:h})),d.createElement("div",{style:u.third},d.createElement(Z,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"g",value:a.g,onChange:h})),d.createElement("div",{style:u.third},d.createElement(Z,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"b",value:a.b,onChange:h})))))};Fe(DA);var NA=function(t){var r=t.onChange,n=t.rgb,a=t.hsv,i=t.hex,o=z({default:{fields:{paddingTop:"5px",paddingBottom:"9px",width:"80px",position:"relative"},divider:{height:"5px"},RGBwrap:{position:"relative"},RGBinput:{marginLeft:"40%",width:"40%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"5px",fontSize:"13px",paddingLeft:"3px",marginRight:"10px"},RGBlabel:{left:"0px",top:"0px",width:"34px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px",position:"absolute"},HEXwrap:{position:"relative"},HEXinput:{marginLeft:"20%",width:"80%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"6px",fontSize:"13px",paddingLeft:"3px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",width:"14px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px"},fieldSymbols:{position:"absolute",top:"5px",right:"-7px",fontSize:"13px"},symbol:{height:"20px",lineHeight:"22px",paddingBottom:"7px"}}}),s=function(u,h){u["#"]?lt(u["#"])&&r({hex:u["#"],source:"hex"},h):u.r||u.g||u.b?r({r:u.r||n.r,g:u.g||n.g,b:u.b||n.b,source:"rgb"},h):(u.h||u.s||u.v)&&r({h:u.h||a.h,s:u.s||a.s,v:u.v||a.v,source:"hsv"},h)};return d.createElement("div",{style:o.fields},d.createElement(Z,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"h",value:Math.round(a.h),onChange:s}),d.createElement(Z,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"s",value:Math.round(a.s*100),onChange:s}),d.createElement(Z,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"v",value:Math.round(a.v*100),onChange:s}),d.createElement("div",{style:o.divider}),d.createElement(Z,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"r",value:n.r,onChange:s}),d.createElement(Z,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"g",value:n.g,onChange:s}),d.createElement(Z,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"b",value:n.b,onChange:s}),d.createElement("div",{style:o.divider}),d.createElement(Z,{style:{wrap:o.HEXwrap,input:o.HEXinput,label:o.HEXlabel},label:"#",value:i.replace("#",""),onChange:s}),d.createElement("div",{style:o.fieldSymbols},d.createElement("div",{style:o.symbol},"°"),d.createElement("div",{style:o.symbol},"%"),d.createElement("div",{style:o.symbol},"%")))},BA=function(t){var r=t.hsl,n=z({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}},"black-outline":{picker:{boxShadow:"inset 0 0 0 1px #000"}}},{"black-outline":r.l>.5});return d.createElement("div",{style:n.picker})},HA=function(){var t=z({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return d.createElement("div",{style:t.pointer},d.createElement("div",{style:t.left},d.createElement("div",{style:t.leftInside})),d.createElement("div",{style:t.right},d.createElement("div",{style:t.rightInside})))},Gu=function(t){var r=t.onClick,n=t.label,a=t.children,i=t.active,o=z({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:i});return d.createElement("div",{style:o.button,onClick:r},n||a)},GA=function(t){var r=t.rgb,n=t.currentColor,a=z({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+r.r+","+r.g+", "+r.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:n,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return d.createElement("div",null,d.createElement("div",{style:a.label},"new"),d.createElement("div",{style:a.swatches},d.createElement("div",{style:a.new}),d.createElement("div",{style:a.current})),d.createElement("div",{style:a.label},"current"))},VA=function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function UA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zA(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function WA(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var yi=function(e){WA(t,e);function t(r){UA(this,t);var n=zA(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.state={currentColor:r.hex},n}return VA(t,[{key:"render",value:function(){var n=this.props,a=n.styles,i=a===void 0?{}:a,o=n.className,s=o===void 0?"":o,c=z(Ie({default:{picker:{background:"#DCDCDC",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)",boxSizing:"initial",width:"513px"},head:{backgroundImage:"linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)",borderBottom:"1px solid #B1B1B1",boxShadow:"inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)",height:"23px",lineHeight:"24px",borderRadius:"4px 4px 0 0",fontSize:"13px",color:"#4D4D4D",textAlign:"center"},body:{padding:"15px 15px 0",display:"flex"},saturation:{width:"256px",height:"256px",position:"relative",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0",overflow:"hidden"},hue:{position:"relative",height:"256px",width:"19px",marginLeft:"10px",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0"},controls:{width:"180px",marginLeft:"10px"},top:{display:"flex"},previews:{width:"60px"},actions:{flex:"1",marginLeft:"20px"}}},i));return d.createElement("div",{style:c.picker,className:"photoshop-picker "+s},d.createElement("div",{style:c.head},this.props.header),d.createElement("div",{style:c.body,className:"flexbox-fix"},d.createElement("div",{style:c.saturation},d.createElement(cn,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:BA,onChange:this.props.onChange})),d.createElement("div",{style:c.hue},d.createElement(Nt,{direction:"vertical",hsl:this.props.hsl,pointer:HA,onChange:this.props.onChange})),d.createElement("div",{style:c.controls},d.createElement("div",{style:c.top,className:"flexbox-fix"},d.createElement("div",{style:c.previews},d.createElement(GA,{rgb:this.props.rgb,currentColor:this.state.currentColor})),d.createElement("div",{style:c.actions},d.createElement(Gu,{label:"OK",onClick:this.props.onAccept,active:!0}),d.createElement(Gu,{label:"Cancel",onClick:this.props.onCancel}),d.createElement(NA,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),t}(d.Component);yi.propTypes={header:O.string,styles:O.object},yi.defaultProps={header:"Color Picker",styles:{}},Fe(yi);var RA=function(t){var r=t.onChange,n=t.rgb,a=t.hsl,i=t.hex,o=t.disableAlpha,s=z({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:o}),c=function(h,l){h.hex?lt(h.hex)&&r({hex:h.hex,source:"hex"},l):h.r||h.g||h.b?r({r:h.r||n.r,g:h.g||n.g,b:h.b||n.b,a:n.a,source:"rgb"},l):h.a&&(h.a<0?h.a=0:h.a>100&&(h.a=100),h.a/=100,r({h:a.h,s:a.s,l:a.l,a:h.a,source:"rgb"},l))};return d.createElement("div",{style:s.fields,className:"flexbox-fix"},d.createElement("div",{style:s.double},d.createElement(Z,{style:{input:s.input,label:s.label},label:"hex",value:i.replace("#",""),onChange:c})),d.createElement("div",{style:s.single},d.createElement(Z,{style:{input:s.input,label:s.label},label:"r",value:n.r,onChange:c,dragLabel:"true",dragMax:"255"})),d.createElement("div",{style:s.single},d.createElement(Z,{style:{input:s.input,label:s.label},label:"g",value:n.g,onChange:c,dragLabel:"true",dragMax:"255"})),d.createElement("div",{style:s.single},d.createElement(Z,{style:{input:s.input,label:s.label},label:"b",value:n.b,onChange:c,dragLabel:"true",dragMax:"255"})),d.createElement("div",{style:s.alpha},d.createElement(Z,{style:{input:s.input,label:s.label},label:"a",value:Math.round(n.a*100),onChange:c,dragLabel:"true",dragMax:"100"})))},KA=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Vu=function(t){var r=t.colors,n=t.onClick,a=n===void 0?function(){}:n,i=t.onSwatchHover,o=z({default:{colors:{margin:"0 -10px",padding:"10px 0 0 10px",borderTop:"1px solid #eee",display:"flex",flexWrap:"wrap",position:"relative"},swatchWrap:{width:"16px",height:"16px",margin:"0 10px 10px 0"},swatch:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},"no-presets":{colors:{display:"none"}}},{"no-presets":!r||!r.length}),s=function(u,h){a({hex:u,source:"hex"},h)};return d.createElement("div",{style:o.colors,className:"flexbox-fix"},r.map(function(c){var u=typeof c=="string"?{color:c}:c,h=""+u.color+(u.title||"");return d.createElement("div",{key:h,style:o.swatchWrap},d.createElement(St,KA({},u,{style:o.swatch,onClick:s,onHover:i,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px "+u.color}})))}))};Vu.propTypes={colors:O.arrayOf(O.oneOfType([O.string,O.shape({color:O.string,title:O.string})])).isRequired};var qA=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mi=function(t){var r=t.width,n=t.rgb,a=t.hex,i=t.hsv,o=t.hsl,s=t.onChange,c=t.onSwatchHover,u=t.disableAlpha,h=t.presetColors,l=t.renderers,f=t.styles,p=f===void 0?{}:f,v=t.className,g=v===void 0?"":v,y=z(Ie({default:qA({picker:{width:r,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba("+n.r+","+n.g+","+n.b+","+n.a+")",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},p),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},p),{disableAlpha:u});return d.createElement("div",{style:y.picker,className:"sketch-picker "+g},d.createElement("div",{style:y.saturation},d.createElement(cn,{style:y.Saturation,hsl:o,hsv:i,onChange:s})),d.createElement("div",{style:y.controls,className:"flexbox-fix"},d.createElement("div",{style:y.sliders},d.createElement("div",{style:y.hue},d.createElement(Nt,{style:y.Hue,hsl:o,onChange:s})),d.createElement("div",{style:y.alpha},d.createElement(qa,{style:y.Alpha,rgb:n,hsl:o,renderers:l,onChange:s}))),d.createElement("div",{style:y.color},d.createElement(Dt,null),d.createElement("div",{style:y.activeColor}))),d.createElement(RA,{rgb:n,hsl:o,hex:a,onChange:s,disableAlpha:u}),d.createElement(Vu,{colors:h,onClick:s,onSwatchHover:c}))};mi.propTypes={disableAlpha:O.bool,width:O.oneOfType([O.string,O.number]),styles:O.object},mi.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]},Fe(mi);var kr=function(t){var r=t.hsl,n=t.offset,a=t.onClick,i=a===void 0?function(){}:a,o=t.active,s=t.first,c=t.last,u=z({default:{swatch:{height:"12px",background:"hsl("+r.h+", 50%, "+n*100+"%)",cursor:"pointer"}},first:{swatch:{borderRadius:"2px 0 0 2px"}},last:{swatch:{borderRadius:"0 2px 2px 0"}},active:{swatch:{transform:"scaleY(1.8)",borderRadius:"3.6px/2px"}}},{active:o,first:s,last:c}),h=function(f){return i({h:r.h,s:.5,l:n,source:"hsl"},f)};return d.createElement("div",{style:u.swatch,onClick:h})},YA=function(t){var r=t.onClick,n=t.hsl,a=z({default:{swatches:{marginTop:"20px"},swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}}),i=.1;return d.createElement("div",{style:a.swatches},d.createElement("div",{style:a.swatch},d.createElement(kr,{hsl:n,offset:".80",active:Math.abs(n.l-.8)<i&&Math.abs(n.s-.5)<i,onClick:r,first:!0})),d.createElement("div",{style:a.swatch},d.createElement(kr,{hsl:n,offset:".65",active:Math.abs(n.l-.65)<i&&Math.abs(n.s-.5)<i,onClick:r})),d.createElement("div",{style:a.swatch},d.createElement(kr,{hsl:n,offset:".50",active:Math.abs(n.l-.5)<i&&Math.abs(n.s-.5)<i,onClick:r})),d.createElement("div",{style:a.swatch},d.createElement(kr,{hsl:n,offset:".35",active:Math.abs(n.l-.35)<i&&Math.abs(n.s-.5)<i,onClick:r})),d.createElement("div",{style:a.swatch},d.createElement(kr,{hsl:n,offset:".20",active:Math.abs(n.l-.2)<i&&Math.abs(n.s-.5)<i,onClick:r,last:!0})),d.createElement("div",{style:a.clear}))},XA=function(){var t=z({default:{picker:{width:"14px",height:"14px",borderRadius:"6px",transform:"translate(-7px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return d.createElement("div",{style:t.picker})},xi=function(t){var r=t.hsl,n=t.onChange,a=t.pointer,i=t.styles,o=i===void 0?{}:i,s=t.className,c=s===void 0?"":s,u=z(Ie({default:{hue:{height:"12px",position:"relative"},Hue:{radius:"2px"}}},o));return d.createElement("div",{style:u.wrap||{},className:"slider-picker "+c},d.createElement("div",{style:u.hue},d.createElement(Nt,{style:u.Hue,hsl:r,pointer:a,onChange:n})),d.createElement("div",{style:u.swatches},d.createElement(YA,{hsl:r,onClick:n})))};xi.propTypes={styles:O.object},xi.defaultProps={pointer:XA,styles:{}},Fe(xi);var Uu={};Object.defineProperty(Uu,"__esModule",{value:!0});var zu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},JA=d,Wu=ZA(JA);function ZA(e){return e&&e.__esModule?e:{default:e}}function QA(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}var gn=24,e5=Uu.default=function(e){var t=e.fill,r=t===void 0?"currentColor":t,n=e.width,a=n===void 0?gn:n,i=e.height,o=i===void 0?gn:i,s=e.style,c=s===void 0?{}:s,u=QA(e,["fill","width","height","style"]);return Wu.default.createElement("svg",zu({viewBox:"0 0 "+gn+" "+gn,style:zu({fill:r,width:a,height:o},c)},u),Wu.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))},t5=function(t){var r=t.color,n=t.onClick,a=n===void 0?function(){}:n,i=t.onSwatchHover,o=t.first,s=t.last,c=t.active,u=z({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:r,marginBottom:"1px"},check:{color:si(r),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:o,last:s,active:c,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return d.createElement(St,{color:r,style:u.color,onClick:a,onHover:i,focusStyle:{boxShadow:"0 0 4px "+r}},d.createElement("div",{style:u.check},d.createElement(e5,null)))},r5=function(t){var r=t.onClick,n=t.onSwatchHover,a=t.group,i=t.active,o=z({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return d.createElement("div",{style:o.group},wt(a,function(s,c){return d.createElement(t5,{key:s,color:s,active:s.toLowerCase()===i,first:c===0,last:c===a.length-1,onClick:r,onSwatchHover:n})}))},Si=function(t){var r=t.width,n=t.height,a=t.onChange,i=t.onSwatchHover,o=t.colors,s=t.hex,c=t.styles,u=c===void 0?{}:c,h=t.className,l=h===void 0?"":h,f=z(Ie({default:{picker:{width:r,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},u)),p=function(g,y){return a({hex:g,source:"hex"},y)};return d.createElement("div",{style:f.picker,className:"swatches-picker "+l},d.createElement(Ar,null,d.createElement("div",{style:f.overflow},d.createElement("div",{style:f.body},wt(o,function(v){return d.createElement(r5,{key:v.toString(),group:v,active:s,onClick:p,onSwatchHover:i})}),d.createElement("div",{style:f.clear})))))};Si.propTypes={width:O.oneOfType([O.string,O.number]),height:O.oneOfType([O.string,O.number]),colors:O.arrayOf(O.arrayOf(O.string)),styles:O.object},Si.defaultProps={width:320,height:240,colors:[[Bt[900],Bt[700],Bt[500],Bt[300],Bt[100]],[Ht[900],Ht[700],Ht[500],Ht[300],Ht[100]],[Gt[900],Gt[700],Gt[500],Gt[300],Gt[100]],[Vt[900],Vt[700],Vt[500],Vt[300],Vt[100]],[Ut[900],Ut[700],Ut[500],Ut[300],Ut[100]],[zt[900],zt[700],zt[500],zt[300],zt[100]],[Wt[900],Wt[700],Wt[500],Wt[300],Wt[100]],[Rt[900],Rt[700],Rt[500],Rt[300],Rt[100]],[Kt[900],Kt[700],Kt[500],Kt[300],Kt[100]],["#194D33",Fr[700],Fr[500],Fr[300],Fr[100]],[qt[900],qt[700],qt[500],qt[300],qt[100]],[Yt[900],Yt[700],Yt[500],Yt[300],Yt[100]],[Xt[900],Xt[700],Xt[500],Xt[300],Xt[100]],[Jt[900],Jt[700],Jt[500],Jt[300],Jt[100]],[Zt[900],Zt[700],Zt[500],Zt[300],Zt[100]],[Qt[900],Qt[700],Qt[500],Qt[300],Qt[100]],[er[900],er[700],er[500],er[300],er[100]],[tr[900],tr[700],tr[500],tr[300],tr[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}},Fe(Si);var wi=function(t){var r=t.onChange,n=t.onSwatchHover,a=t.hex,i=t.colors,o=t.width,s=t.triangle,c=t.styles,u=c===void 0?{}:c,h=t.className,l=h===void 0?"":h,f=z(Ie({default:{card:{width:o,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},u),{"hide-triangle":s==="hide","top-left-triangle":s==="top-left","top-right-triangle":s==="top-right"}),p=function(g,y){lt(g)&&r({hex:g,source:"hex"},y)};return d.createElement("div",{style:f.card,className:"twitter-picker "+l},d.createElement("div",{style:f.triangleShadow}),d.createElement("div",{style:f.triangle}),d.createElement("div",{style:f.body},wt(i,function(v,g){return d.createElement(St,{key:g,color:v,hex:v,style:f.swatch,onClick:p,onHover:n,focusStyle:{boxShadow:"0 0 4px "+v}})}),d.createElement("div",{style:f.hash},"#"),d.createElement(Z,{label:null,style:{input:f.input},value:a.replace("#",""),onChange:p}),d.createElement("div",{style:f.clear})))};wi.propTypes={width:O.oneOfType([O.string,O.number]),triangle:O.oneOf(["hide","top-left","top-right"]),colors:O.arrayOf(O.string),styles:O.object},wi.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}},Fe(wi);var Ei=function(t){var r=z({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",border:"2px #fff solid",transform:"translate(-12px, -13px)",background:"hsl("+Math.round(t.hsl.h)+", "+Math.round(t.hsl.s*100)+"%, "+Math.round(t.hsl.l*100)+"%)"}}});return d.createElement("div",{style:r.picker})};Ei.propTypes={hsl:O.shape({h:O.number,s:O.number,l:O.number,a:O.number})},Ei.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var _i=function(t){var r=z({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",transform:"translate(-10px, -7px)",background:"hsl("+Math.round(t.hsl.h)+", 100%, 50%)",border:"2px white solid"}}});return d.createElement("div",{style:r.picker})};_i.propTypes={hsl:O.shape({h:O.number,s:O.number,l:O.number,a:O.number})},_i.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var n5=function(t){var r=t.onChange,n=t.rgb,a=t.hsl,i=t.hex,o=t.hsv,s=function(p,v){if(p.hex)lt(p.hex)&&r({hex:p.hex,source:"hex"},v);else if(p.rgb){var g=p.rgb.split(",");li(p.rgb,"rgb")&&r({r:g[0],g:g[1],b:g[2],a:1,source:"rgb"},v)}else if(p.hsv){var y=p.hsv.split(",");li(p.hsv,"hsv")&&(y[2]=y[2].replace("%",""),y[1]=y[1].replace("%",""),y[0]=y[0].replace("°",""),y[1]==1?y[1]=.01:y[2]==1&&(y[2]=.01),r({h:Number(y[0]),s:Number(y[1]),v:Number(y[2]),source:"hsv"},v))}else if(p.hsl){var x=p.hsl.split(",");li(p.hsl,"hsl")&&(x[2]=x[2].replace("%",""),x[1]=x[1].replace("%",""),x[0]=x[0].replace("°",""),l[1]==1?l[1]=.01:l[2]==1&&(l[2]=.01),r({h:Number(x[0]),s:Number(x[1]),v:Number(x[2]),source:"hsl"},v))}},c=z({default:{wrap:{display:"flex",height:"100px",marginTop:"4px"},fields:{width:"100%"},column:{paddingTop:"10px",display:"flex",justifyContent:"space-between"},double:{padding:"0px 4.4px",boxSizing:"border-box"},input:{width:"100%",height:"38px",boxSizing:"border-box",padding:"4px 10% 3px",textAlign:"center",border:"1px solid #dadce0",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",fontFamily:"Roboto,Arial,sans-serif"},input2:{height:"38px",width:"100%",border:"1px solid #dadce0",boxSizing:"border-box",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",paddingLeft:"10px",fontFamily:"Roboto,Arial,sans-serif"},label:{textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"35px",top:"-6px",left:"0",right:"0",marginLeft:"auto",marginRight:"auto",fontFamily:"Roboto,Arial,sans-serif"},label2:{left:"10px",textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"32px",top:"-6px",fontFamily:"Roboto,Arial,sans-serif"},single:{flexGrow:"1",margin:"0px 4.4px"}}}),u=n.r+", "+n.g+", "+n.b,h=Math.round(a.h)+"°, "+Math.round(a.s*100)+"%, "+Math.round(a.l*100)+"%",l=Math.round(o.h)+"°, "+Math.round(o.s*100)+"%, "+Math.round(o.v*100)+"%";return d.createElement("div",{style:c.wrap,className:"flexbox-fix"},d.createElement("div",{style:c.fields},d.createElement("div",{style:c.double},d.createElement(Z,{style:{input:c.input,label:c.label},label:"hex",value:i,onChange:s})),d.createElement("div",{style:c.column},d.createElement("div",{style:c.single},d.createElement(Z,{style:{input:c.input2,label:c.label2},label:"rgb",value:u,onChange:s})),d.createElement("div",{style:c.single},d.createElement(Z,{style:{input:c.input2,label:c.label2},label:"hsv",value:l,onChange:s})),d.createElement("div",{style:c.single},d.createElement(Z,{style:{input:c.input2,label:c.label2},label:"hsl",value:h,onChange:s})))))},Ci=function(t){var r=t.width,n=t.onChange,a=t.rgb,i=t.hsl,o=t.hsv,s=t.hex,c=t.header,u=t.styles,h=u===void 0?{}:u,l=t.className,f=l===void 0?"":l,p=z(Ie({default:{picker:{width:r,background:"#fff",border:"1px solid #dfe1e5",boxSizing:"initial",display:"flex",flexWrap:"wrap",borderRadius:"8px 8px 0px 0px"},head:{height:"57px",width:"100%",paddingTop:"16px",paddingBottom:"16px",paddingLeft:"16px",fontSize:"20px",boxSizing:"border-box",fontFamily:"Roboto-Regular,HelveticaNeue,Arial,sans-serif"},saturation:{width:"70%",padding:"0px",position:"relative",overflow:"hidden"},swatch:{width:"30%",height:"228px",padding:"0px",background:"rgba("+a.r+", "+a.g+", "+a.b+", 1)",position:"relative",overflow:"hidden"},body:{margin:"auto",width:"95%"},controls:{display:"flex",boxSizing:"border-box",height:"52px",paddingTop:"22px"},color:{width:"32px"},hue:{height:"8px",position:"relative",margin:"0px 16px 0px 16px",width:"100%"},Hue:{radius:"2px"}}},h));return d.createElement("div",{style:p.picker,className:"google-picker "+f},d.createElement("div",{style:p.head},c),d.createElement("div",{style:p.swatch}),d.createElement("div",{style:p.saturation},d.createElement(cn,{hsl:i,hsv:o,pointer:Ei,onChange:n})),d.createElement("div",{style:p.body},d.createElement("div",{style:p.controls,className:"flexbox-fix"},d.createElement("div",{style:p.hue},d.createElement(Nt,{style:p.Hue,hsl:i,radius:"4px",pointer:_i,onChange:n}))),d.createElement(n5,{rgb:a,hsl:i,hex:s,hsv:o,onChange:n})))};Ci.propTypes={width:O.oneOfType([O.string,O.number]),styles:O.object,header:O.string},Ci.defaultProps={width:652,styles:{},header:"Color picker"},Fe(Ci);const a5=e=>{const[t,r]=d.useState(!1),[n,a]=d.useState(e.value),i=()=>{r(!t)},o=()=>{r(!1)},s=c=>{a(c.hex),e.onChange&&e.onChange(c.hex)};return m.jsxs("div",{children:[m.jsx(Ru,{disabled:e.disabled,color:n,onClick:i}),m.jsx(j.Dialog,{open:t,onClose:o,children:m.jsx(PA,{color:n,onChange:s,css:ve.css`
222
+ `),d.createElement("div",{style:h.white,className:"saturation-white"},d.createElement("div",{style:h.black,className:"saturation-black"}),d.createElement("div",{style:h.pointer},this.props.pointer?d.createElement(this.props.pointer,this.props):d.createElement("div",{style:h.circle}))))}}]),t}(d.PureComponent||d.Component);function L2(e,t){return e&&ou(e,t,pr)}function D2(e,t){return function(r,n){if(r==null)return r;if(!Pt(r))return e(r,n);for(var a=r.length,i=-1,o=Object(r);++i<a&&n(o[i],i,o)!==!1;);return r}}var du=D2(L2);function N2(e){return typeof e=="function"?e:cn}function B2(e,t){var r=$e(e)?ro:du;return r(e,N2(t))}function dn(e){"@babel/helpers - typeof";return dn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dn(e)}var H2=/^\s+/,G2=/\s+$/;function k(e,t){if(e=e||"",t=t||{},e instanceof k)return e;if(!(this instanceof k))return new k(e,t);var r=V2(e);this._originalInput=e,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=t.format||r.format,this._gradientType=t.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}k.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(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),r,n,a,i,o,s;return r=t.r/255,n=t.g/255,a=t.b/255,r<=.03928?i=r/12.92:i=Math.pow((r+.055)/1.055,2.4),n<=.03928?o=n/12.92:o=Math.pow((n+.055)/1.055,2.4),a<=.03928?s=a/12.92:s=Math.pow((a+.055)/1.055,2.4),.2126*i+.7152*o+.0722*s},setAlpha:function(t){return this._a=yu(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=pu(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=pu(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.v*100);return this._a==1?"hsv("+r+", "+n+"%, "+a+"%)":"hsva("+r+", "+n+"%, "+a+"%, "+this._roundA+")"},toHsl:function(){var t=hu(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=hu(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.l*100);return this._a==1?"hsl("+r+", "+n+"%, "+a+"%)":"hsla("+r+", "+n+"%, "+a+"%, "+this._roundA+")"},toHex:function(t){return vu(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return R2(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 this._a==1?"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(ve(this._r,255)*100)+"%",g:Math.round(ve(this._g,255)*100)+"%",b:Math.round(ve(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(ve(this._r,255)*100)+"%, "+Math.round(ve(this._g,255)*100)+"%, "+Math.round(ve(this._b,255)*100)+"%)":"rgba("+Math.round(ve(this._r,255)*100)+"%, "+Math.round(ve(this._g,255)*100)+"%, "+Math.round(ve(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:aO[vu(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var r="#"+gu(this._r,this._g,this._b,this._a),n=r,a=this._gradientType?"GradientType = 1, ":"";if(t){var i=k(t);n="#"+gu(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+a+"startColorstr="+r+",endColorstr="+n+")"},toString:function(t){var r=!!t;t=t||this._format;var n=!1,a=this._a<1&&this._a>=0,i=!r&&a&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return i?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return k(this.toString())},_applyModification:function(t,r){var n=t.apply(null,[this].concat([].slice.call(r)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(X2,arguments)},brighten:function(){return this._applyModification(J2,arguments)},darken:function(){return this._applyModification(Z2,arguments)},desaturate:function(){return this._applyModification(K2,arguments)},saturate:function(){return this._applyModification(q2,arguments)},greyscale:function(){return this._applyModification(Y2,arguments)},spin:function(){return this._applyModification(Q2,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(rO,arguments)},complement:function(){return this._applyCombination(eO,arguments)},monochromatic:function(){return this._applyCombination(nO,arguments)},splitcomplement:function(){return this._applyCombination(tO,arguments)},triad:function(){return this._applyCombination(bu,[3])},tetrad:function(){return this._applyCombination(bu,[4])}},k.fromRatio=function(e,t){if(dn(e)=="object"){var r={};for(var n in e)e.hasOwnProperty(n)&&(n==="a"?r[n]=e[n]:r[n]=Pr(e[n]));e=r}return k(e,t)};function V2(e){var t={r:0,g:0,b:0},r=1,n=null,a=null,i=null,o=!1,s=!1;return typeof e=="string"&&(e=lO(e)),dn(e)=="object"&&(rt(e.r)&&rt(e.g)&&rt(e.b)?(t=U2(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):rt(e.h)&&rt(e.s)&&rt(e.v)?(n=Pr(e.s),a=Pr(e.v),t=W2(e.h,n,a),o=!0,s="hsv"):rt(e.h)&&rt(e.s)&&rt(e.l)&&(n=Pr(e.s),i=Pr(e.l),t=z2(e.h,n,i),o=!0,s="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=yu(r),{ok:o,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}function U2(e,t,r){return{r:ve(e,255)*255,g:ve(t,255)*255,b:ve(r,255)*255}}function hu(e,t,r){e=ve(e,255),t=ve(t,255),r=ve(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),i,o,s=(n+a)/2;if(n==a)i=o=0;else{var c=n-a;switch(o=s>.5?c/(2-n-a):c/(n+a),n){case e:i=(t-r)/c+(t<r?6:0);break;case t:i=(r-e)/c+2;break;case r:i=(e-t)/c+4;break}i/=6}return{h:i,s:o,l:s}}function z2(e,t,r){var n,a,i;e=ve(e,360),t=ve(t,100),r=ve(r,100);function o(u,h,l){return l<0&&(l+=1),l>1&&(l-=1),l<1/6?u+(h-u)*6*l:l<1/2?h:l<2/3?u+(h-u)*(2/3-l)*6:u}if(t===0)n=a=i=r;else{var s=r<.5?r*(1+t):r+t-r*t,c=2*r-s;n=o(c,s,e+1/3),a=o(c,s,e),i=o(c,s,e-1/3)}return{r:n*255,g:a*255,b:i*255}}function pu(e,t,r){e=ve(e,255),t=ve(t,255),r=ve(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),i,o,s=n,c=n-a;if(o=n===0?0:c/n,n==a)i=0;else{switch(n){case e:i=(t-r)/c+(t<r?6:0);break;case t:i=(r-e)/c+2;break;case r:i=(e-t)/c+4;break}i/=6}return{h:i,s:o,v:s}}function W2(e,t,r){e=ve(e,360)*6,t=ve(t,100),r=ve(r,100);var n=Math.floor(e),a=e-n,i=r*(1-t),o=r*(1-a*t),s=r*(1-(1-a)*t),c=n%6,u=[r,o,i,i,s,r][c],h=[s,r,r,o,i,i][c],l=[i,i,s,r,r,o][c];return{r:u*255,g:h*255,b:l*255}}function vu(e,t,r,n){var a=[Ue(Math.round(e).toString(16)),Ue(Math.round(t).toString(16)),Ue(Math.round(r).toString(16))];return n&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function R2(e,t,r,n,a){var i=[Ue(Math.round(e).toString(16)),Ue(Math.round(t).toString(16)),Ue(Math.round(r).toString(16)),Ue(mu(n))];return a&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function gu(e,t,r,n){var a=[Ue(mu(n)),Ue(Math.round(e).toString(16)),Ue(Math.round(t).toString(16)),Ue(Math.round(r).toString(16))];return a.join("")}k.equals=function(e,t){return!e||!t?!1:k(e).toRgbString()==k(t).toRgbString()},k.random=function(){return k.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function K2(e,t){t=t===0?0:t||10;var r=k(e).toHsl();return r.s-=t/100,r.s=hn(r.s),k(r)}function q2(e,t){t=t===0?0:t||10;var r=k(e).toHsl();return r.s+=t/100,r.s=hn(r.s),k(r)}function Y2(e){return k(e).desaturate(100)}function X2(e,t){t=t===0?0:t||10;var r=k(e).toHsl();return r.l+=t/100,r.l=hn(r.l),k(r)}function J2(e,t){t=t===0?0:t||10;var r=k(e).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),k(r)}function Z2(e,t){t=t===0?0:t||10;var r=k(e).toHsl();return r.l-=t/100,r.l=hn(r.l),k(r)}function Q2(e,t){var r=k(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,k(r)}function eO(e){var t=k(e).toHsl();return t.h=(t.h+180)%360,k(t)}function bu(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var r=k(e).toHsl(),n=[k(e)],a=360/t,i=1;i<t;i++)n.push(k({h:(r.h+i*a)%360,s:r.s,l:r.l}));return n}function tO(e){var t=k(e).toHsl(),r=t.h;return[k(e),k({h:(r+72)%360,s:t.s,l:t.l}),k({h:(r+216)%360,s:t.s,l:t.l})]}function rO(e,t,r){t=t||6,r=r||30;var n=k(e).toHsl(),a=360/r,i=[k(e)];for(n.h=(n.h-(a*t>>1)+720)%360;--t;)n.h=(n.h+a)%360,i.push(k(n));return i}function nO(e,t){t=t||6;for(var r=k(e).toHsv(),n=r.h,a=r.s,i=r.v,o=[],s=1/t;t--;)o.push(k({h:n,s:a,v:i})),i=(i+s)%1;return o}k.mix=function(e,t,r){r=r===0?0:r||50;var n=k(e).toRgb(),a=k(t).toRgb(),i=r/100,o={r:(a.r-n.r)*i+n.r,g:(a.g-n.g)*i+n.g,b:(a.b-n.b)*i+n.b,a:(a.a-n.a)*i+n.a};return k(o)},k.readability=function(e,t){var r=k(e),n=k(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},k.isReadable=function(e,t,r){var n=k.readability(e,t),a,i;switch(i=!1,a=uO(r),a.level+a.size){case"AAsmall":case"AAAlarge":i=n>=4.5;break;case"AAlarge":i=n>=3;break;case"AAAsmall":i=n>=7;break}return i},k.mostReadable=function(e,t,r){var n=null,a=0,i,o,s,c;r=r||{},o=r.includeFallbackColors,s=r.level,c=r.size;for(var u=0;u<t.length;u++)i=k.readability(e,t[u]),i>a&&(a=i,n=k(t[u]));return k.isReadable(e,n,{level:s,size:c})||!o?n:(r.includeFallbackColors=!1,k.mostReadable(e,["#fff","#000"],r))};var si=k.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"},aO=k.hexNames=iO(si);function iO(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}function yu(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ve(e,t){oO(e)&&(e="100%");var r=sO(e);return e=Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function hn(e){return Math.min(1,Math.max(0,e))}function je(e){return parseInt(e,16)}function oO(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function sO(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Ue(e){return e.length==1?"0"+e:""+e}function Pr(e){return e<=1&&(e=e*100+"%"),e}function mu(e){return Math.round(parseFloat(e)*255).toString(16)}function xu(e){return je(e)/255}var ze=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",r="(?:"+t+")|(?:"+e+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",a="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+a),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+a),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+a),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 rt(e){return!!ze.CSS_UNIT.exec(e)}function lO(e){e=e.replace(H2,"").replace(G2,"").toLowerCase();var t=!1;if(si[e])e=si[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=ze.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=ze.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=ze.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=ze.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=ze.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=ze.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=ze.hex8.exec(e))?{r:je(r[1]),g:je(r[2]),b:je(r[3]),a:xu(r[4]),format:t?"name":"hex8"}:(r=ze.hex6.exec(e))?{r:je(r[1]),g:je(r[2]),b:je(r[3]),format:t?"name":"hex"}:(r=ze.hex4.exec(e))?{r:je(r[1]+""+r[1]),g:je(r[2]+""+r[2]),b:je(r[3]+""+r[3]),a:xu(r[4]+""+r[4]),format:t?"name":"hex8"}:(r=ze.hex3.exec(e))?{r:je(r[1]+""+r[1]),g:je(r[2]+""+r[2]),b:je(r[3]+""+r[3]),format:t?"name":"hex"}:!1}function uO(e){var t,r;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:t,size:r}}var Su=function(t){var r=["r","g","b","a","h","s","l","v"],n=0,a=0;return B2(r,function(i){if(t[i]&&(n+=1,isNaN(t[i])||(a+=1),i==="s"||i==="l")){var o=/^\d+%$/;o.test(t[i])&&(a+=1)}}),n===a?t:!1},Mr=function(t,r){var n=t.hex?k(t.hex):k(t),a=n.toHsl(),i=n.toHsv(),o=n.toRgb(),s=n.toHex();a.s===0&&(a.h=r||0,i.h=r||0);var c=s==="000000"&&o.a===0;return{hsl:a,hex:c?"transparent":"#"+s,rgb:o,hsv:i,oldHue:t.h||r||a.h,source:t.source}},lt=function(t){if(t==="transparent")return!0;var r=String(t).charAt(0)==="#"?1:0;return t.length!==4+r&&t.length<7+r&&k(t).isValid()},li=function(t){if(!t)return"#fff";var r=Mr(t);if(r.hex==="transparent")return"rgba(0,0,0,0.4)";var n=(r.rgb.r*299+r.rgb.g*587+r.rgb.b*114)/1e3;return n>=128?"#000":"#fff"},ui=function(t,r){var n=t.replace("°","");return k(r+" ("+n+")")._ok},Ir=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},cO=function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function fO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dO(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function hO(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Fe=function(t){var r=function(n){hO(a,n);function a(i){fO(this,a);var o=dO(this,(a.__proto__||Object.getPrototypeOf(a)).call(this));return o.handleChange=function(s,c){var u=Su(s);if(u){var h=Mr(s,s.h||o.state.oldHue);o.setState(h),o.props.onChangeComplete&&o.debounce(o.props.onChangeComplete,h,c),o.props.onChange&&o.props.onChange(h,c)}},o.handleSwatchHover=function(s,c){var u=Su(s);if(u){var h=Mr(s,s.h||o.state.oldHue);o.props.onSwatchHover&&o.props.onSwatchHover(h,c)}},o.state=Ir({},Mr(i.color,0)),o.debounce=fu(function(s,c,u){s(c,u)},100),o}return cO(a,[{key:"render",value:function(){var o={};return this.props.onSwatchHover&&(o.onSwatchHover=this.handleSwatchHover),d.createElement(t,Ir({},this.props,this.state,{onChange:this.handleChange},o))}}],[{key:"getDerivedStateFromProps",value:function(o,s){return Ir({},Mr(o.color,s.oldHue))}}]),a}(d.PureComponent||d.Component);return r.propTypes=Ir({},t.propTypes),r.defaultProps=Ir({},t.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),r},pO=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vO=function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function gO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wu(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function bO(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var yO=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){bO(a,n);function a(){var i,o,s,c;gO(this,a);for(var u=arguments.length,h=Array(u),l=0;l<u;l++)h[l]=arguments[l];return c=(o=(s=wu(this,(i=a.__proto__||Object.getPrototypeOf(a)).call.apply(i,[this].concat(h))),s),s.state={focus:!1},s.handleFocus=function(){return s.setState({focus:!0})},s.handleBlur=function(){return s.setState({focus:!1})},o),wu(s,c)}return vO(a,[{key:"render",value:function(){return d.createElement(r,{onFocus:this.handleFocus,onBlur:this.handleBlur},d.createElement(t,pO({},this.props,this.state)))}}]),a}(d.Component)},Eu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mO=13,xO=function(t){var r=t.color,n=t.style,a=t.onClick,i=a===void 0?function(){}:a,o=t.onHover,s=t.title,c=s===void 0?r:s,u=t.children,h=t.focus,l=t.focusStyle,f=l===void 0?{}:l,p=r==="transparent",v=z({default:{swatch:Eu({background:r,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},n,h?f:{})}}),g=function(S){return i(r,S)},y=function(S){return S.keyCode===mO&&i(r,S)},x=function(S){return o(r,S)},C={};return o&&(C.onMouseOver=x),d.createElement("div",Eu({style:v.swatch,onClick:g,title:c,tabIndex:0,onKeyDown:y},C),u,p&&d.createElement(Dt,{borderRadius:v.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))};const St=yO(xO);var SO=function(t){var r=t.direction,n=z({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:r==="vertical"});return d.createElement("div",{style:n.picker})},wO=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_u=function(t){var r=t.rgb,n=t.hsl,a=t.width,i=t.height,o=t.onChange,s=t.direction,c=t.style,u=t.renderers,h=t.pointer,l=t.className,f=l===void 0?"":l,p=z({default:{picker:{position:"relative",width:a,height:i},alpha:{radius:"2px",style:c}}});return d.createElement("div",{style:p.picker,className:"alpha-picker "+f},d.createElement(Ya,wO({},p.alpha,{rgb:r,hsl:n,pointer:h,renderers:u,onChange:o,direction:s})))};_u.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:SO},Fe(_u);var EO="__lodash_hash_undefined__";function _O(e){return this.__data__.set(e,EO),this}function CO(e){return this.__data__.has(e)}function pn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new et;++t<r;)this.add(e[t])}pn.prototype.add=pn.prototype.push=_O,pn.prototype.has=CO;function $O(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function TO(e,t){return e.has(t)}var OO=1,AO=2;function Cu(e,t,r,n,a,i){var o=r&OO,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var u=i.get(e),h=i.get(t);if(u&&h)return u==t&&h==e;var l=-1,f=!0,p=r&AO?new pn:void 0;for(i.set(e,t),i.set(t,e);++l<s;){var v=e[l],g=t[l];if(n)var y=o?n(g,v,l,t,e,i):n(v,g,l,e,t,i);if(y!==void 0){if(y)continue;f=!1;break}if(p){if(!$O(t,function(x,C){if(!TO(p,C)&&(v===x||a(v,x,r,n,i)))return p.push(C)})){f=!1;break}}else if(!(v===g||a(v,g,r,n,i))){f=!1;break}}return i.delete(e),i.delete(t),f}function PO(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}function MO(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var IO=1,FO=2,kO="[object Boolean]",jO="[object Date]",LO="[object Error]",DO="[object Map]",NO="[object Number]",BO="[object RegExp]",HO="[object Set]",GO="[object String]",VO="[object Symbol]",UO="[object ArrayBuffer]",zO="[object DataView]",$u=Ke?Ke.prototype:void 0,ci=$u?$u.valueOf:void 0;function WO(e,t,r,n,a,i,o){switch(r){case zO:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case UO:return!(e.byteLength!=t.byteLength||!i(new Wr(e),new Wr(t)));case kO:case jO:case NO:return lr(+e,+t);case LO:return e.name==t.name&&e.message==t.message;case BO:case GO:return e==t+"";case DO:var s=PO;case HO:var c=n&IO;if(s||(s=MO),e.size!=t.size&&!c)return!1;var u=o.get(e);if(u)return u==t;n|=FO,o.set(e,t);var h=Cu(s(e),s(t),n,a,i,o);return o.delete(e),h;case VO:if(ci)return ci.call(e)==ci.call(t)}return!1}var RO=1,KO=Object.prototype,qO=KO.hasOwnProperty;function YO(e,t,r,n,a,i){var o=r&RO,s=Bn(e),c=s.length,u=Bn(t),h=u.length;if(c!=h&&!o)return!1;for(var l=c;l--;){var f=s[l];if(!(o?f in t:qO.call(t,f)))return!1}var p=i.get(e),v=i.get(t);if(p&&v)return p==t&&v==e;var g=!0;i.set(e,t),i.set(t,e);for(var y=o;++l<c;){f=s[l];var x=e[f],C=t[f];if(n)var _=o?n(C,x,f,t,e,i):n(x,C,f,e,t,i);if(!(_===void 0?x===C||a(x,C,r,n,i):_)){g=!1;break}y||(y=f=="constructor")}if(g&&!y){var S=e.constructor,b=t.constructor;S!=b&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof b=="function"&&b instanceof b)&&(g=!1)}return i.delete(e),i.delete(t),g}var XO=1,Tu="[object Arguments]",Ou="[object Array]",vn="[object Object]",JO=Object.prototype,Au=JO.hasOwnProperty;function ZO(e,t,r,n,a,i){var o=$e(e),s=$e(t),c=o?Ou:Ve(e),u=s?Ou:Ve(t);c=c==Tu?vn:c,u=u==Tu?vn:u;var h=c==vn,l=u==vn,f=c==u;if(f&&dr(e)){if(!dr(t))return!1;o=!0,h=!1}if(f&&!h)return i||(i=new Ge),o||jn(e)?Cu(e,t,r,n,a,i):WO(e,t,c,r,n,a,i);if(!(r&XO)){var p=h&&Au.call(e,"__wrapped__"),v=l&&Au.call(t,"__wrapped__");if(p||v){var g=p?e.value():e,y=v?t.value():t;return i||(i=new Ge),a(g,y,r,n,i)}}return f?(i||(i=new Ge),YO(e,t,r,n,a,i)):!1}function fi(e,t,r,n,a){return e===t?!0:e==null||t==null||!qe(e)&&!qe(t)?e!==e&&t!==t:ZO(e,t,r,n,fi,a)}var QO=1,eA=2;function tA(e,t,r,n){var a=r.length,i=a;if(e==null)return!i;for(e=Object(e);a--;){var o=r[a];if(o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++a<i;){o=r[a];var s=o[0],c=e[s],u=o[1];if(o[2]){if(c===void 0&&!(s in e))return!1}else{var h=new Ge,l;if(!(l===void 0?fi(u,c,QO|eA,n,h):l))return!1}}return!0}function Pu(e){return e===e&&!ke(e)}function rA(e){for(var t=pr(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,Pu(a)]}return t}function Mu(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function nA(e){var t=rA(e);return t.length==1&&t[0][2]?Mu(t[0][0],t[0][1]):function(r){return r===e||tA(r,e,t)}}var aA=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,iA=/^\w*$/;function di(e,t){if($e(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||gr(e)?!0:iA.test(e)||!aA.test(e)||t!=null&&e in Object(t)}function Iu(e,t){return $e(e)?e:di(e,t)?[e]:Bo(Uo(e))}function Fu(e,t){t=Iu(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[br(t[r++])];return r&&r==n?e:void 0}function oA(e,t,r){var n=e==null?void 0:Fu(e,t);return n===void 0?r:n}function sA(e,t){return e!=null&&t in Object(e)}function lA(e,t,r){t=Iu(t,e);for(var n=-1,a=t.length,i=!1;++n<a;){var o=br(t[n]);if(!(i=e!=null&&r(e,o)))break;e=e[o]}return i||++n!=a?i:(a=e==null?0:e.length,!!a&&In(a)&&Mn(o,a)&&($e(e)||zr(e)))}function uA(e,t){return e!=null&&lA(e,t,sA)}var cA=1,fA=2;function dA(e,t){return di(e)&&Pu(t)?Mu(br(e),t):function(r){var n=oA(r,e);return n===void 0&&n===t?uA(r,e):fi(t,n,cA|fA)}}function hA(e){return function(t){return t==null?void 0:t[e]}}function pA(e){return function(t){return Fu(t,e)}}function vA(e){return di(e)?hA(br(e)):pA(e)}function gA(e){return typeof e=="function"?e:e==null?cn:typeof e=="object"?$e(e)?dA(e[0],e[1]):nA(e):vA(e)}function bA(e,t){var r=-1,n=Pt(e)?Array(e.length):[];return du(e,function(a,i,o){n[++r]=t(a,i,o)}),n}function wt(e,t){var r=$e(e)?Wn:bA;return r(e,gA(t))}var yA=function(t){var r=t.colors,n=t.onClick,a=t.onSwatchHover,i=z({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return d.createElement("div",{style:i.swatches},wt(r,function(o){return d.createElement(St,{key:o,color:o,style:i.swatch,onClick:n,onHover:a,focusStyle:{boxShadow:"0 0 4px "+o}})}),d.createElement("div",{style:i.clear}))},hi=function(t){var r=t.onChange,n=t.onSwatchHover,a=t.hex,i=t.colors,o=t.width,s=t.triangle,c=t.styles,u=c===void 0?{}:c,h=t.className,l=h===void 0?"":h,f=a==="transparent",p=function(y,x){lt(y)&&r({hex:y,source:"hex"},x)},v=z(Ie({default:{card:{width:o,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:a,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:li(a),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+a+" transparent",position:"absolute",top:"-10px",left:"50%",marginLeft:"-10px"},input:{width:"100%",fontSize:"12px",color:"#666",border:"0px",outline:"none",height:"22px",boxShadow:"inset 0 0 0 1px #ddd",borderRadius:"4px",padding:"0 7px",boxSizing:"border-box"}},"hide-triangle":{triangle:{display:"none"}}},u),{"hide-triangle":s==="hide"});return d.createElement("div",{style:v.card,className:"block-picker "+l},d.createElement("div",{style:v.triangle}),d.createElement("div",{style:v.head},f&&d.createElement(Dt,{borderRadius:"6px 6px 0 0"}),d.createElement("div",{style:v.label},a)),d.createElement("div",{style:v.body},d.createElement(yA,{colors:i,onClick:p,onSwatchHover:n}),d.createElement(Z,{style:{input:v.input},value:a,onChange:p})))};hi.propTypes={width:O.oneOfType([O.string,O.number]),colors:O.arrayOf(O.string),triangle:O.oneOf(["top","hide"]),styles:O.object},hi.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top",styles:{}},Fe(hi);var Bt={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",a100:"#ff8a80",a200:"#ff5252",a400:"#ff1744",a700:"#d50000"},Ht={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",a100:"#ff80ab",a200:"#ff4081",a400:"#f50057",a700:"#c51162"},Gt={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",a100:"#ea80fc",a200:"#e040fb",a400:"#d500f9",a700:"#aa00ff"},Vt={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",a100:"#b388ff",a200:"#7c4dff",a400:"#651fff",a700:"#6200ea"},Ut={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",a100:"#8c9eff",a200:"#536dfe",a400:"#3d5afe",a700:"#304ffe"},zt={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",a100:"#82b1ff",a200:"#448aff",a400:"#2979ff",a700:"#2962ff"},Wt={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",a100:"#80d8ff",a200:"#40c4ff",a400:"#00b0ff",a700:"#0091ea"},Rt={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",a100:"#84ffff",a200:"#18ffff",a400:"#00e5ff",a700:"#00b8d4"},Kt={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",a100:"#a7ffeb",a200:"#64ffda",a400:"#1de9b6",a700:"#00bfa5"},Fr={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",a100:"#b9f6ca",a200:"#69f0ae",a400:"#00e676",a700:"#00c853"},qt={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",a100:"#ccff90",a200:"#b2ff59",a400:"#76ff03",a700:"#64dd17"},Yt={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",a100:"#f4ff81",a200:"#eeff41",a400:"#c6ff00",a700:"#aeea00"},Xt={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",a100:"#ffff8d",a200:"#ffff00",a400:"#ffea00",a700:"#ffd600"},Jt={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",a100:"#ffe57f",a200:"#ffd740",a400:"#ffc400",a700:"#ffab00"},Zt={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",a100:"#ffd180",a200:"#ffab40",a400:"#ff9100",a700:"#ff6d00"},Qt={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",a100:"#ff9e80",a200:"#ff6e40",a400:"#ff3d00",a700:"#dd2c00"},er={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},tr={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"},ku=function(t){var r=t.color,n=t.onClick,a=t.onSwatchHover,i=t.hover,o=t.active,s=t.circleSize,c=t.circleSpacing,u=z({default:{swatch:{width:s,height:s,marginRight:c,marginBottom:c,transform:"scale(1)",transition:"100ms transform ease"},Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+(s/2+1)+"px "+r,transition:"100ms box-shadow ease"}},hover:{swatch:{transform:"scale(1.2)"}},active:{Swatch:{boxShadow:"inset 0 0 0 3px "+r}}},{hover:i,active:o});return d.createElement("div",{style:u.swatch},d.createElement(St,{style:u.Swatch,color:r,onClick:n,onHover:a,focusStyle:{boxShadow:u.Swatch.boxShadow+", 0 0 5px "+r}}))};ku.defaultProps={circleSize:28,circleSpacing:14};const mA=Ka(ku);var pi=function(t){var r=t.width,n=t.onChange,a=t.onSwatchHover,i=t.colors,o=t.hex,s=t.circleSize,c=t.styles,u=c===void 0?{}:c,h=t.circleSpacing,l=t.className,f=l===void 0?"":l,p=z(Ie({default:{card:{width:r,display:"flex",flexWrap:"wrap",marginRight:-h,marginBottom:-h}}},u)),v=function(y,x){return n({hex:y,source:"hex"},x)};return d.createElement("div",{style:p.card,className:"circle-picker "+f},wt(i,function(g){return d.createElement(mA,{key:g,color:g,onClick:v,onSwatchHover:a,active:o===g.toLowerCase(),circleSize:s,circleSpacing:h})}))};pi.propTypes={width:O.oneOfType([O.string,O.number]),circleSize:O.number,circleSpacing:O.number,styles:O.object},pi.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[Bt[500],Ht[500],Gt[500],Vt[500],Ut[500],zt[500],Wt[500],Rt[500],Kt[500],Fr[500],qt[500],Yt[500],Xt[500],Jt[500],Zt[500],Qt[500],er[500],tr[500]],styles:{}},Fe(pi);function ju(e){return e===void 0}var Lu={};Object.defineProperty(Lu,"__esModule",{value:!0});var Du=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xA=d,Nu=SA(xA);function SA(e){return e&&e.__esModule?e:{default:e}}function wA(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}var gn=24,EA=Lu.default=function(e){var t=e.fill,r=t===void 0?"currentColor":t,n=e.width,a=n===void 0?gn:n,i=e.height,o=i===void 0?gn:i,s=e.style,c=s===void 0?{}:s,u=wA(e,["fill","width","height","style"]);return Nu.default.createElement("svg",Du({viewBox:"0 0 "+gn+" "+gn,style:Du({fill:r,width:a,height:o},c)},u),Nu.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))},_A=function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function CA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $A(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function TA(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Bu=function(e){TA(t,e);function t(r){CA(this,t);var n=$A(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.toggleViews=function(){n.state.view==="hex"?n.setState({view:"rgb"}):n.state.view==="rgb"?n.setState({view:"hsl"}):n.state.view==="hsl"&&(n.props.hsl.a===1?n.setState({view:"hex"}):n.setState({view:"rgb"}))},n.handleChange=function(a,i){a.hex?lt(a.hex)&&n.props.onChange({hex:a.hex,source:"hex"},i):a.r||a.g||a.b?n.props.onChange({r:a.r||n.props.rgb.r,g:a.g||n.props.rgb.g,b:a.b||n.props.rgb.b,source:"rgb"},i):a.a?(a.a<0?a.a=0:a.a>1&&(a.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(a.a*100)/100,source:"rgb"},i)):(a.h||a.s||a.l)&&(typeof a.s=="string"&&a.s.includes("%")&&(a.s=a.s.replace("%","")),typeof a.l=="string"&&a.l.includes("%")&&(a.l=a.l.replace("%","")),a.s==1?a.s=.01:a.l==1&&(a.l=.01),n.props.onChange({h:a.h||n.props.hsl.h,s:Number(ju(a.s)?n.props.hsl.s:a.s),l:Number(ju(a.l)?n.props.hsl.l:a.l),source:"hsl"},i))},n.showHighlight=function(a){a.currentTarget.style.background="#eee"},n.hideHighlight=function(a){a.currentTarget.style.background="transparent"},r.hsl.a!==1&&r.view==="hex"?n.state={view:"rgb"}:n.state={view:r.view},n}return _A(t,[{key:"render",value:function(){var n=this,a=z({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),i=void 0;return this.state.view==="hex"?i=d.createElement("div",{style:a.fields,className:"flexbox-fix"},d.createElement("div",{style:a.field},d.createElement(Z,{style:{input:a.input,label:a.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):this.state.view==="rgb"?i=d.createElement("div",{style:a.fields,className:"flexbox-fix"},d.createElement("div",{style:a.field},d.createElement(Z,{style:{input:a.input,label:a.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),d.createElement("div",{style:a.field},d.createElement(Z,{style:{input:a.input,label:a.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),d.createElement("div",{style:a.field},d.createElement(Z,{style:{input:a.input,label:a.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),d.createElement("div",{style:a.alpha},d.createElement(Z,{style:{input:a.input,label:a.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):this.state.view==="hsl"&&(i=d.createElement("div",{style:a.fields,className:"flexbox-fix"},d.createElement("div",{style:a.field},d.createElement(Z,{style:{input:a.input,label:a.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),d.createElement("div",{style:a.field},d.createElement(Z,{style:{input:a.input,label:a.label},label:"s",value:Math.round(this.props.hsl.s*100)+"%",onChange:this.handleChange})),d.createElement("div",{style:a.field},d.createElement(Z,{style:{input:a.input,label:a.label},label:"l",value:Math.round(this.props.hsl.l*100)+"%",onChange:this.handleChange})),d.createElement("div",{style:a.alpha},d.createElement(Z,{style:{input:a.input,label:a.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),d.createElement("div",{style:a.wrap,className:"flexbox-fix"},i,d.createElement("div",{style:a.toggle},d.createElement("div",{style:a.icon,onClick:this.toggleViews,ref:function(s){return n.icon=s}},d.createElement(EA,{style:a.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(n,a){return n.hsl.a!==1&&a.view==="hex"?{view:"rgb"}:null}}]),t}(d.Component);Bu.defaultProps={view:"hex"};var Hu=function(){var t=z({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return d.createElement("div",{style:t.picker})},OA=function(){var t=z({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return d.createElement("div",{style:t.picker})},vi=function(t){var r=t.width,n=t.onChange,a=t.disableAlpha,i=t.rgb,o=t.hsl,s=t.hsv,c=t.hex,u=t.renderers,h=t.styles,l=h===void 0?{}:h,f=t.className,p=f===void 0?"":f,v=t.defaultView,g=z(Ie({default:{picker:{width:r,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+i.r+", "+i.g+", "+i.b+", "+i.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},l),{disableAlpha:a});return d.createElement("div",{style:g.picker,className:"chrome-picker "+p},d.createElement("div",{style:g.saturation},d.createElement(fn,{style:g.Saturation,hsl:o,hsv:s,pointer:OA,onChange:n})),d.createElement("div",{style:g.body},d.createElement("div",{style:g.controls,className:"flexbox-fix"},d.createElement("div",{style:g.color},d.createElement("div",{style:g.swatch},d.createElement("div",{style:g.active}),d.createElement(Dt,{renderers:u}))),d.createElement("div",{style:g.toggles},d.createElement("div",{style:g.hue},d.createElement(Nt,{style:g.Hue,hsl:o,pointer:Hu,onChange:n})),d.createElement("div",{style:g.alpha},d.createElement(Ya,{style:g.Alpha,rgb:i,hsl:o,pointer:Hu,renderers:u,onChange:n})))),d.createElement(Bu,{rgb:i,hsl:o,hex:c,view:v,onChange:n,disableAlpha:a})))};vi.propTypes={width:O.oneOfType([O.string,O.number]),disableAlpha:O.bool,styles:O.object,defaultView:O.oneOf(["hex","rgb","hsl"])},vi.defaultProps={width:225,disableAlpha:!1,styles:{}};const AA=Fe(vi);var PA=function(t){var r=t.color,n=t.onClick,a=n===void 0?function(){}:n,i=t.onSwatchHover,o=t.active,s=z({default:{color:{background:r,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:li(r),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:o,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return d.createElement(St,{style:s.color,color:r,onClick:a,onHover:i,focusStyle:{boxShadow:"0 0 4px "+r}},d.createElement("div",{style:s.dot}))},MA=function(t){var r=t.hex,n=t.rgb,a=t.onChange,i=z({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:r},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),o=function(c,u){c.r||c.g||c.b?a({r:c.r||n.r,g:c.g||n.g,b:c.b||n.b,source:"rgb"},u):a({hex:c.hex,source:"hex"},u)};return d.createElement("div",{style:i.fields,className:"flexbox-fix"},d.createElement("div",{style:i.active}),d.createElement(Z,{style:{wrap:i.HEXwrap,input:i.HEXinput,label:i.HEXlabel},label:"hex",value:r,onChange:o}),d.createElement(Z,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"r",value:n.r,onChange:o}),d.createElement(Z,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"g",value:n.g,onChange:o}),d.createElement(Z,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"b",value:n.b,onChange:o}))},gi=function(t){var r=t.onChange,n=t.onSwatchHover,a=t.colors,i=t.hex,o=t.rgb,s=t.styles,c=s===void 0?{}:s,u=t.className,h=u===void 0?"":u,l=z(Ie({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},c)),f=function(v,g){v.hex?lt(v.hex)&&r({hex:v.hex,source:"hex"},g):r(v,g)};return d.createElement(Ar,{style:l.Compact,styles:c},d.createElement("div",{style:l.compact,className:"compact-picker "+h},d.createElement("div",null,wt(a,function(p){return d.createElement(PA,{key:p,color:p,active:p.toLowerCase()===i,onClick:f,onSwatchHover:n})}),d.createElement("div",{style:l.clear})),d.createElement(MA,{hex:i,rgb:o,onChange:f})))};gi.propTypes={colors:O.arrayOf(O.string),styles:O.object},gi.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}},Fe(gi);var IA=function(t){var r=t.hover,n=t.color,a=t.onClick,i=t.onSwatchHover,o={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},s=z({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:o}},{hover:r});return d.createElement("div",{style:s.swatch},d.createElement(St,{color:n,onClick:a,onHover:i,focusStyle:o}))};const FA=Ka(IA);var bi=function(t){var r=t.width,n=t.colors,a=t.onChange,i=t.onSwatchHover,o=t.triangle,s=t.styles,c=s===void 0?{}:s,u=t.className,h=u===void 0?"":u,l=z(Ie({default:{card:{width:r,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},c),{"hide-triangle":o==="hide","top-left-triangle":o==="top-left","top-right-triangle":o==="top-right","bottom-left-triangle":o==="bottom-left","bottom-right-triangle":o==="bottom-right"}),f=function(v,g){return a({hex:v,source:"hex"},g)};return d.createElement("div",{style:l.card,className:"github-picker "+h},d.createElement("div",{style:l.triangleShadow}),d.createElement("div",{style:l.triangle}),wt(n,function(p){return d.createElement(FA,{color:p,key:p,onClick:f,onSwatchHover:i})}))};bi.propTypes={width:O.oneOfType([O.string,O.number]),colors:O.arrayOf(O.string),triangle:O.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:O.object},bi.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}},Fe(bi);var kA=function(t){var r=t.direction,n=z({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:r==="vertical"});return d.createElement("div",{style:n.picker})},jA=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yi=function(t){var r=t.width,n=t.height,a=t.onChange,i=t.hsl,o=t.direction,s=t.pointer,c=t.styles,u=c===void 0?{}:c,h=t.className,l=h===void 0?"":h,f=z(Ie({default:{picker:{position:"relative",width:r,height:n},hue:{radius:"2px"}}},u)),p=function(g){return a({a:1,h:g.h,l:.5,s:1})};return d.createElement("div",{style:f.picker,className:"hue-picker "+l},d.createElement(Nt,jA({},f.hue,{hsl:i,pointer:s,onChange:p,direction:o})))};yi.propTypes={styles:O.object},yi.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:kA,styles:{}},Fe(yi);var LA=function(t){var r=t.onChange,n=t.hex,a=t.rgb,i=t.styles,o=i===void 0?{}:i,s=t.className,c=s===void 0?"":s,u=z(Ie({default:{material:{width:"98px",height:"98px",padding:"16px",fontFamily:"Roboto"},HEXwrap:{position:"relative"},HEXinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"2px solid "+n,outline:"none",height:"30px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},Hex:{style:{}},RGBwrap:{position:"relative"},RGBinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"1px solid #eee",outline:"none",height:"30px"},RGBlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},split:{display:"flex",marginRight:"-10px",paddingTop:"11px"},third:{flex:"1",paddingRight:"10px"}}},o)),h=function(f,p){f.hex?lt(f.hex)&&r({hex:f.hex,source:"hex"},p):(f.r||f.g||f.b)&&r({r:f.r||a.r,g:f.g||a.g,b:f.b||a.b,source:"rgb"},p)};return d.createElement(Ar,{styles:o},d.createElement("div",{style:u.material,className:"material-picker "+c},d.createElement(Z,{style:{wrap:u.HEXwrap,input:u.HEXinput,label:u.HEXlabel},label:"hex",value:n,onChange:h}),d.createElement("div",{style:u.split,className:"flexbox-fix"},d.createElement("div",{style:u.third},d.createElement(Z,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"r",value:a.r,onChange:h})),d.createElement("div",{style:u.third},d.createElement(Z,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"g",value:a.g,onChange:h})),d.createElement("div",{style:u.third},d.createElement(Z,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"b",value:a.b,onChange:h})))))};Fe(LA);var DA=function(t){var r=t.onChange,n=t.rgb,a=t.hsv,i=t.hex,o=z({default:{fields:{paddingTop:"5px",paddingBottom:"9px",width:"80px",position:"relative"},divider:{height:"5px"},RGBwrap:{position:"relative"},RGBinput:{marginLeft:"40%",width:"40%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"5px",fontSize:"13px",paddingLeft:"3px",marginRight:"10px"},RGBlabel:{left:"0px",top:"0px",width:"34px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px",position:"absolute"},HEXwrap:{position:"relative"},HEXinput:{marginLeft:"20%",width:"80%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"6px",fontSize:"13px",paddingLeft:"3px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",width:"14px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px"},fieldSymbols:{position:"absolute",top:"5px",right:"-7px",fontSize:"13px"},symbol:{height:"20px",lineHeight:"22px",paddingBottom:"7px"}}}),s=function(u,h){u["#"]?lt(u["#"])&&r({hex:u["#"],source:"hex"},h):u.r||u.g||u.b?r({r:u.r||n.r,g:u.g||n.g,b:u.b||n.b,source:"rgb"},h):(u.h||u.s||u.v)&&r({h:u.h||a.h,s:u.s||a.s,v:u.v||a.v,source:"hsv"},h)};return d.createElement("div",{style:o.fields},d.createElement(Z,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"h",value:Math.round(a.h),onChange:s}),d.createElement(Z,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"s",value:Math.round(a.s*100),onChange:s}),d.createElement(Z,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"v",value:Math.round(a.v*100),onChange:s}),d.createElement("div",{style:o.divider}),d.createElement(Z,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"r",value:n.r,onChange:s}),d.createElement(Z,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"g",value:n.g,onChange:s}),d.createElement(Z,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"b",value:n.b,onChange:s}),d.createElement("div",{style:o.divider}),d.createElement(Z,{style:{wrap:o.HEXwrap,input:o.HEXinput,label:o.HEXlabel},label:"#",value:i.replace("#",""),onChange:s}),d.createElement("div",{style:o.fieldSymbols},d.createElement("div",{style:o.symbol},"°"),d.createElement("div",{style:o.symbol},"%"),d.createElement("div",{style:o.symbol},"%")))},NA=function(t){var r=t.hsl,n=z({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}},"black-outline":{picker:{boxShadow:"inset 0 0 0 1px #000"}}},{"black-outline":r.l>.5});return d.createElement("div",{style:n.picker})},BA=function(){var t=z({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return d.createElement("div",{style:t.pointer},d.createElement("div",{style:t.left},d.createElement("div",{style:t.leftInside})),d.createElement("div",{style:t.right},d.createElement("div",{style:t.rightInside})))},Gu=function(t){var r=t.onClick,n=t.label,a=t.children,i=t.active,o=z({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:i});return d.createElement("div",{style:o.button,onClick:r},n||a)},HA=function(t){var r=t.rgb,n=t.currentColor,a=z({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+r.r+","+r.g+", "+r.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:n,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return d.createElement("div",null,d.createElement("div",{style:a.label},"new"),d.createElement("div",{style:a.swatches},d.createElement("div",{style:a.new}),d.createElement("div",{style:a.current})),d.createElement("div",{style:a.label},"current"))},GA=function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function VA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UA(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function zA(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var mi=function(e){zA(t,e);function t(r){VA(this,t);var n=UA(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.state={currentColor:r.hex},n}return GA(t,[{key:"render",value:function(){var n=this.props,a=n.styles,i=a===void 0?{}:a,o=n.className,s=o===void 0?"":o,c=z(Ie({default:{picker:{background:"#DCDCDC",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)",boxSizing:"initial",width:"513px"},head:{backgroundImage:"linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)",borderBottom:"1px solid #B1B1B1",boxShadow:"inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)",height:"23px",lineHeight:"24px",borderRadius:"4px 4px 0 0",fontSize:"13px",color:"#4D4D4D",textAlign:"center"},body:{padding:"15px 15px 0",display:"flex"},saturation:{width:"256px",height:"256px",position:"relative",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0",overflow:"hidden"},hue:{position:"relative",height:"256px",width:"19px",marginLeft:"10px",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0"},controls:{width:"180px",marginLeft:"10px"},top:{display:"flex"},previews:{width:"60px"},actions:{flex:"1",marginLeft:"20px"}}},i));return d.createElement("div",{style:c.picker,className:"photoshop-picker "+s},d.createElement("div",{style:c.head},this.props.header),d.createElement("div",{style:c.body,className:"flexbox-fix"},d.createElement("div",{style:c.saturation},d.createElement(fn,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:NA,onChange:this.props.onChange})),d.createElement("div",{style:c.hue},d.createElement(Nt,{direction:"vertical",hsl:this.props.hsl,pointer:BA,onChange:this.props.onChange})),d.createElement("div",{style:c.controls},d.createElement("div",{style:c.top,className:"flexbox-fix"},d.createElement("div",{style:c.previews},d.createElement(HA,{rgb:this.props.rgb,currentColor:this.state.currentColor})),d.createElement("div",{style:c.actions},d.createElement(Gu,{label:"OK",onClick:this.props.onAccept,active:!0}),d.createElement(Gu,{label:"Cancel",onClick:this.props.onCancel}),d.createElement(DA,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),t}(d.Component);mi.propTypes={header:O.string,styles:O.object},mi.defaultProps={header:"Color Picker",styles:{}},Fe(mi);var WA=function(t){var r=t.onChange,n=t.rgb,a=t.hsl,i=t.hex,o=t.disableAlpha,s=z({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:o}),c=function(h,l){h.hex?lt(h.hex)&&r({hex:h.hex,source:"hex"},l):h.r||h.g||h.b?r({r:h.r||n.r,g:h.g||n.g,b:h.b||n.b,a:n.a,source:"rgb"},l):h.a&&(h.a<0?h.a=0:h.a>100&&(h.a=100),h.a/=100,r({h:a.h,s:a.s,l:a.l,a:h.a,source:"rgb"},l))};return d.createElement("div",{style:s.fields,className:"flexbox-fix"},d.createElement("div",{style:s.double},d.createElement(Z,{style:{input:s.input,label:s.label},label:"hex",value:i.replace("#",""),onChange:c})),d.createElement("div",{style:s.single},d.createElement(Z,{style:{input:s.input,label:s.label},label:"r",value:n.r,onChange:c,dragLabel:"true",dragMax:"255"})),d.createElement("div",{style:s.single},d.createElement(Z,{style:{input:s.input,label:s.label},label:"g",value:n.g,onChange:c,dragLabel:"true",dragMax:"255"})),d.createElement("div",{style:s.single},d.createElement(Z,{style:{input:s.input,label:s.label},label:"b",value:n.b,onChange:c,dragLabel:"true",dragMax:"255"})),d.createElement("div",{style:s.alpha},d.createElement(Z,{style:{input:s.input,label:s.label},label:"a",value:Math.round(n.a*100),onChange:c,dragLabel:"true",dragMax:"100"})))},RA=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Vu=function(t){var r=t.colors,n=t.onClick,a=n===void 0?function(){}:n,i=t.onSwatchHover,o=z({default:{colors:{margin:"0 -10px",padding:"10px 0 0 10px",borderTop:"1px solid #eee",display:"flex",flexWrap:"wrap",position:"relative"},swatchWrap:{width:"16px",height:"16px",margin:"0 10px 10px 0"},swatch:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},"no-presets":{colors:{display:"none"}}},{"no-presets":!r||!r.length}),s=function(u,h){a({hex:u,source:"hex"},h)};return d.createElement("div",{style:o.colors,className:"flexbox-fix"},r.map(function(c){var u=typeof c=="string"?{color:c}:c,h=""+u.color+(u.title||"");return d.createElement("div",{key:h,style:o.swatchWrap},d.createElement(St,RA({},u,{style:o.swatch,onClick:s,onHover:i,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px "+u.color}})))}))};Vu.propTypes={colors:O.arrayOf(O.oneOfType([O.string,O.shape({color:O.string,title:O.string})])).isRequired};var KA=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xi=function(t){var r=t.width,n=t.rgb,a=t.hex,i=t.hsv,o=t.hsl,s=t.onChange,c=t.onSwatchHover,u=t.disableAlpha,h=t.presetColors,l=t.renderers,f=t.styles,p=f===void 0?{}:f,v=t.className,g=v===void 0?"":v,y=z(Ie({default:KA({picker:{width:r,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba("+n.r+","+n.g+","+n.b+","+n.a+")",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},p),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},p),{disableAlpha:u});return d.createElement("div",{style:y.picker,className:"sketch-picker "+g},d.createElement("div",{style:y.saturation},d.createElement(fn,{style:y.Saturation,hsl:o,hsv:i,onChange:s})),d.createElement("div",{style:y.controls,className:"flexbox-fix"},d.createElement("div",{style:y.sliders},d.createElement("div",{style:y.hue},d.createElement(Nt,{style:y.Hue,hsl:o,onChange:s})),d.createElement("div",{style:y.alpha},d.createElement(Ya,{style:y.Alpha,rgb:n,hsl:o,renderers:l,onChange:s}))),d.createElement("div",{style:y.color},d.createElement(Dt,null),d.createElement("div",{style:y.activeColor}))),d.createElement(WA,{rgb:n,hsl:o,hex:a,onChange:s,disableAlpha:u}),d.createElement(Vu,{colors:h,onClick:s,onSwatchHover:c}))};xi.propTypes={disableAlpha:O.bool,width:O.oneOfType([O.string,O.number]),styles:O.object},xi.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]},Fe(xi);var kr=function(t){var r=t.hsl,n=t.offset,a=t.onClick,i=a===void 0?function(){}:a,o=t.active,s=t.first,c=t.last,u=z({default:{swatch:{height:"12px",background:"hsl("+r.h+", 50%, "+n*100+"%)",cursor:"pointer"}},first:{swatch:{borderRadius:"2px 0 0 2px"}},last:{swatch:{borderRadius:"0 2px 2px 0"}},active:{swatch:{transform:"scaleY(1.8)",borderRadius:"3.6px/2px"}}},{active:o,first:s,last:c}),h=function(f){return i({h:r.h,s:.5,l:n,source:"hsl"},f)};return d.createElement("div",{style:u.swatch,onClick:h})},qA=function(t){var r=t.onClick,n=t.hsl,a=z({default:{swatches:{marginTop:"20px"},swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}}),i=.1;return d.createElement("div",{style:a.swatches},d.createElement("div",{style:a.swatch},d.createElement(kr,{hsl:n,offset:".80",active:Math.abs(n.l-.8)<i&&Math.abs(n.s-.5)<i,onClick:r,first:!0})),d.createElement("div",{style:a.swatch},d.createElement(kr,{hsl:n,offset:".65",active:Math.abs(n.l-.65)<i&&Math.abs(n.s-.5)<i,onClick:r})),d.createElement("div",{style:a.swatch},d.createElement(kr,{hsl:n,offset:".50",active:Math.abs(n.l-.5)<i&&Math.abs(n.s-.5)<i,onClick:r})),d.createElement("div",{style:a.swatch},d.createElement(kr,{hsl:n,offset:".35",active:Math.abs(n.l-.35)<i&&Math.abs(n.s-.5)<i,onClick:r})),d.createElement("div",{style:a.swatch},d.createElement(kr,{hsl:n,offset:".20",active:Math.abs(n.l-.2)<i&&Math.abs(n.s-.5)<i,onClick:r,last:!0})),d.createElement("div",{style:a.clear}))},YA=function(){var t=z({default:{picker:{width:"14px",height:"14px",borderRadius:"6px",transform:"translate(-7px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return d.createElement("div",{style:t.picker})},Si=function(t){var r=t.hsl,n=t.onChange,a=t.pointer,i=t.styles,o=i===void 0?{}:i,s=t.className,c=s===void 0?"":s,u=z(Ie({default:{hue:{height:"12px",position:"relative"},Hue:{radius:"2px"}}},o));return d.createElement("div",{style:u.wrap||{},className:"slider-picker "+c},d.createElement("div",{style:u.hue},d.createElement(Nt,{style:u.Hue,hsl:r,pointer:a,onChange:n})),d.createElement("div",{style:u.swatches},d.createElement(qA,{hsl:r,onClick:n})))};Si.propTypes={styles:O.object},Si.defaultProps={pointer:YA,styles:{}},Fe(Si);var Uu={};Object.defineProperty(Uu,"__esModule",{value:!0});var zu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},XA=d,Wu=JA(XA);function JA(e){return e&&e.__esModule?e:{default:e}}function ZA(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}var bn=24,QA=Uu.default=function(e){var t=e.fill,r=t===void 0?"currentColor":t,n=e.width,a=n===void 0?bn:n,i=e.height,o=i===void 0?bn:i,s=e.style,c=s===void 0?{}:s,u=ZA(e,["fill","width","height","style"]);return Wu.default.createElement("svg",zu({viewBox:"0 0 "+bn+" "+bn,style:zu({fill:r,width:a,height:o},c)},u),Wu.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))},e5=function(t){var r=t.color,n=t.onClick,a=n===void 0?function(){}:n,i=t.onSwatchHover,o=t.first,s=t.last,c=t.active,u=z({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:r,marginBottom:"1px"},check:{color:li(r),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:o,last:s,active:c,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return d.createElement(St,{color:r,style:u.color,onClick:a,onHover:i,focusStyle:{boxShadow:"0 0 4px "+r}},d.createElement("div",{style:u.check},d.createElement(QA,null)))},t5=function(t){var r=t.onClick,n=t.onSwatchHover,a=t.group,i=t.active,o=z({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return d.createElement("div",{style:o.group},wt(a,function(s,c){return d.createElement(e5,{key:s,color:s,active:s.toLowerCase()===i,first:c===0,last:c===a.length-1,onClick:r,onSwatchHover:n})}))},wi=function(t){var r=t.width,n=t.height,a=t.onChange,i=t.onSwatchHover,o=t.colors,s=t.hex,c=t.styles,u=c===void 0?{}:c,h=t.className,l=h===void 0?"":h,f=z(Ie({default:{picker:{width:r,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},u)),p=function(g,y){return a({hex:g,source:"hex"},y)};return d.createElement("div",{style:f.picker,className:"swatches-picker "+l},d.createElement(Ar,null,d.createElement("div",{style:f.overflow},d.createElement("div",{style:f.body},wt(o,function(v){return d.createElement(t5,{key:v.toString(),group:v,active:s,onClick:p,onSwatchHover:i})}),d.createElement("div",{style:f.clear})))))};wi.propTypes={width:O.oneOfType([O.string,O.number]),height:O.oneOfType([O.string,O.number]),colors:O.arrayOf(O.arrayOf(O.string)),styles:O.object},wi.defaultProps={width:320,height:240,colors:[[Bt[900],Bt[700],Bt[500],Bt[300],Bt[100]],[Ht[900],Ht[700],Ht[500],Ht[300],Ht[100]],[Gt[900],Gt[700],Gt[500],Gt[300],Gt[100]],[Vt[900],Vt[700],Vt[500],Vt[300],Vt[100]],[Ut[900],Ut[700],Ut[500],Ut[300],Ut[100]],[zt[900],zt[700],zt[500],zt[300],zt[100]],[Wt[900],Wt[700],Wt[500],Wt[300],Wt[100]],[Rt[900],Rt[700],Rt[500],Rt[300],Rt[100]],[Kt[900],Kt[700],Kt[500],Kt[300],Kt[100]],["#194D33",Fr[700],Fr[500],Fr[300],Fr[100]],[qt[900],qt[700],qt[500],qt[300],qt[100]],[Yt[900],Yt[700],Yt[500],Yt[300],Yt[100]],[Xt[900],Xt[700],Xt[500],Xt[300],Xt[100]],[Jt[900],Jt[700],Jt[500],Jt[300],Jt[100]],[Zt[900],Zt[700],Zt[500],Zt[300],Zt[100]],[Qt[900],Qt[700],Qt[500],Qt[300],Qt[100]],[er[900],er[700],er[500],er[300],er[100]],[tr[900],tr[700],tr[500],tr[300],tr[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}},Fe(wi);var Ei=function(t){var r=t.onChange,n=t.onSwatchHover,a=t.hex,i=t.colors,o=t.width,s=t.triangle,c=t.styles,u=c===void 0?{}:c,h=t.className,l=h===void 0?"":h,f=z(Ie({default:{card:{width:o,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},u),{"hide-triangle":s==="hide","top-left-triangle":s==="top-left","top-right-triangle":s==="top-right"}),p=function(g,y){lt(g)&&r({hex:g,source:"hex"},y)};return d.createElement("div",{style:f.card,className:"twitter-picker "+l},d.createElement("div",{style:f.triangleShadow}),d.createElement("div",{style:f.triangle}),d.createElement("div",{style:f.body},wt(i,function(v,g){return d.createElement(St,{key:g,color:v,hex:v,style:f.swatch,onClick:p,onHover:n,focusStyle:{boxShadow:"0 0 4px "+v}})}),d.createElement("div",{style:f.hash},"#"),d.createElement(Z,{label:null,style:{input:f.input},value:a.replace("#",""),onChange:p}),d.createElement("div",{style:f.clear})))};Ei.propTypes={width:O.oneOfType([O.string,O.number]),triangle:O.oneOf(["hide","top-left","top-right"]),colors:O.arrayOf(O.string),styles:O.object},Ei.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}},Fe(Ei);var _i=function(t){var r=z({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",border:"2px #fff solid",transform:"translate(-12px, -13px)",background:"hsl("+Math.round(t.hsl.h)+", "+Math.round(t.hsl.s*100)+"%, "+Math.round(t.hsl.l*100)+"%)"}}});return d.createElement("div",{style:r.picker})};_i.propTypes={hsl:O.shape({h:O.number,s:O.number,l:O.number,a:O.number})},_i.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var Ci=function(t){var r=z({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",transform:"translate(-10px, -7px)",background:"hsl("+Math.round(t.hsl.h)+", 100%, 50%)",border:"2px white solid"}}});return d.createElement("div",{style:r.picker})};Ci.propTypes={hsl:O.shape({h:O.number,s:O.number,l:O.number,a:O.number})},Ci.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var r5=function(t){var r=t.onChange,n=t.rgb,a=t.hsl,i=t.hex,o=t.hsv,s=function(p,v){if(p.hex)lt(p.hex)&&r({hex:p.hex,source:"hex"},v);else if(p.rgb){var g=p.rgb.split(",");ui(p.rgb,"rgb")&&r({r:g[0],g:g[1],b:g[2],a:1,source:"rgb"},v)}else if(p.hsv){var y=p.hsv.split(",");ui(p.hsv,"hsv")&&(y[2]=y[2].replace("%",""),y[1]=y[1].replace("%",""),y[0]=y[0].replace("°",""),y[1]==1?y[1]=.01:y[2]==1&&(y[2]=.01),r({h:Number(y[0]),s:Number(y[1]),v:Number(y[2]),source:"hsv"},v))}else if(p.hsl){var x=p.hsl.split(",");ui(p.hsl,"hsl")&&(x[2]=x[2].replace("%",""),x[1]=x[1].replace("%",""),x[0]=x[0].replace("°",""),l[1]==1?l[1]=.01:l[2]==1&&(l[2]=.01),r({h:Number(x[0]),s:Number(x[1]),v:Number(x[2]),source:"hsl"},v))}},c=z({default:{wrap:{display:"flex",height:"100px",marginTop:"4px"},fields:{width:"100%"},column:{paddingTop:"10px",display:"flex",justifyContent:"space-between"},double:{padding:"0px 4.4px",boxSizing:"border-box"},input:{width:"100%",height:"38px",boxSizing:"border-box",padding:"4px 10% 3px",textAlign:"center",border:"1px solid #dadce0",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",fontFamily:"Roboto,Arial,sans-serif"},input2:{height:"38px",width:"100%",border:"1px solid #dadce0",boxSizing:"border-box",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",paddingLeft:"10px",fontFamily:"Roboto,Arial,sans-serif"},label:{textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"35px",top:"-6px",left:"0",right:"0",marginLeft:"auto",marginRight:"auto",fontFamily:"Roboto,Arial,sans-serif"},label2:{left:"10px",textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"32px",top:"-6px",fontFamily:"Roboto,Arial,sans-serif"},single:{flexGrow:"1",margin:"0px 4.4px"}}}),u=n.r+", "+n.g+", "+n.b,h=Math.round(a.h)+"°, "+Math.round(a.s*100)+"%, "+Math.round(a.l*100)+"%",l=Math.round(o.h)+"°, "+Math.round(o.s*100)+"%, "+Math.round(o.v*100)+"%";return d.createElement("div",{style:c.wrap,className:"flexbox-fix"},d.createElement("div",{style:c.fields},d.createElement("div",{style:c.double},d.createElement(Z,{style:{input:c.input,label:c.label},label:"hex",value:i,onChange:s})),d.createElement("div",{style:c.column},d.createElement("div",{style:c.single},d.createElement(Z,{style:{input:c.input2,label:c.label2},label:"rgb",value:u,onChange:s})),d.createElement("div",{style:c.single},d.createElement(Z,{style:{input:c.input2,label:c.label2},label:"hsv",value:l,onChange:s})),d.createElement("div",{style:c.single},d.createElement(Z,{style:{input:c.input2,label:c.label2},label:"hsl",value:h,onChange:s})))))},$i=function(t){var r=t.width,n=t.onChange,a=t.rgb,i=t.hsl,o=t.hsv,s=t.hex,c=t.header,u=t.styles,h=u===void 0?{}:u,l=t.className,f=l===void 0?"":l,p=z(Ie({default:{picker:{width:r,background:"#fff",border:"1px solid #dfe1e5",boxSizing:"initial",display:"flex",flexWrap:"wrap",borderRadius:"8px 8px 0px 0px"},head:{height:"57px",width:"100%",paddingTop:"16px",paddingBottom:"16px",paddingLeft:"16px",fontSize:"20px",boxSizing:"border-box",fontFamily:"Roboto-Regular,HelveticaNeue,Arial,sans-serif"},saturation:{width:"70%",padding:"0px",position:"relative",overflow:"hidden"},swatch:{width:"30%",height:"228px",padding:"0px",background:"rgba("+a.r+", "+a.g+", "+a.b+", 1)",position:"relative",overflow:"hidden"},body:{margin:"auto",width:"95%"},controls:{display:"flex",boxSizing:"border-box",height:"52px",paddingTop:"22px"},color:{width:"32px"},hue:{height:"8px",position:"relative",margin:"0px 16px 0px 16px",width:"100%"},Hue:{radius:"2px"}}},h));return d.createElement("div",{style:p.picker,className:"google-picker "+f},d.createElement("div",{style:p.head},c),d.createElement("div",{style:p.swatch}),d.createElement("div",{style:p.saturation},d.createElement(fn,{hsl:i,hsv:o,pointer:_i,onChange:n})),d.createElement("div",{style:p.body},d.createElement("div",{style:p.controls,className:"flexbox-fix"},d.createElement("div",{style:p.hue},d.createElement(Nt,{style:p.Hue,hsl:i,radius:"4px",pointer:Ci,onChange:n}))),d.createElement(r5,{rgb:a,hsl:i,hex:s,hsv:o,onChange:n})))};$i.propTypes={width:O.oneOfType([O.string,O.number]),styles:O.object,header:O.string},$i.defaultProps={width:652,styles:{},header:"Color picker"},Fe($i);const n5=e=>{const[t,r]=d.useState(!1),[n,a]=d.useState(e.value),i=()=>{r(!t)},o=()=>{r(!1)},s=c=>{a(c.hex),e.onChange&&e.onChange(c.hex)};return m.jsxs("div",{children:[m.jsx(Ru,{disabled:e.disabled,color:n,onClick:i}),m.jsx(F.Dialog,{open:t,onClose:o,children:m.jsx(AA,{color:n,onChange:s,css:de.css`
218
223
  padding: 10px;
219
- `})})]})},Ru=e=>m.jsx("button",{onClick:e.onClick,disabled:e.disabled,css:ve.css`
224
+ `})})]})},Ru=e=>m.jsx("button",{onClick:e.onClick,disabled:e.disabled,css:de.css`
220
225
  border: solid 1px black;
221
226
  background-color: white;
222
227
  padding: 2px;
223
228
  cursor: pointer;
224
229
  opacity: ${e.disabled?.2:1};
225
- `,children:m.jsx("div",{css:ve.css`
230
+ `,children:m.jsx("div",{css:de.css`
226
231
  width: 72px;
227
232
  height: 19px;
228
233
  background-color: ${e.color};
229
- `})});B.ConfigrBoolean=Y0,B.ConfigrChooserButton=rb,B.ConfigrColorPicker=a5,B.ConfigrConditional=nb,B.ConfigrCustomBooleanInput=W0,B.ConfigrCustomNumberInput=R0,B.ConfigrCustomObjectInput=K0,B.ConfigrCustomStringInput=z0,B.ConfigrForEach=Jn,B.ConfigrGroup=Xn,B.ConfigrInput=U0,B.ConfigrMakeToggle=tb,B.ConfigrPage=os,B.ConfigrPane=my,B.ConfigrRadio=Z0,B.ConfigrRadioGroup=X0,B.ConfigrSelect=q0,B.ConfigrToggleGroup=Q0,B.ContentPane=is,B.SwatchButton=Ru,Object.defineProperty(B,Symbol.toStringTag,{value:"Module"})});
234
+ `})});B.ConfigrBoolean=q0,B.ConfigrChooserButton=tb,B.ConfigrColorPicker=n5,B.ConfigrConditional=rb,B.ConfigrCustomBooleanInput=z0,B.ConfigrCustomNumberInput=W0,B.ConfigrCustomObjectInput=R0,B.ConfigrCustomStringInput=U0,B.ConfigrForEach=Yr,B.ConfigrGroup=Jn,B.ConfigrInput=V0,B.ConfigrMakeToggle=eb,B.ConfigrPage=Zn,B.ConfigrPane=yy,B.ConfigrRadio=J0,B.ConfigrRadioGroup=Y0,B.ConfigrSelect=K0,B.ConfigrToggleGroup=Z0,B.ContentPane=os,B.SwatchButton=Ru,Object.defineProperty(B,Symbol.toStringTag,{value:"Module"})});
235
+ //# sourceMappingURL=configr.umd.js.map