From 8f7de9009c57aaef2dba9b234c02f2cdf57c7287 Mon Sep 17 00:00:00 2001 From: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com> Date: Wed, 8 Sep 2021 11:42:00 -0700 Subject: [PATCH] Release v0.9.8 Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com> --- .../base/console-deployment.yaml | 2 +- portal-ui/build/asset-manifest.json | 14 +- portal-ui/build/index.html | 2 +- portal-ui/build/static/js/2.732d4e60.chunk.js | 3 + .../static/js/2.732d4e60.chunk.js.LICENSE.txt | 280 ++++++++++++++++++ .../build/static/js/2.732d4e60.chunk.js.map | 1 + .../build/static/js/main.ab436313.chunk.js | 2 + .../static/js/main.ab436313.chunk.js.map | 1 + .../BasicDashboard/BasicDashboard.tsx | 20 +- 9 files changed, 307 insertions(+), 18 deletions(-) create mode 100644 portal-ui/build/static/js/2.732d4e60.chunk.js create mode 100644 portal-ui/build/static/js/2.732d4e60.chunk.js.LICENSE.txt create mode 100644 portal-ui/build/static/js/2.732d4e60.chunk.js.map create mode 100644 portal-ui/build/static/js/main.ab436313.chunk.js create mode 100644 portal-ui/build/static/js/main.ab436313.chunk.js.map diff --git a/k8s/operator-console/base/console-deployment.yaml b/k8s/operator-console/base/console-deployment.yaml index c1f50e2c07..4f982b3abe 100644 --- a/k8s/operator-console/base/console-deployment.yaml +++ b/k8s/operator-console/base/console-deployment.yaml @@ -15,7 +15,7 @@ spec: serviceAccountName: console-sa containers: - name: console - image: minio/console:v0.9.7 + image: minio/console:v0.9.8 imagePullPolicy: "IfNotPresent" env: - name: CONSOLE_OPERATOR_MODE diff --git a/portal-ui/build/asset-manifest.json b/portal-ui/build/asset-manifest.json index f6b3453c0d..333e0ac347 100644 --- a/portal-ui/build/asset-manifest.json +++ b/portal-ui/build/asset-manifest.json @@ -1,23 +1,23 @@ { "files": { "main.css": "./static/css/main.8cfac526.chunk.css", - "main.js": "./static/js/main.b5bda04a.chunk.js", - "main.js.map": "./static/js/main.b5bda04a.chunk.js.map", + "main.js": "./static/js/main.ab436313.chunk.js", + "main.js.map": "./static/js/main.ab436313.chunk.js.map", "runtime-main.js": "./static/js/runtime-main.3fe0c1ac.js", "runtime-main.js.map": "./static/js/runtime-main.3fe0c1ac.js.map", "static/css/2.c5a51b70.chunk.css": "./static/css/2.c5a51b70.chunk.css", - "static/js/2.258e3af7.chunk.js": "./static/js/2.258e3af7.chunk.js", - "static/js/2.258e3af7.chunk.js.map": "./static/js/2.258e3af7.chunk.js.map", + "static/js/2.732d4e60.chunk.js": "./static/js/2.732d4e60.chunk.js", + "static/js/2.732d4e60.chunk.js.map": "./static/js/2.732d4e60.chunk.js.map", "index.html": "./index.html", "static/css/2.c5a51b70.chunk.css.map": "./static/css/2.c5a51b70.chunk.css.map", "static/css/main.8cfac526.chunk.css.map": "./static/css/main.8cfac526.chunk.css.map", - "static/js/2.258e3af7.chunk.js.LICENSE.txt": "./static/js/2.258e3af7.chunk.js.LICENSE.txt" + "static/js/2.732d4e60.chunk.js.LICENSE.txt": "./static/js/2.732d4e60.chunk.js.LICENSE.txt" }, "entrypoints": [ "static/js/runtime-main.3fe0c1ac.js", "static/css/2.c5a51b70.chunk.css", - "static/js/2.258e3af7.chunk.js", + "static/js/2.732d4e60.chunk.js", "static/css/main.8cfac526.chunk.css", - "static/js/main.b5bda04a.chunk.js" + "static/js/main.ab436313.chunk.js" ] } \ No newline at end of file diff --git a/portal-ui/build/index.html b/portal-ui/build/index.html index cb978ff945..21eb9df1cd 100644 --- a/portal-ui/build/index.html +++ b/portal-ui/build/index.html @@ -1 +1 @@ -MinIO Console
\ No newline at end of file +MinIO Console
\ No newline at end of file diff --git a/portal-ui/build/static/js/2.732d4e60.chunk.js b/portal-ui/build/static/js/2.732d4e60.chunk.js new file mode 100644 index 0000000000..129d286aa7 --- /dev/null +++ b/portal-ui/build/static/js/2.732d4e60.chunk.js @@ -0,0 +1,3 @@ +/*! For license information please see 2.732d4e60.chunk.js.LICENSE.txt */ +(this["webpackJsonpportal-ui"]=this["webpackJsonpportal-ui"]||[]).push([[2],[function(e,t,n){"use strict";e.exports=n(450)},function(e,t,n){"use strict";e.exports=n(395)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(36);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function z(e,t){return e===t}function F(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?k:n,o=t.mapStateToPropsFactories,i=void 0===o?T:o,a=t.mapDispatchToPropsFactories,l=void 0===a?P:a,s=t.mergePropsFactories,c=void 0===s?R:s,u=t.selectorFactory,f=void 0===u?N:u;return function(e,t,n,o){void 0===o&&(o={});var a=o,s=a.pure,u=void 0===s||s,h=a.areStatesEqual,m=void 0===h?z:h,g=a.areOwnPropsEqual,v=void 0===g?C:g,y=a.areStatePropsEqual,b=void 0===y?C:y,x=a.areMergedPropsEqual,w=void 0===x?C:x,O=Object(p.a)(a,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),S=L(e,i,"mapStateToProps"),k=L(t,l,"mapDispatchToProps"),_=L(n,c,"mergeProps");return r(f,Object(d.a)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:S,initMapDispatchToProps:k,initMergeProps:_,pure:u,areStatesEqual:m,areOwnPropsEqual:v,areStatePropsEqual:b,areMergedPropsEqual:w},O))}}var W=F();var H,B=n(29);H=B.unstable_batchedUpdates,a=H},function(e,t,n){"use strict";function r(e){var t,n,o="";if("string"===typeof e||"number"===typeof e)o+=e;else if("object"===typeof e)if(Array.isArray(e))for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t,n){"use strict";n.d(t,"i",(function(){return p})),n.d(t,"h",(function(){return h})),n.d(t,"g",(function(){return m})),n.d(t,"f",(function(){return g})),n.d(t,"j",(function(){return y})),n.d(t,"c",(function(){return b})),n.d(t,"b",(function(){return x})),n.d(t,"d",(function(){return w})),n.d(t,"e",(function(){return O})),n.d(t,"a",(function(){return S}));var r=n(8),o=n.n(r),i=n(30),a=n.n(i),l=n(119),s=n.n(l),c=n(239),u=n.n(c),f=n(65),d=n.n(f),p=function(e){return 0===e?0:e>0?1:-1},h=function(e){return d()(e)&&e.indexOf("%")===e.length-1},m=function(e){return u()(e)&&!s()(e)},g=function(e){return m(e)||d()(e)},v=0,y=function(e){var t=++v;return"".concat(e||"").concat(t)},b=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!m(e)&&!d()(e))return r;if(h(e)){var i=e.indexOf("%");n=t*parseFloat(e.slice(0,i))/100}else n=+e;return s()(n)&&(n=r),o&&n>t&&(n=t),n},x=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},w=function(e){if(!a()(e))return!1;for(var t=e.length,n={},r=0;r1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var i=t.defaultTheme,l=t.withTheme,d=void 0!==l&&l,p=t.name,h=Object(o.a)(t,["defaultTheme","withTheme","name"]);var m=p,g=Object(c.a)(e,Object(r.a)({defaultTheme:i,Component:n,name:p||n.displayName,classNamePrefix:m},h)),v=a.a.forwardRef((function(e,t){e.classes;var l,s=e.innerRef,c=Object(o.a)(e,["classes","innerRef"]),h=g(Object(r.a)({},n.defaultProps,e)),m=c;return("string"===typeof p||d)&&(l=Object(f.a)()||i,p&&(m=Object(u.a)({theme:l,name:p,props:c})),d&&!m.theme&&(m.theme=l)),a.a.createElement(n,Object(r.a)({ref:s||t,classes:h},m))}));return s()(v,n),v}},p=n(114);t.a=function(e,t){return d(e,Object(r.a)({defaultTheme:p.a},t))}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.default=e.exports,e.exports.__esModule=!0},,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(154);var o=n(138);function i(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Object(o.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t,n){"use strict";n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return d}));var r=n(62),o=n.n(r),i=n(1);function a(e){return(a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var l=["viewBox","children"],s=["className","color","height","id","lang","max","media","method","min","name","style","target","type","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","points","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],c=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],u=function(e,t,n){if(!e||"function"===typeof e||"boolean"===typeof e)return null;var r=e;if(Object(i.isValidElement)(e)&&(r=e.props),!o()(r))return null;var a={};return Object.keys(r).forEach((function(e){(s.includes(e)||n&&l.includes(e)||t&&c.includes(e))&&(a[e]=r[e])})),a},f=function(e,t){if(!e||"function"===typeof e||"boolean"===typeof e)return null;var n=e;if(Object(i.isValidElement)(e)&&(n=e.props),!o()(n))return null;var r={};return Object.keys(n).forEach((function(e){c.includes(e)&&(r[e]=t||function(t){return n[e](n,t)})})),r},d=function(e,t,n){if(!o()(e)||"object"!==a(e))return null;var r=null;return Object.keys(e).forEach((function(o){var i=e[o];c.includes(o)&&"function"===typeof i&&(r||(r={}),r[o]=function(e,t,n){return function(r){return e(t,n,r),null}}(i,t,n))})),r}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(366);function o(e){if("string"!==typeof e)throw new Error(Object(r.a)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},function(e,t){e.exports=function(e){return null==e}},function(e,t,n){var r=n(100),o=n(62);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,n){"use strict";n.d(t,"w",(function(){return ye})),n.d(t,"m",(function(){return be})),n.d(t,"b",(function(){return xe})),n.d(t,"q",(function(){return we})),n.d(t,"p",(function(){return Oe})),n.d(t,"h",(function(){return Se})),n.d(t,"g",(function(){return ke})),n.d(t,"a",(function(){return _e})),n.d(t,"z",(function(){return je})),n.d(t,"n",(function(){return Ee})),n.d(t,"x",(function(){return Me})),n.d(t,"l",(function(){return Pe})),n.d(t,"t",(function(){return Te})),n.d(t,"d",(function(){return Ae})),n.d(t,"A",(function(){return Re})),n.d(t,"c",(function(){return Ie})),n.d(t,"e",(function(){return Ne})),n.d(t,"C",(function(){return Le})),n.d(t,"r",(function(){return We})),n.d(t,"u",(function(){return He})),n.d(t,"k",(function(){return Be})),n.d(t,"j",(function(){return Ve})),n.d(t,"i",(function(){return Ue})),n.d(t,"s",(function(){return Ge})),n.d(t,"o",(function(){return Ye})),n.d(t,"B",(function(){return Ke})),n.d(t,"f",(function(){return Xe})),n.d(t,"y",(function(){return Qe})),n.d(t,"v",(function(){return Ze}));var r=n(92),o=n.n(r),i=n(141),a=n.n(i),l=n(119),s=n.n(l),c=n(127),u=n.n(c),f=n(65),d=n.n(f),p=n(30),h=n.n(p),m=n(98),g=n.n(m),v=n(162),y=n.n(v),b=n(329),x=n.n(b),w=n(21),O=n.n(w),S=n(8),k=n.n(S),_=n(20),C=n.n(_),j=n(38),E=n.n(j);function M(e){return function(e){if(Array.isArray(e))return P(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return P(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return P(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=t?n.apply(void 0,o):e(t-a,D((function(){for(var e=arguments.length,t=new Array(e),r=0;re.length)&&(t=e.length);for(var n=0,r=new Array(t);nr&&(o=r,i=n),[o,i]}function q(e,t,n){if(e.lte(0))return new E.a(0);var r=B.getDigitCount(e.toNumber()),o=new E.a(10).pow(r),i=e.div(o),a=1!==r?.05:.1,l=new E.a(Math.ceil(i.div(a).toNumber())).add(n).mul(a).mul(o);return t?l:new E.a(Math.ceil(l))}function K(e,t,n){var r=1,o=new E.a(e);if(!o.isint()&&n){var i=Math.abs(e);i<1?(r=new E.a(10).pow(B.getDigitCount(e)-1),o=new E.a(Math.floor(o.div(r).toNumber())).mul(r)):i>1&&(o=new E.a(Math.floor(e)))}else 0===e?o=new E.a(Math.floor((t-1)/2)):n||(o=new E.a(Math.floor(e)));var a=Math.floor((t-1)/2);return F(z((function(e){return o.add(new E.a(e-a).mul(r)).toNumber()})),L)(0,t)}function X(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new E.a(0),tickMin:new E.a(0),tickMax:new E.a(0)};var i,a=q(new E.a(t).sub(e).div(n-1),r,o);i=e<=0&&t>=0?new E.a(0):(i=new E.a(e).add(t).div(2)).sub(new E.a(i).mod(a));var l=Math.ceil(i.sub(e).div(a).toNumber()),s=Math.ceil(new E.a(t).sub(i).div(a).toNumber()),c=l+s+1;return c>n?X(e,t,n,r,o+1):(c0?s+(n-c):s,l=t>0?l:l+(n-c)),{step:a,tickMin:i.sub(new E.a(l).mul(a)),tickMax:i.add(new E.a(s).mul(a))})}var Q=H((function(e){var t=U(e,2),n=t[0],r=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(o,2),l=$([n,r]),s=U(l,2),c=s[0],u=s[1];if(c===-1/0||u===1/0){var f=u===1/0?[c].concat(V(L(0,o-1).map((function(){return 1/0})))):[].concat(V(L(0,o-1).map((function(){return-1/0}))),[u]);return n>r?W(f):f}if(c===u)return K(c,o,i);var d=X(c,u,a,i),p=d.step,h=d.tickMin,m=d.tickMax,g=B.rangeStep(h,m.add(new E.a(.1).mul(p)),p);return n>r?W(g):g})),Z=(H((function(e){var t=U(e,2),n=t[0],r=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(o,2),l=$([n,r]),s=U(l,2),c=s[0],u=s[1];if(c===-1/0||u===1/0)return[n,r];if(c===u)return K(c,o,i);var f=q(new E.a(u).sub(c).div(a-1),i,0),d=F(z((function(e){return new E.a(c).add(new E.a(e).mul(f)).toNumber()})),L),p=d(0,a).filter((function(e){return e>=c&&e<=u}));return n>r?W(p):p})),H((function(e,t){var n=U(e,2),r=n[0],o=n[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=$([r,o]),l=U(a,2),s=l[0],c=l[1];if(s===-1/0||c===1/0)return[r,o];if(s===c)return[s];var u=Math.max(t,2),f=q(new E.a(c).sub(s).div(u-1),i,0),d=[].concat(V(B.rangeStep(new E.a(s),new E.a(c).sub(new E.a(.99).mul(f)),f)),[c]);return r>o?W(d):d}))),J=n(238),ee=n(63),te=n(205),ne=function(e,t){if((o=e.length)>1)for(var n,r,o,i=1,a=e[t[0]],l=a.length;i=0;)n[t]=t;return n};function le(e,t){return e[t]}function se(e){var t=[];return t.key=e,t}var ce=n(11),ue=n(161),fe=n(34),de=n(18);function pe(e){return function(e){if(Array.isArray(e))return he(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return he(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return he(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function he(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=-1,a=null!==(t=null===n||void 0===n?void 0:n.length)&&void 0!==t?t:0;if(a>1){if(o&&"angleAxis"===o.axisType&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var l=o.range,s=0;s0?r[s-1].coordinate:r[a-1].coordinate,u=r[s].coordinate,f=s>=a-1?r[0].coordinate:r[s+1].coordinate,d=void 0;if(Object(ce.i)(u-c)!==Object(ce.i)(f-u)){var p=[];if(Object(ce.i)(f-u)===Object(ce.i)(l[1]-l[0])){d=f;var h=u+l[1]-l[0];p[0]=Math.min(h,(h+c)/2),p[1]=Math.max(h,(h+c)/2)}else{d=c;var m=f+l[1]-l[0];p[0]=Math.min(u,(m+u)/2),p[1]=Math.max(u,(m+u)/2)}var g=[Math.min(u,(d+u)/2),Math.max(u,(d+u)/2)];if(e>g[0]&&e<=g[1]||e>=p[0]&&e<=p[1]){i=r[s].index;break}}else{var v=Math.min(c,f),y=Math.max(c,f);if(e>(v+u)/2&&e<=(y+u)/2){i=r[s].index;break}}}else for(var b=0;b0&&b(n[b].coordinate+n[b-1].coordinate)/2&&e<=(n[b].coordinate+n[b+1].coordinate)/2||b===a-1&&e>(n[b].coordinate+n[b-1].coordinate)/2){i=n[b].index;break}}else i=0;return i},we=function(e){var t,n=e.type.displayName,r=e.props,o=r.stroke,i=r.fill;switch(n){case"Line":t=o;break;case"Area":case"Radar":t=o&&"none"!==o?o:i;break;default:t=i}return t},Oe=function(e){var t,n=e.children,r=e.formatedGraphicalItems,o=e.legendWidth,i=e.legendContent,a=Object(fe.b)(n,ue.a.displayName);return a?(t=a.props&&a.props.payload?a.props&&a.props.payload:"children"===i?(r||[]).reduce((function(e,t){var n=t.item,r=t.props,o=r.sectors||r.data||[];return e.concat(o.map((function(e){return{type:a.props.iconType||n.props.legendType,value:e.name,color:e.fill,payload:e}})))}),[]):(r||[]).map((function(e){var t=e.item,n=t.props,r=n.dataKey,o=n.name,i=n.legendType;return{inactive:n.hide,dataKey:r,type:a.props.iconType||i||"square",color:we(t),value:o||r,payload:t.props}})),ge(ge(ge({},a.props),ue.a.getWithHeight(a,o)),{},{payload:t,item:a})):null},Se=function(e){var t=e.barSize,n=e.stackGroups,r=void 0===n?{}:n;if(!r)return{};for(var o={},i=Object.keys(r),a=0,l=i.length;a=0}));if(m&&m.length){var g=m[0].props.barSize,v=m[0].props[h];o[v]||(o[v]=[]),o[v].push({item:m[0],stackList:m.slice(1),barSize:C()(g)?t:g})}}return o},ke=function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,o=e.sizeList,i=void 0===o?[]:o,a=e.maxBarSize,l=i.length;if(l<1)return null;var s,c=Object(ce.c)(t,r,0,!0);if(i[0].barSize===+i[0].barSize){var u=!1,f=r/l,d=i.reduce((function(e,t){return e+t.barSize||0}),0);(d+=(l-1)*c)>=r&&(d-=(l-1)*c,c=0),d>=r&&f>0&&(u=!0,d=l*(f*=.9));var p={offset:((r-d)/2>>0)-c,size:0};s=i.reduce((function(e,t){var n=[].concat(pe(e),[{item:t.item,position:{offset:p.offset+p.size+c,size:u?f:t.barSize}}]);return p=n[n.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){n.push({item:e,position:p})})),n}),[])}else{var h=Object(ce.c)(n,r,0,!0);r-2*h-(l-1)*c<=0&&(c=0);var m=(r-2*h-(l-1)*c)/l;m>1&&(m>>=0);var g=a===+a?Math.min(m,a):m;s=i.reduce((function(e,t,n){var r=[].concat(pe(e),[{item:t.item,position:{offset:h+(m+c)*n+(m-g)/2,size:g}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){r.push({item:e,position:r[r.length-1].position})})),r}),[])}return s},_e=function(e,t,n,r){var o=n.children,i=n.width,a=n.margin,l=i-(a.left||0)-(a.right||0),s=Oe({children:o,legendWidth:l}),c=e;if(s){var u=r||{},f=s.align,d=s.verticalAlign,p=s.layout;("vertical"===p||"horizontal"===p&&"center"===d)&&Object(ce.g)(e[f])&&(c=ge(ge({},e),{},ve({},f,c[f]+(u.width||0)))),("horizontal"===p||"vertical"===p&&"center"===f)&&Object(ce.g)(e[d])&&(c=ge(ge({},e),{},ve({},d,c[d]+(u.height||0))))}return c},Ce=function(e,t,n,r){var o=t.props.children,i=Object(fe.a)(o,"ErrorBar").filter((function(e){var t=e.props.direction;return!(!C()(t)&&!C()(r))||r.indexOf(t)>=0}));if(i&&i.length){var a=i.map((function(e){return e.props.dataKey}));return e.reduce((function(e,t){var r=ye(t,n,0),o=h()(r)?[y()(r),g()(r)]:[r,r],i=a.reduce((function(e,n){var r=ye(t,n,0),i=o[0]-Math.abs(h()(r)?r[0]:r),a=o[1]+Math.abs(h()(r)?r[1]:r);return[Math.min(i,e[0]),Math.max(a,e[1])]}),[1/0,-1/0]);return[Math.min(i[0],e[0]),Math.max(i[1],e[1])]}),[1/0,-1/0])}return null},je=function(e,t,n,r){var o=t.map((function(t){return Ce(e,t,n,r)})).filter((function(e){return!C()(e)}));return o&&o.length?o.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]):null},Ee=function(e,t,n,r){var o=t.map((function(t){var o=t.props.dataKey;return"number"===n&&o&&Ce(e,t,o)||be(e,o,n,r)}));if("number"===n)return o.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]);var i={};return o.reduce((function(e,t){for(var n=0,r=t.length;n=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!n)?{scale:J.b(),realScaleType:"point"}:"category"===o?{scale:J.a(),realScaleType:"band"}:{scale:ee.a(),realScaleType:"linear"};if(d()(r)){var l="scale".concat(u()(r));return{scale:(te[l]||J.b)(),realScaleType:te[l]?l:"point"}}return O()(r)?{scale:r}:{scale:J.b(),realScaleType:"point"}},De=1e-4,Ie=function(e){var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,r=e.range(),o=Math.min(r[0],r[1])-De,i=Math.max(r[0],r[1])+De,a=e(t[0]),l=e(t[n-1]);(ai||li)&&e.domain([t[0],t[n-1]])}},Ne=function(e,t){if(!e)return null;for(var n=0,r=e.length;nr)&&(o[1]=r),o[0]>r&&(o[0]=r),o[1]=0?(e[a][n][0]=o,e[a][n][1]=o+l,o=e[a][n][1]):(e[a][n][0]=i,e[a][n][1]=i+l,i=e[a][n][1])}},expand:function(e,t){if((r=e.length)>0){for(var n,r,o,i=0,a=e[0].length;i0){for(var n,r=0,o=e[t[0]],i=o.length;r0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,i=0,a=1;a=0?(e[i][n][0]=o,e[i][n][1]=o+a,o=e[i][n][1]):(e[i][n][0]=0,e[i][n][1]=0)}}},Fe=function(e,t,n){var r=t.map((function(e){return e.props.dataKey}));return function(){var e=Object(ie.a)([]),t=ae,n=ne,r=le;function o(o){var i,a,l,s=Array.from(e.apply(this,arguments),se),c=s.length,u=-1,f=Object(re.a)(o);try{for(f.s();!(l=f.n()).done;){var d=l.value;for(i=0,++u;i=0?0:o<0?o:r}return n[0]},Ge=function(e,t){var n=e.props.stackId;if(Object(ce.f)(n)){var r=t[n];if(r&&r.items.length){for(var o=-1,i=0,a=r.items.length;i=0?r.stackedData[o]:null}}return null},Ye=function(e,t,n){return Object.keys(e).reduce((function(r,o){var i=e[o].stackedData.reduce((function(e,r){var o=r.slice(t,n+1).reduce((function(e,t){return[y()(t.concat([e[0]]).filter(ce.g)),g()(t.concat([e[1]]).filter(ce.g))]}),[1/0,-1/0]);return[Math.min(e[0],o[0]),Math.max(e[1],o[1])]}),[1/0,-1/0]);return[Math.min(i[0],r[0]),Math.max(i[1],r[1])]}),[1/0,-1/0]).map((function(e){return e===1/0||e===-1/0?0:e}))},$e=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,qe=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Ke=function(e,t,n){if(!h()(e))return t;var r=[];if(Object(ce.g)(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if($e.test(e[0])){var o=+$e.exec(e[0])[1];r[0]=t[0]-o}else O()(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if(Object(ce.g)(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(qe.test(e[1])){var i=+qe.exec(e[1])[1];r[1]=t[1]+i}else O()(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},Xe=function(e,t,n){if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var o=a()(t,(function(e){return e.coordinate})),i=1/0,l=1,s=o.length;l1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(Object(r.a)(3,e));var o=e.substring(t+1,e.length-1).split(",");return{type:n,values:o=o.map((function(e){return parseFloat(e)}))}}function a(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function l(e,t){var n=s(e),r=s(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function s(e){var t="hsl"===(e=i(e)).type?i(function(e){var t=(e=i(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,l=r*Math.min(o,1-o),s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-l*Math.max(Math.min(t-3,9-t,1),-1)},c="rgb",u=[Math.round(255*s(0)),Math.round(255*s(8)),Math.round(255*s(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),a({type:c,values:u})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return s(e)>.5?f(e,t):d(e,t)}function u(e,t){return e=i(e),t=o(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,a(e)}function f(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return a(e)}function d(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return a(e)}},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function u(e){var t=e.children,n=e.className,r=c(e,["children","className"]),i=a()("recharts-layer",n);return o.a.createElement("g",s({className:i},Object(l.c)(r,!0)),t)}},function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(396)},function(e,t){var n=Array.isArray;e.exports=n},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.default=e.exports,e.exports.__esModule=!0},,function(e,t){function n(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var b={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},x=function(e){return"string"===typeof e?e:e?e.displayName||e.name||"Component":""},w=function e(t,n){var r=[],o=[];return o=d()(n)?n.map((function(e){return x(e)})):[x(n)],h.a.Children.forEach(t,(function(t){Object(m.isFragment)(t)&&(r=r.concat(e(t.props.children,n)));var i=u()(t,"type.displayName")||u()(t,"type.name");-1!==o.indexOf(i)&&r.push(t)})),r},O=function(e,t){var n=w(e,t);return n&&n[0]},S=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!(!Object(g.g)(n)||n<=0||!Object(g.g)(r)||r<=0)},k=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],_=function(e){return e&&e.type&&s()(e.type)&&k.indexOf(e.type)>=0},C=function e(t,n){if(t===n)return!0;if(p.Children.count(t)!==p.Children.count(n))return!1;var r=p.Children.count(t);if(0===r)return!0;if(1===r)return j(d()(t)?t[0]:t,d()(n)?n[0]:n);for(var o=0;oe.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(e-(n.left||0)-(n.right||0)),Math.abs(t-(n.top||0)-(n.bottom||0)))/2},g=function(e,t,n,r,l){var f=e.width,d=e.height,p=e.startAngle,h=e.endAngle,g=Object(i.c)(e.cx,f,f/2),v=Object(i.c)(e.cy,d,d/2),y=m(f,d,n),b=Object(i.c)(e.innerRadius,y,0),x=Object(i.c)(e.outerRadius,y,.8*y);return Object.keys(t).reduce((function(e,n){var i,f=t[n],d=f.domain,m=f.reversed;if(o()(f.range))"angleAxis"===r?i=[p,h]:"radiusAxis"===r&&(i=[b,x]),m&&(i=[i[1],i[0]]);else{var y=u(i=f.range,2);p=y[0],h=y[1]}var w=Object(a.A)(f,l),O=w.realScaleType,S=w.scale;S.domain(d).range(i),Object(a.c)(S);var k=Object(a.u)(S,s(s({},f),{},{realScaleType:O})),_=s(s(s({},f),k),{},{range:i,radius:x,realScaleType:O,scale:S,cx:g,cy:v,innerRadius:b,outerRadius:x,startAngle:p,endAngle:h});return s(s({},e),{},c({},n,_))}),{})},v=function(e,t){var n=e.x,r=e.y,o=t.cx,i=t.cy,a=function(e,t){var n=e.x,r=e.y,o=t.x,i=t.y;return Math.sqrt(Math.pow(n-o,2)+Math.pow(r-i,2))}({x:n,y:r},{x:o,y:i});if(a<=0)return{radius:a};var l=(n-o)/a,s=Math.acos(l);return r>i&&(s=2*Math.PI-s),{radius:a,angle:p(s),angleInRadian:s}},y=function(e,t){var n=t.startAngle,r=t.endAngle,o=Math.floor(n/360),i=Math.floor(r/360);return e+360*Math.min(o,i)},b=function(e,t){var n=e.x,r=e.y,o=v({x:n,y:r},t),i=o.radius,a=o.angle,l=t.innerRadius,c=t.outerRadius;if(ic)return!1;if(0===i)return!0;var u,f=function(e){var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),o=Math.floor(n/360),i=Math.min(r,o);return{startAngle:t-360*i,endAngle:n-360*i}}(t),d=f.startAngle,p=f.endAngle,h=a;if(d<=p){for(;h>p;)h-=360;for(;h=d&&h<=p}else{for(;h>d;)h-=360;for(;h=p&&h<=d}return u?s(s({},t),{},{radius:i,angle:y(h,t)}):null}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function o(e,t){switch(arguments.length){case 0:break;case 1:"function"===typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"===typeof t?this.interpolator(t):this.range(t)}return this}n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}))},function(e,t,n){var r;!function(o){"use strict";var i,a=1e9,l={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},s=!0,c="[DecimalError] ",u=c+"Invalid argument: ",f=c+"Exponent out of range: ",d=Math.floor,p=Math.pow,h=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,m=1e7,g=9007199254740991,v=d(1286742750677284.5),y={};function b(e,t){var n,r,o,i,a,l,c,u,f=e.constructor,d=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),s?M(t,d):t;if(c=e.d,u=t.d,a=e.e,o=t.e,c=c.slice(),i=a-o){for(i<0?(r=c,i=-i,l=u.length):(r=u,o=a,l=c.length),i>(l=(a=Math.ceil(d/7))>l?a+1:l+1)&&(i=l,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((l=c.length)-(i=u.length)<0&&(i=l,r=u,u=c,c=r),n=0;i;)n=(c[--i]=c[i]+u[i]+n)/m|0,c[i]%=m;for(n&&(c.unshift(n),++o),l=c.length;0==c[--l];)c.pop();return t.d=c,t.e=o,s?M(t,d):t}function x(e,t,n){if(e!==~~e||en)throw Error(u+e)}function w(e){var t,n,r,o=e.length-1,i="",a=e[0];if(o>0){for(i+=a,t=1;te.e^i.s<0?1:-1;for(t=0,n=(r=i.d.length)<(o=e.d.length)?r:o;te.d[t]^i.s<0?1:-1;return r===o?0:r>o^i.s<0?1:-1},y.decimalPlaces=y.dp=function(){var e=this,t=e.d.length-1,n=7*(t-e.e);if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},y.dividedBy=y.div=function(e){return O(this,new this.constructor(e))},y.dividedToIntegerBy=y.idiv=function(e){var t=this.constructor;return M(O(this,new t(e),0,1),t.precision)},y.equals=y.eq=function(e){return!this.cmp(e)},y.exponent=function(){return k(this)},y.greaterThan=y.gt=function(e){return this.cmp(e)>0},y.greaterThanOrEqualTo=y.gte=function(e){return this.cmp(e)>=0},y.isInteger=y.isint=function(){return this.e>this.d.length-2},y.isNegative=y.isneg=function(){return this.s<0},y.isPositive=y.ispos=function(){return this.s>0},y.isZero=function(){return 0===this.s},y.lessThan=y.lt=function(e){return this.cmp(e)<0},y.lessThanOrEqualTo=y.lte=function(e){return this.cmp(e)<1},y.logarithm=y.log=function(e){var t,n=this,r=n.constructor,o=r.precision,a=o+5;if(void 0===e)e=new r(10);else if((e=new r(e)).s<1||e.eq(i))throw Error(c+"NaN");if(n.s<1)throw Error(c+(n.s?"NaN":"-Infinity"));return n.eq(i)?new r(0):(s=!1,t=O(j(n,a),j(e,a),a),s=!0,M(t,o))},y.minus=y.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?P(t,e):b(t,(e.s=-e.s,e))},y.modulo=y.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(!(e=new r(e)).s)throw Error(c+"NaN");return n.s?(s=!1,t=O(n,e,0,1).times(e),s=!0,n.minus(t)):M(new r(n),o)},y.naturalExponential=y.exp=function(){return S(this)},y.naturalLogarithm=y.ln=function(){return j(this)},y.negated=y.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},y.plus=y.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?b(t,e):P(t,(e.s=-e.s,e))},y.precision=y.sd=function(e){var t,n,r,o=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(u+e);if(t=k(o)+1,n=7*(r=o.d.length-1)+1,r=o.d[r]){for(;r%10==0;r/=10)n--;for(r=o.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},y.squareRoot=y.sqrt=function(){var e,t,n,r,o,i,a,l=this,u=l.constructor;if(l.s<1){if(!l.s)return new u(0);throw Error(c+"NaN")}for(e=k(l),s=!1,0==(o=Math.sqrt(+l))||o==1/0?(((t=w(l.d)).length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=d((e+1)/2)-(e<0||e%2),r=new u(t=o==1/0?"5e"+e:(t=o.toExponential()).slice(0,t.indexOf("e")+1)+e)):r=new u(o.toString()),o=a=(n=u.precision)+3;;)if(r=(i=r).plus(O(l,i,a+2)).times(.5),w(i.d).slice(0,a)===(t=w(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&"4999"==t){if(M(i,n+1,0),i.times(i).eq(l)){r=i;break}}else if("9999"!=t)break;a+=4}return s=!0,M(r,n)},y.times=y.mul=function(e){var t,n,r,o,i,a,l,c,u,f=this,d=f.constructor,p=f.d,h=(e=new d(e)).d;if(!f.s||!e.s)return new d(0);for(e.s*=f.s,n=f.e+e.e,(c=p.length)<(u=h.length)&&(i=p,p=h,h=i,a=c,c=u,u=a),i=[],r=a=c+u;r--;)i.push(0);for(r=u;--r>=0;){for(t=0,o=c+r;o>r;)l=i[o]+h[r]*p[o-r-1]+t,i[o--]=l%m|0,t=l/m|0;i[o]=(i[o]+t)%m|0}for(;!i[--a];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,s?M(e,d.precision):e},y.toDecimalPlaces=y.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(x(e,0,a),void 0===t?t=r.rounding:x(t,0,8),M(n,e+k(n)+1,t))},y.toExponential=function(e,t){var n,r=this,o=r.constructor;return void 0===e?n=T(r,!0):(x(e,0,a),void 0===t?t=o.rounding:x(t,0,8),n=T(r=M(new o(r),e+1,t),!0,e+1)),n},y.toFixed=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?T(o):(x(e,0,a),void 0===t?t=i.rounding:x(t,0,8),n=T((r=M(new i(o),e+k(o)+1,t)).abs(),!1,e+k(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)},y.toInteger=y.toint=function(){var e=this,t=e.constructor;return M(new t(e),k(e)+1,t.rounding)},y.toNumber=function(){return+this},y.toPower=y.pow=function(e){var t,n,r,o,a,l,u=this,f=u.constructor,p=+(e=new f(e));if(!e.s)return new f(i);if(!(u=new f(u)).s){if(e.s<1)throw Error(c+"Infinity");return u}if(u.eq(i))return u;if(r=f.precision,e.eq(i))return M(u,r);if(l=(t=e.e)>=(n=e.d.length-1),a=u.s,l){if((n=p<0?-p:p)<=g){for(o=new f(i),t=Math.ceil(r/7+4),s=!1;n%2&&A((o=o.times(u)).d,t),0!==(n=d(n/2));)A((u=u.times(u)).d,t);return s=!0,e.s<0?new f(i).div(o):M(o,r)}}else if(a<0)throw Error(c+"NaN");return a=a<0&&1&e.d[Math.max(t,n)]?-1:1,u.s=1,s=!1,o=e.times(j(u,r+12)),s=!0,(o=S(o)).s=a,o},y.toPrecision=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?r=T(o,(n=k(o))<=i.toExpNeg||n>=i.toExpPos):(x(e,1,a),void 0===t?t=i.rounding:x(t,0,8),r=T(o=M(new i(o),e,t),e<=(n=k(o))||n<=i.toExpNeg,e)),r},y.toSignificantDigits=y.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(x(e,1,a),void 0===t?t=n.rounding:x(t,0,8)),M(new n(this),e,t)},y.toString=y.valueOf=y.val=y.toJSON=function(){var e=this,t=k(e),n=e.constructor;return T(e,t<=n.toExpNeg||t>=n.toExpPos)};var O=function(){function e(e,t){var n,r=0,o=e.length;for(e=e.slice();o--;)n=e[o]*t+r,e[o]=n%m|0,r=n/m|0;return r&&e.unshift(r),e}function t(e,t,n,r){var o,i;if(n!=r)i=n>r?1:-1;else for(o=i=0;ot[o]?1:-1;break}return i}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]1;)e.shift()}return function(r,o,i,a){var l,s,u,f,d,p,h,g,v,y,b,x,w,O,S,_,C,j,E=r.constructor,P=r.s==o.s?1:-1,T=r.d,A=o.d;if(!r.s)return new E(r);if(!o.s)throw Error(c+"Division by zero");for(s=r.e-o.e,C=A.length,S=T.length,g=(h=new E(P)).d=[],u=0;A[u]==(T[u]||0);)++u;if(A[u]>(T[u]||0)&&--s,(x=null==i?i=E.precision:a?i+(k(r)-k(o))+1:i)<0)return new E(0);if(x=x/7+2|0,u=0,1==C)for(f=0,A=A[0],x++;(u1&&(A=e(A,f),T=e(T,f),C=A.length,S=T.length),O=C,y=(v=T.slice(0,C)).length;y=m/2&&++_;do{f=0,(l=t(A,v,C,y))<0?(b=v[0],C!=y&&(b=b*m+(v[1]||0)),(f=b/_|0)>1?(f>=m&&(f=m-1),1==(l=t(d=e(A,f),v,p=d.length,y=v.length))&&(f--,n(d,C16)throw Error(f+k(e));if(!e.s)return new d(i);for(null==t?(s=!1,l=h):l=t,a=new d(.03125);e.abs().gte(.1);)e=e.times(a),u+=5;for(l+=Math.log(p(2,u))/Math.LN10*2+5|0,n=r=o=new d(i),d.precision=l;;){if(r=M(r.times(e),l),n=n.times(++c),w((a=o.plus(O(r,n,l))).d).slice(0,l)===w(o.d).slice(0,l)){for(;u--;)o=M(o.times(o),l);return d.precision=h,null==t?(s=!0,M(o,h)):o}o=a}}function k(e){for(var t=7*e.e,n=e.d[0];n>=10;n/=10)t++;return t}function _(e,t,n){if(t>e.LN10.sd())throw s=!0,n&&(e.precision=n),Error(c+"LN10 precision limit exceeded");return M(new e(e.LN10),t)}function C(e){for(var t="";e--;)t+="0";return t}function j(e,t){var n,r,o,a,l,u,f,d,p,h=1,m=e,g=m.d,v=m.constructor,y=v.precision;if(m.s<1)throw Error(c+(m.s?"NaN":"-Infinity"));if(m.eq(i))return new v(0);if(null==t?(s=!1,d=y):d=t,m.eq(10))return null==t&&(s=!0),_(v,d);if(d+=10,v.precision=d,r=(n=w(g)).charAt(0),a=k(m),!(Math.abs(a)<15e14))return f=_(v,d+2,y).times(a+""),m=j(new v(r+"."+n.slice(1)),d-10).plus(f),v.precision=y,null==t?(s=!0,M(m,y)):m;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=w((m=m.times(e)).d)).charAt(0),h++;for(a=k(m),r>1?(m=new v("0."+n),a++):m=new v(r+"."+n.slice(1)),u=l=m=O(m.minus(i),m.plus(i),d),p=M(m.times(m),d),o=3;;){if(l=M(l.times(p),d),w((f=u.plus(O(l,new v(o),d))).d).slice(0,d)===w(u.d).slice(0,d))return u=u.times(2),0!==a&&(u=u.plus(_(v,d+2,y).times(a+""))),u=O(u,new v(h),d),v.precision=y,null==t?(s=!0,M(u,y)):u;u=f,o+=2}}function E(e,t){var n,r,o;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);)++r;for(o=t.length;48===t.charCodeAt(o-1);)--o;if(t=t.slice(r,o)){if(o-=r,n=n-r-1,e.e=d(n/7),e.d=[],r=(n+1)%7,n<0&&(r+=7),rv||e.e<-v))throw Error(f+n)}else e.s=0,e.e=0,e.d=[0];return e}function M(e,t,n){var r,o,i,a,l,c,u,h,g=e.d;for(a=1,i=g[0];i>=10;i/=10)a++;if((r=t-a)<0)r+=7,o=t,u=g[h=0];else{if((h=Math.ceil((r+1)/7))>=(i=g.length))return e;for(u=i=g[h],a=1;i>=10;i/=10)a++;o=(r%=7)-7+a}if(void 0!==n&&(l=u/(i=p(10,a-o-1))%10|0,c=t<0||void 0!==g[h+1]||u%i,c=n<4?(l||c)&&(0==n||n==(e.s<0?3:2)):l>5||5==l&&(4==n||c||6==n&&(r>0?o>0?u/p(10,a-o):0:g[h-1])%10&1||n==(e.s<0?8:7))),t<1||!g[0])return c?(i=k(e),g.length=1,t=t-i-1,g[0]=p(10,(7-t%7)%7),e.e=d(-t/7)||0):(g.length=1,g[0]=e.e=e.s=0),e;if(0==r?(g.length=h,i=1,h--):(g.length=h+1,i=p(10,7-r),g[h]=o>0?(u/p(10,a-o)%p(10,o)|0)*i:0),c)for(;;){if(0==h){(g[0]+=i)==m&&(g[0]=1,++e.e);break}if(g[h]+=i,g[h]!=m)break;g[h--]=0,i=1}for(r=g.length;0===g[--r];)g.pop();if(s&&(e.e>v||e.e<-v))throw Error(f+k(e));return e}function P(e,t){var n,r,o,i,a,l,c,u,f,d,p=e.constructor,h=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),s?M(t,h):t;if(c=e.d,d=t.d,r=t.e,u=e.e,c=c.slice(),a=u-r){for((f=a<0)?(n=c,a=-a,l=d.length):(n=d,r=u,l=c.length),a>(o=Math.max(Math.ceil(h/7),l)+2)&&(a=o,n.length=1),n.reverse(),o=a;o--;)n.push(0);n.reverse()}else{for((f=(o=c.length)<(l=d.length))&&(l=o),o=0;o0;--o)c[l++]=0;for(o=d.length;o>a;){if(c[--o]0?i=i.charAt(0)+"."+i.slice(1)+C(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+C(-o-1)+i,n&&(r=n-a)>0&&(i+=C(r))):o>=a?(i+=C(o+1-a),n&&(r=n-o-1)>0&&(i=i+"."+C(r))):((r=o+1)0&&(o+1===a&&(i+="."),i+=C(r))),e.s<0?"-"+i:i}function A(e,t){if(e.length>t)return e.length=t,!0}function R(e){if(!e||"object"!==typeof e)throw Error(c+"Object expected");var t,n,r,o=["precision",1,a,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t=o[t+1]&&r<=o[t+2]))throw Error(u+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(u+n+": "+r);this[n]=new this(r)}return this}(l=function e(t){var n,r,o;function i(e){var t=this;if(!(t instanceof i))return new i(e);if(t.constructor=i,e instanceof i)return t.s=e.s,t.e=e.e,void(t.d=(e=e.d)?e.slice():e);if("number"===typeof e){if(0*e!==0)throw Error(u+e);if(e>0)t.s=1;else{if(!(e<0))return t.s=0,t.e=0,void(t.d=[0]);e=-e,t.s=-1}return e===~~e&&e<1e7?(t.e=0,void(t.d=[e])):E(t,e.toString())}if("string"!==typeof e)throw Error(u+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!h.test(e))throw Error(u+e);E(t,e)}if(i.prototype=y,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=e,i.config=i.set=R,void 0===t&&(t={}),t)for(o=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,l=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return l=e.done,e},e:function(e){s=!0,a=e},f:function(){try{l||null==n.return||n.return()}finally{if(s)throw a}}}}},function(e,t,n){"use strict";t.a=function(e){return function(){return e}}},function(e,t,n){"use strict";n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return p})),n.d(t,"d",(function(){return h})),n.d(t,"b",(function(){return m}));var r=n(672),o=n(362),i=n(158),a=n(673);var l=n(128),s=[0,1];function c(e){return e}function u(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n});var n}function f(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return ot&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(h[0],h[e-1])),r=e>2?d:f,u=p=null,b}function b(t){return null==t||isNaN(t=+t)?n:(u||(u=r(h.map(e),m,g)))(e(v(t)))}return b.invert=function(n){return v(t((p||(p=r(m,h.map(e),i.a)))(n)))},b.domain=function(e){return arguments.length?(h=Array.from(e,l.a),y()):h.slice()},b.range=function(e){return arguments.length?(m=Array.from(e),y()):m.slice()},b.rangeRound=function(e){return m=Array.from(e),g=a.a,y()},b.clamp=function(e){return arguments.length?(v=!!e||c,y()):v!==c},b.interpolate=function(e){return arguments.length?(g=e,y()):g},b.unknown=function(e){return arguments.length?(n=e,b):n},function(n,r){return e=n,t=r,y()}}function m(){return h()(c,c)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(312);var o=n(188),i=n(313);function a(e,t){return Object(r.a)(e)||function(e,t){var n=e&&("undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(s){l=!0,o=s}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||Object(o.a)(e,t)||Object(i.a)()}},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.default=e.exports,e.exports.__esModule=!0},,function(e,t,n){var r=n(182).default;function o(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}e.exports=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var s=a?Object.getOwnPropertyDescriptor(e,l):null;s&&(s.get||s.set)?Object.defineProperty(i,l,s):i[l]=e[l]}return i.default=e,n&&n.set(e,i),i},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(152)},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(186);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Object(r.a)(e,t)}},function(e,t,n){"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return O})),n.d(t,"b",(function(){return C})),n.d(t,"c",(function(){return v})),n.d(t,"d",(function(){return A})),n.d(t,"e",(function(){return g})),n.d(t,"f",(function(){return _})),n.d(t,"g",(function(){return I})),n.d(t,"h",(function(){return R}));var r=n(51),o=n(1),i=n.n(o),a=(n(9),n(73)),l=n(240),s=n(79),c=n(4),u=n(241),f=n.n(u),d=(n(181),n(50)),p=n(105),h=n.n(p),m=function(e){var t=Object(l.a)();return t.displayName=e,t}("Router-History"),g=function(e){var t=Object(l.a)();return t.displayName=e,t}("Router"),v=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}Object(r.a)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return i.a.createElement(g.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},i.a.createElement(m.Provider,{children:this.props.children||null,value:this.props.history}))},t}(i.a.Component);i.a.Component;var y=function(e){function t(){return e.apply(this,arguments)||this}Object(r.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(i.a.Component);var b={},x=0;function w(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(b[e])return b[e];var t=f.a.compile(e);return x<1e4&&(b[e]=t,x++),t}(e)(t,{pretty:!0})}function O(e){var t=e.computedMatch,n=e.to,r=e.push,o=void 0!==r&&r;return i.a.createElement(g.Consumer,null,(function(e){e||Object(s.a)(!1);var r=e.history,l=e.staticContext,u=o?r.push:r.replace,f=Object(a.c)(t?"string"===typeof n?w(n,t.params):Object(c.a)({},n,{pathname:w(n.pathname,t.params)}):n);return l?(u(f),null):i.a.createElement(y,{onMount:function(){u(f)},onUpdate:function(e,t){var n=Object(a.c)(t.to);Object(a.f)(n,Object(c.a)({},f,{key:n.key}))||u(f)},to:n})}))}var S={},k=0;function _(e,t){void 0===t&&(t={}),("string"===typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,o=n.exact,i=void 0!==o&&o,a=n.strict,l=void 0!==a&&a,s=n.sensitive,c=void 0!==s&&s;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=S[n]||(S[n]={});if(r[e])return r[e];var o=[],i={regexp:f()(e,o,t),keys:o};return k<1e4&&(r[e]=i,k++),i}(n,{end:i,strict:l,sensitive:c}),o=r.regexp,a=r.keys,s=o.exec(e);if(!s)return null;var u=s[0],d=s.slice(1),p=e===u;return i&&!p?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:p,params:a.reduce((function(e,t,n){return e[t.name]=d[n],e}),{})}}),null)}var C=function(e){function t(){return e.apply(this,arguments)||this}return Object(r.a)(t,e),t.prototype.render=function(){var e=this;return i.a.createElement(g.Consumer,null,(function(t){t||Object(s.a)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?_(n.pathname,e.props):t.match,o=Object(c.a)({},t,{location:n,match:r}),a=e.props,l=a.children,u=a.component,f=a.render;return Array.isArray(l)&&0===l.length&&(l=null),i.a.createElement(g.Provider,{value:o},o.match?l?"function"===typeof l?l(o):l:u?i.a.createElement(u,o):f?f(o):null:"function"===typeof l?l(o):null)}))},t}(i.a.Component);function j(e){return"/"===e.charAt(0)?e:"/"+e}function E(e,t){if(!e)return t;var n=j(e);return 0!==t.pathname.indexOf(n)?t:Object(c.a)({},t,{pathname:t.pathname.substr(n.length)})}function M(e){return"string"===typeof e?e:Object(a.e)(e)}function P(e){return function(){Object(s.a)(!1)}}function T(){}i.a.Component;var A=function(e){function t(){return e.apply(this,arguments)||this}return Object(r.a)(t,e),t.prototype.render=function(){var e=this;return i.a.createElement(g.Consumer,null,(function(t){t||Object(s.a)(!1);var n,r,o=e.props.location||t.location;return i.a.Children.forEach(e.props.children,(function(e){if(null==r&&i.a.isValidElement(e)){n=e;var a=e.props.path||e.props.from;r=a?_(o.pathname,Object(c.a)({},e.props,{path:a})):t.match}})),r?i.a.cloneElement(n,{location:o,computedMatch:r}):null}))},t}(i.a.Component);function R(e){var t="withRouter("+(e.displayName||e.name)+")",n=function(t){var n=t.wrappedComponentRef,r=Object(d.a)(t,["wrappedComponentRef"]);return i.a.createElement(g.Consumer,null,(function(t){return t||Object(s.a)(!1),i.a.createElement(e,Object(c.a)({},r,t,{ref:n}))}))};return n.displayName=t,n.WrappedComponent=e,h()(n,e)}var D=i.a.useContext;function I(){return D(g).location}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(4),o=n(1),i=n.n(o),a=n(365);function l(e,t){var n=function(t,n){return i.a.createElement(a.a,Object(r.a)({ref:n},t),e)};return n.muiName=a.a.muiName,i.a.memo(i.a.forwardRef(n))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(1),o="undefined"!==typeof window?r.useLayoutEffect:r.useEffect;function i(e){var t=r.useRef(e);return o((function(){t.current=e})),r.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(245),o=(n(1),n(114));function i(){return Object(r.a)()||o.a}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i}));var r=n(10),o={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},i={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function a(e){return"".concat(Math.round(e),"ms")}t.a={easing:o,duration:i,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,l=void 0===n?i.standard:n,s=t.easing,c=void 0===s?o.easeInOut:s,u=t.delay,f=void 0===u?0:u;Object(r.a)(t,["duration","easing","delay"]);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"===typeof l?l:a(l)," ").concat(c," ").concat("string"===typeof f?f:a(f))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var r=n(1),o=(n(9),Object(r.createContext)(null)),i=function(e){var t=e.utils,n=e.children,i=e.locale,a=e.libInstance,l=Object(r.useMemo)((function(){return new t({locale:i,instance:a})}),[t,a,i]);return Object(r.createElement)(o.Provider,{value:l,children:n})};function a(){var e=Object(r.useContext)(o);return function(e){if(!e)throw new Error("Can not find utils in context. You either a) forgot to wrap your component tree in MuiPickersUtilsProvider; or b) mixed named and direct file imports. Recommendation: use named imports from the module index.")}(e),e}},function(e,t,n){var r,o;e.exports=(r=n(113),o=n(1),function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return 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 o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));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=6)}([function(e,t,n){e.exports=n(3)()},function(e,t){e.exports=r},function(e,t){e.exports=o},function(e,t,n){"use strict";var r=n(4);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){var r,o,i,a,l;a=this,l=function(e){var t=!1,n=!1,r=!1,o=!1,i="escape years months weeks days hours minutes seconds milliseconds general".split(" "),a=[{type:"seconds",targets:[{type:"minutes",value:60},{type:"hours",value:3600},{type:"days",value:86400},{type:"weeks",value:604800},{type:"months",value:2678400},{type:"years",value:31536e3}]},{type:"minutes",targets:[{type:"hours",value:60},{type:"days",value:1440},{type:"weeks",value:10080},{type:"months",value:44640},{type:"years",value:525600}]},{type:"hours",targets:[{type:"days",value:24},{type:"weeks",value:168},{type:"months",value:744},{type:"years",value:8760}]},{type:"days",targets:[{type:"weeks",value:7},{type:"months",value:31},{type:"years",value:365}]},{type:"months",targets:[{type:"years",value:12}]}];function l(e,t){return!(t.length>e.length)&&-1!==e.indexOf(t)}function s(e){for(var t="";e;)t+="0",e-=1;return t}function c(e,t){var n=e+"+"+y(C(t).sort(),(function(e){return e+":"+t[e]})).join(",");return c.cache[n]||(c.cache[n]=Intl.NumberFormat(e,t)),c.cache[n]}function u(e,t,i){var a,l,f,d=t.useToLocaleString,p=t.useGrouping,h=p&&t.grouping.slice(),m=t.maximumSignificantDigits,g=t.minimumIntegerDigits||1,v=t.fractionDigits||0,y=t.groupingSeparator,b=t.decimalSeparator;if(d&&i){var x,w={minimumIntegerDigits:g,useGrouping:p};return v&&(w.maximumFractionDigits=v,w.minimumFractionDigits=v),m&&e>0&&(w.maximumSignificantDigits=m),r?(o||((x=_({},t)).useGrouping=!1,x.decimalSeparator=".",e=parseFloat(u(e,x),10)),c(i,w).format(e)):(n||((x=_({},t)).useGrouping=!1,x.decimalSeparator=".",e=parseFloat(u(e,x),10)),e.toLocaleString(i,w))}var O=(m?e.toPrecision(m+1):e.toFixed(v+1)).split("e");f=O[1]||"",l=(O=O[0].split("."))[1]||"";var S=(a=O[0]||"").length,k=l.length,C=S+k,j=a+l;(m&&C===m+1||!m&&k===v+1)&&((j=function(e){for(var t=e.split("").reverse(),n=0,r=!0;r&&n0?l.length<=E?(a+=l+=s(E-l.length),l=""):(a+=l.slice(0,E),l=l.slice(E)):E<0&&(l=s(Math.abs(E)-a.length)+a+l,a="0"),m||((l=l.slice(0,v)).lengtht.label.length?-1:e.label.length0,K=q?o.precision:0,X=K,Q=o.minValue,Z=!1,J=o.maxValue,ee=!1,te=o.useToLocaleString,ne=o.groupingSeparator,re=o.decimalSeparator,oe=o.grouping;te=te&&(t||r);var ie=o.trim;h(ie)&&(ie=ie.join(" ")),null===ie&&(z||J||q)&&(ie="all"),null!==ie&&!0!==ie&&"left"!==ie&&"right"!==ie||(ie="large"),!1===ie&&(ie="");var ae=function(e){return e.test(ie)},le=/small/,se=/both/,ce=/mid/,ue=/^all|[^sm]all/,fe=/final/,de=z>0||j([/large/,se,ue],ae),pe=j([le,se,ue],ae),he=j([ce,ue],ae),me=j([fe,ue],ae),ge=y(I.match(D),(function(e,t){var n=R(e);return"*"===e.slice(0,1)&&(e=e.slice(1),"escape"!==n&&"general"!==n&&F.push(n)),{index:t,length:e.length,text:"",token:"escape"===n?e.replace(A.escape,"$1"):e,type:"escape"===n||"general"===n?null:n}})),ve={index:0,length:0,token:"",text:"",type:null},ye=[];B&&ge.reverse(),v(ge,(function(e){if(e.type)return(ve.type||ve.text)&&ye.push(ve),void(ve=e);B?ve.text=e.token+ve.text:ve.text+=e.token})),(ve.type||ve.text)&&ye.push(ve),B&&ye.reverse();var be=O(i,w(x(b(ye,"type"))));if(!be.length)return b(ye,"text").join("");be=y(be,(function(e,t){var n,r=t+1===be.length,i=!t;n="years"===e||"months"===e?P.as(e):M.as(e);var a=Math.floor(n),l=n-a,s=g(ye,(function(t){return e===t.type}));return i&&J&&n>J&&(ee=!0),r&&Q&&Math.abs(o.duration.as(e))1&&(G=!0),M.subtract(a,e),P.subtract(a,e),{rawValue:n,wholeValue:a,decimalValue:r?l:0,isSmallest:r,isLargest:i,type:e,tokenLength:s.length}}));var xe=$?Math.floor:Math.round,we=function(e,t){var n=Math.pow(10,t);return xe(e*n)/n},Oe=!1,Se=!1,ke=function(e,t){var n={useGrouping:Y,groupingSeparator:ne,decimalSeparator:re,grouping:oe,useToLocaleString:te};return q&&(K<=0?(e.rawValue=0,e.wholeValue=0,e.decimalValue=0):(n.maximumSignificantDigits=K,e.significantDigits=K)),ee&&!Se&&(e.isLargest?(e.wholeValue=J,e.decimalValue=0):(e.wholeValue=0,e.decimalValue=0)),Z&&!Se&&(e.isSmallest?(e.wholeValue=Q,e.decimalValue=0):(e.wholeValue=0,e.decimalValue=0)),e.isSmallest||e.significantDigits&&e.significantDigits-e.wholeValue.toString().length<=0?U<0?e.value=we(e.wholeValue,U):0===U?e.value=xe(e.wholeValue+e.decimalValue):q?(e.value=$?we(e.rawValue,K-e.wholeValue.toString().length):e.rawValue,e.wholeValue&&(K-=e.wholeValue.toString().length)):(n.fractionDigits=U,e.value=$?e.wholeValue+we(e.decimalValue,U):e.wholeValue+e.decimalValue):q&&e.wholeValue?(e.value=Math.round(we(e.wholeValue,e.significantDigits-e.wholeValue.toString().length)),K-=e.wholeValue.toString().length):e.value=e.wholeValue,e.tokenLength>1&&(G||Oe)&&(n.minimumIntegerDigits=e.tokenLength,Se&&n.maximumSignificantDigits0||""===ie||g(F,e.type)||g(N,e.type))&&(Oe=!0),e.formattedValue=u(e.value,n,H),n.useGrouping=!1,n.decimalSeparator=".",e.formattedValueEn=u(e.value,n,"en"),2===e.tokenLength&&"milliseconds"===e.type&&(e.formattedValueMS=u(e.value,{minimumIntegerDigits:3,useGrouping:!1},"en").slice(0,2)),e};if((be=x(be=y(be,ke))).length>1){var _e=function(e){return g(be,(function(t){return t.type===e}))},Ce=function(e){var t=_e(e.type);t&&v(e.targets,(function(e){var n=_e(e.type);n&&parseInt(t.formattedValueEn,10)===e.value&&(t.rawValue=0,t.wholeValue=0,t.decimalValue=0,n.rawValue+=1,n.wholeValue+=1,n.decimalValue=0,n.formattedValueEn=n.wholeValue.toString(),Se=!0)}))};v(a,Ce)}return Se&&(Oe=!1,K=X,be=x(be=y(be,ke))),!N||ee&&!o.trim?(de&&(be=S(be,(function(e){return!e.isSmallest&&!e.wholeValue&&!g(F,e.type)}))),z&&be.length&&(be=be.slice(0,z)),pe&&be.length>1&&(be=k(be,(function(e){return!e.wholeValue&&!g(F,e.type)&&!e.isLargest}))),he&&(be=x(be=y(be,(function(e,t){return t>0&&t ",ee=!1,Z=!1),E&&(t.value>0||""===ie||g(F,t.type)||g(N,t.type))&&(n+="-",E=!1),"milliseconds"===e.type&&t.formattedValueMS?n+=t.formattedValueMS:n+=t.formattedValue,B||(n+=e.text),n}))).join("").replace(/(,| |:|\.)*$/,"").replace(/^(,| |:|\.)*/,""))}function R(){var e=this.duration,t=function(t){return e._data[t]},n=g(this.types,t),r=function(e,t){for(var n=e.length;n-=1;)if(t(e[n]))return e[n]}(this.types,t);switch(n){case"milliseconds":return"S __";case"seconds":case"minutes":return"*_MS_";case"hours":return"_HMS_";case"days":if(n===r)return"d __";case"weeks":return n===r?"w __":(null===this.trim&&(this.trim="both"),"w __, d __, h __");case"months":if(n===r)return"M __";case"years":return n===r?"y __":(null===this.trim&&(this.trim="both"),"y __, M __, d __");default:return null===this.trim&&(this.trim="both"),"y __, d __, h __, m __, s __"}}function D(e){if(!e)throw"Moment Duration Format init cannot find moment instance.";e.duration.format=T,e.duration.fn.format=A,e.duration.fn.format.defaults={trim:null,stopTrim:null,largest:null,maxValue:null,minValue:null,precision:0,trunc:!1,forceLength:null,userLocale:null,usePlural:!0,useLeftUnits:!1,useGrouping:!0,useSignificantDigits:!1,template:R,useToLocaleString:!0,groupingSeparator:",",decimalSeparator:".",grouping:[3]},e.updateLocale("en",p)}var I=function(e,t,n){return e.toLocaleString(t,n)};t=function(){try{(0).toLocaleString("i")}catch(e){return"RangeError"===e.name}return!1}()&&P(I),n=t&&M(I);var N=function(e,t,n){if("undefined"!=typeof window&&window&&window.Intl&&window.Intl.NumberFormat)return window.Intl.NumberFormat(t,n).format(e)};return r=P(N),o=r&&M(N),D(e),D},o=[n(1)],void 0===(i="function"==typeof(r=l)?r.apply(t,o):r)||(e.exports=i),a&&(a.momentDurationFormatSetup=a.moment?l(a.moment):l)},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return k}));var r=n(2),o=n.n(r),i=n(0),a=n.n(i),l=n(1),s=n.n(l);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function d(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:6e4;n.clearPooledTimer(),n.pooledTimer=setInterval((function(){n.pooledElements.forEach((function(e){0!==e.props.interval&&e.update()}))}),e)}},{key:"clearPooledTimer",value:function(){n.pooledTimer&&(clearInterval(n.pooledTimer),n.pooledTimer=null,n.pooledElements=[])}},{key:"pushPooledElement",value:function(e){e instanceof n?-1===n.pooledElements.indexOf(e)&&n.pooledElements.push(e):console.error("Element not an instance of Moment.")}},{key:"removePooledElement",value:function(e){var t=n.pooledElements.indexOf(e);-1!==t&&n.pooledElements.splice(t,1)}},{key:"getDatetime",value:function(e){var t=e.utc,r=e.unix,o=e.date,i=e.locale,a=e.parse,l=e.tz,s=e.local;o=o||e.children,a=a||n.globalParse,s=s||n.globalLocal,l=l||n.globalTimezone,i=n.globalLocale?n.globalLocale:i||n.globalMoment.locale();var c=null;return c=t?n.globalMoment.utc(o,a,i):r?n.globalMoment(1e3*o,a,i):n.globalMoment(o,a,i),l?c=c.tz(l):s&&(c=c.local()),c}},{key:"getContent",value:function(e){var t=e.fromNow,r=e.fromNowDuring,o=e.from,i=e.add,a=e.subtract,l=e.toNow,c=e.to,u=e.ago,f=e.calendar,d=e.diff,p=e.duration,h=e.durationFromNow,m=e.unit,g=e.decimal,v=e.trim,y=e.format;y=y||n.globalFormat;var b=n.getDatetime(e);i&&b.add(i),a&&b.subtract(a);var x=Boolean(r)&&-b.diff(s()())0;){if((i=Object(r.b)(c,u,n))===o)return a[l]=c,a[s]=u,t(a);if(i>0)c=Math.floor(c/i)*i,u=Math.ceil(u/i)*i;else{if(!(i<0))break;c=Math.ceil(c*i)/i,u=Math.floor(u*i)/i}o=i}return e},e}function s(){var e=Object(o.b)();return e.copy=function(){return Object(o.a)(e,s())},i.b.apply(e,arguments),l(e)}},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0?1:-1;"insideStart"===i?(r=b+_*l,o=w):"insideEnd"===i?(r=x-_*l,o=!w):"end"===i&&(r=x+_*l,o=w),o=k<=0?o:!o;var C=Object(g.e)(p,h,O,r),j=Object(g.e)(p,h,O,r+359*(o?1:-1)),E="M".concat(C.x,",").concat(C.y,"\n A").concat(O,",").concat(O,",0,1,").concat(o?0:1,",\n ").concat(j.x,",").concat(j.y),M=s()(e.id)?Object(m.j)("recharts-radial-line-"):e.id;return u.a.createElement("text",S({},n,{dominantBaseline:"central",className:d()("recharts-radial-bar-label",c)}),u.a.createElement("defs",null,u.a.createElement("path",{id:M,d:E})),u.a.createElement("textPath",{xlinkHref:"#".concat(M)},t))};function _(e){var t,n=e.viewBox,r=e.position,i=e.value,l=e.children,f=e.content,h=e.className,y=void 0===h?"":h,b=e.textBreakAll;if(!n||s()(i)&&s()(l)&&!Object(c.isValidElement)(f)&&!a()(f))return null;if(Object(c.isValidElement)(f))return Object(c.cloneElement)(f,e);if(a()(f)){if(t=Object(c.createElement)(f,e),Object(c.isValidElement)(t))return t}else t=function(e){var t=e.value,n=e.formatter,r=s()(e.children)?t:e.children;return a()(n)?n(r):r}(e);var x=function(e){return Object(m.g)(e.cx)}(n),O=Object(v.c)(e,!0);if(x&&("insideStart"===r||"insideEnd"===r||"end"===r))return k(e,t,O);var _=x?function(e){var t=e.viewBox,n=e.offset,r=e.position,o=t,i=o.cx,a=o.cy,l=o.innerRadius,s=o.outerRadius,c=(o.startAngle+o.endAngle)/2;if("outside"===r){var u=Object(g.e)(i,a,s+n,c),f=u.x;return{x:f,y:u.y,textAnchor:f>=i?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"end"};var d=(l+s)/2,p=Object(g.e)(i,a,d,c);return{x:p.x,y:p.y,textAnchor:"middle",verticalAnchor:"middle"}}(e):function(e){var t=e.viewBox,n=e.parentViewBox,r=e.offset,i=e.position,a=t,l=a.x,s=a.y,c=a.width,u=a.height,f=u>=0?1:-1,d=f*r,p=f>0?"end":"start",h=f>0?"start":"end",g=c>=0?1:-1,v=g*r,y=g>0?"end":"start",b=g>0?"start":"end";if("top"===i)return w(w({},{x:l+c/2,y:s-f*r,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(s-n.y,0),width:c}:{});if("bottom"===i)return w(w({},{x:l+c/2,y:s+u+d,textAnchor:"middle",verticalAnchor:h}),n?{height:Math.max(n.y+n.height-(s+u),0),width:c}:{});if("left"===i){var x={x:l-v,y:s+u/2,textAnchor:y,verticalAnchor:"middle"};return w(w({},x),n?{width:Math.max(x.x-n.x,0),height:u}:{})}if("right"===i){var O={x:l+c+v,y:s+u/2,textAnchor:b,verticalAnchor:"middle"};return w(w({},O),n?{width:Math.max(n.x+n.width-O.x,0),height:u}:{})}var S=n?{width:c,height:u}:{};return"insideLeft"===i?w({x:l+v,y:s+u/2,textAnchor:b,verticalAnchor:"middle"},S):"insideRight"===i?w({x:l+c-v,y:s+u/2,textAnchor:y,verticalAnchor:"middle"},S):"insideTop"===i?w({x:l+c/2,y:s+d,textAnchor:"middle",verticalAnchor:h},S):"insideBottom"===i?w({x:l+c/2,y:s+u-d,textAnchor:"middle",verticalAnchor:p},S):"insideTopLeft"===i?w({x:l+v,y:s+d,textAnchor:b,verticalAnchor:h},S):"insideTopRight"===i?w({x:l+c-v,y:s+d,textAnchor:y,verticalAnchor:h},S):"insideBottomLeft"===i?w({x:l+v,y:s+u-d,textAnchor:b,verticalAnchor:p},S):"insideBottomRight"===i?w({x:l+c-v,y:s+u-d,textAnchor:y,verticalAnchor:p},S):o()(i)&&(Object(m.g)(i.x)||Object(m.h)(i.x))&&(Object(m.g)(i.y)||Object(m.h)(i.y))?w({x:l+Object(m.c)(i.x,c),y:s+Object(m.c)(i.y,u),textAnchor:"end",verticalAnchor:"end"},S):w({x:l+c/2,y:s+u/2,textAnchor:"middle",verticalAnchor:"middle"},S)}(e);return u.a.createElement(p.a,S({className:d()("recharts-label",y)},O,_,{breakAll:b}),t)}_.displayName="Label",_.defaultProps={offset:5};var C=function(e){var t=e.cx,n=e.cy,r=e.angle,o=e.startAngle,i=e.endAngle,a=e.r,l=e.radius,s=e.innerRadius,c=e.outerRadius,u=e.x,f=e.y,d=e.top,p=e.left,h=e.width,g=e.height,v=e.clockWise,y=e.labelViewBox;if(y)return y;if(Object(m.g)(h)&&Object(m.g)(g)){if(Object(m.g)(u)&&Object(m.g)(f))return{x:u,y:f,width:h,height:g};if(Object(m.g)(d)&&Object(m.g)(p))return{x:d,y:p,width:h,height:g}}return Object(m.g)(u)&&Object(m.g)(f)?{x:u,y:f,width:0,height:0}:Object(m.g)(t)&&Object(m.g)(n)?{cx:t,cy:n,startAngle:o||r||0,endAngle:i||r||0,innerRadius:s||0,outerRadius:c||l||a||0,clockWise:v}:e.viewBox?e.viewBox:{}},j=function(e,t){return e?!0===e?u.a.createElement(_,{key:"label-implicit",viewBox:t}):Object(m.f)(e)?u.a.createElement(_,{key:"label-implicit",viewBox:t,value:e}):Object(c.isValidElement)(e)?e.type===_?Object(c.cloneElement)(e,{key:"label-implicit",viewBox:t}):u.a.createElement(_,{key:"label-implicit",content:e,viewBox:t}):a()(e)?u.a.createElement(_,{key:"label-implicit",content:e,viewBox:t}):o()(e)?u.a.createElement(_,S({viewBox:t},e,{key:"label-implicit"})):null:null};_.parseViewBox=C,_.renderCallByParent=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var r=e.children,o=C(e),i=Object(h.a)(r,_.displayName).map((function(e,n){return Object(c.cloneElement)(e,{viewBox:t||o,key:"label-".concat(n)})}));if(!n)return i;var a=j(e.label,t||o);return[a].concat(y(i))}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}));var r=function(e){return e.scrollTop};function o(e,t){var n=e.timeout,r=e.style,o=void 0===r?{}:r;return{duration:o.transitionDuration||"number"===typeof n?n:n[t.mode]||0,delay:o.transitionDelay}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return i}));var r=n(336),o=new(n.n(r).a);o.setMaxListeners&&o.setMaxListeners(10);var i="recharts.syncMouseEvents"},,function(e,t,n){"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={isSsr:!("undefined"!==typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(e){return r[e]},set:function(e,t){if("string"===typeof e)r[e]=t;else{var n=Object.keys(e);n&&n.length&&n.forEach((function(t){r[t]=e[t]}))}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return S})),n.d(t,"b",(function(){return M})),n.d(t,"d",(function(){return T})),n.d(t,"c",(function(){return m})),n.d(t,"f",(function(){return g})),n.d(t,"e",(function(){return h}));var r=n(4);function o(e){return"/"===e.charAt(0)}function i(e,t){for(var n=t,r=n+1,o=e.length;r=0;d--){var p=a[d];"."===p?i(a,d):".."===p?(i(a,d),f++):f&&(i(a,d),f--)}if(!c)for(;f--;f)a.unshift("..");!c||""===a[0]||a[0]&&o(a[0])||a.unshift("");var h=a.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};function l(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var s=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"===typeof t||"object"===typeof n){var r=l(t),o=l(n);return r!==t||o!==n?e(r,o):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1},c=n(79);function u(e){return"/"===e.charAt(0)?e:"/"+e}function f(e){return"/"===e.charAt(0)?e.substr(1):e}function d(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function p(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function h(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function m(e,t,n,o){var i;"string"===typeof e?(i=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(i=Object(r.a)({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(l){throw l instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):l}return n&&(i.key=n),o?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=a(i.pathname,o.pathname)):i.pathname=o.pathname:i.pathname||(i.pathname="/"),i}function g(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&s(e.state,t.state)}function v(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var i="function"===typeof e?e(t,n):e;"string"===typeof i?"function"===typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;rt?n.splice(t,n.length-t,o):n.push(o),f({action:r,location:o,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",o=m(e,t,d(),x.location);u.confirmTransitionTo(o,r,n,(function(e){e&&(x.entries[x.index]=o,f({action:r,location:o}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(e){var t=x.index+e;return t>=0&&t1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),i=0;i=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(e,t){var i=t.word,a=t.width,l=e[e.length-1];if(l&&(null==r||o||l.width+a+ne.maxLines||function(e){return e.reduce((function(e,t){return e.width>t.width?e:t}))}(i).width>r,i]},d=0,p=a.length-1,h=0;d<=p&&h<=a.length-1;){var m=Math.floor((d+p)/2),g=k(u(m-1),2),v=g[0],y=g[1],b=k(u(m),1)[0];if(v||b||(d=m+1),v&&b&&(p=m-1),!v&&b){c=y;break}h++}return c||s}(e,n.wordsWithComputedWidth,n.spaceWidth,e.width,e.scaleToFit):T(e.children)}return T(e.children)},R=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&x(e,t)}(i,e);var t,n,r,o=w(i);function i(){var e;y(this,i);for(var t=arguments.length,n=new Array(t),r=0;r2?n-2:0),o=2;o=0&&s===l&&c())}var S=n(131),k=n.n(S),_=(n(9),function(){function e(t){var n=t.cellCount,r=t.cellSizeGetter,i=t.estimatedCellSize;o()(this,e),g()(this,"_cellSizeAndPositionData",{}),g()(this,"_lastMeasuredIndex",-1),g()(this,"_lastBatchedIndex",-1),g()(this,"_cellCount",void 0),g()(this,"_cellSizeGetter",void 0),g()(this,"_estimatedCellSize",void 0),this._cellSizeGetter=r,this._cellCount=n,this._estimatedCellSize=i}return a()(e,[{key:"areOffsetsAdjusted",value:function(){return!1}},{key:"configure",value:function(e){var t=e.cellCount,n=e.estimatedCellSize,r=e.cellSizeGetter;this._cellCount=t,this._estimatedCellSize=n,this._cellSizeGetter=r}},{key:"getCellCount",value:function(){return this._cellCount}},{key:"getEstimatedCellSize",value:function(){return this._estimatedCellSize}},{key:"getLastMeasuredIndex",value:function(){return this._lastMeasuredIndex}},{key:"getOffsetAdjustment",value:function(){return 0}},{key:"getSizeAndPositionOfCell",value:function(e){if(e<0||e>=this._cellCount)throw Error("Requested index ".concat(e," is outside of range 0..").concat(this._cellCount));if(e>this._lastMeasuredIndex)for(var t=this.getSizeAndPositionOfLastMeasuredCell(),n=t.offset+t.size,r=this._lastMeasuredIndex+1;r<=e;r++){var o=this._cellSizeGetter({index:r});if(void 0===o||isNaN(o))throw Error("Invalid size returned for cell ".concat(r," of value ").concat(o));null===o?(this._cellSizeAndPositionData[r]={offset:n,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[r]={offset:n,size:o},n+=o,this._lastMeasuredIndex=e)}return this._cellSizeAndPositionData[e]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var e=this.getSizeAndPositionOfLastMeasuredCell();return e.offset+e.size+(this._cellCount-this._lastMeasuredIndex-1)*this._estimatedCellSize}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,r=e.containerSize,o=e.currentOffset,i=e.targetIndex;if(r<=0)return 0;var a,l=this.getSizeAndPositionOfCell(i),s=l.offset,c=s-r+l.size;switch(n){case"start":a=s;break;case"end":a=c;break;case"center":a=s-(r-l.size)/2;break;default:a=Math.max(c,Math.min(s,o))}var u=this.getTotalSize();return Math.max(0,Math.min(u-r,a))}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset;if(0===this.getTotalSize())return{};var r=n+t,o=this._findNearestCell(n),i=this.getSizeAndPositionOfCell(o);n=i.offset+i.size;for(var a=o;nn&&(e=r-1)}return t>0?t-1:0}},{key:"_exponentialSearch",value:function(e,t){for(var n=1;e=e?this._binarySearch(n,0,e):this._exponentialSearch(n,e)}}]),e}()),C=function(){return"undefined"!==typeof window&&window.chrome?16777100:15e5},j=function(){function e(t){var n=t.maxScrollSize,r=void 0===n?C():n,i=k()(t,["maxScrollSize"]);o()(this,e),g()(this,"_cellSizeAndPositionManager",void 0),g()(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new _(i),this._maxScrollSize=r}return a()(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(e){this._cellSizeAndPositionManager.configure(e)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(e){var t=e.containerSize,n=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),o=this.getTotalSize(),i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:o});return Math.round(i*(o-r))}},{key:"getSizeAndPositionOfCell",value:function(e){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(e)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,r=e.containerSize,o=e.currentOffset,i=e.targetIndex;o=this._safeOffsetToOffset({containerSize:r,offset:o});var a=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:n,containerSize:r,currentOffset:o,targetIndex:i});return this._offsetToSafeOffset({containerSize:r,offset:a})}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset;return n=this._safeOffsetToOffset({containerSize:t,offset:n}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:n})}},{key:"resetCell",value:function(e){this._cellSizeAndPositionManager.resetCell(e)}},{key:"_getOffsetPercentage",value:function(e){var t=e.containerSize,n=e.offset,r=e.totalSize;return r<=t?0:n/(r-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,n=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),o=this.getTotalSize();if(r===o)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(o-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,n=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),o=this.getTotalSize();if(r===o)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:o});return Math.round(i*(r-t))}}]),e}();function E(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(n){var r=n.callback,o=n.indices,i=Object.keys(o),a=!e||i.every((function(e){var t=o[e];return Array.isArray(t)?t.length>0:t>=0})),l=i.length!==Object.keys(t).length||i.some((function(e){var n=t[e],r=o[e];return Array.isArray(r)?n.join(",")!==r.join(","):n!==r}));t=o,a&&l&&r(o)}}function M(e){var t=e.cellSize,n=e.cellSizeAndPositionManager,r=e.previousCellsCount,o=e.previousCellSize,i=e.previousScrollToAlignment,a=e.previousScrollToIndex,l=e.previousSize,s=e.scrollOffset,c=e.scrollToAlignment,u=e.scrollToIndex,f=e.size,d=e.sizeJustIncreasedFromZero,p=e.updateScrollIndexCallback,h=n.getCellCount(),m=u>=0&&u0&&(fn.getTotalSize()-f&&p(h-1)}var P,T,A=!("undefined"===typeof window||!window.document||!window.document.createElement);function R(e){if((!P&&0!==P||e)&&A){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),P=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return P}var D,I,N=(T="undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).requestAnimationFrame||T.webkitRequestAnimationFrame||T.mozRequestAnimationFrame||T.oRequestAnimationFrame||T.msRequestAnimationFrame||function(e){return T.setTimeout(e,1e3/60)},L=T.cancelAnimationFrame||T.webkitCancelAnimationFrame||T.mozCancelAnimationFrame||T.oCancelAnimationFrame||T.msCancelAnimationFrame||function(e){T.clearTimeout(e)},z=N,F=L,W=function(e){return F(e.id)},H=function(e,t){var n;Promise.resolve().then((function(){n=Date.now()}));var r={id:z((function o(){Date.now()-n>=t?e.call():r.id=z(o)}))};return r};function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function V(e){for(var t=1;t0&&(n._initialScrollTop=n._getCalculatedScrollTop(e,n.state)),e.scrollToColumn>0&&(n._initialScrollLeft=n._getCalculatedScrollLeft(e,n.state)),n}return h()(t,e),a()(t,[{key:"getOffsetForCell",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,n=void 0===t?this.props.scrollToAlignment:t,r=e.columnIndex,o=void 0===r?this.props.scrollToColumn:r,i=e.rowIndex,a=void 0===i?this.props.scrollToRow:i,l=V({},this.props,{scrollToAlignment:n,scrollToColumn:o,scrollToRow:a});return{scrollLeft:this._getCalculatedScrollLeft(l),scrollTop:this._getCalculatedScrollTop(l)}}},{key:"getTotalRowsHeight",value:function(){return this.state.instanceProps.rowSizeAndPositionManager.getTotalSize()}},{key:"getTotalColumnsWidth",value:function(){return this.state.instanceProps.columnSizeAndPositionManager.getTotalSize()}},{key:"handleScrollEvent",value:function(e){var t=e.scrollLeft,n=void 0===t?0:t,r=e.scrollTop,o=void 0===r?0:r;if(!(o<0)){this._debounceScrollEnded();var i=this.props,a=i.autoHeight,l=i.autoWidth,s=i.height,c=i.width,u=this.state.instanceProps,f=u.scrollbarSize,d=u.rowSizeAndPositionManager.getTotalSize(),p=u.columnSizeAndPositionManager.getTotalSize(),h=Math.min(Math.max(0,p-c+f),n),m=Math.min(Math.max(0,d-s+f),o);if(this.state.scrollLeft!==h||this.state.scrollTop!==m){var g={isScrolling:!0,scrollDirectionHorizontal:h!==this.state.scrollLeft?h>this.state.scrollLeft?1:-1:this.state.scrollDirectionHorizontal,scrollDirectionVertical:m!==this.state.scrollTop?m>this.state.scrollTop?1:-1:this.state.scrollDirectionVertical,scrollPositionChangeReason:U};a||(g.scrollTop=m),l||(g.scrollLeft=h),g.needToResetStyleCache=!1,this.setState(g)}this._invokeOnScrollMemoizer({scrollLeft:h,scrollTop:m,totalColumnsWidth:p,totalRowsHeight:d})}}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,n=e.rowIndex;this._deferredInvalidateColumnIndex="number"===typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,t):t,this._deferredInvalidateRowIndex="number"===typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,n):n}},{key:"measureAllCells",value:function(){var e=this.props,t=e.columnCount,n=e.rowCount,r=this.state.instanceProps;r.columnSizeAndPositionManager.getSizeAndPositionOfCell(t-1),r.rowSizeAndPositionManager.getSizeAndPositionOfCell(n-1)}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,o=void 0===r?0:r,i=this.props,a=i.scrollToColumn,l=i.scrollToRow,s=this.state.instanceProps;s.columnSizeAndPositionManager.resetCell(n),s.rowSizeAndPositionManager.resetCell(o),this._recomputeScrollLeftFlag=a>=0&&(1===this.state.scrollDirectionHorizontal?n<=a:n>=a),this._recomputeScrollTopFlag=l>=0&&(1===this.state.scrollDirectionVertical?o<=l:o>=l),this._styleCache={},this._cellCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,n=e.rowIndex,r=this.props.columnCount,o=this.props;r>1&&void 0!==t&&this._updateScrollLeftForScrollToColumn(V({},o,{scrollToColumn:t})),void 0!==n&&this._updateScrollTopForScrollToRow(V({},o,{scrollToRow:n}))}},{key:"componentDidMount",value:function(){var e=this.props,n=e.getScrollbarSize,r=e.height,o=e.scrollLeft,i=e.scrollToColumn,a=e.scrollTop,l=e.scrollToRow,s=e.width,c=this.state.instanceProps;if(this._initialScrollTop=0,this._initialScrollLeft=0,this._handleInvalidatedGridSize(),c.scrollbarSizeMeasured||this.setState((function(e){var t=V({},e,{needToResetStyleCache:!1});return t.instanceProps.scrollbarSize=n(),t.instanceProps.scrollbarSizeMeasured=!0,t})),"number"===typeof o&&o>=0||"number"===typeof a&&a>=0){var u=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:o,scrollTop:a});u&&(u.needToResetStyleCache=!1,this.setState(u))}this._scrollingContainer&&(this._scrollingContainer.scrollLeft!==this.state.scrollLeft&&(this._scrollingContainer.scrollLeft=this.state.scrollLeft),this._scrollingContainer.scrollTop!==this.state.scrollTop&&(this._scrollingContainer.scrollTop=this.state.scrollTop));var f=r>0&&s>0;i>=0&&f&&this._updateScrollLeftForScrollToColumn(),l>=0&&f&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:o||0,scrollTop:a||0,totalColumnsWidth:c.columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:c.rowSizeAndPositionManager.getTotalSize()}),this._maybeCallOnScrollbarPresenceChange()}},{key:"componentDidUpdate",value:function(e,t){var n=this,r=this.props,o=r.autoHeight,i=r.autoWidth,a=r.columnCount,l=r.height,s=r.rowCount,c=r.scrollToAlignment,u=r.scrollToColumn,f=r.scrollToRow,d=r.width,p=this.state,h=p.scrollLeft,m=p.scrollPositionChangeReason,g=p.scrollTop,v=p.instanceProps;this._handleInvalidatedGridSize();var y=a>0&&0===e.columnCount||s>0&&0===e.rowCount;m===G&&(!i&&h>=0&&(h!==this._scrollingContainer.scrollLeft||y)&&(this._scrollingContainer.scrollLeft=h),!o&&g>=0&&(g!==this._scrollingContainer.scrollTop||y)&&(this._scrollingContainer.scrollTop=g));var b=(0===e.width||0===e.height)&&l>0&&d>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):M({cellSizeAndPositionManager:v.columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:h,scrollToAlignment:c,scrollToIndex:u,size:d,sizeJustIncreasedFromZero:b,updateScrollIndexCallback:function(){return n._updateScrollLeftForScrollToColumn(n.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):M({cellSizeAndPositionManager:v.rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:g,scrollToAlignment:c,scrollToIndex:f,size:l,sizeJustIncreasedFromZero:b,updateScrollIndexCallback:function(){return n._updateScrollTopForScrollToRow(n.props)}}),this._invokeOnGridRenderedHelper(),h!==t.scrollLeft||g!==t.scrollTop){var x=v.rowSizeAndPositionManager.getTotalSize(),w=v.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:h,scrollTop:g,totalColumnsWidth:w,totalRowsHeight:x})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&W(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,n=e.autoHeight,r=e.autoWidth,o=e.className,i=e.containerProps,a=e.containerRole,l=e.containerStyle,s=e.height,c=e.id,u=e.noContentRenderer,f=e.role,d=e.style,p=e.tabIndex,h=e.width,m=this.state,g=m.instanceProps,y=m.needToResetStyleCache,b=this._isScrolling(),O={boxSizing:"border-box",direction:"ltr",height:n?"auto":s,position:"relative",width:r?"auto":h,WebkitOverflowScrolling:"touch",willChange:"transform"};y&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var S=g.columnSizeAndPositionManager.getTotalSize(),k=g.rowSizeAndPositionManager.getTotalSize(),_=k>s?g.scrollbarSize:0,C=S>h?g.scrollbarSize:0;C===this._horizontalScrollBarSize&&_===this._verticalScrollBarSize||(this._horizontalScrollBarSize=C,this._verticalScrollBarSize=_,this._scrollbarPresenceChanged=!0),O.overflowX=S+_<=h?"hidden":"auto",O.overflowY=k+C<=s?"hidden":"auto";var j=this._childrenToDisplay,E=0===j.length&&s>0&&h>0;return v.createElement("div",x()({ref:this._setScrollingContainerRef},i,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:Object(w.a)("ReactVirtualized__Grid",o),id:c,onScroll:this._onScroll,role:f,style:V({},O,{},d),tabIndex:p}),j.length>0&&v.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:a,style:V({width:t?"auto":S,height:k,maxWidth:S,maxHeight:k,overflow:"hidden",pointerEvents:b?"none":"",position:"relative"},l)},j),E&&u())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.cellRenderer,r=e.cellRangeRenderer,o=e.columnCount,i=e.deferredMeasurementCache,a=e.height,l=e.overscanColumnCount,s=e.overscanIndicesGetter,c=e.overscanRowCount,u=e.rowCount,f=e.width,d=e.isScrollingOptOut,p=t.scrollDirectionHorizontal,h=t.scrollDirectionVertical,m=t.instanceProps,g=this._initialScrollTop>0?this._initialScrollTop:t.scrollTop,v=this._initialScrollLeft>0?this._initialScrollLeft:t.scrollLeft,y=this._isScrolling(e,t);if(this._childrenToDisplay=[],a>0&&f>0){var b=m.columnSizeAndPositionManager.getVisibleCellRange({containerSize:f,offset:v}),x=m.rowSizeAndPositionManager.getVisibleCellRange({containerSize:a,offset:g}),w=m.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:f,offset:v}),O=m.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:a,offset:g});this._renderedColumnStartIndex=b.start,this._renderedColumnStopIndex=b.stop,this._renderedRowStartIndex=x.start,this._renderedRowStopIndex=x.stop;var S=s({direction:"horizontal",cellCount:o,overscanCellsCount:l,scrollDirection:p,startIndex:"number"===typeof b.start?b.start:0,stopIndex:"number"===typeof b.stop?b.stop:-1}),k=s({direction:"vertical",cellCount:u,overscanCellsCount:c,scrollDirection:h,startIndex:"number"===typeof x.start?x.start:0,stopIndex:"number"===typeof x.stop?x.stop:-1}),_=S.overscanStartIndex,C=S.overscanStopIndex,j=k.overscanStartIndex,E=k.overscanStopIndex;if(i){if(!i.hasFixedHeight())for(var M=j;M<=E;M++)if(!i.has(M,0)){_=0,C=o-1;break}if(!i.hasFixedWidth())for(var P=_;P<=C;P++)if(!i.has(0,P)){j=0,E=u-1;break}}this._childrenToDisplay=r({cellCache:this._cellCache,cellRenderer:n,columnSizeAndPositionManager:m.columnSizeAndPositionManager,columnStartIndex:_,columnStopIndex:C,deferredMeasurementCache:i,horizontalOffsetAdjustment:w,isScrolling:y,isScrollingOptOut:d,parent:this,rowSizeAndPositionManager:m.rowSizeAndPositionManager,rowStartIndex:j,rowStopIndex:E,scrollLeft:v,scrollTop:g,styleCache:this._styleCache,verticalOffsetAdjustment:O,visibleColumnIndices:b,visibleRowIndices:x}),this._columnStartIndex=_,this._columnStopIndex=C,this._rowStartIndex=j,this._rowStopIndex=E}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&W(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=H(this._debounceScrollEndedCallback,e)}},{key:"_handleInvalidatedGridSize",value:function(){if("number"===typeof this._deferredInvalidateColumnIndex&&"number"===typeof this._deferredInvalidateRowIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t})}}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,r=e.scrollTop,o=e.totalColumnsWidth,i=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,r=e.scrollTop,a=t.props,l=a.height;(0,a.onScroll)({clientHeight:l,clientWidth:a.width,scrollHeight:i,scrollLeft:n,scrollTop:r,scrollWidth:o})},indices:{scrollLeft:n,scrollTop:r}})}},{key:"_isScrolling",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return Object.hasOwnProperty.call(e,"isScrolling")?Boolean(e.isScrolling):Boolean(t.isScrolling)}},{key:"_maybeCallOnScrollbarPresenceChange",value:function(){if(this._scrollbarPresenceChanged){var e=this.props.onScrollbarPresenceChange;this._scrollbarPresenceChanged=!1,e({horizontal:this._horizontalScrollBarSize>0,size:this.state.instanceProps.scrollbarSize,vertical:this._verticalScrollBarSize>0})}}},{key:"scrollToPosition",value:function(e){var n=e.scrollLeft,r=e.scrollTop,o=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:n,scrollTop:r});o&&(o.needToResetStyleCache=!1,this.setState(o))}},{key:"_getCalculatedScrollLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollLeft(e,n)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,r=t._getScrollLeftForScrollToColumnStateUpdate(e,n);r&&(r.needToResetStyleCache=!1,this.setState(r))}},{key:"_getCalculatedScrollTop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollTop(e,n)}},{key:"_resetStyleCache",value:function(){var e=this._styleCache,t=this._cellCache,n=this.props.isScrollingOptOut;this._cellCache={},this._styleCache={};for(var r=this._rowStartIndex;r<=this._rowStopIndex;r++)for(var o=this._columnStartIndex;o<=this._columnStopIndex;o++){var i="".concat(r,"-").concat(o);this._styleCache[i]=e[i],n&&(this._cellCache[i]=t[i])}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,r=t._getScrollTopForScrollToRowStateUpdate(e,n);r&&(r.needToResetStyleCache=!1,this.setState(r))}}],[{key:"getDerivedStateFromProps",value:function(e,n){var r={};0===e.columnCount&&0!==n.scrollLeft||0===e.rowCount&&0!==n.scrollTop?(r.scrollLeft=0,r.scrollTop=0):(e.scrollLeft!==n.scrollLeft&&e.scrollToColumn<0||e.scrollTop!==n.scrollTop&&e.scrollToRow<0)&&Object.assign(r,t._getScrollToPositionStateUpdate({prevState:n,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}));var o,i,a=n.instanceProps;return r.needToResetStyleCache=!1,e.columnWidth===a.prevColumnWidth&&e.rowHeight===a.prevRowHeight||(r.needToResetStyleCache=!0),a.columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:t._getEstimatedColumnSize(e),cellSizeGetter:t._wrapSizeGetter(e.columnWidth)}),a.rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:t._getEstimatedRowSize(e),cellSizeGetter:t._wrapSizeGetter(e.rowHeight)}),0!==a.prevColumnCount&&0!==a.prevRowCount||(a.prevColumnCount=0,a.prevRowCount=0),e.autoHeight&&!1===e.isScrolling&&!0===a.prevIsScrolling&&Object.assign(r,{isScrolling:!1}),O({cellCount:a.prevColumnCount,cellSize:"number"===typeof a.prevColumnWidth?a.prevColumnWidth:null,computeMetadataCallback:function(){return a.columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:"number"===typeof e.columnWidth?e.columnWidth:null,nextScrollToIndex:e.scrollToColumn,scrollToIndex:a.prevScrollToColumn,updateScrollOffsetForScrollToIndex:function(){o=t._getScrollLeftForScrollToColumnStateUpdate(e,n)}}),O({cellCount:a.prevRowCount,cellSize:"number"===typeof a.prevRowHeight?a.prevRowHeight:null,computeMetadataCallback:function(){return a.rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:"number"===typeof e.rowHeight?e.rowHeight:null,nextScrollToIndex:e.scrollToRow,scrollToIndex:a.prevScrollToRow,updateScrollOffsetForScrollToIndex:function(){i=t._getScrollTopForScrollToRowStateUpdate(e,n)}}),a.prevColumnCount=e.columnCount,a.prevColumnWidth=e.columnWidth,a.prevIsScrolling=!0===e.isScrolling,a.prevRowCount=e.rowCount,a.prevRowHeight=e.rowHeight,a.prevScrollToColumn=e.scrollToColumn,a.prevScrollToRow=e.scrollToRow,a.scrollbarSize=e.getScrollbarSize(),void 0===a.scrollbarSize?(a.scrollbarSizeMeasured=!1,a.scrollbarSize=0):a.scrollbarSizeMeasured=!0,r.instanceProps=a,V({},r,{},o,{},i)}},{key:"_getEstimatedColumnSize",value:function(e){return"number"===typeof e.columnWidth?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return"number"===typeof e.rowHeight?e.rowHeight:e.estimatedRowSize}},{key:"_getScrollToPositionStateUpdate",value:function(e){var t=e.prevState,n=e.scrollLeft,r=e.scrollTop,o={scrollPositionChangeReason:G};return"number"===typeof n&&n>=0&&(o.scrollDirectionHorizontal=n>t.scrollLeft?1:-1,o.scrollLeft=n),"number"===typeof r&&r>=0&&(o.scrollDirectionVertical=r>t.scrollTop?1:-1,o.scrollTop=r),"number"===typeof n&&n>=0&&n!==t.scrollLeft||"number"===typeof r&&r>=0&&r!==t.scrollTop?o:{}}},{key:"_wrapSizeGetter",value:function(e){return"function"===typeof e?e:function(){return e}}},{key:"_getCalculatedScrollLeft",value:function(e,t){var n=e.columnCount,r=e.height,o=e.scrollToAlignment,i=e.scrollToColumn,a=e.width,l=t.scrollLeft,s=t.instanceProps;if(n>0){var c=n-1,u=i<0?c:Math.min(c,i),f=s.rowSizeAndPositionManager.getTotalSize(),d=s.scrollbarSizeMeasured&&f>r?s.scrollbarSize:0;return s.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:o,containerSize:a-d,currentOffset:l,targetIndex:u})}return 0}},{key:"_getScrollLeftForScrollToColumnStateUpdate",value:function(e,n){var r=n.scrollLeft,o=t._getCalculatedScrollLeft(e,n);return"number"===typeof o&&o>=0&&r!==o?t._getScrollToPositionStateUpdate({prevState:n,scrollLeft:o,scrollTop:-1}):{}}},{key:"_getCalculatedScrollTop",value:function(e,t){var n=e.height,r=e.rowCount,o=e.scrollToAlignment,i=e.scrollToRow,a=e.width,l=t.scrollTop,s=t.instanceProps;if(r>0){var c=r-1,u=i<0?c:Math.min(c,i),f=s.columnSizeAndPositionManager.getTotalSize(),d=s.scrollbarSizeMeasured&&f>a?s.scrollbarSize:0;return s.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:o,containerSize:n-d,currentOffset:l,targetIndex:u})}return 0}},{key:"_getScrollTopForScrollToRowStateUpdate",value:function(e,n){var r=n.scrollTop,o=t._getCalculatedScrollTop(e,n);return"number"===typeof o&&o>=0&&r!==o?t._getScrollToPositionStateUpdate({prevState:n,scrollLeft:-1,scrollTop:o}):{}}}]),t}(v.PureComponent),g()(D,"propTypes",null),I);g()(Y,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:function(e){for(var t=e.cellCache,n=e.cellRenderer,r=e.columnSizeAndPositionManager,o=e.columnStartIndex,i=e.columnStopIndex,a=e.deferredMeasurementCache,l=e.horizontalOffsetAdjustment,s=e.isScrolling,c=e.isScrollingOptOut,u=e.parent,f=e.rowSizeAndPositionManager,d=e.rowStartIndex,p=e.rowStopIndex,h=e.styleCache,m=e.verticalOffsetAdjustment,g=e.visibleColumnIndices,v=e.visibleRowIndices,y=[],b=r.areOffsetsAdjusted()||f.areOffsetsAdjusted(),x=!s&&!b,w=d;w<=p;w++)for(var O=f.getSizeAndPositionOfCell(w),S=o;S<=i;S++){var k=r.getSizeAndPositionOfCell(S),_=S>=g.start&&S<=g.stop&&w>=v.start&&w<=v.stop,C="".concat(w,"-").concat(S),j=void 0;x&&h[C]?j=h[C]:a&&!a.has(w,S)?j={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(j={height:O.size,left:k.offset+l,position:"absolute",top:O.offset+m,width:k.size},h[C]=j);var E={columnIndex:S,isScrolling:s,isVisible:_,key:C,parent:u,rowIndex:w,style:j},M=void 0;!c&&!s||l||m?M=n(E):(t[C]||(t[C]=n(E)),M=t[C]),null!=M&&!1!==M&&y.push(M)}return y},containerRole:"rowgroup",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:R,noContentRenderer:function(){return null},onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:function(e){var t=e.cellCount,n=e.overscanCellsCount,r=e.scrollDirection,o=e.startIndex,i=e.stopIndex;return 1===r?{overscanStartIndex:Math.max(0,o),overscanStopIndex:Math.min(t-1,i+n)}:{overscanStartIndex:Math.max(0,o-n),overscanStopIndex:Math.min(t-1,i)}},overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1}),Object(y.polyfill)(Y);var $=Y;function q(e){var t=e.cellCount,n=e.overscanCellsCount,r=e.scrollDirection,o=e.startIndex,i=e.stopIndex;return n=Math.max(1,n),1===r?{overscanStartIndex:Math.max(0,o-1),overscanStopIndex:Math.min(t-1,i+n)}:{overscanStartIndex:Math.max(0,o-n),overscanStopIndex:Math.min(t-1,i+1)}}var K,X;function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Z=(X=K=function(e){function t(){var e,n;o()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a=0){var u=t.getScrollPositionForCell({align:o,cellIndex:i,height:r,scrollLeft:s,scrollTop:c,width:a});u.scrollLeft===s&&u.scrollTop===c||n._setScrollPosition(u)}})),g()(d()(n),"_onScroll",(function(e){if(e.target===n._scrollingContainer){n._enablePointerEventsAfterDelay();var t=n.props,r=t.cellLayoutManager,o=t.height,i=t.isScrollingChange,a=t.width,l=n._scrollbarSize,s=r.getTotalSize(),c=s.height,u=s.width,f=Math.max(0,Math.min(u-a+l,e.target.scrollLeft)),d=Math.max(0,Math.min(c-o+l,e.target.scrollTop));if(n.state.scrollLeft!==f||n.state.scrollTop!==d){var p=e.cancelable?fe:de;n.state.isScrolling||i(!0),n.setState({isScrolling:!0,scrollLeft:f,scrollPositionChangeReason:p,scrollTop:d})}n._invokeOnScrollMemoizer({scrollLeft:f,scrollTop:d,totalWidth:u,totalHeight:c})}})),n._scrollbarSize=R(),void 0===n._scrollbarSize?(n._scrollbarSizeMeasured=!1,n._scrollbarSize=0):n._scrollbarSizeMeasured=!0,n}return h()(t,e),a()(t,[{key:"recomputeCellSizesAndPositions",value:function(){this._calculateSizeAndPositionDataOnNextUpdate=!0,this.forceUpdate()}},{key:"componentDidMount",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.scrollLeft,r=e.scrollToCell,o=e.scrollTop;this._scrollbarSizeMeasured||(this._scrollbarSize=R(),this._scrollbarSizeMeasured=!0,this.setState({})),r>=0?this._updateScrollPositionForScrollToCell():(n>=0||o>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:o}),this._invokeOnSectionRenderedHelper();var i=t.getTotalSize(),a=i.height,l=i.width;this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:o||0,totalHeight:a,totalWidth:l})}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,r=n.height,o=n.scrollToAlignment,i=n.scrollToCell,a=n.width,l=this.state,s=l.scrollLeft,c=l.scrollPositionChangeReason,u=l.scrollTop;c===de&&(s>=0&&s!==t.scrollLeft&&s!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=s),u>=0&&u!==t.scrollTop&&u!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=u)),r===e.height&&o===e.scrollToAlignment&&i===e.scrollToCell&&a===e.width||this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoHeight,n=e.cellCount,r=e.cellLayoutManager,o=e.className,i=e.height,a=e.horizontalOverscanSize,l=e.id,s=e.noContentRenderer,c=e.style,u=e.verticalOverscanSize,f=e.width,d=this.state,p=d.isScrolling,h=d.scrollLeft,m=d.scrollTop;(this._lastRenderedCellCount!==n||this._lastRenderedCellLayoutManager!==r||this._calculateSizeAndPositionDataOnNextUpdate)&&(this._lastRenderedCellCount=n,this._lastRenderedCellLayoutManager=r,this._calculateSizeAndPositionDataOnNextUpdate=!1,r.calculateSizeAndPositionData());var g=r.getTotalSize(),y=g.height,b=g.width,x=Math.max(0,h-a),O=Math.max(0,m-u),S=Math.min(b,h+f+a),k=Math.min(y,m+i+u),_=i>0&&f>0?r.cellRenderers({height:k-O,isScrolling:p,width:S-x,x:x,y:O}):[],C={boxSizing:"border-box",direction:"ltr",height:t?"auto":i,position:"relative",WebkitOverflowScrolling:"touch",width:f,willChange:"transform"},j=y>i?this._scrollbarSize:0,E=b>f?this._scrollbarSize:0;return C.overflowX=b+j<=f?"hidden":"auto",C.overflowY=y+E<=i?"hidden":"auto",v.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:Object(w.a)("ReactVirtualized__Collection",o),id:l,onScroll:this._onScroll,role:"grid",style:ue({},C,{},c),tabIndex:0},n>0&&v.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:y,maxHeight:y,maxWidth:b,overflow:"hidden",pointerEvents:p?"none":"",width:b}},_),0===n&&s())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout((function(){(0,e.props.isScrollingChange)(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})}),150)}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,r=e.scrollTop,o=e.totalHeight,i=e.totalWidth;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,r=e.scrollTop,a=t.props,l=a.height;(0,a.onScroll)({clientHeight:l,clientWidth:a.width,scrollHeight:o,scrollLeft:n,scrollTop:r,scrollWidth:i})},indices:{scrollLeft:n,scrollTop:r}})}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,r={scrollPositionChangeReason:de};t>=0&&(r.scrollLeft=t),n>=0&&(r.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(r)}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 0!==e.cellCount||0===t.scrollLeft&&0===t.scrollTop?e.scrollLeft!==t.scrollLeft||e.scrollTop!==t.scrollTop?{scrollLeft:null!=e.scrollLeft?e.scrollLeft:t.scrollLeft,scrollTop:null!=e.scrollTop?e.scrollTop:t.scrollTop,scrollPositionChangeReason:de}:null:{scrollLeft:0,scrollTop:0,scrollPositionChangeReason:de}}}]),t}(v.PureComponent);g()(pe,"defaultProps",{"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0}),pe.propTypes={},Object(y.polyfill)(pe);var he=pe,me=function(){function e(t){var n=t.height,r=t.width,i=t.x,a=t.y;o()(this,e),this.height=n,this.width=r,this.x=i,this.y=a,this._indexMap={},this._indices=[]}return a()(e,[{key:"addCellIndex",value:function(e){var t=e.index;this._indexMap[t]||(this._indexMap[t]=!0,this._indices.push(t))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return"".concat(this.x,",").concat(this.y," ").concat(this.width,"x").concat(this.height)}}]),e}(),ge=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;o()(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return a()(e,[{key:"getCellIndices",value:function(e){var t=e.height,n=e.width,r=e.x,o=e.y,i={};return this.getSections({height:t,width:n,x:r,y:o}).forEach((function(e){return e.getCellIndices().forEach((function(e){i[e]=e}))})),Object.keys(i).map((function(e){return i[e]}))}},{key:"getCellMetadata",value:function(e){var t=e.index;return this._cellMetadata[t]}},{key:"getSections",value:function(e){for(var t=e.height,n=e.width,r=e.x,o=e.y,i=Math.floor(r/this._sectionSize),a=Math.floor((r+n-1)/this._sectionSize),l=Math.floor(o/this._sectionSize),s=Math.floor((o+t-1)/this._sectionSize),c=[],u=i;u<=a;u++)for(var f=l;f<=s;f++){var d="".concat(u,".").concat(f);this._sections[d]||(this._sections[d]=new me({height:this._sectionSize,width:this._sectionSize,x:u*this._sectionSize,y:f*this._sectionSize})),c.push(this._sections[d])}return c}},{key:"getTotalSectionCount",value:function(){return Object.keys(this._sections).length}},{key:"toString",value:function(){var e=this;return Object.keys(this._sections).map((function(t){return e._sections[t].toString()}))}},{key:"registerCell",value:function(e){var t=e.cellMetadatum,n=e.index;this._cellMetadata[n]=t,this.getSections(t).forEach((function(e){return e.addCellIndex({index:n})}))}}]),e}();function ve(e){var t=e.align,n=void 0===t?"auto":t,r=e.cellOffset,o=e.cellSize,i=e.containerSize,a=e.currentOffset,l=r,s=l-i+o;switch(n){case"start":return l;case"end":return s;case"center":return l-(i-o)/2;default:return Math.max(s,Math.min(l,a))}}var ye=function(e){function t(e,n){var r;return o()(this,t),(r=s()(this,u()(t).call(this,e,n)))._cellMetadata=[],r._lastRenderedCellIndices=[],r._cellCache=[],r._isScrollingChange=r._isScrollingChange.bind(d()(r)),r._setCollectionViewRef=r._setCollectionViewRef.bind(d()(r)),r}return h()(t,e),a()(t,[{key:"forceUpdate",value:function(){void 0!==this._collectionView&&this._collectionView.forceUpdate()}},{key:"recomputeCellSizesAndPositions",value:function(){this._cellCache=[],this._collectionView.recomputeCellSizesAndPositions()}},{key:"render",value:function(){var e=x()({},this.props);return v.createElement(he,x()({cellLayoutManager:this,isScrollingChange:this._isScrollingChange,ref:this._setCollectionViewRef},e))}},{key:"calculateSizeAndPositionData",value:function(){var e=this.props,t=function(e){for(var t=e.cellCount,n=e.cellSizeAndPositionGetter,r=e.sectionSize,o=[],i=new ge(r),a=0,l=0,s=0;s=0&&nn||o1&&void 0!==arguments[1]?arguments[1]:0,n="function"===typeof e.recomputeGridSize?e.recomputeGridSize:e.recomputeRowHeights;n?n.call(e,t):e.forceUpdate()}(t._registeredChild,t._lastRenderedStartIndex)}))}))}},{key:"_onRowsRendered",value:function(e){var t=e.startIndex,n=e.stopIndex;this._lastRenderedStartIndex=t,this._lastRenderedStopIndex=n,this._doStuff(t,n)}},{key:"_doStuff",value:function(e,t){var n,r=this,o=this.props,i=o.isRowLoaded,a=o.minimumBatchSize,l=o.rowCount,s=o.threshold,c=function(e){for(var t=e.isRowLoaded,n=e.minimumBatchSize,r=e.rowCount,o=e.startIndex,i=e.stopIndex,a=[],l=null,s=null,c=o;c<=i;c++){t({index:c})?null!==s&&(a.push({startIndex:l,stopIndex:s}),l=s=null):(s=c,null===l&&(l=c))}if(null!==s){for(var u=Math.min(Math.max(s,l+n-1),r-1),f=s+1;f<=u&&!t({index:f});f++)s=f;a.push({startIndex:l,stopIndex:s})}if(a.length)for(var d=a[0];d.stopIndex-d.startIndex+10;){var p=d.startIndex-1;if(t({index:p}))break;d.startIndex=p}return a}({isRowLoaded:i,minimumBatchSize:a,rowCount:l,startIndex:Math.max(0,e-s),stopIndex:Math.min(l-1,t+s)}),u=(n=[]).concat.apply(n,we()(c.map((function(e){return[e.startIndex,e.stopIndex]}))));this._loadMoreRowsMemoizer({callback:function(){r._loadUnloadedRanges(c)},indices:{squashedUnloadedRanges:u}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}]),t}(v.PureComponent);g()(Oe,"defaultProps",{minimumBatchSize:10,rowCount:0,threshold:15}),Oe.propTypes={};var Se,ke,_e=(ke=Se=function(e){function t(){var e,n;o()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,o=void 0===r?0:r;this.Grid&&this.Grid.recomputeGridSize({rowIndex:o,columnIndex:n})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e,columnIndex:0})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.noRowsRenderer,r=e.scrollToIndex,o=e.width,i=Object(w.a)("ReactVirtualized__List",t);return v.createElement($,x()({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:i,columnWidth:o,columnCount:1,noContentRenderer:n,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:r}))}}]),t}(v.PureComponent),g()(Se,"propTypes",null),ke);g()(_e,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:q,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});var Ce=n(316),je=n.n(Ce);var Ee={ge:function(e,t,n,r,o){return"function"===typeof n?function(e,t,n,r,o){for(var i=n+1;t<=n;){var a=t+n>>>1;o(e[a],r)>=0?(i=a,n=a-1):t=a+1}return i}(e,void 0===r?0:0|r,void 0===o?e.length-1:0|o,t,n):function(e,t,n,r){for(var o=n+1;t<=n;){var i=t+n>>>1;e[i]>=r?(o=i,n=i-1):t=i+1}return o}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t)},gt:function(e,t,n,r,o){return"function"===typeof n?function(e,t,n,r,o){for(var i=n+1;t<=n;){var a=t+n>>>1;o(e[a],r)>0?(i=a,n=a-1):t=a+1}return i}(e,void 0===r?0:0|r,void 0===o?e.length-1:0|o,t,n):function(e,t,n,r){for(var o=n+1;t<=n;){var i=t+n>>>1;e[i]>r?(o=i,n=i-1):t=i+1}return o}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t)},lt:function(e,t,n,r,o){return"function"===typeof n?function(e,t,n,r,o){for(var i=t-1;t<=n;){var a=t+n>>>1;o(e[a],r)<0?(i=a,t=a+1):n=a-1}return i}(e,void 0===r?0:0|r,void 0===o?e.length-1:0|o,t,n):function(e,t,n,r){for(var o=t-1;t<=n;){var i=t+n>>>1;e[i]>>1;o(e[a],r)<=0?(i=a,t=a+1):n=a-1}return i}(e,void 0===r?0:0|r,void 0===o?e.length-1:0|o,t,n):function(e,t,n,r){for(var o=t-1;t<=n;){var i=t+n>>>1;e[i]<=r?(o=i,t=i+1):n=i-1}return o}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t)},eq:function(e,t,n,r,o){return"function"===typeof n?function(e,t,n,r,o){for(;t<=n;){var i=t+n>>>1,a=o(e[i],r);if(0===a)return i;a<=0?t=i+1:n=i-1}return-1}(e,void 0===r?0:0|r,void 0===o?e.length-1:0|o,t,n):function(e,t,n,r){for(;t<=n;){var o=t+n>>>1,i=e[o];if(i===r)return o;i<=r?t=o+1:n=o-1}return-1}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t)}};function Me(e,t,n,r,o){this.mid=e,this.left=t,this.right=n,this.leftPoints=r,this.rightPoints=o,this.count=(t?t.count:0)+(n?n.count:0)+r.length}var Pe=Me.prototype;function Te(e,t){e.mid=t.mid,e.left=t.left,e.right=t.right,e.leftPoints=t.leftPoints,e.rightPoints=t.rightPoints,e.count=t.count}function Ae(e,t){var n=He(t);e.mid=n.mid,e.left=n.left,e.right=n.right,e.leftPoints=n.leftPoints,e.rightPoints=n.rightPoints,e.count=n.count}function Re(e,t){var n=e.intervals([]);n.push(t),Ae(e,n)}function De(e,t){var n=e.intervals([]),r=n.indexOf(t);return r<0?0:(n.splice(r,1),Ae(e,n),1)}function Ie(e,t,n){for(var r=0;r=0&&e[r][1]>=t;--r){var o=n(e[r]);if(o)return o}}function Le(e,t){for(var n=0;n>1],o=[],i=[],a=[];for(n=0;n3*(t+1)?Re(this,e):this.left.insert(e):this.left=He([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(t+1)?Re(this,e):this.right.insert(e):this.right=He([e]);else{var n=Ee.ge(this.leftPoints,e,Fe),r=Ee.ge(this.rightPoints,e,We);this.leftPoints.splice(n,0,e),this.rightPoints.splice(r,0,e)}},Pe.remove=function(e){var t=this.count-this.leftPoints;if(e[1]3*(t-1)?De(this,e):2===(i=this.left.remove(e))?(this.left=null,this.count-=1,1):(1===i&&(this.count-=1),i):0;if(e[0]>this.mid)return this.right?4*(this.left?this.left.count:0)>3*(t-1)?De(this,e):2===(i=this.right.remove(e))?(this.right=null,this.count-=1,1):(1===i&&(this.count-=1),i):0;if(1===this.count)return this.leftPoints[0]===e?2:0;if(1===this.leftPoints.length&&this.leftPoints[0]===e){if(this.left&&this.right){for(var n=this,r=this.left;r.right;)n=r,r=r.right;if(n===this)r.right=this.right;else{var o=this.left,i=this.right;n.count-=r.count,n.right=r.left,r.left=o,r.right=i}Te(this,r),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?Te(this,this.left):Te(this,this.right);return 1}for(o=Ee.ge(this.leftPoints,e,Fe);othis.mid){var n;if(this.right)if(n=this.right.queryPoint(e,t))return n;return Ne(this.rightPoints,e,t)}return Le(this.leftPoints,t)},Pe.queryInterval=function(e,t,n){var r;if(ethis.mid&&this.right&&(r=this.right.queryInterval(e,t,n)))return r;return tthis.mid?Ne(this.rightPoints,e,n):Le(this.leftPoints,n)};var Ve=Be.prototype;Ve.insert=function(e){this.root?this.root.insert(e):this.root=new Me(e[0],null,null,[e],[e])},Ve.remove=function(e){if(this.root){var t=this.root.remove(e);return 2===t&&(this.root=null),0!==t}return!1},Ve.queryPoint=function(e,t){if(this.root)return this.root.queryPoint(e,t)},Ve.queryInterval=function(e,t,n){if(e<=t&&this.root)return this.root.queryInterval(e,t,n)},Object.defineProperty(Ve,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(Ve,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}});var Ue,Ge,Ye=function(){function e(){var t;o()(this,e),g()(this,"_columnSizeMap",{}),g()(this,"_intervalTree",t&&0!==t.length?new Be(He(t)):new Be(null)),g()(this,"_leftMap",{})}return a()(e,[{key:"estimateTotalHeight",value:function(e,t,n){var r=e-this.count;return this.tallestColumnSize+Math.ceil(r/t)*n}},{key:"range",value:function(e,t,n){var r=this;this._intervalTree.queryInterval(e,e+t,(function(e){var t=je()(e,3),o=t[0],i=(t[1],t[2]);return n(i,r._leftMap[i],o)}))}},{key:"setPosition",value:function(e,t,n,r){this._intervalTree.insert([n,n+r,e]),this._leftMap[e]=t;var o=this._columnSizeMap,i=o[t];o[t]=void 0===i?n+r:Math.max(i,n+r)}},{key:"count",get:function(){return this._intervalTree.count}},{key:"shortestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var n in e){var r=e[n];t=0===t?r:Math.min(t,r)}return t}},{key:"tallestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var n in e){var r=e[n];t=Math.max(t,r)}return t}}]),e}();function $e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qe(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};o()(this,e),g()(this,"_cellMeasurerCache",void 0),g()(this,"_columnIndexOffset",void 0),g()(this,"_rowIndexOffset",void 0),g()(this,"columnWidth",(function(e){var n=e.index;t._cellMeasurerCache.columnWidth({index:n+t._columnIndexOffset})})),g()(this,"rowHeight",(function(e){var n=e.index;t._cellMeasurerCache.rowHeight({index:n+t._rowIndexOffset})}));var r=n.cellMeasurerCache,i=n.columnIndexOffset,a=void 0===i?0:i,l=n.rowIndexOffset,s=void 0===l?0:l;this._cellMeasurerCache=r,this._columnIndexOffset=a,this._rowIndexOffset=s}return a()(e,[{key:"clear",value:function(e,t){this._cellMeasurerCache.clear(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"clearAll",value:function(){this._cellMeasurerCache.clearAll()}},{key:"hasFixedHeight",value:function(){return this._cellMeasurerCache.hasFixedHeight()}},{key:"hasFixedWidth",value:function(){return this._cellMeasurerCache.hasFixedWidth()}},{key:"getHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.getHeight(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"getWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.getWidth(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.has(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"set",value:function(e,t,n,r){this._cellMeasurerCache.set(e+this._rowIndexOffset,t+this._columnIndexOffset,n,r)}},{key:"defaultHeight",get:function(){return this._cellMeasurerCache.defaultHeight}},{key:"defaultWidth",get:function(){return this._cellMeasurerCache.defaultWidth}}]),e}();function Ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Je(e){for(var t=1;t0?new Qe({cellMeasurerCache:i,columnIndexOffset:0,rowIndexOffset:l}):i,r._deferredMeasurementCacheBottomRightGrid=a>0||l>0?new Qe({cellMeasurerCache:i,columnIndexOffset:a,rowIndexOffset:l}):i,r._deferredMeasurementCacheTopRightGrid=a>0?new Qe({cellMeasurerCache:i,columnIndexOffset:a,rowIndexOffset:0}):i),r}return h()(t,e),a()(t,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,o=void 0===r?0:r;this._deferredInvalidateColumnIndex="number"===typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,n):n,this._deferredInvalidateRowIndex="number"===typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,o):o}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,o=void 0===r?0:r,i=this.props,a=i.fixedColumnCount,l=i.fixedRowCount,s=Math.max(0,n-a),c=Math.max(0,o-l);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:c}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:s,rowIndex:c}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:o}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:s,rowIndex:o}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(!0)}},{key:"componentDidMount",value:function(){var e=this.props,t=e.scrollLeft,n=e.scrollTop;if(t>0||n>0){var r={};t>0&&(r.scrollLeft=t),n>0&&(r.scrollTop=n),this.setState(r)}this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(){this._handleInvalidatedGridSize()}},{key:"render",value:function(){var e=this.props,t=e.onScroll,n=e.onSectionRendered,r=(e.onScrollbarPresenceChange,e.scrollLeft,e.scrollToColumn),o=(e.scrollTop,e.scrollToRow),i=k()(e,["onScroll","onSectionRendered","onScrollbarPresenceChange","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(this._prepareForRender(),0===this.props.width||0===this.props.height)return null;var a=this.state,l=a.scrollLeft,s=a.scrollTop;return v.createElement("div",{style:this._containerOuterStyle},v.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(i),this._renderTopRightGrid(Je({},i,{onScroll:t,scrollLeft:l}))),v.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(Je({},i,{onScroll:t,scrollTop:s})),this._renderBottomRightGrid(Je({},i,{onScroll:t,onSectionRendered:n,scrollLeft:l,scrollToColumn:r,scrollToRow:o,scrollTop:s}))))}},{key:"_getBottomGridHeight",value:function(e){return e.height-this._getTopGridHeight(e)}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,n=e.columnWidth;if(null==this._leftGridWidth)if("function"===typeof n){for(var r=0,o=0;o=0?e.scrollLeft:t.scrollLeft,scrollTop:null!=e.scrollTop&&e.scrollTop>=0?e.scrollTop:t.scrollTop}:null}}]),t}(v.PureComponent);g()(et,"defaultProps",{classNameBottomLeftGrid:"",classNameBottomRightGrid:"",classNameTopLeftGrid:"",classNameTopRightGrid:"",enableFixedColumnScroll:!1,enableFixedRowScroll:!1,fixedColumnCount:0,fixedRowCount:0,scrollToColumn:-1,scrollToRow:-1,style:{},styleBottomLeftGrid:{},styleBottomRightGrid:{},styleTopLeftGrid:{},styleTopRightGrid:{},hideTopRightGridScrollbar:!1,hideBottomLeftGridScrollbar:!1}),et.propTypes={},Object(y.polyfill)(et);var tt=function(e){function t(e,n){var r;return o()(this,t),(r=s()(this,u()(t).call(this,e,n))).state={clientHeight:0,clientWidth:0,scrollHeight:0,scrollLeft:0,scrollTop:0,scrollWidth:0},r._onScroll=r._onScroll.bind(d()(r)),r}return h()(t,e),a()(t,[{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.clientHeight,r=t.clientWidth,o=t.scrollHeight,i=t.scrollLeft,a=t.scrollTop,l=t.scrollWidth;return e({clientHeight:n,clientWidth:r,onScroll:this._onScroll,scrollHeight:o,scrollLeft:i,scrollTop:a,scrollWidth:l})}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.clientWidth,r=e.scrollHeight,o=e.scrollLeft,i=e.scrollTop,a=e.scrollWidth;this.setState({clientHeight:t,clientWidth:n,scrollHeight:r,scrollLeft:o,scrollTop:i,scrollWidth:a})}}]),t}(v.PureComponent);tt.propTypes={};function nt(e){var t=e.className,n=e.columns,r=e.style;return v.createElement("div",{className:t,role:"row",style:r},n)}nt.propTypes=null;var rt={ASC:"ASC",DESC:"DESC"};function ot(e){var t=e.sortDirection,n=Object(w.a)("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":t===rt.ASC,"ReactVirtualized__Table__sortableHeaderIcon--DESC":t===rt.DESC});return v.createElement("svg",{className:n,width:18,height:18,viewBox:"0 0 24 24"},t===rt.ASC?v.createElement("path",{d:"M7 14l5-5 5 5z"}):v.createElement("path",{d:"M7 10l5 5 5-5z"}),v.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}function it(e){var t=e.dataKey,n=e.label,r=e.sortBy,o=e.sortDirection,i=r===t,a=[v.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:"string"===typeof n?n:null},n)];return i&&a.push(v.createElement(ot,{key:"SortIndicator",sortDirection:o})),a}function at(e){var t=e.className,n=e.columns,r=e.index,o=e.key,i=e.onRowClick,a=e.onRowDoubleClick,l=e.onRowMouseOut,s=e.onRowMouseOver,c=e.onRowRightClick,u=e.rowData,f=e.style,d={"aria-rowindex":r+1};return(i||a||l||s||c)&&(d["aria-label"]="row",d.tabIndex=0,i&&(d.onClick=function(e){return i({event:e,index:r,rowData:u})}),a&&(d.onDoubleClick=function(e){return a({event:e,index:r,rowData:u})}),l&&(d.onMouseOut=function(e){return l({event:e,index:r,rowData:u})}),s&&(d.onMouseOver=function(e){return s({event:e,index:r,rowData:u})}),c&&(d.onContextMenu=function(e){return c({event:e,index:r,rowData:u})})),v.createElement("div",x()({},d,{className:t,key:o,role:"row",style:f}),n)}ot.propTypes={},it.propTypes=null,at.propTypes=null;var lt=function(e){function t(){return o()(this,t),s()(this,u()(t).apply(this,arguments))}return h()(t,e),t}(v.Component);function st(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ct(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,o=void 0===r?0:r;this.Grid&&this.Grid.recomputeGridSize({rowIndex:o,columnIndex:n})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"getScrollbarWidth",value:function(){if(this.Grid){var e=Object(le.findDOMNode)(this.Grid),t=e.clientWidth||0;return(e.offsetWidth||0)-t}return 0}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.className,o=t.disableHeader,i=t.gridClassName,a=t.gridStyle,l=t.headerHeight,s=t.headerRowRenderer,c=t.height,u=t.id,f=t.noRowsRenderer,d=t.rowClassName,p=t.rowStyle,h=t.scrollToIndex,m=t.style,g=t.width,y=this.state.scrollbarWidth,b=o?c:c-l,O="function"===typeof d?d({index:-1}):d,S="function"===typeof p?p({index:-1}):p;return this._cachedColumnStyles=[],v.Children.toArray(n).forEach((function(t,n){var r=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[n]=ct({overflow:"hidden"},r)})),v.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":v.Children.toArray(n).length,"aria-rowcount":this.props.rowCount,className:Object(w.a)("ReactVirtualized__Table",r),id:u,role:"grid",style:m},!o&&s({className:Object(w.a)("ReactVirtualized__Table__headerRow",O),columns:this._getHeaderColumns(),style:ct({height:l,overflow:"hidden",paddingRight:y,width:g},S)}),v.createElement($,x()({},this.props,{"aria-readonly":null,autoContainerWidth:!0,className:Object(w.a)("ReactVirtualized__Table__Grid",i),cellRenderer:this._createRow,columnWidth:g,columnCount:1,height:b,id:void 0,noContentRenderer:f,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:y,scrollToRow:h,style:ct({},a,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,n=e.columnIndex,r=e.isScrolling,o=e.parent,i=e.rowData,a=e.rowIndex,l=this.props.onColumnClick,s=t.props,c=s.cellDataGetter,u=s.cellRenderer,f=s.className,d=s.columnData,p=s.dataKey,h=s.id,m=u({cellData:c({columnData:d,dataKey:p,rowData:i}),columnData:d,columnIndex:n,dataKey:p,isScrolling:r,parent:o,rowData:i,rowIndex:a}),g=this._cachedColumnStyles[n],y="string"===typeof m?m:null;return v.createElement("div",{"aria-colindex":n+1,"aria-describedby":h,className:Object(w.a)("ReactVirtualized__Table__rowColumn",f),key:"Row"+a+"-Col"+n,onClick:function(e){l&&l({columnData:d,dataKey:p,event:e})},role:"gridcell",style:g,title:y},m)}},{key:"_createHeader",value:function(e){var t,n,r,o,i,a=e.column,l=e.index,s=this.props,c=s.headerClassName,u=s.headerStyle,f=s.onHeaderClick,d=s.sort,p=s.sortBy,h=s.sortDirection,m=a.props,g=m.columnData,y=m.dataKey,b=m.defaultSortDirection,x=m.disableSort,O=m.headerRenderer,S=m.id,k=m.label,_=!x&&d,C=Object(w.a)("ReactVirtualized__Table__headerColumn",c,a.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:_}),j=this._getFlexStyleForColumn(a,ct({},u,{},a.props.headerStyle)),E=O({columnData:g,dataKey:y,disableSort:x,label:k,sortBy:p,sortDirection:h});if(_||f){var M=p!==y?b:h===rt.DESC?rt.ASC:rt.DESC,P=function(e){_&&d({defaultSortDirection:b,event:e,sortBy:y,sortDirection:M}),f&&f({columnData:g,dataKey:y,event:e})};i=a.props["aria-label"]||k||y,o="none",r=0,t=P,n=function(e){"Enter"!==e.key&&" "!==e.key||P(e)}}return p===y&&(o=h===rt.ASC?"ascending":"descending"),v.createElement("div",{"aria-label":i,"aria-sort":o,className:C,id:S,key:"Header-Col"+l,onClick:t,onKeyDown:n,role:"columnheader",style:j,tabIndex:r},E)}},{key:"_createRow",value:function(e){var t=this,n=e.rowIndex,r=e.isScrolling,o=e.key,i=e.parent,a=e.style,l=this.props,s=l.children,c=l.onRowClick,u=l.onRowDoubleClick,f=l.onRowRightClick,d=l.onRowMouseOver,p=l.onRowMouseOut,h=l.rowClassName,m=l.rowGetter,g=l.rowRenderer,y=l.rowStyle,b=this.state.scrollbarWidth,x="function"===typeof h?h({index:n}):h,O="function"===typeof y?y({index:n}):y,S=m({index:n}),k=v.Children.toArray(s).map((function(e,o){return t._createColumn({column:e,columnIndex:o,isScrolling:r,parent:i,rowData:S,rowIndex:n,scrollbarWidth:b})})),_=Object(w.a)("ReactVirtualized__Table__row",x),C=ct({},a,{height:this._getRowHeight(n),overflow:"hidden",paddingRight:b},O);return g({className:_,columns:k,index:n,isScrolling:r,key:o,onRowClick:c,onRowDoubleClick:u,onRowRightClick:f,onRowMouseOver:d,onRowMouseOut:p,rowData:S,style:C})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="".concat(e.props.flexGrow," ").concat(e.props.flexShrink," ").concat(e.props.width,"px"),r=ct({},t,{flex:n,msFlex:n,WebkitFlex:n});return e.props.maxWidth&&(r.maxWidth=e.props.maxWidth),e.props.minWidth&&(r.minWidth=e.props.minWidth),r}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,n=t.children;return(t.disableHeader?[]:v.Children.toArray(n)).map((function(t,n){return e._createHeader({column:t,index:n})}))}},{key:"_getRowHeight",value:function(e){var t=this.props.rowHeight;return"function"===typeof t?t({index:e}):t}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,r=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:r})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,r=e.rowStartIndex,o=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:r,stopIndex:o})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setScrollbarWidth",value:function(){var e=this.getScrollbarWidth();this.setState({scrollbarWidth:e})}}]),t}(v.PureComponent);g()(ut,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:q,overscanRowCount:10,rowRenderer:at,headerRowRenderer:nt,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}),ut.propTypes={};var ft=[],dt=null,pt=null;function ht(){pt&&(pt=null,document.body&&null!=dt&&(document.body.style.pointerEvents=dt),dt=null)}function mt(){ht(),ft.forEach((function(e){return e.__resetIsScrolling()}))}function gt(e){e.currentTarget===window&&null==dt&&document.body&&(dt=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),function(){pt&&W(pt);var e=0;ft.forEach((function(t){e=Math.max(e,t.props.scrollingResetTimeInterval)})),pt=H(mt,e)}(),ft.forEach((function(t){t.props.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent()}))}function vt(e,t){ft.some((function(e){return e.props.scrollElement===t}))||t.addEventListener("scroll",gt),ft.push(e)}function yt(e,t){(ft=ft.filter((function(t){return t!==e}))).length||(t.removeEventListener("scroll",gt),pt&&(W(pt),ht()))}var bt,xt,wt=function(e){return e===window},Ot=function(e){return e.getBoundingClientRect()};function St(e,t){if(e){if(wt(e)){var n=window,r=n.innerHeight,o=n.innerWidth;return{height:"number"===typeof r?r:0,width:"number"===typeof o?o:0}}return Ot(e)}return{height:t.serverHeight,width:t.serverWidth}}function kt(e,t){if(wt(t)&&document.documentElement){var n=document.documentElement,r=Ot(e),o=Ot(n);return{top:r.top-o.top,left:r.left-o.left}}var i=_t(t),a=Ot(e),l=Ot(t);return{top:a.top+i.top-l.top,left:a.left+i.left-l.left}}function _t(e){return wt(e)&&document.documentElement?{top:"scrollY"in window?window.scrollY:document.documentElement.scrollTop,left:"scrollX"in window?window.scrollX:document.documentElement.scrollLeft}:{top:e.scrollTop,left:e.scrollLeft}}function Ct(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jt(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:this.props.scrollElement,t=this.props.onResize,n=this.state,r=n.height,o=n.width,i=this._child||le.findDOMNode(this);if(i instanceof Element&&e){var a=kt(i,e);this._positionFromTop=a.top,this._positionFromLeft=a.left}var l=St(e,this.props);r===l.height&&o===l.width||(this.setState({height:l.height,width:l.width}),t({height:l.height,width:l.width}))}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement;this._detectElementResize=Object(te.a)(),this.updatePosition(e),e&&(vt(this,e),this._registerResizeListener(e)),this._isMounted=!0}},{key:"componentDidUpdate",value:function(e,t){var n=this.props.scrollElement,r=e.scrollElement;r!==n&&null!=r&&null!=n&&(this.updatePosition(n),yt(this,r),vt(this,n),this._unregisterResizeListener(r),this._registerResizeListener(n))}},{key:"componentWillUnmount",value:function(){var e=this.props.scrollElement;e&&(yt(this,e),this._unregisterResizeListener(e)),this._isMounted=!1}},{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.isScrolling,r=t.scrollTop,o=t.scrollLeft,i=t.height,a=t.width;return e({onChildScroll:this._onChildScroll,registerChild:this._registerChild,height:i,isScrolling:n,scrollLeft:o,scrollTop:r,width:a})}}]),t}(v.PureComponent),g()(bt,"propTypes",null),xt);g()(Mt,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:150,scrollElement:Et(),serverHeight:0,serverWidth:0})},function(e,t,n){"use strict";var r=n(4),o=n(10),i=n(1),a=(n(9),n(6)),l=n(14),s=n(19),c={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},u=i.forwardRef((function(e,t){var n=e.align,l=void 0===n?"inherit":n,u=e.classes,f=e.className,d=e.color,p=void 0===d?"initial":d,h=e.component,m=e.display,g=void 0===m?"initial":m,v=e.gutterBottom,y=void 0!==v&&v,b=e.noWrap,x=void 0!==b&&b,w=e.paragraph,O=void 0!==w&&w,S=e.variant,k=void 0===S?"body1":S,_=e.variantMapping,C=void 0===_?c:_,j=Object(o.a)(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),E=h||(O?"p":C[k]||c[k])||"span";return i.createElement(E,Object(r.a)({className:Object(a.a)(u.root,f,"inherit"!==k&&u[k],"initial"!==p&&u["color".concat(Object(s.a)(p))],x&&u.noWrap,y&&u.gutterBottom,O&&u.paragraph,"inherit"!==l&&u["align".concat(Object(s.a)(l))],"initial"!==g&&u["display".concat(Object(s.a)(g))]),ref:t},j))}));t.a=Object(l.a)((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(u)},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==e&&void 0!==e&&this.setState(e)}function o(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!==n&&void 0!==n?n:null}.bind(this))}function i(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function a(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!==typeof e.getDerivedStateFromProps&&"function"!==typeof t.getSnapshotBeforeUpdate)return e;var n=null,a=null,l=null;if("function"===typeof t.componentWillMount?n="componentWillMount":"function"===typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"===typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"===typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"===typeof t.componentWillUpdate?l="componentWillUpdate":"function"===typeof t.UNSAFE_componentWillUpdate&&(l="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==l){var s=e.displayName||e.name,c="function"===typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+s+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==a?"\n "+a:"")+(null!==l?"\n "+l:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"===typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=o),"function"===typeof t.getSnapshotBeforeUpdate){if("function"!==typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=i;var u=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;u.call(this,e,t,r)}}return e}n.r(t),n.d(t,"polyfill",(function(){return a})),r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},function(e,t,n){"use strict";function r(e){var t=e.props,n=e.states,r=e.muiFormControl;return n.reduce((function(e,n){return e[n]=t[n],r&&"undefined"===typeof t[n]&&(e[n]=r[n]),e}),{})}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return p})),n.d(t,"d",(function(){return h})),n.d(t,"c",(function(){return m})),n.d(t,"a",(function(){return v}));var r=n(198),o=n.n(r),i=n(333),a=n.n(i),l=n(22),s=n(34);function c(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,r=t.position;if(void 0!==e){if(r)switch(r){case"start":return this.scale(e);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+o;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(e)+i;default:return this.scale(e)}if(n){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+a}return this.scale(e)}}},{key:"isInRange",value:function(e){var t=this.range(),n=t[0],r=t[t.length-1];return n<=r?e>=n&&e<=r:e>=r&&e<=n}}])&&c(t.prototype,n),r&&c(t,r),e}();g.EPS=1e-4;var v=function(e){var t=Object.keys(e).reduce((function(t,n){return f(f({},t),{},d({},n,g.create(e[n])))}),{});return f(f({},t),{},{apply:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware;return a()(e,(function(e,n){return t[n].apply(e,{bandAware:r})}))},isInRange:function(e){return o()(e,(function(e,n){return t[n].isInRange(e)}))}})}},function(e,t,n){"use strict";n.d(t,"b",(function(){return S}));var r=n(1),o=n.n(r),i=n(9),a=n.n(i),l=n(334),s=n(121),c=n.n(s);function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1,r=function r(o){n<0&&(n=o),o-n>t?(e(o),n=-1):c()(r)};c()(r)}function f(e){return(f="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(e,t)}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0&&e<=1}));var u=A(r,i),f=A(o,a),d=R(r,i),p=function(e){return e>1?1:e<0?0:e},h=function(e){for(var t=e>1?1:e,n=t,r=0;r<8;++r){var o=u(n)-t,i=d(n);if(Math.abs(o-t)0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiff,n=void 0===t?100:t,r=e.damping,o=void 0===r?8:r,i=e.dt,a=void 0===i?17:i,l=function(e,t,r){var i=r+(-(e-t)*n-r*o)*a/1e3,l=r*a/1e3+e;return Math.abs(l-t)e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function K(e){return function(e){if(Array.isArray(e))return X(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return X(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return X(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function X(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?n[o-1]:r,d=c||Object.keys(s);if("function"===typeof l||"spring"===l)return[].concat(K(e),[t.runJSAnimation.bind(t,{from:f.style,to:s,duration:i,easing:l}),i]);var p=k(d,i,l),h=Z(Z(Z({},f.style),s),{},{transition:p});return[].concat(K(e),[h,i,u]).filter(w)}),[a,Math.max(s,r)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){this.manager||(this.manager=h());var t=e.begin,n=e.duration,r=e.attributeName,o=e.to,i=e.easing,a=e.onAnimationStart,l=e.onAnimationEnd,s=e.steps,c=e.children,u=this.manager;if(this.unSubscribe=u.subscribe(this.handleStyleChange),"function"!==typeof i&&"function"!==typeof c&&"spring"!==i)if(s.length>1)this.runStepAnimation(e);else{var f=r?J({},r,o):o,d=k(Object.keys(f),n,i);u.start([a,t,Z(Z({},f),{},{transition:d}),n,l])}else this.runJSAnimation(e)}},{key:"handleStyleChange",value:function(e){this.changeStyle(e)}},{key:"changeStyle",value:function(e){this.mounted&&this.setState({style:e})}},{key:"render",value:function(){var e=this.props,t=e.children,n=(e.begin,e.duration,e.attributeName,e.easing,e.isActive),i=(e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart,q(e,["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"])),a=r.Children.count(t),l=S(this.state.style);if("function"===typeof t)return t(l);if(!n||0===a)return t;var s=function(e){var t=e.props,n=t.style,o=void 0===n?{}:n,a=t.className;return Object(r.cloneElement)(e,Z(Z({},i),{},{style:Z(Z({},o),l),className:a}))};return 1===a?s(r.Children.only(t)):o.a.createElement("div",null,r.Children.map(t,(function(e){return s(e)})))}}])&&ee(t.prototype,n),i&&ee(t,i),s}(r.PureComponent);ae.displayName="Animate",ae.propTypes={from:a.a.oneOfType([a.a.object,a.a.string]),to:a.a.oneOfType([a.a.object,a.a.string]),attributeName:a.a.string,duration:a.a.number,begin:a.a.number,easing:a.a.oneOfType([a.a.string,a.a.func]),steps:a.a.arrayOf(a.a.shape({duration:a.a.number.isRequired,style:a.a.object.isRequired,easing:a.a.oneOfType([a.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),a.a.func]),properties:a.a.arrayOf("string"),onAnimationEnd:a.a.func})),children:a.a.oneOfType([a.a.node,a.a.func]),isActive:a.a.bool,canBegin:a.a.bool,onAnimationEnd:a.a.func,shouldReAnimate:a.a.bool,onAnimationStart:a.a.func,onAnimationReStart:a.a.func},ae.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};var le=ae,se=n(199);function ce(e){return(ce="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ue(){return(ue=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function de(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pe(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.steps,n=e.duration;return t&&t.length?t.reduce((function(e,t){return e+(Number.isFinite(t.duration)&&t.duration>0?t.duration:0)}),0):Number.isFinite(n)?n:0},Oe=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ve(e,t)}(l,e);var t,n,i,a=ye(l);function l(){var e;me(this,l);for(var t=arguments.length,n=new Array(t),r=0;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0&&o===+o?"".concat(o,"px"):o),";");var r,o,i}),"")},h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(void 0===e||null===e||r.a.isSsr)return{width:0,height:0};var n="".concat(e),o=p(t),a="".concat(n,"-").concat(o);if(c.widthCache[a])return c.widthCache[a];try{var l=document.getElementById(d);l||((l=document.createElement("span")).setAttribute("id",d),l.setAttribute("aria-hidden","true"),document.body.appendChild(l));var s=i(i({},u),t);Object.keys(s).map((function(e){return l.style[e]=s[e],e})),l.textContent=n;var f=l.getBoundingClientRect(),h={width:f.width,height:f.height};return c.widthCache[a]=h,++c.cacheCount>2e3&&(c.cacheCount=0,c.widthCache={}),h}catch(m){return{width:0,height:0}}},m=function(e){var t=e.ownerDocument.documentElement,n={top:0,left:0};return"undefined"!==typeof e.getBoundingClientRect&&(n=e.getBoundingClientRect()),{top:n.top+window.pageYOffset-t.clientTop,left:n.left+window.pageXOffset-t.clientLeft}},g=function(e,t){return{chartX:Math.round(e.pageX-t.left),chartY:Math.round(e.pageY-t.top)}}},,function(e,t,n){var r=n(494),o=n(518),i=n(136),a=n(30),l=n(521);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):r(e):l(e)}},function(e,t,n){var r=n(265),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(1);function o(e){var t=e.controlled,n=e.default,o=(e.name,e.state,r.useRef(void 0!==t).current),i=r.useState(n),a=i[0],l=i[1];return[o?t:a,r.useCallback((function(e){o||l(e)}),[])]}},function(e,t,n){var r=n(235);e.exports=function(e,t){return r(e,t)}},function(e,t,n){var r;if("object"===typeof globalThis)r=globalThis;else try{r=n(581)}catch(l){}finally{if(r||"undefined"===typeof window||(r=window),!r)throw new Error("Could not determine global this")}var o=r.WebSocket||r.MozWebSocket,i=n(582);function a(e,t){return t?new o(e,t):new o(e)}o&&["CONNECTING","OPEN","CLOSING","CLOSED"].forEach((function(e){Object.defineProperty(a,e,{get:function(){return o[e]}})})),e.exports={w3cwebsocket:o?a:null,version:i}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(155);var o=n(311),i=n(188);function a(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(o.a)(e)||Object(i.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i}));var r=n(1),o=r.createContext();function i(){return r.useContext(o)}t.a=o},function(e,t,n){"use strict";var r=n(1),o=r.createContext({});t.a=o},function(e,t,n){"use strict";var r=n(106);t.a=function(e){return(e=Object(r.b)(Math.abs(e)))?e[1]:NaN}},function(e,t,n){var r=n(180),o=n(302),i=n(136);e.exports=function(e){return e&&e.length?r(e,i,o):void 0}},,function(e,t,n){var r=n(150),o=n(420),i=n(421),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";t.a=function(e,t){}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},function(e,t,n){var r=n(62),o=n(461),i=n(271),a=Math.max,l=Math.min;e.exports=function(e,t,n){var s,c,u,f,d,p,h=0,m=!1,g=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=s,r=c;return s=c=void 0,h=t,f=e.apply(r,n)}function b(e){return h=e,d=setTimeout(w,t),m?y(e):f}function x(e){var n=e-p;return void 0===p||n>=t||n<0||g&&e-h>=u}function w(){var e=o();if(x(e))return O(e);d=setTimeout(w,function(e){var n=t-(e-p);return g?l(n,u-(e-h)):n}(e))}function O(e){return d=void 0,v&&s?y(e):(s=c=void 0,f)}function S(){var e=o(),n=x(e);if(s=arguments,c=this,p=e,n){if(void 0===d)return b(p);if(g)return clearTimeout(d),d=setTimeout(w,t),y(p)}return void 0===d&&(d=setTimeout(w,t)),f}return t=i(t)||0,r(n)&&(m=!!n.leading,u=(g="maxWait"in n)?a(i(n.maxWait)||0,t):u,v="trailing"in n?!!n.trailing:v),S.cancel=function(){void 0!==d&&clearTimeout(d),h=0,s=p=c=d=void 0},S.flush=function(){return void 0===d?f:O(o())},S}},function(e,t,n){"use strict";var r=n(181),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},l={};function s(e){return r.isMemo(e)?a:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=u(n);f&&(a=a.concat(f(n)));for(var l=s(t),m=s(n),g=0;g1?r[0]+r.slice(2):r,+e.slice(n+1)]}n.d(t,"b",(function(){return r})),t.a=function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return te}));var r=n(30),o=n.n(r),i=n(127),a=n.n(i),l=n(21),s=n.n(l),c=n(1),u=n.n(c),f=function(){};function d(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function p(e){this._context=e}p.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:d(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:d(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function h(e){this._context=e}h.prototype={areaStart:f,areaEnd:f,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:d(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function m(e){this._context=e}m.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:d(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function g(e){this._context=e}g.prototype={areaStart:f,areaEnd:f,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function v(e){this._context=e}v.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};var y=function(e){return new v(e)};function b(e){return e<0?-1:1}function x(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0),l=(i*o+a*r)/(r+o);return(b(i)+b(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(l))||0}function w(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function O(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,l=(i-r)/3;e._context.bezierCurveTo(r+l,o+l*t,i-l,a-l*n,i,a)}function S(e){this._context=e}function k(e){this._context=new _(e)}function _(e){this._context=e}function C(e){this._context=e}function j(e){var t,n,r=e.length-1,o=new Array(r),i=new Array(r),a=new Array(r);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[r-1]=(e[r]+o[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var M=n(671),P=n(143),T=n(43);function A(e){return e[0]}function R(e){return e[1]}var D=function(e,t){var n=Object(T.a)(!0),r=null,o=y,i=null;function a(a){var l,s,c,u=(a=Object(P.a)(a)).length,f=!1;for(null==r&&(i=o(c=Object(M.a)())),l=0;l<=u;++l)!(l=u;--f)l.point(g[f],v[f]);l.lineEnd(),l.areaEnd()}m&&(g[c]=+e(d,c,s),v[c]=+t(d,c,s),l.point(r?+r(d,c,s):g[c],n?+n(d,c,s):v[c]))}if(p)return l=null,p+""||null}function c(){return D().defined(o).curve(a).context(i)}return e="function"===typeof e?e:void 0===e?A:Object(T.a)(+e),t="function"===typeof t?t:void 0===t?Object(T.a)(0):Object(T.a)(+t),n="function"===typeof n?n:void 0===n?R:Object(T.a)(+n),s.x=function(t){return arguments.length?(e="function"===typeof t?t:Object(T.a)(+t),r=null,s):e},s.x0=function(t){return arguments.length?(e="function"===typeof t?t:Object(T.a)(+t),s):e},s.x1=function(e){return arguments.length?(r=null==e?null:"function"===typeof e?e:Object(T.a)(+e),s):r},s.y=function(e){return arguments.length?(t="function"===typeof e?e:Object(T.a)(+e),n=null,s):t},s.y0=function(e){return arguments.length?(t="function"===typeof e?e:Object(T.a)(+e),s):t},s.y1=function(e){return arguments.length?(n=null==e?null:"function"===typeof e?e:Object(T.a)(+e),s):n},s.lineX0=s.lineY0=function(){return c().x(e).y(t)},s.lineY1=function(){return c().x(e).y(n)},s.lineX1=function(){return c().x(r).y(t)},s.defined=function(e){return arguments.length?(o="function"===typeof e?e:Object(T.a)(!!e),s):o},s.curve=function(e){return arguments.length?(a=e,null!=i&&(l=a(i)),s):a},s.context=function(e){return arguments.length?(null==e?i=l=null:l=a(i=e),s):i},s},N=n(25),L=n.n(N),z=n(18),F=n(11);function W(e){return(W="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function H(){return(H=Object.assign||function(e){for(var t=1;t>>0;for(t=0;t0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var N=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,L=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,z={},F={};function W(e,t,n,r){var o=r;"string"===typeof r&&(o=function(){return this[r]()}),e&&(F[e]=o),t&&(F[t[0]]=function(){return I(o.apply(this,arguments),t[1],t[2])}),n&&(F[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function H(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function B(e){var t,n,r=e.match(N);for(t=0,n=r.length;t=0&&L.test(e);)e=e.replace(L,r),L.lastIndex=0,n-=1;return e}var G={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Y(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(N).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var $="Invalid date";function q(){return this._invalidDate}var K="%d",X=/\d{1,2}/;function Q(e){return this._ordinal.replace("%d",e)}var Z={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function J(e,t,n,r){var o=this._relativeTime[n];return M(o)?o(e,t,n,r):o.replace(/%d/i,e)}function ee(e,t){var n=this._relativeTime[e>0?"future":"past"];return M(n)?n(t):n.replace(/%s/i,t)}var te={};function ne(e,t){var n=e.toLowerCase();te[n]=te[n+"s"]=te[t]=e}function re(e){return"string"===typeof e?te[e]||te[e.toLowerCase()]:void 0}function oe(e){var t,n,r={};for(n in e)l(e,n)&&(t=re(n))&&(r[t]=e[n]);return r}var ie={};function ae(e,t){ie[e]=t}function le(e){var t,n=[];for(t in e)l(e,t)&&n.push({unit:t,priority:ie[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}function se(e){return e%4===0&&e%100!==0||e%400===0}function ce(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ue(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=ce(t)),n}function fe(e,t){return function(n){return null!=n?(pe(this,e,n),r.updateOffset(this,t),this):de(this,e)}}function de(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function pe(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&se(e.year())&&1===e.month()&&29===e.date()?(n=ue(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Je(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function he(e){return M(this[e=re(e)])?this[e]():this}function me(e,t){if("object"===typeof e){var n,r=le(e=oe(e));for(n=0;n68?1900:2e3)};var gt=fe("FullYear",!0);function vt(){return se(this.year())}function yt(e,t,n,r,o,i,a){var l;return e<100&&e>=0?(l=new Date(e+400,t,n,r,o,i,a),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,n,r,o,i,a),l}function bt(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function xt(e,t,n){var r=7+t-n;return-(7+bt(e,0,r).getUTCDay()-t)%7+r-1}function wt(e,t,n,r,o){var i,a,l=1+7*(t-1)+(7+n-r)%7+xt(e,r,o);return l<=0?a=mt(i=e-1)+l:l>mt(e)?(i=e+1,a=l-mt(e)):(i=e,a=l),{year:i,dayOfYear:a}}function Ot(e,t,n){var r,o,i=xt(e.year(),t,n),a=Math.floor((e.dayOfYear()-i-1)/7)+1;return a<1?r=a+St(o=e.year()-1,t,n):a>St(e.year(),t,n)?(r=a-St(e.year(),t,n),o=e.year()+1):(o=e.year(),r=a),{week:r,year:o}}function St(e,t,n){var r=xt(e,t,n),o=xt(e+1,t,n);return(mt(e)-r+o)/7}function kt(e){return Ot(e,this._week.dow,this._week.doy).week}W("w",["ww",2],"wo","week"),W("W",["WW",2],"Wo","isoWeek"),ne("week","w"),ne("isoWeek","W"),ae("week",5),ae("isoWeek",5),De("w",Oe),De("ww",Oe,ye),De("W",Oe),De("WW",Oe,ye),We(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=ue(e)}));var _t={dow:0,doy:6};function Ct(){return this._week.dow}function jt(){return this._week.doy}function Et(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Mt(e){var t=Ot(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Pt(e,t){return"string"!==typeof e?e:isNaN(e)?"number"===typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Tt(e,t){return"string"===typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function At(e,t){return e.slice(t,7).concat(e.slice(0,t))}W("d",0,"do","day"),W("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),W("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),W("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),W("e",0,0,"weekday"),W("E",0,0,"isoWeekday"),ne("day","d"),ne("weekday","e"),ne("isoWeekday","E"),ae("day",11),ae("weekday",11),ae("isoWeekday",11),De("d",Oe),De("e",Oe),De("E",Oe),De("dd",(function(e,t){return t.weekdaysMinRegex(e)})),De("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),De("dddd",(function(e,t){return t.weekdaysRegex(e)})),We(["dd","ddd","dddd"],(function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);null!=o?t.d=o:g(n).invalidWeekday=e})),We(["d","e","E"],(function(e,t,n,r){t[r]=ue(e)}));var Rt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Dt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),It="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Nt=Re,Lt=Re,zt=Re;function Ft(e,t){var n=i(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?At(n,this._week.dow):e?n[e.day()]:n}function Wt(e){return!0===e?At(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ht(e){return!0===e?At(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Bt(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=h([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=Be.call(this._weekdaysParse,a))?o:null:"ddd"===t?-1!==(o=Be.call(this._shortWeekdaysParse,a))?o:null:-1!==(o=Be.call(this._minWeekdaysParse,a))?o:null:"dddd"===t?-1!==(o=Be.call(this._weekdaysParse,a))||-1!==(o=Be.call(this._shortWeekdaysParse,a))||-1!==(o=Be.call(this._minWeekdaysParse,a))?o:null:"ddd"===t?-1!==(o=Be.call(this._shortWeekdaysParse,a))||-1!==(o=Be.call(this._weekdaysParse,a))||-1!==(o=Be.call(this._minWeekdaysParse,a))?o:null:-1!==(o=Be.call(this._minWeekdaysParse,a))||-1!==(o=Be.call(this._weekdaysParse,a))||-1!==(o=Be.call(this._shortWeekdaysParse,a))?o:null}function Vt(e,t,n){var r,o,i;if(this._weekdaysParseExact)return Bt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=h([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Ut(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Pt(e,this.localeData()),this.add(e-t,"d")):t}function Gt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Yt(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Tt(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function $t(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=Nt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function qt(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Lt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Kt(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=zt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Xt(){function e(e,t){return t.length-e.length}var t,n,r,o,i,a=[],l=[],s=[],c=[];for(t=0;t<7;t++)n=h([2e3,1]).day(t),r=Le(this.weekdaysMin(n,"")),o=Le(this.weekdaysShort(n,"")),i=Le(this.weekdays(n,"")),a.push(r),l.push(o),s.push(i),c.push(r),c.push(o),c.push(i);a.sort(e),l.sort(e),s.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Qt(){return this.hours()%12||12}function Zt(){return this.hours()||24}function Jt(e,t){W(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function en(e,t){return t._meridiemParse}function tn(e){return"p"===(e+"").toLowerCase().charAt(0)}W("H",["HH",2],0,"hour"),W("h",["hh",2],0,Qt),W("k",["kk",2],0,Zt),W("hmm",0,0,(function(){return""+Qt.apply(this)+I(this.minutes(),2)})),W("hmmss",0,0,(function(){return""+Qt.apply(this)+I(this.minutes(),2)+I(this.seconds(),2)})),W("Hmm",0,0,(function(){return""+this.hours()+I(this.minutes(),2)})),W("Hmmss",0,0,(function(){return""+this.hours()+I(this.minutes(),2)+I(this.seconds(),2)})),Jt("a",!0),Jt("A",!1),ne("hour","h"),ae("hour",13),De("a",en),De("A",en),De("H",Oe),De("h",Oe),De("k",Oe),De("HH",Oe,ye),De("hh",Oe,ye),De("kk",Oe,ye),De("hmm",Se),De("hmmss",ke),De("Hmm",Se),De("Hmmss",ke),Fe(["H","HH"],Ye),Fe(["k","kk"],(function(e,t,n){var r=ue(e);t[Ye]=24===r?0:r})),Fe(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),Fe(["h","hh"],(function(e,t,n){t[Ye]=ue(e),g(n).bigHour=!0})),Fe("hmm",(function(e,t,n){var r=e.length-2;t[Ye]=ue(e.substr(0,r)),t[$e]=ue(e.substr(r)),g(n).bigHour=!0})),Fe("hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[Ye]=ue(e.substr(0,r)),t[$e]=ue(e.substr(r,2)),t[qe]=ue(e.substr(o)),g(n).bigHour=!0})),Fe("Hmm",(function(e,t,n){var r=e.length-2;t[Ye]=ue(e.substr(0,r)),t[$e]=ue(e.substr(r))})),Fe("Hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[Ye]=ue(e.substr(0,r)),t[$e]=ue(e.substr(r,2)),t[qe]=ue(e.substr(o))}));var nn=/[ap]\.?m?\.?/i,rn=fe("Hours",!0);function on(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var an,ln={calendar:R,longDateFormat:G,invalidDate:$,ordinal:K,dayOfMonthOrdinalParse:X,relativeTime:Z,months:et,monthsShort:tt,week:_t,weekdays:Rt,weekdaysMin:It,weekdaysShort:Dt,meridiemParse:nn},sn={},cn={};function un(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(r=pn(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&un(o,n)>=t-1)break;t--}i++}return an}function pn(t){var n=null;if(void 0===sn[t]&&"undefined"!==typeof e&&e&&e.exports)try{n=an._abbr,function(){var e=new Error("Cannot find module 'undefined'");throw e.code="MODULE_NOT_FOUND",e}(),hn(n)}catch(r){sn[t]=null}return sn[t]}function hn(e,t){var n;return e&&((n=c(t)?vn(e):mn(e,t))?an=n:"undefined"!==typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),an._abbr}function mn(e,t){if(null!==t){var n,r=ln;if(t.abbr=e,null!=sn[e])E("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=sn[e]._config;else if(null!=t.parentLocale)if(null!=sn[t.parentLocale])r=sn[t.parentLocale]._config;else{if(null==(n=pn(t.parentLocale)))return cn[t.parentLocale]||(cn[t.parentLocale]=[]),cn[t.parentLocale].push({name:e,config:t}),null;r=n._config}return sn[e]=new A(T(r,t)),cn[e]&&cn[e].forEach((function(e){mn(e.name,e.config)})),hn(e),sn[e]}return delete sn[e],null}function gn(e,t){if(null!=t){var n,r,o=ln;null!=sn[e]&&null!=sn[e].parentLocale?sn[e].set(T(sn[e]._config,t)):(null!=(r=pn(e))&&(o=r._config),t=T(o,t),null==r&&(t.abbr=e),(n=new A(t)).parentLocale=sn[e],sn[e]=n),hn(e)}else null!=sn[e]&&(null!=sn[e].parentLocale?(sn[e]=sn[e].parentLocale,e===hn()&&hn(e)):null!=sn[e]&&delete sn[e]);return sn[e]}function vn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return an;if(!i(e)){if(t=pn(e))return t;e=[e]}return dn(e)}function yn(){return C(sn)}function bn(e){var t,n=e._a;return n&&-2===g(e).overflow&&(t=n[Ue]<0||n[Ue]>11?Ue:n[Ge]<1||n[Ge]>Je(n[Ve],n[Ue])?Ge:n[Ye]<0||n[Ye]>24||24===n[Ye]&&(0!==n[$e]||0!==n[qe]||0!==n[Ke])?Ye:n[$e]<0||n[$e]>59?$e:n[qe]<0||n[qe]>59?qe:n[Ke]<0||n[Ke]>999?Ke:-1,g(e)._overflowDayOfYear&&(tGe)&&(t=Ge),g(e)._overflowWeeks&&-1===t&&(t=Xe),g(e)._overflowWeekday&&-1===t&&(t=Qe),g(e).overflow=t),e}var xn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,wn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,On=/Z|[+-]\d\d(?::?\d\d)?/,Sn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],kn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],_n=/^\/?Date\((-?\d+)/i,Cn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,jn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function En(e){var t,n,r,o,i,a,l=e._i,s=xn.exec(l)||wn.exec(l);if(s){for(g(e).iso=!0,t=0,n=Sn.length;tmt(i)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),n=bt(i,0,e._dayOfYear),e._a[Ue]=n.getUTCMonth(),e._a[Ge]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=r[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Ye]&&0===e._a[$e]&&0===e._a[qe]&&0===e._a[Ke]&&(e._nextDay=!0,e._a[Ye]=0),e._d=(e._useUTC?bt:yt).apply(null,a),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ye]=24),e._w&&"undefined"!==typeof e._w.d&&e._w.d!==o&&(g(e).weekdayMismatch=!0)}}function Fn(e){var t,n,r,o,i,a,l,s,c;null!=(t=e._w).GG||null!=t.W||null!=t.E?(i=1,a=4,n=Nn(t.GG,e._a[Ve],Ot(qn(),1,4).year),r=Nn(t.W,1),((o=Nn(t.E,1))<1||o>7)&&(s=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,c=Ot(qn(),i,a),n=Nn(t.gg,e._a[Ve],c.year),r=Nn(t.w,c.week),null!=t.d?((o=t.d)<0||o>6)&&(s=!0):null!=t.e?(o=t.e+i,(t.e<0||t.e>6)&&(s=!0)):o=i),r<1||r>St(n,i,a)?g(e)._overflowWeeks=!0:null!=s?g(e)._overflowWeekday=!0:(l=wt(n,r,o,i,a),e._a[Ve]=l.year,e._dayOfYear=l.dayOfYear)}function Wn(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],g(e).empty=!0;var t,n,o,i,a,l,s=""+e._i,c=s.length,u=0;for(o=U(e._f,e._locale).match(N)||[],t=0;t0&&g(e).unusedInput.push(a),s=s.slice(s.indexOf(n)+n.length),u+=n.length),F[i]?(n?g(e).empty=!1:g(e).unusedTokens.push(i),He(i,n,e)):e._strict&&!n&&g(e).unusedTokens.push(i);g(e).charsLeftOver=c-u,s.length>0&&g(e).unusedInput.push(s),e._a[Ye]<=12&&!0===g(e).bigHour&&e._a[Ye]>0&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,e._a[Ye]=Hn(e._locale,e._a[Ye],e._meridiem),null!==(l=g(e).era)&&(e._a[Ve]=e._locale.erasConvertYear(l,e._a[Ve])),zn(e),bn(e)}else Dn(e);else En(e)}function Hn(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function Bn(e){var t,n,r,o,i,a,l=!1;if(0===e._f.length)return g(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;othis?this:e:y()}));function Qn(e,t){var n,r;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return qn();for(n=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function wr(){if(!c(this._isDSTShifted))return this._isDSTShifted;var e,t={};return w(t,this),(t=Gn(t))._a?(e=t._isUTC?h(t._a):qn(t._a),this._isDSTShifted=this.isValid()&&sr(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Or(){return!!this.isValid()&&!this._isUTC}function Sr(){return!!this.isValid()&&this._isUTC}function kr(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var _r=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Cr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function jr(e,t){var n,r,o,i=e,a=null;return ar(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:u(e)||!isNaN(+e)?(i={},t?i[t]=+e:i.milliseconds=+e):(a=_r.exec(e))?(n="-"===a[1]?-1:1,i={y:0,d:ue(a[Ge])*n,h:ue(a[Ye])*n,m:ue(a[$e])*n,s:ue(a[qe])*n,ms:ue(lr(1e3*a[Ke]))*n}):(a=Cr.exec(e))?(n="-"===a[1]?-1:1,i={y:Er(a[2],n),M:Er(a[3],n),w:Er(a[4],n),d:Er(a[5],n),h:Er(a[6],n),m:Er(a[7],n),s:Er(a[8],n)}):null==i?i={}:"object"===typeof i&&("from"in i||"to"in i)&&(o=Pr(qn(i.from),qn(i.to)),(i={}).ms=o.milliseconds,i.M=o.months),r=new ir(i),ar(e)&&l(e,"_locale")&&(r._locale=e._locale),ar(e)&&l(e,"_isValid")&&(r._isValid=e._isValid),r}function Er(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Mr(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Pr(e,t){var n;return e.isValid()&&t.isValid()?(t=dr(t,e),e.isBefore(t)?n=Mr(e,t):((n=Mr(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Tr(e,t){return function(n,r){var o;return null===r||isNaN(+r)||(E(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),Ar(this,jr(n,r),e),this}}function Ar(e,t,n,o){var i=t._milliseconds,a=lr(t._days),l=lr(t._months);e.isValid()&&(o=null==o||o,l&&ct(e,de(e,"Month")+l*n),a&&pe(e,"Date",de(e,"Date")+a*n),i&&e._d.setTime(e._d.valueOf()+i*n),o&&r.updateOffset(e,a||l))}jr.fn=ir.prototype,jr.invalid=or;var Rr=Tr(1,"add"),Dr=Tr(-1,"subtract");function Ir(e){return"string"===typeof e||e instanceof String}function Nr(e){return S(e)||f(e)||Ir(e)||u(e)||zr(e)||Lr(e)||null===e||void 0===e}function Lr(e){var t,n,r=a(e)&&!s(e),o=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(t=0;tn.valueOf():n.valueOf()9999?V(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):M(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",V(n,"Z")):V(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Jr(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,o="moment",i="";return this.isLocal()||(o=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),e="["+o+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=i+'[")]',this.format(e+t+n+r)}function eo(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=V(this,e);return this.localeData().postformat(t)}function to(e,t){return this.isValid()&&(S(e)&&e.isValid()||qn(e).isValid())?jr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function no(e){return this.from(qn(),e)}function ro(e,t){return this.isValid()&&(S(e)&&e.isValid()||qn(e).isValid())?jr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function oo(e){return this.to(qn(),e)}function io(e){var t;return void 0===e?this._locale._abbr:(null!=(t=vn(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ao=_("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function lo(){return this._locale}var so=1e3,co=60*so,uo=60*co,fo=3506328*uo;function po(e,t){return(e%t+t)%t}function ho(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-fo:new Date(e,t,n).valueOf()}function mo(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-fo:Date.UTC(e,t,n)}function go(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?mo:ho,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=po(t+(this._isUTC?0:this.utcOffset()*co),uo);break;case"minute":t=this._d.valueOf(),t-=po(t,co);break;case"second":t=this._d.valueOf(),t-=po(t,so)}return this._d.setTime(t),r.updateOffset(this,!0),this}function vo(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?mo:ho,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=uo-po(t+(this._isUTC?0:this.utcOffset()*co),uo)-1;break;case"minute":t=this._d.valueOf(),t+=co-po(t,co)-1;break;case"second":t=this._d.valueOf(),t+=so-po(t,so)-1}return this._d.setTime(t),r.updateOffset(this,!0),this}function yo(){return this._d.valueOf()-6e4*(this._offset||0)}function bo(){return Math.floor(this.valueOf()/1e3)}function xo(){return new Date(this.valueOf())}function wo(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Oo(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function So(){return this.isValid()?this.toISOString():null}function ko(){return v(this)}function _o(){return p({},g(this))}function Co(){return g(this).overflow}function jo(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Eo(e,t){var n,o,i,a=this._eras||vn("en")._eras;for(n=0,o=a.length;n=0)return s[r]}function Po(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n}function To(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e(i=St(e,r,o))&&(t=i),Qo.call(this,e,t,n,r,o))}function Qo(e,t,n,r,o){var i=wt(e,t,n,r,o),a=bt(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Zo(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}W("N",0,0,"eraAbbr"),W("NN",0,0,"eraAbbr"),W("NNN",0,0,"eraAbbr"),W("NNNN",0,0,"eraName"),W("NNNNN",0,0,"eraNarrow"),W("y",["y",1],"yo","eraYear"),W("y",["yy",2],0,"eraYear"),W("y",["yyy",3],0,"eraYear"),W("y",["yyyy",4],0,"eraYear"),De("N",zo),De("NN",zo),De("NNN",zo),De("NNNN",Fo),De("NNNNN",Wo),Fe(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);o?g(n).era=o:g(n).invalidEra=e})),De("y",Ee),De("yy",Ee),De("yyy",Ee),De("yyyy",Ee),De("yo",Ho),Fe(["y","yy","yyy","yyyy"],Ve),Fe(["yo"],(function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Ve]=n._locale.eraYearOrdinalParse(e,o):t[Ve]=parseInt(e,10)})),W(0,["gg",2],0,(function(){return this.weekYear()%100})),W(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Vo("gggg","weekYear"),Vo("ggggg","weekYear"),Vo("GGGG","isoWeekYear"),Vo("GGGGG","isoWeekYear"),ne("weekYear","gg"),ne("isoWeekYear","GG"),ae("weekYear",1),ae("isoWeekYear",1),De("G",Me),De("g",Me),De("GG",Oe,ye),De("gg",Oe,ye),De("GGGG",Ce,xe),De("gggg",Ce,xe),De("GGGGG",je,we),De("ggggg",je,we),We(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=ue(e)})),We(["gg","GG"],(function(e,t,n,o){t[o]=r.parseTwoDigitYear(e)})),W("Q",0,"Qo","quarter"),ne("quarter","Q"),ae("quarter",7),De("Q",ve),Fe("Q",(function(e,t){t[Ue]=3*(ue(e)-1)})),W("D",["DD",2],"Do","date"),ne("date","D"),ae("date",9),De("D",Oe),De("DD",Oe,ye),De("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Fe(["D","DD"],Ge),Fe("Do",(function(e,t){t[Ge]=ue(e.match(Oe)[0])}));var Jo=fe("Date",!0);function ei(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}W("DDD",["DDDD",3],"DDDo","dayOfYear"),ne("dayOfYear","DDD"),ae("dayOfYear",4),De("DDD",_e),De("DDDD",be),Fe(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=ue(e)})),W("m",["mm",2],0,"minute"),ne("minute","m"),ae("minute",14),De("m",Oe),De("mm",Oe,ye),Fe(["m","mm"],$e);var ti=fe("Minutes",!1);W("s",["ss",2],0,"second"),ne("second","s"),ae("second",15),De("s",Oe),De("ss",Oe,ye),Fe(["s","ss"],qe);var ni,ri,oi=fe("Seconds",!1);for(W("S",0,0,(function(){return~~(this.millisecond()/100)})),W(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),W(0,["SSS",3],0,"millisecond"),W(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),W(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),W(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),W(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),W(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),W(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),ne("millisecond","ms"),ae("millisecond",16),De("S",_e,ve),De("SS",_e,ye),De("SSS",_e,be),ni="SSSS";ni.length<=9;ni+="S")De(ni,Ee);function ii(e,t){t[Ke]=ue(1e3*("0."+e))}for(ni="S";ni.length<=9;ni+="S")Fe(ni,ii);function ai(){return this._isUTC?"UTC":""}function li(){return this._isUTC?"Coordinated Universal Time":""}ri=fe("Milliseconds",!1),W("z",0,0,"zoneAbbr"),W("zz",0,0,"zoneName");var si=O.prototype;function ci(e){return qn(1e3*e)}function ui(){return qn.apply(null,arguments).parseZone()}function fi(e){return e}si.add=Rr,si.calendar=Hr,si.clone=Br,si.diff=Kr,si.endOf=vo,si.format=eo,si.from=to,si.fromNow=no,si.to=ro,si.toNow=oo,si.get=he,si.invalidAt=Co,si.isAfter=Vr,si.isBefore=Ur,si.isBetween=Gr,si.isSame=Yr,si.isSameOrAfter=$r,si.isSameOrBefore=qr,si.isValid=ko,si.lang=ao,si.locale=io,si.localeData=lo,si.max=Xn,si.min=Kn,si.parsingFlags=_o,si.set=me,si.startOf=go,si.subtract=Dr,si.toArray=wo,si.toObject=Oo,si.toDate=xo,si.toISOString=Zr,si.inspect=Jr,"undefined"!==typeof Symbol&&null!=Symbol.for&&(si[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),si.toJSON=So,si.toString=Qr,si.unix=bo,si.valueOf=yo,si.creationData=jo,si.eraName=To,si.eraNarrow=Ao,si.eraAbbr=Ro,si.eraYear=Do,si.year=gt,si.isLeapYear=vt,si.weekYear=Uo,si.isoWeekYear=Go,si.quarter=si.quarters=Zo,si.month=ut,si.daysInMonth=ft,si.week=si.weeks=Et,si.isoWeek=si.isoWeeks=Mt,si.weeksInYear=qo,si.weeksInWeekYear=Ko,si.isoWeeksInYear=Yo,si.isoWeeksInISOWeekYear=$o,si.date=Jo,si.day=si.days=Ut,si.weekday=Gt,si.isoWeekday=Yt,si.dayOfYear=ei,si.hour=si.hours=rn,si.minute=si.minutes=ti,si.second=si.seconds=oi,si.millisecond=si.milliseconds=ri,si.utcOffset=hr,si.utc=gr,si.local=vr,si.parseZone=yr,si.hasAlignedHourOffset=br,si.isDST=xr,si.isLocal=Or,si.isUtcOffset=Sr,si.isUtc=kr,si.isUTC=kr,si.zoneAbbr=ai,si.zoneName=li,si.dates=_("dates accessor is deprecated. Use date instead.",Jo),si.months=_("months accessor is deprecated. Use month instead",ut),si.years=_("years accessor is deprecated. Use year instead",gt),si.zone=_("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",mr),si.isDSTShifted=_("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",wr);var di=A.prototype;function pi(e,t,n,r){var o=vn(),i=h().set(r,t);return o[n](i,e)}function hi(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return pi(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=pi(e,r,n,"month");return o}function mi(e,t,n,r){"boolean"===typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var o,i=vn(),a=e?i._week.dow:0,l=[];if(null!=n)return pi(t,(n+a)%7,r,"day");for(o=0;o<7;o++)l[o]=pi(t,(o+a)%7,r,"day");return l}function gi(e,t){return hi(e,t,"months")}function vi(e,t){return hi(e,t,"monthsShort")}function yi(e,t,n){return mi(e,t,n,"weekdays")}function bi(e,t,n){return mi(e,t,n,"weekdaysShort")}function xi(e,t,n){return mi(e,t,n,"weekdaysMin")}di.calendar=D,di.longDateFormat=Y,di.invalidDate=q,di.ordinal=Q,di.preparse=fi,di.postformat=fi,di.relativeTime=J,di.pastFuture=ee,di.set=P,di.eras=Eo,di.erasParse=Mo,di.erasConvertYear=Po,di.erasAbbrRegex=No,di.erasNameRegex=Io,di.erasNarrowRegex=Lo,di.months=it,di.monthsShort=at,di.monthsParse=st,di.monthsRegex=pt,di.monthsShortRegex=dt,di.week=kt,di.firstDayOfYear=jt,di.firstDayOfWeek=Ct,di.weekdays=Ft,di.weekdaysMin=Ht,di.weekdaysShort=Wt,di.weekdaysParse=Vt,di.weekdaysRegex=$t,di.weekdaysShortRegex=qt,di.weekdaysMinRegex=Kt,di.isPM=tn,di.meridiem=on,hn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===ue(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=_("moment.lang is deprecated. Use moment.locale instead.",hn),r.langData=_("moment.langData is deprecated. Use moment.localeData instead.",vn);var wi=Math.abs;function Oi(){var e=this._data;return this._milliseconds=wi(this._milliseconds),this._days=wi(this._days),this._months=wi(this._months),e.milliseconds=wi(e.milliseconds),e.seconds=wi(e.seconds),e.minutes=wi(e.minutes),e.hours=wi(e.hours),e.months=wi(e.months),e.years=wi(e.years),this}function Si(e,t,n,r){var o=jr(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function ki(e,t){return Si(this,e,t,1)}function _i(e,t){return Si(this,e,t,-1)}function Ci(e){return e<0?Math.floor(e):Math.ceil(e)}function ji(){var e,t,n,r,o,i=this._milliseconds,a=this._days,l=this._months,s=this._data;return i>=0&&a>=0&&l>=0||i<=0&&a<=0&&l<=0||(i+=864e5*Ci(Mi(l)+a),a=0,l=0),s.milliseconds=i%1e3,e=ce(i/1e3),s.seconds=e%60,t=ce(e/60),s.minutes=t%60,n=ce(t/60),s.hours=n%24,a+=ce(n/24),l+=o=ce(Ei(a)),a-=Ci(Mi(o)),r=ce(l/12),l%=12,s.days=a,s.months=l,s.years=r,this}function Ei(e){return 4800*e/146097}function Mi(e){return 146097*e/4800}function Pi(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=re(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Ei(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Mi(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function Ti(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ue(this._months/12):NaN}function Ai(e){return function(){return this.as(e)}}var Ri=Ai("ms"),Di=Ai("s"),Ii=Ai("m"),Ni=Ai("h"),Li=Ai("d"),zi=Ai("w"),Fi=Ai("M"),Wi=Ai("Q"),Hi=Ai("y");function Bi(){return jr(this)}function Vi(e){return e=re(e),this.isValid()?this[e+"s"]():NaN}function Ui(e){return function(){return this.isValid()?this._data[e]:NaN}}var Gi=Ui("milliseconds"),Yi=Ui("seconds"),$i=Ui("minutes"),qi=Ui("hours"),Ki=Ui("days"),Xi=Ui("months"),Qi=Ui("years");function Zi(){return ce(this.days()/7)}var Ji=Math.round,ea={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ta(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}function na(e,t,n,r){var o=jr(e).abs(),i=Ji(o.as("s")),a=Ji(o.as("m")),l=Ji(o.as("h")),s=Ji(o.as("d")),c=Ji(o.as("M")),u=Ji(o.as("w")),f=Ji(o.as("y")),d=i<=n.ss&&["s",i]||i0,d[4]=r,ta.apply(null,d)}function ra(e){return void 0===e?Ji:"function"===typeof e&&(Ji=e,!0)}function oa(e,t){return void 0!==ea[e]&&(void 0===t?ea[e]:(ea[e]=t,"s"===e&&(ea.ss=t-1),!0))}function ia(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,o=!1,i=ea;return"object"===typeof e&&(t=e,e=!1),"boolean"===typeof e&&(o=e),"object"===typeof t&&(i=Object.assign({},ea,t),null!=t.s&&null==t.ss&&(i.ss=t.s-1)),r=na(this,!o,i,n=this.localeData()),o&&(r=n.pastFuture(+this,r)),n.postformat(r)}var aa=Math.abs;function la(e){return(e>0)-(e<0)||+e}function sa(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,o,i,a,l,s=aa(this._milliseconds)/1e3,c=aa(this._days),u=aa(this._months),f=this.asSeconds();return f?(e=ce(s/60),t=ce(e/60),s%=60,e%=60,n=ce(u/12),u%=12,r=s?s.toFixed(3).replace(/\.?0+$/,""):"",o=f<0?"-":"",i=la(this._months)!==la(f)?"-":"",a=la(this._days)!==la(f)?"-":"",l=la(this._milliseconds)!==la(f)?"-":"",o+"P"+(n?i+n+"Y":"")+(u?i+u+"M":"")+(c?a+c+"D":"")+(t||e||s?"T":"")+(t?l+t+"H":"")+(e?l+e+"M":"")+(s?l+r+"S":"")):"P0D"}var ca=ir.prototype;return ca.isValid=rr,ca.abs=Oi,ca.add=ki,ca.subtract=_i,ca.as=Pi,ca.asMilliseconds=Ri,ca.asSeconds=Di,ca.asMinutes=Ii,ca.asHours=Ni,ca.asDays=Li,ca.asWeeks=zi,ca.asMonths=Fi,ca.asQuarters=Wi,ca.asYears=Hi,ca.valueOf=Ti,ca._bubble=ji,ca.clone=Bi,ca.get=Vi,ca.milliseconds=Gi,ca.seconds=Yi,ca.minutes=$i,ca.hours=qi,ca.days=Ki,ca.weeks=Zi,ca.months=Xi,ca.years=Qi,ca.humanize=ia,ca.toISOString=sa,ca.toString=sa,ca.toJSON=sa,ca.locale=io,ca.localeData=lo,ca.toIsoString=_("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",sa),ca.lang=ao,W("X",0,0,"unix"),W("x",0,0,"valueOf"),De("x",Me),De("X",Ae),Fe("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),Fe("x",(function(e,t,n){n._d=new Date(ue(e))})),r.version="2.29.1",o(qn),r.fn=si,r.min=Zn,r.max=Jn,r.now=er,r.utc=h,r.unix=ci,r.months=gi,r.isDate=f,r.locale=hn,r.invalid=y,r.duration=jr,r.isMoment=S,r.weekdays=yi,r.parseZone=ui,r.localeData=vn,r.isDuration=ar,r.monthsShort=vi,r.weekdaysMin=xi,r.defineLocale=mn,r.updateLocale=gn,r.locales=yn,r.weekdaysShort=bi,r.normalizeUnits=re,r.relativeTimeRounding=ra,r.relativeTimeThreshold=oa,r.calendarFormat=Wr,r.prototype=si,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()}).call(this,n(174)(e))},function(e,t,n){"use strict";var r=n(361),o=Object(r.a)();t.a=o},function(e,t,n){"use strict";var r=n(367);t.a=function(e,t){return t?Object(r.a)(e,t,{clone:!1}):e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(1);function o(e,t){return r.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}},function(e,t,n){"use strict";var r=n(1),o=r.createContext();t.a=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(1),o=n.n(r),i=n(25),a=n.n(i),l=n(18);function s(e){return(s="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(){return(c=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]&&arguments[1];return e&&(r(e.value)&&""!==e.value||t&&r(e.defaultValue)&&""!==e.defaultValue)}function i(e){return e.startAdornment}n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return i}))},function(e,t,n){var r=n(541)("toUpperCase");e.exports=r},function(e,t,n){"use strict";function r(e){return+e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return y})),n.d(t,"a",(function(){return b}));var r=n(1),o=n.n(r),i=n(25),a=n.n(i),l=n(86),s=n(18);function c(e){return(c="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(){return(u=Object.assign||function(e){for(var t=1;t=0?1:-1,s=n>=0?1:-1,c=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&o instanceof Array){for(var u=[0,0,0,0],f=0;f<4;f++)u[f]=o[f]>a?a:o[f];i="M".concat(e,",").concat(t+l*u[0]),u[0]>0&&(i+="A ".concat(u[0],",").concat(u[0],",0,0,").concat(c,",").concat(e+s*u[0],",").concat(t)),i+="L ".concat(e+n-s*u[1],",").concat(t),u[1]>0&&(i+="A ".concat(u[1],",").concat(u[1],",0,0,").concat(c,",\n ").concat(e+n,",").concat(t+l*u[1])),i+="L ".concat(e+n,",").concat(t+r-l*u[2]),u[2]>0&&(i+="A ".concat(u[2],",").concat(u[2],",0,0,").concat(c,",\n ").concat(e+n-s*u[2],",").concat(t+r)),i+="L ".concat(e+s*u[3],",").concat(t+r),u[3]>0&&(i+="A ".concat(u[3],",").concat(u[3],",0,0,").concat(c,",\n ").concat(e,",").concat(t+r-l*u[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var d=Math.min(a,o);i="M ".concat(e,",").concat(t+l*d,"\n A ").concat(d,",").concat(d,",0,0,").concat(c,",").concat(e+s*d,",").concat(t,"\n L ").concat(e+n-s*d,",").concat(t,"\n A ").concat(d,",").concat(d,",0,0,").concat(c,",").concat(e+n,",").concat(t+l*d,"\n L ").concat(e+n,",").concat(t+r-l*d,"\n A ").concat(d,",").concat(d,",0,0,").concat(c,",").concat(e+n-s*d,",").concat(t+r,"\n L ").concat(e+s*d,",").concat(t+r,"\n A ").concat(d,",").concat(d,",0,0,").concat(c,",").concat(e,",").concat(t+r-l*d," Z")}else i="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return i},y=function(e,t){if(!e||!t)return!1;var n=e.x,r=e.y,o=t.x,i=t.y,a=t.width,l=t.height;if(Math.abs(a)>0&&Math.abs(l)>0){var s=Math.min(o,o+a),c=Math.max(o,o+a),u=Math.min(i,i+l),f=Math.max(i,i+l);return n>=s&&n<=c&&r>=u&&r<=f}return!1},b=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(c,e);var t,n,r,i=h(c);function c(){var e;f(this,c);for(var t=arguments.length,n=new Array(t),r=0;r0,from:{width:i,height:c,x:n,y:r},to:{width:i,height:c,x:n,y:r},duration:g,animationEasing:m,isActive:x},(function(t){var n=t.width,r=t.height,i=t.x,a=t.y;return o.a.createElement(l.a,{canBegin:p>0,from:"0px ".concat(-1===p?1:p,"px"),to:"".concat(p,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:g,isActive:b,easing:m},o.a.createElement("path",u({},Object(s.c)(e.props,!0),{className:w,d:v(i,a,n,r,f),ref:function(t){e.node=t}})))})):o.a.createElement("path",u({},Object(s.c)(this.props,!0),{className:w,d:v(n,r,i,c,f)}))}}])&&d(t.prototype,n),r&&d(t,r),c}(r.PureComponent);b.defaultProps={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"}},function(e,t,n){"use strict";var r=n(46),o=n(48);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(1)),a=(0,r(n(49)).default)(i.createElement("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");t.default=a},function(e,t,n){var r=n(453);e.exports=function(e,t){if(null==e)return{};var n,o,i=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.default=e.exports,e.exports.__esModule=!0},,,function(e,t,n){var r=n(100),o=n(101);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bottom=c,t.cloneLayout=function(e){for(var t=Array(e.length),n=0,r=e.length;nn&&(n=t);return n}function u(e,t){for(var n=Array(e.length),r=0,o=e.length;r=t.x+t.w)&&(!(e.y+e.h<=t.y)&&!(e.y>=t.y+t.h))))}function h(e,t,n){for(var r=O(e),o=_(e,t),i=Array(e.length),a=0,l=o.length;at.y+t.h)break;p(t,a)&&g(e,a,n+t[o],r)}}t[r]=n}function v(e,t,n,r,o){var i,a="horizontal"===n;if("vertical"===n)for(t.y=Math.min(c(e),t.y);t.y>0&&!x(e,t);)t.y--;else if(a)for(;t.x>0&&!x(e,t);)t.x--;for(;i=x(e,t);)a?g(o,t,i.x+i.w,"x"):g(o,t,i.y+i.h,"y"),a&&t.x+t.w>r&&(t.x=r-t.w,t.y++);return t.y=Math.max(t.y,0),t.x=Math.max(t.x,0),t}function y(e,t){for(var n=O(e),r=0,o=e.length;rt.cols&&(i.x=t.cols-i.w),i.x<0&&(i.x=0,i.w=t.cols),i.static)for(;x(n,i);)i.y++;else n.push(i)}return e}function b(e,t){for(var n=0,r=e.length;n=r:"horizontal"===a&&"number"===typeof n&&s>=n)&&(u=u.reverse());var f=w(u,t);if(i&&f.length)return M("Collision prevented on ".concat(t.i,", reverting.")),t.x=s,t.y=c,t.moved=!1,e;for(var d=0,p=f.length;dt.y||e.y===t.y&&e.x>t.x?1:e.y===t.y&&e.x===t.x?0:-1}))}function j(e){return e.slice(0).sort((function(e,t){return e.x>t.x||e.x===t.x&&e.y>t.y?1:-1}))}function E(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Layout",n=["x","y","w","h"];if(!Array.isArray(e))throw new Error(t+" must be an array!");for(var r=0,o=e.length;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Z(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?a:n&&n.props&&n.props.data&&n.props.data.length>0?n.props.data:e&&e.length&&Object(H.g)(o)&&Object(H.g)(i)?e.slice(o,i+1):[]},ge=function(e,t,n,r){var o=e.graphicalItems,i=e.tooltipAxis,a=me(t,e);return n<0||!o||!o.length||n>=a.length?null:o.reduce((function(e,t){if(t.props.hide)return e;var o,l=t.props.data;if(i.dataKey&&!i.allowDuplicatedCategory){var s=void 0===l?a:l;o=Object(H.a)(s,i.dataKey,r)}else o=l&&l[n]||a[n];return o?[].concat(oe(e),[Object(B.v)(t,o)]):e}),[])},ve=function(e,t,n,r){var o=r||{x:e.chartX,y:e.chartY},i=function(e,t){return"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radius}(o,n),a=e.orderedTooltipTicks,l=e.tooltipAxis,s=e.tooltipTicks,c=Object(B.b)(i,a,s,l);if(c>=0&&s){var u=s[c]&&s[c].value;return{activeTooltipIndex:c,activeLabel:u,activePayload:ge(e,t,c,u),activeCoordinate:function(e,t,n,r){var o=t.find((function(e){return e&&e.index===n}));if(o){if("horizontal"===e)return{x:o.coordinate,y:r.y};if("vertical"===e)return{x:r.x,y:o.coordinate};if("centric"===e){var i=o.coordinate,a=r.radius;return se(se(se({},r),Object(U.e)(r.cx,r.cy,a,i)),{},{angle:i,radius:a})}var l=o.coordinate,s=r.angle;return se(se(se({},r),Object(U.e)(r.cx,r.cy,l,s)),{},{angle:s,radius:l})}return fe}(n,a,c,o)}}return null},ye=function(e,t){var n=t.axisType,r=void 0===n?"xAxis":n,o=t.AxisComp,i=t.graphicalItems,a=t.stackGroups,l=t.dataStartIndex,s=t.dataEndIndex,c=e.children,u="".concat(r,"Id"),f=Object(L.a)(c,o),d={};return f&&f.length?d=function(e,t){var n=t.axes,r=t.graphicalItems,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,l=t.dataStartIndex,s=t.dataEndIndex,c=e.layout,u=e.children,f=e.stackOffset,d=Object(B.x)(c,o);return n.reduce((function(t,n){var p=n.props,h=p.type,m=p.dataKey,g=p.allowDataOverflow,y=p.allowDuplicatedCategory,x=p.scale,w=p.ticks,O=n.props[i],S=me(e.data,{graphicalItems:r.filter((function(e){return e.props[i]===O})),dataStartIndex:l,dataEndIndex:s}),k=S.length;if(!t[O]){var _,C,j;if(m){if(_=Object(B.m)(S,m,h),"category"===h&&d){var E=Object(H.d)(_);y&&E?(C=_,_=v()(0,k)):y||(_=Object(B.y)(n.props.domain,_,n).reduce((function(e,t){return e.indexOf(t)>=0?e:[].concat(oe(e),[t])}),[]))}else if("category"===h)_=y?_.filter((function(e){return""!==e&&!b()(e)})):Object(B.y)(n.props.domain,_,n).reduce((function(e,t){return e.indexOf(t)>=0||""===t||b()(t)?e:[].concat(oe(e),[t])}),[]);else if("number"===h){var M=Object(B.z)(S,r.filter((function(e){return e.props[i]===O&&!e.props.hide})),m,o);M&&(_=M)}!d||"number"!==h&&"auto"===x||(j=Object(B.m)(S,m,"category"))}else _=d?v()(0,k):a&&a[O]&&a[O].hasStack&&"number"===h?"expand"===f?[0,1]:Object(B.o)(a[O].stackGroups,l,s):Object(B.n)(S,r.filter((function(e){return e.props[i]===O&&!e.props.hide})),h,!0);if("number"===h)_=Object(V.a)(u,_,O,o,w),n.props.domain&&(_=Object(B.B)(n.props.domain,_,g));else if("category"===h&&n.props.domain){var P=n.props.domain;_.every((function(e){return P.indexOf(e)>=0}))&&(_=P)}return se(se({},t),{},ce({},O,se(se({},n.props),{},{axisType:o,domain:_,categoricalDomain:j,duplicateDomain:C,originalDomain:n.props.domain,isCategorical:d,layout:c})))}return t}),{})}(e,{axes:f,graphicalItems:i,axisType:r,axisIdKey:u,stackGroups:a,dataStartIndex:l,dataEndIndex:s}):i&&i.length&&(d=function(e,t){var n=t.graphicalItems,r=t.Axis,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,l=t.dataStartIndex,s=t.dataEndIndex,c=e.layout,u=e.children,f=me(e.data,{graphicalItems:n,dataStartIndex:l,dataEndIndex:s}),d=f.length,p=Object(B.x)(c,o),h=-1;return n.reduce((function(e,t){var g,y=t.props[i];return e[y]?e:(h++,p?g=v()(0,d):a&&a[y]&&a[y].hasStack?(g=Object(B.o)(a[y].stackGroups,l,s),g=Object(V.a)(u,g,y,o)):(g=Object(B.B)(r.defaultProps.domain,Object(B.n)(f,n.filter((function(e){return e.props[i]===y&&!e.props.hide})),"number"),r.defaultProps.allowDataOverflow),g=Object(V.a)(u,g,y,o)),se(se({},e),{},ce({},y,se(se({axisType:o},r.defaultProps),{},{hide:!0,orientation:m()(ue,"".concat(o,".").concat(h%2),null),domain:g,originalDomain:r.defaultProps.domain,isCategorical:p,layout:c}))))}),{})}(e,{Axis:o,graphicalItems:i,axisType:r,axisIdKey:u,stackGroups:a,dataStartIndex:l,dataEndIndex:s})),d},be=function(e){var t=e.children,n=e.defaultShowTooltip,r=Object(L.b)(t,F.a.displayName);return{chartX:0,chartY:0,dataStartIndex:r&&r.props&&r.props.startIndex||0,dataEndIndex:r&&r.props&&r.props.endIndex||e.data&&e.data.length-1||0,activeTooltipIndex:-1,isTooltipActive:!b()(n)&&n}},xe=function(e){return"horizontal"===e?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===e?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===e?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},we=function(e){var t,n,r=e.chartName,o=e.GraphicalChild,a=e.defaultTooltipEventType,s=void 0===a?"axis":a,u=e.validateTooltipEventTypes,d=void 0===u?["axis"]:u,h=e.axisComponents,g=e.legendContent,v=e.formatAxisMap,y=e.defaultProps,x=function(e,t){var n=t.graphicalItems,r=t.stackGroups,o=t.offset,i=t.updateId,a=t.dataStartIndex,l=t.dataEndIndex,s=e.barSize,c=e.layout,u=e.barGap,f=e.barCategoryGap,d=e.maxBarSize,p=xe(c),m=p.numericAxisName,g=p.cateAxisName,v=function(e){return!(!e||!e.length)&&e.some((function(e){var t=Object(L.c)(e&&e.type);return t&&t.indexOf("Bar")>=0}))}(n)&&Object(B.h)({barSize:s,stackGroups:r}),y=[];return n.forEach((function(n,s){var p=me(e.data,{dataStartIndex:a,dataEndIndex:l},n),x=n.props,w=x.dataKey,O=x.maxBarSize,S=n.props["".concat(m,"Id")],k=n.props["".concat(g,"Id")],_=h.reduce((function(e,r){var o,i=t["".concat(r.axisType,"Map")],a=n.props["".concat(r.axisType,"Id")],l=i&&i[a];return se(se({},e),{},(ce(o={},r.axisType,l),ce(o,"".concat(r.axisType,"Ticks"),Object(B.t)(l)),o))}),{}),C=_[g],j=_["".concat(g,"Ticks")],E=r&&r[S]&&r[S].hasStack&&Object(B.s)(n,r[S].stackGroups),M=Object(L.c)(n.type).indexOf("Bar")>=0,P=Object(B.f)(C,j),T=[];if(M){var A=Object(B.f)(C,j,!0),R=b()(O)?d:O;T=Object(B.g)({barGap:u,barCategoryGap:f,bandSize:A!==P?A:P,sizeList:v[k],maxBarSize:R}),A!==P&&(T=T.map((function(e){return se(se({},e),{},{position:se(se({},e.position),{},{offset:e.position.offset-A/2})})})))}var D,I=n&&n.type&&n.type.getComposedData;I&&y.push({props:se(se({},I(se(se({},_),{},{displayedData:p,props:e,dataKey:w,item:n,bandSize:P,barPosition:T,offset:o,stackedData:E,layout:c,dataStartIndex:a,dataEndIndex:l}))),{},(D={key:n.key||"item-".concat(s)},ce(D,m,_[m]),ce(D,g,_[g]),ce(D,"animationId",i),D)),childIndex:Object(L.f)(n,e.children),item:n})})),y},O=function(e,t){var n=e.props,i=e.dataStartIndex,a=e.dataEndIndex,l=e.updateId;if(!Object(L.h)({props:n}))return null;var s=n.children,c=n.layout,u=n.stackOffset,f=n.data,d=n.reverseStackOrder,g=xe(c),y=g.numericAxisName,b=g.cateAxisName,w=Object(L.a)(s,o),O=Object(B.r)(f,w,"".concat(y,"Id"),"".concat(b,"Id"),u,d),S=h.reduce((function(e,t){var r="".concat(t.axisType,"Map");return se(se({},e),{},ce({},r,ye(n,se(se({},t),{},{graphicalItems:w,stackGroups:t.axisType===y&&O,dataStartIndex:i,dataEndIndex:a}))))}),{}),k=function(e,t){var n=e.props,r=e.graphicalItems,o=e.xAxisMap,i=void 0===o?{}:o,a=e.yAxisMap,l=void 0===a?{}:a,s=n.width,c=n.height,u=n.children,f=n.margin||{},d=Object(L.b)(u,F.a.displayName),p=Object(L.b)(u,T.a.displayName),h=Object.keys(l).reduce((function(e,t){var n=l[t],r=n.orientation;return n.mirror||n.hide?e:se(se({},e),{},ce({},r,e[r]+n.width))}),{left:f.left||0,right:f.right||0}),g=Object.keys(i).reduce((function(e,t){var n=i[t],r=n.orientation;return n.mirror||n.hide?e:se(se({},e),{},ce({},r,m()(e,"".concat(r))+n.height))}),{top:f.top||0,bottom:f.bottom||0}),v=se(se({},g),h),y=v.bottom;return d&&(v.bottom+=d.props.height||F.a.defaultProps.height),p&&t&&(v=Object(B.a)(v,r,n,t)),se(se({brushBottom:y},v),{},{width:s-v.left-v.right,height:c-v.top-v.bottom})}(se(se({},S),{},{props:n,graphicalItems:w}),null===t||void 0===t?void 0:t.legendBBox);Object.keys(S).forEach((function(e){S[e]=v(n,S[e],k,e.replace("Map",""),r)}));var _=function(e){var t=Object(H.b)(e),n=Object(B.t)(t,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:p()(n,(function(e){return e.coordinate})),tooltipAxis:t,tooltipAxisBandSize:Object(B.f)(t)}}(S["".concat(b,"Map")]),C=x(n,se(se({},S),{},{dataStartIndex:i,dataEndIndex:a,updateId:l,graphicalItems:w,stackGroups:O,offset:k}));return se(se({formatedGraphicalItems:C,graphicalItems:w,offset:k,stackGroups:O},_),S)};return n=t=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&J(e,t)}(u,e);var t,n,o,a=ee(u);function u(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(t=a.call(this,e)).uniqueChartId=void 0,t.clipPathId=void 0,t.legendInstance=void 0,t.deferId=void 0,t.container=void 0,t.clearDeferId=function(){!b()(t.deferId)&&he&&he(t.deferId),t.deferId=null},t.handleLegendBBoxUpdate=function(e){if(e&&t.legendInstance){var n=t.state,r=n.dataStartIndex,o=n.dataEndIndex,i=n.updateId;t.setState(se({legendBBox:e},O({props:t.props,dataStartIndex:r,dataEndIndex:o,updateId:i},se(se({},t.state),{},{legendBBox:e}))))}},t.handleReceiveSyncEvent=function(e,n,r){t.props.syncId===e&&n!==t.uniqueChartId&&(t.clearDeferId(),t.deferId=pe&&pe(t.applySyncEvent.bind(ne(t),r)))},t.handleBrushChange=function(e){var n=e.startIndex,r=e.endIndex;if(n!==t.state.dataStartIndex||r!==t.state.dataEndIndex){var o=t.state.updateId;t.setState((function(){return se({dataStartIndex:n,dataEndIndex:r},O({props:t.props,dataStartIndex:n,dataEndIndex:r,updateId:o},t.state))})),t.triggerSyncEvent({dataStartIndex:n,dataEndIndex:r})}},t.handleMouseEnter=function(e){var n=t.props.onMouseEnter,r=t.getMouseInfo(e);if(r){var o=se(se({},r),{},{isTooltipActive:!0});t.setState(o),t.triggerSyncEvent(o),c()(n)&&n(o,e)}},t.triggeredAfterMouseMove=function(e){var n=t.props.onMouseMove,r=t.getMouseInfo(e),o=r?se(se({},r),{},{isTooltipActive:!0}):{isTooltipActive:!1};t.setState(o),t.triggerSyncEvent(o),c()(n)&&n(o,e)},t.handleItemMouseEnter=function(e){t.setState((function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}}))},t.handleItemMouseLeave=function(){t.setState((function(){return{isTooltipActive:!1}}))},t.handleMouseMove=function(e){e&&c()(e.persist)&&e.persist(),t.triggeredAfterMouseMove(e)},t.handleMouseLeave=function(e){var n=t.props.onMouseLeave,r={isTooltipActive:!1};t.setState(r),t.triggerSyncEvent(r),c()(n)&&n(r,e),t.cancelThrottledTriggerAfterMouseMove()},t.handleOuterEvent=function(e){var n=Object(L.d)(e),r=m()(t.props,"".concat(n));n&&c()(r)&&r(/.*touch.*/i.test(n)?t.getMouseInfo(e.changedTouches[0]):t.getMouseInfo(e),e)},t.handleClick=function(e){var n=t.props.onClick,r=t.getMouseInfo(e);if(r){var o=se(se({},r),{},{isTooltipActive:!0});t.setState(o),t.triggerSyncEvent(o),c()(n)&&n(o,e)}},t.handleMouseDown=function(e){var n=t.props.onMouseDown;c()(n)&&n(t.getMouseInfo(e),e)},t.handleMouseUp=function(e){var n=t.props.onMouseUp;c()(n)&&n(t.getMouseInfo(e),e)},t.handleTouchMove=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseMove(e.changedTouches[0])},t.handleTouchStart=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseDown(e.changedTouches[0])},t.handleTouchEnd=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseUp(e.changedTouches[0])},t.verticalCoordinatesGenerator=function(e){var t=e.xAxis,n=e.width,r=e.height,o=e.offset;return Object(B.l)(z.a.getTicks(se(se(se({},z.a.defaultProps),t),{},{ticks:Object(B.t)(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.left,o.left+o.width)},t.horizontalCoordinatesGenerator=function(e){var t=e.yAxis,n=e.width,r=e.height,o=e.offset;return Object(B.l)(z.a.getTicks(se(se(se({},z.a.defaultProps),t),{},{ticks:Object(B.t)(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.top,o.top+o.height)},t.axesTicksGenerator=function(e){return Object(B.t)(e,!0)},t.renderCursor=function(e){var n=t.state,o=n.isTooltipActive,i=n.activeCoordinate,a=n.activePayload,l=n.offset,s=n.activeTooltipIndex,c=t.getTooltipEventType();if(!e||!e.props.cursor||!o||!i||"axis"!==c)return null;var u,f=t.props.layout,d=A.a;if("ScatterChart"===r)u=i,d=R.a;else if("BarChart"===r)u=t.getCursorRectangle(),d=N.a;else if("radial"===f){var p=t.getCursorPoints(),h=p.cx,m=p.cy,g=p.radius;u={cx:h,cy:m,startAngle:p.startAngle,endAngle:p.endAngle,innerRadius:g,outerRadius:g},d=D.a}else u={points:t.getCursorPoints()},d=A.a;var v=e.key||"_recharts-cursor",y=se(se(se(se({stroke:"#ccc",pointerEvents:"none"},l),u),Object($.c)(e.props.cursor)),{},{payload:a,payloadIndex:s,key:v,className:"recharts-tooltip-cursor"});return Object(k.isValidElement)(e.props.cursor)?Object(k.cloneElement)(e.props.cursor,y):Object(k.createElement)(d,y)},t.renderPolarAxis=function(e,n,r){var o=m()(e,"type.axisType"),i=m()(t.state,"".concat(o,"Map"))[e.props["".concat(o,"Id")]];return Object(k.cloneElement)(e,se(se({},i),{},{className:o,key:e.key||"".concat(n,"-").concat(r),ticks:Object(B.t)(i,!0)}))},t.renderXAxis=function(e,n,r){var o=t.state.xAxisMap[e.props.xAxisId];return t.renderAxis(o,e,n,r)},t.renderYAxis=function(e,n,r){var o=t.state.yAxisMap[e.props.yAxisId];return t.renderAxis(o,e,n,r)},t.renderGrid=function(e){var n=t.state,r=n.xAxisMap,o=n.yAxisMap,a=n.offset,s=t.props,c=s.width,u=s.height,f=Object(H.b)(r),d=l()(o,(function(e){return i()(e.domain,de)}))||Object(H.b)(o),p=e.props||{};return Object(k.cloneElement)(e,{key:e.key||"grid",x:Object(H.g)(p.x)?p.x:a.left,y:Object(H.g)(p.y)?p.y:a.top,width:Object(H.g)(p.width)?p.width:a.width,height:Object(H.g)(p.height)?p.height:a.height,xAxis:f,yAxis:d,offset:a,chartWidth:c,chartHeight:u,verticalCoordinatesGenerator:p.verticalCoordinatesGenerator||t.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:p.horizontalCoordinatesGenerator||t.horizontalCoordinatesGenerator})},t.renderPolarGrid=function(e){var n=e.props,r=n.radialLines,o=n.polarAngles,i=n.polarRadius,a=t.state,l=a.radiusAxisMap,s=a.angleAxisMap,c=Object(H.b)(l),u=Object(H.b)(s),f=u.cx,d=u.cy,p=u.innerRadius,h=u.outerRadius;e.props;return Object(k.cloneElement)(e,{polarAngles:S()(o)?o:Object(B.t)(u,!0).map((function(e){return e.coordinate})),polarRadius:S()(i)?i:Object(B.t)(c,!0).map((function(e){return e.coordinate})),cx:f,cy:d,innerRadius:p,outerRadius:h,key:e.key||"polar-grid",radialLines:r})},t.renderLegend=function(){var e=t.state.formatedGraphicalItems,n=t.props,r=n.children,o=n.width,i=n.height,a=t.props.margin||{},l=o-(a.left||0)-(a.right||0),s=Object(B.p)({children:r,formatedGraphicalItems:e,legendWidth:l,legendContent:g});if(!s)return null;var c=s.item,u=Q(s,["item"]);return Object(k.cloneElement)(c,se(se({},u),{},{chartWidth:o,chartHeight:i,margin:a,ref:function(e){t.legendInstance=e},onBBoxUpdate:t.handleLegendBBoxUpdate}))},t.renderTooltip=function(){var e=t.props.children,n=Object(L.b)(e,P.a.displayName);if(!n)return null;var r=t.state,o=r.isTooltipActive,i=r.activeCoordinate,a=r.activePayload,l=r.activeLabel,s=r.offset;return Object(k.cloneElement)(n,{viewBox:se(se({},s),{},{x:s.left,y:s.top}),active:o,label:l,payload:o?a:[],coordinate:i})},t.renderBrush=function(e){var n=t.props,r=n.margin,o=n.data,i=t.state,a=i.offset,l=i.dataStartIndex,s=i.dataEndIndex,c=i.updateId;return Object(k.cloneElement)(e,{key:e.key||"_recharts-brush",onChange:Object(B.d)(t.handleBrushChange,null,e.props.onChange),data:o,x:Object(H.g)(e.props.x)?e.props.x:a.left,y:Object(H.g)(e.props.y)?e.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:Object(H.g)(e.props.width)?e.props.width:a.width,startIndex:l,endIndex:s,updateId:"brush-".concat(c)})},t.renderReferenceElement=function(e,n,r){if(!e)return null;var o=ne(t).clipPathId,i=t.state,a=i.xAxisMap,l=i.yAxisMap,s=i.offset,c=e.props,u=c.xAxisId,f=c.yAxisId;return Object(k.cloneElement)(e,{key:e.key||"".concat(n,"-").concat(r),xAxis:a[u],yAxis:l[f],viewBox:{x:s.left,y:s.top,width:s.width,height:s.height},clipPathId:o})},t.renderActivePoints=function(e){var t=e.item,n=e.activePoint,r=e.basePoint,o=e.childIndex,i=e.isRange,a=[],l=t.props.key,s=t.item.props,c=s.activeDot,f=se(se({index:o,dataKey:s.dataKey,cx:n.x,cy:n.y,r:4,fill:Object(B.q)(t.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value,key:"".concat(l,"-activePoint-").concat(o)},Object($.c)(c)),Object($.a)(c));return a.push(u.renderActiveDot(c,f)),r?a.push(u.renderActiveDot(c,se(se({},f),{},{cx:r.x,cy:r.y,key:"".concat(l,"-basePoint-").concat(o)}))):i&&a.push(null),a},t.renderGraphicChild=function(e,n,r){var o=t.filterFormatItem(e,n,r);if(!o)return null;var i=t.getTooltipEventType(),a=t.state,l=a.isTooltipActive,s=a.tooltipAxis,c=a.activeTooltipIndex,u=a.activeLabel,f=t.props.children,d=Object(L.b)(f,P.a.displayName),p=o.props,h=p.points,m=p.isRange,g=p.baseLine,v=o.item.props,y=v.activeDot,x=!v.hide&&l&&d&&y&&c>=0,w={};"axis"!==i&&d&&"click"===d.props.trigger?w={onClick:Object(B.d)(t.handleItemMouseEnter,null,e.props.onCLick)}:"axis"!==i&&(w={onMouseLeave:Object(B.d)(t.handleItemMouseLeave,null,e.props.onMouseLeave),onMouseEnter:Object(B.d)(t.handleItemMouseEnter,null,e.props.onMouseEnter)});var O=Object(k.cloneElement)(e,se(se({},o.props),w));if(x){var S,_;if(s.dataKey&&!s.allowDuplicatedCategory){var C="function"===typeof s.dataKey?function(e){return"function"===typeof s.dataKey?s.dataKey(e.payload):null}:"payload.".concat(s.dataKey.toString());S=Object(H.a)(h,C,u),_=m&&g&&Object(H.a)(g,C,u)}else S=h[c],_=m&&g&&g[c];if(!b()(S))return[O].concat(oe(t.renderActivePoints({item:o,activePoint:S,basePoint:_,childIndex:c,isRange:m})))}return m?[O,null,null]:[O,null]},t.renderCustomized=function(e){return Object(k.cloneElement)(e,se(se({},t.props),t.state))},t.uniqueChartId=b()(e.id)?Object(H.j)("recharts"):e.id,t.clipPathId="".concat(t.uniqueChartId,"-clip"),e.throttleDelay&&(t.triggeredAfterMouseMove=f()(t.triggeredAfterMouseMove,e.throttleDelay)),t.state={},t}return t=u,(n=[{key:"componentDidMount",value:function(){b()(this.props.syncId)||this.addListener()}},{key:"componentDidUpdate",value:function(e){b()(e.syncId)&&!b()(this.props.syncId)&&this.addListener(),!b()(e.syncId)&&b()(this.props.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){this.clearDeferId(),b()(this.props.syncId)||this.removeListener(),this.cancelThrottledTriggerAfterMouseMove()}},{key:"cancelThrottledTriggerAfterMouseMove",value:function(){"function"===typeof this.triggeredAfterMouseMove.cancel&&this.triggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var e=Object(L.b)(this.props.children,P.a.displayName);if(e&&w()(e.props.shared)){var t=e.props.shared?"axis":"item";return d.indexOf(t)>=0?t:s}return s}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t=Object(W.b)(this.container),n=Object(W.a)(e,t),r=this.inRange(n.chartX,n.chartY);if(!r)return null;var o=this.state,i=o.xAxisMap,a=o.yAxisMap;if("axis"!==this.getTooltipEventType()&&i&&a){var l=Object(H.b)(i).scale,s=Object(H.b)(a).scale,c=l&&l.invert?l.invert(n.chartX):null,u=s&&s.invert?s.invert(n.chartY):null;return se(se({},n),{},{xValue:c,yValue:u})}var f=ve(this.state,this.props.data,this.props.layout,r);return f?se(se({},n),f):null}},{key:"getCursorRectangle",value:function(){var e=this.props.layout,t=this.state,n=t.activeCoordinate,r=t.offset,o=t.tooltipAxisBandSize,i=o/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?n.x-i:r.left+.5,y:"horizontal"===e?r.top+.5:n.y-i,width:"horizontal"===e?o:r.width-1,height:"horizontal"===e?r.height-1:o}}},{key:"getCursorPoints",value:function(){var e,t,n,r,o=this.props.layout,i=this.state,a=i.activeCoordinate,l=i.offset;if("horizontal"===o)n=e=a.x,t=l.top,r=l.top+l.height;else if("vertical"===o)r=t=a.y,e=l.left,n=l.left+l.width;else if(!b()(a.cx)||!b()(a.cy)){if("centric"!==o){var s=a.cx,c=a.cy,u=a.radius,f=a.startAngle,d=a.endAngle;return{points:[Object(U.e)(s,c,u,f),Object(U.e)(s,c,u,d)],cx:s,cy:c,radius:u,startAngle:f,endAngle:d}}var p=a.cx,h=a.cy,m=a.innerRadius,g=a.outerRadius,v=a.angle,y=Object(U.e)(p,h,m,v),x=Object(U.e)(p,h,g,v);e=y.x,t=y.y,n=x.x,r=x.y}return[{x:e,y:t},{x:n,y:r}]}},{key:"inRange",value:function(e,t){var n=this.props.layout;if("horizontal"===n||"vertical"===n){var r=this.state.offset;return e>=r.left&&e<=r.left+r.width&&t>=r.top&&t<=r.top+r.height?{x:e,y:t}:null}var o=this.state,i=o.angleAxisMap,a=o.radiusAxisMap;if(i&&a){var l=Object(H.b)(i);return Object(U.d)({x:e,y:t},l)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=Object(L.b)(e,P.a.displayName),r={};return n&&"axis"===t&&(r="click"===n.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),se(se({},Object($.a)(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){Y.b.on(Y.a,this.handleReceiveSyncEvent),Y.b.setMaxListeners&&Y.b._maxListeners&&Y.b.setMaxListeners(Y.b._maxListeners+1)}},{key:"removeListener",value:function(){Y.b.removeListener(Y.a,this.handleReceiveSyncEvent),Y.b.setMaxListeners&&Y.b._maxListeners&&Y.b.setMaxListeners(Y.b._maxListeners-1)}},{key:"triggerSyncEvent",value:function(e){var t=this.props.syncId;b()(t)||Y.b.emit(Y.a,t,this.uniqueChartId,e)}},{key:"applySyncEvent",value:function(e){var t=this.props,n=t.layout,r=t.syncMethod,o=this.state.updateId,i=e.dataStartIndex,a=e.dataEndIndex;if(b()(e.dataStartIndex)&&b()(e.dataEndIndex))if(b()(e.activeTooltipIndex))this.setState(e);else{var l=e.chartX,s=e.chartY,c=e.activeTooltipIndex,u=this.state,f=u.offset,d=u.tooltipTicks;if(!f)return;if("function"===typeof r)c=r(d,e);else if("value"===r){c=-1;for(var p=0;p1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),o(e,r(t,1),[])}));e.exports=l},function(e,t,n){"use strict";t.a=function(e,t){return et?1:e>=t?0:NaN}},function(e,t,n){"use strict";Array.prototype.slice;t.a=function(e){return"object"===typeof e&&"length"in e?e:Array.from(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return E}));var r=n(62),o=n.n(r),i=n(21),a=n.n(i),l=n(20),s=n.n(l),c=n(338),u=n.n(c),f=n(30),d=n.n(f),p=n(1),h=n.n(p),m=n(67),g=n(28),v=n(34),y=n(22),b=n(18);function x(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var j={valueAccessor:function(e){return d()(e.value)?u()(e.value):e.value}};function E(e){var t=e.data,n=e.valueAccessor,r=e.dataKey,o=e.clockWise,i=e.id,a=e.textBreakAll,l=C(e,["data","valueAccessor","dataKey","clockWise","id","textBreakAll"]);return t&&t.length?h.a.createElement(g.a,{className:"recharts-label-list"},t.map((function(e,t){var c=s()(r)?n(e,t):Object(y.w)(e&&e.payload,r),u=s()(i)?{}:{id:"".concat(i,"-").concat(t)};return h.a.createElement(m.a,O({},Object(b.c)(e,!0),l,u,{parentViewBox:e.parentViewBox,index:t,value:c,textBreakAll:a,viewBox:m.a.parseViewBox(s()(o)?e:k(k({},e),{},{clockWise:o})),key:"label-".concat(t)}))}))):null}function M(e,t){return e?!0===e?h.a.createElement(E,{key:"labelList-implicit",data:t}):h.a.isValidElement(e)||a()(e)?h.a.createElement(E,{key:"labelList-implicit",data:t,content:e}):o()(e)?h.a.createElement(E,O({data:t},e,{key:"labelList-implicit"})):null:null}E.displayName="LabelList",E.renderCallByParent=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var r=e.children,o=Object(v.a)(r,E.displayName).map((function(e,n){return Object(p.cloneElement)(e,{data:t,key:"labelList-".concat(n)})}));if(!n)return o;var i=M(e.label,t);return[i].concat(x(o))},E.defaultProps=j},function(e,t,n){"use strict";var r=n(1),o=n.n(r);t.a=o.a.createContext(null)},function(e,t,n){var r=n(539)();e.exports=r},function(e,t,n){var r=n(89),o=n(549);e.exports=function(e,t){return e&&e.length?o(e,r(t,2)):[]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return T}));var r=n(8),o=n.n(r),i=n(21),a=n.n(i),l=n(1),s=n.n(l),c=n(25),u=n.n(c),f=n(120),d=n(87),p=n(28),h=n(77),m=n(67),g=n(72),v=n(11),y=n(18);function b(e){return(b="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function x(){return(x=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C(e,t){for(var n=0;n=2?Object(v.i)(y[1].coordinate-y[0].coordinate):1;if(1===w?(n="width"===g?f:p,r="width"===g?f+h:p+m):(n="width"===g?f+h:p+m,r="width"===g?f:p),t){var S=o[x-1],k=a()(i)?i(S.value,x-1):S.value,_=Object(d.c)(k)[g]+b,C=w*(S.coordinate+w*_/2-r);y[x-1]=S=O(O({},S),{},{tickCoord:C>0?S.coordinate-C*w:S.coordinate}),w*(S.tickCoord-w*_/2-n)>=0&&w*(S.tickCoord+w*_/2-r)<=0&&(r=S.tickCoord-w*(_/2+c),y[x-1]=O(O({},S),{},{isShow:!0}))}for(var j=t?x-1:x,E=0;E=0&&w*(M.tickCoord+w*T/2-r)<=0&&(n=M.tickCoord+w*(T/2+c),y[E]=O(O({},M),{},{isShow:!0}))}return y.filter((function(e){return e.isShow}))}},{key:"getTicksEnd",value:function(e){var t,n,r=e.ticks,o=e.tickFormatter,i=e.viewBox,l=e.orientation,s=e.minTickGap,c=e.unit,u=i.x,f=i.y,p=i.width,h=i.height,m="top"===l||"bottom"===l?"width":"height",g=c&&"width"===m?Object(d.c)(c)[m]:0,y=(r||[]).slice(),b=y.length,x=b>=2?Object(v.i)(y[1].coordinate-y[0].coordinate):1;1===x?(t="width"===m?u:f,n="width"===m?u+p:f+h):(t="width"===m?u+p:f+h,n="width"===m?u:f);for(var w=b-1;w>=0;w--){var S=y[w],k=a()(o)?o(S.value,b-w-1):S.value,_=Object(d.c)(k)[m]+g;if(w===b-1){var C=x*(S.coordinate+x*_/2-n);y[w]=S=O(O({},S),{},{tickCoord:C>0?S.coordinate-C*x:S.coordinate})}else y[w]=S=O(O({},S),{},{tickCoord:S.coordinate});x*(S.tickCoord-x*_/2-t)>=0&&x*(S.tickCoord+x*_/2-n)<=0&&(n=S.tickCoord-x*(_/2+s),y[w]=O(O({},S),{},{isShow:!0}))}return y.filter((function(e){return e.isShow}))}},{key:"renderTickItem",value:function(e,t,n){return s.a.isValidElement(e)?s.a.cloneElement(e,t):a()(e)?e(t):s.a.createElement(h.a,x({},t,{className:"recharts-cartesian-axis-tick-value"}),n)}}],(n=[{key:"shouldComponentUpdate",value:function(e){var t=e.viewBox,n=k(e,["viewBox"]),r=this.props,o=r.viewBox,i=k(r,["viewBox"]);return!Object(f.a)(t,o)||!Object(f.a)(n,i)}},{key:"getTickLineCoord",value:function(e){var t,n,r,o,i,a,l=this.props,s=l.x,c=l.y,u=l.width,f=l.height,d=l.orientation,p=l.tickSize,h=l.mirror,m=l.tickMargin,g=h?-1:1,y=e.tickSize||p,b=Object(v.g)(e.tickCoord)?e.tickCoord:e.coordinate;switch(d){case"top":t=n=e.coordinate,a=(r=(o=c+ +!h*f)-g*y)-g*m,i=b;break;case"left":r=o=e.coordinate,i=(t=(n=s+ +!h*u)-g*y)-g*m,a=b;break;case"right":r=o=e.coordinate,i=(t=(n=s+ +h*u)+g*y)+g*m,a=b;break;default:t=n=e.coordinate,a=(r=(o=c+ +h*f)+g*y)+g*m,i=b}return{line:{x1:t,y1:r,x2:n,y2:o},tick:{x:i,y:a}}}},{key:"getTickTextAnchor",value:function(){var e,t=this.props,n=t.orientation,r=t.mirror;switch(n){case"left":e=r?"start":"end";break;case"right":e=r?"end":"start";break;default:e="middle"}return e}},{key:"getTickVerticalAnchor",value:function(){var e=this.props,t=e.orientation,n=e.mirror,r="end";switch(t){case"left":case"right":r="middle";break;case"top":r=n?"start":"end";break;default:r=n?"end":"start"}return r}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,i=e.height,a=e.orientation,l=e.mirror,c=e.axisLine,f=O(O(O({},Object(y.c)(this.props)),Object(y.c)(c)),{},{fill:"none"});if("top"===a||"bottom"===a){var d=+("top"===a&&!l||"bottom"===a&&l);f=O(O({},f),{},{x1:t,y1:n+d*i,x2:t+r,y2:n+d*i})}else{var p=+("left"===a&&!l||"right"===a&&l);f=O(O({},f),{},{x1:t+p*r,y1:n,x2:t+p*r,y2:n+i})}return s.a.createElement("line",x({},f,{className:u()("recharts-cartesian-axis-line",o()(c,"className"))}))}},{key:"renderTicks",value:function(e){var t=this,n=this.props,r=n.tickLine,i=n.stroke,c=n.tick,f=n.tickFormatter,d=n.unit,h=l.getTicks(O(O({},this.props),{},{ticks:e})),m=this.getTickTextAnchor(),g=this.getTickVerticalAnchor(),v=Object(y.c)(this.props),b=Object(y.c)(c),w=O(O({},v),{},{fill:"none"},Object(y.c)(r)),S=h.map((function(e,n){var S=t.getTickLineCoord(e),k=S.line,_=S.tick,C=O(O(O(O({textAnchor:m,verticalAnchor:g},v),{},{stroke:"none",fill:i},b),_),{},{index:n,payload:e,visibleTicksCount:h.length,tickFormatter:f});return s.a.createElement(p.a,x({className:"recharts-cartesian-axis-tick",key:"tick-".concat(n)},Object(y.b)(t.props,e,n)),r&&s.a.createElement("line",x({},w,k,{className:u()("recharts-cartesian-axis-tick-line",o()(r,"className"))})),c&&l.renderTickItem(c,C,"".concat(a()(f)?f(e.value,n):e.value).concat(d||"")))}));return s.a.createElement("g",{className:"recharts-cartesian-axis-ticks"},S)}},{key:"render",value:function(){var e=this.props,t=e.axisLine,n=e.width,r=e.height,o=e.ticksGenerator,i=e.className;if(e.hide)return null;var l=this.props,c=l.ticks,f=k(l,["ticks"]),d=c;return a()(o)&&(d=c&&c.length>0?o(this.props):o(f)),n<=0||r<=0||!d||!d.length?null:s.a.createElement(p.a,{className:u()("recharts-cartesian-axis",i)},t&&this.renderAxisLine(),this.renderTicks(d),m.a.renderCallByParent(this.props))}}])&&C(t.prototype,n),r&&C(t,r),l}(l.Component);T.displayName="CartesianAxis",T.defaultProps={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"}},,function(e,t,n){var r=n(90).Symbol;e.exports=r},function(e,t,n){var r=n(21),o=n(234);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t,n){"use strict";n.r(t),n.d(t,"capitalize",(function(){return r.a})),n.d(t,"createChainedFunction",(function(){return o.a})),n.d(t,"createSvgIcon",(function(){return i.a})),n.d(t,"debounce",(function(){return a.a})),n.d(t,"deprecatedPropType",(function(){return l})),n.d(t,"isMuiElement",(function(){return s.a})),n.d(t,"ownerDocument",(function(){return c.a})),n.d(t,"ownerWindow",(function(){return u.a})),n.d(t,"requirePropFactory",(function(){return f.a})),n.d(t,"setRef",(function(){return d.a})),n.d(t,"unsupportedProp",(function(){return p.a})),n.d(t,"useControlled",(function(){return h.a})),n.d(t,"useEventCallback",(function(){return m.a})),n.d(t,"useForkRef",(function(){return g.a})),n.d(t,"unstable_useId",(function(){return v.a})),n.d(t,"useIsFocusVisible",(function(){return y.a}));var r=n(19),o=n(66),i=n(54),a=n(74);function l(e,t){return function(){return null}}var s=n(116),c=n(52),u=n(111),f=n(228),d=n(71),p=n(173),h=n(91),m=n(55),g=n(26),v=n(137),y=n(112)},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a}));var r=n(42),o=n(37),i=Symbol("implicit");function a(){var e=new Map,t=[],n=[],l=i;function s(r){var o=r+"",a=e.get(o);if(!a){if(l!==i)return l;e.set(o,a=t.push(r))}return n[(a-1)%n.length]}return s.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new Map;var o,i=Object(r.a)(n);try{for(i.s();!(o=i.n()).done;){var a=o.value,l=a+"";e.has(l)||e.set(l,t.push(a))}}catch(c){i.e(c)}finally{i.f()}return s},s.range=function(e){return arguments.length?(n=Array.from(e),s):n.slice()},s.unknown=function(e){return arguments.length?(l=e,s):l},s.copy=function(){return a(t,n).unknown(l)},o.b.apply(s,arguments),s}},function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function u(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,u=e.className,f=e.style,d=c(e,["children","width","height","viewBox","className","style"]),p=i||{width:n,height:r,x:0,y:0},h=a()("recharts-surface",u);return o.a.createElement("svg",s({},Object(l.c)(d,!0,!0),{className:h,width:n,height:r,style:f,viewBox:"".concat(p.x," ").concat(p.y," ").concat(p.width," ").concat(p.height),version:"1.1"}),t)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return l}));var r=n(244),o=n.n(r),i=n(42),a=o.a.mark(l);function l(e,t){var n,r,l,s,c,u,f;return o.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(void 0!==t){o.next=21;break}n=Object(i.a)(e),o.prev=2,n.s();case 4:if((r=n.n()).done){o.next=11;break}if(!(null!=(l=r.value)&&(l=+l)>=l)){o.next=9;break}return o.next=9,l;case 9:o.next=4;break;case 11:o.next=16;break;case 13:o.prev=13,o.t0=o.catch(2),n.e(o.t0);case 16:return o.prev=16,n.f(),o.finish(16);case 19:o.next=40;break;case 21:s=-1,c=Object(i.a)(e),o.prev=23,c.s();case 25:if((u=c.n()).done){o.next=32;break}if(f=u.value,!(null!=(f=t(f,++s,e))&&(f=+f)>=f)){o.next=30;break}return o.next=30,f;case 30:o.next=25;break;case 32:o.next=37;break;case 34:o.prev=34,o.t1=o.catch(23),c.e(o.t1);case 37:return o.prev=37,c.f(),o.finish(37);case 40:case"end":return o.stop()}}),a,null,[[2,13,16,19],[23,34,37,40]])}t.a=function(e){return null===e?NaN:+e}},function(e,t,n){"use strict";t.a=function(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return x}));var r=n(1),o=n.n(r),i=n(25),a=n.n(i),l=n(18),s=n(35),c=n(11);function u(e){return(u="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(){return(f=Object.assign||function(e){for(var t=1;t180),",").concat(+(i>l),",\n ").concat(f.x,",").concat(f.y,"\n ");if(r>0){var p=Object(s.e)(t,n,r,i),h=Object(s.e)(t,n,r,l);d+="L ".concat(h.x,",").concat(h.y,"\n A ").concat(r,",").concat(r,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i<=l),",\n ").concat(p.x,",").concat(p.y," Z")}else d+="L ".concat(t,",").concat(n," Z");return d},x=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(s,e);var t,n,r,i=m(s);function s(){return d(this,s),i.apply(this,arguments)}return t=s,(n=[{key:"render",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,s=e.cornerRadius,u=e.forceCornerRadius,d=e.cornerIsExternal,p=e.startAngle,h=e.endAngle,m=e.className;if(i0&&Math.abs(p-h)<360?function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.cornerRadius,a=e.forceCornerRadius,l=e.cornerIsExternal,s=e.startAngle,u=e.endAngle,f=Object(c.i)(u-s),d=y({cx:t,cy:n,radius:o,angle:s,sign:f,cornerRadius:i,cornerIsExternal:l}),p=d.circleTangency,h=d.lineTangency,m=d.theta,g=y({cx:t,cy:n,radius:o,angle:u,sign:-f,cornerRadius:i,cornerIsExternal:l}),v=g.circleTangency,x=g.lineTangency,w=g.theta,O=l?Math.abs(s-u):Math.abs(s-u)-m-w;if(O<0)return a?"M ".concat(h.x,",").concat(h.y,"\n a").concat(i,",").concat(i,",0,0,1,").concat(2*i,",0\n a").concat(i,",").concat(i,",0,0,1,").concat(2*-i,",0\n "):b({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:s,endAngle:u});var S="M ".concat(h.x,",").concat(h.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(p.x,",").concat(p.y,"\n A").concat(o,",").concat(o,",0,").concat(+(O>180),",").concat(+(f<0),",").concat(v.x,",").concat(v.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(x.x,",").concat(x.y,"\n ");if(r>0){var k=y({cx:t,cy:n,radius:r,angle:s,sign:f,isExternal:!0,cornerRadius:i,cornerIsExternal:l}),_=k.circleTangency,C=k.lineTangency,j=k.theta,E=y({cx:t,cy:n,radius:r,angle:u,sign:-f,isExternal:!0,cornerRadius:i,cornerIsExternal:l}),M=E.circleTangency,P=E.lineTangency,T=E.theta,A=l?Math.abs(s-u):Math.abs(s-u)-j-T;if(A<0&&0===i)return"".concat(S,"L").concat(t,",").concat(n,"Z");S+="L".concat(P.x,",").concat(P.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(M.x,",").concat(M.y,"\n A").concat(r,",").concat(r,",0,").concat(+(A>180),",").concat(+(f>0),",").concat(_.x,",").concat(_.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(C.x,",").concat(C.y,"Z")}else S+="L".concat(t,",").concat(n,"Z");return S}({cx:t,cy:n,innerRadius:r,outerRadius:i,cornerRadius:Math.min(w,x/2),forceCornerRadius:u,cornerIsExternal:d,startAngle:p,endAngle:h}):b({cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:p,endAngle:h}),o.a.createElement("path",f({},Object(l.c)(this.props,!0),{className:v,d:g}))}}])&&p(t.prototype,n),r&&p(t,r),s}(r.PureComponent);x.defaultProps={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1}},function(e,t,n){"use strict";var r=n(46),o=n(48);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(1)),a=(0,r(n(49)).default)(i.createElement("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");t.default=a},function(e,t,n){"use strict";n.d(t,"a",(function(){return be}));var r=n(21),o=n.n(r),i=n(147),a=n.n(i),l=n(1),s=n.n(l),c=n(25),u=n.n(c),f=n(156),d=n(127),p=n.n(d),h=(Math.abs,Math.atan2,Math.cos,Math.max,Math.min,Math.sin,Math.sqrt,Math.PI),m=2*h;var g={draw:function(e,t){var n=Math.sqrt(t/h);e.moveTo(n,0),e.arc(0,0,n,0,m)}},v={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},y=Math.sqrt(1/3),b=2*y,x={draw:function(e,t){var n=Math.sqrt(t/b),r=n*y;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},w={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},O=Math.sin(h/10)/Math.sin(7*h/10),S=Math.sin(m/10)*O,k=-Math.cos(m/10)*O,_={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=S*n,o=k*n;e.moveTo(0,-n),e.lineTo(r,o);for(var i=1;i<5;++i){var a=m*i/5,l=Math.cos(a),s=Math.sin(a);e.lineTo(s*n,-l*n),e.lineTo(l*r-s*o,s*r+l*o)}e.closePath()}},C=Math.sqrt(3),j={draw:function(e,t){var n=-Math.sqrt(t/(3*C));e.moveTo(0,2*n),e.lineTo(-C*n,-n),e.lineTo(C*n,-n),e.closePath()}},E=-.5,M=Math.sqrt(3)/2,P=1/Math.sqrt(12),T=3*(P/2+1),A={draw:function(e,t){var n=Math.sqrt(t/T),r=n/2,o=n*P,i=r,a=n*P+n,l=-i,s=a;e.moveTo(r,o),e.lineTo(i,a),e.lineTo(l,s),e.lineTo(E*r-M*o,M*r+E*o),e.lineTo(E*i-M*a,M*i+E*a),e.lineTo(E*l-M*s,M*l+E*s),e.lineTo(E*r+M*o,E*o-M*r),e.lineTo(E*i+M*a,E*a-M*i),e.lineTo(E*l+M*s,E*s-M*l),e.closePath()}},R=n(671),D=n(43),I=n(18);function N(e){return(N="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function L(){return(L=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ve(e){return e.value}function ye(e,t){return!0===e?a()(t,ve):o()(e)?a()(t,e):t}var be=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&de(e,t)}(a,e);var t,n,r,i=pe(a);function a(){var e;ue(this,a);for(var t=arguments.length,n=new Array(t),r=0;r=0&&n>=0?{width:t,height:n}:null}},{key:"getDefaultPosition",value:function(e){var t,n,r=this.props,o=r.layout,i=r.align,a=r.verticalAlign,l=r.margin,s=r.chartWidth,c=r.chartHeight;return e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(t="center"===i&&"vertical"===o?{left:((s||0)-(this.getBBoxSnapshot()||{width:0}).width)/2}:"right"===i?{right:l&&l.right||0}:{left:l&&l.left||0}),e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(n="middle"===a?{top:((c||0)-(this.getBBoxSnapshot()||{height:0}).height)/2}:"bottom"===a?{bottom:l&&l.bottom||0}:{top:l&&l.top||0}),se(se({},t),n)}},{key:"updateBBox",value:function(){var e=this.state,t=e.boxWidth,n=e.boxHeight,r=this.props.onBBoxUpdate;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var o=this.wrapperNode.getBoundingClientRect();(Math.abs(o.width-t)>1||Math.abs(o.height-n)>1)&&this.setState({boxWidth:o.width,boxHeight:o.height},(function(){r&&r(o)}))}else-1===t&&-1===n||this.setState({boxWidth:-1,boxHeight:-1},(function(){r&&r(null)}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.content,r=t.width,i=t.height,a=t.wrapperStyle,l=t.payloadUniqBy,c=t.payload,u=se(se({position:"absolute",width:r||"auto",height:i||"auto"},this.getDefaultPosition(a)),a);return s.a.createElement("div",{className:"recharts-legend-wrapper",style:u,ref:function(t){e.wrapperNode=t}},function(e,t){if(s.a.isValidElement(e))return s.a.cloneElement(e,t);if(o()(e))return s.a.createElement(e,t);t.ref;var n=ge(t,["ref"]);return s.a.createElement(oe,n)}(n,se(se({},this.props),{},{payload:ye(l,c)})))}}])&&fe(t.prototype,n),r&&fe(t,r),a}(l.PureComponent);be.displayName="Legend",be.defaultProps={iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"}},function(e,t,n){var r=n(180),o=n(303),i=n(136);e.exports=function(e){return e&&e.length?r(e,i,o):void 0}},function(e,t,n){"use strict";n.d(t,"a",(function(){return Y}));var r=n(20),o=n.n(r),i=n(21),a=n.n(i),l=n(147),s=n.n(l),c=n(1),u=n.n(c),f=n(86),d=n(25),p=n.n(d),h=n(141),m=n.n(h),g=n(30),v=n.n(g),y=n(11);function b(e){return(b="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function x(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(s){o=!0,i=s}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nu[n]+o?Math.max(f,u[n]):Math.max(d,u[n])},e}return t=l,(n=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"updateBBox",value:function(){var e=this.state,t=e.boxWidth,n=e.boxHeight;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-t)>1||Math.abs(r.height-n)>1)&&this.setState({boxWidth:r.width,boxHeight:r.height})}else-1===t&&-1===n||this.setState({boxWidth:-1,boxHeight:-1})}},{key:"render",value:function(){var e,t,n,r=this,i=this.props,l=i.payload,c=i.isAnimationActive,d=i.animationDuration,h=i.animationEasing,m=i.filterNull,g=function(e,t){return!0===e?s()(t,G):a()(e)?s()(t,e):t}(i.payloadUniqBy,m&&l&&l.length?l.filter((function(e){return!o()(e.value)})):l),v=g&&g.length,b=this.props,x=b.content,w=b.viewBox,O=b.coordinate,S=b.position,k=b.active,_=N({pointerEvents:"none",visibility:k&&v?"visible":"hidden",position:"absolute",top:0,left:0},b.wrapperStyle);if(S&&Object(y.g)(S.x)&&Object(y.g)(S.y))t=S.x,n=S.y;else{var C=this.state,j=C.boxWidth,E=C.boxHeight;j>0&&E>0&&O?(t=this.getTranslate({key:"x",tooltipDimension:j,viewBoxDimension:w.width}),n=this.getTranslate({key:"y",tooltipDimension:E,viewBoxDimension:w.height})):_.visibility="hidden"}_=N(N({},Object(f.b)({transform:this.props.useTranslate3d?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")})),_),c&&k&&(_=N(N({},Object(f.b)({transition:"transform ".concat(d,"ms ").concat(h)})),_));var M=p()(U,(L(e={},"".concat(U,"-right"),Object(y.g)(t)&&O&&Object(y.g)(O.x)&&t>=O.x),L(e,"".concat(U,"-left"),Object(y.g)(t)&&O&&Object(y.g)(O.x)&&t=O.y),L(e,"".concat(U,"-top"),Object(y.g)(n)&&O&&Object(y.g)(O.y)&&n1)for(var n=1;n0||e instanceof Object)?t(e):null)},b.prototype.toError=function(){var e=this.req,t=e.method,n=e.url,r="cannot ".concat(t," ").concat(n," (").concat(this.status,")"),o=new Error(r);return o.status=this.status,o.method=t,o.url=n,o},p.Response=b,i(x.prototype),s(x.prototype),x.prototype.type=function(e){return this.set("Content-Type",p.types[e]||e),this},x.prototype.accept=function(e){return this.set("Accept",p.types[e]||e),this},x.prototype.auth=function(e,t,n){1===arguments.length&&(t=""),"object"===r(t)&&null!==t&&(n=t,t=""),n||(n={type:"function"===typeof btoa?"basic":"auto"});var o=function(e){if("function"===typeof btoa)return btoa(e);throw new Error("Cannot use basic auth, btoa is not a function")};return this._auth(e,t,n,o)},x.prototype.query=function(e){return"string"!==typeof e&&(e=m(e)),e&&this._query.push(e),this},x.prototype.attach=function(e,t,n){if(t){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(e,t,n||t.name)}return this},x.prototype._getFormData=function(){return this._formData||(this._formData=new o.FormData),this._formData},x.prototype.callback=function(e,t){if(this._shouldRetry(e,t))return this._retry();var n=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),n(e,t)},x.prototype.crossDomainError=function(){var e=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");e.crossDomain=!0,e.status=this.status,e.method=this.method,e.url=this.url,this.callback(e)},x.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},x.prototype.ca=x.prototype.agent,x.prototype.buffer=x.prototype.ca,x.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},x.prototype.pipe=x.prototype.write,x.prototype._isHost=function(e){return e&&"object"===r(e)&&!Array.isArray(e)&&"[object Object]"!==Object.prototype.toString.call(e)},x.prototype.end=function(e){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=e||d,this._finalizeQueryString(),this._end()},x.prototype._setUploadTimeout=function(){var e=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout((function(){e._timeoutError("Upload timeout of ",e._uploadTimeout,"ETIMEDOUT")}),this._uploadTimeout))},x.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var e=this;this.xhr=p.getXHR();var t=this.xhr,n=this._formData||this._data;this._setTimeouts(),t.onreadystatechange=function(){var n=t.readyState;if(n>=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4===n){var r;try{r=t.status}catch(o){r=0}if(!r){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}};var r=function(t,n){n.total>0&&(n.percent=n.loaded/n.total*100,100===n.percent&&clearTimeout(e._uploadTimeoutTimer)),n.direction=t,e.emit("progress",n)};if(this.hasListeners("progress"))try{t.addEventListener("progress",r.bind(null,"download")),t.upload&&t.upload.addEventListener("progress",r.bind(null,"upload"))}catch(l){}t.upload&&this._setUploadTimeout();try{this.username&&this.password?t.open(this.method,this.url,!0,this.username,this.password):t.open(this.method,this.url,!0)}catch(s){return this.callback(s)}if(this._withCredentials&&(t.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!==typeof n&&!this._isHost(n)){var o=this._header["content-type"],i=this._serializer||p.serialize[o?o.split(";")[0]:""];!i&&y(o)&&(i=p.serialize["application/json"]),i&&(n=i(n))}for(var a in this.header)null!==this.header[a]&&Object.prototype.hasOwnProperty.call(this.header,a)&&t.setRequestHeader(a,this.header[a]);this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send("undefined"===typeof n?null:n)},p.agent=function(){return new f},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach((function(e){f.prototype[e.toLowerCase()]=function(t,n){var r=new p.Request(e,t);return this._setDefaults(r),n&&r.end(n),r}})),f.prototype.del=f.prototype.delete,p.get=function(e,t,n){var r=p("GET",e);return"function"===typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},p.head=function(e,t,n){var r=p("HEAD",e);return"function"===typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},p.options=function(e,t,n){var r=p("OPTIONS",e);return"function"===typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},p.del=w,p.delete=w,p.patch=function(e,t,n){var r=p("PATCH",e);return"function"===typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},p.post=function(e,t,n){var r=p("POST",e);return"function"===typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},p.put=function(e,t,n){var r=p("PUT",e);return"function"===typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MemoryStorage=t.CookieStorage=t.isSupported=t.storage=void 0;var r=a(n(447)),o=a(n(268)),i=a(n(449));function a(e){return e&&e.__esModule?e:{default:e}}var l=null;(0,r.default)("localStorage")?t.storage=l=window.localStorage:(0,r.default)("sessionStorage")?t.storage=l=window.sessionStorage:(0,r.default)("cookieStorage")?t.storage=l=new o.default:t.storage=l=new i.default,t.default=l,t.storage=l,t.isSupported=r.default,t.CookieStorage=o.default,t.MemoryStorage=i.default},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(1),o=n.n(r).a.createContext(null);t.a=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(155);function o(e,t){if(e){if("string"===typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},function(e,t,n){"use strict";var r="function"===typeof Symbol&&Symbol.for;t.a=r?Symbol.for("mui.nested"):"__THEME_NESTED__"},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));n(94),n(4);var r=n(110),o=(n(9),n(115),{xs:0,sm:600,md:960,lg:1280,xl:1920}),i={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(o[e],"px)")}};function a(e,t,n){if(Array.isArray(t)){var o=e.theme.breakpoints||i;return t.reduce((function(e,r,i){return e[o.up(o.keys[i])]=n(t[i]),e}),{})}if("object"===Object(r.a)(t)){var a=e.theme.breakpoints||i;return Object.keys(t).reduce((function(e,r){return e[a.up(r)]=n(t[r]),e}),{})}return n(t)}},function(e,t,n){"use strict";t.a={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}},function(e,t,n){"use strict";function r(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";(function(e){function r(t,n){var r,o="undefined"!==typeof(r="undefined"!==typeof n?n:"undefined"!==typeof window?window:"undefined"!==typeof self?self:e).document&&r.document.attachEvent;if(!o){var i=function(){var e=r.requestAnimationFrame||r.mozRequestAnimationFrame||r.webkitRequestAnimationFrame||function(e){return r.setTimeout(e,20)};return function(t){return e(t)}}(),a=function(){var e=r.cancelAnimationFrame||r.mozCancelAnimationFrame||r.webkitCancelAnimationFrame||r.clearTimeout;return function(t){return e(t)}}(),l=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},s=function(e){if(!(e.target.className&&"function"===typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;l(this),this.__resizeRAF__&&a(this.__resizeRAF__),this.__resizeRAF__=i((function(){(function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height})(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))}},c=!1,u="",f="animationstart",d="Webkit Moz O ms".split(" "),p="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),h=r.document.createElement("fakeelement");if(void 0!==h.style.animationName&&(c=!0),!1===c)for(var m=0;m div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',r=e.head||e.getElementsByTagName("head")[0],o=e.createElement("style");o.id="detectElementResize",o.type="text/css",null!=t&&o.setAttribute("nonce",t),o.styleSheet?o.styleSheet.cssText=n:o.appendChild(e.createTextNode(n)),r.appendChild(o)}}(i),e.__resizeLast__={},e.__resizeListeners__=[],(e.__resizeTriggers__=i.createElement("div")).className="resize-triggers";var c='
';if(window.trustedTypes){var u=trustedTypes.createPolicy("react-virtualized-auto-sizer",{createHTML:function(){return c}});e.__resizeTriggers__.innerHTML=u.createHTML("")}else e.__resizeTriggers__.innerHTML=c;e.appendChild(e.__resizeTriggers__),l(e),e.addEventListener("scroll",s,!0),f&&(e.__resizeTriggers__.__animationListener__=function(t){t.animationName==g&&l(e)},e.__resizeTriggers__.addEventListener(f,e.__resizeTriggers__.__animationListener__))}e.__resizeListeners__.push(n)}},removeResizeListener:function(e,t){if(o)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",s,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(f,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(n){}}}}}n.d(t,"a",(function(){return r}))}).call(this,n(82))},function(e,t,n){"use strict";var r=n(46),o=n(48);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(1)),a=(0,r(n(49)).default)(i.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");t.default=a},function(e,t,n){"use strict";var r=n(1),o=r.createContext();t.a=o},function(e,t,n){"use strict";var r=n(46),o=n(48);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(1)),a=(0,r(n(49)).default)(i.createElement("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline");t.default=a},function(e,t,n){"use strict";var r=n(1),o=r.createContext();t.a=o},function(e,t,n){var r=n(480),o=n(481),i=n(89),a=n(30),l=n(179);e.exports=function(e,t,n){var s=a(e)?r:o;return n&&l(e,t,n)&&(t=void 0),s(e,i(t,3))}},function(e,t,n){"use strict";var r=l(n(569)),o=l(n(573)),i=l(n(308)),a=l(n(306));function l(e){return e&&e.__esModule?e:{default:e}}e.exports={Transition:a.default,TransitionGroup:i.default,ReplaceTransition:o.default,CSSTransition:r.default}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){return null};r.displayName="XAxis",r.defaultProps={allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",domain:[0,"auto"],padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){return null};r.displayName="YAxis",r.defaultProps={allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",domain:[0,"auto"],padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){return null};r.displayName="Cell"},function(e,t,n){"use strict";var r=n(46),o=n(48);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(1)),a=(0,r(n(49)).default)(i.createElement("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"}),"Group");t.default=a},function(e,t,n){"use strict";var r=n(46),o=n(48);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(1)),a=(0,r(n(49)).default)(i.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");t.default=a},function(e,t,n){"use strict";n.r(t),n.d(t,"scaleBand",(function(){return r.a})),n.d(t,"scalePoint",(function(){return r.b})),n.d(t,"scaleIdentity",(function(){return a})),n.d(t,"scaleLinear",(function(){return o.a})),n.d(t,"scaleLog",(function(){return b})),n.d(t,"scaleSymlog",(function(){return S})),n.d(t,"scaleOrdinal",(function(){return k.a})),n.d(t,"scaleImplicit",(function(){return k.b})),n.d(t,"scalePow",(function(){return M})),n.d(t,"scaleSqrt",(function(){return P})),n.d(t,"scaleRadial",(function(){return R})),n.d(t,"scaleQuantile",(function(){return U})),n.d(t,"scaleQuantize",(function(){return Y})),n.d(t,"scaleThreshold",(function(){return $})),n.d(t,"scaleTime",(function(){return jn})),n.d(t,"scaleUtc",(function(){return En})),n.d(t,"scaleSequential",(function(){return Rn})),n.d(t,"scaleSequentialLog",(function(){return Dn})),n.d(t,"scaleSequentialPow",(function(){return Nn})),n.d(t,"scaleSequentialSqrt",(function(){return Ln})),n.d(t,"scaleSequentialSymlog",(function(){return In})),n.d(t,"scaleSequentialQuantile",(function(){return zn})),n.d(t,"scaleDiverging",(function(){return Hn})),n.d(t,"scaleDivergingLog",(function(){return Bn})),n.d(t,"scaleDivergingPow",(function(){return Un})),n.d(t,"scaleDivergingSqrt",(function(){return Gn})),n.d(t,"scaleDivergingSymlog",(function(){return Vn})),n.d(t,"tickFormat",(function(){return Yn.a}));var r=n(238),o=n(63),i=n(128);function a(e){var t;function n(e){return null==e||isNaN(e=+e)?t:e}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=Array.from(t,i.a),n):e.slice()},n.unknown=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return a(e).unknown(t)},e=arguments.length?Array.from(e,i.a):[0,1],Object(o.b)(n)}var l=n(370),s=n(686);function c(e,t){var n,r=0,o=(e=e.slice()).length-1,i=e[r],a=e[o];return a0){for(;p<=h;++p)for(f=1,u=n(p);fc)break;g.push(d)}}else for(;p<=h;++p)for(f=i-1,u=n(p);f>=1;--f)if(!((d=u*f)c)break;g.push(d)}2*g.length=i)&&(n=i)}}catch(u){o.e(u)}finally{o.f()}}else{var a,l=-1,s=Object(D.a)(e);try{for(s.s();!(a=s.n()).done;){var c=a.value;null!=(c=t(c,++l,e))&&(n=c)&&(n=c)}}catch(u){s.e(u)}finally{s.f()}}return n}function N(e,t){var n;if(void 0===t){var r,o=Object(D.a)(e);try{for(o.s();!(r=o.n()).done;){var i=r.value;null!=i&&(n>i||void 0===n&&i>=i)&&(n=i)}}catch(u){o.e(u)}finally{o.f()}}else{var a,l=-1,s=Object(D.a)(e);try{for(s.s();!(a=s.n()).done;){var c=a.value;null!=(c=t(c,++l,e))&&(n>c||void 0===n&&c>=c)&&(n=c)}}catch(u){s.e(u)}finally{s.f()}}return n}var L=n(142);function z(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length-1,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:L.a;r>n;){if(r-n>600){var i=r-n+1,a=t-n+1,l=Math.log(i),s=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*s*(i-s)/i)*(a-i/2<0?-1:1),u=Math.max(n,Math.floor(t-a*s/i+c)),f=Math.min(r,Math.floor(t+(i-a)*s/i+c));z(e,t,u,f,o)}var d=e[t],p=n,h=r;for(F(e,n,t),o(e[r],d)>0&&F(e,n,r);p0;)--h}0===o(e[n],d)?F(e,n,h):F(e,++h,r),h<=t&&(n=h+1),t<=h&&(r=h-1)}return e}function F(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}var W=n(157);function H(e,t,n){if(r=(e=Float64Array.from(Object(W.b)(e,n))).length){if((t=+t)<=0||r<2)return N(e);if(t>=1)return I(e);var r,o=(r-1)*t,i=Math.floor(o),a=I(z(e,i).subarray(0,i+1));return a+(N(e.subarray(i+1))-a)*(o-i)}}function B(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:W.a;if(r=e.length){if((t=+t)<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,i=Math.floor(o),a=+n(e[i],i,e),l=+n(e[i+1],i+1,e);return a+(l-a)*(o-i)}}var V=n(672);function U(){var e,t=[],n=[],r=[];function o(){var e=0,o=Math.max(1,n.length);for(r=new Array(o-1);++e0?r[o-1]:t[0],o=r?[i[r-1],n]:[i[o-1],i[o]]},l.unknown=function(t){return arguments.length?(e=t,l):l},l.thresholds=function(){return i.slice()},l.copy=function(){return Y().domain([t,n]).range(a).unknown(e)},f.b.apply(Object(o.b)(l),arguments)}function $(){var e,t=[.5],n=[0,1],r=1;function o(o){return null!=o&&o<=o?n[Object(V.a)(t,o,0,r)]:e}return o.domain=function(e){return arguments.length?(t=Array.from(e),r=Math.min(t.length,n.length-1),o):t.slice()},o.range=function(e){return arguments.length?(n=Array.from(e),r=Math.min(t.length,n.length-1),o):n.slice()},o.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return $().domain(t).range(n).unknown(e)},f.b.apply(o,arguments)}var q=n(243),K=1e3,X=6e4,Q=36e5,Z=864e5,J=6048e5,ee=2592e6,te=31536e6,ne=new Date,re=new Date;function oe(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=function(t){return e(t=new Date(+t)),t},o.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},o.round=function(e){var t=o(e),n=o.ceil(e);return e-t0))return l;do{l.push(a=new Date(+n)),t(n,i),e(n)}while(a=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(o.count=function(t,r){return ne.setTime(+t),re.setTime(+r),e(ne),e(re),Math.floor(n(ne,re))},o.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?function(t){return r(t)%e===0}:function(t){return o.count(0,t)%e===0}):o:null}),o}var ie=oe((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));ie.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?oe((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):ie:null};var ae=ie,le=(ie.range,oe((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*K)}),(function(e,t){return(t-e)/K}),(function(e){return e.getUTCSeconds()}))),se=le,ce=(le.range,oe((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*K)}),(function(e,t){e.setTime(+e+t*X)}),(function(e,t){return(t-e)/X}),(function(e){return e.getMinutes()}))),ue=ce,fe=(ce.range,oe((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*K-e.getMinutes()*X)}),(function(e,t){e.setTime(+e+t*Q)}),(function(e,t){return(t-e)/Q}),(function(e){return e.getHours()}))),de=fe,pe=(fe.range,oe((function(e){return e.setHours(0,0,0,0)}),(function(e,t){return e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*X)/Z}),(function(e){return e.getDate()-1}))),he=pe;pe.range;function me(e){return oe((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*X)/J}))}var ge=me(0),ve=me(1),ye=me(2),be=me(3),xe=me(4),we=me(5),Oe=me(6),Se=(ge.range,ve.range,ye.range,be.range,xe.range,we.range,Oe.range,oe((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()}))),ke=Se,_e=(Se.range,oe((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()})));_e.every=function(e){return isFinite(e=Math.floor(e))&&e>0?oe((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null};var Ce=_e,je=(_e.range,oe((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*X)}),(function(e,t){return(t-e)/X}),(function(e){return e.getUTCMinutes()}))),Ee=je,Me=(je.range,oe((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*Q)}),(function(e,t){return(t-e)/Q}),(function(e){return e.getUTCHours()}))),Pe=Me,Te=(Me.range,oe((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/Z}),(function(e){return e.getUTCDate()-1}))),Ae=Te;Te.range;function Re(e){return oe((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/J}))}var De=Re(0),Ie=Re(1),Ne=Re(2),Le=Re(3),ze=Re(4),Fe=Re(5),We=Re(6),He=(De.range,Ie.range,Ne.range,Le.range,ze.range,Fe.range,We.range,oe((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()}))),Be=He,Ve=(He.range,oe((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()})));Ve.every=function(e){return isFinite(e=Math.floor(e))&&e>0?oe((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null};var Ue=Ve;Ve.range;function Ge(e,t,n,r,o,i){var a=[[se,1,K],[se,5,5e3],[se,15,15e3],[se,30,3e4],[i,1,X],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,Q],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,Z],[r,2,1728e5],[n,1,J],[t,1,ee],[t,3,7776e6],[e,1,te]];function s(t,n,r){var o=Math.abs(n-t)/r,i=Object(q.a)((function(e){return Object(G.a)(e,3)[2]})).right(a,o);if(i===a.length)return e.every(Object(l.c)(t/te,n/te,r));if(0===i)return ae.every(Math.max(Object(l.c)(t,n,r),1));var s=Object(G.a)(a[o/a[i-1][2]68?1900:2e3),n+r[0].length):-1}function wt(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Ot(e,t,n){var r=lt.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function St(e,t,n){var r=lt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function kt(e,t,n){var r=lt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function _t(e,t,n){var r=lt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Ct(e,t,n){var r=lt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function jt(e,t,n){var r=lt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Et(e,t,n){var r=lt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Mt(e,t,n){var r=lt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Pt(e,t,n){var r=lt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Tt(e,t,n){var r=st.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function At(e,t,n){var r=lt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Rt(e,t,n){var r=lt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Dt(e,t){return ut(e.getDate(),t,2)}function It(e,t){return ut(e.getHours(),t,2)}function Nt(e,t){return ut(e.getHours()%12||12,t,2)}function Lt(e,t){return ut(1+he.count(Ce(e),e),t,3)}function zt(e,t){return ut(e.getMilliseconds(),t,3)}function Ft(e,t){return zt(e,t)+"000"}function Wt(e,t){return ut(e.getMonth()+1,t,2)}function Ht(e,t){return ut(e.getMinutes(),t,2)}function Bt(e,t){return ut(e.getSeconds(),t,2)}function Vt(e){var t=e.getDay();return 0===t?7:t}function Ut(e,t){return ut(ge.count(Ce(e)-1,e),t,2)}function Gt(e){var t=e.getDay();return t>=4||0===t?xe(e):xe.ceil(e)}function Yt(e,t){return e=Gt(e),ut(xe.count(Ce(e),e)+(4===Ce(e).getDay()),t,2)}function $t(e){return e.getDay()}function qt(e,t){return ut(ve.count(Ce(e)-1,e),t,2)}function Kt(e,t){return ut(e.getFullYear()%100,t,2)}function Xt(e,t){return ut((e=Gt(e)).getFullYear()%100,t,2)}function Qt(e,t){return ut(e.getFullYear()%1e4,t,4)}function Zt(e,t){var n=e.getDay();return ut((e=n>=4||0===n?xe(e):xe.ceil(e)).getFullYear()%1e4,t,4)}function Jt(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ut(t/60|0,"0",2)+ut(t%60,"0",2)}function en(e,t){return ut(e.getUTCDate(),t,2)}function tn(e,t){return ut(e.getUTCHours(),t,2)}function nn(e,t){return ut(e.getUTCHours()%12||12,t,2)}function rn(e,t){return ut(1+Ae.count(Ue(e),e),t,3)}function on(e,t){return ut(e.getUTCMilliseconds(),t,3)}function an(e,t){return on(e,t)+"000"}function ln(e,t){return ut(e.getUTCMonth()+1,t,2)}function sn(e,t){return ut(e.getUTCMinutes(),t,2)}function cn(e,t){return ut(e.getUTCSeconds(),t,2)}function un(e){var t=e.getUTCDay();return 0===t?7:t}function fn(e,t){return ut(De.count(Ue(e)-1,e),t,2)}function dn(e){var t=e.getUTCDay();return t>=4||0===t?ze(e):ze.ceil(e)}function pn(e,t){return e=dn(e),ut(ze.count(Ue(e),e)+(4===Ue(e).getUTCDay()),t,2)}function hn(e){return e.getUTCDay()}function mn(e,t){return ut(Ie.count(Ue(e)-1,e),t,2)}function gn(e,t){return ut(e.getUTCFullYear()%100,t,2)}function vn(e,t){return ut((e=dn(e)).getUTCFullYear()%100,t,2)}function yn(e,t){return ut(e.getUTCFullYear()%1e4,t,4)}function bn(e,t){var n=e.getUTCDay();return ut((e=n>=4||0===n?ze(e):ze.ceil(e)).getUTCFullYear()%1e4,t,4)}function xn(){return"+0000"}function wn(){return"%"}function On(e){return+e}function Sn(e){return Math.floor(+e/1e3)}function kn(e){return new Date(e)}function _n(e){return e instanceof Date?+e:+new Date(+e)}function Cn(e,t,n,r,o,i,a,l,s,f){var d=Object(u.b)(),p=d.invert,h=d.domain,m=f(".%L"),g=f(":%S"),v=f("%I:%M"),y=f("%I %p"),b=f("%a %d"),x=f("%b %d"),w=f("%B"),O=f("%Y");function S(e){return(s(e)=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:On,s:Sn,S:Bt,u:Vt,U:Ut,V:Yt,w:$t,W:qt,x:null,X:null,y:Kt,Y:Qt,Z:Jt,"%":wn},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return s[e.getUTCMonth()]},B:function(e){return l[e.getUTCMonth()]},c:null,d:en,e:en,f:an,g:vn,G:bn,H:tn,I:nn,j:rn,L:on,m:ln,M:sn,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:On,s:Sn,S:cn,u:un,U:fn,V:pn,w:hn,W:mn,x:null,X:null,y:gn,Y:yn,Z:xn,"%":wn},w={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=d.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return k(e,t,n,r)},d:kt,e:kt,f:Pt,g:xt,G:bt,H:Ct,I:Ct,j:_t,L:Mt,m:St,M:jt,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:Ot,Q:At,s:Rt,S:Et,u:mt,U:gt,V:vt,w:ht,W:yt,x:function(e,t,r){return k(e,n,t,r)},X:function(e,t,n){return k(e,r,t,n)},y:xt,Y:bt,Z:wt,"%":Tt};function O(e,t){return function(n){var r,o,i,a=[],l=-1,s=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++l53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=tt(nt(i.y,0,1))).getUTCDay(),r=o>4||0===o?Ie.ceil(r):Ie(r),r=Ae.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=et(nt(i.y,0,1))).getDay(),r=o>4||0===o?ve.ceil(r):ve(r),r=he.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?tt(nt(i.y,0,1)).getUTCDay():et(nt(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,tt(i)):et(i)}}function k(e,t,n,r){for(var o,i,a=0,l=t.length,s=n.length;a=s)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=w[o in at?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=O(n,b),b.X=O(r,b),b.c=O(t,b),x.x=O(n,x),x.X=O(r,x),x.c=O(t,x),{format:function(e){var t=O(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=S(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=O(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=S(e+="",!0);return t.toString=function(){return e},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),ot=rt.format,rt.parse,it=rt.utcFormat,rt.utcParse;var Mn=n(362),Pn=n(673);function Tn(){var e,t,n,r,o,i=0,a=1,l=u.c,s=!1;function c(t){return null==t||isNaN(t=+t)?o:l(0===n?.5:(t=(r(t)-e)*n,s?Math.max(0,Math.min(1,t)):t))}function f(e){return function(t){var n,r,o,i;return arguments.length?(n=t,o=(r=Object(G.a)(n,2))[0],i=r[1],l=e(o,i),c):[l(0),l(1)]}}return c.domain=function(o){var l,s;return arguments.length?(l=o,s=Object(G.a)(l,2),i=s[0],a=s[1],e=r(i=+i),t=r(a=+a),n=e===t?0:1/(t-e),c):[i,a]},c.clamp=function(e){return arguments.length?(s=!!e,c):s},c.interpolator=function(e){return arguments.length?(l=e,c):l},c.range=f(Mn.a),c.rangeRound=f(Pn.a),c.unknown=function(e){return arguments.length?(o=e,c):o},function(o){return r=o,e=o(i),t=o(a),n=e===t?0:1/(t-e),c}}function An(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Rn(){var e=Object(o.b)(Tn()(u.c));return e.copy=function(){return An(e,Rn())},f.a.apply(e,arguments)}function Dn(){var e=y(Tn()).domain([1,10]);return e.copy=function(){return An(e,Dn()).base(e.base())},f.a.apply(e,arguments)}function In(){var e=O(Tn());return e.copy=function(){return An(e,In()).constant(e.constant())},f.a.apply(e,arguments)}function Nn(){var e=E(Tn());return e.copy=function(){return An(e,Nn()).exponent(e.exponent())},f.a.apply(e,arguments)}function Ln(){return Nn.apply(null,arguments).exponent(.5)}function zn(){var e=[],t=u.c;function n(n){if(null!=n&&!isNaN(n=+n))return t((Object(V.a)(e,n,1)-1)/(e.length-1))}return n.domain=function(t){if(!arguments.length)return e.slice();e=[];var r,o=Object(D.a)(t);try{for(o.s();!(r=o.n()).done;){var i=r.value;null==i||isNaN(i=+i)||e.push(i)}}catch(a){o.e(a)}finally{o.f()}return e.sort(L.a),n},n.interpolator=function(e){return arguments.length?(t=e,n):t},n.range=function(){return e.map((function(n,r){return t(r/(e.length-1))}))},n.quantiles=function(t){return Array.from({length:t+1},(function(n,r){return H(e,r/t)}))},n.copy=function(){return zn(t).domain(e)},f.a.apply(n,arguments)}function Fn(e,t){void 0===t&&(t=e,e=Mn.a);for(var n=0,r=t.length-1,o=t[0],i=new Array(r<0?0:r);n1&&void 0!==arguments[1]?arguments[1]:5;return(0,r.default)(e).walk((function(e){if("function"===e.type&&s.test(e.value)){var n=r.default.stringify(e.nodes);if(!(n.indexOf("constant")>=0||n.indexOf("env")>=0)){var l=o.parser.parse(n),c=(0,i.default)(l,t);e.type="word",e.value=(0,a.default)(e.value,c,t)}}}),!0).toString()},e.exports=t.default},function(e,t,n){"use strict";var r=n(46),o=n(48);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(1)),a=(0,r(n(49)).default)(i.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle");t.default=a},function(e,t,n){"use strict";n.d(t,"a",(function(){return z}));var r=n(21),o=n.n(r),i=n(1),a=n.n(i),l=n(25),s=n.n(l),c=n(28),u=n(118),f=n(67),d=n(11),p=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t},h=n(85),m=n(78),g=n(18);function v(){return(v=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&t.handleDrag(e.changedTouches[0])},t.handleDragEnd=function(){t.setState({isTravellerMoving:!1,isSlideMoving:!1}),t.detachDragEndListener()},t.handleLeaveWrapper=function(){(t.state.isTravellerMoving||t.state.isSlideMoving)&&(t.leaveTimer=window.setTimeout(t.handleDragEnd,t.props.leaveTimeOut))},t.handleEnterSlideOrTraveller=function(){t.setState({isTextActive:!0})},t.handleLeaveSlideOrTraveller=function(){t.setState({isTextActive:!1})},t.handleSlideDragStart=function(e){var n=A(e)?e.changedTouches[0]:e;t.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),t.attachDragEndListener()},t.travellerDragStartHandlers={startX:t.handleTravellerDragStart.bind(P(t),"startX"),endX:t.handleTravellerDragStart.bind(P(t),"endX")},t.state={},t}return t=c,r=[{key:"renderDefaultTraveller",value:function(e){var t=e.x,n=e.y,r=e.width,o=e.height,i=e.stroke,a=Math.floor(n+o/2)-1;return s.a.createElement(s.a.Fragment,null,s.a.createElement("rect",{x:t,y:n,width:r,height:o,fill:i,stroke:"none"}),s.a.createElement("line",{x1:t+1,y1:a,x2:t+r-1,y2:a,fill:"none",stroke:"#fff"}),s.a.createElement("line",{x1:t+1,y1:a+2,x2:t+r-1,y2:a+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,t){return s.a.isValidElement(e)?s.a.cloneElement(e,t):o()(e)?e(t):c.renderDefaultTraveller(t)}},{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=e.width,o=e.x,i=e.travellerWidth,l=e.updateId,s=e.startIndex,c=e.endIndex;if(n!==t.prevData||l!==t.prevUpdateId)return k({prevData:n,prevTravellerWidth:i,prevUpdateId:l,prevX:o,prevWidth:r},n&&n.length?function(e){var t=e.data,n=e.startIndex,r=e.endIndex,o=e.x,i=e.width,l=e.travellerWidth;if(!t||!t.length)return{};var s=t.length,c=Object(f.b)().domain(a()(0,s)).range([o,o+i-l]),u=c.domain().map((function(e){return c(e)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,startX:c(n),endX:c(r),scale:c,scaleValues:u}}({data:n,width:r,x:o,travellerWidth:i,startIndex:s,endIndex:c}):{scale:null,scaleValues:null});if(t.scale&&(r!==t.prevWidth||o!==t.prevX||i!==t.prevTravellerWidth)){t.scale.range([o,o+r-i]);var u=t.scale.domain().map((function(e){return t.scale(e)}));return{prevData:n,prevTravellerWidth:i,prevUpdateId:l,prevX:o,prevWidth:r,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:u}}return null}},{key:"getIndexInRange",value:function(e,t){for(var n=0,r=e.length-1;r-n>1;){var o=Math.floor((n+r)/2);e[o]>t?r=o:n=o}return t>=e[r]?r:n}}],(n=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(e){var t=e.startX,n=e.endX,r=this.state.scaleValues,o=this.props,i=o.gap,a=o.data.length-1,l=Math.min(t,n),s=Math.max(t,n),u=c.getIndexInRange(r,l),f=c.getIndexInRange(r,s);return{startIndex:u-u%i,endIndex:f===a?a:f-f%i}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,i=t.dataKey,a=Object(h.w)(n[e],i,e);return o()(r)?r(a,e):a}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0)}},{key:"handleSlideDrag",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,o=t.endX,i=this.props,a=i.x,l=i.width,s=i.travellerWidth,c=i.startIndex,u=i.endIndex,f=i.onChange,d=e.pageX-n;d>0?d=Math.min(d,a+l-s-o,a+l-s-r):d<0&&(d=Math.max(d,a-r,a-o));var p=this.getIndex({startX:r+d,endX:o+d});p.startIndex===c&&p.endIndex===u||!f||f(p),this.setState({startX:r+d,endX:o+d,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=A(t)?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:n.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(e){var t,n=this.state,r=n.brushMoveStartX,o=n.movingTravellerId,i=n.endX,a=n.startX,l=this.state[o],s=this.props,c=s.x,u=s.width,f=s.travellerWidth,d=s.onChange,p=s.gap,h=s.data,m={startX:this.state.startX,endX:this.state.endX},g=e.pageX-r;g>0?g=Math.min(g,c+u-f-l):g<0&&(g=Math.max(g,c-l)),m[o]=l+g;var v=this.getIndex(m),y=v.startIndex,b=v.endIndex;this.setState((_(t={},o,l+g),_(t,"brushMoveStartX",e.pageX),t),(function(){d&&function(){var e=h.length-1;return"startX"===o&&(i>a?y%p===0:b%p===0)||ia?b%p===0:y%p===0)||i>a&&b===e}()&&d(v)}))}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,i=e.fill,a=e.stroke;return s.a.createElement("rect",{stroke:a,fill:i,x:t,y:n,width:r,height:o})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,i=e.data,a=e.children,c=e.padding,u=l.Children.only(a);return u?s.a.cloneElement(u,{x:t,y:n,width:r,height:o,margin:c,compact:!0,data:i}):null}},{key:"renderTravellerLayer",value:function(e,t){var n=this.props,r=n.y,o=n.travellerWidth,i=n.height,a=n.traveller,l=Math.max(e,this.props.x),u=k(k({},Object(x.c)(this.props)),{},{x:l,y:r,width:o,height:i});return s.a.createElement(d.a,{className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[t],onTouchStart:this.travellerDragStartHandlers[t],style:{cursor:"col-resize"}},c.renderTraveller(a,u))}},{key:"renderSlide",value:function(e,t){var n=this.props,r=n.y,o=n.height,i=n.stroke,a=n.travellerWidth,l=Math.min(e,t)+a,c=Math.max(Math.abs(t-e)-a,0);return s.a.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:i,fillOpacity:.2,x:l,y:r,width:c,height:o})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,n=e.endIndex,r=e.y,o=e.height,i=e.travellerWidth,a=e.stroke,l=this.state,c=l.startX,u=l.endX,f={pointerEvents:"none",fill:a};return s.a.createElement(d.a,{className:"recharts-brush-texts"},s.a.createElement(p.a,O({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,u)-5,y:r+o/2},f),this.getTextOfTick(t)),s.a.createElement(p.a,O({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,u)+i+5,y:r+o/2},f),this.getTextOfTick(n)))}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.className,r=e.children,o=e.x,i=e.y,a=e.width,l=e.height,c=e.alwaysShowText,f=this.state,p=f.startX,h=f.endX,g=f.isTextActive,x=f.isSlideMoving,w=f.isTravellerMoving;if(!t||!t.length||!Object(m.g)(o)||!Object(m.g)(i)||!Object(m.g)(a)||!Object(m.g)(l)||a<=0||l<=0)return null;var O=u()("recharts-brush",n),S=1===s.a.Children.count(r),k=function(e,t){if(!e)return null;var n=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),r=b.reduce((function(e,r){return v(v({},e),{},y({},r+n,t))}),{});return r[e]=t,r}("userSelect","none");return s.a.createElement(d.a,{className:O,onMouseMove:this.handleDrag,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:k},this.renderBackground(),S&&this.renderPanorama(),this.renderSlide(p,h),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(h,"endX"),(g||x||w||c)&&this.renderText())}}])&&C(t.prototype,n),r&&C(t,r),c}(l.PureComponent);R.displayName="Brush",R.defaultProps={height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1}},function(e,t,n){"use strict";var r=n(4),o=n(10),i=n(1),a=(n(9),n(29)),l=n(6),s=n(26),c=n(55),u=n(14),f=n(112),d=n(94),p=n(694),h="undefined"===typeof window?i.useEffect:i.useLayoutEffect;var m=function(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,o=e.rippleX,a=e.rippleY,s=e.rippleSize,u=e.in,f=e.onExited,d=void 0===f?function(){}:f,p=e.timeout,m=i.useState(!1),g=m[0],v=m[1],y=Object(l.a)(t.ripple,t.rippleVisible,r&&t.ripplePulsate),b={width:s,height:s,top:-s/2+a,left:-s/2+o},x=Object(l.a)(t.child,g&&t.childLeaving,r&&t.childPulsate),w=Object(c.a)(d);return h((function(){if(!u){v(!0);var e=setTimeout(w,p);return function(){clearTimeout(e)}}}),[w,u,p]),i.createElement("span",{className:y,style:b},i.createElement("span",{className:x}))},g=i.forwardRef((function(e,t){var n=e.center,a=void 0!==n&&n,s=e.classes,c=e.className,u=Object(o.a)(e,["center","classes","className"]),f=i.useState([]),h=f[0],g=f[1],v=i.useRef(0),y=i.useRef(null);i.useEffect((function(){y.current&&(y.current(),y.current=null)}),[h]);var b=i.useRef(!1),x=i.useRef(null),w=i.useRef(null),O=i.useRef(null);i.useEffect((function(){return function(){clearTimeout(x.current)}}),[]);var S=i.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,o=e.rippleSize,a=e.cb;g((function(e){return[].concat(Object(d.a)(e),[i.createElement(m,{key:v.current,classes:s,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o})])})),v.current+=1,y.current=a}),[s]),k=i.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t.pulsate,o=void 0!==r&&r,i=t.center,l=void 0===i?a||t.pulsate:i,s=t.fakeElement,c=void 0!==s&&s;if("mousedown"===e.type&&b.current)b.current=!1;else{"touchstart"===e.type&&(b.current=!0);var u,f,d,p=c?null:O.current,h=p?p.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(l||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(h.width/2),f=Math.round(h.height/2);else{var m=e.touches?e.touches[0]:e,g=m.clientX,v=m.clientY;u=Math.round(g-h.left),f=Math.round(v-h.top)}if(l)(d=Math.sqrt((2*Math.pow(h.width,2)+Math.pow(h.height,2))/3))%2===0&&(d+=1);else{var y=2*Math.max(Math.abs((p?p.clientWidth:0)-u),u)+2,k=2*Math.max(Math.abs((p?p.clientHeight:0)-f),f)+2;d=Math.sqrt(Math.pow(y,2)+Math.pow(k,2))}e.touches?null===w.current&&(w.current=function(){S({pulsate:o,rippleX:u,rippleY:f,rippleSize:d,cb:n})},x.current=setTimeout((function(){w.current&&(w.current(),w.current=null)}),80)):S({pulsate:o,rippleX:u,rippleY:f,rippleSize:d,cb:n})}}),[a,S]),_=i.useCallback((function(){k({},{pulsate:!0})}),[k]),C=i.useCallback((function(e,t){if(clearTimeout(x.current),"touchend"===e.type&&w.current)return e.persist(),w.current(),w.current=null,void(x.current=setTimeout((function(){C(e,t)})));w.current=null,g((function(e){return e.length>0?e.slice(1):e})),y.current=t}),[]);return i.useImperativeHandle(t,(function(){return{pulsate:_,start:k,stop:C}}),[_,k,C]),i.createElement("span",Object(r.a)({className:Object(l.a)(s.root,c),ref:O},u),i.createElement(p.a,{component:null,exit:!0},h))})),v=Object(u.a)((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(i.memo(g)),y=i.forwardRef((function(e,t){var n=e.action,u=e.buttonRef,d=e.centerRipple,p=void 0!==d&&d,h=e.children,m=e.classes,g=e.className,y=e.component,b=void 0===y?"button":y,x=e.disabled,w=void 0!==x&&x,O=e.disableRipple,S=void 0!==O&&O,k=e.disableTouchRipple,_=void 0!==k&&k,C=e.focusRipple,j=void 0!==C&&C,E=e.focusVisibleClassName,M=e.onBlur,P=e.onClick,T=e.onFocus,A=e.onFocusVisible,R=e.onKeyDown,D=e.onKeyUp,I=e.onMouseDown,N=e.onMouseLeave,L=e.onMouseUp,z=e.onTouchEnd,F=e.onTouchMove,W=e.onTouchStart,H=e.onDragLeave,B=e.tabIndex,V=void 0===B?0:B,U=e.TouchRippleProps,G=e.type,Y=void 0===G?"button":G,$=Object(o.a)(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),q=i.useRef(null);var K=i.useRef(null),X=i.useState(!1),Q=X[0],Z=X[1];w&&Q&&Z(!1);var J=Object(f.a)(),ee=J.isFocusVisible,te=J.onBlurVisible,ne=J.ref;function re(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_;return Object(c.a)((function(r){return t&&t(r),!n&&K.current&&K.current[e](r),!0}))}i.useImperativeHandle(n,(function(){return{focusVisible:function(){Z(!0),q.current.focus()}}}),[]),i.useEffect((function(){Q&&j&&!S&&K.current.pulsate()}),[S,j,Q]);var oe=re("start",I),ie=re("stop",H),ae=re("stop",L),le=re("stop",(function(e){Q&&e.preventDefault(),N&&N(e)})),se=re("start",W),ce=re("stop",z),ue=re("stop",F),fe=re("stop",(function(e){Q&&(te(e),Z(!1)),M&&M(e)}),!1),de=Object(c.a)((function(e){q.current||(q.current=e.currentTarget),ee(e)&&(Z(!0),A&&A(e)),T&&T(e)})),pe=function(){var e=a.findDOMNode(q.current);return b&&"button"!==b&&!("A"===e.tagName&&e.href)},he=i.useRef(!1),me=Object(c.a)((function(e){j&&!he.current&&Q&&K.current&&" "===e.key&&(he.current=!0,e.persist(),K.current.stop(e,(function(){K.current.start(e)}))),e.target===e.currentTarget&&pe()&&" "===e.key&&e.preventDefault(),R&&R(e),e.target===e.currentTarget&&pe()&&"Enter"===e.key&&!w&&(e.preventDefault(),P&&P(e))})),ge=Object(c.a)((function(e){j&&" "===e.key&&K.current&&Q&&!e.defaultPrevented&&(he.current=!1,e.persist(),K.current.stop(e,(function(){K.current.pulsate(e)}))),D&&D(e),P&&e.target===e.currentTarget&&pe()&&" "===e.key&&!e.defaultPrevented&&P(e)})),ve=b;"button"===ve&&$.href&&(ve="a");var ye={};"button"===ve?(ye.type=Y,ye.disabled=w):("a"===ve&&$.href||(ye.role="button"),ye["aria-disabled"]=w);var be=Object(s.a)(u,t),xe=Object(s.a)(ne,q),we=Object(s.a)(be,xe),Oe=i.useState(!1),Se=Oe[0],ke=Oe[1];i.useEffect((function(){ke(!0)}),[]);var _e=Se&&!S&&!w;return i.createElement(ve,Object(r.a)({className:Object(l.a)(m.root,g,Q&&[m.focusVisible,E],w&&m.disabled),onBlur:fe,onClick:P,onFocus:de,onKeyDown:me,onKeyUp:ge,onMouseDown:oe,onMouseLeave:le,onMouseUp:ae,onDragLeave:ie,onTouchEnd:ce,onTouchMove:ue,onTouchStart:se,ref:we,tabIndex:w?-1:V},ye,$),h,_e?i.createElement(v,Object(r.a)({ref:K,center:p},U)):null)}));t.a=Object(u.a)({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(y)},,,,,,function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(e,t){for(var n,l,s=a(e),c=1;c1&&"boolean"!==typeof t)throw new a('"allowMissing" argument must be a boolean');var n=C(e),r=n.length>0?n[0]:"",i=j("%"+r+"%",t),l=i.name,c=i.value,u=!1,f=i.alias;f&&(r=f[0],w(n,x([0,1],f)));for(var d=1,p=!0;d=n.length){var y=s(c,h);c=(p=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:c[h]}else p=b(c,h),c=c[h];p&&!u&&(m[l]=c)}}return c}},function(e,t,n){"use strict";var r=n(409);e.exports=Function.prototype.bind||r},function(e,t,n){"use strict";var r=String.prototype.replace,o=/%20/g,i="RFC1738",a="RFC3986";e.exports={default:a,formatters:{RFC1738:function(e){return r.call(e,o,"+")},RFC3986:function(e){return String(e)}},RFC1738:i,RFC3986:a}},function(e,t,n){var r=n(264),o=n(171);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&nl))return!1;var c=i.get(e);if(c&&i.get(t))return c==t;var u=-1,f=!0,d=2&n?new be:void 0;for(i.set(e,t),i.set(t,e);++u-1},ve.prototype.set=function(e,t){var n=this.__data__,r=Oe(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ye.prototype.clear=function(){this.size=0,this.__data__={hash:new ge,map:new(oe||ve),string:new ge}},ye.prototype.delete=function(e){var t=Pe(this,e).delete(e);return this.size-=t?1:0,t},ye.prototype.get=function(e){return Pe(this,e).get(e)},ye.prototype.has=function(e){return Pe(this,e).has(e)},ye.prototype.set=function(e,t){var n=Pe(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},be.prototype.add=be.prototype.push=function(e){return this.__data__.set(e,r),this},be.prototype.has=function(e){return this.__data__.has(e)},xe.prototype.clear=function(){this.__data__=new ve,this.size=0},xe.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},xe.prototype.get=function(e){return this.__data__.get(e)},xe.prototype.has=function(e){return this.__data__.has(e)},xe.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ve){var r=n.__data__;if(!oe||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ye(r)}return n.set(e,t),this.size=n.size,this};var Ae=ee?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n-1&&e%1==0&&e-1&&e%1==0&&e<=o}function Be(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ve(e){return null!=e&&"object"==typeof e}var Ue=R?function(e){return function(t){return e(t)}}(R):function(e){return Ve(e)&&He(e.length)&&!!k[Se(e)]};function Ge(e){return null!=(t=e)&&He(t.length)&&!We(t)?we(e):je(e);var t}n.exports=function(e,t){return _e(e,t)}}).call(this,n(82),n(174)(e))},function(e,t,n){"use strict";var r=n(468),o=r.default,i=r.DraggableCore;e.exports=o,e.exports.default=o,e.exports.DraggableCore=i},function(e,t,n){"use strict";function r(e){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.matchesSelector=f,t.matchesSelectorAndParentsTo=function(e,t,n){var r=e;do{if(f(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1},t.addEvent=function(e,t,n,r){if(!e)return;var o=s({capture:!0},r);e.addEventListener?e.addEventListener(t,n,o):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n},t.removeEvent=function(e,t,n,r){if(!e)return;var o=s({capture:!0},r);e.removeEventListener?e.removeEventListener(t,n,o):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null},t.outerHeight=function(e){var t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,o.int)(n.borderTopWidth),t+=(0,o.int)(n.borderBottomWidth)},t.outerWidth=function(e){var t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,o.int)(n.borderLeftWidth),t+=(0,o.int)(n.borderRightWidth)},t.innerHeight=function(e){var t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,o.int)(n.paddingTop),t-=(0,o.int)(n.paddingBottom)},t.innerWidth=function(e){var t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,o.int)(n.paddingLeft),t-=(0,o.int)(n.paddingRight)},t.offsetXYFromParent=function(e,t,n){var r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),o=(e.clientX+t.scrollLeft-r.left)/n,i=(e.clientY+t.scrollTop-r.top)/n;return{x:o,y:i}},t.createCSSTransform=function(e,t){var n=d(e,t,"px");return c({},(0,i.browserPrefixToKey)("transform",i.default),n)},t.createSVGTransform=function(e,t){return d(e,t,"")},t.getTranslation=d,t.getTouch=function(e,t){return e.targetTouches&&(0,o.findInArray)(e.targetTouches,(function(e){return t===e.identifier}))||e.changedTouches&&(0,o.findInArray)(e.changedTouches,(function(e){return t===e.identifier}))},t.getTouchIdentifier=function(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier},t.addUserSelectStyles=function(e){if(!e)return;var t=e.getElementById("react-draggable-style-el");t||((t=e.createElement("style")).type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t));e.body&&p(e.body,"react-draggable-transparent-selection")},t.removeUserSelectStyles=function(e){if(!e)return;try{if(e.body&&h(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{var t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(n){}},t.addClassName=p,t.removeClassName=h;var o=n(175),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(n,i,l):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(469));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}},function(e,t,n){var r=n(501),o=n(101);e.exports=function e(t,n,i,a,l){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!==t&&n!==n:r(t,n,i,a,e,l))}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},function(e,t,n){var r=n(292),o=n(527);e.exports=function e(t,n,i,a,l){var s=-1,c=t.length;for(i||(i=o),l||(l=[]);++s0&&i(u)?n>1?e(u,n-1,i,a,l):r(l,u):a||(l[l.length]=u)}return l}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return c}));var r=n(3),o=function(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(o);++r=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function o(e){if(!(t=r.exec(e)))throw new Error("invalid format: "+e);var t;return new i({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function i(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}o.prototype=i.prototype,i.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},function(e,t,n){"use strict";var r=n(142);t.a=function(e){var t=e,n=e;function o(e,t,r,o){for(null==r&&(r=0),null==o&&(o=e.length);r>>1;n(e[i],t)<0?r=i+1:o=i}return r}return 1===e.length&&(t=function(t,n){return e(t)-n},n=function(e){return function(t,n){return Object(r.a)(e(t),n)}}(e)),{left:o,center:function(e,n,r,i){null==r&&(r=0),null==i&&(i=e.length);var a=o(e,n,r,i-1);return a>r&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,o){for(null==r&&(r=0),null==o&&(o=e.length);r>>1;n(e[i],t)>0?o=i:r=i+1}return r}}}},function(e,t,n){e.exports=n(557)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(1),o=n.n(r),i=n(187);function a(){return o.a.useContext(i.a)}},function(e,t,n){"use strict";var r=n(10),o=n(4),i=n(1),a=(n(9),n(6)),l=n(14),s=i.forwardRef((function(e,t){var n=e.classes,l=e.className,s=e.component,c=void 0===s?"div":s,u=e.square,f=void 0!==u&&u,d=e.elevation,p=void 0===d?1:d,h=e.variant,m=void 0===h?"elevation":h,g=Object(r.a)(e,["classes","className","component","square","elevation","variant"]);return i.createElement(c,Object(o.a)({className:Object(a.a)(n.root,l,"outlined"===m?n.outlined:n["elevation".concat(p)],!f&&n.rounded),ref:t},g))}));t.a=Object(l.a)((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),Object(o.a)({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(s)},,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(221),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),l=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||i===r.RFC1738&&(40===u||41===u)?s+=l.charAt(c):u<128?s+=a[u]:u<2048?s+=a[192|u>>6]+a[128|63&u]:u<55296||u>=57344?s+=a[224|u>>12]+a[128|u>>6&63]+a[128|63&u]:(c+=1,u=65536+((1023&u)<<10|1023&l.charCodeAt(c)),s+=a[240|u>>18]+a[128|u>>12&63]+a[128|u>>6&63]+a[128|63&u])}return s},isBuffer:function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var n=[],r=0;r0&&void 0!==arguments[0]?arguments[0]:{};l(this,e),this.cookieOptions=Object.assign({path:"/"},t),s=void 0===t.prefix?s:t.prefix}return r(e,[{key:"getItem",value:function(e){var t=a.default.parse(document.cookie);return t&&t.hasOwnProperty(s+e)?t[s+e]:null}},{key:"setItem",value:function(e,t){return document.cookie=a.default.serialize(s+e,t,this.cookieOptions),t}},{key:"removeItem",value:function(e){var t=Object.assign({},this.cookieOptions,{maxAge:-1});return document.cookie=a.default.serialize(s+e,"",t),null}},{key:"clear",value:function(){var e=a.default.parse(document.cookie);for(var t in e)0===t.indexOf(s)&&this.removeItem(t.substr(s.length));return null}}]),e}();t.default=c},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2),g=/Android/.test(e),v=m||g||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),y=m||/Mac/.test(t),b=/\bCrOS\b/.test(e),x=/win/i.test(t),w=f&&e.match(/Version\/(\d*\.\d*)/);w&&(w=Number(w[1])),w&&w>=15&&(f=!1,s=!0);var O=y&&(c||f&&(null==w||w<12.11)),S=n||a&&l>=9;function k(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var _,C=function(e,t){var n=e.className,r=k(t).exec(n);if(r){var o=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(o?r[1]+o:"")}};function j(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function E(e,t){return j(e).appendChild(t)}function M(e,t,n,r){var o=document.createElement(e);if(n&&(o.className=n),r&&(o.style.cssText=r),"string"==typeof t)o.appendChild(document.createTextNode(t));else if(t)for(var i=0;i=t)return a+(t-i);a+=l-i,a+=n-a%n,i=l+1}}m?I=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(I=function(e){try{e.select()}catch(t){}});var F=function(){this.id=null,this.f=null,this.time=0,this.handler=N(this.onTimeout,this)};function W(e,t){for(var n=0;n=t)return r+Math.min(a,t-o);if(o+=i-r,r=i+1,(o+=n-o%n)>=t)return r}}var $=[""];function q(e){for(;$.length<=e;)$.push(K($)+" ");return $[e]}function K(e){return e[e.length-1]}function X(e,t){for(var n=[],r=0;r"\x80"&&(e.toUpperCase()!=e.toLowerCase()||ee.test(e))}function ne(e,t){return t?!!(t.source.indexOf("\\w")>-1&&te(e))||t.test(e):te(e)}function re(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var oe=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ie(e){return e.charCodeAt(0)>=768&&oe.test(e)}function ae(e,t,n){for(;(n<0?t>0:tn?-1:1;;){if(t==n)return t;var o=(t+n)/2,i=r<0?Math.ceil(o):Math.floor(o);if(i==t)return e(i)?t:n;e(i)?n=i:t=i+r}}function se(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var o=!1,i=0;it||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",i),o=!0)}o||r(t,n,"ltr")}var ce=null;function ue(e,t,n){var r;ce=null;for(var o=0;ot)return o;i.to==t&&(i.from!=i.to&&"before"==n?r=o:ce=o),i.from==t&&(i.from!=i.to&&"before"!=n?r=o:ce=o)}return null!=r?r:ce}var fe=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(n){return n<=247?e.charAt(n):1424<=n&&n<=1524?"R":1536<=n&&n<=1785?t.charAt(n-1536):1774<=n&&n<=2220?"r":8192<=n&&n<=8203?"w":8204==n?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,o=/[stwN]/,i=/[LRr]/,a=/[Lb1n]/,l=/[1n]/;function s(e,t,n){this.level=e,this.from=t,this.to=n}return function(e,t){var c="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!r.test(e))return!1;for(var u=e.length,f=[],d=0;d-1&&(r[t]=o.slice(0,i).concat(o.slice(i+1)))}}}function ve(e,t){var n=me(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),o=0;o0}function we(e){e.prototype.on=function(e,t){he(this,e,t)},e.prototype.off=function(e,t){ge(this,e,t)}}function Oe(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Se(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function ke(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function _e(e){Oe(e),Se(e)}function Ce(e){return e.target||e.srcElement}function je(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),y&&e.ctrlKey&&1==t&&(t=3),t}var Ee,Me,Pe=function(){if(a&&l<9)return!1;var e=M("div");return"draggable"in e||"dragDrop"in e}();function Te(e){if(null==Ee){var t=M("span","\u200b");E(e,M("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Ee=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&l<8))}var n=Ee?M("span","\u200b"):M("span","\xa0",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Ae(e){if(null!=Me)return Me;var t=E(e,document.createTextNode("A\u062eA")),n=_(t,0,1).getBoundingClientRect(),r=_(t,1,2).getBoundingClientRect();return j(e),!(!n||n.left==n.right)&&(Me=r.right-n.right<3)}var Re=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var o=e.indexOf("\n",t);-1==o&&(o=e.length);var i=e.slice(t,"\r"==e.charAt(o-1)?o-1:o),a=i.indexOf("\r");-1!=a?(n.push(i.slice(0,a)),t+=a+1):(n.push(i),t=o+1)}return n}:function(e){return e.split(/\r\n?|\n/)},De=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(n){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Ie=function(){var e=M("div");return"oncopy"in e||(e.setAttribute("oncopy","return;"),"function"==typeof e.oncopy)}(),Ne=null;function Le(e){if(null!=Ne)return Ne;var t=E(e,M("span","x")),n=t.getBoundingClientRect(),r=_(t,0,1).getBoundingClientRect();return Ne=Math.abs(n.left-r.left)>1}var ze={},Fe={};function We(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),ze[e]=t}function He(e,t){Fe[e]=t}function Be(e){if("string"==typeof e&&Fe.hasOwnProperty(e))e=Fe[e];else if(e&&"string"==typeof e.name&&Fe.hasOwnProperty(e.name)){var t=Fe[e.name];"string"==typeof t&&(t={name:t}),(e=J(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Be("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Be("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Ve(e,t){t=Be(t);var n=ze[t.name];if(!n)return Ve(e,"text/plain");var r=n(e,t);if(Ue.hasOwnProperty(t.name)){var o=Ue[t.name];for(var i in o)o.hasOwnProperty(i)&&(r.hasOwnProperty(i)&&(r["_"+i]=r[i]),r[i]=o[i])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var Ue={};function Ge(e,t){L(t,Ue.hasOwnProperty(e)?Ue[e]:Ue[e]={})}function Ye(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var o=t[r];o instanceof Array&&(o=o.concat([])),n[r]=o}return n}function $e(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function qe(e,t,n){return!e.startState||e.startState(t,n)}var Ke=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Xe(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var o=n.children[r],i=o.chunkSize();if(t=e.first&&tn?ot(n,Xe(e,n).text.length):dt(t,Xe(e,t.line).text.length)}function dt(e,t){var n=e.ch;return null==n||n>t?ot(e.line,t):n<0?ot(e.line,0):e}function pt(e,t){for(var n=[],r=0;r=this.string.length},Ke.prototype.sol=function(){return this.pos==this.lineStart},Ke.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ke.prototype.next=function(){if(this.post},Ke.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Ke.prototype.skipToEnd=function(){this.pos=this.string.length},Ke.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Ke.prototype.backUp=function(e){this.pos-=e},Ke.prototype.column=function(){return this.lastColumnPos0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var o=function(e){return n?e.toLowerCase():e};if(o(this.string.substr(this.pos,e.length))==o(e))return!1!==t&&(this.pos+=e.length),!0},Ke.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ke.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Ke.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Ke.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var ht=function(e,t){this.state=e,this.lookAhead=t},mt=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function gt(e,t,n,r){var o=[e.state.modeGen],i={};_t(e,t.text,e.doc.mode,n,(function(e,t){return o.push(e,t)}),i,r);for(var a=n.state,l=function(r){n.baseTokens=o;var l=e.state.overlays[r],s=1,c=0;n.state=!0,_t(e,t.text,l.mode,n,(function(e,t){for(var n=s;ce&&o.splice(s,1,e,o[s+1],r),s+=2,c=Math.min(e,r)}if(t)if(l.opaque)o.splice(n,s-n,e,"overlay "+t),s=n+2;else for(;ne.options.maxHighlightLength&&Ye(e.doc.mode,r.state),i=gt(e,t,r);o&&(r.state=o),t.stateAfter=r.save(!o),t.styles=i.styles,i.classes?t.styleClasses=i.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function yt(e,t,n){var r=e.doc,o=e.display;if(!r.mode.startState)return new mt(r,!0,t);var i=Ct(e,t,n),a=i>r.first&&Xe(r,i-1).stateAfter,l=a?mt.fromSaved(r,a,i):new mt(r,qe(r.mode),i);return r.iter(i,t,(function(n){bt(e,n.text,l);var r=l.line;n.stateAfter=r==t-1||r%5==0||r>=o.viewFrom&&rt.start)return i}throw new Error("Mode "+e.name+" failed to advance stream.")}mt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},mt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},mt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},mt.fromSaved=function(e,t,n){return t instanceof ht?new mt(e,Ye(e.mode,t.state),n,t.lookAhead):new mt(e,Ye(e.mode,t),n)},mt.prototype.save=function(e){var t=!1!==e?Ye(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ht(t,this.maxLookAhead):t};var Ot=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function St(e,t,n,r){var o,i,a=e.doc,l=a.mode,s=Xe(a,(t=ft(a,t)).line),c=yt(e,t.line,n),u=new Ke(s.text,e.options.tabSize,c);for(r&&(i=[]);(r||u.pose.options.maxHighlightLength?(l=!1,a&&bt(e,t,r,f.pos),f.pos=t.length,s=null):s=kt(wt(n,f,r.state,d),i),d){var p=d[0].name;p&&(s="m-"+(s?p+" "+s:p))}if(!l||u!=s){for(;ca;--l){if(l<=i.first)return i.first;var s=Xe(i,l-1),c=s.stateAfter;if(c&&(!n||l+(c instanceof ht?c.lookAhead:0)<=i.modeFrontier))return l;var u=z(s.text,null,e.options.tabSize);(null==o||r>u)&&(o=l-1,r=u)}return o}function jt(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;r--){var o=Xe(e,r).stateAfter;if(o&&(!(o instanceof ht)||r+o.lookAhead=t:i.to>t);(r||(r=[])).push(new At(a,i.from,l?null:i.to))}}return r}function Lt(e,t,n){var r;if(e)for(var o=0;o=t:i.to>t)||i.from==t&&"bookmark"==a.type&&(!n||i.marker.insertLeft)){var l=null==i.from||(a.inclusiveLeft?i.from<=t:i.from0&&l)for(var b=0;b0)){var u=[s,1],f=it(c.from,l.from),d=it(c.to,l.to);(f<0||!a.inclusiveLeft&&!f)&&u.push({from:c.from,to:l.from}),(d>0||!a.inclusiveRight&&!d)&&u.push({from:l.to,to:c.to}),o.splice.apply(o,u),s+=u.length-3}}return o}function Ht(e){var t=e.markedSpans;if(t){for(var n=0;nt)&&(!n||Gt(n,i.marker)<0)&&(n=i.marker)}return n}function Xt(e,t,n,r,o){var i=Xe(e,t),a=Mt&&i.markedSpans;if(a)for(var l=0;l=0&&f<=0||u<=0&&f>=0)&&(u<=0&&(s.marker.inclusiveRight&&o.inclusiveLeft?it(c.to,n)>=0:it(c.to,n)>0)||u>=0&&(s.marker.inclusiveRight&&o.inclusiveLeft?it(c.from,r)<=0:it(c.from,r)<0)))return!0}}}function Qt(e){for(var t;t=$t(e);)e=t.find(-1,!0).line;return e}function Zt(e){for(var t;t=qt(e);)e=t.find(1,!0).line;return e}function Jt(e){for(var t,n;t=qt(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function en(e,t){var n=Xe(e,t),r=Qt(n);return n==r?t:et(r)}function tn(e,t){if(t>e.lastLine())return t;var n,r=Xe(e,t);if(!nn(e,r))return t;for(;n=qt(r);)r=n.find(1,!0).line;return et(r)+1}function nn(e,t){var n=Mt&&t.markedSpans;if(n)for(var r=void 0,o=0;ot.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var sn=function(e,t,n){this.text=e,Bt(this,t),this.height=n?n(this):1};function cn(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Ht(e),Bt(e,n);var o=r?r(e):1;o!=e.height&&Je(e,o)}function un(e){e.parent=null,Ht(e)}sn.prototype.lineNo=function(){return et(this)},we(sn);var fn={},dn={};function pn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?dn:fn;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function hn(e,t){var n=P("span",null,null,s?"padding-right: .1px":null),r={pre:P("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var o=0;o<=(t.rest?t.rest.length:0);o++){var i=o?t.rest[o-1]:t.line,a=void 0;r.pos=0,r.addToken=gn,Ae(e.display.measure)&&(a=de(i,e.doc.direction))&&(r.addToken=yn(r.addToken,a)),r.map=[],xn(i,r,vt(e,i,t!=e.display.externalMeasured&&et(i))),i.styleClasses&&(i.styleClasses.bgClass&&(r.bgClass=D(i.styleClasses.bgClass,r.bgClass||"")),i.styleClasses.textClass&&(r.textClass=D(i.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Te(e.display.measure))),0==o?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(s){var l=r.content.lastChild;(/\bcm-tab\b/.test(l.className)||l.querySelector&&l.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return ve(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=D(r.pre.className,r.textClass||"")),r}function mn(e){var t=M("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function gn(e,t,n,r,o,i,s){if(t){var c,u=e.splitSpaces?vn(t,e.trailingSpace):t,f=e.cm.state.specialChars,d=!1;if(f.test(t)){c=document.createDocumentFragment();for(var p=0;;){f.lastIndex=p;var h=f.exec(t),m=h?h.index-p:t.length-p;if(m){var g=document.createTextNode(u.slice(p,p+m));a&&l<9?c.appendChild(M("span",[g])):c.appendChild(g),e.map.push(e.pos,e.pos+m,g),e.col+=m,e.pos+=m}if(!h)break;p+=m+1;var v=void 0;if("\t"==h[0]){var y=e.cm.options.tabSize,b=y-e.col%y;(v=c.appendChild(M("span",q(b),"cm-tab"))).setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),e.col+=b}else"\r"==h[0]||"\n"==h[0]?((v=c.appendChild(M("span","\r"==h[0]?"\u240d":"\u2424","cm-invalidchar"))).setAttribute("cm-text",h[0]),e.col+=1):((v=e.cm.options.specialCharPlaceholder(h[0])).setAttribute("cm-text",h[0]),a&&l<9?c.appendChild(M("span",[v])):c.appendChild(v),e.col+=1);e.map.push(e.pos,e.pos+1,v),e.pos++}}else e.col+=t.length,c=document.createTextNode(u),e.map.push(e.pos,e.pos+t.length,c),a&&l<9&&(d=!0),e.pos+=t.length;if(e.trailingSpace=32==u.charCodeAt(t.length-1),n||r||o||d||i||s){var x=n||"";r&&(x+=r),o&&(x+=o);var w=M("span",[c],x,i);if(s)for(var O in s)s.hasOwnProperty(O)&&"style"!=O&&"class"!=O&&w.setAttribute(O,s[O]);return e.content.appendChild(w)}e.content.appendChild(c)}}function vn(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",o=0;oc&&f.from<=c);d++);if(f.to>=u)return e(n,r,o,i,a,l,s);e(n,r.slice(0,f.to-c),o,i,null,l,s),i=null,r=r.slice(f.to-c),c=f.to}}}function bn(e,t,n,r){var o=!r&&n.widgetNode;o&&e.map.push(e.pos,e.pos+t,o),!r&&e.cm.display.input.needsContentAttribute&&(o||(o=e.content.appendChild(document.createElement("span"))),o.setAttribute("cm-marker",n.id)),o&&(e.cm.display.input.setUneditable(o),e.content.appendChild(o)),e.pos+=t,e.trailingSpace=!1}function xn(e,t,n){var r=e.markedSpans,o=e.text,i=0;if(r)for(var a,l,s,c,u,f,d,p=o.length,h=0,m=1,g="",v=0;;){if(v==h){s=c=u=l="",d=null,f=null,v=1/0;for(var y=[],b=void 0,x=0;xh||O.collapsed&&w.to==h&&w.from==h)){if(null!=w.to&&w.to!=h&&v>w.to&&(v=w.to,c=""),O.className&&(s+=" "+O.className),O.css&&(l=(l?l+";":"")+O.css),O.startStyle&&w.from==h&&(u+=" "+O.startStyle),O.endStyle&&w.to==v&&(b||(b=[])).push(O.endStyle,w.to),O.title&&((d||(d={})).title=O.title),O.attributes)for(var S in O.attributes)(d||(d={}))[S]=O.attributes[S];O.collapsed&&(!f||Gt(f.marker,O)<0)&&(f=w)}else w.from>h&&v>w.from&&(v=w.from)}if(b)for(var k=0;k=p)break;for(var C=Math.min(p,v);;){if(g){var j=h+g.length;if(!f){var E=j>C?g.slice(0,C-h):g;t.addToken(t,E,a?a+s:s,u,h+E.length==v?c:"",l,d)}if(j>=C){g=g.slice(C-h),h=C;break}h=j,u=""}g=o.slice(i,i=n[m++]),a=pn(n[m++],t.cm.options)}}else for(var M=1;M2&&i.push((s.bottom+c.top)/2-n.top)}}i.push(n.bottom-n.top)}}function Qn(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;rn)return{map:e.measure.maps[o],cache:e.measure.caches[o],before:!0}}function Zn(e,t){var n=et(t=Qt(t)),r=e.display.externalMeasured=new wn(e.doc,t,n);r.lineN=n;var o=r.built=hn(e,r);return r.text=o.pre,E(e.display.lineMeasure,o.pre),r}function Jn(e,t,n,r){return nr(e,tr(e,t),n,r)}function er(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&tt)&&(o=(i=s-l)-1,t>=s&&(a="right")),null!=o){if(r=e[c+2],l==s&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==o)for(;c&&e[c-2]==e[c-3]&&e[c-1].insertLeft;)r=e[2+(c-=3)],a="left";if("right"==n&&o==s-l)for(;c=0&&(n=e[o]).left==n.right;o--);return n}function lr(e,t,n,r){var o,i=ir(t.map,n,r),s=i.node,c=i.start,u=i.end,f=i.collapse;if(3==s.nodeType){for(var d=0;d<4;d++){for(;c&&ie(t.line.text.charAt(i.coverStart+c));)--c;for(;i.coverStart+u0&&(f=r="right"),o=e.options.lineWrapping&&(p=s.getClientRects()).length>1?p["right"==r?p.length-1:0]:s.getBoundingClientRect()}if(a&&l<9&&!c&&(!o||!o.left&&!o.right)){var h=s.parentNode.getClientRects()[0];o=h?{left:h.left,right:h.left+Mr(e.display),top:h.top,bottom:h.bottom}:or}for(var m=o.top-t.rect.top,g=o.bottom-t.rect.top,v=(m+g)/2,y=t.view.measure.heights,b=0;b=r.text.length?(s=r.text.length,c="before"):s<=0&&(s=0,c="after"),!l)return a("before"==c?s-1:s,"before"==c);function u(e,t,n){return a(n?e-1:e,1==l[t].level!=n)}var f=ue(l,s,c),d=ce,p=u(s,f,"before"==c);return null!=d&&(p.other=u(s,d,"before"!=c)),p}function br(e,t){var n=0;t=ft(e.doc,t),e.options.lineWrapping||(n=Mr(e.display)*t.ch);var r=Xe(e.doc,t.line),o=on(r)+Un(e.display);return{left:n,right:n,top:o,bottom:o+r.height}}function xr(e,t,n,r,o){var i=ot(e,t,n);return i.xRel=o,r&&(i.outside=r),i}function wr(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return xr(r.first,0,null,-1,-1);var o=tt(r,n),i=r.first+r.size-1;if(o>i)return xr(r.first+r.size-1,Xe(r,i).text.length,null,1,1);t<0&&(t=0);for(var a=Xe(r,o);;){var l=_r(e,a,o,t,n),s=Kt(a,l.ch+(l.xRel>0||l.outside>0?1:0));if(!s)return l;var c=s.find(1);if(c.line==o)return c;a=Xe(r,o=c.line)}}function Or(e,t,n,r){r-=hr(t);var o=t.text.length,i=le((function(t){return nr(e,n,t-1).bottom<=r}),o,0);return{begin:i,end:o=le((function(t){return nr(e,n,t).top>r}),i,o)}}function Sr(e,t,n,r){return n||(n=tr(e,t)),Or(e,t,n,mr(e,t,nr(e,n,r),"line").top)}function kr(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function _r(e,t,n,r,o){o-=on(t);var i=tr(e,t),a=hr(t),l=0,s=t.text.length,c=!0,u=de(t,e.doc.direction);if(u){var f=(e.options.lineWrapping?jr:Cr)(e,t,n,i,u,r,o);l=(c=1!=f.level)?f.from:f.to-1,s=c?f.to:f.from-1}var d,p,h=null,m=null,g=le((function(t){var n=nr(e,i,t);return n.top+=a,n.bottom+=a,!!kr(n,r,o,!1)&&(n.top<=o&&n.left<=r&&(h=t,m=n),!0)}),l,s),v=!1;if(m){var y=r-m.left=x.bottom?1:0}return xr(n,g=ae(t.text,g,1),p,v,r-d)}function Cr(e,t,n,r,o,i,a){var l=le((function(l){var s=o[l],c=1!=s.level;return kr(yr(e,ot(n,c?s.to:s.from,c?"before":"after"),"line",t,r),i,a,!0)}),0,o.length-1),s=o[l];if(l>0){var c=1!=s.level,u=yr(e,ot(n,c?s.from:s.to,c?"after":"before"),"line",t,r);kr(u,i,a,!0)&&u.top>a&&(s=o[l-1])}return s}function jr(e,t,n,r,o,i,a){var l=Or(e,t,r,a),s=l.begin,c=l.end;/\s/.test(t.text.charAt(c-1))&&c--;for(var u=null,f=null,d=0;d=c||p.to<=s)){var h=nr(e,r,1!=p.level?Math.min(c,p.to)-1:Math.max(s,p.from)).right,m=hm)&&(u=p,f=m)}}return u||(u=o[o.length-1]),u.fromc&&(u={from:u.from,to:c,level:u.level}),u}function Er(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==rr){rr=M("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)rr.appendChild(document.createTextNode("x")),rr.appendChild(M("br"));rr.appendChild(document.createTextNode("x"))}E(e.measure,rr);var n=rr.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),j(e.measure),n||1}function Mr(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=M("span","xxxxxxxxxx"),n=M("pre",[t],"CodeMirror-line-like");E(e.measure,n);var r=t.getBoundingClientRect(),o=(r.right-r.left)/10;return o>2&&(e.cachedCharWidth=o),o||10}function Pr(e){for(var t=e.display,n={},r={},o=t.gutters.clientLeft,i=t.gutters.firstChild,a=0;i;i=i.nextSibling,++a){var l=e.display.gutterSpecs[a].className;n[l]=i.offsetLeft+i.clientLeft+o,r[l]=i.clientWidth}return{fixedPos:Tr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Tr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Ar(e){var t=Er(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Mr(e.display)-3);return function(o){if(nn(e.doc,o))return 0;var i=0;if(o.widgets)for(var a=0;a0&&(s=Xe(e.doc,c.line).text).length==c.ch){var u=z(s,s.length,e.options.tabSize)-s.length;c=ot(c.line,Math.max(0,Math.round((i-Yn(e.display).left)/Mr(e.display))-u))}return c}function Ir(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;rt)&&(o.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=o.viewTo)Mt&&en(e.doc,t)o.viewFrom?zr(e):(o.viewFrom+=r,o.viewTo+=r);else if(t<=o.viewFrom&&n>=o.viewTo)zr(e);else if(t<=o.viewFrom){var i=Fr(e,n,n+r,1);i?(o.view=o.view.slice(i.index),o.viewFrom=i.lineN,o.viewTo+=r):zr(e)}else if(n>=o.viewTo){var a=Fr(e,t,t,-1);a?(o.view=o.view.slice(0,a.index),o.viewTo=a.lineN):zr(e)}else{var l=Fr(e,t,t,-1),s=Fr(e,n,n+r,1);l&&s?(o.view=o.view.slice(0,l.index).concat(On(e,l.lineN,s.lineN)).concat(o.view.slice(s.index)),o.viewTo+=r):zr(e)}var c=o.externalMeasured;c&&(n=o.lineN&&t=r.viewTo)){var i=r.view[Ir(e,t)];if(null!=i.node){var a=i.changes||(i.changes=[]);-1==W(a,n)&&a.push(n)}}}function zr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Fr(e,t,n,r){var o,i=Ir(e,t),a=e.display.view;if(!Mt||n==e.doc.first+e.doc.size)return{index:i,lineN:n};for(var l=e.display.viewFrom,s=0;s0){if(i==a.length-1)return null;o=l+a[i].size-t,i++}else o=l-t;t+=o,n+=o}for(;en(e.doc,n)!=n;){if(i==(r<0?0:a.length-1))return null;n+=r*a[i-(r<0?1:0)].size,i+=r}return{index:i,lineN:n}}function Wr(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=On(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=On(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,Ir(e,n)))),r.viewTo=n}function Hr(e){for(var t=e.display.view,n=0,r=0;r=e.display.viewTo||l.to().line0?t.blinker=setInterval((function(){e.hasFocus()||Qr(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function qr(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Xr(e))}function Kr(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Qr(e))}),100)}function Xr(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(ve(e,"focus",e,t),e.state.focused=!0,R(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),s&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),$r(e))}function Qr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(ve(e,"blur",e,t),e.state.focused=!1,C(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function Zr(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r.005||d<-.005)&&(Je(o.line,s),Jr(o.line),o.rest))for(var p=0;pe.display.sizerWidth){var h=Math.ceil(c/Mr(e.display));h>e.display.maxLineLength&&(e.display.maxLineLength=h,e.display.maxLine=o.line,e.display.maxLineChanged=!0)}}}}function Jr(e){if(e.widgets)for(var t=0;t=a&&(i=tt(t,on(Xe(t,s))-e.wrapper.clientHeight),a=s)}return{from:i,to:Math.max(a,i+1)}}function to(e,t){if(!ye(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),o=null;if(t.top+r.top<0?o=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(o=!1),null!=o&&!h){var i=M("div","\u200b",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Un(e.display))+"px;\n height: "+(t.bottom-t.top+$n(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(i),i.scrollIntoView(o),e.display.lineSpace.removeChild(i)}}}function no(e,t,n,r){var o;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==t.sticky?ot(t.line,t.ch+1,"before"):t,t=t.ch?ot(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var i=0;i<5;i++){var a=!1,l=yr(e,t),s=n&&n!=t?yr(e,n):l,c=oo(e,o={left:Math.min(l.left,s.left),top:Math.min(l.top,s.top)-r,right:Math.max(l.left,s.left),bottom:Math.max(l.bottom,s.bottom)+r}),u=e.doc.scrollTop,f=e.doc.scrollLeft;if(null!=c.scrollTop&&(fo(e,c.scrollTop),Math.abs(e.doc.scrollTop-u)>1&&(a=!0)),null!=c.scrollLeft&&(ho(e,c.scrollLeft),Math.abs(e.doc.scrollLeft-f)>1&&(a=!0)),!a)break}return o}function ro(e,t){var n=oo(e,t);null!=n.scrollTop&&fo(e,n.scrollTop),null!=n.scrollLeft&&ho(e,n.scrollLeft)}function oo(e,t){var n=e.display,r=Er(e.display);t.top<0&&(t.top=0);var o=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,i=Kn(e),a={};t.bottom-t.top>i&&(t.bottom=t.top+i);var l=e.doc.height+Gn(n),s=t.topl-r;if(t.topo+i){var u=Math.min(t.top,(c?l:t.bottom)-i);u!=o&&(a.scrollTop=u)}var f=e.options.fixedGutter?0:n.gutters.offsetWidth,d=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-f,p=qn(e)-n.gutters.offsetWidth,h=t.right-t.left>p;return h&&(t.right=t.left+p),t.left<10?a.scrollLeft=0:t.leftp+d-3&&(a.scrollLeft=t.right+(h?0:10)-p),a}function io(e,t){null!=t&&(co(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function ao(e){co(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function lo(e,t,n){null==t&&null==n||co(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function so(e,t){co(e),e.curOp.scrollToPos=t}function co(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,uo(e,br(e,t.from),br(e,t.to),t.margin))}function uo(e,t,n,r){var o=oo(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});lo(e,o.scrollLeft,o.scrollTop)}function fo(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||Vo(e,{top:t}),po(e,t,!0),n&&Vo(e),Io(e,100))}function po(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function ho(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,$o(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function mo(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Gn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+$n(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var go=function(e,t,n){this.cm=n;var r=this.vert=M("div",[M("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),o=this.horiz=M("div",[M("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=o.tabIndex=-1,e(r),e(o),he(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),he(o,"scroll",(function(){o.clientWidth&&t(o.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&l<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};go.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var o=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+o)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var i=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+i)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},go.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},go.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},go.prototype.zeroWidthHack=function(){var e=y&&!p?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new F,this.disableVert=new F},go.prototype.enableZeroWidthBar=function(e,t,n){function r(){var o=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(o.right-1,(o.top+o.bottom)/2):document.elementFromPoint((o.right+o.left)/2,o.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,r)}e.style.pointerEvents="auto",t.set(1e3,r)},go.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var vo=function(){};function yo(e,t){t||(t=mo(e));var n=e.display.barWidth,r=e.display.barHeight;bo(e,t);for(var o=0;o<4&&n!=e.display.barWidth||r!=e.display.barHeight;o++)n!=e.display.barWidth&&e.options.lineWrapping&&Zr(e),bo(e,mo(e)),n=e.display.barWidth,r=e.display.barHeight}function bo(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}vo.prototype.update=function(){return{bottom:0,right:0}},vo.prototype.setScrollLeft=function(){},vo.prototype.setScrollTop=function(){},vo.prototype.clear=function(){};var xo={native:go,null:vo};function wo(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&C(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new xo[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),he(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?ho(e,t):fo(e,t)}),e),e.display.scrollbars.addClass&&R(e.display.wrapper,e.display.scrollbars.addClass)}var Oo=0;function So(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Oo,markArrays:null},kn(e.curOp)}function ko(e){var t=e.curOp;t&&Cn(t,(function(e){for(var t=0;t=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Lo(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function jo(e){e.updatedDisplay=e.mustUpdate&&Ho(e.cm,e.update)}function Eo(e){var t=e.cm,n=t.display;e.updatedDisplay&&Zr(t),e.barMeasure=mo(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Jn(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+$n(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-qn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Mo(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)){var n=+new Date+e.options.workTime,r=yt(e,t.highlightFrontier),o=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(i){if(r.line>=e.display.viewFrom){var a=i.styles,l=i.text.length>e.options.maxHighlightLength?Ye(t.mode,r.state):null,s=gt(e,i,r,!0);l&&(r.state=l),i.styles=s.styles;var c=i.styleClasses,u=s.classes;u?i.styleClasses=u:c&&(i.styleClasses=null);for(var f=!a||a.length!=i.styles.length||c!=u&&(!c||!u||c.bgClass!=u.bgClass||c.textClass!=u.textClass),d=0;!f&&dn)return Io(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),o.length&&To(e,(function(){for(var t=0;t=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==Hr(e))return!1;qo(e)&&(zr(e),t.dims=Pr(e));var o=r.first+r.size,i=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(o,t.visible.to+e.options.viewportMargin);n.viewFroma&&n.viewTo-a<20&&(a=Math.min(o,n.viewTo)),Mt&&(i=en(e.doc,i),a=tn(e.doc,a));var l=i!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;Wr(e,i,a),n.viewOffset=on(Xe(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var s=Hr(e);if(!l&&0==s&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=Fo(e);return s>4&&(n.lineDiv.style.display="none"),Uo(e,n.updateLineNumbers,t.dims),s>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,Wo(c),j(n.cursorDiv),j(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,l&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,Io(e,400)),n.updateLineNumbers=null,!0}function Bo(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=qn(e))r&&(t.visible=eo(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Gn(e.display)-Kn(e),n.top)}),t.visible=eo(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!Ho(e,t))break;Zr(e);var o=mo(e);Br(e),yo(e,o),Yo(e,o),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Vo(e,t){var n=new Lo(e,t);if(Ho(e,n)){Zr(e),Bo(e,n);var r=mo(e);Br(e),yo(e,r),Yo(e,r),n.finish()}}function Uo(e,t,n){var r=e.display,o=e.options.lineNumbers,i=r.lineDiv,a=i.firstChild;function l(t){var n=t.nextSibling;return s&&y&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var c=r.view,u=r.viewFrom,f=0;f-1&&(p=!1),Pn(e,d,u,n)),p&&(j(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(rt(e.options,u)))),a=d.node.nextSibling}else{var h=zn(e,d,u,n);i.insertBefore(h,a)}u+=d.size}for(;a;)a=l(a)}function Go(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",En(e,"gutterChanged",e)}function Yo(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+$n(e)+"px"}function $o(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=Tr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,o=t.gutters.offsetWidth,i=r+"px",a=0;al.clientWidth,u=l.scrollHeight>l.clientHeight;if(o&&c||i&&u){if(i&&y&&s)e:for(var d=t.target,p=a.view;d!=l;d=d.parentNode)for(var h=0;h=0&&it(e,r.to())<=0)return n}return-1};var ii=function(e,t){this.anchor=e,this.head=t};function ai(e,t,n){var r=e&&e.options.selectionsMayTouch,o=t[n];t.sort((function(e,t){return it(e.from(),t.from())})),n=W(t,o);for(var i=1;i0:s>=0){var c=ct(l.from(),a.from()),u=st(l.to(),a.to()),f=l.empty()?a.from()==a.head:l.from()==l.head;i<=n&&--n,t.splice(--i,2,new ii(f?u:c,f?c:u))}}return new oi(t,n)}function li(e,t){return new oi([new ii(e,t||e)],0)}function si(e){return e.text?ot(e.from.line+e.text.length-1,K(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function ci(e,t){if(it(e,t.from)<0)return e;if(it(e,t.to)<=0)return si(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=si(t).ch-t.to.ch),ot(n,r)}function ui(e,t){for(var n=[],r=0;r1&&e.remove(l.line+1,h-1),e.insert(l.line+1,v)}En(e,"change",e,t)}function vi(e,t,n){function r(e,o,i){if(e.linked)for(var a=0;a1&&!e.done[e.done.length-2].ranges?(e.done.pop(),K(e.done)):void 0}function _i(e,t,n,r){var o=e.history;o.undone.length=0;var i,a,l=+new Date;if((o.lastOp==r||o.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&o.lastModTime>l-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(i=ki(o,o.lastOp==r)))a=K(i.changes),0==it(t.from,t.to)&&0==it(t.from,a.to)?a.to=si(t):i.changes.push(Oi(e,t));else{var s=K(o.done);for(s&&s.ranges||Ei(e.sel,o.done),i={changes:[Oi(e,t)],generation:o.generation},o.done.push(i);o.done.length>o.undoDepth;)o.done.shift(),o.done[0].ranges||o.done.shift()}o.done.push(n),o.generation=++o.maxGeneration,o.lastModTime=o.lastSelTime=l,o.lastOp=o.lastSelOp=r,o.lastOrigin=o.lastSelOrigin=t.origin,a||ve(e,"historyAdded")}function Ci(e,t,n,r){var o=t.charAt(0);return"*"==o||"+"==o&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function ji(e,t,n,r){var o=e.history,i=r&&r.origin;n==o.lastSelOp||i&&o.lastSelOrigin==i&&(o.lastModTime==o.lastSelTime&&o.lastOrigin==i||Ci(e,i,K(o.done),t))?o.done[o.done.length-1]=t:Ei(t,o.done),o.lastSelTime=+new Date,o.lastSelOrigin=i,o.lastSelOp=n,r&&!1!==r.clearRedo&&Si(o.undone)}function Ei(e,t){var n=K(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Mi(e,t,n,r){var o=t["spans_"+e.id],i=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((o||(o=t["spans_"+e.id]={}))[i]=n.markedSpans),++i}))}function Pi(e){if(!e)return null;for(var t,n=0;n-1&&(K(l)[f]=c[f],delete c[f])}}}return r}function Di(e,t,n,r){if(r){var o=e.anchor;if(n){var i=it(t,o)<0;i!=it(n,o)<0?(o=t,t=n):i!=it(t,n)<0&&(t=n)}return new ii(o,t)}return new ii(n||t,t)}function Ii(e,t,n,r,o){null==o&&(o=e.cm&&(e.cm.display.shift||e.extend)),Hi(e,new oi([Di(e.sel.primary(),t,n,o)],0),r)}function Ni(e,t,n){for(var r=[],o=e.cm&&(e.cm.display.shift||e.extend),i=0;i=t.ch:l.to>t.ch))){if(o&&(ve(s,"beforeCursorEnter"),s.explicitlyCleared)){if(i.markedSpans){--a;continue}break}if(!s.atomic)continue;if(n){var f=s.find(r<0?1:-1),d=void 0;if((r<0?u:c)&&(f=qi(e,f,-r,f&&f.line==t.line?i:null)),f&&f.line==t.line&&(d=it(f,n))&&(r<0?d<0:d>0))return Yi(e,f,t,r,o)}var p=s.find(r<0?-1:1);return(r<0?c:u)&&(p=qi(e,p,r,p.line==t.line?i:null)),p?Yi(e,p,t,r,o):null}}return t}function $i(e,t,n,r,o){var i=r||1,a=Yi(e,t,n,i,o)||!o&&Yi(e,t,n,i,!0)||Yi(e,t,n,-i,o)||!o&&Yi(e,t,n,-i,!0);return a||(e.cantEdit=!0,ot(e.first,0))}function qi(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?ft(e,ot(t.line-1)):null:n>0&&t.ch==(r||Xe(e,t.line)).text.length?t.line=0;--o)Zi(e,{from:r[o].from,to:r[o].to,text:o?[""]:t.text,origin:t.origin});else Zi(e,t)}}function Zi(e,t){if(1!=t.text.length||""!=t.text[0]||0!=it(t.from,t.to)){var n=ui(e,t);_i(e,t,n,e.cm?e.cm.curOp.id:NaN),ta(e,t,n,zt(e,t));var r=[];vi(e,(function(e,n){n||-1!=W(r,e.history)||(aa(e.history,t),r.push(e.history)),ta(e,t,null,zt(e,t))}))}}function Ji(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var o,i=e.history,a=e.sel,l="undo"==t?i.done:i.undone,s="undo"==t?i.undone:i.done,c=0;c=0;--p){var h=d(p);if(h)return h.v}}}}function ea(e,t){if(0!=t&&(e.first+=t,e.sel=new oi(X(e.sel.ranges,(function(e){return new ii(ot(e.anchor.line+t,e.anchor.ch),ot(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){Nr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine())){if(t.from.linei&&(t={from:t.from,to:ot(i,Xe(e,i).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Qe(e,t.from,t.to),n||(n=ui(e,t)),e.cm?na(e.cm,t,r):gi(e,t,r),Bi(e,n,V),e.cantEdit&&$i(e,ot(e.firstLine(),0))&&(e.cantEdit=!1)}}function na(e,t,n){var r=e.doc,o=e.display,i=t.from,a=t.to,l=!1,s=i.line;e.options.lineWrapping||(s=et(Qt(Xe(r,i.line))),r.iter(s,a.line+1,(function(e){if(e==o.maxLine)return l=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&be(e),gi(r,t,n,Ar(e)),e.options.lineWrapping||(r.iter(s,i.line+t.text.length,(function(e){var t=an(e);t>o.maxLineLength&&(o.maxLine=e,o.maxLineLength=t,o.maxLineChanged=!0,l=!1)})),l&&(e.curOp.updateMaxLine=!0)),jt(r,i.line),Io(e,400);var c=t.text.length-(a.line-i.line)-1;t.full?Nr(e):i.line!=a.line||1!=t.text.length||mi(e.doc,t)?Nr(e,i.line,a.line+1,c):Lr(e,i.line,"text");var u=xe(e,"changes"),f=xe(e,"change");if(f||u){var d={from:i,to:a,text:t.text,removed:t.removed,origin:t.origin};f&&En(e,"change",e,d),u&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(d)}e.display.selForContextMenu=null}function ra(e,t,n,r,o){var i;r||(r=n),it(r,n)<0&&(n=(i=[r,n])[0],r=i[1]),"string"==typeof t&&(t=e.splitLines(t)),Qi(e,{from:n,to:r,text:t,origin:o})}function oa(e,t,n,r){n1||!(this.children[0]instanceof sa))){var l=[];this.collapse(l),this.children=[new sa(l)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var a=o.lines.length%25+25,l=a;l10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r0||0==a&&!1!==i.clearWhenEmpty)return i;if(i.replacedWith&&(i.collapsed=!0,i.widgetNode=P("span",[i.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||i.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(i.widgetNode.insertLeft=!0)),i.collapsed){if(Xt(e,t.line,t,n,i)||t.line!=n.line&&Xt(e,n.line,t,n,i))throw new Error("Inserting collapsed marker partially overlapping an existing one");Tt()}i.addToHistory&&_i(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var l,s=t.line,c=e.cm;if(e.iter(s,n.line+1,(function(r){c&&i.collapsed&&!c.options.lineWrapping&&Qt(r)==c.display.maxLine&&(l=!0),i.collapsed&&s!=t.line&&Je(r,0),It(r,new At(i,s==t.line?t.ch:null,s==n.line?n.ch:null),e.cm&&e.cm.curOp),++s})),i.collapsed&&e.iter(t.line,n.line+1,(function(t){nn(e,t)&&Je(t,0)})),i.clearOnEnter&&he(i,"beforeCursorEnter",(function(){return i.clear()})),i.readOnly&&(Pt(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),i.collapsed&&(i.id=++pa,i.atomic=!0),c){if(l&&(c.curOp.updateMaxLine=!0),i.collapsed)Nr(c,t.line,n.line+1);else if(i.className||i.startStyle||i.endStyle||i.css||i.attributes||i.title)for(var u=t.line;u<=n.line;u++)Lr(c,u,"text");i.atomic&&Ui(c.doc),En(c,"markerAdded",c,i)}return i}ha.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&So(e),xe(this,"clear")){var n=this.find();n&&En(this,"clear",n.from,n.to)}for(var r=null,o=null,i=0;ie.display.maxLineLength&&(e.display.maxLine=c,e.display.maxLineLength=u,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&Nr(e,r,o+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Ui(e.doc)),e&&En(e,"markerCleared",e,this,r,o),t&&ko(e),this.parent&&this.parent.clear()}},ha.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var o=0;o=0;s--)Qi(this,r[s]);l?Wi(this,l):this.cm&&ao(this.cm)})),undo:Do((function(){Ji(this,"undo")})),redo:Do((function(){Ji(this,"redo")})),undoSelection:Do((function(){Ji(this,"undo",!0)})),redoSelection:Do((function(){Ji(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r=e.ch)&&t.push(o.marker.parent||o.marker)}return t},findMarks:function(e,t,n){e=ft(this,e),t=ft(this,t);var r=[],o=e.line;return this.iter(e.line,t.line+1,(function(i){var a=i.markedSpans;if(a)for(var l=0;l=s.to||null==s.from&&o!=e.line||null!=s.from&&o==t.line&&s.from>=t.ch||n&&!n(s.marker)||r.push(s.marker.parent||s.marker)}++o})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;re)return t=e,!0;e-=i,++n})),ft(this,ot(n,t))},indexFromPos:function(e){var t=(e=ft(this,e)).ch;if(e.linet&&(t=e.from),null!=e.to&&e.to-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var f=e.dataTransfer.getData("Text");if(f){var d;if(t.state.draggingText&&!t.state.draggingText.copy&&(d=t.listSelections()),Bi(t.doc,li(n,n)),d)for(var p=0;p=0;t--)ra(e.doc,"",r[t].from,r[t].to,"+delete");ao(e)}))}function Ya(e,t,n){var r=ae(e.text,t+n,n);return r<0||r>e.text.length?null:r}function $a(e,t,n){var r=Ya(e,t.ch,n);return null==r?null:new ot(t.line,r,n<0?"after":"before")}function qa(e,t,n,r,o){if(e){"rtl"==t.doc.direction&&(o=-o);var i=de(n,t.doc.direction);if(i){var a,l=o<0?K(i):i[0],s=o<0==(1==l.level)?"after":"before";if(l.level>0||"rtl"==t.doc.direction){var c=tr(t,n);a=o<0?n.text.length-1:0;var u=nr(t,c,a).top;a=le((function(e){return nr(t,c,e).top==u}),o<0==(1==l.level)?l.from:l.to-1,a),"before"==s&&(a=Ya(n,a,1))}else a=o<0?l.to:l.from;return new ot(r,a,s)}}return new ot(r,o<0?n.text.length:0,o<0?"before":"after")}function Ka(e,t,n,r){var o=de(t,e.doc.direction);if(!o)return $a(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var i=ue(o,n.ch,n.sticky),a=o[i];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from=a.from&&d>=u.begin)){var p=f?"before":"after";return new ot(n.line,d,p)}}var h=function(e,t,r){for(var i=function(e,t){return t?new ot(n.line,s(e,1),"before"):new ot(n.line,e,"after")};e>=0&&e0==(1!=a.level),c=l?r.begin:s(r.end,-1);if(a.from<=c&&c0?u.end:s(u.begin,-1);return null==g||r>0&&g==t.text.length||!(m=h(r>0?0:o.length-1,r,c(g)))?null:m}La.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},La.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},La.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},La.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},La.default=y?La.macDefault:La.pcDefault;var Xa={selectAll:Ki,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),V)},killLine:function(e){return Ga(e,(function(t){if(t.empty()){var n=Xe(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)o=new ot(o.line,o.ch+1),e.replaceRange(i.charAt(o.ch-1)+i.charAt(o.ch-2),ot(o.line,o.ch-2),o,"+transpose");else if(o.line>e.doc.first){var a=Xe(e.doc,o.line-1).text;a&&(o=new ot(o.line,1),e.replaceRange(i.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),ot(o.line-1,a.length-1),o,"+transpose"))}n.push(new ii(o,o))}e.setSelections(n)}))},newlineAndIndent:function(e){return To(e,(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r-1&&(it((o=l.ranges[o]).from(),t)<0||t.xRel>0)&&(it(o.to(),t)>0||t.xRel<0)?wl(e,r,t,i):Sl(e,r,t,i)}function wl(e,t,n,r){var o=e.display,i=!1,c=Ao(e,(function(t){s&&(o.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Kr(e)),ge(o.wrapper.ownerDocument,"mouseup",c),ge(o.wrapper.ownerDocument,"mousemove",u),ge(o.scroller,"dragstart",f),ge(o.scroller,"drop",c),i||(Oe(t),r.addNew||Ii(e.doc,n,null,null,r.extend),s&&!d||a&&9==l?setTimeout((function(){o.wrapper.ownerDocument.body.focus({preventScroll:!0}),o.input.focus()}),20):o.input.focus())})),u=function(e){i=i||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},f=function(){return i=!0};s&&(o.scroller.draggable=!0),e.state.draggingText=c,c.copy=!r.moveOnDrag,he(o.wrapper.ownerDocument,"mouseup",c),he(o.wrapper.ownerDocument,"mousemove",u),he(o.scroller,"dragstart",f),he(o.scroller,"drop",c),e.state.delayingBlurEvent=!0,setTimeout((function(){return o.input.focus()}),20),o.scroller.dragDrop&&o.scroller.dragDrop()}function Ol(e,t,n){if("char"==n)return new ii(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new ii(ot(t.line,0),ft(e.doc,ot(t.line+1,0)));var r=n(e,t);return new ii(r.from,r.to)}function Sl(e,t,n,r){a&&Kr(e);var o=e.display,i=e.doc;Oe(t);var l,s,c=i.sel,u=c.ranges;if(r.addNew&&!r.extend?(s=i.sel.contains(n),l=s>-1?u[s]:new ii(n,n)):(l=i.sel.primary(),s=i.sel.primIndex),"rectangle"==r.unit)r.addNew||(l=new ii(n,n)),n=Dr(e,t,!0,!0),s=-1;else{var f=Ol(e,n,r.unit);l=r.extend?Di(l,f.anchor,f.head,r.extend):f}r.addNew?-1==s?(s=u.length,Hi(i,ai(e,u.concat([l]),s),{scroll:!1,origin:"*mouse"})):u.length>1&&u[s].empty()&&"char"==r.unit&&!r.extend?(Hi(i,ai(e,u.slice(0,s).concat(u.slice(s+1)),0),{scroll:!1,origin:"*mouse"}),c=i.sel):Li(i,s,l,U):(s=0,Hi(i,new oi([l],0),U),c=i.sel);var d=n;function p(t){if(0!=it(d,t))if(d=t,"rectangle"==r.unit){for(var o=[],a=e.options.tabSize,u=z(Xe(i,n.line).text,n.ch,a),f=z(Xe(i,t.line).text,t.ch,a),p=Math.min(u,f),h=Math.max(u,f),m=Math.min(n.line,t.line),g=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=g;m++){var v=Xe(i,m).text,y=Y(v,p,a);p==h?o.push(new ii(ot(m,y),ot(m,y))):v.length>y&&o.push(new ii(ot(m,y),ot(m,Y(v,h,a))))}o.length||o.push(new ii(n,n)),Hi(i,ai(e,c.ranges.slice(0,s).concat(o),s),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,x=l,w=Ol(e,t,r.unit),O=x.anchor;it(w.anchor,O)>0?(b=w.head,O=ct(x.from(),w.anchor)):(b=w.anchor,O=st(x.to(),w.head));var S=c.ranges.slice(0);S[s]=kl(e,new ii(ft(i,O),b)),Hi(i,ai(e,S,s),U)}}var h=o.wrapper.getBoundingClientRect(),m=0;function g(t){var n=++m,a=Dr(e,t,!0,"rectangle"==r.unit);if(a)if(0!=it(a,d)){e.curOp.focus=A(),p(a);var l=eo(o,i);(a.line>=l.to||a.lineh.bottom?20:0;s&&setTimeout(Ao(e,(function(){m==n&&(o.scroller.scrollTop+=s,g(t))})),50)}}function v(t){e.state.selectingText=!1,m=1/0,t&&(Oe(t),o.input.focus()),ge(o.wrapper.ownerDocument,"mousemove",y),ge(o.wrapper.ownerDocument,"mouseup",b),i.history.lastSelOrigin=null}var y=Ao(e,(function(e){0!==e.buttons&&je(e)?g(e):v(e)})),b=Ao(e,v);e.state.selectingText=b,he(o.wrapper.ownerDocument,"mousemove",y),he(o.wrapper.ownerDocument,"mouseup",b)}function kl(e,t){var n=t.anchor,r=t.head,o=Xe(e.doc,n.line);if(0==it(n,r)&&n.sticky==r.sticky)return t;var i=de(o);if(!i)return t;var a=ue(i,n.ch,n.sticky),l=i[a];if(l.from!=n.ch&&l.to!=n.ch)return t;var s,c=a+(l.from==n.ch==(1!=l.level)?0:1);if(0==c||c==i.length)return t;if(r.line!=n.line)s=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var u=ue(i,r.ch,r.sticky),f=u-a||(r.ch-n.ch)*(1==l.level?-1:1);s=u==c-1||u==c?f<0:f>0}var d=i[c+(s?-1:0)],p=s==(1==d.level),h=p?d.from:d.to,m=p?"after":"before";return n.ch==h&&n.sticky==m?t:new ii(new ot(n.line,h,m),r)}function _l(e,t,n,r){var o,i;if(t.touches)o=t.touches[0].clientX,i=t.touches[0].clientY;else try{o=t.clientX,i=t.clientY}catch(u){return!1}if(o>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&Oe(t);var a=e.display,l=a.lineDiv.getBoundingClientRect();if(i>l.bottom||!xe(e,n))return ke(t);i-=l.top-a.viewOffset;for(var s=0;s=o)return ve(e,n,e,tt(e.doc,i),e.display.gutterSpecs[s].className,t),ke(t)}}function Cl(e,t){return _l(e,t,"gutterClick",!0)}function jl(e,t){Vn(e.display,t)||El(e,t)||ye(e,t,"contextmenu")||S||e.display.input.onContextMenu(t)}function El(e,t){return!!xe(e,"gutterContextMenu")&&_l(e,t,"gutterContextMenu",!1)}function Ml(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),fr(e)}ml.prototype.compare=function(e,t,n){return this.time+hl>e&&0==it(t,this.pos)&&n==this.button};var Pl={toString:function(){return"CodeMirror.Init"}},Tl={},Al={};function Rl(e){var t=e.optionHandlers;function n(n,r,o,i){e.defaults[n]=r,o&&(t[n]=i?function(e,t,n){n!=Pl&&o(e,t,n)}:o)}e.defineOption=n,e.Init=Pl,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,pi(e)}),!0),n("indentUnit",2,pi,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){hi(e),fr(e),Nr(e)}),!0),n("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter((function(e){for(var o=0;;){var i=e.text.indexOf(t,o);if(-1==i)break;o=i+t.length,n.push(ot(r,i))}r++}));for(var o=n.length-1;o>=0;o--)ra(e.doc,t,n[o],ot(n[o].line,n[o].ch+t.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Pl&&e.refresh()})),n("specialCharPlaceholder",mn,(function(e){return e.refresh()}),!0),n("electricChars",!0),n("inputStyle",v?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),n("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),n("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),n("rtlMoveVisually",!x),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){Ml(e),Qo(e)}),!0),n("keyMap","default",(function(e,t,n){var r=Ua(t),o=n!=Pl&&Ua(n);o&&o.detach&&o.detach(e,r),r.attach&&r.attach(e,o||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Il,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=Ko(t,e.options.lineNumbers),Qo(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?Tr(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return yo(e)}),!0),n("scrollbarStyle","native",(function(e){wo(e),yo(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=Ko(e.options.gutters,t),Qo(e)}),!0),n("firstLineNumber",1,Qo,!0),n("lineNumberFormatter",(function(e){return e}),Qo,!0),n("showCursorWhenSelecting",!1,Br,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(Qr(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),n("screenReaderLabel",null,(function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)})),n("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),n("dragDrop",!0,Dl),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,Br,!0),n("singleCursorHeightPerLine",!0,Br,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,hi,!0),n("addModeClass",!1,hi,!0),n("pollInterval",100),n("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),n("historyEventDelay",1250),n("viewportMargin",10,(function(e){return e.refresh()}),!0),n("maxHighlightLength",1e4,hi,!0),n("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),n("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),n("autofocus",null),n("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),n("phrases",null)}function Dl(e,t,n){if(!t!=!(n&&n!=Pl)){var r=e.display.dragFunctions,o=t?he:ge;o(e.display.scroller,"dragstart",r.start),o(e.display.scroller,"dragenter",r.enter),o(e.display.scroller,"dragover",r.over),o(e.display.scroller,"dragleave",r.leave),o(e.display.scroller,"drop",r.drop)}}function Il(e){e.options.lineWrapping?(R(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(C(e.display.wrapper,"CodeMirror-wrap"),ln(e)),Rr(e),Nr(e),fr(e),setTimeout((function(){return yo(e)}),100)}function Nl(e,t){var n=this;if(!(this instanceof Nl))return new Nl(e,t);this.options=t=t?L(t):{},L(Tl,t,!1);var r=t.value;"string"==typeof r?r=new Oa(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var o=new Nl.inputStyles[t.inputStyle](this),i=this.display=new Zo(e,r,o,t);for(var c in i.wrapper.CodeMirror=this,Ml(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),wo(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new F,keySeq:null,specialChars:null},t.autofocus&&!v&&i.input.focus(),a&&l<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),Ll(this),Pa(),So(this),this.curOp.forceUpdate=!0,yi(this,r),t.autofocus&&!v||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&Xr(n)}),20):Qr(this),Al)Al.hasOwnProperty(c)&&Al[c](this,t[c],Pl);qo(this),t.finishInit&&t.finishInit(this);for(var u=0;u400}he(t.scroller,"touchstart",(function(o){if(!ye(e,o)&&!i(o)&&!Cl(e,o)){t.input.ensurePolled(),clearTimeout(n);var a=+new Date;t.activeTouch={start:a,moved:!1,prev:a-r.end<=300?r:null},1==o.touches.length&&(t.activeTouch.left=o.touches[0].pageX,t.activeTouch.top=o.touches[0].pageY)}})),he(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),he(t.scroller,"touchend",(function(n){var r=t.activeTouch;if(r&&!Vn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var i,a=e.coordsChar(t.activeTouch,"page");i=!r.prev||s(r,r.prev)?new ii(a,a):!r.prev.prev||s(r,r.prev.prev)?e.findWordAt(a):new ii(ot(a.line,0),ft(e.doc,ot(a.line+1,0))),e.setSelection(i.anchor,i.head),e.focus(),Oe(n)}o()})),he(t.scroller,"touchcancel",o),he(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(fo(e,t.scroller.scrollTop),ho(e,t.scroller.scrollLeft,!0),ve(e,"scroll",e))})),he(t.scroller,"mousewheel",(function(t){return ri(e,t)})),he(t.scroller,"DOMMouseScroll",(function(t){return ri(e,t)})),he(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){ye(e,t)||_e(t)},over:function(t){ye(e,t)||(Ca(e,t),_e(t))},start:function(t){return _a(e,t)},drop:Ao(e,ka),leave:function(t){ye(e,t)||ja(e)}};var c=t.input.getField();he(c,"keyup",(function(t){return ul.call(e,t)})),he(c,"keydown",Ao(e,sl)),he(c,"keypress",Ao(e,fl)),he(c,"focus",(function(t){return Xr(e,t)})),he(c,"blur",(function(t){return Qr(e,t)}))}Nl.defaults=Tl,Nl.optionHandlers=Al;var zl=[];function Fl(e,t,n,r){var o,i=e.doc;null==n&&(n="add"),"smart"==n&&(i.mode.indent?o=yt(e,t).state:n="prev");var a=e.options.tabSize,l=Xe(i,t),s=z(l.text,null,a);l.stateAfter&&(l.stateAfter=null);var c,u=l.text.match(/^\s*/)[0];if(r||/\S/.test(l.text)){if("smart"==n&&((c=i.mode.indent(o,l.text.slice(u.length),l.text))==B||c>150)){if(!r)return;n="prev"}}else c=0,n="not";"prev"==n?c=t>i.first?z(Xe(i,t-1).text,null,a):0:"add"==n?c=s+e.options.indentUnit:"subtract"==n?c=s-e.options.indentUnit:"number"==typeof n&&(c=s+n),c=Math.max(0,c);var f="",d=0;if(e.options.indentWithTabs)for(var p=Math.floor(c/a);p;--p)d+=a,f+="\t";if(da,s=Re(t),c=null;if(l&&r.ranges.length>1)if(Wl&&Wl.text.join("\n")==t){if(r.ranges.length%Wl.text.length==0){c=[];for(var u=0;u=0;d--){var p=r.ranges[d],h=p.from(),m=p.to();p.empty()&&(n&&n>0?h=ot(h.line,h.ch-n):e.state.overwrite&&!l?m=ot(m.line,Math.min(Xe(i,m.line).text.length,m.ch+K(s).length)):l&&Wl&&Wl.lineWise&&Wl.text.join("\n")==s.join("\n")&&(h=m=ot(h.line,0)));var g={from:h,to:m,text:c?c[d%c.length]:s,origin:o||(l?"paste":e.state.cutIncoming>a?"cut":"+input")};Qi(e.doc,g),En(e,"inputRead",e,g)}t&&!l&&Ul(e,t),ao(e),e.curOp.updateInput<2&&(e.curOp.updateInput=f),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Vl(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||To(t,(function(){return Bl(t,n,0,null,"paste")})),!0}function Ul(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var o=n.ranges[r];if(!(o.head.ch>100||r&&n.ranges[r-1].head.line==o.head.line)){var i=e.getModeAt(o.head),a=!1;if(i.electricChars){for(var l=0;l-1){a=Fl(e,o.head.line,"smart");break}}else i.electricInput&&i.electricInput.test(Xe(e.doc,o.head.line).text.slice(0,o.head.ch))&&(a=Fl(e,o.head.line,"smart"));a&&En(e,"electricInput",e,o.head.line)}}}function Gl(e){for(var t=[],n=[],r=0;rn&&(Fl(this,o.head.line,e,!0),n=o.head.line,r==this.doc.sel.primIndex&&ao(this));else{var i=o.from(),a=o.to(),l=Math.max(n,i.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var s=l;s0&&Li(this.doc,r,new ii(i,c[r].to()),V)}}})),getTokenAt:function(e,t){return St(this,e,t)},getLineTokens:function(e,t){return St(this,ot(e),t,!0)},getTokenTypeAt:function(e){e=ft(this.doc,e);var t,n=vt(this,Xe(this.doc,e.line)),r=0,o=(n.length-1)/2,i=e.ch;if(0==i)t=n[2];else for(;;){var a=r+o>>1;if((a?n[2*a-1]:0)>=i)o=a;else{if(!(n[2*a+1]i&&(e=i,o=!0),r=Xe(this.doc,e)}else r=e;return mr(this,r,{top:0,left:0},t||"page",n||o).top+(o?this.doc.height-on(r):0)},defaultTextHeight:function(){return Er(this.display)},defaultCharWidth:function(){return Mr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,o){var i=this.display,a=(e=yr(this,ft(this.doc,e))).bottom,l=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),i.sizer.appendChild(t),"over"==r)a=e.top;else if("above"==r||"near"==r){var s=Math.max(i.wrapper.clientHeight,this.doc.height),c=Math.max(i.sizer.clientWidth,i.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>s)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=s&&(a=e.bottom),l+t.offsetWidth>c&&(l=c-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==o?(l=i.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==o?l=0:"middle"==o&&(l=(i.sizer.clientWidth-t.offsetWidth)/2),t.style.left=l+"px"),n&&ro(this,{left:l,top:a,right:l+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:Ro(sl),triggerOnKeyPress:Ro(fl),triggerOnKeyUp:ul,triggerOnMouseDown:Ro(vl),execCommand:function(e){if(Xa.hasOwnProperty(e))return Xa[e].call(null,this)},triggerElectric:Ro((function(e){Ul(this,e)})),findPosH:function(e,t,n,r){var o=1;t<0&&(o=-1,t=-t);for(var i=ft(this.doc,e),a=0;a0&&a(t.charAt(n-1));)--n;for(;r.5||this.options.lineWrapping)&&Rr(this),ve(this,"refresh",this)})),swapDoc:Ro((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),yi(this,e),fr(this),this.display.input.reset(),lo(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,En(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},we(e),e.registerHelper=function(t,r,o){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=o},e.registerGlobalHelper=function(t,r,o,i){e.registerHelper(t,r,i),n[t]._global.push({pred:o,val:i})}}function Kl(e,t,n,r,o){var i=t,a=n,l=Xe(e,t.line),s=o&&"rtl"==e.direction?-n:n;function c(){var n=t.line+s;return!(n=e.first+e.size)&&(t=new ot(n,t.ch,t.sticky),l=Xe(e,n))}function u(i){var a;if("codepoint"==r){var u=l.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(u))a=null;else{var f=n>0?u>=55296&&u<56320:u>=56320&&u<57343;a=new ot(t.line,Math.max(0,Math.min(l.text.length,t.ch+n*(f?2:1))),-n)}}else a=o?Ka(e.cm,l,t,n):$a(l,t,n);if(null==a){if(i||!c())return!1;t=qa(o,e.cm,l,t.line,s)}else t=a;return!0}if("char"==r||"codepoint"==r)u();else if("column"==r)u(!0);else if("word"==r||"group"==r)for(var f=null,d="group"==r,p=e.cm&&e.cm.getHelper(t,"wordChars"),h=!0;!(n<0)||u(!h);h=!1){var m=l.text.charAt(t.ch)||"\n",g=ne(m,p)?"w":d&&"\n"==m?"n":!d||/\s/.test(m)?null:"p";if(!d||h||g||(g="s"),f&&f!=g){n<0&&(n=1,u(),t.sticky="after");break}if(g&&(f=g),n>0&&!u(!h))break}var v=$i(e,t,i,a,!0);return at(i,v)&&(v.hitSide=!0),v}function Xl(e,t,n,r){var o,i,a=e.doc,l=t.left;if("page"==r){var s=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),c=Math.max(s-.5*Er(e.display),3);o=(n>0?t.bottom:t.top)+n*c}else"line"==r&&(o=n>0?t.bottom+3:t.top-3);for(;(i=wr(e,l,o)).outside;){if(n<0?o<=0:o>=a.height){i.hitSide=!0;break}o+=5*n}return i}var Ql=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new F,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Zl(e,t){var n=er(e,t.line);if(!n||n.hidden)return null;var r=Xe(e.doc,t.line),o=Qn(n,r,t.line),i=de(r,e.doc.direction),a="left";i&&(a=ue(i,t.ch)%2?"right":"left");var l=ir(o.map,t.ch,a);return l.offset="right"==l.collapse?l.end:l.start,l}function Jl(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function es(e,t){return t&&(e.bad=!0),e}function ts(e,t,n,r,o){var i="",a=!1,l=e.doc.lineSeparator(),s=!1;function c(e){return function(t){return t.id==e}}function u(){a&&(i+=l,s&&(i+=l),a=s=!1)}function f(e){e&&(u(),i+=e)}function d(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void f(n);var i,p=t.getAttribute("cm-marker");if(p){var h=e.findMarks(ot(r,0),ot(o+1,0),c(+p));return void(h.length&&(i=h[0].find(0))&&f(Qe(e.doc,i.from,i.to).join(l)))}if("false"==t.getAttribute("contenteditable"))return;var m=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;m&&u();for(var g=0;g=t.display.viewTo||i.line=t.display.viewFrom&&Zl(t,o)||{node:s[0].measure.map[2],offset:0},u=i.liner.firstLine()&&(a=ot(a.line-1,Xe(r.doc,a.line-1).length)),l.ch==Xe(r.doc,l.line).text.length&&l.lineo.viewTo-1)return!1;a.line==o.viewFrom||0==(e=Ir(r,a.line))?(t=et(o.view[0].line),n=o.view[0].node):(t=et(o.view[e].line),n=o.view[e-1].node.nextSibling);var s,c,u=Ir(r,l.line);if(u==o.view.length-1?(s=o.viewTo-1,c=o.lineDiv.lastChild):(s=et(o.view[u+1].line)-1,c=o.view[u+1].node.previousSibling),!n)return!1;for(var f=r.doc.splitLines(ts(r,n,c,t,s)),d=Qe(r.doc,ot(t,0),ot(s,Xe(r.doc,s).text.length));f.length>1&&d.length>1;)if(K(f)==K(d))f.pop(),d.pop(),s--;else{if(f[0]!=d[0])break;f.shift(),d.shift(),t++}for(var p=0,h=0,m=f[0],g=d[0],v=Math.min(m.length,g.length);pa.ch&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)p--,h++;f[f.length-1]=y.slice(0,y.length-h).replace(/^\u200b+/,""),f[0]=f[0].slice(p).replace(/\u200b+$/,"");var w=ot(t,p),O=ot(s,d.length?K(d).length-h:0);return f.length>1||f[0]||it(w,O)?(ra(r.doc,f,w,O,"+input"),!0):void 0},Ql.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ql.prototype.reset=function(){this.forceCompositionEnd()},Ql.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ql.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},Ql.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||To(this.cm,(function(){return Nr(e.cm)}))},Ql.prototype.setUneditable=function(e){e.contentEditable="false"},Ql.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Ao(this.cm,Bl)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Ql.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Ql.prototype.onContextMenu=function(){},Ql.prototype.resetPosition=function(){},Ql.prototype.needsContentAttribute=!0;var os=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new F,this.hasSelection=!1,this.composing=null};function is(e,t){if((t=t?L(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=A();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=l.getValue()}var o;if(e.form&&(he(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var i=e.form;o=i.submit;try{var a=i.submit=function(){r(),i.submit=o,i.submit(),i.submit=a}}catch(s){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(ge(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=o))}},e.style.display="none";var l=Nl((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return l}function as(e){e.off=ge,e.on=he,e.wheelEventPixels=ni,e.Doc=Oa,e.splitLines=Re,e.countColumn=z,e.findColumn=Y,e.isWordChar=te,e.Pass=B,e.signal=ve,e.Line=sn,e.changeEnd=si,e.scrollbarModel=xo,e.Pos=ot,e.cmpPos=it,e.modes=ze,e.mimeModes=Fe,e.resolveMode=Be,e.getMode=Ve,e.modeExtensions=Ue,e.extendMode=Ge,e.copyState=Ye,e.startState=qe,e.innerMode=$e,e.commands=Xa,e.keyMap=La,e.keyName=Va,e.isModifierKey=Ha,e.lookupKey=Wa,e.normalizeKeyMap=Fa,e.StringStream=Ke,e.SharedTextMarker=ga,e.TextMarker=ha,e.LineWidget=ua,e.e_preventDefault=Oe,e.e_stopPropagation=Se,e.e_stop=_e,e.addClass=R,e.contains=T,e.rmClass=C,e.keyNames=Ra}os.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var o=this.textarea;function i(e){if(!ye(r,e)){if(r.somethingSelected())Hl({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=Gl(r);Hl({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,V):(n.prevInput="",o.value=t.text.join("\n"),I(o))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),m&&(o.style.width="0px"),he(o,"input",(function(){a&&l>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),he(o,"paste",(function(e){ye(r,e)||Vl(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),he(o,"cut",i),he(o,"copy",i),he(e.scroller,"paste",(function(t){if(!Vn(e,t)&&!ye(r,t)){if(!o.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var i=new Event("paste");i.clipboardData=t.clipboardData,o.dispatchEvent(i)}})),he(e.lineSpace,"selectstart",(function(t){Vn(e,t)||Oe(t)})),he(o,"compositionstart",(function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}})),he(o,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},os.prototype.createField=function(e){this.wrapper=$l(),this.textarea=this.wrapper.firstChild},os.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},os.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=Vr(e);if(e.options.moveInputWithCursor){var o=yr(e,n.sel.primary().head,"div"),i=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,o.top+a.top-i.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,o.left+a.left-i.left))}return r},os.prototype.showSelection=function(e){var t=this.cm.display;E(t.cursorDiv,e.cursors),E(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},os.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&I(this.textarea),a&&l>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&l>=9&&(this.hasSelection=null))}},os.prototype.getField=function(){return this.textarea},os.prototype.supportsTouch=function(){return!1},os.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!v||A()!=this.textarea))try{this.textarea.focus()}catch(e){}},os.prototype.blur=function(){this.textarea.blur()},os.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},os.prototype.receivedFocus=function(){this.slowPoll()},os.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},os.prototype.fastPoll=function(){var e=!1,t=this;function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}t.pollingFast=!0,t.polling.set(20,n)},os.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||De(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var o=n.value;if(o==r&&!t.somethingSelected())return!1;if(a&&l>=9&&this.hasSelection===o||y&&/[\uf700-\uf7ff]/.test(o))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var i=o.charCodeAt(0);if(8203!=i||r||(r="\u200b"),8666==i)return this.reset(),this.cm.execCommand("undo")}for(var s=0,c=Math.min(r.length,o.length);s1e3||o.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=o,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},os.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},os.prototype.onKeyPress=function(){a&&l>=9&&(this.hasSelection=null),this.fastPoll()},os.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,o=t.textarea;t.contextMenuPending&&t.contextMenuPending();var i=Dr(n,e),c=r.scroller.scrollTop;if(i&&!f){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(i)&&Ao(n,Hi)(n.doc,li(i),V);var u,d=o.style.cssText,p=t.wrapper.style.cssText,h=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",o.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-h.top-5)+"px; left: "+(e.clientX-h.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",s&&(u=window.scrollY),r.input.focus(),s&&window.scrollTo(null,u),r.input.reset(),n.somethingSelected()||(o.value=t.prevInput=" "),t.contextMenuPending=g,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&l>=9&&m(),S?(_e(e),he(window,"mouseup",(function e(){ge(window,"mouseup",e),setTimeout(g,20)}))):setTimeout(g,50)}function m(){if(null!=o.selectionStart){var e=n.somethingSelected(),i="\u200b"+(e?o.value:"");o.value="\u21da",o.value=i,t.prevInput=e?"":"\u200b",o.selectionStart=1,o.selectionEnd=i.length,r.selForContextMenu=n.doc.sel}}function g(){if(t.contextMenuPending==g&&(t.contextMenuPending=!1,t.wrapper.style.cssText=p,o.style.cssText=d,a&&l<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=c),null!=o.selectionStart)){(!a||a&&l<9)&&m();var e=0,i=function i(){r.selForContextMenu==n.doc.sel&&0==o.selectionStart&&o.selectionEnd>0&&"\u200b"==t.prevInput?Ao(n,Ki)(n):e++<10?r.detectingSelectAll=setTimeout(i,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(i,200)}}},os.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},os.prototype.setUneditable=function(){},os.prototype.needsContentAttribute=!1,Rl(Nl),ql(Nl);var ls="iter insert remove copy getEditor constructor".split(" ");for(var ss in Oa.prototype)Oa.prototype.hasOwnProperty(ss)&&W(ls,ss)<0&&(Nl.prototype[ss]=function(e){return function(){return e.apply(this.doc,arguments)}}(Oa.prototype[ss]));return we(Oa),Nl.inputStyles={textarea:os,contenteditable:Ql},Nl.defineMode=function(e){Nl.defaults.mode||"null"==e||(Nl.defaults.mode=e),We.apply(this,arguments)},Nl.defineMIME=He,Nl.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Nl.defineMIME("text/plain","null"),Nl.defineExtension=function(e,t){Nl.prototype[e]=t},Nl.defineDocExtension=function(e,t){Oa.prototype[e]=t},Nl.fromTextArea=is,as(Nl),Nl.version="5.61.1",Nl}()},function(e,t,n){"use strict";function r(e){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=d(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}o.default=e,n&&n.set(e,o);return o}(n(1)),i=f(n(229)),a=f(n(25)),l=n(135),s=n(274),c=f(n(467)),u=f(n(279));function f(e){return e&&e.__esModule?e:{default:e}}function d(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(s){l=!0,o=s}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||v(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0){var i=1/0,a=1/0;o.forEach((function(t){t.x>e.x&&(i=Math.min(i,t.x)),t.y>e.y&&(a=Math.min(a,t.y))})),Number.isFinite(i)&&(e.w=i-e.x),Number.isFinite(a)&&(e.h=a-e.y)}}return r||(e.w=t,e.h=n),e})),2),g=h[0],v=h[1];if(v){var y={w:v.w,h:v.h,x:v.x,y:v.y,static:!0,i:e};this.props.onResize(g,c,v,y,o,i),this.setState({layout:(0,l.compact)(g,(0,l.compactType)(this.props),f),activeDrag:y})}}},{key:"onResizeStop",value:function(e,t,n,r){var o=r.e,i=r.node,a=this.state,s=a.layout,c=a.oldResizeItem,u=this.props.cols,f=(0,l.getLayoutItem)(s,e);this.props.onResizeStop(s,c,f,null,o,i);var d=(0,l.compact)(s,(0,l.compactType)(this.props),u),p=this.state.oldLayout;this.setState({activeDrag:null,layout:d,oldResizeItem:null,oldLayout:null}),this.onLayoutMaybeChanged(d,p)}},{key:"placeholder",value:function(){var e=this.state.activeDrag;if(!e)return null;var t=this.props,n=t.width,r=t.cols,i=t.margin,a=t.containerPadding,l=t.rowHeight,s=t.maxRows,u=t.useCSSTransforms,f=t.transformScale;return o.createElement(c.default,{w:e.w,h:e.h,x:e.x,y:e.y,i:e.i,className:"react-grid-placeholder",containerWidth:n,cols:r,margin:i,containerPadding:a||i,maxRows:s,rowHeight:l,isDraggable:!1,isResizable:!1,isBounded:!1,useCSSTransforms:u,transformScale:f},o.createElement("div",null))}},{key:"processGridItem",value:function(e,t){if(e&&e.key){var n=(0,l.getLayoutItem)(this.state.layout,String(e.key));if(!n)return null;var r=this.props,i=r.width,a=r.cols,s=r.margin,u=r.containerPadding,f=r.rowHeight,d=r.maxRows,p=r.isDraggable,h=r.isResizable,m=r.isBounded,g=r.useCSSTransforms,v=r.transformScale,y=r.draggableCancel,b=r.draggableHandle,x=r.resizeHandles,w=r.resizeHandle,O=this.state,S=O.mounted,k=O.droppingPosition,_="boolean"===typeof n.isDraggable?n.isDraggable:!n.static&&p,C="boolean"===typeof n.isResizable?n.isResizable:!n.static&&h,j=n.resizeHandles||x,E=_&&m&&!1!==n.isBounded;return o.createElement(c.default,{containerWidth:i,cols:a,margin:s,containerPadding:u||s,maxRows:d,rowHeight:f,cancel:y,handle:b,onDragStop:this.onDragStop,onDragStart:this.onDragStart,onDrag:this.onDrag,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,isDraggable:_,isResizable:C,isBounded:E,useCSSTransforms:g&&S,usePercentages:!S,transformScale:v,w:n.w,h:n.h,x:n.x,y:n.y,i:n.i,minH:n.minH,minW:n.minW,maxH:n.maxH,maxW:n.maxW,static:n.static,droppingPosition:t?k:void 0,resizeHandles:j,resizeHandle:w},e)}}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=t.style,i=t.isDroppable,s=t.innerRef,c=(0,a.default)(C,n),u=m({height:this.containerHeight()},r);return o.createElement("div",{ref:s,className:c,style:u,onDrop:i?this.onDrop:l.noop,onDragLeave:i?this.onDragLeave:l.noop,onDragEnter:i?this.onDragEnter:l.noop,onDragOver:i?this.onDragOver:l.noop},o.Children.map(this.props.children,(function(t){return e.processGridItem(t)})),i&&this.state.droppingDOMNode&&this.processGridItem(this.state.droppingDOMNode,!0),this.placeholder())}}])&&b(t.prototype,n),r&&b(t,r),f}(o.Component);t.default=E,_(E,"displayName","ReactGridLayout"),_(E,"propTypes",u.default),_(E,"defaultProps",{autoSize:!0,cols:12,className:"",style:{},draggableHandle:"",draggableCancel:"",containerPadding:null,rowHeight:150,maxRows:1/0,layout:[],margin:[10,10],isBounded:!1,isDraggable:!0,isResizable:!0,isDroppable:!1,useCSSTransforms:!0,transformScale:1,verticalCompact:!0,compactType:"vertical",preventCollision:!1,droppingItem:{i:"__dropping-elem__",h:1,w:1},resizeHandles:["se"],onLayoutChange:l.noop,onDragStart:l.noop,onDrag:l.noop,onDragStop:l.noop,onResizeStart:l.noop,onResize:l.noop,onResizeStop:l.noop,onDrop:l.noop})},function(e,t,n){"use strict";function r(e){var t=e.margin,n=e.containerPadding,r=e.containerWidth,o=e.cols;return(r-t[0]*(o-1)-2*n[0])/o}function o(e,t,n){return Number.isFinite(e)?Math.round(t*e+Math.max(0,e-1)*n):e}function i(e,t,n){return Math.max(Math.min(e,n),t)}Object.defineProperty(t,"__esModule",{value:!0}),t.calcGridColWidth=r,t.calcGridItemWHPx=o,t.calcGridItemPosition=function(e,t,n,i,a,l){var s=e.margin,c=e.containerPadding,u=e.rowHeight,f=r(e),d={};l&&l.resizing?(d.width=Math.round(l.resizing.width),d.height=Math.round(l.resizing.height)):(d.width=o(i,f,s[0]),d.height=o(a,u,s[1]));l&&l.dragging?(d.top=Math.round(l.dragging.top),d.left=Math.round(l.dragging.left)):(d.top=Math.round((u+s[1])*n+c[1]),d.left=Math.round((f+s[0])*t+c[0]));return d},t.calcXY=function(e,t,n,o,a){var l=e.margin,s=e.cols,c=e.rowHeight,u=e.maxRows,f=r(e),d=Math.round((n-l[0])/(f+l[0])),p=Math.round((t-l[1])/(c+l[1]));return d=i(d,0,s-o),p=i(p,0,u-a),{x:d,y:p}},t.calcWH=function(e,t,n,o,a){var l=e.margin,s=e.maxRows,c=e.cols,u=e.rowHeight,f=r(e),d=Math.round((t+l[0])/(f+l[0])),p=Math.round((n+l[1])/(u+l[1]));return d=i(d,0,c-o),p=i(p,0,s-a),{w:d,h:p}},t.clamp=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBoundPosition=function(e,t,n){if(!e.props.bounds)return[t,n];var a=e.props.bounds;a="string"===typeof a?a:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(a);var l=i(e);if("string"===typeof a){var s,c=l.ownerDocument,u=c.defaultView;if(!((s="parent"===a?l.parentNode:c.querySelector(a))instanceof u.HTMLElement))throw new Error('Bounds selector "'+a+'" could not find an element.');var f=u.getComputedStyle(l),d=u.getComputedStyle(s);a={left:-l.offsetLeft+(0,r.int)(d.paddingLeft)+(0,r.int)(f.marginLeft),top:-l.offsetTop+(0,r.int)(d.paddingTop)+(0,r.int)(f.marginTop),right:(0,o.innerWidth)(s)-(0,o.outerWidth)(l)-l.offsetLeft+(0,r.int)(d.paddingRight)-(0,r.int)(f.marginRight),bottom:(0,o.innerHeight)(s)-(0,o.outerHeight)(l)-l.offsetTop+(0,r.int)(d.paddingBottom)-(0,r.int)(f.marginBottom)}}(0,r.isNum)(a.right)&&(t=Math.min(t,a.right));(0,r.isNum)(a.bottom)&&(n=Math.min(n,a.bottom));(0,r.isNum)(a.left)&&(t=Math.max(t,a.left));(0,r.isNum)(a.top)&&(n=Math.max(n,a.top));return[t,n]},t.snapToGrid=function(e,t,n){var r=Math.round(t/e[0])*e[0],o=Math.round(n/e[1])*e[1];return[r,o]},t.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},t.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},t.getControlPosition=function(e,t,n){var r="number"===typeof t?(0,o.getTouch)(e,t):null;if("number"===typeof t&&!r)return null;var a=i(n),l=n.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,o.offsetXYFromParent)(r||e,l,n.props.scale)},t.createCoreData=function(e,t,n){var o=e.state,a=!(0,r.isNum)(o.lastX),l=i(e);return a?{node:l,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:l,deltaX:t-o.lastX,deltaY:n-o.lastY,lastX:o.lastX,lastY:o.lastY,x:t,y:n}},t.createDraggableData=function(e,t){var n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}};var r=n(175),o=n(231);function i(e){var t=e.findDOMNode();if(!t)throw new Error(": Unmounted during event!");return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){void 0}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}r.default=e,n&&n.set(e,r);return r}(n(1)),o=n(230),i=n(472),a=n(278);function l(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function s(){return(s=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(t,["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"]));return(0,i.cloneElement)(n,u(u({},f),{},{className:(a?a+" ":"")+"react-resizable",children:[].concat(n.props.children,c.map((function(t){var n,i=null!=(n=e.handleRefs[t])?n:e.handleRefs[t]=r.createRef();return r.createElement(o.DraggableCore,s({},l,{nodeRef:i,key:"resizableHandle-"+t,onStop:e.resizeHandler("onResizeStop",t),onStart:e.resizeHandler("onResizeStart",t),onDrag:e.resizeHandler("onResize",t)}),e.renderResizeHandle(t,i))})))}))},a}(r.Component);t.default=p,p.propTypes=a.resizableProps,p.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1}},function(e,t,n){"use strict";t.__esModule=!0,t.resizableProps=void 0;var r,o=(r=n(9))&&r.__esModule?r:{default:r};n(230);var i={axis:o.default.oneOf(["both","x","y","none"]),className:o.default.string,children:o.default.element.isRequired,draggableOpts:o.default.shape({allowAnyClick:o.default.bool,cancel:o.default.string,children:o.default.node,disabled:o.default.bool,enableUserSelectHack:o.default.bool,offsetParent:o.default.node,grid:o.default.arrayOf(o.default.number),handle:o.default.string,nodeRef:o.default.object,onStart:o.default.func,onDrag:o.default.func,onStop:o.default.func,onMouseDown:o.default.func,scale:o.default.number}),height:o.default.number.isRequired,handle:o.default.oneOfType([o.default.node,o.default.func]),handleSize:o.default.arrayOf(o.default.number),lockAspectRatio:o.default.bool,maxConstraints:o.default.arrayOf(o.default.number),minConstraints:o.default.arrayOf(o.default.number),onResizeStop:o.default.func,onResizeStart:o.default.func,onResize:o.default.func,resizeHandles:o.default.arrayOf(o.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:o.default.number,width:o.default.number.isRequired};t.resizableProps=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.resizeHandleType=t.resizeHandleAxesType=void 0;var r=i(n(9)),o=i(n(1));function i(e){return e&&e.__esModule?e:{default:e}}var a=r.default.arrayOf(r.default.oneOf(["s","w","e","n","sw","nw","se","ne"]));t.resizeHandleAxesType=a;var l=r.default.oneOfType([r.default.node,r.default.func]);t.resizeHandleType=l;var s={className:r.default.string,style:r.default.object,width:r.default.number,autoSize:r.default.bool,cols:r.default.number,draggableCancel:r.default.string,draggableHandle:r.default.string,verticalCompact:function(e){e.verticalCompact,0},compactType:r.default.oneOf(["vertical","horizontal"]),layout:function(e){var t=e.layout;void 0!==t&&n(135).validateLayout(t,"layout")},margin:r.default.arrayOf(r.default.number),containerPadding:r.default.arrayOf(r.default.number),rowHeight:r.default.number,maxRows:r.default.number,isBounded:r.default.bool,isDraggable:r.default.bool,isResizable:r.default.bool,preventCollision:r.default.bool,useCSSTransforms:r.default.bool,transformScale:r.default.number,isDroppable:r.default.bool,resizeHandles:a,resizeHandle:l,onLayoutChange:r.default.func,onDragStart:r.default.func,onDrag:r.default.func,onDragStop:r.default.func,onResizeStart:r.default.func,onResize:r.default.func,onResizeStop:r.default.func,onDrop:r.default.func,droppingItem:r.default.shape({i:r.default.string.isRequired,w:r.default.number.isRequired,h:r.default.number.isRequired}),children:function(e,t){var n=e[t],r={};o.default.Children.forEach(n,(function(e){if(r[e.key])throw new Error('Duplicate child key "'+e.key+'" found! This will cause problems in ReactGridLayout.');r[e.key]=!0}))},innerRef:r.default.any};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBreakpointFromWidth=function(e,t){for(var n=o(e),r=n[0],i=1,a=n.length;ie[l]&&(r=l)}return r},t.getColsFromBreakpoint=function(e,t){if(!t[e])throw new Error("ResponsiveReactGridLayout: `cols` entry for breakpoint "+e+" is missing!");return t[e]},t.findOrGenerateResponsiveLayout=function(e,t,n,i,a,l){if(e[n])return(0,r.cloneLayout)(e[n]);for(var s=e[i],c=o(t),u=c.slice(c.indexOf(n)),f=0,d=u.length;f=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(479),t.setImmediate="undefined"!==typeof self&&self.setImmediate||"undefined"!==typeof e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!==typeof self&&self.clearImmediate||"undefined"!==typeof e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(82))},function(e,t,n){var r=n(482),o=n(178);e.exports=function(e,t){return e&&r(e,t,o)}},function(e,t,n){(function(e){var r=n(90),o=n(487),i=t&&!t.nodeType&&t,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,l=a&&a.exports===i?r.Buffer:void 0,s=(l?l.isBuffer:void 0)||o;e.exports=s}).call(this,n(174)(e))},function(e,t,n){var r=n(488),o=n(285),i=n(489),a=i&&i.isTypedArray,l=a?o(a):r;e.exports=l},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(168),o=n(496),i=n(497),a=n(498),l=n(499),s=n(500);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=l,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(289),o=n(290),i=n(291);e.exports=function(e,t,n,a,l,s){var c=1&n,u=e.length,f=t.length;if(u!=f&&!(c&&f>u))return!1;var d=s.get(e),p=s.get(t);if(d&&p)return d==t&&p==e;var h=-1,m=!0,g=2&n?new r:void 0;for(s.set(e,t),s.set(t,e);++ht}},function(e,t){e.exports=function(e,t){return e=0||(o[n]=e[n]);return o}(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"===typeof n)return n(e,r);var i=o.default.Children.only(n);return o.default.cloneElement(i,r)},r}(o.default.Component);function h(){}p.contextTypes={transitionGroup:r.object},p.childContextTypes={transitionGroup:function(){}},p.propTypes={},p.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:h,onEntering:h,onEntered:h,onExit:h,onExiting:h,onExited:h},p.UNMOUNTED=0,p.EXITED=1,p.ENTERING=2,p.ENTERED=3,p.EXITING=4;var m=(0,a.polyfill)(p);t.default=m},function(e,t,n){"use strict";t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0;var r;(r=n(9))&&r.__esModule;t.timeoutsShape=null;t.classNamesShape=null},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=l(n(9)),o=l(n(1)),i=n(83),a=n(574);function l(e){return e&&e.__esModule?e:{default:e}}function s(){return(s=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,["component","childFactory"]),i=u(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?i:o.default.createElement(t,r,i)},r}(o.default.Component);f.childContextTypes={transitionGroup:r.default.object.isRequired},f.propTypes={},f.defaultProps={component:"div",childFactory:function(e){return e}};var d=(0,i.polyfill)(f);t.default=d,e.exports=t.default},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){for(var n=0;n=0)return 1;return 0}();var o=n&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),r))}};function i(e){return e&&"[object Function]"==={}.toString.call(e)}function a(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function l(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function s(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=a(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:s(l(e))}function c(e){return e&&e.referenceNode?e.referenceNode:e}var u=n&&!(!window.MSInputMethodContext||!document.documentMode),f=n&&/MSIE 10/.test(navigator.userAgent);function d(e){return 11===e?u:10===e?f:u||f}function p(e){if(!e)return document.documentElement;for(var t=d(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===a(n,"position")?p(n):n:e?e.ownerDocument.documentElement:document.documentElement}function h(e){return null!==e.parentNode?h(e.parentNode):e}function m(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,i=document.createRange();i.setStart(r,0),i.setEnd(o,0);var a=i.commonAncestorContainer;if(e!==a&&t!==a||r.contains(o))return function(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||p(e.firstElementChild)===e)}(a)?a:p(a);var l=h(e);return l.host?m(l.host,t):m(e,h(t).host)}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var o=e.ownerDocument.documentElement,i=e.ownerDocument.scrollingElement||o;return i[n]}return e[n]}function v(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=g(t,"top"),o=g(t,"left"),i=n?-1:1;return e.top+=r*i,e.bottom+=r*i,e.left+=o*i,e.right+=o*i,e}function y(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function b(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],d(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function x(e){var t=e.body,n=e.documentElement,r=d(10)&&getComputedStyle(n);return{height:b("Height",t,n,r),width:b("Width",t,n,r)}}var w=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},O=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],r=d(10),o="HTML"===t.nodeName,i=C(e),l=C(t),c=s(e),u=a(t),f=parseFloat(u.borderTopWidth),p=parseFloat(u.borderLeftWidth);n&&o&&(l.top=Math.max(l.top,0),l.left=Math.max(l.left,0));var h=_({top:i.top-l.top-f,left:i.left-l.left-p,width:i.width,height:i.height});if(h.marginTop=0,h.marginLeft=0,!r&&o){var m=parseFloat(u.marginTop),g=parseFloat(u.marginLeft);h.top-=f-m,h.bottom-=f-m,h.left-=p-g,h.right-=p-g,h.marginTop=m,h.marginLeft=g}return(r&&!n?t.contains(c):t===c&&"BODY"!==c.nodeName)&&(h=v(h,t)),h}function E(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=j(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:g(n),l=t?0:g(n,"left"),s={top:a-r.top+r.marginTop,left:l-r.left+r.marginLeft,width:o,height:i};return _(s)}function M(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===a(e,"position"))return!0;var n=l(e);return!!n&&M(n)}function P(e){if(!e||!e.parentElement||d())return document.documentElement;for(var t=e.parentElement;t&&"none"===a(t,"transform");)t=t.parentElement;return t||document.documentElement}function T(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},a=o?P(e):m(e,c(t));if("viewport"===r)i=E(a,o);else{var u=void 0;"scrollParent"===r?"BODY"===(u=s(l(t))).nodeName&&(u=e.ownerDocument.documentElement):u="window"===r?e.ownerDocument.documentElement:r;var f=j(u,a,o);if("HTML"!==u.nodeName||M(a))i=f;else{var d=x(e.ownerDocument),p=d.height,h=d.width;i.top+=f.top-f.marginTop,i.bottom=p+f.top,i.left+=f.left-f.marginLeft,i.right=h+f.left}}var g="number"===typeof(n=n||0);return i.left+=g?n:n.left||0,i.top+=g?n:n.top||0,i.right-=g?n:n.right||0,i.bottom-=g?n:n.bottom||0,i}function A(e){return e.width*e.height}function R(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=T(n,r,i,o),l={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},s=Object.keys(l).map((function(e){return k({key:e},l[e],{area:A(l[e])})})).sort((function(e,t){return t.area-e.area})),c=s.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),u=c.length>0?c[0].key:s[0].key,f=e.split("-")[1];return u+(f?"-"+f:"")}function D(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=r?P(t):m(t,c(n));return j(n,o,r)}function I(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function N(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function L(e,t,n){n=n.split("-")[0];var r=I(e),o={width:r.width,height:r.height},i=-1!==["right","left"].indexOf(n),a=i?"top":"left",l=i?"left":"top",s=i?"height":"width",c=i?"width":"height";return o[a]=t[a]+t[s]/2-r[s]/2,o[l]=n===l?t[l]-r[c]:t[N(l)],o}function z(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function F(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=z(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&i(n)&&(t.offsets.popper=_(t.offsets.popper),t.offsets.reference=_(t.offsets.reference),t=n(t,e))})),t}function W(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=D(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=R(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=L(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=F(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function H(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function B(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r1&&void 0!==arguments[1]&&arguments[1],n=ee.indexOf(e),r=ee.slice(n+1).concat(ee.slice(0,n));return t?r.reverse():r}var ne="flip",re="clockwise",oe="counterclockwise";function ie(e,t,n,r){var o=[0,0],i=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),l=a.indexOf(z(a,(function(e){return-1!==e.search(/,|\s/)})));a[l]&&-1===a[l].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var s=/\s*,\s*|\s+/,c=-1!==l?[a.slice(0,l).concat([a[l].split(s)[0]]),[a[l].split(s)[1]].concat(a.slice(l+1))]:[a];return(c=c.map((function(e,r){var o=(1===r?!i:i)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+o[1],a=o[2];if(!i)return e;if(0===a.indexOf("%")){var l=void 0;switch(a){case"%p":l=n;break;case"%":case"%r":default:l=r}return _(l)[t]/100*i}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i;return i}(e,o,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,r){K(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))}))})),o}var ae={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets,i=o.reference,a=o.popper,l=-1!==["bottom","top"].indexOf(n),s=l?"left":"top",c=l?"width":"height",u={start:S({},s,i[s]),end:S({},s,i[s]+i[c]-a[c])};e.offsets.popper=k({},a,u[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,o=e.offsets,i=o.popper,a=o.reference,l=r.split("-")[0],s=void 0;return s=K(+n)?[+n,0]:ie(n,i,a,l),"left"===l?(i.top+=s[0],i.left-=s[1]):"right"===l?(i.top+=s[0],i.left+=s[1]):"top"===l?(i.left+=s[0],i.top-=s[1]):"bottom"===l&&(i.left+=s[0],i.top+=s[1]),e.popper=i,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||p(e.instance.popper);e.instance.reference===n&&(n=p(n));var r=B("transform"),o=e.instance.popper.style,i=o.top,a=o.left,l=o[r];o.top="",o.left="",o[r]="";var s=T(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=i,o.left=a,o[r]=l,t.boundaries=s;var c=t.priority,u=e.offsets.popper,f={primary:function(e){var n=u[e];return u[e]s[e]&&!t.escapeWithReference&&(r=Math.min(u[n],s[e]-("right"===e?u.width:u.height))),S({},n,r)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=k({},u,f[t](e))})),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,o=e.placement.split("-")[0],i=Math.floor,a=-1!==["top","bottom"].indexOf(o),l=a?"right":"bottom",s=a?"left":"top",c=a?"width":"height";return n[l]i(r[l])&&(e.offsets.popper[s]=i(r[l])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!Z(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"===typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],i=e.offsets,l=i.popper,s=i.reference,c=-1!==["left","right"].indexOf(o),u=c?"height":"width",f=c?"Top":"Left",d=f.toLowerCase(),p=c?"left":"top",h=c?"bottom":"right",m=I(r)[u];s[h]-ml[h]&&(e.offsets.popper[d]+=s[d]+m-l[h]),e.offsets.popper=_(e.offsets.popper);var g=s[d]+s[u]/2-m/2,v=a(e.instance.popper),y=parseFloat(v["margin"+f]),b=parseFloat(v["border"+f+"Width"]),x=g-e.offsets.popper[d]-y-b;return x=Math.max(Math.min(l[u]-m,x),0),e.arrowElement=r,e.offsets.arrow=(S(n={},d,Math.round(x)),S(n,p,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(H(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=T(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=N(r),i=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case ne:a=[r,o];break;case re:a=te(r);break;case oe:a=te(r,!0);break;default:a=t.behavior}return a.forEach((function(l,s){if(r!==l||a.length===s+1)return e;r=e.placement.split("-")[0],o=N(r);var c=e.offsets.popper,u=e.offsets.reference,f=Math.floor,d="left"===r&&f(c.right)>f(u.left)||"right"===r&&f(c.left)f(u.top)||"bottom"===r&&f(c.top)f(n.right),m=f(c.top)f(n.bottom),v="left"===r&&p||"right"===r&&h||"top"===r&&m||"bottom"===r&&g,y=-1!==["top","bottom"].indexOf(r),b=!!t.flipVariations&&(y&&"start"===i&&p||y&&"end"===i&&h||!y&&"start"===i&&m||!y&&"end"===i&&g),x=!!t.flipVariationsByContent&&(y&&"start"===i&&h||y&&"end"===i&&p||!y&&"start"===i&&g||!y&&"end"===i&&m),w=b||x;(d||v||w)&&(e.flipped=!0,(d||v)&&(r=a[s+1]),w&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=r+(i?"-"+i:""),e.offsets.popper=k({},e.offsets.popper,L(e.instance.popper,e.offsets.reference,e.placement)),e=F(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,o=r.popper,i=r.reference,a=-1!==["left","right"].indexOf(n),l=-1===["top","left"].indexOf(n);return o[a?"left":"top"]=i[n]-(l?o[a?"width":"height"]:0),e.placement=N(t),e.offsets.popper=_(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!Z(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=z(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottomn.right||t.top>n.bottom||t.right2&&void 0!==arguments[2]?arguments[2]:{};w(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=o(this.update.bind(this)),this.options=k({},e.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(k({},e.Defaults.modifiers,a.modifiers)).forEach((function(t){r.options.modifiers[t]=k({},e.Defaults.modifiers[t]||{},a.modifiers?a.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return k({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&i(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var l=this.options.eventsEnabled;l&&this.enableEventListeners(),this.state.eventsEnabled=l}return O(e,[{key:"update",value:function(){return W.call(this)}},{key:"destroy",value:function(){return V.call(this)}},{key:"enableEventListeners",value:function(){return $.call(this)}},{key:"disableEventListeners",value:function(){return q.call(this)}}]),e}();le.Utils=("undefined"!==typeof window?window:e).PopperUtils,le.placements=J,le.Defaults=ae,t.a=le}).call(this,n(82))},function(e,t,n){"use strict";var r=n(46),o=n(48);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(1)),a=(0,r(n(49)).default)(i.createElement("path",{d:"M7 14l5-5 5 5z"}),"ArrowDropUp");t.default=a},function(e,t,n){"use strict";var r=n(46),o=n(48);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(1)),a=(0,r(n(49)).default)(i.createElement("path",{d:"M10 18h5V5h-5v13zm-6 0h5V5H4v13zM16 5v13h5V5h-5z"}),"ViewColumn");t.default=a},function(e,t,n){"use strict";var r=n(46),o=n(48);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(1)),a=(0,r(n(49)).default)(i.createElement("path",{d:"M16.59 7.58L10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"CheckCircleOutline");t.default=a},function(e,t,n){"use strict";var r=n(46),o=n(48);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(1)),a=(0,r(n(49)).default)(i.createElement("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4l6 6v10c0 1.1-.9 2-2 2H7.99C6.89 23 6 22.1 6 21l.01-14c0-1.1.89-2 1.99-2h7zm-1 7h5.5L14 6.5V12z"}),"FileCopy");t.default=a},function(e,t,n){"use strict";var r=n(46),o=n(48);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(1)),a=(0,r(n(49)).default)(i.createElement("path",{d:"M5.2496 8.0688l2.83-2.8268 14.134 14.15-2.83 2.8268zM9.4857 3.8272l2.828-2.8288 5.6576 5.656-2.828 2.8288zM.9989 12.3147l2.8284-2.8284L9.484 15.143l-2.8284 2.8284zM1 21h12v2H1z"}),"Gavel");t.default=a},function(e,t,n){"use strict";var r=n(46),o=n(48);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(1)),a=(0,r(n(49)).default)(i.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z"}),"Help");t.default=a},function(e,t,n){"use strict";(function(e){function r(){return(r=Object.assign||function(e){for(var t=1;t0;)if(!n(e[o],t[o],r))return!1;return!0}function f(e,t,n,r){var o=e.size===t.size;return o&&e.size&&e.forEach((function(e,i){o&&(o=!1,t.forEach((function(t,a){!o&&n(i,a,r)&&(o=n(e,t,r))})))})),o}var d="_owner",p=Function.prototype.bind.call(Function.prototype.call,Object.prototype.hasOwnProperty);function h(e,t,r,o){var i=n(e),l=i.length;if(n(t).length!==l)return!1;if(l)for(var s=void 0;l-- >0;){if((s=i[l])===d){var c=a(e),u=a(t);if((c||u)&&c!==u)return!1}if(!p(t,s)||!r(e[s],t[s],o))return!1}return!0}function m(e,t){return e.source===t.source&&e.global===t.global&&e.ignoreCase===t.ignoreCase&&e.multiline===t.multiline&&e.unicode===t.unicode&&e.sticky===t.sticky&&e.lastIndex===t.lastIndex}function g(e,t,n,r){var o=e.size===t.size;return o&&e.size&&e.forEach((function(e){o&&(o=!1,t.forEach((function(t){o||(o=n(e,t,r))})))})),o}var v="function"===typeof Map,y="function"===typeof Set;function b(e){var t="function"===typeof e?e(n):n;function n(e,n,a){if(e===n)return!0;if(e&&n&&"object"===typeof e&&"object"===typeof n){if(o(e)&&o(n))return h(e,n,t,a);var l=Array.isArray(e),s=Array.isArray(n);return l||s?l===s&&u(e,n,t,a):(l=e instanceof Date,s=n instanceof Date,l||s?l===s&&r(e.getTime(),n.getTime()):(l=e instanceof RegExp,s=n instanceof RegExp,l||s?l===s&&m(e,n):i(e)||i(n)?e===n:v&&(l=e instanceof Map,s=n instanceof Map,l||s)?l===s&&f(e,n,t,a):y&&(l=e instanceof Set,s=n instanceof Set,l||s)?l===s&&g(e,n,t,a):h(e,n,t,a)))}return e!==e&&n!==n}return n}var x=b(),w=b((function(){return r})),O=b(c()),S=b(c(r));e.circularDeepEqual=O,e.circularShallowEqual=S,e.createCustomEqual=b,e.deepEqual=x,e.sameValueZeroEqual=r,e.shallowEqual=w,Object.defineProperty(e,"__esModule",{value:!0})}(t)},function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var r=n(1),o=n.n(r),i=n(25),a=n.n(i),l=n(11),s=n(18);function c(e){return(c="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(){return(u=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function A(){return(A=Object.assign||function(e){for(var t=1;t0||!o()(s,r)||!o()(c,i))?this.renderAreaWithAnimation(e,t):this.renderAreaStatically(r,i,e,t)}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.dot,r=e.points,o=e.className,i=e.top,a=e.left,l=e.xAxis,s=e.yAxis,c=e.width,u=e.height,f=e.isAnimationActive,d=e.id;if(t||!r||!r.length)return null;var p=this.state.isAnimationFinished,m=1===r.length,g=x()("recharts-area",o),v=l&&l.allowDataOverflow||s&&s.allowDataOverflow,b=h()(d)?this.id:d;return y.a.createElement(k.a,{className:g},v?y.a.createElement("defs",null,y.a.createElement("clipPath",{id:"clipPath-".concat(b)},y.a.createElement("rect",{x:a,y:i,width:c,height:Math.floor(u)}))):null,m?null:this.renderArea(v,b),(n||m)&&this.renderDots(v,b),(!f||p)&&_.a.renderCallByParent(this.props,r))}}])&&L(t.prototype,n),r&&L(t,r),l}(v.PureComponent);B.displayName="Area",B.defaultProps={stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!C.a.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"},B.getBaseValue=function(e,t,n){var r=e.layout,o=e.baseValue;if(Object(j.g)(o)&&"number"===typeof o)return o;var i="horizontal"===r?n:t,a=i.scale.domain();if("number"===i.type){var l=Math.max(a[0],a[1]),s=Math.min(a[0],a[1]);return"dataMin"===o?s:"dataMax"===o||l<0?l:Math.max(Math.min(a[0],a[1]),0)}return"dataMin"===o?a[0]:"dataMax"===o?a[1]:a[0]},B.getComposedData=function(e){var t,n=e.props,r=e.xAxis,o=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,l=e.bandSize,s=e.dataKey,c=e.stackedData,u=e.dataStartIndex,f=e.displayedData,p=e.offset,m=n.layout,v=c&&c.length,y=B.getBaseValue(n,r,o),b=!1,x=f.map((function(e,t){var n,f=Object(E.w)(e,s);v?n=c[u+t]:(n=f,g()(n)?b=!0:n=[y,n]);var d=h()(n[1])||v&&h()(f);return"horizontal"===m?{x:Object(E.k)({axis:r,ticks:i,bandSize:l,entry:e,index:t}),y:d?null:o.scale(n[1]),value:n,payload:e}:{x:d?null:r.scale(n[1]),y:Object(E.k)({axis:o,ticks:a,bandSize:l,entry:e,index:t}),value:n,payload:e}}));return t=v||b?x.map((function(e){return"horizontal"===m?{x:e.x,y:h()(d()(e,"value[0]"))||h()(d()(e,"y"))?null:o.scale(d()(e,"value[0]"))}:{x:h()(d()(e,"value[0]"))?null:r.scale(d()(e,"value[0]")),y:e.y}})):"horizontal"===m?o.scale(y):r.scale(y),D({points:x,baseLine:t,layout:m,isRange:b},p)},B.renderDotItem=function(e,t){return y.a.isValidElement(e)?y.a.cloneElement(e,t):u()(e)?e(t):y.a.createElement(S.a,A({},t,{className:"recharts-area-dot"}))}},function(e,t){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},function(e,t,n){"use strict";n.d(t,"a",(function(){return B}));var r=n(92),o=n.n(r),i=n(8),a=n.n(i),l=n(340),s=n.n(l),c=n(21),u=n.n(c),f=n(20),d=n.n(f),p=n(1),h=n.n(p),m=n(86),g=n(25),v=n.n(g),y=n(28),b=n(159),x=n(107),w=n(77),O=n(67),S=n(144),k=n(202),_=n(34),C=n(72),j=n(35),E=n(11),M=n(22),P=n(78),T=n(18);function A(e){return(A="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function R(){return(R=Object.assign||function(e){for(var t=1;tt?"start":e0?a()(e,"paddingAngle",0):0;if(n){var s=Object(E.e)(n.endAngle-n.startAngle,e.endAngle-e.startAngle),c=I(I({},e),{},{startAngle:i+l,endAngle:i+s(r)+l});o.push(c),i=c.endAngle}else{var f=e.endAngle,d=e.startAngle,p=Object(E.e)(0,f-d)(r),h=I(I({},e),{},{startAngle:i+l,endAngle:i+p+l});o.push(h),i=h.endAngle}})),h.a.createElement(y.a,null,e.renderSectorsStatically(o))}))}},{key:"renderSectors",value:function(){var e=this.props,t=e.sectors,n=e.isAnimationActive,r=this.state.prevSectors;return!(n&&t&&t.length)||r&&o()(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.sectors,r=e.className,o=e.label,i=e.cx,a=e.cy,l=e.innerRadius,s=e.outerRadius,c=e.isAnimationActive,u=this.state.isAnimationFinished;if(t||!n||!n.length||!Object(E.g)(i)||!Object(E.g)(a)||!Object(E.g)(l)||!Object(E.g)(s))return null;var f=v()("recharts-pie",r);return h.a.createElement(y.a,{className:f},this.renderSectors(),o&&this.renderLabels(n),O.a.renderCallByParent(this.props,null,!1),(!c||u)&&S.a.renderCallByParent(this.props,n,!1))}}])&&L(t.prototype,n),r&&L(t,r),l}(p.PureComponent);B.displayName="Pie",B.defaultProps={stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!C.a.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1},B.parseDeltaAngle=function(e,t){return Object(E.i)(t-e)*Math.min(Math.abs(t-e),360)},B.getRealPieData=function(e){var t=e.props,n=t.data,r=t.children,o=Object(T.c)(e.props),i=Object(_.a)(r,k.a.displayName);return n&&n.length?n.map((function(e,t){return I(I(I({payload:e},o),e),i&&i[t]&&i[t].props)})):i&&i.length?i.map((function(e){return I(I({},o),e.props)})):[]},B.parseCoordinateOfPie=function(e,t){var n=t.top,r=t.left,o=t.width,i=t.height,a=Object(j.c)(o,i);return{cx:r+Object(E.c)(e.props.cx,o,o/2),cy:n+Object(E.c)(e.props.cy,i,i/2),innerRadius:Object(E.c)(e.props.innerRadius,a,0),outerRadius:Object(E.c)(e.props.outerRadius,a,.8*a),maxRadius:e.props.maxRadius||Math.sqrt(o*o+i*i)/2}},B.getComposedData=function(e){var t=e.item,n=e.offset,r=B.getRealPieData(t);if(!r||!r.length)return null;var o=t.props,i=o.cornerRadius,a=o.startAngle,l=o.endAngle,s=o.paddingAngle,c=o.dataKey,u=o.nameKey,f=o.valueKey,p=o.tooltipType,h=Math.abs(t.props.minAngle),m=B.parseCoordinateOfPie(t,n),g=B.parseDeltaAngle(a,l),v=Math.abs(g),y=c;d()(c)&&d()(f)?(Object(P.a)(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),y="value"):d()(c)&&(Object(P.a)(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),y=f);var b,x,w=r.filter((function(e){return 0!==Object(M.w)(e,y,0)})).length,O=v-w*h-(v>=360?w:w-1)*s,S=r.reduce((function(e,t){var n=Object(M.w)(t,y,0);return e+(Object(E.g)(n)?n:0)}),0);S>0&&(b=r.map((function(e,t){var n,r=Object(M.w)(e,y,0),o=Object(M.w)(e,u,t),l=(Object(E.g)(r)?r:0)/S,c=(n=t?x.endAngle+Object(E.i)(g)*s*(0!==r?1:0):a)+Object(E.i)(g)*((0!==r?h:0)+l*O),f=(n+c)/2,d=(m.innerRadius+m.outerRadius)/2,v=[{name:o,value:r,payload:e,dataKey:y,type:p}],b=Object(j.e)(m.cx,m.cy,d,f);return x=I(I(I({percent:l,cornerRadius:i,name:o,tooltipPayload:v,midAngle:f,middleRadius:d,tooltipPosition:b},e),m),{},{value:Object(M.w)(e,y),startAngle:n,endAngle:c,payload:e,paddingAngle:Object(E.i)(g)*s})})));return I(I({},m),{},{sectors:b,data:r})}},function(e,t,n){var r=n(100),o=n(575),i=n(101),a=Function.prototype,l=Object.prototype,s=a.toString,c=l.hasOwnProperty,u=s.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==u}},function(e,t,n){var r=n(180),o=n(89),i=n(303);e.exports=function(e,t){return e&&e.length?r(e,o(t,2),i):void 0}},function(e,t,n){var r=n(180),o=n(302),i=n(89);e.exports=function(e,t){return e&&e.length?r(e,i(t,2),o):void 0}},function(e,t,n){"use strict";var r=n(113),o=n.n(r),i=function(){function e(e){var t=void 0===e?{}:e,n=t.locale,r=t.instance,i=t.moment;this.yearFormat="YYYY",this.yearMonthFormat="MMMM YYYY",this.dateTime12hFormat="MMMM Do hh:mm a",this.dateTime24hFormat="MMMM Do HH:mm",this.time12hFormat="hh:mm A",this.time24hFormat="HH:mm",this.dateFormat="MMMM Do",this.moment=r||i||o.a,this.locale=n}return e.prototype.parse=function(e,t){return""===e?null:this.moment(e,t,!0)},e.prototype.date=function(e){if(null===e)return null;var t=this.moment(e);return t.locale(this.locale),t},e.prototype.isValid=function(e){return this.moment(e).isValid()},e.prototype.isNull=function(e){return null===e},e.prototype.getDiff=function(e,t){return e.diff(t)},e.prototype.isAfter=function(e,t){return e.isAfter(t)},e.prototype.isBefore=function(e,t){return e.isBefore(t)},e.prototype.isAfterDay=function(e,t){return e.isAfter(t,"day")},e.prototype.isBeforeDay=function(e,t){return e.isBefore(t,"day")},e.prototype.isBeforeYear=function(e,t){return e.isBefore(t,"year")},e.prototype.isAfterYear=function(e,t){return e.isAfter(t,"year")},e.prototype.startOfDay=function(e){return e.clone().startOf("day")},e.prototype.endOfDay=function(e){return e.clone().endOf("day")},e.prototype.format=function(e,t){return e.locale(this.locale),e.format(t)},e.prototype.formatNumber=function(e){return e},e.prototype.getHours=function(e){return e.get("hours")},e.prototype.addDays=function(e,t){return t<0?e.clone().subtract(Math.abs(t),"days"):e.clone().add(t,"days")},e.prototype.setHours=function(e,t){return e.clone().hours(t)},e.prototype.getMinutes=function(e){return e.get("minutes")},e.prototype.setMinutes=function(e,t){return e.clone().minutes(t)},e.prototype.getSeconds=function(e){return e.get("seconds")},e.prototype.setSeconds=function(e,t){return e.clone().seconds(t)},e.prototype.getMonth=function(e){return e.get("month")},e.prototype.isSameDay=function(e,t){return e.isSame(t,"day")},e.prototype.isSameMonth=function(e,t){return e.isSame(t,"month")},e.prototype.isSameYear=function(e,t){return e.isSame(t,"year")},e.prototype.isSameHour=function(e,t){return e.isSame(t,"hour")},e.prototype.setMonth=function(e,t){return e.clone().month(t)},e.prototype.getMeridiemText=function(e){return"am"===e?"AM":"PM"},e.prototype.startOfMonth=function(e){return e.clone().startOf("month")},e.prototype.endOfMonth=function(e){return e.clone().endOf("month")},e.prototype.getNextMonth=function(e){return e.clone().add(1,"month")},e.prototype.getPreviousMonth=function(e){return e.clone().subtract(1,"month")},e.prototype.getMonthArray=function(e){for(var t=[e.clone().startOf("year")];t.length<12;){var n=t[t.length-1];t.push(this.getNextMonth(n))}return t},e.prototype.getYear=function(e){return e.get("year")},e.prototype.setYear=function(e,t){return e.clone().set("year",t)},e.prototype.mergeDateAndTime=function(e,t){return this.setMinutes(this.setHours(e,this.getHours(t)),this.getMinutes(t))},e.prototype.getWeekdays=function(){return this.moment.weekdaysShort(!0)},e.prototype.isEqual=function(e,t){return null===e&&null===t||this.moment(e).isSame(t)},e.prototype.getWeekArray=function(e){for(var t=e.clone().startOf("month").startOf("week"),n=e.clone().endOf("month").endOf("week"),r=0,o=t,i=[];o.isBefore(n);){var a=Math.floor(r/7);i[a]=i[a]||[],i[a].push(o),o=o.clone().add(1,"day"),r+=1}return i},e.prototype.getYearRange=function(e,t){for(var n=this.moment(e).startOf("year"),r=this.moment(t).endOf("year"),o=[],i=n;i.isBefore(r);)o.push(i),i=i.clone().add(1,"year");return o},e.prototype.getCalendarHeaderText=function(e){return this.format(e,this.yearMonthFormat)},e.prototype.getYearText=function(e){return this.format(e,"YYYY")},e.prototype.getDatePickerHeaderText=function(e){return this.format(e,"ddd, MMM D")},e.prototype.getDateTimePickerHeaderText=function(e){return this.format(e,"MMM D")},e.prototype.getMonthText=function(e){return this.format(e,"MMMM")},e.prototype.getDayText=function(e){return this.format(e,"D")},e.prototype.getHourText=function(e,t){return this.format(e,t?"hh":"HH")},e.prototype.getMinuteText=function(e){return this.format(e,"mm")},e.prototype.getSecondText=function(e){return this.format(e,"ss")},e}();t.a=i},function(e,t,n){"use strict";var r=n(46),o=n(48);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(1)),a=(0,r(n(49)).default)(i.createElement(i.Fragment,null,i.createElement("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),i.createElement("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})),"Schedule");t.default=a},function(e,t,n){"use strict";var r=n(46),o=n(48);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(1)),a=(0,r(n(49)).default)(i.createElement("path",{d:"M20 18c1.1 0 1.99-.9 1.99-2L22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2h-4zM4 6h16v10H4V6z"}),"Computer");t.default=a},function(e,t,n){"use strict";var r=n(46),o=n(48);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(1)),a=(0,r(n(49)).default)(i.createElement("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"}),"Lock");t.default=a},function(e,t,n){"use strict";var r=n(46),o=n(48);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(1)),a=(0,r(n(49)).default)(i.createElement("circle",{cx:"12",cy:"12",r:"8"}),"FiberManualRecord");t.default=a},function(e,t,n){"use strict";var r=n(46),o=n(48);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(1)),a=(0,r(n(49)).default)(i.createElement("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");t.default=a},function(e,t,n){"use strict";var r=n(46),o=n(48);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(1)),a=(0,r(n(49)).default)(i.createElement("path",{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6h-1.5z"}),"AttachFile");t.default=a},function(e,t,n){"use strict";var r=n(46),o=n(48);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(1)),a=(0,r(n(49)).default)(i.createElement("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM7.5 18c-.83 0-1.5-.67-1.5-1.5S6.67 15 7.5 15s1.5.67 1.5 1.5S8.33 18 7.5 18zm0-9C6.67 9 6 8.33 6 7.5S6.67 6 7.5 6 9 6.67 9 7.5 8.33 9 7.5 9zm4.5 4.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm4.5 4.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm0-9c-.83 0-1.5-.67-1.5-1.5S15.67 6 16.5 6s1.5.67 1.5 1.5S17.33 9 16.5 9z"}),"Casino");t.default=a},function(e,t,n){(function(e){var r=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return e}})),s=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),h(n)?r.showHidden=n:n&&t._extend(r,n),y(r.showHidden)&&(r.showHidden=!1),y(r.depth)&&(r.depth=2),y(r.colors)&&(r.colors=!1),y(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=s),u(r,e,r.depth)}function s(e,t){var n=l.styles[t];return n?"\x1b["+l.colors[n][0]+"m"+e+"\x1b["+l.colors[n][1]+"m":e}function c(e,t){return e}function u(e,n,r){if(e.customInspect&&n&&S(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,e);return v(o)||(o=u(e,o,r)),o}var i=function(e,t){if(y(t))return e.stylize("undefined","undefined");if(v(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(g(t))return e.stylize(""+t,"number");if(h(t))return e.stylize(""+t,"boolean");if(m(t))return e.stylize("null","null")}(e,n);if(i)return i;var a=Object.keys(n),l=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),O(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return f(n);if(0===a.length){if(S(n)){var s=n.name?": "+n.name:"";return e.stylize("[Function"+s+"]","special")}if(b(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(w(n))return e.stylize(Date.prototype.toString.call(n),"date");if(O(n))return f(n)}var c,x="",k=!1,_=["{","}"];(p(n)&&(k=!0,_=["[","]"]),S(n))&&(x=" [Function"+(n.name?": "+n.name:"")+"]");return b(n)&&(x=" "+RegExp.prototype.toString.call(n)),w(n)&&(x=" "+Date.prototype.toUTCString.call(n)),O(n)&&(x=" "+f(n)),0!==a.length||k&&0!=n.length?r<0?b(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),c=k?function(e,t,n,r,o){for(var i=[],a=0,l=t.length;a=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(c,x,_)):_[0]+x+_[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,n,r,o,i){var a,l,s;if((s=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?l=s.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):s.set&&(l=e.stylize("[Setter]","special")),E(r,o)||(a="["+o+"]"),l||(e.seen.indexOf(s.value)<0?(l=m(n)?u(e,s.value,null):u(e,s.value,n-1)).indexOf("\n")>-1&&(l=i?l.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+l.split("\n").map((function(e){return" "+e})).join("\n")):l=e.stylize("[Circular]","special")),y(a)){if(i&&o.match(/^\d+$/))return l;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+l}function p(e){return Array.isArray(e)}function h(e){return"boolean"===typeof e}function m(e){return null===e}function g(e){return"number"===typeof e}function v(e){return"string"===typeof e}function y(e){return void 0===e}function b(e){return x(e)&&"[object RegExp]"===k(e)}function x(e){return"object"===typeof e&&null!==e}function w(e){return x(e)&&"[object Date]"===k(e)}function O(e){return x(e)&&("[object Error]"===k(e)||e instanceof Error)}function S(e){return"function"===typeof e}function k(e){return Object.prototype.toString.call(e)}function _(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(n){if(y(i)&&(i=Object({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).NODE_DEBUG||""),n=n.toUpperCase(),!a[n])if(new RegExp("\\b"+n+"\\b","i").test(i)){var r=e.pid;a[n]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",n,r,e)}}else a[n]=function(){};return a[n]},t.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=p,t.isBoolean=h,t.isNull=m,t.isNullOrUndefined=function(e){return null==e},t.isNumber=g,t.isString=v,t.isSymbol=function(e){return"symbol"===typeof e},t.isUndefined=y,t.isRegExp=b,t.isObject=x,t.isDate=w,t.isError=O,t.isFunction=S,t.isPrimitive=function(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e},t.isBuffer=n(576);var C=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function j(){var e=new Date,t=[_(e.getHours()),_(e.getMinutes()),_(e.getSeconds())].join(":");return[e.getDate(),C[e.getMonth()],t].join(" ")}function E(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",j(),t.format.apply(t,arguments))},t.inherits=n(577),t._extend=function(e,t){if(!t||!x(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var M="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function P(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!==typeof e)throw new TypeError('The "original" argument must be of type Function');if(M&&e[M]){var t;if("function"!==typeof(t=e[M]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,M,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),o=[],i=0;i=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t1;if(t&&o&&!r){var i=!1;e.forEach((function(e){e.label||(i=!0)})),i&&console.error('[react-chartjs-2] Warning: Each dataset needs a unique key. By default, the "label" property on each dataset is used. Alternatively, you may provide a "datasetKeyProvider" as a prop that returns a unique key.')}}},{key:"getCurrentDatasets",value:function(){return this.chartInstance&&this.chartInstance.config.data&&this.chartInstance.config.data.datasets||[]}},{key:"saveCurrentDatasets",value:function(){var e=this;this.datasets=this.datasets||{},this.getCurrentDatasets().forEach((function(t){e.datasets[e.props.datasetKeyProvider(t)]=t}))}},{key:"updateChart",value:function(){var e=this,t=this.props.options,n=this.memoizeDataProps(this.props);if(this.chartInstance){t&&(this.chartInstance.options=i.default.helpers.configMerge(this.chartInstance.options,t));var r=this.getCurrentDatasets(),o=n.datasets||[];this.checkDatasets(r);var a=(0,l.default)(r,this.props.datasetKeyProvider);this.chartInstance.config.data.datasets=o.map((function(t){var n=a[e.props.datasetKeyProvider(t)];if(n&&n.type===t.type&&t.data){n.data.splice(t.data.length),t.data.forEach((function(e,r){n.data[r]=t.data[r]}));t.data;var r=f(t,["data"]);return p(p({},n),r)}return t}));n.datasets;var s=f(n,["datasets"]);this.chartInstance.config.data=p(p({},this.chartInstance.config.data),s),this.chartInstance.update()}}},{key:"renderChart",value:function(){var e=this.props,t=e.options,r=e.legend,o=e.type,l=e.plugins,s=this.element,c=this.memoizeDataProps();"undefined"===typeof r||(0,a.default)(n.defaultProps.legend,r)||(t.legend=r),this.chartInstance=new i.default(s,{type:o,data:c,options:t,plugins:l})}},{key:"destroyChart",value:function(){if(this.chartInstance){this.saveCurrentDatasets();var e=Object.values(this.datasets);this.chartInstance.config.data.datasets=e,this.chartInstance.destroy()}}},{key:"render",value:function(){var e=this.props,t=e.height,n=e.width,o=e.id;return r.default.createElement("canvas",{ref:this.ref,height:t,width:n,id:o,onClick:this.handleOnClick})}}]),n}(r.default.Component);S(_,"getLabelAsKey",(function(e){return e.label})),S(_,"propTypes",{data:o.default.oneOfType([o.default.object,o.default.func]).isRequired,getDatasetAtEvent:o.default.func,getElementAtEvent:o.default.func,getElementsAtEvent:o.default.func,height:o.default.number,legend:o.default.object,onElementsClick:o.default.func,options:o.default.object,plugins:o.default.arrayOf(o.default.object),redraw:o.default.bool,type:function(e,t,n){if(!i.default.controllers[e[t]])return new Error("Invalid chart type `"+e[t]+"` supplied to `"+n+"`.")},width:o.default.number,datasetKeyProvider:o.default.func}),S(_,"defaultProps",{legend:{display:!0,position:"bottom"},type:"doughnut",height:150,width:300,redraw:!1,options:{},datasetKeyProvider:_.getLabelAsKey});var C=_;t.default=C;var j=function(e){v(n,e);var t=b(n);function n(){return h(this,n),t.apply(this,arguments)}return g(n,[{key:"render",value:function(){var e=this;return r.default.createElement(_,c({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"doughnut"}))}}]),n}(r.default.Component);t.Doughnut=j;var E=function(e){v(n,e);var t=b(n);function n(){return h(this,n),t.apply(this,arguments)}return g(n,[{key:"render",value:function(){var e=this;return r.default.createElement(_,c({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"pie"}))}}]),n}(r.default.Component);t.Pie=E;var M=function(e){v(n,e);var t=b(n);function n(){return h(this,n),t.apply(this,arguments)}return g(n,[{key:"render",value:function(){var e=this;return r.default.createElement(_,c({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"line"}))}}]),n}(r.default.Component);t.Line=M;var P=function(e){v(n,e);var t=b(n);function n(){return h(this,n),t.apply(this,arguments)}return g(n,[{key:"render",value:function(){var e=this;return r.default.createElement(_,c({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"bar"}))}}]),n}(r.default.Component);t.Bar=P;var T=function(e){v(n,e);var t=b(n);function n(){return h(this,n),t.apply(this,arguments)}return g(n,[{key:"render",value:function(){var e=this;return r.default.createElement(_,c({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"horizontalBar"}))}}]),n}(r.default.Component);t.HorizontalBar=T;var A=function(e){v(n,e);var t=b(n);function n(){return h(this,n),t.apply(this,arguments)}return g(n,[{key:"render",value:function(){var e=this;return r.default.createElement(_,c({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"radar"}))}}]),n}(r.default.Component);t.Radar=A;var R=function(e){v(n,e);var t=b(n);function n(){return h(this,n),t.apply(this,arguments)}return g(n,[{key:"render",value:function(){var e=this;return r.default.createElement(_,c({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"polarArea"}))}}]),n}(r.default.Component);t.Polar=R;var D=function(e){v(n,e);var t=b(n);function n(){return h(this,n),t.apply(this,arguments)}return g(n,[{key:"render",value:function(){var e=this;return r.default.createElement(_,c({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"bubble"}))}}]),n}(r.default.Component);t.Bubble=D;var I=function(e){v(n,e);var t=b(n);function n(){return h(this,n),t.apply(this,arguments)}return g(n,[{key:"render",value:function(){var e=this;return r.default.createElement(_,c({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"scatter"}))}}]),n}(r.default.Component);t.Scatter=I;var N=i.default.defaults;t.defaults=N}).call(this,n(176))},function(e,t,n){"use strict";var r=n(46),o=n(48);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(1)),a=(0,r(n(49)).default)(i.createElement("path",{d:"M10.09 15.59L11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"ExitToApp");t.default=a},function(e,t,n){"use strict";var r=n(46),o=n(48);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(1)),a=(0,r(n(49)).default)(i.createElement("path",{d:"M10 17l5-5-5-5v10z"}),"ArrowRight");t.default=a},function(e,t,n){t.hot=function(e){return e}},function(e,t,n){"use strict";function r(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"===typeof o?o(n,r,e):t(o)}}}}var o=r();o.withExtraArgument=r,t.a=o},function(e,t,n){var r=n(589),o=n(296);e.exports=function(e,t){return null!=e&&o(e,t,r)}},function(e,t,n){"use strict";var r=n(23),o=n(10),i=n(367),a=n(4),l=["xs","sm","md","lg","xl"];function s(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,r=e.unit,i=void 0===r?"px":r,s=e.step,c=void 0===s?5:s,u=Object(o.a)(e,["values","unit","step"]);function f(e){var t="number"===typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(i,")")}function d(e,t){var r=l.indexOf(t);return r===l.length-1?f(e):"@media (min-width:".concat("number"===typeof n[e]?n[e]:e).concat(i,") and ")+"(max-width:".concat((-1!==r&&"number"===typeof n[l[r+1]]?n[l[r+1]]:t)-c/100).concat(i,")")}return Object(a.a)({keys:l,values:n,up:f,down:function(e){var t=l.indexOf(e)+1,r=n[l[t]];return t===l.length?f("xs"):"@media (max-width:".concat(("number"===typeof r&&t>0?r:e)-c/100).concat(i,")")},between:d,only:function(e){return d(e,e)},width:function(e){return n[e]}},u)}function c(e,t,n){var o;return Object(a.a)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(a.a)({paddingLeft:t(2),paddingRight:t(2)},n,Object(r.a)({},e.up("sm"),Object(a.a)({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(o={minHeight:56},Object(r.a)(o,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),Object(r.a)(o,e.up("sm"),{minHeight:64}),o)},n)}var u=n(366),f={black:"#000",white:"#fff"},d={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},p={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},h={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},m=n(206),g={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},v={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},y={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},b=n(24),x={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:f.white,default:d[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},w={text:{primary:f.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:d[800],default:"#303030"},action:{active:f.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function O(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Object(b.e)(e.main,o):"dark"===t&&(e.dark=Object(b.a)(e.main,i)))}function S(e){var t=e.primary,n=void 0===t?{light:p[300],main:p[500],dark:p[700]}:t,r=e.secondary,l=void 0===r?{light:h.A200,main:h.A400,dark:h.A700}:r,s=e.error,c=void 0===s?{light:m.a[300],main:m.a[500],dark:m.a[700]}:s,S=e.warning,k=void 0===S?{light:g[300],main:g[500],dark:g[700]}:S,_=e.info,C=void 0===_?{light:v[300],main:v[500],dark:v[700]}:_,j=e.success,E=void 0===j?{light:y[300],main:y[500],dark:y[700]}:j,M=e.type,P=void 0===M?"light":M,T=e.contrastThreshold,A=void 0===T?3:T,R=e.tonalOffset,D=void 0===R?.2:R,I=Object(o.a)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function N(e){return Object(b.d)(e,w.text.primary)>=A?w.text.primary:x.text.primary}var L=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=Object(a.a)({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(Object(u.a)(4,t));if("string"!==typeof e.main)throw new Error(Object(u.a)(5,JSON.stringify(e.main)));return O(e,"light",n,D),O(e,"dark",r,D),e.contrastText||(e.contrastText=N(e.main)),e},z={dark:w,light:x};return Object(i.a)(Object(a.a)({common:f,type:P,primary:L(n),secondary:L(l,"A400","A200","A700"),error:L(c),warning:L(k),info:L(C),success:L(E),grey:d,contrastThreshold:A,getContrastText:N,augmentColor:L,tonalOffset:D},z[P]),I)}function k(e){return Math.round(1e5*e)/1e5}var _={textTransform:"uppercase"},C='"Roboto", "Helvetica", "Arial", sans-serif';function j(e,t){var n="function"===typeof t?t(e):t,r=n.fontFamily,l=void 0===r?C:r,s=n.fontSize,c=void 0===s?14:s,u=n.fontWeightLight,f=void 0===u?300:u,d=n.fontWeightRegular,p=void 0===d?400:d,h=n.fontWeightMedium,m=void 0===h?500:h,g=n.fontWeightBold,v=void 0===g?700:g,y=n.htmlFontSize,b=void 0===y?16:y,x=n.allVariants,w=n.pxToRem,O=Object(o.a)(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);var S=c/14,j=w||function(e){return"".concat(e/b*S,"rem")},E=function(e,t,n,r,o){return Object(a.a)({fontFamily:l,fontWeight:e,fontSize:j(t),lineHeight:n},l===C?{letterSpacing:"".concat(k(r/t),"em")}:{},o,x)},M={h1:E(f,96,1.167,-1.5),h2:E(f,60,1.2,-.5),h3:E(p,48,1.167,0),h4:E(p,34,1.235,.25),h5:E(p,24,1.334,0),h6:E(m,20,1.6,.15),subtitle1:E(p,16,1.75,.15),subtitle2:E(m,14,1.57,.1),body1:E(p,16,1.5,.15),body2:E(p,14,1.43,.15),button:E(m,14,1.75,.4,_),caption:E(p,12,1.66,.4),overline:E(p,12,2.66,1,_)};return Object(i.a)(Object(a.a)({htmlFontSize:b,pxToRem:j,round:k,fontFamily:l,fontSize:c,fontWeightLight:f,fontWeightRegular:p,fontWeightMedium:m,fontWeightBold:v},M),O,{clone:!1})}function E(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var M=["none",E(0,2,1,-1,0,1,1,0,0,1,3,0),E(0,3,1,-2,0,2,2,0,0,1,5,0),E(0,3,3,-2,0,3,4,0,0,1,8,0),E(0,2,4,-1,0,4,5,0,0,1,10,0),E(0,3,5,-1,0,5,8,0,0,1,14,0),E(0,3,5,-1,0,6,10,0,0,1,18,0),E(0,4,5,-2,0,7,10,1,0,2,16,1),E(0,5,5,-3,0,8,10,1,0,3,14,2),E(0,5,6,-3,0,9,12,1,0,3,16,2),E(0,6,6,-3,0,10,14,1,0,4,18,3),E(0,6,7,-4,0,11,15,1,0,4,20,3),E(0,7,8,-4,0,12,17,2,0,5,22,4),E(0,7,8,-4,0,13,19,2,0,5,24,4),E(0,7,9,-4,0,14,21,2,0,5,26,4),E(0,8,9,-5,0,15,22,2,0,6,28,5),E(0,8,10,-5,0,16,24,2,0,6,30,5),E(0,8,11,-5,0,17,26,2,0,6,32,5),E(0,9,11,-5,0,18,28,2,0,7,34,6),E(0,9,12,-6,0,19,29,2,0,7,36,6),E(0,10,13,-6,0,20,31,3,0,8,38,7),E(0,10,13,-6,0,21,33,3,0,8,40,7),E(0,10,14,-6,0,22,35,3,0,8,42,7),E(0,11,14,-7,0,23,36,3,0,9,44,8),E(0,11,15,-7,0,24,38,3,0,9,46,8)],P={borderRadius:4},T=n(700);function A(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=Object(T.a)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,a=void 0===r?{}:r,l=e.palette,u=void 0===l?{}:l,f=e.spacing,d=e.typography,p=void 0===d?{}:d,h=Object(o.a)(e,["breakpoints","mixins","palette","spacing","typography"]),m=S(u),g=s(n),v=A(f),y=Object(i.a)({breakpoints:g,direction:"ltr",mixins:c(g,v,a),overrides:{},palette:m,props:{},shadows:M,typography:j(m,p),spacing:v,shape:P,transitions:R.a,zIndex:D.a},h),b=arguments.length,x=new Array(b>1?b-1:0),w=1;w>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?S(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?S(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=d.exec(e))?new C(t[1],t[2],t[3],1):(t=p.exec(e))?new C(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=h.exec(e))?S(t[1],t[2],t[3],t[4]):(t=m.exec(e))?S(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=g.exec(e))?P(t[1],t[2]/100,t[3]/100,1):(t=v.exec(e))?P(t[1],t[2]/100,t[3]/100,t[4]):y.hasOwnProperty(e)?O(y[e]):"transparent"===e?new C(NaN,NaN,NaN,0):null}function O(e){return new C(e>>16&255,e>>8&255,255&e,1)}function S(e,t,n,r){return r<=0&&(e=t=n=NaN),new C(e,t,n,r)}function k(e){return e instanceof i||(e=w(e)),e?new C((e=e.rgb()).r,e.g,e.b,e.opacity):new C}function _(e,t,n,r){return 1===arguments.length?k(e):new C(e,t,n,null==r?1:r)}function C(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function j(){return"#"+M(this.r)+M(this.g)+M(this.b)}function E(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function M(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function P(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new A(e,t,n,r)}function T(e){if(e instanceof A)return new A(e.h,e.s,e.l,e.opacity);if(e instanceof i||(e=w(e)),!e)return new A;if(e instanceof A)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),a=Math.max(t,n,r),l=NaN,s=a-o,c=(a+o)/2;return s?(l=t===a?(n-r)/s+6*(n0&&c<1?0:l,new A(l,s,c,e.opacity)}function A(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function R(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function D(e,t,n,r,o){var i=e*e,a=i*e;return((1-3*e+3*i-a)*t+(4-6*i+3*a)*n+(1+3*e+3*i-3*a)*r+a*o)/6}r(i,w,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:b,formatHex:b,formatHsl:function(){return T(this).formatHsl()},formatRgb:x,toString:x}),r(C,_,o(i,{brighter:function(e){return e=null==e?l:Math.pow(l,e),new C(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?a:Math.pow(a,e),new C(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:j,formatHex:j,formatRgb:E,toString:E})),r(A,(function(e,t,n,r){return 1===arguments.length?T(e):new A(e,t,n,null==r?1:r)}),o(i,{brighter:function(e){return e=null==e?l:Math.pow(l,e),new A(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?a:Math.pow(a,e),new A(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new C(R(e>=240?e-240:e+120,o,r),R(e,o,r),R(e<120?e+240:e-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var I=function(e){return function(){return e}};function N(e,t){return function(n){return e+n*t}}function L(e){return 1===(e=+e)?z:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):I(isNaN(t)?n:t)}}function z(e,t){var n=t-e;return n?N(e,n):I(isNaN(e)?t:e)}var F=function e(t){var n=L(t);function r(e,t){var r=n((e=_(e)).r,(t=_(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=z(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function W(e){return function(t){var n,r,o=t.length,i=new Array(o),a=new Array(o),l=new Array(o);for(n=0;n=1?(n=1,t-1):Math.floor(n*t),o=e[r],i=e[r+1],a=r>0?e[r-1]:2*o-i,l=ri&&(o=t.slice(i,o),l[a]?l[a]+=o:l[++a]=o),(n=n[0])===(r=r[0])?l[a]?l[a]+=r:l[++a]=r:(l[++a]=null,s.push({i:a,x:Object(G.a)(n,r)})),i=q.lastIndex;return i=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return B}));var r=n(20),o=n.n(r),i=n(92),a=n.n(i),l=n(21),s=n.n(l),c=n(30),u=n.n(c),f=n(1),d=n.n(f),p=n(25),h=n.n(p),m=n(86),g=n(129),v=n(28),y=n(18);function b(){return(b=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function S(e){var t=e.offset,n=e.layout,r=e.width,o=e.dataKey,i=e.data,a=e.dataPointFormatter,l=e.xAxis,s=e.yAxis,c=O(e,["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"]),u=Object(y.c)(c),f=i.map((function(e,i){var c=a(e,o),f=c.x,p=c.y,h=c.value,m=c.errorVal;if(!m)return null;var g,y,w=[];if(Array.isArray(m)){var O=x(m,2);g=O[0],y=O[1]}else g=y=m;if("vertical"===n){var S=l.scale,k=p+t,_=k+r,C=k-r,j=S(h-g),E=S(h+y);w.push({x1:E,y1:_,x2:E,y2:C}),w.push({x1:j,y1:k,x2:E,y2:k}),w.push({x1:j,y1:_,x2:j,y2:C})}else if("horizontal"===n){var M=s.scale,P=f+t,T=P-r,A=P+r,R=M(h-g),D=M(h+y);w.push({x1:T,y1:D,x2:A,y2:D}),w.push({x1:P,y1:R,x2:P,y2:D}),w.push({x1:T,y1:R,x2:A,y2:R})}return d.a.createElement(v.a,b({className:"recharts-errorBar",key:"bar-".concat(i)},u),w.map((function(e,t){return d.a.createElement("line",b({},e,{key:"line-".concat(t)}))})))}));return d.a.createElement(v.a,{className:"recharts-errorBars"},f)}S.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},S.displayName="ErrorBar";var k=n(202),_=n(144),C=n(11),j=n(34),E=n(72),M=n(22);function P(e){return(P="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function T(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function A(){return(A=Object.assign||function(e){for(var t=1;t0&&Math.abs(y)0&&Math.abs(g)2&&void 0!==arguments[2]?arguments[2]:{clone:!0},o=n.clone?Object(r.a)({},e):e;return i(e)&&i(t)&&Object.keys(t).forEach((function(r){"__proto__"!==r&&(i(t[r])&&r in e?o[r]=a(e[r],t[r],n):o[r]=t[r])})),o}},function(e,t,n){"use strict";var r=n(4),o=n(45),i=n(10),a=n(1),l=(n(9),n(165)),s=n(57),c=n(68),u=n(26);function f(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var d={entering:{opacity:1,transform:f(1)},entered:{opacity:1,transform:"none"}},p=a.forwardRef((function(e,t){var n=e.children,p=e.disableStrictModeCompat,h=void 0!==p&&p,m=e.in,g=e.onEnter,v=e.onEntered,y=e.onEntering,b=e.onExit,x=e.onExited,w=e.onExiting,O=e.style,S=e.timeout,k=void 0===S?"auto":S,_=e.TransitionComponent,C=void 0===_?l.a:_,j=Object(i.a)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),E=a.useRef(),M=a.useRef(),P=Object(s.a)(),T=P.unstable_strictMode&&!h,A=a.useRef(null),R=Object(u.a)(n.ref,t),D=Object(u.a)(T?A:void 0,R),I=function(e){return function(t,n){if(e){var r=T?[A.current,t]:[t,n],i=Object(o.a)(r,2),a=i[0],l=i[1];void 0===l?e(a):e(a,l)}}},N=I(y),L=I((function(e,t){Object(c.b)(e);var n,r=Object(c.a)({style:O,timeout:k},{mode:"enter"}),o=r.duration,i=r.delay;"auto"===k?(n=P.transitions.getAutoHeightDuration(e.clientHeight),M.current=n):n=o,e.style.transition=[P.transitions.create("opacity",{duration:n,delay:i}),P.transitions.create("transform",{duration:.666*n,delay:i})].join(","),g&&g(e,t)})),z=I(v),F=I(w),W=I((function(e){var t,n=Object(c.a)({style:O,timeout:k},{mode:"exit"}),r=n.duration,o=n.delay;"auto"===k?(t=P.transitions.getAutoHeightDuration(e.clientHeight),M.current=t):t=r,e.style.transition=[P.transitions.create("opacity",{duration:t,delay:o}),P.transitions.create("transform",{duration:.666*t,delay:o||.333*t})].join(","),e.style.opacity="0",e.style.transform=f(.75),b&&b(e)})),H=I(x);return a.useEffect((function(){return function(){clearTimeout(E.current)}}),[]),a.createElement(C,Object(r.a)({appear:!0,in:m,nodeRef:T?A:void 0,onEnter:L,onEntered:z,onEntering:N,onExit:W,onExited:H,onExiting:F,addEndListener:function(e,t){var n=T?e:t;"auto"===k&&(E.current=setTimeout(n,M.current||0))},timeout:"auto"===k?null:k},j),(function(e,t){return a.cloneElement(n,Object(r.a)({style:Object(r.a)({opacity:0,transform:f(.75),visibility:"exited"!==e||m?void 0:"hidden"},d[e],O,n.props.style),ref:D},t))}))}));p.muiSupportAuto=!0,t.a=p},function(e,t,n){"use strict";var r=n(4),o=n(45),i=n(10),a=n(1),l=(n(9),n(165)),s=n(58),c=n(57),u=n(68),f=n(26),d={entering:{opacity:1},entered:{opacity:1}},p={enter:s.b.enteringScreen,exit:s.b.leavingScreen},h=a.forwardRef((function(e,t){var n=e.children,s=e.disableStrictModeCompat,h=void 0!==s&&s,m=e.in,g=e.onEnter,v=e.onEntered,y=e.onEntering,b=e.onExit,x=e.onExited,w=e.onExiting,O=e.style,S=e.TransitionComponent,k=void 0===S?l.a:S,_=e.timeout,C=void 0===_?p:_,j=Object(i.a)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),E=Object(c.a)(),M=E.unstable_strictMode&&!h,P=a.useRef(null),T=Object(f.a)(n.ref,t),A=Object(f.a)(M?P:void 0,T),R=function(e){return function(t,n){if(e){var r=M?[P.current,t]:[t,n],i=Object(o.a)(r,2),a=i[0],l=i[1];void 0===l?e(a):e(a,l)}}},D=R(y),I=R((function(e,t){Object(u.b)(e);var n=Object(u.a)({style:O,timeout:C},{mode:"enter"});e.style.webkitTransition=E.transitions.create("opacity",n),e.style.transition=E.transitions.create("opacity",n),g&&g(e,t)})),N=R(v),L=R(w),z=R((function(e){var t=Object(u.a)({style:O,timeout:C},{mode:"exit"});e.style.webkitTransition=E.transitions.create("opacity",t),e.style.transition=E.transitions.create("opacity",t),b&&b(e)})),F=R(x);return a.createElement(k,Object(r.a)({appear:!0,in:m,nodeRef:M?P:void 0,onEnter:I,onEntered:N,onEntering:D,onExit:z,onExited:F,onExiting:L,timeout:C},j),(function(e,t){return a.cloneElement(n,Object(r.a)({style:Object(r.a)({opacity:0,visibility:"exited"!==e||m?void 0:"hidden"},d[e],O,n.props.style),ref:A},t))}))}));t.a=h},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return l}));var r=Math.sqrt(50),o=Math.sqrt(10),i=Math.sqrt(2);function a(e,t,n){var a=(t-e)/Math.max(0,n),l=Math.floor(Math.log(a)/Math.LN10),s=a/Math.pow(10,l);return l>=0?(s>=r?10:s>=o?5:s>=i?2:1)*Math.pow(10,l):-Math.pow(10,-l)/(s>=r?10:s>=o?5:s>=i?2:1)}function l(e,t,n){var a=Math.abs(t-e)/Math.max(0,n),l=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),s=a/l;return s>=r?l*=10:s>=o?l*=5:s>=i&&(l*=2),t0)return[e];if((r=t0){var c=Math.round(e/l),u=Math.round(t/l);for(c*lt&&--u,i=new Array(o=u-c+1);++st&&--d,i=new Array(o=d-f+1);++s3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4?arguments[4]:void 0,i=[t,n].concat(Object(v.a)(r)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===i.indexOf(e)&&-1===a.indexOf(e.tagName)&&x(e,o)}))}function S(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function k(e,t){var n,r=[],o=[],i=e.container;if(!t.disableScrollLock){if(function(e){var t=Object(c.a)(e);return t.body===e?Object(b.a)(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(i)){var a=Object(y.a)();r.push({value:i.style.paddingRight,key:"padding-right",el:i}),i.style["padding-right"]="".concat(w(i)+a,"px"),n=Object(c.a)(i).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){o.push(e.style.paddingRight),e.style.paddingRight="".concat(w(e)+a,"px")}))}var l=i.parentElement,s="HTML"===l.nodeName&&"scroll"===window.getComputedStyle(l)["overflow-y"]?l:i;r.push({value:s.style.overflow,key:"overflow",el:s}),s.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){o[t]?e.style.paddingRight=o[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var _=function(){function e(){Object(m.a)(this,e),this.modals=[],this.containers=[]}return Object(g.a)(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&x(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);O(t,e.mountNode,e.modalRef,r,!0);var o=S(this.containers,(function(e){return e.container===t}));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=S(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=k(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=S(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&x(e.modalRef,!0),O(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var o=r.modals[r.modals.length-1];o.modalRef&&x(o.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();var C=function(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,o=e.disableEnforceFocus,l=void 0!==o&&o,s=e.disableRestoreFocus,u=void 0!==s&&s,f=e.getDoc,p=e.isEnabled,h=e.open,m=i.useRef(),g=i.useRef(null),v=i.useRef(null),y=i.useRef(),b=i.useRef(null),x=i.useCallback((function(e){b.current=a.findDOMNode(e)}),[]),w=Object(d.a)(t.ref,x),O=i.useRef();return i.useEffect((function(){O.current=h}),[h]),!O.current&&h&&"undefined"!==typeof window&&(y.current=f().activeElement),i.useEffect((function(){if(h){var e=Object(c.a)(b.current);r||!b.current||b.current.contains(e.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex",-1),b.current.focus());var t=function(){null!==b.current&&(e.hasFocus()&&!l&&p()&&!m.current?b.current&&!b.current.contains(e.activeElement)&&b.current.focus():m.current=!1)},n=function(t){!l&&p()&&9===t.keyCode&&e.activeElement===b.current&&(m.current=!0,t.shiftKey?v.current.focus():g.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var o=setInterval((function(){t()}),50);return function(){clearInterval(o),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),u||(y.current&&y.current.focus&&y.current.focus(),y.current=null)}}}),[r,l,u,p,h]),i.createElement(i.Fragment,null,i.createElement("div",{tabIndex:0,ref:g,"data-test":"sentinelStart"}),i.cloneElement(t,{ref:w}),i.createElement("div",{tabIndex:0,ref:v,"data-test":"sentinelEnd"}))},j={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},E=i.forwardRef((function(e,t){var n=e.invisible,a=void 0!==n&&n,l=e.open,s=Object(r.a)(e,["invisible","open"]);return l?i.createElement("div",Object(o.a)({"aria-hidden":!0,ref:t},s,{style:Object(o.a)({},j.root,a?j.invisible:{},s.style)})):null}));var M=new _,P=i.forwardRef((function(e,t){var n=Object(l.a)(),m=Object(s.a)({name:"MuiModal",props:Object(o.a)({},e),theme:n}),g=m.BackdropComponent,v=void 0===g?E:g,y=m.BackdropProps,b=m.children,w=m.closeAfterTransition,O=void 0!==w&&w,S=m.container,k=m.disableAutoFocus,_=void 0!==k&&k,j=m.disableBackdropClick,P=void 0!==j&&j,T=m.disableEnforceFocus,A=void 0!==T&&T,R=m.disableEscapeKeyDown,D=void 0!==R&&R,I=m.disablePortal,N=void 0!==I&&I,L=m.disableRestoreFocus,z=void 0!==L&&L,F=m.disableScrollLock,W=void 0!==F&&F,H=m.hideBackdrop,B=void 0!==H&&H,V=m.keepMounted,U=void 0!==V&&V,G=m.manager,Y=void 0===G?M:G,$=m.onBackdropClick,q=m.onClose,K=m.onEscapeKeyDown,X=m.onRendered,Q=m.open,Z=Object(r.a)(m,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),J=i.useState(!0),ee=J[0],te=J[1],ne=i.useRef({}),re=i.useRef(null),oe=i.useRef(null),ie=Object(d.a)(oe,t),ae=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(m),le=function(){return Object(c.a)(re.current)},se=function(){return ne.current.modalRef=oe.current,ne.current.mountNode=re.current,ne.current},ce=function(){Y.mount(se(),{disableScrollLock:W}),oe.current.scrollTop=0},ue=Object(p.a)((function(){var e=function(e){return e="function"===typeof e?e():e,a.findDOMNode(e)}(S)||le().body;Y.add(se(),e),oe.current&&ce()})),fe=i.useCallback((function(){return Y.isTopModal(se())}),[Y]),de=Object(p.a)((function(e){re.current=e,e&&(X&&X(),Q&&fe()?ce():x(oe.current,!0))})),pe=i.useCallback((function(){Y.remove(se())}),[Y]);if(i.useEffect((function(){return function(){pe()}}),[pe]),i.useEffect((function(){Q?ue():ae&&O||pe()}),[Q,pe,ae,O,ue]),!U&&!Q&&(!ae||ee))return null;var he=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:h.a}),me={};return void 0===b.props.tabIndex&&(me.tabIndex=b.props.tabIndex||"-1"),ae&&(me.onEnter=Object(f.a)((function(){te(!1)}),b.props.onEnter),me.onExited=Object(f.a)((function(){te(!0),O&&pe()}),b.props.onExited)),i.createElement(u.a,{ref:de,container:S,disablePortal:N},i.createElement("div",Object(o.a)({ref:ie,onKeyDown:function(e){"Escape"===e.key&&fe()&&(K&&K(e),D||(e.stopPropagation(),q&&q(e,"escapeKeyDown")))},role:"presentation"},Z,{style:Object(o.a)({},he.root,!Q&&ee?he.hidden:{},Z.style)}),B?null:i.createElement(v,Object(o.a)({open:Q,onClick:function(e){e.target===e.currentTarget&&($&&$(e),!P&&q&&q(e,"backdropClick"))}},y)),i.createElement(C,{disableEnforceFocus:A,disableAutoFocus:_,disableRestoreFocus:z,getDoc:le,isEnabled:fe,open:Q},i.cloneElement(b,me))))}));t.a=P},function(e,t,n){"use strict";var r=n(10),o=n(4),i=n(366),a=n(1),l=(n(9),n(6)),s=n(84),c=n(95),u=n(14),f=n(19),d=n(26),p=n(74);function h(e,t){return parseInt(e[t],10)||0}var m="undefined"!==typeof window?a.useLayoutEffect:a.useEffect,g={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"},v=a.forwardRef((function(e,t){var n=e.onChange,i=e.rows,l=e.rowsMax,s=e.rowsMin,c=void 0===s?1:s,u=e.style,f=e.value,v=Object(r.a)(e,["onChange","rows","rowsMax","rowsMin","style","value"]),y=i||c,b=a.useRef(null!=f).current,x=a.useRef(null),w=Object(d.a)(t,x),O=a.useRef(null),S=a.useRef(0),k=a.useState({}),_=k[0],C=k[1],j=a.useCallback((function(){var t=x.current,n=window.getComputedStyle(t),r=O.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");var o=n["box-sizing"],i=h(n,"padding-bottom")+h(n,"padding-top"),a=h(n,"border-bottom-width")+h(n,"border-top-width"),s=r.scrollHeight-i;r.value="x";var c=r.scrollHeight-i,u=s;y&&(u=Math.max(Number(y)*c,u)),l&&(u=Math.min(Number(l)*c,u));var f=(u=Math.max(u,c))+("border-box"===o?i+a:0),d=Math.abs(u-s)<=1;C((function(e){return S.current<20&&(f>0&&Math.abs((e.outerHeightStyle||0)-f)>1||e.overflow!==d)?(S.current+=1,{overflow:d,outerHeightStyle:f}):e}))}),[l,y,e.placeholder]);a.useEffect((function(){var e=Object(p.a)((function(){S.current=0,j()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[j]),m((function(){j()})),a.useEffect((function(){S.current=0}),[f]);return a.createElement(a.Fragment,null,a.createElement("textarea",Object(o.a)({value:f,onChange:function(e){S.current=0,b||j(),n&&n(e)},ref:w,rows:y,style:Object(o.a)({height:_.outerHeightStyle,overflow:_.overflow?"hidden":null},u)},v)),a.createElement("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:O,tabIndex:-1,style:Object(o.a)({},g,u)}))})),y=n(126),b="undefined"===typeof window?a.useEffect:a.useLayoutEffect,x=a.forwardRef((function(e,t){var n=e["aria-describedby"],u=e.autoComplete,p=e.autoFocus,h=e.classes,m=e.className,g=(e.color,e.defaultValue),x=e.disabled,w=e.endAdornment,O=(e.error,e.fullWidth),S=void 0!==O&&O,k=e.id,_=e.inputComponent,C=void 0===_?"input":_,j=e.inputProps,E=void 0===j?{}:j,M=e.inputRef,P=(e.margin,e.multiline),T=void 0!==P&&P,A=e.name,R=e.onBlur,D=e.onChange,I=e.onClick,N=e.onFocus,L=e.onKeyDown,z=e.onKeyUp,F=e.placeholder,W=e.readOnly,H=e.renderSuffix,B=e.rows,V=e.rowsMax,U=e.rowsMin,G=e.startAdornment,Y=e.type,$=void 0===Y?"text":Y,q=e.value,K=Object(r.a)(e,["aria-describedby","autoComplete","autoFocus","classes","className","color","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","rowsMax","rowsMin","startAdornment","type","value"]),X=null!=E.value?E.value:q,Q=a.useRef(null!=X).current,Z=a.useRef(),J=a.useCallback((function(e){0}),[]),ee=Object(d.a)(E.ref,J),te=Object(d.a)(M,ee),ne=Object(d.a)(Z,te),re=a.useState(!1),oe=re[0],ie=re[1],ae=Object(c.b)();var le=Object(s.a)({props:e,muiFormControl:ae,states:["color","disabled","error","hiddenLabel","margin","required","filled"]});le.focused=ae?ae.focused:oe,a.useEffect((function(){!ae&&x&&oe&&(ie(!1),R&&R())}),[ae,x,oe,R]);var se=ae&&ae.onFilled,ce=ae&&ae.onEmpty,ue=a.useCallback((function(e){Object(y.b)(e)?se&&se():ce&&ce()}),[se,ce]);b((function(){Q&&ue({value:X})}),[X,ue,Q]);a.useEffect((function(){ue(Z.current)}),[]);var fe=C,de=Object(o.a)({},E,{ref:ne});"string"!==typeof fe?de=Object(o.a)({inputRef:ne,type:$},de,{ref:null}):T?!B||V||U?(de=Object(o.a)({rows:B,rowsMax:V},de),fe=v):fe="textarea":de=Object(o.a)({type:$},de);return a.useEffect((function(){ae&&ae.setAdornedStart(Boolean(G))}),[ae,G]),a.createElement("div",Object(o.a)({className:Object(l.a)(h.root,h["color".concat(Object(f.a)(le.color||"primary"))],m,le.disabled&&h.disabled,le.error&&h.error,S&&h.fullWidth,le.focused&&h.focused,ae&&h.formControl,T&&h.multiline,G&&h.adornedStart,w&&h.adornedEnd,"dense"===le.margin&&h.marginDense),onClick:function(e){Z.current&&e.currentTarget===e.target&&Z.current.focus(),I&&I(e)},ref:t},K),G,a.createElement(c.a.Provider,{value:null},a.createElement(fe,Object(o.a)({"aria-invalid":le.error,"aria-describedby":n,autoComplete:u,autoFocus:p,defaultValue:g,disabled:le.disabled,id:k,onAnimationStart:function(e){ue("mui-auto-fill-cancel"===e.animationName?Z.current:{value:"x"})},name:A,placeholder:F,readOnly:W,required:le.required,rows:B,value:X,onKeyDown:L,onKeyUp:z},de,{className:Object(l.a)(h.input,E.className,le.disabled&&h.disabled,T&&h.inputMultiline,le.hiddenLabel&&h.inputHiddenLabel,G&&h.inputAdornedStart,w&&h.inputAdornedEnd,"search"===$&&h.inputTypeSearch,"dense"===le.margin&&h.inputMarginDense),onBlur:function(e){R&&R(e),E.onBlur&&E.onBlur(e),ae&&ae.onBlur?ae.onBlur(e):ie(!1)},onChange:function(e){if(!Q){var t=e.target||Z.current;if(null==t)throw new Error(Object(i.a)(1));ue({value:t.value})}for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o