diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..3ceab64 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +registry=https://npm.pkg.github.com/rodi01 \ No newline at end of file diff --git a/Rename-It.sketchplugin/Contents/Resources/resources_views_components_GlobalStyles.js b/Rename-It.sketchplugin/Contents/Resources/resources_views_components_GlobalStyles.js index c2b95bc..01dba2c 100644 --- a/Rename-It.sketchplugin/Contents/Resources/resources_views_components_GlobalStyles.js +++ b/Rename-It.sketchplugin/Contents/Resources/resources_views_components_GlobalStyles.js @@ -1 +1,5671 @@ -!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=8)}([function(e,t,r){"use strict";e.exports=r(11)},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return ie}));var n=r(2),o=r(0),i=r.n(o),a=(r(5),r(6)),c=r(7),s=r(4),u=r(3),l=r.n(u);function f(){return(f=Object.assign||function(e){for(var t=1;t1?t-1:0),n=1;n0?" Additional arguments: "+r.join(", "):""))}var x=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){for(var t=e.childNodes,r=t.length;r>=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(v))return n}}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(v,"active"),n.setAttribute("data-styled-version","5.1.0");var a=S();return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},A=function(){function e(e){var t=this.element=x(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r=0){var r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||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.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)(o<<=1)<0&&C(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i=T&&(T=t+1),R.set(e,t),$.set(t,e)},z="style["+v+'][data-styled-version="5.1.0"]',N=new RegExp("^"+v+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),M=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i0&&(u+=e+",")})),n+=""+c+s+'{content:"'+u+'"}/*!sc*/\n'}}}return n}(this)},e}(),G=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},H=function(e){return G(5381,e)};var U=/^\s*\/\/.*$/gm;function q(e){var t,r,n,o=void 0===e?m:e,i=o.options,c=void 0===i?m:i,s=o.plugins,u=void 0===s?h:s,l=new a.a(c),f=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(r){}}return function(r,n,o,i,a,c,s,u,l,f){switch(r){case 1:if(0===l&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===u)return n+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(o[0]+n),"";default:return n+(0===f?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}((function(e){f.push(e)})),d=function(e,n,o){return n>0&&-1!==o.slice(0,n).indexOf(r)&&o.slice(n-r.length,n)!==r?"."+t:e};function g(e,o,i,a){void 0===a&&(a="&");var c=e.replace(U,""),s=o&&i?i+" "+o+" { "+c+" }":c;return t=a,r=o,n=new RegExp("\\"+r+"\\b","g"),l(i||!o?"":o,s)}return l.use([].concat(u,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(r)>0&&(o[0]=o[0].replace(n,d))},p,function(e){if(-2===e){var t=f;return f=[],t}}])),g.hash=u.length?u.reduce((function(e,t){return t.name||C(15),G(e,t.name)}),5381).toString():"",g}var V=i.a.createContext(),W=(V.Consumer,i.a.createContext()),Y=(W.Consumer,new B),X=q();function Z(){return Object(o.useContext)(V)||Y}function K(){return Object(o.useContext)(W)||X}var J=function(){function e(e,t){var r=this;this.inject=function(e){e.hasNameForId(r.id,r.name)||e.insertRules(r.id,r.name,X.apply(void 0,r.stringifyArgs))},this.toString=function(){return C(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.stringifyArgs=t}return e.prototype.getName=function(){return this.name},e}(),Q=/([A-Z])/g,ee=/^ms-/;function te(e){return e.replace(Q,"-$1").toLowerCase().replace(ee,"-ms-")}var re=function(e){return null==e||!1===e||""===e},ne=function e(t,r){var n=[];return Object.keys(t).forEach((function(r){if(!re(t[r])){if(d(t[r]))return n.push.apply(n,e(t[r],r)),n;if(g(t[r]))return n.push(te(r)+":",t[r],";"),n;n.push(te(r)+": "+(o=r,(null==(i=t[r])||"boolean"==typeof i||""===i?"":"number"!=typeof i||0===i||o in c.a?String(i).trim():i+"px")+";"))}var o,i;return n})),r?[r+" {"].concat(n,["}"]):n};function oe(e,t,r){if(Array.isArray(e)){for(var n,o=[],i=0,a=e.length;i1?t-1:0),n=1;n1?t-1:0),n=1;n25?39:97))};function pe(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=fe(t%52)+r;return(fe(t%52)+r).replace(le,"$1-$2")}function de(e){for(var t=0;t>>0);if(!t.hasNameForId(n,i)){var a=r(o,"."+i,void 0,n);t.insertRules(n,i,a)}return this.staticRulesId=i,i}for(var c=this.rules.length,s=G(this.baseHash,r.hash),u="",l=0;l>>0);if(!t.hasNameForId(n,h)){var m=r(u,"."+h,void 0,n);t.insertRules(n,h,m)}return h},e}(),me=(new Set,function(e,t,r){return void 0===r&&(r=m),e.theme!==r.theme&&e.theme||t||r.theme}),ge=/[[\].#*$><+~=|^:(),"'`-]+/g,ye=/(^-|-$)/g;function be(e){return e.replace(ge,"-").replace(ye,"")}function ve(e){return"string"==typeof e&&!0}var we=function(e){return pe(H(e)>>>0)};var ke=i.a.createContext();ke.Consumer;var Se={};function Ce(e,t,r){var n=e.attrs,i=e.componentStyle,a=e.defaultProps,c=e.foldedComponentIds,u=e.shouldForwardProp,l=e.styledComponentId,p=e.target;Object(o.useDebugValue)(l);var d=function(e,t,r){void 0===e&&(e=m);var n=f({},t,{theme:e}),o={};return r.forEach((function(e){var t,r,i,a=e;for(t in g(a)&&(a=a(n)),a)n[t]=o[t]="className"===t?(r=o[t],i=a[t],r&&i?r+" "+i:r||i):a[t]})),[n,o]}(me(t,Object(o.useContext)(ke),a)||m,t,n),h=d[0],y=d[1],b=function(e,t,r,n){var i=Z(),a=K(),c=e.isStatic&&!t?e.generateAndInjectStyles(m,i,a):e.generateAndInjectStyles(r,i,a);return Object(o.useDebugValue)(c),c}(i,n.length>0,h),v=r,w=y.$as||t.$as||y.as||t.as||p,k=ve(w),S=y!==t?f({},t,{},y):t,C=u||k&&s.a,x={};for(var A in S)"$"!==A[0]&&"as"!==A&&("forwardedAs"===A?x.as=S[A]:C&&!C(A,s.a)||(x[A]=S[A]));return t.style&&y.style!==t.style&&(x.style=f({},t.style,{},y.style)),x.className=Array.prototype.concat(c,l,b!==l?b:null,t.className,y.className).filter(Boolean).join(" "),x.ref=v,Object(o.createElement)(w,x)}function xe(e,t,r){var n=b(e),o=!ve(e),a=t.displayName,c=void 0===a?function(e){return ve(e)?"styled."+e:"Styled("+y(e)+")"}(e):a,s=t.componentId,u=void 0===s?function(e,t){var r="string"!=typeof e?"sc":be(e);Se[r]=(Se[r]||0)+1;var n=r+"-"+we(r+Se[r]);return t?t+"-"+n:n}(t.displayName,t.parentComponentId):s,p=t.attrs,d=void 0===p?h:p,m=t.displayName&&t.componentId?be(t.displayName)+"-"+t.componentId:t.componentId||u,g=n&&e.attrs?Array.prototype.concat(e.attrs,d).filter(Boolean):d,v=t.shouldForwardProp;n&&e.shouldForwardProp&&(v=v?function(r,n){return e.shouldForwardProp(r,n)&&t.shouldForwardProp(r,n)}:e.shouldForwardProp);var w,k=new he(n?e.componentStyle.rules.concat(r):r,m),S=function(e,t){return Ce(w,e,t)};return S.displayName=c,(w=i.a.forwardRef(S)).attrs=g,w.componentStyle=k,w.displayName=c,w.shouldForwardProp=v,w.foldedComponentIds=n?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):h,w.styledComponentId=m,w.target=n?e.target:e,w.withComponent=function(e){var n=t.componentId,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(t,["componentId"]),i=n&&n+"-"+(ve(e)?e:be(y(e)));return xe(e,f({},o,{attrs:g,componentId:i}),r)},Object.defineProperty(w,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=n?ue({},e.defaultProps,t):t}}),w.toString=function(){return"."+w.styledComponentId},o&&l()(w,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,self:!0,styledComponentId:!0,target:!0,withComponent:!0}),w}var Ae=function(e){return function e(t,r,o){if(void 0===o&&(o=m),!Object(n.isValidElementType)(r))return C(1,String(r));var i=function(){return t(r,o,ie.apply(void 0,arguments))};return i.withConfig=function(n){return e(t,r,f({},o,{},n))},i.attrs=function(n){return e(t,r,f({},o,{attrs:Array.prototype.concat(o.attrs,n).filter(Boolean)}))},i}(xe,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","tspan"].forEach((function(e){Ae[e]=Ae(e)}));t.b=Ae}).call(this,r(9))},function(e,t,r){"use strict";e.exports=r(10)},function(e,t,r){"use strict";var n=r(2),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};function s(e){return n.isMemo(e)?a:c[e.$$typeof]||o}c[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c[n.Memo]=a;var u=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(h){var o=d(r);o&&o!==h&&e(t,o,n)}var a=l(r);f&&(a=a.concat(f(r)));for(var c=s(t),m=s(r),g=0;gn&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*r&&0s.charCodeAt(8))break;case 115:a=a.replace(s,"-webkit-"+s)+";"+a;break;case 207:case 102:a=a.replace(s,"-webkit-"+(102c.charCodeAt(0)&&(c=c.trim()),c=[c],0d)&&(L=(G=G.replace(" ",":")).length),01)for(var r=1;r$.length&&$.push(e)}function E(e,t,r){return null==e?0:function e(t,r,n,o){var c=typeof t;"undefined"!==c&&"boolean"!==c||(t=null);var s=!1;if(null===t)s=!0;else switch(c){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case i:case a:s=!0}}if(s)return n(o,t,""===r?"."+_(t,0):r),1;if(s=0,r=""===r?".":r+":",Array.isArray(t))for(var u=0;u q) && (t = (f = f.replace(' ', ':')).length), 0 < A && void 0 !== (C = H(1, f, c, d, D, z, p.length, h, a, h)) && 0 === (t = (f = C.trim()).length) && (f = '\x00\x00'), q = f.charCodeAt(0), g = f.charCodeAt(1), q) { + case 0: + break; + + case 64: + if (105 === g || 99 === g) { + G += f + e.charAt(l); + break; + } + + default: + 58 !== f.charCodeAt(t - 1) && (p += P(f, q, g, f.charCodeAt(2))); + } + I = r = u = q = 0; + f = ''; + g = e.charCodeAt(++l); + } + } + + switch (g) { + case 13: + case 10: + 47 === b ? b = 0 : 0 === 1 + q && 107 !== h && 0 < f.length && (r = 1, f += '\x00'); + 0 < A * Y && H(0, f, c, d, D, z, p.length, h, a, h); + z = 1; + D++; + break; + + case 59: + case 125: + if (0 === b + n + v + m) { + z++; + break; + } + + default: + z++; + y = e.charAt(l); + + switch (g) { + case 9: + case 32: + if (0 === n + m + b) switch (x) { + case 44: + case 58: + case 9: + case 32: + y = ''; + break; + + default: + 32 !== g && (y = ' '); + } + break; + + case 0: + y = '\\0'; + break; + + case 12: + y = '\\f'; + break; + + case 11: + y = '\\v'; + break; + + case 38: + 0 === n + b + m && (r = I = 1, y = '\f' + y); + break; + + case 108: + if (0 === n + b + m + E && 0 < u) switch (l - u) { + case 2: + 112 === x && 58 === e.charCodeAt(l - 3) && (E = x); + + case 8: + 111 === K && (E = K); + } + break; + + case 58: + 0 === n + b + m && (u = l); + break; + + case 44: + 0 === b + v + n + m && (r = 1, y += '\r'); + break; + + case 34: + case 39: + 0 === b && (n = n === g ? 0 : 0 === n ? g : n); + break; + + case 91: + 0 === n + b + v && m++; + break; + + case 93: + 0 === n + b + v && m--; + break; + + case 41: + 0 === n + b + m && v--; + break; + + case 40: + if (0 === n + b + m) { + if (0 === q) switch (2 * x + 3 * K) { + case 533: + break; + + default: + q = 1; + } + v++; + } + + break; + + case 64: + 0 === b + v + n + m + u + k && (k = 1); + break; + + case 42: + case 47: + if (!(0 < n + m + v)) switch (b) { + case 0: + switch (2 * g + 3 * e.charCodeAt(l + 1)) { + case 235: + b = 47; + break; + + case 220: + t = l, b = 42; + } + + break; + + case 42: + 47 === g && 42 === x && t + 2 !== l && (33 === e.charCodeAt(t + 2) && (p += e.substring(t, l + 1)), y = '', b = 0); + } + } + + 0 === b && (f += y); + } + + K = x; + x = g; + l++; + } + + t = p.length; + + if (0 < t) { + r = c; + if (0 < A && (C = H(2, p, r, d, D, z, t, h, a, h), void 0 !== C && 0 === (p = C).length)) return G + p + F; + p = r.join(',') + '{' + p + '}'; + + if (0 !== w * E) { + 2 !== w || L(p, 2) || (E = 0); + + switch (E) { + case 111: + p = p.replace(ha, ':-moz-$1') + p; + break; + + case 112: + p = p.replace(Q, '::-webkit-input-$1') + p.replace(Q, '::-moz-$1') + p.replace(Q, ':-ms-input-$1') + p; + } + + E = 0; + } + } + + return G + p + F; + } + + function X(d, c, e) { + var h = c.trim().split(ia); + c = h; + var a = h.length, + m = d.length; + + switch (m) { + case 0: + case 1: + var b = 0; + + for (d = 0 === m ? '' : d[0] + ' '; b < a; ++b) { + c[b] = Z(d, c[b], e).trim(); + } + + break; + + default: + var v = b = 0; + + for (c = []; b < a; ++b) { + for (var n = 0; n < m; ++n) { + c[v++] = Z(d[n] + ' ', h[b], e).trim(); + } + } + + } + + return c; + } + + function Z(d, c, e) { + var h = c.charCodeAt(0); + 33 > h && (h = (c = c.trim()).charCodeAt(0)); + + switch (h) { + case 38: + return c.replace(F, '$1' + d.trim()); + + case 58: + return d.trim() + c.replace(F, '$1' + d.trim()); + + default: + if (0 < 1 * e && 0 < c.indexOf('\f')) return c.replace(F, (58 === d.charCodeAt(0) ? '' : '$1') + d.trim()); + } + + return d + c; + } + + function P(d, c, e, h) { + var a = d + ';', + m = 2 * c + 3 * e + 4 * h; + + if (944 === m) { + d = a.indexOf(':', 9) + 1; + var b = a.substring(d, a.length - 1).trim(); + b = a.substring(0, d).trim() + b + ';'; + return 1 === w || 2 === w && L(b, 1) ? '-webkit-' + b + b : b; + } + + if (0 === w || 2 === w && !L(a, 1)) return a; + + switch (m) { + case 1015: + return 97 === a.charCodeAt(10) ? '-webkit-' + a + a : a; + + case 951: + return 116 === a.charCodeAt(3) ? '-webkit-' + a + a : a; + + case 963: + return 110 === a.charCodeAt(5) ? '-webkit-' + a + a : a; + + case 1009: + if (100 !== a.charCodeAt(4)) break; + + case 969: + case 942: + return '-webkit-' + a + a; + + case 978: + return '-webkit-' + a + '-moz-' + a + a; + + case 1019: + case 983: + return '-webkit-' + a + '-moz-' + a + '-ms-' + a + a; + + case 883: + if (45 === a.charCodeAt(8)) return '-webkit-' + a + a; + if (0 < a.indexOf('image-set(', 11)) return a.replace(ja, '$1-webkit-$2') + a; + break; + + case 932: + if (45 === a.charCodeAt(4)) switch (a.charCodeAt(5)) { + case 103: + return '-webkit-box-' + a.replace('-grow', '') + '-webkit-' + a + '-ms-' + a.replace('grow', 'positive') + a; + + case 115: + return '-webkit-' + a + '-ms-' + a.replace('shrink', 'negative') + a; + + case 98: + return '-webkit-' + a + '-ms-' + a.replace('basis', 'preferred-size') + a; + } + return '-webkit-' + a + '-ms-' + a + a; + + case 964: + return '-webkit-' + a + '-ms-flex-' + a + a; + + case 1023: + if (99 !== a.charCodeAt(8)) break; + b = a.substring(a.indexOf(':', 15)).replace('flex-', '').replace('space-between', 'justify'); + return '-webkit-box-pack' + b + '-webkit-' + a + '-ms-flex-pack' + b + a; + + case 1005: + return ka.test(a) ? a.replace(aa, ':-webkit-') + a.replace(aa, ':-moz-') + a : a; + + case 1e3: + b = a.substring(13).trim(); + c = b.indexOf('-') + 1; + + switch (b.charCodeAt(0) + b.charCodeAt(c)) { + case 226: + b = a.replace(G, 'tb'); + break; + + case 232: + b = a.replace(G, 'tb-rl'); + break; + + case 220: + b = a.replace(G, 'lr'); + break; + + default: + return a; + } + + return '-webkit-' + a + '-ms-' + b + a; + + case 1017: + if (-1 === a.indexOf('sticky', 9)) break; + + case 975: + c = (a = d).length - 10; + b = (33 === a.charCodeAt(c) ? a.substring(0, c) : a).substring(d.indexOf(':', 7) + 1).trim(); + + switch (m = b.charCodeAt(0) + (b.charCodeAt(7) | 0)) { + case 203: + if (111 > b.charCodeAt(8)) break; + + case 115: + a = a.replace(b, '-webkit-' + b) + ';' + a; + break; + + case 207: + case 102: + a = a.replace(b, '-webkit-' + (102 < m ? 'inline-' : '') + 'box') + ';' + a.replace(b, '-webkit-' + b) + ';' + a.replace(b, '-ms-' + b + 'box') + ';' + a; + } + + return a + ';'; + + case 938: + if (45 === a.charCodeAt(5)) switch (a.charCodeAt(6)) { + case 105: + return b = a.replace('-items', ''), '-webkit-' + a + '-webkit-box-' + b + '-ms-flex-' + b + a; + + case 115: + return '-webkit-' + a + '-ms-flex-item-' + a.replace(ba, '') + a; + + default: + return '-webkit-' + a + '-ms-flex-line-pack' + a.replace('align-content', '').replace(ba, '') + a; + } + break; + + case 973: + case 989: + if (45 !== a.charCodeAt(3) || 122 === a.charCodeAt(4)) break; + + case 931: + case 953: + if (!0 === la.test(d)) return 115 === (b = d.substring(d.indexOf(':') + 1)).charCodeAt(0) ? P(d.replace('stretch', 'fill-available'), c, e, h).replace(':fill-available', ':stretch') : a.replace(b, '-webkit-' + b) + a.replace(b, '-moz-' + b.replace('fill-', '')) + a; + break; + + case 962: + if (a = '-webkit-' + a + (102 === a.charCodeAt(5) ? '-ms-' + a : '') + a, 211 === e + h && 105 === a.charCodeAt(13) && 0 < a.indexOf('transform', 10)) return a.substring(0, a.indexOf(';', 27) + 1).replace(ma, '$1-webkit-$2') + a; + } + + return a; + } + + function L(d, c) { + var e = d.indexOf(1 === c ? ':' : '{'), + h = d.substring(0, 3 !== c ? e : 10); + e = d.substring(e + 1, d.length - 1); + return R(2 !== c ? h : h.replace(na, '$1'), e, c); + } + + function ea(d, c) { + var e = P(c, c.charCodeAt(0), c.charCodeAt(1), c.charCodeAt(2)); + return e !== c + ';' ? e.replace(oa, ' or ($1)').substring(4) : '(' + c + ')'; + } + + function H(d, c, e, h, a, m, b, v, n, q) { + for (var g = 0, x = c, w; g < A; ++g) { + switch (w = S[g].call(B, d, x, e, h, a, m, b, v, n, q)) { + case void 0: + case !1: + case !0: + case null: + break; + + default: + x = w; + } + } + + if (x !== c) return x; + } + + function T(d) { + switch (d) { + case void 0: + case null: + A = S.length = 0; + break; + + default: + if ('function' === typeof d) S[A++] = d;else if ('object' === typeof d) for (var c = 0, e = d.length; c < e; ++c) { + T(d[c]); + } else Y = !!d | 0; + } + + return T; + } + + function U(d) { + d = d.prefix; + void 0 !== d && (R = null, d ? 'function' !== typeof d ? w = 1 : (w = 2, R = d) : w = 0); + return U; + } + + function B(d, c) { + var e = d; + 33 > e.charCodeAt(0) && (e = e.trim()); + V = e; + e = [V]; + + if (0 < A) { + var h = H(-1, c, e, e, D, z, 0, 0, 0, 0); + void 0 !== h && 'string' === typeof h && (c = h); + } + + var a = M(O, e, c, 0, 0); + 0 < A && (h = H(-2, a, e, e, D, z, a.length, 0, 0, 0), void 0 !== h && (a = h)); + V = ''; + E = 0; + z = D = 1; + return a; + } + + var ca = /^\0+/g, + N = /[\0\r\f]/g, + aa = /: */g, + ka = /zoo|gra/, + ma = /([,: ])(transform)/g, + ia = /,\r+?/g, + F = /([\t\r\n ])*\f?&/g, + fa = /@(k\w+)\s*(\S*)\s*/, + Q = /::(place)/g, + ha = /:(read-only)/g, + G = /[svh]\w+-[tblr]{2}/, + da = /\(\s*(.*)\s*\)/g, + oa = /([\s\S]*?);/g, + ba = /-self|flex-/g, + na = /[^]*?(:[rp][el]a[\w-]+)[^]*/, + la = /stretch|:\s*\w+\-(?:conte|avail)/, + ja = /([^-])(image-set\()/, + z = 1, + D = 1, + E = 0, + w = 1, + O = [], + S = [], + A = 0, + R = null, + Y = 0, + V = ''; + B.use = T; + B.set = U; + void 0 !== W && U(W); + return B; +} + +/* harmony default export */ __webpack_exports__["default"] = (stylis_min); + + +/***/ }), + +/***/ "./node_modules/@emotion/unitless/dist/unitless.browser.esm.js": +/*!*********************************************************************!*\ + !*** ./node_modules/@emotion/unitless/dist/unitless.browser.esm.js ***! + \*********************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +var unitlessKeys = { + 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, + // SVG-related properties + fillOpacity: 1, + floodOpacity: 1, + stopOpacity: 1, + strokeDasharray: 1, + strokeDashoffset: 1, + strokeMiterlimit: 1, + strokeOpacity: 1, + strokeWidth: 1 +}; + +/* harmony default export */ __webpack_exports__["default"] = (unitlessKeys); + + +/***/ }), + +/***/ "./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js": +/*!**********************************************************************************!*\ + !*** ./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js ***! + \**********************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var reactIs = __webpack_require__(/*! react-is */ "./node_modules/react-is/index.js"); + +/** + * Copyright 2015, Yahoo! Inc. + * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. + */ +var REACT_STATICS = { + childContextTypes: true, + contextType: true, + contextTypes: true, + defaultProps: true, + displayName: true, + getDefaultProps: true, + getDerivedStateFromError: true, + getDerivedStateFromProps: true, + mixins: true, + propTypes: true, + type: true +}; +var KNOWN_STATICS = { + name: true, + length: true, + prototype: true, + caller: true, + callee: true, + arguments: true, + arity: true +}; +var FORWARD_REF_STATICS = { + '$$typeof': true, + render: true, + defaultProps: true, + displayName: true, + propTypes: true +}; +var MEMO_STATICS = { + '$$typeof': true, + compare: true, + defaultProps: true, + displayName: true, + propTypes: true, + type: true +}; +var TYPE_STATICS = {}; +TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS; +TYPE_STATICS[reactIs.Memo] = MEMO_STATICS; + +function getStatics(component) { + // React v16.11 and below + if (reactIs.isMemo(component)) { + return MEMO_STATICS; + } // React v16.12 and above + + + return TYPE_STATICS[component['$$typeof']] || REACT_STATICS; +} + +var defineProperty = Object.defineProperty; +var getOwnPropertyNames = Object.getOwnPropertyNames; +var getOwnPropertySymbols = Object.getOwnPropertySymbols; +var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; +var getPrototypeOf = Object.getPrototypeOf; +var objectPrototype = Object.prototype; +function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) { + if (typeof sourceComponent !== 'string') { + // don't hoist over string (html) components + if (objectPrototype) { + var inheritedComponent = getPrototypeOf(sourceComponent); + + if (inheritedComponent && inheritedComponent !== objectPrototype) { + hoistNonReactStatics(targetComponent, inheritedComponent, blacklist); + } + } + + var keys = getOwnPropertyNames(sourceComponent); + + if (getOwnPropertySymbols) { + keys = keys.concat(getOwnPropertySymbols(sourceComponent)); + } + + var targetStatics = getStatics(targetComponent); + var sourceStatics = getStatics(sourceComponent); + + for (var i = 0; i < keys.length; ++i) { + var key = keys[i]; + + if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) { + var descriptor = getOwnPropertyDescriptor(sourceComponent, key); + + try { + // Avoid failures from read-only properties + defineProperty(targetComponent, key, descriptor); + } catch (e) {} + } + } + } + + return targetComponent; +} + +module.exports = hoistNonReactStatics; + + +/***/ }), + +/***/ "./node_modules/object-assign/index.js": +/*!*********************************************!*\ + !*** ./node_modules/object-assign/index.js ***! + \*********************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +/* +object-assign +(c) Sindre Sorhus +@license MIT +*/ + + +/* eslint-disable no-unused-vars */ +var getOwnPropertySymbols = Object.getOwnPropertySymbols; +var hasOwnProperty = Object.prototype.hasOwnProperty; +var propIsEnumerable = Object.prototype.propertyIsEnumerable; + +function toObject(val) { + if (val === null || val === undefined) { + throw new TypeError('Object.assign cannot be called with null or undefined'); + } + + return Object(val); +} + +function shouldUseNative() { + try { + if (!Object.assign) { + return false; + } + + // Detect buggy property enumeration order in older V8 versions. + + // https://bugs.chromium.org/p/v8/issues/detail?id=4118 + var test1 = new String('abc'); // eslint-disable-line no-new-wrappers + test1[5] = 'de'; + if (Object.getOwnPropertyNames(test1)[0] === '5') { + return false; + } + + // https://bugs.chromium.org/p/v8/issues/detail?id=3056 + var test2 = {}; + for (var i = 0; i < 10; i++) { + test2['_' + String.fromCharCode(i)] = i; + } + var order2 = Object.getOwnPropertyNames(test2).map(function (n) { + return test2[n]; + }); + if (order2.join('') !== '0123456789') { + return false; + } + + // https://bugs.chromium.org/p/v8/issues/detail?id=3056 + var test3 = {}; + 'abcdefghijklmnopqrst'.split('').forEach(function (letter) { + test3[letter] = letter; + }); + if (Object.keys(Object.assign({}, test3)).join('') !== + 'abcdefghijklmnopqrst') { + return false; + } + + return true; + } catch (err) { + // We don't expect any of the above to throw, but better to be safe. + return false; + } +} + +module.exports = shouldUseNative() ? Object.assign : function (target, source) { + var from; + var to = toObject(target); + var symbols; + + for (var s = 1; s < arguments.length; s++) { + from = Object(arguments[s]); + + for (var key in from) { + if (hasOwnProperty.call(from, key)) { + to[key] = from[key]; + } + } + + if (getOwnPropertySymbols) { + symbols = getOwnPropertySymbols(from); + for (var i = 0; i < symbols.length; i++) { + if (propIsEnumerable.call(from, symbols[i])) { + to[symbols[i]] = from[symbols[i]]; + } + } + } + } + + return to; +}; + + +/***/ }), + +/***/ "./node_modules/process/browser.js": +/*!*****************************************!*\ + !*** ./node_modules/process/browser.js ***! + \*****************************************/ +/*! no static exports found */ +/***/ (function(module, exports) { + +// shim for using process in browser +var process = module.exports = {}; + +// cached from whatever global is present so that test runners that stub it +// don't break things. But we need to wrap it in a try catch in case it is +// wrapped in strict mode code which doesn't define any globals. It's inside a +// function because try/catches deoptimize in certain engines. + +var cachedSetTimeout; +var cachedClearTimeout; + +function defaultSetTimout() { + throw new Error('setTimeout has not been defined'); +} +function defaultClearTimeout () { + throw new Error('clearTimeout has not been defined'); +} +(function () { + try { + if (typeof setTimeout === 'function') { + cachedSetTimeout = setTimeout; + } else { + cachedSetTimeout = defaultSetTimout; + } + } catch (e) { + cachedSetTimeout = defaultSetTimout; + } + try { + if (typeof clearTimeout === 'function') { + cachedClearTimeout = clearTimeout; + } else { + cachedClearTimeout = defaultClearTimeout; + } + } catch (e) { + cachedClearTimeout = defaultClearTimeout; + } +} ()) +function runTimeout(fun) { + if (cachedSetTimeout === setTimeout) { + //normal enviroments in sane situations + return setTimeout(fun, 0); + } + // if setTimeout wasn't available but was latter defined + if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) { + cachedSetTimeout = setTimeout; + return setTimeout(fun, 0); + } + try { + // when when somebody has screwed with setTimeout but no I.E. maddness + return cachedSetTimeout(fun, 0); + } catch(e){ + try { + // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally + return cachedSetTimeout.call(null, fun, 0); + } catch(e){ + // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error + return cachedSetTimeout.call(this, fun, 0); + } + } + + +} +function runClearTimeout(marker) { + if (cachedClearTimeout === clearTimeout) { + //normal enviroments in sane situations + return clearTimeout(marker); + } + // if clearTimeout wasn't available but was latter defined + if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) { + cachedClearTimeout = clearTimeout; + return clearTimeout(marker); + } + try { + // when when somebody has screwed with setTimeout but no I.E. maddness + return cachedClearTimeout(marker); + } catch (e){ + try { + // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally + return cachedClearTimeout.call(null, marker); + } catch (e){ + // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error. + // Some versions of I.E. have different rules for clearTimeout vs setTimeout + return cachedClearTimeout.call(this, marker); + } + } + + + +} +var queue = []; +var draining = false; +var currentQueue; +var queueIndex = -1; + +function cleanUpNextTick() { + if (!draining || !currentQueue) { + return; + } + draining = false; + if (currentQueue.length) { + queue = currentQueue.concat(queue); + } else { + queueIndex = -1; + } + if (queue.length) { + drainQueue(); + } +} + +function drainQueue() { + if (draining) { + return; + } + var timeout = runTimeout(cleanUpNextTick); + draining = true; + + var len = queue.length; + while(len) { + currentQueue = queue; + queue = []; + while (++queueIndex < len) { + if (currentQueue) { + currentQueue[queueIndex].run(); + } + } + queueIndex = -1; + len = queue.length; + } + currentQueue = null; + draining = false; + runClearTimeout(timeout); +} + +process.nextTick = function (fun) { + var args = new Array(arguments.length - 1); + if (arguments.length > 1) { + for (var i = 1; i < arguments.length; i++) { + args[i - 1] = arguments[i]; + } + } + queue.push(new Item(fun, args)); + if (queue.length === 1 && !draining) { + runTimeout(drainQueue); + } +}; + +// v8 likes predictible objects +function Item(fun, array) { + this.fun = fun; + this.array = array; +} +Item.prototype.run = function () { + this.fun.apply(null, this.array); +}; +process.title = 'browser'; +process.browser = true; +process.env = {}; +process.argv = []; +process.version = ''; // empty string to avoid regexp issues +process.versions = {}; + +function noop() {} + +process.on = noop; +process.addListener = noop; +process.once = noop; +process.off = noop; +process.removeListener = noop; +process.removeAllListeners = noop; +process.emit = noop; +process.prependListener = noop; +process.prependOnceListener = noop; + +process.listeners = function (name) { return [] } + +process.binding = function (name) { + throw new Error('process.binding is not supported'); +}; + +process.cwd = function () { return '/' }; +process.chdir = function (dir) { + throw new Error('process.chdir is not supported'); +}; +process.umask = function() { return 0; }; + + +/***/ }), + +/***/ "./node_modules/prop-types/checkPropTypes.js": +/*!***************************************************!*\ + !*** ./node_modules/prop-types/checkPropTypes.js ***! + \***************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + + +var printWarning = function() {}; + +if (true) { + var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "./node_modules/prop-types/lib/ReactPropTypesSecret.js"); + var loggedTypeFailures = {}; + var has = Function.call.bind(Object.prototype.hasOwnProperty); + + printWarning = function(text) { + var message = 'Warning: ' + text; + if (typeof console !== 'undefined') { + console.error(message); + } + try { + // --- Welcome to debugging React --- + // This error was thrown as a convenience so that you can use this stack + // to find the callsite that caused this warning to fire. + throw new Error(message); + } catch (x) {} + }; +} + +/** + * Assert that the values match with the type specs. + * Error messages are memorized and will only be shown once. + * + * @param {object} typeSpecs Map of name to a ReactPropType + * @param {object} values Runtime values that need to be type-checked + * @param {string} location e.g. "prop", "context", "child context" + * @param {string} componentName Name of the component for error messages. + * @param {?Function} getStack Returns the component stack. + * @private + */ +function checkPropTypes(typeSpecs, values, location, componentName, getStack) { + if (true) { + for (var typeSpecName in typeSpecs) { + if (has(typeSpecs, typeSpecName)) { + var error; + // Prop type validation may throw. In case they do, we don't want to + // fail the render phase where it didn't fail before. So we log it. + // After these have been cleaned up, we'll let them throw. + try { + // This is intentionally an invariant that gets caught. It's the same + // behavior as without this statement except with a better message. + if (typeof typeSpecs[typeSpecName] !== 'function') { + var err = Error( + (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + ); + err.name = 'Invariant Violation'; + throw err; + } + error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret); + } catch (ex) { + error = ex; + } + if (error && !(error instanceof Error)) { + printWarning( + (componentName || 'React class') + ': type specification of ' + + location + ' `' + typeSpecName + '` is invalid; the type checker ' + + 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' + + 'You may have forgotten to pass an argument to the type checker ' + + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + + 'shape all require an argument).' + ); + } + if (error instanceof Error && !(error.message in loggedTypeFailures)) { + // Only monitor this failure once because there tends to be a lot of the + // same error. + loggedTypeFailures[error.message] = true; + + var stack = getStack ? getStack() : ''; + + printWarning( + 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '') + ); + } + } + } + } +} + +/** + * Resets warning cache when testing. + * + * @private + */ +checkPropTypes.resetWarningCache = function() { + if (true) { + loggedTypeFailures = {}; + } +} + +module.exports = checkPropTypes; + + +/***/ }), + +/***/ "./node_modules/prop-types/lib/ReactPropTypesSecret.js": +/*!*************************************************************!*\ + !*** ./node_modules/prop-types/lib/ReactPropTypesSecret.js ***! + \*************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + + +var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; + +module.exports = ReactPropTypesSecret; + + +/***/ }), + +/***/ "./node_modules/react-is/cjs/react-is.development.js": +/*!***********************************************************!*\ + !*** ./node_modules/react-is/cjs/react-is.development.js ***! + \***********************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +/** @license React v16.13.1 + * react-is.development.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + + + + +if (true) { + (function() { +'use strict'; + +// The Symbol used to tag the ReactElement-like types. If there is no native Symbol +// nor polyfill, then a plain number is used for performance. +var hasSymbol = typeof Symbol === 'function' && Symbol.for; +var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7; +var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca; +var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb; +var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc; +var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2; +var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd; +var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary +// (unstable) APIs that have been removed. Can we remove the symbols? + +var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf; +var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf; +var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0; +var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1; +var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8; +var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3; +var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4; +var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9; +var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5; +var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6; +var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7; + +function isValidElementType(type) { + return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. + type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE); +} + +function typeOf(object) { + if (typeof object === 'object' && object !== null) { + var $$typeof = object.$$typeof; + + switch ($$typeof) { + case REACT_ELEMENT_TYPE: + var type = object.type; + + switch (type) { + case REACT_ASYNC_MODE_TYPE: + case REACT_CONCURRENT_MODE_TYPE: + case REACT_FRAGMENT_TYPE: + case REACT_PROFILER_TYPE: + case REACT_STRICT_MODE_TYPE: + case REACT_SUSPENSE_TYPE: + return type; + + default: + var $$typeofType = type && type.$$typeof; + + switch ($$typeofType) { + case REACT_CONTEXT_TYPE: + case REACT_FORWARD_REF_TYPE: + case REACT_LAZY_TYPE: + case REACT_MEMO_TYPE: + case REACT_PROVIDER_TYPE: + return $$typeofType; + + default: + return $$typeof; + } + + } + + case REACT_PORTAL_TYPE: + return $$typeof; + } + } + + return undefined; +} // AsyncMode is deprecated along with isAsyncMode + +var AsyncMode = REACT_ASYNC_MODE_TYPE; +var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE; +var ContextConsumer = REACT_CONTEXT_TYPE; +var ContextProvider = REACT_PROVIDER_TYPE; +var Element = REACT_ELEMENT_TYPE; +var ForwardRef = REACT_FORWARD_REF_TYPE; +var Fragment = REACT_FRAGMENT_TYPE; +var Lazy = REACT_LAZY_TYPE; +var Memo = REACT_MEMO_TYPE; +var Portal = REACT_PORTAL_TYPE; +var Profiler = REACT_PROFILER_TYPE; +var StrictMode = REACT_STRICT_MODE_TYPE; +var Suspense = REACT_SUSPENSE_TYPE; +var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated + +function isAsyncMode(object) { + { + if (!hasWarnedAboutDeprecatedIsAsyncMode) { + hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint + + console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.'); + } + } + + return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE; +} +function isConcurrentMode(object) { + return typeOf(object) === REACT_CONCURRENT_MODE_TYPE; +} +function isContextConsumer(object) { + return typeOf(object) === REACT_CONTEXT_TYPE; +} +function isContextProvider(object) { + return typeOf(object) === REACT_PROVIDER_TYPE; +} +function isElement(object) { + return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE; +} +function isForwardRef(object) { + return typeOf(object) === REACT_FORWARD_REF_TYPE; +} +function isFragment(object) { + return typeOf(object) === REACT_FRAGMENT_TYPE; +} +function isLazy(object) { + return typeOf(object) === REACT_LAZY_TYPE; +} +function isMemo(object) { + return typeOf(object) === REACT_MEMO_TYPE; +} +function isPortal(object) { + return typeOf(object) === REACT_PORTAL_TYPE; +} +function isProfiler(object) { + return typeOf(object) === REACT_PROFILER_TYPE; +} +function isStrictMode(object) { + return typeOf(object) === REACT_STRICT_MODE_TYPE; +} +function isSuspense(object) { + return typeOf(object) === REACT_SUSPENSE_TYPE; +} + +exports.AsyncMode = AsyncMode; +exports.ConcurrentMode = ConcurrentMode; +exports.ContextConsumer = ContextConsumer; +exports.ContextProvider = ContextProvider; +exports.Element = Element; +exports.ForwardRef = ForwardRef; +exports.Fragment = Fragment; +exports.Lazy = Lazy; +exports.Memo = Memo; +exports.Portal = Portal; +exports.Profiler = Profiler; +exports.StrictMode = StrictMode; +exports.Suspense = Suspense; +exports.isAsyncMode = isAsyncMode; +exports.isConcurrentMode = isConcurrentMode; +exports.isContextConsumer = isContextConsumer; +exports.isContextProvider = isContextProvider; +exports.isElement = isElement; +exports.isForwardRef = isForwardRef; +exports.isFragment = isFragment; +exports.isLazy = isLazy; +exports.isMemo = isMemo; +exports.isPortal = isPortal; +exports.isProfiler = isProfiler; +exports.isStrictMode = isStrictMode; +exports.isSuspense = isSuspense; +exports.isValidElementType = isValidElementType; +exports.typeOf = typeOf; + })(); +} + + +/***/ }), + +/***/ "./node_modules/react-is/index.js": +/*!****************************************!*\ + !*** ./node_modules/react-is/index.js ***! + \****************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +if (false) {} else { + module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "./node_modules/react-is/cjs/react-is.development.js"); +} + + +/***/ }), + +/***/ "./node_modules/react/cjs/react.development.js": +/*!*****************************************************!*\ + !*** ./node_modules/react/cjs/react.development.js ***! + \*****************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +/** @license React v16.13.1 + * react.development.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + + + + +if (true) { + (function() { +'use strict'; + +var _assign = __webpack_require__(/*! object-assign */ "./node_modules/object-assign/index.js"); +var checkPropTypes = __webpack_require__(/*! prop-types/checkPropTypes */ "./node_modules/prop-types/checkPropTypes.js"); + +var ReactVersion = '16.13.1'; + +// The Symbol used to tag the ReactElement-like types. If there is no native Symbol +// nor polyfill, then a plain number is used for performance. +var hasSymbol = typeof Symbol === 'function' && Symbol.for; +var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7; +var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca; +var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb; +var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc; +var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2; +var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd; +var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary +var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf; +var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0; +var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1; +var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8; +var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3; +var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4; +var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9; +var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5; +var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6; +var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7; +var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator; +var FAUX_ITERATOR_SYMBOL = '@@iterator'; +function getIteratorFn(maybeIterable) { + if (maybeIterable === null || typeof maybeIterable !== 'object') { + return null; + } + + var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]; + + if (typeof maybeIterator === 'function') { + return maybeIterator; + } + + return null; +} + +/** + * Keeps track of the current dispatcher. + */ +var ReactCurrentDispatcher = { + /** + * @internal + * @type {ReactComponent} + */ + current: null +}; + +/** + * Keeps track of the current batch's configuration such as how long an update + * should suspend for if it needs to. + */ +var ReactCurrentBatchConfig = { + suspense: null +}; + +/** + * Keeps track of the current owner. + * + * The current owner is the component who should own any components that are + * currently being constructed. + */ +var ReactCurrentOwner = { + /** + * @internal + * @type {ReactComponent} + */ + current: null +}; + +var BEFORE_SLASH_RE = /^(.*)[\\\/]/; +function describeComponentFrame (name, source, ownerName) { + var sourceInfo = ''; + + if (source) { + var path = source.fileName; + var fileName = path.replace(BEFORE_SLASH_RE, ''); + + { + // In DEV, include code for a common special case: + // prefer "folder/index.js" instead of just "index.js". + if (/^index\./.test(fileName)) { + var match = path.match(BEFORE_SLASH_RE); + + if (match) { + var pathBeforeSlash = match[1]; + + if (pathBeforeSlash) { + var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, ''); + fileName = folderName + '/' + fileName; + } + } + } + } + + sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')'; + } else if (ownerName) { + sourceInfo = ' (created by ' + ownerName + ')'; + } + + return '\n in ' + (name || 'Unknown') + sourceInfo; +} + +var Resolved = 1; +function refineResolvedLazyComponent(lazyComponent) { + return lazyComponent._status === Resolved ? lazyComponent._result : null; +} + +function getWrappedName(outerType, innerType, wrapperName) { + var functionName = innerType.displayName || innerType.name || ''; + return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName); +} + +function getComponentName(type) { + if (type == null) { + // Host root, text node or just invalid type. + return null; + } + + { + if (typeof type.tag === 'number') { + error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.'); + } + } + + if (typeof type === 'function') { + return type.displayName || type.name || null; + } + + if (typeof type === 'string') { + return type; + } + + switch (type) { + case REACT_FRAGMENT_TYPE: + return 'Fragment'; + + case REACT_PORTAL_TYPE: + return 'Portal'; + + case REACT_PROFILER_TYPE: + return "Profiler"; + + case REACT_STRICT_MODE_TYPE: + return 'StrictMode'; + + case REACT_SUSPENSE_TYPE: + return 'Suspense'; + + case REACT_SUSPENSE_LIST_TYPE: + return 'SuspenseList'; + } + + if (typeof type === 'object') { + switch (type.$$typeof) { + case REACT_CONTEXT_TYPE: + return 'Context.Consumer'; + + case REACT_PROVIDER_TYPE: + return 'Context.Provider'; + + case REACT_FORWARD_REF_TYPE: + return getWrappedName(type, type.render, 'ForwardRef'); + + case REACT_MEMO_TYPE: + return getComponentName(type.type); + + case REACT_BLOCK_TYPE: + return getComponentName(type.render); + + case REACT_LAZY_TYPE: + { + var thenable = type; + var resolvedThenable = refineResolvedLazyComponent(thenable); + + if (resolvedThenable) { + return getComponentName(resolvedThenable); + } + + break; + } + } + } + + return null; +} + +var ReactDebugCurrentFrame = {}; +var currentlyValidatingElement = null; +function setCurrentlyValidatingElement(element) { + { + currentlyValidatingElement = element; + } +} + +{ + // Stack implementation injected by the current renderer. + ReactDebugCurrentFrame.getCurrentStack = null; + + ReactDebugCurrentFrame.getStackAddendum = function () { + var stack = ''; // Add an extra top frame while an element is being validated + + if (currentlyValidatingElement) { + var name = getComponentName(currentlyValidatingElement.type); + var owner = currentlyValidatingElement._owner; + stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner.type)); + } // Delegate to the injected renderer-specific implementation + + + var impl = ReactDebugCurrentFrame.getCurrentStack; + + if (impl) { + stack += impl() || ''; + } + + return stack; + }; +} + +/** + * Used by act() to track whether you're inside an act() scope. + */ +var IsSomeRendererActing = { + current: false +}; + +var ReactSharedInternals = { + ReactCurrentDispatcher: ReactCurrentDispatcher, + ReactCurrentBatchConfig: ReactCurrentBatchConfig, + ReactCurrentOwner: ReactCurrentOwner, + IsSomeRendererActing: IsSomeRendererActing, + // Used by renderers to avoid bundling object-assign twice in UMD bundles: + assign: _assign +}; + +{ + _assign(ReactSharedInternals, { + // These should not be included in production. + ReactDebugCurrentFrame: ReactDebugCurrentFrame, + // Shim for React DOM 16.0.0 which still destructured (but not used) this. + // TODO: remove in React 17.0. + ReactComponentTreeHook: {} + }); +} + +// by calls to these methods by a Babel plugin. +// +// In PROD (or in packages without access to React internals), +// they are left as they are instead. + +function warn(format) { + { + for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } + + printWarning('warn', format, args); + } +} +function error(format) { + { + for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { + args[_key2 - 1] = arguments[_key2]; + } + + printWarning('error', format, args); + } +} + +function printWarning(level, format, args) { + // When changing this logic, you might want to also + // update consoleWithStackDev.www.js as well. + { + var hasExistingStack = args.length > 0 && typeof args[args.length - 1] === 'string' && args[args.length - 1].indexOf('\n in') === 0; + + if (!hasExistingStack) { + var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; + var stack = ReactDebugCurrentFrame.getStackAddendum(); + + if (stack !== '') { + format += '%s'; + args = args.concat([stack]); + } + } + + var argsWithFormat = args.map(function (item) { + return '' + item; + }); // Careful: RN currently depends on this prefix + + argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it + // breaks IE9: https://github.com/facebook/react/issues/13610 + // eslint-disable-next-line react-internal/no-production-logging + + Function.prototype.apply.call(console[level], console, argsWithFormat); + + try { + // --- Welcome to debugging React --- + // This error was thrown as a convenience so that you can use this stack + // to find the callsite that caused this warning to fire. + var argIndex = 0; + var message = 'Warning: ' + format.replace(/%s/g, function () { + return args[argIndex++]; + }); + throw new Error(message); + } catch (x) {} + } +} + +var didWarnStateUpdateForUnmountedComponent = {}; + +function warnNoop(publicInstance, callerName) { + { + var _constructor = publicInstance.constructor; + var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass'; + var warningKey = componentName + "." + callerName; + + if (didWarnStateUpdateForUnmountedComponent[warningKey]) { + return; + } + + error("Can't call %s on a component that is not yet mounted. " + 'This is a no-op, but it might indicate a bug in your application. ' + 'Instead, assign to `this.state` directly or define a `state = {};` ' + 'class property with the desired state in the %s component.', callerName, componentName); + + didWarnStateUpdateForUnmountedComponent[warningKey] = true; + } +} +/** + * This is the abstract API for an update queue. + */ + + +var ReactNoopUpdateQueue = { + /** + * Checks whether or not this composite component is mounted. + * @param {ReactClass} publicInstance The instance we want to test. + * @return {boolean} True if mounted, false otherwise. + * @protected + * @final + */ + isMounted: function (publicInstance) { + return false; + }, + + /** + * Forces an update. This should only be invoked when it is known with + * certainty that we are **not** in a DOM transaction. + * + * You may want to call this when you know that some deeper aspect of the + * component's state has changed but `setState` was not called. + * + * This will not invoke `shouldComponentUpdate`, but it will invoke + * `componentWillUpdate` and `componentDidUpdate`. + * + * @param {ReactClass} publicInstance The instance that should rerender. + * @param {?function} callback Called after component is updated. + * @param {?string} callerName name of the calling function in the public API. + * @internal + */ + enqueueForceUpdate: function (publicInstance, callback, callerName) { + warnNoop(publicInstance, 'forceUpdate'); + }, + + /** + * Replaces all of the state. Always use this or `setState` to mutate state. + * You should treat `this.state` as immutable. + * + * There is no guarantee that `this.state` will be immediately updated, so + * accessing `this.state` after calling this method may return the old value. + * + * @param {ReactClass} publicInstance The instance that should rerender. + * @param {object} completeState Next state. + * @param {?function} callback Called after component is updated. + * @param {?string} callerName name of the calling function in the public API. + * @internal + */ + enqueueReplaceState: function (publicInstance, completeState, callback, callerName) { + warnNoop(publicInstance, 'replaceState'); + }, + + /** + * Sets a subset of the state. This only exists because _pendingState is + * internal. This provides a merging strategy that is not available to deep + * properties which is confusing. TODO: Expose pendingState or don't use it + * during the merge. + * + * @param {ReactClass} publicInstance The instance that should rerender. + * @param {object} partialState Next partial state to be merged with state. + * @param {?function} callback Called after component is updated. + * @param {?string} Name of the calling function in the public API. + * @internal + */ + enqueueSetState: function (publicInstance, partialState, callback, callerName) { + warnNoop(publicInstance, 'setState'); + } +}; + +var emptyObject = {}; + +{ + Object.freeze(emptyObject); +} +/** + * Base class helpers for the updating state of a component. + */ + + +function Component(props, context, updater) { + this.props = props; + this.context = context; // If a component has string refs, we will assign a different object later. + + this.refs = emptyObject; // We initialize the default updater but the real one gets injected by the + // renderer. + + this.updater = updater || ReactNoopUpdateQueue; +} + +Component.prototype.isReactComponent = {}; +/** + * Sets a subset of the state. Always use this to mutate + * state. You should treat `this.state` as immutable. + * + * There is no guarantee that `this.state` will be immediately updated, so + * accessing `this.state` after calling this method may return the old value. + * + * There is no guarantee that calls to `setState` will run synchronously, + * as they may eventually be batched together. You can provide an optional + * callback that will be executed when the call to setState is actually + * completed. + * + * When a function is provided to setState, it will be called at some point in + * the future (not synchronously). It will be called with the up to date + * component arguments (state, props, context). These values can be different + * from this.* because your function may be called after receiveProps but before + * shouldComponentUpdate, and this new state, props, and context will not yet be + * assigned to this. + * + * @param {object|function} partialState Next partial state or function to + * produce next partial state to be merged with current state. + * @param {?function} callback Called after state is updated. + * @final + * @protected + */ + +Component.prototype.setState = function (partialState, callback) { + if (!(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null)) { + { + throw Error( "setState(...): takes an object of state variables to update or a function which returns an object of state variables." ); + } + } + + this.updater.enqueueSetState(this, partialState, callback, 'setState'); +}; +/** + * Forces an update. This should only be invoked when it is known with + * certainty that we are **not** in a DOM transaction. + * + * You may want to call this when you know that some deeper aspect of the + * component's state has changed but `setState` was not called. + * + * This will not invoke `shouldComponentUpdate`, but it will invoke + * `componentWillUpdate` and `componentDidUpdate`. + * + * @param {?function} callback Called after update is complete. + * @final + * @protected + */ + + +Component.prototype.forceUpdate = function (callback) { + this.updater.enqueueForceUpdate(this, callback, 'forceUpdate'); +}; +/** + * Deprecated APIs. These APIs used to exist on classic React classes but since + * we would like to deprecate them, we're not going to move them over to this + * modern base class. Instead, we define a getter that warns if it's accessed. + */ + + +{ + var deprecatedAPIs = { + isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'], + replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).'] + }; + + var defineDeprecationWarning = function (methodName, info) { + Object.defineProperty(Component.prototype, methodName, { + get: function () { + warn('%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]); + + return undefined; + } + }); + }; + + for (var fnName in deprecatedAPIs) { + if (deprecatedAPIs.hasOwnProperty(fnName)) { + defineDeprecationWarning(fnName, deprecatedAPIs[fnName]); + } + } +} + +function ComponentDummy() {} + +ComponentDummy.prototype = Component.prototype; +/** + * Convenience component with default shallow equality check for sCU. + */ + +function PureComponent(props, context, updater) { + this.props = props; + this.context = context; // If a component has string refs, we will assign a different object later. + + this.refs = emptyObject; + this.updater = updater || ReactNoopUpdateQueue; +} + +var pureComponentPrototype = PureComponent.prototype = new ComponentDummy(); +pureComponentPrototype.constructor = PureComponent; // Avoid an extra prototype jump for these methods. + +_assign(pureComponentPrototype, Component.prototype); + +pureComponentPrototype.isPureReactComponent = true; + +// an immutable object with a single mutable value +function createRef() { + var refObject = { + current: null + }; + + { + Object.seal(refObject); + } + + return refObject; +} + +var hasOwnProperty = Object.prototype.hasOwnProperty; +var RESERVED_PROPS = { + key: true, + ref: true, + __self: true, + __source: true +}; +var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs; + +{ + didWarnAboutStringRefs = {}; +} + +function hasValidRef(config) { + { + if (hasOwnProperty.call(config, 'ref')) { + var getter = Object.getOwnPropertyDescriptor(config, 'ref').get; + + if (getter && getter.isReactWarning) { + return false; + } + } + } + + return config.ref !== undefined; +} + +function hasValidKey(config) { + { + if (hasOwnProperty.call(config, 'key')) { + var getter = Object.getOwnPropertyDescriptor(config, 'key').get; + + if (getter && getter.isReactWarning) { + return false; + } + } + } + + return config.key !== undefined; +} + +function defineKeyPropWarningGetter(props, displayName) { + var warnAboutAccessingKey = function () { + { + if (!specialPropKeyWarningShown) { + specialPropKeyWarningShown = true; + + error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName); + } + } + }; + + warnAboutAccessingKey.isReactWarning = true; + Object.defineProperty(props, 'key', { + get: warnAboutAccessingKey, + configurable: true + }); +} + +function defineRefPropWarningGetter(props, displayName) { + var warnAboutAccessingRef = function () { + { + if (!specialPropRefWarningShown) { + specialPropRefWarningShown = true; + + error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName); + } + } + }; + + warnAboutAccessingRef.isReactWarning = true; + Object.defineProperty(props, 'ref', { + get: warnAboutAccessingRef, + configurable: true + }); +} + +function warnIfStringRefCannotBeAutoConverted(config) { + { + if (typeof config.ref === 'string' && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) { + var componentName = getComponentName(ReactCurrentOwner.current.type); + + if (!didWarnAboutStringRefs[componentName]) { + error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://fb.me/react-strict-mode-string-ref', getComponentName(ReactCurrentOwner.current.type), config.ref); + + didWarnAboutStringRefs[componentName] = true; + } + } + } +} +/** + * Factory method to create a new React element. This no longer adheres to + * the class pattern, so do not use new to call it. Also, instanceof check + * will not work. Instead test $$typeof field against Symbol.for('react.element') to check + * if something is a React Element. + * + * @param {*} type + * @param {*} props + * @param {*} key + * @param {string|object} ref + * @param {*} owner + * @param {*} self A *temporary* helper to detect places where `this` is + * different from the `owner` when React.createElement is called, so that we + * can warn. We want to get rid of owner and replace string `ref`s with arrow + * functions, and as long as `this` and owner are the same, there will be no + * change in behavior. + * @param {*} source An annotation object (added by a transpiler or otherwise) + * indicating filename, line number, and/or other information. + * @internal + */ + + +var ReactElement = function (type, key, ref, self, source, owner, props) { + var element = { + // This tag allows us to uniquely identify this as a React Element + $$typeof: REACT_ELEMENT_TYPE, + // Built-in properties that belong on the element + type: type, + key: key, + ref: ref, + props: props, + // Record the component responsible for creating this element. + _owner: owner + }; + + { + // The validation flag is currently mutative. We put it on + // an external backing store so that we can freeze the whole object. + // This can be replaced with a WeakMap once they are implemented in + // commonly used development environments. + element._store = {}; // To make comparing ReactElements easier for testing purposes, we make + // the validation flag non-enumerable (where possible, which should + // include every environment we run tests in), so the test framework + // ignores it. + + Object.defineProperty(element._store, 'validated', { + configurable: false, + enumerable: false, + writable: true, + value: false + }); // self and source are DEV only properties. + + Object.defineProperty(element, '_self', { + configurable: false, + enumerable: false, + writable: false, + value: self + }); // Two elements created in two different places should be considered + // equal for testing purposes and therefore we hide it from enumeration. + + Object.defineProperty(element, '_source', { + configurable: false, + enumerable: false, + writable: false, + value: source + }); + + if (Object.freeze) { + Object.freeze(element.props); + Object.freeze(element); + } + } + + return element; +}; +/** + * Create and return a new ReactElement of the given type. + * See https://reactjs.org/docs/react-api.html#createelement + */ + +function createElement(type, config, children) { + var propName; // Reserved names are extracted + + var props = {}; + var key = null; + var ref = null; + var self = null; + var source = null; + + if (config != null) { + if (hasValidRef(config)) { + ref = config.ref; + + { + warnIfStringRefCannotBeAutoConverted(config); + } + } + + if (hasValidKey(config)) { + key = '' + config.key; + } + + self = config.__self === undefined ? null : config.__self; + source = config.__source === undefined ? null : config.__source; // Remaining properties are added to a new props object + + for (propName in config) { + if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) { + props[propName] = config[propName]; + } + } + } // Children can be more than one argument, and those are transferred onto + // the newly allocated props object. + + + var childrenLength = arguments.length - 2; + + if (childrenLength === 1) { + props.children = children; + } else if (childrenLength > 1) { + var childArray = Array(childrenLength); + + for (var i = 0; i < childrenLength; i++) { + childArray[i] = arguments[i + 2]; + } + + { + if (Object.freeze) { + Object.freeze(childArray); + } + } + + props.children = childArray; + } // Resolve default props + + + if (type && type.defaultProps) { + var defaultProps = type.defaultProps; + + for (propName in defaultProps) { + if (props[propName] === undefined) { + props[propName] = defaultProps[propName]; + } + } + } + + { + if (key || ref) { + var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type; + + if (key) { + defineKeyPropWarningGetter(props, displayName); + } + + if (ref) { + defineRefPropWarningGetter(props, displayName); + } + } + } + + return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props); +} +function cloneAndReplaceKey(oldElement, newKey) { + var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props); + return newElement; +} +/** + * Clone and return a new ReactElement using element as the starting point. + * See https://reactjs.org/docs/react-api.html#cloneelement + */ + +function cloneElement(element, config, children) { + if (!!(element === null || element === undefined)) { + { + throw Error( "React.cloneElement(...): The argument must be a React element, but you passed " + element + "." ); + } + } + + var propName; // Original props are copied + + var props = _assign({}, element.props); // Reserved names are extracted + + + var key = element.key; + var ref = element.ref; // Self is preserved since the owner is preserved. + + var self = element._self; // Source is preserved since cloneElement is unlikely to be targeted by a + // transpiler, and the original source is probably a better indicator of the + // true owner. + + var source = element._source; // Owner will be preserved, unless ref is overridden + + var owner = element._owner; + + if (config != null) { + if (hasValidRef(config)) { + // Silently steal the ref from the parent. + ref = config.ref; + owner = ReactCurrentOwner.current; + } + + if (hasValidKey(config)) { + key = '' + config.key; + } // Remaining properties override existing props + + + var defaultProps; + + if (element.type && element.type.defaultProps) { + defaultProps = element.type.defaultProps; + } + + for (propName in config) { + if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) { + if (config[propName] === undefined && defaultProps !== undefined) { + // Resolve default props + props[propName] = defaultProps[propName]; + } else { + props[propName] = config[propName]; + } + } + } + } // Children can be more than one argument, and those are transferred onto + // the newly allocated props object. + + + var childrenLength = arguments.length - 2; + + if (childrenLength === 1) { + props.children = children; + } else if (childrenLength > 1) { + var childArray = Array(childrenLength); + + for (var i = 0; i < childrenLength; i++) { + childArray[i] = arguments[i + 2]; + } + + props.children = childArray; + } + + return ReactElement(element.type, key, ref, self, source, owner, props); +} +/** + * Verifies the object is a ReactElement. + * See https://reactjs.org/docs/react-api.html#isvalidelement + * @param {?object} object + * @return {boolean} True if `object` is a ReactElement. + * @final + */ + +function isValidElement(object) { + return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE; +} + +var SEPARATOR = '.'; +var SUBSEPARATOR = ':'; +/** + * Escape and wrap key so it is safe to use as a reactid + * + * @param {string} key to be escaped. + * @return {string} the escaped key. + */ + +function escape(key) { + var escapeRegex = /[=:]/g; + var escaperLookup = { + '=': '=0', + ':': '=2' + }; + var escapedString = ('' + key).replace(escapeRegex, function (match) { + return escaperLookup[match]; + }); + return '$' + escapedString; +} +/** + * TODO: Test that a single child and an array with one item have the same key + * pattern. + */ + + +var didWarnAboutMaps = false; +var userProvidedKeyEscapeRegex = /\/+/g; + +function escapeUserProvidedKey(text) { + return ('' + text).replace(userProvidedKeyEscapeRegex, '$&/'); +} + +var POOL_SIZE = 10; +var traverseContextPool = []; + +function getPooledTraverseContext(mapResult, keyPrefix, mapFunction, mapContext) { + if (traverseContextPool.length) { + var traverseContext = traverseContextPool.pop(); + traverseContext.result = mapResult; + traverseContext.keyPrefix = keyPrefix; + traverseContext.func = mapFunction; + traverseContext.context = mapContext; + traverseContext.count = 0; + return traverseContext; + } else { + return { + result: mapResult, + keyPrefix: keyPrefix, + func: mapFunction, + context: mapContext, + count: 0 + }; + } +} + +function releaseTraverseContext(traverseContext) { + traverseContext.result = null; + traverseContext.keyPrefix = null; + traverseContext.func = null; + traverseContext.context = null; + traverseContext.count = 0; + + if (traverseContextPool.length < POOL_SIZE) { + traverseContextPool.push(traverseContext); + } +} +/** + * @param {?*} children Children tree container. + * @param {!string} nameSoFar Name of the key path so far. + * @param {!function} callback Callback to invoke with each child found. + * @param {?*} traverseContext Used to pass information throughout the traversal + * process. + * @return {!number} The number of children in this subtree. + */ + + +function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) { + var type = typeof children; + + if (type === 'undefined' || type === 'boolean') { + // All of the above are perceived as null. + children = null; + } + + var invokeCallback = false; + + if (children === null) { + invokeCallback = true; + } else { + switch (type) { + case 'string': + case 'number': + invokeCallback = true; + break; + + case 'object': + switch (children.$$typeof) { + case REACT_ELEMENT_TYPE: + case REACT_PORTAL_TYPE: + invokeCallback = true; + } + + } + } + + if (invokeCallback) { + callback(traverseContext, children, // If it's the only child, treat the name as if it was wrapped in an array + // so that it's consistent if the number of children grows. + nameSoFar === '' ? SEPARATOR + getComponentKey(children, 0) : nameSoFar); + return 1; + } + + var child; + var nextName; + var subtreeCount = 0; // Count of children found in the current subtree. + + var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR; + + if (Array.isArray(children)) { + for (var i = 0; i < children.length; i++) { + child = children[i]; + nextName = nextNamePrefix + getComponentKey(child, i); + subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext); + } + } else { + var iteratorFn = getIteratorFn(children); + + if (typeof iteratorFn === 'function') { + + { + // Warn about using Maps as children + if (iteratorFn === children.entries) { + if (!didWarnAboutMaps) { + warn('Using Maps as children is deprecated and will be removed in ' + 'a future major release. Consider converting children to ' + 'an array of keyed ReactElements instead.'); + } + + didWarnAboutMaps = true; + } + } + + var iterator = iteratorFn.call(children); + var step; + var ii = 0; + + while (!(step = iterator.next()).done) { + child = step.value; + nextName = nextNamePrefix + getComponentKey(child, ii++); + subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext); + } + } else if (type === 'object') { + var addendum = ''; + + { + addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + ReactDebugCurrentFrame.getStackAddendum(); + } + + var childrenString = '' + children; + + { + { + throw Error( "Objects are not valid as a React child (found: " + (childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString) + ")." + addendum ); + } + } + } + } + + return subtreeCount; +} +/** + * Traverses children that are typically specified as `props.children`, but + * might also be specified through attributes: + * + * - `traverseAllChildren(this.props.children, ...)` + * - `traverseAllChildren(this.props.leftPanelChildren, ...)` + * + * The `traverseContext` is an optional argument that is passed through the + * entire traversal. It can be used to store accumulations or anything else that + * the callback might find relevant. + * + * @param {?*} children Children tree object. + * @param {!function} callback To invoke upon traversing each child. + * @param {?*} traverseContext Context for traversal. + * @return {!number} The number of children in this subtree. + */ + + +function traverseAllChildren(children, callback, traverseContext) { + if (children == null) { + return 0; + } + + return traverseAllChildrenImpl(children, '', callback, traverseContext); +} +/** + * Generate a key string that identifies a component within a set. + * + * @param {*} component A component that could contain a manual key. + * @param {number} index Index that is used if a manual key is not provided. + * @return {string} + */ + + +function getComponentKey(component, index) { + // Do some typechecking here since we call this blindly. We want to ensure + // that we don't block potential future ES APIs. + if (typeof component === 'object' && component !== null && component.key != null) { + // Explicit key + return escape(component.key); + } // Implicit key determined by the index in the set + + + return index.toString(36); +} + +function forEachSingleChild(bookKeeping, child, name) { + var func = bookKeeping.func, + context = bookKeeping.context; + func.call(context, child, bookKeeping.count++); +} +/** + * Iterates through children that are typically specified as `props.children`. + * + * See https://reactjs.org/docs/react-api.html#reactchildrenforeach + * + * The provided forEachFunc(child, index) will be called for each + * leaf child. + * + * @param {?*} children Children tree container. + * @param {function(*, int)} forEachFunc + * @param {*} forEachContext Context for forEachContext. + */ + + +function forEachChildren(children, forEachFunc, forEachContext) { + if (children == null) { + return children; + } + + var traverseContext = getPooledTraverseContext(null, null, forEachFunc, forEachContext); + traverseAllChildren(children, forEachSingleChild, traverseContext); + releaseTraverseContext(traverseContext); +} + +function mapSingleChildIntoContext(bookKeeping, child, childKey) { + var result = bookKeeping.result, + keyPrefix = bookKeeping.keyPrefix, + func = bookKeeping.func, + context = bookKeeping.context; + var mappedChild = func.call(context, child, bookKeeping.count++); + + if (Array.isArray(mappedChild)) { + mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, function (c) { + return c; + }); + } else if (mappedChild != null) { + if (isValidElement(mappedChild)) { + mappedChild = cloneAndReplaceKey(mappedChild, // Keep both the (mapped) and old keys if they differ, just as + // traverseAllChildren used to do for objects as children + keyPrefix + (mappedChild.key && (!child || child.key !== mappedChild.key) ? escapeUserProvidedKey(mappedChild.key) + '/' : '') + childKey); + } + + result.push(mappedChild); + } +} + +function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) { + var escapedPrefix = ''; + + if (prefix != null) { + escapedPrefix = escapeUserProvidedKey(prefix) + '/'; + } + + var traverseContext = getPooledTraverseContext(array, escapedPrefix, func, context); + traverseAllChildren(children, mapSingleChildIntoContext, traverseContext); + releaseTraverseContext(traverseContext); +} +/** + * Maps children that are typically specified as `props.children`. + * + * See https://reactjs.org/docs/react-api.html#reactchildrenmap + * + * The provided mapFunction(child, key, index) will be called for each + * leaf child. + * + * @param {?*} children Children tree container. + * @param {function(*, int)} func The map function. + * @param {*} context Context for mapFunction. + * @return {object} Object containing the ordered map of results. + */ + + +function mapChildren(children, func, context) { + if (children == null) { + return children; + } + + var result = []; + mapIntoWithKeyPrefixInternal(children, result, null, func, context); + return result; +} +/** + * Count the number of children that are typically specified as + * `props.children`. + * + * See https://reactjs.org/docs/react-api.html#reactchildrencount + * + * @param {?*} children Children tree container. + * @return {number} The number of children. + */ + + +function countChildren(children) { + return traverseAllChildren(children, function () { + return null; + }, null); +} +/** + * Flatten a children object (typically specified as `props.children`) and + * return an array with appropriately re-keyed children. + * + * See https://reactjs.org/docs/react-api.html#reactchildrentoarray + */ + + +function toArray(children) { + var result = []; + mapIntoWithKeyPrefixInternal(children, result, null, function (child) { + return child; + }); + return result; +} +/** + * Returns the first child in a collection of children and verifies that there + * is only one child in the collection. + * + * See https://reactjs.org/docs/react-api.html#reactchildrenonly + * + * The current implementation of this function assumes that a single child gets + * passed without a wrapper, but the purpose of this helper function is to + * abstract away the particular structure of children. + * + * @param {?object} children Child collection structure. + * @return {ReactElement} The first and only `ReactElement` contained in the + * structure. + */ + + +function onlyChild(children) { + if (!isValidElement(children)) { + { + throw Error( "React.Children.only expected to receive a single React element child." ); + } + } + + return children; +} + +function createContext(defaultValue, calculateChangedBits) { + if (calculateChangedBits === undefined) { + calculateChangedBits = null; + } else { + { + if (calculateChangedBits !== null && typeof calculateChangedBits !== 'function') { + error('createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits); + } + } + } + + var context = { + $$typeof: REACT_CONTEXT_TYPE, + _calculateChangedBits: calculateChangedBits, + // As a workaround to support multiple concurrent renderers, we categorize + // some renderers as primary and others as secondary. We only expect + // there to be two concurrent renderers at most: React Native (primary) and + // Fabric (secondary); React DOM (primary) and React ART (secondary). + // Secondary renderers store their context values on separate fields. + _currentValue: defaultValue, + _currentValue2: defaultValue, + // Used to track how many concurrent renderers this context currently + // supports within in a single renderer. Such as parallel server rendering. + _threadCount: 0, + // These are circular + Provider: null, + Consumer: null + }; + context.Provider = { + $$typeof: REACT_PROVIDER_TYPE, + _context: context + }; + var hasWarnedAboutUsingNestedContextConsumers = false; + var hasWarnedAboutUsingConsumerProvider = false; + + { + // A separate object, but proxies back to the original context object for + // backwards compatibility. It has a different $$typeof, so we can properly + // warn for the incorrect usage of Context as a Consumer. + var Consumer = { + $$typeof: REACT_CONTEXT_TYPE, + _context: context, + _calculateChangedBits: context._calculateChangedBits + }; // $FlowFixMe: Flow complains about not setting a value, which is intentional here + + Object.defineProperties(Consumer, { + Provider: { + get: function () { + if (!hasWarnedAboutUsingConsumerProvider) { + hasWarnedAboutUsingConsumerProvider = true; + + error('Rendering is not supported and will be removed in ' + 'a future major release. Did you mean to render instead?'); + } + + return context.Provider; + }, + set: function (_Provider) { + context.Provider = _Provider; + } + }, + _currentValue: { + get: function () { + return context._currentValue; + }, + set: function (_currentValue) { + context._currentValue = _currentValue; + } + }, + _currentValue2: { + get: function () { + return context._currentValue2; + }, + set: function (_currentValue2) { + context._currentValue2 = _currentValue2; + } + }, + _threadCount: { + get: function () { + return context._threadCount; + }, + set: function (_threadCount) { + context._threadCount = _threadCount; + } + }, + Consumer: { + get: function () { + if (!hasWarnedAboutUsingNestedContextConsumers) { + hasWarnedAboutUsingNestedContextConsumers = true; + + error('Rendering is not supported and will be removed in ' + 'a future major release. Did you mean to render instead?'); + } + + return context.Consumer; + } + } + }); // $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty + + context.Consumer = Consumer; + } + + { + context._currentRenderer = null; + context._currentRenderer2 = null; + } + + return context; +} + +function lazy(ctor) { + var lazyType = { + $$typeof: REACT_LAZY_TYPE, + _ctor: ctor, + // React uses these fields to store the result. + _status: -1, + _result: null + }; + + { + // In production, this would just set it on the object. + var defaultProps; + var propTypes; + Object.defineProperties(lazyType, { + defaultProps: { + configurable: true, + get: function () { + return defaultProps; + }, + set: function (newDefaultProps) { + error('React.lazy(...): It is not supported to assign `defaultProps` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.'); + + defaultProps = newDefaultProps; // Match production behavior more closely: + + Object.defineProperty(lazyType, 'defaultProps', { + enumerable: true + }); + } + }, + propTypes: { + configurable: true, + get: function () { + return propTypes; + }, + set: function (newPropTypes) { + error('React.lazy(...): It is not supported to assign `propTypes` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.'); + + propTypes = newPropTypes; // Match production behavior more closely: + + Object.defineProperty(lazyType, 'propTypes', { + enumerable: true + }); + } + } + }); + } + + return lazyType; +} + +function forwardRef(render) { + { + if (render != null && render.$$typeof === REACT_MEMO_TYPE) { + error('forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).'); + } else if (typeof render !== 'function') { + error('forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render); + } else { + if (render.length !== 0 && render.length !== 2) { + error('forwardRef render functions accept exactly two parameters: props and ref. %s', render.length === 1 ? 'Did you forget to use the ref parameter?' : 'Any additional parameter will be undefined.'); + } + } + + if (render != null) { + if (render.defaultProps != null || render.propTypes != null) { + error('forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?'); + } + } + } + + return { + $$typeof: REACT_FORWARD_REF_TYPE, + render: render + }; +} + +function isValidElementType(type) { + return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. + type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE); +} + +function memo(type, compare) { + { + if (!isValidElementType(type)) { + error('memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type); + } + } + + return { + $$typeof: REACT_MEMO_TYPE, + type: type, + compare: compare === undefined ? null : compare + }; +} + +function resolveDispatcher() { + var dispatcher = ReactCurrentDispatcher.current; + + if (!(dispatcher !== null)) { + { + throw Error( "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem." ); + } + } + + return dispatcher; +} + +function useContext(Context, unstable_observedBits) { + var dispatcher = resolveDispatcher(); + + { + if (unstable_observedBits !== undefined) { + error('useContext() second argument is reserved for future ' + 'use in React. Passing it is not supported. ' + 'You passed: %s.%s', unstable_observedBits, typeof unstable_observedBits === 'number' && Array.isArray(arguments[2]) ? '\n\nDid you call array.map(useContext)? ' + 'Calling Hooks inside a loop is not supported. ' + 'Learn more at https://fb.me/rules-of-hooks' : ''); + } // TODO: add a more generic warning for invalid values. + + + if (Context._context !== undefined) { + var realContext = Context._context; // Don't deduplicate because this legitimately causes bugs + // and nobody should be using this in existing code. + + if (realContext.Consumer === Context) { + error('Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be ' + 'removed in a future major release. Did you mean to call useContext(Context) instead?'); + } else if (realContext.Provider === Context) { + error('Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?'); + } + } + } + + return dispatcher.useContext(Context, unstable_observedBits); +} +function useState(initialState) { + var dispatcher = resolveDispatcher(); + return dispatcher.useState(initialState); +} +function useReducer(reducer, initialArg, init) { + var dispatcher = resolveDispatcher(); + return dispatcher.useReducer(reducer, initialArg, init); +} +function useRef(initialValue) { + var dispatcher = resolveDispatcher(); + return dispatcher.useRef(initialValue); +} +function useEffect(create, deps) { + var dispatcher = resolveDispatcher(); + return dispatcher.useEffect(create, deps); +} +function useLayoutEffect(create, deps) { + var dispatcher = resolveDispatcher(); + return dispatcher.useLayoutEffect(create, deps); +} +function useCallback(callback, deps) { + var dispatcher = resolveDispatcher(); + return dispatcher.useCallback(callback, deps); +} +function useMemo(create, deps) { + var dispatcher = resolveDispatcher(); + return dispatcher.useMemo(create, deps); +} +function useImperativeHandle(ref, create, deps) { + var dispatcher = resolveDispatcher(); + return dispatcher.useImperativeHandle(ref, create, deps); +} +function useDebugValue(value, formatterFn) { + { + var dispatcher = resolveDispatcher(); + return dispatcher.useDebugValue(value, formatterFn); + } +} + +var propTypesMisspellWarningShown; + +{ + propTypesMisspellWarningShown = false; +} + +function getDeclarationErrorAddendum() { + if (ReactCurrentOwner.current) { + var name = getComponentName(ReactCurrentOwner.current.type); + + if (name) { + return '\n\nCheck the render method of `' + name + '`.'; + } + } + + return ''; +} + +function getSourceInfoErrorAddendum(source) { + if (source !== undefined) { + var fileName = source.fileName.replace(/^.*[\\\/]/, ''); + var lineNumber = source.lineNumber; + return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.'; + } + + return ''; +} + +function getSourceInfoErrorAddendumForProps(elementProps) { + if (elementProps !== null && elementProps !== undefined) { + return getSourceInfoErrorAddendum(elementProps.__source); + } + + return ''; +} +/** + * Warn if there's no key explicitly set on dynamic arrays of children or + * object keys are not valid. This allows us to keep track of children between + * updates. + */ + + +var ownerHasKeyUseWarning = {}; + +function getCurrentComponentErrorInfo(parentType) { + var info = getDeclarationErrorAddendum(); + + if (!info) { + var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name; + + if (parentName) { + info = "\n\nCheck the top-level render call using <" + parentName + ">."; + } + } + + return info; +} +/** + * Warn if the element doesn't have an explicit key assigned to it. + * This element is in an array. The array could grow and shrink or be + * reordered. All children that haven't already been validated are required to + * have a "key" property assigned to it. Error statuses are cached so a warning + * will only be shown once. + * + * @internal + * @param {ReactElement} element Element that requires a key. + * @param {*} parentType element's parent's type. + */ + + +function validateExplicitKey(element, parentType) { + if (!element._store || element._store.validated || element.key != null) { + return; + } + + element._store.validated = true; + var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType); + + if (ownerHasKeyUseWarning[currentComponentErrorInfo]) { + return; + } + + ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a + // property, it may be the creator of the child that's responsible for + // assigning it a key. + + var childOwner = ''; + + if (element && element._owner && element._owner !== ReactCurrentOwner.current) { + // Give the component that originally created this child. + childOwner = " It was passed a child from " + getComponentName(element._owner.type) + "."; + } + + setCurrentlyValidatingElement(element); + + { + error('Each child in a list should have a unique "key" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.', currentComponentErrorInfo, childOwner); + } + + setCurrentlyValidatingElement(null); +} +/** + * Ensure that every element either is passed in a static location, in an + * array with an explicit keys property defined, or in an object literal + * with valid key property. + * + * @internal + * @param {ReactNode} node Statically passed child of any type. + * @param {*} parentType node's parent's type. + */ + + +function validateChildKeys(node, parentType) { + if (typeof node !== 'object') { + return; + } + + if (Array.isArray(node)) { + for (var i = 0; i < node.length; i++) { + var child = node[i]; + + if (isValidElement(child)) { + validateExplicitKey(child, parentType); + } + } + } else if (isValidElement(node)) { + // This element was passed in a valid location. + if (node._store) { + node._store.validated = true; + } + } else if (node) { + var iteratorFn = getIteratorFn(node); + + if (typeof iteratorFn === 'function') { + // Entry iterators used to provide implicit keys, + // but now we print a separate warning for them later. + if (iteratorFn !== node.entries) { + var iterator = iteratorFn.call(node); + var step; + + while (!(step = iterator.next()).done) { + if (isValidElement(step.value)) { + validateExplicitKey(step.value, parentType); + } + } + } + } + } +} +/** + * Given an element, validate that its props follow the propTypes definition, + * provided by the type. + * + * @param {ReactElement} element + */ + + +function validatePropTypes(element) { + { + var type = element.type; + + if (type === null || type === undefined || typeof type === 'string') { + return; + } + + var name = getComponentName(type); + var propTypes; + + if (typeof type === 'function') { + propTypes = type.propTypes; + } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here. + // Inner props are checked in the reconciler. + type.$$typeof === REACT_MEMO_TYPE)) { + propTypes = type.propTypes; + } else { + return; + } + + if (propTypes) { + setCurrentlyValidatingElement(element); + checkPropTypes(propTypes, element.props, 'prop', name, ReactDebugCurrentFrame.getStackAddendum); + setCurrentlyValidatingElement(null); + } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) { + propTypesMisspellWarningShown = true; + + error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', name || 'Unknown'); + } + + if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) { + error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.'); + } + } +} +/** + * Given a fragment, validate that it can only be provided with fragment props + * @param {ReactElement} fragment + */ + + +function validateFragmentProps(fragment) { + { + setCurrentlyValidatingElement(fragment); + var keys = Object.keys(fragment.props); + + for (var i = 0; i < keys.length; i++) { + var key = keys[i]; + + if (key !== 'children' && key !== 'key') { + error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key); + + break; + } + } + + if (fragment.ref !== null) { + error('Invalid attribute `ref` supplied to `React.Fragment`.'); + } + + setCurrentlyValidatingElement(null); + } +} +function createElementWithValidation(type, props, children) { + var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to + // succeed and there will likely be errors in render. + + if (!validType) { + var info = ''; + + if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) { + info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports."; + } + + var sourceInfo = getSourceInfoErrorAddendumForProps(props); + + if (sourceInfo) { + info += sourceInfo; + } else { + info += getDeclarationErrorAddendum(); + } + + var typeString; + + if (type === null) { + typeString = 'null'; + } else if (Array.isArray(type)) { + typeString = 'array'; + } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) { + typeString = "<" + (getComponentName(type.type) || 'Unknown') + " />"; + info = ' Did you accidentally export a JSX literal instead of a component?'; + } else { + typeString = typeof type; + } + + { + error('React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info); + } + } + + var element = createElement.apply(this, arguments); // The result can be nullish if a mock or a custom function is used. + // TODO: Drop this when these are no longer allowed as the type argument. + + if (element == null) { + return element; + } // Skip key warning if the type isn't valid since our key validation logic + // doesn't expect a non-string/function type and can throw confusing errors. + // We don't want exception behavior to differ between dev and prod. + // (Rendering will throw with a helpful message and as soon as the type is + // fixed, the key warnings will appear.) + + + if (validType) { + for (var i = 2; i < arguments.length; i++) { + validateChildKeys(arguments[i], type); + } + } + + if (type === REACT_FRAGMENT_TYPE) { + validateFragmentProps(element); + } else { + validatePropTypes(element); + } + + return element; +} +var didWarnAboutDeprecatedCreateFactory = false; +function createFactoryWithValidation(type) { + var validatedFactory = createElementWithValidation.bind(null, type); + validatedFactory.type = type; + + { + if (!didWarnAboutDeprecatedCreateFactory) { + didWarnAboutDeprecatedCreateFactory = true; + + warn('React.createFactory() is deprecated and will be removed in ' + 'a future major release. Consider using JSX ' + 'or use React.createElement() directly instead.'); + } // Legacy hook: remove it + + + Object.defineProperty(validatedFactory, 'type', { + enumerable: false, + get: function () { + warn('Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.'); + + Object.defineProperty(this, 'type', { + value: type + }); + return type; + } + }); + } + + return validatedFactory; +} +function cloneElementWithValidation(element, props, children) { + var newElement = cloneElement.apply(this, arguments); + + for (var i = 2; i < arguments.length; i++) { + validateChildKeys(arguments[i], newElement.type); + } + + validatePropTypes(newElement); + return newElement; +} + +{ + + try { + var frozenObject = Object.freeze({}); + var testMap = new Map([[frozenObject, null]]); + var testSet = new Set([frozenObject]); // This is necessary for Rollup to not consider these unused. + // https://github.com/rollup/rollup/issues/1771 + // TODO: we can remove these if Rollup fixes the bug. + + testMap.set(0, 0); + testSet.add(0); + } catch (e) { + } +} + +var createElement$1 = createElementWithValidation ; +var cloneElement$1 = cloneElementWithValidation ; +var createFactory = createFactoryWithValidation ; +var Children = { + map: mapChildren, + forEach: forEachChildren, + count: countChildren, + toArray: toArray, + only: onlyChild +}; + +exports.Children = Children; +exports.Component = Component; +exports.Fragment = REACT_FRAGMENT_TYPE; +exports.Profiler = REACT_PROFILER_TYPE; +exports.PureComponent = PureComponent; +exports.StrictMode = REACT_STRICT_MODE_TYPE; +exports.Suspense = REACT_SUSPENSE_TYPE; +exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals; +exports.cloneElement = cloneElement$1; +exports.createContext = createContext; +exports.createElement = createElement$1; +exports.createFactory = createFactory; +exports.createRef = createRef; +exports.forwardRef = forwardRef; +exports.isValidElement = isValidElement; +exports.lazy = lazy; +exports.memo = memo; +exports.useCallback = useCallback; +exports.useContext = useContext; +exports.useDebugValue = useDebugValue; +exports.useEffect = useEffect; +exports.useImperativeHandle = useImperativeHandle; +exports.useLayoutEffect = useLayoutEffect; +exports.useMemo = useMemo; +exports.useReducer = useReducer; +exports.useRef = useRef; +exports.useState = useState; +exports.version = ReactVersion; + })(); +} + + +/***/ }), + +/***/ "./node_modules/react/index.js": +/*!*************************************!*\ + !*** ./node_modules/react/index.js ***! + \*************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +if (false) {} else { + module.exports = __webpack_require__(/*! ./cjs/react.development.js */ "./node_modules/react/cjs/react.development.js"); +} + + +/***/ }), + +/***/ "./node_modules/shallowequal/index.js": +/*!********************************************!*\ + !*** ./node_modules/shallowequal/index.js ***! + \********************************************/ +/*! no static exports found */ +/***/ (function(module, exports) { + +// + +module.exports = function shallowEqual(objA, objB, compare, compareContext) { + var ret = compare ? compare.call(compareContext, objA, objB) : void 0; + + if (ret !== void 0) { + return !!ret; + } + + if (objA === objB) { + return true; + } + + if (typeof objA !== "object" || !objA || typeof objB !== "object" || !objB) { + return false; + } + + var keysA = Object.keys(objA); + var keysB = Object.keys(objB); + + if (keysA.length !== keysB.length) { + return false; + } + + var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(objB); + + // Test for A's keys different from B. + for (var idx = 0; idx < keysA.length; idx++) { + var key = keysA[idx]; + + if (!bHasOwnProperty(key)) { + return false; + } + + var valueA = objA[key]; + var valueB = objB[key]; + + ret = compare ? compare.call(compareContext, valueA, valueB, key) : void 0; + + if (ret === false || (ret === void 0 && valueA !== valueB)) { + return false; + } + } + + return true; +}; + + +/***/ }), + +/***/ "./node_modules/styled-components/dist/styled-components.browser.esm.js": +/*!******************************************************************************!*\ + !*** ./node_modules/styled-components/dist/styled-components.browser.esm.js ***! + \******************************************************************************/ +/*! exports provided: default, ServerStyleSheet, StyleSheetConsumer, StyleSheetContext, StyleSheetManager, ThemeConsumer, ThemeContext, ThemeProvider, __PRIVATE__, createGlobalStyle, css, isStyledComponent, keyframes, useTheme, version, withTheme */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ServerStyleSheet", function() { return ServerStyleSheet; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StyleSheetConsumer", function() { return StyleSheetConsumer; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StyleSheetContext", function() { return StyleSheetContext; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StyleSheetManager", function() { return StyleSheetManager; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ThemeConsumer", function() { return ThemeConsumer; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ThemeContext", function() { return ThemeContext; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ThemeProvider", function() { return ThemeProvider; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__PRIVATE__", function() { return __PRIVATE__; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createGlobalStyle", function() { return createGlobalStyle; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "css", function() { return css; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isStyledComponent", function() { return isStyledComponent; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "keyframes", function() { return keyframes; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useTheme", function() { return useTheme; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "version", function() { return version; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "withTheme", function() { return withTheme; }); +/* harmony import */ var react_is__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-is */ "./node_modules/react-is/index.js"); +/* harmony import */ var react_is__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_is__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! shallowequal */ "./node_modules/shallowequal/index.js"); +/* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(shallowequal__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _emotion_stylis__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @emotion/stylis */ "./node_modules/@emotion/stylis/dist/stylis.browser.esm.js"); +/* harmony import */ var _emotion_unitless__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @emotion/unitless */ "./node_modules/@emotion/unitless/dist/unitless.browser.esm.js"); +/* harmony import */ var _emotion_is_prop_valid__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @emotion/is-prop-valid */ "./node_modules/@emotion/is-prop-valid/dist/is-prop-valid.browser.esm.js"); +/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! hoist-non-react-statics */ "./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"); +/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_6__); + + + + + + + + +function _extends() { + _extends = Object.assign || function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + + for (var key in source) { + if (Object.prototype.hasOwnProperty.call(source, key)) { + target[key] = source[key]; + } + } + } + + return target; + }; + + return _extends.apply(this, arguments); +} + +function _objectWithoutPropertiesLoose(source, excluded) { + if (source == null) return {}; + var target = {}; + var sourceKeys = Object.keys(source); + var key, i; + + for (i = 0; i < sourceKeys.length; i++) { + key = sourceKeys[i]; + if (excluded.indexOf(key) >= 0) continue; + target[key] = source[key]; + } + + return target; +} + +// +var interleave = (function (strings, interpolations) { + var result = [strings[0]]; + + for (var i = 0, len = interpolations.length; i < len; i += 1) { + result.push(interpolations[i], strings[i + 1]); + } + + return result; +}); + +// +var isPlainObject = (function (x) { + return x !== null && typeof x === 'object' && (x.toString ? x.toString() : Object.prototype.toString.call(x)) === '[object Object]' && !Object(react_is__WEBPACK_IMPORTED_MODULE_0__["typeOf"])(x); +}); + +// +var EMPTY_ARRAY = Object.freeze([]); +var EMPTY_OBJECT = Object.freeze({}); + +// +function isFunction(test) { + return typeof test === 'function'; +} + +// +function getComponentName(target) { + return ( true ? typeof target === 'string' && target : undefined) || // $FlowFixMe + target.displayName || // $FlowFixMe + target.name || 'Component'; +} + +// +function isStatelessFunction(test) { + return typeof test === 'function' && !(test.prototype && test.prototype.isReactComponent); +} + +// +function isStyledComponent(target) { + return target && typeof target.styledComponentId === 'string'; +} + +// +var SC_ATTR = typeof process !== 'undefined' && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || 'data-styled'; +var SC_ATTR_ACTIVE = 'active'; +var SC_ATTR_VERSION = 'data-styled-version'; +var SC_VERSION = "5.1.0"; +var SPLITTER = '/*!sc*/\n'; +var IS_BROWSER = typeof window !== 'undefined' && 'HTMLElement' in window; +var DISABLE_SPEEDY = typeof SC_DISABLE_SPEEDY === 'boolean' && SC_DISABLE_SPEEDY || typeof process !== 'undefined' && (process.env.REACT_APP_SC_DISABLE_SPEEDY || process.env.SC_DISABLE_SPEEDY) || "development" !== 'production'; // Shared empty execution context when generating static styles + +var STATIC_EXECUTION_CONTEXT = {}; + +// + +/* eslint-disable camelcase, no-undef */ +var getNonce = function getNonce() { + return true ? __webpack_require__.nc : undefined; +}; + +var errorMap = { + "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 ``\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 ``, 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" +}; + +// +var ERRORS = true ? errorMap : undefined; +/** + * super basic version of sprintf + */ + +function format() { + var a = arguments.length <= 0 ? undefined : arguments[0]; + var b = []; + + for (var c = 1, len = arguments.length; c < len; c += 1) { + b.push(c < 0 || arguments.length <= c ? undefined : arguments[c]); + } + + b.forEach(function (d) { + a = a.replace(/%[a-z]/, d); + }); + return a; +} +/** + * Create an error file out of errors.md for development and a simple web link to the full errors + * in production mode. + */ + + +function throwStyledComponentsError(code) { + for (var _len = arguments.length, interpolations = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + interpolations[_key - 1] = arguments[_key]; + } + + if (false) {} else { + throw new Error(format.apply(void 0, [ERRORS[code]].concat(interpolations)).trim()); + } +} + +// +var ELEMENT_TYPE = 1; +/* Node.ELEMENT_TYPE */ + +/** Find last style element if any inside target */ + +var findLastStyleTag = function findLastStyleTag(target) { + var childNodes = target.childNodes; + + for (var i = childNodes.length; i >= 0; i--) { + var child = childNodes[i]; + + if (child && child.nodeType === ELEMENT_TYPE && child.hasAttribute(SC_ATTR)) { + return child; + } + } + + return undefined; +}; +/** Create a style element inside `target` or after the last */ + + +var makeStyleTag = function makeStyleTag(target) { + var head = document.head; + var parent = target || head; + var style = document.createElement('style'); + var prevStyle = findLastStyleTag(parent); + var nextSibling = prevStyle !== undefined ? prevStyle.nextSibling : null; + style.setAttribute(SC_ATTR, SC_ATTR_ACTIVE); + style.setAttribute(SC_ATTR_VERSION, SC_VERSION); + var nonce = getNonce(); + if (nonce) style.setAttribute('nonce', nonce); + parent.insertBefore(style, nextSibling); + return style; +}; +/** Get the CSSStyleSheet instance for a given style element */ + +var getSheet = function getSheet(tag) { + if (tag.sheet) { + return tag.sheet; + } // Avoid Firefox quirk where the style element might not have a sheet property + + + var _document = document, + styleSheets = _document.styleSheets; + + for (var i = 0, l = styleSheets.length; i < l; i++) { + var sheet = styleSheets[i]; + + if (sheet.ownerNode === tag) { + return sheet; + } + } + + throwStyledComponentsError(17); + return undefined; +}; + +// +/** Create a CSSStyleSheet-like tag depending on the environment */ + +var makeTag = function makeTag(_ref) { + var isServer = _ref.isServer, + useCSSOMInjection = _ref.useCSSOMInjection, + target = _ref.target; + + if (isServer) { + return new VirtualTag(target); + } else if (useCSSOMInjection) { + return new CSSOMTag(target); + } else { + return new TextTag(target); + } +}; +var CSSOMTag = /*#__PURE__*/function () { + function CSSOMTag(target) { + var element = this.element = makeStyleTag(target); // Avoid Edge bug where empty style elements don't create sheets + + element.appendChild(document.createTextNode('')); + this.sheet = getSheet(element); + this.length = 0; + } + + var _proto = CSSOMTag.prototype; + + _proto.insertRule = function insertRule(index, rule) { + try { + this.sheet.insertRule(rule, index); + this.length++; + return true; + } catch (_error) { + return false; + } + }; + + _proto.deleteRule = function deleteRule(index) { + this.sheet.deleteRule(index); + this.length--; + }; + + _proto.getRule = function getRule(index) { + var rule = this.sheet.cssRules[index]; // Avoid IE11 quirk where cssText is inaccessible on some invalid rules + + if (rule !== undefined && typeof rule.cssText === 'string') { + return rule.cssText; + } else { + return ''; + } + }; + + return CSSOMTag; +}(); +/** A Tag that emulates the CSSStyleSheet API but uses text nodes */ + +var TextTag = /*#__PURE__*/function () { + function TextTag(target) { + var element = this.element = makeStyleTag(target); + this.nodes = element.childNodes; + this.length = 0; + } + + var _proto2 = TextTag.prototype; + + _proto2.insertRule = function insertRule(index, rule) { + if (index <= this.length && index >= 0) { + var node = document.createTextNode(rule); + var refNode = this.nodes[index]; + this.element.insertBefore(node, refNode || null); + this.length++; + return true; + } else { + return false; + } + }; + + _proto2.deleteRule = function deleteRule(index) { + this.element.removeChild(this.nodes[index]); + this.length--; + }; + + _proto2.getRule = function getRule(index) { + if (index < this.length) { + return this.nodes[index].textContent; + } else { + return ''; + } + }; + + return TextTag; +}(); +/** A completely virtual (server-side) Tag that doesn't manipulate the DOM */ + +var VirtualTag = /*#__PURE__*/function () { + function VirtualTag(_target) { + this.rules = []; + this.length = 0; + } + + var _proto3 = VirtualTag.prototype; + + _proto3.insertRule = function insertRule(index, rule) { + if (index <= this.length) { + this.rules.splice(index, 0, rule); + this.length++; + return true; + } else { + return false; + } + }; + + _proto3.deleteRule = function deleteRule(index) { + this.rules.splice(index, 1); + this.length--; + }; + + _proto3.getRule = function getRule(index) { + if (index < this.length) { + return this.rules[index]; + } else { + return ''; + } + }; + + return VirtualTag; +}(); + +// +/** Create a GroupedTag with an underlying Tag implementation */ + +var makeGroupedTag = function makeGroupedTag(tag) { + return new DefaultGroupedTag(tag); +}; +var BASE_SIZE = 1 << 9; + +var DefaultGroupedTag = /*#__PURE__*/function () { + function DefaultGroupedTag(tag) { + this.groupSizes = new Uint32Array(BASE_SIZE); + this.length = BASE_SIZE; + this.tag = tag; + } + + var _proto = DefaultGroupedTag.prototype; + + _proto.indexOfGroup = function indexOfGroup(group) { + var index = 0; + + for (var i = 0; i < group; i++) { + index += this.groupSizes[i]; + } + + return index; + }; + + _proto.insertRules = function insertRules(group, rules) { + if (group >= this.groupSizes.length) { + var oldBuffer = this.groupSizes; + var oldSize = oldBuffer.length; + var newSize = oldSize; + + while (group >= newSize) { + newSize <<= 1; + + if (newSize < 0) { + throwStyledComponentsError(16, "" + group); + } + } + + this.groupSizes = new Uint32Array(newSize); + this.groupSizes.set(oldBuffer); + this.length = newSize; + + for (var i = oldSize; i < newSize; i++) { + this.groupSizes[i] = 0; + } + } + + var ruleIndex = this.indexOfGroup(group + 1); + + for (var _i = 0, l = rules.length; _i < l; _i++) { + if (this.tag.insertRule(ruleIndex, rules[_i])) { + this.groupSizes[group]++; + ruleIndex++; + } + } + }; + + _proto.clearGroup = function clearGroup(group) { + if (group < this.length) { + var length = this.groupSizes[group]; + var startIndex = this.indexOfGroup(group); + var endIndex = startIndex + length; + this.groupSizes[group] = 0; + + for (var i = startIndex; i < endIndex; i++) { + this.tag.deleteRule(startIndex); + } + } + }; + + _proto.getGroup = function getGroup(group) { + var css = ''; + + if (group >= this.length || this.groupSizes[group] === 0) { + return css; + } + + var length = this.groupSizes[group]; + var startIndex = this.indexOfGroup(group); + var endIndex = startIndex + length; + + for (var i = startIndex; i < endIndex; i++) { + css += "" + this.tag.getRule(i) + SPLITTER; + } + + return css; + }; + + return DefaultGroupedTag; +}(); + +// +var MAX_SMI = 1 << 31 - 1; +var groupIDRegister = new Map(); +var reverseRegister = new Map(); +var nextFreeGroup = 1; +var getGroupForId = function getGroupForId(id) { + if (groupIDRegister.has(id)) { + return groupIDRegister.get(id); + } + + var group = nextFreeGroup++; + + if ( true && ((group | 0) < 0 || group > MAX_SMI)) { + throwStyledComponentsError(16, "" + group); + } + + groupIDRegister.set(id, group); + reverseRegister.set(group, id); + return group; +}; +var getIdForGroup = function getIdForGroup(group) { + return reverseRegister.get(group); +}; +var setGroupForId = function setGroupForId(id, group) { + if (group >= nextFreeGroup) { + nextFreeGroup = group + 1; + } + + groupIDRegister.set(id, group); + reverseRegister.set(group, id); +}; + +// +var SELECTOR = "style[" + SC_ATTR + "][" + SC_ATTR_VERSION + "=\"" + SC_VERSION + "\"]"; +var MARKER_RE = new RegExp("^" + SC_ATTR + "\\.g(\\d+)\\[id=\"([\\w\\d-]+)\"\\].*?\"([^\"]*)"); +var outputSheet = function outputSheet(sheet) { + var tag = sheet.getTag(); + var length = tag.length; + var css = ''; + + for (var group = 0; group < length; group++) { + var id = getIdForGroup(group); + if (id === undefined) continue; + var names = sheet.names.get(id); + var rules = tag.getGroup(group); + if (names === undefined || rules.length === 0) continue; + var selector = SC_ATTR + ".g" + group + "[id=\"" + id + "\"]"; + var content = ''; + + if (names !== undefined) { + names.forEach(function (name) { + if (name.length > 0) { + content += name + ","; + } + }); + } // NOTE: It's easier to collect rules and have the marker + // after the actual rules to simplify the rehydration + + + css += "" + rules + selector + "{content:\"" + content + "\"}" + SPLITTER; + } + + return css; +}; + +var rehydrateNamesFromContent = function rehydrateNamesFromContent(sheet, id, content) { + var names = content.split(','); + var name; + + for (var i = 0, l = names.length; i < l; i++) { + // eslint-disable-next-line + if (name = names[i]) { + sheet.registerName(id, name); + } + } +}; + +var rehydrateSheetFromTag = function rehydrateSheetFromTag(sheet, style) { + var parts = style.innerHTML.split(SPLITTER); + var rules = []; + + for (var i = 0, l = parts.length; i < l; i++) { + var part = parts[i].trim(); + if (!part) continue; + var marker = part.match(MARKER_RE); + + if (marker) { + var group = parseInt(marker[1], 10) | 0; + var id = marker[2]; + + if (group !== 0) { + // Rehydrate componentId to group index mapping + setGroupForId(id, group); // Rehydrate names and rules + // looks like: data-styled.g11[id="idA"]{content:"nameA,"} + + rehydrateNamesFromContent(sheet, id, marker[3]); + sheet.getTag().insertRules(group, rules); + } + + rules.length = 0; + } else { + rules.push(part); + } + } +}; + +var rehydrateSheet = function rehydrateSheet(sheet) { + var nodes = document.querySelectorAll(SELECTOR); + + for (var i = 0, l = nodes.length; i < l; i++) { + var node = nodes[i]; + + if (node && node.getAttribute(SC_ATTR) !== SC_ATTR_ACTIVE) { + rehydrateSheetFromTag(sheet, node); + + if (node.parentNode) { + node.parentNode.removeChild(node); + } + } + } +}; + +var SHOULD_REHYDRATE = IS_BROWSER; +var defaultOptions = { + isServer: !IS_BROWSER, + useCSSOMInjection: !DISABLE_SPEEDY +}; +/** Contains the main stylesheet logic for stringification and caching */ + +var StyleSheet = /*#__PURE__*/function () { + /** Register a group ID to give it an index */ + StyleSheet.registerId = function registerId(id) { + return getGroupForId(id); + }; + + function StyleSheet(options, globalStyles, names) { + if (options === void 0) { + options = defaultOptions; + } + + if (globalStyles === void 0) { + globalStyles = {}; + } + + this.options = _extends({}, defaultOptions, {}, options); + this.gs = globalStyles; + this.names = new Map(names); // We rehydrate only once and use the sheet that is created first + + if (!this.options.isServer && IS_BROWSER && SHOULD_REHYDRATE) { + SHOULD_REHYDRATE = false; + rehydrateSheet(this); + } + } + + var _proto = StyleSheet.prototype; + + _proto.reconstructWithOptions = function reconstructWithOptions(options) { + return new StyleSheet(_extends({}, this.options, {}, options), this.gs, this.names); + }; + + _proto.allocateGSInstance = function allocateGSInstance(id) { + return this.gs[id] = (this.gs[id] || 0) + 1; + } + /** Lazily initialises a GroupedTag for when it's actually needed */ + ; + + _proto.getTag = function getTag() { + return this.tag || (this.tag = makeGroupedTag(makeTag(this.options))); + } + /** Check whether a name is known for caching */ + ; + + _proto.hasNameForId = function hasNameForId(id, name) { + return this.names.has(id) && this.names.get(id).has(name); + } + /** Mark a group's name as known for caching */ + ; + + _proto.registerName = function registerName(id, name) { + getGroupForId(id); + + if (!this.names.has(id)) { + var groupNames = new Set(); + groupNames.add(name); + this.names.set(id, groupNames); + } else { + this.names.get(id).add(name); + } + } + /** Insert new rules which also marks the name as known */ + ; + + _proto.insertRules = function insertRules(id, name, rules) { + this.registerName(id, name); + this.getTag().insertRules(getGroupForId(id), rules); + } + /** Clears all cached names for a given group ID */ + ; + + _proto.clearNames = function clearNames(id) { + if (this.names.has(id)) { + this.names.get(id).clear(); + } + } + /** Clears all rules for a given group ID */ + ; + + _proto.clearRules = function clearRules(id) { + this.getTag().clearGroup(getGroupForId(id)); + this.clearNames(id); + } + /** Clears the entire tag which deletes all rules but not its names */ + ; + + _proto.clearTag = function clearTag() { + // NOTE: This does not clear the names, since it's only used during SSR + // so that we can continuously output only new rules + this.tag = undefined; + } + /** Outputs the current sheet as a CSS string with markers for SSR */ + ; + + _proto.toString = function toString() { + return outputSheet(this); + }; + + return StyleSheet; +}(); + +// + +/* eslint-disable */ +var SEED = 5381; // When we have separate strings it's useful to run a progressive +// version of djb2 where we pretend that we're still looping over +// the same string + +var phash = function phash(h, x) { + var i = x.length; + + while (i) { + h = h * 33 ^ x.charCodeAt(--i); + } + + return h; +}; // This is a djb2 hashing function + +var hash = function hash(x) { + return phash(SEED, x); +}; + +/** + * MIT License + * + * Copyright (c) 2016 Sultan Tarimo + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + * OR IMPLIED INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR + * IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + +/* eslint-disable */ +function insertRulePlugin (insertRule) { + var delimiter = '/*|*/'; + var needle = delimiter + "}"; + + function toSheet(block) { + if (block) { + try { + insertRule(block + "}"); + } catch (e) {} + } + } + + return function ruleSheet(context, content, selectors, parents, line, column, length, ns, depth, at) { + switch (context) { + // property + case 1: + // @import + if (depth === 0 && content.charCodeAt(0) === 64) return insertRule(content + ";"), ''; + break; + // selector + + case 2: + if (ns === 0) return content + delimiter; + break; + // at-rule + + case 3: + switch (ns) { + // @font-face, @page + case 102: + case 112: + return insertRule(selectors[0] + content), ''; + + default: + return content + (at === 0 ? delimiter : ''); + } + + case -2: + content.split(needle).forEach(toSheet); + } + }; +} + +var COMMENT_REGEX = /^\s*\/\/.*$/gm; +function createStylisInstance(_temp) { + var _ref = _temp === void 0 ? EMPTY_OBJECT : _temp, + _ref$options = _ref.options, + options = _ref$options === void 0 ? EMPTY_OBJECT : _ref$options, + _ref$plugins = _ref.plugins, + plugins = _ref$plugins === void 0 ? EMPTY_ARRAY : _ref$plugins; + + var stylis = new _emotion_stylis__WEBPACK_IMPORTED_MODULE_3__["default"](options); // Wrap `insertRulePlugin to build a list of rules, + // and then make our own plugin to return the rules. This + // makes it easier to hook into the existing SSR architecture + + var parsingRules = []; // eslint-disable-next-line consistent-return + + var returnRulesPlugin = function returnRulesPlugin(context) { + if (context === -2) { + var parsedRules = parsingRules; + parsingRules = []; + return parsedRules; + } + }; + + var parseRulesPlugin = insertRulePlugin(function (rule) { + parsingRules.push(rule); + }); + + var _componentId; + + var _selector; + + var _selectorRegexp; + + var selfReferenceReplacer = function selfReferenceReplacer(match, offset, string) { + if ( // the first self-ref is always untouched + offset > 0 && // there should be at least two self-refs to do a replacement (.b > .b) + string.slice(0, offset).indexOf(_selector) !== -1 && // no consecutive self refs (.b.b); that is a precedence boost and treated differently + string.slice(offset - _selector.length, offset) !== _selector) { + return "." + _componentId; + } + + return match; + }; + /** + * When writing a style like + * + * & + & { + * color: red; + * } + * + * The second ampersand should be a reference to the static component class. stylis + * has no knowledge of static class so we have to intelligently replace the base selector. + * + * https://github.com/thysultan/stylis.js#plugins <- more info about the context phase values + * "2" means this plugin is taking effect at the very end after all other processing is complete + */ + + + var selfReferenceReplacementPlugin = function selfReferenceReplacementPlugin(context, _, selectors) { + if (context === 2 && selectors.length && selectors[0].lastIndexOf(_selector) > 0) { + // eslint-disable-next-line no-param-reassign + selectors[0] = selectors[0].replace(_selectorRegexp, selfReferenceReplacer); + } + }; + + stylis.use([].concat(plugins, [selfReferenceReplacementPlugin, parseRulesPlugin, returnRulesPlugin])); + + function stringifyRules(css, selector, prefix, componentId) { + if (componentId === void 0) { + componentId = '&'; + } + + var flatCSS = css.replace(COMMENT_REGEX, ''); + var cssStr = selector && prefix ? prefix + " " + selector + " { " + flatCSS + " }" : flatCSS; // stylis has no concept of state to be passed to plugins + // but since JS is single=threaded, we can rely on that to ensure + // these properties stay in sync with the current stylis run + + _componentId = componentId; + _selector = selector; + _selectorRegexp = new RegExp("\\" + _selector + "\\b", 'g'); + return stylis(prefix || !selector ? '' : selector, cssStr); + } + + stringifyRules.hash = plugins.length ? plugins.reduce(function (acc, plugin) { + if (!plugin.name) { + throwStyledComponentsError(15); + } + + return phash(acc, plugin.name); + }, SEED).toString() : ''; + return stringifyRules; +} + +// +var StyleSheetContext = react__WEBPACK_IMPORTED_MODULE_1___default.a.createContext(); +var StyleSheetConsumer = StyleSheetContext.Consumer; +var StylisContext = react__WEBPACK_IMPORTED_MODULE_1___default.a.createContext(); +var StylisConsumer = StylisContext.Consumer; +var masterSheet = new StyleSheet(); +var masterStylis = createStylisInstance(); +function useStyleSheet() { + return Object(react__WEBPACK_IMPORTED_MODULE_1__["useContext"])(StyleSheetContext) || masterSheet; +} +function useStylis() { + return Object(react__WEBPACK_IMPORTED_MODULE_1__["useContext"])(StylisContext) || masterStylis; +} +function StyleSheetManager(props) { + var _useState = Object(react__WEBPACK_IMPORTED_MODULE_1__["useState"])(props.stylisPlugins), + plugins = _useState[0], + setPlugins = _useState[1]; + + var contextStyleSheet = useStyleSheet(); + var styleSheet = Object(react__WEBPACK_IMPORTED_MODULE_1__["useMemo"])(function () { + var sheet = contextStyleSheet; + + if (props.sheet) { + // eslint-disable-next-line prefer-destructuring + sheet = props.sheet; + } else if (props.target) { + sheet = sheet.reconstructWithOptions({ + target: props.target + }); + } + + if (props.disableCSSOMInjection) { + sheet = sheet.reconstructWithOptions({ + useCSSOMInjection: false + }); + } + + return sheet; + }, [props.disableCSSOMInjection, props.sheet, props.target]); + var stylis = Object(react__WEBPACK_IMPORTED_MODULE_1__["useMemo"])(function () { + return createStylisInstance({ + options: { + prefix: !props.disableVendorPrefixes + }, + plugins: plugins + }); + }, [props.disableVendorPrefixes, plugins]); + Object(react__WEBPACK_IMPORTED_MODULE_1__["useEffect"])(function () { + if (!shallowequal__WEBPACK_IMPORTED_MODULE_2___default()(plugins, props.stylisPlugins)) setPlugins(props.stylisPlugins); + }, [props.stylisPlugins]); + return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(StyleSheetContext.Provider, { + value: styleSheet + }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(StylisContext.Provider, { + value: stylis + }, true ? react__WEBPACK_IMPORTED_MODULE_1___default.a.Children.only(props.children) : undefined)); +} + +// + +var Keyframes = /*#__PURE__*/function () { + function Keyframes(name, stringifyArgs) { + var _this = this; + + this.inject = function (styleSheet) { + if (!styleSheet.hasNameForId(_this.id, _this.name)) { + styleSheet.insertRules(_this.id, _this.name, masterStylis.apply(void 0, _this.stringifyArgs)); + } + }; + + this.toString = function () { + return throwStyledComponentsError(12, String(_this.name)); + }; + + this.name = name; + this.id = "sc-keyframes-" + name; + this.stringifyArgs = stringifyArgs; + } + + var _proto = Keyframes.prototype; + + _proto.getName = function getName() { + return this.name; + }; + + return Keyframes; +}(); + +// + +/** + * inlined version of + * https://github.com/facebook/fbjs/blob/master/packages/fbjs/src/core/hyphenateStyleName.js + */ +var uppercasePattern = /([A-Z])/g; +var msPattern = /^ms-/; +/** + * Hyphenates a camelcased CSS property name, for example: + * + * > hyphenateStyleName('backgroundColor') + * < "background-color" + * > hyphenateStyleName('MozTransition') + * < "-moz-transition" + * > hyphenateStyleName('msTransition') + * < "-ms-transition" + * + * As Modernizr suggests (http://modernizr.com/docs/#prefixed), an `ms` prefix + * is converted to `-ms-`. + * + * @param {string} string + * @return {string} + */ + +function hyphenateStyleName(string) { + return string.replace(uppercasePattern, '-$1').toLowerCase().replace(msPattern, '-ms-'); +} + +// + +function addUnitIfNeeded(name, value) { + // https://github.com/amilajack/eslint-plugin-flowtype-errors/issues/133 + // $FlowFixMe + if (value == null || typeof value === 'boolean' || value === '') { + return ''; + } + + if (typeof value === 'number' && value !== 0 && !(name in _emotion_unitless__WEBPACK_IMPORTED_MODULE_4__["default"])) { + return value + "px"; // Presumes implicit 'px' suffix for unitless numbers + } + + return String(value).trim(); +} + +// +/** + * It's falsish not falsy because 0 is allowed. + */ + +var isFalsish = function isFalsish(chunk) { + return chunk === undefined || chunk === null || chunk === false || chunk === ''; +}; + +var objToCssArray = function objToCssArray(obj, prevKey) { + var rules = []; + var keys = Object.keys(obj); + keys.forEach(function (key) { + if (!isFalsish(obj[key])) { + if (isPlainObject(obj[key])) { + rules.push.apply(rules, objToCssArray(obj[key], key)); + return rules; + } else if (isFunction(obj[key])) { + rules.push(hyphenateStyleName(key) + ":", obj[key], ';'); + return rules; + } + + rules.push(hyphenateStyleName(key) + ": " + addUnitIfNeeded(key, obj[key]) + ";"); + } + + return rules; + }); + return prevKey ? [prevKey + " {"].concat(rules, ['}']) : rules; +}; +function flatten(chunk, executionContext, styleSheet) { + if (Array.isArray(chunk)) { + var ruleSet = []; + + for (var i = 0, len = chunk.length, result; i < len; i += 1) { + result = flatten(chunk[i], executionContext, styleSheet); + if (result === '') continue;else if (Array.isArray(result)) ruleSet.push.apply(ruleSet, result);else ruleSet.push(result); + } + + return ruleSet; + } + + if (isFalsish(chunk)) { + return ''; + } + /* Handle other components */ + + + if (isStyledComponent(chunk)) { + return "." + chunk.styledComponentId; + } + /* Either execute or defer the function */ + + + if (isFunction(chunk)) { + if (isStatelessFunction(chunk) && executionContext) { + var _result = chunk(executionContext); + + if ( true && Object(react_is__WEBPACK_IMPORTED_MODULE_0__["isElement"])(_result)) { + // eslint-disable-next-line no-console + console.warn(getComponentName(chunk) + " 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."); + } + + return flatten(_result, executionContext, styleSheet); + } else return chunk; + } + + if (chunk instanceof Keyframes) { + if (styleSheet) { + chunk.inject(styleSheet); + return chunk.getName(); + } else return chunk; + } + /* Handle objects */ + + + return isPlainObject(chunk) ? objToCssArray(chunk) : chunk.toString(); +} + +// +function css(styles) { + for (var _len = arguments.length, interpolations = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + interpolations[_key - 1] = arguments[_key]; + } + + if (isFunction(styles) || isPlainObject(styles)) { + // $FlowFixMe + return flatten(interleave(EMPTY_ARRAY, [styles].concat(interpolations))); + } + + if (interpolations.length === 0 && styles.length === 1 && typeof styles[0] === "string") { + // $FlowFixMe + return styles; + } // $FlowFixMe + + + return flatten(interleave(styles, interpolations)); +} + +function constructWithOptions(componentConstructor, tag, options) { + if (options === void 0) { + options = EMPTY_OBJECT; + } + + if (!Object(react_is__WEBPACK_IMPORTED_MODULE_0__["isValidElementType"])(tag)) { + return throwStyledComponentsError(1, String(tag)); + } + /* This is callable directly as a template function */ + // $FlowFixMe: Not typed to avoid destructuring arguments + + + var templateFunction = function templateFunction() { + return componentConstructor(tag, options, css.apply(void 0, arguments)); + }; + /* If config methods are called, wrap up a new template function and merge options */ + + + templateFunction.withConfig = function (config) { + return constructWithOptions(componentConstructor, tag, _extends({}, options, {}, config)); + }; + /* Modify/inject new props at runtime */ + + + templateFunction.attrs = function (attrs) { + return constructWithOptions(componentConstructor, tag, _extends({}, options, { + attrs: Array.prototype.concat(options.attrs, attrs).filter(Boolean) + })); + }; + + return templateFunction; +} + +/* eslint-disable */ + +/** + mixin-deep; https://github.com/jonschlinkert/mixin-deep + Inlined such that it will be consistently transpiled to an IE-compatible syntax. + + The MIT License (MIT) + + Copyright (c) 2014-present, Jon Schlinkert. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +*/ +var isObject = function isObject(val) { + return typeof val === 'function' || typeof val === 'object' && val !== null && !Array.isArray(val); +}; + +var isValidKey = function isValidKey(key) { + return key !== '__proto__' && key !== 'constructor' && key !== 'prototype'; +}; + +function mixin(target, val, key) { + var obj = target[key]; + + if (isObject(val) && isObject(obj)) { + mixinDeep(obj, val); + } else { + target[key] = val; + } +} + +function mixinDeep(target) { + for (var _len = arguments.length, rest = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + rest[_key - 1] = arguments[_key]; + } + + for (var _i = 0, _rest = rest; _i < _rest.length; _i++) { + var obj = _rest[_i]; + + if (isObject(obj)) { + for (var key in obj) { + if (isValidKey(key)) { + mixin(target, obj[key], key); + } + } + } + } + + return target; +} + +// + +/* eslint-disable no-bitwise */ +var AD_REPLACER_R = /(a)(d)/gi; +/* This is the "capacity" of our alphabet i.e. 2x26 for all letters plus their capitalised + * counterparts */ + +var charsLength = 52; +/* start at 75 for 'a' until 'z' (25) and then start at 65 for capitalised letters */ + +var getAlphabeticChar = function getAlphabeticChar(code) { + return String.fromCharCode(code + (code > 25 ? 39 : 97)); +}; +/* input a number, usually a hash and convert it to base-52 */ + + +function generateAlphabeticName(code) { + var name = ''; + var x; + /* get a char and divide by alphabet-length */ + + for (x = Math.abs(code); x > charsLength; x = x / charsLength | 0) { + name = getAlphabeticChar(x % charsLength) + name; + } + + return (getAlphabeticChar(x % charsLength) + name).replace(AD_REPLACER_R, '$1-$2'); +} + +// +function isStaticRules(rules) { + for (var i = 0; i < rules.length; i += 1) { + var rule = rules[i]; + + if (isFunction(rule) && !isStyledComponent(rule)) { + // functions are allowed to be static if they're just being + // used to get the classname of a nested styled component + return false; + } + } + + return true; +} + +// +/* + ComponentStyle is all the CSS-specific stuff, not + the React-specific stuff. + */ + +var ComponentStyle = /*#__PURE__*/function () { + function ComponentStyle(rules, componentId) { + this.rules = rules; + this.staticRulesId = ''; + this.isStatic = false && false; + this.componentId = componentId; + this.baseHash = hash(componentId); // NOTE: This registers the componentId, which ensures a consistent order + // for this component's styles compared to others + + StyleSheet.registerId(componentId); + } + /* + * Flattens a rule set into valid CSS + * Hashes it, wraps the whole chunk in a .hash1234 {} + * Returns the hash to be injected on render() + * */ + + + var _proto = ComponentStyle.prototype; + + _proto.generateAndInjectStyles = function generateAndInjectStyles(executionContext, styleSheet, stylis) { + var componentId = this.componentId; // force dynamic classnames if user-supplied stylis plugins are in use + + if (this.isStatic && !stylis.hash) { + if (this.staticRulesId && styleSheet.hasNameForId(componentId, this.staticRulesId)) { + return this.staticRulesId; + } + + var cssStatic = flatten(this.rules, executionContext, styleSheet).join(''); + var name = generateAlphabeticName(phash(this.baseHash, cssStatic.length) >>> 0); + + if (!styleSheet.hasNameForId(componentId, name)) { + var cssStaticFormatted = stylis(cssStatic, "." + name, undefined, componentId); + styleSheet.insertRules(componentId, name, cssStaticFormatted); + } + + this.staticRulesId = name; + return name; + } else { + var length = this.rules.length; + var dynamicHash = phash(this.baseHash, stylis.hash); + var css = ''; + + for (var i = 0; i < length; i++) { + var partRule = this.rules[i]; + + if (typeof partRule === 'string') { + css += partRule; + if (true) dynamicHash = phash(dynamicHash, partRule + i); + } else { + var partChunk = flatten(partRule, executionContext, styleSheet); + var partString = Array.isArray(partChunk) ? partChunk.join('') : partChunk; + dynamicHash = phash(dynamicHash, partString + i); + css += partString; + } + } + + var _name = generateAlphabeticName(dynamicHash >>> 0); + + if (!styleSheet.hasNameForId(componentId, _name)) { + var cssFormatted = stylis(css, "." + _name, undefined, componentId); + styleSheet.insertRules(componentId, _name, cssFormatted); + } + + return _name; + } + }; + + return ComponentStyle; +}(); + +// +var LIMIT = 200; +var createWarnTooManyClasses = (function (displayName, componentId) { + var generatedClasses = {}; + var warningSeen = false; + return function (className) { + if (!warningSeen) { + generatedClasses[className] = true; + + if (Object.keys(generatedClasses).length >= LIMIT) { + // Unable to find latestRule in test environment. + + /* eslint-disable no-console, prefer-template */ + var parsedIdString = componentId ? " with the id of \"" + componentId + "\"" : ''; + console.warn("Over " + LIMIT + " classes were generated for component " + displayName + parsedIdString + ".\n" + 'Consider using the attrs method, together with a style object for frequently changed styles.\n' + 'Example:\n' + ' const Component = styled.div.attrs(props => ({\n' + ' style: {\n' + ' background: props.background,\n' + ' },\n' + ' }))`width: 100%;`\n\n' + ' '); + warningSeen = true; + generatedClasses = {}; + } + } + }; +}); + +// +var invalidHookCallRe = /invalid hook call/i; +var seen = new Set(); +var checkDynamicCreation = function checkDynamicCreation(displayName, componentId) { + if (true) { + var parsedIdString = componentId ? " with the id of \"" + componentId + "\"" : ''; + var message = "The component " + displayName + parsedIdString + " has been created dynamically.\n" + 'You may see this warning because you\'ve called styled inside another component.\n' + 'To resolve this only create new StyledComponents outside of any render method and function component.'; + + try { + // We purposefully call `useRef` outside of a component and expect it to throw + // If it doesn't, then we're inside another component. + // eslint-disable-next-line react-hooks/rules-of-hooks + Object(react__WEBPACK_IMPORTED_MODULE_1__["useRef"])(); + + if (!seen.has(message)) { + // eslint-disable-next-line no-console + console.warn(message); + seen.add(message); + } + } catch (error) { + // The error here is expected, since we're expecting anything that uses `checkDynamicCreation` to + // be called outside of a React component. + if (invalidHookCallRe.test(error.message)) { + // This shouldn't happen, but resets `warningSeen` if we had this error happen intermittently + seen["delete"](message); + } + } + } +}; + +// +var determineTheme = (function (props, providedTheme, defaultProps) { + if (defaultProps === void 0) { + defaultProps = EMPTY_OBJECT; + } + + return props.theme !== defaultProps.theme && props.theme || providedTheme || defaultProps.theme; +}); + +// +var escapeRegex = /[[\].#*$><+~=|^:(),"'`-]+/g; +var dashesAtEnds = /(^-|-$)/g; +/** + * TODO: Explore using CSS.escape when it becomes more available + * in evergreen browsers. + */ + +function escape(str) { + return str // Replace all possible CSS selectors + .replace(escapeRegex, '-') // Remove extraneous hyphens at the start and end + .replace(dashesAtEnds, ''); +} + +// +function isTag(target) { + return typeof target === 'string' && ( true ? target.charAt(0) === target.charAt(0).toLowerCase() : undefined); +} + +// +function generateDisplayName(target) { + // $FlowFixMe + return isTag(target) ? "styled." + target : "Styled(" + getComponentName(target) + ")"; +} + +// +var generateComponentId = (function (str) { + return generateAlphabeticName(hash(str) >>> 0); +}); + +/** + * Convenience function for joining strings to form className chains + */ +function joinStrings(a, b) { + return a && b ? a + " " + b : a || b; +} + +var ThemeContext = react__WEBPACK_IMPORTED_MODULE_1___default.a.createContext(); +var ThemeConsumer = ThemeContext.Consumer; + +function mergeTheme(theme, outerTheme) { + if (!theme) { + return throwStyledComponentsError(14); + } + + if (isFunction(theme)) { + var mergedTheme = theme(outerTheme); + + if ( true && (mergedTheme === null || Array.isArray(mergedTheme) || typeof mergedTheme !== 'object')) { + return throwStyledComponentsError(7); + } + + return mergedTheme; + } + + if (Array.isArray(theme) || typeof theme !== 'object') { + return throwStyledComponentsError(8); + } + + return outerTheme ? _extends({}, outerTheme, {}, theme) : theme; +} +/** + * Provide a theme to an entire react component tree via context + */ + + +function ThemeProvider(props) { + var outerTheme = Object(react__WEBPACK_IMPORTED_MODULE_1__["useContext"])(ThemeContext); + var themeContext = Object(react__WEBPACK_IMPORTED_MODULE_1__["useMemo"])(function () { + return mergeTheme(props.theme, outerTheme); + }, [props.theme, outerTheme]); + + if (!props.children) { + return null; + } + + return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(ThemeContext.Provider, { + value: themeContext + }, props.children); +} + +/* global $Call */ + +var identifiers = {}; +/* We depend on components having unique IDs */ + +function generateId(displayName, parentComponentId) { + var name = typeof displayName !== 'string' ? 'sc' : escape(displayName); // Ensure that no displayName can lead to duplicate componentIds + + identifiers[name] = (identifiers[name] || 0) + 1; + var componentId = name + "-" + generateComponentId(name + identifiers[name]); + return parentComponentId ? parentComponentId + "-" + componentId : componentId; +} + +function useResolvedAttrs(theme, props, attrs) { + if (theme === void 0) { + theme = EMPTY_OBJECT; + } + + // NOTE: can't memoize this + // returns [context, resolvedAttrs] + // where resolvedAttrs is only the things injected by the attrs themselves + var context = _extends({}, props, { + theme: theme + }); + + var resolvedAttrs = {}; + attrs.forEach(function (attrDef) { + var resolvedAttrDef = attrDef; + var key; + + if (isFunction(resolvedAttrDef)) { + resolvedAttrDef = resolvedAttrDef(context); + } + /* eslint-disable guard-for-in */ + + + for (key in resolvedAttrDef) { + context[key] = resolvedAttrs[key] = key === 'className' ? joinStrings(resolvedAttrs[key], resolvedAttrDef[key]) : resolvedAttrDef[key]; + } + /* eslint-enable guard-for-in */ + + }); + return [context, resolvedAttrs]; +} + +function useInjectedStyle(componentStyle, hasAttrs, resolvedAttrs, warnTooManyClasses) { + var styleSheet = useStyleSheet(); + var stylis = useStylis(); // statically styled-components don't need to build an execution context object, + // and shouldn't be increasing the number of class names + + var isStatic = componentStyle.isStatic && !hasAttrs; + var className = isStatic ? componentStyle.generateAndInjectStyles(EMPTY_OBJECT, styleSheet, stylis) : componentStyle.generateAndInjectStyles(resolvedAttrs, styleSheet, stylis); + Object(react__WEBPACK_IMPORTED_MODULE_1__["useDebugValue"])(className); + + if ( true && !isStatic && warnTooManyClasses) { + warnTooManyClasses(className); + } + + return className; +} + +function useStyledComponentImpl(forwardedComponent, props, forwardedRef) { + var componentAttrs = forwardedComponent.attrs, + componentStyle = forwardedComponent.componentStyle, + defaultProps = forwardedComponent.defaultProps, + foldedComponentIds = forwardedComponent.foldedComponentIds, + shouldForwardProp = forwardedComponent.shouldForwardProp, + styledComponentId = forwardedComponent.styledComponentId, + target = forwardedComponent.target; + Object(react__WEBPACK_IMPORTED_MODULE_1__["useDebugValue"])(styledComponentId); // NOTE: the non-hooks version only subscribes to this when !componentStyle.isStatic, + // but that'd be against the rules-of-hooks. We could be naughty and do it anyway as it + // should be an immutable value, but behave for now. + + var theme = determineTheme(props, Object(react__WEBPACK_IMPORTED_MODULE_1__["useContext"])(ThemeContext), defaultProps); + + var _useResolvedAttrs = useResolvedAttrs(theme || EMPTY_OBJECT, props, componentAttrs), + context = _useResolvedAttrs[0], + attrs = _useResolvedAttrs[1]; + + var generatedClassName = useInjectedStyle(componentStyle, componentAttrs.length > 0, context, true ? forwardedComponent.warnTooManyClasses : undefined); + var refToForward = forwardedRef; + var elementToBeCreated = attrs.$as || props.$as || attrs.as || props.as || target; + var isTargetTag = isTag(elementToBeCreated); + var computedProps = attrs !== props ? _extends({}, props, {}, attrs) : props; + var propFilterFn = shouldForwardProp || isTargetTag && _emotion_is_prop_valid__WEBPACK_IMPORTED_MODULE_5__["default"]; + var propsForElement = {}; // eslint-disable-next-line guard-for-in + + for (var key in computedProps) { + if (key[0] === '$' || key === 'as') continue;else if (key === 'forwardedAs') { + propsForElement.as = computedProps[key]; + } else if (!propFilterFn || propFilterFn(key, _emotion_is_prop_valid__WEBPACK_IMPORTED_MODULE_5__["default"])) { + // Don't pass through non HTML tags through to HTML elements + propsForElement[key] = computedProps[key]; + } + } + + if (props.style && attrs.style !== props.style) { + propsForElement.style = _extends({}, props.style, {}, attrs.style); + } + + propsForElement.className = Array.prototype.concat(foldedComponentIds, styledComponentId, generatedClassName !== styledComponentId ? generatedClassName : null, props.className, attrs.className).filter(Boolean).join(' '); + propsForElement.ref = refToForward; + return Object(react__WEBPACK_IMPORTED_MODULE_1__["createElement"])(elementToBeCreated, propsForElement); +} + +function createStyledComponent(target, options, rules) { + var isTargetStyledComp = isStyledComponent(target); + var isCompositeComponent = !isTag(target); + var _options$displayName = options.displayName, + displayName = _options$displayName === void 0 ? generateDisplayName(target) : _options$displayName, + _options$componentId = options.componentId, + componentId = _options$componentId === void 0 ? generateId(options.displayName, options.parentComponentId) : _options$componentId, + _options$attrs = options.attrs, + attrs = _options$attrs === void 0 ? EMPTY_ARRAY : _options$attrs; + var styledComponentId = options.displayName && options.componentId ? escape(options.displayName) + "-" + options.componentId : options.componentId || componentId; // fold the underlying StyledComponent attrs up (implicit extend) + + var finalAttrs = // $FlowFixMe + isTargetStyledComp && target.attrs ? Array.prototype.concat(target.attrs, attrs).filter(Boolean) : attrs; // eslint-disable-next-line prefer-destructuring + + var shouldForwardProp = options.shouldForwardProp; // $FlowFixMe + + if (isTargetStyledComp && target.shouldForwardProp) { + if (shouldForwardProp) { + // compose nested shouldForwardProp calls + shouldForwardProp = function shouldForwardProp(prop, filterFn) { + return (// $FlowFixMe + target.shouldForwardProp(prop, filterFn) && options.shouldForwardProp(prop, filterFn) + ); + }; + } else { + // eslint-disable-next-line prefer-destructuring + shouldForwardProp = target.shouldForwardProp; + } + } + + var componentStyle = new ComponentStyle(isTargetStyledComp ? // fold the underlying StyledComponent rules up (implicit extend) + // $FlowFixMe + target.componentStyle.rules.concat(rules) : rules, styledComponentId); + /** + * forwardRef creates a new interim component, which we'll take advantage of + * instead of extending ParentComponent to create _another_ interim class + */ + + var WrappedStyledComponent; // eslint-disable-next-line react-hooks/rules-of-hooks + + var forwardRef = function forwardRef(props, ref) { + return useStyledComponentImpl(WrappedStyledComponent, props, ref); + }; + + forwardRef.displayName = displayName; // $FlowFixMe this is a forced cast to merge it StyledComponentWrapperProperties + + WrappedStyledComponent = react__WEBPACK_IMPORTED_MODULE_1___default.a.forwardRef(forwardRef); + WrappedStyledComponent.attrs = finalAttrs; + WrappedStyledComponent.componentStyle = componentStyle; + WrappedStyledComponent.displayName = displayName; + WrappedStyledComponent.shouldForwardProp = shouldForwardProp; // this static is used to preserve the cascade of static classes for component selector + // purposes; this is especially important with usage of the css prop + + WrappedStyledComponent.foldedComponentIds = isTargetStyledComp ? // $FlowFixMe + Array.prototype.concat(target.foldedComponentIds, target.styledComponentId) : EMPTY_ARRAY; + WrappedStyledComponent.styledComponentId = styledComponentId; // fold the underlying StyledComponent target up since we folded the styles + + WrappedStyledComponent.target = isTargetStyledComp ? // $FlowFixMe + target.target : target; // $FlowFixMe + + WrappedStyledComponent.withComponent = function withComponent(tag) { + var previousComponentId = options.componentId, + optionsToCopy = _objectWithoutPropertiesLoose(options, ["componentId"]); + + var newComponentId = previousComponentId && previousComponentId + "-" + (isTag(tag) ? tag : escape(getComponentName(tag))); + + var newOptions = _extends({}, optionsToCopy, { + attrs: finalAttrs, + componentId: newComponentId + }); + + return createStyledComponent(tag, newOptions, rules); + }; // $FlowFixMe + + + Object.defineProperty(WrappedStyledComponent, 'defaultProps', { + get: function get() { + return this._foldedDefaultProps; + }, + set: function set(obj) { + // $FlowFixMe + this._foldedDefaultProps = isTargetStyledComp ? mixinDeep({}, target.defaultProps, obj) : obj; + } + }); + + if (true) { + checkDynamicCreation(displayName, styledComponentId); + WrappedStyledComponent.warnTooManyClasses = createWarnTooManyClasses(displayName, styledComponentId); + } // $FlowFixMe + + + WrappedStyledComponent.toString = function () { + return "." + WrappedStyledComponent.styledComponentId; + }; + + if (isCompositeComponent) { + hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_6___default()(WrappedStyledComponent, target, { + // all SC-specific things should not be hoisted + attrs: true, + componentStyle: true, + displayName: true, + foldedComponentIds: true, + shouldForwardProp: true, + self: true, + styledComponentId: true, + target: true, + withComponent: true + }); + } + + return WrappedStyledComponent; +} + +// +// Thanks to ReactDOMFactories for this handy list! +var domElements = ['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', // SVG +'circle', 'clipPath', 'defs', 'ellipse', 'foreignObject', 'g', 'image', 'line', 'linearGradient', 'marker', 'mask', 'path', 'pattern', 'polygon', 'polyline', 'radialGradient', 'rect', 'stop', 'svg', 'text', 'tspan']; + +// + +var styled = function styled(tag) { + return constructWithOptions(createStyledComponent, tag); +}; // Shorthands for all valid HTML Elements + + +domElements.forEach(function (domElement) { + styled[domElement] = styled(domElement); +}); + +// + +var GlobalStyle = /*#__PURE__*/function () { + function GlobalStyle(rules, componentId) { + this.rules = rules; + this.componentId = componentId; + this.isStatic = isStaticRules(rules); + } + + var _proto = GlobalStyle.prototype; + + _proto.createStyles = function createStyles(instance, executionContext, styleSheet, stylis) { + var flatCSS = flatten(this.rules, executionContext, styleSheet); + var css = stylis(flatCSS.join(''), ''); + var id = this.componentId + instance; // NOTE: We use the id as a name as well, since these rules never change + + styleSheet.insertRules(id, id, css); + }; + + _proto.removeStyles = function removeStyles(instance, styleSheet) { + styleSheet.clearRules(this.componentId + instance); + }; + + _proto.renderStyles = function renderStyles(instance, executionContext, styleSheet, stylis) { + StyleSheet.registerId(this.componentId + instance); // NOTE: Remove old styles, then inject the new ones + + this.removeStyles(instance, styleSheet); + this.createStyles(instance, executionContext, styleSheet, stylis); + }; + + return GlobalStyle; +}(); + +function createGlobalStyle(strings) { + for (var _len = arguments.length, interpolations = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + interpolations[_key - 1] = arguments[_key]; + } + + var rules = css.apply(void 0, [strings].concat(interpolations)); + var styledComponentId = "sc-global-" + generateComponentId(JSON.stringify(rules)); + var globalStyle = new GlobalStyle(rules, styledComponentId); + + if (true) { + checkDynamicCreation(styledComponentId); + } + + function GlobalStyleComponent(props) { + var styleSheet = useStyleSheet(); + var stylis = useStylis(); + var theme = Object(react__WEBPACK_IMPORTED_MODULE_1__["useContext"])(ThemeContext); + var instanceRef = Object(react__WEBPACK_IMPORTED_MODULE_1__["useRef"])(null); + + if (instanceRef.current === null) { + instanceRef.current = styleSheet.allocateGSInstance(styledComponentId); + } + + var instance = instanceRef.current; + + if ( true && react__WEBPACK_IMPORTED_MODULE_1___default.a.Children.count(props.children)) { + // eslint-disable-next-line no-console + console.warn("The global style component " + styledComponentId + " was given child JSX. createGlobalStyle does not render children."); + } + + if ( true && rules.some(function (rule) { + return typeof rule === 'string' && rule.indexOf('@import') !== -1; + })) { + 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 meta tag to the stylesheet, or simply embedding it manually in your index.html section for a simpler app."); + } + + if (globalStyle.isStatic) { + globalStyle.renderStyles(instance, STATIC_EXECUTION_CONTEXT, styleSheet, stylis); + } else { + var context = _extends({}, props, { + theme: determineTheme(props, theme, GlobalStyleComponent.defaultProps) + }); + + globalStyle.renderStyles(instance, context, styleSheet, stylis); + } + + Object(react__WEBPACK_IMPORTED_MODULE_1__["useEffect"])(function () { + return function () { + return globalStyle.removeStyles(instance, styleSheet); + }; + }, EMPTY_ARRAY); + return null; + } // $FlowFixMe + + + return react__WEBPACK_IMPORTED_MODULE_1___default.a.memo(GlobalStyleComponent); +} + +// +function keyframes(strings) { + /* Warning if you've used keyframes on React Native */ + if ( true && typeof navigator !== 'undefined' && navigator.product === 'ReactNative') { + // eslint-disable-next-line no-console + console.warn('`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.'); + } + + for (var _len = arguments.length, interpolations = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + interpolations[_key - 1] = arguments[_key]; + } + + var rules = css.apply(void 0, [strings].concat(interpolations)).join(''); + var name = generateComponentId(rules); + return new Keyframes(name, [rules, name, '@keyframes']); +} + +var ServerStyleSheet = /*#__PURE__*/function () { + function ServerStyleSheet() { + var _this = this; + + this._emitSheetCSS = function () { + var css = _this.instance.toString(); + + var nonce = getNonce(); + var attrs = [nonce && "nonce=\"" + nonce + "\"", SC_ATTR + "=\"true\"", SC_ATTR_VERSION + "=\"" + SC_VERSION + "\""]; + var htmlAttr = attrs.filter(Boolean).join(' '); + return ""; + }; + + this.getStyleTags = function () { + if (_this.sealed) { + return throwStyledComponentsError(2); + } + + return _this._emitSheetCSS(); + }; + + this.getStyleElement = function () { + var _props; + + if (_this.sealed) { + return throwStyledComponentsError(2); + } + + var props = (_props = {}, _props[SC_ATTR] = '', _props[SC_ATTR_VERSION] = SC_VERSION, _props.dangerouslySetInnerHTML = { + __html: _this.instance.toString() + }, _props); + var nonce = getNonce(); + + if (nonce) { + props.nonce = nonce; + } // v4 returned an array for this fn, so we'll do the same for v5 for backward compat + + + return [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("style", _extends({}, props, { + key: "sc-0-0" + }))]; + }; + + this.seal = function () { + _this.sealed = true; + }; + + this.instance = new StyleSheet({ + isServer: true + }); + this.sealed = false; + } + + var _proto = ServerStyleSheet.prototype; + + _proto.collectStyles = function collectStyles(children) { + if (this.sealed) { + return throwStyledComponentsError(2); + } + + return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(StyleSheetManager, { + sheet: this.instance + }, children); + }; + + // eslint-disable-next-line consistent-return + _proto.interleaveWithNodeStream = function interleaveWithNodeStream(input) { + { + return throwStyledComponentsError(3); + } + }; + + return ServerStyleSheet; +}(); + +// export default ( +// Component: AbstractComponent +// ): AbstractComponent<$Diff & { theme?: any }, Instance> +// +// but the old build system tooling doesn't support the syntax + +var withTheme = (function (Component) { + // $FlowFixMe This should be React.forwardRef + var WithTheme = react__WEBPACK_IMPORTED_MODULE_1___default.a.forwardRef(function (props, ref) { + var theme = Object(react__WEBPACK_IMPORTED_MODULE_1__["useContext"])(ThemeContext); // $FlowFixMe defaultProps isn't declared so it can be inferrable + + var defaultProps = Component.defaultProps; + var themeProp = determineTheme(props, theme, defaultProps); + + if ( true && themeProp === undefined) { + // eslint-disable-next-line no-console + console.warn("[withTheme] You are not using a ThemeProvider nor passing a theme prop or a theme in defaultProps in component class \"" + getComponentName(Component) + "\""); + } + + return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(Component, _extends({}, props, { + theme: themeProp, + ref: ref + })); + }); + hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_6___default()(WithTheme, Component); + WithTheme.displayName = "WithTheme(" + getComponentName(Component) + ")"; + return WithTheme; +}); + +// + +var useTheme = function useTheme() { + return Object(react__WEBPACK_IMPORTED_MODULE_1__["useContext"])(ThemeContext); +}; + +// +var __PRIVATE__ = { + StyleSheet: StyleSheet, + masterSheet: masterSheet +}; + +// +/* Define bundle version for export */ + +var version = "5.1.0"; +/* Warning if you've imported this file on React Native */ + +if ( true && typeof navigator !== 'undefined' && navigator.product === 'ReactNative') { + // eslint-disable-next-line no-console + console.warn("It looks like you've imported 'styled-components' on React Native.\n" + "Perhaps you're looking to import 'styled-components/native'?\n" + 'Read more about this at https://www.styled-components.com/docs/basics#react-native'); +} +/* Warning if there are several instances of styled-components */ + + +if ( true && typeof window !== 'undefined') { + window['__styled-components-init__'] = window['__styled-components-init__'] || 0; + + if (window['__styled-components-init__'] === 1) { + // eslint-disable-next-line no-console + console.warn("It looks like there are several instances of 'styled-components' initialized in this application. " + 'This may cause dynamic styles not rendering properly, errors happening during rehydration process, ' + 'missing theme prop, and makes your application bigger without a good reason.\n\n' + 'See https://s-c.sh/2BAXzed for more info.'); + } + + window['__styled-components-init__'] += 1; +} + +/* harmony default export */ __webpack_exports__["default"] = (styled); + +//# sourceMappingURL=styled-components.browser.esm.js.map + +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../process/browser.js */ "./node_modules/process/browser.js"))) + +/***/ }), + +/***/ "./resources/views/components/GlobalStyles.js": +/*!****************************************************!*\ + !*** ./resources/views/components/GlobalStyles.js ***! + \****************************************************/ +/*! exports provided: defaultPadding, InputMargin, ButtonStyles, LabelStyles, StyledH3, Button, SecondaryButton, SubmitButton, Footer */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultPadding", function() { return defaultPadding; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InputMargin", function() { return InputMargin; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ButtonStyles", function() { return ButtonStyles; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LabelStyles", function() { return LabelStyles; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StyledH3", function() { return StyledH3; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Button", function() { return Button; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SecondaryButton", function() { return SecondaryButton; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SubmitButton", function() { return SubmitButton; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Footer", function() { return Footer; }); +/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! styled-components */ "./node_modules/styled-components/dist/styled-components.browser.esm.js"); +function _templateObject7() { + var data = _taggedTemplateLiteral(["\n display: flex;\n margin-top: auto;\n justify-content: flex-end;\n button {\n margin-left: 12px;\n }\n"]); + + _templateObject7 = function _templateObject7() { + return data; + }; + + return data; +} + +function _templateObject6() { + var data = _taggedTemplateLiteral(["\n border: 0;\n color: ", ";\n background-color: ", ";\n &:active {\n background-color: ", ";\n }\n"]); + + _templateObject6 = function _templateObject6() { + return data; + }; + + return data; +} + +function _templateObject5() { + var data = _taggedTemplateLiteral(["\n font-size: 12px;\n border-radius: 12px;\n font-weight: 500;\n padding: 0 16px;\n color: ", ";\n border-color: ", ";\n"]); + + _templateObject5 = function _templateObject5() { + return data; + }; + + return data; +} + +function _templateObject4() { + var data = _taggedTemplateLiteral(["\n ", ";\n"]); + + _templateObject4 = function _templateObject4() { + return data; + }; + + return data; +} + +function _templateObject3() { + var data = _taggedTemplateLiteral(["\n font-weight: normal;\n text-transform: uppercase;\n margin: 0;\n font-size: 11px;\n letter-spacing: 0.92px;\n"]); + + _templateObject3 = function _templateObject3() { + return data; + }; + + return data; +} + +function _templateObject2() { + var data = _taggedTemplateLiteral(["\n font-size: 14px;\n letter-spacing: -0.08px;\n align-self: center;\n"]); + + _templateObject2 = function _templateObject2() { + return data; + }; + + return data; +} + +function _templateObject() { + var data = _taggedTemplateLiteral(["\n height: 24px;\n background-color: ", ";\n border: 1px solid ", ";\n color: ", ";\n border-radius: 4px;\n padding: 0 12px;\n letter-spacing: -0.07px;\n\n &:active {\n background-color: ", ";\n }\n &:focus {\n outline: none;\n }\n &:disabled {\n opacity: 0.5;\n }\n"]); + + _templateObject = function _templateObject() { + return data; + }; + + return data; +} + +function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); } + + +var defaultPadding = "24px"; +var InputMargin = "20px"; +var ButtonStyles = Object(styled_components__WEBPACK_IMPORTED_MODULE_0__["css"])(_templateObject(), function (props) { + return props.theme.button.bgColor; +}, function (props) { + return props.theme.button.border; +}, function (props) { + return props.theme.button.color; +}, function (props) { + return props.theme.button.bgActive; +}); +var LabelStyles = Object(styled_components__WEBPACK_IMPORTED_MODULE_0__["css"])(_templateObject2()); +var StyledH3 = styled_components__WEBPACK_IMPORTED_MODULE_0__["default"].h3(_templateObject3()); +var Button = styled_components__WEBPACK_IMPORTED_MODULE_0__["default"].button(_templateObject4(), ButtonStyles); +var SecondaryButton = Object(styled_components__WEBPACK_IMPORTED_MODULE_0__["default"])(Button)(_templateObject5(), function (props) { + return props.theme.secondaryButton.textColor; +}, function (props) { + return props.theme.secondaryButton.borderColor; +}); +var SubmitButton = Object(styled_components__WEBPACK_IMPORTED_MODULE_0__["default"])(SecondaryButton)(_templateObject6(), function (props) { + return props.theme.CTAButton.textColor; +}, function (props) { + return props.theme.CTAButton.bgColor; +}, function (props) { + return props.theme.CTAButton.bgActive; +}); +var Footer = styled_components__WEBPACK_IMPORTED_MODULE_0__["default"].div(_templateObject7()); + +/***/ }) + +/******/ }); +//# sourceMappingURL=resources_views_components_GlobalStyles.js.map \ No newline at end of file diff --git a/Rename-It.sketchplugin/Contents/Resources/resources_views_components_historyDropdown_historyStyles.js b/Rename-It.sketchplugin/Contents/Resources/resources_views_components_historyDropdown_historyStyles.js index bb6c01b..1f18119 100644 --- a/Rename-It.sketchplugin/Contents/Resources/resources_views_components_historyDropdown_historyStyles.js +++ b/Rename-It.sketchplugin/Contents/Resources/resources_views_components_historyDropdown_historyStyles.js @@ -1 +1,5710 @@ -!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=12)}([function(e,t,r){"use strict";e.exports=r(10)},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return Pe})),r.d(t,"b",(function(){return ae}));var n=r(2),o=r(0),i=r.n(o),a=(r(5),r(6)),c=r(7),s=r(4),u=r(3),l=r.n(u);function f(){return(f=Object.assign||function(e){for(var t=1;t1?t-1:0),n=1;n0?" Additional arguments: "+r.join(", "):""))}var A=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){for(var t=e.childNodes,r=t.length;r>=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(v))return n}}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(v,"active"),n.setAttribute("data-styled-version","5.1.0");var a=S();return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},O=function(){function e(e){var t=this.element=A(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r=0){var r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||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.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)(o<<=1)<0&&C(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i=I&&(I=t+1),$.set(e,t),T.set(t,e)},N="style["+v+'][data-styled-version="5.1.0"]',M=new RegExp("^"+v+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),F=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i0&&(u+=e+",")})),n+=""+c+s+'{content:"'+u+'"}/*!sc*/\n'}}}return n}(this)},e}(),U=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},H=function(e){return U(5381,e)};var q=/^\s*\/\/.*$/gm;function V(e){var t,r,n,o=void 0===e?m:e,i=o.options,c=void 0===i?m:i,s=o.plugins,u=void 0===s?h:s,l=new a.a(c),f=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(r){}}return function(r,n,o,i,a,c,s,u,l,f){switch(r){case 1:if(0===l&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===u)return n+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(o[0]+n),"";default:return n+(0===f?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}((function(e){f.push(e)})),d=function(e,n,o){return n>0&&-1!==o.slice(0,n).indexOf(r)&&o.slice(n-r.length,n)!==r?"."+t:e};function g(e,o,i,a){void 0===a&&(a="&");var c=e.replace(q,""),s=o&&i?i+" "+o+" { "+c+" }":c;return t=a,r=o,n=new RegExp("\\"+r+"\\b","g"),l(i||!o?"":o,s)}return l.use([].concat(u,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(r)>0&&(o[0]=o[0].replace(n,d))},p,function(e){if(-2===e){var t=f;return f=[],t}}])),g.hash=u.length?u.reduce((function(e,t){return t.name||C(15),U(e,t.name)}),5381).toString():"",g}var W=i.a.createContext(),Y=(W.Consumer,i.a.createContext()),X=(Y.Consumer,new G),Z=V();function J(){return Object(o.useContext)(W)||X}function K(){return Object(o.useContext)(Y)||Z}var Q=function(){function e(e,t){var r=this;this.inject=function(e){e.hasNameForId(r.id,r.name)||e.insertRules(r.id,r.name,Z.apply(void 0,r.stringifyArgs))},this.toString=function(){return C(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.stringifyArgs=t}return e.prototype.getName=function(){return this.name},e}(),ee=/([A-Z])/g,te=/^ms-/;function re(e){return e.replace(ee,"-$1").toLowerCase().replace(te,"-ms-")}var ne=function(e){return null==e||!1===e||""===e},oe=function e(t,r){var n=[];return Object.keys(t).forEach((function(r){if(!ne(t[r])){if(d(t[r]))return n.push.apply(n,e(t[r],r)),n;if(g(t[r]))return n.push(re(r)+":",t[r],";"),n;n.push(re(r)+": "+(o=r,(null==(i=t[r])||"boolean"==typeof i||""===i?"":"number"!=typeof i||0===i||o in c.a?String(i).trim():i+"px")+";"))}var o,i;return n})),r?[r+" {"].concat(n,["}"]):n};function ie(e,t,r){if(Array.isArray(e)){for(var n,o=[],i=0,a=e.length;i1?t-1:0),n=1;n1?t-1:0),n=1;n25?39:97))};function de(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=pe(t%52)+r;return(pe(t%52)+r).replace(fe,"$1-$2")}function he(e){for(var t=0;t>>0);if(!t.hasNameForId(n,i)){var a=r(o,"."+i,void 0,n);t.insertRules(n,i,a)}return this.staticRulesId=i,i}for(var c=this.rules.length,s=U(this.baseHash,r.hash),u="",l=0;l>>0);if(!t.hasNameForId(n,h)){var m=r(u,"."+h,void 0,n);t.insertRules(n,h,m)}return h},e}(),ge=(new Set,function(e,t,r){return void 0===r&&(r=m),e.theme!==r.theme&&e.theme||t||r.theme}),ye=/[[\].#*$><+~=|^:(),"'`-]+/g,be=/(^-|-$)/g;function ve(e){return e.replace(ye,"-").replace(be,"")}function we(e){return"string"==typeof e&&!0}var ke=function(e){return de(H(e)>>>0)};var xe=i.a.createContext();xe.Consumer;var Se={};function Ce(e,t,r){var n=e.attrs,i=e.componentStyle,a=e.defaultProps,c=e.foldedComponentIds,u=e.shouldForwardProp,l=e.styledComponentId,p=e.target;Object(o.useDebugValue)(l);var d=function(e,t,r){void 0===e&&(e=m);var n=f({},t,{theme:e}),o={};return r.forEach((function(e){var t,r,i,a=e;for(t in g(a)&&(a=a(n)),a)n[t]=o[t]="className"===t?(r=o[t],i=a[t],r&&i?r+" "+i:r||i):a[t]})),[n,o]}(ge(t,Object(o.useContext)(xe),a)||m,t,n),h=d[0],y=d[1],b=function(e,t,r,n){var i=J(),a=K(),c=e.isStatic&&!t?e.generateAndInjectStyles(m,i,a):e.generateAndInjectStyles(r,i,a);return Object(o.useDebugValue)(c),c}(i,n.length>0,h),v=r,w=y.$as||t.$as||y.as||t.as||p,k=we(w),x=y!==t?f({},t,{},y):t,S=u||k&&s.a,C={};for(var A in x)"$"!==A[0]&&"as"!==A&&("forwardedAs"===A?C.as=x[A]:S&&!S(A,s.a)||(C[A]=x[A]));return t.style&&y.style!==t.style&&(C.style=f({},t.style,{},y.style)),C.className=Array.prototype.concat(c,l,b!==l?b:null,t.className,y.className).filter(Boolean).join(" "),C.ref=v,Object(o.createElement)(w,C)}function Ae(e,t,r){var n=b(e),o=!we(e),a=t.displayName,c=void 0===a?function(e){return we(e)?"styled."+e:"Styled("+y(e)+")"}(e):a,s=t.componentId,u=void 0===s?function(e,t){var r="string"!=typeof e?"sc":ve(e);Se[r]=(Se[r]||0)+1;var n=r+"-"+ke(r+Se[r]);return t?t+"-"+n:n}(t.displayName,t.parentComponentId):s,p=t.attrs,d=void 0===p?h:p,m=t.displayName&&t.componentId?ve(t.displayName)+"-"+t.componentId:t.componentId||u,g=n&&e.attrs?Array.prototype.concat(e.attrs,d).filter(Boolean):d,v=t.shouldForwardProp;n&&e.shouldForwardProp&&(v=v?function(r,n){return e.shouldForwardProp(r,n)&&t.shouldForwardProp(r,n)}:e.shouldForwardProp);var w,k=new me(n?e.componentStyle.rules.concat(r):r,m),x=function(e,t){return Ce(w,e,t)};return x.displayName=c,(w=i.a.forwardRef(x)).attrs=g,w.componentStyle=k,w.displayName=c,w.shouldForwardProp=v,w.foldedComponentIds=n?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):h,w.styledComponentId=m,w.target=n?e.target:e,w.withComponent=function(e){var n=t.componentId,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(t,["componentId"]),i=n&&n+"-"+(we(e)?e:ve(y(e)));return Ae(e,f({},o,{attrs:g,componentId:i}),r)},Object.defineProperty(w,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=n?le({},e.defaultProps,t):t}}),w.toString=function(){return"."+w.styledComponentId},o&&l()(w,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,self:!0,styledComponentId:!0,target:!0,withComponent:!0}),w}var Oe=function(e){return function e(t,r,o){if(void 0===o&&(o=m),!Object(n.isValidElementType)(r))return C(1,String(r));var i=function(){return t(r,o,ae.apply(void 0,arguments))};return i.withConfig=function(n){return e(t,r,f({},o,{},n))},i.attrs=function(n){return e(t,r,f({},o,{attrs:Array.prototype.concat(o.attrs,n).filter(Boolean)}))},i}(Ae,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","tspan"].forEach((function(e){Oe[e]=Oe(e)}));var je=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=he(e)}var t=e.prototype;return t.createStyles=function(e,t,r,n){var o=n(ie(this.rules,t,r).join(""),""),i=this.componentId+e;r.insertRules(i,i,o)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,r,n){G.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function Pe(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;nn&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*r&&0s.charCodeAt(8))break;case 115:a=a.replace(s,"-webkit-"+s)+";"+a;break;case 207:case 102:a=a.replace(s,"-webkit-"+(102c.charCodeAt(0)&&(c=c.trim()),c=[c],0d)&&(L=(G=G.replace(" ",":")).length),01)for(var r=1;r$.length&&$.push(e)}function E(e,t,r){return null==e?0:function e(t,r,n,o){var c=typeof t;"undefined"!==c&&"boolean"!==c||(t=null);var s=!1;if(null===t)s=!0;else switch(c){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case i:case a:s=!0}}if(s)return n(o,t,""===r?"."+_(t,0):r),1;if(s=0,r=""===r?".":r+":",Array.isArray(t))for(var u=0;u q) && (t = (f = f.replace(' ', ':')).length), 0 < A && void 0 !== (C = H(1, f, c, d, D, z, p.length, h, a, h)) && 0 === (t = (f = C.trim()).length) && (f = '\x00\x00'), q = f.charCodeAt(0), g = f.charCodeAt(1), q) { + case 0: + break; + + case 64: + if (105 === g || 99 === g) { + G += f + e.charAt(l); + break; + } + + default: + 58 !== f.charCodeAt(t - 1) && (p += P(f, q, g, f.charCodeAt(2))); + } + I = r = u = q = 0; + f = ''; + g = e.charCodeAt(++l); + } + } + + switch (g) { + case 13: + case 10: + 47 === b ? b = 0 : 0 === 1 + q && 107 !== h && 0 < f.length && (r = 1, f += '\x00'); + 0 < A * Y && H(0, f, c, d, D, z, p.length, h, a, h); + z = 1; + D++; + break; + + case 59: + case 125: + if (0 === b + n + v + m) { + z++; + break; + } + + default: + z++; + y = e.charAt(l); + + switch (g) { + case 9: + case 32: + if (0 === n + m + b) switch (x) { + case 44: + case 58: + case 9: + case 32: + y = ''; + break; + + default: + 32 !== g && (y = ' '); + } + break; + + case 0: + y = '\\0'; + break; + + case 12: + y = '\\f'; + break; + + case 11: + y = '\\v'; + break; + + case 38: + 0 === n + b + m && (r = I = 1, y = '\f' + y); + break; + + case 108: + if (0 === n + b + m + E && 0 < u) switch (l - u) { + case 2: + 112 === x && 58 === e.charCodeAt(l - 3) && (E = x); + + case 8: + 111 === K && (E = K); + } + break; + + case 58: + 0 === n + b + m && (u = l); + break; + + case 44: + 0 === b + v + n + m && (r = 1, y += '\r'); + break; + + case 34: + case 39: + 0 === b && (n = n === g ? 0 : 0 === n ? g : n); + break; + + case 91: + 0 === n + b + v && m++; + break; + + case 93: + 0 === n + b + v && m--; + break; + + case 41: + 0 === n + b + m && v--; + break; + + case 40: + if (0 === n + b + m) { + if (0 === q) switch (2 * x + 3 * K) { + case 533: + break; + + default: + q = 1; + } + v++; + } + + break; + + case 64: + 0 === b + v + n + m + u + k && (k = 1); + break; + + case 42: + case 47: + if (!(0 < n + m + v)) switch (b) { + case 0: + switch (2 * g + 3 * e.charCodeAt(l + 1)) { + case 235: + b = 47; + break; + + case 220: + t = l, b = 42; + } + + break; + + case 42: + 47 === g && 42 === x && t + 2 !== l && (33 === e.charCodeAt(t + 2) && (p += e.substring(t, l + 1)), y = '', b = 0); + } + } + + 0 === b && (f += y); + } + + K = x; + x = g; + l++; + } + + t = p.length; + + if (0 < t) { + r = c; + if (0 < A && (C = H(2, p, r, d, D, z, t, h, a, h), void 0 !== C && 0 === (p = C).length)) return G + p + F; + p = r.join(',') + '{' + p + '}'; + + if (0 !== w * E) { + 2 !== w || L(p, 2) || (E = 0); + + switch (E) { + case 111: + p = p.replace(ha, ':-moz-$1') + p; + break; + + case 112: + p = p.replace(Q, '::-webkit-input-$1') + p.replace(Q, '::-moz-$1') + p.replace(Q, ':-ms-input-$1') + p; + } + + E = 0; + } + } + + return G + p + F; + } + + function X(d, c, e) { + var h = c.trim().split(ia); + c = h; + var a = h.length, + m = d.length; + + switch (m) { + case 0: + case 1: + var b = 0; + + for (d = 0 === m ? '' : d[0] + ' '; b < a; ++b) { + c[b] = Z(d, c[b], e).trim(); + } + + break; + + default: + var v = b = 0; + + for (c = []; b < a; ++b) { + for (var n = 0; n < m; ++n) { + c[v++] = Z(d[n] + ' ', h[b], e).trim(); + } + } + + } + + return c; + } + + function Z(d, c, e) { + var h = c.charCodeAt(0); + 33 > h && (h = (c = c.trim()).charCodeAt(0)); + + switch (h) { + case 38: + return c.replace(F, '$1' + d.trim()); + + case 58: + return d.trim() + c.replace(F, '$1' + d.trim()); + + default: + if (0 < 1 * e && 0 < c.indexOf('\f')) return c.replace(F, (58 === d.charCodeAt(0) ? '' : '$1') + d.trim()); + } + + return d + c; + } + + function P(d, c, e, h) { + var a = d + ';', + m = 2 * c + 3 * e + 4 * h; + + if (944 === m) { + d = a.indexOf(':', 9) + 1; + var b = a.substring(d, a.length - 1).trim(); + b = a.substring(0, d).trim() + b + ';'; + return 1 === w || 2 === w && L(b, 1) ? '-webkit-' + b + b : b; + } + + if (0 === w || 2 === w && !L(a, 1)) return a; + + switch (m) { + case 1015: + return 97 === a.charCodeAt(10) ? '-webkit-' + a + a : a; + + case 951: + return 116 === a.charCodeAt(3) ? '-webkit-' + a + a : a; + + case 963: + return 110 === a.charCodeAt(5) ? '-webkit-' + a + a : a; + + case 1009: + if (100 !== a.charCodeAt(4)) break; + + case 969: + case 942: + return '-webkit-' + a + a; + + case 978: + return '-webkit-' + a + '-moz-' + a + a; + + case 1019: + case 983: + return '-webkit-' + a + '-moz-' + a + '-ms-' + a + a; + + case 883: + if (45 === a.charCodeAt(8)) return '-webkit-' + a + a; + if (0 < a.indexOf('image-set(', 11)) return a.replace(ja, '$1-webkit-$2') + a; + break; + + case 932: + if (45 === a.charCodeAt(4)) switch (a.charCodeAt(5)) { + case 103: + return '-webkit-box-' + a.replace('-grow', '') + '-webkit-' + a + '-ms-' + a.replace('grow', 'positive') + a; + + case 115: + return '-webkit-' + a + '-ms-' + a.replace('shrink', 'negative') + a; + + case 98: + return '-webkit-' + a + '-ms-' + a.replace('basis', 'preferred-size') + a; + } + return '-webkit-' + a + '-ms-' + a + a; + + case 964: + return '-webkit-' + a + '-ms-flex-' + a + a; + + case 1023: + if (99 !== a.charCodeAt(8)) break; + b = a.substring(a.indexOf(':', 15)).replace('flex-', '').replace('space-between', 'justify'); + return '-webkit-box-pack' + b + '-webkit-' + a + '-ms-flex-pack' + b + a; + + case 1005: + return ka.test(a) ? a.replace(aa, ':-webkit-') + a.replace(aa, ':-moz-') + a : a; + + case 1e3: + b = a.substring(13).trim(); + c = b.indexOf('-') + 1; + + switch (b.charCodeAt(0) + b.charCodeAt(c)) { + case 226: + b = a.replace(G, 'tb'); + break; + + case 232: + b = a.replace(G, 'tb-rl'); + break; + + case 220: + b = a.replace(G, 'lr'); + break; + + default: + return a; + } + + return '-webkit-' + a + '-ms-' + b + a; + + case 1017: + if (-1 === a.indexOf('sticky', 9)) break; + + case 975: + c = (a = d).length - 10; + b = (33 === a.charCodeAt(c) ? a.substring(0, c) : a).substring(d.indexOf(':', 7) + 1).trim(); + + switch (m = b.charCodeAt(0) + (b.charCodeAt(7) | 0)) { + case 203: + if (111 > b.charCodeAt(8)) break; + + case 115: + a = a.replace(b, '-webkit-' + b) + ';' + a; + break; + + case 207: + case 102: + a = a.replace(b, '-webkit-' + (102 < m ? 'inline-' : '') + 'box') + ';' + a.replace(b, '-webkit-' + b) + ';' + a.replace(b, '-ms-' + b + 'box') + ';' + a; + } + + return a + ';'; + + case 938: + if (45 === a.charCodeAt(5)) switch (a.charCodeAt(6)) { + case 105: + return b = a.replace('-items', ''), '-webkit-' + a + '-webkit-box-' + b + '-ms-flex-' + b + a; + + case 115: + return '-webkit-' + a + '-ms-flex-item-' + a.replace(ba, '') + a; + + default: + return '-webkit-' + a + '-ms-flex-line-pack' + a.replace('align-content', '').replace(ba, '') + a; + } + break; + + case 973: + case 989: + if (45 !== a.charCodeAt(3) || 122 === a.charCodeAt(4)) break; + + case 931: + case 953: + if (!0 === la.test(d)) return 115 === (b = d.substring(d.indexOf(':') + 1)).charCodeAt(0) ? P(d.replace('stretch', 'fill-available'), c, e, h).replace(':fill-available', ':stretch') : a.replace(b, '-webkit-' + b) + a.replace(b, '-moz-' + b.replace('fill-', '')) + a; + break; + + case 962: + if (a = '-webkit-' + a + (102 === a.charCodeAt(5) ? '-ms-' + a : '') + a, 211 === e + h && 105 === a.charCodeAt(13) && 0 < a.indexOf('transform', 10)) return a.substring(0, a.indexOf(';', 27) + 1).replace(ma, '$1-webkit-$2') + a; + } + + return a; + } + + function L(d, c) { + var e = d.indexOf(1 === c ? ':' : '{'), + h = d.substring(0, 3 !== c ? e : 10); + e = d.substring(e + 1, d.length - 1); + return R(2 !== c ? h : h.replace(na, '$1'), e, c); + } + + function ea(d, c) { + var e = P(c, c.charCodeAt(0), c.charCodeAt(1), c.charCodeAt(2)); + return e !== c + ';' ? e.replace(oa, ' or ($1)').substring(4) : '(' + c + ')'; + } + + function H(d, c, e, h, a, m, b, v, n, q) { + for (var g = 0, x = c, w; g < A; ++g) { + switch (w = S[g].call(B, d, x, e, h, a, m, b, v, n, q)) { + case void 0: + case !1: + case !0: + case null: + break; + + default: + x = w; + } + } + + if (x !== c) return x; + } + + function T(d) { + switch (d) { + case void 0: + case null: + A = S.length = 0; + break; + + default: + if ('function' === typeof d) S[A++] = d;else if ('object' === typeof d) for (var c = 0, e = d.length; c < e; ++c) { + T(d[c]); + } else Y = !!d | 0; + } + + return T; + } + + function U(d) { + d = d.prefix; + void 0 !== d && (R = null, d ? 'function' !== typeof d ? w = 1 : (w = 2, R = d) : w = 0); + return U; + } + + function B(d, c) { + var e = d; + 33 > e.charCodeAt(0) && (e = e.trim()); + V = e; + e = [V]; + + if (0 < A) { + var h = H(-1, c, e, e, D, z, 0, 0, 0, 0); + void 0 !== h && 'string' === typeof h && (c = h); + } + + var a = M(O, e, c, 0, 0); + 0 < A && (h = H(-2, a, e, e, D, z, a.length, 0, 0, 0), void 0 !== h && (a = h)); + V = ''; + E = 0; + z = D = 1; + return a; + } + + var ca = /^\0+/g, + N = /[\0\r\f]/g, + aa = /: */g, + ka = /zoo|gra/, + ma = /([,: ])(transform)/g, + ia = /,\r+?/g, + F = /([\t\r\n ])*\f?&/g, + fa = /@(k\w+)\s*(\S*)\s*/, + Q = /::(place)/g, + ha = /:(read-only)/g, + G = /[svh]\w+-[tblr]{2}/, + da = /\(\s*(.*)\s*\)/g, + oa = /([\s\S]*?);/g, + ba = /-self|flex-/g, + na = /[^]*?(:[rp][el]a[\w-]+)[^]*/, + la = /stretch|:\s*\w+\-(?:conte|avail)/, + ja = /([^-])(image-set\()/, + z = 1, + D = 1, + E = 0, + w = 1, + O = [], + S = [], + A = 0, + R = null, + Y = 0, + V = ''; + B.use = T; + B.set = U; + void 0 !== W && U(W); + return B; +} + +/* harmony default export */ __webpack_exports__["default"] = (stylis_min); + + +/***/ }), + +/***/ "./node_modules/@emotion/unitless/dist/unitless.browser.esm.js": +/*!*********************************************************************!*\ + !*** ./node_modules/@emotion/unitless/dist/unitless.browser.esm.js ***! + \*********************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +var unitlessKeys = { + 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, + // SVG-related properties + fillOpacity: 1, + floodOpacity: 1, + stopOpacity: 1, + strokeDasharray: 1, + strokeDashoffset: 1, + strokeMiterlimit: 1, + strokeOpacity: 1, + strokeWidth: 1 +}; + +/* harmony default export */ __webpack_exports__["default"] = (unitlessKeys); + + +/***/ }), + +/***/ "./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js": +/*!**********************************************************************************!*\ + !*** ./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js ***! + \**********************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var reactIs = __webpack_require__(/*! react-is */ "./node_modules/react-is/index.js"); + +/** + * Copyright 2015, Yahoo! Inc. + * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. + */ +var REACT_STATICS = { + childContextTypes: true, + contextType: true, + contextTypes: true, + defaultProps: true, + displayName: true, + getDefaultProps: true, + getDerivedStateFromError: true, + getDerivedStateFromProps: true, + mixins: true, + propTypes: true, + type: true +}; +var KNOWN_STATICS = { + name: true, + length: true, + prototype: true, + caller: true, + callee: true, + arguments: true, + arity: true +}; +var FORWARD_REF_STATICS = { + '$$typeof': true, + render: true, + defaultProps: true, + displayName: true, + propTypes: true +}; +var MEMO_STATICS = { + '$$typeof': true, + compare: true, + defaultProps: true, + displayName: true, + propTypes: true, + type: true +}; +var TYPE_STATICS = {}; +TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS; +TYPE_STATICS[reactIs.Memo] = MEMO_STATICS; + +function getStatics(component) { + // React v16.11 and below + if (reactIs.isMemo(component)) { + return MEMO_STATICS; + } // React v16.12 and above + + + return TYPE_STATICS[component['$$typeof']] || REACT_STATICS; +} + +var defineProperty = Object.defineProperty; +var getOwnPropertyNames = Object.getOwnPropertyNames; +var getOwnPropertySymbols = Object.getOwnPropertySymbols; +var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; +var getPrototypeOf = Object.getPrototypeOf; +var objectPrototype = Object.prototype; +function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) { + if (typeof sourceComponent !== 'string') { + // don't hoist over string (html) components + if (objectPrototype) { + var inheritedComponent = getPrototypeOf(sourceComponent); + + if (inheritedComponent && inheritedComponent !== objectPrototype) { + hoistNonReactStatics(targetComponent, inheritedComponent, blacklist); + } + } + + var keys = getOwnPropertyNames(sourceComponent); + + if (getOwnPropertySymbols) { + keys = keys.concat(getOwnPropertySymbols(sourceComponent)); + } + + var targetStatics = getStatics(targetComponent); + var sourceStatics = getStatics(sourceComponent); + + for (var i = 0; i < keys.length; ++i) { + var key = keys[i]; + + if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) { + var descriptor = getOwnPropertyDescriptor(sourceComponent, key); + + try { + // Avoid failures from read-only properties + defineProperty(targetComponent, key, descriptor); + } catch (e) {} + } + } + } + + return targetComponent; +} + +module.exports = hoistNonReactStatics; + + +/***/ }), + +/***/ "./node_modules/object-assign/index.js": +/*!*********************************************!*\ + !*** ./node_modules/object-assign/index.js ***! + \*********************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +/* +object-assign +(c) Sindre Sorhus +@license MIT +*/ + + +/* eslint-disable no-unused-vars */ +var getOwnPropertySymbols = Object.getOwnPropertySymbols; +var hasOwnProperty = Object.prototype.hasOwnProperty; +var propIsEnumerable = Object.prototype.propertyIsEnumerable; + +function toObject(val) { + if (val === null || val === undefined) { + throw new TypeError('Object.assign cannot be called with null or undefined'); + } + + return Object(val); +} + +function shouldUseNative() { + try { + if (!Object.assign) { + return false; + } + + // Detect buggy property enumeration order in older V8 versions. + + // https://bugs.chromium.org/p/v8/issues/detail?id=4118 + var test1 = new String('abc'); // eslint-disable-line no-new-wrappers + test1[5] = 'de'; + if (Object.getOwnPropertyNames(test1)[0] === '5') { + return false; + } + + // https://bugs.chromium.org/p/v8/issues/detail?id=3056 + var test2 = {}; + for (var i = 0; i < 10; i++) { + test2['_' + String.fromCharCode(i)] = i; + } + var order2 = Object.getOwnPropertyNames(test2).map(function (n) { + return test2[n]; + }); + if (order2.join('') !== '0123456789') { + return false; + } + + // https://bugs.chromium.org/p/v8/issues/detail?id=3056 + var test3 = {}; + 'abcdefghijklmnopqrst'.split('').forEach(function (letter) { + test3[letter] = letter; + }); + if (Object.keys(Object.assign({}, test3)).join('') !== + 'abcdefghijklmnopqrst') { + return false; + } + + return true; + } catch (err) { + // We don't expect any of the above to throw, but better to be safe. + return false; + } +} + +module.exports = shouldUseNative() ? Object.assign : function (target, source) { + var from; + var to = toObject(target); + var symbols; + + for (var s = 1; s < arguments.length; s++) { + from = Object(arguments[s]); + + for (var key in from) { + if (hasOwnProperty.call(from, key)) { + to[key] = from[key]; + } + } + + if (getOwnPropertySymbols) { + symbols = getOwnPropertySymbols(from); + for (var i = 0; i < symbols.length; i++) { + if (propIsEnumerable.call(from, symbols[i])) { + to[symbols[i]] = from[symbols[i]]; + } + } + } + } + + return to; +}; + + +/***/ }), + +/***/ "./node_modules/process/browser.js": +/*!*****************************************!*\ + !*** ./node_modules/process/browser.js ***! + \*****************************************/ +/*! no static exports found */ +/***/ (function(module, exports) { + +// shim for using process in browser +var process = module.exports = {}; + +// cached from whatever global is present so that test runners that stub it +// don't break things. But we need to wrap it in a try catch in case it is +// wrapped in strict mode code which doesn't define any globals. It's inside a +// function because try/catches deoptimize in certain engines. + +var cachedSetTimeout; +var cachedClearTimeout; + +function defaultSetTimout() { + throw new Error('setTimeout has not been defined'); +} +function defaultClearTimeout () { + throw new Error('clearTimeout has not been defined'); +} +(function () { + try { + if (typeof setTimeout === 'function') { + cachedSetTimeout = setTimeout; + } else { + cachedSetTimeout = defaultSetTimout; + } + } catch (e) { + cachedSetTimeout = defaultSetTimout; + } + try { + if (typeof clearTimeout === 'function') { + cachedClearTimeout = clearTimeout; + } else { + cachedClearTimeout = defaultClearTimeout; + } + } catch (e) { + cachedClearTimeout = defaultClearTimeout; + } +} ()) +function runTimeout(fun) { + if (cachedSetTimeout === setTimeout) { + //normal enviroments in sane situations + return setTimeout(fun, 0); + } + // if setTimeout wasn't available but was latter defined + if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) { + cachedSetTimeout = setTimeout; + return setTimeout(fun, 0); + } + try { + // when when somebody has screwed with setTimeout but no I.E. maddness + return cachedSetTimeout(fun, 0); + } catch(e){ + try { + // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally + return cachedSetTimeout.call(null, fun, 0); + } catch(e){ + // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error + return cachedSetTimeout.call(this, fun, 0); + } + } + + +} +function runClearTimeout(marker) { + if (cachedClearTimeout === clearTimeout) { + //normal enviroments in sane situations + return clearTimeout(marker); + } + // if clearTimeout wasn't available but was latter defined + if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) { + cachedClearTimeout = clearTimeout; + return clearTimeout(marker); + } + try { + // when when somebody has screwed with setTimeout but no I.E. maddness + return cachedClearTimeout(marker); + } catch (e){ + try { + // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally + return cachedClearTimeout.call(null, marker); + } catch (e){ + // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error. + // Some versions of I.E. have different rules for clearTimeout vs setTimeout + return cachedClearTimeout.call(this, marker); + } + } + + + +} +var queue = []; +var draining = false; +var currentQueue; +var queueIndex = -1; + +function cleanUpNextTick() { + if (!draining || !currentQueue) { + return; + } + draining = false; + if (currentQueue.length) { + queue = currentQueue.concat(queue); + } else { + queueIndex = -1; + } + if (queue.length) { + drainQueue(); + } +} + +function drainQueue() { + if (draining) { + return; + } + var timeout = runTimeout(cleanUpNextTick); + draining = true; + + var len = queue.length; + while(len) { + currentQueue = queue; + queue = []; + while (++queueIndex < len) { + if (currentQueue) { + currentQueue[queueIndex].run(); + } + } + queueIndex = -1; + len = queue.length; + } + currentQueue = null; + draining = false; + runClearTimeout(timeout); +} + +process.nextTick = function (fun) { + var args = new Array(arguments.length - 1); + if (arguments.length > 1) { + for (var i = 1; i < arguments.length; i++) { + args[i - 1] = arguments[i]; + } + } + queue.push(new Item(fun, args)); + if (queue.length === 1 && !draining) { + runTimeout(drainQueue); + } +}; + +// v8 likes predictible objects +function Item(fun, array) { + this.fun = fun; + this.array = array; +} +Item.prototype.run = function () { + this.fun.apply(null, this.array); +}; +process.title = 'browser'; +process.browser = true; +process.env = {}; +process.argv = []; +process.version = ''; // empty string to avoid regexp issues +process.versions = {}; + +function noop() {} + +process.on = noop; +process.addListener = noop; +process.once = noop; +process.off = noop; +process.removeListener = noop; +process.removeAllListeners = noop; +process.emit = noop; +process.prependListener = noop; +process.prependOnceListener = noop; + +process.listeners = function (name) { return [] } + +process.binding = function (name) { + throw new Error('process.binding is not supported'); +}; + +process.cwd = function () { return '/' }; +process.chdir = function (dir) { + throw new Error('process.chdir is not supported'); +}; +process.umask = function() { return 0; }; + + +/***/ }), + +/***/ "./node_modules/prop-types/checkPropTypes.js": +/*!***************************************************!*\ + !*** ./node_modules/prop-types/checkPropTypes.js ***! + \***************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + + +var printWarning = function() {}; + +if (true) { + var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "./node_modules/prop-types/lib/ReactPropTypesSecret.js"); + var loggedTypeFailures = {}; + var has = Function.call.bind(Object.prototype.hasOwnProperty); + + printWarning = function(text) { + var message = 'Warning: ' + text; + if (typeof console !== 'undefined') { + console.error(message); + } + try { + // --- Welcome to debugging React --- + // This error was thrown as a convenience so that you can use this stack + // to find the callsite that caused this warning to fire. + throw new Error(message); + } catch (x) {} + }; +} + +/** + * Assert that the values match with the type specs. + * Error messages are memorized and will only be shown once. + * + * @param {object} typeSpecs Map of name to a ReactPropType + * @param {object} values Runtime values that need to be type-checked + * @param {string} location e.g. "prop", "context", "child context" + * @param {string} componentName Name of the component for error messages. + * @param {?Function} getStack Returns the component stack. + * @private + */ +function checkPropTypes(typeSpecs, values, location, componentName, getStack) { + if (true) { + for (var typeSpecName in typeSpecs) { + if (has(typeSpecs, typeSpecName)) { + var error; + // Prop type validation may throw. In case they do, we don't want to + // fail the render phase where it didn't fail before. So we log it. + // After these have been cleaned up, we'll let them throw. + try { + // This is intentionally an invariant that gets caught. It's the same + // behavior as without this statement except with a better message. + if (typeof typeSpecs[typeSpecName] !== 'function') { + var err = Error( + (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + ); + err.name = 'Invariant Violation'; + throw err; + } + error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret); + } catch (ex) { + error = ex; + } + if (error && !(error instanceof Error)) { + printWarning( + (componentName || 'React class') + ': type specification of ' + + location + ' `' + typeSpecName + '` is invalid; the type checker ' + + 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' + + 'You may have forgotten to pass an argument to the type checker ' + + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + + 'shape all require an argument).' + ); + } + if (error instanceof Error && !(error.message in loggedTypeFailures)) { + // Only monitor this failure once because there tends to be a lot of the + // same error. + loggedTypeFailures[error.message] = true; + + var stack = getStack ? getStack() : ''; + + printWarning( + 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '') + ); + } + } + } + } +} + +/** + * Resets warning cache when testing. + * + * @private + */ +checkPropTypes.resetWarningCache = function() { + if (true) { + loggedTypeFailures = {}; + } +} + +module.exports = checkPropTypes; + + +/***/ }), + +/***/ "./node_modules/prop-types/lib/ReactPropTypesSecret.js": +/*!*************************************************************!*\ + !*** ./node_modules/prop-types/lib/ReactPropTypesSecret.js ***! + \*************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + + +var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; + +module.exports = ReactPropTypesSecret; + + +/***/ }), + +/***/ "./node_modules/react-is/cjs/react-is.development.js": +/*!***********************************************************!*\ + !*** ./node_modules/react-is/cjs/react-is.development.js ***! + \***********************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +/** @license React v16.13.1 + * react-is.development.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + + + + +if (true) { + (function() { +'use strict'; + +// The Symbol used to tag the ReactElement-like types. If there is no native Symbol +// nor polyfill, then a plain number is used for performance. +var hasSymbol = typeof Symbol === 'function' && Symbol.for; +var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7; +var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca; +var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb; +var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc; +var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2; +var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd; +var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary +// (unstable) APIs that have been removed. Can we remove the symbols? + +var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf; +var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf; +var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0; +var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1; +var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8; +var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3; +var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4; +var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9; +var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5; +var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6; +var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7; + +function isValidElementType(type) { + return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. + type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE); +} + +function typeOf(object) { + if (typeof object === 'object' && object !== null) { + var $$typeof = object.$$typeof; + + switch ($$typeof) { + case REACT_ELEMENT_TYPE: + var type = object.type; + + switch (type) { + case REACT_ASYNC_MODE_TYPE: + case REACT_CONCURRENT_MODE_TYPE: + case REACT_FRAGMENT_TYPE: + case REACT_PROFILER_TYPE: + case REACT_STRICT_MODE_TYPE: + case REACT_SUSPENSE_TYPE: + return type; + + default: + var $$typeofType = type && type.$$typeof; + + switch ($$typeofType) { + case REACT_CONTEXT_TYPE: + case REACT_FORWARD_REF_TYPE: + case REACT_LAZY_TYPE: + case REACT_MEMO_TYPE: + case REACT_PROVIDER_TYPE: + return $$typeofType; + + default: + return $$typeof; + } + + } + + case REACT_PORTAL_TYPE: + return $$typeof; + } + } + + return undefined; +} // AsyncMode is deprecated along with isAsyncMode + +var AsyncMode = REACT_ASYNC_MODE_TYPE; +var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE; +var ContextConsumer = REACT_CONTEXT_TYPE; +var ContextProvider = REACT_PROVIDER_TYPE; +var Element = REACT_ELEMENT_TYPE; +var ForwardRef = REACT_FORWARD_REF_TYPE; +var Fragment = REACT_FRAGMENT_TYPE; +var Lazy = REACT_LAZY_TYPE; +var Memo = REACT_MEMO_TYPE; +var Portal = REACT_PORTAL_TYPE; +var Profiler = REACT_PROFILER_TYPE; +var StrictMode = REACT_STRICT_MODE_TYPE; +var Suspense = REACT_SUSPENSE_TYPE; +var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated + +function isAsyncMode(object) { + { + if (!hasWarnedAboutDeprecatedIsAsyncMode) { + hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint + + console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.'); + } + } + + return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE; +} +function isConcurrentMode(object) { + return typeOf(object) === REACT_CONCURRENT_MODE_TYPE; +} +function isContextConsumer(object) { + return typeOf(object) === REACT_CONTEXT_TYPE; +} +function isContextProvider(object) { + return typeOf(object) === REACT_PROVIDER_TYPE; +} +function isElement(object) { + return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE; +} +function isForwardRef(object) { + return typeOf(object) === REACT_FORWARD_REF_TYPE; +} +function isFragment(object) { + return typeOf(object) === REACT_FRAGMENT_TYPE; +} +function isLazy(object) { + return typeOf(object) === REACT_LAZY_TYPE; +} +function isMemo(object) { + return typeOf(object) === REACT_MEMO_TYPE; +} +function isPortal(object) { + return typeOf(object) === REACT_PORTAL_TYPE; +} +function isProfiler(object) { + return typeOf(object) === REACT_PROFILER_TYPE; +} +function isStrictMode(object) { + return typeOf(object) === REACT_STRICT_MODE_TYPE; +} +function isSuspense(object) { + return typeOf(object) === REACT_SUSPENSE_TYPE; +} + +exports.AsyncMode = AsyncMode; +exports.ConcurrentMode = ConcurrentMode; +exports.ContextConsumer = ContextConsumer; +exports.ContextProvider = ContextProvider; +exports.Element = Element; +exports.ForwardRef = ForwardRef; +exports.Fragment = Fragment; +exports.Lazy = Lazy; +exports.Memo = Memo; +exports.Portal = Portal; +exports.Profiler = Profiler; +exports.StrictMode = StrictMode; +exports.Suspense = Suspense; +exports.isAsyncMode = isAsyncMode; +exports.isConcurrentMode = isConcurrentMode; +exports.isContextConsumer = isContextConsumer; +exports.isContextProvider = isContextProvider; +exports.isElement = isElement; +exports.isForwardRef = isForwardRef; +exports.isFragment = isFragment; +exports.isLazy = isLazy; +exports.isMemo = isMemo; +exports.isPortal = isPortal; +exports.isProfiler = isProfiler; +exports.isStrictMode = isStrictMode; +exports.isSuspense = isSuspense; +exports.isValidElementType = isValidElementType; +exports.typeOf = typeOf; + })(); +} + + +/***/ }), + +/***/ "./node_modules/react-is/index.js": +/*!****************************************!*\ + !*** ./node_modules/react-is/index.js ***! + \****************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +if (false) {} else { + module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "./node_modules/react-is/cjs/react-is.development.js"); +} + + +/***/ }), + +/***/ "./node_modules/react/cjs/react.development.js": +/*!*****************************************************!*\ + !*** ./node_modules/react/cjs/react.development.js ***! + \*****************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +/** @license React v16.13.1 + * react.development.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + + + + +if (true) { + (function() { +'use strict'; + +var _assign = __webpack_require__(/*! object-assign */ "./node_modules/object-assign/index.js"); +var checkPropTypes = __webpack_require__(/*! prop-types/checkPropTypes */ "./node_modules/prop-types/checkPropTypes.js"); + +var ReactVersion = '16.13.1'; + +// The Symbol used to tag the ReactElement-like types. If there is no native Symbol +// nor polyfill, then a plain number is used for performance. +var hasSymbol = typeof Symbol === 'function' && Symbol.for; +var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7; +var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca; +var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb; +var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc; +var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2; +var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd; +var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary +var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf; +var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0; +var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1; +var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8; +var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3; +var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4; +var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9; +var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5; +var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6; +var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7; +var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator; +var FAUX_ITERATOR_SYMBOL = '@@iterator'; +function getIteratorFn(maybeIterable) { + if (maybeIterable === null || typeof maybeIterable !== 'object') { + return null; + } + + var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]; + + if (typeof maybeIterator === 'function') { + return maybeIterator; + } + + return null; +} + +/** + * Keeps track of the current dispatcher. + */ +var ReactCurrentDispatcher = { + /** + * @internal + * @type {ReactComponent} + */ + current: null +}; + +/** + * Keeps track of the current batch's configuration such as how long an update + * should suspend for if it needs to. + */ +var ReactCurrentBatchConfig = { + suspense: null +}; + +/** + * Keeps track of the current owner. + * + * The current owner is the component who should own any components that are + * currently being constructed. + */ +var ReactCurrentOwner = { + /** + * @internal + * @type {ReactComponent} + */ + current: null +}; + +var BEFORE_SLASH_RE = /^(.*)[\\\/]/; +function describeComponentFrame (name, source, ownerName) { + var sourceInfo = ''; + + if (source) { + var path = source.fileName; + var fileName = path.replace(BEFORE_SLASH_RE, ''); + + { + // In DEV, include code for a common special case: + // prefer "folder/index.js" instead of just "index.js". + if (/^index\./.test(fileName)) { + var match = path.match(BEFORE_SLASH_RE); + + if (match) { + var pathBeforeSlash = match[1]; + + if (pathBeforeSlash) { + var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, ''); + fileName = folderName + '/' + fileName; + } + } + } + } + + sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')'; + } else if (ownerName) { + sourceInfo = ' (created by ' + ownerName + ')'; + } + + return '\n in ' + (name || 'Unknown') + sourceInfo; +} + +var Resolved = 1; +function refineResolvedLazyComponent(lazyComponent) { + return lazyComponent._status === Resolved ? lazyComponent._result : null; +} + +function getWrappedName(outerType, innerType, wrapperName) { + var functionName = innerType.displayName || innerType.name || ''; + return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName); +} + +function getComponentName(type) { + if (type == null) { + // Host root, text node or just invalid type. + return null; + } + + { + if (typeof type.tag === 'number') { + error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.'); + } + } + + if (typeof type === 'function') { + return type.displayName || type.name || null; + } + + if (typeof type === 'string') { + return type; + } + + switch (type) { + case REACT_FRAGMENT_TYPE: + return 'Fragment'; + + case REACT_PORTAL_TYPE: + return 'Portal'; + + case REACT_PROFILER_TYPE: + return "Profiler"; + + case REACT_STRICT_MODE_TYPE: + return 'StrictMode'; + + case REACT_SUSPENSE_TYPE: + return 'Suspense'; + + case REACT_SUSPENSE_LIST_TYPE: + return 'SuspenseList'; + } + + if (typeof type === 'object') { + switch (type.$$typeof) { + case REACT_CONTEXT_TYPE: + return 'Context.Consumer'; + + case REACT_PROVIDER_TYPE: + return 'Context.Provider'; + + case REACT_FORWARD_REF_TYPE: + return getWrappedName(type, type.render, 'ForwardRef'); + + case REACT_MEMO_TYPE: + return getComponentName(type.type); + + case REACT_BLOCK_TYPE: + return getComponentName(type.render); + + case REACT_LAZY_TYPE: + { + var thenable = type; + var resolvedThenable = refineResolvedLazyComponent(thenable); + + if (resolvedThenable) { + return getComponentName(resolvedThenable); + } + + break; + } + } + } + + return null; +} + +var ReactDebugCurrentFrame = {}; +var currentlyValidatingElement = null; +function setCurrentlyValidatingElement(element) { + { + currentlyValidatingElement = element; + } +} + +{ + // Stack implementation injected by the current renderer. + ReactDebugCurrentFrame.getCurrentStack = null; + + ReactDebugCurrentFrame.getStackAddendum = function () { + var stack = ''; // Add an extra top frame while an element is being validated + + if (currentlyValidatingElement) { + var name = getComponentName(currentlyValidatingElement.type); + var owner = currentlyValidatingElement._owner; + stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner.type)); + } // Delegate to the injected renderer-specific implementation + + + var impl = ReactDebugCurrentFrame.getCurrentStack; + + if (impl) { + stack += impl() || ''; + } + + return stack; + }; +} + +/** + * Used by act() to track whether you're inside an act() scope. + */ +var IsSomeRendererActing = { + current: false +}; + +var ReactSharedInternals = { + ReactCurrentDispatcher: ReactCurrentDispatcher, + ReactCurrentBatchConfig: ReactCurrentBatchConfig, + ReactCurrentOwner: ReactCurrentOwner, + IsSomeRendererActing: IsSomeRendererActing, + // Used by renderers to avoid bundling object-assign twice in UMD bundles: + assign: _assign +}; + +{ + _assign(ReactSharedInternals, { + // These should not be included in production. + ReactDebugCurrentFrame: ReactDebugCurrentFrame, + // Shim for React DOM 16.0.0 which still destructured (but not used) this. + // TODO: remove in React 17.0. + ReactComponentTreeHook: {} + }); +} + +// by calls to these methods by a Babel plugin. +// +// In PROD (or in packages without access to React internals), +// they are left as they are instead. + +function warn(format) { + { + for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } + + printWarning('warn', format, args); + } +} +function error(format) { + { + for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { + args[_key2 - 1] = arguments[_key2]; + } + + printWarning('error', format, args); + } +} + +function printWarning(level, format, args) { + // When changing this logic, you might want to also + // update consoleWithStackDev.www.js as well. + { + var hasExistingStack = args.length > 0 && typeof args[args.length - 1] === 'string' && args[args.length - 1].indexOf('\n in') === 0; + + if (!hasExistingStack) { + var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; + var stack = ReactDebugCurrentFrame.getStackAddendum(); + + if (stack !== '') { + format += '%s'; + args = args.concat([stack]); + } + } + + var argsWithFormat = args.map(function (item) { + return '' + item; + }); // Careful: RN currently depends on this prefix + + argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it + // breaks IE9: https://github.com/facebook/react/issues/13610 + // eslint-disable-next-line react-internal/no-production-logging + + Function.prototype.apply.call(console[level], console, argsWithFormat); + + try { + // --- Welcome to debugging React --- + // This error was thrown as a convenience so that you can use this stack + // to find the callsite that caused this warning to fire. + var argIndex = 0; + var message = 'Warning: ' + format.replace(/%s/g, function () { + return args[argIndex++]; + }); + throw new Error(message); + } catch (x) {} + } +} + +var didWarnStateUpdateForUnmountedComponent = {}; + +function warnNoop(publicInstance, callerName) { + { + var _constructor = publicInstance.constructor; + var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass'; + var warningKey = componentName + "." + callerName; + + if (didWarnStateUpdateForUnmountedComponent[warningKey]) { + return; + } + + error("Can't call %s on a component that is not yet mounted. " + 'This is a no-op, but it might indicate a bug in your application. ' + 'Instead, assign to `this.state` directly or define a `state = {};` ' + 'class property with the desired state in the %s component.', callerName, componentName); + + didWarnStateUpdateForUnmountedComponent[warningKey] = true; + } +} +/** + * This is the abstract API for an update queue. + */ + + +var ReactNoopUpdateQueue = { + /** + * Checks whether or not this composite component is mounted. + * @param {ReactClass} publicInstance The instance we want to test. + * @return {boolean} True if mounted, false otherwise. + * @protected + * @final + */ + isMounted: function (publicInstance) { + return false; + }, + + /** + * Forces an update. This should only be invoked when it is known with + * certainty that we are **not** in a DOM transaction. + * + * You may want to call this when you know that some deeper aspect of the + * component's state has changed but `setState` was not called. + * + * This will not invoke `shouldComponentUpdate`, but it will invoke + * `componentWillUpdate` and `componentDidUpdate`. + * + * @param {ReactClass} publicInstance The instance that should rerender. + * @param {?function} callback Called after component is updated. + * @param {?string} callerName name of the calling function in the public API. + * @internal + */ + enqueueForceUpdate: function (publicInstance, callback, callerName) { + warnNoop(publicInstance, 'forceUpdate'); + }, + + /** + * Replaces all of the state. Always use this or `setState` to mutate state. + * You should treat `this.state` as immutable. + * + * There is no guarantee that `this.state` will be immediately updated, so + * accessing `this.state` after calling this method may return the old value. + * + * @param {ReactClass} publicInstance The instance that should rerender. + * @param {object} completeState Next state. + * @param {?function} callback Called after component is updated. + * @param {?string} callerName name of the calling function in the public API. + * @internal + */ + enqueueReplaceState: function (publicInstance, completeState, callback, callerName) { + warnNoop(publicInstance, 'replaceState'); + }, + + /** + * Sets a subset of the state. This only exists because _pendingState is + * internal. This provides a merging strategy that is not available to deep + * properties which is confusing. TODO: Expose pendingState or don't use it + * during the merge. + * + * @param {ReactClass} publicInstance The instance that should rerender. + * @param {object} partialState Next partial state to be merged with state. + * @param {?function} callback Called after component is updated. + * @param {?string} Name of the calling function in the public API. + * @internal + */ + enqueueSetState: function (publicInstance, partialState, callback, callerName) { + warnNoop(publicInstance, 'setState'); + } +}; + +var emptyObject = {}; + +{ + Object.freeze(emptyObject); +} +/** + * Base class helpers for the updating state of a component. + */ + + +function Component(props, context, updater) { + this.props = props; + this.context = context; // If a component has string refs, we will assign a different object later. + + this.refs = emptyObject; // We initialize the default updater but the real one gets injected by the + // renderer. + + this.updater = updater || ReactNoopUpdateQueue; +} + +Component.prototype.isReactComponent = {}; +/** + * Sets a subset of the state. Always use this to mutate + * state. You should treat `this.state` as immutable. + * + * There is no guarantee that `this.state` will be immediately updated, so + * accessing `this.state` after calling this method may return the old value. + * + * There is no guarantee that calls to `setState` will run synchronously, + * as they may eventually be batched together. You can provide an optional + * callback that will be executed when the call to setState is actually + * completed. + * + * When a function is provided to setState, it will be called at some point in + * the future (not synchronously). It will be called with the up to date + * component arguments (state, props, context). These values can be different + * from this.* because your function may be called after receiveProps but before + * shouldComponentUpdate, and this new state, props, and context will not yet be + * assigned to this. + * + * @param {object|function} partialState Next partial state or function to + * produce next partial state to be merged with current state. + * @param {?function} callback Called after state is updated. + * @final + * @protected + */ + +Component.prototype.setState = function (partialState, callback) { + if (!(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null)) { + { + throw Error( "setState(...): takes an object of state variables to update or a function which returns an object of state variables." ); + } + } + + this.updater.enqueueSetState(this, partialState, callback, 'setState'); +}; +/** + * Forces an update. This should only be invoked when it is known with + * certainty that we are **not** in a DOM transaction. + * + * You may want to call this when you know that some deeper aspect of the + * component's state has changed but `setState` was not called. + * + * This will not invoke `shouldComponentUpdate`, but it will invoke + * `componentWillUpdate` and `componentDidUpdate`. + * + * @param {?function} callback Called after update is complete. + * @final + * @protected + */ + + +Component.prototype.forceUpdate = function (callback) { + this.updater.enqueueForceUpdate(this, callback, 'forceUpdate'); +}; +/** + * Deprecated APIs. These APIs used to exist on classic React classes but since + * we would like to deprecate them, we're not going to move them over to this + * modern base class. Instead, we define a getter that warns if it's accessed. + */ + + +{ + var deprecatedAPIs = { + isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'], + replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).'] + }; + + var defineDeprecationWarning = function (methodName, info) { + Object.defineProperty(Component.prototype, methodName, { + get: function () { + warn('%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]); + + return undefined; + } + }); + }; + + for (var fnName in deprecatedAPIs) { + if (deprecatedAPIs.hasOwnProperty(fnName)) { + defineDeprecationWarning(fnName, deprecatedAPIs[fnName]); + } + } +} + +function ComponentDummy() {} + +ComponentDummy.prototype = Component.prototype; +/** + * Convenience component with default shallow equality check for sCU. + */ + +function PureComponent(props, context, updater) { + this.props = props; + this.context = context; // If a component has string refs, we will assign a different object later. + + this.refs = emptyObject; + this.updater = updater || ReactNoopUpdateQueue; +} + +var pureComponentPrototype = PureComponent.prototype = new ComponentDummy(); +pureComponentPrototype.constructor = PureComponent; // Avoid an extra prototype jump for these methods. + +_assign(pureComponentPrototype, Component.prototype); + +pureComponentPrototype.isPureReactComponent = true; + +// an immutable object with a single mutable value +function createRef() { + var refObject = { + current: null + }; + + { + Object.seal(refObject); + } + + return refObject; +} + +var hasOwnProperty = Object.prototype.hasOwnProperty; +var RESERVED_PROPS = { + key: true, + ref: true, + __self: true, + __source: true +}; +var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs; + +{ + didWarnAboutStringRefs = {}; +} + +function hasValidRef(config) { + { + if (hasOwnProperty.call(config, 'ref')) { + var getter = Object.getOwnPropertyDescriptor(config, 'ref').get; + + if (getter && getter.isReactWarning) { + return false; + } + } + } + + return config.ref !== undefined; +} + +function hasValidKey(config) { + { + if (hasOwnProperty.call(config, 'key')) { + var getter = Object.getOwnPropertyDescriptor(config, 'key').get; + + if (getter && getter.isReactWarning) { + return false; + } + } + } + + return config.key !== undefined; +} + +function defineKeyPropWarningGetter(props, displayName) { + var warnAboutAccessingKey = function () { + { + if (!specialPropKeyWarningShown) { + specialPropKeyWarningShown = true; + + error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName); + } + } + }; + + warnAboutAccessingKey.isReactWarning = true; + Object.defineProperty(props, 'key', { + get: warnAboutAccessingKey, + configurable: true + }); +} + +function defineRefPropWarningGetter(props, displayName) { + var warnAboutAccessingRef = function () { + { + if (!specialPropRefWarningShown) { + specialPropRefWarningShown = true; + + error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName); + } + } + }; + + warnAboutAccessingRef.isReactWarning = true; + Object.defineProperty(props, 'ref', { + get: warnAboutAccessingRef, + configurable: true + }); +} + +function warnIfStringRefCannotBeAutoConverted(config) { + { + if (typeof config.ref === 'string' && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) { + var componentName = getComponentName(ReactCurrentOwner.current.type); + + if (!didWarnAboutStringRefs[componentName]) { + error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://fb.me/react-strict-mode-string-ref', getComponentName(ReactCurrentOwner.current.type), config.ref); + + didWarnAboutStringRefs[componentName] = true; + } + } + } +} +/** + * Factory method to create a new React element. This no longer adheres to + * the class pattern, so do not use new to call it. Also, instanceof check + * will not work. Instead test $$typeof field against Symbol.for('react.element') to check + * if something is a React Element. + * + * @param {*} type + * @param {*} props + * @param {*} key + * @param {string|object} ref + * @param {*} owner + * @param {*} self A *temporary* helper to detect places where `this` is + * different from the `owner` when React.createElement is called, so that we + * can warn. We want to get rid of owner and replace string `ref`s with arrow + * functions, and as long as `this` and owner are the same, there will be no + * change in behavior. + * @param {*} source An annotation object (added by a transpiler or otherwise) + * indicating filename, line number, and/or other information. + * @internal + */ + + +var ReactElement = function (type, key, ref, self, source, owner, props) { + var element = { + // This tag allows us to uniquely identify this as a React Element + $$typeof: REACT_ELEMENT_TYPE, + // Built-in properties that belong on the element + type: type, + key: key, + ref: ref, + props: props, + // Record the component responsible for creating this element. + _owner: owner + }; + + { + // The validation flag is currently mutative. We put it on + // an external backing store so that we can freeze the whole object. + // This can be replaced with a WeakMap once they are implemented in + // commonly used development environments. + element._store = {}; // To make comparing ReactElements easier for testing purposes, we make + // the validation flag non-enumerable (where possible, which should + // include every environment we run tests in), so the test framework + // ignores it. + + Object.defineProperty(element._store, 'validated', { + configurable: false, + enumerable: false, + writable: true, + value: false + }); // self and source are DEV only properties. + + Object.defineProperty(element, '_self', { + configurable: false, + enumerable: false, + writable: false, + value: self + }); // Two elements created in two different places should be considered + // equal for testing purposes and therefore we hide it from enumeration. + + Object.defineProperty(element, '_source', { + configurable: false, + enumerable: false, + writable: false, + value: source + }); + + if (Object.freeze) { + Object.freeze(element.props); + Object.freeze(element); + } + } + + return element; +}; +/** + * Create and return a new ReactElement of the given type. + * See https://reactjs.org/docs/react-api.html#createelement + */ + +function createElement(type, config, children) { + var propName; // Reserved names are extracted + + var props = {}; + var key = null; + var ref = null; + var self = null; + var source = null; + + if (config != null) { + if (hasValidRef(config)) { + ref = config.ref; + + { + warnIfStringRefCannotBeAutoConverted(config); + } + } + + if (hasValidKey(config)) { + key = '' + config.key; + } + + self = config.__self === undefined ? null : config.__self; + source = config.__source === undefined ? null : config.__source; // Remaining properties are added to a new props object + + for (propName in config) { + if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) { + props[propName] = config[propName]; + } + } + } // Children can be more than one argument, and those are transferred onto + // the newly allocated props object. + + + var childrenLength = arguments.length - 2; + + if (childrenLength === 1) { + props.children = children; + } else if (childrenLength > 1) { + var childArray = Array(childrenLength); + + for (var i = 0; i < childrenLength; i++) { + childArray[i] = arguments[i + 2]; + } + + { + if (Object.freeze) { + Object.freeze(childArray); + } + } + + props.children = childArray; + } // Resolve default props + + + if (type && type.defaultProps) { + var defaultProps = type.defaultProps; + + for (propName in defaultProps) { + if (props[propName] === undefined) { + props[propName] = defaultProps[propName]; + } + } + } + + { + if (key || ref) { + var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type; + + if (key) { + defineKeyPropWarningGetter(props, displayName); + } + + if (ref) { + defineRefPropWarningGetter(props, displayName); + } + } + } + + return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props); +} +function cloneAndReplaceKey(oldElement, newKey) { + var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props); + return newElement; +} +/** + * Clone and return a new ReactElement using element as the starting point. + * See https://reactjs.org/docs/react-api.html#cloneelement + */ + +function cloneElement(element, config, children) { + if (!!(element === null || element === undefined)) { + { + throw Error( "React.cloneElement(...): The argument must be a React element, but you passed " + element + "." ); + } + } + + var propName; // Original props are copied + + var props = _assign({}, element.props); // Reserved names are extracted + + + var key = element.key; + var ref = element.ref; // Self is preserved since the owner is preserved. + + var self = element._self; // Source is preserved since cloneElement is unlikely to be targeted by a + // transpiler, and the original source is probably a better indicator of the + // true owner. + + var source = element._source; // Owner will be preserved, unless ref is overridden + + var owner = element._owner; + + if (config != null) { + if (hasValidRef(config)) { + // Silently steal the ref from the parent. + ref = config.ref; + owner = ReactCurrentOwner.current; + } + + if (hasValidKey(config)) { + key = '' + config.key; + } // Remaining properties override existing props + + + var defaultProps; + + if (element.type && element.type.defaultProps) { + defaultProps = element.type.defaultProps; + } + + for (propName in config) { + if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) { + if (config[propName] === undefined && defaultProps !== undefined) { + // Resolve default props + props[propName] = defaultProps[propName]; + } else { + props[propName] = config[propName]; + } + } + } + } // Children can be more than one argument, and those are transferred onto + // the newly allocated props object. + + + var childrenLength = arguments.length - 2; + + if (childrenLength === 1) { + props.children = children; + } else if (childrenLength > 1) { + var childArray = Array(childrenLength); + + for (var i = 0; i < childrenLength; i++) { + childArray[i] = arguments[i + 2]; + } + + props.children = childArray; + } + + return ReactElement(element.type, key, ref, self, source, owner, props); +} +/** + * Verifies the object is a ReactElement. + * See https://reactjs.org/docs/react-api.html#isvalidelement + * @param {?object} object + * @return {boolean} True if `object` is a ReactElement. + * @final + */ + +function isValidElement(object) { + return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE; +} + +var SEPARATOR = '.'; +var SUBSEPARATOR = ':'; +/** + * Escape and wrap key so it is safe to use as a reactid + * + * @param {string} key to be escaped. + * @return {string} the escaped key. + */ + +function escape(key) { + var escapeRegex = /[=:]/g; + var escaperLookup = { + '=': '=0', + ':': '=2' + }; + var escapedString = ('' + key).replace(escapeRegex, function (match) { + return escaperLookup[match]; + }); + return '$' + escapedString; +} +/** + * TODO: Test that a single child and an array with one item have the same key + * pattern. + */ + + +var didWarnAboutMaps = false; +var userProvidedKeyEscapeRegex = /\/+/g; + +function escapeUserProvidedKey(text) { + return ('' + text).replace(userProvidedKeyEscapeRegex, '$&/'); +} + +var POOL_SIZE = 10; +var traverseContextPool = []; + +function getPooledTraverseContext(mapResult, keyPrefix, mapFunction, mapContext) { + if (traverseContextPool.length) { + var traverseContext = traverseContextPool.pop(); + traverseContext.result = mapResult; + traverseContext.keyPrefix = keyPrefix; + traverseContext.func = mapFunction; + traverseContext.context = mapContext; + traverseContext.count = 0; + return traverseContext; + } else { + return { + result: mapResult, + keyPrefix: keyPrefix, + func: mapFunction, + context: mapContext, + count: 0 + }; + } +} + +function releaseTraverseContext(traverseContext) { + traverseContext.result = null; + traverseContext.keyPrefix = null; + traverseContext.func = null; + traverseContext.context = null; + traverseContext.count = 0; + + if (traverseContextPool.length < POOL_SIZE) { + traverseContextPool.push(traverseContext); + } +} +/** + * @param {?*} children Children tree container. + * @param {!string} nameSoFar Name of the key path so far. + * @param {!function} callback Callback to invoke with each child found. + * @param {?*} traverseContext Used to pass information throughout the traversal + * process. + * @return {!number} The number of children in this subtree. + */ + + +function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) { + var type = typeof children; + + if (type === 'undefined' || type === 'boolean') { + // All of the above are perceived as null. + children = null; + } + + var invokeCallback = false; + + if (children === null) { + invokeCallback = true; + } else { + switch (type) { + case 'string': + case 'number': + invokeCallback = true; + break; + + case 'object': + switch (children.$$typeof) { + case REACT_ELEMENT_TYPE: + case REACT_PORTAL_TYPE: + invokeCallback = true; + } + + } + } + + if (invokeCallback) { + callback(traverseContext, children, // If it's the only child, treat the name as if it was wrapped in an array + // so that it's consistent if the number of children grows. + nameSoFar === '' ? SEPARATOR + getComponentKey(children, 0) : nameSoFar); + return 1; + } + + var child; + var nextName; + var subtreeCount = 0; // Count of children found in the current subtree. + + var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR; + + if (Array.isArray(children)) { + for (var i = 0; i < children.length; i++) { + child = children[i]; + nextName = nextNamePrefix + getComponentKey(child, i); + subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext); + } + } else { + var iteratorFn = getIteratorFn(children); + + if (typeof iteratorFn === 'function') { + + { + // Warn about using Maps as children + if (iteratorFn === children.entries) { + if (!didWarnAboutMaps) { + warn('Using Maps as children is deprecated and will be removed in ' + 'a future major release. Consider converting children to ' + 'an array of keyed ReactElements instead.'); + } + + didWarnAboutMaps = true; + } + } + + var iterator = iteratorFn.call(children); + var step; + var ii = 0; + + while (!(step = iterator.next()).done) { + child = step.value; + nextName = nextNamePrefix + getComponentKey(child, ii++); + subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext); + } + } else if (type === 'object') { + var addendum = ''; + + { + addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + ReactDebugCurrentFrame.getStackAddendum(); + } + + var childrenString = '' + children; + + { + { + throw Error( "Objects are not valid as a React child (found: " + (childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString) + ")." + addendum ); + } + } + } + } + + return subtreeCount; +} +/** + * Traverses children that are typically specified as `props.children`, but + * might also be specified through attributes: + * + * - `traverseAllChildren(this.props.children, ...)` + * - `traverseAllChildren(this.props.leftPanelChildren, ...)` + * + * The `traverseContext` is an optional argument that is passed through the + * entire traversal. It can be used to store accumulations or anything else that + * the callback might find relevant. + * + * @param {?*} children Children tree object. + * @param {!function} callback To invoke upon traversing each child. + * @param {?*} traverseContext Context for traversal. + * @return {!number} The number of children in this subtree. + */ + + +function traverseAllChildren(children, callback, traverseContext) { + if (children == null) { + return 0; + } + + return traverseAllChildrenImpl(children, '', callback, traverseContext); +} +/** + * Generate a key string that identifies a component within a set. + * + * @param {*} component A component that could contain a manual key. + * @param {number} index Index that is used if a manual key is not provided. + * @return {string} + */ + + +function getComponentKey(component, index) { + // Do some typechecking here since we call this blindly. We want to ensure + // that we don't block potential future ES APIs. + if (typeof component === 'object' && component !== null && component.key != null) { + // Explicit key + return escape(component.key); + } // Implicit key determined by the index in the set + + + return index.toString(36); +} + +function forEachSingleChild(bookKeeping, child, name) { + var func = bookKeeping.func, + context = bookKeeping.context; + func.call(context, child, bookKeeping.count++); +} +/** + * Iterates through children that are typically specified as `props.children`. + * + * See https://reactjs.org/docs/react-api.html#reactchildrenforeach + * + * The provided forEachFunc(child, index) will be called for each + * leaf child. + * + * @param {?*} children Children tree container. + * @param {function(*, int)} forEachFunc + * @param {*} forEachContext Context for forEachContext. + */ + + +function forEachChildren(children, forEachFunc, forEachContext) { + if (children == null) { + return children; + } + + var traverseContext = getPooledTraverseContext(null, null, forEachFunc, forEachContext); + traverseAllChildren(children, forEachSingleChild, traverseContext); + releaseTraverseContext(traverseContext); +} + +function mapSingleChildIntoContext(bookKeeping, child, childKey) { + var result = bookKeeping.result, + keyPrefix = bookKeeping.keyPrefix, + func = bookKeeping.func, + context = bookKeeping.context; + var mappedChild = func.call(context, child, bookKeeping.count++); + + if (Array.isArray(mappedChild)) { + mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, function (c) { + return c; + }); + } else if (mappedChild != null) { + if (isValidElement(mappedChild)) { + mappedChild = cloneAndReplaceKey(mappedChild, // Keep both the (mapped) and old keys if they differ, just as + // traverseAllChildren used to do for objects as children + keyPrefix + (mappedChild.key && (!child || child.key !== mappedChild.key) ? escapeUserProvidedKey(mappedChild.key) + '/' : '') + childKey); + } + + result.push(mappedChild); + } +} + +function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) { + var escapedPrefix = ''; + + if (prefix != null) { + escapedPrefix = escapeUserProvidedKey(prefix) + '/'; + } + + var traverseContext = getPooledTraverseContext(array, escapedPrefix, func, context); + traverseAllChildren(children, mapSingleChildIntoContext, traverseContext); + releaseTraverseContext(traverseContext); +} +/** + * Maps children that are typically specified as `props.children`. + * + * See https://reactjs.org/docs/react-api.html#reactchildrenmap + * + * The provided mapFunction(child, key, index) will be called for each + * leaf child. + * + * @param {?*} children Children tree container. + * @param {function(*, int)} func The map function. + * @param {*} context Context for mapFunction. + * @return {object} Object containing the ordered map of results. + */ + + +function mapChildren(children, func, context) { + if (children == null) { + return children; + } + + var result = []; + mapIntoWithKeyPrefixInternal(children, result, null, func, context); + return result; +} +/** + * Count the number of children that are typically specified as + * `props.children`. + * + * See https://reactjs.org/docs/react-api.html#reactchildrencount + * + * @param {?*} children Children tree container. + * @return {number} The number of children. + */ + + +function countChildren(children) { + return traverseAllChildren(children, function () { + return null; + }, null); +} +/** + * Flatten a children object (typically specified as `props.children`) and + * return an array with appropriately re-keyed children. + * + * See https://reactjs.org/docs/react-api.html#reactchildrentoarray + */ + + +function toArray(children) { + var result = []; + mapIntoWithKeyPrefixInternal(children, result, null, function (child) { + return child; + }); + return result; +} +/** + * Returns the first child in a collection of children and verifies that there + * is only one child in the collection. + * + * See https://reactjs.org/docs/react-api.html#reactchildrenonly + * + * The current implementation of this function assumes that a single child gets + * passed without a wrapper, but the purpose of this helper function is to + * abstract away the particular structure of children. + * + * @param {?object} children Child collection structure. + * @return {ReactElement} The first and only `ReactElement` contained in the + * structure. + */ + + +function onlyChild(children) { + if (!isValidElement(children)) { + { + throw Error( "React.Children.only expected to receive a single React element child." ); + } + } + + return children; +} + +function createContext(defaultValue, calculateChangedBits) { + if (calculateChangedBits === undefined) { + calculateChangedBits = null; + } else { + { + if (calculateChangedBits !== null && typeof calculateChangedBits !== 'function') { + error('createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits); + } + } + } + + var context = { + $$typeof: REACT_CONTEXT_TYPE, + _calculateChangedBits: calculateChangedBits, + // As a workaround to support multiple concurrent renderers, we categorize + // some renderers as primary and others as secondary. We only expect + // there to be two concurrent renderers at most: React Native (primary) and + // Fabric (secondary); React DOM (primary) and React ART (secondary). + // Secondary renderers store their context values on separate fields. + _currentValue: defaultValue, + _currentValue2: defaultValue, + // Used to track how many concurrent renderers this context currently + // supports within in a single renderer. Such as parallel server rendering. + _threadCount: 0, + // These are circular + Provider: null, + Consumer: null + }; + context.Provider = { + $$typeof: REACT_PROVIDER_TYPE, + _context: context + }; + var hasWarnedAboutUsingNestedContextConsumers = false; + var hasWarnedAboutUsingConsumerProvider = false; + + { + // A separate object, but proxies back to the original context object for + // backwards compatibility. It has a different $$typeof, so we can properly + // warn for the incorrect usage of Context as a Consumer. + var Consumer = { + $$typeof: REACT_CONTEXT_TYPE, + _context: context, + _calculateChangedBits: context._calculateChangedBits + }; // $FlowFixMe: Flow complains about not setting a value, which is intentional here + + Object.defineProperties(Consumer, { + Provider: { + get: function () { + if (!hasWarnedAboutUsingConsumerProvider) { + hasWarnedAboutUsingConsumerProvider = true; + + error('Rendering is not supported and will be removed in ' + 'a future major release. Did you mean to render instead?'); + } + + return context.Provider; + }, + set: function (_Provider) { + context.Provider = _Provider; + } + }, + _currentValue: { + get: function () { + return context._currentValue; + }, + set: function (_currentValue) { + context._currentValue = _currentValue; + } + }, + _currentValue2: { + get: function () { + return context._currentValue2; + }, + set: function (_currentValue2) { + context._currentValue2 = _currentValue2; + } + }, + _threadCount: { + get: function () { + return context._threadCount; + }, + set: function (_threadCount) { + context._threadCount = _threadCount; + } + }, + Consumer: { + get: function () { + if (!hasWarnedAboutUsingNestedContextConsumers) { + hasWarnedAboutUsingNestedContextConsumers = true; + + error('Rendering is not supported and will be removed in ' + 'a future major release. Did you mean to render instead?'); + } + + return context.Consumer; + } + } + }); // $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty + + context.Consumer = Consumer; + } + + { + context._currentRenderer = null; + context._currentRenderer2 = null; + } + + return context; +} + +function lazy(ctor) { + var lazyType = { + $$typeof: REACT_LAZY_TYPE, + _ctor: ctor, + // React uses these fields to store the result. + _status: -1, + _result: null + }; + + { + // In production, this would just set it on the object. + var defaultProps; + var propTypes; + Object.defineProperties(lazyType, { + defaultProps: { + configurable: true, + get: function () { + return defaultProps; + }, + set: function (newDefaultProps) { + error('React.lazy(...): It is not supported to assign `defaultProps` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.'); + + defaultProps = newDefaultProps; // Match production behavior more closely: + + Object.defineProperty(lazyType, 'defaultProps', { + enumerable: true + }); + } + }, + propTypes: { + configurable: true, + get: function () { + return propTypes; + }, + set: function (newPropTypes) { + error('React.lazy(...): It is not supported to assign `propTypes` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.'); + + propTypes = newPropTypes; // Match production behavior more closely: + + Object.defineProperty(lazyType, 'propTypes', { + enumerable: true + }); + } + } + }); + } + + return lazyType; +} + +function forwardRef(render) { + { + if (render != null && render.$$typeof === REACT_MEMO_TYPE) { + error('forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).'); + } else if (typeof render !== 'function') { + error('forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render); + } else { + if (render.length !== 0 && render.length !== 2) { + error('forwardRef render functions accept exactly two parameters: props and ref. %s', render.length === 1 ? 'Did you forget to use the ref parameter?' : 'Any additional parameter will be undefined.'); + } + } + + if (render != null) { + if (render.defaultProps != null || render.propTypes != null) { + error('forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?'); + } + } + } + + return { + $$typeof: REACT_FORWARD_REF_TYPE, + render: render + }; +} + +function isValidElementType(type) { + return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. + type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE); +} + +function memo(type, compare) { + { + if (!isValidElementType(type)) { + error('memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type); + } + } + + return { + $$typeof: REACT_MEMO_TYPE, + type: type, + compare: compare === undefined ? null : compare + }; +} + +function resolveDispatcher() { + var dispatcher = ReactCurrentDispatcher.current; + + if (!(dispatcher !== null)) { + { + throw Error( "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem." ); + } + } + + return dispatcher; +} + +function useContext(Context, unstable_observedBits) { + var dispatcher = resolveDispatcher(); + + { + if (unstable_observedBits !== undefined) { + error('useContext() second argument is reserved for future ' + 'use in React. Passing it is not supported. ' + 'You passed: %s.%s', unstable_observedBits, typeof unstable_observedBits === 'number' && Array.isArray(arguments[2]) ? '\n\nDid you call array.map(useContext)? ' + 'Calling Hooks inside a loop is not supported. ' + 'Learn more at https://fb.me/rules-of-hooks' : ''); + } // TODO: add a more generic warning for invalid values. + + + if (Context._context !== undefined) { + var realContext = Context._context; // Don't deduplicate because this legitimately causes bugs + // and nobody should be using this in existing code. + + if (realContext.Consumer === Context) { + error('Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be ' + 'removed in a future major release. Did you mean to call useContext(Context) instead?'); + } else if (realContext.Provider === Context) { + error('Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?'); + } + } + } + + return dispatcher.useContext(Context, unstable_observedBits); +} +function useState(initialState) { + var dispatcher = resolveDispatcher(); + return dispatcher.useState(initialState); +} +function useReducer(reducer, initialArg, init) { + var dispatcher = resolveDispatcher(); + return dispatcher.useReducer(reducer, initialArg, init); +} +function useRef(initialValue) { + var dispatcher = resolveDispatcher(); + return dispatcher.useRef(initialValue); +} +function useEffect(create, deps) { + var dispatcher = resolveDispatcher(); + return dispatcher.useEffect(create, deps); +} +function useLayoutEffect(create, deps) { + var dispatcher = resolveDispatcher(); + return dispatcher.useLayoutEffect(create, deps); +} +function useCallback(callback, deps) { + var dispatcher = resolveDispatcher(); + return dispatcher.useCallback(callback, deps); +} +function useMemo(create, deps) { + var dispatcher = resolveDispatcher(); + return dispatcher.useMemo(create, deps); +} +function useImperativeHandle(ref, create, deps) { + var dispatcher = resolveDispatcher(); + return dispatcher.useImperativeHandle(ref, create, deps); +} +function useDebugValue(value, formatterFn) { + { + var dispatcher = resolveDispatcher(); + return dispatcher.useDebugValue(value, formatterFn); + } +} + +var propTypesMisspellWarningShown; + +{ + propTypesMisspellWarningShown = false; +} + +function getDeclarationErrorAddendum() { + if (ReactCurrentOwner.current) { + var name = getComponentName(ReactCurrentOwner.current.type); + + if (name) { + return '\n\nCheck the render method of `' + name + '`.'; + } + } + + return ''; +} + +function getSourceInfoErrorAddendum(source) { + if (source !== undefined) { + var fileName = source.fileName.replace(/^.*[\\\/]/, ''); + var lineNumber = source.lineNumber; + return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.'; + } + + return ''; +} + +function getSourceInfoErrorAddendumForProps(elementProps) { + if (elementProps !== null && elementProps !== undefined) { + return getSourceInfoErrorAddendum(elementProps.__source); + } + + return ''; +} +/** + * Warn if there's no key explicitly set on dynamic arrays of children or + * object keys are not valid. This allows us to keep track of children between + * updates. + */ + + +var ownerHasKeyUseWarning = {}; + +function getCurrentComponentErrorInfo(parentType) { + var info = getDeclarationErrorAddendum(); + + if (!info) { + var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name; + + if (parentName) { + info = "\n\nCheck the top-level render call using <" + parentName + ">."; + } + } + + return info; +} +/** + * Warn if the element doesn't have an explicit key assigned to it. + * This element is in an array. The array could grow and shrink or be + * reordered. All children that haven't already been validated are required to + * have a "key" property assigned to it. Error statuses are cached so a warning + * will only be shown once. + * + * @internal + * @param {ReactElement} element Element that requires a key. + * @param {*} parentType element's parent's type. + */ + + +function validateExplicitKey(element, parentType) { + if (!element._store || element._store.validated || element.key != null) { + return; + } + + element._store.validated = true; + var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType); + + if (ownerHasKeyUseWarning[currentComponentErrorInfo]) { + return; + } + + ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a + // property, it may be the creator of the child that's responsible for + // assigning it a key. + + var childOwner = ''; + + if (element && element._owner && element._owner !== ReactCurrentOwner.current) { + // Give the component that originally created this child. + childOwner = " It was passed a child from " + getComponentName(element._owner.type) + "."; + } + + setCurrentlyValidatingElement(element); + + { + error('Each child in a list should have a unique "key" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.', currentComponentErrorInfo, childOwner); + } + + setCurrentlyValidatingElement(null); +} +/** + * Ensure that every element either is passed in a static location, in an + * array with an explicit keys property defined, or in an object literal + * with valid key property. + * + * @internal + * @param {ReactNode} node Statically passed child of any type. + * @param {*} parentType node's parent's type. + */ + + +function validateChildKeys(node, parentType) { + if (typeof node !== 'object') { + return; + } + + if (Array.isArray(node)) { + for (var i = 0; i < node.length; i++) { + var child = node[i]; + + if (isValidElement(child)) { + validateExplicitKey(child, parentType); + } + } + } else if (isValidElement(node)) { + // This element was passed in a valid location. + if (node._store) { + node._store.validated = true; + } + } else if (node) { + var iteratorFn = getIteratorFn(node); + + if (typeof iteratorFn === 'function') { + // Entry iterators used to provide implicit keys, + // but now we print a separate warning for them later. + if (iteratorFn !== node.entries) { + var iterator = iteratorFn.call(node); + var step; + + while (!(step = iterator.next()).done) { + if (isValidElement(step.value)) { + validateExplicitKey(step.value, parentType); + } + } + } + } + } +} +/** + * Given an element, validate that its props follow the propTypes definition, + * provided by the type. + * + * @param {ReactElement} element + */ + + +function validatePropTypes(element) { + { + var type = element.type; + + if (type === null || type === undefined || typeof type === 'string') { + return; + } + + var name = getComponentName(type); + var propTypes; + + if (typeof type === 'function') { + propTypes = type.propTypes; + } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here. + // Inner props are checked in the reconciler. + type.$$typeof === REACT_MEMO_TYPE)) { + propTypes = type.propTypes; + } else { + return; + } + + if (propTypes) { + setCurrentlyValidatingElement(element); + checkPropTypes(propTypes, element.props, 'prop', name, ReactDebugCurrentFrame.getStackAddendum); + setCurrentlyValidatingElement(null); + } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) { + propTypesMisspellWarningShown = true; + + error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', name || 'Unknown'); + } + + if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) { + error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.'); + } + } +} +/** + * Given a fragment, validate that it can only be provided with fragment props + * @param {ReactElement} fragment + */ + + +function validateFragmentProps(fragment) { + { + setCurrentlyValidatingElement(fragment); + var keys = Object.keys(fragment.props); + + for (var i = 0; i < keys.length; i++) { + var key = keys[i]; + + if (key !== 'children' && key !== 'key') { + error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key); + + break; + } + } + + if (fragment.ref !== null) { + error('Invalid attribute `ref` supplied to `React.Fragment`.'); + } + + setCurrentlyValidatingElement(null); + } +} +function createElementWithValidation(type, props, children) { + var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to + // succeed and there will likely be errors in render. + + if (!validType) { + var info = ''; + + if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) { + info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports."; + } + + var sourceInfo = getSourceInfoErrorAddendumForProps(props); + + if (sourceInfo) { + info += sourceInfo; + } else { + info += getDeclarationErrorAddendum(); + } + + var typeString; + + if (type === null) { + typeString = 'null'; + } else if (Array.isArray(type)) { + typeString = 'array'; + } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) { + typeString = "<" + (getComponentName(type.type) || 'Unknown') + " />"; + info = ' Did you accidentally export a JSX literal instead of a component?'; + } else { + typeString = typeof type; + } + + { + error('React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info); + } + } + + var element = createElement.apply(this, arguments); // The result can be nullish if a mock or a custom function is used. + // TODO: Drop this when these are no longer allowed as the type argument. + + if (element == null) { + return element; + } // Skip key warning if the type isn't valid since our key validation logic + // doesn't expect a non-string/function type and can throw confusing errors. + // We don't want exception behavior to differ between dev and prod. + // (Rendering will throw with a helpful message and as soon as the type is + // fixed, the key warnings will appear.) + + + if (validType) { + for (var i = 2; i < arguments.length; i++) { + validateChildKeys(arguments[i], type); + } + } + + if (type === REACT_FRAGMENT_TYPE) { + validateFragmentProps(element); + } else { + validatePropTypes(element); + } + + return element; +} +var didWarnAboutDeprecatedCreateFactory = false; +function createFactoryWithValidation(type) { + var validatedFactory = createElementWithValidation.bind(null, type); + validatedFactory.type = type; + + { + if (!didWarnAboutDeprecatedCreateFactory) { + didWarnAboutDeprecatedCreateFactory = true; + + warn('React.createFactory() is deprecated and will be removed in ' + 'a future major release. Consider using JSX ' + 'or use React.createElement() directly instead.'); + } // Legacy hook: remove it + + + Object.defineProperty(validatedFactory, 'type', { + enumerable: false, + get: function () { + warn('Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.'); + + Object.defineProperty(this, 'type', { + value: type + }); + return type; + } + }); + } + + return validatedFactory; +} +function cloneElementWithValidation(element, props, children) { + var newElement = cloneElement.apply(this, arguments); + + for (var i = 2; i < arguments.length; i++) { + validateChildKeys(arguments[i], newElement.type); + } + + validatePropTypes(newElement); + return newElement; +} + +{ + + try { + var frozenObject = Object.freeze({}); + var testMap = new Map([[frozenObject, null]]); + var testSet = new Set([frozenObject]); // This is necessary for Rollup to not consider these unused. + // https://github.com/rollup/rollup/issues/1771 + // TODO: we can remove these if Rollup fixes the bug. + + testMap.set(0, 0); + testSet.add(0); + } catch (e) { + } +} + +var createElement$1 = createElementWithValidation ; +var cloneElement$1 = cloneElementWithValidation ; +var createFactory = createFactoryWithValidation ; +var Children = { + map: mapChildren, + forEach: forEachChildren, + count: countChildren, + toArray: toArray, + only: onlyChild +}; + +exports.Children = Children; +exports.Component = Component; +exports.Fragment = REACT_FRAGMENT_TYPE; +exports.Profiler = REACT_PROFILER_TYPE; +exports.PureComponent = PureComponent; +exports.StrictMode = REACT_STRICT_MODE_TYPE; +exports.Suspense = REACT_SUSPENSE_TYPE; +exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals; +exports.cloneElement = cloneElement$1; +exports.createContext = createContext; +exports.createElement = createElement$1; +exports.createFactory = createFactory; +exports.createRef = createRef; +exports.forwardRef = forwardRef; +exports.isValidElement = isValidElement; +exports.lazy = lazy; +exports.memo = memo; +exports.useCallback = useCallback; +exports.useContext = useContext; +exports.useDebugValue = useDebugValue; +exports.useEffect = useEffect; +exports.useImperativeHandle = useImperativeHandle; +exports.useLayoutEffect = useLayoutEffect; +exports.useMemo = useMemo; +exports.useReducer = useReducer; +exports.useRef = useRef; +exports.useState = useState; +exports.version = ReactVersion; + })(); +} + + +/***/ }), + +/***/ "./node_modules/react/index.js": +/*!*************************************!*\ + !*** ./node_modules/react/index.js ***! + \*************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +if (false) {} else { + module.exports = __webpack_require__(/*! ./cjs/react.development.js */ "./node_modules/react/cjs/react.development.js"); +} + + +/***/ }), + +/***/ "./node_modules/shallowequal/index.js": +/*!********************************************!*\ + !*** ./node_modules/shallowequal/index.js ***! + \********************************************/ +/*! no static exports found */ +/***/ (function(module, exports) { + +// + +module.exports = function shallowEqual(objA, objB, compare, compareContext) { + var ret = compare ? compare.call(compareContext, objA, objB) : void 0; + + if (ret !== void 0) { + return !!ret; + } + + if (objA === objB) { + return true; + } + + if (typeof objA !== "object" || !objA || typeof objB !== "object" || !objB) { + return false; + } + + var keysA = Object.keys(objA); + var keysB = Object.keys(objB); + + if (keysA.length !== keysB.length) { + return false; + } + + var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(objB); + + // Test for A's keys different from B. + for (var idx = 0; idx < keysA.length; idx++) { + var key = keysA[idx]; + + if (!bHasOwnProperty(key)) { + return false; + } + + var valueA = objA[key]; + var valueB = objB[key]; + + ret = compare ? compare.call(compareContext, valueA, valueB, key) : void 0; + + if (ret === false || (ret === void 0 && valueA !== valueB)) { + return false; + } + } + + return true; +}; + + +/***/ }), + +/***/ "./node_modules/styled-components/dist/styled-components.browser.esm.js": +/*!******************************************************************************!*\ + !*** ./node_modules/styled-components/dist/styled-components.browser.esm.js ***! + \******************************************************************************/ +/*! exports provided: default, ServerStyleSheet, StyleSheetConsumer, StyleSheetContext, StyleSheetManager, ThemeConsumer, ThemeContext, ThemeProvider, __PRIVATE__, createGlobalStyle, css, isStyledComponent, keyframes, useTheme, version, withTheme */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ServerStyleSheet", function() { return ServerStyleSheet; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StyleSheetConsumer", function() { return StyleSheetConsumer; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StyleSheetContext", function() { return StyleSheetContext; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StyleSheetManager", function() { return StyleSheetManager; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ThemeConsumer", function() { return ThemeConsumer; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ThemeContext", function() { return ThemeContext; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ThemeProvider", function() { return ThemeProvider; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__PRIVATE__", function() { return __PRIVATE__; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createGlobalStyle", function() { return createGlobalStyle; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "css", function() { return css; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isStyledComponent", function() { return isStyledComponent; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "keyframes", function() { return keyframes; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useTheme", function() { return useTheme; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "version", function() { return version; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "withTheme", function() { return withTheme; }); +/* harmony import */ var react_is__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-is */ "./node_modules/react-is/index.js"); +/* harmony import */ var react_is__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_is__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! shallowequal */ "./node_modules/shallowequal/index.js"); +/* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(shallowequal__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _emotion_stylis__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @emotion/stylis */ "./node_modules/@emotion/stylis/dist/stylis.browser.esm.js"); +/* harmony import */ var _emotion_unitless__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @emotion/unitless */ "./node_modules/@emotion/unitless/dist/unitless.browser.esm.js"); +/* harmony import */ var _emotion_is_prop_valid__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @emotion/is-prop-valid */ "./node_modules/@emotion/is-prop-valid/dist/is-prop-valid.browser.esm.js"); +/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! hoist-non-react-statics */ "./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"); +/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_6__); + + + + + + + + +function _extends() { + _extends = Object.assign || function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + + for (var key in source) { + if (Object.prototype.hasOwnProperty.call(source, key)) { + target[key] = source[key]; + } + } + } + + return target; + }; + + return _extends.apply(this, arguments); +} + +function _objectWithoutPropertiesLoose(source, excluded) { + if (source == null) return {}; + var target = {}; + var sourceKeys = Object.keys(source); + var key, i; + + for (i = 0; i < sourceKeys.length; i++) { + key = sourceKeys[i]; + if (excluded.indexOf(key) >= 0) continue; + target[key] = source[key]; + } + + return target; +} + +// +var interleave = (function (strings, interpolations) { + var result = [strings[0]]; + + for (var i = 0, len = interpolations.length; i < len; i += 1) { + result.push(interpolations[i], strings[i + 1]); + } + + return result; +}); + +// +var isPlainObject = (function (x) { + return x !== null && typeof x === 'object' && (x.toString ? x.toString() : Object.prototype.toString.call(x)) === '[object Object]' && !Object(react_is__WEBPACK_IMPORTED_MODULE_0__["typeOf"])(x); +}); + +// +var EMPTY_ARRAY = Object.freeze([]); +var EMPTY_OBJECT = Object.freeze({}); + +// +function isFunction(test) { + return typeof test === 'function'; +} + +// +function getComponentName(target) { + return ( true ? typeof target === 'string' && target : undefined) || // $FlowFixMe + target.displayName || // $FlowFixMe + target.name || 'Component'; +} + +// +function isStatelessFunction(test) { + return typeof test === 'function' && !(test.prototype && test.prototype.isReactComponent); +} + +// +function isStyledComponent(target) { + return target && typeof target.styledComponentId === 'string'; +} + +// +var SC_ATTR = typeof process !== 'undefined' && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || 'data-styled'; +var SC_ATTR_ACTIVE = 'active'; +var SC_ATTR_VERSION = 'data-styled-version'; +var SC_VERSION = "5.1.0"; +var SPLITTER = '/*!sc*/\n'; +var IS_BROWSER = typeof window !== 'undefined' && 'HTMLElement' in window; +var DISABLE_SPEEDY = typeof SC_DISABLE_SPEEDY === 'boolean' && SC_DISABLE_SPEEDY || typeof process !== 'undefined' && (process.env.REACT_APP_SC_DISABLE_SPEEDY || process.env.SC_DISABLE_SPEEDY) || "development" !== 'production'; // Shared empty execution context when generating static styles + +var STATIC_EXECUTION_CONTEXT = {}; + +// + +/* eslint-disable camelcase, no-undef */ +var getNonce = function getNonce() { + return true ? __webpack_require__.nc : undefined; +}; + +var errorMap = { + "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 ``\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 ``, 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" +}; + +// +var ERRORS = true ? errorMap : undefined; +/** + * super basic version of sprintf + */ + +function format() { + var a = arguments.length <= 0 ? undefined : arguments[0]; + var b = []; + + for (var c = 1, len = arguments.length; c < len; c += 1) { + b.push(c < 0 || arguments.length <= c ? undefined : arguments[c]); + } + + b.forEach(function (d) { + a = a.replace(/%[a-z]/, d); + }); + return a; +} +/** + * Create an error file out of errors.md for development and a simple web link to the full errors + * in production mode. + */ + + +function throwStyledComponentsError(code) { + for (var _len = arguments.length, interpolations = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + interpolations[_key - 1] = arguments[_key]; + } + + if (false) {} else { + throw new Error(format.apply(void 0, [ERRORS[code]].concat(interpolations)).trim()); + } +} + +// +var ELEMENT_TYPE = 1; +/* Node.ELEMENT_TYPE */ + +/** Find last style element if any inside target */ + +var findLastStyleTag = function findLastStyleTag(target) { + var childNodes = target.childNodes; + + for (var i = childNodes.length; i >= 0; i--) { + var child = childNodes[i]; + + if (child && child.nodeType === ELEMENT_TYPE && child.hasAttribute(SC_ATTR)) { + return child; + } + } + + return undefined; +}; +/** Create a style element inside `target` or after the last */ + + +var makeStyleTag = function makeStyleTag(target) { + var head = document.head; + var parent = target || head; + var style = document.createElement('style'); + var prevStyle = findLastStyleTag(parent); + var nextSibling = prevStyle !== undefined ? prevStyle.nextSibling : null; + style.setAttribute(SC_ATTR, SC_ATTR_ACTIVE); + style.setAttribute(SC_ATTR_VERSION, SC_VERSION); + var nonce = getNonce(); + if (nonce) style.setAttribute('nonce', nonce); + parent.insertBefore(style, nextSibling); + return style; +}; +/** Get the CSSStyleSheet instance for a given style element */ + +var getSheet = function getSheet(tag) { + if (tag.sheet) { + return tag.sheet; + } // Avoid Firefox quirk where the style element might not have a sheet property + + + var _document = document, + styleSheets = _document.styleSheets; + + for (var i = 0, l = styleSheets.length; i < l; i++) { + var sheet = styleSheets[i]; + + if (sheet.ownerNode === tag) { + return sheet; + } + } + + throwStyledComponentsError(17); + return undefined; +}; + +// +/** Create a CSSStyleSheet-like tag depending on the environment */ + +var makeTag = function makeTag(_ref) { + var isServer = _ref.isServer, + useCSSOMInjection = _ref.useCSSOMInjection, + target = _ref.target; + + if (isServer) { + return new VirtualTag(target); + } else if (useCSSOMInjection) { + return new CSSOMTag(target); + } else { + return new TextTag(target); + } +}; +var CSSOMTag = /*#__PURE__*/function () { + function CSSOMTag(target) { + var element = this.element = makeStyleTag(target); // Avoid Edge bug where empty style elements don't create sheets + + element.appendChild(document.createTextNode('')); + this.sheet = getSheet(element); + this.length = 0; + } + + var _proto = CSSOMTag.prototype; + + _proto.insertRule = function insertRule(index, rule) { + try { + this.sheet.insertRule(rule, index); + this.length++; + return true; + } catch (_error) { + return false; + } + }; + + _proto.deleteRule = function deleteRule(index) { + this.sheet.deleteRule(index); + this.length--; + }; + + _proto.getRule = function getRule(index) { + var rule = this.sheet.cssRules[index]; // Avoid IE11 quirk where cssText is inaccessible on some invalid rules + + if (rule !== undefined && typeof rule.cssText === 'string') { + return rule.cssText; + } else { + return ''; + } + }; + + return CSSOMTag; +}(); +/** A Tag that emulates the CSSStyleSheet API but uses text nodes */ + +var TextTag = /*#__PURE__*/function () { + function TextTag(target) { + var element = this.element = makeStyleTag(target); + this.nodes = element.childNodes; + this.length = 0; + } + + var _proto2 = TextTag.prototype; + + _proto2.insertRule = function insertRule(index, rule) { + if (index <= this.length && index >= 0) { + var node = document.createTextNode(rule); + var refNode = this.nodes[index]; + this.element.insertBefore(node, refNode || null); + this.length++; + return true; + } else { + return false; + } + }; + + _proto2.deleteRule = function deleteRule(index) { + this.element.removeChild(this.nodes[index]); + this.length--; + }; + + _proto2.getRule = function getRule(index) { + if (index < this.length) { + return this.nodes[index].textContent; + } else { + return ''; + } + }; + + return TextTag; +}(); +/** A completely virtual (server-side) Tag that doesn't manipulate the DOM */ + +var VirtualTag = /*#__PURE__*/function () { + function VirtualTag(_target) { + this.rules = []; + this.length = 0; + } + + var _proto3 = VirtualTag.prototype; + + _proto3.insertRule = function insertRule(index, rule) { + if (index <= this.length) { + this.rules.splice(index, 0, rule); + this.length++; + return true; + } else { + return false; + } + }; + + _proto3.deleteRule = function deleteRule(index) { + this.rules.splice(index, 1); + this.length--; + }; + + _proto3.getRule = function getRule(index) { + if (index < this.length) { + return this.rules[index]; + } else { + return ''; + } + }; + + return VirtualTag; +}(); + +// +/** Create a GroupedTag with an underlying Tag implementation */ + +var makeGroupedTag = function makeGroupedTag(tag) { + return new DefaultGroupedTag(tag); +}; +var BASE_SIZE = 1 << 9; + +var DefaultGroupedTag = /*#__PURE__*/function () { + function DefaultGroupedTag(tag) { + this.groupSizes = new Uint32Array(BASE_SIZE); + this.length = BASE_SIZE; + this.tag = tag; + } + + var _proto = DefaultGroupedTag.prototype; + + _proto.indexOfGroup = function indexOfGroup(group) { + var index = 0; + + for (var i = 0; i < group; i++) { + index += this.groupSizes[i]; + } + + return index; + }; + + _proto.insertRules = function insertRules(group, rules) { + if (group >= this.groupSizes.length) { + var oldBuffer = this.groupSizes; + var oldSize = oldBuffer.length; + var newSize = oldSize; + + while (group >= newSize) { + newSize <<= 1; + + if (newSize < 0) { + throwStyledComponentsError(16, "" + group); + } + } + + this.groupSizes = new Uint32Array(newSize); + this.groupSizes.set(oldBuffer); + this.length = newSize; + + for (var i = oldSize; i < newSize; i++) { + this.groupSizes[i] = 0; + } + } + + var ruleIndex = this.indexOfGroup(group + 1); + + for (var _i = 0, l = rules.length; _i < l; _i++) { + if (this.tag.insertRule(ruleIndex, rules[_i])) { + this.groupSizes[group]++; + ruleIndex++; + } + } + }; + + _proto.clearGroup = function clearGroup(group) { + if (group < this.length) { + var length = this.groupSizes[group]; + var startIndex = this.indexOfGroup(group); + var endIndex = startIndex + length; + this.groupSizes[group] = 0; + + for (var i = startIndex; i < endIndex; i++) { + this.tag.deleteRule(startIndex); + } + } + }; + + _proto.getGroup = function getGroup(group) { + var css = ''; + + if (group >= this.length || this.groupSizes[group] === 0) { + return css; + } + + var length = this.groupSizes[group]; + var startIndex = this.indexOfGroup(group); + var endIndex = startIndex + length; + + for (var i = startIndex; i < endIndex; i++) { + css += "" + this.tag.getRule(i) + SPLITTER; + } + + return css; + }; + + return DefaultGroupedTag; +}(); + +// +var MAX_SMI = 1 << 31 - 1; +var groupIDRegister = new Map(); +var reverseRegister = new Map(); +var nextFreeGroup = 1; +var getGroupForId = function getGroupForId(id) { + if (groupIDRegister.has(id)) { + return groupIDRegister.get(id); + } + + var group = nextFreeGroup++; + + if ( true && ((group | 0) < 0 || group > MAX_SMI)) { + throwStyledComponentsError(16, "" + group); + } + + groupIDRegister.set(id, group); + reverseRegister.set(group, id); + return group; +}; +var getIdForGroup = function getIdForGroup(group) { + return reverseRegister.get(group); +}; +var setGroupForId = function setGroupForId(id, group) { + if (group >= nextFreeGroup) { + nextFreeGroup = group + 1; + } + + groupIDRegister.set(id, group); + reverseRegister.set(group, id); +}; + +// +var SELECTOR = "style[" + SC_ATTR + "][" + SC_ATTR_VERSION + "=\"" + SC_VERSION + "\"]"; +var MARKER_RE = new RegExp("^" + SC_ATTR + "\\.g(\\d+)\\[id=\"([\\w\\d-]+)\"\\].*?\"([^\"]*)"); +var outputSheet = function outputSheet(sheet) { + var tag = sheet.getTag(); + var length = tag.length; + var css = ''; + + for (var group = 0; group < length; group++) { + var id = getIdForGroup(group); + if (id === undefined) continue; + var names = sheet.names.get(id); + var rules = tag.getGroup(group); + if (names === undefined || rules.length === 0) continue; + var selector = SC_ATTR + ".g" + group + "[id=\"" + id + "\"]"; + var content = ''; + + if (names !== undefined) { + names.forEach(function (name) { + if (name.length > 0) { + content += name + ","; + } + }); + } // NOTE: It's easier to collect rules and have the marker + // after the actual rules to simplify the rehydration + + + css += "" + rules + selector + "{content:\"" + content + "\"}" + SPLITTER; + } + + return css; +}; + +var rehydrateNamesFromContent = function rehydrateNamesFromContent(sheet, id, content) { + var names = content.split(','); + var name; + + for (var i = 0, l = names.length; i < l; i++) { + // eslint-disable-next-line + if (name = names[i]) { + sheet.registerName(id, name); + } + } +}; + +var rehydrateSheetFromTag = function rehydrateSheetFromTag(sheet, style) { + var parts = style.innerHTML.split(SPLITTER); + var rules = []; + + for (var i = 0, l = parts.length; i < l; i++) { + var part = parts[i].trim(); + if (!part) continue; + var marker = part.match(MARKER_RE); + + if (marker) { + var group = parseInt(marker[1], 10) | 0; + var id = marker[2]; + + if (group !== 0) { + // Rehydrate componentId to group index mapping + setGroupForId(id, group); // Rehydrate names and rules + // looks like: data-styled.g11[id="idA"]{content:"nameA,"} + + rehydrateNamesFromContent(sheet, id, marker[3]); + sheet.getTag().insertRules(group, rules); + } + + rules.length = 0; + } else { + rules.push(part); + } + } +}; + +var rehydrateSheet = function rehydrateSheet(sheet) { + var nodes = document.querySelectorAll(SELECTOR); + + for (var i = 0, l = nodes.length; i < l; i++) { + var node = nodes[i]; + + if (node && node.getAttribute(SC_ATTR) !== SC_ATTR_ACTIVE) { + rehydrateSheetFromTag(sheet, node); + + if (node.parentNode) { + node.parentNode.removeChild(node); + } + } + } +}; + +var SHOULD_REHYDRATE = IS_BROWSER; +var defaultOptions = { + isServer: !IS_BROWSER, + useCSSOMInjection: !DISABLE_SPEEDY +}; +/** Contains the main stylesheet logic for stringification and caching */ + +var StyleSheet = /*#__PURE__*/function () { + /** Register a group ID to give it an index */ + StyleSheet.registerId = function registerId(id) { + return getGroupForId(id); + }; + + function StyleSheet(options, globalStyles, names) { + if (options === void 0) { + options = defaultOptions; + } + + if (globalStyles === void 0) { + globalStyles = {}; + } + + this.options = _extends({}, defaultOptions, {}, options); + this.gs = globalStyles; + this.names = new Map(names); // We rehydrate only once and use the sheet that is created first + + if (!this.options.isServer && IS_BROWSER && SHOULD_REHYDRATE) { + SHOULD_REHYDRATE = false; + rehydrateSheet(this); + } + } + + var _proto = StyleSheet.prototype; + + _proto.reconstructWithOptions = function reconstructWithOptions(options) { + return new StyleSheet(_extends({}, this.options, {}, options), this.gs, this.names); + }; + + _proto.allocateGSInstance = function allocateGSInstance(id) { + return this.gs[id] = (this.gs[id] || 0) + 1; + } + /** Lazily initialises a GroupedTag for when it's actually needed */ + ; + + _proto.getTag = function getTag() { + return this.tag || (this.tag = makeGroupedTag(makeTag(this.options))); + } + /** Check whether a name is known for caching */ + ; + + _proto.hasNameForId = function hasNameForId(id, name) { + return this.names.has(id) && this.names.get(id).has(name); + } + /** Mark a group's name as known for caching */ + ; + + _proto.registerName = function registerName(id, name) { + getGroupForId(id); + + if (!this.names.has(id)) { + var groupNames = new Set(); + groupNames.add(name); + this.names.set(id, groupNames); + } else { + this.names.get(id).add(name); + } + } + /** Insert new rules which also marks the name as known */ + ; + + _proto.insertRules = function insertRules(id, name, rules) { + this.registerName(id, name); + this.getTag().insertRules(getGroupForId(id), rules); + } + /** Clears all cached names for a given group ID */ + ; + + _proto.clearNames = function clearNames(id) { + if (this.names.has(id)) { + this.names.get(id).clear(); + } + } + /** Clears all rules for a given group ID */ + ; + + _proto.clearRules = function clearRules(id) { + this.getTag().clearGroup(getGroupForId(id)); + this.clearNames(id); + } + /** Clears the entire tag which deletes all rules but not its names */ + ; + + _proto.clearTag = function clearTag() { + // NOTE: This does not clear the names, since it's only used during SSR + // so that we can continuously output only new rules + this.tag = undefined; + } + /** Outputs the current sheet as a CSS string with markers for SSR */ + ; + + _proto.toString = function toString() { + return outputSheet(this); + }; + + return StyleSheet; +}(); + +// + +/* eslint-disable */ +var SEED = 5381; // When we have separate strings it's useful to run a progressive +// version of djb2 where we pretend that we're still looping over +// the same string + +var phash = function phash(h, x) { + var i = x.length; + + while (i) { + h = h * 33 ^ x.charCodeAt(--i); + } + + return h; +}; // This is a djb2 hashing function + +var hash = function hash(x) { + return phash(SEED, x); +}; + +/** + * MIT License + * + * Copyright (c) 2016 Sultan Tarimo + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + * OR IMPLIED INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR + * IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + +/* eslint-disable */ +function insertRulePlugin (insertRule) { + var delimiter = '/*|*/'; + var needle = delimiter + "}"; + + function toSheet(block) { + if (block) { + try { + insertRule(block + "}"); + } catch (e) {} + } + } + + return function ruleSheet(context, content, selectors, parents, line, column, length, ns, depth, at) { + switch (context) { + // property + case 1: + // @import + if (depth === 0 && content.charCodeAt(0) === 64) return insertRule(content + ";"), ''; + break; + // selector + + case 2: + if (ns === 0) return content + delimiter; + break; + // at-rule + + case 3: + switch (ns) { + // @font-face, @page + case 102: + case 112: + return insertRule(selectors[0] + content), ''; + + default: + return content + (at === 0 ? delimiter : ''); + } + + case -2: + content.split(needle).forEach(toSheet); + } + }; +} + +var COMMENT_REGEX = /^\s*\/\/.*$/gm; +function createStylisInstance(_temp) { + var _ref = _temp === void 0 ? EMPTY_OBJECT : _temp, + _ref$options = _ref.options, + options = _ref$options === void 0 ? EMPTY_OBJECT : _ref$options, + _ref$plugins = _ref.plugins, + plugins = _ref$plugins === void 0 ? EMPTY_ARRAY : _ref$plugins; + + var stylis = new _emotion_stylis__WEBPACK_IMPORTED_MODULE_3__["default"](options); // Wrap `insertRulePlugin to build a list of rules, + // and then make our own plugin to return the rules. This + // makes it easier to hook into the existing SSR architecture + + var parsingRules = []; // eslint-disable-next-line consistent-return + + var returnRulesPlugin = function returnRulesPlugin(context) { + if (context === -2) { + var parsedRules = parsingRules; + parsingRules = []; + return parsedRules; + } + }; + + var parseRulesPlugin = insertRulePlugin(function (rule) { + parsingRules.push(rule); + }); + + var _componentId; + + var _selector; + + var _selectorRegexp; + + var selfReferenceReplacer = function selfReferenceReplacer(match, offset, string) { + if ( // the first self-ref is always untouched + offset > 0 && // there should be at least two self-refs to do a replacement (.b > .b) + string.slice(0, offset).indexOf(_selector) !== -1 && // no consecutive self refs (.b.b); that is a precedence boost and treated differently + string.slice(offset - _selector.length, offset) !== _selector) { + return "." + _componentId; + } + + return match; + }; + /** + * When writing a style like + * + * & + & { + * color: red; + * } + * + * The second ampersand should be a reference to the static component class. stylis + * has no knowledge of static class so we have to intelligently replace the base selector. + * + * https://github.com/thysultan/stylis.js#plugins <- more info about the context phase values + * "2" means this plugin is taking effect at the very end after all other processing is complete + */ + + + var selfReferenceReplacementPlugin = function selfReferenceReplacementPlugin(context, _, selectors) { + if (context === 2 && selectors.length && selectors[0].lastIndexOf(_selector) > 0) { + // eslint-disable-next-line no-param-reassign + selectors[0] = selectors[0].replace(_selectorRegexp, selfReferenceReplacer); + } + }; + + stylis.use([].concat(plugins, [selfReferenceReplacementPlugin, parseRulesPlugin, returnRulesPlugin])); + + function stringifyRules(css, selector, prefix, componentId) { + if (componentId === void 0) { + componentId = '&'; + } + + var flatCSS = css.replace(COMMENT_REGEX, ''); + var cssStr = selector && prefix ? prefix + " " + selector + " { " + flatCSS + " }" : flatCSS; // stylis has no concept of state to be passed to plugins + // but since JS is single=threaded, we can rely on that to ensure + // these properties stay in sync with the current stylis run + + _componentId = componentId; + _selector = selector; + _selectorRegexp = new RegExp("\\" + _selector + "\\b", 'g'); + return stylis(prefix || !selector ? '' : selector, cssStr); + } + + stringifyRules.hash = plugins.length ? plugins.reduce(function (acc, plugin) { + if (!plugin.name) { + throwStyledComponentsError(15); + } + + return phash(acc, plugin.name); + }, SEED).toString() : ''; + return stringifyRules; +} + +// +var StyleSheetContext = react__WEBPACK_IMPORTED_MODULE_1___default.a.createContext(); +var StyleSheetConsumer = StyleSheetContext.Consumer; +var StylisContext = react__WEBPACK_IMPORTED_MODULE_1___default.a.createContext(); +var StylisConsumer = StylisContext.Consumer; +var masterSheet = new StyleSheet(); +var masterStylis = createStylisInstance(); +function useStyleSheet() { + return Object(react__WEBPACK_IMPORTED_MODULE_1__["useContext"])(StyleSheetContext) || masterSheet; +} +function useStylis() { + return Object(react__WEBPACK_IMPORTED_MODULE_1__["useContext"])(StylisContext) || masterStylis; +} +function StyleSheetManager(props) { + var _useState = Object(react__WEBPACK_IMPORTED_MODULE_1__["useState"])(props.stylisPlugins), + plugins = _useState[0], + setPlugins = _useState[1]; + + var contextStyleSheet = useStyleSheet(); + var styleSheet = Object(react__WEBPACK_IMPORTED_MODULE_1__["useMemo"])(function () { + var sheet = contextStyleSheet; + + if (props.sheet) { + // eslint-disable-next-line prefer-destructuring + sheet = props.sheet; + } else if (props.target) { + sheet = sheet.reconstructWithOptions({ + target: props.target + }); + } + + if (props.disableCSSOMInjection) { + sheet = sheet.reconstructWithOptions({ + useCSSOMInjection: false + }); + } + + return sheet; + }, [props.disableCSSOMInjection, props.sheet, props.target]); + var stylis = Object(react__WEBPACK_IMPORTED_MODULE_1__["useMemo"])(function () { + return createStylisInstance({ + options: { + prefix: !props.disableVendorPrefixes + }, + plugins: plugins + }); + }, [props.disableVendorPrefixes, plugins]); + Object(react__WEBPACK_IMPORTED_MODULE_1__["useEffect"])(function () { + if (!shallowequal__WEBPACK_IMPORTED_MODULE_2___default()(plugins, props.stylisPlugins)) setPlugins(props.stylisPlugins); + }, [props.stylisPlugins]); + return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(StyleSheetContext.Provider, { + value: styleSheet + }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(StylisContext.Provider, { + value: stylis + }, true ? react__WEBPACK_IMPORTED_MODULE_1___default.a.Children.only(props.children) : undefined)); +} + +// + +var Keyframes = /*#__PURE__*/function () { + function Keyframes(name, stringifyArgs) { + var _this = this; + + this.inject = function (styleSheet) { + if (!styleSheet.hasNameForId(_this.id, _this.name)) { + styleSheet.insertRules(_this.id, _this.name, masterStylis.apply(void 0, _this.stringifyArgs)); + } + }; + + this.toString = function () { + return throwStyledComponentsError(12, String(_this.name)); + }; + + this.name = name; + this.id = "sc-keyframes-" + name; + this.stringifyArgs = stringifyArgs; + } + + var _proto = Keyframes.prototype; + + _proto.getName = function getName() { + return this.name; + }; + + return Keyframes; +}(); + +// + +/** + * inlined version of + * https://github.com/facebook/fbjs/blob/master/packages/fbjs/src/core/hyphenateStyleName.js + */ +var uppercasePattern = /([A-Z])/g; +var msPattern = /^ms-/; +/** + * Hyphenates a camelcased CSS property name, for example: + * + * > hyphenateStyleName('backgroundColor') + * < "background-color" + * > hyphenateStyleName('MozTransition') + * < "-moz-transition" + * > hyphenateStyleName('msTransition') + * < "-ms-transition" + * + * As Modernizr suggests (http://modernizr.com/docs/#prefixed), an `ms` prefix + * is converted to `-ms-`. + * + * @param {string} string + * @return {string} + */ + +function hyphenateStyleName(string) { + return string.replace(uppercasePattern, '-$1').toLowerCase().replace(msPattern, '-ms-'); +} + +// + +function addUnitIfNeeded(name, value) { + // https://github.com/amilajack/eslint-plugin-flowtype-errors/issues/133 + // $FlowFixMe + if (value == null || typeof value === 'boolean' || value === '') { + return ''; + } + + if (typeof value === 'number' && value !== 0 && !(name in _emotion_unitless__WEBPACK_IMPORTED_MODULE_4__["default"])) { + return value + "px"; // Presumes implicit 'px' suffix for unitless numbers + } + + return String(value).trim(); +} + +// +/** + * It's falsish not falsy because 0 is allowed. + */ + +var isFalsish = function isFalsish(chunk) { + return chunk === undefined || chunk === null || chunk === false || chunk === ''; +}; + +var objToCssArray = function objToCssArray(obj, prevKey) { + var rules = []; + var keys = Object.keys(obj); + keys.forEach(function (key) { + if (!isFalsish(obj[key])) { + if (isPlainObject(obj[key])) { + rules.push.apply(rules, objToCssArray(obj[key], key)); + return rules; + } else if (isFunction(obj[key])) { + rules.push(hyphenateStyleName(key) + ":", obj[key], ';'); + return rules; + } + + rules.push(hyphenateStyleName(key) + ": " + addUnitIfNeeded(key, obj[key]) + ";"); + } + + return rules; + }); + return prevKey ? [prevKey + " {"].concat(rules, ['}']) : rules; +}; +function flatten(chunk, executionContext, styleSheet) { + if (Array.isArray(chunk)) { + var ruleSet = []; + + for (var i = 0, len = chunk.length, result; i < len; i += 1) { + result = flatten(chunk[i], executionContext, styleSheet); + if (result === '') continue;else if (Array.isArray(result)) ruleSet.push.apply(ruleSet, result);else ruleSet.push(result); + } + + return ruleSet; + } + + if (isFalsish(chunk)) { + return ''; + } + /* Handle other components */ + + + if (isStyledComponent(chunk)) { + return "." + chunk.styledComponentId; + } + /* Either execute or defer the function */ + + + if (isFunction(chunk)) { + if (isStatelessFunction(chunk) && executionContext) { + var _result = chunk(executionContext); + + if ( true && Object(react_is__WEBPACK_IMPORTED_MODULE_0__["isElement"])(_result)) { + // eslint-disable-next-line no-console + console.warn(getComponentName(chunk) + " 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."); + } + + return flatten(_result, executionContext, styleSheet); + } else return chunk; + } + + if (chunk instanceof Keyframes) { + if (styleSheet) { + chunk.inject(styleSheet); + return chunk.getName(); + } else return chunk; + } + /* Handle objects */ + + + return isPlainObject(chunk) ? objToCssArray(chunk) : chunk.toString(); +} + +// +function css(styles) { + for (var _len = arguments.length, interpolations = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + interpolations[_key - 1] = arguments[_key]; + } + + if (isFunction(styles) || isPlainObject(styles)) { + // $FlowFixMe + return flatten(interleave(EMPTY_ARRAY, [styles].concat(interpolations))); + } + + if (interpolations.length === 0 && styles.length === 1 && typeof styles[0] === "string") { + // $FlowFixMe + return styles; + } // $FlowFixMe + + + return flatten(interleave(styles, interpolations)); +} + +function constructWithOptions(componentConstructor, tag, options) { + if (options === void 0) { + options = EMPTY_OBJECT; + } + + if (!Object(react_is__WEBPACK_IMPORTED_MODULE_0__["isValidElementType"])(tag)) { + return throwStyledComponentsError(1, String(tag)); + } + /* This is callable directly as a template function */ + // $FlowFixMe: Not typed to avoid destructuring arguments + + + var templateFunction = function templateFunction() { + return componentConstructor(tag, options, css.apply(void 0, arguments)); + }; + /* If config methods are called, wrap up a new template function and merge options */ + + + templateFunction.withConfig = function (config) { + return constructWithOptions(componentConstructor, tag, _extends({}, options, {}, config)); + }; + /* Modify/inject new props at runtime */ + + + templateFunction.attrs = function (attrs) { + return constructWithOptions(componentConstructor, tag, _extends({}, options, { + attrs: Array.prototype.concat(options.attrs, attrs).filter(Boolean) + })); + }; + + return templateFunction; +} + +/* eslint-disable */ + +/** + mixin-deep; https://github.com/jonschlinkert/mixin-deep + Inlined such that it will be consistently transpiled to an IE-compatible syntax. + + The MIT License (MIT) + + Copyright (c) 2014-present, Jon Schlinkert. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +*/ +var isObject = function isObject(val) { + return typeof val === 'function' || typeof val === 'object' && val !== null && !Array.isArray(val); +}; + +var isValidKey = function isValidKey(key) { + return key !== '__proto__' && key !== 'constructor' && key !== 'prototype'; +}; + +function mixin(target, val, key) { + var obj = target[key]; + + if (isObject(val) && isObject(obj)) { + mixinDeep(obj, val); + } else { + target[key] = val; + } +} + +function mixinDeep(target) { + for (var _len = arguments.length, rest = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + rest[_key - 1] = arguments[_key]; + } + + for (var _i = 0, _rest = rest; _i < _rest.length; _i++) { + var obj = _rest[_i]; + + if (isObject(obj)) { + for (var key in obj) { + if (isValidKey(key)) { + mixin(target, obj[key], key); + } + } + } + } + + return target; +} + +// + +/* eslint-disable no-bitwise */ +var AD_REPLACER_R = /(a)(d)/gi; +/* This is the "capacity" of our alphabet i.e. 2x26 for all letters plus their capitalised + * counterparts */ + +var charsLength = 52; +/* start at 75 for 'a' until 'z' (25) and then start at 65 for capitalised letters */ + +var getAlphabeticChar = function getAlphabeticChar(code) { + return String.fromCharCode(code + (code > 25 ? 39 : 97)); +}; +/* input a number, usually a hash and convert it to base-52 */ + + +function generateAlphabeticName(code) { + var name = ''; + var x; + /* get a char and divide by alphabet-length */ + + for (x = Math.abs(code); x > charsLength; x = x / charsLength | 0) { + name = getAlphabeticChar(x % charsLength) + name; + } + + return (getAlphabeticChar(x % charsLength) + name).replace(AD_REPLACER_R, '$1-$2'); +} + +// +function isStaticRules(rules) { + for (var i = 0; i < rules.length; i += 1) { + var rule = rules[i]; + + if (isFunction(rule) && !isStyledComponent(rule)) { + // functions are allowed to be static if they're just being + // used to get the classname of a nested styled component + return false; + } + } + + return true; +} + +// +/* + ComponentStyle is all the CSS-specific stuff, not + the React-specific stuff. + */ + +var ComponentStyle = /*#__PURE__*/function () { + function ComponentStyle(rules, componentId) { + this.rules = rules; + this.staticRulesId = ''; + this.isStatic = false && false; + this.componentId = componentId; + this.baseHash = hash(componentId); // NOTE: This registers the componentId, which ensures a consistent order + // for this component's styles compared to others + + StyleSheet.registerId(componentId); + } + /* + * Flattens a rule set into valid CSS + * Hashes it, wraps the whole chunk in a .hash1234 {} + * Returns the hash to be injected on render() + * */ + + + var _proto = ComponentStyle.prototype; + + _proto.generateAndInjectStyles = function generateAndInjectStyles(executionContext, styleSheet, stylis) { + var componentId = this.componentId; // force dynamic classnames if user-supplied stylis plugins are in use + + if (this.isStatic && !stylis.hash) { + if (this.staticRulesId && styleSheet.hasNameForId(componentId, this.staticRulesId)) { + return this.staticRulesId; + } + + var cssStatic = flatten(this.rules, executionContext, styleSheet).join(''); + var name = generateAlphabeticName(phash(this.baseHash, cssStatic.length) >>> 0); + + if (!styleSheet.hasNameForId(componentId, name)) { + var cssStaticFormatted = stylis(cssStatic, "." + name, undefined, componentId); + styleSheet.insertRules(componentId, name, cssStaticFormatted); + } + + this.staticRulesId = name; + return name; + } else { + var length = this.rules.length; + var dynamicHash = phash(this.baseHash, stylis.hash); + var css = ''; + + for (var i = 0; i < length; i++) { + var partRule = this.rules[i]; + + if (typeof partRule === 'string') { + css += partRule; + if (true) dynamicHash = phash(dynamicHash, partRule + i); + } else { + var partChunk = flatten(partRule, executionContext, styleSheet); + var partString = Array.isArray(partChunk) ? partChunk.join('') : partChunk; + dynamicHash = phash(dynamicHash, partString + i); + css += partString; + } + } + + var _name = generateAlphabeticName(dynamicHash >>> 0); + + if (!styleSheet.hasNameForId(componentId, _name)) { + var cssFormatted = stylis(css, "." + _name, undefined, componentId); + styleSheet.insertRules(componentId, _name, cssFormatted); + } + + return _name; + } + }; + + return ComponentStyle; +}(); + +// +var LIMIT = 200; +var createWarnTooManyClasses = (function (displayName, componentId) { + var generatedClasses = {}; + var warningSeen = false; + return function (className) { + if (!warningSeen) { + generatedClasses[className] = true; + + if (Object.keys(generatedClasses).length >= LIMIT) { + // Unable to find latestRule in test environment. + + /* eslint-disable no-console, prefer-template */ + var parsedIdString = componentId ? " with the id of \"" + componentId + "\"" : ''; + console.warn("Over " + LIMIT + " classes were generated for component " + displayName + parsedIdString + ".\n" + 'Consider using the attrs method, together with a style object for frequently changed styles.\n' + 'Example:\n' + ' const Component = styled.div.attrs(props => ({\n' + ' style: {\n' + ' background: props.background,\n' + ' },\n' + ' }))`width: 100%;`\n\n' + ' '); + warningSeen = true; + generatedClasses = {}; + } + } + }; +}); + +// +var invalidHookCallRe = /invalid hook call/i; +var seen = new Set(); +var checkDynamicCreation = function checkDynamicCreation(displayName, componentId) { + if (true) { + var parsedIdString = componentId ? " with the id of \"" + componentId + "\"" : ''; + var message = "The component " + displayName + parsedIdString + " has been created dynamically.\n" + 'You may see this warning because you\'ve called styled inside another component.\n' + 'To resolve this only create new StyledComponents outside of any render method and function component.'; + + try { + // We purposefully call `useRef` outside of a component and expect it to throw + // If it doesn't, then we're inside another component. + // eslint-disable-next-line react-hooks/rules-of-hooks + Object(react__WEBPACK_IMPORTED_MODULE_1__["useRef"])(); + + if (!seen.has(message)) { + // eslint-disable-next-line no-console + console.warn(message); + seen.add(message); + } + } catch (error) { + // The error here is expected, since we're expecting anything that uses `checkDynamicCreation` to + // be called outside of a React component. + if (invalidHookCallRe.test(error.message)) { + // This shouldn't happen, but resets `warningSeen` if we had this error happen intermittently + seen["delete"](message); + } + } + } +}; + +// +var determineTheme = (function (props, providedTheme, defaultProps) { + if (defaultProps === void 0) { + defaultProps = EMPTY_OBJECT; + } + + return props.theme !== defaultProps.theme && props.theme || providedTheme || defaultProps.theme; +}); + +// +var escapeRegex = /[[\].#*$><+~=|^:(),"'`-]+/g; +var dashesAtEnds = /(^-|-$)/g; +/** + * TODO: Explore using CSS.escape when it becomes more available + * in evergreen browsers. + */ + +function escape(str) { + return str // Replace all possible CSS selectors + .replace(escapeRegex, '-') // Remove extraneous hyphens at the start and end + .replace(dashesAtEnds, ''); +} + +// +function isTag(target) { + return typeof target === 'string' && ( true ? target.charAt(0) === target.charAt(0).toLowerCase() : undefined); +} + +// +function generateDisplayName(target) { + // $FlowFixMe + return isTag(target) ? "styled." + target : "Styled(" + getComponentName(target) + ")"; +} + +// +var generateComponentId = (function (str) { + return generateAlphabeticName(hash(str) >>> 0); +}); + +/** + * Convenience function for joining strings to form className chains + */ +function joinStrings(a, b) { + return a && b ? a + " " + b : a || b; +} + +var ThemeContext = react__WEBPACK_IMPORTED_MODULE_1___default.a.createContext(); +var ThemeConsumer = ThemeContext.Consumer; + +function mergeTheme(theme, outerTheme) { + if (!theme) { + return throwStyledComponentsError(14); + } + + if (isFunction(theme)) { + var mergedTheme = theme(outerTheme); + + if ( true && (mergedTheme === null || Array.isArray(mergedTheme) || typeof mergedTheme !== 'object')) { + return throwStyledComponentsError(7); + } + + return mergedTheme; + } + + if (Array.isArray(theme) || typeof theme !== 'object') { + return throwStyledComponentsError(8); + } + + return outerTheme ? _extends({}, outerTheme, {}, theme) : theme; +} +/** + * Provide a theme to an entire react component tree via context + */ + + +function ThemeProvider(props) { + var outerTheme = Object(react__WEBPACK_IMPORTED_MODULE_1__["useContext"])(ThemeContext); + var themeContext = Object(react__WEBPACK_IMPORTED_MODULE_1__["useMemo"])(function () { + return mergeTheme(props.theme, outerTheme); + }, [props.theme, outerTheme]); + + if (!props.children) { + return null; + } + + return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(ThemeContext.Provider, { + value: themeContext + }, props.children); +} + +/* global $Call */ + +var identifiers = {}; +/* We depend on components having unique IDs */ + +function generateId(displayName, parentComponentId) { + var name = typeof displayName !== 'string' ? 'sc' : escape(displayName); // Ensure that no displayName can lead to duplicate componentIds + + identifiers[name] = (identifiers[name] || 0) + 1; + var componentId = name + "-" + generateComponentId(name + identifiers[name]); + return parentComponentId ? parentComponentId + "-" + componentId : componentId; +} + +function useResolvedAttrs(theme, props, attrs) { + if (theme === void 0) { + theme = EMPTY_OBJECT; + } + + // NOTE: can't memoize this + // returns [context, resolvedAttrs] + // where resolvedAttrs is only the things injected by the attrs themselves + var context = _extends({}, props, { + theme: theme + }); + + var resolvedAttrs = {}; + attrs.forEach(function (attrDef) { + var resolvedAttrDef = attrDef; + var key; + + if (isFunction(resolvedAttrDef)) { + resolvedAttrDef = resolvedAttrDef(context); + } + /* eslint-disable guard-for-in */ + + + for (key in resolvedAttrDef) { + context[key] = resolvedAttrs[key] = key === 'className' ? joinStrings(resolvedAttrs[key], resolvedAttrDef[key]) : resolvedAttrDef[key]; + } + /* eslint-enable guard-for-in */ + + }); + return [context, resolvedAttrs]; +} + +function useInjectedStyle(componentStyle, hasAttrs, resolvedAttrs, warnTooManyClasses) { + var styleSheet = useStyleSheet(); + var stylis = useStylis(); // statically styled-components don't need to build an execution context object, + // and shouldn't be increasing the number of class names + + var isStatic = componentStyle.isStatic && !hasAttrs; + var className = isStatic ? componentStyle.generateAndInjectStyles(EMPTY_OBJECT, styleSheet, stylis) : componentStyle.generateAndInjectStyles(resolvedAttrs, styleSheet, stylis); + Object(react__WEBPACK_IMPORTED_MODULE_1__["useDebugValue"])(className); + + if ( true && !isStatic && warnTooManyClasses) { + warnTooManyClasses(className); + } + + return className; +} + +function useStyledComponentImpl(forwardedComponent, props, forwardedRef) { + var componentAttrs = forwardedComponent.attrs, + componentStyle = forwardedComponent.componentStyle, + defaultProps = forwardedComponent.defaultProps, + foldedComponentIds = forwardedComponent.foldedComponentIds, + shouldForwardProp = forwardedComponent.shouldForwardProp, + styledComponentId = forwardedComponent.styledComponentId, + target = forwardedComponent.target; + Object(react__WEBPACK_IMPORTED_MODULE_1__["useDebugValue"])(styledComponentId); // NOTE: the non-hooks version only subscribes to this when !componentStyle.isStatic, + // but that'd be against the rules-of-hooks. We could be naughty and do it anyway as it + // should be an immutable value, but behave for now. + + var theme = determineTheme(props, Object(react__WEBPACK_IMPORTED_MODULE_1__["useContext"])(ThemeContext), defaultProps); + + var _useResolvedAttrs = useResolvedAttrs(theme || EMPTY_OBJECT, props, componentAttrs), + context = _useResolvedAttrs[0], + attrs = _useResolvedAttrs[1]; + + var generatedClassName = useInjectedStyle(componentStyle, componentAttrs.length > 0, context, true ? forwardedComponent.warnTooManyClasses : undefined); + var refToForward = forwardedRef; + var elementToBeCreated = attrs.$as || props.$as || attrs.as || props.as || target; + var isTargetTag = isTag(elementToBeCreated); + var computedProps = attrs !== props ? _extends({}, props, {}, attrs) : props; + var propFilterFn = shouldForwardProp || isTargetTag && _emotion_is_prop_valid__WEBPACK_IMPORTED_MODULE_5__["default"]; + var propsForElement = {}; // eslint-disable-next-line guard-for-in + + for (var key in computedProps) { + if (key[0] === '$' || key === 'as') continue;else if (key === 'forwardedAs') { + propsForElement.as = computedProps[key]; + } else if (!propFilterFn || propFilterFn(key, _emotion_is_prop_valid__WEBPACK_IMPORTED_MODULE_5__["default"])) { + // Don't pass through non HTML tags through to HTML elements + propsForElement[key] = computedProps[key]; + } + } + + if (props.style && attrs.style !== props.style) { + propsForElement.style = _extends({}, props.style, {}, attrs.style); + } + + propsForElement.className = Array.prototype.concat(foldedComponentIds, styledComponentId, generatedClassName !== styledComponentId ? generatedClassName : null, props.className, attrs.className).filter(Boolean).join(' '); + propsForElement.ref = refToForward; + return Object(react__WEBPACK_IMPORTED_MODULE_1__["createElement"])(elementToBeCreated, propsForElement); +} + +function createStyledComponent(target, options, rules) { + var isTargetStyledComp = isStyledComponent(target); + var isCompositeComponent = !isTag(target); + var _options$displayName = options.displayName, + displayName = _options$displayName === void 0 ? generateDisplayName(target) : _options$displayName, + _options$componentId = options.componentId, + componentId = _options$componentId === void 0 ? generateId(options.displayName, options.parentComponentId) : _options$componentId, + _options$attrs = options.attrs, + attrs = _options$attrs === void 0 ? EMPTY_ARRAY : _options$attrs; + var styledComponentId = options.displayName && options.componentId ? escape(options.displayName) + "-" + options.componentId : options.componentId || componentId; // fold the underlying StyledComponent attrs up (implicit extend) + + var finalAttrs = // $FlowFixMe + isTargetStyledComp && target.attrs ? Array.prototype.concat(target.attrs, attrs).filter(Boolean) : attrs; // eslint-disable-next-line prefer-destructuring + + var shouldForwardProp = options.shouldForwardProp; // $FlowFixMe + + if (isTargetStyledComp && target.shouldForwardProp) { + if (shouldForwardProp) { + // compose nested shouldForwardProp calls + shouldForwardProp = function shouldForwardProp(prop, filterFn) { + return (// $FlowFixMe + target.shouldForwardProp(prop, filterFn) && options.shouldForwardProp(prop, filterFn) + ); + }; + } else { + // eslint-disable-next-line prefer-destructuring + shouldForwardProp = target.shouldForwardProp; + } + } + + var componentStyle = new ComponentStyle(isTargetStyledComp ? // fold the underlying StyledComponent rules up (implicit extend) + // $FlowFixMe + target.componentStyle.rules.concat(rules) : rules, styledComponentId); + /** + * forwardRef creates a new interim component, which we'll take advantage of + * instead of extending ParentComponent to create _another_ interim class + */ + + var WrappedStyledComponent; // eslint-disable-next-line react-hooks/rules-of-hooks + + var forwardRef = function forwardRef(props, ref) { + return useStyledComponentImpl(WrappedStyledComponent, props, ref); + }; + + forwardRef.displayName = displayName; // $FlowFixMe this is a forced cast to merge it StyledComponentWrapperProperties + + WrappedStyledComponent = react__WEBPACK_IMPORTED_MODULE_1___default.a.forwardRef(forwardRef); + WrappedStyledComponent.attrs = finalAttrs; + WrappedStyledComponent.componentStyle = componentStyle; + WrappedStyledComponent.displayName = displayName; + WrappedStyledComponent.shouldForwardProp = shouldForwardProp; // this static is used to preserve the cascade of static classes for component selector + // purposes; this is especially important with usage of the css prop + + WrappedStyledComponent.foldedComponentIds = isTargetStyledComp ? // $FlowFixMe + Array.prototype.concat(target.foldedComponentIds, target.styledComponentId) : EMPTY_ARRAY; + WrappedStyledComponent.styledComponentId = styledComponentId; // fold the underlying StyledComponent target up since we folded the styles + + WrappedStyledComponent.target = isTargetStyledComp ? // $FlowFixMe + target.target : target; // $FlowFixMe + + WrappedStyledComponent.withComponent = function withComponent(tag) { + var previousComponentId = options.componentId, + optionsToCopy = _objectWithoutPropertiesLoose(options, ["componentId"]); + + var newComponentId = previousComponentId && previousComponentId + "-" + (isTag(tag) ? tag : escape(getComponentName(tag))); + + var newOptions = _extends({}, optionsToCopy, { + attrs: finalAttrs, + componentId: newComponentId + }); + + return createStyledComponent(tag, newOptions, rules); + }; // $FlowFixMe + + + Object.defineProperty(WrappedStyledComponent, 'defaultProps', { + get: function get() { + return this._foldedDefaultProps; + }, + set: function set(obj) { + // $FlowFixMe + this._foldedDefaultProps = isTargetStyledComp ? mixinDeep({}, target.defaultProps, obj) : obj; + } + }); + + if (true) { + checkDynamicCreation(displayName, styledComponentId); + WrappedStyledComponent.warnTooManyClasses = createWarnTooManyClasses(displayName, styledComponentId); + } // $FlowFixMe + + + WrappedStyledComponent.toString = function () { + return "." + WrappedStyledComponent.styledComponentId; + }; + + if (isCompositeComponent) { + hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_6___default()(WrappedStyledComponent, target, { + // all SC-specific things should not be hoisted + attrs: true, + componentStyle: true, + displayName: true, + foldedComponentIds: true, + shouldForwardProp: true, + self: true, + styledComponentId: true, + target: true, + withComponent: true + }); + } + + return WrappedStyledComponent; +} + +// +// Thanks to ReactDOMFactories for this handy list! +var domElements = ['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', // SVG +'circle', 'clipPath', 'defs', 'ellipse', 'foreignObject', 'g', 'image', 'line', 'linearGradient', 'marker', 'mask', 'path', 'pattern', 'polygon', 'polyline', 'radialGradient', 'rect', 'stop', 'svg', 'text', 'tspan']; + +// + +var styled = function styled(tag) { + return constructWithOptions(createStyledComponent, tag); +}; // Shorthands for all valid HTML Elements + + +domElements.forEach(function (domElement) { + styled[domElement] = styled(domElement); +}); + +// + +var GlobalStyle = /*#__PURE__*/function () { + function GlobalStyle(rules, componentId) { + this.rules = rules; + this.componentId = componentId; + this.isStatic = isStaticRules(rules); + } + + var _proto = GlobalStyle.prototype; + + _proto.createStyles = function createStyles(instance, executionContext, styleSheet, stylis) { + var flatCSS = flatten(this.rules, executionContext, styleSheet); + var css = stylis(flatCSS.join(''), ''); + var id = this.componentId + instance; // NOTE: We use the id as a name as well, since these rules never change + + styleSheet.insertRules(id, id, css); + }; + + _proto.removeStyles = function removeStyles(instance, styleSheet) { + styleSheet.clearRules(this.componentId + instance); + }; + + _proto.renderStyles = function renderStyles(instance, executionContext, styleSheet, stylis) { + StyleSheet.registerId(this.componentId + instance); // NOTE: Remove old styles, then inject the new ones + + this.removeStyles(instance, styleSheet); + this.createStyles(instance, executionContext, styleSheet, stylis); + }; + + return GlobalStyle; +}(); + +function createGlobalStyle(strings) { + for (var _len = arguments.length, interpolations = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + interpolations[_key - 1] = arguments[_key]; + } + + var rules = css.apply(void 0, [strings].concat(interpolations)); + var styledComponentId = "sc-global-" + generateComponentId(JSON.stringify(rules)); + var globalStyle = new GlobalStyle(rules, styledComponentId); + + if (true) { + checkDynamicCreation(styledComponentId); + } + + function GlobalStyleComponent(props) { + var styleSheet = useStyleSheet(); + var stylis = useStylis(); + var theme = Object(react__WEBPACK_IMPORTED_MODULE_1__["useContext"])(ThemeContext); + var instanceRef = Object(react__WEBPACK_IMPORTED_MODULE_1__["useRef"])(null); + + if (instanceRef.current === null) { + instanceRef.current = styleSheet.allocateGSInstance(styledComponentId); + } + + var instance = instanceRef.current; + + if ( true && react__WEBPACK_IMPORTED_MODULE_1___default.a.Children.count(props.children)) { + // eslint-disable-next-line no-console + console.warn("The global style component " + styledComponentId + " was given child JSX. createGlobalStyle does not render children."); + } + + if ( true && rules.some(function (rule) { + return typeof rule === 'string' && rule.indexOf('@import') !== -1; + })) { + 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 meta tag to the stylesheet, or simply embedding it manually in your index.html section for a simpler app."); + } + + if (globalStyle.isStatic) { + globalStyle.renderStyles(instance, STATIC_EXECUTION_CONTEXT, styleSheet, stylis); + } else { + var context = _extends({}, props, { + theme: determineTheme(props, theme, GlobalStyleComponent.defaultProps) + }); + + globalStyle.renderStyles(instance, context, styleSheet, stylis); + } + + Object(react__WEBPACK_IMPORTED_MODULE_1__["useEffect"])(function () { + return function () { + return globalStyle.removeStyles(instance, styleSheet); + }; + }, EMPTY_ARRAY); + return null; + } // $FlowFixMe + + + return react__WEBPACK_IMPORTED_MODULE_1___default.a.memo(GlobalStyleComponent); +} + +// +function keyframes(strings) { + /* Warning if you've used keyframes on React Native */ + if ( true && typeof navigator !== 'undefined' && navigator.product === 'ReactNative') { + // eslint-disable-next-line no-console + console.warn('`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.'); + } + + for (var _len = arguments.length, interpolations = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + interpolations[_key - 1] = arguments[_key]; + } + + var rules = css.apply(void 0, [strings].concat(interpolations)).join(''); + var name = generateComponentId(rules); + return new Keyframes(name, [rules, name, '@keyframes']); +} + +var ServerStyleSheet = /*#__PURE__*/function () { + function ServerStyleSheet() { + var _this = this; + + this._emitSheetCSS = function () { + var css = _this.instance.toString(); + + var nonce = getNonce(); + var attrs = [nonce && "nonce=\"" + nonce + "\"", SC_ATTR + "=\"true\"", SC_ATTR_VERSION + "=\"" + SC_VERSION + "\""]; + var htmlAttr = attrs.filter(Boolean).join(' '); + return ""; + }; + + this.getStyleTags = function () { + if (_this.sealed) { + return throwStyledComponentsError(2); + } + + return _this._emitSheetCSS(); + }; + + this.getStyleElement = function () { + var _props; + + if (_this.sealed) { + return throwStyledComponentsError(2); + } + + var props = (_props = {}, _props[SC_ATTR] = '', _props[SC_ATTR_VERSION] = SC_VERSION, _props.dangerouslySetInnerHTML = { + __html: _this.instance.toString() + }, _props); + var nonce = getNonce(); + + if (nonce) { + props.nonce = nonce; + } // v4 returned an array for this fn, so we'll do the same for v5 for backward compat + + + return [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("style", _extends({}, props, { + key: "sc-0-0" + }))]; + }; + + this.seal = function () { + _this.sealed = true; + }; + + this.instance = new StyleSheet({ + isServer: true + }); + this.sealed = false; + } + + var _proto = ServerStyleSheet.prototype; + + _proto.collectStyles = function collectStyles(children) { + if (this.sealed) { + return throwStyledComponentsError(2); + } + + return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(StyleSheetManager, { + sheet: this.instance + }, children); + }; + + // eslint-disable-next-line consistent-return + _proto.interleaveWithNodeStream = function interleaveWithNodeStream(input) { + { + return throwStyledComponentsError(3); + } + }; + + return ServerStyleSheet; +}(); + +// export default ( +// Component: AbstractComponent +// ): AbstractComponent<$Diff & { theme?: any }, Instance> +// +// but the old build system tooling doesn't support the syntax + +var withTheme = (function (Component) { + // $FlowFixMe This should be React.forwardRef + var WithTheme = react__WEBPACK_IMPORTED_MODULE_1___default.a.forwardRef(function (props, ref) { + var theme = Object(react__WEBPACK_IMPORTED_MODULE_1__["useContext"])(ThemeContext); // $FlowFixMe defaultProps isn't declared so it can be inferrable + + var defaultProps = Component.defaultProps; + var themeProp = determineTheme(props, theme, defaultProps); + + if ( true && themeProp === undefined) { + // eslint-disable-next-line no-console + console.warn("[withTheme] You are not using a ThemeProvider nor passing a theme prop or a theme in defaultProps in component class \"" + getComponentName(Component) + "\""); + } + + return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(Component, _extends({}, props, { + theme: themeProp, + ref: ref + })); + }); + hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_6___default()(WithTheme, Component); + WithTheme.displayName = "WithTheme(" + getComponentName(Component) + ")"; + return WithTheme; +}); + +// + +var useTheme = function useTheme() { + return Object(react__WEBPACK_IMPORTED_MODULE_1__["useContext"])(ThemeContext); +}; + +// +var __PRIVATE__ = { + StyleSheet: StyleSheet, + masterSheet: masterSheet +}; + +// +/* Define bundle version for export */ + +var version = "5.1.0"; +/* Warning if you've imported this file on React Native */ + +if ( true && typeof navigator !== 'undefined' && navigator.product === 'ReactNative') { + // eslint-disable-next-line no-console + console.warn("It looks like you've imported 'styled-components' on React Native.\n" + "Perhaps you're looking to import 'styled-components/native'?\n" + 'Read more about this at https://www.styled-components.com/docs/basics#react-native'); +} +/* Warning if there are several instances of styled-components */ + + +if ( true && typeof window !== 'undefined') { + window['__styled-components-init__'] = window['__styled-components-init__'] || 0; + + if (window['__styled-components-init__'] === 1) { + // eslint-disable-next-line no-console + console.warn("It looks like there are several instances of 'styled-components' initialized in this application. " + 'This may cause dynamic styles not rendering properly, errors happening during rehydration process, ' + 'missing theme prop, and makes your application bigger without a good reason.\n\n' + 'See https://s-c.sh/2BAXzed for more info.'); + } + + window['__styled-components-init__'] += 1; +} + +/* harmony default export */ __webpack_exports__["default"] = (styled); + +//# sourceMappingURL=styled-components.browser.esm.js.map + +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../process/browser.js */ "./node_modules/process/browser.js"))) + +/***/ }), + +/***/ "./resources/views/components/GlobalStyles.js": +/*!****************************************************!*\ + !*** ./resources/views/components/GlobalStyles.js ***! + \****************************************************/ +/*! exports provided: defaultPadding, InputMargin, ButtonStyles, LabelStyles, StyledH3, Button, SecondaryButton, SubmitButton, Footer */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultPadding", function() { return defaultPadding; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InputMargin", function() { return InputMargin; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ButtonStyles", function() { return ButtonStyles; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LabelStyles", function() { return LabelStyles; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StyledH3", function() { return StyledH3; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Button", function() { return Button; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SecondaryButton", function() { return SecondaryButton; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SubmitButton", function() { return SubmitButton; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Footer", function() { return Footer; }); +/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! styled-components */ "./node_modules/styled-components/dist/styled-components.browser.esm.js"); +function _templateObject7() { + var data = _taggedTemplateLiteral(["\n display: flex;\n margin-top: auto;\n justify-content: flex-end;\n button {\n margin-left: 12px;\n }\n"]); + + _templateObject7 = function _templateObject7() { + return data; + }; + + return data; +} + +function _templateObject6() { + var data = _taggedTemplateLiteral(["\n border: 0;\n color: ", ";\n background-color: ", ";\n &:active {\n background-color: ", ";\n }\n"]); + + _templateObject6 = function _templateObject6() { + return data; + }; + + return data; +} + +function _templateObject5() { + var data = _taggedTemplateLiteral(["\n font-size: 12px;\n border-radius: 12px;\n font-weight: 500;\n padding: 0 16px;\n color: ", ";\n border-color: ", ";\n"]); + + _templateObject5 = function _templateObject5() { + return data; + }; + + return data; +} + +function _templateObject4() { + var data = _taggedTemplateLiteral(["\n ", ";\n"]); + + _templateObject4 = function _templateObject4() { + return data; + }; + + return data; +} + +function _templateObject3() { + var data = _taggedTemplateLiteral(["\n font-weight: normal;\n text-transform: uppercase;\n margin: 0;\n font-size: 11px;\n letter-spacing: 0.92px;\n"]); + + _templateObject3 = function _templateObject3() { + return data; + }; + + return data; +} + +function _templateObject2() { + var data = _taggedTemplateLiteral(["\n font-size: 14px;\n letter-spacing: -0.08px;\n align-self: center;\n"]); + + _templateObject2 = function _templateObject2() { + return data; + }; + + return data; +} + +function _templateObject() { + var data = _taggedTemplateLiteral(["\n height: 24px;\n background-color: ", ";\n border: 1px solid ", ";\n color: ", ";\n border-radius: 4px;\n padding: 0 12px;\n letter-spacing: -0.07px;\n\n &:active {\n background-color: ", ";\n }\n &:focus {\n outline: none;\n }\n &:disabled {\n opacity: 0.5;\n }\n"]); + + _templateObject = function _templateObject() { + return data; + }; + + return data; +} + +function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); } + + +var defaultPadding = "24px"; +var InputMargin = "20px"; +var ButtonStyles = Object(styled_components__WEBPACK_IMPORTED_MODULE_0__["css"])(_templateObject(), function (props) { + return props.theme.button.bgColor; +}, function (props) { + return props.theme.button.border; +}, function (props) { + return props.theme.button.color; +}, function (props) { + return props.theme.button.bgActive; +}); +var LabelStyles = Object(styled_components__WEBPACK_IMPORTED_MODULE_0__["css"])(_templateObject2()); +var StyledH3 = styled_components__WEBPACK_IMPORTED_MODULE_0__["default"].h3(_templateObject3()); +var Button = styled_components__WEBPACK_IMPORTED_MODULE_0__["default"].button(_templateObject4(), ButtonStyles); +var SecondaryButton = Object(styled_components__WEBPACK_IMPORTED_MODULE_0__["default"])(Button)(_templateObject5(), function (props) { + return props.theme.secondaryButton.textColor; +}, function (props) { + return props.theme.secondaryButton.borderColor; +}); +var SubmitButton = Object(styled_components__WEBPACK_IMPORTED_MODULE_0__["default"])(SecondaryButton)(_templateObject6(), function (props) { + return props.theme.CTAButton.textColor; +}, function (props) { + return props.theme.CTAButton.bgColor; +}, function (props) { + return props.theme.CTAButton.bgActive; +}); +var Footer = styled_components__WEBPACK_IMPORTED_MODULE_0__["default"].div(_templateObject7()); + +/***/ }), + +/***/ "./resources/views/components/historyDropdown/historyStyles.js": +/*!*********************************************************************!*\ + !*** ./resources/views/components/historyDropdown/historyStyles.js ***! + \*********************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! styled-components */ "./node_modules/styled-components/dist/styled-components.browser.esm.js"); +/* harmony import */ var _GlobalStyles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../GlobalStyles */ "./resources/views/components/GlobalStyles.js"); +function _templateObject() { + var data = _taggedTemplateLiteral(["\n .dropdown {\n position: relative;\n display: inline-block;\n align-self: center;\n font-size: 12px;\n }\n \n .dropdown-menu {\n position: absolute;\n top: 100%;\n left: 0;\n z-index: 1000;\n display: none;\n float: left;\n min-width: 10rem;\n padding: 8px 0;\n margin: 2px 0 0;\n color: ", ";\n text-align: left;\n list-style: none;\n background-color: ", ";\n background-clip: padding-box;\n border: 1px solid rgba(0, 0, 0, 0.15);\n border-radius: 4px;\n box-shadow: 0px 3px 15px 0px rgba(0,0,0,0.15);\n }\n\n .dropdown-menu a, .dropdown-menu a:link, .dropdown-menu a:visited { \n display: block;\n color: ", ";\n padding: 6px 8px;\n text-decoration: none;\n cursor: default;\n\n &:active, &:focus {\n outline: 0;\n background-color: ", ";\n }\n }\n\n .dropdown-toggle {\n ", "\n padding: 0;\n width: 40px;\n .caret { display: none; }\n svg { margin-top: 2px; }\n }\n\n .dropdown-menu-right {\n right: 0;\n left: auto;\n }\n\n .dropdown-menu[x-placement^=\"top\"], .dropdown-menu[x-placement^=\"right\"], .dropdown-menu[x-placement^=\"bottom\"], .dropdown-menu[x-placement^=\"left\"] {\n right: auto;\n bottom: auto;\n }\n\n .dropdown-divider {\n height: 0;\n margin: 0.5rem 0;\n overflow: hidden;\n border-top: 1px solid #e9ecef;\n }\n\n .dropdown-menu.show {\n display: block;\n }\n\n .dropdown-header {\n display: block;\n padding: 0 8px 8px;\n margin-bottom: 0;\n color: ", ";\n white-space: nowrap;\n opacity: 0.8;\n }\n\n .dropdown.open .dropdown-menu { display: block; }\n\n"]); + + _templateObject = function _templateObject() { + return data; + }; + + return data; +} + +function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); } + + + +/* harmony default export */ __webpack_exports__["default"] = (Object(styled_components__WEBPACK_IMPORTED_MODULE_0__["createGlobalStyle"])(_templateObject(), function (props) { + return props.theme.input.color; +}, function (props) { + return props.theme.input.background; +}, function (props) { + return props.theme.previewColor; +}, function (props) { + return props.theme.button.bgActive; +}, _GlobalStyles__WEBPACK_IMPORTED_MODULE_1__["ButtonStyles"], function (props) { + return props.theme.textColor; +})); + +/***/ }) + +/******/ }); +//# sourceMappingURL=resources_views_components_historyDropdown_historyStyles.js.map \ No newline at end of file diff --git a/Rename-It.sketchplugin/Contents/Resources/resources_views_theme_dark.js b/Rename-It.sketchplugin/Contents/Resources/resources_views_theme_dark.js index 6367fa8..21e4617 100644 --- a/Rename-It.sketchplugin/Contents/Resources/resources_views_theme_dark.js +++ b/Rename-It.sketchplugin/Contents/Resources/resources_views_theme_dark.js @@ -1 +1,133 @@ -!function(e){var r={};function t(o){if(r[o])return r[o].exports;var n=r[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,t),n.l=!0,n.exports}t.m=e,t.c=r,t.d=function(e,r,o){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:o})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(t.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)t.d(o,n,function(r){return e[r]}.bind(null,n));return o},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=0)}([function(e,r,t){"use strict";t.r(r),r.default={name:"dark",text:"#E6E4EB",bg:"#2D2D2D",previewColor:"#F3F2F5",input:{background:"#373737",color:"#F3F2F5",border:"#454545",borderActive:"#1384FF"},button:{color:"#F3F2F5",bgColor:"rgba(255,255,255,0.25)",border:"#636363",bgActive:"rgba(255,255,255,0.10)"},secondaryButton:{borderColor:"#636363",textColor:"#F3F2F5"},CTAButton:{bgColor:"#1384FF",textColor:"#fff",bgActive:"#0F72DB"},radio:{selectedColor:"#1384FF",border:"#1384FF"}}}]); \ No newline at end of file +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./resources/views/theme/dark.js"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./resources/views/theme/dark.js": +/*!***************************************!*\ + !*** ./resources/views/theme/dark.js ***! + \***************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony default export */ __webpack_exports__["default"] = ({ + name: "dark", + text: "#E6E4EB", + bg: "#2D2D2D", + previewColor: "#F3F2F5", + input: { + background: "#373737", + color: "#F3F2F5", + border: "#454545", + borderActive: "#1384FF" + }, + button: { + color: "#F3F2F5", + bgColor: "rgba(255,255,255,0.25)", + border: "#636363", + bgActive: "rgba(255,255,255,0.10)" + }, + secondaryButton: { + borderColor: "#636363", + textColor: "#F3F2F5" + }, + CTAButton: { + bgColor: "#1384FF", + textColor: "#fff", + bgActive: "#0F72DB" + }, + radio: { + selectedColor: "#1384FF", + border: "#1384FF" + } +}); + +/***/ }) + +/******/ }); +//# sourceMappingURL=resources_views_theme_dark.js.map \ No newline at end of file diff --git a/Rename-It.sketchplugin/Contents/Resources/resources_views_theme_index.js b/Rename-It.sketchplugin/Contents/Resources/resources_views_theme_index.js index cc7a977..39fe97e 100644 --- a/Rename-It.sketchplugin/Contents/Resources/resources_views_theme_index.js +++ b/Rename-It.sketchplugin/Contents/Resources/resources_views_theme_index.js @@ -1 +1,199 @@ -!function(r){var e={};function o(t){if(e[t])return e[t].exports;var n=e[t]={i:t,l:!1,exports:{}};return r[t].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.m=r,o.c=e,o.d=function(r,e,t){o.o(r,e)||Object.defineProperty(r,e,{enumerable:!0,get:t})},o.r=function(r){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},o.t=function(r,e){if(1&e&&(r=o(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var t=Object.create(null);if(o.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var n in r)o.d(t,n,function(e){return r[e]}.bind(null,n));return t},o.n=function(r){var e=r&&r.__esModule?function(){return r.default}:function(){return r};return o.d(e,"a",e),e},o.o=function(r,e){return Object.prototype.hasOwnProperty.call(r,e)},o.p="",o(o.s=0)}([function(r,e,o){"use strict";o.r(e);var t={name:"dark",text:"#E6E4EB",bg:"#2D2D2D",previewColor:"#F3F2F5",input:{background:"#373737",color:"#F3F2F5",border:"#454545",borderActive:"#1384FF"},button:{color:"#F3F2F5",bgColor:"rgba(255,255,255,0.25)",border:"#636363",bgActive:"rgba(255,255,255,0.10)"},secondaryButton:{borderColor:"#636363",textColor:"#F3F2F5"},CTAButton:{bgColor:"#1384FF",textColor:"#fff",bgActive:"#0F72DB"},radio:{selectedColor:"#1384FF",border:"#1384FF"}},n={name:"light",text:"#747474",bg:"#F7F7F7",previewColor:"#242424",input:{background:"#FBFBFB",color:"#505050",border:"#E4E4E4",borderActive:"#1384FF"},button:{color:"#505050",bgColor:"#FBFBFB",border:"#E4E4E4",bgActive:"#F3F2F5"},secondaryButton:{borderColor:"#B2AEBD",textColor:"#817B8F"},CTAButton:{bgColor:"#1384FF",textColor:"#fff",bgActive:"#0F72DB"},radio:{selectedColor:"#969696",border:"#969696"}};e.default=function(r){return"dark"===r?t:n}}]); \ No newline at end of file +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./resources/views/theme/index.js"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./resources/views/theme/dark.js": +/*!***************************************!*\ + !*** ./resources/views/theme/dark.js ***! + \***************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony default export */ __webpack_exports__["default"] = ({ + name: "dark", + text: "#E6E4EB", + bg: "#2D2D2D", + previewColor: "#F3F2F5", + input: { + background: "#373737", + color: "#F3F2F5", + border: "#454545", + borderActive: "#1384FF" + }, + button: { + color: "#F3F2F5", + bgColor: "rgba(255,255,255,0.25)", + border: "#636363", + bgActive: "rgba(255,255,255,0.10)" + }, + secondaryButton: { + borderColor: "#636363", + textColor: "#F3F2F5" + }, + CTAButton: { + bgColor: "#1384FF", + textColor: "#fff", + bgActive: "#0F72DB" + }, + radio: { + selectedColor: "#1384FF", + border: "#1384FF" + } +}); + +/***/ }), + +/***/ "./resources/views/theme/index.js": +/*!****************************************!*\ + !*** ./resources/views/theme/index.js ***! + \****************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _dark__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./dark */ "./resources/views/theme/dark.js"); +/* harmony import */ var _light__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./light */ "./resources/views/theme/light.js"); + + +/* harmony default export */ __webpack_exports__["default"] = (function (theme) { + if (theme === "dark") { + return _dark__WEBPACK_IMPORTED_MODULE_0__["default"]; + } + + return _light__WEBPACK_IMPORTED_MODULE_1__["default"]; +}); + +/***/ }), + +/***/ "./resources/views/theme/light.js": +/*!****************************************!*\ + !*** ./resources/views/theme/light.js ***! + \****************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony default export */ __webpack_exports__["default"] = ({ + name: "light", + text: "#747474", + bg: "#F7F7F7", + previewColor: "#242424", + input: { + background: "#FBFBFB", + color: "#505050", + border: "#E4E4E4", + borderActive: "#1384FF" + }, + button: { + color: "#505050", + bgColor: "#FBFBFB", + border: "#E4E4E4", + bgActive: "#F3F2F5" + }, + secondaryButton: { + borderColor: "#B2AEBD", + textColor: "#817B8F" + }, + CTAButton: { + bgColor: "#1384FF", + textColor: "#fff", + bgActive: "#0F72DB" + }, + radio: { + selectedColor: "#969696", + border: "#969696" + } +}); + +/***/ }) + +/******/ }); +//# sourceMappingURL=resources_views_theme_index.js.map \ No newline at end of file diff --git a/Rename-It.sketchplugin/Contents/Resources/resources_views_theme_light.js b/Rename-It.sketchplugin/Contents/Resources/resources_views_theme_light.js index e5d1fc4..a980a01 100644 --- a/Rename-It.sketchplugin/Contents/Resources/resources_views_theme_light.js +++ b/Rename-It.sketchplugin/Contents/Resources/resources_views_theme_light.js @@ -1 +1,133 @@ -!function(e){var r={};function t(o){if(r[o])return r[o].exports;var n=r[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,t),n.l=!0,n.exports}t.m=e,t.c=r,t.d=function(e,r,o){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:o})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(t.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)t.d(o,n,function(r){return e[r]}.bind(null,n));return o},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=0)}([function(e,r,t){"use strict";t.r(r),r.default={name:"light",text:"#747474",bg:"#F7F7F7",previewColor:"#242424",input:{background:"#FBFBFB",color:"#505050",border:"#E4E4E4",borderActive:"#1384FF"},button:{color:"#505050",bgColor:"#FBFBFB",border:"#E4E4E4",bgActive:"#F3F2F5"},secondaryButton:{borderColor:"#B2AEBD",textColor:"#817B8F"},CTAButton:{bgColor:"#1384FF",textColor:"#fff",bgActive:"#0F72DB"},radio:{selectedColor:"#969696",border:"#969696"}}}]); \ No newline at end of file +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./resources/views/theme/light.js"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./resources/views/theme/light.js": +/*!****************************************!*\ + !*** ./resources/views/theme/light.js ***! + \****************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony default export */ __webpack_exports__["default"] = ({ + name: "light", + text: "#747474", + bg: "#F7F7F7", + previewColor: "#242424", + input: { + background: "#FBFBFB", + color: "#505050", + border: "#E4E4E4", + borderActive: "#1384FF" + }, + button: { + color: "#505050", + bgColor: "#FBFBFB", + border: "#E4E4E4", + bgActive: "#F3F2F5" + }, + secondaryButton: { + borderColor: "#B2AEBD", + textColor: "#817B8F" + }, + CTAButton: { + bgColor: "#1384FF", + textColor: "#fff", + bgActive: "#0F72DB" + }, + radio: { + selectedColor: "#969696", + border: "#969696" + } +}); + +/***/ }) + +/******/ }); +//# sourceMappingURL=resources_views_theme_light.js.map \ No newline at end of file diff --git a/Rename-It.sketchplugin/Contents/Resources/resources_webview.js b/Rename-It.sketchplugin/Contents/Resources/resources_webview.js index 1aeb091..6acd227 100644 --- a/Rename-It.sketchplugin/Contents/Resources/resources_webview.js +++ b/Rename-It.sketchplugin/Contents/Resources/resources_webview.js @@ -1 +1,54142 @@ -!function(e){var t={};function n(u){if(t[u])return t[u].exports;var r=t[u]={i:u,l:!1,exports:{}};return e[u].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,u){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:u})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var u=Object.create(null);if(n.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(u,r,function(t){return e[t]}.bind(null,r));return u},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=78)}([function(e,t,n){"use strict";e.exports=n(45)},function(e,t,n){"use strict";function u(){return(u=Object.assign||function(e){for(var t=1;t=0||(r[n]=e[n]);return r}n.d(t,"a",(function(){return u}))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return we})),n.d(t,"b",(function(){return Be})),n.d(t,"c",(function(){return ae})),n.d(t,"e",(function(){return Te}));var u=n(12),r=n(0),o=n.n(r),a=(n(29),n(30)),i=n(31),l=n(24),c=n(13),s=n.n(c);function f(){return(f=Object.assign||function(e){for(var t=1;t1?t-1:0),u=1;u0?" Additional arguments: "+n.join(", "):""))}var x=function(e){var t=document.head,n=e||t,u=document.createElement("style"),r=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var u=t[n];if(u&&1===u.nodeType&&u.hasAttribute(E))return u}}(n),o=void 0!==r?r.nextSibling:null;u.setAttribute(E,"active"),u.setAttribute("data-styled-version","5.1.0");var a=w();return a&&u.setAttribute("nonce",a),n.insertBefore(u,o),u},k=function(){function e(e){var t=this.element=x(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,u=t.length;n=0){var n=document.createTextNode(t),u=this.nodes[e];return this.element.insertBefore(n,u||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.groupSizes.length){for(var n=this.groupSizes,u=n.length,r=u;e>=r;)(r<<=1)<0&&F(16,""+e);this.groupSizes=new Uint32Array(r),this.groupSizes.set(n),this.length=r;for(var o=u;o=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],u=this.indexOfGroup(e),r=u+n,o=u;o=P&&(P=t+1),T.set(e,t),O.set(t,e)},R="style["+E+'][data-styled-version="5.1.0"]',M=new RegExp("^"+E+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),I=function(e,t,n){for(var u,r=n.split(","),o=0,a=r.length;o0&&(c+=e+",")})),u+=""+i+l+'{content:"'+c+'"}/*!sc*/\n'}}}return u}(this)},e}(),$=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},W=function(e){return $(5381,e)};var V=/^\s*\/\/.*$/gm;function q(e){var t,n,u,r=void 0===e?m:e,o=r.options,i=void 0===o?m:o,l=r.plugins,c=void 0===l?h:l,s=new a.a(i),f=[],d=function(e){function t(t){if(t)try{e(t+"}")}catch(n){}}return function(n,u,r,o,a,i,l,c,s,f){switch(n){case 1:if(0===s&&64===u.charCodeAt(0))return e(u+";"),"";break;case 2:if(0===c)return u+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(r[0]+u),"";default:return u+(0===f?"/*|*/":"")}case-2:u.split("/*|*/}").forEach(t)}}}((function(e){f.push(e)})),p=function(e,u,r){return u>0&&-1!==r.slice(0,u).indexOf(n)&&r.slice(u-n.length,u)!==n?"."+t:e};function v(e,r,o,a){void 0===a&&(a="&");var i=e.replace(V,""),l=r&&o?o+" "+r+" { "+i+" }":i;return t=a,n=r,u=new RegExp("\\"+n+"\\b","g"),s(o||!r?"":r,l)}return s.use([].concat(c,[function(e,t,r){2===e&&r.length&&r[0].lastIndexOf(n)>0&&(r[0]=r[0].replace(u,p))},d,function(e){if(-2===e){var t=f;return f=[],t}}])),v.hash=c.length?c.reduce((function(e,t){return t.name||F(15),$(e,t.name)}),5381).toString():"",v}var Q=o.a.createContext(),K=(Q.Consumer,o.a.createContext()),G=(K.Consumer,new H),Y=q();function X(){return Object(r.useContext)(Q)||G}function J(){return Object(r.useContext)(K)||Y}var Z=function(){function e(e,t){var n=this;this.inject=function(e){e.hasNameForId(n.id,n.name)||e.insertRules(n.id,n.name,Y.apply(void 0,n.stringifyArgs))},this.toString=function(){return F(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.stringifyArgs=t}return e.prototype.getName=function(){return this.name},e}(),ee=/([A-Z])/g,te=/^ms-/;function ne(e){return e.replace(ee,"-$1").toLowerCase().replace(te,"-ms-")}var ue=function(e){return null==e||!1===e||""===e},re=function e(t,n){var u=[];return Object.keys(t).forEach((function(n){if(!ue(t[n])){if(p(t[n]))return u.push.apply(u,e(t[n],n)),u;if(v(t[n]))return u.push(ne(n)+":",t[n],";"),u;u.push(ne(n)+": "+(r=n,(null==(o=t[n])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in i.a?String(o).trim():o+"px")+";"))}var r,o;return u})),n?[n+" {"].concat(u,["}"]):u};function oe(e,t,n){if(Array.isArray(e)){for(var u,r=[],o=0,a=e.length;o1?t-1:0),u=1;u1?t-1:0),u=1;u25?39:97))};function pe(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=de(t%52)+n;return(de(t%52)+n).replace(fe,"$1-$2")}function he(e){for(var t=0;t>>0);if(!t.hasNameForId(u,o)){var a=n(r,"."+o,void 0,u);t.insertRules(u,o,a)}return this.staticRulesId=o,o}for(var i=this.rules.length,l=$(this.baseHash,n.hash),c="",s=0;s>>0);if(!t.hasNameForId(u,h)){var m=n(c,"."+h,void 0,u);t.insertRules(u,h,m)}return h},e}(),ve=(new Set,function(e,t,n){return void 0===n&&(n=m),e.theme!==n.theme&&e.theme||t||n.theme}),ge=/[[\].#*$><+~=|^:(),"'`-]+/g,ye=/(^-|-$)/g;function Ee(e){return e.replace(ge,"-").replace(ye,"")}function be(e){return"string"==typeof e&&!0}var Ce=function(e){return pe(W(e)>>>0)};var Ae=o.a.createContext();Ae.Consumer;function we(e){var t=Object(r.useContext)(Ae),n=Object(r.useMemo)((function(){return function(e,t){return e?v(e)?e(t):Array.isArray(e)||"object"!=typeof e?F(8):t?f({},t,{},e):e:F(14)}(e.theme,t)}),[e.theme,t]);return e.children?o.a.createElement(Ae.Provider,{value:n},e.children):null}var Fe={};function xe(e,t,n){var u=e.attrs,o=e.componentStyle,a=e.defaultProps,i=e.foldedComponentIds,c=e.shouldForwardProp,s=e.styledComponentId,d=e.target;Object(r.useDebugValue)(s);var p=function(e,t,n){void 0===e&&(e=m);var u=f({},t,{theme:e}),r={};return n.forEach((function(e){var t,n,o,a=e;for(t in v(a)&&(a=a(u)),a)u[t]=r[t]="className"===t?(n=r[t],o=a[t],n&&o?n+" "+o:n||o):a[t]})),[u,r]}(ve(t,Object(r.useContext)(Ae),a)||m,t,u),h=p[0],g=p[1],y=function(e,t,n,u){var o=X(),a=J(),i=e.isStatic&&!t?e.generateAndInjectStyles(m,o,a):e.generateAndInjectStyles(n,o,a);return Object(r.useDebugValue)(i),i}(o,u.length>0,h),E=n,b=g.$as||t.$as||g.as||t.as||d,C=be(b),A=g!==t?f({},t,{},g):t,w=c||C&&l.a,F={};for(var x in A)"$"!==x[0]&&"as"!==x&&("forwardedAs"===x?F.as=A[x]:w&&!w(x,l.a)||(F[x]=A[x]));return t.style&&g.style!==t.style&&(F.style=f({},t.style,{},g.style)),F.className=Array.prototype.concat(i,s,y!==s?y:null,t.className,g.className).filter(Boolean).join(" "),F.ref=E,Object(r.createElement)(b,F)}function ke(e,t,n){var u=y(e),r=!be(e),a=t.displayName,i=void 0===a?function(e){return be(e)?"styled."+e:"Styled("+g(e)+")"}(e):a,l=t.componentId,c=void 0===l?function(e,t){var n="string"!=typeof e?"sc":Ee(e);Fe[n]=(Fe[n]||0)+1;var u=n+"-"+Ce(n+Fe[n]);return t?t+"-"+u:u}(t.displayName,t.parentComponentId):l,d=t.attrs,p=void 0===d?h:d,m=t.displayName&&t.componentId?Ee(t.displayName)+"-"+t.componentId:t.componentId||c,v=u&&e.attrs?Array.prototype.concat(e.attrs,p).filter(Boolean):p,E=t.shouldForwardProp;u&&e.shouldForwardProp&&(E=E?function(n,u){return e.shouldForwardProp(n,u)&&t.shouldForwardProp(n,u)}:e.shouldForwardProp);var b,C=new me(u?e.componentStyle.rules.concat(n):n,m),A=function(e,t){return xe(b,e,t)};return A.displayName=i,(b=o.a.forwardRef(A)).attrs=v,b.componentStyle=C,b.displayName=i,b.shouldForwardProp=E,b.foldedComponentIds=u?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):h,b.styledComponentId=m,b.target=u?e.target:e,b.withComponent=function(e){var u=t.componentId,r=function(e,t){if(null==e)return{};var n,u,r={},o=Object.keys(e);for(u=0;u=0||(r[n]=e[n]);return r}(t,["componentId"]),o=u&&u+"-"+(be(e)?e:Ee(g(e)));return ke(e,f({},r,{attrs:v,componentId:o}),n)},Object.defineProperty(b,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=u?se({},e.defaultProps,t):t}}),b.toString=function(){return"."+b.styledComponentId},r&&s()(b,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,self:!0,styledComponentId:!0,target:!0,withComponent:!0}),b}var De=function(e){return function e(t,n,r){if(void 0===r&&(r=m),!Object(u.isValidElementType)(n))return F(1,String(n));var o=function(){return t(n,r,ae.apply(void 0,arguments))};return o.withConfig=function(u){return e(t,n,f({},r,{},u))},o.attrs=function(u){return e(t,n,f({},r,{attrs:Array.prototype.concat(r.attrs,u).filter(Boolean)}))},o}(ke,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","tspan"].forEach((function(e){De[e]=De(e)}));var Se=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=he(e)}var t=e.prototype;return t.createStyles=function(e,t,n,u){var r=u(oe(this.rules,t,n).join(""),""),o=this.componentId+e;n.insertRules(o,o,r)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,u){H.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,u)},e}();function Be(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),u=1;uu&&(u=(t=t.trim()).charCodeAt(0)),u){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*n&&0l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102i.charCodeAt(0)&&(i=i.trim()),i=[i],0p)&&(L=(H=H.replace(" ",":")).length),0=0}function d(e){return s(e)&&"fixed"!==l(e).position?e.offsetParent:null}function p(e){for(var t=a(e),n=d(e);n&&f(n);)n=d(n);return n&&"body"===i(n)&&"static"===l(n).position?t:n||t}function h(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function m(e,t,n){return Math.max(e,Math.min(t,n))}function v(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},{},e)}function g(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}n.d(t,"a",(function(){return ae}));var y="top",E="bottom",b="right",C="left",A=[y,E,b,C],w=A.reduce((function(e,t){return e.concat([t+"-start",t+"-end"])}),[]),F=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];var x={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,o=e.name,a=n.elements.arrow,i=n.modifiersData.popperOffsets,l=u(n.placement),c=h(l),s=[C,b].indexOf(l)>=0?"height":"width";if(a){var f=n.modifiersData[o+"#persistent"].padding,d=r(a),v="y"===c?y:C,g="y"===c?E:b,A=n.rects.reference[s]+n.rects.reference[c]-i[c]-n.rects.popper[s],w=i[c]-n.rects.reference[c],F=n.elements.arrow&&p(n.elements.arrow),x=F?"y"===c?F.clientHeight||0:F.clientWidth||0:0,k=A/2-w/2,D=f[v],S=x-d[s]-f[g],B=x/2-d[s]/2+k,T=m(D,B,S),O=c;n.modifiersData[o]=((t={})[O]=T,t.centerOffset=T-B,t)}},effect:function(e){var t=e.state,n=e.options,u=e.name,r=n.element,a=void 0===r?"[data-popper-arrow]":r,i=n.padding,l=void 0===i?0:i;("string"!=typeof a||(a=t.elements.popper.querySelector(a)))&&o(t.elements.popper,a)&&(t.elements.arrow=a,t.modifiersData[u+"#persistent"]={padding:v("number"!=typeof l?l:g(l,A))})},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function k(e){return(c(e)?e.ownerDocument:e.document).documentElement}var D={top:"auto",right:"auto",bottom:"auto",left:"auto"};function S(e){var t,n=e.popper,u=e.popperRect,r=e.placement,o=e.offsets,i=e.position,l=e.gpuAcceleration,c=e.adaptive,s=function(e){var t=e.x,n=e.y,u=window.devicePixelRatio||1;return{x:Math.round(t*u)/u||0,y:Math.round(n*u)/u||0}}(o),f=s.x,d=s.y,h=o.hasOwnProperty("x"),m=o.hasOwnProperty("y"),v=C,g=y,A=window;if(c){var w=p(n);w===a(n)&&(w=k(n)),r===y&&(g=E,d-=w.clientHeight-u.height,d*=l?1:-1),r===C&&(v=b,f-=w.clientWidth-u.width,f*=l?1:-1)}var F,x=Object.assign({position:i},c&&D);return l?Object.assign({},x,((F={})[g]=m?"0":"",F[v]=h?"0":"",F.transform=(A.devicePixelRatio||1)<2?"translate("+f+"px, "+d+"px)":"translate3d("+f+"px, "+d+"px, 0)",F)):Object.assign({},x,((t={})[g]=m?d+"px":"",t[v]=h?f+"px":"",t.transform="",t))}var B={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,l={placement:u(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};t.styles.popper=Object.assign({},t.styles.popper,{},S(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i}))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,{},S(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},T={passive:!0};var O={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,u=e.options,r=u.scroll,o=void 0===r||r,i=u.resize,l=void 0===i||i,c=a(t.elements.popper),s=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&s.forEach((function(e){e.addEventListener("scroll",n.update,T)})),l&&c.addEventListener("resize",n.update,T),function(){o&&s.forEach((function(e){e.removeEventListener("scroll",n.update,T)})),l&&c.removeEventListener("resize",n.update,T)}},data:{}},P={left:"right",right:"left",bottom:"top",top:"bottom"};function _(e){return e.replace(/left|right|bottom|top/g,(function(e){return P[e]}))}var j={start:"end",end:"start"};function N(e){return e.replace(/start|end/g,(function(e){return j[e]}))}function R(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function M(e){var t=a(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function I(e){return R(k(e)).left+M(e).scrollLeft}function L(e,t,n){var u;void 0===n&&(n=!1);var r,o,l=R(e),c={scrollLeft:0,scrollTop:0},f={x:0,y:0};return n||("body"!==i(t)&&(c=(r=t)!==a(r)&&s(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:M(r)),s(t)?((f=R(t)).x+=t.clientLeft,f.y+=t.clientTop):(u=k(t))&&(f.x=I(u))),{x:l.left+c.scrollLeft-f.x,y:l.top+c.scrollTop-f.y,width:l.width,height:l.height}}function z(e){return"html"===i(e)?e:e.assignedSlot||e.parentNode||e.host||k(e)}function U(e,t){void 0===t&&(t=[]);var n=function e(t){if(["html","body","#document"].indexOf(i(t))>=0)return t.ownerDocument.body;if(s(t)){var n=l(t),u=n.overflow,r=n.overflowX,o=n.overflowY;if(/auto|scroll|overlay|hidden/.test(u+o+r))return t}return e(z(t))}(e),u="body"===i(n),r=u?a(n):n,o=t.concat(r);return u?o:o.concat(U(z(r)))}function H(e){return parseFloat(e)||0}function $(e){var t=a(e),n=function(e){var t=s(e)?l(e):{};return{top:H(t.borderTopWidth),right:H(t.borderRightWidth),bottom:H(t.borderBottomWidth),left:H(t.borderLeftWidth)}}(e),u="html"===i(e),r=I(e),o=e.clientWidth+n.right,c=e.clientHeight+n.bottom;return u&&t.innerHeight-e.clientHeight>50&&(c=t.innerHeight-n.bottom),{top:u?0:e.clientTop,right:e.clientLeft>n.left?n.right:u?t.innerWidth-o-r:e.offsetWidth-o,bottom:u?t.innerHeight-c:e.offsetHeight-c,left:u?r:e.clientLeft}}function W(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function V(e,t){return"viewport"===t?W(function(e){var t=a(e);return{width:t.innerWidth,height:t.innerHeight,x:0,y:0}}(e)):s(t)?R(t):W(function(e){var t=a(e),n=M(e),u=L(k(e),t);return u.height=Math.max(u.height,t.innerHeight),u.width=Math.max(u.width,t.innerWidth),u.x=-n.scrollLeft,u.y=-n.scrollTop,u}(k(e)))}function q(e,t,n){var u="clippingParents"===t?function(e){var t=U(e),n=["absolute","fixed"].indexOf(l(e).position)>=0&&s(e)?p(e):e;return c(n)?t.filter((function(e){return c(e)&&o(e,n)})):[]}(e):[].concat(t),r=[].concat(u,[n]),a=r[0],i=r.reduce((function(t,n){var u=V(e,n),r=$(s(n)?n:k(e));return t.top=Math.max(u.top+r.top,t.top),t.right=Math.min(u.right-r.right,t.right),t.bottom=Math.min(u.bottom-r.bottom,t.bottom),t.left=Math.max(u.left+r.left,t.left),t}),V(e,a));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function Q(e){return e.split("-")[1]}function K(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?u(o):null,i=o?Q(o):null,l=n.x+n.width/2-r.width/2,c=n.y+n.height/2-r.height/2;switch(a){case y:t={x:l,y:n.y-r.height};break;case E:t={x:l,y:n.y+n.height};break;case b:t={x:n.x+n.width,y:c};break;case C:t={x:n.x-r.width,y:c};break;default:t={x:n.x,y:n.y}}var s=a?h(a):null;if(null!=s){var f="y"===s?"height":"width";switch(i){case"start":t[s]=Math.floor(t[s])-Math.floor(n[f]/2-r[f]/2);break;case"end":t[s]=Math.floor(t[s])+Math.ceil(n[f]/2-r[f]/2)}}return t}function G(e,t){void 0===t&&(t={});var n=t,u=n.placement,r=void 0===u?e.placement:u,o=n.boundary,a=void 0===o?"clippingParents":o,i=n.rootBoundary,l=void 0===i?"viewport":i,s=n.elementContext,f=void 0===s?"popper":s,d=n.altBoundary,p=void 0!==d&&d,h=n.padding,m=void 0===h?0:h,C=v("number"!=typeof m?m:g(m,A)),w="popper"===f?"reference":"popper",F=e.elements.reference,x=e.rects.popper,D=e.elements[p?w:f],S=q(c(D)?D:D.contextElement||k(e.elements.popper),a,l),B=R(F),T=K({reference:B,element:x,strategy:"absolute",placement:r}),O=W(Object.assign({},x,{},T)),P="popper"===f?O:B,_={top:S.top-P.top+C.top,bottom:P.bottom-S.bottom+C.bottom,left:S.left-P.left+C.left,right:P.right-S.right+C.right},j=e.modifiersData.offset;if("popper"===f&&j){var N=j[r];Object.keys(_).forEach((function(e){var t=[b,E].indexOf(e)>=0?1:-1,n=[y,E].indexOf(e)>=0?"y":"x";_[e]+=N[n]*t}))}return _}var Y={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.fallbackPlacements,a=n.padding,i=n.boundary,l=n.rootBoundary,c=n.altBoundary,s=n.flipVariations,f=void 0===s||s,d=t.options.placement,p=u(d),h=o||(p===d||!f?[_(d)]:function(e){if("auto"===u(e))return[];var t=_(e);return[N(e),t,N(t)]}(d)),m=[d].concat(h).reduce((function(e,n){return e.concat("auto"===u(n)?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,l=n.flipVariations,c=Q(r),s=(c?l?w:w.filter((function(e){return Q(e)===c})):A).reduce((function(t,n){return t[n]=G(e,{placement:n,boundary:o,rootBoundary:a,padding:i})[u(n)],t}),{});return Object.keys(s).sort((function(e,t){return s[e]-s[t]}))}(t,{placement:n,boundary:i,rootBoundary:l,padding:a,flipVariations:f}):n)}),[]),v=t.rects.reference,g=t.rects.popper,F=new Map,x=!0,k=m[0],D=0;D=0,P=O?"width":"height",j=G(t,{placement:S,boundary:i,rootBoundary:l,altBoundary:c,padding:a}),R=O?T?b:C:T?E:y;v[P]>g[P]&&(R=_(R));var M=_(R),I=[j[B]<=0,j[R]<=0,j[M]<=0];if(I.every((function(e){return e}))){k=S,x=!1;break}F.set(S,I)}if(x)for(var L=function(e){var t=m.find((function(t){var n=F.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return k=t,"break"},z=f?3:1;z>0;z--){if("break"===L(z))break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function X(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function J(e){return[y,b,E,C].some((function(t){return e[t]>=0}))}var Z={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,u=t.rects.reference,r=t.rects.popper,o=t.modifiersData.preventOverflow,a=G(t,{elementContext:"reference"}),i=G(t,{altBoundary:!0}),l=X(a,u),c=X(i,r,o),s=J(l),f=J(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:s,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":s,"data-popper-escaped":f})}};var ee={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=K({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var te={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name,a=n.mainAxis,i=void 0===a||a,l=n.altAxis,c=void 0!==l&&l,s=n.boundary,f=n.rootBoundary,d=n.altBoundary,v=n.padding,g=n.tether,A=void 0===g||g,w=n.tetherOffset,F=void 0===w?0:w,x=G(t,{boundary:s,rootBoundary:f,padding:v,altBoundary:d}),k=u(t.placement),D=Q(t.placement),S=!D,B=h(k),T="x"===B?"y":"x",O=t.modifiersData.popperOffsets,P=t.rects.reference,_=t.rects.popper,j="function"==typeof F?F(Object.assign({},t.rects,{placement:t.placement})):F,N={x:0,y:0};if(i){var R="y"===B?y:C,M="y"===B?E:b,I="y"===B?"height":"width",L=O[B],z=O[B]+x[R],U=O[B]-x[M],H=A?-_[I]/2:0,$="start"===D?P[I]:_[I],W="start"===D?-_[I]:-P[I],V=t.elements.arrow,q=A&&V?r(V):{width:0,height:0},K=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Y=K[R],X=K[M],J=m(0,P[I],q[I]),Z=S?P[I]/2-H-J-Y-j:$-J-Y-j,ee=S?-P[I]/2+H+J+X+j:W+J+X+j,te=t.elements.arrow&&p(t.elements.arrow),ne=te?"y"===B?te.clientTop||0:te.clientLeft||0:0,ue=t.modifiersData.offset?t.modifiersData.offset[t.placement][B]:0,re=O[B]+Z-ue-ne,oe=O[B]+ee-ue,ae=m(A?Math.min(z,re):z,L,A?Math.max(U,oe):U);O[B]=ae,N[B]=ae-L}if(c){var ie="x"===B?y:C,le="x"===B?E:b,ce=O[T],se=m(ce+x[ie],ce,ce-x[le]);t.modifiersData.popperOffsets[T]=se,N[T]=se-ce}t.modifiersData[o]=N},requiresIfExists:["offset"]};function ne(e){var t=new Map,n=new Set,u=[];return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||function e(r){n.add(r.name),[].concat(r.requires||[],r.requiresIfExists||[]).forEach((function(u){if(!n.has(u)){var r=t.get(u);r&&e(r)}})),u.push(r)}(e)})),u}var ue={placement:"bottom",modifiers:[],strategy:"absolute"};function re(){for(var e=arguments.length,t=new Array(e),n=0;nT.length&&T.push(e)}function _(e,t,n){return null==e?0:function e(t,n,u,r){var i=typeof t;"undefined"!==i&&"boolean"!==i||(t=null);var l=!1;if(null===t)l=!0;else switch(i){case"string":case"number":l=!0;break;case"object":switch(t.$$typeof){case o:case a:l=!0}}if(l)return u(r,t,""===n?"."+j(t,0):n),1;if(l=0,n=""===n?".":n+":",Array.isArray(t))for(var c=0;c