freemium-ui 1.0.212 → 1.0.215

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react"),n=e(t),r=require("react-is"),a=e(r),o=e(require("react-transition-group/Transition")),c=require("react-dom"),i=e(c),s=e(require("react-focus-lock")),l=require("react-remove-scroll"),h=require("react-tippy"),u=require("react-lifecycles-compat"),p=require("react-popper"),d=require("react-transition-group"),m=e(require("react-day-picker")),v=require("react-table");function f(e){function t(e,r,s,l,p){for(var d,m,v,f,y,x=0,w=0,H=0,C=0,V=0,A=0,O=v=d=0,N=0,R=0,P=0,T=0,F=s.length,j=F-1,B="",Y="",$="",W="";N<F;){if(m=s.charCodeAt(N),N===j&&0!==w+C+H+x&&(0!==w&&(m=47===w?10:47),C=H=x=0,F++,j++),0===w+C+H+x){if(N===j&&(0<R&&(B=B.replace(u,"")),0<B.trim().length)){switch(m){case 32:case 9:case 59:case 13:case 10:break;default:B+=s.charAt(N)}m=59}switch(m){case 123:for(d=(B=B.trim()).charCodeAt(0),v=1,T=++N;N<F;){switch(m=s.charCodeAt(N)){case 123:v++;break;case 125:v--;break;case 47:switch(m=s.charCodeAt(N+1)){case 42:case 47:e:{for(O=N+1;O<j;++O)switch(s.charCodeAt(O)){case 47:if(42===m&&42===s.charCodeAt(O-1)&&N+2!==O){N=O+1;break e}break;case 10:if(47===m){N=O+1;break e}}N=O}}break;case 91:m++;case 40:m++;case 34:case 39:for(;N++<j&&s.charCodeAt(N)!==m;);}if(0===v)break;N++}if(v=s.substring(T,N),0===d&&(d=(B=B.replace(h,"").trim()).charCodeAt(0)),64===d){switch(0<R&&(B=B.replace(u,"")),m=B.charCodeAt(1)){case 100:case 109:case 115:case 45:R=r;break;default:R=_}if(T=(v=t(r,R,v,m,p+1)).length,0<D&&(y=i(3,v,R=n(_,B,P),r,L,k,T,m,p,l),B=R.join(""),void 0!==y&&0===(T=(v=y.trim()).length)&&(m=0,v="")),0<T)switch(m){case 115:B=B.replace(M,c);case 100:case 109:case 45:v=B+"{"+v+"}";break;case 107:v=(B=B.replace(g,"$1 $2"))+"{"+v+"}",v=1===S||2===S&&o("@"+v,3)?"@-webkit-"+v+"@"+v:"@"+v;break;default:v=B+v,112===l&&(Y+=v,v="")}else v=""}else v=t(r,n(r,B,P),v,l,p+1);$+=v,v=P=R=O=d=0,B="",m=s.charCodeAt(++N);break;case 125:case 59:if(1<(T=(B=(0<R?B.replace(u,""):B).trim()).length))switch(0===O&&(d=B.charCodeAt(0),45===d||96<d&&123>d)&&(T=(B=B.replace(" ",":")).length),0<D&&void 0!==(y=i(1,B,r,e,L,k,Y.length,l,p,l))&&0===(T=(B=y.trim()).length)&&(B="\0\0"),d=B.charCodeAt(0),m=B.charCodeAt(1),d){case 0:break;case 64:if(105===m||99===m){W+=B+s.charAt(N);break}default:58!==B.charCodeAt(T-1)&&(Y+=a(B,d,m,B.charCodeAt(2)))}P=R=O=d=0,B="",m=s.charCodeAt(++N)}}switch(m){case 13:case 10:47===w?w=0:0===1+d&&107!==l&&0<B.length&&(R=1,B+="\0"),0<D*I&&i(0,B,r,e,L,k,Y.length,l,p,l),k=1,L++;break;case 59:case 125:if(0===w+C+H+x){k++;break}default:switch(k++,f=s.charAt(N),m){case 9:case 32:if(0===C+x+w)switch(V){case 44:case 58:case 9:case 32:f="";break;default:32!==m&&(f=" ")}break;case 0:f="\\0";break;case 12:f="\\f";break;case 11:f="\\v";break;case 38:0===C+w+x&&(R=P=1,f="\f"+f);break;case 108:if(0===C+w+x+E&&0<O)switch(N-O){case 2:112===V&&58===s.charCodeAt(N-3)&&(E=V);case 8:111===A&&(E=A)}break;case 58:0===C+w+x&&(O=N);break;case 44:0===w+H+C+x&&(R=1,f+="\r");break;case 34:case 39:0===w&&(C=C===m?0:0===C?m:C);break;case 91:0===C+w+H&&x++;break;case 93:0===C+w+H&&x--;break;case 41:0===C+w+x&&H--;break;case 40:if(0===C+w+x){if(0===d)if(2*V+3*A==533);else d=1;H++}break;case 64:0===w+H+C+x+O+v&&(v=1);break;case 42:case 47:if(!(0<C+x+H))switch(w){case 0:switch(2*m+3*s.charCodeAt(N+1)){case 235:w=47;break;case 220:T=N,w=42}break;case 42:47===m&&42===V&&T+2!==N&&(33===s.charCodeAt(T+2)&&(Y+=s.substring(T,N+1)),f="",w=0)}}0===w&&(B+=f)}A=V,V=m,N++}if(0<(T=Y.length)){if(R=r,0<D&&(void 0!==(y=i(2,Y,R,e,L,k,T,l,p,l))&&0===(Y=y).length))return W+Y+$;if(Y=R.join(",")+"{"+Y+"}",0!=S*E){switch(2!==S||o(Y,2)||(E=0),E){case 111:Y=Y.replace(z,":-moz-$1")+Y;break;case 112:Y=Y.replace(b,"::-webkit-input-$1")+Y.replace(b,"::-moz-$1")+Y.replace(b,":-ms-input-$1")+Y}E=0}}return W+Y+$}function n(e,t,n){var a=t.trim().split(v);t=a;var o=a.length,c=e.length;switch(c){case 0:case 1:var i=0;for(e=0===c?"":e[0]+" ";i<o;++i)t[i]=r(e,t[i],n).trim();break;default:var s=i=0;for(t=[];i<o;++i)for(var l=0;l<c;++l)t[s++]=r(e[l]+" ",a[i],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(f,"$1"+e.trim());case 58:return e.trim()+t.replace(f,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(f,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function a(e,t,n,r){var c=e+";",i=2*t+3*n+4*r;if(944===i){e=c.indexOf(":",9)+1;var s=c.substring(e,c.length-1).trim();return s=c.substring(0,e).trim()+s+";",1===S||2===S&&o(s,1)?"-webkit-"+s+s:s}if(0===S||2===S&&!o(c,1))return c;switch(i){case 1015:return 97===c.charCodeAt(10)?"-webkit-"+c+c:c;case 951:return 116===c.charCodeAt(3)?"-webkit-"+c+c:c;case 963:return 110===c.charCodeAt(5)?"-webkit-"+c+c:c;case 1009:if(100!==c.charCodeAt(4))break;case 969:case 942:return"-webkit-"+c+c;case 978:return"-webkit-"+c+"-moz-"+c+c;case 1019:case 983:return"-webkit-"+c+"-moz-"+c+"-ms-"+c+c;case 883:if(45===c.charCodeAt(8))return"-webkit-"+c+c;if(0<c.indexOf("image-set(",11))return c.replace(V,"$1-webkit-$2")+c;break;case 932:if(45===c.charCodeAt(4))switch(c.charCodeAt(5)){case 103:return"-webkit-box-"+c.replace("-grow","")+"-webkit-"+c+"-ms-"+c.replace("grow","positive")+c;case 115:return"-webkit-"+c+"-ms-"+c.replace("shrink","negative")+c;case 98:return"-webkit-"+c+"-ms-"+c.replace("basis","preferred-size")+c}return"-webkit-"+c+"-ms-"+c+c;case 964:return"-webkit-"+c+"-ms-flex-"+c+c;case 1023:if(99!==c.charCodeAt(8))break;return"-webkit-box-pack"+(s=c.substring(c.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+c+"-ms-flex-pack"+s+c;case 1005:return d.test(c)?c.replace(p,":-webkit-")+c.replace(p,":-moz-")+c:c;case 1e3:switch(t=(s=c.substring(13).trim()).indexOf("-")+1,s.charCodeAt(0)+s.charCodeAt(t)){case 226:s=c.replace(y,"tb");break;case 232:s=c.replace(y,"tb-rl");break;case 220:s=c.replace(y,"lr");break;default:return c}return"-webkit-"+c+"-ms-"+s+c;case 1017:if(-1===c.indexOf("sticky",9))break;case 975:switch(t=(c=e).length-10,i=(s=(33===c.charCodeAt(t)?c.substring(0,t):c).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|s.charCodeAt(7))){case 203:if(111>s.charCodeAt(8))break;case 115:c=c.replace(s,"-webkit-"+s)+";"+c;break;case 207:case 102:c=c.replace(s,"-webkit-"+(102<i?"inline-":"")+"box")+";"+c.replace(s,"-webkit-"+s)+";"+c.replace(s,"-ms-"+s+"box")+";"+c}return c+";";case 938:if(45===c.charCodeAt(5))switch(c.charCodeAt(6)){case 105:return s=c.replace("-items",""),"-webkit-"+c+"-webkit-box-"+s+"-ms-flex-"+s+c;case 115:return"-webkit-"+c+"-ms-flex-item-"+c.replace(w,"")+c;default:return"-webkit-"+c+"-ms-flex-line-pack"+c.replace("align-content","").replace(w,"")+c}break;case 973:case 989:if(45!==c.charCodeAt(3)||122===c.charCodeAt(4))break;case 931:case 953:if(!0===C.test(e))return 115===(s=e.substring(e.indexOf(":")+1)).charCodeAt(0)?a(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):c.replace(s,"-webkit-"+s)+c.replace(s,"-moz-"+s.replace("fill-",""))+c;break;case 962:if(c="-webkit-"+c+(102===c.charCodeAt(5)?"-ms-"+c:"")+c,211===n+r&&105===c.charCodeAt(13)&&0<c.indexOf("transform",10))return c.substring(0,c.indexOf(";",27)+1).replace(m,"$1-webkit-$2")+c}return c}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),O(2!==t?r:r.replace(H,"$1"),n,t)}function c(e,t){var n=a(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(x," or ($1)").substring(4):"("+t+")"}function i(e,t,n,r,a,o,c,i,s,h){for(var u,p=0,d=t;p<D;++p)switch(u=A[p].call(l,e,d,n,r,a,o,c,i,s,h)){case void 0:case!1:case!0:case null:break;default:d=u}if(d!==t)return d}function s(e){return void 0!==(e=e.prefix)&&(O=null,e?"function"!=typeof e?S=1:(S=2,O=e):S=0),s}function l(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<D){var a=i(-1,n,r,r,L,k,0,0,0,0);void 0!==a&&"string"==typeof a&&(n=a)}var o=t(_,r,n,0,0);return 0<D&&(void 0!==(a=i(-2,o,r,r,L,k,o.length,0,0,0))&&(o=a)),"",E=0,k=L=1,o}var h=/^\0+/g,u=/[\0\r\f]/g,p=/: */g,d=/zoo|gra/,m=/([,: ])(transform)/g,v=/,\r+?/g,f=/([\t\r\n ])*\f?&/g,g=/@(k\w+)\s*(\S*)\s*/,b=/::(place)/g,z=/:(read-only)/g,y=/[svh]\w+-[tblr]{2}/,M=/\(\s*(.*)\s*\)/g,x=/([\s\S]*?);/g,w=/-self|flex-/g,H=/[^]*?(:[rp][el]a[\w-]+)[^]*/,C=/stretch|:\s*\w+\-(?:conte|avail)/,V=/([^-])(image-set\()/,k=1,L=1,E=0,S=1,_=[],A=[],D=0,O=null,I=0;return l.use=function e(t){switch(t){case void 0:case null:D=A.length=0;break;default:if("function"==typeof t)A[D++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else I=0|!!t}return e},l.set=s,void 0!==e&&s(e),l}var g={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var b,z,y=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,M=(b=function(e){return y.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91},z={},function(e){return void 0===z[e]&&(z[e]=b(e)),z[e]}),x={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},w={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},H={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},C={};function V(e){return a.isMemo(e)?H:C[e.$$typeof]||x}C[a.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},C[a.Memo]=H;var k=Object.defineProperty,L=Object.getOwnPropertyNames,E=Object.getOwnPropertySymbols,S=Object.getOwnPropertyDescriptor,_=Object.getPrototypeOf,A=Object.prototype;var D=function e(t,n,r){if("string"!=typeof n){if(A){var a=_(n);a&&a!==A&&e(t,a,r)}var o=L(n);E&&(o=o.concat(E(n)));for(var c=V(t),i=V(n),s=0;s<o.length;++s){var l=o[s];if(!(w[l]||r&&r[l]||i&&i[l]||c&&c[l])){var h=S(n,l);try{k(t,l,h)}catch(e){}}}}return t};function O(){return(O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var I=function(e,t){for(var n=[e[0]],r=0,a=t.length;r<a;r+=1)n.push(t[r],e[r+1]);return n},N=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!r.typeOf(e)},R=Object.freeze([]),P=Object.freeze({});function T(e){return"function"==typeof e}function F(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function j(e){return e&&"string"==typeof e.styledComponentId}var B="undefined"!=typeof process&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Y="undefined"!=typeof window&&"HTMLElement"in window,$=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),W={},U="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n"}:{};function K(){for(var e=arguments.length<=0?void 0:arguments[0],t=[],n=1,r=arguments.length;n<r;n+=1)t.push(n<0||arguments.length<=n?void 0:arguments[n]);return t.forEach((function(t){e=e.replace(/%[a-z]/,t)})),e}function G(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw"production"===process.env.NODE_ENV?new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):"")):new Error(K.apply(void 0,[U[e]].concat(n)).trim())}var q=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,a=r;e>=a;)(a<<=1)<0&&G(16,""+e);this.groupSizes=new Uint32Array(a),this.groupSizes.set(n),this.length=a;for(var o=r;o<a;o++)this.groupSizes[o]=0}for(var c=this.indexOfGroup(e+1),i=0,s=t.length;i<s;i++)this.tag.insertRule(c,t[i])&&(this.groupSizes[e]++,c++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var a=n;a<r;a++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),a=r+n,o=r;o<a;o++)t+=this.tag.getRule(o)+"/*!sc*/\n";return t},e}(),Z=new Map,X=new Map,J=1,Q=function(e){if(Z.has(e))return Z.get(e);for(;X.has(J);)J++;var t=J++;return"production"!==process.env.NODE_ENV&&((0|t)<0||t>1<<30)&&G(16,""+t),Z.set(e,t),X.set(t,e),t},ee=function(e){return X.get(e)},te=function(e,t){Z.set(e,t),X.set(t,e)},ne="style["+B+'][data-styled-version="5.3.0"]',re=new RegExp("^"+B+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),ae=function(e,t,n){for(var r,a=n.split(","),o=0,c=a.length;o<c;o++)(r=a[o])&&e.registerName(t,r)},oe=function(e,t){for(var n=t.innerHTML.split("/*!sc*/\n"),r=[],a=0,o=n.length;a<o;a++){var c=n[a].trim();if(c){var i=c.match(re);if(i){var s=0|parseInt(i[1],10),l=i[2];0!==s&&(te(l,s),ae(e,l,i[3]),e.getTag().insertRules(s,r)),r.length=0}else r.push(c)}}},ce=function(e){var t=document.head,n=e||t,r=document.createElement("style"),a=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(B))return r}}(n),o=void 0!==a?a.nextSibling:null;r.setAttribute(B,"active"),r.setAttribute("data-styled-version","5.3.0");var c="undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null;return c&&r.setAttribute("nonce",c),n.insertBefore(r,o),r},ie=function(){function e(e){var t=this.element=ce(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var a=t[n];if(a.ownerNode===e)return a}G(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),se=function(){function e(e){var t=this.element=ce(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),le=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),he=Y,ue={isServer:!Y,useCSSOMInjection:!$},pe=function(){function e(e,t,n){void 0===e&&(e=P),void 0===t&&(t={}),this.options=O({},ue,{},e),this.gs=t,this.names=new Map(n),!this.options.isServer&&Y&&he&&(he=!1,function(e){for(var t=document.querySelectorAll(ne),n=0,r=t.length;n<r;n++){var a=t[n];a&&"active"!==a.getAttribute(B)&&(oe(e,a),a.parentNode&&a.parentNode.removeChild(a))}}(this))}e.registerId=function(e){return Q(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(O({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,a=t.target,e=n?new le(a):r?new ie(a):new se(a),new q(e)));var e,t,n,r,a},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(Q(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Q(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(Q(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",a=0;a<n;a++){var o=ee(a);if(void 0!==o){var c=e.names.get(o),i=t.getGroup(a);if(void 0!==c&&0!==i.length){var s=B+".g"+a+'[id="'+o+'"]',l="";void 0!==c&&c.forEach((function(e){e.length>0&&(l+=e+",")})),r+=""+i+s+'{content:"'+l+'"}/*!sc*/\n'}}}return r}(this)},e}(),de=/(a)(d)/gi,me=function(e){return String.fromCharCode(e+(e>25?39:97))};function ve(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=me(t%52)+n;return(me(t%52)+n).replace(de,"$1-$2")}var fe=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},ge=function(e){return fe(5381,e)};function be(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(T(n)&&!j(n))return!1}return!0}var ze=ge("5.3.0"),ye=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&be(e),this.componentId=t,this.baseHash=fe(ze,t),this.baseStyle=n,pe.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,a=[];if(this.baseStyle&&a.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))a.push(this.staticRulesId);else{var o=Ne(this.rules,e,t,n).join(""),c=ve(fe(this.baseHash,o.length)>>>0);if(!t.hasNameForId(r,c)){var i=n(o,"."+c,void 0,r);t.insertRules(r,c,i)}a.push(c),this.staticRulesId=c}else{for(var s=this.rules.length,l=fe(this.baseHash,n.hash),h="",u=0;u<s;u++){var p=this.rules[u];if("string"==typeof p)h+=p,"production"!==process.env.NODE_ENV&&(l=fe(l,p+u));else if(p){var d=Ne(p,e,t,n),m=Array.isArray(d)?d.join(""):d;l=fe(l,m+u),h+=m}}if(h){var v=ve(l>>>0);if(!t.hasNameForId(r,v)){var f=n(h,"."+v,void 0,r);t.insertRules(r,v,f)}a.push(v)}}return a.join(" ")},e}(),Me=/^\s*\/\/.*$/gm,xe=[":","[",".","#"];var we=n.createContext(),He=(we.Consumer,n.createContext()),Ce=(He.Consumer,new pe),Ve=function(e){var t,n,r,a,o=void 0===e?P:e,c=o.options,i=void 0===c?P:c,s=o.plugins,l=void 0===s?R:s,h=new f(i),u=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,a,o,c,i,s,l,h,u){switch(n){case 1:if(0===h&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===l)return r+"/*|*/";break;case 3:switch(l){case 102:case 112:return e(a[0]+r),"";default:return r+(0===u?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){u.push(e)})),d=function(e,r,o){return 0===r&&-1!==xe.indexOf(o[n.length])||o.match(a)?e:"."+t};function m(e,o,c,i){void 0===i&&(i="&");var s=e.replace(Me,""),l=o&&c?c+" "+o+" { "+s+" }":s;return t=i,n=o,r=new RegExp("\\"+n+"\\b","g"),a=new RegExp("(\\"+n+"\\b){2,}"),h(c||!o?"":o,l)}return h.use([].concat(l,[function(e,t,a){2===e&&a.length&&a[0].lastIndexOf(n)>0&&(a[0]=a[0].replace(r,d))},p,function(e){if(-2===e){var t=u;return u=[],t}}])),m.hash=l.length?l.reduce((function(e,t){return t.name||G(15),fe(e,t.name)}),5381).toString():"",m}();function ke(){return t.useContext(we)||Ce}function Le(){return t.useContext(He)||Ve}var Ee=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Ve);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return G(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=Ve),this.name+e.hash},e}(),Se=/([A-Z])/,_e=/([A-Z])/g,Ae=/^ms-/,De=function(e){return"-"+e.toLowerCase()};function Oe(e){return Se.test(e)?e.replace(_e,De).replace(Ae,"-ms-"):e}var Ie=function(e){return null==e||!1===e||""===e};function Ne(e,t,n,a){if(Array.isArray(e)){for(var o,c=[],i=0,s=e.length;i<s;i+=1)""!==(o=Ne(e[i],t,n,a))&&(Array.isArray(o)?c.push.apply(c,o):c.push(o));return c}if(Ie(e))return"";if(j(e))return"."+e.styledComponentId;if(T(e)){if("function"!=typeof(h=e)||h.prototype&&h.prototype.isReactComponent||!t)return e;var l=e(t);return"production"!==process.env.NODE_ENV&&r.isElement(l)&&console.warn(F(e)+" is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details."),Ne(l,t,n,a)}var h;return e instanceof Ee?n?(e.inject(n,a),e.getName(a)):e:N(e)?function e(t,n){var r,a,o=[];for(var c in t)t.hasOwnProperty(c)&&!Ie(t[c])&&(N(t[c])?o.push.apply(o,e(t[c],c)):T(t[c])?o.push(Oe(c)+":",t[c],";"):o.push(Oe(c)+": "+(r=c,(null==(a=t[c])||"boolean"==typeof a||""===a?"":"number"!=typeof a||0===a||r in g?String(a).trim():a+"px")+";")));return n?[n+" {"].concat(o,["}"]):o}(e):e.toString()}function Re(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return T(e)||N(e)?Ne(I(R,[e].concat(n))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:Ne(I(e,n))}var Pe=/invalid hook call/i,Te=new Set,Fe=function(e,n){if("production"!==process.env.NODE_ENV){var r="The component "+e+(n?' with the id of "'+n+'"':"")+" has been created dynamically.\nYou may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.";try{t.useRef(),Te.has(r)||(console.warn(r),Te.add(r))}catch(e){Pe.test(e.message)&&Te.delete(r)}}},je=function(e,t,n){return void 0===n&&(n=P),e.theme!==n.theme&&e.theme||t||n.theme},Be=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ye=/(^-|-$)/g;function $e(e){return e.replace(Be,"-").replace(Ye,"")}var We=function(e){return ve(ge(e)>>>0)};function Ue(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var Ke=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Ge=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function qe(e,t,n){var r=e[n];Ke(t)&&Ke(r)?Ze(r,t):e[n]=t}function Ze(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var a=0,o=n;a<o.length;a++){var c=o[a];if(Ke(c))for(var i in c)Ge(i)&&qe(e,c[i],i)}return e}var Xe=n.createContext();Xe.Consumer;function Je(e){var r=t.useContext(Xe),a=t.useMemo((function(){return function(e,t){if(!e)return G(14);if(T(e)){var n=e(t);return"production"===process.env.NODE_ENV||null!==n&&!Array.isArray(n)&&"object"==typeof n?n:G(7)}return Array.isArray(e)||"object"!=typeof e?G(8):t?O({},t,{},e):e}(e.theme,r)}),[e.theme,r]);return e.children?n.createElement(Xe.Provider,{value:a},e.children):null}var Qe={};function et(e,r,a){var o=j(e),c=!Ue(e),i=r.attrs,s=void 0===i?R:i,l=r.componentId,h=void 0===l?function(e,t){var n="string"!=typeof e?"sc":$e(e);Qe[n]=(Qe[n]||0)+1;var r=n+"-"+We("5.3.0"+n+Qe[n]);return t?t+"-"+r:r}(r.displayName,r.parentComponentId):l,u=r.displayName,p=void 0===u?function(e){return Ue(e)?"styled."+e:"Styled("+F(e)+")"}(e):u,d=r.displayName&&r.componentId?$e(r.displayName)+"-"+r.componentId:r.componentId||h,m=o&&e.attrs?Array.prototype.concat(e.attrs,s).filter(Boolean):s,v=r.shouldForwardProp;o&&e.shouldForwardProp&&(v=r.shouldForwardProp?function(t,n,a){return e.shouldForwardProp(t,n,a)&&r.shouldForwardProp(t,n,a)}:e.shouldForwardProp);var f,g=new ye(a,d,o?e.componentStyle:void 0),b=g.isStatic&&0===s.length,z=function(e,n){return function(e,n,r,a){var o=e.attrs,c=e.componentStyle,i=e.defaultProps,s=e.foldedComponentIds,l=e.shouldForwardProp,h=e.styledComponentId,u=e.target;"production"!==process.env.NODE_ENV&&t.useDebugValue(h);var p=function(e,t,n){void 0===e&&(e=P);var r=O({},t,{theme:e}),a={};return n.forEach((function(e){var t,n,o,c=e;for(t in T(c)&&(c=c(r)),c)r[t]=a[t]="className"===t?(n=a[t],o=c[t],n&&o?n+" "+o:n||o):c[t]})),[r,a]}(je(n,t.useContext(Xe),i)||P,n,o),d=p[0],m=p[1],v=function(e,n,r,a){var o=ke(),c=Le(),i=n?e.generateAndInjectStyles(P,o,c):e.generateAndInjectStyles(r,o,c);return"production"!==process.env.NODE_ENV&&t.useDebugValue(i),"production"!==process.env.NODE_ENV&&!n&&a&&a(i),i}(c,a,d,"production"!==process.env.NODE_ENV?e.warnTooManyClasses:void 0),f=r,g=m.$as||n.$as||m.as||n.as||u,b=Ue(g),z=m!==n?O({},n,{},m):n,y={};for(var x in z)"$"!==x[0]&&"as"!==x&&("forwardedAs"===x?y.as=z[x]:(l?l(x,M,g):!b||M(x))&&(y[x]=z[x]));return n.style&&m.style!==n.style&&(y.style=O({},n.style,{},m.style)),y.className=Array.prototype.concat(s,h,v!==h?v:null,n.className,m.className).filter(Boolean).join(" "),y.ref=f,t.createElement(g,y)}(f,e,n,b)};return z.displayName=p,(f=n.forwardRef(z)).attrs=m,f.componentStyle=g,f.displayName=p,f.shouldForwardProp=v,f.foldedComponentIds=o?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):R,f.styledComponentId=d,f.target=o?e.target:e,f.withComponent=function(e){var t=r.componentId,n=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(r,["componentId"]),o=t&&t+"-"+(Ue(e)?e:$e(F(e)));return et(e,O({},n,{attrs:m,componentId:o}),a)},Object.defineProperty(f,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=o?Ze({},e.defaultProps,t):t}}),"production"!==process.env.NODE_ENV&&(Fe(p,d),f.warnTooManyClasses=function(e,t){var n={},r=!1;return function(a){if(!r&&(n[a]=!0,Object.keys(n).length>=200)){var o=t?' with the id of "'+t+'"':"";console.warn("Over 200 classes were generated for component "+e+o+".\nConsider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),r=!0,n={}}}}(p,d)),f.toString=function(){return"."+f.styledComponentId},c&&D(f,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),f}var tt=function(e){return function e(t,n,a){if(void 0===a&&(a=P),!r.isValidElementType(n))return G(1,String(n));var o=function(){return t(n,a,Re.apply(void 0,arguments))};return o.withConfig=function(r){return e(t,n,O({},a,{},r))},o.attrs=function(r){return e(t,n,O({},a,{attrs:Array.prototype.concat(a.attrs,r).filter(Boolean)}))},o}(et,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){tt[e]=tt(e)}));var nt=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=be(e),pe.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var a=r(Ne(this.rules,t,n,r).join(""),""),o=this.componentId+e;n.insertRules(o,o,a)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&pe.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function rt(e){for(var r=arguments.length,a=new Array(r>1?r-1:0),o=1;o<r;o++)a[o-1]=arguments[o];var c=Re.apply(void 0,[e].concat(a)),i="sc-global-"+We(JSON.stringify(c)),s=new nt(c,i);function l(e){var r=ke(),a=Le(),o=t.useContext(Xe),s=t.useRef(r.allocateGSInstance(i)).current;return"production"!==process.env.NODE_ENV&&n.Children.count(e.children)&&console.warn("The global style component "+i+" was given child JSX. createGlobalStyle does not render children."),"production"!==process.env.NODE_ENV&&c.some((function(e){return"string"==typeof e&&-1!==e.indexOf("@import")}))&&console.warn("Please do not use @import CSS syntax in createGlobalStyle at this time, as the CSSOM APIs we use in production do not handle it well. Instead, we recommend using a library such as react-helmet to inject a typical <link> meta tag to the stylesheet, or simply embedding it manually in your index.html <head> section for a simpler app."),h(s,e,r,o,a),null}function h(e,t,n,r,a){if(s.isStatic)s.renderStyles(e,W,n,a);else{var o=O({},t,{theme:je(t,r,l.defaultProps)});s.renderStyles(e,o,n,a)}}return"production"!==process.env.NODE_ENV&&Fe(i),n.memo(l)}function at(e){"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a=Re.apply(void 0,[e].concat(n)).join(""),o=We(a);return new Ee(o,a)}"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native"),"production"!==process.env.NODE_ENV&&process.env.NODE_ENV;const ot=(e,t)=>(e.defaultProps=t,e),ct={jade:"#02B875",celery:"#A0D76A",candlelight:"#FFD012",sunrise:"#ffad1e",scotchMist:"#fffade",pearlLusta:"#fffdf6",dodger:"#448ee1",amethyst:"#af64ce",permission:"#E43538",ferrari:"#C82124",mintCream:"#f6feff",athens:"#f9f9f9",smoke:"#f3f5f7",porcelain:"#ebeef0",zircon:"#dadfe3",chateau:"#acb6be",raven:"#6f7c87",elephant:"#183247",rhino:"#284255",jungle:"#00A886",azure:"#2C5CC5",skylight:"#e5f2fd",clara:"#283DA5",casablanca:"#E86F25",transparent:"rgba(255, 255, 255, 0)",passion:"#D72D30",peach:"#FFD0D6",babylon:"#F89FA1",coral:"#F2797B",black:"#000000",white:"#ffffff",E900:"#12344D",E800:"#264966",E700:"#425A70",E600:"#E5F2FD",E500:"#83A6C8",E400:"#D72D30",E300:"#DFF0FF",S900:"#27313A",S800:"#384551",S700:"#475867",S600:"#576C7D",S500:"#647A8E",S400:"#7B8E9F",S300:"#92A2B1",S200:"#B1BDC8",S100:"#CFD7DF",S75:"#E6E8EB",S50:"#EBEFF3",S25:"#F5F7F9",S10:"#F7F9FA"};function it(){return it=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},it.apply(this,arguments)}function st(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lt(e,t){return lt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},lt(e,t)}function ht(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,lt(e,t)}function ut(e){return ut=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ut(e)}function pt(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function dt(e,t,n){return dt=pt()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var a=new(Function.bind.apply(e,r));return n&&lt(a,n.prototype),a},dt.apply(null,arguments)}function mt(e){var t="function"==typeof Map?new Map:void 0;return mt=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return dt(e,arguments,ut(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),lt(n,e)},mt(e)}var vt={1:"Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).\n\n",2:"Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).\n\n",3:"Passed an incorrect argument to a color function, please pass a string representation of a color.\n\n",4:"Couldn't generate valid rgb string from %s, it returned %s.\n\n",5:"Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.\n\n",6:"Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).\n\n",7:"Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).\n\n",8:"Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.\n\n",9:"Please provide a number of steps to the modularScale helper.\n\n",10:"Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n",11:'Invalid value passed as base to modularScale, expected number or em string but got "%s"\n\n',12:'Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead.\n\n',13:'Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead.\n\n',14:'Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12.\n\n',15:'Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12.\n\n',16:"You must provide a template to this method.\n\n",17:"You passed an unsupported selector state to this method.\n\n",18:"minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n",19:"fromSize and toSize must be provided as stringified numbers with the same units.\n\n",20:"expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n",21:"expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n",22:"expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n",23:"fontFace expects a name of a font-family.\n\n",24:"fontFace expects either the path to the font file(s) or a name of a local copy.\n\n",25:"fontFace expects localFonts to be an array.\n\n",26:"fontFace expects fileFormats to be an array.\n\n",27:"radialGradient requries at least 2 color-stops to properly render.\n\n",28:"Please supply a filename to retinaImage() as the first argument.\n\n",29:"Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n",30:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",31:"The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation\n\n",32:"To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')\n\n",33:"The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation\n\n",34:"borderRadius expects a radius value as a string or number as the second argument.\n\n",35:'borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.\n\n',36:"Property must be a string value.\n\n",37:"Syntax Error at %s.\n\n",38:"Formula contains a function that needs parentheses at %s.\n\n",39:"Formula is missing closing parenthesis at %s.\n\n",40:"Formula has too many closing parentheses at %s.\n\n",41:"All values in a formula must have the same unit or be unitless.\n\n",42:"Please provide a number of steps to the modularScale helper.\n\n",43:"Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n",44:"Invalid value passed as base to modularScale, expected number or em/rem string but got %s.\n\n",45:"Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.\n\n",46:"Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.\n\n",47:"minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n",48:"fromSize and toSize must be provided as stringified numbers with the same units.\n\n",49:"Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n",50:"Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.\n\n",51:"Expects the first argument object to have the properties prop, fromSize, and toSize.\n\n",52:"fontFace expects either the path to the font file(s) or a name of a local copy.\n\n",53:"fontFace expects localFonts to be an array.\n\n",54:"fontFace expects fileFormats to be an array.\n\n",55:"fontFace expects a name of a font-family.\n\n",56:"linearGradient requries at least 2 color-stops to properly render.\n\n",57:"radialGradient requries at least 2 color-stops to properly render.\n\n",58:"Please supply a filename to retinaImage() as the first argument.\n\n",59:"Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n",60:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",61:"Property must be a string value.\n\n",62:"borderRadius expects a radius value as a string or number as the second argument.\n\n",63:'borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.\n\n',64:"The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.\n\n",65:"To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s').\n\n",66:"The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.\n\n",67:"You must provide a template to this method.\n\n",68:"You passed an unsupported selector state to this method.\n\n",69:'Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead.\n\n',70:'Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead.\n\n',71:'Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12.\n\n',72:'Passed invalid base value %s to %s(), please pass a value like "12px" or 12.\n\n',73:"Please provide a valid CSS variable.\n\n",74:"CSS variable not found.\n"};function ft(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,a=t[0],o=[];for(r=1;r<t.length;r+=1)o.push(t[r]);return o.forEach((function(e){a=a.replace(/%[a-z]/,e)})),a}var gt=function(e){function t(t){var n;if("production"===process.env.NODE_ENV)n=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/master/src/internalHelpers/errors.md#"+t+" for more information.")||this;else{for(var r=arguments.length,a=new Array(r>1?r-1:0),o=1;o<r;o++)a[o-1]=arguments[o];n=e.call(this,ft.apply(void 0,[vt[t]].concat(a)))||this}return st(n)}return ht(t,e),t}(mt(Error));function bt(e){return Math.round(255*e)}function zt(e,t,n){return bt(e)+","+bt(t)+","+bt(n)}function yt(e,t,n,r){if(void 0===r&&(r=zt),0===t)return r(n,n,n);var a=(e%360+360)%360/60,o=(1-Math.abs(2*n-1))*t,c=o*(1-Math.abs(a%2-1)),i=0,s=0,l=0;a>=0&&a<1?(i=o,s=c):a>=1&&a<2?(i=c,s=o):a>=2&&a<3?(s=o,l=c):a>=3&&a<4?(s=c,l=o):a>=4&&a<5?(i=c,l=o):a>=5&&a<6&&(i=o,l=c);var h=n-o/2;return r(i+h,s+h,l+h)}var Mt={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",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:"ff00ff",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:"639",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"};var xt=/^#[a-fA-F0-9]{6}$/,wt=/^#[a-fA-F0-9]{8}$/,Ht=/^#[a-fA-F0-9]{3}$/,Ct=/^#[a-fA-F0-9]{4}$/,Vt=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,kt=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i,Lt=/^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,Et=/^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i;function St(e){if("string"!=typeof e)throw new gt(3);var t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return Mt[t]?"#"+Mt[t]:e}(e);if(t.match(xt))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(wt)){var n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n}}if(t.match(Ht))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(Ct)){var r=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:r}}var a=Vt.exec(t);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10)};var o=kt.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10),alpha:parseFloat(""+o[4])};var c=Lt.exec(t);if(c){var i="rgb("+yt(parseInt(""+c[1],10),parseInt(""+c[2],10)/100,parseInt(""+c[3],10)/100)+")",s=Vt.exec(i);if(!s)throw new gt(4,t,i);return{red:parseInt(""+s[1],10),green:parseInt(""+s[2],10),blue:parseInt(""+s[3],10)}}var l=Et.exec(t);if(l){var h="rgb("+yt(parseInt(""+l[1],10),parseInt(""+l[2],10)/100,parseInt(""+l[3],10)/100)+")",u=Vt.exec(h);if(!u)throw new gt(4,t,h);return{red:parseInt(""+u[1],10),green:parseInt(""+u[2],10),blue:parseInt(""+u[3],10),alpha:parseFloat(""+l[4])}}throw new gt(5)}function _t(e){return function(e){var t,n=e.red/255,r=e.green/255,a=e.blue/255,o=Math.max(n,r,a),c=Math.min(n,r,a),i=(o+c)/2;if(o===c)return void 0!==e.alpha?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var s=o-c,l=i>.5?s/(2-o-c):s/(o+c);switch(o){case n:t=(r-a)/s+(r<a?6:0);break;case r:t=(a-n)/s+2;break;default:t=(n-r)/s+4}return t*=60,void 0!==e.alpha?{hue:t,saturation:l,lightness:i,alpha:e.alpha}:{hue:t,saturation:l,lightness:i}}(St(e))}var At=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e};function Dt(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function Ot(e){return Dt(Math.round(255*e))}function It(e,t,n){return At("#"+Ot(e)+Ot(t)+Ot(n))}function Nt(e,t,n){return yt(e,t,n,It)}function Rt(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return At("#"+Dt(e)+Dt(t)+Dt(n));if("object"==typeof e&&void 0===t&&void 0===n)return At("#"+Dt(e.red)+Dt(e.green)+Dt(e.blue));throw new gt(6)}function Pt(e,t,n,r){if("string"==typeof e&&"number"==typeof t){var a=St(e);return"rgba("+a.red+","+a.green+","+a.blue+","+t+")"}if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?Rt(e,t,n):"rgba("+e+","+t+","+n+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?Rt(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new gt(7)}function Tt(e){if("object"!=typeof e)throw new gt(8);if(function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha}(e))return Pt(e);if(function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)}(e))return Rt(e);if(function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha}(e))return function(e,t,n,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?Nt(e,t,n):"rgba("+yt(e,t,n)+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?Nt(e.hue,e.saturation,e.lightness):"rgba("+yt(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new gt(2)}(e);if(function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)}(e))return function(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return Nt(e,t,n);if("object"==typeof e&&void 0===t&&void 0===n)return Nt(e.hue,e.saturation,e.lightness);throw new gt(1)}(e);throw new gt(8)}function Ft(e,t,n){return function(){var r=n.concat(Array.prototype.slice.call(arguments));return r.length>=t?e.apply(this,r):Ft(e,t,r)}}function jt(e){return Ft(e,e.length,[])}function Bt(e,t,n){return Math.max(e,Math.min(t,n))}function Yt(e,t){if("transparent"===t)return t;var n=_t(t);return Tt(it({},n,{lightness:Bt(0,1,n.lightness-parseFloat(e))}))}var $t=jt(Yt);function Wt(e,t){if("transparent"===t)return t;var n=_t(t);return Tt(it({},n,{lightness:Bt(0,1,n.lightness+parseFloat(e))}))}var Ut=jt(Wt);function Kt(e,t){if("transparent"===t)return t;var n=St(t);return Pt(it({},n,{alpha:Bt(0,1,(100*("number"==typeof n.alpha?n.alpha:1)-100*parseFloat(e))/100)}))}var Gt=jt(Kt);const{jungle:qt,jade:Zt,dodger:Xt,elephant:Jt,raven:Qt,chateau:en,zircon:tn,porcelain:nn,smoke:rn,athens:an,sunrise:on,pearlLusta:cn,scotchMist:sn,permission:ln,ferrari:hn,white:un,transparent:pn,azure:dn,black:mn,skylight:vn,clara:fn,passion:gn,peach:bn,babylon:zn,coral:yn,S50:Mn}=ct,xn={body:{background:{primary:nn,secondary:an}},primary:dn,link:dn,white:un,black:mn,text:{primary:ct.E900,secondary:Qt,light:an,disabled:ct.S100,placeholder:en,error:ln,success:qt,label:ct.S700,warning:on,extraLight:ct.E700,link:dn},toolTip:{normal:ct.S800,success:ct.E500,error:ct.E400,ferrari:hn,black:mn},label:{primary:ct.S700},success:{color:ct.elephant,background:"#dff0d8"},warning:{color:ct.elephant,background:"#FEF1E1"},info:{color:ct.elephant,background:"#d9edf7"},error:{color:ct.elephant,background:"#ff595912"},icon:{primary:Qt,secondary:Jt},border:{primary:ct.S100,secondary:ct.S50,hover:ct.S700,active:Jt,disabled:ct.S50,error:gn},background:{primary:nn,secondary:ct.S10,hover:rn,disabled:ct.S50,selected:ct.E600,error:Ut(.4,ln),light:ct.S25},layout:{asidePane:an},errorText:{primary:gn},components:{menu:{background:ct.white,menuItem:{color:"#12344D",hover:{background:"#E5ECFF"},disabled:{color:"#CFD7DF"},selected:{background:"#E5ECFF"}}},table:{header:{background:"#F5F7F9",text:"#475867"},body:{background:ct.white,text:"#12344D",selected:"#E5F2FD",hover:"#F5F7F9"}},alert:{background:sn},input:{primary:{borderColor:ct.S100,hoverBorderColor:ct.S300}},toggle:{backgroundColorOff:en,backgroundColorOn:dn,borderColor:ct.S100},checkbox:{hoverBorderColor:ct.E800,backgroundColor:dn,borderColor:ct.S300},radio:{hoverBorderColor:ct.E800,backgroundColor:dn,borderColor:ct.S300},button:{primary:{backgroundColor:ct.E900,backgroundGradient:{from:ct.E800,to:ct.E900},hover:ct.E900,borderColor:ct.E900,color:un,disabled:{borderColor:ct.S400,backgroundGradient:{from:ct.S300,to:ct.S400},color:ct.S100},active:{borderColor:"#A2C0DE",backgroundColor:ct.E800}},secondary:{backgroundColor:un,backgroundGradient:{from:un,to:ct.S25},hover:ct.S25,borderColor:ct.S100,color:ct.E900,disabled:{borderColor:ct.S100,backgroundGradient:{from:ct.S50,to:ct.S50},color:ct.S300},active:{borderColor:ct.S100,backgroundColor:un}},danger:{backgroundColor:hn,backgroundGradient:{from:gn,to:hn},hover:hn,borderColor:hn,color:un,disabled:{borderColor:yn,backgroundGradient:{from:zn,to:yn},color:bn},active:{borderColor:zn,backgroundColor:hn}},link:{backgroundColor:pn,backgroundGradient:{from:pn,to:pn},hover:ct.S50,borderColor:pn,color:dn,disabled:{borderColor:pn,backgroundGradient:{from:pn,to:pn},color:dn},active:{borderColor:dn,backgroundColor:pn}},buttonGroup:{normal:ct.E300}},inlineMessage:{error:ln,warning:on,info:Xt,success:Zt},inlineBanner:{border:{success:Gt(.7,qt),info:Gt(.7,Xt),warning:Gt(.7,on),error:Gt(.7,ln)},background:{success:Gt(.9,qt),info:Gt(.9,Xt),warning:Gt(.9,on),error:Gt(.9,ln)}},panel:{gradientStart:un,gradientEnd:an,border:tn,background:rn,level:{warning:{backgroundColor:sn,borderColor:$t(.2,sn)},danger:{backgroundColor:Ut(.35,ln),borderColor:Ut(.1,ln)}}},confirmModal:{background:ct.S50,border:tn},modal:{overlayBackground:Gt(.5,ct.E900)},tag:{background:{success:Ut(.6,qt),error:Ut(.4,ln),neutral:Ut(.4,dn),warning:Ut(.4,on),info:"transparent"},border:{success:Ut(.1,qt),error:Ut(.2,ln),neutral:Ut(.2,dn),warning:Ut(.2,on),info:ct.S100},color:{success:qt,error:ln,neutral:dn,warning:on,info:ct.E900}},railNavigation:{backgroundColor:ct.E900,activeColor:Pt(un,.3)},listCard:{borderLeft:dn,highlight:Ut(.4,Xt),background:rn},tabs:{color:ct.clara,hoverBg:"#E5ECFF",disabledBg:ct.S50,disabledColor:ct.S400,selectedBorderColor:ct.clara,selectedColor:ct.clara},tooltip:{backgroundColor:ct.E900},accordion:{header:{borderColor:tn},section:{background:ct.S10,borderColor:ct.S50}},toast:{success:qt,error:ln,loading:dn,warning:on}},pseudo:{focus:dn,hover:Mn,highlight:vn}},wn=tt.svg`
1
+ "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react"),n=e(t),r=require("react-is"),a=e(r),o=e(require("react-transition-group/Transition")),c=require("react-dom"),i=e(c),s=e(require("react-focus-lock")),l=require("react-remove-scroll"),h=require("react-tippy"),u=require("react-lifecycles-compat"),p=require("react-popper"),d=require("react-transition-group"),m=e(require("react-day-picker")),v=require("react-table");function f(e){function t(e,r,s,l,p){for(var d,m,v,f,y,x=0,w=0,H=0,C=0,V=0,A=0,O=v=d=0,N=0,R=0,P=0,T=0,F=s.length,j=F-1,B="",Y="",$="",W="";N<F;){if(m=s.charCodeAt(N),N===j&&0!==w+C+H+x&&(0!==w&&(m=47===w?10:47),C=H=x=0,F++,j++),0===w+C+H+x){if(N===j&&(0<R&&(B=B.replace(u,"")),0<B.trim().length)){switch(m){case 32:case 9:case 59:case 13:case 10:break;default:B+=s.charAt(N)}m=59}switch(m){case 123:for(d=(B=B.trim()).charCodeAt(0),v=1,T=++N;N<F;){switch(m=s.charCodeAt(N)){case 123:v++;break;case 125:v--;break;case 47:switch(m=s.charCodeAt(N+1)){case 42:case 47:e:{for(O=N+1;O<j;++O)switch(s.charCodeAt(O)){case 47:if(42===m&&42===s.charCodeAt(O-1)&&N+2!==O){N=O+1;break e}break;case 10:if(47===m){N=O+1;break e}}N=O}}break;case 91:m++;case 40:m++;case 34:case 39:for(;N++<j&&s.charCodeAt(N)!==m;);}if(0===v)break;N++}if(v=s.substring(T,N),0===d&&(d=(B=B.replace(h,"").trim()).charCodeAt(0)),64===d){switch(0<R&&(B=B.replace(u,"")),m=B.charCodeAt(1)){case 100:case 109:case 115:case 45:R=r;break;default:R=_}if(T=(v=t(r,R,v,m,p+1)).length,0<D&&(y=i(3,v,R=n(_,B,P),r,L,k,T,m,p,l),B=R.join(""),void 0!==y&&0===(T=(v=y.trim()).length)&&(m=0,v="")),0<T)switch(m){case 115:B=B.replace(M,c);case 100:case 109:case 45:v=B+"{"+v+"}";break;case 107:v=(B=B.replace(g,"$1 $2"))+"{"+v+"}",v=1===S||2===S&&o("@"+v,3)?"@-webkit-"+v+"@"+v:"@"+v;break;default:v=B+v,112===l&&(Y+=v,v="")}else v=""}else v=t(r,n(r,B,P),v,l,p+1);$+=v,v=P=R=O=d=0,B="",m=s.charCodeAt(++N);break;case 125:case 59:if(1<(T=(B=(0<R?B.replace(u,""):B).trim()).length))switch(0===O&&(d=B.charCodeAt(0),45===d||96<d&&123>d)&&(T=(B=B.replace(" ",":")).length),0<D&&void 0!==(y=i(1,B,r,e,L,k,Y.length,l,p,l))&&0===(T=(B=y.trim()).length)&&(B="\0\0"),d=B.charCodeAt(0),m=B.charCodeAt(1),d){case 0:break;case 64:if(105===m||99===m){W+=B+s.charAt(N);break}default:58!==B.charCodeAt(T-1)&&(Y+=a(B,d,m,B.charCodeAt(2)))}P=R=O=d=0,B="",m=s.charCodeAt(++N)}}switch(m){case 13:case 10:47===w?w=0:0===1+d&&107!==l&&0<B.length&&(R=1,B+="\0"),0<D*I&&i(0,B,r,e,L,k,Y.length,l,p,l),k=1,L++;break;case 59:case 125:if(0===w+C+H+x){k++;break}default:switch(k++,f=s.charAt(N),m){case 9:case 32:if(0===C+x+w)switch(V){case 44:case 58:case 9:case 32:f="";break;default:32!==m&&(f=" ")}break;case 0:f="\\0";break;case 12:f="\\f";break;case 11:f="\\v";break;case 38:0===C+w+x&&(R=P=1,f="\f"+f);break;case 108:if(0===C+w+x+E&&0<O)switch(N-O){case 2:112===V&&58===s.charCodeAt(N-3)&&(E=V);case 8:111===A&&(E=A)}break;case 58:0===C+w+x&&(O=N);break;case 44:0===w+H+C+x&&(R=1,f+="\r");break;case 34:case 39:0===w&&(C=C===m?0:0===C?m:C);break;case 91:0===C+w+H&&x++;break;case 93:0===C+w+H&&x--;break;case 41:0===C+w+x&&H--;break;case 40:if(0===C+w+x){if(0===d)if(2*V+3*A==533);else d=1;H++}break;case 64:0===w+H+C+x+O+v&&(v=1);break;case 42:case 47:if(!(0<C+x+H))switch(w){case 0:switch(2*m+3*s.charCodeAt(N+1)){case 235:w=47;break;case 220:T=N,w=42}break;case 42:47===m&&42===V&&T+2!==N&&(33===s.charCodeAt(T+2)&&(Y+=s.substring(T,N+1)),f="",w=0)}}0===w&&(B+=f)}A=V,V=m,N++}if(0<(T=Y.length)){if(R=r,0<D&&(void 0!==(y=i(2,Y,R,e,L,k,T,l,p,l))&&0===(Y=y).length))return W+Y+$;if(Y=R.join(",")+"{"+Y+"}",0!=S*E){switch(2!==S||o(Y,2)||(E=0),E){case 111:Y=Y.replace(z,":-moz-$1")+Y;break;case 112:Y=Y.replace(b,"::-webkit-input-$1")+Y.replace(b,"::-moz-$1")+Y.replace(b,":-ms-input-$1")+Y}E=0}}return W+Y+$}function n(e,t,n){var a=t.trim().split(v);t=a;var o=a.length,c=e.length;switch(c){case 0:case 1:var i=0;for(e=0===c?"":e[0]+" ";i<o;++i)t[i]=r(e,t[i],n).trim();break;default:var s=i=0;for(t=[];i<o;++i)for(var l=0;l<c;++l)t[s++]=r(e[l]+" ",a[i],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(f,"$1"+e.trim());case 58:return e.trim()+t.replace(f,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(f,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function a(e,t,n,r){var c=e+";",i=2*t+3*n+4*r;if(944===i){e=c.indexOf(":",9)+1;var s=c.substring(e,c.length-1).trim();return s=c.substring(0,e).trim()+s+";",1===S||2===S&&o(s,1)?"-webkit-"+s+s:s}if(0===S||2===S&&!o(c,1))return c;switch(i){case 1015:return 97===c.charCodeAt(10)?"-webkit-"+c+c:c;case 951:return 116===c.charCodeAt(3)?"-webkit-"+c+c:c;case 963:return 110===c.charCodeAt(5)?"-webkit-"+c+c:c;case 1009:if(100!==c.charCodeAt(4))break;case 969:case 942:return"-webkit-"+c+c;case 978:return"-webkit-"+c+"-moz-"+c+c;case 1019:case 983:return"-webkit-"+c+"-moz-"+c+"-ms-"+c+c;case 883:if(45===c.charCodeAt(8))return"-webkit-"+c+c;if(0<c.indexOf("image-set(",11))return c.replace(V,"$1-webkit-$2")+c;break;case 932:if(45===c.charCodeAt(4))switch(c.charCodeAt(5)){case 103:return"-webkit-box-"+c.replace("-grow","")+"-webkit-"+c+"-ms-"+c.replace("grow","positive")+c;case 115:return"-webkit-"+c+"-ms-"+c.replace("shrink","negative")+c;case 98:return"-webkit-"+c+"-ms-"+c.replace("basis","preferred-size")+c}return"-webkit-"+c+"-ms-"+c+c;case 964:return"-webkit-"+c+"-ms-flex-"+c+c;case 1023:if(99!==c.charCodeAt(8))break;return"-webkit-box-pack"+(s=c.substring(c.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+c+"-ms-flex-pack"+s+c;case 1005:return d.test(c)?c.replace(p,":-webkit-")+c.replace(p,":-moz-")+c:c;case 1e3:switch(t=(s=c.substring(13).trim()).indexOf("-")+1,s.charCodeAt(0)+s.charCodeAt(t)){case 226:s=c.replace(y,"tb");break;case 232:s=c.replace(y,"tb-rl");break;case 220:s=c.replace(y,"lr");break;default:return c}return"-webkit-"+c+"-ms-"+s+c;case 1017:if(-1===c.indexOf("sticky",9))break;case 975:switch(t=(c=e).length-10,i=(s=(33===c.charCodeAt(t)?c.substring(0,t):c).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|s.charCodeAt(7))){case 203:if(111>s.charCodeAt(8))break;case 115:c=c.replace(s,"-webkit-"+s)+";"+c;break;case 207:case 102:c=c.replace(s,"-webkit-"+(102<i?"inline-":"")+"box")+";"+c.replace(s,"-webkit-"+s)+";"+c.replace(s,"-ms-"+s+"box")+";"+c}return c+";";case 938:if(45===c.charCodeAt(5))switch(c.charCodeAt(6)){case 105:return s=c.replace("-items",""),"-webkit-"+c+"-webkit-box-"+s+"-ms-flex-"+s+c;case 115:return"-webkit-"+c+"-ms-flex-item-"+c.replace(w,"")+c;default:return"-webkit-"+c+"-ms-flex-line-pack"+c.replace("align-content","").replace(w,"")+c}break;case 973:case 989:if(45!==c.charCodeAt(3)||122===c.charCodeAt(4))break;case 931:case 953:if(!0===C.test(e))return 115===(s=e.substring(e.indexOf(":")+1)).charCodeAt(0)?a(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):c.replace(s,"-webkit-"+s)+c.replace(s,"-moz-"+s.replace("fill-",""))+c;break;case 962:if(c="-webkit-"+c+(102===c.charCodeAt(5)?"-ms-"+c:"")+c,211===n+r&&105===c.charCodeAt(13)&&0<c.indexOf("transform",10))return c.substring(0,c.indexOf(";",27)+1).replace(m,"$1-webkit-$2")+c}return c}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),O(2!==t?r:r.replace(H,"$1"),n,t)}function c(e,t){var n=a(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(x," or ($1)").substring(4):"("+t+")"}function i(e,t,n,r,a,o,c,i,s,h){for(var u,p=0,d=t;p<D;++p)switch(u=A[p].call(l,e,d,n,r,a,o,c,i,s,h)){case void 0:case!1:case!0:case null:break;default:d=u}if(d!==t)return d}function s(e){return void 0!==(e=e.prefix)&&(O=null,e?"function"!=typeof e?S=1:(S=2,O=e):S=0),s}function l(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<D){var a=i(-1,n,r,r,L,k,0,0,0,0);void 0!==a&&"string"==typeof a&&(n=a)}var o=t(_,r,n,0,0);return 0<D&&(void 0!==(a=i(-2,o,r,r,L,k,o.length,0,0,0))&&(o=a)),"",E=0,k=L=1,o}var h=/^\0+/g,u=/[\0\r\f]/g,p=/: */g,d=/zoo|gra/,m=/([,: ])(transform)/g,v=/,\r+?/g,f=/([\t\r\n ])*\f?&/g,g=/@(k\w+)\s*(\S*)\s*/,b=/::(place)/g,z=/:(read-only)/g,y=/[svh]\w+-[tblr]{2}/,M=/\(\s*(.*)\s*\)/g,x=/([\s\S]*?);/g,w=/-self|flex-/g,H=/[^]*?(:[rp][el]a[\w-]+)[^]*/,C=/stretch|:\s*\w+\-(?:conte|avail)/,V=/([^-])(image-set\()/,k=1,L=1,E=0,S=1,_=[],A=[],D=0,O=null,I=0;return l.use=function e(t){switch(t){case void 0:case null:D=A.length=0;break;default:if("function"==typeof t)A[D++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else I=0|!!t}return e},l.set=s,void 0!==e&&s(e),l}var g={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var b,z,y=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,M=(b=function(e){return y.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91},z={},function(e){return void 0===z[e]&&(z[e]=b(e)),z[e]}),x={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},w={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},H={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},C={};function V(e){return a.isMemo(e)?H:C[e.$$typeof]||x}C[a.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},C[a.Memo]=H;var k=Object.defineProperty,L=Object.getOwnPropertyNames,E=Object.getOwnPropertySymbols,S=Object.getOwnPropertyDescriptor,_=Object.getPrototypeOf,A=Object.prototype;var D=function e(t,n,r){if("string"!=typeof n){if(A){var a=_(n);a&&a!==A&&e(t,a,r)}var o=L(n);E&&(o=o.concat(E(n)));for(var c=V(t),i=V(n),s=0;s<o.length;++s){var l=o[s];if(!(w[l]||r&&r[l]||i&&i[l]||c&&c[l])){var h=S(n,l);try{k(t,l,h)}catch(e){}}}}return t};function O(){return(O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var I=function(e,t){for(var n=[e[0]],r=0,a=t.length;r<a;r+=1)n.push(t[r],e[r+1]);return n},N=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!r.typeOf(e)},R=Object.freeze([]),P=Object.freeze({});function T(e){return"function"==typeof e}function F(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function j(e){return e&&"string"==typeof e.styledComponentId}var B="undefined"!=typeof process&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Y="undefined"!=typeof window&&"HTMLElement"in window,$=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),W={},U="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n"}:{};function K(){for(var e=arguments.length<=0?void 0:arguments[0],t=[],n=1,r=arguments.length;n<r;n+=1)t.push(n<0||arguments.length<=n?void 0:arguments[n]);return t.forEach((function(t){e=e.replace(/%[a-z]/,t)})),e}function G(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw"production"===process.env.NODE_ENV?new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):"")):new Error(K.apply(void 0,[U[e]].concat(n)).trim())}var q=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,a=r;e>=a;)(a<<=1)<0&&G(16,""+e);this.groupSizes=new Uint32Array(a),this.groupSizes.set(n),this.length=a;for(var o=r;o<a;o++)this.groupSizes[o]=0}for(var c=this.indexOfGroup(e+1),i=0,s=t.length;i<s;i++)this.tag.insertRule(c,t[i])&&(this.groupSizes[e]++,c++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var a=n;a<r;a++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),a=r+n,o=r;o<a;o++)t+=this.tag.getRule(o)+"/*!sc*/\n";return t},e}(),Z=new Map,X=new Map,J=1,Q=function(e){if(Z.has(e))return Z.get(e);for(;X.has(J);)J++;var t=J++;return"production"!==process.env.NODE_ENV&&((0|t)<0||t>1<<30)&&G(16,""+t),Z.set(e,t),X.set(t,e),t},ee=function(e){return X.get(e)},te=function(e,t){Z.set(e,t),X.set(t,e)},ne="style["+B+'][data-styled-version="5.3.0"]',re=new RegExp("^"+B+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),ae=function(e,t,n){for(var r,a=n.split(","),o=0,c=a.length;o<c;o++)(r=a[o])&&e.registerName(t,r)},oe=function(e,t){for(var n=t.innerHTML.split("/*!sc*/\n"),r=[],a=0,o=n.length;a<o;a++){var c=n[a].trim();if(c){var i=c.match(re);if(i){var s=0|parseInt(i[1],10),l=i[2];0!==s&&(te(l,s),ae(e,l,i[3]),e.getTag().insertRules(s,r)),r.length=0}else r.push(c)}}},ce=function(e){var t=document.head,n=e||t,r=document.createElement("style"),a=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(B))return r}}(n),o=void 0!==a?a.nextSibling:null;r.setAttribute(B,"active"),r.setAttribute("data-styled-version","5.3.0");var c="undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null;return c&&r.setAttribute("nonce",c),n.insertBefore(r,o),r},ie=function(){function e(e){var t=this.element=ce(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var a=t[n];if(a.ownerNode===e)return a}G(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),se=function(){function e(e){var t=this.element=ce(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),le=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),he=Y,ue={isServer:!Y,useCSSOMInjection:!$},pe=function(){function e(e,t,n){void 0===e&&(e=P),void 0===t&&(t={}),this.options=O({},ue,{},e),this.gs=t,this.names=new Map(n),!this.options.isServer&&Y&&he&&(he=!1,function(e){for(var t=document.querySelectorAll(ne),n=0,r=t.length;n<r;n++){var a=t[n];a&&"active"!==a.getAttribute(B)&&(oe(e,a),a.parentNode&&a.parentNode.removeChild(a))}}(this))}e.registerId=function(e){return Q(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(O({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,a=t.target,e=n?new le(a):r?new ie(a):new se(a),new q(e)));var e,t,n,r,a},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(Q(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Q(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(Q(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",a=0;a<n;a++){var o=ee(a);if(void 0!==o){var c=e.names.get(o),i=t.getGroup(a);if(void 0!==c&&0!==i.length){var s=B+".g"+a+'[id="'+o+'"]',l="";void 0!==c&&c.forEach((function(e){e.length>0&&(l+=e+",")})),r+=""+i+s+'{content:"'+l+'"}/*!sc*/\n'}}}return r}(this)},e}(),de=/(a)(d)/gi,me=function(e){return String.fromCharCode(e+(e>25?39:97))};function ve(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=me(t%52)+n;return(me(t%52)+n).replace(de,"$1-$2")}var fe=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},ge=function(e){return fe(5381,e)};function be(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(T(n)&&!j(n))return!1}return!0}var ze=ge("5.3.0"),ye=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&be(e),this.componentId=t,this.baseHash=fe(ze,t),this.baseStyle=n,pe.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,a=[];if(this.baseStyle&&a.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))a.push(this.staticRulesId);else{var o=Ne(this.rules,e,t,n).join(""),c=ve(fe(this.baseHash,o.length)>>>0);if(!t.hasNameForId(r,c)){var i=n(o,"."+c,void 0,r);t.insertRules(r,c,i)}a.push(c),this.staticRulesId=c}else{for(var s=this.rules.length,l=fe(this.baseHash,n.hash),h="",u=0;u<s;u++){var p=this.rules[u];if("string"==typeof p)h+=p,"production"!==process.env.NODE_ENV&&(l=fe(l,p+u));else if(p){var d=Ne(p,e,t,n),m=Array.isArray(d)?d.join(""):d;l=fe(l,m+u),h+=m}}if(h){var v=ve(l>>>0);if(!t.hasNameForId(r,v)){var f=n(h,"."+v,void 0,r);t.insertRules(r,v,f)}a.push(v)}}return a.join(" ")},e}(),Me=/^\s*\/\/.*$/gm,xe=[":","[",".","#"];var we=n.createContext(),He=(we.Consumer,n.createContext()),Ce=(He.Consumer,new pe),Ve=function(e){var t,n,r,a,o=void 0===e?P:e,c=o.options,i=void 0===c?P:c,s=o.plugins,l=void 0===s?R:s,h=new f(i),u=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,a,o,c,i,s,l,h,u){switch(n){case 1:if(0===h&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===l)return r+"/*|*/";break;case 3:switch(l){case 102:case 112:return e(a[0]+r),"";default:return r+(0===u?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){u.push(e)})),d=function(e,r,o){return 0===r&&-1!==xe.indexOf(o[n.length])||o.match(a)?e:"."+t};function m(e,o,c,i){void 0===i&&(i="&");var s=e.replace(Me,""),l=o&&c?c+" "+o+" { "+s+" }":s;return t=i,n=o,r=new RegExp("\\"+n+"\\b","g"),a=new RegExp("(\\"+n+"\\b){2,}"),h(c||!o?"":o,l)}return h.use([].concat(l,[function(e,t,a){2===e&&a.length&&a[0].lastIndexOf(n)>0&&(a[0]=a[0].replace(r,d))},p,function(e){if(-2===e){var t=u;return u=[],t}}])),m.hash=l.length?l.reduce((function(e,t){return t.name||G(15),fe(e,t.name)}),5381).toString():"",m}();function ke(){return t.useContext(we)||Ce}function Le(){return t.useContext(He)||Ve}var Ee=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Ve);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return G(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=Ve),this.name+e.hash},e}(),Se=/([A-Z])/,_e=/([A-Z])/g,Ae=/^ms-/,De=function(e){return"-"+e.toLowerCase()};function Oe(e){return Se.test(e)?e.replace(_e,De).replace(Ae,"-ms-"):e}var Ie=function(e){return null==e||!1===e||""===e};function Ne(e,t,n,a){if(Array.isArray(e)){for(var o,c=[],i=0,s=e.length;i<s;i+=1)""!==(o=Ne(e[i],t,n,a))&&(Array.isArray(o)?c.push.apply(c,o):c.push(o));return c}if(Ie(e))return"";if(j(e))return"."+e.styledComponentId;if(T(e)){if("function"!=typeof(h=e)||h.prototype&&h.prototype.isReactComponent||!t)return e;var l=e(t);return"production"!==process.env.NODE_ENV&&r.isElement(l)&&console.warn(F(e)+" is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details."),Ne(l,t,n,a)}var h;return e instanceof Ee?n?(e.inject(n,a),e.getName(a)):e:N(e)?function e(t,n){var r,a,o=[];for(var c in t)t.hasOwnProperty(c)&&!Ie(t[c])&&(N(t[c])?o.push.apply(o,e(t[c],c)):T(t[c])?o.push(Oe(c)+":",t[c],";"):o.push(Oe(c)+": "+(r=c,(null==(a=t[c])||"boolean"==typeof a||""===a?"":"number"!=typeof a||0===a||r in g?String(a).trim():a+"px")+";")));return n?[n+" {"].concat(o,["}"]):o}(e):e.toString()}function Re(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return T(e)||N(e)?Ne(I(R,[e].concat(n))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:Ne(I(e,n))}var Pe=/invalid hook call/i,Te=new Set,Fe=function(e,n){if("production"!==process.env.NODE_ENV){var r="The component "+e+(n?' with the id of "'+n+'"':"")+" has been created dynamically.\nYou may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.";try{t.useRef(),Te.has(r)||(console.warn(r),Te.add(r))}catch(e){Pe.test(e.message)&&Te.delete(r)}}},je=function(e,t,n){return void 0===n&&(n=P),e.theme!==n.theme&&e.theme||t||n.theme},Be=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ye=/(^-|-$)/g;function $e(e){return e.replace(Be,"-").replace(Ye,"")}var We=function(e){return ve(ge(e)>>>0)};function Ue(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var Ke=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Ge=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function qe(e,t,n){var r=e[n];Ke(t)&&Ke(r)?Ze(r,t):e[n]=t}function Ze(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var a=0,o=n;a<o.length;a++){var c=o[a];if(Ke(c))for(var i in c)Ge(i)&&qe(e,c[i],i)}return e}var Xe=n.createContext();Xe.Consumer;function Je(e){var r=t.useContext(Xe),a=t.useMemo((function(){return function(e,t){if(!e)return G(14);if(T(e)){var n=e(t);return"production"===process.env.NODE_ENV||null!==n&&!Array.isArray(n)&&"object"==typeof n?n:G(7)}return Array.isArray(e)||"object"!=typeof e?G(8):t?O({},t,{},e):e}(e.theme,r)}),[e.theme,r]);return e.children?n.createElement(Xe.Provider,{value:a},e.children):null}var Qe={};function et(e,r,a){var o=j(e),c=!Ue(e),i=r.attrs,s=void 0===i?R:i,l=r.componentId,h=void 0===l?function(e,t){var n="string"!=typeof e?"sc":$e(e);Qe[n]=(Qe[n]||0)+1;var r=n+"-"+We("5.3.0"+n+Qe[n]);return t?t+"-"+r:r}(r.displayName,r.parentComponentId):l,u=r.displayName,p=void 0===u?function(e){return Ue(e)?"styled."+e:"Styled("+F(e)+")"}(e):u,d=r.displayName&&r.componentId?$e(r.displayName)+"-"+r.componentId:r.componentId||h,m=o&&e.attrs?Array.prototype.concat(e.attrs,s).filter(Boolean):s,v=r.shouldForwardProp;o&&e.shouldForwardProp&&(v=r.shouldForwardProp?function(t,n,a){return e.shouldForwardProp(t,n,a)&&r.shouldForwardProp(t,n,a)}:e.shouldForwardProp);var f,g=new ye(a,d,o?e.componentStyle:void 0),b=g.isStatic&&0===s.length,z=function(e,n){return function(e,n,r,a){var o=e.attrs,c=e.componentStyle,i=e.defaultProps,s=e.foldedComponentIds,l=e.shouldForwardProp,h=e.styledComponentId,u=e.target;"production"!==process.env.NODE_ENV&&t.useDebugValue(h);var p=function(e,t,n){void 0===e&&(e=P);var r=O({},t,{theme:e}),a={};return n.forEach((function(e){var t,n,o,c=e;for(t in T(c)&&(c=c(r)),c)r[t]=a[t]="className"===t?(n=a[t],o=c[t],n&&o?n+" "+o:n||o):c[t]})),[r,a]}(je(n,t.useContext(Xe),i)||P,n,o),d=p[0],m=p[1],v=function(e,n,r,a){var o=ke(),c=Le(),i=n?e.generateAndInjectStyles(P,o,c):e.generateAndInjectStyles(r,o,c);return"production"!==process.env.NODE_ENV&&t.useDebugValue(i),"production"!==process.env.NODE_ENV&&!n&&a&&a(i),i}(c,a,d,"production"!==process.env.NODE_ENV?e.warnTooManyClasses:void 0),f=r,g=m.$as||n.$as||m.as||n.as||u,b=Ue(g),z=m!==n?O({},n,{},m):n,y={};for(var x in z)"$"!==x[0]&&"as"!==x&&("forwardedAs"===x?y.as=z[x]:(l?l(x,M,g):!b||M(x))&&(y[x]=z[x]));return n.style&&m.style!==n.style&&(y.style=O({},n.style,{},m.style)),y.className=Array.prototype.concat(s,h,v!==h?v:null,n.className,m.className).filter(Boolean).join(" "),y.ref=f,t.createElement(g,y)}(f,e,n,b)};return z.displayName=p,(f=n.forwardRef(z)).attrs=m,f.componentStyle=g,f.displayName=p,f.shouldForwardProp=v,f.foldedComponentIds=o?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):R,f.styledComponentId=d,f.target=o?e.target:e,f.withComponent=function(e){var t=r.componentId,n=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(r,["componentId"]),o=t&&t+"-"+(Ue(e)?e:$e(F(e)));return et(e,O({},n,{attrs:m,componentId:o}),a)},Object.defineProperty(f,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=o?Ze({},e.defaultProps,t):t}}),"production"!==process.env.NODE_ENV&&(Fe(p,d),f.warnTooManyClasses=function(e,t){var n={},r=!1;return function(a){if(!r&&(n[a]=!0,Object.keys(n).length>=200)){var o=t?' with the id of "'+t+'"':"";console.warn("Over 200 classes were generated for component "+e+o+".\nConsider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),r=!0,n={}}}}(p,d)),f.toString=function(){return"."+f.styledComponentId},c&&D(f,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),f}var tt=function(e){return function e(t,n,a){if(void 0===a&&(a=P),!r.isValidElementType(n))return G(1,String(n));var o=function(){return t(n,a,Re.apply(void 0,arguments))};return o.withConfig=function(r){return e(t,n,O({},a,{},r))},o.attrs=function(r){return e(t,n,O({},a,{attrs:Array.prototype.concat(a.attrs,r).filter(Boolean)}))},o}(et,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){tt[e]=tt(e)}));var nt=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=be(e),pe.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var a=r(Ne(this.rules,t,n,r).join(""),""),o=this.componentId+e;n.insertRules(o,o,a)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&pe.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function rt(e){for(var r=arguments.length,a=new Array(r>1?r-1:0),o=1;o<r;o++)a[o-1]=arguments[o];var c=Re.apply(void 0,[e].concat(a)),i="sc-global-"+We(JSON.stringify(c)),s=new nt(c,i);function l(e){var r=ke(),a=Le(),o=t.useContext(Xe),s=t.useRef(r.allocateGSInstance(i)).current;return"production"!==process.env.NODE_ENV&&n.Children.count(e.children)&&console.warn("The global style component "+i+" was given child JSX. createGlobalStyle does not render children."),"production"!==process.env.NODE_ENV&&c.some((function(e){return"string"==typeof e&&-1!==e.indexOf("@import")}))&&console.warn("Please do not use @import CSS syntax in createGlobalStyle at this time, as the CSSOM APIs we use in production do not handle it well. Instead, we recommend using a library such as react-helmet to inject a typical <link> meta tag to the stylesheet, or simply embedding it manually in your index.html <head> section for a simpler app."),h(s,e,r,o,a),null}function h(e,t,n,r,a){if(s.isStatic)s.renderStyles(e,W,n,a);else{var o=O({},t,{theme:je(t,r,l.defaultProps)});s.renderStyles(e,o,n,a)}}return"production"!==process.env.NODE_ENV&&Fe(i),n.memo(l)}function at(e){"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a=Re.apply(void 0,[e].concat(n)).join(""),o=We(a);return new Ee(o,a)}"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native"),"production"!==process.env.NODE_ENV&&process.env.NODE_ENV;const ot=(e,t)=>(e.defaultProps=t,e),ct={jade:"#02B875",celery:"#A0D76A",candlelight:"#FFD012",sunrise:"#ffad1e",scotchMist:"#fffade",pearlLusta:"#fffdf6",dodger:"#448ee1",amethyst:"#af64ce",permission:"#E43538",ferrari:"#C82124",mintCream:"#f6feff",athens:"#f9f9f9",smoke:"#f3f5f7",porcelain:"#ebeef0",zircon:"#dadfe3",chateau:"#acb6be",raven:"#6f7c87",elephant:"#183247",rhino:"#284255",jungle:"#00A886",azure:"#2C5CC5",skylight:"#e5f2fd",clara:"#283DA5",casablanca:"#E86F25",transparent:"rgba(255, 255, 255, 0)",passion:"#D72D30",peach:"#FFD0D6",babylon:"#F89FA1",coral:"#F2797B",black:"#000000",white:"#ffffff",E900:"#12344D",E800:"#264966",E700:"#425A70",E600:"#E5F2FD",E500:"#83A6C8",E400:"#D72D30",E300:"#DFF0FF",S900:"#27313A",S800:"#384551",S700:"#475867",S600:"#576C7D",S500:"#647A8E",S400:"#7B8E9F",S300:"#92A2B1",S200:"#B1BDC8",S100:"#CFD7DF",S75:"#E6E8EB",S50:"#EBEFF3",S25:"#F5F7F9",S10:"#F7F9FA"};function it(){return it=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},it.apply(this,arguments)}function st(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lt(e,t){return lt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},lt(e,t)}function ht(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,lt(e,t)}function ut(e){return ut=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ut(e)}function pt(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function dt(e,t,n){return dt=pt()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var a=new(Function.bind.apply(e,r));return n&&lt(a,n.prototype),a},dt.apply(null,arguments)}function mt(e){var t="function"==typeof Map?new Map:void 0;return mt=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return dt(e,arguments,ut(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),lt(n,e)},mt(e)}var vt={1:"Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).\n\n",2:"Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).\n\n",3:"Passed an incorrect argument to a color function, please pass a string representation of a color.\n\n",4:"Couldn't generate valid rgb string from %s, it returned %s.\n\n",5:"Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.\n\n",6:"Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).\n\n",7:"Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).\n\n",8:"Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.\n\n",9:"Please provide a number of steps to the modularScale helper.\n\n",10:"Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n",11:'Invalid value passed as base to modularScale, expected number or em string but got "%s"\n\n',12:'Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead.\n\n',13:'Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead.\n\n',14:'Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12.\n\n',15:'Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12.\n\n',16:"You must provide a template to this method.\n\n",17:"You passed an unsupported selector state to this method.\n\n",18:"minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n",19:"fromSize and toSize must be provided as stringified numbers with the same units.\n\n",20:"expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n",21:"expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n",22:"expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n",23:"fontFace expects a name of a font-family.\n\n",24:"fontFace expects either the path to the font file(s) or a name of a local copy.\n\n",25:"fontFace expects localFonts to be an array.\n\n",26:"fontFace expects fileFormats to be an array.\n\n",27:"radialGradient requries at least 2 color-stops to properly render.\n\n",28:"Please supply a filename to retinaImage() as the first argument.\n\n",29:"Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n",30:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",31:"The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation\n\n",32:"To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')\n\n",33:"The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation\n\n",34:"borderRadius expects a radius value as a string or number as the second argument.\n\n",35:'borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.\n\n',36:"Property must be a string value.\n\n",37:"Syntax Error at %s.\n\n",38:"Formula contains a function that needs parentheses at %s.\n\n",39:"Formula is missing closing parenthesis at %s.\n\n",40:"Formula has too many closing parentheses at %s.\n\n",41:"All values in a formula must have the same unit or be unitless.\n\n",42:"Please provide a number of steps to the modularScale helper.\n\n",43:"Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n",44:"Invalid value passed as base to modularScale, expected number or em/rem string but got %s.\n\n",45:"Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.\n\n",46:"Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.\n\n",47:"minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n",48:"fromSize and toSize must be provided as stringified numbers with the same units.\n\n",49:"Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n",50:"Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.\n\n",51:"Expects the first argument object to have the properties prop, fromSize, and toSize.\n\n",52:"fontFace expects either the path to the font file(s) or a name of a local copy.\n\n",53:"fontFace expects localFonts to be an array.\n\n",54:"fontFace expects fileFormats to be an array.\n\n",55:"fontFace expects a name of a font-family.\n\n",56:"linearGradient requries at least 2 color-stops to properly render.\n\n",57:"radialGradient requries at least 2 color-stops to properly render.\n\n",58:"Please supply a filename to retinaImage() as the first argument.\n\n",59:"Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n",60:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",61:"Property must be a string value.\n\n",62:"borderRadius expects a radius value as a string or number as the second argument.\n\n",63:'borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.\n\n',64:"The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.\n\n",65:"To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s').\n\n",66:"The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.\n\n",67:"You must provide a template to this method.\n\n",68:"You passed an unsupported selector state to this method.\n\n",69:'Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead.\n\n',70:'Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead.\n\n',71:'Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12.\n\n',72:'Passed invalid base value %s to %s(), please pass a value like "12px" or 12.\n\n',73:"Please provide a valid CSS variable.\n\n",74:"CSS variable not found.\n"};function ft(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,a=t[0],o=[];for(r=1;r<t.length;r+=1)o.push(t[r]);return o.forEach((function(e){a=a.replace(/%[a-z]/,e)})),a}var gt=function(e){function t(t){var n;if("production"===process.env.NODE_ENV)n=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/master/src/internalHelpers/errors.md#"+t+" for more information.")||this;else{for(var r=arguments.length,a=new Array(r>1?r-1:0),o=1;o<r;o++)a[o-1]=arguments[o];n=e.call(this,ft.apply(void 0,[vt[t]].concat(a)))||this}return st(n)}return ht(t,e),t}(mt(Error));function bt(e){return Math.round(255*e)}function zt(e,t,n){return bt(e)+","+bt(t)+","+bt(n)}function yt(e,t,n,r){if(void 0===r&&(r=zt),0===t)return r(n,n,n);var a=(e%360+360)%360/60,o=(1-Math.abs(2*n-1))*t,c=o*(1-Math.abs(a%2-1)),i=0,s=0,l=0;a>=0&&a<1?(i=o,s=c):a>=1&&a<2?(i=c,s=o):a>=2&&a<3?(s=o,l=c):a>=3&&a<4?(s=c,l=o):a>=4&&a<5?(i=c,l=o):a>=5&&a<6&&(i=o,l=c);var h=n-o/2;return r(i+h,s+h,l+h)}var Mt={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",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:"ff00ff",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:"639",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"};var xt=/^#[a-fA-F0-9]{6}$/,wt=/^#[a-fA-F0-9]{8}$/,Ht=/^#[a-fA-F0-9]{3}$/,Ct=/^#[a-fA-F0-9]{4}$/,Vt=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,kt=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i,Lt=/^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,Et=/^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i;function St(e){if("string"!=typeof e)throw new gt(3);var t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return Mt[t]?"#"+Mt[t]:e}(e);if(t.match(xt))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(wt)){var n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n}}if(t.match(Ht))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(Ct)){var r=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:r}}var a=Vt.exec(t);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10)};var o=kt.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10),alpha:parseFloat(""+o[4])};var c=Lt.exec(t);if(c){var i="rgb("+yt(parseInt(""+c[1],10),parseInt(""+c[2],10)/100,parseInt(""+c[3],10)/100)+")",s=Vt.exec(i);if(!s)throw new gt(4,t,i);return{red:parseInt(""+s[1],10),green:parseInt(""+s[2],10),blue:parseInt(""+s[3],10)}}var l=Et.exec(t);if(l){var h="rgb("+yt(parseInt(""+l[1],10),parseInt(""+l[2],10)/100,parseInt(""+l[3],10)/100)+")",u=Vt.exec(h);if(!u)throw new gt(4,t,h);return{red:parseInt(""+u[1],10),green:parseInt(""+u[2],10),blue:parseInt(""+u[3],10),alpha:parseFloat(""+l[4])}}throw new gt(5)}function _t(e){return function(e){var t,n=e.red/255,r=e.green/255,a=e.blue/255,o=Math.max(n,r,a),c=Math.min(n,r,a),i=(o+c)/2;if(o===c)return void 0!==e.alpha?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var s=o-c,l=i>.5?s/(2-o-c):s/(o+c);switch(o){case n:t=(r-a)/s+(r<a?6:0);break;case r:t=(a-n)/s+2;break;default:t=(n-r)/s+4}return t*=60,void 0!==e.alpha?{hue:t,saturation:l,lightness:i,alpha:e.alpha}:{hue:t,saturation:l,lightness:i}}(St(e))}var At=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e};function Dt(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function Ot(e){return Dt(Math.round(255*e))}function It(e,t,n){return At("#"+Ot(e)+Ot(t)+Ot(n))}function Nt(e,t,n){return yt(e,t,n,It)}function Rt(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return At("#"+Dt(e)+Dt(t)+Dt(n));if("object"==typeof e&&void 0===t&&void 0===n)return At("#"+Dt(e.red)+Dt(e.green)+Dt(e.blue));throw new gt(6)}function Pt(e,t,n,r){if("string"==typeof e&&"number"==typeof t){var a=St(e);return"rgba("+a.red+","+a.green+","+a.blue+","+t+")"}if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?Rt(e,t,n):"rgba("+e+","+t+","+n+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?Rt(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new gt(7)}function Tt(e){if("object"!=typeof e)throw new gt(8);if(function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha}(e))return Pt(e);if(function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)}(e))return Rt(e);if(function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha}(e))return function(e,t,n,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?Nt(e,t,n):"rgba("+yt(e,t,n)+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?Nt(e.hue,e.saturation,e.lightness):"rgba("+yt(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new gt(2)}(e);if(function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)}(e))return function(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return Nt(e,t,n);if("object"==typeof e&&void 0===t&&void 0===n)return Nt(e.hue,e.saturation,e.lightness);throw new gt(1)}(e);throw new gt(8)}function Ft(e,t,n){return function(){var r=n.concat(Array.prototype.slice.call(arguments));return r.length>=t?e.apply(this,r):Ft(e,t,r)}}function jt(e){return Ft(e,e.length,[])}function Bt(e,t,n){return Math.max(e,Math.min(t,n))}function Yt(e,t){if("transparent"===t)return t;var n=_t(t);return Tt(it({},n,{lightness:Bt(0,1,n.lightness-parseFloat(e))}))}var $t=jt(Yt);function Wt(e,t){if("transparent"===t)return t;var n=_t(t);return Tt(it({},n,{lightness:Bt(0,1,n.lightness+parseFloat(e))}))}var Ut=jt(Wt);function Kt(e,t){if("transparent"===t)return t;var n=St(t);return Pt(it({},n,{alpha:Bt(0,1,(100*("number"==typeof n.alpha?n.alpha:1)-100*parseFloat(e))/100)}))}var Gt=jt(Kt);const{jungle:qt,jade:Zt,dodger:Xt,elephant:Jt,raven:Qt,chateau:en,zircon:tn,porcelain:nn,smoke:rn,athens:an,sunrise:on,pearlLusta:cn,scotchMist:sn,permission:ln,ferrari:hn,white:un,transparent:pn,azure:dn,black:mn,skylight:vn,clara:fn,passion:gn,peach:bn,babylon:zn,coral:yn,S50:Mn}=ct,xn={body:{background:{primary:nn,secondary:an}},primary:dn,link:dn,white:un,black:mn,text:{primary:ct.E900,secondary:Qt,light:an,disabled:ct.S100,placeholder:en,error:ln,success:qt,label:ct.S700,warning:on,extraLight:ct.E700,link:dn},toolTip:{normal:ct.S800,success:ct.E500,error:ct.E400,ferrari:hn,black:mn},label:{primary:ct.S700},success:{color:ct.elephant,background:"#dff0d8"},warning:{color:ct.elephant,background:"#FEF1E1"},info:{color:ct.elephant,background:"#d9edf7"},error:{color:ct.elephant,background:"#ff595912"},icon:{primary:Qt,secondary:Jt},border:{primary:ct.S100,secondary:ct.S50,hover:ct.S700,active:Jt,disabled:ct.S50,error:gn},background:{primary:nn,secondary:ct.S10,hover:rn,disabled:ct.S50,selected:ct.E600,error:Ut(.4,ln),light:ct.S25},layout:{asidePane:an},errorText:{primary:gn},components:{menu:{background:ct.white,menuItem:{color:"#12344D",hover:{background:"#E5ECFF"},disabled:{color:"#CFD7DF"},selected:{background:"#E5ECFF"}}},table:{header:{background:"#F5F7F9",text:"#475867"},body:{background:ct.white,text:"#12344D",selected:"#E5F2FD",hover:"#F5F7F9"}},alert:{background:sn},input:{primary:{borderColor:ct.S100,hoverBorderColor:ct.S300}},toggle:{backgroundColorOff:en,backgroundColorOn:dn,borderColor:ct.S100},checkbox:{hoverBorderColor:ct.E800,backgroundColor:dn,borderColor:ct.S300},radio:{hoverBorderColor:ct.E800,backgroundColor:dn,borderColor:ct.S300},button:{primary:{backgroundColor:ct.E900,backgroundGradient:{from:ct.E800,to:ct.E900},hover:ct.E900,borderColor:ct.E900,color:un,disabled:{borderColor:ct.S400,backgroundGradient:{from:ct.S300,to:ct.S400},color:ct.S100},active:{borderColor:"#A2C0DE",backgroundColor:ct.E800}},secondary:{backgroundColor:un,backgroundGradient:{from:un,to:ct.S25},hover:ct.S25,borderColor:ct.S100,color:ct.E900,disabled:{borderColor:ct.S100,backgroundGradient:{from:ct.S50,to:ct.S50},color:ct.S300},active:{borderColor:ct.S100,backgroundColor:un}},danger:{backgroundColor:hn,backgroundGradient:{from:gn,to:hn},hover:hn,borderColor:hn,color:un,disabled:{borderColor:yn,backgroundGradient:{from:zn,to:yn},color:bn},active:{borderColor:zn,backgroundColor:hn}},link:{backgroundColor:pn,backgroundGradient:{from:pn,to:pn},hover:ct.S50,borderColor:pn,color:dn,disabled:{borderColor:pn,backgroundGradient:{from:pn,to:pn},color:dn},active:{borderColor:dn,backgroundColor:pn}},buttonGroup:{normal:ct.E300}},inlineMessage:{error:ln,warning:on,info:Xt,success:Zt},inlineBanner:{border:{success:Gt(.7,qt),info:Gt(.7,Xt),warning:Gt(.7,on),error:Gt(.7,ln)},background:{success:Gt(.9,qt),info:Gt(.9,Xt),warning:Gt(.9,on),error:Gt(.9,ln)}},panel:{gradientStart:un,gradientEnd:an,border:tn,background:rn,level:{warning:{backgroundColor:sn,borderColor:$t(.2,sn)},danger:{backgroundColor:Ut(.35,ln),borderColor:Ut(.1,ln)}}},confirmModal:{background:ct.athens,border:ct.S50},modal:{overlayBackground:Gt(.5,ct.E900)},tag:{background:{success:Ut(.6,qt),error:Ut(.4,ln),neutral:Ut(.4,dn),warning:Ut(.4,on),info:"transparent"},border:{success:Ut(.1,qt),error:Ut(.2,ln),neutral:Ut(.2,dn),warning:Ut(.2,on),info:ct.S100},color:{success:qt,error:ln,neutral:dn,warning:on,info:ct.E900}},railNavigation:{backgroundColor:ct.E900,activeColor:Pt(un,.3)},listCard:{borderLeft:dn,highlight:Ut(.4,Xt),background:rn},tabs:{color:ct.clara,hoverBg:"#E5ECFF",disabledBg:ct.S50,disabledColor:ct.S400,selectedBorderColor:ct.clara,selectedColor:ct.clara},tooltip:{backgroundColor:ct.E900},accordion:{header:{borderColor:tn},section:{background:ct.S10,borderColor:ct.S50}},toast:{success:qt,error:ln,loading:dn,warning:on}},pseudo:{focus:dn,hover:Mn,highlight:vn}},wn=tt.svg`
2
2
  position: absolute;
3
3
  top: 0;
4
4
  right: 0;
@@ -231,10 +231,10 @@ object-assign
231
231
  background-color: ${go.palette.S900};
232
232
  color: ${go.palette.S10};
233
233
  }
234
- `;process.env.NODE_ENV;var zo=Ho()?n.useLayoutEffect:n.useEffect,yo={},Mo=Co;if("production"!==process.env.NODE_ENV){var xo=("undefined"!=typeof process?process:{env:{NODE_ENV:"development"}}).env;Mo=function(e){yo[e]||(yo[e]=!0,"test"!==xo.NODE_ENV&&1!==parseInt(window.getComputedStyle(document.body).getPropertyValue("--reach-"+e),10)&&console.warn("@reach/"+e+' styles not found. If you are using a bundler like webpack or parcel include this in the entry file of your app before any of your own styles:\n\n import "@reach/'+e+'/styles.css";\n\n Otherwise you\'ll need to include them some other way:\n\n <link rel="stylesheet" type="text/css" href="node_modules/@reach/'+e+'/styles.css" />\n\n For more information visit https://ui.reach.tech/styling.\n '))}}function wo(e,t){if(null!=e)if(function(e){return!(!e||"[object Function]"!={}.toString.call(e))}(e))e(t);else try{e.current=t}catch(n){throw new Error('Cannot assign value "'+t+'" to ref "'+e+'"')}}function Ho(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function Co(){}function Vo(e,t){return function(n){if(e&&e(n),!n.defaultPrevented)return t(n)}}process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV;var ko=function(e){var r=e.children,a=e.type,o=void 0===a?"reach-portal":a,i=t.useRef(null),s=t.useRef(null),l=t.useState()[1];return zo((function(){if(i.current){var e=i.current.ownerDocument;return s.current=null==e?void 0:e.createElement(o),e.body.appendChild(s.current),l({}),function(){s.current&&s.current.ownerDocument&&s.current.ownerDocument.body.removeChild(s.current)}}}),[o]),s.current?c.createPortal(r,s.current):n.createElement("span",{ref:i})};function Lo(){return Lo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lo.apply(this,arguments)}function Eo(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}"production"!==process.env.NODE_ENV&&(ko.displayName="Portal");var So={allowPinchZoom:ro.bool,dangerouslyBypassFocusLock:ro.bool,dangerouslyBypassScrollLock:ro.bool,initialFocusRef:function(){return null},onDismiss:ro.func},_o=t.forwardRef((function(e,r){var a=e.isOpen,o=void 0===a||a,c=Eo(e,["isOpen"]);return t.useEffect((function(){return Mo("dialog")}),[]),t.useEffect((function(){o?window.__REACH_DISABLE_TOOLTIPS=!0:window.requestAnimationFrame((function(){window.__REACH_DISABLE_TOOLTIPS=!1}))}),[o]),o?n.createElement(ko,{"data-reach-dialog-wrapper":""},n.createElement(Ao,Object.assign({ref:r},c))):null}));"production"!==process.env.NODE_ENV&&(_o.displayName="DialogOverlay",_o.propTypes=Lo({},So,{isOpen:ro.bool}));var Ao=t.forwardRef((function(e,r){var a=e.allowPinchZoom,o=e.dangerouslyBypassFocusLock,c=void 0!==o&&o,i=e.dangerouslyBypassScrollLock,h=void 0!==i&&i,u=e.initialFocusRef,p=e.onClick,d=e.onDismiss,m=void 0===d?Co:d,v=e.onKeyDown,f=e.onMouseDown,g=e.unstable_lockFocusAcrossFrames,b=void 0===g||g,z=Eo(e,["allowPinchZoom","dangerouslyBypassFocusLock","dangerouslyBypassScrollLock","initialFocusRef","onClick","onDismiss","onKeyDown","onMouseDown","unstable_lockFocusAcrossFrames"]),y=t.useRef(null),M=t.useRef(null),x=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.useMemo((function(){return n.every((function(e){return null==e}))?null:function(e){n.forEach((function(t){wo(t,e)}))}}),[].concat(n))}(M,r),w=t.useCallback((function(){u&&u.current&&u.current.focus()}),[u]);return t.useEffect((function(){return M.current?function(e){var t=[],n=[],r=(a=e,(a&&a.ownerDocument?a.ownerDocument:Ho()?document:null)||document);var a;if(!e)return"production"!==process.env.NODE_ENV&&console.warn("A ref has not yet been attached to a dialog node when attempting to call `createAriaHider`."),Co;return Array.prototype.forEach.call(r.querySelectorAll("body > *"),(function(r){var a,o;if(r!==(null===(a=e.parentNode)||void 0===a||null===(o=a.parentNode)||void 0===o?void 0:o.parentNode)){var c=r.getAttribute("aria-hidden");null!==c&&"false"!==c||(t.push(c),n.push(r),r.setAttribute("aria-hidden","true"))}})),function(){n.forEach((function(e,n){var r=t[n];null===r?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r)}))}}(M.current):void 0}),[]),n.createElement(s,{autoFocus:!0,returnFocus:!0,onActivation:w,disabled:c,crossFrame:b},n.createElement(l.RemoveScroll,{allowPinchZoom:a,enabled:!h},n.createElement("div",Object.assign({},z,{ref:x,"data-reach-dialog-overlay":"",onClick:Vo(p,(function(e){y.current===e.target&&(e.stopPropagation(),m(e))})),onKeyDown:Vo(v,(function(e){"Escape"===e.key&&(e.stopPropagation(),m(e))})),onMouseDown:Vo(f,(function(e){y.current=e.target}))}))))}));"production"!==process.env.NODE_ENV&&(_o.displayName="DialogOverlay",_o.propTypes=Lo({},So));var Do=t.forwardRef((function(e,t){var r=e.onClick,a=(e.onKeyDown,Eo(e,["onClick","onKeyDown"]));return n.createElement("div",Object.assign({"aria-modal":"true",role:"dialog",tabIndex:-1},a,{ref:t,"data-reach-dialog-content":"",onClick:Vo(r,(function(e){e.stopPropagation()}))}))}));"production"!==process.env.NODE_ENV&&(Do.displayName="DialogContent",Do.propTypes={"aria-label":Io,"aria-labelledby":Io});var Oo=t.forwardRef((function(e,t){var r=e.allowPinchZoom,a=void 0!==r&&r,o=e.initialFocusRef,c=e.isOpen,i=e.onDismiss,s=void 0===i?Co:i,l=Eo(e,["allowPinchZoom","initialFocusRef","isOpen","onDismiss"]);return n.createElement(_o,{allowPinchZoom:a,initialFocusRef:o,isOpen:c,onDismiss:s},n.createElement(Do,Object.assign({ref:t},l)))}));function Io(e,t,n,r,a){var o="\nSee https://www.w3.org/TR/wai-aria/#aria-label for details.";return e["aria-label"]||e["aria-labelledby"]?e["aria-label"]&&e["aria-labelledby"]?new Error("You provided both `aria-label` and `aria-labelledby` props to a <"+n+">. If the a label for this component is visible on the screen, that label's component should be given a unique ID prop, and that ID should be passed as the `aria-labelledby` prop into <"+n+">. If the label cannot be determined programmatically from the content of the element, an alternative label should be provided as the `aria-label` prop, which will be used as an `aria-label` on the HTML tag."+o):null!=e[t]&&"string"!=typeof e[t]?new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Expected `string`, received `"+(Array.isArray(a)?"array":typeof a)+"`."):null:new Error("A <"+n+"> must have either an `aria-label` or `aria-labelledby` prop.\n "+o)}function No(e){const{styles:n,in:r,timeout:a=150,transition:c=`all ${a}ms ease-in-out`,children:i,...s}=e;return t.createElement(o,Object.assign({appear:!0,unmountOnExit:!0,in:r,timeout:a},s),(e=>i((e=>({...n.init,transition:c,...n[e]}))(e))))}"production"!==process.env.NODE_ENV&&(Oo.displayName="Dialog",Oo.propTypes={isOpen:ro.bool,onDismiss:ro.func,"aria-label":Io,"aria-labelledby":Io});const Ro={init:{opacity:0},entered:{opacity:1},exiting:{opacity:0}};function Po(e){const{timeout:n=150,...r}=e;return t.createElement(No,Object.assign({transition:`all ${n}ms cubic-bezier(0.175, 0.885, 0.320, 1.175)`,styles:Ro,timeout:{enter:0,exit:n}},r))}function To(e){switch(e){case"bottom":return{maxWidth:"100vw",bottom:0,left:0,right:0};case"top":return{maxWidth:"100vw",top:0,left:0,right:0};case"left":return{height:"100vh",left:0,top:0};case"right":return{right:0,top:0,height:"100vh"}}}const Fo=(e,t)=>{let n="";return"left"!==e&&"right"!==e||(n="X"),"top"!==e&&"bottom"!==e||(n="Y"),`translate${n}(${t})`};function jo(e){const{placement:n="left",timeout:r=150,children:a,...o}=e,c=function(e){const t={bottom:"100%",top:"-100%",left:"-100%",right:"100%"};return{init:{transform:Fo(e,t[e])},entered:{transform:Fo(e,"0%")},exiting:{transform:Fo(e,t[e])}}}(n),i={position:"fixed",willChange:"transform",...To(n)};return t.createElement(No,Object.assign({styles:c,transition:`all ${r}ms cubic-bezier(0, 0, 0.2, 1)`,timeout:{enter:0,exit:r}},o),(e=>a({...i,...e})))}const Bo=e=>{const{initialOffset:n="20px",timeout:r=150,...a}=e,o=function(e){return{init:{opacity:0,transform:`translateY(${e})`},entered:{opacity:1,transform:"translateY(0px)"},exiting:{opacity:0,transform:`translateY(${e})`}}}(n);return t.createElement(No,Object.assign({styles:o,transition:`all ${r}ms cubic-bezier(0.4, 0.14, 0.3, 1)`,timeout:{enter:0,exit:r}},a))},Yo=n.forwardRef(((e,t)=>{const{isOpen:r,title:a="",confirmButtonText:o="",cancelButtonText:c="",contentStyles:i={},bodyStyles:s={},footerStyles:l={},children:h=null,confirmButtonDisabled:u=!1,cancelButtonDisabled:p=!1,onConfirm:d=(()=>{}),onDismiss:m}=e;return n.createElement(Po,{timeout:300,in:r,unmountOnExit:!0},(e=>n.createElement(Wo,{style:e,isOpen:!0,onDismiss:m},n.createElement(Bo,{timeout:150,in:r,unmountOnExit:!0},(e=>n.createElement($o,{"aria-label":"confirmation-content",style:{...e,...i}},n.createElement(Uo,{style:s},a&&n.createElement("h4",null,a),h&&n.createElement("div",null,h)),(c||o)&&n.createElement(Ko,{style:l},c&&n.createElement(po,{disabled:p,inline:!0,type:"secondary",onClick:m},c),o&&n.createElement(po,{disabled:u,inline:!0,onClick:d},o))))))))})),$o=tt(Do)`
235
- width: auto;
236
- min-width: 512px;
237
- background: #fff;
234
+ `;process.env.NODE_ENV;var zo=Ho()?n.useLayoutEffect:n.useEffect,yo={},Mo=Co;if("production"!==process.env.NODE_ENV){var xo=("undefined"!=typeof process?process:{env:{NODE_ENV:"development"}}).env;Mo=function(e){yo[e]||(yo[e]=!0,"test"!==xo.NODE_ENV&&1!==parseInt(window.getComputedStyle(document.body).getPropertyValue("--reach-"+e),10)&&console.warn("@reach/"+e+' styles not found. If you are using a bundler like webpack or parcel include this in the entry file of your app before any of your own styles:\n\n import "@reach/'+e+'/styles.css";\n\n Otherwise you\'ll need to include them some other way:\n\n <link rel="stylesheet" type="text/css" href="node_modules/@reach/'+e+'/styles.css" />\n\n For more information visit https://ui.reach.tech/styling.\n '))}}function wo(e,t){if(null!=e)if(function(e){return!(!e||"[object Function]"!={}.toString.call(e))}(e))e(t);else try{e.current=t}catch(n){throw new Error('Cannot assign value "'+t+'" to ref "'+e+'"')}}function Ho(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function Co(){}function Vo(e,t){return function(n){if(e&&e(n),!n.defaultPrevented)return t(n)}}process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV;var ko=function(e){var r=e.children,a=e.type,o=void 0===a?"reach-portal":a,i=t.useRef(null),s=t.useRef(null),l=t.useState()[1];return zo((function(){if(i.current){var e=i.current.ownerDocument;return s.current=null==e?void 0:e.createElement(o),e.body.appendChild(s.current),l({}),function(){s.current&&s.current.ownerDocument&&s.current.ownerDocument.body.removeChild(s.current)}}}),[o]),s.current?c.createPortal(r,s.current):n.createElement("span",{ref:i})};function Lo(){return Lo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lo.apply(this,arguments)}function Eo(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}"production"!==process.env.NODE_ENV&&(ko.displayName="Portal");var So={allowPinchZoom:ro.bool,dangerouslyBypassFocusLock:ro.bool,dangerouslyBypassScrollLock:ro.bool,initialFocusRef:function(){return null},onDismiss:ro.func},_o=t.forwardRef((function(e,r){var a=e.isOpen,o=void 0===a||a,c=Eo(e,["isOpen"]);return t.useEffect((function(){return Mo("dialog")}),[]),t.useEffect((function(){o?window.__REACH_DISABLE_TOOLTIPS=!0:window.requestAnimationFrame((function(){window.__REACH_DISABLE_TOOLTIPS=!1}))}),[o]),o?n.createElement(ko,{"data-reach-dialog-wrapper":""},n.createElement(Ao,Object.assign({ref:r},c))):null}));"production"!==process.env.NODE_ENV&&(_o.displayName="DialogOverlay",_o.propTypes=Lo({},So,{isOpen:ro.bool}));var Ao=t.forwardRef((function(e,r){var a=e.allowPinchZoom,o=e.dangerouslyBypassFocusLock,c=void 0!==o&&o,i=e.dangerouslyBypassScrollLock,h=void 0!==i&&i,u=e.initialFocusRef,p=e.onClick,d=e.onDismiss,m=void 0===d?Co:d,v=e.onKeyDown,f=e.onMouseDown,g=e.unstable_lockFocusAcrossFrames,b=void 0===g||g,z=Eo(e,["allowPinchZoom","dangerouslyBypassFocusLock","dangerouslyBypassScrollLock","initialFocusRef","onClick","onDismiss","onKeyDown","onMouseDown","unstable_lockFocusAcrossFrames"]),y=t.useRef(null),M=t.useRef(null),x=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.useMemo((function(){return n.every((function(e){return null==e}))?null:function(e){n.forEach((function(t){wo(t,e)}))}}),[].concat(n))}(M,r),w=t.useCallback((function(){u&&u.current&&u.current.focus()}),[u]);return t.useEffect((function(){return M.current?function(e){var t=[],n=[],r=(a=e,(a&&a.ownerDocument?a.ownerDocument:Ho()?document:null)||document);var a;if(!e)return"production"!==process.env.NODE_ENV&&console.warn("A ref has not yet been attached to a dialog node when attempting to call `createAriaHider`."),Co;return Array.prototype.forEach.call(r.querySelectorAll("body > *"),(function(r){var a,o;if(r!==(null===(a=e.parentNode)||void 0===a||null===(o=a.parentNode)||void 0===o?void 0:o.parentNode)){var c=r.getAttribute("aria-hidden");null!==c&&"false"!==c||(t.push(c),n.push(r),r.setAttribute("aria-hidden","true"))}})),function(){n.forEach((function(e,n){var r=t[n];null===r?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r)}))}}(M.current):void 0}),[]),n.createElement(s,{autoFocus:!0,returnFocus:!0,onActivation:w,disabled:c,crossFrame:b},n.createElement(l.RemoveScroll,{allowPinchZoom:a,enabled:!h},n.createElement("div",Object.assign({},z,{ref:x,"data-reach-dialog-overlay":"",onClick:Vo(p,(function(e){y.current===e.target&&(e.stopPropagation(),m(e))})),onKeyDown:Vo(v,(function(e){"Escape"===e.key&&(e.stopPropagation(),m(e))})),onMouseDown:Vo(f,(function(e){y.current=e.target}))}))))}));"production"!==process.env.NODE_ENV&&(_o.displayName="DialogOverlay",_o.propTypes=Lo({},So));var Do=t.forwardRef((function(e,t){var r=e.onClick,a=(e.onKeyDown,Eo(e,["onClick","onKeyDown"]));return n.createElement("div",Object.assign({"aria-modal":"true",role:"dialog",tabIndex:-1},a,{ref:t,"data-reach-dialog-content":"",onClick:Vo(r,(function(e){e.stopPropagation()}))}))}));"production"!==process.env.NODE_ENV&&(Do.displayName="DialogContent",Do.propTypes={"aria-label":Io,"aria-labelledby":Io});var Oo=t.forwardRef((function(e,t){var r=e.allowPinchZoom,a=void 0!==r&&r,o=e.initialFocusRef,c=e.isOpen,i=e.onDismiss,s=void 0===i?Co:i,l=Eo(e,["allowPinchZoom","initialFocusRef","isOpen","onDismiss"]);return n.createElement(_o,{allowPinchZoom:a,initialFocusRef:o,isOpen:c,onDismiss:s},n.createElement(Do,Object.assign({ref:t},l)))}));function Io(e,t,n,r,a){var o="\nSee https://www.w3.org/TR/wai-aria/#aria-label for details.";return e["aria-label"]||e["aria-labelledby"]?e["aria-label"]&&e["aria-labelledby"]?new Error("You provided both `aria-label` and `aria-labelledby` props to a <"+n+">. If the a label for this component is visible on the screen, that label's component should be given a unique ID prop, and that ID should be passed as the `aria-labelledby` prop into <"+n+">. If the label cannot be determined programmatically from the content of the element, an alternative label should be provided as the `aria-label` prop, which will be used as an `aria-label` on the HTML tag."+o):null!=e[t]&&"string"!=typeof e[t]?new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Expected `string`, received `"+(Array.isArray(a)?"array":typeof a)+"`."):null:new Error("A <"+n+"> must have either an `aria-label` or `aria-labelledby` prop.\n "+o)}function No(e){const{styles:n,in:r,timeout:a=150,transition:c=`all ${a}ms ease-in-out`,children:i,...s}=e;return t.createElement(o,Object.assign({appear:!0,unmountOnExit:!0,in:r,timeout:a},s),(e=>i((e=>({...n.init,transition:c,...n[e]}))(e))))}"production"!==process.env.NODE_ENV&&(Oo.displayName="Dialog",Oo.propTypes={isOpen:ro.bool,onDismiss:ro.func,"aria-label":Io,"aria-labelledby":Io});const Ro={init:{opacity:0},entered:{opacity:1},exiting:{opacity:0}};function Po(e){const{timeout:n=150,...r}=e;return t.createElement(No,Object.assign({transition:`all ${n}ms cubic-bezier(0.175, 0.885, 0.320, 1.175)`,styles:Ro,timeout:{enter:0,exit:n}},r))}function To(e){switch(e){case"bottom":return{maxWidth:"100vw",bottom:0,left:0,right:0};case"top":return{maxWidth:"100vw",top:0,left:0,right:0};case"left":return{height:"100vh",left:0,top:0};case"right":return{right:0,top:0,height:"100vh"}}}const Fo=(e,t)=>{let n="";return"left"!==e&&"right"!==e||(n="X"),"top"!==e&&"bottom"!==e||(n="Y"),`translate${n}(${t})`};function jo(e){const{placement:n="left",timeout:r=150,children:a,...o}=e,c=function(e){const t={bottom:"100%",top:"-100%",left:"-100%",right:"100%"};return{init:{transform:Fo(e,t[e])},entered:{transform:Fo(e,"0%")},exiting:{transform:Fo(e,t[e])}}}(n),i={position:"fixed",willChange:"transform",...To(n)};return t.createElement(No,Object.assign({styles:c,transition:`all ${r}ms cubic-bezier(0, 0, 0.2, 1)`,timeout:{enter:0,exit:r}},o),(e=>a({...i,...e})))}const Bo=e=>{const{initialOffset:n="20px",timeout:r=150,...a}=e,o=function(e){return{init:{opacity:0,transform:`translateY(${e})`},entered:{opacity:1,transform:"translateY(0px)"},exiting:{opacity:0,transform:`translateY(${e})`}}}(n);return t.createElement(No,Object.assign({styles:o,transition:`all ${r}ms cubic-bezier(0.4, 0.14, 0.3, 1)`,timeout:{enter:0,exit:r}},a))},Yo=n.forwardRef(((e,t)=>{const{isOpen:r,title:a="",confirmButtonText:o="",cancelButtonText:c="",contentStyles:i={},bodyStyles:s={},footerStyles:l={},children:h=null,confirmButtonDisabled:u=!1,cancelButtonDisabled:p=!1,width:d="auto",onConfirm:m=(()=>{}),onDismiss:v}=e;return n.createElement(Po,{timeout:300,in:r,unmountOnExit:!0},(e=>n.createElement(Wo,{style:e,isOpen:!0,onDismiss:v},n.createElement(Bo,{timeout:150,in:r,unmountOnExit:!0},(e=>n.createElement($o,{"aria-label":"confirmation-content",width:d,style:{...e,...i}},n.createElement(Uo,{style:s},a&&n.createElement("h4",null,a),h&&n.createElement("div",{className:"body-text"},h)),(c||o)&&n.createElement(Ko,{style:l},c&&n.createElement(po,{disabled:p,inline:!0,type:"secondary",onClick:v},c),o&&n.createElement(po,{disabled:u,inline:!0,onClick:m},o))))))))})),$o=tt(Do)`
235
+ width: ${({width:e})=>e};
236
+ min-width: 540px;
237
+ background: transparent;
238
238
  box-shadow: 0 2px 18px 0 rgba(18, 52, 77, 0.2);
239
239
  outline: none;
240
240
  `,Wo=tt(_o)`
@@ -250,9 +250,24 @@ object-assign
250
250
  align-items: baseline;
251
251
  background-color: ${e=>e.theme.colors.components.modal.overlayBackground};
252
252
  `,Uo=tt.div`
253
- padding: 18px 32px 32px 32px;
253
+ padding: 30px;
254
+ background: #fff;
255
+
256
+ h4 {
257
+ font-size: 16px;
258
+ font-weight: 500;
259
+ margin: 0;
260
+ color: #183247;
261
+ }
262
+
263
+ .body-text {
264
+ padding-top: 15px;
265
+ line-height: 1.4;
266
+ color: #6f7c87;
267
+ font-size: 14px;
268
+ }
254
269
  `,Ko=tt.div`
255
- ${({theme:{colors:{components:{confirmModal:e}}}})=>`\n justify-content: flex-end;\n display: flex;\n padding: 12px 16px 12px 16px;\n border-top: 1px solid ${e.border};\n background: ${e.background};\n border-radius: 4px;\n `}
270
+ ${({theme:{colors:{components:{confirmModal:e}}}})=>`\n justify-content: flex-end;\n display: flex;\n padding: 12px 16px 12px 16px;\n border-top: 1px solid ${e.border};\n background: ${e.background};\n border-radius: 0;\n border-bottom-right-radius: 7px;\n border-bottom-left-radius: 7px;\n `}
256
271
  `,Go=e=>{const[n,r]=t.useState((()=>"function"==typeof e?e():e)),a=t.useRef(e);t.useEffect((()=>{a.current=n}),[n]);return[n,e=>{const t="function"==typeof e?e(a.current):e;a.current=t,r(t)},a]},qo=tt(_o)`
257
272
  position: fixed;
258
273
  top: 0;
@@ -930,7 +945,7 @@ object-assign
930
945
  border: unset;
931
946
  resize: none;
932
947
  ${({theme:{colors:{components:{input:e}},typography:t,layout:{radius:n}},isErrored:r})=>`\n font-size : ${t.input.textarea.fontSize};\n line-height: ${t.input.textarea.lineHeight};\n font-weight: ${t.input.textarea.fontWeight};\n border-radius: ${n};\n &::placeholder {\n color : ${e.primary.hoverBorderColor};\n }\n`}
933
- `,Ys=t.forwardRef(((e,t)=>{const{inputStyle:r,style:a,disabled:o,className:c,...i}=e;return n.createElement(Fs,{isRequired:e.isRequired,inline:e.inline,isErrored:e.isErrored,style:a},e.label&&n.createElement("label",{className:"input-label"},e.label),n.createElement("div",{className:"input-container"},e.startLabel&&n.createElement("div",{className:"start-label"},e.startLabel),n.createElement("div",{className:`input-basic ${c||""}`},e.startAdornment&&n.createElement("div",{className:"start-adornment"},e.startAdornment),n.createElement(js,Object.assign({autoComplete:"off"},i,{ref:t,disabled:o,style:r})),e.showCount&&e.maxLength&&e.maxLength>0&&n.createElement("div",{className:"end-max-length"},`${e.value&&e.value.length||0}/${e.maxLength}`),e.endAdornment&&n.createElement("div",{className:"end-adornment"},e.endAdornment)),e.endLabel&&n.createElement("div",{className:"end-label"},e.endLabel)),e.isErrored&&e.errorText&&n.createElement("span",{className:"input-helper"},e.errorText))})),$s=t.forwardRef(((e,t)=>{const{inputStyle:r,style:a,className:o,...c}=e;return n.createElement(Fs,{isRequired:e.isRequired,inline:e.inline,isErrored:e.isErrored,style:a},e.label&&n.createElement("label",{className:"input-label"},e.label),n.createElement("div",{className:"input-container"},e.startLabel&&n.createElement("div",{className:"start-label"},e.startLabel),n.createElement("div",{className:`input-basic ${o||""}`},e.startAdornment&&n.createElement("div",{className:"start-adornment"},e.startAdornment),n.createElement(Bs,Object.assign({autoComplete:"off"},c,{ref:t,style:r})),e.endAdornment&&n.createElement("div",{className:"end-adornment"},e.endAdornment)),e.endLabel&&n.createElement("div",{className:"end-label"},e.endLabel)),e.isErrored&&e.errorText&&n.createElement("span",{className:"input-helper"},e.errorText))})),Ws=ot(Ys,Ts),Us=ot($s,Ts);function Ks(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var Gs=Ks()?t.useLayoutEffect:t.useEffect;var qs="production"===process.env.NODE_ENV;function Zs(e,t){if(!qs){if(e)return;var n="Warning: "+t;"undefined"!=typeof console&&console.warn(n);try{throw Error(n)}catch(e){}}}var Xs=function(e){var n,r=e.children,a=e.type,o=void 0===a?"reach-portal":a,i=e.containerRef,s=t.useRef(null),l=t.useRef(null),h=(n=t.useState(Object.create(null))[1],t.useCallback((function(){n(Object.create(null))}),[]));return"production"!==process.env.NODE_ENV&&t.useEffect((function(){null!=i&&("production"!==process.env.NODE_ENV&&Zs("object"==typeof i&&"current"in i,"@reach/portal: Invalid value passed to the `containerRef` of a `Portal`. The portal will be appended to the document body, but if you want to attach it to another DOM node you must pass a valid React ref object to `containerRef`."),"production"!==process.env.NODE_ENV&&Zs(!i||null!=i.current,"@reach/portal: A ref was passed to the `containerRef` prop of a `Portal`, but no DOM node was attached to it. Be sure to pass the ref to a DOM component.\n\nIf you are forwarding the ref from another component, be sure to use the React.forwardRef API. See https://reactjs.org/docs/forwarding-refs.html."))}),[i]),Gs((function(){if(s.current){var e=s.current.ownerDocument,t=(null==i?void 0:i.current)||e.body;return l.current=null==e?void 0:e.createElement(o),t.appendChild(l.current),h(),function(){l.current&&t&&t.removeChild(l.current)}}}),[o,h,i]),l.current?c.createPortal(r,l.current):t.createElement("span",{ref:s})};"production"!==process.env.NODE_ENV&&(Xs.displayName="Portal");var Js,Qs=["bottom","height","left","right","top","width"],el=new Map,tl=function e(){var t=[];el.forEach((function(e,n){var r=n.getBoundingClientRect();(function(e,t){return void 0===e&&(e={}),void 0===t&&(t={}),Qs.some((function(n){return e[n]!==t[n]}))})(r,e.rect)&&(e.rect=r,t.push(e))})),t.forEach((function(e){e.callbacks.forEach((function(t){return t(e.rect)}))})),Js=window.requestAnimationFrame(e)};function nl(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var rl=nl()?t.useLayoutEffect:t.useEffect;function al(e){return"boolean"==typeof e}function ol(e){return!(!e||"[object Function]"!={}.toString.call(e))}var cl=function(e){var n=e.onChange,r=e.observe,a=void 0===r||r,o=e.children,c=t.useRef(null);return o({ref:c,rect:il(c,{observe:a,onChange:n})})};function il(e,n,r){var a,o,c;al(n)?a=n:(a=null==(c=null==n?void 0:n.observe)||c,o=null==n?void 0:n.onChange);ol(r)&&(o=r),"production"!==process.env.NODE_ENV&&(t.useEffect((function(){"production"!==process.env.NODE_ENV&&Zs(!al(n),"Passing `observe` as the second argument to `useRect` is deprecated and will be removed in a future version of Reach UI. Instead, you can pass an object of options with an `observe` property as the second argument (`useRect(ref, { observe })`).\nSee https://reach.tech/rect#userect-observe")}),[n]),t.useEffect((function(){"production"!==process.env.NODE_ENV&&Zs(!ol(r),"Passing `onChange` as the third argument to `useRect` is deprecated and will be removed in a future version of Reach UI. Instead, you can pass an object of options with an `onChange` property as the second argument (`useRect(ref, { onChange })`).\nSee https://reach.tech/rect#userect-onchange")}),[r]));var i=t.useState(e.current),s=i[0],l=i[1],h=t.useRef(!1),u=t.useRef(!1),p=t.useState(null),d=p[0],m=p[1],v=t.useRef(o);return rl((function(){v.current=o,e.current!==s&&l(e.current)})),rl((function(){s&&!h.current&&(h.current=!0,m(s.getBoundingClientRect()))}),[s]),rl((function(){if(a){var t=s;if(u.current||(u.current=!0,t=e.current),t){var n,r,o=(n=t,r=function(e){null==v.current||v.current(e),m(e)},{observe:function(){var e=0===el.size;el.has(n)?el.get(n).callbacks.push(r):el.set(n,{rect:void 0,hasRectChanged:!1,callbacks:[r]}),e&&tl()},unobserve:function(){var e=el.get(n);if(e){var t=e.callbacks.indexOf(r);t>=0&&e.callbacks.splice(t,1),e.callbacks.length||el.delete(n),el.size||cancelAnimationFrame(Js)}}});return o.observe(),function(){o.unobserve()}}"production"!==process.env.NODE_ENV&&console.warn("You need to place the ref")}}),[a,s,e]),d}function sl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ll(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return sl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?sl(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function hl(e,t){if(null!=e)if(function(e){return!(!e||"[object Function]"!={}.toString.call(e))}(e))e(t);else try{e.current=t}catch(n){throw new Error('Cannot assign value "'+t+'" to ref "'+e+'"')}}"production"!==process.env.NODE_ENV&&(cl.displayName="Rect",cl.propTypes={children:ro.func.isRequired,observe:ro.bool,onChange:ro.func});var ul=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],pl=ul.join(","),dl="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;function ml(e,t){t=t||{};var n,r,a,o=[],c=[],i=e.querySelectorAll(pl);for(t.includeContainer&&dl.call(e,pl)&&(i=Array.prototype.slice.apply(i)).unshift(e),n=0;n<i.length;n++)vl(r=i[n])&&(0===(a=bl(r))?o.push(r):c.push({documentOrder:n,tabIndex:a,node:r}));return c.sort(zl).map((function(e){return e.node})).concat(o)}function vl(e){return!(!fl(e)||function(e){return function(e){return yl(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t=function(e){for(var t=0;t<e.length;t++)if(e[t].checked)return e[t]}(e.ownerDocument.querySelectorAll('input[type="radio"][name="'+e.name+'"]'));return!t||t===e}(e)}(e)||bl(e)<0)}function fl(e){return!(e.disabled||function(e){return yl(e)&&"hidden"===e.type}(e)||function(e){return null===e.offsetParent||"hidden"===getComputedStyle(e).visibility}(e))}ml.isTabbable=function(e){if(!e)throw new Error("No node provided");return!1!==dl.call(e,pl)&&vl(e)},ml.isFocusable=function(e){if(!e)throw new Error("No node provided");return!1!==dl.call(e,gl)&&fl(e)};var gl=ul.concat("iframe").join(",");function bl(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?function(e){return"true"===e.contentEditable}(e)?0:e.tabIndex:t}function zl(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex}function yl(e){return"INPUT"===e.tagName}var Ml=ml;function xl(){return xl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xl.apply(this,arguments)}var wl=["as","targetRef","position","unstable_observableRefs"],Hl=t.forwardRef((function(e,n){return t.createElement(Xs,null,t.createElement(Cl,xl({ref:n},e)))}));"production"!==process.env.NODE_ENV&&(Hl.displayName="Popover");var Cl=t.forwardRef((function(e,n){var r=e.as,a=void 0===r?"div":r,o=e.targetRef,c=e.position,i=void 0===c?Ll:c,s=e.unstable_observableRefs,l=void 0===s?[]:s,h=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,wl),u=t.useRef(null),p=il(u,{observe:!h.hidden}),d=il(o,{observe:!h.hidden}),m=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.useCallback((function(e){for(var t,r=ll(n);!(t=r()).done;)hl(t.value,e)}),n)}(u,n);return function(e,n){var r=(a=e.current,Ks()?a?a.ownerDocument:document:null);var a;function o(e){"Tab"===e.key&&n.current&&0===Ml(n.current).length||("Tab"===e.key&&e.shiftKey?u(e)?p(e):d(e)?m(e):f(e)&&b():"Tab"===e.key&&(i()?s(e):l()?h(e):v(e)&&b()))}function c(){var t=Ml(r),a=t&&e.current?t.indexOf(e.current):-1,o=t&&t[a+1];return(!n.current||!n.current.contains(o||null))&&o}function i(){return!!e.current&&e.current===r.activeElement}function s(e){var t=n.current&&Ml(n.current);t&&t[0]&&(e.preventDefault(),t[0].focus())}function l(){if(!!n.current&&n.current.contains(r.activeElement||null)){var e=n.current&&Ml(n.current);return Boolean(e&&e[e.length-1]===r.activeElement)}return!1}function h(e){var t=c();t&&(e.preventDefault(),t.focus())}function u(e){if(e.shiftKey){var t=c();return e.target===t}}function p(e){var t=n.current&&Ml(n.current),r=t&&t[t.length-1];r&&(e.preventDefault(),r.focus())}function d(e){var t=n.current&&Ml(n.current);return!!t&&(0!==t.length&&e.target===t[0])}function m(t){var n;t.preventDefault(),null==(n=e.current)||n.focus()}function v(e){var t=n.current?Ml(r).filter((function(e){return!n.current.contains(e)})):null;return!!t&&e.target===t[t.length-1]}function f(e){return e.target===Ml(r)[0]}t.useEffect((function(){return r.addEventListener("keydown",o),function(){r.removeEventListener("keydown",o)}}),[]);var g=[];function b(){var e=n.current&&Ml(n.current);e&&(e.forEach((function(e){g.push([e,e.tabIndex]),e.tabIndex=-1})),r.addEventListener("focusin",z))}function z(){r.removeEventListener("focusin",z),g.forEach((function(e){var t=e[0],n=e[1];t.tabIndex=n}))}}(o,u),t.createElement(a,xl({"data-reach-popover":"",ref:m},h,{style:xl({position:"absolute"},Vl.apply(void 0,[i,d,p].concat(l)),h.style)}))}));function Vl(e,t,n){for(var r=arguments.length,a=new Array(r>3?r-3:0),o=3;o<r;o++)a[o-3]=arguments[o];return n?e.apply(void 0,[t,n].concat(a.map((function(e){return e.current})))):{visibility:"hidden"}}function kl(e,t,n){return{top:n?e.top-t.height+window.pageYOffset+"px":e.top+e.height+window.pageYOffset+"px"}}"production"!==process.env.NODE_ENV&&(Cl.displayName="PopoverImpl");var Ll=function(e,t){if(!e||!t)return{};var n=Sl(e,t),r=n.directionRight,a=n.directionUp;return xl({left:r?e.right-t.width+window.pageXOffset+"px":e.left+window.pageXOffset+"px"},kl(e,t,a))},El=function(e,t){if(!e||!t)return{};var n=Sl(e,t).directionUp;return xl({width:e.width,left:e.left},kl(e,t,n))};function Sl(e,t,n,r){void 0===n&&(n=0),void 0===r&&(r=0);var a={top:e.top-t.height<0,right:window.innerWidth<e.left+t.width-n,bottom:window.innerHeight<e.bottom+t.height-r,left:e.left+e.width-t.width<0};return{directionRight:a.right&&!a.left,directionLeft:a.left&&!a.right,directionUp:a.bottom&&!a.top,directionDown:a.top&&!a.bottom}}const _l={small:16,medium:32,big:40},Al=at`
948
+ `,Ys=t.forwardRef(((e,t)=>{const{inputStyle:r,style:a,disabled:o,className:c,...i}=e;return n.createElement(Fs,{isRequired:e.isRequired,inline:e.inline,isErrored:e.isErrored,style:a},e.label&&n.createElement("label",{className:"input-label"},e.label),n.createElement("div",{className:"input-container"},e.startLabel&&n.createElement("div",{className:"start-label"},e.startLabel),n.createElement("div",{className:`input-basic ${c||""}`},e.startAdornment&&n.createElement("div",{className:"start-adornment"},e.startAdornment),n.createElement(js,Object.assign({autoComplete:"off"},i,{ref:t,disabled:o,style:r})),e.showCount&&e.maxLength&&e.maxLength>0&&n.createElement("div",{className:"end-max-length"},`${e.value&&e.value.length||0}/${e.maxLength}`),e.endAdornment&&n.createElement("div",{className:"end-adornment"},e.endAdornment)),e.endLabel&&n.createElement("div",{className:"end-label"},e.endLabel)),e.isErrored&&e.errorText&&n.createElement("span",{className:"input-helper"},e.errorText))})),$s=t.forwardRef(((e,t)=>{const{inputStyle:r,style:a,className:o,...c}=e;return n.createElement(Fs,{isRequired:e.isRequired,inline:e.inline,isErrored:e.isErrored,style:a},e.label&&n.createElement("label",{className:"input-label"},e.label),n.createElement("div",{className:"input-container"},e.startLabel&&n.createElement("div",{className:"start-label"},e.startLabel),n.createElement("div",{className:`input-basic ${o||""}`,style:e.showCount?{flexDirection:"column"}:{}},e.startAdornment&&n.createElement("div",{className:"start-adornment"},e.startAdornment),n.createElement(Bs,Object.assign({autoComplete:"off"},c,{ref:t,style:e.showCount?{width:"100%",...r}:{...r}})),e.showCount&&e.maxLength&&e.maxLength>0&&n.createElement("div",{className:"end-max-length",style:{alignSelf:"flex-end",padding:"4px"}},`${e.value&&e.value.length||0}/${e.maxLength}`),e.endAdornment&&n.createElement("div",{className:"end-adornment"},e.endAdornment)),e.endLabel&&n.createElement("div",{className:"end-label"},e.endLabel)),e.isErrored&&e.errorText&&n.createElement("span",{className:"input-helper"},e.errorText))})),Ws=ot(Ys,Ts),Us=ot($s,Ts);function Ks(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var Gs=Ks()?t.useLayoutEffect:t.useEffect;var qs="production"===process.env.NODE_ENV;function Zs(e,t){if(!qs){if(e)return;var n="Warning: "+t;"undefined"!=typeof console&&console.warn(n);try{throw Error(n)}catch(e){}}}var Xs=function(e){var n,r=e.children,a=e.type,o=void 0===a?"reach-portal":a,i=e.containerRef,s=t.useRef(null),l=t.useRef(null),h=(n=t.useState(Object.create(null))[1],t.useCallback((function(){n(Object.create(null))}),[]));return"production"!==process.env.NODE_ENV&&t.useEffect((function(){null!=i&&("production"!==process.env.NODE_ENV&&Zs("object"==typeof i&&"current"in i,"@reach/portal: Invalid value passed to the `containerRef` of a `Portal`. The portal will be appended to the document body, but if you want to attach it to another DOM node you must pass a valid React ref object to `containerRef`."),"production"!==process.env.NODE_ENV&&Zs(!i||null!=i.current,"@reach/portal: A ref was passed to the `containerRef` prop of a `Portal`, but no DOM node was attached to it. Be sure to pass the ref to a DOM component.\n\nIf you are forwarding the ref from another component, be sure to use the React.forwardRef API. See https://reactjs.org/docs/forwarding-refs.html."))}),[i]),Gs((function(){if(s.current){var e=s.current.ownerDocument,t=(null==i?void 0:i.current)||e.body;return l.current=null==e?void 0:e.createElement(o),t.appendChild(l.current),h(),function(){l.current&&t&&t.removeChild(l.current)}}}),[o,h,i]),l.current?c.createPortal(r,l.current):t.createElement("span",{ref:s})};"production"!==process.env.NODE_ENV&&(Xs.displayName="Portal");var Js,Qs=["bottom","height","left","right","top","width"],el=new Map,tl=function e(){var t=[];el.forEach((function(e,n){var r=n.getBoundingClientRect();(function(e,t){return void 0===e&&(e={}),void 0===t&&(t={}),Qs.some((function(n){return e[n]!==t[n]}))})(r,e.rect)&&(e.rect=r,t.push(e))})),t.forEach((function(e){e.callbacks.forEach((function(t){return t(e.rect)}))})),Js=window.requestAnimationFrame(e)};function nl(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var rl=nl()?t.useLayoutEffect:t.useEffect;function al(e){return"boolean"==typeof e}function ol(e){return!(!e||"[object Function]"!={}.toString.call(e))}var cl=function(e){var n=e.onChange,r=e.observe,a=void 0===r||r,o=e.children,c=t.useRef(null);return o({ref:c,rect:il(c,{observe:a,onChange:n})})};function il(e,n,r){var a,o,c;al(n)?a=n:(a=null==(c=null==n?void 0:n.observe)||c,o=null==n?void 0:n.onChange);ol(r)&&(o=r),"production"!==process.env.NODE_ENV&&(t.useEffect((function(){"production"!==process.env.NODE_ENV&&Zs(!al(n),"Passing `observe` as the second argument to `useRect` is deprecated and will be removed in a future version of Reach UI. Instead, you can pass an object of options with an `observe` property as the second argument (`useRect(ref, { observe })`).\nSee https://reach.tech/rect#userect-observe")}),[n]),t.useEffect((function(){"production"!==process.env.NODE_ENV&&Zs(!ol(r),"Passing `onChange` as the third argument to `useRect` is deprecated and will be removed in a future version of Reach UI. Instead, you can pass an object of options with an `onChange` property as the second argument (`useRect(ref, { onChange })`).\nSee https://reach.tech/rect#userect-onchange")}),[r]));var i=t.useState(e.current),s=i[0],l=i[1],h=t.useRef(!1),u=t.useRef(!1),p=t.useState(null),d=p[0],m=p[1],v=t.useRef(o);return rl((function(){v.current=o,e.current!==s&&l(e.current)})),rl((function(){s&&!h.current&&(h.current=!0,m(s.getBoundingClientRect()))}),[s]),rl((function(){if(a){var t=s;if(u.current||(u.current=!0,t=e.current),t){var n,r,o=(n=t,r=function(e){null==v.current||v.current(e),m(e)},{observe:function(){var e=0===el.size;el.has(n)?el.get(n).callbacks.push(r):el.set(n,{rect:void 0,hasRectChanged:!1,callbacks:[r]}),e&&tl()},unobserve:function(){var e=el.get(n);if(e){var t=e.callbacks.indexOf(r);t>=0&&e.callbacks.splice(t,1),e.callbacks.length||el.delete(n),el.size||cancelAnimationFrame(Js)}}});return o.observe(),function(){o.unobserve()}}"production"!==process.env.NODE_ENV&&console.warn("You need to place the ref")}}),[a,s,e]),d}function sl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ll(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return sl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?sl(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function hl(e,t){if(null!=e)if(function(e){return!(!e||"[object Function]"!={}.toString.call(e))}(e))e(t);else try{e.current=t}catch(n){throw new Error('Cannot assign value "'+t+'" to ref "'+e+'"')}}"production"!==process.env.NODE_ENV&&(cl.displayName="Rect",cl.propTypes={children:ro.func.isRequired,observe:ro.bool,onChange:ro.func});var ul=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],pl=ul.join(","),dl="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;function ml(e,t){t=t||{};var n,r,a,o=[],c=[],i=e.querySelectorAll(pl);for(t.includeContainer&&dl.call(e,pl)&&(i=Array.prototype.slice.apply(i)).unshift(e),n=0;n<i.length;n++)vl(r=i[n])&&(0===(a=bl(r))?o.push(r):c.push({documentOrder:n,tabIndex:a,node:r}));return c.sort(zl).map((function(e){return e.node})).concat(o)}function vl(e){return!(!fl(e)||function(e){return function(e){return yl(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t=function(e){for(var t=0;t<e.length;t++)if(e[t].checked)return e[t]}(e.ownerDocument.querySelectorAll('input[type="radio"][name="'+e.name+'"]'));return!t||t===e}(e)}(e)||bl(e)<0)}function fl(e){return!(e.disabled||function(e){return yl(e)&&"hidden"===e.type}(e)||function(e){return null===e.offsetParent||"hidden"===getComputedStyle(e).visibility}(e))}ml.isTabbable=function(e){if(!e)throw new Error("No node provided");return!1!==dl.call(e,pl)&&vl(e)},ml.isFocusable=function(e){if(!e)throw new Error("No node provided");return!1!==dl.call(e,gl)&&fl(e)};var gl=ul.concat("iframe").join(",");function bl(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?function(e){return"true"===e.contentEditable}(e)?0:e.tabIndex:t}function zl(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex}function yl(e){return"INPUT"===e.tagName}var Ml=ml;function xl(){return xl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xl.apply(this,arguments)}var wl=["as","targetRef","position","unstable_observableRefs"],Hl=t.forwardRef((function(e,n){return t.createElement(Xs,null,t.createElement(Cl,xl({ref:n},e)))}));"production"!==process.env.NODE_ENV&&(Hl.displayName="Popover");var Cl=t.forwardRef((function(e,n){var r=e.as,a=void 0===r?"div":r,o=e.targetRef,c=e.position,i=void 0===c?Ll:c,s=e.unstable_observableRefs,l=void 0===s?[]:s,h=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,wl),u=t.useRef(null),p=il(u,{observe:!h.hidden}),d=il(o,{observe:!h.hidden}),m=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.useCallback((function(e){for(var t,r=ll(n);!(t=r()).done;)hl(t.value,e)}),n)}(u,n);return function(e,n){var r=(a=e.current,Ks()?a?a.ownerDocument:document:null);var a;function o(e){"Tab"===e.key&&n.current&&0===Ml(n.current).length||("Tab"===e.key&&e.shiftKey?u(e)?p(e):d(e)?m(e):f(e)&&b():"Tab"===e.key&&(i()?s(e):l()?h(e):v(e)&&b()))}function c(){var t=Ml(r),a=t&&e.current?t.indexOf(e.current):-1,o=t&&t[a+1];return(!n.current||!n.current.contains(o||null))&&o}function i(){return!!e.current&&e.current===r.activeElement}function s(e){var t=n.current&&Ml(n.current);t&&t[0]&&(e.preventDefault(),t[0].focus())}function l(){if(!!n.current&&n.current.contains(r.activeElement||null)){var e=n.current&&Ml(n.current);return Boolean(e&&e[e.length-1]===r.activeElement)}return!1}function h(e){var t=c();t&&(e.preventDefault(),t.focus())}function u(e){if(e.shiftKey){var t=c();return e.target===t}}function p(e){var t=n.current&&Ml(n.current),r=t&&t[t.length-1];r&&(e.preventDefault(),r.focus())}function d(e){var t=n.current&&Ml(n.current);return!!t&&(0!==t.length&&e.target===t[0])}function m(t){var n;t.preventDefault(),null==(n=e.current)||n.focus()}function v(e){var t=n.current?Ml(r).filter((function(e){return!n.current.contains(e)})):null;return!!t&&e.target===t[t.length-1]}function f(e){return e.target===Ml(r)[0]}t.useEffect((function(){return r.addEventListener("keydown",o),function(){r.removeEventListener("keydown",o)}}),[]);var g=[];function b(){var e=n.current&&Ml(n.current);e&&(e.forEach((function(e){g.push([e,e.tabIndex]),e.tabIndex=-1})),r.addEventListener("focusin",z))}function z(){r.removeEventListener("focusin",z),g.forEach((function(e){var t=e[0],n=e[1];t.tabIndex=n}))}}(o,u),t.createElement(a,xl({"data-reach-popover":"",ref:m},h,{style:xl({position:"absolute"},Vl.apply(void 0,[i,d,p].concat(l)),h.style)}))}));function Vl(e,t,n){for(var r=arguments.length,a=new Array(r>3?r-3:0),o=3;o<r;o++)a[o-3]=arguments[o];return n?e.apply(void 0,[t,n].concat(a.map((function(e){return e.current})))):{visibility:"hidden"}}function kl(e,t,n){return{top:n?e.top-t.height+window.pageYOffset+"px":e.top+e.height+window.pageYOffset+"px"}}"production"!==process.env.NODE_ENV&&(Cl.displayName="PopoverImpl");var Ll=function(e,t){if(!e||!t)return{};var n=Sl(e,t),r=n.directionRight,a=n.directionUp;return xl({left:r?e.right-t.width+window.pageXOffset+"px":e.left+window.pageXOffset+"px"},kl(e,t,a))},El=function(e,t){if(!e||!t)return{};var n=Sl(e,t).directionUp;return xl({width:e.width,left:e.left},kl(e,t,n))};function Sl(e,t,n,r){void 0===n&&(n=0),void 0===r&&(r=0);var a={top:e.top-t.height<0,right:window.innerWidth<e.left+t.width-n,bottom:window.innerHeight<e.bottom+t.height-r,left:e.left+e.width-t.width<0};return{directionRight:a.right&&!a.left,directionLeft:a.left&&!a.right,directionUp:a.bottom&&!a.top,directionDown:a.top&&!a.bottom}}const _l={small:16,medium:32,big:40},Al=at`
934
949
  to { transform: rotate(360deg); }
935
950
  `,Dl={small:3,medium:3,big:6},Ol=tt.div`
936
951
  position: relative;
@@ -1455,7 +1470,7 @@ to {right : 10px}
1455
1470
  `,Mv=tt("button")`
1456
1471
  ${({theme:{colors:{components:{toggle:e}}},size:t,on:n,disabled:r})=>`\n width: ${"sm"===t?"28px":"36px"};\n height: ${"sm"===t?"12px":"16px"};\n background-color: ${n?e.backgroundColorOn:e.backgroundColorOff};\n border-radius: 34px;\n position: relative;\n border: none;\n ${r?"opacity : 0.4 ;\n cursor : not-allowed; ":`&:hover {\n span {\n box-shadow: ${n?"rgba(44, 91, 197, 0.5)":"rgba(82, 84, 86, 0.4)"} 0px 0px 0px 3px;\n }\n }`};\n\n span {\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all ease-in 0.2s;\n bottom: -2px;\n position: absolute;\n border-radius: 50%;\n background-color: #fff;\n border: 1px solid ${e.borderColor};\n ${"sm"===t?`left: ${n?"12px":"0px"};\n width : 16px;\n height : 16px;`:`left: ${n?"16px":"-2px"};\n width : 20px;\n height : 20px;`};\n }\n`}
1457
1472
  `,xv=ot((e=>n.createElement(Mv,Object.assign({type:"button"},e,{onClick:t=>{t.detail&&e.handleChange()},onKeyPress:t=>{" "===t.key&&e.handleChange()}}),n.createElement("span",null,e.hasIcon?n.createElement(Vn,{glyph:e.on?"check":"close",size:"md"!==e.size?"7":"9",viewBox:e.on?"0 0 8 8":"0 0 7 7"}):null))),{on:!1,size:"md",disabled:!1,hasIcon:!0}),wv=n.createContext({toasts:[],toastHovering:!1,updateToasts:e=>e,updateToastHoverStatus:()=>{}}),Hv=()=>n.useContext(wv),Cv=()=>{const[e,n]=t.useState(!1);return t.useEffect((()=>{n(Boolean("undefined"!=typeof window&&window.document&&window.document.createElement))}),[]),{isBrowser:e,isServer:!e}},Vv=()=>Math.random().toString(32).slice(2,10),kv=e=>{const t=document.createElement("div");return t.setAttribute("id",e),t},Lv=tt.div`
1458
- ${({theme:e,reverseIndex:t,type:n,translate:r,bgColor:a,color:o})=>`\n .outline {\n border-radius: 5px 5px 0 0;\n background-color: ${"success"===n?e.palette.jungle:"error"===n?e.palette.ferrari:"info"===n?e.palette.azure:e.palette.sunrise};\n position: absolute;\n top: -4px;\n left: 0px;\n width: 100%;\n height: 4px;\n border: none;\n }\n\n .close-button {\n border: none;\n cursor: pointer;\n position: absolute;\n right: 11px;\n top: 9px;\n background-color: inherit;\n padding: 0;\n }\n\n .icon-wrapper {\n position: relative;\n top: 6px;\n }\n .toast-content {\n display: flex;\n align-items: center;\n }\n\n .toast {\n width: 420px;\n max-width: 90vw;\n max-height: 75px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n color: ${e.palette.foreground};\n background-color: ${a};\n color: ${o};\n border: 0;\n border-radius: ${e.layout.radius};\n padding: 12px ${e.layout.gap} 20px;\n position: absolute;\n bottom: 0;\n right: 0;\n opacity: ${t>4?0:1};\n box-shadow: ${t>4?"none":"0 5px 10px rgba(0, 0, 0, 0.11)"};\n transform: translate3d(0, -100%, 0px) scale(1);\n transition: transform 400ms ease 0ms, visibility 200ms ease 0ms, opacity 200ms ease 0ms;\n }\n .toast.visible {\n opacity: 1;\n transform: ${r};\n }\n .toast.hide {\n opacity: 0;\n visibility: hidden;\n pointer-events: none;\n }\n .message {\n align-items: center;\n height: 100%;\n transition: opacity 0.4s ease;\n font-size: 0.875rem;\n display: -webkit-box;\n word-break: break-all;\n padding-right: ${e.layout.gapHalf};\n overflow: hidden;\n max-height: 100%;\n text-overflow: ellipsis;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n line-height: 1.1rem;\n }\n .toast :global(button + button) {\n margin-left: ${e.layout.gapQuarter};\n }\n \n `}
1473
+ ${({theme:e,reverseIndex:t,type:n,translate:r,bgColor:a,color:o})=>`\n .outline {\n border-radius: 5px 5px 0 0;\n background-color: ${"success"===n?e.palette.jungle:"error"===n?e.palette.ferrari:"info"===n?e.palette.azure:e.palette.sunrise};\n position: absolute;\n top: -4px;\n left: 0px;\n width: 100%;\n height: 4px;\n border: none;\n }\n\n .close-button {\n border: none;\n cursor: pointer;\n position: absolute;\n right: 11px;\n top: 9px;\n background-color: inherit;\n padding: 0;\n }\n\n .icon-wrapper {\n position: relative;\n top: 6px;\n }\n .toast-content {\n display: flex;\n align-items: center;\n }\n\n .toast {\n width: 420px;\n max-width: 90vw;\n max-height: 75px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n color: ${e.palette.foreground};\n background-color: ${a};\n color: ${o};\n border: 0;\n border-radius: ${e.layout.radius};\n padding: 12px ${e.layout.gap} 20px;\n position: absolute;\n bottom: 0;\n right: 0;\n opacity: ${t>4?0:1};\n box-shadow: ${t>4?"none":"0 5px 10px rgba(0, 0, 0, 0.11)"};\n transform: translate3d(0, -100%, 0px) scale(1);\n transition: transform 400ms ease 0ms, visibility 200ms ease 0ms, opacity 200ms ease 0ms;\n }\n .toast.visible {\n opacity: 1;\n transform: ${r};\n }\n .toast.hide {\n opacity: 0;\n visibility: hidden;\n pointer-events: none;\n }\n .message {\n align-items: center;\n height: 100%;\n transition: opacity 0.4s ease;\n font-size: 0.875rem;\n display: -webkit-box;\n word-break: break-word;\n padding-right: ${e.layout.gapHalf};\n overflow: hidden;\n max-height: 100%;\n text-overflow: ellipsis;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n line-height: 1.1rem;\n }\n .toast :global(button + button) {\n margin-left: ${e.layout.gapQuarter};\n }\n \n `}
1459
1474
  `,Ev=(e,t)=>e&&e.length?e.map(((e,r)=>n.createElement(po,{inline:!0,size:"mini",type:e.passive?"primary":"secondary",key:`action-${r}`,onClick:n=>((e,n)=>{n&&n(e,t)})(n,e.handler)},e.name))):null,Sv=n.memo((({index:e,total:r,toast:a,onHover:o})=>{const[c,i]=t.useState(!1),[s,l]=t.useState(!1),h=t.useMemo((()=>r-(e+1)),[r,e]),u=t.useMemo((()=>h>=4?`translate3d(0, -75px, -${h}px) scale(.7)`:o?`translate3d(0, ${75*h}px, -${h}px) scale(${1===r?1:.98205})`:`translate3d(0, calc(${`100% + -75px + ${20*h}px`}), -${h}px) scale(${1-.05*h})`),[o,e,r,h]);return t.useEffect((()=>{const e=setTimeout((()=>{i(!0),clearTimeout(e)}),10);return()=>clearTimeout(e)}),[]),t.useEffect((()=>{let e=!1;if(!(h>2||a.willBeDestroy)||e)return;const t=setTimeout((()=>{l(!0),clearTimeout(t)}),150);return()=>{e=!0,clearTimeout(t)}}),[h,a.willBeDestroy]),h>10?null:n.createElement(Lv,{color:"#222",bgColor:"#fff",type:a.type,translate:u,reverseIndex:h},n.createElement("div",{key:`${a.id}-${e}`,className:`toast ${c?"visible":""} ${s?"hide":""}`},n.createElement("div",{className:"outline"}),n.createElement("button",{className:"close-button",onClick:()=>a.cancel()},n.createElement(Vn,{glyph:"close",size:"10",viewBox:"0 0 7 7"})),n.createElement("div",{className:"toast-content"},n.createElement("div",{className:"icon-wrapper"},a.customIcon?a.customIcon:n.createElement(Vn,{glyph:`toast-${a.type}`,size:"32",viewBox:"-4 -5 32 32"})),n.createElement("div",null,n.createElement("div",{className:"message"},a.text),n.createElement("div",{className:"action"},Ev(a.actions,a.cancel))))))})),_v=tt.div`
1460
1475
  .toast-container {
1461
1476
  position: fixed;