UNPKG

pivot-chart

Version:

pivot table react component

15 lines (13 loc) 1.34 MB
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},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=120)}([function(e,t,n){"use strict";var r=function(e,t,n){return e.fields=t||[],e.fname=n,e};function i(e){return null==e?null:e.fname}function a(e){return null==e?null:e.fields}var o=function(e){throw Error(e)},s=function(e){var t,n,r,i=[],a=null,s=0,u=e.length,l="";function c(){i.push(l+e.substring(t,n)),l="",t=n+1}for(e+="",t=n=0;n<u;++n)if("\\"===(r=e[n]))l+=e.substring(t,n),l+=e.substring(++n,++n),t=n;else if(r===a)c(),a=null,s=-1;else{if(a)continue;t===s&&'"'===r?(t=n+1,a=r):t===s&&"'"===r?(t=n+1,a=r):"."!==r||s?"["===r?(n>t&&c(),s=t=n+1):"]"===r&&(s||o("Access path missing open bracket: "+e),s>0&&c(),s=0,t=n+1):n>t?c():t=n+1}return s&&o("Access path missing closing bracket: "+e),a&&o("Access path missing closing quote: "+e),n>t&&(n++,c()),i},u=Array.isArray,l=function(e){return e===Object(e)},c=function(e){return"string"==typeof e};function d(e){return u(e)?"["+e.map(d)+"]":l(e)||c(e)?JSON.stringify(e).replace("\u2028","\\u2028").replace("\u2029","\\u2029"):e}var f=function(e,t){var n=s(e),i="return _["+n.map(d).join("][")+"];";return r(Function("_",i),[e=1===n.length?n[0]:e],t||e)},h=[],p=f("id"),m=r((function(e){return e}),h,"identity"),g=r((function(){return 0}),h,"zero"),v=r((function(){return 1}),h,"one"),b=r((function(){return!0}),h,"true"),y=r((function(){return!1}),h,"false");function S(e,t,n){var r=[t].concat([].slice.call(n));console[e].apply(console,r)}var x=function(e,t){var n=e||0;return{level:function(e){return arguments.length?(n=+e,this):n},error:function(){return n>=1&&S(t||"error","ERROR",arguments),this},warn:function(){return n>=2&&S(t||"warn","WARN",arguments),this},info:function(){return n>=3&&S(t||"log","INFO",arguments),this},debug:function(){return n>=4&&S(t||"log","DEBUG",arguments),this}}};function k(...e){return e.reduce((e,t)=>{for(var n in t)if("signals"===n)e.signals=P(e.signals,t.signals);else{var r="legend"===n?{layout:1}:"style"===n||null;C(e,n,t[n],r)}return e},{})}function C(e,t,n,r){var i,a;if(l(n)&&!u(n))for(i in a=l(e[t])?e[t]:e[t]={},n)r&&(!0===r||r[i])?C(a,i,n[i]):a[i]=n[i];else e[t]=n}function P(e,t){if(null==e)return t;const n={},r=[];function i(e){n[e.name]||(n[e.name]=1,r.push(e))}return t.forEach(i),e.forEach(i),r}var E=function(e){return e[e.length-1]},w=function(e){return null==e||""===e?null:+e};function A(e){return function(t){return e*Math.exp(t)}}function O(e){return function(t){return Math.log(e*t)}}function _(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function M(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function T(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function N(e,t,n,r){var i=n(e[0]),a=n(E(e)),o=(a-i)*t;return[r(i-o),r(a-o)]}function F(e,t){return N(e,t,w,m)}function j(e,t){var n=Math.sign(e[0]);return N(e,t,O(n),A(n))}function I(e,t,n){return N(e,t,T(n),T(1/n))}function D(e,t,n){return N(e,t,_(n),M(n))}function R(e,t,n,r,i){var a=r(e[0]),o=r(E(e)),s=null!=t?r(t):(a+o)/2;return[i(s+(a-s)*n),i(s+(o-s)*n)]}function B(e,t,n){return R(e,t,n,w,m)}function L(e,t,n){var r=Math.sign(e[0]);return R(e,t,n,O(r),A(r))}function z(e,t,n,r){return R(e,t,n,T(r),T(1/r))}function $(e,t,n,r){return R(e,t,n,_(r),M(r))}function U(e){return 1+~~(new Date(e).getMonth()/3)}function H(e){return 1+~~(new Date(e).getUTCMonth()/3)}var W=function(e){return null!=e?u(e)?e:[e]:[]},q=function(e,t,n){var r,i=e[0],a=e[1];return a<i&&(r=a,a=i,i=r),(r=a-i)>=n-t?[t,n]:[i=Math.min(Math.max(i,t),n-r),i+r]},G=function(e){return"function"==typeof e},V=function(e,t){var n,i,o,u,l,c,f,h,p,m=[],g=(e=W(e)).map((function(e,t){return null==e?null:(m.push(t),G(e)?e:s(e).map(d).join("]["))})),v=m.length-1,b=W(t),y="var u,v;return ";if(v<0)return null;for(i=0;i<=v;++i)o=g[n=m[i]],G(o)?(u="(u=this."+(c="f"+n)+"(a))",l="(v=this."+c+"(b))",(f=f||{})[c]=o):(u="(u=a["+o+"])",l="(v=b["+o+"])"),c="((v=v instanceof Date?+v:v),(u=u instanceof Date?+u:u))","descending"!==b[n]?(p=1,h=-1):(p=-1,h=1),y+="("+u+"<"+l+"||u==null)&&v!=null?"+h+":(u>v||v==null)&&u!=null?"+p+":"+c+"!==u&&v===v?"+h+":v!==v&&u===u?"+p+(n<v?":":":0");return o=Function("a","b",y+";"),f&&(o=o.bind(f)),e=e.reduce((function(e,t){return G(t)?(a(t)||[]).forEach((function(t){e[t]=1})):null!=t&&(e[t+""]=1),e}),{}),r(o,Object.keys(e))},Y=function(e){return G(e)?e:function(){return e}},J=function(e,t){var n,r;function i(){t(r),n=r=null}return function(t){r=t,n&&clearTimeout(n),n=setTimeout(i,e)}},Q=function(e){for(var t,n,r=1,i=arguments.length;r<i;++r)for(n in t=arguments[r])e[n]=t[n];return e},X=function(e,t){var n,r,i,a,o=0;if(e&&(n=e.length))if(null==t){for(r=e[o];o<n&&(null==r||r!=r);r=e[++o]);for(i=a=r;o<n;++o)null!=(r=e[o])&&(r<i&&(i=r),r>a&&(a=r))}else{for(r=t(e[o]);o<n&&(null==r||r!=r);r=t(e[++o]));for(i=a=r;o<n;++o)null!=(r=t(e[o]))&&(r<i&&(i=r),r>a&&(a=r))}return[i,a]},K=function(e,t){var n,r,i,a,o,s=-1,u=e.length;if(null==t){for(;++s<u;)if(null!=(r=e[s])&&r>=r){n=i=r;break}if(s===u)return[-1,-1];for(a=o=s;++s<u;)null!=(r=e[s])&&(n>r&&(n=r,a=s),i<r&&(i=r,o=s))}else{for(;++s<u;)if(null!=(r=t(e[s],s,e))&&r>=r){n=i=r;break}if(s===u)return[-1,-1];for(a=o=s;++s<u;)null!=(r=t(e[s],s,e))&&(n>r&&(n=r,a=s),i<r&&(i=r,o=s))}return[a,o]};const Z=Object.prototype.hasOwnProperty;var ee=function(e,t){return Z.call(e,t)},te={},ne=function(e){var t,n,r={};function i(e){return ee(r,e)&&r[e]!==te}return t={size:0,empty:0,object:r,has:i,get:function(e){return i(e)?r[e]:void 0},set:function(e,n){return i(e)||(++t.size,r[e]===te&&--t.empty),r[e]=n,this},delete:function(e){return i(e)&&(--t.size,++t.empty,r[e]=te),this},clear:function(){t.size=t.empty=0,t.object=r={}},test:function(e){return arguments.length?(n=e,t):n},clean:function(){var e,i,a={},o=0;for(e in r)(i=r[e])===te||n&&n(i)||(a[e]=i,++o);t.size=o,t.empty=0,t.object=r=a}},e&&Object.keys(e).forEach((function(n){t.set(n,e[n])})),t},re=function(e,t,n,r,i,a){if(!n&&0!==n)return a;var o,s,u=e[0],l=E(e),c=+n;return l<u&&(o=u,u=l,l=o),(o=Math.abs(t-u))<(s=Math.abs(l-t))&&o<=c?r:s<=c?i:a},ie=function(e,t){var n=e.prototype=Object.create(t.prototype);return n.constructor=e,n},ae=function(e,t,n,r){var i,a=t[0],o=t[t.length-1];return a>o&&(i=a,a=o,o=i),r=void 0===r||r,((n=void 0===n||n)?a<=e:a<e)&&(r?e<=o:e<o)},oe=function(e){return"boolean"==typeof e},se=function(e){return"[object Date]"===Object.prototype.toString.call(e)},ue=function(e){return"number"==typeof e},le=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},ce=function(e,t){e&&(e=t?W(e).map((function(e){return e.replace(/\\(.)/g,"$1")})):W(e));var n=e&&e.length?Function("_","return ''+"+e.map((function(e){return"_["+(t?d(e):s(e).map(d).join("]["))+"]"})).join("+'|'+")+";"):function(){return""};return r(n,e,"key")},de=function(e,t){const n=e[0],r=E(e),i=+t;return i?1===i?r:n+i*(r-n):n},fe=function(e,t,n,r){var i=t.length,a=n.length;if(!a)return t;if(!i)return n;for(var o=r||new t.constructor(i+a),s=0,u=0,l=0;s<i&&u<a;++l)o[l]=e(t[s],n[u])>0?n[u++]:t[s++];for(;s<i;++s,++l)o[l]=t[s];for(;u<a;++u,++l)o[l]=n[u];return o},he=function(e,t){for(var n="";--t>=0;)n+=e;return n},pe=function(e,t,n,r){var i=n||" ",a=e+"",o=t-a.length;return o<=0?a:"left"===r?he(i,o)+a:"center"===r?he(i,~~(o/2))+a+he(i,Math.ceil(o/2)):a+he(i,o)},me=function(e){return e&&E(e)-e[0]||0},ge=function(e){return null==e||""===e?null:!(!e||"false"===e||"0"===e)&&!!e};function ve(e){return ue(e)?e:se(e)?e:Date.parse(e)}var be=function(e,t){return t=t||ve,null==e||""===e?null:t(e)},ye=function(e){return null==e||""===e?null:e+""},Se=function(e){for(var t={},n=0,r=e.length;n<r;++n)t[e[n]]=!0;return t},xe=function(e,t,n,r){var i=null!=r?r:"…",a=e+"",o=a.length,s=Math.max(0,t-i.length);return o<=t?a:"left"===n?i+a.slice(o-s):"center"===n?a.slice(0,Math.ceil(s/2))+i+a.slice(o-~~(s/2)):a.slice(0,s)+i},ke=function(e,t,n){if(e){var r,i=0,a=e.length;if(t)for(;i<a;++i)(r=t(e[i]))&&n(r,i,e);else e.forEach(n)}};n.d(t,"f",(function(){return r})),n.d(t,"h",(function(){return i})),n.d(t,"g",(function(){return a})),n.d(t,"w",(function(){return p})),n.d(t,"x",(function(){return m})),n.d(t,"jb",(function(){return g})),n.d(t,"N",(function(){return v})),n.d(t,"fb",(function(){return b})),n.d(t,"r",(function(){return y})),n.d(t,"K",(function(){return x})),n.d(t,"d",(function(){return 0})),n.d(t,"b",(function(){return 1})),n.d(t,"e",(function(){return 2})),n.d(t,"c",(function(){return 3})),n.d(t,"a",(function(){return 4})),n.d(t,"M",(function(){return k})),n.d(t,"ib",(function(){return C})),n.d(t,"P",(function(){return F})),n.d(t,"Q",(function(){return j})),n.d(t,"R",(function(){return I})),n.d(t,"S",(function(){return D})),n.d(t,"kb",(function(){return B})),n.d(t,"lb",(function(){return L})),n.d(t,"mb",(function(){return z})),n.d(t,"nb",(function(){return $})),n.d(t,"U",(function(){return U})),n.d(t,"gb",(function(){return H})),n.d(t,"i",(function(){return W})),n.d(t,"j",(function(){return q})),n.d(t,"k",(function(){return V})),n.d(t,"l",(function(){return Y})),n.d(t,"m",(function(){return J})),n.d(t,"n",(function(){return o})),n.d(t,"o",(function(){return Q})),n.d(t,"p",(function(){return X})),n.d(t,"q",(function(){return K})),n.d(t,"s",(function(){return ne})),n.d(t,"t",(function(){return f})),n.d(t,"u",(function(){return re})),n.d(t,"v",(function(){return ee})),n.d(t,"y",(function(){return ie})),n.d(t,"z",(function(){return ae})),n.d(t,"A",(function(){return u})),n.d(t,"B",(function(){return oe})),n.d(t,"C",(function(){return se})),n.d(t,"D",(function(){return G})),n.d(t,"E",(function(){return ue})),n.d(t,"F",(function(){return l})),n.d(t,"G",(function(){return le})),n.d(t,"H",(function(){return c})),n.d(t,"I",(function(){return ce})),n.d(t,"J",(function(){return de})),n.d(t,"L",(function(){return fe})),n.d(t,"O",(function(){return pe})),n.d(t,"T",(function(){return E})),n.d(t,"V",(function(){return he})),n.d(t,"W",(function(){return me})),n.d(t,"X",(function(){return s})),n.d(t,"Y",(function(){return d})),n.d(t,"Z",(function(){return ge})),n.d(t,"ab",(function(){return be})),n.d(t,"bb",(function(){return w})),n.d(t,"db",(function(){return ye})),n.d(t,"cb",(function(){return Se})),n.d(t,"eb",(function(){return xe})),n.d(t,"hb",(function(){return ke}))},function(e,t,n){"use strict";e.exports=n(71)},,function(e,t,n){"use strict";this&&this.__assign;Object.defineProperty(t,"__esModule",{value:!0});var r=n(75),i=n(78),a=n(43),o={sum:a.sum_unsafe,mean:a.mean,count:a.count};function s(e){var t=e.type,n=e.aggFunc,i=void 0===n?a.count:n,o=e.factTable,s=void 0===o?[]:o,u=e.dimensions,l=void 0===u?[]:u,c=e.measures,d=void 0===c?[]:c;switch(t){case"period":return new r.periodCube({aggFunc:i,factTable:s,dimensions:l,measures:d});case"moment":default:return new r.momentCube({aggFunc:i,factTable:s,dimensions:l,measures:d})}}t.createCube=s,t.default=function(e){var t=e.dimensions,n=e.measures,r=e.asFields,u=e.operator,l=e.dataSource,c=s({type:"moment",aggFunc:o[u]||a.count,dimensions:t,measures:n,factTable:l}),d=i.tree2Table({dimensions:t,measures:n,cube:c});return d.forEach((function(e){r.forEach((function(t,r){e[t]=e[n[r]]}))})),d},function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(43))},function(e,t){var n=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i,a,o,s){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,a,o,s],c=0;(u=new Error(t.replace(/%s/g,(function(){return l[c++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}},,function(e,t,n){"use strict";(function(e){var r=n(18),i=n(1),a=n.n(i),o=(n(55),n(56)),s=n(57),u=n(67),l=n(14),c=n.n(l);function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var f=function(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n},h=function(e){return"object"==typeof e&&e.constructor===Object},p=Object.freeze([]),m=Object.freeze({});function g(e){return"function"==typeof e}function v(e){return e.displayName||e.name||"Component"}function b(e){return e&&"string"==typeof e.styledComponentId}var y=void 0!==e&&(e.env.REACT_APP_SC_ATTR||e.env.SC_ATTR)||"data-styled",S="undefined"!=typeof window&&"HTMLElement"in window,x="boolean"==typeof SC_DISABLE_SPEEDY&&SC_DISABLE_SPEEDY||void 0!==e&&(e.env.REACT_APP_SC_DISABLE_SPEEDY||e.env.SC_DISABLE_SPEEDY)||!1,k=function(){return n.nc},C=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(y))return r}}(n),a=void 0!==i?i.nextSibling:null;r.setAttribute(y,"active"),r.setAttribute("data-styled-version","5.0.0");var o=k();return o&&r.setAttribute("nonce",o),n.insertBefore(r,a),r},P=function(){function e(e){var t=this.element=C(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var i=t[n];if(i.ownerNode===e)return i}throw new TypeError("CSSStyleSheet could not be found on HTMLStyleElement")}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),E=function(){function e(e){var t=this.element=C(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),w=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),A=function(){function e(e){this.groupSizes=new Uint32Array(256),this.length=256,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){var n=this.groupSizes,r=n.length,i=256<<(e/256|0);this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var a=r;a<i;a++)this.groupSizes[a]=0}for(var o=this.indexOfGroup(e+1),s=0,u=t.length;s<u;s++)this.tag.insertRule(o,t[s])&&(this.groupSizes[e]++,o++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var i=n;i<r;i++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,a=r;a<i;a++)t+=this.tag.getRule(a)+"\n";return t},e}(),O=new Map,_=new Map,M=1,T=function(e){if(O.has(e))return O.get(e);var t=M++;return O.set(e,t),_.set(t,e),t},N=function(e){return _.get(e)},F=function(e,t){t>=M&&(M=t+1),O.set(e,t),_.set(t,e)},j="style["+y+'][data-styled-version="5.0.0"]',I=/(?:\s*)?(.*?){((?:{[^}]*}|(?!{).*?)*)}/g,D=new RegExp("^"+y+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\]'),R=function(e,t,n){for(var r,i=n.split(","),a=0,o=i.length;a<o;a++)(r=i[a])&&e.registerName(t,r)},B=function(e,t){for(var n,r=t.innerHTML,i=[];n=I.exec(r);){var a=n[1].match(D);if(a){var o=0|parseInt(a[1],10),s=a[2];0!==o&&(F(s,o),R(e,s,n[2].split('"')[1]),e.getTag().insertRules(o,i)),i.length=0}else i.push(n[0].trim())}},L=S,z={isServer:!S,useCSSOMInjection:!x},$=function(){function e(e,t,n){void 0===e&&(e=z),void 0===t&&(t={}),this.options=d({},z,e),this.gs=t,this.names=new Map(n),!this.options.isServer&&S&&L&&(L=!1,function(e){for(var t=document.querySelectorAll(j),n=0,r=t.length;n<r;n++){var i=t[n];i&&"active"!==i.getAttribute(y)&&(B(e,i),i.parentNode&&i.parentNode.removeChild(i))}}(this))}e.registerId=function(e){return T(e)};var t=e.prototype;return t.reconstructWithOptions=function(t){return new e(d({},this.options,t),this.gs,this.names)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(t=this.options,n=t.isServer,r=t.useCSSOMInjection,i=t.target,e=n?new w(i):r?new P(i):new E(i),new A(e)));var e,t,n,r,i},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(T(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(T(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(T(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",i=0;i<n;i++){var a=N(i);if(void 0!==a){var o=e.names.get(a),s=t.getGroup(i);if(void 0!==o&&0!==s.length){var u=y+".g"+i+'[id="'+a+'"]',l="";void 0!==o&&o.forEach((function(e){e.length>0&&(l+=e+",")})),r+=""+s+u+'{content:"'+l+'"}\n'}}}return r}(this)},e}();function U(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/master/packages/styled-components/src/utils/errors.md#"+e+" for more information."+(n.length>0?" Additional arguments: "+n.join(", "):""))}var H=function(e,t){e|=0;for(var n=0,r=0|t.length;n<r;n++)e=(e<<5)+e+t.charCodeAt(n);return e},W=function(e){return H(5381,e)>>>0};var q=/^\s*\/\/.*$/gm;function G(e){var t,n,r,i=void 0===e?m:e,a=i.options,s=void 0===a?m:a,u=i.plugins,l=void 0===u?p:u,c=new o.a(s),d=[],f=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,i,a,o,s,u,l,c,d){switch(n){case 1:if(0===c&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===l)return r+"/*|*/";break;case 3:switch(l){case 102:case 112:return e(i[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){d.push(e)})),h=function(e,r,i){return r>0&&-1!==i.slice(0,r).indexOf(n)&&i.slice(r-n.length,r)!==n?"."+t:e};function g(e,i,a,o){void 0===o&&(o="&");var s=e.replace(q,""),u=i&&a?a+" "+i+" { "+s+" }":s;return t=o,n=i,r=new RegExp("\\"+n+"\\b","g"),c(a||!i?"":i,u)}return c.use([].concat(l,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(n)>0&&(i[0]=i[0].replace(r,h))},f,function(e){if(-2===e){var t=d;return d=[],t}}])),g.hash=l.reduce((function(e,t){return t.name||U(15),H(e,t.name)}),5381).toString(),g}var V=a.a.createContext(),Y=(V.Consumer,a.a.createContext()),J=(Y.Consumer,new $),Q=G();function X(){return Object(i.useContext)(V)||J}function K(){return Object(i.useContext)(Y)||Q}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,Q.apply(void 0,n.stringifyArgs))},this.toString=function(){return U(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 re=function(e){return null==e||!1===e||""===e},ie=function e(t,n){var r=[];return Object.keys(t).forEach((function(n){if(!re(t[n])){if(h(t[n]))return r.push.apply(r,e(t[n],n)),r;if(g(t[n]))return r.push(ne(n)+":",t[n],";"),r;r.push(ne(n)+": "+(i=n,null==(a=t[n])||"boolean"==typeof a||""===a?"":"number"!=typeof a||0===a||i in s.a?String(a).trim():a+"px")+";")}var i,a;return r})),n?[n+" {"].concat(r,["}"]):r};function ae(e,t,n){if(Array.isArray(e)){for(var r,i=[],a=0,o=e.length;a<o;a+=1)""!==(r=ae(e[a],t,n))&&(Array.isArray(r)?i.push.apply(i,r):i.push(r));return i}return re(e)?"":b(e)?"."+e.styledComponentId:g(e)?"function"!=typeof(s=e)||s.prototype&&s.prototype.isReactComponent||!t?e:ae(e(t),t,n):e instanceof Z?n?(e.inject(n),e.getName()):e:h(e)?ie(e):e.toString();var s}function oe(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return g(e)||h(e)?ae(f(p,[e].concat(n))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:ae(f(e,n))}var se=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},ue=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function le(e,t,n){var r=e[n];se(t)&&se(r)?ce(r,t):e[n]=t}function ce(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=0,a=n;i<a.length;i++){var o=a[i];if(se(o))for(var s in o)ue(s)&&le(e,o[s],s)}return e}var de=/(a)(d)/gi,fe=function(e){return String.fromCharCode(e+(e>25?39:97))};function he(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=fe(t%52)+n;return(fe(t%52)+n).replace(de,"$1-$2")}function pe(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(g(n)&&!b(n))return!1}return!0}var me=function(){function e(e,t){this.rules=e,this.staticRulesId="",this.isStatic=pe(e),this.componentId=t,this.baseHash=W(t),$.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId;if(this.isStatic&&!n.hash){if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))return this.staticRulesId;var i=ae(this.rules,e,t).join(""),a=he(H(this.baseHash,i.length)>>>0);if(!t.hasNameForId(r,a)){var o=n(i,"."+a,void 0,r);t.insertRules(r,a,o)}return this.staticRulesId=a,a}for(var s=this.rules.length,u=H(this.baseHash,n.hash),l="",c=0;c<s;c++){var d=this.rules[c];if("string"==typeof d)l+=d;else{var f=ae(d,e,t),h=Array.isArray(f)?f.join(""):f;u=H(u,h+c),l+=h}}var p=he(u>>>0);if(!t.hasNameForId(r,p)){var m=n(l,"."+p,void 0,r);t.insertRules(r,p,m)}return p},e}(),ge=function(e,t,n){return void 0===n&&(n=m),e.theme!==n.theme&&e.theme||t||n.theme},ve=/[[\].#*$><+~=|^:(),"'`-]+/g,be=/(^-|-$)/g;function ye(e){return e.replace(ve,"-").replace(be,"")}function Se(e){return"string"==typeof e&&!0}var xe=function(e){return he(W(e))};var ke=a.a.createContext();ke.Consumer;var Ce={};function Pe(e,t,n){var r=e.attrs,a=e.componentStyle,o=e.defaultProps,s=e.foldedComponentIds,l=e.styledComponentId,c=e.target;Object(i.useDebugValue)(l);var f=function(e,t,n){void 0===e&&(e=m);var r=d({},t,{theme:e}),i={};return n.forEach((function(e){var t,n,a,o=e;for(t in g(o)&&(o=o(r)),o)r[t]=i[t]="className"===t?(n=i[t],a=o[t],n&&a?n+" "+a:n||a):o[t]})),[r,i]}(ge(t,Object(i.useContext)(ke),o)||m,t,r),h=f[0],p=f[1],v=function(e,t,n,r){var a=X(),o=K(),s=e.isStatic&&!t?e.generateAndInjectStyles(m,a,o):e.generateAndInjectStyles(n,a,o);return Object(i.useDebugValue)(s),s}(a,r.length>0,h),b=n,y=p.as||t.as||c,S=Se(y),x=p!==t?d({},t,p):t,k=S||"as"in x||"forwardedAs"in x,C=k?{}:d({},x);if(k)for(var P in x)"forwardedAs"===P?C.as=x[P]:"as"===P||"forwardedAs"===P||S&&!Object(u.a)(P)||(C[P]=x[P]);return t.style&&p.style!==t.style&&(C.style=d({},t.style,p.style)),C.className=Array.prototype.concat(s,l,v!==l?v:null,t.className,p.className).filter(Boolean).join(" "),C.ref=b,Object(i.createElement)(y,C)}function Ee(e,t,n){var r,i=b(e),o=!Se(e),s=t.displayName,u=void 0===s?function(e){return Se(e)?"styled."+e:"Styled("+v(e)+")"}(e):s,l=t.componentId,f=void 0===l?function(e,t){var n="string"!=typeof e?"sc":ye(e);Ce[n]=(Ce[n]||0)+1;var r=n+"-"+xe(n+Ce[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):l,h=t.attrs,m=void 0===h?p:h,g=t.displayName&&t.componentId?ye(t.displayName)+"-"+t.componentId:t.componentId||f,y=i&&e.attrs?Array.prototype.concat(e.attrs,m).filter(Boolean):m,S=new me(i?e.componentStyle.rules.concat(n):n,g),x=function(e,t){return Pe(r,e,t)};return x.displayName=u,(r=a.a.forwardRef(x)).attrs=y,r.componentStyle=S,r.displayName=u,r.foldedComponentIds=i?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):p,r.styledComponentId=g,r.target=i?e.target:e,r.withComponent=function(e){var r=t.componentId,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(t,["componentId"]),a=r&&r+"-"+(Se(e)?e:ye(v(e)));return Ee(e,d({},i,{attrs:y,componentId:a}),n)},Object.defineProperty(r,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=i?ce({},e.defaultProps,t):t}}),r.toString=function(){return"."+r.styledComponentId},o&&c()(r,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,self:!0,styledComponentId:!0,target:!0,withComponent:!0}),r}var we=function(e){return function e(t,n,i){if(void 0===i&&(i=m),!Object(r.isValidElementType)(n))return U(1,String(n));var a=function(){return t(n,i,oe.apply(void 0,arguments))};return a.withConfig=function(r){return e(t,n,d({},i,r))},a.attrs=function(r){return e(t,n,d({},i,{attrs:Array.prototype.concat(i.attrs,r).filter(Boolean)}))},a}(Ee,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){we[e]=we(e)}));t.a=we}).call(this,n(32))},function(e,t,n){"use strict";e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var n,r="boolean"==typeof t.cycles&&t.cycles,i=t.cmp&&(n=t.cmp,function(e){return function(t,r){var i={key:t,value:e[t]},a={key:r,value:e[r]};return n(i,a)}}),a=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);var n,o;if(Array.isArray(t)){for(o="[",n=0;n<t.length;n++)n&&(o+=","),o+=e(t[n])||"null";return o+"]"}if(null===t)return"null";if(-1!==a.indexOf(t)){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var s=a.push(t)-1,u=Object.keys(t).sort(i&&i(t));for(o="",n=0;n<u.length;n++){var l=u[n],c=e(t[l]);c&&(o&&(o+=","),o+=JSON.stringify(l)+":"+c)}return a.splice(s,1),"{"+o+"}"}}(e)}},function(e,t,n){e.exports=n(106)()},function(e,t,n){var r=n(23),i=n(4),a=n(85),o=n(87),s=n(47),u=function(e,t,n){var l,c,d,f=e&u.F,h=e&u.G,p=e&u.S,m=e&u.P,g=e&u.B,v=e&u.W,b=h?i:i[t]||(i[t]={}),y=b.prototype,S=h?r:p?r[t]:(r[t]||{}).prototype;for(l in h&&(n=t),n)(c=!f&&S&&void 0!==S[l])&&s(b,l)||(d=c?S[l]:n[l],b[l]=h&&"function"!=typeof S[l]?n[l]:g&&c?a(d,r):v&&S[l]==d?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(d):m&&"function"==typeof d?a(Function.call,d):d,m&&((b.virtual||(b.virtual={}))[l]=d,e&u.R&&y&&!y[l]&&o(y,l,d)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t,n){e.exports=!n(25)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(72)},function(e,t,n){"use strict";(function(e){var r;n.d(t,"b",(function(){return ue}));var i,a,o="undefined"!=typeof Symbol,s="undefined"!=typeof Map,u="undefined"!=typeof Set,l=o?Symbol("immer-nothing"):((r={})["immer-nothing"]=!0,r),c=o?Symbol("immer-draftable"):"__$immer_draftable",d=o?Symbol("immer-state"):"__$immer_state",f=o?Symbol.iterator:"@@iterator",h=function(e,t){return(h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function p(e,t){function n(){this.constructor=e}h(e,t),e.prototype=(n.prototype=t.prototype,new n)}function m(e){return!!e&&!!e[d]}function g(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);return!t||t===Object.prototype}(e)||Array.isArray(e)||!!e[c]||!!e.constructor[c]||C(e)||P(e))}!function(e){e[e.Object=0]="Object",e[e.Array=1]="Array",e[e.Map=2]="Map",e[e.Set=3]="Set"}(i||(i={})),function(e){e[e.ProxyObject=0]="ProxyObject",e[e.ProxyArray=1]="ProxyArray",e[e.ES5Object=2]="ES5Object",e[e.ES5Array=3]="ES5Array",e[e.Map=4]="Map",e[e.Set=5]="Set"}(a||(a={}));var v="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function b(e,t){y(e)===i.Object?v(e).forEach((function(n){return t(n,e[n],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function y(e){if(e||_(),e[d])switch(e[d].type){case a.ES5Object:case a.ProxyObject:return i.Object;case a.ES5Array:case a.ProxyArray:return i.Array;case a.Map:return i.Map;case a.Set:return i.Set}return Array.isArray(e)?i.Array:C(e)?i.Map:P(e)?i.Set:i.Object}function S(e,t){return y(e)===i.Map?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function x(e,t){return y(e)===i.Map?e.get(t):e[t]}function k(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function C(e){return s&&e instanceof Map}function P(e){return u&&e instanceof Set}function E(e){return e.copy||e.base}function w(e,t){if(void 0===t&&(t=!1),Array.isArray(e))return e.slice();var n=Object.create(Object.getPrototypeOf(e));return v(e).forEach((function(r){if(r!==d){var i=Object.getOwnPropertyDescriptor(e,r),a=i.value;if(i.get){if(!t)throw new Error("Immer drafts cannot have computed properties");a=i.get.call(e)}i.enumerable?n[r]=a:Object.defineProperty(n,r,{value:a,writable:!0,configurable:!0})}})),n}function A(e,t){if(g(e)&&!m(e)&&!Object.isFrozen(e)){var n=y(e);n===i.Set?e.add=e.clear=e.delete=O:n===i.Map&&(e.set=e.clear=e.delete=O),Object.freeze(e),t&&b(e,(function(e,t){return A(t,!0)}))}}function O(){throw new Error("This object has been frozen and should not be mutated")}function _(){throw new Error("Illegal state, please file a bug")}var M=function(){function e(e,t){this.drafts=[],this.parent=e,this.immer=t,this.canAutoFreeze=!0}return e.prototype.usePatches=function(e){e&&(this.patches=[],this.inversePatches=[],this.patchListener=e)},e.prototype.revoke=function(){this.leave(),this.drafts.forEach(T),this.drafts=null},e.prototype.leave=function(){this===e.current&&(e.current=this.parent)},e.enter=function(t){var n=new e(e.current,t);return e.current=n,n},e}();function T(e){var t=e[d];t.type===a.ProxyObject||t.type===a.ProxyArray?t.revoke():t.revoked=!0}function N(e,t,n){var r=n.drafts[0],i=void 0!==t&&t!==r;if(e.willFinalize(n,t,i),i){if(r[d].modified)throw n.revoke(),new Error("An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.");g(t)&&I(e,t=F(e,t,n)),n.patches&&(n.patches.push({op:"replace",path:[],value:t}),n.inversePatches.push({op:"replace",path:[],value:r[d].base}))}else t=F(e,r,n,[]);return n.revoke(),n.patches&&n.patchListener(n.patches,n.inversePatches),t!==l?t:void 0}function F(e,t,n,r){var i=t[d];if(!i)return Object.isFrozen(t)?t:j(e,t,n);if(i.scope!==n)return t;if(!i.modified)return I(e,i.base,!0),i.base;if(!i.finalized){if(i.finalized=!0,j(e,i.draft,n,r),e.onDelete&&i.type!==a.Set)if(e.useProxies){b(i.assigned,(function(t,n){n||e.onDelete(i,t)}))}else{var o=i.base,s=i.copy;b(o,(function(t){S(s,t)||e.onDelete(i,t)}))}e.onCopy&&e.onCopy(i),e.autoFreeze&&n.canAutoFreeze&&A(i.copy,!1),r&&n.patches&&function(e,t,n,r){switch(e.type){case a.ProxyObject:case a.ES5Object:case a.Map:return function(e,t,n,r){var i=e.base,a=e.copy;b(e.assigned,(function(e,o){var s=x(i,e),u=x(a,e),l=o?S(i,e)?"replace":"add":"remove";if(s!==u||"replace"!==l){var c=t.concat(e);n.push("remove"===l?{op:l,path:c}:{op:l,path:c,value:u}),r.push("add"===l?{op:"remove",path:c}:"remove"===l?{op:"add",path:c,value:s}:{op:"replace",path:c,value:s})}}))}(e,t,n,r);case a.ES5Array:case a.ProxyArray:return function(e,t,n,r){var i,a,o=e.base,s=e.assigned,u=e.copy;u||_();u.length<o.length&&(o=(i=[u,o])[0],u=i[1],n=(a=[r,n])[0],r=a[1]);var l=u.length-o.length,c=0;for(;o[c]===u[c]&&c<o.length;)++c;var d=o.length;for(;d>c&&o[d-1]===u[d+l-1];)--d;for(var f=c;f<d;++f)if(s[f]&&u[f]!==o[f]){var h=t.concat([f]);n.push({op:"replace",path:h,value:u[f]}),r.push({op:"replace",path:h,value:o[f]})}var p=n.length;for(f=d+l-1;f>=d;--f){h=t.concat([f]);n[p+f-d]={op:"add",path:h,value:u[f]},r.push({op:"remove",path:h})}}(e,t,n,r);case a.Set:(function(e,t,n,r){var i=e.base,a=e.copy,o=0;i.forEach((function(e){if(!a.has(e)){var i=t.concat([o]);n.push({op:"remove",path:i,value:e}),r.unshift({op:"add",path:i,value:e})}o++})),o=0,a.forEach((function(e){if(!i.has(e)){var a=t.concat([o]);n.push({op:"add",path:a,value:e}),r.unshift({op:"remove",path:a,value:e})}o++}))})(e,t,n,r)}}(i,r,n.patches,n.inversePatches)}return i.copy}function j(e,t,n,r){var o=t[d];return o&&(o.type!==a.ES5Object&&o.type!==a.ES5Array||(o.copy=w(o.draft,!0)),t=o.copy),b(t,(function(a,s){return function e(t,n,r,a,o,s,u,l){if(u===o)throw Error("Immer forbids circular references");var c=!!a&&o===r,d=P(o);if(m(u)){var f=l&&c&&!d&&!S(a.assigned,s)?l.concat(s):void 0;u=F(t,u,n,f),function(e,t,n){switch(y(e)){case i.Map:e.set(t,n);break;case i.Set:e.delete(t),e.add(n);break;default:e[t]=n}}(o,s,u),m(u)&&(n.canAutoFreeze=!1)}else{if(c&&k(u,x(a.base,s)))return;g(u)&&!Object.isFrozen(u)&&(b(u,(function(i,o){return e(t,n,r,a,u,i,o,l)})),I(t,u))}c&&t.onAssign&&!d&&t.onAssign(a,s,u)}(e,n,t,o,t,a,s,r)})),t}function I(e,t,n){void 0===n&&(n=!1),e.autoFreeze&&!m(t)&&A(t,n)}var D={get:function(e,t){if(t===d)return e;var n=e.drafts;if(!e.modified&&S(n,t))return n[t];var r=E(e)[t];if(e.finalized||!g(r))return r;if(e.modified){if(r!==B(e.base,t))return r;n=e.copy}return n[t]=e.scope.immer.createProxy(r,e)},has:function(e,t){return t in E(e)},ownKeys:function(e){return Reflect.ownKeys(E(e))},set:function(e,t,n){if(!e.modified){var r=B(e.base,t);if(n?k(r,n)||n===e.drafts[t]:k(r,n)&&t in e.base)return!0;z(e),L(e)}return e.assigned[t]=!0,e.copy[t]=n,!0},deleteProperty:function(e,t){return void 0!==B(e.base,t)||t in e.base?(e.assigned[t]=!1,z(e),L(e)):e.assigned[t]&&delete e.assigned[t],e.copy&&delete e.copy[t],!0},getOwnPropertyDescriptor:function(e,t){var n=E(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&(r.writable=!0,r.configurable=e.type!==a.ProxyArray||"length"!==t),r},defineProperty:function(){throw new Error("Object.defineProperty() cannot be used on an Immer draft")},getPrototypeOf:function(e){return Object.getPrototypeOf(e.base)},setPrototypeOf:function(){throw new Error("Object.setPrototypeOf() cannot be used on an Immer draft")}},R={};function B(e,t){var n=e[d],r=Reflect.getOwnPropertyDescriptor(n?E(n):e,t);return r&&r.value}function L(e){if(!e.modified){if(e.modified=!0,e.type===a.ProxyObject||e.type===a.ProxyArray){var t=e.copy=w(e.base);b(e.drafts,(function(e,n){t[e]=n})),e.drafts=void 0}e.parent&&L(e.parent)}}function z(e){e.copy||(e.copy=w(e.base))}function $(e,t,n){e.drafts.forEach((function(e){e[d].finalizing=!0})),n?m(t)&&t[d].scope===e&&J(e.drafts):(e.patches&&function e(t){if(!t||"object"!=typeof t)return;var n=t[d];if(!n)return;var r=n.base,i=n.draft,o=n.assigned,s=n.type;if(s===a.ES5Object)b(i,(function(t){t!==d&&(void 0!==r[t]||S(r,t)?o[t]||e(i[t]):(o[t]=!0,W(n)))})),b(r,(function(e){void 0!==i[e]||S(i,e)||(o[e]=!1,W(n))}));else if(s===a.ES5Array&&X(n)){if(W(n),o.length=!0,i.length<r.length)for(var u=i.length;u<r.length;u++)o[u]=!1;else for(u=r.length;u<i.length;u++)o[u]=!0;for(u=0;u<i.length;u++)void 0===o[u]&&e(i[u])}}(e.drafts[0]),J(e.drafts))}function U(e,t){var n=Array.isArray(e),r=G(e);b(r,(function(t){!function(e,t,n){var r=V[t];r?r.enumerable=n:V[t]=r={configurable:!0,enumerable:n,get:function(){return function(e,t){Y(e);var n=H(E(e),t);if(e.finalizing)return n;if(n===H(e.base,t)&&g(n))return q(e),e.copy[t]=e.scope.immer.createProxy(n,e);return n}(this[d],t)},set:function(e){!function(e,t,n){if(Y(e),e.assigned[t]=!0,!e.modified){if(k(n,H(E(e),t)))return;W(e),q(e)}e.copy[t]=n}(this[d],t,e)}};Object.defineProperty(e,t,r)}(r,t,n||function(e,t){var n=Object.getOwnPropertyDescriptor(e,t);return!(!n||!n.enumerable)}(e,t))}));var i,o,s,u={type:n?a.ES5Array:a.ES5Object,scope:t?t.scope:M.current,modified:!1,finalizing:!1,finalized:!1,assigned:{},parent:t,base:e,draft:r,copy:null,revoked:!1,isManual:!1};return i=r,o=d,s=u,Object.defineProperty(i,o,{value:s,enumerable:!1,writable:!0}),r}function H(e,t){var n=e[d];if(n&&!n.finalizing){n.finalizing=!0;var r=e[t];return n.finalizing=!1,r}return e[t]}function W(e){e.modified||(e.modified=!0,e.parent&&W(e.parent))}function q(e){e.copy||(e.copy=G(e.base))}function G(e){var t=e&&e[d];if(t){t.finalizing=!0;var n=w(t.draft,!0);return t.finalizing=!1,n}return w(e)}b(D,(function(e,t){R[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),R.deleteProperty=function(e,t){if(isNaN(parseInt(t)))throw new Error("Immer only supports deleting array indices");return D.deleteProperty.call(this,e[0],t)},R.set=function(e,t,n){if("length"!==t&&isNaN(parseInt(t)))throw new Error("Immer only supports setting array indices and the 'length' property");return D.set.call(this,e[0],t,n,e[0])};var V={};function Y(e){if(!0===e.revoked)throw new Error("Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+JSON.stringify(E(e)))}function J(e){for(var t=e.length-1;t>=0;t--){var n=e[t][d];if(!n.modified)switch(n.type){case a.ES5Array:X(n)&&W(n);break;case a.ES5Object:Q(n)&&W(n)}}}function Q(e){for(var t=e.base,n=e.draft,r=Object.keys(n),i=r.length-1;i>=0;i--){var a=r[i],o=t[a];if(void 0===o&&!S(t,a))return!0;var s=n[a],u=s&&s[d];if(u?u.base!==o:!k(s,o))return!0}return r.length!==Object.keys(t).length}function X(e){var t=e.draft;if(t.length!==e.base.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);return!(!n||n.get)}var K=function(e){if(!e)throw new Error("Map is not polyfilled");function t(e,t){return this[d]={type:a.Map,parent:t,scope:t?t.scope:M.current,modified:!1,finalized:!1,copy:void 0,assigned:void 0,base:e,draft:this,isManual:!1,revoked:!1},this}p(t,e);var n=t.prototype;return Object.defineProperty(n,"size",{get:function(){return E(this[d]).size},enumerable:!0,configurable:!0}),n.has=function(e){return E(this[d]).has(e)},n.set=function(e,t){var n=this[d];return Y(n),E(n).get(e)!==t&&(Z(n),n.scope.immer.markChanged(n),n.assigned.set(e,!0),n.copy.set(e,t),n.assigned.set(e,!0)),this},n.delete=function(e){if(!this.has(e))return!1;var t=this[d];return Y(t),Z(t),t.scope.immer.markChanged(t),t.assigned.set(e,!1),t.copy.delete(e),!0},n.clear=function(){var e=this[d];Y(e),Z(e),e.scope.immer.markChanged(e),e.assigned=new Map;for(var t=0,n=E(e).keys();t<n.length;t++){var r=n[t];e.assigned.set(r,!1)}return e.copy.clear()},n.forEach=function(e,t){var n=this;E(this[d]).forEach((function(r,i,a){e.call(t,n.get(i),i,n)}))},n.get=function(e){var t=this[d];Y(t);var n=E(t).get(e);if(t.finalized||!g(n))return n;if(n!==t.base.get(e))return n;var r=t.scope.immer.createProxy(n,t);return Z(t),t.copy.set(e,r),r},n.keys=function(){return E(this[d]).keys()},n.values=function(){var e,t=this,n=this.keys();return(e={})[f]=function(){return t.values()},e.next=function(){var e=n.next();return e.done?e:{done:!1,value:t.get(e.value)}},e},n.entries=function(){var e,t=this,n=this.keys();return(e={})[f]=function(){return t.entries()},e.next=function(){var e=n.next();if(e.done)return e;var r=t.get(e.value);return{done:!1,value:[e.value,r]}},e},n[f]=function(){return this.entries()},t}(Map);function Z(e){e.copy||(e.assigned=new Map,e.copy=new Map(e.base))}var ee=function(e){if(!e)throw new Error("Set is not polyfilled");function t(e,t){return this[d]={type:a.Set,parent:t,scope:t?t.scope:M.current,modified:!1,finalized:!1,copy:void 0,base:e,draft:this,drafts:new Map,revoked:!1,isManual:!1},this}p(t,e);var n=t.prototype;return Object.defineProperty(n,"size",{get:function(){return E(this[d]).size},enumerable:!0,configurable:!0}),n.has=function(e){var t=this[d];return Y(t),t.copy?!!t.copy.has(e)||!(!t.drafts.has(e)||!t.copy.has(t.drafts.get(e))):t.base.has(e)},n.add=function(e){var t=this[d];return Y(t),t.copy?t.copy.add(e):t.base.has(e)||(te(t),t.scope.immer.markChanged(t),t.copy.add(e)),this},n.delete=function(e){if(!this.has(e))return!1;var t=this[d];return Y(t),te(t),t.scope.immer.markChanged(t),t.copy.delete(e)||!!t.drafts.has(e)&&t.copy.delete(t.drafts.get(e))},n.clear=function(){var e=this[d];return Y(e),te(e),e.scope.immer.markChanged(e),e.copy.clear()},n.values=function(){var e=this[d];return Y(e),te(e),e.copy.values()},n.entries=function(){var e=this[d];return Y(e),te(e),e.copy.entries()},n.keys=function(){return this.values()},n[f]=function(){return this.values()},n.forEach=function(e,t){for(var n=this.values(),r=n.next();!r.done;)e.call(t,r.value,r.value,this),r=n.next()},t}(Set);function te(e){e.copy||(e.copy=new Set,e.base.forEach((function(t){if(g(t)){var n=e.scope.immer.createProxy(t,e);e.drafts.set(t,n),e.copy.add(n)}else e.copy.add(t)})))}function ne(e,t){return t.forEach((function(t){var n=t.path,r=t.op;n.length||_();for(var a=e,o=0;o<n.length-1;o++)if(!(a=x(a,n[o]))||"object"!=typeof a)throw new Error("Cannot apply patch, path doesn't resolve: "+n.join("/"));var s=y(a),u=re(t.value),l=n[n.length-1];switch(r){case"replace":switch(s){case i.Map:return a.set(l,u);case i.Set:throw new Error('Sets cannot have "replace" patches.');default:return a[l]=u}case"add":switch(s){case i.Array:return a.splice(l,0,u);case i.Map:return a.set(l,u);case i.Set:return a.add(u);default:return a[l]=u}case"remove":switch(s){case i.Array:return a.splice(l,1);case i.Map:return a.delete(l);case i.Set:return a.delete(t.value);default:return delete a[l]}default:throw new Error("Unsupported patch operation: "+r)}})),e}function re(e){if(!e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(re);if(C(e))return new Map(Array.from(e.entries()).map((function(e){return[e[0],re(e[1])]})));var t=Object.create(Object.getPrototypeOf(e));for(var n in e)t[n]=re(e[n]);return t} /*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */function ie(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r}var ae={useProxies:"undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,autoFreeze:void 0===e&&"verifyMinified"===function(){}.name,onAssign:null,onDelete:null,onCopy:null},oe=new(function(){function e(e){var t=this;this.useProxies=!1,this.autoFreeze=!1,b(ae,(function(n,r){var i,a;t[n]=null!=(a=null===(i=e)||void 0===i?void 0:i[n])?a:r})),this.setUseProxies(this.useProxies),this.produce=this.produce.bind(this),this.produceWithPatches=this.produceWithPatches.bind(this)}return e.prototype.produce=function(e,t,n){var r,i=this;if("function"==typeof e&&"function"!=typeof t){var a=t;t=e;var o=this;return function(e){var n=arguments,r=this;void 0===e&&(e=a);for(var i=[],s=1;s<arguments.length;s++)i[s-1]=n[s];return o.produce(e,(function(e){return t.call.apply(t,ie([r,e],i))}))}}if("function"!=typeof t)throw new Error("The first or second argument to `produce` must be a function");if(void 0!==n&&"function"!=typeof n)throw new Error("The third argument to `produce` must be a function or undefined");if(g(e)){var s=M.enter(this),u=this.createProxy(e,void 0),c=!0;try{r=t(u),c=!1}finally{c?s.revoke():s.leave()}return"undefined"!=typeof Promise&&r instanceof Promise?r.then((function(e){return s.usePatches(n),N(i,e,s)}),(function(e){throw s.revoke(),e})):(s.usePatches(n),N(this,r,s))}if((r=t(e))!==l)return void 0===r&&(r=e),I(this,r,!0),r},e.prototype.produceWithPatches=function(e,t,n){var r,i,a=this;return"function"==typeof e?function(t){for(var n=arguments,r=[],i=1;i<arguments.length;i++)r[i-1]=n[i];return a.produceWithPatches(t,(function(t){return e.apply(void 0,ie([t],r))}))}:(n&&_(),[this.produce(e,t,(function(e,t){r=e,i=t})),r,i])},e.prototype.createDraft=function(e){if(!g(e))throw new Error("First argument to `createDraft` must be a plain object, an array, or an immerable object");var t=M.enter(this),n=this.createProxy(e,void 0);return n[d].isManual=!0,t.leave(),n},e.prototype.finishDraft=function(e,t){var n=e&&e[d];if(!n||!n.isManual)throw new Error("First argument to `finishDraft` must be a draft returned by `createDraft`");if(n.finalized)throw new Error("The given draft is already finalized");var r=n.scope;return r.usePatches(t),N(this,void 0,r)},e.prototype.setAutoFreeze=function(e){this.autoFreeze=e},e.prototype.setUseProxies=function(e){this.useProxies=e},e.prototype.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}return m(e)?ne(e,t):this.produce(e,(function(e){return ne(e,t.slice(n+1))}))},e.prototype.createProxy=function(e,t){var n=C(e)?function(e,t){return new K(e,t)}(e,t):P(e)?function(e,t){return new ee(e,t)}(e,t):this.useProxies?function(e,t){var n=Array.isArray(e),r={type:n?a.ProxyArray:a.ProxyObject,scope:t?t.scope:M.current,modified:!1,finalized:!1,assigned:{},parent:t,base:e,draft:null,drafts:{},copy:null,revoke:null,isManual:!1},i=r,o=D;n&&(i=[r],o=R);var s=Proxy.revocable(i,o),u=s.revoke,l=s.proxy;return r.draft=l,r.revoke=u,l}(e,t):U(e,t);return(t?t.scope:M.current).drafts.push(n),n},e.prototype.willFinalize=function(e,t,n){this.useProxies||$(e,t,n)},e.prototype.markChanged=function(e){this.useProxies?L(e):W(e)},e}()),se=oe.produce,ue=(oe.produceWithPatches.bind(oe),oe.setAutoFreeze.bind(oe));oe.setUseProxies.bind(oe),oe.applyPatches.bind(oe),oe.createDraft.bind(oe),oe.finishDraft.bind(oe);t.a=se}).call(this,n(32))},function(e,t,n){"use strict";var r=n(18),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return r.isMemo(e)?o:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0};var l=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var i=h(n);i&&i!==p&&e(t,i,r)}var o=c(n);d&&(o=o.concat(d(n)));for(var s=u(t),m=u(n),g=0;g<o.length;++g){var v=o[g];if(!(a[v]||r&&r[v]||m&&m[v]||s&&s[v])){var b=f(n,v);try{l(t,v,b)}catch(e){}}}}return t}},,,,function(e,t,n){"use strict";e.exports=n(79)},function(e,t,n){e.exports=n(102)},function(e,t,n){e.exports=n(112)},,,function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(93),i=n(52);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){(function(t,n)