@careevolution/mydatahelps-ui 2.0.1 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +7 -7
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/container/AppDownload/AppDownload.d.ts +8 -0
- package/dist/cjs/types/components/container/AppDownload/AppDownload.stories.d.ts +8 -0
- package/dist/cjs/types/components/container/AppDownload/index.d.ts +1 -0
- package/dist/cjs/types/components/container/PlatformSpecificContent/PlatformSpecificContent.d.ts +1 -0
- package/dist/cjs/types/components/container/PlatformSpecificContent/PlatformSpecificContent.stories.d.ts +9 -0
- package/dist/cjs/types/helpers/Initialization.d.ts +3 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/container/AppDownload/AppDownload.d.ts +8 -0
- package/dist/esm/types/components/container/AppDownload/AppDownload.stories.d.ts +8 -0
- package/dist/esm/types/components/container/AppDownload/index.d.ts +1 -0
- package/dist/esm/types/components/container/PlatformSpecificContent/PlatformSpecificContent.d.ts +1 -0
- package/dist/esm/types/components/container/PlatformSpecificContent/PlatformSpecificContent.stories.d.ts +9 -0
- package/dist/esm/types/helpers/Initialization.d.ts +3 -0
- package/dist/index.d.ts +1 -0
- package/package.json +2 -2
package/dist/esm/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import e,{forwardRef as t,createElement as n,Fragment as r,createContext as i,us
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/"production"===process.env.NODE_ENV?cn.exports=function(){if(tn)return sn;tn=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,d=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,g=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case s:case l:case r:case o:case i:case f:return e;default:switch(e=e&&e.$$typeof){case c:case u:case h:case d:case a:return e;default:return p}}case n:return p}}}function x(e){return b(e)===l}return sn.AsyncMode=s,sn.ConcurrentMode=l,sn.ContextConsumer=c,sn.ContextProvider=a,sn.Element=t,sn.ForwardRef=u,sn.Fragment=r,sn.Lazy=h,sn.Memo=d,sn.Portal=n,sn.Profiler=o,sn.StrictMode=i,sn.Suspense=f,sn.isAsyncMode=function(e){return x(e)||b(e)===s},sn.isConcurrentMode=x,sn.isContextConsumer=function(e){return b(e)===c},sn.isContextProvider=function(e){return b(e)===a},sn.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},sn.isForwardRef=function(e){return b(e)===u},sn.isFragment=function(e){return b(e)===r},sn.isLazy=function(e){return b(e)===h},sn.isMemo=function(e){return b(e)===d},sn.isPortal=function(e){return b(e)===n},sn.isProfiler=function(e){return b(e)===o},sn.isStrictMode=function(e){return b(e)===i},sn.isSuspense=function(e){return b(e)===f},sn.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===l||e===o||e===i||e===f||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===d||e.$$typeof===a||e.$$typeof===c||e.$$typeof===u||e.$$typeof===y||e.$$typeof===v||e.$$typeof===g||e.$$typeof===m)},sn.typeOf=b,sn}():cn.exports=(ln||(ln=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,d=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,g=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:var m=e.type;switch(m){case s:case l:case r:case o:case i:case f:return m;default:var y=m&&m.$$typeof;switch(y){case c:case u:case h:case d:case a:return y;default:return p}}case n:return p}}}var x=s,w=l,k=c,E=a,S=t,_=u,O=r,A=h,C=d,T=n,P=o,D=i,j=f,M=!1;function N(e){return b(e)===l}un.AsyncMode=x,un.ConcurrentMode=w,un.ContextConsumer=k,un.ContextProvider=E,un.Element=S,un.ForwardRef=_,un.Fragment=O,un.Lazy=A,un.Memo=C,un.Portal=T,un.Profiler=P,un.StrictMode=D,un.Suspense=j,un.isAsyncMode=function(e){return M||(M=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),N(e)||b(e)===s},un.isConcurrentMode=N,un.isContextConsumer=function(e){return b(e)===c},un.isContextProvider=function(e){return b(e)===a},un.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},un.isForwardRef=function(e){return b(e)===u},un.isFragment=function(e){return b(e)===r},un.isLazy=function(e){return b(e)===h},un.isMemo=function(e){return b(e)===d},un.isPortal=function(e){return b(e)===n},un.isProfiler=function(e){return b(e)===o},un.isStrictMode=function(e){return b(e)===i},un.isSuspense=function(e){return b(e)===f},un.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===l||e===o||e===i||e===f||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===d||e.$$typeof===a||e.$$typeof===c||e.$$typeof===u||e.$$typeof===y||e.$$typeof===v||e.$$typeof===g||e.$$typeof===m)},un.typeOf=b}()),un);var fn=cn.exports,pn={};pn[fn.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},pn[fn.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var dn="undefined"!=typeof document;function hn(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var mn=function(e,t,n){!function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===dn&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)}(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i="",o=t;do{var a=e.insert(t===o?"."+r:"",o,e.sheet,!0);dn||void 0===a||(i+=a),o=o.next}while(void 0!==o);if(!dn&&0!==i.length)return i}};var yn={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},vn="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",gn="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",bn=/[A-Z]|^ms/g,xn=/_EMO_([^_]+?)_([^]*?)_EMO_/g,wn=function(e){return 45===e.charCodeAt(1)},kn=function(e){return null!=e&&"boolean"!=typeof e},En=Ht((function(e){return wn(e)?e:e.replace(bn,"-$&").toLowerCase()})),Sn=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(xn,(function(e,t,n){return Nn={name:t,styles:n,next:Nn},t}))}return 1===yn[e]||wn(e)||"number"!=typeof t||0===t?t:t+"px"};if("production"!==process.env.NODE_ENV){var _n=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,On=["normal","none","initial","inherit","unset"],An=Sn,Cn=/^-ms-/,Tn=/-(.)/g,Pn={};Sn=function(e,t){if("content"===e&&("string"!=typeof t||-1===On.indexOf(t)&&!_n.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0))))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var n=An(e,t);return""===n||wn(e)||-1===e.indexOf("-")||void 0!==Pn[e]||(Pn[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(Cn,"ms-").replace(Tn,(function(e,t){return t.toUpperCase()}))+"?")),n}}var Dn="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function jn(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles){if("production"!==process.env.NODE_ENV&&"NO_COMPONENT_SELECTOR"===n.toString())throw new Error(Dn);return n}switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Nn={name:n.name,styles:n.styles,next:Nn},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Nn={name:r.name,styles:r.styles,next:Nn},r=r.next;var i=n.styles+";";return"production"!==process.env.NODE_ENV&&void 0!==n.map&&(i+=n.map),i}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=jn(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":kn(a)&&(r+=En(o)+":"+Sn(o,a)+";");else{if("NO_COMPONENT_SELECTOR"===o&&"production"!==process.env.NODE_ENV)throw new Error(Dn);if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var c=jn(e,t,a);switch(o){case"animation":case"animationName":r+=En(o)+":"+c+";";break;default:"production"!==process.env.NODE_ENV&&"undefined"===o&&console.error(gn),r+=o+"{"+c+"}"}}else for(var s=0;s<a.length;s++)kn(a[s])&&(r+=En(o)+":"+Sn(o,a[s])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var o=Nn,a=n(e);return Nn=o,jn(e,t,a)}"production"!==process.env.NODE_ENV&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":if("production"!==process.env.NODE_ENV){var c=[],s=n.replace(xn,(function(e,t,n){var r="animation"+c.length;return c.push("const "+r+" = keyframes`"+n.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+r+"}"}));c.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(c,["`"+s+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+s+"`")}}if(null==t)return n;var l=t[n];return void 0!==l?l:n}var Mn,Nn,In=/label:\s*([^\s;\n{]+)\s*(;|$)/g;"production"!==process.env.NODE_ENV&&(Mn=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var Rn=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";Nn=void 0;var o,a=e[0];null==a||void 0===a.raw?(r=!1,i+=jn(n,t,a)):("production"!==process.env.NODE_ENV&&void 0===a[0]&&console.error(vn),i+=a[0]);for(var c=1;c<e.length;c++)i+=jn(n,t,e[c]),r&&("production"!==process.env.NODE_ENV&&void 0===a[c]&&console.error(vn),i+=a[c]);"production"!==process.env.NODE_ENV&&(i=i.replace(Mn,(function(e){return o=e,""}))),In.lastIndex=0;for(var s,l="";null!==(s=In.exec(i));)l+="-"+s[1];var u=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return"production"!==process.env.NODE_ENV?{name:u,styles:i,map:o,next:Nn,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:u,styles:i,next:Nn}},Ln="undefined"!=typeof document,Fn={}.hasOwnProperty,zn=i("undefined"!=typeof HTMLElement?an({key:"css"}):null);"production"!==process.env.NODE_ENV&&(zn.displayName="EmotionCacheContext"),zn.Provider;var Bn=function(e){return t((function(t,n){var r=o(zn);return e(t,r,n)}))};Ln||(Bn=function(e){return function(t){var r=o(zn);return null===r?(r=an({key:"css"}),n(zn.Provider,{value:r},e(t,r))):e(t,r)}});var qn=i({});"production"!==process.env.NODE_ENV&&(qn.displayName="EmotionThemeContext");var Hn="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Vn="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Un=function(){return null},Wn=Bn((function(e,t,i){var a=e.css;"string"==typeof a&&void 0!==t.registered[a]&&(a=t.registered[a]);var c=e[Hn],s=[a],l="";"string"==typeof e.className?l=hn(t.registered,s,e.className):null!=e.className&&(l=e.className+" ");var u=Rn(s,void 0,o(qn));if("production"!==process.env.NODE_ENV&&-1===u.name.indexOf("-")){var f=e[Vn];f&&(u=Rn([u,"label:"+f+";"]))}var p=mn(t,u,"string"==typeof c);l+=t.key+"-"+u.name;var d={};for(var h in e)!Fn.call(e,h)||"css"===h||h===Hn||"production"!==process.env.NODE_ENV&&h===Vn||(d[h]=e[h]);d.ref=i,d.className=l;var m=n(c,d),y=n(Un,null);if(!Ln&&void 0!==p){for(var v,g=u.name,b=u.next;void 0!==b;)g+=" "+b.name,b=b.next;y=n("style",((v={})["data-emotion"]=t.key+" "+g,v.dangerouslySetInnerHTML={__html:p},v.nonce=t.sheet.nonce,v))}return n(r,null,y,m)}));"production"!==process.env.NODE_ENV&&(Wn.displayName="EmotionCssPropInternal");var $n={exports:{}};!function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}($n);var Gn=!1,Yn=Bn((function(e,t){"production"===process.env.NODE_ENV||Gn||!e.className&&!e.css||(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),Gn=!0);var r=e.styles,i=Rn([r],void 0,o(qn));if(!Ln){for(var s,l=i.name,u=i.styles,f=i.next;void 0!==f;)l+=" "+f.name,u+=f.styles,f=f.next;var p=!0===t.compat,d=t.insert("",{name:l,styles:u},t.sheet,p);return p?null:n("style",((s={})["data-emotion"]=t.key+"-global "+l,s.dangerouslySetInnerHTML={__html:d},s.nonce=t.sheet.nonce,s))}var h=a();return c((function(){var e=t.key+"-global",n=new zt({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),r=!1,o=document.querySelector('style[data-emotion="'+e+" "+i.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==o&&(r=!0,o.setAttribute("data-emotion",e),n.hydrate([o])),h.current=[n,r],function(){n.flush()}}),[t]),c((function(){var e=h.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==i.next&&mn(t,i.next,!0),n.tags.length){var r=n.tags[n.tags.length-1].nextElementSibling;n.before=r,n.flush()}t.insert("",i,n,!1)}}),[t,i.name]),null}));function Xn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Rn(t)}"production"!==process.env.NODE_ENV&&(Yn.displayName="EmotionGlobal");var Zn=function e(t){for(var n=t.length,r=0,i="";r<n;r++){var o=t[r];if(null!=o){var a=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))a=e(o);else for(var c in"production"!==process.env.NODE_ENV&&void 0!==o.styles&&void 0!==o.name&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),a="",o)o[c]&&c&&(a&&(a+=" "),a+=c);break;default:a=o}a&&(i&&(i+=" "),i+=a)}}return i};var Kn=function(){return null},Jn=Bn((function(e,t){var i="",a="",c=!1,s=function(){if(c&&"production"!==process.env.NODE_ENV)throw new Error("css can only be used during render");for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=Rn(n,t.registered);if(Ln)mn(t,o,!1);else{var s=mn(t,o,!1);void 0!==s&&(i+=s)}return Ln||(a+=" "+o.name),t.key+"-"+o.name},l={css:s,cx:function(){if(c&&"production"!==process.env.NODE_ENV)throw new Error("cx can only be used during render");for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return function(e,t,n){var r=[],i=hn(e,r,n);return r.length<2?n:i+t(r)}(t.registered,s,Zn(n))},theme:o(qn)},u=e.children(l);c=!0;var f,p=n(Kn,null);Ln||0===i.length||(p=n("style",((f={})["data-emotion"]=t.key+" "+a.substring(1),f.dangerouslySetInnerHTML={__html:i},f.nonce=t.sheet.nonce,f)));return n(r,null,p,u)}));if("production"!==process.env.NODE_ENV&&(Jn.displayName="EmotionClassNames"),"production"!==process.env.NODE_ENV){var Qn="undefined"!=typeof document,er="undefined"!=typeof jest;if(Qn&&!er){var tr="undefined"!=typeof globalThis?globalThis:Qn?window:global,nr="__EMOTION_REACT_"+"11.7.1".split(".")[0]+"__";tr[nr]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),tr[nr]=!0}}k(".mdhui-layout {\n padding-bottom: env(safe-area-inset-bottom);\n color: var(--mdhui-text-color-1);\n}");var rr,ir,or,ar,cr,sr=Xn(rr||(rr=Ft(["\n:root {\n --mdhui-color-primary: #5381c3;\n --mdhui-color-success: #00AE42;\n --mdhui-color-warning: #FF671D;\n --mdhui-color-danger: #eb5546;\n --mdhui-fadein-animation: fadein 1s;\n}\n\n@media (prefers-reduced-motion) {\n --mdhui-fadein-animation: none;\n}\n\n@keyframes fadein {\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n}\n\n@-moz-keyframes fadein {\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n}\n\n@-webkit-keyframes fadein {\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n}"],["\n:root {\n --mdhui-color-primary: #5381c3;\n --mdhui-color-success: #00AE42;\n --mdhui-color-warning: #FF671D;\n --mdhui-color-danger: #eb5546;\n --mdhui-fadein-animation: fadein 1s;\n}\n\n@media (prefers-reduced-motion) {\n --mdhui-fadein-animation: none;\n}\n\n@keyframes fadein {\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n}\n\n@-moz-keyframes fadein {\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n}\n\n@-webkit-keyframes fadein {\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n}"]))),lr=Xn(ir||(ir=Ft(["\n:root {\n --mdhui-background-color-0: #fff;\n --mdhui-background-color-1: #f5f5f5;\n --mdhui-background-color-2: #ddd;\n\n --mdhui-border-color-0: #eee;\n --mdhui-border-color-1: #ddd;\n --mdhui-border-color-2: #bbb;\n\n --mdhui-text-color-0: #000;\n --mdhui-text-color-1: #333;\n --mdhui-text-color-2: #555;\n --mdhui-text-color-3: #999;\n --mdhui-text-color-4: #bbb;\n\n --mdhui-box-shadow-color-0: #ddd;\n --mdhui-box-shadow-color-1: #aaa;\n\n --mdhui-box-shadow-0: 0px 9px 9px 0px var(--mdhui-box-shadow-color-0);\n --mdhui-box-shadow-1: 0px 0px 5px 0px var(--mdhui-box-shadow-color-1);\n\n --mdhui-overlay-gradient:linear-gradient(to left, rgba(255, 255, 255, 0) 0%, rgba(255, 244, 240, 0.2) 100%);\n}\n"],["\n:root {\n --mdhui-background-color-0: #fff;\n --mdhui-background-color-1: #f5f5f5;\n --mdhui-background-color-2: #ddd;\n\n --mdhui-border-color-0: #eee;\n --mdhui-border-color-1: #ddd;\n --mdhui-border-color-2: #bbb;\n\n --mdhui-text-color-0: #000;\n --mdhui-text-color-1: #333;\n --mdhui-text-color-2: #555;\n --mdhui-text-color-3: #999;\n --mdhui-text-color-4: #bbb;\n\n --mdhui-box-shadow-color-0: #ddd;\n --mdhui-box-shadow-color-1: #aaa;\n\n --mdhui-box-shadow-0: 0px 9px 9px 0px var(--mdhui-box-shadow-color-0);\n --mdhui-box-shadow-1: 0px 0px 5px 0px var(--mdhui-box-shadow-color-1);\n\n --mdhui-overlay-gradient:linear-gradient(to left, rgba(255, 255, 255, 0) 0%, rgba(255, 244, 240, 0.2) 100%);\n}\n"]))),ur=Xn(or||(or=Ft(["\n:root {\n --mdhui-background-color-0: #2c2c2d;\n --mdhui-background-color-1: #1c1c1d;\n --mdhui-background-color-2: #000;\n\n --mdhui-border-color-0: #444446;\n --mdhui-border-color-1: #444;\n --mdhui-border-color-2: #555;\n\n --mdhui-text-color-0: #FFF;\n --mdhui-text-color-1: #FFF;\n --mdhui-text-color-2: #9e9ea5;\n --mdhui-text-color-3: #59595d;\n --mdhui-text-color-4: #59595d;\n\n --mdhui-box-shadow-color-0: #333;\n --mdhui-box-shadow-color-1: #666;\n \n --mdhui-box-shadow-0: 0px 0px 1px 1px var(--mdhui-border-color-0);\n --mdhui-box-shadow-1: 0px 0px 1px 1px var(--mdhui-border-color-0);\n\n --mdhui-overlay-gradient:linear-gradient(to left, rgba(0, 0, 0, 0) 0%, rgba(0, 11, 15, 0.2) 100%) !important;\n}"],["\n:root {\n --mdhui-background-color-0: #2c2c2d;\n --mdhui-background-color-1: #1c1c1d;\n --mdhui-background-color-2: #000;\n\n --mdhui-border-color-0: #444446;\n --mdhui-border-color-1: #444;\n --mdhui-border-color-2: #555;\n\n --mdhui-text-color-0: #FFF;\n --mdhui-text-color-1: #FFF;\n --mdhui-text-color-2: #9e9ea5;\n --mdhui-text-color-3: #59595d;\n --mdhui-text-color-4: #59595d;\n\n --mdhui-box-shadow-color-0: #333;\n --mdhui-box-shadow-color-1: #666;\n \n --mdhui-box-shadow-0: 0px 0px 1px 1px var(--mdhui-border-color-0);\n --mdhui-box-shadow-1: 0px 0px 1px 1px var(--mdhui-border-color-0);\n\n --mdhui-overlay-gradient:linear-gradient(to left, rgba(0, 0, 0, 0) 0%, rgba(0, 11, 15, 0.2) 100%) !important;\n}"]))),fr=Xn(ar||(ar=Ft(["\na {\n color: var(--mdhui-color-primary);\n}\n\nhtml {\n font-size: 17px;\n}\n\n@supports (font: -apple-system-body) {\n html {\n font: -apple-system-body !important;\n }\n}\n\nbody {\n padding: 0;\n margin: 0;\n font-family: ui-rounded, -apple-system, Helvetica, Arial, sans-serif;\n background: var(--mdhui-background-color-1);\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}"],["\na {\n color: var(--mdhui-color-primary);\n}\n\nhtml {\n font-size: 17px;\n}\n\n@supports (font: -apple-system-body) {\n html {\n font: -apple-system-body !important;\n }\n}\n\nbody {\n padding: 0;\n margin: 0;\n font-family: ui-rounded, -apple-system, Helvetica, Arial, sans-serif;\n background: var(--mdhui-background-color-1);\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}"]))),pr=i({colorScheme:"light",bodyBackgroundColor:"var(--mdhui-background-color-1)"});function dr(t){var n="mdhui-layout";t.className&&(n+=" "+t.className),t.bodyBackgroundColor?document.body.style.backgroundColor=t.bodyBackgroundColor:document.body.style.removeProperty("background-color"),t.statusBarStyle&&b.setStatusBarStyle(t.statusBarStyle);var r="light";"auto"===t.colorScheme&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?r="dark":"dark"!==t.colorScheme&&"light"!==t.colorScheme||(r=t.colorScheme);var i={colorScheme:r,bodyBackgroundColor:t.bodyBackgroundColor||"var(--mdhui-background-color-1)"};return e.createElement(pr.Provider,{value:i},e.createElement(Yn,{styles:sr}),t.primaryColor&&e.createElement(Yn,{styles:Xn(cr||(cr=Ft(["\n\t\t\t\t:root {\n\t\t\t\t\t--mdhui-color-primary: ",";\n\t\t\t\t}"],["\n\t\t\t\t:root {\n\t\t\t\t\t--mdhui-color-primary: ",";\n\t\t\t\t}"])),t.primaryColor)}),"dark"==i.colorScheme&&e.createElement(Yn,{styles:ur}),"light"==i.colorScheme&&e.createElement(Yn,{styles:lr}),!t.noGlobalStyles&&e.createElement(Yn,{styles:fr}),e.createElement("div",{className:n},t.stylesheetPath&&e.createElement("link",{rel:"stylesheet",type:"text/css",href:t.stylesheetPath}),t.children))}function hr(t){var n={};"dark"!=o(pr).colorScheme||t.selected||(n.filter="invert(1)");var r="mdhui-face";function i(){return 1==t.faceValue?"data:image/svg+xml,%3c%3fxml version='1.0' encoding='iso-8859-1'%3f%3e%3c!-- Generator: Adobe Illustrator 19.0.0%2c SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3e%3csvg version='1.1' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 368 368' style='enable-background:new 0 0 368 368%3b' xml:space='preserve'%3e%3cg%3e %3cg%3e %3cg%3e %3cpath d='M184%2c224c-29.824%2c0-58.232%2c12.632-77.96%2c34.664c-2.944%2c3.296-2.664%2c8.344%2c0.624%2c11.296c1.52%2c1.368%2c3.432%2c2.04%2c5.336%2c2.04 c2.192%2c0%2c4.384-0.896%2c5.96-2.664C134.656%2c250.688%2c158.728%2c240%2c184%2c240c25.28%2c0%2c49.352%2c10.688%2c66.04%2c29.336 c2.944%2c3.296%2c8.008%2c3.568%2c11.296%2c0.624c3.288-2.944%2c3.568-8%2c0.624-11.296C242.24%2c236.64%2c213.832%2c224%2c184%2c224z'/%3e %3cpath d='M184%2c0C82.536%2c0%2c0%2c82.544%2c0%2c184s82.536%2c184%2c184%2c184s184-82.544%2c184-184S285.464%2c0%2c184%2c0z M184%2c352 c-92.632%2c0-168-75.36-168-168S91.368%2c16%2c184%2c16s168%2c75.36%2c168%2c168S276.632%2c352%2c184%2c352z'/%3e %3cpath d='M280%2c128c-4.424%2c0-8%2c3.584-8%2c8c0%2c13.232-10.768%2c24-24%2c24s-24-10.768-24-24c0-4.416-3.576-8-8-8s-8%2c3.584-8%2c8 c0%2c22.056%2c17.944%2c40%2c40%2c40c22.056%2c0%2c40-17.944%2c40-40C288%2c131.584%2c284.424%2c128%2c280%2c128z'/%3e %3cpath d='M160%2c136c0-4.416-3.576-8-8-8s-8%2c3.584-8%2c8c0%2c13.232-10.768%2c24-24%2c24s-24-10.768-24-24c0-4.416-3.576-8-8-8s-8%2c3.584-8%2c8 c0%2c22.056%2c17.944%2c40%2c40%2c40C142.056%2c176%2c160%2c158.056%2c160%2c136z'/%3e %3c/g%3e %3c/g%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3c/svg%3e":2==t.faceValue?"data:image/svg+xml,%3c%3fxml version='1.0' encoding='iso-8859-1'%3f%3e%3c!-- Generator: Adobe Illustrator 19.0.0%2c SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3e%3csvg version='1.1' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 368 368' style='enable-background:new 0 0 368 368%3b' xml:space='preserve'%3e%3cg%3e %3cg%3e %3cg%3e %3cpath d='M184%2c0C82.544%2c0%2c0%2c82.544%2c0%2c184s82.544%2c184%2c184%2c184c101.464%2c0%2c184-82.544%2c184-184S285.464%2c0%2c184%2c0z M184%2c352 c-92.64%2c0-168-75.36-168-168S91.36%2c16%2c184%2c16c92.632%2c0%2c168%2c75.36%2c168%2c168S276.632%2c352%2c184%2c352z'/%3e %3cpath d='M144%2c152c0-13.232-10.768-24-24-24s-24%2c10.768-24%2c24s10.768%2c24%2c24%2c24S144%2c165.232%2c144%2c152z M112%2c152c0-4.408%2c3.592-8%2c8-8 s8%2c3.592%2c8%2c8s-3.592%2c8-8%2c8S112%2c156.408%2c112%2c152z'/%3e %3cpath d='M248%2c128c-13.232%2c0-24%2c10.768-24%2c24s10.768%2c24%2c24%2c24s24-10.768%2c24-24S261.232%2c128%2c248%2c128z M248%2c160 c-4.416%2c0-8-3.592-8-8s3.584-8%2c8-8c4.416%2c0%2c8%2c3.592%2c8%2c8S252.416%2c160%2c248%2c160z'/%3e %3cpath d='M184%2c224c-29.824%2c0-58.24%2c12.632-77.96%2c34.664c-2.944%2c3.296-2.664%2c8.352%2c0.624%2c11.296 c3.296%2c2.952%2c8.352%2c2.664%2c11.296-0.624C134.648%2c250.688%2c158.72%2c240%2c184%2c240c25.28%2c0%2c49.352%2c10.688%2c66.04%2c29.336 c1.576%2c1.768%2c3.768%2c2.664%2c5.96%2c2.664c1.896%2c0%2c3.816-0.672%2c5.336-2.04c3.288-2.944%2c3.568-8%2c0.624-11.296 C242.24%2c236.64%2c213.832%2c224%2c184%2c224z'/%3e %3c/g%3e %3c/g%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3c/svg%3e":3==t.faceValue?"data:image/svg+xml,%3c%3fxml version='1.0' encoding='iso-8859-1'%3f%3e%3c!-- Generator: Adobe Illustrator 19.0.0%2c SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3e%3csvg version='1.1' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 368 368' style='enable-background:new 0 0 368 368%3b' xml:space='preserve'%3e%3cg%3e %3cg%3e %3cg%3e %3cpath d='M184%2c0C82.544%2c0%2c0%2c82.544%2c0%2c184s82.544%2c184%2c184%2c184s184-82.544%2c184-184S285.456%2c0%2c184%2c0z M184%2c352 c-92.64%2c0-168-75.36-168-168S91.36%2c16%2c184%2c16s168%2c75.36%2c168%2c168S276.64%2c352%2c184%2c352z'/%3e %3cpath d='M120%2c176c13.232%2c0%2c24-10.768%2c24-24s-10.768-24-24-24s-24%2c10.768-24%2c24S106.768%2c176%2c120%2c176z M120%2c144 c4.408%2c0%2c8%2c3.592%2c8%2c8s-3.592%2c8-8%2c8s-8-3.592-8-8S115.592%2c144%2c120%2c144z'/%3e %3cpath d='M248%2c128c-13.232%2c0-24%2c10.768-24%2c24s10.768%2c24%2c24%2c24s24-10.768%2c24-24S261.232%2c128%2c248%2c128z M248%2c160 c-4.408%2c0-8-3.592-8-8s3.592-8%2c8-8c4.408%2c0%2c8%2c3.592%2c8%2c8S252.408%2c160%2c248%2c160z'/%3e %3cpath d='M264%2c224H104c-4.416%2c0-8%2c3.584-8%2c8c0%2c4.416%2c3.584%2c8%2c8%2c8h160c4.416%2c0%2c8-3.584%2c8-8C272%2c227.584%2c268.416%2c224%2c264%2c224z'/%3e %3c/g%3e %3c/g%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3c/svg%3e":4==t.faceValue?"data:image/svg+xml,%3c%3fxml version='1.0' encoding='iso-8859-1'%3f%3e%3c!-- Generator: Adobe Illustrator 19.0.0%2c SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3e%3csvg version='1.1' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 368 368' style='enable-background:new 0 0 368 368%3b' xml:space='preserve'%3e%3cg%3e %3cg%3e %3cg%3e %3cpath d='M184%2c0C82.544%2c0%2c0%2c82.544%2c0%2c184s82.544%2c184%2c184%2c184s184-82.544%2c184-184S285.456%2c0%2c184%2c0z M184%2c352 c-92.64%2c0-168-75.36-168-168S91.36%2c16%2c184%2c16s168%2c75.36%2c168%2c168S276.64%2c352%2c184%2c352z'/%3e %3cpath d='M144%2c152c0-13.232-10.768-24-24-24s-24%2c10.768-24%2c24s10.768%2c24%2c24%2c24S144%2c165.232%2c144%2c152z M112%2c152c0-4.408%2c3.592-8%2c8-8 s8%2c3.592%2c8%2c8s-3.592%2c8-8%2c8S112%2c156.408%2c112%2c152z'/%3e %3cpath d='M248%2c128c-13.232%2c0-24%2c10.768-24%2c24s10.768%2c24%2c24%2c24s24-10.768%2c24-24S261.232%2c128%2c248%2c128z M248%2c160 c-4.408%2c0-8-3.592-8-8s3.592-8%2c8-8c4.408%2c0%2c8%2c3.592%2c8%2c8S252.408%2c160%2c248%2c160z'/%3e %3cpath d='M261.336%2c226.04c-3.296-2.952-8.36-2.664-11.296%2c0.624C233.352%2c245.312%2c209.288%2c256%2c184%2c256 c-25.28%2c0-49.352-10.688-66.04-29.336c-2.952-3.288-8-3.576-11.296-0.624c-3.296%2c2.944-3.568%2c8-0.624%2c11.296 C125.76%2c259.368%2c154.176%2c272%2c184%2c272c29.832%2c0%2c58.248-12.64%2c77.96-34.664C264.904%2c234.04%2c264.624%2c228.984%2c261.336%2c226.04z'/%3e %3c/g%3e %3c/g%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3c/svg%3e":5==t.faceValue?"data:image/svg+xml,%3c%3fxml version='1.0' encoding='iso-8859-1'%3f%3e%3c!-- Generator: Adobe Illustrator 19.0.0%2c SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3e%3csvg version='1.1' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 368 368' style='enable-background:new 0 0 368 368%3b' xml:space='preserve'%3e%3cg%3e %3cg%3e %3cg%3e %3cpath d='M261.336%2c226.04c-3.296-2.952-8.36-2.664-11.296%2c0.624C233.352%2c245.312%2c209.288%2c256%2c184%2c256 c-25.28%2c0-49.352-10.688-66.04-29.336c-2.952-3.288-8-3.576-11.296-0.624c-3.296%2c2.944-3.568%2c8-0.624%2c11.296 C125.76%2c259.368%2c154.176%2c272%2c184%2c272c29.832%2c0%2c58.248-12.64%2c77.96-34.664C264.904%2c234.04%2c264.624%2c228.984%2c261.336%2c226.04z'/%3e %3cpath d='M184%2c0C82.544%2c0%2c0%2c82.544%2c0%2c184s82.544%2c184%2c184%2c184s184-82.544%2c184-184S285.456%2c0%2c184%2c0z M184%2c352 c-92.64%2c0-168-75.36-168-168S91.36%2c16%2c184%2c16s168%2c75.36%2c168%2c168S276.64%2c352%2c184%2c352z'/%3e %3cpath d='M248%2c128c-22.056%2c0-40%2c17.944-40%2c40c0%2c4.416%2c3.584%2c8%2c8%2c8c4.416%2c0%2c8-3.584%2c8-8c0-13.232%2c10.768-24%2c24-24s24%2c10.768%2c24%2c24 c0%2c4.416%2c3.584%2c8%2c8%2c8c4.416%2c0%2c8-3.584%2c8-8C288%2c145.944%2c270.056%2c128%2c248%2c128z'/%3e %3cpath d='M144%2c168c0%2c4.416%2c3.584%2c8%2c8%2c8s8-3.584%2c8-8c0-22.056-17.944-40-40-40c-22.056%2c0-40%2c17.944-40%2c40c0%2c4.416%2c3.584%2c8%2c8%2c8 s8-3.584%2c8-8c0-13.232%2c10.768-24%2c24-24S144%2c154.768%2c144%2c168z'/%3e %3c/g%3e %3c/g%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3c/svg%3e":void 0}return t.selected&&(r+=" mdhui-face-selected"),t.className&&(r+=" "+t.className),t.onClick?e.createElement(E,{className:r,onClick:t.onClick},e.createElement("img",{src:i(),style:n}),e.createElement(mr,null)):e.createElement("div",{className:r},e.createElement("img",{src:i(),style:n}),e.createElement(mr,null))}function mr(){return e.createElement("div",{className:"mdhui-shiny-overlay"})}k(".mdhui-shiny-overlay\n{\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n top: 0;\n background: var(--mdhui-overlay-gradient);\n pointer-events: none;\n}\n");function yr(t){var n=0;t.entries.forEach((function(e){e.value>n&&(n=e.value)}));var r=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}([],t.entries,!0).sort((function(e,t){return t.value-e.value||(e.label>t.label?1:t.label>e.label?-1:0)}));return e.createElement("div",{className:"mdhui-histogram "+(t.className||"")},r.map((function(t,r){return e.createElement("div",{className:"mdhui-histogram-entry"+(t.onSelect?" mdhui-histogram-entry-clickable":""),key:r,onClick:function(){var e;return null===(e=t.onSelect)||void 0===e?void 0:e.call(t)}},e.createElement("div",{className:"mdhui-histogram-entry-bar-wrapper"},e.createElement("div",{className:"mdhui-histogram-entry-bar",style:{background:t.color,width:t.value/n*100+"%"}},e.createElement(mr,null)),e.createElement("div",{className:"mdhui-histogram-entry-value",style:{width:8*n.toString().length+"px"}},t.value)),e.createElement("div",{className:"mdhui-histogram-entry-label"},t.label))})))}k(".mdhui-histogram\n{\n padding: 16px;\n}\n\n .mdhui-histogram .mdhui-histogram-entry\n {\n padding-top: 8px;\n font-size: 15px;\n }\n\n .mdhui-histogram .mdhui-histogram-entry.mdhui-histogram-entry-clickable\n {\n cursor: pointer;\n }\n\n .mdhui-histogram .mdhui-histogram-entry.mdhui-histogram-entry-clickable .mdhui-histogram-entry-label\n {\n text-decoration: underline;\n color: var(--mdhui-color-primary);\n }\n\n .mdhui-histogram .mdhui-histogram-entry-bar-wrapper\n {\n display: flex;\n }\n\n .mdhui-histogram .mdhui-histogram-entry-bar\n {\n position: relative;\n height: 16px;\n border-radius: 8px;\n }\n\n .mdhui-histogram .mdhui-histogram-entry-value\n {\n padding-left: 4px;\n line-height: 16px;\n font-size: 12px;\n font-weight: bold;\n }\n");k(".mdhui-navigation-bar {\n text-align: left;\n padding: 16px;\n padding-top: calc(56px + env(safe-area-inset-top, 0px));\n box-sizing: border-box;\n padding-bottom: 16px;\n position: -webkit-sticky;\n position: sticky;\n z-index: 2;\n top: 0;\n font-weight: bold;\n background: var(--mdhui-background-color-1);\n line-height: 1.2em;\n}\n\n.mdhui-navigation-bar .title {\n font-size: 1.2em;\n}\n\n.mdhui-navigation-bar.scroll-shadow {\n box-shadow: var(--mdhui-box-shadow-1);\n}\n\n.mdhui-navigation-bar .icon {\n width: 32px;\n vertical-align: middle;\n}\n\n.mdhui-navigation-bar .close-button {\n position: absolute;\n right: 16px;\n top: calc(16px + env(safe-area-inset-top, 0px));\n font-weight: normal;\n font-size: .88em;\n text-decoration: none;\n cursor: pointer;\n}\n\n.mdhui-navigation-bar .back-button {\n position: absolute;\n left: 16px;\n top: calc(16px + env(safe-area-inset-top, 0px));\n font-weight: normal;\n font-size: .88em;\n text-decoration: none;\n cursor: pointer;\n}\n\n.mdhui-navigation-bar.mdhui-navigation-bar-compressed {\n text-align: center;\n padding-top: calc(16px + env(safe-area-inset-top, 0px));\n font-size: 18px;\n\n}");var vr={back:"Back",close:"Close","connect-ehr-title-prefix":"Connect ","connect-ehr-title-divider":" or ","connect-ehr-title-providers":"Provider","connect-ehr-title-health-plans":"Health Plan","connect-ehr-connected":"We are receiving your EHR data!","connect-ehr-needs-attention":"One of your accounts requires attention.","connect-ehr-text":"Your electronic health records are an important source of information. They could help researchers make new discoveries. Connect your provider or health plan (ex: Medicare) with @@PROJECT_NAME@@.","connect-ehr-text-connected":"Thank you for sharing your EHR data with @@PROJECT_NAME@@. Connect another provider to share more data or manage your EHR connections.","connect-ehr-not-enabled":"EHR linking is not enabled for this project.","search-for-provider":"Search for Provider or Health Plan",reconnect:"Connection expired. Please reconnect.",connected:"Connected",search:"Search","connect-fitbit-intro":"You can share data from your Fitbit account if you have one. To begin, click or tap below to log in with your Fitbit credentials.","connect-fitbit-button":"Connect Fitbit","received-fitbit-data":"We are receiving your Fitbit data!","connect-garmin-intro":"You can share data from your Garmin account if you have one. To begin, click or tap below to log in with your Garmin credentials.","connect-garmin-button":"Connect Garmin","received-garmin-data":"We are receiving your Garmin data!","downloading-data":"Downloading data...","all-tasks-complete":"All Tasks Complete!","view-all":"View All",tasks:"Tasks","incomplete-tasks":"Incomplete Tasks","completed-tasks":"Completed Tasks",overdue:"Overdue","due-today":"Due Today","due-tomorrow":"Due Tomorrow",due:"Due","due-in":"Due in",days:"days",notifications:"Notifications",support:"Support","all-notifications":"All Notifications",steps:"Steps","resting-heart-rate":"Resting Heart Rate","distance-traveled":"Distance Traveled","google-fit-share":"Tap to share fitness data",devices:"Devices","last-sync":"Last synced",completed:"Completed","ehr-intro":"Your electronic health records (EHR) are an important source of information. If you help us gather your EHR, researchers will use this data to make discoveries.","external-accounts-title-divider":" / ","external-accounts-title-providers":"Providers","external-accounts-title-health-plans":"Health Plans","external-accounts-title-devices":"Devices","external-accounts-error":"One of your accounts requires attention","external-accounts-loading":"Your data is currently being downloaded from your linked health plans and providers. Please check back in a few moments to view your data.","external-account-authorization-expired":"Authorization expired","external-account-fetching-data":"Retrieving data...","external-account-deleting":"Removing...","external-account-last-updated":"Last updated","external-account-error":"Unexpected error","external-account-reconnect":"Reconnect","external-account-refresh":"Refresh","external-account-remove":"Remove","device-data-no-data":"If you have connected Apple Health, Google Fit, Fitbit, or Garmin, check back later to view your data.","no-notifications-received":"No notifications received","next-button-text":"Next","lab-results-title":"Lab Results","medications-title":"Medications","immunizations-title":"Immunizations","reports-title":"Reports","allergies-title":"Allergies","conditions-title":"Conditions","procedures-title":"Procedures"},gr={back:"Atrás",close:"Cerrar","connect-ehr-title-prefix":"Conectar ","connect-ehr-title-divider":" o ","connect-ehr-title-providers":"proveedor","connect-ehr-title-health-plans":"plan de salud","connect-ehr-connected":"¡Estamos recibiendo su información de EHR!","connect-ehr-needs-attention":"Una de tus cuentas requiere atención.","connect-ehr-text":"Sus registros electrónicos de salud son una fuente de información importante. Con ellos, usted podría ayudar a los investigadores de la salud a realizar nuevos descubrimientos. Conecte a su proveedor o a su plan de salud (por ejemplo: Medicare) con @@PROJECT_NAME@@.","connect-ehr-text-connected":"Gracias por compartir tus datos de EHR con @@PROJECT_NAME@@. Conecta a otro proveedor para compartir más datos o administrar tus conexiones de EHR.","connect-ehr-not-enabled":"EHR enlacando no está habilitado para este proyecto.","search-for-provider":"Encontrar a mi Proveedor",reconnect:"Volver a conectar",connected:"Conectado",search:"Buscar","connect-fitbit-intro":"Si ya tiene una cuenta Fitbit, puede compartir información desde allí. Para empezar, presione el siguiente botón para ingresar a su cuenta de Fitbit:","connect-fitbit-button":"Conectar a Fitbit","received-fitbit-data":"¡Estamos recibiendo su información de Fitbit!","connect-garmin-intro":"Si ya tiene una cuenta Garmin, puede compartir información desde allí. Para empezar, presione el siguiente botón para ingresar a su cuenta de Garmin:","connect-garmin-button":"Conectar a Garmin","received-garmin-data":"¡Estamos recibiendo su información de Garmin!","downloading-data":"Descargando datos...","all-tasks-complete":"¡Todas las tareas terminadas!","view-all":"Ver todo",tasks:"Tareas","incomplete-tasks":"Tareas incompletas","completed-tasks":"Tareas completadas",overdue:"Vencidos","due-today":"Vence hoy","due-tomorrow":"Vence mañana",due:"Vence","due-in":"Vencido en",days:"dias",notifications:"Notificaciones",support:"Soporte","all-notifications":"Todas las notificaciones",steps:"Pasos","resting-heart-rate":"Ritmo cardíaco en reposo","distance-traveled":"Distancia Viajada","google-fit-share":"Toca para compartir datos de condición físic",devices:"Dispositivos","last-sync":"Última sincronización",completed:"Completadas","ehr-intro":"Sus registros de salud electrónicos son fuentes importantes de información. Pueden ayudar a investigadores hacer nuevos descubrimientos.","external-accounts-title-divider":" / ","external-accounts-title-providers":"Proveedores","external-accounts-title-health-plans":"Planes de Salud","external-accounts-title-devices":"Dispositivos","external-accounts-error":"Una de tus cuentas requiere atención","external-accounts-loading":"Actualmente tus datos se están descargando de tus planes de salud y proveedores vinculados. Por favor, vuelve a consultar en unos momentos para ver tus datos.","external-account-authorization-expired":"Venció la autorización","external-account-fetching-data":"Recuperando datos","external-account-deleting":"Eliminando...","external-account-last-updated":"Última actualización","external-account-error":"Error imprevisto","external-account-reconnect":"Volver a conectar","external-account-refresh":"Actualizar","external-account-remove":"Eliminar","device-data-no-data":"Si ha conectado Apple Health, Google Fit, Fitbit o Garmin, vuelva más tarde para ver sus datos.","no-notifications-received":"No se recibieron notificaciones.","next-button-text":"Siguiente","lab-results-title":"Resultados de laboratorio","medications-title":"Medicamentos","immunizations-title":"Vacunas","reports-title":"Informes","allergies-title":"Alergias","conditions-title":"Enfermedades","procedures-title":"Procedimientos"},br=b.getCurrentLanguage().toLowerCase().startsWith("es")?gr:vr;function xr(t){var n=a(null);c((function(){var e=n.current;function t(){window.scrollY>0?null==e||e.classList.add("scroll-shadow"):null==e||e.classList.remove("scroll-shadow")}return window.addEventListener("scroll",t),function(){window.removeEventListener("scroll",t)}}));var r=["mdhui-navigation-bar"];return t.className&&r.push(t.className),"compressed"==t.variant&&r.push("mdhui-navigation-bar-compressed"),e.createElement("div",{className:r.join(" "),ref:n},t.showBackButton&&e.createElement("a",{className:"back-button",href:"javascript:{}",onClick:function(){b.back()}},e.createElement(P,{icon:jt.faChevronLeft}),t.backButtonText?t.backButtonText:br.back),t.title&&e.createElement("div",{className:"title"},e.createElement("span",null,t.title)),t.showCloseButton&&e.createElement("a",{className:"close-button",href:"javascript:{}",onClick:function(){b.dismiss()}},t.closeButtonText?t.closeButtonText:br.close),t.children)}function wr(t){return t.children?e.createElement("div",{className:"mdhui-section "+(t.className||"")+(t.noTopMargin?" mdhui-section-no-top-margin":"")},t.children):null}k(".mdhui-section {\n margin-top: 16px;\n margin-bottom: 16px;\n background: var(--mdhui-background-color-0);\n box-shadow: var(--mdhui-box-shadow-0);\n animation: var(--mdhui-fadein-animation);\n -moz-animation: var(--mdhui-fadein-animation);\n -webkit-animation: var(--mdhui-fadein-animation);\n position: relative;\n}\n\n.mdhui-section:empty {\n display: none;\n}\n\n.mdhui-section.mdhui-section-no-top-margin {\n margin-top: 0;\n}");function kr(t){var n=100/t.segments.length;return e.createElement("div",{style:{borderColor:t.color},className:"mdhui-segmented-control "+(t.className||"")},t.segments.map((function(r){return e.createElement(E,{className:"mdhui-segment "+(r.key==t.selectedSegment?"mdhui-segment-selected":""),key:r.key,onClick:function(){return t.onSegmentSelected(r.key)},style:{width:n+"%",color:r.key==t.selectedSegment?void 0:t.color,backgroundColor:r.key==t.selectedSegment?t.color:void 0}},r.key==t.selectedSegment&&e.createElement(mr,null),r.title)})))}k(".mdhui-segmented-control\n{\n border-radius: 32px;\n border: solid 1px var(--mdhui-color-primary);\n background: var(--mdhui-background-color-0);\n overflow: hidden;\n padding: 1px;\n}\n\n .mdhui-segmented-control .mdhui-segment\n {\n display: inline-block;\n font-size: .7em;\n cursor: pointer;\n text-align: center;\n padding: 8px;\n box-sizing: border-box;\n font-weight: bold;\n color: var(--mdhui-color-primary);\n position: relative;\n border-radius: 32px;\n overflow: hidden;\n vertical-align: top;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .mdhui-segmented-control .mdhui-segment:last-child\n {\n border: none;\n }\n\n .mdhui-segmented-control .mdhui-segment.mdhui-segment-selected\n {\n background: var(--mdhui-color-primary);\n color: #FFF;\n }\n");var Er={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="repeat",n=[128257],r="f363",i="M0 224c0 17.7 14.3 32 32 32s32-14.3 32-32c0-53 43-96 96-96H320v32c0 12.9 7.8 24.6 19.8 29.6s25.7 2.2 34.9-6.9l64-64c12.5-12.5 12.5-32.8 0-45.3l-64-64c-9.2-9.2-22.9-11.9-34.9-6.9S320 19.1 320 32V64H160C71.6 64 0 135.6 0 224zm512 64c0-17.7-14.3-32-32-32s-32 14.3-32 32c0 53-43 96-96 96H192V352c0-12.9-7.8-24.6-19.8-29.6s-25.7-2.2-34.9 6.9l-64 64c-12.5 12.5-12.5 32.8 0 45.3l64 64c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6V448H352c88.4 0 160-71.6 160-160z";e.definition={prefix:"fas",iconName:t,icon:[512,512,n,r,i]},e.faRepeat=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=i,e.aliases=n}(Er);var Sr={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="trash",n=[],r="f1f8",i="M135.2 17.7L128 32H32C14.3 32 0 46.3 0 64S14.3 96 32 96H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H320l-7.2-14.3C307.4 6.8 296.3 0 284.2 0H163.8c-12.1 0-23.2 6.8-28.6 17.7zM416 128H32L53.2 467c1.6 25.3 22.6 45 47.9 45H346.9c25.3 0 46.3-19.7 47.9-45L416 128z";e.definition={prefix:"fas",iconName:t,icon:[448,512,n,r,i]},e.faTrash=e.definition,e.prefix="fas",e.iconName=t,e.width=448,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=i,e.aliases=n}(Sr);function _r(t){var n=b.getCurrentLanguage().toLowerCase().startsWith("es")?Ct:Ze,r=s(""),i=r[0],o=r[1];function a(){return i||t.externalAccount.status}return e.createElement("div",{className:"mdhui-single-external-account"},e.createElement("div",{className:"external-account-header"},t.externalAccount.provider.logoUrl&&e.createElement("img",{alt:t.externalAccount.provider.name,src:t.externalAccount.provider.logoUrl,className:"external-account-provider-logo"}),!t.externalAccount.provider.logoUrl&&e.createElement("div",{className:"external-account-provider-name"},t.externalAccount.provider.name),"deleting"!==a()&&"fetchingData"!==a()&&e.createElement(E,{className:"delete-button",onClick:function(){o("deleting"),b.deleteExternalAccount(t.externalAccount.id).then((function(){t.onAccountRemoved(t.externalAccount)})).catch((function(){o("")}))},title:br["external-account-remove"]},e.createElement(P,{icon:Sr.faTrash}))),e.createElement("div",{className:"external-account-status"},"unauthorized"===a()&&e.createElement("p",null,e.createElement("span",{className:"error"},br["external-account-authorization-expired"])),"fetchingData"===a()&&e.createElement("p",null,e.createElement(P,{icon:M.faRefresh,spin:!0})," ",br["external-account-fetching-data"]),"fetchComplete"===a()&&e.createElement("p",null,br["external-account-last-updated"]," ",e.createElement("strong",null,ut(pt(t.externalAccount.lastRefreshDate),new Date,{locale:n}))),"error"===a()&&e.createElement("p",{className:"error"},br["external-account-error"]),("fetchComplete"===a()||"error"===a())&&e.createElement("p",null,e.createElement("a",{href:"javascript:{}",onClick:function(){o("fetchingData"),b.refreshExternalAccount(t.externalAccount.id).then()}},e.createElement(P,{icon:Er.faRepeat})," ",br["external-account-refresh"])),"unauthorized"===a()&&e.createElement("p",null,e.createElement("a",{href:"javascript:{}",onClick:function(){return t.onReconnectAccount(t.externalAccount)}},e.createElement(P,{icon:Er.faRepeat})," ",br["external-account-reconnect"])),"deleting"===a()&&e.createElement("p",null,e.createElement(P,{icon:M.faRefresh,spin:!0})," ",br["external-account-deleting"])))}k(".mdhui-single-external-account {\n position: relative;\n overflow: hidden;\n background: var(--mdhui-background-color-0);\n}\n\n.mdhui-single-external-account .external-account-header {\n position: relative;\n padding: 8px;\n font-weight: bold;\n border-bottom: solid 1px var(--mdhui-border-color-0);\n}\n\n.mdhui-single-external-account .external-account-header .delete-button {\n position: absolute;\n right: 0;\n top: 0;\n cursor: pointer;\n padding: 16px;\n color: var(--mdhui-text-color-4);\n width: auto;\n font-size: .88em;\n border: none;\n background: none;\n height: 100%;\n}\n\n.mdhui-single-external-account .external-account-header .external-account-provider-logo {\n height: 24px;\n display: block;\n background: #FFF;\n padding: 8px;\n border-radius: 8px;\n}\n\n.mdhui-single-external-account .external-account-header .external-account-provider-name {\n font-size: 1em;\n font-weight: bold;\n}\n\n.mdhui-single-external-account .external-account-status {\n padding: 16px;\n padding-bottom: 0;\n padding-top: 0;\n font-size: .88em;\n}\n\n.mdhui-single-external-account .external-account-status p {\n margin-bottom: 16px;\n margin-top: 16px;\n}\n\n.mdhui-single-external-account .external-account-status a {\n cursor: pointer;\n text-decoration: none;\n}\n\n.mdhui-single-external-account .external-account-status .error {\n color: var(--mdhui-color-danger);\n}");function Or(t){var n,r;var i=b.getCurrentLanguage().toLowerCase().startsWith("es")?Ct:Ze;return e.createElement("div",{className:"mdhui-single-notification"},(null===(n=t.notification.content)||void 0===n?void 0:n.title)&&e.createElement("div",{className:"notification-title"},t.notification.content.title),(null===(r=t.notification.content)||void 0===r?void 0:r.body)&&e.createElement("div",{className:"notification-body"},t.notification.content.body),e.createElement("div",{className:"notification-date"},function(e){return e.charAt(0).toUpperCase()+e.slice(1)}(ut(pt(t.notification.sentDate),new Date,{locale:i}))))}k(".mdhui-single-notification\n{\n padding: 16px;\n border-bottom: solid 1px var(--mdhui-border-color-0);\n position: relative;\n}\n\n .mdhui-single-notification:last-child\n {\n border: none;\n }\n\n .mdhui-single-notification > .notification-title\n {\n font-weight: bold;\n }\n\n .mdhui-single-notification > .notification-body\n {\n font-size: .88em;\n }\n\n .mdhui-single-notification > .notification-date\n {\n color: var(--mdhui-text-color-2);\n margin-top: 16px;\n font-size: .75em;\n }\n");k(".mdhui-single-survey-task\n{\n padding: 16px;\n display: grid;\n grid-template-columns: max-content auto max-content;\n grid-column-gap: 16px;\n align-items: center;\n width: 100%;\n}\n\n .mdhui-single-survey-task .status-icon\n {\n color: var(--mdhui-text-color-3);\n }\n\n .mdhui-single-survey-task.complete .status-icon\n {\n color: var(--mdhui-color-success);\n }\n\n .mdhui-single-survey-task .survey-name\n {\n font-size: .88em;\n font-weight: bold;\n }\n\n .mdhui-single-survey-task .survey-description,\n .mdhui-single-survey-task .completed-date\n {\n font-size: .88em;\n color: var(--mdhui-text-color-2);\n }\n\n .mdhui-single-survey-task .due-date\n {\n font-size: .88em;\n color: var(--mdhui-color-primary);\n }\n\n .mdhui-single-survey-task .due-date.warning\n {\n color: var(--mdhui-color-warning);\n font-weight: bold;\n }\n\n .mdhui-single-survey-task .due-date.danger\n {\n color: var(--mdhui-color-danger);\n font-weight: bold;\n }\n\n .mdhui-single-survey-task .indicator\n {\n font-size: 16px;\n color: var(--mdhui-text-color-3);\n }\n\n .mdhui-single-survey-task.incomplete\n {\n cursor: pointer;\n }\n");var Ar={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="circle-check",n=[61533,"check-circle"],r="f058",i="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z";e.definition={prefix:"fas",iconName:t,icon:[512,512,n,r,i]},e.faCircleCheck=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=i,e.aliases=n}(Ar);var Cr={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="circle-half-stroke",n=[9680,"adjust"],r="f042",i="M448 256c0-106-86-192-192-192V448c106 0 192-86 192-192zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z";e.definition={prefix:"fas",iconName:t,icon:[512,512,n,r,i]},e.faCircleHalfStroke=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=i,e.aliases=n}(Cr);var Tr={};function Pr(t){var n=function(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()},r=new Date,i=Y(new Date,{days:1}),o="",a="",c=b.getCurrentLanguage().toLowerCase().startsWith("es")?Ct:Ze;if(t.task.dueDate){var s=pt(t.task.dueDate);if(n(s,i))o=br["due-tomorrow"],a="warning";else if(n(s,r))o=br["due-today"],a="warning";else if(ft(r,s))o=br.overdue,a="danger";else{var l;l=function(e,t){return H(1,arguments),st(e,Date.now(),t)}(new Date(t.task.dueDate),{locale:c}),o=br["due-in"]+" "+l}}return"incomplete"==t.task.status?e.createElement(E,{className:"mdhui-single-survey-task incomplete",onClick:function(){return e=t.task.surveyName,void(t.disableClick||b.startSurvey(e));var e}},e.createElement("div",{className:"status-icon"},t.task.hasSavedProgress&&e.createElement(P,{icon:Cr.faCircleHalfStroke}),!t.task.hasSavedProgress&&e.createElement(P,{icon:Tr.faCircle})),e.createElement("div",null,e.createElement("div",{className:"survey-name"},t.task.surveyDisplayName),e.createElement("div",{className:"survey-description"},e.createElement(e.Fragment,null,t.descriptionIcon," ",t.task.surveyDescription)),!t.hideDueDate&&o&&e.createElement("div",{className:"due-date "+a},o)),e.createElement("div",{className:"indicator"},e.createElement(P,{icon:A.faChevronRight}))):"complete"==t.task.status&&t.task.endDate?e.createElement("div",{className:"mdhui-single-survey-task complete"},e.createElement("div",{className:"status-icon"},e.createElement(P,{icon:Ar.faCircleCheck})),e.createElement("div",null,e.createElement("div",{className:"survey-name"},t.task.surveyDisplayName),e.createElement("div",{className:"completed-date"},br.completed," ",ut(pt(t.task.endDate),new Date,{locale:c})))):null}!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="circle",n=[128308,128309,128992,128993,128994,128995,128996,9679,9898,9899,11044,61708,61915],r="f111",i="M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z";e.definition={prefix:"far",iconName:t,icon:[512,512,n,r,i]},e.faCircle=e.definition,e.prefix="far",e.iconName=t,e.width=512,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=i,e.aliases=n}(Tr);function Dr(t){var n=100/t.bars.length;return e.createElement("div",{className:"mdhui-spark-bar-chart"},e.createElement("div",{className:"mdhui-spark-bar-chart-average",style:{bottom:100*t.averageFillPercent+"%"}}),e.createElement("div",{className:"mdhui-spark-bar-chart-bars"},t.bars.map((function(t,r){return e.createElement("div",{key:r,className:"mdhui-spark-bar-chart-bar",style:{backgroundColor:t.color,height:100*t.barFillPercent+"%",width:n+"%",left:n*r+"%"}},e.createElement(mr,null))}))))}k(".mdhui-spark-bar-chart\n{\n position: relative;\n height: 72px;\n}\n\n .mdhui-spark-bar-chart .mdhui-spark-bar-chart-bars\n {\n margin-left: 8px;\n width: calc( 100% - 16px);\n position: relative;\n height: 100%;\n }\n\n .mdhui-spark-bar-chart .mdhui-spark-bar-chart-bars .mdhui-spark-bar-chart-bar\n {\n position: absolute;\n bottom: 0;\n z-index: 2;\n }\n\n .mdhui-spark-bar-chart .mdhui-spark-bar-chart-average\n {\n border-top: dashed 1px var(--mdhui-border-color-1);\n position: absolute;\n left: 0px;\n right: 0px;\n z-index: 1;\n }\n");function jr(t){return e.createElement(E,{onClick:function(){return t.onValueChanged(!t.isOn)},className:"mdhui-switch"+(t.isOn?" mdhui-switch-on":"")+(t.className?" "+t.className:""),style:{backgroundColor:t.isOn?t.onBackgroundColor:"var(--mdhui-background-color-2)"}},e.createElement("div",{className:"mdhui-switch-circle"}))}k(".mdhui-switch {\n border: 1px solid var(--mdhui-background-color-2);\n border-radius: 20px;\n cursor: pointer;\n display: inline-block;\n height: 30px;\n position: relative;\n vertical-align: middle;\n width: 50px;\n background: --mdhui-background-color-2;\n -webkit-box-sizing: content-box;\n -moz-box-sizing: content-box;\n box-sizing: content-box;\n -webkit-background-clip: content-box;\n background-clip: content-box;\n transition: background-color .5s;\n}\n\n.mdhui-switch.mdhui-switch-on {\n background: var(--mdhui-color-primary);\n}\n\n.mdhui-switch .mdhui-switch-circle {\n background: #fff;\n border-radius: 100%;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);\n height: 30px;\n position: absolute;\n top: 0;\n width: 30px;\n}\n\n.mdhui-switch.mdhui-switch-on .mdhui-switch-circle {\n right: 0;\n}");function Mr(t){var n=o(pr),r={backgroundColor:n.bodyBackgroundColor};return t.color&&(r={backgroundColor:t.color}),t.color||"dark"!==n.colorScheme||b.setStatusBarStyle("lightContent"),e.createElement("div",{className:"mdhui-status-bar-background",style:r})}k(".mdhui-status-bar-background {\n position: sticky;\n position: -webkit-sticky;\n left: 0;\n top: 0;\n right: 0;\n height: env(safe-area-inset-top);\n width: 100%;\n z-index: 1;\n background: var(--mdhui-background-color-0);\n}");function Nr(t){return t.children?e.createElement("div",{className:"mdhui-text-block "+(t.className||"")},t.children):null}k(".mdhui-text-block\n{\n margin: 16px;\n font-size: .88em;\n line-height: 1.3em;\n}\n");function Ir(t){var n=["mdhui-tracker-item"];t.onClick&&n.push("selectable"),t.selected?n.push("selected"):n.push("unselected"),t.bordered&&n.push("bordered"),t.className&&n.push(t.className);var r={borderColor:t.color,color:t.color,backgroundColor:t.color};return t.onClick?e.createElement(E,{className:n.join(" "),style:r,onClick:function(){return t.onClick?t.onClick():null}},t.text,t.selected&&e.createElement(mr,null),t.badge&&t.selected&&e.createElement("div",{className:"badge"},t.badge)):e.createElement("div",{className:n.join(" "),style:r,onClick:function(){return t.onClick?t.onClick():null}},t.text,t.selected&&e.createElement(mr,null),t.badge&&t.selected&&e.createElement("div",{className:"badge"},t.badge))}k(".mdhui-tracker-item {\n padding: 8px;\n padding-right: 16px;\n padding-left: 16px;\n color: var(--mdhui-background-color-0);\n border-radius: 32px;\n font-size: .88em;\n display: inline-block;\n margin: 8px;\n position: relative;\n border: solid 1px #000;\n user-select: none;\n}\n\n.mdhui-tracker-item.selectable {\n cursor: pointer;\n}\n\n.mdhui-tracker-item.selected {\n box-shadow: var(--mdhui-box-shadow-1);\n color: #FFF !important;\n background-color: inherit;\n}\n\n.mdhui-tracker-item.unselected {\n background-color: var(--mdhui-background-color-0) !important;\n}\n\n.mdhui-tracker-item .mdhui-shiny-overlay {\n border-radius: 32px;\n}\n\n.mdhui-tracker-item.bordered .mdhui-shiny-overlay {\n left: 1px;\n right: 1px;\n bottom: 1px;\n top: 1px;\n border: solid 2px #FFF;\n}\n\n.mdhui-tracker-item .badge {\n position: absolute;\n right: -4px;\n top: -4px;\n border-radius: 32px;\n padding: 3px;\n background: linear-gradient(to bottom, #555 0%, #888 100%);\n font-size: .5em;\n font-weight: bold;\n text-align: center;\n min-width: 10px;\n user-select: none;\n font-size: .62em;\n}");function Rr(t){var n=a(null);l((function(){var e;if(t.onStartDateChange){var r=function(e){var i,o,a,c;0==(null===(i=n.current)||void 0===i?void 0:i.scrollLeft)?(t.onStartDateChange(Y(t.startDate,{weeks:-1})),null===(o=n.current)||void 0===o||o.removeEventListener("scroll",r)):(null===(a=n.current)||void 0===a?void 0:a.scrollLeft)==2*window.innerWidth&&(t.onStartDateChange(Y(t.startDate,{weeks:1})),null===(c=n.current)||void 0===c||c.removeEventListener("scroll",r))};return null===(e=n.current)||void 0===e||e.addEventListener("scroll",r),function(){var e;null===(e=n.current)||void 0===e||e.removeEventListener("scroll",r)}}}),[t.startDate]);for(var r=[],i=[],o=[],c=Y(t.startDate,{days:-7}),s=0;s<21;s++)s<7?r.push(c):s<14?i.push(c):o.push(c),c=Y(c,{days:1});function u(t){return e.createElement("div",{className:"mdhui-week-calendar-date-label"},e.createElement("div",{className:"mdhui-week-calendar-day-of-week"}," ",nt(t,"E").substr(0,1)),e.createElement("div",{className:"mdhui-week-calendar-day-of-month"},nt(t,"d")))}function f(e){var n=["mdhui-week-calendar-day"];return e>new Date?n.push("mdhui-week-calendar-day-future"):t.onDateSelected&&n.push("mdhui-week-calendar-day-selectable"),t.selectedDate&<(e).substr(0,10)==lt(t.selectedDate).substr(0,10)&&n.push("mdhui-week-calendar-day-selected"),n}return l((function(){n.current&&(n.current.scrollLeft=window.innerWidth)})),n.current&&(n.current.scrollLeft=window.innerWidth),e.createElement("div",{className:"mdhui-week-calendar",ref:n},t.loading&&e.createElement("div",{className:"mdhui-week-calendar-loading"},e.createElement(I,null)),e.createElement("div",{className:"mdhui-week-calendar-week"},r.map((function(n){return e.createElement("div",{key:n.getTime(),className:"mdhui-week-calendar-day"},t.dayRenderer(n.getFullYear(),n.getMonth(),n.getDate(),!1),!t.hideDateLabel&&u(n))}))),e.createElement("div",{className:"mdhui-week-calendar-week"},i.map((function(n){return e.createElement(E,{key:n.getTime(),className:f(n).join(" "),onClick:function(){return function(e){e>new Date||t.onDateSelected&&t.onDateSelected(e)}(n)}},t.dayRenderer(n.getFullYear(),n.getMonth(),n.getDate(),!0),!t.hideDateLabel&&u(n))}))),Y(t.startDate,{days:7})<new Date&&e.createElement("div",{className:"mdhui-week-calendar-week"},o.map((function(n){return e.createElement("div",{key:n.getTime(),className:f(n).join(" ")},t.dayRenderer(n.getFullYear(),n.getMonth(),n.getDate(),!1),!t.hideDateLabel&&u(n))}))))}k(".mdhui-week-calendar {\n background: var(--mdhui-background-color-0);\n overflow-x: scroll;\n overflow-y: hidden;\n z-index: 0;\n position: relative;\n display: flex;\n scroll-snap-type: x mandatory;\n scrollbar-width: none;\n border-top: solid 1px var(--mdhui-border-color-1);\n border-bottom: solid 1px var(--mdhui-border-color-1);\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-loading {\n position: absolute;\n width: 100%;\n left: 100%;\n top: calc(50% - 10px);\n}\n\n.mdhui-week-calendar * {\n user-select: none;\n}\n\n.mdhui-week-calendar::-webkit-scrollbar {\n display: none;\n /* Safari and Chrome */\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-week {\n min-width: 100%;\n scroll-snap-align: start;\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-day {\n width: calc(14.28% - 1px);\n border-left: solid 1px var(--mdhui-border-color-1);\n overflow: hidden;\n position: relative;\n display: inline-block;\n vertical-align: top;\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-day:first-child {\n width: 14.28%;\n border-left: none;\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-date-label {\n padding-top: 4px;\n line-height: 16px;\n padding-bottom: 8px;\n text-align: center;\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-date-label .mdhui-week-calendar-day-of-week {\n font-size: 10px;\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-date-label .mdhui-week-calendar-day-of-month {\n font-size: 14px;\n display: inline-block;\n text-align: center;\n width: 24px;\n height: 24px;\n border-radius: 24px;\n line-height: 24px;\n margin-top: 2px;\n margin-bottom: 2px;\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-day-selectable {\n cursor: pointer;\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-day-selected {\n background: var(--mdhui-background-color-2);\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-day-selected .mdhui-week-calendar-date-label .mdhui-week-calendar-day-of-month {\n background-color: var(--mdhui-color-primary);\n color: #FFF;\n font-weight: bold;\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-day-future>* {\n opacity: .4;\n}");k(".mdhui-connect-ehr {\n background: var(--mdhui-background-color-0);\n position: relative;\n width: 100%;\n text-align: left;\n border: none;\n font-size: 1em;\n line-height: 1.2em;\n cursor: pointer;\n}\n\n.mdhui-connect-ehr .error-content {\n padding: 16px;\n}\n\n.mdhui-connect-ehr .content {\n margin-top: 16px;\n font-size: .88em;\n color: var(--mdhui-text-color-2);\n}\n\n.mdhui-connect-ehr .connection-status {\n padding-top: 16px;\n}\n\n.mdhui-connect-ehr .connection-status .success svg {\n color: var(--mdhui-color-success);\n}\n\n.mdhui-connect-ehr .connection-status .warning {\n color: var(--mdhui-color-danger);\n}");var Lr={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Ar;e.definition={prefix:t.prefix,iconName:t.iconName,icon:[t.width,t.height,t.aliases,t.unicode,t.svgPathData]},e.faCheckCircle=e.definition,e.prefix=t.prefix,e.iconName=t.iconName,e.width=t.width,e.height=t.height,e.ligatures=t.aliases,e.unicode=t.unicode,e.svgPathData=t.svgPathData,e.aliases=t.aliases}(Lr);var Fr={};function zr(t){var n=s(!0),r=n[0],i=n[1],o=s(!1),a=o[0],c=o[1],u=s(null),f=u[0],p=u[1],d=s(!1),h=d[0],m=d[1],y=s(!1),v=y[0],g=y[1];function x(){if(t.previewState){if("notEnabled"==t.previewState)return;return c(!0),p("PROJECT"),"enabledConnected"==t.previewState?(m(!0),g(!1)):"enabledNeedsAttention"==t.previewState&&(m(!0),g(!0)),void i(!1)}b.getDataCollectionSettings().then((function(e){c(e.ehrEnabled),e.ehrEnabled&&b.getProjectInfo().then((function(e){p(e.name),b.getExternalAccounts().then((function(e){e=e.filter((function(e){return-1!=["Provider","Health Plan"].indexOf(e.provider.category)})),m(e.length>0),g(e.some((function(e){return"unauthorized"==e.status||"error"==e.status}))),i(!1)}))}))}))}return l((function(){return x(),b.on("applicationDidBecomeVisible",x),b.on("externalAccountSyncComplete",x),function(){b.off("applicationDidBecomeVisible",x),b.off("externalAccountSyncComplete",x)}}),[]),a?r?null:e.createElement(D,{bottomBorder:t.bottomBorder,title:br["connect-ehr-title-prefix"]+br["connect-ehr-title-providers"]+br["connect-ehr-title-divider"]+br["connect-ehr-title-health-plans"],className:"mdhui-connect-ehr",onClick:function(){"preview"==t.applicationUrl?console.log("PREVIEW: Opening the connect EHR application."):b.openApplication(t.applicationUrl)}},h?e.createElement(e.Fragment,null,e.createElement("div",{className:"connection-status"},v?e.createElement("div",{className:"warning"},e.createElement(P,{icon:Fr.faTriangleExclamation})," ",br["connect-ehr-needs-attention"]):e.createElement("div",{className:"success"},e.createElement(P,{icon:Lr.faCheckCircle})," ",br["connect-ehr-connected"])),e.createElement("div",{className:"content"},br["connect-ehr-text-connected"].replace("@@PROJECT_NAME@@",f))):e.createElement("div",{className:"content"},br["connect-ehr-text"].replace("@@PROJECT_NAME@@",f))):"displayError"==t.disabledBehavior?e.createElement("div",{className:"mdhui-connect-ehr"},e.createElement("div",{className:"error-content"},br["connect-ehr-not-enabled"])):null}!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="triangle-exclamation",n=[9888,"exclamation-triangle","warning"],r="f071",i="M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480H40c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24V296c0 13.3 10.7 24 24 24s24-10.7 24-24V184c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z";e.definition={prefix:"fas",iconName:t,icon:[512,512,n,r,i]},e.faTriangleExclamation=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=i,e.aliases=n}(Fr);var Br={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Fr;e.definition={prefix:t.prefix,iconName:t.iconName,icon:[t.width,t.height,t.aliases,t.unicode,t.svgPathData]},e.faExclamationTriangle=e.definition,e.prefix=t.prefix,e.iconName=t.iconName,e.width=t.width,e.height=t.height,e.ligatures=t.aliases,e.unicode=t.unicode,e.svgPathData=t.svgPathData,e.aliases=t.aliases}(Br);function qr(t){var n=s(!0),r=n[0],i=n[1],o=s(!1),a=o[0],c=o[1],u=s(null),f=u[0],p=u[1];function d(e){return e.replace("{device}",t.providerName.toLowerCase())}function h(){if(t.previewState)return"notEnabled"==t.previewState?void i(!1):(c(!0),"notConnected"==t.previewState||p({id:1,lastRefreshDate:lt(Y(new Date,{hours:-1})),status:t.previewState,provider:{name:t.providerName,category:"Device Manufacturer",id:t.providerIDCallback(),logoUrl:""}}),void i(!1));b.getDataCollectionSettings().then((function(e){c(e[t.dataCollectionProperty]),e[t.dataCollectionProperty]?b.getExternalAccounts().then((function(e){for(var n=0;n<e.length;n++)e[n].provider.id==t.providerIDCallback()&&p(e[n]);i(!1)})):i(!1)}))}function m(){b.connectExternalAccount(t.providerIDCallback())}l((function(){return h(),b.on("applicationDidBecomeVisible",h),b.on("externalAccountSyncComplete",h),function(){b.off("applicationDidBecomeVisible",h),b.off("externalAccountSyncComplete",h)}}),[]);var y=null==f?void 0:f.status;if("fetchComplete"==(null==f?void 0:f.status)){var v=Y(pt(f.lastRefreshDate),{hours:3});ft(new Date,v)&&(b.refreshExternalAccount(f.id),y="fetchingData")}return a?e.createElement("div",{className:"mdhui-connect-device"},t.title&&e.createElement(Dt,{title:t.title}),r&&e.createElement(I,null),!r&&e.createElement("div",{className:"content"},!f&&e.createElement("div",null,e.createElement("div",{className:"subtitle"},br[d("connect-{device}-intro")]),e.createElement(R,{onClick:function(){return m()}},br[d("connect-{device}-button")])),f&&"fetchComplete"==y&&e.createElement("div",{className:"subtitle success"},e.createElement(P,{icon:Lr.faCheckCircle})," ",br[d("received-{device}-data")]),f&&"fetchingData"==y&&e.createElement("div",{className:"subtitle downloading"},e.createElement(P,{icon:M.faRefresh,spin:!0})," ",br["downloading-data"]),f&&"unauthorized"==y&&e.createElement("div",null,e.createElement("div",{className:"subtitle reconnect"},e.createElement(P,{icon:Br.faExclamationTriangle})," ",br.reconnect),e.createElement(R,{onClick:function(){return m()}},br[d("connect-{device}-button")])))):"displayError"!=t.disabledBehavior||r?null:e.createElement("div",{className:"mdhui-connect-device"},e.createElement("div",{className:"content"},t.title," is not enabled for this project."))}function Hr(t){return e.createElement(qr,{title:"Fitbit",providerName:"Fitbit",dataCollectionProperty:"fitbitEnabled",providerIDCallback:function(){var e=564;return b.baseUrl&&!b.baseUrl.startsWith("https://mdhorg.ce.dev")||(e=2),t.fitbitProviderID&&(e=t.fitbitProviderID),e},previewState:t.previewState,disabledBehavior:t.disabledBehavior})}function Vr(t){return e.createElement(qr,{title:"Garmin",providerName:"Garmin",dataCollectionProperty:"garminEnabled",providerIDCallback:function(){var e=6327;return b.baseUrl&&!b.baseUrl.startsWith("https://mdhorg.ce.dev")||(e=1384),t.garminProviderID&&(e=t.garminProviderID),e},previewState:t.previewState,disabledBehavior:t.disabledBehavior})}k(".mdhui-connect-device .title {\n font-weight: bold;\n}\n\n.mdhui-connect-device .subtitle {\n font-size: .88em;\n font-weight: normal;\n color: var(--mdhui-text-color-2);\n}\n\n.mdhui-connect-device .subtitle.reconnect {\n color: var(--mdhui-color-danger);\n font-weight: bold;\n}\n\n.mdhui-connect-device .subtitle.success svg {\n color: var(--mdhui-color-success);\n}\n\n.mdhui-connect-device .mdhui-button {\n margin-top: 16px;\n}\n\n.mdhui-connect-device .content {\n padding: 16px;\n}\n");k(".mdhui-device-data-month-chart {\n position: relative;\n}\n\n.mdhui-device-data-month-chart .title {\n padding: 16px;\n padding-bottom: 0;\n position: relative;\n font-weight: bold;\n float: left;\n}\n\n.mdhui-device-data-month-chart .average {\n font-weight: normal;\n float: right;\n font-size: .7em;\n padding: 16px;\n padding-top: 21px;\n padding-bottom: 0;\n}\n\n.mdhui-device-data-month-chart .average .average-value {\n font-weight: bold;\n}\n\n\n.mdhui-device-data-month-chart .chart-container {\n padding: 16px;\n height: 150px;\n position: relative;\n}\n\n.mdhui-device-data-month-chart .no-data-label,\n.mdhui-device-data-month-chart .mdhui-loading-indicator {\n position: absolute;\n left: 0;\n top: calc(50% - 40px);\n text-align: center;\n width: 100%;\n font-size: .88em;\n color: var(--mdhui-text-color-2);\n box-sizing: border-box;\n padding: 16px;\n}\n\n.mdhui-device-data-month-chart .recharts-cartesian-axis-tick {\n font-size: 11px;\n}\n\n.mdhui-device-data-month-chart .recharts-cartesian-axis-tick-value {\n fill: var(--mdhui-text-color-2);\n}\n\n.mdhui-device-data-month-chart .graph-tooltip {\n padding: 4px;\n font-size: 12px;\n background: var(--mdhui-background-color-0);\n border-radius: 5px;\n box-shadow: var(--mdhui-box-shadow-0);\n animation: fadein 1s;\n -moz-animation: fadein 1s;\n -webkit-animation: fadein 1s;\n border: solid 1px var(--mdhui-border-color-0);\n}\n\n.mdhui-device-data-month-chart .graph-tooltip .graph-date {\n padding: 4px;\n}\n\n.mdhui-device-data-month-chart .graph-tooltip table {\n border-spacing: 0;\n border-collapse: collapse;\n}\n\n.mdhui-device-data-month-chart .graph-tooltip table tr:nth-child(odd) {\n background: var(--mdhui-background-color-2);\n}\n\n.mdhui-device-data-month-chart .graph-tooltip table th {\n padding: 4px;\n padding-right: 8px;\n text-align: left;\n font-weight: normal;\n}\n\n.mdhui-device-data-month-chart .graph-tooltip table td {\n padding: 4px;\n text-align: left;\n font-weight: bold;\n}\n\n.mdhui-device-data-month-chart .recharts-cartesian-axis-tick {\n fill: var(--mdhui-text-color-1);\n}");var Ur,Wr={exports:{}};
|
|
9
|
+
*/"production"===process.env.NODE_ENV?cn.exports=function(){if(tn)return sn;tn=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,d=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,g=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case s:case l:case r:case o:case i:case f:return e;default:switch(e=e&&e.$$typeof){case c:case u:case h:case d:case a:return e;default:return p}}case n:return p}}}function x(e){return b(e)===l}return sn.AsyncMode=s,sn.ConcurrentMode=l,sn.ContextConsumer=c,sn.ContextProvider=a,sn.Element=t,sn.ForwardRef=u,sn.Fragment=r,sn.Lazy=h,sn.Memo=d,sn.Portal=n,sn.Profiler=o,sn.StrictMode=i,sn.Suspense=f,sn.isAsyncMode=function(e){return x(e)||b(e)===s},sn.isConcurrentMode=x,sn.isContextConsumer=function(e){return b(e)===c},sn.isContextProvider=function(e){return b(e)===a},sn.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},sn.isForwardRef=function(e){return b(e)===u},sn.isFragment=function(e){return b(e)===r},sn.isLazy=function(e){return b(e)===h},sn.isMemo=function(e){return b(e)===d},sn.isPortal=function(e){return b(e)===n},sn.isProfiler=function(e){return b(e)===o},sn.isStrictMode=function(e){return b(e)===i},sn.isSuspense=function(e){return b(e)===f},sn.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===l||e===o||e===i||e===f||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===d||e.$$typeof===a||e.$$typeof===c||e.$$typeof===u||e.$$typeof===y||e.$$typeof===v||e.$$typeof===g||e.$$typeof===m)},sn.typeOf=b,sn}():cn.exports=(ln||(ln=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,d=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,g=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:var m=e.type;switch(m){case s:case l:case r:case o:case i:case f:return m;default:var y=m&&m.$$typeof;switch(y){case c:case u:case h:case d:case a:return y;default:return p}}case n:return p}}}var x=s,w=l,k=c,E=a,S=t,_=u,O=r,A=h,C=d,T=n,P=o,D=i,j=f,M=!1;function N(e){return b(e)===l}un.AsyncMode=x,un.ConcurrentMode=w,un.ContextConsumer=k,un.ContextProvider=E,un.Element=S,un.ForwardRef=_,un.Fragment=O,un.Lazy=A,un.Memo=C,un.Portal=T,un.Profiler=P,un.StrictMode=D,un.Suspense=j,un.isAsyncMode=function(e){return M||(M=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),N(e)||b(e)===s},un.isConcurrentMode=N,un.isContextConsumer=function(e){return b(e)===c},un.isContextProvider=function(e){return b(e)===a},un.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},un.isForwardRef=function(e){return b(e)===u},un.isFragment=function(e){return b(e)===r},un.isLazy=function(e){return b(e)===h},un.isMemo=function(e){return b(e)===d},un.isPortal=function(e){return b(e)===n},un.isProfiler=function(e){return b(e)===o},un.isStrictMode=function(e){return b(e)===i},un.isSuspense=function(e){return b(e)===f},un.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===l||e===o||e===i||e===f||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===d||e.$$typeof===a||e.$$typeof===c||e.$$typeof===u||e.$$typeof===y||e.$$typeof===v||e.$$typeof===g||e.$$typeof===m)},un.typeOf=b}()),un);var fn=cn.exports,pn={};pn[fn.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},pn[fn.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var dn="undefined"!=typeof document;function hn(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var mn=function(e,t,n){!function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===dn&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)}(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i="",o=t;do{var a=e.insert(t===o?"."+r:"",o,e.sheet,!0);dn||void 0===a||(i+=a),o=o.next}while(void 0!==o);if(!dn&&0!==i.length)return i}};var yn={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},vn="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",gn="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",bn=/[A-Z]|^ms/g,xn=/_EMO_([^_]+?)_([^]*?)_EMO_/g,wn=function(e){return 45===e.charCodeAt(1)},kn=function(e){return null!=e&&"boolean"!=typeof e},En=Ht((function(e){return wn(e)?e:e.replace(bn,"-$&").toLowerCase()})),Sn=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(xn,(function(e,t,n){return Nn={name:t,styles:n,next:Nn},t}))}return 1===yn[e]||wn(e)||"number"!=typeof t||0===t?t:t+"px"};if("production"!==process.env.NODE_ENV){var _n=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,On=["normal","none","initial","inherit","unset"],An=Sn,Cn=/^-ms-/,Tn=/-(.)/g,Pn={};Sn=function(e,t){if("content"===e&&("string"!=typeof t||-1===On.indexOf(t)&&!_n.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0))))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var n=An(e,t);return""===n||wn(e)||-1===e.indexOf("-")||void 0!==Pn[e]||(Pn[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(Cn,"ms-").replace(Tn,(function(e,t){return t.toUpperCase()}))+"?")),n}}var Dn="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function jn(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles){if("production"!==process.env.NODE_ENV&&"NO_COMPONENT_SELECTOR"===n.toString())throw new Error(Dn);return n}switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Nn={name:n.name,styles:n.styles,next:Nn},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Nn={name:r.name,styles:r.styles,next:Nn},r=r.next;var i=n.styles+";";return"production"!==process.env.NODE_ENV&&void 0!==n.map&&(i+=n.map),i}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=jn(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":kn(a)&&(r+=En(o)+":"+Sn(o,a)+";");else{if("NO_COMPONENT_SELECTOR"===o&&"production"!==process.env.NODE_ENV)throw new Error(Dn);if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var c=jn(e,t,a);switch(o){case"animation":case"animationName":r+=En(o)+":"+c+";";break;default:"production"!==process.env.NODE_ENV&&"undefined"===o&&console.error(gn),r+=o+"{"+c+"}"}}else for(var s=0;s<a.length;s++)kn(a[s])&&(r+=En(o)+":"+Sn(o,a[s])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var o=Nn,a=n(e);return Nn=o,jn(e,t,a)}"production"!==process.env.NODE_ENV&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":if("production"!==process.env.NODE_ENV){var c=[],s=n.replace(xn,(function(e,t,n){var r="animation"+c.length;return c.push("const "+r+" = keyframes`"+n.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+r+"}"}));c.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(c,["`"+s+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+s+"`")}}if(null==t)return n;var l=t[n];return void 0!==l?l:n}var Mn,Nn,In=/label:\s*([^\s;\n{]+)\s*(;|$)/g;"production"!==process.env.NODE_ENV&&(Mn=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var Rn=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";Nn=void 0;var o,a=e[0];null==a||void 0===a.raw?(r=!1,i+=jn(n,t,a)):("production"!==process.env.NODE_ENV&&void 0===a[0]&&console.error(vn),i+=a[0]);for(var c=1;c<e.length;c++)i+=jn(n,t,e[c]),r&&("production"!==process.env.NODE_ENV&&void 0===a[c]&&console.error(vn),i+=a[c]);"production"!==process.env.NODE_ENV&&(i=i.replace(Mn,(function(e){return o=e,""}))),In.lastIndex=0;for(var s,l="";null!==(s=In.exec(i));)l+="-"+s[1];var u=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return"production"!==process.env.NODE_ENV?{name:u,styles:i,map:o,next:Nn,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:u,styles:i,next:Nn}},Ln="undefined"!=typeof document,Fn={}.hasOwnProperty,zn=i("undefined"!=typeof HTMLElement?an({key:"css"}):null);"production"!==process.env.NODE_ENV&&(zn.displayName="EmotionCacheContext"),zn.Provider;var Bn=function(e){return t((function(t,n){var r=o(zn);return e(t,r,n)}))};Ln||(Bn=function(e){return function(t){var r=o(zn);return null===r?(r=an({key:"css"}),n(zn.Provider,{value:r},e(t,r))):e(t,r)}});var qn=i({});"production"!==process.env.NODE_ENV&&(qn.displayName="EmotionThemeContext");var Hn="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Vn="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Un=function(){return null},Wn=Bn((function(e,t,i){var a=e.css;"string"==typeof a&&void 0!==t.registered[a]&&(a=t.registered[a]);var c=e[Hn],s=[a],l="";"string"==typeof e.className?l=hn(t.registered,s,e.className):null!=e.className&&(l=e.className+" ");var u=Rn(s,void 0,o(qn));if("production"!==process.env.NODE_ENV&&-1===u.name.indexOf("-")){var f=e[Vn];f&&(u=Rn([u,"label:"+f+";"]))}var p=mn(t,u,"string"==typeof c);l+=t.key+"-"+u.name;var d={};for(var h in e)!Fn.call(e,h)||"css"===h||h===Hn||"production"!==process.env.NODE_ENV&&h===Vn||(d[h]=e[h]);d.ref=i,d.className=l;var m=n(c,d),y=n(Un,null);if(!Ln&&void 0!==p){for(var v,g=u.name,b=u.next;void 0!==b;)g+=" "+b.name,b=b.next;y=n("style",((v={})["data-emotion"]=t.key+" "+g,v.dangerouslySetInnerHTML={__html:p},v.nonce=t.sheet.nonce,v))}return n(r,null,y,m)}));"production"!==process.env.NODE_ENV&&(Wn.displayName="EmotionCssPropInternal");var $n={exports:{}};!function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}($n);var Gn=!1,Yn=Bn((function(e,t){"production"===process.env.NODE_ENV||Gn||!e.className&&!e.css||(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),Gn=!0);var r=e.styles,i=Rn([r],void 0,o(qn));if(!Ln){for(var s,l=i.name,u=i.styles,f=i.next;void 0!==f;)l+=" "+f.name,u+=f.styles,f=f.next;var p=!0===t.compat,d=t.insert("",{name:l,styles:u},t.sheet,p);return p?null:n("style",((s={})["data-emotion"]=t.key+"-global "+l,s.dangerouslySetInnerHTML={__html:d},s.nonce=t.sheet.nonce,s))}var h=a();return c((function(){var e=t.key+"-global",n=new zt({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),r=!1,o=document.querySelector('style[data-emotion="'+e+" "+i.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==o&&(r=!0,o.setAttribute("data-emotion",e),n.hydrate([o])),h.current=[n,r],function(){n.flush()}}),[t]),c((function(){var e=h.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==i.next&&mn(t,i.next,!0),n.tags.length){var r=n.tags[n.tags.length-1].nextElementSibling;n.before=r,n.flush()}t.insert("",i,n,!1)}}),[t,i.name]),null}));function Xn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Rn(t)}"production"!==process.env.NODE_ENV&&(Yn.displayName="EmotionGlobal");var Zn=function e(t){for(var n=t.length,r=0,i="";r<n;r++){var o=t[r];if(null!=o){var a=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))a=e(o);else for(var c in"production"!==process.env.NODE_ENV&&void 0!==o.styles&&void 0!==o.name&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),a="",o)o[c]&&c&&(a&&(a+=" "),a+=c);break;default:a=o}a&&(i&&(i+=" "),i+=a)}}return i};var Kn=function(){return null},Jn=Bn((function(e,t){var i="",a="",c=!1,s=function(){if(c&&"production"!==process.env.NODE_ENV)throw new Error("css can only be used during render");for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=Rn(n,t.registered);if(Ln)mn(t,o,!1);else{var s=mn(t,o,!1);void 0!==s&&(i+=s)}return Ln||(a+=" "+o.name),t.key+"-"+o.name},l={css:s,cx:function(){if(c&&"production"!==process.env.NODE_ENV)throw new Error("cx can only be used during render");for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return function(e,t,n){var r=[],i=hn(e,r,n);return r.length<2?n:i+t(r)}(t.registered,s,Zn(n))},theme:o(qn)},u=e.children(l);c=!0;var f,p=n(Kn,null);Ln||0===i.length||(p=n("style",((f={})["data-emotion"]=t.key+" "+a.substring(1),f.dangerouslySetInnerHTML={__html:i},f.nonce=t.sheet.nonce,f)));return n(r,null,p,u)}));if("production"!==process.env.NODE_ENV&&(Jn.displayName="EmotionClassNames"),"production"!==process.env.NODE_ENV){var Qn="undefined"!=typeof document,er="undefined"!=typeof jest;if(Qn&&!er){var tr="undefined"!=typeof globalThis?globalThis:Qn?window:global,nr="__EMOTION_REACT_"+"11.7.1".split(".")[0]+"__";tr[nr]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),tr[nr]=!0}}k(".mdhui-layout {\n padding-bottom: env(safe-area-inset-bottom);\n color: var(--mdhui-text-color-1);\n}");var rr,ir,or,ar,cr,sr=Xn(rr||(rr=Ft(["\n:root {\n --mdhui-color-primary: #5381c3;\n --mdhui-color-success: #00AE42;\n --mdhui-color-warning: #FF671D;\n --mdhui-color-danger: #eb5546;\n --mdhui-fadein-animation: fadein 1s;\n}\n\n@media (prefers-reduced-motion) {\n --mdhui-fadein-animation: none;\n}\n\n@keyframes fadein {\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n}\n\n@-moz-keyframes fadein {\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n}\n\n@-webkit-keyframes fadein {\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n}"],["\n:root {\n --mdhui-color-primary: #5381c3;\n --mdhui-color-success: #00AE42;\n --mdhui-color-warning: #FF671D;\n --mdhui-color-danger: #eb5546;\n --mdhui-fadein-animation: fadein 1s;\n}\n\n@media (prefers-reduced-motion) {\n --mdhui-fadein-animation: none;\n}\n\n@keyframes fadein {\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n}\n\n@-moz-keyframes fadein {\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n}\n\n@-webkit-keyframes fadein {\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n}"]))),lr=Xn(ir||(ir=Ft(["\n:root {\n --mdhui-background-color-0: #fff;\n --mdhui-background-color-1: #f5f5f5;\n --mdhui-background-color-2: #ddd;\n\n --mdhui-border-color-0: #eee;\n --mdhui-border-color-1: #ddd;\n --mdhui-border-color-2: #bbb;\n\n --mdhui-text-color-0: #000;\n --mdhui-text-color-1: #333;\n --mdhui-text-color-2: #555;\n --mdhui-text-color-3: #999;\n --mdhui-text-color-4: #bbb;\n\n --mdhui-box-shadow-color-0: #ddd;\n --mdhui-box-shadow-color-1: #aaa;\n\n --mdhui-box-shadow-0: 0px 9px 9px 0px var(--mdhui-box-shadow-color-0);\n --mdhui-box-shadow-1: 0px 0px 5px 0px var(--mdhui-box-shadow-color-1);\n\n --mdhui-overlay-gradient:linear-gradient(to left, rgba(255, 255, 255, 0) 0%, rgba(255, 244, 240, 0.2) 100%);\n}\n"],["\n:root {\n --mdhui-background-color-0: #fff;\n --mdhui-background-color-1: #f5f5f5;\n --mdhui-background-color-2: #ddd;\n\n --mdhui-border-color-0: #eee;\n --mdhui-border-color-1: #ddd;\n --mdhui-border-color-2: #bbb;\n\n --mdhui-text-color-0: #000;\n --mdhui-text-color-1: #333;\n --mdhui-text-color-2: #555;\n --mdhui-text-color-3: #999;\n --mdhui-text-color-4: #bbb;\n\n --mdhui-box-shadow-color-0: #ddd;\n --mdhui-box-shadow-color-1: #aaa;\n\n --mdhui-box-shadow-0: 0px 9px 9px 0px var(--mdhui-box-shadow-color-0);\n --mdhui-box-shadow-1: 0px 0px 5px 0px var(--mdhui-box-shadow-color-1);\n\n --mdhui-overlay-gradient:linear-gradient(to left, rgba(255, 255, 255, 0) 0%, rgba(255, 244, 240, 0.2) 100%);\n}\n"]))),ur=Xn(or||(or=Ft(["\n:root {\n --mdhui-background-color-0: #2c2c2d;\n --mdhui-background-color-1: #1c1c1d;\n --mdhui-background-color-2: #000;\n\n --mdhui-border-color-0: #444446;\n --mdhui-border-color-1: #444;\n --mdhui-border-color-2: #555;\n\n --mdhui-text-color-0: #FFF;\n --mdhui-text-color-1: #FFF;\n --mdhui-text-color-2: #9e9ea5;\n --mdhui-text-color-3: #59595d;\n --mdhui-text-color-4: #59595d;\n\n --mdhui-box-shadow-color-0: #333;\n --mdhui-box-shadow-color-1: #666;\n \n --mdhui-box-shadow-0: 0px 0px 1px 1px var(--mdhui-border-color-0);\n --mdhui-box-shadow-1: 0px 0px 1px 1px var(--mdhui-border-color-0);\n\n --mdhui-overlay-gradient:linear-gradient(to left, rgba(0, 0, 0, 0) 0%, rgba(0, 11, 15, 0.2) 100%) !important;\n}"],["\n:root {\n --mdhui-background-color-0: #2c2c2d;\n --mdhui-background-color-1: #1c1c1d;\n --mdhui-background-color-2: #000;\n\n --mdhui-border-color-0: #444446;\n --mdhui-border-color-1: #444;\n --mdhui-border-color-2: #555;\n\n --mdhui-text-color-0: #FFF;\n --mdhui-text-color-1: #FFF;\n --mdhui-text-color-2: #9e9ea5;\n --mdhui-text-color-3: #59595d;\n --mdhui-text-color-4: #59595d;\n\n --mdhui-box-shadow-color-0: #333;\n --mdhui-box-shadow-color-1: #666;\n \n --mdhui-box-shadow-0: 0px 0px 1px 1px var(--mdhui-border-color-0);\n --mdhui-box-shadow-1: 0px 0px 1px 1px var(--mdhui-border-color-0);\n\n --mdhui-overlay-gradient:linear-gradient(to left, rgba(0, 0, 0, 0) 0%, rgba(0, 11, 15, 0.2) 100%) !important;\n}"]))),fr=Xn(ar||(ar=Ft(["\na {\n color: var(--mdhui-color-primary);\n}\n\nhtml {\n font-size: 17px;\n}\n\n@supports (font: -apple-system-body) {\n html {\n font: -apple-system-body !important;\n }\n}\n\nbody {\n padding: 0;\n margin: 0;\n font-family: ui-rounded, -apple-system, Helvetica, Arial, sans-serif;\n background: var(--mdhui-background-color-1);\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}"],["\na {\n color: var(--mdhui-color-primary);\n}\n\nhtml {\n font-size: 17px;\n}\n\n@supports (font: -apple-system-body) {\n html {\n font: -apple-system-body !important;\n }\n}\n\nbody {\n padding: 0;\n margin: 0;\n font-family: ui-rounded, -apple-system, Helvetica, Arial, sans-serif;\n background: var(--mdhui-background-color-1);\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}"]))),pr=i({colorScheme:"light",bodyBackgroundColor:"var(--mdhui-background-color-1)"});function dr(t){var n="mdhui-layout";t.className&&(n+=" "+t.className),t.bodyBackgroundColor?document.body.style.backgroundColor=t.bodyBackgroundColor:document.body.style.removeProperty("background-color"),t.statusBarStyle&&b.setStatusBarStyle(t.statusBarStyle);var r="light";"auto"===t.colorScheme&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?r="dark":"dark"!==t.colorScheme&&"light"!==t.colorScheme||(r=t.colorScheme);var i={colorScheme:r,bodyBackgroundColor:t.bodyBackgroundColor||"var(--mdhui-background-color-1)"};return e.createElement(pr.Provider,{value:i},e.createElement(Yn,{styles:sr}),t.primaryColor&&e.createElement(Yn,{styles:Xn(cr||(cr=Ft(["\n\t\t\t\t:root {\n\t\t\t\t\t--mdhui-color-primary: ",";\n\t\t\t\t}"],["\n\t\t\t\t:root {\n\t\t\t\t\t--mdhui-color-primary: ",";\n\t\t\t\t}"])),t.primaryColor)}),"dark"==i.colorScheme&&e.createElement(Yn,{styles:ur}),"light"==i.colorScheme&&e.createElement(Yn,{styles:lr}),!t.noGlobalStyles&&e.createElement(Yn,{styles:fr}),e.createElement("div",{className:n},t.stylesheetPath&&e.createElement("link",{rel:"stylesheet",type:"text/css",href:t.stylesheetPath}),t.children))}function hr(t){var n={};"dark"!=o(pr).colorScheme||t.selected||(n.filter="invert(1)");var r="mdhui-face";function i(){return 1==t.faceValue?"data:image/svg+xml,%3c%3fxml version='1.0' encoding='iso-8859-1'%3f%3e%3c!-- Generator: Adobe Illustrator 19.0.0%2c SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3e%3csvg version='1.1' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 368 368' style='enable-background:new 0 0 368 368%3b' xml:space='preserve'%3e%3cg%3e %3cg%3e %3cg%3e %3cpath d='M184%2c224c-29.824%2c0-58.232%2c12.632-77.96%2c34.664c-2.944%2c3.296-2.664%2c8.344%2c0.624%2c11.296c1.52%2c1.368%2c3.432%2c2.04%2c5.336%2c2.04 c2.192%2c0%2c4.384-0.896%2c5.96-2.664C134.656%2c250.688%2c158.728%2c240%2c184%2c240c25.28%2c0%2c49.352%2c10.688%2c66.04%2c29.336 c2.944%2c3.296%2c8.008%2c3.568%2c11.296%2c0.624c3.288-2.944%2c3.568-8%2c0.624-11.296C242.24%2c236.64%2c213.832%2c224%2c184%2c224z'/%3e %3cpath d='M184%2c0C82.536%2c0%2c0%2c82.544%2c0%2c184s82.536%2c184%2c184%2c184s184-82.544%2c184-184S285.464%2c0%2c184%2c0z M184%2c352 c-92.632%2c0-168-75.36-168-168S91.368%2c16%2c184%2c16s168%2c75.36%2c168%2c168S276.632%2c352%2c184%2c352z'/%3e %3cpath d='M280%2c128c-4.424%2c0-8%2c3.584-8%2c8c0%2c13.232-10.768%2c24-24%2c24s-24-10.768-24-24c0-4.416-3.576-8-8-8s-8%2c3.584-8%2c8 c0%2c22.056%2c17.944%2c40%2c40%2c40c22.056%2c0%2c40-17.944%2c40-40C288%2c131.584%2c284.424%2c128%2c280%2c128z'/%3e %3cpath d='M160%2c136c0-4.416-3.576-8-8-8s-8%2c3.584-8%2c8c0%2c13.232-10.768%2c24-24%2c24s-24-10.768-24-24c0-4.416-3.576-8-8-8s-8%2c3.584-8%2c8 c0%2c22.056%2c17.944%2c40%2c40%2c40C142.056%2c176%2c160%2c158.056%2c160%2c136z'/%3e %3c/g%3e %3c/g%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3c/svg%3e":2==t.faceValue?"data:image/svg+xml,%3c%3fxml version='1.0' encoding='iso-8859-1'%3f%3e%3c!-- Generator: Adobe Illustrator 19.0.0%2c SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3e%3csvg version='1.1' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 368 368' style='enable-background:new 0 0 368 368%3b' xml:space='preserve'%3e%3cg%3e %3cg%3e %3cg%3e %3cpath d='M184%2c0C82.544%2c0%2c0%2c82.544%2c0%2c184s82.544%2c184%2c184%2c184c101.464%2c0%2c184-82.544%2c184-184S285.464%2c0%2c184%2c0z M184%2c352 c-92.64%2c0-168-75.36-168-168S91.36%2c16%2c184%2c16c92.632%2c0%2c168%2c75.36%2c168%2c168S276.632%2c352%2c184%2c352z'/%3e %3cpath d='M144%2c152c0-13.232-10.768-24-24-24s-24%2c10.768-24%2c24s10.768%2c24%2c24%2c24S144%2c165.232%2c144%2c152z M112%2c152c0-4.408%2c3.592-8%2c8-8 s8%2c3.592%2c8%2c8s-3.592%2c8-8%2c8S112%2c156.408%2c112%2c152z'/%3e %3cpath d='M248%2c128c-13.232%2c0-24%2c10.768-24%2c24s10.768%2c24%2c24%2c24s24-10.768%2c24-24S261.232%2c128%2c248%2c128z M248%2c160 c-4.416%2c0-8-3.592-8-8s3.584-8%2c8-8c4.416%2c0%2c8%2c3.592%2c8%2c8S252.416%2c160%2c248%2c160z'/%3e %3cpath d='M184%2c224c-29.824%2c0-58.24%2c12.632-77.96%2c34.664c-2.944%2c3.296-2.664%2c8.352%2c0.624%2c11.296 c3.296%2c2.952%2c8.352%2c2.664%2c11.296-0.624C134.648%2c250.688%2c158.72%2c240%2c184%2c240c25.28%2c0%2c49.352%2c10.688%2c66.04%2c29.336 c1.576%2c1.768%2c3.768%2c2.664%2c5.96%2c2.664c1.896%2c0%2c3.816-0.672%2c5.336-2.04c3.288-2.944%2c3.568-8%2c0.624-11.296 C242.24%2c236.64%2c213.832%2c224%2c184%2c224z'/%3e %3c/g%3e %3c/g%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3c/svg%3e":3==t.faceValue?"data:image/svg+xml,%3c%3fxml version='1.0' encoding='iso-8859-1'%3f%3e%3c!-- Generator: Adobe Illustrator 19.0.0%2c SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3e%3csvg version='1.1' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 368 368' style='enable-background:new 0 0 368 368%3b' xml:space='preserve'%3e%3cg%3e %3cg%3e %3cg%3e %3cpath d='M184%2c0C82.544%2c0%2c0%2c82.544%2c0%2c184s82.544%2c184%2c184%2c184s184-82.544%2c184-184S285.456%2c0%2c184%2c0z M184%2c352 c-92.64%2c0-168-75.36-168-168S91.36%2c16%2c184%2c16s168%2c75.36%2c168%2c168S276.64%2c352%2c184%2c352z'/%3e %3cpath d='M120%2c176c13.232%2c0%2c24-10.768%2c24-24s-10.768-24-24-24s-24%2c10.768-24%2c24S106.768%2c176%2c120%2c176z M120%2c144 c4.408%2c0%2c8%2c3.592%2c8%2c8s-3.592%2c8-8%2c8s-8-3.592-8-8S115.592%2c144%2c120%2c144z'/%3e %3cpath d='M248%2c128c-13.232%2c0-24%2c10.768-24%2c24s10.768%2c24%2c24%2c24s24-10.768%2c24-24S261.232%2c128%2c248%2c128z M248%2c160 c-4.408%2c0-8-3.592-8-8s3.592-8%2c8-8c4.408%2c0%2c8%2c3.592%2c8%2c8S252.408%2c160%2c248%2c160z'/%3e %3cpath d='M264%2c224H104c-4.416%2c0-8%2c3.584-8%2c8c0%2c4.416%2c3.584%2c8%2c8%2c8h160c4.416%2c0%2c8-3.584%2c8-8C272%2c227.584%2c268.416%2c224%2c264%2c224z'/%3e %3c/g%3e %3c/g%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3c/svg%3e":4==t.faceValue?"data:image/svg+xml,%3c%3fxml version='1.0' encoding='iso-8859-1'%3f%3e%3c!-- Generator: Adobe Illustrator 19.0.0%2c SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3e%3csvg version='1.1' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 368 368' style='enable-background:new 0 0 368 368%3b' xml:space='preserve'%3e%3cg%3e %3cg%3e %3cg%3e %3cpath d='M184%2c0C82.544%2c0%2c0%2c82.544%2c0%2c184s82.544%2c184%2c184%2c184s184-82.544%2c184-184S285.456%2c0%2c184%2c0z M184%2c352 c-92.64%2c0-168-75.36-168-168S91.36%2c16%2c184%2c16s168%2c75.36%2c168%2c168S276.64%2c352%2c184%2c352z'/%3e %3cpath d='M144%2c152c0-13.232-10.768-24-24-24s-24%2c10.768-24%2c24s10.768%2c24%2c24%2c24S144%2c165.232%2c144%2c152z M112%2c152c0-4.408%2c3.592-8%2c8-8 s8%2c3.592%2c8%2c8s-3.592%2c8-8%2c8S112%2c156.408%2c112%2c152z'/%3e %3cpath d='M248%2c128c-13.232%2c0-24%2c10.768-24%2c24s10.768%2c24%2c24%2c24s24-10.768%2c24-24S261.232%2c128%2c248%2c128z M248%2c160 c-4.408%2c0-8-3.592-8-8s3.592-8%2c8-8c4.408%2c0%2c8%2c3.592%2c8%2c8S252.408%2c160%2c248%2c160z'/%3e %3cpath d='M261.336%2c226.04c-3.296-2.952-8.36-2.664-11.296%2c0.624C233.352%2c245.312%2c209.288%2c256%2c184%2c256 c-25.28%2c0-49.352-10.688-66.04-29.336c-2.952-3.288-8-3.576-11.296-0.624c-3.296%2c2.944-3.568%2c8-0.624%2c11.296 C125.76%2c259.368%2c154.176%2c272%2c184%2c272c29.832%2c0%2c58.248-12.64%2c77.96-34.664C264.904%2c234.04%2c264.624%2c228.984%2c261.336%2c226.04z'/%3e %3c/g%3e %3c/g%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3c/svg%3e":5==t.faceValue?"data:image/svg+xml,%3c%3fxml version='1.0' encoding='iso-8859-1'%3f%3e%3c!-- Generator: Adobe Illustrator 19.0.0%2c SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3e%3csvg version='1.1' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 368 368' style='enable-background:new 0 0 368 368%3b' xml:space='preserve'%3e%3cg%3e %3cg%3e %3cg%3e %3cpath d='M261.336%2c226.04c-3.296-2.952-8.36-2.664-11.296%2c0.624C233.352%2c245.312%2c209.288%2c256%2c184%2c256 c-25.28%2c0-49.352-10.688-66.04-29.336c-2.952-3.288-8-3.576-11.296-0.624c-3.296%2c2.944-3.568%2c8-0.624%2c11.296 C125.76%2c259.368%2c154.176%2c272%2c184%2c272c29.832%2c0%2c58.248-12.64%2c77.96-34.664C264.904%2c234.04%2c264.624%2c228.984%2c261.336%2c226.04z'/%3e %3cpath d='M184%2c0C82.544%2c0%2c0%2c82.544%2c0%2c184s82.544%2c184%2c184%2c184s184-82.544%2c184-184S285.456%2c0%2c184%2c0z M184%2c352 c-92.64%2c0-168-75.36-168-168S91.36%2c16%2c184%2c16s168%2c75.36%2c168%2c168S276.64%2c352%2c184%2c352z'/%3e %3cpath d='M248%2c128c-22.056%2c0-40%2c17.944-40%2c40c0%2c4.416%2c3.584%2c8%2c8%2c8c4.416%2c0%2c8-3.584%2c8-8c0-13.232%2c10.768-24%2c24-24s24%2c10.768%2c24%2c24 c0%2c4.416%2c3.584%2c8%2c8%2c8c4.416%2c0%2c8-3.584%2c8-8C288%2c145.944%2c270.056%2c128%2c248%2c128z'/%3e %3cpath d='M144%2c168c0%2c4.416%2c3.584%2c8%2c8%2c8s8-3.584%2c8-8c0-22.056-17.944-40-40-40c-22.056%2c0-40%2c17.944-40%2c40c0%2c4.416%2c3.584%2c8%2c8%2c8 s8-3.584%2c8-8c0-13.232%2c10.768-24%2c24-24S144%2c154.768%2c144%2c168z'/%3e %3c/g%3e %3c/g%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3c/svg%3e":void 0}return t.selected&&(r+=" mdhui-face-selected"),t.className&&(r+=" "+t.className),t.onClick?e.createElement(E,{className:r,onClick:t.onClick},e.createElement("img",{src:i(),style:n}),e.createElement(mr,null)):e.createElement("div",{className:r},e.createElement("img",{src:i(),style:n}),e.createElement(mr,null))}function mr(){return e.createElement("div",{className:"mdhui-shiny-overlay"})}k(".mdhui-shiny-overlay\n{\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n top: 0;\n background: var(--mdhui-overlay-gradient);\n pointer-events: none;\n}\n");function yr(t){var n=0;t.entries.forEach((function(e){e.value>n&&(n=e.value)}));var r=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}([],t.entries,!0).sort((function(e,t){return t.value-e.value||(e.label>t.label?1:t.label>e.label?-1:0)}));return e.createElement("div",{className:"mdhui-histogram "+(t.className||"")},r.map((function(t,r){return e.createElement("div",{className:"mdhui-histogram-entry"+(t.onSelect?" mdhui-histogram-entry-clickable":""),key:r,onClick:function(){var e;return null===(e=t.onSelect)||void 0===e?void 0:e.call(t)}},e.createElement("div",{className:"mdhui-histogram-entry-bar-wrapper"},e.createElement("div",{className:"mdhui-histogram-entry-bar",style:{background:t.color,width:t.value/n*100+"%"}},e.createElement(mr,null)),e.createElement("div",{className:"mdhui-histogram-entry-value",style:{width:8*n.toString().length+"px"}},t.value)),e.createElement("div",{className:"mdhui-histogram-entry-label"},t.label))})))}k(".mdhui-histogram\n{\n padding: 16px;\n}\n\n .mdhui-histogram .mdhui-histogram-entry\n {\n padding-top: 8px;\n font-size: 15px;\n }\n\n .mdhui-histogram .mdhui-histogram-entry.mdhui-histogram-entry-clickable\n {\n cursor: pointer;\n }\n\n .mdhui-histogram .mdhui-histogram-entry.mdhui-histogram-entry-clickable .mdhui-histogram-entry-label\n {\n text-decoration: underline;\n color: var(--mdhui-color-primary);\n }\n\n .mdhui-histogram .mdhui-histogram-entry-bar-wrapper\n {\n display: flex;\n }\n\n .mdhui-histogram .mdhui-histogram-entry-bar\n {\n position: relative;\n height: 16px;\n border-radius: 8px;\n }\n\n .mdhui-histogram .mdhui-histogram-entry-value\n {\n padding-left: 4px;\n line-height: 16px;\n font-size: 12px;\n font-weight: bold;\n }\n");k(".mdhui-navigation-bar {\n text-align: left;\n padding: 16px;\n padding-top: calc(56px + env(safe-area-inset-top, 0px));\n box-sizing: border-box;\n padding-bottom: 16px;\n position: -webkit-sticky;\n position: sticky;\n z-index: 2;\n top: 0;\n font-weight: bold;\n background: var(--mdhui-background-color-1);\n line-height: 1.2em;\n}\n\n.mdhui-navigation-bar .title {\n font-size: 1.2em;\n}\n\n.mdhui-navigation-bar.scroll-shadow {\n box-shadow: var(--mdhui-box-shadow-1);\n}\n\n.mdhui-navigation-bar .icon {\n width: 32px;\n vertical-align: middle;\n}\n\n.mdhui-navigation-bar .close-button {\n position: absolute;\n right: 16px;\n top: calc(16px + env(safe-area-inset-top, 0px));\n font-weight: normal;\n font-size: .88em;\n text-decoration: none;\n cursor: pointer;\n}\n\n.mdhui-navigation-bar .back-button {\n position: absolute;\n left: 16px;\n top: calc(16px + env(safe-area-inset-top, 0px));\n font-weight: normal;\n font-size: .88em;\n text-decoration: none;\n cursor: pointer;\n}\n\n.mdhui-navigation-bar.mdhui-navigation-bar-compressed {\n text-align: center;\n padding-top: calc(16px + env(safe-area-inset-top, 0px));\n font-size: 18px;\n\n}");var vr={back:"Back",close:"Close","connect-ehr-title-prefix":"Connect ","connect-ehr-title-divider":" or ","connect-ehr-title-providers":"Provider","connect-ehr-title-health-plans":"Health Plan","connect-ehr-connected":"We are receiving your EHR data!","connect-ehr-needs-attention":"One of your accounts requires attention.","connect-ehr-text":"Your electronic health records are an important source of information. They could help researchers make new discoveries. Connect your provider or health plan (ex: Medicare) with @@PROJECT_NAME@@.","connect-ehr-text-connected":"Thank you for sharing your EHR data with @@PROJECT_NAME@@. Connect another provider to share more data or manage your EHR connections.","connect-ehr-not-enabled":"EHR linking is not enabled for this project.","search-for-provider":"Search for Provider or Health Plan",reconnect:"Connection expired. Please reconnect.",connected:"Connected",search:"Search","connect-fitbit-intro":"You can share data from your Fitbit account if you have one. To begin, click or tap below to log in with your Fitbit credentials.","connect-fitbit-button":"Connect Fitbit","received-fitbit-data":"We are receiving your Fitbit data!","connect-garmin-intro":"You can share data from your Garmin account if you have one. To begin, click or tap below to log in with your Garmin credentials.","connect-garmin-button":"Connect Garmin","received-garmin-data":"We are receiving your Garmin data!","downloading-data":"Downloading data...","all-tasks-complete":"All Tasks Complete!","view-all":"View All",tasks:"Tasks","incomplete-tasks":"Incomplete Tasks","completed-tasks":"Completed Tasks",overdue:"Overdue","due-today":"Due Today","due-tomorrow":"Due Tomorrow",due:"Due","due-in":"Due in",days:"days",notifications:"Notifications",support:"Support","all-notifications":"All Notifications",steps:"Steps","resting-heart-rate":"Resting Heart Rate","distance-traveled":"Distance Traveled","google-fit-share":"Tap to share fitness data",devices:"Devices","last-sync":"Last synced",completed:"Completed","ehr-intro":"Your electronic health records (EHR) are an important source of information. If you help us gather your EHR, researchers will use this data to make discoveries.","external-accounts-title-divider":" / ","external-accounts-title-providers":"Providers","external-accounts-title-health-plans":"Health Plans","external-accounts-title-devices":"Devices","external-accounts-error":"One of your accounts requires attention","external-accounts-loading":"Your data is currently being downloaded from your linked health plans and providers. Please check back in a few moments to view your data.","external-account-authorization-expired":"Authorization expired","external-account-fetching-data":"Retrieving data...","external-account-deleting":"Removing...","external-account-last-updated":"Last updated","external-account-error":"Unexpected error","external-account-reconnect":"Reconnect","external-account-refresh":"Refresh","external-account-remove":"Remove","device-data-no-data":"If you have connected Apple Health, Google Fit, Fitbit, or Garmin, check back later to view your data.","no-notifications-received":"No notifications received","next-button-text":"Next","lab-results-title":"Lab Results","medications-title":"Medications","immunizations-title":"Immunizations","reports-title":"Reports","allergies-title":"Allergies","conditions-title":"Conditions","procedures-title":"Procedures","app-download-title":"Next: Download the App","app-download-subtitle":"Downloading the MyDataHelps app makes it even easier to participate in @@PROJECT_NAME@@.","app-download-google-play-link-alt":"Download on the Google Play Store","app-download-app-store-link-alt":"Download on the Apple App Store"},gr={back:"Atrás",close:"Cerrar","connect-ehr-title-prefix":"Conectar ","connect-ehr-title-divider":" o ","connect-ehr-title-providers":"proveedor","connect-ehr-title-health-plans":"plan de salud","connect-ehr-connected":"¡Estamos recibiendo su información de EHR!","connect-ehr-needs-attention":"Una de tus cuentas requiere atención.","connect-ehr-text":"Sus registros electrónicos de salud son una fuente de información importante. Con ellos, usted podría ayudar a los investigadores de la salud a realizar nuevos descubrimientos. Conecte a su proveedor o a su plan de salud (por ejemplo: Medicare) con @@PROJECT_NAME@@.","connect-ehr-text-connected":"Gracias por compartir tus datos de EHR con @@PROJECT_NAME@@. Conecta a otro proveedor para compartir más datos o administrar tus conexiones de EHR.","connect-ehr-not-enabled":"EHR enlacando no está habilitado para este proyecto.","search-for-provider":"Encontrar a mi Proveedor",reconnect:"Volver a conectar",connected:"Conectado",search:"Buscar","connect-fitbit-intro":"Si ya tiene una cuenta Fitbit, puede compartir información desde allí. Para empezar, presione el siguiente botón para ingresar a su cuenta de Fitbit:","connect-fitbit-button":"Conectar a Fitbit","received-fitbit-data":"¡Estamos recibiendo su información de Fitbit!","connect-garmin-intro":"Si ya tiene una cuenta Garmin, puede compartir información desde allí. Para empezar, presione el siguiente botón para ingresar a su cuenta de Garmin:","connect-garmin-button":"Conectar a Garmin","received-garmin-data":"¡Estamos recibiendo su información de Garmin!","downloading-data":"Descargando datos...","all-tasks-complete":"¡Todas las tareas terminadas!","view-all":"Ver todo",tasks:"Tareas","incomplete-tasks":"Tareas incompletas","completed-tasks":"Tareas completadas",overdue:"Vencidos","due-today":"Vence hoy","due-tomorrow":"Vence mañana",due:"Vence","due-in":"Vencido en",days:"dias",notifications:"Notificaciones",support:"Soporte","all-notifications":"Todas las notificaciones",steps:"Pasos","resting-heart-rate":"Ritmo cardíaco en reposo","distance-traveled":"Distancia Viajada","google-fit-share":"Toca para compartir datos de condición físic",devices:"Dispositivos","last-sync":"Última sincronización",completed:"Completadas","ehr-intro":"Sus registros de salud electrónicos son fuentes importantes de información. Pueden ayudar a investigadores hacer nuevos descubrimientos.","external-accounts-title-divider":" / ","external-accounts-title-providers":"Proveedores","external-accounts-title-health-plans":"Planes de Salud","external-accounts-title-devices":"Dispositivos","external-accounts-error":"Una de tus cuentas requiere atención","external-accounts-loading":"Actualmente tus datos se están descargando de tus planes de salud y proveedores vinculados. Por favor, vuelve a consultar en unos momentos para ver tus datos.","external-account-authorization-expired":"Venció la autorización","external-account-fetching-data":"Recuperando datos","external-account-deleting":"Eliminando...","external-account-last-updated":"Última actualización","external-account-error":"Error imprevisto","external-account-reconnect":"Volver a conectar","external-account-refresh":"Actualizar","external-account-remove":"Eliminar","device-data-no-data":"Si ha conectado Apple Health, Google Fit, Fitbit o Garmin, vuelva más tarde para ver sus datos.","no-notifications-received":"No se recibieron notificaciones.","next-button-text":"Siguiente","lab-results-title":"Resultados de laboratorio","medications-title":"Medicamentos","immunizations-title":"Vacunas","reports-title":"Informes","allergies-title":"Alergias","conditions-title":"Enfermedades","procedures-title":"Procedimientos","app-download-title":"Siguiente: Descarga la aplicación","app-download-subtitle":"La descarga de la aplicación MyDataHelps hace que sea aún más fácil participar en @@PROJECT_NAME@@.","app-download-google-play-link-alt":"Descargar en Google Play Store","app-download-app-store-link-alt":"Descargar en la tienda de aplicaciones de Apple"},br=b.getCurrentLanguage().toLowerCase().startsWith("es")?gr:vr;function xr(t){var n=a(null);c((function(){var e=n.current;function t(){window.scrollY>0?null==e||e.classList.add("scroll-shadow"):null==e||e.classList.remove("scroll-shadow")}return window.addEventListener("scroll",t),function(){window.removeEventListener("scroll",t)}}));var r=["mdhui-navigation-bar"];return t.className&&r.push(t.className),"compressed"==t.variant&&r.push("mdhui-navigation-bar-compressed"),e.createElement("div",{className:r.join(" "),ref:n},t.showBackButton&&e.createElement("a",{className:"back-button",href:"javascript:{}",onClick:function(){b.back()}},e.createElement(P,{icon:jt.faChevronLeft}),t.backButtonText?t.backButtonText:br.back),t.title&&e.createElement("div",{className:"title"},e.createElement("span",null,t.title)),t.showCloseButton&&e.createElement("a",{className:"close-button",href:"javascript:{}",onClick:function(){b.dismiss()}},t.closeButtonText?t.closeButtonText:br.close),t.children)}function wr(t){return t.children?e.createElement("div",{className:"mdhui-section "+(t.className||"")+(t.noTopMargin?" mdhui-section-no-top-margin":"")},t.children):null}k(".mdhui-section {\n margin-top: 16px;\n margin-bottom: 16px;\n background: var(--mdhui-background-color-0);\n box-shadow: var(--mdhui-box-shadow-0);\n animation: var(--mdhui-fadein-animation);\n -moz-animation: var(--mdhui-fadein-animation);\n -webkit-animation: var(--mdhui-fadein-animation);\n position: relative;\n}\n\n.mdhui-section:empty {\n display: none;\n}\n\n.mdhui-section.mdhui-section-no-top-margin {\n margin-top: 0;\n}");function kr(t){var n=100/t.segments.length;return e.createElement("div",{style:{borderColor:t.color},className:"mdhui-segmented-control "+(t.className||"")},t.segments.map((function(r){return e.createElement(E,{className:"mdhui-segment "+(r.key==t.selectedSegment?"mdhui-segment-selected":""),key:r.key,onClick:function(){return t.onSegmentSelected(r.key)},style:{width:n+"%",color:r.key==t.selectedSegment?void 0:t.color,backgroundColor:r.key==t.selectedSegment?t.color:void 0}},r.key==t.selectedSegment&&e.createElement(mr,null),r.title)})))}k(".mdhui-segmented-control\n{\n border-radius: 32px;\n border: solid 1px var(--mdhui-color-primary);\n background: var(--mdhui-background-color-0);\n overflow: hidden;\n padding: 1px;\n}\n\n .mdhui-segmented-control .mdhui-segment\n {\n display: inline-block;\n font-size: .7em;\n cursor: pointer;\n text-align: center;\n padding: 8px;\n box-sizing: border-box;\n font-weight: bold;\n color: var(--mdhui-color-primary);\n position: relative;\n border-radius: 32px;\n overflow: hidden;\n vertical-align: top;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .mdhui-segmented-control .mdhui-segment:last-child\n {\n border: none;\n }\n\n .mdhui-segmented-control .mdhui-segment.mdhui-segment-selected\n {\n background: var(--mdhui-color-primary);\n color: #FFF;\n }\n");var Er={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="repeat",n=[128257],r="f363",i="M0 224c0 17.7 14.3 32 32 32s32-14.3 32-32c0-53 43-96 96-96H320v32c0 12.9 7.8 24.6 19.8 29.6s25.7 2.2 34.9-6.9l64-64c12.5-12.5 12.5-32.8 0-45.3l-64-64c-9.2-9.2-22.9-11.9-34.9-6.9S320 19.1 320 32V64H160C71.6 64 0 135.6 0 224zm512 64c0-17.7-14.3-32-32-32s-32 14.3-32 32c0 53-43 96-96 96H192V352c0-12.9-7.8-24.6-19.8-29.6s-25.7-2.2-34.9 6.9l-64 64c-12.5 12.5-12.5 32.8 0 45.3l64 64c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6V448H352c88.4 0 160-71.6 160-160z";e.definition={prefix:"fas",iconName:t,icon:[512,512,n,r,i]},e.faRepeat=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=i,e.aliases=n}(Er);var Sr={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="trash",n=[],r="f1f8",i="M135.2 17.7L128 32H32C14.3 32 0 46.3 0 64S14.3 96 32 96H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H320l-7.2-14.3C307.4 6.8 296.3 0 284.2 0H163.8c-12.1 0-23.2 6.8-28.6 17.7zM416 128H32L53.2 467c1.6 25.3 22.6 45 47.9 45H346.9c25.3 0 46.3-19.7 47.9-45L416 128z";e.definition={prefix:"fas",iconName:t,icon:[448,512,n,r,i]},e.faTrash=e.definition,e.prefix="fas",e.iconName=t,e.width=448,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=i,e.aliases=n}(Sr);function _r(t){var n=b.getCurrentLanguage().toLowerCase().startsWith("es")?Ct:Ze,r=s(""),i=r[0],o=r[1];function a(){return i||t.externalAccount.status}return e.createElement("div",{className:"mdhui-single-external-account"},e.createElement("div",{className:"external-account-header"},t.externalAccount.provider.logoUrl&&e.createElement("img",{alt:t.externalAccount.provider.name,src:t.externalAccount.provider.logoUrl,className:"external-account-provider-logo"}),!t.externalAccount.provider.logoUrl&&e.createElement("div",{className:"external-account-provider-name"},t.externalAccount.provider.name),"deleting"!==a()&&"fetchingData"!==a()&&e.createElement(E,{className:"delete-button",onClick:function(){o("deleting"),b.deleteExternalAccount(t.externalAccount.id).then((function(){t.onAccountRemoved(t.externalAccount)})).catch((function(){o("")}))},title:br["external-account-remove"]},e.createElement(P,{icon:Sr.faTrash}))),e.createElement("div",{className:"external-account-status"},"unauthorized"===a()&&e.createElement("p",null,e.createElement("span",{className:"error"},br["external-account-authorization-expired"])),"fetchingData"===a()&&e.createElement("p",null,e.createElement(P,{icon:M.faRefresh,spin:!0})," ",br["external-account-fetching-data"]),"fetchComplete"===a()&&e.createElement("p",null,br["external-account-last-updated"]," ",e.createElement("strong",null,ut(pt(t.externalAccount.lastRefreshDate),new Date,{locale:n}))),"error"===a()&&e.createElement("p",{className:"error"},br["external-account-error"]),("fetchComplete"===a()||"error"===a())&&e.createElement("p",null,e.createElement("a",{href:"javascript:{}",onClick:function(){o("fetchingData"),b.refreshExternalAccount(t.externalAccount.id).then()}},e.createElement(P,{icon:Er.faRepeat})," ",br["external-account-refresh"])),"unauthorized"===a()&&e.createElement("p",null,e.createElement("a",{href:"javascript:{}",onClick:function(){return t.onReconnectAccount(t.externalAccount)}},e.createElement(P,{icon:Er.faRepeat})," ",br["external-account-reconnect"])),"deleting"===a()&&e.createElement("p",null,e.createElement(P,{icon:M.faRefresh,spin:!0})," ",br["external-account-deleting"])))}k(".mdhui-single-external-account {\n position: relative;\n overflow: hidden;\n background: var(--mdhui-background-color-0);\n}\n\n.mdhui-single-external-account .external-account-header {\n position: relative;\n padding: 8px;\n font-weight: bold;\n border-bottom: solid 1px var(--mdhui-border-color-0);\n}\n\n.mdhui-single-external-account .external-account-header .delete-button {\n position: absolute;\n right: 0;\n top: 0;\n cursor: pointer;\n padding: 16px;\n color: var(--mdhui-text-color-4);\n width: auto;\n font-size: .88em;\n border: none;\n background: none;\n height: 100%;\n}\n\n.mdhui-single-external-account .external-account-header .external-account-provider-logo {\n height: 24px;\n display: block;\n background: #FFF;\n padding: 8px;\n border-radius: 8px;\n}\n\n.mdhui-single-external-account .external-account-header .external-account-provider-name {\n font-size: 1em;\n font-weight: bold;\n}\n\n.mdhui-single-external-account .external-account-status {\n padding: 16px;\n padding-bottom: 0;\n padding-top: 0;\n font-size: .88em;\n}\n\n.mdhui-single-external-account .external-account-status p {\n margin-bottom: 16px;\n margin-top: 16px;\n}\n\n.mdhui-single-external-account .external-account-status a {\n cursor: pointer;\n text-decoration: none;\n}\n\n.mdhui-single-external-account .external-account-status .error {\n color: var(--mdhui-color-danger);\n}");function Or(t){var n,r;var i=b.getCurrentLanguage().toLowerCase().startsWith("es")?Ct:Ze;return e.createElement("div",{className:"mdhui-single-notification"},(null===(n=t.notification.content)||void 0===n?void 0:n.title)&&e.createElement("div",{className:"notification-title"},t.notification.content.title),(null===(r=t.notification.content)||void 0===r?void 0:r.body)&&e.createElement("div",{className:"notification-body"},t.notification.content.body),e.createElement("div",{className:"notification-date"},function(e){return e.charAt(0).toUpperCase()+e.slice(1)}(ut(pt(t.notification.sentDate),new Date,{locale:i}))))}k(".mdhui-single-notification\n{\n padding: 16px;\n border-bottom: solid 1px var(--mdhui-border-color-0);\n position: relative;\n}\n\n .mdhui-single-notification:last-child\n {\n border: none;\n }\n\n .mdhui-single-notification > .notification-title\n {\n font-weight: bold;\n }\n\n .mdhui-single-notification > .notification-body\n {\n font-size: .88em;\n }\n\n .mdhui-single-notification > .notification-date\n {\n color: var(--mdhui-text-color-2);\n margin-top: 16px;\n font-size: .75em;\n }\n");k(".mdhui-single-survey-task\n{\n padding: 16px;\n display: grid;\n grid-template-columns: max-content auto max-content;\n grid-column-gap: 16px;\n align-items: center;\n width: 100%;\n}\n\n .mdhui-single-survey-task .status-icon\n {\n color: var(--mdhui-text-color-3);\n }\n\n .mdhui-single-survey-task.complete .status-icon\n {\n color: var(--mdhui-color-success);\n }\n\n .mdhui-single-survey-task .survey-name\n {\n font-size: .88em;\n font-weight: bold;\n }\n\n .mdhui-single-survey-task .survey-description,\n .mdhui-single-survey-task .completed-date\n {\n font-size: .88em;\n color: var(--mdhui-text-color-2);\n }\n\n .mdhui-single-survey-task .due-date\n {\n font-size: .88em;\n color: var(--mdhui-color-primary);\n }\n\n .mdhui-single-survey-task .due-date.warning\n {\n color: var(--mdhui-color-warning);\n font-weight: bold;\n }\n\n .mdhui-single-survey-task .due-date.danger\n {\n color: var(--mdhui-color-danger);\n font-weight: bold;\n }\n\n .mdhui-single-survey-task .indicator\n {\n font-size: 16px;\n color: var(--mdhui-text-color-3);\n }\n\n .mdhui-single-survey-task.incomplete\n {\n cursor: pointer;\n }\n");var Ar={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="circle-check",n=[61533,"check-circle"],r="f058",i="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z";e.definition={prefix:"fas",iconName:t,icon:[512,512,n,r,i]},e.faCircleCheck=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=i,e.aliases=n}(Ar);var Cr={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="circle-half-stroke",n=[9680,"adjust"],r="f042",i="M448 256c0-106-86-192-192-192V448c106 0 192-86 192-192zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z";e.definition={prefix:"fas",iconName:t,icon:[512,512,n,r,i]},e.faCircleHalfStroke=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=i,e.aliases=n}(Cr);var Tr={};function Pr(t){var n=function(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()},r=new Date,i=Y(new Date,{days:1}),o="",a="",c=b.getCurrentLanguage().toLowerCase().startsWith("es")?Ct:Ze;if(t.task.dueDate){var s=pt(t.task.dueDate);if(n(s,i))o=br["due-tomorrow"],a="warning";else if(n(s,r))o=br["due-today"],a="warning";else if(ft(r,s))o=br.overdue,a="danger";else{var l;l=function(e,t){return H(1,arguments),st(e,Date.now(),t)}(new Date(t.task.dueDate),{locale:c}),o=br["due-in"]+" "+l}}return"incomplete"==t.task.status?e.createElement(E,{className:"mdhui-single-survey-task incomplete",onClick:function(){return e=t.task.surveyName,void(t.disableClick||b.startSurvey(e));var e}},e.createElement("div",{className:"status-icon"},t.task.hasSavedProgress&&e.createElement(P,{icon:Cr.faCircleHalfStroke}),!t.task.hasSavedProgress&&e.createElement(P,{icon:Tr.faCircle})),e.createElement("div",null,e.createElement("div",{className:"survey-name"},t.task.surveyDisplayName),e.createElement("div",{className:"survey-description"},e.createElement(e.Fragment,null,t.descriptionIcon," ",t.task.surveyDescription)),!t.hideDueDate&&o&&e.createElement("div",{className:"due-date "+a},o)),e.createElement("div",{className:"indicator"},e.createElement(P,{icon:A.faChevronRight}))):"complete"==t.task.status&&t.task.endDate?e.createElement("div",{className:"mdhui-single-survey-task complete"},e.createElement("div",{className:"status-icon"},e.createElement(P,{icon:Ar.faCircleCheck})),e.createElement("div",null,e.createElement("div",{className:"survey-name"},t.task.surveyDisplayName),e.createElement("div",{className:"completed-date"},br.completed," ",ut(pt(t.task.endDate),new Date,{locale:c})))):null}!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="circle",n=[128308,128309,128992,128993,128994,128995,128996,9679,9898,9899,11044,61708,61915],r="f111",i="M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z";e.definition={prefix:"far",iconName:t,icon:[512,512,n,r,i]},e.faCircle=e.definition,e.prefix="far",e.iconName=t,e.width=512,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=i,e.aliases=n}(Tr);function Dr(t){var n=100/t.bars.length;return e.createElement("div",{className:"mdhui-spark-bar-chart"},e.createElement("div",{className:"mdhui-spark-bar-chart-average",style:{bottom:100*t.averageFillPercent+"%"}}),e.createElement("div",{className:"mdhui-spark-bar-chart-bars"},t.bars.map((function(t,r){return e.createElement("div",{key:r,className:"mdhui-spark-bar-chart-bar",style:{backgroundColor:t.color,height:100*t.barFillPercent+"%",width:n+"%",left:n*r+"%"}},e.createElement(mr,null))}))))}k(".mdhui-spark-bar-chart\n{\n position: relative;\n height: 72px;\n}\n\n .mdhui-spark-bar-chart .mdhui-spark-bar-chart-bars\n {\n margin-left: 8px;\n width: calc( 100% - 16px);\n position: relative;\n height: 100%;\n }\n\n .mdhui-spark-bar-chart .mdhui-spark-bar-chart-bars .mdhui-spark-bar-chart-bar\n {\n position: absolute;\n bottom: 0;\n z-index: 2;\n }\n\n .mdhui-spark-bar-chart .mdhui-spark-bar-chart-average\n {\n border-top: dashed 1px var(--mdhui-border-color-1);\n position: absolute;\n left: 0px;\n right: 0px;\n z-index: 1;\n }\n");function jr(t){return e.createElement(E,{onClick:function(){return t.onValueChanged(!t.isOn)},className:"mdhui-switch"+(t.isOn?" mdhui-switch-on":"")+(t.className?" "+t.className:""),style:{backgroundColor:t.isOn?t.onBackgroundColor:"var(--mdhui-background-color-2)"}},e.createElement("div",{className:"mdhui-switch-circle"}))}k(".mdhui-switch {\n border: 1px solid var(--mdhui-background-color-2);\n border-radius: 20px;\n cursor: pointer;\n display: inline-block;\n height: 30px;\n position: relative;\n vertical-align: middle;\n width: 50px;\n background: --mdhui-background-color-2;\n -webkit-box-sizing: content-box;\n -moz-box-sizing: content-box;\n box-sizing: content-box;\n -webkit-background-clip: content-box;\n background-clip: content-box;\n transition: background-color .5s;\n}\n\n.mdhui-switch.mdhui-switch-on {\n background: var(--mdhui-color-primary);\n}\n\n.mdhui-switch .mdhui-switch-circle {\n background: #fff;\n border-radius: 100%;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);\n height: 30px;\n position: absolute;\n top: 0;\n width: 30px;\n}\n\n.mdhui-switch.mdhui-switch-on .mdhui-switch-circle {\n right: 0;\n}");function Mr(t){var n=o(pr),r={backgroundColor:n.bodyBackgroundColor};return t.color&&(r={backgroundColor:t.color}),t.color||"dark"!==n.colorScheme||b.setStatusBarStyle("lightContent"),e.createElement("div",{className:"mdhui-status-bar-background",style:r})}k(".mdhui-status-bar-background {\n position: sticky;\n position: -webkit-sticky;\n left: 0;\n top: 0;\n right: 0;\n height: env(safe-area-inset-top);\n width: 100%;\n z-index: 1;\n background: var(--mdhui-background-color-0);\n}");function Nr(t){return t.children?e.createElement("div",{className:"mdhui-text-block "+(t.className||"")},t.children):null}k(".mdhui-text-block\n{\n margin: 16px;\n font-size: .88em;\n line-height: 1.3em;\n}\n");function Ir(t){var n=["mdhui-tracker-item"];t.onClick&&n.push("selectable"),t.selected?n.push("selected"):n.push("unselected"),t.bordered&&n.push("bordered"),t.className&&n.push(t.className);var r={borderColor:t.color,color:t.color,backgroundColor:t.color};return t.onClick?e.createElement(E,{className:n.join(" "),style:r,onClick:function(){return t.onClick?t.onClick():null}},t.text,t.selected&&e.createElement(mr,null),t.badge&&t.selected&&e.createElement("div",{className:"badge"},t.badge)):e.createElement("div",{className:n.join(" "),style:r,onClick:function(){return t.onClick?t.onClick():null}},t.text,t.selected&&e.createElement(mr,null),t.badge&&t.selected&&e.createElement("div",{className:"badge"},t.badge))}k(".mdhui-tracker-item {\n padding: 8px;\n padding-right: 16px;\n padding-left: 16px;\n color: var(--mdhui-background-color-0);\n border-radius: 32px;\n font-size: .88em;\n display: inline-block;\n margin: 8px;\n position: relative;\n border: solid 1px #000;\n user-select: none;\n}\n\n.mdhui-tracker-item.selectable {\n cursor: pointer;\n}\n\n.mdhui-tracker-item.selected {\n box-shadow: var(--mdhui-box-shadow-1);\n color: #FFF !important;\n background-color: inherit;\n}\n\n.mdhui-tracker-item.unselected {\n background-color: var(--mdhui-background-color-0) !important;\n}\n\n.mdhui-tracker-item .mdhui-shiny-overlay {\n border-radius: 32px;\n}\n\n.mdhui-tracker-item.bordered .mdhui-shiny-overlay {\n left: 1px;\n right: 1px;\n bottom: 1px;\n top: 1px;\n border: solid 2px #FFF;\n}\n\n.mdhui-tracker-item .badge {\n position: absolute;\n right: -4px;\n top: -4px;\n border-radius: 32px;\n padding: 3px;\n background: linear-gradient(to bottom, #555 0%, #888 100%);\n font-size: .5em;\n font-weight: bold;\n text-align: center;\n min-width: 10px;\n user-select: none;\n font-size: .62em;\n}");function Rr(t){var n=a(null);l((function(){var e;if(t.onStartDateChange){var r=function(e){var i,o,a,c;0==(null===(i=n.current)||void 0===i?void 0:i.scrollLeft)?(t.onStartDateChange(Y(t.startDate,{weeks:-1})),null===(o=n.current)||void 0===o||o.removeEventListener("scroll",r)):(null===(a=n.current)||void 0===a?void 0:a.scrollLeft)==2*window.innerWidth&&(t.onStartDateChange(Y(t.startDate,{weeks:1})),null===(c=n.current)||void 0===c||c.removeEventListener("scroll",r))};return null===(e=n.current)||void 0===e||e.addEventListener("scroll",r),function(){var e;null===(e=n.current)||void 0===e||e.removeEventListener("scroll",r)}}}),[t.startDate]);for(var r=[],i=[],o=[],c=Y(t.startDate,{days:-7}),s=0;s<21;s++)s<7?r.push(c):s<14?i.push(c):o.push(c),c=Y(c,{days:1});function u(t){return e.createElement("div",{className:"mdhui-week-calendar-date-label"},e.createElement("div",{className:"mdhui-week-calendar-day-of-week"}," ",nt(t,"E").substr(0,1)),e.createElement("div",{className:"mdhui-week-calendar-day-of-month"},nt(t,"d")))}function f(e){var n=["mdhui-week-calendar-day"];return e>new Date?n.push("mdhui-week-calendar-day-future"):t.onDateSelected&&n.push("mdhui-week-calendar-day-selectable"),t.selectedDate&<(e).substr(0,10)==lt(t.selectedDate).substr(0,10)&&n.push("mdhui-week-calendar-day-selected"),n}return l((function(){n.current&&(n.current.scrollLeft=window.innerWidth)})),n.current&&(n.current.scrollLeft=window.innerWidth),e.createElement("div",{className:"mdhui-week-calendar",ref:n},t.loading&&e.createElement("div",{className:"mdhui-week-calendar-loading"},e.createElement(I,null)),e.createElement("div",{className:"mdhui-week-calendar-week"},r.map((function(n){return e.createElement("div",{key:n.getTime(),className:"mdhui-week-calendar-day"},t.dayRenderer(n.getFullYear(),n.getMonth(),n.getDate(),!1),!t.hideDateLabel&&u(n))}))),e.createElement("div",{className:"mdhui-week-calendar-week"},i.map((function(n){return e.createElement(E,{key:n.getTime(),className:f(n).join(" "),onClick:function(){return function(e){e>new Date||t.onDateSelected&&t.onDateSelected(e)}(n)}},t.dayRenderer(n.getFullYear(),n.getMonth(),n.getDate(),!0),!t.hideDateLabel&&u(n))}))),Y(t.startDate,{days:7})<new Date&&e.createElement("div",{className:"mdhui-week-calendar-week"},o.map((function(n){return e.createElement("div",{key:n.getTime(),className:f(n).join(" ")},t.dayRenderer(n.getFullYear(),n.getMonth(),n.getDate(),!1),!t.hideDateLabel&&u(n))}))))}k(".mdhui-week-calendar {\n background: var(--mdhui-background-color-0);\n overflow-x: scroll;\n overflow-y: hidden;\n z-index: 0;\n position: relative;\n display: flex;\n scroll-snap-type: x mandatory;\n scrollbar-width: none;\n border-top: solid 1px var(--mdhui-border-color-1);\n border-bottom: solid 1px var(--mdhui-border-color-1);\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-loading {\n position: absolute;\n width: 100%;\n left: 100%;\n top: calc(50% - 10px);\n}\n\n.mdhui-week-calendar * {\n user-select: none;\n}\n\n.mdhui-week-calendar::-webkit-scrollbar {\n display: none;\n /* Safari and Chrome */\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-week {\n min-width: 100%;\n scroll-snap-align: start;\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-day {\n width: calc(14.28% - 1px);\n border-left: solid 1px var(--mdhui-border-color-1);\n overflow: hidden;\n position: relative;\n display: inline-block;\n vertical-align: top;\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-day:first-child {\n width: 14.28%;\n border-left: none;\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-date-label {\n padding-top: 4px;\n line-height: 16px;\n padding-bottom: 8px;\n text-align: center;\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-date-label .mdhui-week-calendar-day-of-week {\n font-size: 10px;\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-date-label .mdhui-week-calendar-day-of-month {\n font-size: 14px;\n display: inline-block;\n text-align: center;\n width: 24px;\n height: 24px;\n border-radius: 24px;\n line-height: 24px;\n margin-top: 2px;\n margin-bottom: 2px;\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-day-selectable {\n cursor: pointer;\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-day-selected {\n background: var(--mdhui-background-color-2);\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-day-selected .mdhui-week-calendar-date-label .mdhui-week-calendar-day-of-month {\n background-color: var(--mdhui-color-primary);\n color: #FFF;\n font-weight: bold;\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-day-future>* {\n opacity: .4;\n}");k(".mdhui-connect-ehr {\n background: var(--mdhui-background-color-0);\n position: relative;\n width: 100%;\n text-align: left;\n border: none;\n font-size: 1em;\n line-height: 1.2em;\n cursor: pointer;\n}\n\n.mdhui-connect-ehr .error-content {\n padding: 16px;\n}\n\n.mdhui-connect-ehr .content {\n margin-top: 16px;\n font-size: .88em;\n color: var(--mdhui-text-color-2);\n}\n\n.mdhui-connect-ehr .connection-status {\n padding-top: 16px;\n}\n\n.mdhui-connect-ehr .connection-status .success svg {\n color: var(--mdhui-color-success);\n}\n\n.mdhui-connect-ehr .connection-status .warning {\n color: var(--mdhui-color-danger);\n}");var Lr={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Ar;e.definition={prefix:t.prefix,iconName:t.iconName,icon:[t.width,t.height,t.aliases,t.unicode,t.svgPathData]},e.faCheckCircle=e.definition,e.prefix=t.prefix,e.iconName=t.iconName,e.width=t.width,e.height=t.height,e.ligatures=t.aliases,e.unicode=t.unicode,e.svgPathData=t.svgPathData,e.aliases=t.aliases}(Lr);var Fr={};function zr(t){var n=s(!0),r=n[0],i=n[1],o=s(!1),a=o[0],c=o[1],u=s(null),f=u[0],p=u[1],d=s(!1),h=d[0],m=d[1],y=s(!1),v=y[0],g=y[1];function x(){if(t.previewState){if("notEnabled"==t.previewState)return;return c(!0),p("PROJECT"),"enabledConnected"==t.previewState?(m(!0),g(!1)):"enabledNeedsAttention"==t.previewState&&(m(!0),g(!0)),void i(!1)}b.getDataCollectionSettings().then((function(e){c(e.ehrEnabled),e.ehrEnabled&&b.getProjectInfo().then((function(e){p(e.name),b.getExternalAccounts().then((function(e){e=e.filter((function(e){return-1!=["Provider","Health Plan"].indexOf(e.provider.category)})),m(e.length>0),g(e.some((function(e){return"unauthorized"==e.status||"error"==e.status}))),i(!1)}))}))}))}return l((function(){return x(),b.on("applicationDidBecomeVisible",x),b.on("externalAccountSyncComplete",x),function(){b.off("applicationDidBecomeVisible",x),b.off("externalAccountSyncComplete",x)}}),[]),a?r?null:e.createElement(D,{bottomBorder:t.bottomBorder,title:br["connect-ehr-title-prefix"]+br["connect-ehr-title-providers"]+br["connect-ehr-title-divider"]+br["connect-ehr-title-health-plans"],className:"mdhui-connect-ehr",onClick:function(){"preview"==t.applicationUrl?console.log("PREVIEW: Opening the connect EHR application."):b.openApplication(t.applicationUrl)}},h?e.createElement(e.Fragment,null,e.createElement("div",{className:"connection-status"},v?e.createElement("div",{className:"warning"},e.createElement(P,{icon:Fr.faTriangleExclamation})," ",br["connect-ehr-needs-attention"]):e.createElement("div",{className:"success"},e.createElement(P,{icon:Lr.faCheckCircle})," ",br["connect-ehr-connected"])),e.createElement("div",{className:"content"},br["connect-ehr-text-connected"].replace("@@PROJECT_NAME@@",f))):e.createElement("div",{className:"content"},br["connect-ehr-text"].replace("@@PROJECT_NAME@@",f))):"displayError"==t.disabledBehavior?e.createElement("div",{className:"mdhui-connect-ehr"},e.createElement("div",{className:"error-content"},br["connect-ehr-not-enabled"])):null}!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="triangle-exclamation",n=[9888,"exclamation-triangle","warning"],r="f071",i="M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480H40c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24V296c0 13.3 10.7 24 24 24s24-10.7 24-24V184c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z";e.definition={prefix:"fas",iconName:t,icon:[512,512,n,r,i]},e.faTriangleExclamation=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=i,e.aliases=n}(Fr);var Br={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Fr;e.definition={prefix:t.prefix,iconName:t.iconName,icon:[t.width,t.height,t.aliases,t.unicode,t.svgPathData]},e.faExclamationTriangle=e.definition,e.prefix=t.prefix,e.iconName=t.iconName,e.width=t.width,e.height=t.height,e.ligatures=t.aliases,e.unicode=t.unicode,e.svgPathData=t.svgPathData,e.aliases=t.aliases}(Br);function qr(t){var n=s(!0),r=n[0],i=n[1],o=s(!1),a=o[0],c=o[1],u=s(null),f=u[0],p=u[1];function d(e){return e.replace("{device}",t.providerName.toLowerCase())}function h(){if(t.previewState)return"notEnabled"==t.previewState?void i(!1):(c(!0),"notConnected"==t.previewState||p({id:1,lastRefreshDate:lt(Y(new Date,{hours:-1})),status:t.previewState,provider:{name:t.providerName,category:"Device Manufacturer",id:t.providerIDCallback(),logoUrl:""}}),void i(!1));b.getDataCollectionSettings().then((function(e){c(e[t.dataCollectionProperty]),e[t.dataCollectionProperty]?b.getExternalAccounts().then((function(e){for(var n=0;n<e.length;n++)e[n].provider.id==t.providerIDCallback()&&p(e[n]);i(!1)})):i(!1)}))}function m(){b.connectExternalAccount(t.providerIDCallback())}l((function(){return h(),b.on("applicationDidBecomeVisible",h),b.on("externalAccountSyncComplete",h),function(){b.off("applicationDidBecomeVisible",h),b.off("externalAccountSyncComplete",h)}}),[]);var y=null==f?void 0:f.status;if("fetchComplete"==(null==f?void 0:f.status)){var v=Y(pt(f.lastRefreshDate),{hours:3});ft(new Date,v)&&(b.refreshExternalAccount(f.id),y="fetchingData")}return a?e.createElement("div",{className:"mdhui-connect-device"},t.title&&e.createElement(Dt,{title:t.title}),r&&e.createElement(I,null),!r&&e.createElement("div",{className:"content"},!f&&e.createElement("div",null,e.createElement("div",{className:"subtitle"},br[d("connect-{device}-intro")]),e.createElement(R,{onClick:function(){return m()}},br[d("connect-{device}-button")])),f&&"fetchComplete"==y&&e.createElement("div",{className:"subtitle success"},e.createElement(P,{icon:Lr.faCheckCircle})," ",br[d("received-{device}-data")]),f&&"fetchingData"==y&&e.createElement("div",{className:"subtitle downloading"},e.createElement(P,{icon:M.faRefresh,spin:!0})," ",br["downloading-data"]),f&&"unauthorized"==y&&e.createElement("div",null,e.createElement("div",{className:"subtitle reconnect"},e.createElement(P,{icon:Br.faExclamationTriangle})," ",br.reconnect),e.createElement(R,{onClick:function(){return m()}},br[d("connect-{device}-button")])))):"displayError"!=t.disabledBehavior||r?null:e.createElement("div",{className:"mdhui-connect-device"},e.createElement("div",{className:"content"},t.title," is not enabled for this project."))}function Hr(t){return e.createElement(qr,{title:"Fitbit",providerName:"Fitbit",dataCollectionProperty:"fitbitEnabled",providerIDCallback:function(){var e=564;return b.baseUrl&&!b.baseUrl.startsWith("https://mdhorg.ce.dev")||(e=2),t.fitbitProviderID&&(e=t.fitbitProviderID),e},previewState:t.previewState,disabledBehavior:t.disabledBehavior})}function Vr(t){return e.createElement(qr,{title:"Garmin",providerName:"Garmin",dataCollectionProperty:"garminEnabled",providerIDCallback:function(){var e=6327;return b.baseUrl&&!b.baseUrl.startsWith("https://mdhorg.ce.dev")||(e=1384),t.garminProviderID&&(e=t.garminProviderID),e},previewState:t.previewState,disabledBehavior:t.disabledBehavior})}k(".mdhui-connect-device .title {\n font-weight: bold;\n}\n\n.mdhui-connect-device .subtitle {\n font-size: .88em;\n font-weight: normal;\n color: var(--mdhui-text-color-2);\n}\n\n.mdhui-connect-device .subtitle.reconnect {\n color: var(--mdhui-color-danger);\n font-weight: bold;\n}\n\n.mdhui-connect-device .subtitle.success svg {\n color: var(--mdhui-color-success);\n}\n\n.mdhui-connect-device .mdhui-button {\n margin-top: 16px;\n}\n\n.mdhui-connect-device .content {\n padding: 16px;\n}\n");k(".mdhui-device-data-month-chart {\n position: relative;\n}\n\n.mdhui-device-data-month-chart .title {\n padding: 16px;\n padding-bottom: 0;\n position: relative;\n font-weight: bold;\n float: left;\n}\n\n.mdhui-device-data-month-chart .average {\n font-weight: normal;\n float: right;\n font-size: .7em;\n padding: 16px;\n padding-top: 21px;\n padding-bottom: 0;\n}\n\n.mdhui-device-data-month-chart .average .average-value {\n font-weight: bold;\n}\n\n\n.mdhui-device-data-month-chart .chart-container {\n padding: 16px;\n height: 150px;\n position: relative;\n}\n\n.mdhui-device-data-month-chart .no-data-label,\n.mdhui-device-data-month-chart .mdhui-loading-indicator {\n position: absolute;\n left: 0;\n top: calc(50% - 40px);\n text-align: center;\n width: 100%;\n font-size: .88em;\n color: var(--mdhui-text-color-2);\n box-sizing: border-box;\n padding: 16px;\n}\n\n.mdhui-device-data-month-chart .recharts-cartesian-axis-tick {\n font-size: 11px;\n}\n\n.mdhui-device-data-month-chart .recharts-cartesian-axis-tick-value {\n fill: var(--mdhui-text-color-2);\n}\n\n.mdhui-device-data-month-chart .graph-tooltip {\n padding: 4px;\n font-size: 12px;\n background: var(--mdhui-background-color-0);\n border-radius: 5px;\n box-shadow: var(--mdhui-box-shadow-0);\n animation: fadein 1s;\n -moz-animation: fadein 1s;\n -webkit-animation: fadein 1s;\n border: solid 1px var(--mdhui-border-color-0);\n}\n\n.mdhui-device-data-month-chart .graph-tooltip .graph-date {\n padding: 4px;\n}\n\n.mdhui-device-data-month-chart .graph-tooltip table {\n border-spacing: 0;\n border-collapse: collapse;\n}\n\n.mdhui-device-data-month-chart .graph-tooltip table tr:nth-child(odd) {\n background: var(--mdhui-background-color-2);\n}\n\n.mdhui-device-data-month-chart .graph-tooltip table th {\n padding: 4px;\n padding-right: 8px;\n text-align: left;\n font-weight: normal;\n}\n\n.mdhui-device-data-month-chart .graph-tooltip table td {\n padding: 4px;\n text-align: left;\n font-weight: bold;\n}\n\n.mdhui-device-data-month-chart .recharts-cartesian-axis-tick {\n fill: var(--mdhui-text-color-1);\n}");var Ur,Wr={exports:{}};
|
|
10
10
|
/*!
|
|
11
11
|
Copyright (c) 2018 Jed Watson.
|
|
12
12
|
Licensed under the MIT License (MIT), see
|
|
@@ -204,5 +204,5 @@ var i=n[t];i.value*=-1,this.$=i}},table:function(e){for(var t=[],n=e.len,r=e.sym
|
|
|
204
204
|
38:14,
|
|
205
205
|
/*! Conditions:: INITIAL */
|
|
206
206
|
/*! Rule:: $ */
|
|
207
|
-
39:1},rules:[/^(?:(--[\d\-A-Za-z]*))/,/^(?:\s+)/,/^(?:\*)/,/^(?:\/)/,/^(?:\+)/,/^(?:-)/,/^(?:(\d+(\.\d*)?|\.\d+)px\b)/,/^(?:(\d+(\.\d*)?|\.\d+)cm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)mm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)in\b)/,/^(?:(\d+(\.\d*)?|\.\d+)pt\b)/,/^(?:(\d+(\.\d*)?|\.\d+)pc\b)/,/^(?:(\d+(\.\d*)?|\.\d+)deg\b)/,/^(?:(\d+(\.\d*)?|\.\d+)grad\b)/,/^(?:(\d+(\.\d*)?|\.\d+)rad\b)/,/^(?:(\d+(\.\d*)?|\.\d+)turn\b)/,/^(?:(\d+(\.\d*)?|\.\d+)s\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ms\b)/,/^(?:(\d+(\.\d*)?|\.\d+)Hz\b)/,/^(?:(\d+(\.\d*)?|\.\d+)kHz\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dpi\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dpcm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dppx\b)/,/^(?:(\d+(\.\d*)?|\.\d+)em\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ex\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ch\b)/,/^(?:(\d+(\.\d*)?|\.\d+)rem\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vw\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vh\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vmin\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vmax\b)/,/^(?:(\d+(\.\d*)?|\.\d+)%)/,/^(?:(\d+(\.\d*)?|\.\d+)\b)/,/^(?:(calc))/,/^(?:(var))/,/^(?:([a-z]+))/,/^(?:\()/,/^(?:\))/,/^(?:,)/,/^(?:$)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39],inclusive:!0}}};return t}();function a(){this.yy={}}return i.lexer=o,a.prototype=i,i.Parser=a,new a}();void 0!==Tx&&(e.parser=t,e.Parser=t.Parser,e.parse=function(){return t.parse.apply(t,arguments)})}(Px);var Dx={},jx={exports:{}},Mx={px:{px:1,cm:96/2.54,mm:96/25.4,in:96,pt:96/72,pc:16},cm:{px:2.54/96,cm:1,mm:.1,in:2.54,pt:2.54/72,pc:2.54/6},mm:{px:25.4/96,cm:10,mm:1,in:25.4,pt:25.4/72,pc:25.4/6},in:{px:1/96,cm:1/2.54,mm:1/25.4,in:1,pt:1/72,pc:1/6},pt:{px:.75,cm:72/2.54,mm:72/25.4,in:72,pt:1,pc:12},pc:{px:6/96,cm:6/2.54,mm:6/25.4,in:6,pt:6/72,pc:1},deg:{deg:1,grad:.9,rad:180/Math.PI,turn:360},grad:{deg:400/360,grad:1,rad:200/Math.PI,turn:400},rad:{deg:Math.PI/180,grad:Math.PI/200,rad:1,turn:2*Math.PI},turn:{deg:1/360,grad:1/400,rad:.5/Math.PI,turn:1},s:{s:1,ms:.001},ms:{s:1e3,ms:1},Hz:{Hz:1,kHz:1e3},kHz:{Hz:.001,kHz:1},dpi:{dpi:1,dpcm:1/2.54,dppx:1/96},dpcm:{dpi:2.54,dpcm:1,dppx:2.54/96},dppx:{dpi:96,dpcm:96/2.54,dppx:1}},Nx=function(e,t,n,r){if(!Mx.hasOwnProperty(n))throw new Error("Cannot convert to "+n);if(!Mx[n].hasOwnProperty(t))throw new Error("Cannot convert from "+t+" to "+n);var i=Mx[n][t]*e;return!1!==r?(r=Math.pow(10,parseInt(r)||5),Math.round(i*r)/r):i};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e&&e.__esModule?e:{default:e}}(Nx);t.default=function(e,t,r){switch(e.type){case"LengthValue":case"AngleValue":case"TimeValue":case"FrequencyValue":case"ResolutionValue":return function(e,t,r){t.type===e.type&&(t={type:e.type,value:(0,n.default)(t.value,t.unit,e.unit,r),unit:e.unit});return{left:e,right:t}}(e,t,r);default:return{left:e,right:t}}},e.exports=t.default}(jx,jx.exports);var Ix=jx.exports;Object.defineProperty(Dx,"__esModule",{value:!0}),Dx.flip=Bx;var Rx=function(e){return e&&e.__esModule?e:{default:e}}(Ix);function Lx(e,t){return"MathExpression"===e.type?function(e,t){switch(e=function(e,t){var n=(0,Rx.default)(e.left,e.right,t),r=Lx(n.left,t),i=Lx(n.right,t);"MathExpression"===r.type&&"MathExpression"===i.type&&("/"===r.operator&&"*"===i.operator||"-"===r.operator&&"+"===i.operator||"*"===r.operator&&"/"===i.operator||"+"===r.operator&&"-"===i.operator)&&(Fx(r.right,i.right)?n=(0,Rx.default)(r.left,i.left,t):Fx(r.right,i.left)&&(n=(0,Rx.default)(r.left,i.right,t)),r=Lx(n.left,t),i=Lx(n.right,t));return e.left=r,e.right=i,e}(e,t),e.operator){case"+":case"-":return function(e,t){var n=e,r=n.left,i=n.right,o=n.operator;if("CssVariable"===r.type||"CssVariable"===i.type)return e;if(0===i.value)return r;if(0===r.value&&"+"===o)return i;if(0===r.value&&"-"===o)return qx(i);r.type===i.type&&zx(r.type)&&((e=Object.assign({},r)).value="+"===o?r.value+i.value:r.value-i.value);if(zx(r.type)&&("+"===i.operator||"-"===i.operator)&&"MathExpression"===i.type){if(r.type===i.left.type)return(e=Object.assign({},e)).left=Lx({type:"MathExpression",operator:o,left:r,right:i.left},t),e.right=i.right,e.operator="-"===o?Bx(i.operator):i.operator,Lx(e,t);if(r.type===i.right.type)return(e=Object.assign({},e)).left=Lx({type:"MathExpression",operator:"-"===o?Bx(i.operator):i.operator,left:r,right:i.right},t),e.right=i.left,Lx(e,t)}if("MathExpression"===r.type&&("+"===r.operator||"-"===r.operator)&&zx(i.type)){if(i.type===r.left.type)return(e=Object.assign({},r)).left=Lx({type:"MathExpression",operator:o,left:r.left,right:i},t),Lx(e,t);if(i.type===r.right.type)return e=Object.assign({},r),"-"===r.operator?(e.right=Lx({type:"MathExpression",operator:"-"===o?"+":"-",left:i,right:r.right},t),e.operator="-"===o?"-":"+"):e.right=Lx({type:"MathExpression",operator:o,left:r.right,right:i},t),e.right.value<0&&(e.right.value*=-1,e.operator="-"===e.operator?"+":"-"),Lx(e,t)}return e}(e,t);case"/":return function(e,t){if(!zx(e.right.type))return e;if("Value"!==e.right.type)throw new Error('Cannot divide by "'+e.right.unit+'", number expected');if(0===e.right.value)throw new Error("Cannot divide by zero");if("MathExpression"===e.left.type)return zx(e.left.left.type)&&zx(e.left.right.type)?(e.left.left.value/=e.right.value,e.left.right.value/=e.right.value,Lx(e.left,t)):e;if(zx(e.left.type))return e.left.value/=e.right.value,e.left;return e}(e,t);case"*":return function(e){if("MathExpression"===e.left.type&&"Value"===e.right.type){if(zx(e.left.left.type)&&zx(e.left.right.type))return e.left.left.value*=e.right.value,e.left.right.value*=e.right.value,e.left}else{if(zx(e.left.type)&&"Value"===e.right.type)return e.left.value*=e.right.value,e.left;if("Value"===e.left.type&&"MathExpression"===e.right.type){if(zx(e.right.left.type)&&zx(e.right.right.type))return e.right.left.value*=e.left.value,e.right.right.value*=e.left.value,e.right}else if("Value"===e.left.type&&zx(e.right.type))return e.right.value*=e.left.value,e.right}return e}(e)}return e}(e,t):"Calc"===e.type?Lx(e.value,t):e}function Fx(e,t){return e.type===t.type&&e.value===t.value}function zx(e){switch(e){case"LengthValue":case"AngleValue":case"TimeValue":case"FrequencyValue":case"ResolutionValue":case"EmValue":case"ExValue":case"ChValue":case"RemValue":case"VhValue":case"VwValue":case"VminValue":case"VmaxValue":case"PercentageValue":case"Value":return!0}return!1}function Bx(e){return"+"===e?"-":"+"}function qx(e){return zx(e.type)?e.value=-e.value:"MathExpression"==e.type&&(e.left=qx(e.left),e.right=qx(e.right)),e}Dx.default=Lx;var Hx={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=o(t,n);return"MathExpression"===t.type&&(r=e+"("+r+")"),r};var n=Dx,r={"*":0,"/":0,"+":1,"-":1};function i(e,t){if(!1!==t){var n=Math.pow(10,t);return Math.round(e*n)/n}return e}function o(e,t){switch(e.type){case"MathExpression":var a=e.left,c=e.right,s=e.operator,l="";return"MathExpression"===a.type&&r[s]<r[a.operator]?l+="("+o(a,t)+")":l+=o(a,t),l+=" "+e.operator+" ","MathExpression"===c.type&&r[s]<r[c.operator]?l+="("+o(c,t)+")":"MathExpression"===c.type&&"-"===s&&["+","-"].includes(c.operator)?(c.operator=(0,n.flip)(c.operator),l+=o(c,t)):l+=o(c,t),l;case"Value":return i(e.value,t);case"CssVariable":return e.fallback?"var("+e.value+", "+o(e.fallback,t)+")":"var("+e.value+")";case"Calc":return e.prefix?"-"+e.prefix+"-calc("+o(e.value,t)+")":"calc("+o(e.value,t)+")";default:return i(e.value,t)+e.unit}}e.exports=t.default}(Hx,Hx.exports);var Vx=Hx.exports;!function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=a(Cx),r=Px,i=a(Dx),o=a(Vx);function a(e){return e&&e.__esModule?e:{default:e}}var c=/((?:\-[a-z]+\-)?calc)/;t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;return(0,n.default)(e).walk((function(e){if("function"===e.type&&c.test(e.value)){var a=n.default.stringify(e.nodes);if(!(a.indexOf("constant")>=0||a.indexOf("env")>=0)){var s=r.parser.parse(a),l=(0,i.default)(s,t);e.type="word",e.value=(0,o.default)(e.value,l,t)}}}),!0).toString()},e.exports=t.default}(px,px.exports);var Ux=_(px.exports);function Wx(e){return Wx="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},Wx(e)}function $x(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 Gx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$x(Object(n),!0).forEach((function(t){Yx(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Yx(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Wx(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Wx(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Wx(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xx(e){return function(e){if(Array.isArray(e))return Zx(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Zx(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 Zx(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 Zx(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Kx={widthCache:{},cacheCount:0},Jx={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Qx=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","lineHeight","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],ew="recharts_measurement_span";var tw=function(e){return Object.keys(e).reduce((function(t,n){return"".concat(t).concat(function(e){return e.split("").reduce((function(e,t){return t===t.toUpperCase()?[].concat(Xx(e),["-",t.toLowerCase()]):[].concat(Xx(e),[t])}),[]).join("")}(n),":").concat((r=n,i=e[n],Qx.indexOf(r)>=0&&i===+i?"".concat(i,"px"):i),";");var r,i}),"")},nw=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||db.isSsr)return{width:0,height:0};var n="".concat(e),r=tw(t),i="".concat(n,"-").concat(r);if(Kx.widthCache[i])return Kx.widthCache[i];try{var o=document.getElementById(ew);o||((o=document.createElement("span")).setAttribute("id",ew),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var a=Gx(Gx({},Jx),t);Object.keys(a).map((function(e){return o.style[e]=a[e],e})),o.textContent=n;var c=o.getBoundingClientRect(),s={width:c.width,height:c.height};return Kx.widthCache[i]=s,++Kx.cacheCount>2e3&&(Kx.cacheCount=0,Kx.widthCache={}),s}catch(e){return{width:0,height:0}}},rw=["dx","dy","textAnchor","verticalAnchor","scaleToFit","angle","lineHeight","capHeight","className","breakAll"];function iw(e){return iw="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},iw(e)}function ow(){return ow=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ow.apply(this,arguments)}function aw(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function cw(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,vw(r.key),r)}}function sw(e,t){return sw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},sw(e,t)}function lw(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=fw(e);if(t){var i=fw(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===iw(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return uw(e)}(this,n)}}function uw(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fw(e){return fw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fw(e)}function pw(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,c=[],s=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return dw(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 dw(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 dw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function hw(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 mw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hw(Object(n),!0).forEach((function(t){yw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yw(e,t,n){return(t=vw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vw(e){var t=function(e,t){if("object"!==iw(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==iw(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===iw(t)?t:String(t)}var gw=/[ \f\n\r\t\v\u2028\u2029]+/,bw=function(e){try{var t=[];return Sa(e.children)||(t=e.breakAll?e.children.toString().split(""):e.children.toString().split(gw)),{wordsWithComputedWidth:t.map((function(t){return{word:t,width:nw(t,e.style).width}})),spaceWidth:e.breakAll?0:nw(" ",e.style).width}}catch(e){return null}},xw=function(e){return[{words:Sa(e)?[]:e.toString().split(gw)}]},ww=function(e,t){if((e.width||e.scaleToFit)&&!db.isSsr&&t){var n=bw(e);return n?function(e,t,n,r,i){var o=Fa(e.maxLines),a=e.children,c=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(e,t){var o=t.word,a=t.width,c=e[e.length-1];if(c&&(null==r||i||c.width+a+n<r))c.words.push(o),c.width+=a+n;else{var s={words:[o],width:a};e.push(s)}return e}),[])},s=c(t);if(!o)return s;for(var l,u=function(t){var n=a.slice(0,t),i=bw(mw(mw({},e),{},{children:n+"…"})).wordsWithComputedWidth,o=c(i),s=o.length>e.maxLines||function(e){return e.reduce((function(e,t){return e.width>t.width?e:t}))}(o).width>r;return[s,o]},f=0,p=a.length-1,d=0;f<=p&&d<=a.length-1;){var h=Math.floor((f+p)/2),m=pw(u(h-1),2),y=m[0],v=m[1],g=pw(u(h),1)[0];if(y||g||(f=h+1),y&&g&&(p=h-1),!y&&g){l=v;break}d++}return l||s}(e,n.wordsWithComputedWidth,n.spaceWidth,e.width,e.scaleToFit):xw(e.children)}return xw(e.children)},kw=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sw(e,t)}(a,g);var n,r,i,o=lw(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return yw(uw(e=o.call.apply(o,[this].concat(n))),"state",{}),e}return n=a,r=[{key:"render",value:function(){var t=this.props,n=t.dx,r=t.dy,i=t.textAnchor,o=t.verticalAnchor,c=t.scaleToFit,s=t.angle,l=t.lineHeight,u=t.capHeight,f=t.className,p=t.breakAll,d=aw(t,rw),h=this.state.wordsByLines;if(!za(d.x)||!za(d.y))return null;var m,y=d.x+(Fa(n)?n:0),v=d.y+(Fa(r)?r:0);switch(o){case"start":m=Ux("calc(".concat(u,")"));break;case"middle":m=Ux("calc(".concat((h.length-1)/2," * -").concat(l," + (").concat(u," / 2))"));break;default:m=Ux("calc(".concat(h.length-1," * -").concat(l,")"))}var g=[];if(c){var b=h[0].width,x=this.props.width;g.push("scale(".concat((Fa(x)?x/b:1)/b,")"))}return s&&g.push("rotate(".concat(s,", ").concat(y,", ").concat(v,")")),g.length&&(d.transform=g.join(" ")),e.createElement("text",ow({},hc(d,!0),{x:y,y:v,className:$r("recharts-text",f),textAnchor:i,fill:d.fill.includes("url")?a.defaultProps.fill:d.fill}),h.map((function(t,n){return e.createElement("tspan",{x:y,dy:0===n?m:l,key:n},t.words.join(p?"":" "))})))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){if(e.width!==t.prevWidth||e.scaleToFit!==t.prevScaleToFit||e.children!==t.prevChildren||e.style!==t.prevStyle||e.breakAll!==t.prevBreakAll){var n=e.children!==t.prevChildren||e.style!==t.prevStyle||e.breakAll!==t.prevBreakAll;return{prevWidth:e.width,prevScaleToFit:e.scaleToFit,prevChildren:e.children,prevStyle:e.style,wordsByLines:ww(e,n)}}return null}}],r&&cw(n.prototype,r),i&&cw(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();yw(kw,"defaultProps",{x:0,y:0,lineHeight:"1em",capHeight:"0.71em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",fill:"#808080"});var Ew=iu;var Sw=_((function(e,t){return Ew(e,t)})),_w=Si;var Ow=function(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],a=t(o);if(null!=a&&(void 0===c?a==a&&!_w(a):n(a,c)))var c=a,s=o}return s};var Aw=function(e,t){return e>t},Cw=Ow,Tw=Aw,Pw=Lu;var Dw=function(e){return e&&e.length?Cw(e,Pw,Tw):void 0},jw=_(Dw);var Mw=function(e,t){return e<t},Nw=Ow,Iw=Mw,Rw=Lu;var Lw=function(e){return e&&e.length?Nw(e,Rw,Iw):void 0},Fw=_(Lw),zw=ta,Bw=Zu,qw=fg,Hw=mi;var Vw=ng,Uw=function(e,t){return(Hw(e)?zw:qw)(e,Bw(t))};var Ww=_((function(e,t){return Vw(Uw(e,t),1)}));function $w(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Gw(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Yw(e){let t,n,r;function i(e,r,i=0,o=e.length){if(i<o){if(0!==t(r,r))return o;do{const t=i+o>>>1;n(e[t],r)<0?i=t+1:o=t}while(i<o)}return i}return 2!==e.length?(t=$w,n=(t,n)=>$w(e(t),n),r=(t,n)=>e(t)-n):(t=e===$w||e===Gw?e:Xw,n=e,r=e),{left:i,center:function(e,t,n=0,o=e.length){const a=i(e,t,n,o-1);return a>n&&r(e[a-1],t)>-r(e[a],t)?a-1:a},right:function(e,r,i=0,o=e.length){if(i<o){if(0!==t(r,r))return o;do{const t=i+o>>>1;n(e[t],r)<=0?i=t+1:o=t}while(i<o)}return i}}}function Xw(){return 0}function Zw(e){return null===e?NaN:+e}const Kw=Yw($w).right;Yw(Zw).center;class Jw extends Map{constructor(e,t=ek){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(Qw(this,e))}has(e){return super.has(Qw(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){const r=t(n);e.has(r)&&(n=e.get(r),e.delete(r));return n}(this,e))}}function Qw({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function ek(e){return null!==e&&"object"==typeof e?e.valueOf():e}function tk(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:e>t?1:0)}const nk=Math.sqrt(50),rk=Math.sqrt(10),ik=Math.sqrt(2);function ok(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=nk?10:o>=rk?5:o>=ik?2:1;let c,s,l;return i<0?(l=Math.pow(10,-i)/a,c=Math.round(e*l),s=Math.round(t*l),c/l<e&&++c,s/l>t&&--s,l=-l):(l=Math.pow(10,i)*a,c=Math.round(e/l),s=Math.round(t/l),c*l<e&&++c,s*l>t&&--s),s<c&&.5<=n&&n<2?ok(e,t,2*n):[c,s,l]}function ak(e,t,n){if(!((n=+n)>0))return[];if((e=+e)===(t=+t))return[e];const r=t<e,[i,o,a]=r?ok(t,e,n):ok(e,t,n);if(!(o>=i))return[];const c=o-i+1,s=new Array(c);if(r)if(a<0)for(let e=0;e<c;++e)s[e]=(o-e)/-a;else for(let e=0;e<c;++e)s[e]=(o-e)*a;else if(a<0)for(let e=0;e<c;++e)s[e]=(i+e)/-a;else for(let e=0;e<c;++e)s[e]=(i+e)*a;return s}function ck(e,t,n){return ok(e=+e,t=+t,n=+n)[2]}function sk(e,t,n){n=+n;const r=(t=+t)<(e=+e),i=r?ck(t,e,n):ck(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function lk(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n<t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function uk(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function fk(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=void 0===i?tk:function(e=$w){if(e===$w)return tk;if("function"!=typeof e)throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||0===r?r:(0===e(n,n))-(0===e(t,t))}}(i);r>n;){if(r-n>600){const o=r-n+1,a=t-n+1,c=Math.log(o),s=.5*Math.exp(2*c/3),l=.5*Math.sqrt(c*s*(o-s)/o)*(a-o/2<0?-1:1);fk(e,t,Math.max(n,Math.floor(t-a*s/o+l)),Math.min(r,Math.floor(t+(o-a)*s/o+l)),i)}const o=e[t];let a=n,c=r;for(pk(e,n,t),i(e[r],o)>0&&pk(e,n,r);a<c;){for(pk(e,a,c),++a,--c;i(e[a],o)<0;)++a;for(;i(e[c],o)>0;)--c}0===i(e[n],o)?pk(e,n,c):(++c,pk(e,c,r)),c<=t&&(n=c+1),t<=c&&(r=c-1)}return e}function pk(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function dk(e,t,n=Zw){if((r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),a=+n(e[o],o,e);return a+(+n(e[o+1],o+1,e)-a)*(i-o)}}function hk(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function mk(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}const yk=Symbol("implicit");function vk(){var e=new Jw,t=[],n=[],r=yk;function i(i){let o=e.get(i);if(void 0===o){if(r!==yk)return r;e.set(i,o=t.push(i)-1)}return n[o%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new Jw;for(const r of n)e.has(r)||e.set(r,t.push(r)-1);return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return vk(t,n).unknown(r)},hk.apply(i,arguments),i}function gk(){var e,t,n=vk().unknown(void 0),r=n.domain,i=n.range,o=0,a=1,c=!1,s=0,l=0,u=.5;function f(){var n=r().length,f=a<o,p=f?a:o,d=f?o:a;e=(d-p)/Math.max(1,n-s+2*l),c&&(e=Math.floor(e)),p+=(d-p-e*(n-s))*u,t=e*(1-s),c&&(p=Math.round(p),t=Math.round(t));var h=function(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),o=new Array(i);++r<i;)o[r]=e+r*n;return o}(n).map((function(t){return p+e*t}));return i(f?h.reverse():h)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),f()):r()},n.range=function(e){return arguments.length?([o,a]=e,o=+o,a=+a,f()):[o,a]},n.rangeRound=function(e){return[o,a]=e,o=+o,a=+a,c=!0,f()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(c=!!e,f()):c},n.padding=function(e){return arguments.length?(s=Math.min(1,l=+e),f()):s},n.paddingInner=function(e){return arguments.length?(s=Math.min(1,e),f()):s},n.paddingOuter=function(e){return arguments.length?(l=+e,f()):l},n.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),f()):u},n.copy=function(){return gk(r(),[o,a]).round(c).paddingInner(s).paddingOuter(l).align(u)},hk.apply(f(),arguments)}function bk(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return bk(t())},e}function xk(){return bk(gk.apply(null,arguments).paddingInner(1))}function wk(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function kk(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Ek(){}var Sk=.7,_k=1/Sk,Ok="\\s*([+-]?\\d+)\\s*",Ak="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ck="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Tk=/^#([0-9a-f]{3,8})$/,Pk=new RegExp(`^rgb\\(${Ok},${Ok},${Ok}\\)$`),Dk=new RegExp(`^rgb\\(${Ck},${Ck},${Ck}\\)$`),jk=new RegExp(`^rgba\\(${Ok},${Ok},${Ok},${Ak}\\)$`),Mk=new RegExp(`^rgba\\(${Ck},${Ck},${Ck},${Ak}\\)$`),Nk=new RegExp(`^hsl\\(${Ak},${Ck},${Ck}\\)$`),Ik=new RegExp(`^hsla\\(${Ak},${Ck},${Ck},${Ak}\\)$`),Rk={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Lk(){return this.rgb().formatHex()}function Fk(){return this.rgb().formatRgb()}function zk(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Tk.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Bk(t):3===n?new Uk(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?qk(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?qk(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=Pk.exec(e))?new Uk(t[1],t[2],t[3],1):(t=Dk.exec(e))?new Uk(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=jk.exec(e))?qk(t[1],t[2],t[3],t[4]):(t=Mk.exec(e))?qk(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Nk.exec(e))?Zk(t[1],t[2]/100,t[3]/100,1):(t=Ik.exec(e))?Zk(t[1],t[2]/100,t[3]/100,t[4]):Rk.hasOwnProperty(e)?Bk(Rk[e]):"transparent"===e?new Uk(NaN,NaN,NaN,0):null}function Bk(e){return new Uk(e>>16&255,e>>8&255,255&e,1)}function qk(e,t,n,r){return r<=0&&(e=t=n=NaN),new Uk(e,t,n,r)}function Hk(e){return e instanceof Ek||(e=zk(e)),e?new Uk((e=e.rgb()).r,e.g,e.b,e.opacity):new Uk}function Vk(e,t,n,r){return 1===arguments.length?Hk(e):new Uk(e,t,n,null==r?1:r)}function Uk(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Wk(){return`#${Xk(this.r)}${Xk(this.g)}${Xk(this.b)}`}function $k(){const e=Gk(this.opacity);return`${1===e?"rgb(":"rgba("}${Yk(this.r)}, ${Yk(this.g)}, ${Yk(this.b)}${1===e?")":`, ${e})`}`}function Gk(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Yk(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Xk(e){return((e=Yk(e))<16?"0":"")+e.toString(16)}function Zk(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Jk(e,t,n,r)}function Kk(e){if(e instanceof Jk)return new Jk(e.h,e.s,e.l,e.opacity);if(e instanceof Ek||(e=zk(e)),!e)return new Jk;if(e instanceof Jk)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,c=o-i,s=(o+i)/2;return c?(a=t===o?(n-r)/c+6*(n<r):n===o?(r-t)/c+2:(t-n)/c+4,c/=s<.5?o+i:2-o-i,a*=60):c=s>0&&s<1?0:a,new Jk(a,c,s,e.opacity)}function Jk(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Qk(e){return(e=(e||0)%360)<0?e+360:e}function eE(e){return Math.max(0,Math.min(1,e||0))}function tE(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}wk(Ek,zk,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Lk,formatHex:Lk,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Kk(this).formatHsl()},formatRgb:Fk,toString:Fk}),wk(Uk,Vk,kk(Ek,{brighter(e){return e=null==e?_k:Math.pow(_k,e),new Uk(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Sk:Math.pow(Sk,e),new Uk(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Uk(Yk(this.r),Yk(this.g),Yk(this.b),Gk(this.opacity))},displayable(){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:Wk,formatHex:Wk,formatHex8:function(){return`#${Xk(this.r)}${Xk(this.g)}${Xk(this.b)}${Xk(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:$k,toString:$k})),wk(Jk,(function(e,t,n,r){return 1===arguments.length?Kk(e):new Jk(e,t,n,null==r?1:r)}),kk(Ek,{brighter(e){return e=null==e?_k:Math.pow(_k,e),new Jk(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Sk:Math.pow(Sk,e),new Jk(this.h,this.s,this.l*e,this.opacity)},rgb(){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,i=2*n-r;return new Uk(tE(e>=240?e-240:e+120,i,r),tE(e,i,r),tE(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Jk(Qk(this.h),eE(this.s),eE(this.l),Gk(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Gk(this.opacity);return`${1===e?"hsl(":"hsla("}${Qk(this.h)}, ${100*eE(this.s)}%, ${100*eE(this.l)}%${1===e?")":`, ${e})`}`}}));const nE=Math.PI/180,rE=180/Math.PI,iE=.96422,oE=1,aE=.82521,cE=4/29,sE=6/29,lE=3*sE*sE,uE=sE*sE*sE;function fE(e){if(e instanceof pE)return new pE(e.l,e.a,e.b,e.opacity);if(e instanceof vE)return gE(e);e instanceof Uk||(e=Hk(e));var t,n,r=yE(e.r),i=yE(e.g),o=yE(e.b),a=dE((.2225045*r+.7168786*i+.0606169*o)/oE);return r===i&&i===o?t=n=a:(t=dE((.4360747*r+.3850649*i+.1430804*o)/iE),n=dE((.0139322*r+.0971045*i+.7141733*o)/aE)),new pE(116*a-16,500*(t-a),200*(a-n),e.opacity)}function pE(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function dE(e){return e>uE?Math.pow(e,1/3):e/lE+cE}function hE(e){return e>sE?e*e*e:lE*(e-cE)}function mE(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function yE(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function vE(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function gE(e){if(isNaN(e.h))return new pE(e.l,0,0,e.opacity);var t=e.h*nE;return new pE(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}wk(pE,(function(e,t,n,r){return 1===arguments.length?fE(e):new pE(e,t,n,null==r?1:r)}),kk(Ek,{brighter(e){return new pE(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new pE(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new Uk(mE(3.1338561*(t=iE*hE(t))-1.6168667*(e=oE*hE(e))-.4906146*(n=aE*hE(n))),mE(-.9787684*t+1.9161415*e+.033454*n),mE(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),wk(vE,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof vE)return new vE(e.h,e.c,e.l,e.opacity);if(e instanceof pE||(e=fE(e)),0===e.a&&0===e.b)return new vE(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*rE;return new vE(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new vE(e,t,n,null==r?1:r)}),kk(Ek,{brighter(e){return new vE(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new vE(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return gE(this).rgb()}}));var bE=-.14861,xE=1.78277,wE=-.29227,kE=-.90649,EE=1.97294,SE=EE*kE,_E=EE*xE,OE=xE*wE-kE*bE;function AE(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof CE)return new CE(e.h,e.s,e.l,e.opacity);e instanceof Uk||(e=Hk(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(OE*r+SE*t-_E*n)/(OE+SE-_E),o=r-i,a=(EE*(n-i)-wE*o)/kE,c=Math.sqrt(a*a+o*o)/(EE*i*(1-i)),s=c?Math.atan2(a,o)*rE-120:NaN;return new CE(s<0?s+360:s,c,i,e.opacity)}(e):new CE(e,t,n,null==r?1:r)}function CE(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}wk(CE,AE,kk(Ek,{brighter(e){return e=null==e?_k:Math.pow(_k,e),new CE(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Sk:Math.pow(Sk,e),new CE(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*nE,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new Uk(255*(t+n*(bE*r+xE*i)),255*(t+n*(wE*r+kE*i)),255*(t+n*(EE*r)),this.opacity)}}));var TE=e=>()=>e;function PE(e,t){return function(n){return e+n*t}}function DE(e){return 1==(e=+e)?jE: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):TE(isNaN(t)?n:t)}}function jE(e,t){var n=t-e;return n?PE(e,n):TE(isNaN(e)?t:e)}var ME=function e(t){var n=DE(t);function r(e,t){var r=n((e=Vk(e)).r,(t=Vk(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=jE(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function NE(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,i=t.slice();return function(o){for(n=0;n<r;++n)i[n]=e[n]*(1-o)+t[n]*o;return i}}function IE(e,t){var n,r=t?t.length:0,i=e?Math.min(r,e.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=HE(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<i;++n)a[n]=o[n](e);return a}}function RE(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function LE(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function FE(e,t){var n,r={},i={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=HE(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}}var zE=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,BE=new RegExp(zE.source,"g");function qE(e,t){var n,r,i,o=zE.lastIndex=BE.lastIndex=0,a=-1,c=[],s=[];for(e+="",t+="";(n=zE.exec(e))&&(r=BE.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),c[a]?c[a]+=i:c[++a]=i),(n=n[0])===(r=r[0])?c[a]?c[a]+=r:c[++a]=r:(c[++a]=null,s.push({i:a,x:LE(n,r)})),o=BE.lastIndex;return o<t.length&&(i=t.slice(o),c[a]?c[a]+=i:c[++a]=i),c.length<2?s[0]?function(e){return function(t){return e(t)+""}}(s[0].x):function(e){return function(){return e}}(t):(t=s.length,function(e){for(var n,r=0;r<t;++r)c[(n=s[r]).i]=n.x(e);return c.join("")})}function HE(e,t){var n,r=typeof t;return null==t||"boolean"===r?TE(t):("number"===r?LE:"string"===r?(n=zk(t))?(t=n,ME):qE:t instanceof zk?ME:t instanceof Date?RE:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?NE:Array.isArray(t)?IE:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?FE:LE)(e,t)}function VE(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function UE(e){return((e=Math.exp(e))+1/e)/2}function WE(e){return function t(n){function r(t,r){var i=e((t=AE(t)).h,(r=AE(r)).h),o=jE(t.s,r.s),a=jE(t.l,r.l),c=jE(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=o(e),t.l=a(Math.pow(e,n)),t.opacity=c(e),t+""}}return n=+n,r.gamma=t,r}(1)}function $E(e,t){void 0===t&&(t=e,e=HE);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return o[t](e-t)}}function GE(e){return+e}!function e(t,n,r){function i(e,i){var o,a,c=e[0],s=e[1],l=e[2],u=i[0],f=i[1],p=i[2],d=u-c,h=f-s,m=d*d+h*h;if(m<1e-12)a=Math.log(p/l)/t,o=function(e){return[c+e*d,s+e*h,l*Math.exp(t*e*a)]};else{var y=Math.sqrt(m),v=(p*p-l*l+r*m)/(2*l*n*y),g=(p*p-l*l-r*m)/(2*p*n*y),b=Math.log(Math.sqrt(v*v+1)-v),x=Math.log(Math.sqrt(g*g+1)-g);a=(x-b)/t,o=function(e){var r=e*a,i=UE(b),o=l/(n*y)*(i*function(e){return((e=Math.exp(2*e))-1)/(e+1)}(t*r+b)-function(e){return((e=Math.exp(e))-1/e)/2}(b));return[c+o*d,s+o*h,l*i/UE(t*r+b)]}}return o.duration=1e3*a*t/Math.SQRT2,o}return i.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},i}(Math.SQRT2,2,4),WE((function(e,t){var n=t-e;return n?PE(e,n>180||n<-180?n-360*Math.round(n/360):n):TE(isNaN(e)?t:e)})),WE(jE);var YE=[0,1];function XE(e){return e}function ZE(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function KE(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=ZE(i,r),o=n(a,o)):(r=ZE(r,i),o=n(o,a)),function(e){return o(r(e))}}function JE(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=ZE(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(t){var n=Kw(e,t,1,r)-1;return o[n](i[n](t))}}function QE(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function eS(){var e,t,n,r,i,o,a=YE,c=YE,s=HE,l=XE;function u(){var e=Math.min(a.length,c.length);return l!==XE&&(l=function(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(a[0],a[e-1])),r=e>2?JE:KE,i=o=null,f}function f(t){return null==t||isNaN(t=+t)?n:(i||(i=r(a.map(e),c,s)))(e(l(t)))}return f.invert=function(n){return l(t((o||(o=r(c,a.map(e),LE)))(n)))},f.domain=function(e){return arguments.length?(a=Array.from(e,GE),u()):a.slice()},f.range=function(e){return arguments.length?(c=Array.from(e),u()):c.slice()},f.rangeRound=function(e){return c=Array.from(e),s=VE,u()},f.clamp=function(e){return arguments.length?(l=!!e||XE,u()):l!==XE},f.interpolate=function(e){return arguments.length?(s=e,u()):s},f.unknown=function(e){return arguments.length?(n=e,f):n},function(n,r){return e=n,t=r,u()}}function tS(){return eS()(XE,XE)}function nS(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function rS(e){return(e=nS(Math.abs(e)))?e[1]:NaN}var iS,oS=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function aS(e){if(!(t=oS.exec(e)))throw new Error("invalid format: "+e);var t;return new cS({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 cS(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+""}function sS(e,t){var n=nS(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}aS.prototype=cS.prototype,cS.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};var lS={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>sS(100*e,t),r:sS,s:function(e,t){var n=nS(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(iS=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+nS(e,Math.max(0,t+o-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function uS(e){return e}var fS,pS,dS,hS=Array.prototype.map,mS=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function yS(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?uS:(t=hS.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],a=0,c=t[0],s=0;i>0&&c>0&&(s+c+1>r&&(c=Math.max(1,r-s)),o.push(e.substring(i-=c,i+c)),!((s+=c+1)>r));)c=t[a=(a+1)%t.length];return o.reverse().join(n)}),i=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",c=void 0===e.numerals?uS:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(hS.call(e.numerals,String)),s=void 0===e.percent?"%":e.percent+"",l=void 0===e.minus?"−":e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function f(e){var t=(e=aS(e)).fill,n=e.align,f=e.sign,p=e.symbol,d=e.zero,h=e.width,m=e.comma,y=e.precision,v=e.trim,g=e.type;"n"===g?(m=!0,g="g"):lS[g]||(void 0===y&&(y=12),v=!0,g="g"),(d||"0"===t&&"="===n)&&(d=!0,t="0",n="=");var b="$"===p?i:"#"===p&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",x="$"===p?o:/[%p]/.test(g)?s:"",w=lS[g],k=/[defgprs%]/.test(g);function E(e){var i,o,s,p=b,E=x;if("c"===g)E=w(e)+E,e="";else{var S=(e=+e)<0||1/e<0;if(e=isNaN(e)?u:w(Math.abs(e),y),v&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(!+e[r])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),S&&0==+e&&"+"!==f&&(S=!1),p=(S?"("===f?f:l:"-"===f||"("===f?"":f)+p,E=("s"===g?mS[8+iS/3]:"")+E+(S&&"("===f?")":""),k)for(i=-1,o=e.length;++i<o;)if(48>(s=e.charCodeAt(i))||s>57){E=(46===s?a+e.slice(i+1):e.slice(i))+E,e=e.slice(0,i);break}}m&&!d&&(e=r(e,1/0));var _=p.length+e.length+E.length,O=_<h?new Array(h-_+1).join(t):"";switch(m&&d&&(e=r(O+e,O.length?h-E.length:1/0),O=""),n){case"<":e=p+e+E+O;break;case"=":e=p+O+e+E;break;case"^":e=O.slice(0,_=O.length>>1)+p+e+E+O.slice(_);break;default:e=O+p+e+E}return c(e)}return y=void 0===y?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),E.toString=function(){return e+""},E}return{format:f,formatPrefix:function(e,t){var n=f(((e=aS(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(rS(t)/3))),i=Math.pow(10,-r),o=mS[8+r/3];return function(e){return n(i*e)+o}}}}function vS(e,t,n,r){var i,o=sk(e,t,n);switch((r=aS(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(i=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(rS(t)/3)))-rS(Math.abs(e)))}(o,a))||(r.precision=i),dS(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,rS(t)-rS(e))+1}(o,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(e){return Math.max(0,-rS(Math.abs(e)))}(o))||(r.precision=i-2*("%"===r.type))}return pS(r)}function gS(e){var t=e.domain;return e.ticks=function(e){var n=t();return ak(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return vS(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,i,o=t(),a=0,c=o.length-1,s=o[a],l=o[c],u=10;for(l<s&&(i=s,s=l,l=i,i=a,a=c,c=i);u-- >0;){if((i=ck(s,l,n))===r)return o[a]=s,o[c]=l,t(o);if(i>0)s=Math.floor(s/i)*i,l=Math.ceil(l/i)*i;else{if(!(i<0))break;s=Math.ceil(s*i)/i,l=Math.floor(l*i)/i}r=i}return e},e}function bS(){var e=tS();return e.copy=function(){return QE(e,bS())},hk.apply(e,arguments),gS(e)}function xS(e,t){var n,r=0,i=(e=e.slice()).length-1,o=e[r],a=e[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),e[r]=t.floor(o),e[i]=t.ceil(a),e}function wS(e){return Math.log(e)}function kS(e){return Math.exp(e)}function ES(e){return-Math.log(-e)}function SS(e){return-Math.exp(-e)}function _S(e){return isFinite(e)?+("1e"+e):e<0?0:e}function OS(e){return(t,n)=>-e(-t,n)}function AS(e){const t=e(wS,kS),n=t.domain;let r,i,o=10;function a(){return r=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}(o),i=function(e){return 10===e?_S:e===Math.E?Math.exp:t=>Math.pow(e,t)}(o),n()[0]<0?(r=OS(r),i=OS(i),e(ES,SS)):e(wS,kS),t}return t.base=function(e){return arguments.length?(o=+e,a()):o},t.domain=function(e){return arguments.length?(n(e),a()):n()},t.ticks=e=>{const t=n();let a=t[0],c=t[t.length-1];const s=c<a;s&&([a,c]=[c,a]);let l,u,f=r(a),p=r(c);const d=null==e?10:+e;let h=[];if(!(o%1)&&p-f<d){if(f=Math.floor(f),p=Math.ceil(p),a>0){for(;f<=p;++f)for(l=1;l<o;++l)if(u=f<0?l/i(-f):l*i(f),!(u<a)){if(u>c)break;h.push(u)}}else for(;f<=p;++f)for(l=o-1;l>=1;--l)if(u=f>0?l/i(-f):l*i(f),!(u<a)){if(u>c)break;h.push(u)}2*h.length<d&&(h=ak(a,c,d))}else h=ak(f,p,Math.min(p-f,d)).map(i);return s?h.reverse():h},t.tickFormat=(e,n)=>{if(null==e&&(e=10),null==n&&(n=10===o?"s":","),"function"!=typeof n&&(o%1||null!=(n=aS(n)).precision||(n.trim=!0),n=pS(n)),e===1/0)return n;const a=Math.max(1,o*e/t.ticks().length);return e=>{let t=e/i(Math.round(r(e)));return t*o<o-.5&&(t*=o),t<=a?n(e):""}},t.nice=()=>n(xS(n(),{floor:e=>i(Math.floor(r(e))),ceil:e=>i(Math.ceil(r(e)))})),t}function CS(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function TS(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function PS(e){var t=1,n=e(CS(t),TS(t));return n.constant=function(n){return arguments.length?e(CS(t=+n),TS(t)):t},gS(n)}function DS(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function jS(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function MS(e){return e<0?-e*e:e*e}function NS(e){var t=e(XE,XE),n=1;return t.exponent=function(t){return arguments.length?1===(n=+t)?e(XE,XE):.5===n?e(jS,MS):e(DS(n),DS(1/n)):n},gS(t)}function IS(){var e=NS(eS());return e.copy=function(){return QE(e,IS()).exponent(e.exponent())},hk.apply(e,arguments),e}function RS(e){return Math.sign(e)*e*e}fS=yS({thousands:",",grouping:[3],currency:["$",""]}),pS=fS.format,dS=fS.formatPrefix;const LS=new Date,FS=new Date;function zS(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{const t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),i.range=(n,r,o)=>{const a=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return a;let c;do{a.push(c=new Date(+n)),t(n,o),e(n)}while(c<n&&n<r);return a},i.filter=n=>zS((t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),((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&&(i.count=(t,r)=>(LS.setTime(+t),FS.setTime(+r),e(LS),e(FS),Math.floor(n(LS,FS))),i.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?t=>r(t)%e==0:t=>i.count(0,t)%e==0):i:null)),i}const BS=zS((()=>{}),((e,t)=>{e.setTime(+e+t)}),((e,t)=>t-e));BS.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?zS((t=>{t.setTime(Math.floor(t/e)*e)}),((t,n)=>{t.setTime(+t+n*e)}),((t,n)=>(n-t)/e)):BS:null),BS.range;const qS=1e3,HS=6e4,VS=36e5,US=864e5,WS=6048e5,$S=2592e6,GS=31536e6,YS=zS((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*qS)}),((e,t)=>(t-e)/qS),(e=>e.getUTCSeconds()));YS.range;const XS=zS((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*qS)}),((e,t)=>{e.setTime(+e+t*HS)}),((e,t)=>(t-e)/HS),(e=>e.getMinutes()));XS.range;const ZS=zS((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*HS)}),((e,t)=>(t-e)/HS),(e=>e.getUTCMinutes()));ZS.range;const KS=zS((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*qS-e.getMinutes()*HS)}),((e,t)=>{e.setTime(+e+t*VS)}),((e,t)=>(t-e)/VS),(e=>e.getHours()));KS.range;const JS=zS((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*VS)}),((e,t)=>(t-e)/VS),(e=>e.getUTCHours()));JS.range;const QS=zS((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*HS)/US),(e=>e.getDate()-1));QS.range;const e_=zS((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/US),(e=>e.getUTCDate()-1));e_.range;const t_=zS((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/US),(e=>Math.floor(e/US)));function n_(e){return zS((t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),((e,t)=>{e.setDate(e.getDate()+7*t)}),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*HS)/WS))}t_.range;const r_=n_(0),i_=n_(1),o_=n_(2),a_=n_(3),c_=n_(4),s_=n_(5),l_=n_(6);function u_(e){return zS((t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)}),((e,t)=>(t-e)/WS))}r_.range,i_.range,o_.range,a_.range,c_.range,s_.range,l_.range;const f_=u_(0),p_=u_(1),d_=u_(2),h_=u_(3),m_=u_(4),y_=u_(5),v_=u_(6);f_.range,p_.range,d_.range,h_.range,m_.range,y_.range,v_.range;const g_=zS((e=>{e.setDate(1),e.setHours(0,0,0,0)}),((e,t)=>{e.setMonth(e.getMonth()+t)}),((e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())),(e=>e.getMonth()));g_.range;const b_=zS((e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)}),((e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())),(e=>e.getUTCMonth()));b_.range;const x_=zS((e=>{e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,t)=>{e.setFullYear(e.getFullYear()+t)}),((e,t)=>t.getFullYear()-e.getFullYear()),(e=>e.getFullYear()));x_.every=e=>isFinite(e=Math.floor(e))&&e>0?zS((t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,n)=>{t.setFullYear(t.getFullYear()+n*e)})):null,x_.range;const w_=zS((e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)}),((e,t)=>t.getUTCFullYear()-e.getUTCFullYear()),(e=>e.getUTCFullYear()));function k_(e,t,n,r,i,o){const a=[[YS,1,qS],[YS,5,5e3],[YS,15,15e3],[YS,30,3e4],[o,1,HS],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,VS],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,US],[r,2,1728e5],[n,1,WS],[t,1,$S],[t,3,7776e6],[e,1,GS]];function c(t,n,r){const i=Math.abs(n-t)/r,o=Yw((([,,e])=>e)).right(a,i);if(o===a.length)return e.every(sk(t/GS,n/GS,r));if(0===o)return BS.every(Math.max(sk(t,n,r),1));const[c,s]=a[i/a[o-1][2]<a[o][2]/i?o-1:o];return c.every(s)}return[function(e,t,n){const r=t<e;r&&([e,t]=[t,e]);const i=n&&"function"==typeof n.range?n:c(e,t,n),o=i?i.range(e,+t+1):[];return r?o.reverse():o},c]}w_.every=e=>isFinite(e=Math.floor(e))&&e>0?zS((t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null,w_.range;const[E_,S_]=k_(w_,b_,f_,t_,JS,ZS),[__,O_]=k_(x_,g_,r_,QS,KS,XS);function A_(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function C_(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function T_(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var P_,D_,j_,M_,N_={"-":"",_:" ",0:"0"},I_=/^\s*\d+/,R_=/^%/,L_=/[\\^$*+?|[\]().{}]/g;function F_(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function z_(e){return e.replace(L_,"\\$&")}function B_(e){return new RegExp("^(?:"+e.map(z_).join("|")+")","i")}function q_(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function H_(e,t,n){var r=I_.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function V_(e,t,n){var r=I_.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function U_(e,t,n){var r=I_.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function W_(e,t,n){var r=I_.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function $_(e,t,n){var r=I_.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function G_(e,t,n){var r=I_.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Y_(e,t,n){var r=I_.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function X_(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 Z_(e,t,n){var r=I_.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function K_(e,t,n){var r=I_.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function J_(e,t,n){var r=I_.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Q_(e,t,n){var r=I_.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function eO(e,t,n){var r=I_.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function tO(e,t,n){var r=I_.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function nO(e,t,n){var r=I_.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function rO(e,t,n){var r=I_.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function iO(e,t,n){var r=I_.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function oO(e,t,n){var r=R_.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function aO(e,t,n){var r=I_.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function cO(e,t,n){var r=I_.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function sO(e,t){return F_(e.getDate(),t,2)}function lO(e,t){return F_(e.getHours(),t,2)}function uO(e,t){return F_(e.getHours()%12||12,t,2)}function fO(e,t){return F_(1+QS.count(x_(e),e),t,3)}function pO(e,t){return F_(e.getMilliseconds(),t,3)}function dO(e,t){return pO(e,t)+"000"}function hO(e,t){return F_(e.getMonth()+1,t,2)}function mO(e,t){return F_(e.getMinutes(),t,2)}function yO(e,t){return F_(e.getSeconds(),t,2)}function vO(e){var t=e.getDay();return 0===t?7:t}function gO(e,t){return F_(r_.count(x_(e)-1,e),t,2)}function bO(e){var t=e.getDay();return t>=4||0===t?c_(e):c_.ceil(e)}function xO(e,t){return e=bO(e),F_(c_.count(x_(e),e)+(4===x_(e).getDay()),t,2)}function wO(e){return e.getDay()}function kO(e,t){return F_(i_.count(x_(e)-1,e),t,2)}function EO(e,t){return F_(e.getFullYear()%100,t,2)}function SO(e,t){return F_((e=bO(e)).getFullYear()%100,t,2)}function _O(e,t){return F_(e.getFullYear()%1e4,t,4)}function OO(e,t){var n=e.getDay();return F_((e=n>=4||0===n?c_(e):c_.ceil(e)).getFullYear()%1e4,t,4)}function AO(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+F_(t/60|0,"0",2)+F_(t%60,"0",2)}function CO(e,t){return F_(e.getUTCDate(),t,2)}function TO(e,t){return F_(e.getUTCHours(),t,2)}function PO(e,t){return F_(e.getUTCHours()%12||12,t,2)}function DO(e,t){return F_(1+e_.count(w_(e),e),t,3)}function jO(e,t){return F_(e.getUTCMilliseconds(),t,3)}function MO(e,t){return jO(e,t)+"000"}function NO(e,t){return F_(e.getUTCMonth()+1,t,2)}function IO(e,t){return F_(e.getUTCMinutes(),t,2)}function RO(e,t){return F_(e.getUTCSeconds(),t,2)}function LO(e){var t=e.getUTCDay();return 0===t?7:t}function FO(e,t){return F_(f_.count(w_(e)-1,e),t,2)}function zO(e){var t=e.getUTCDay();return t>=4||0===t?m_(e):m_.ceil(e)}function BO(e,t){return e=zO(e),F_(m_.count(w_(e),e)+(4===w_(e).getUTCDay()),t,2)}function qO(e){return e.getUTCDay()}function HO(e,t){return F_(p_.count(w_(e)-1,e),t,2)}function VO(e,t){return F_(e.getUTCFullYear()%100,t,2)}function UO(e,t){return F_((e=zO(e)).getUTCFullYear()%100,t,2)}function WO(e,t){return F_(e.getUTCFullYear()%1e4,t,4)}function $O(e,t){var n=e.getUTCDay();return F_((e=n>=4||0===n?m_(e):m_.ceil(e)).getUTCFullYear()%1e4,t,4)}function GO(){return"+0000"}function YO(){return"%"}function XO(e){return+e}function ZO(e){return Math.floor(+e/1e3)}!function(e){P_=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,c=e.months,s=e.shortMonths,l=B_(i),u=q_(i),f=B_(o),p=q_(o),d=B_(a),h=q_(a),m=B_(c),y=q_(c),v=B_(s),g=q_(s),b={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return s[e.getMonth()]},B:function(e){return c[e.getMonth()]},c:null,d:sO,e:sO,f:dO,g:SO,G:OO,H:lO,I:uO,j:fO,L:pO,m:hO,M:mO,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:XO,s:ZO,S:yO,u:vO,U:gO,V:xO,w:wO,W:kO,x:null,X:null,y:EO,Y:_O,Z:AO,"%":YO},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return s[e.getUTCMonth()]},B:function(e){return c[e.getUTCMonth()]},c:null,d:CO,e:CO,f:MO,g:UO,G:$O,H:TO,I:PO,j:DO,L:jO,m:NO,M:IO,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:XO,s:ZO,S:RO,u:LO,U:FO,V:BO,w:qO,W:HO,x:null,X:null,y:VO,Y:WO,Z:GO,"%":YO},w={a:function(e,t,n){var r=d.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=p.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=g.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=y.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return S(e,t,n,r)},d:J_,e:J_,f:iO,g:Y_,G:G_,H:eO,I:eO,j:Q_,L:rO,m:K_,M:tO,p:function(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:Z_,Q:aO,s:cO,S:nO,u:V_,U:U_,V:W_,w:H_,W:$_,x:function(e,t,r){return S(e,n,t,r)},X:function(e,t,n){return S(e,r,t,n)},y:Y_,Y:G_,Z:X_,"%":oO};function k(e,t){return function(n){var r,i,o,a=[],c=-1,s=0,l=e.length;for(n instanceof Date||(n=new Date(+n));++c<l;)37===e.charCodeAt(c)&&(a.push(e.slice(s,c)),null!=(i=N_[r=e.charAt(++c)])?r=e.charAt(++c):i="e"===r?" ":"0",(o=t[r])&&(r=o(n,i)),a.push(r),s=c+1);return a.push(e.slice(s,c)),a.join("")}}function E(e,t){return function(n){var r,i,o=T_(1900,void 0,1);if(S(o,e,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(t&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=C_(T_(o.y,0,1))).getUTCDay(),r=i>4||0===i?p_.ceil(r):p_(r),r=e_.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=A_(T_(o.y,0,1))).getDay(),r=i>4||0===i?i_.ceil(r):i_(r),r=QS.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?C_(T_(o.y,0,1)).getUTCDay():A_(T_(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,C_(o)):A_(o)}}function S(e,t,n,r){for(var i,o,a=0,c=t.length,s=n.length;a<c;){if(r>=s)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=w[i in N_?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=k(n,b),b.X=k(r,b),b.c=k(t,b),x.x=k(n,x),x.X=k(r,x),x.c=k(t,x),{format:function(e){var t=k(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=E(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=k(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=E(e+="",!0);return t.toString=function(){return e},t}}}(e),D_=P_.format,P_.parse,j_=P_.utcFormat,M_=P_.utcParse}({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"]});var KO="%Y-%m-%dT%H:%M:%S.%LZ";function JO(e){return new Date(e)}function QO(e){return e instanceof Date?+e:+new Date(+e)}function eA(e,t,n,r,i,o,a,c,s,l){var u=tS(),f=u.invert,p=u.domain,d=l(".%L"),h=l(":%S"),m=l("%I:%M"),y=l("%I %p"),v=l("%a %d"),g=l("%b %d"),b=l("%B"),x=l("%Y");function w(e){return(s(e)<e?d:c(e)<e?h:a(e)<e?m:o(e)<e?y:r(e)<e?i(e)<e?v:g:n(e)<e?b:x)(e)}return u.invert=function(e){return new Date(f(e))},u.domain=function(e){return arguments.length?p(Array.from(e,QO)):p().map(JO)},u.ticks=function(t){var n=p();return e(n[0],n[n.length-1],null==t?10:t)},u.tickFormat=function(e,t){return null==t?w:l(t)},u.nice=function(e){var n=p();return e&&"function"==typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?p(xS(n,e)):u},u.copy=function(){return QE(u,eA(e,t,n,r,i,o,a,c,s,l))},u}function tA(){var e,t,n,r,i,o=0,a=1,c=XE,s=!1;function l(t){return null==t||isNaN(t=+t)?i:c(0===n?.5:(t=(r(t)-e)*n,s?Math.max(0,Math.min(1,t)):t))}function u(e){return function(t){var n,r;return arguments.length?([n,r]=t,c=e(n,r),l):[c(0),c(1)]}}return l.domain=function(i){return arguments.length?([o,a]=i,e=r(o=+o),t=r(a=+a),n=e===t?0:1/(t-e),l):[o,a]},l.clamp=function(e){return arguments.length?(s=!!e,l):s},l.interpolator=function(e){return arguments.length?(c=e,l):c},l.range=u(HE),l.rangeRound=u(VE),l.unknown=function(e){return arguments.length?(i=e,l):i},function(i){return r=i,e=i(o),t=i(a),n=e===t?0:1/(t-e),l}}function nA(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function rA(){var e=NS(tA());return e.copy=function(){return nA(e,rA()).exponent(e.exponent())},mk.apply(e,arguments)}function iA(){var e,t,n,r,i,o,a,c=0,s=.5,l=1,u=1,f=XE,p=!1;function d(e){return isNaN(e=+e)?a:(e=.5+((e=+o(e))-t)*(u*e<u*t?r:i),f(p?Math.max(0,Math.min(1,e)):e))}function h(e){return function(t){var n,r,i;return arguments.length?([n,r,i]=t,f=$E(e,[n,r,i]),d):[f(0),f(.5),f(1)]}}return d.domain=function(a){return arguments.length?([c,s,l]=a,e=o(c=+c),t=o(s=+s),n=o(l=+l),r=e===t?0:.5/(t-e),i=t===n?0:.5/(n-t),u=t<e?-1:1,d):[c,s,l]},d.clamp=function(e){return arguments.length?(p=!!e,d):p},d.interpolator=function(e){return arguments.length?(f=e,d):f},d.range=h(HE),d.rangeRound=h(VE),d.unknown=function(e){return arguments.length?(a=e,d):a},function(a){return o=a,e=a(c),t=a(s),n=a(l),r=e===t?0:.5/(t-e),i=t===n?0:.5/(n-t),u=t<e?-1:1,d}}function oA(){var e=NS(iA());return e.copy=function(){return nA(e,oA()).exponent(e.exponent())},mk.apply(e,arguments)}Date.prototype.toISOString||j_(KO),+new Date("2000-01-01T00:00:00.000Z")||M_(KO);var aA,cA=Object.freeze({__proto__:null,scaleBand:gk,scalePoint:xk,scaleIdentity:function e(t){var n;function r(e){return null==e||isNaN(e=+e)?n:e}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(t=Array.from(e,GE),r):t.slice()},r.unknown=function(e){return arguments.length?(n=e,r):n},r.copy=function(){return e(t).unknown(n)},t=arguments.length?Array.from(t,GE):[0,1],gS(r)},scaleLinear:bS,scaleLog:function e(){const t=AS(eS()).domain([1,10]);return t.copy=()=>QE(t,e()).base(t.base()),hk.apply(t,arguments),t},scaleSymlog:function e(){var t=PS(eS());return t.copy=function(){return QE(t,e()).constant(t.constant())},hk.apply(t,arguments)},scaleOrdinal:vk,scaleImplicit:yk,scalePow:IS,scaleSqrt:function(){return IS.apply(null,arguments).exponent(.5)},scaleRadial:function e(){var t,n=tS(),r=[0,1],i=!1;function o(e){var r=function(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}(n(e));return isNaN(r)?t:i?Math.round(r):r}return o.invert=function(e){return n.invert(RS(e))},o.domain=function(e){return arguments.length?(n.domain(e),o):n.domain()},o.range=function(e){return arguments.length?(n.range((r=Array.from(e,GE)).map(RS)),o):r.slice()},o.rangeRound=function(e){return o.range(e).round(!0)},o.round=function(e){return arguments.length?(i=!!e,o):i},o.clamp=function(e){return arguments.length?(n.clamp(e),o):n.clamp()},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return e(n.domain(),r).round(i).clamp(n.clamp()).unknown(t)},hk.apply(o,arguments),gS(o)},scaleQuantile:function e(){var t,n=[],r=[],i=[];function o(){var e=0,t=Math.max(1,r.length);for(i=new Array(t-1);++e<t;)i[e-1]=dk(n,e/t);return a}function a(e){return null==e||isNaN(e=+e)?t:r[Kw(i,e)]}return a.invertExtent=function(e){var t=r.indexOf(e);return t<0?[NaN,NaN]:[t>0?i[t-1]:n[0],t<i.length?i[t]:n[n.length-1]]},a.domain=function(e){if(!arguments.length)return n.slice();n=[];for(let t of e)null==t||isNaN(t=+t)||n.push(t);return n.sort($w),o()},a.range=function(e){return arguments.length?(r=Array.from(e),o()):r.slice()},a.unknown=function(e){return arguments.length?(t=e,a):t},a.quantiles=function(){return i.slice()},a.copy=function(){return e().domain(n).range(r).unknown(t)},hk.apply(a,arguments)},scaleQuantize:function e(){var t,n=0,r=1,i=1,o=[.5],a=[0,1];function c(e){return null!=e&&e<=e?a[Kw(o,e,0,i)]:t}function s(){var e=-1;for(o=new Array(i);++e<i;)o[e]=((e+1)*r-(e-i)*n)/(i+1);return c}return c.domain=function(e){return arguments.length?([n,r]=e,n=+n,r=+r,s()):[n,r]},c.range=function(e){return arguments.length?(i=(a=Array.from(e)).length-1,s()):a.slice()},c.invertExtent=function(e){var t=a.indexOf(e);return t<0?[NaN,NaN]:t<1?[n,o[0]]:t>=i?[o[i-1],r]:[o[t-1],o[t]]},c.unknown=function(e){return arguments.length?(t=e,c):c},c.thresholds=function(){return o.slice()},c.copy=function(){return e().domain([n,r]).range(a).unknown(t)},hk.apply(gS(c),arguments)},scaleThreshold:function e(){var t,n=[.5],r=[0,1],i=1;function o(e){return null!=e&&e<=e?r[Kw(n,e,0,i)]:t}return o.domain=function(e){return arguments.length?(n=Array.from(e),i=Math.min(n.length,r.length-1),o):n.slice()},o.range=function(e){return arguments.length?(r=Array.from(e),i=Math.min(n.length,r.length-1),o):r.slice()},o.invertExtent=function(e){var t=r.indexOf(e);return[n[t-1],n[t]]},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return e().domain(n).range(r).unknown(t)},hk.apply(o,arguments)},scaleTime:function(){return hk.apply(eA(__,O_,x_,g_,r_,QS,KS,XS,YS,D_).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return hk.apply(eA(E_,S_,w_,b_,f_,e_,JS,ZS,YS,j_).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},scaleSequential:function e(){var t=gS(tA()(XE));return t.copy=function(){return nA(t,e())},mk.apply(t,arguments)},scaleSequentialLog:function e(){var t=AS(tA()).domain([1,10]);return t.copy=function(){return nA(t,e()).base(t.base())},mk.apply(t,arguments)},scaleSequentialPow:rA,scaleSequentialSqrt:function(){return rA.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function e(){var t=PS(tA());return t.copy=function(){return nA(t,e()).constant(t.constant())},mk.apply(t,arguments)},scaleSequentialQuantile:function e(){var t=[],n=XE;function r(e){if(null!=e&&!isNaN(e=+e))return n((Kw(t,e,1)-1)/(t.length-1))}return r.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let n of e)null==n||isNaN(n=+n)||t.push(n);return t.sort($w),r},r.interpolator=function(e){return arguments.length?(n=e,r):n},r.range=function(){return t.map(((e,r)=>n(r/(t.length-1))))},r.quantiles=function(e){return Array.from({length:e+1},((n,r)=>function(e,t,n){if(e=Float64Array.from(function*(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}(e,n)),(r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return uk(e);if(t>=1)return lk(e);var r,i=(r-1)*t,o=Math.floor(i),a=lk(fk(e,o).subarray(0,o+1));return a+(uk(e.subarray(o+1))-a)*(i-o)}}(t,r/e)))},r.copy=function(){return e(n).domain(t)},mk.apply(r,arguments)},scaleDiverging:function e(){var t=gS(iA()(XE));return t.copy=function(){return nA(t,e())},mk.apply(t,arguments)},scaleDivergingLog:function e(){var t=AS(iA()).domain([.1,1,10]);return t.copy=function(){return nA(t,e()).base(t.base())},mk.apply(t,arguments)},scaleDivergingPow:oA,scaleDivergingSqrt:function(){return oA.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function e(){var t=PS(iA());return t.copy=function(){return nA(t,e()).constant(t.constant())},mk.apply(t,arguments)},tickFormat:vS}),sA={},lA={},uA=1e9,fA=!0,pA="[DecimalError] ",dA=pA+"Invalid argument: ",hA=pA+"Exponent out of range: ",mA=Math.floor,yA=Math.pow,vA=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,gA=1e7,bA=7,xA=9007199254740991,wA=mA(xA/bA),kA={};function EA(e,t){var n,r,i,o,a,c,s,l,u=e.constructor,f=u.precision;if(!e.s||!t.s)return t.s||(t=new u(e)),fA?MA(t,f):t;if(s=e.d,l=t.d,a=e.e,i=t.e,s=s.slice(),o=a-i){for(o<0?(r=s,o=-o,c=l.length):(r=l,i=a,c=s.length),o>(c=(a=Math.ceil(f/bA))>c?a+1:c+1)&&(o=c,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for((c=s.length)-(o=l.length)<0&&(o=c,r=l,l=s,s=r),n=0;o;)n=(s[--o]=s[o]+l[o]+n)/gA|0,s[o]%=gA;for(n&&(s.unshift(n),++i),c=s.length;0==s[--c];)s.pop();return t.d=s,t.e=i,fA?MA(t,f):t}function SA(e,t,n){if(e!==~~e||e<t||e>n)throw Error(dA+e)}function _A(e){var t,n,r,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;t<i;t++)r=e[t]+"",(n=bA-r.length)&&(o+=PA(n)),o+=r;a=e[t],(n=bA-(r=a+"").length)&&(o+=PA(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return o+a}kA.absoluteValue=kA.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},kA.comparedTo=kA.cmp=function(e){var t,n,r,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(t=0,n=(r=o.d.length)<(i=e.d.length)?r:i;t<n;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return r===i?0:r>i^o.s<0?1:-1},kA.decimalPlaces=kA.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*bA;if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},kA.dividedBy=kA.div=function(e){return OA(this,new this.constructor(e))},kA.dividedToIntegerBy=kA.idiv=function(e){var t=this.constructor;return MA(OA(this,new t(e),0,1),t.precision)},kA.equals=kA.eq=function(e){return!this.cmp(e)},kA.exponent=function(){return CA(this)},kA.greaterThan=kA.gt=function(e){return this.cmp(e)>0},kA.greaterThanOrEqualTo=kA.gte=function(e){return this.cmp(e)>=0},kA.isInteger=kA.isint=function(){return this.e>this.d.length-2},kA.isNegative=kA.isneg=function(){return this.s<0},kA.isPositive=kA.ispos=function(){return this.s>0},kA.isZero=function(){return 0===this.s},kA.lessThan=kA.lt=function(e){return this.cmp(e)<0},kA.lessThanOrEqualTo=kA.lte=function(e){return this.cmp(e)<1},kA.logarithm=kA.log=function(e){var t,n=this,r=n.constructor,i=r.precision,o=i+5;if(void 0===e)e=new r(10);else if((e=new r(e)).s<1||e.eq(aA))throw Error(pA+"NaN");if(n.s<1)throw Error(pA+(n.s?"NaN":"-Infinity"));return n.eq(aA)?new r(0):(fA=!1,t=OA(DA(n,o),DA(e,o),o),fA=!0,MA(t,i))},kA.minus=kA.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?NA(t,e):EA(t,(e.s=-e.s,e))},kA.modulo=kA.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(!(e=new r(e)).s)throw Error(pA+"NaN");return n.s?(fA=!1,t=OA(n,e,0,1).times(e),fA=!0,n.minus(t)):MA(new r(n),i)},kA.naturalExponential=kA.exp=function(){return AA(this)},kA.naturalLogarithm=kA.ln=function(){return DA(this)},kA.negated=kA.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},kA.plus=kA.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?EA(t,e):NA(t,(e.s=-e.s,e))},kA.precision=kA.sd=function(e){var t,n,r,i=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(dA+e);if(t=CA(i)+1,n=(r=i.d.length-1)*bA+1,r=i.d[r]){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},kA.squareRoot=kA.sqrt=function(){var e,t,n,r,i,o,a,c=this,s=c.constructor;if(c.s<1){if(!c.s)return new s(0);throw Error(pA+"NaN")}for(e=CA(c),fA=!1,0==(i=Math.sqrt(+c))||i==1/0?(((t=_A(c.d)).length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=mA((e+1)/2)-(e<0||e%2),r=new s(t=i==1/0?"5e"+e:(t=i.toExponential()).slice(0,t.indexOf("e")+1)+e)):r=new s(i.toString()),i=a=(n=s.precision)+3;;)if(r=(o=r).plus(OA(c,o,a+2)).times(.5),_A(o.d).slice(0,a)===(t=_A(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&"4999"==t){if(MA(o,n+1,0),o.times(o).eq(c)){r=o;break}}else if("9999"!=t)break;a+=4}return fA=!0,MA(r,n)},kA.times=kA.mul=function(e){var t,n,r,i,o,a,c,s,l,u=this,f=u.constructor,p=u.d,d=(e=new f(e)).d;if(!u.s||!e.s)return new f(0);for(e.s*=u.s,n=u.e+e.e,(s=p.length)<(l=d.length)&&(o=p,p=d,d=o,a=s,s=l,l=a),o=[],r=a=s+l;r--;)o.push(0);for(r=l;--r>=0;){for(t=0,i=s+r;i>r;)c=o[i]+d[r]*p[i-r-1]+t,o[i--]=c%gA|0,t=c/gA|0;o[i]=(o[i]+t)%gA|0}for(;!o[--a];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,fA?MA(e,f.precision):e},kA.toDecimalPlaces=kA.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(SA(e,0,uA),void 0===t?t=r.rounding:SA(t,0,8),MA(n,e+CA(n)+1,t))},kA.toExponential=function(e,t){var n,r=this,i=r.constructor;return void 0===e?n=IA(r,!0):(SA(e,0,uA),void 0===t?t=i.rounding:SA(t,0,8),n=IA(r=MA(new i(r),e+1,t),!0,e+1)),n},kA.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return void 0===e?IA(i):(SA(e,0,uA),void 0===t?t=o.rounding:SA(t,0,8),n=IA((r=MA(new o(i),e+CA(i)+1,t)).abs(),!1,e+CA(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)},kA.toInteger=kA.toint=function(){var e=this,t=e.constructor;return MA(new t(e),CA(e)+1,t.rounding)},kA.toNumber=function(){return+this},kA.toPower=kA.pow=function(e){var t,n,r,i,o,a,c=this,s=c.constructor,l=+(e=new s(e));if(!e.s)return new s(aA);if(!(c=new s(c)).s){if(e.s<1)throw Error(pA+"Infinity");return c}if(c.eq(aA))return c;if(r=s.precision,e.eq(aA))return MA(c,r);if(a=(t=e.e)>=(n=e.d.length-1),o=c.s,a){if((n=l<0?-l:l)<=xA){for(i=new s(aA),t=Math.ceil(r/bA+4),fA=!1;n%2&&RA((i=i.times(c)).d,t),0!==(n=mA(n/2));)RA((c=c.times(c)).d,t);return fA=!0,e.s<0?new s(aA).div(i):MA(i,r)}}else if(o<0)throw Error(pA+"NaN");return o=o<0&&1&e.d[Math.max(t,n)]?-1:1,c.s=1,fA=!1,i=e.times(DA(c,r+12)),fA=!0,(i=AA(i)).s=o,i},kA.toPrecision=function(e,t){var n,r,i=this,o=i.constructor;return void 0===e?r=IA(i,(n=CA(i))<=o.toExpNeg||n>=o.toExpPos):(SA(e,1,uA),void 0===t?t=o.rounding:SA(t,0,8),r=IA(i=MA(new o(i),e,t),e<=(n=CA(i))||n<=o.toExpNeg,e)),r},kA.toSignificantDigits=kA.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(SA(e,1,uA),void 0===t?t=n.rounding:SA(t,0,8)),MA(new n(this),e,t)},kA.toString=kA.valueOf=kA.val=kA.toJSON=kA[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=CA(e),n=e.constructor;return IA(e,t<=n.toExpNeg||t>=n.toExpPos)};var OA=function(){function e(e,t){var n,r=0,i=e.length;for(e=e.slice();i--;)n=e[i]*t+r,e[i]=n%gA|0,r=n/gA|0;return r&&e.unshift(r),e}function t(e,t,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;i<n;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]<t[n]?1:0,e[n]=r*gA+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,i,o,a){var c,s,l,u,f,p,d,h,m,y,v,g,b,x,w,k,E,S,_=r.constructor,O=r.s==i.s?1:-1,A=r.d,C=i.d;if(!r.s)return new _(r);if(!i.s)throw Error(pA+"Division by zero");for(s=r.e-i.e,E=C.length,w=A.length,h=(d=new _(O)).d=[],l=0;C[l]==(A[l]||0);)++l;if(C[l]>(A[l]||0)&&--s,(g=null==o?o=_.precision:a?o+(CA(r)-CA(i))+1:o)<0)return new _(0);if(g=g/bA+2|0,l=0,1==E)for(u=0,C=C[0],g++;(l<w||u)&&g--;l++)b=u*gA+(A[l]||0),h[l]=b/C|0,u=b%C|0;else{for((u=gA/(C[0]+1)|0)>1&&(C=e(C,u),A=e(A,u),E=C.length,w=A.length),x=E,y=(m=A.slice(0,E)).length;y<E;)m[y++]=0;(S=C.slice()).unshift(0),k=C[0],C[1]>=gA/2&&++k;do{u=0,(c=t(C,m,E,y))<0?(v=m[0],E!=y&&(v=v*gA+(m[1]||0)),(u=v/k|0)>1?(u>=gA&&(u=gA-1),1==(c=t(f=e(C,u),m,p=f.length,y=m.length))&&(u--,n(f,E<p?S:C,p))):(0==u&&(c=u=1),f=C.slice()),(p=f.length)<y&&f.unshift(0),n(m,f,y),-1==c&&(c=t(C,m,E,y=m.length))<1&&(u++,n(m,E<y?S:C,y)),y=m.length):0===c&&(u++,m=[0]),h[l++]=u,c&&m[0]?m[y++]=A[x]||0:(m=[A[x]],y=1)}while((x++<w||void 0!==m[0])&&g--)}return h[0]||h.shift(),d.e=s,MA(d,a?o+CA(d)+1:o)}}();function AA(e,t){var n,r,i,o,a,c=0,s=0,l=e.constructor,u=l.precision;if(CA(e)>16)throw Error(hA+CA(e));if(!e.s)return new l(aA);for(null==t?(fA=!1,a=u):a=t,o=new l(.03125);e.abs().gte(.1);)e=e.times(o),s+=5;for(a+=Math.log(yA(2,s))/Math.LN10*2+5|0,n=r=i=new l(aA),l.precision=a;;){if(r=MA(r.times(e),a),n=n.times(++c),_A((o=i.plus(OA(r,n,a))).d).slice(0,a)===_A(i.d).slice(0,a)){for(;s--;)i=MA(i.times(i),a);return l.precision=u,null==t?(fA=!0,MA(i,u)):i}i=o}}function CA(e){for(var t=e.e*bA,n=e.d[0];n>=10;n/=10)t++;return t}function TA(e,t,n){if(t>e.LN10.sd())throw fA=!0,n&&(e.precision=n),Error(pA+"LN10 precision limit exceeded");return MA(new e(e.LN10),t)}function PA(e){for(var t="";e--;)t+="0";return t}function DA(e,t){var n,r,i,o,a,c,s,l,u,f=1,p=e,d=p.d,h=p.constructor,m=h.precision;if(p.s<1)throw Error(pA+(p.s?"NaN":"-Infinity"));if(p.eq(aA))return new h(0);if(null==t?(fA=!1,l=m):l=t,p.eq(10))return null==t&&(fA=!0),TA(h,l);if(l+=10,h.precision=l,r=(n=_A(d)).charAt(0),o=CA(p),!(Math.abs(o)<15e14))return s=TA(h,l+2,m).times(o+""),p=DA(new h(r+"."+n.slice(1)),l-10).plus(s),h.precision=m,null==t?(fA=!0,MA(p,m)):p;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=_A((p=p.times(e)).d)).charAt(0),f++;for(o=CA(p),r>1?(p=new h("0."+n),o++):p=new h(r+"."+n.slice(1)),c=a=p=OA(p.minus(aA),p.plus(aA),l),u=MA(p.times(p),l),i=3;;){if(a=MA(a.times(u),l),_A((s=c.plus(OA(a,new h(i),l))).d).slice(0,l)===_A(c.d).slice(0,l))return c=c.times(2),0!==o&&(c=c.plus(TA(h,l+2,m).times(o+""))),c=OA(c,new h(f),l),h.precision=m,null==t?(fA=!0,MA(c,m)):c;c=s,i+=2}}function jA(e,t){var n,r,i;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(i=t.length;48===t.charCodeAt(i-1);)--i;if(t=t.slice(r,i)){if(i-=r,n=n-r-1,e.e=mA(n/bA),e.d=[],r=(n+1)%bA,n<0&&(r+=bA),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=bA;r<i;)e.d.push(+t.slice(r,r+=bA));t=t.slice(r),r=bA-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),fA&&(e.e>wA||e.e<-wA))throw Error(hA+n)}else e.s=0,e.e=0,e.d=[0];return e}function MA(e,t,n){var r,i,o,a,c,s,l,u,f=e.d;for(a=1,o=f[0];o>=10;o/=10)a++;if((r=t-a)<0)r+=bA,i=t,l=f[u=0];else{if((u=Math.ceil((r+1)/bA))>=(o=f.length))return e;for(l=o=f[u],a=1;o>=10;o/=10)a++;i=(r%=bA)-bA+a}if(void 0!==n&&(c=l/(o=yA(10,a-i-1))%10|0,s=t<0||void 0!==f[u+1]||l%o,s=n<4?(c||s)&&(0==n||n==(e.s<0?3:2)):c>5||5==c&&(4==n||s||6==n&&(r>0?i>0?l/yA(10,a-i):0:f[u-1])%10&1||n==(e.s<0?8:7))),t<1||!f[0])return s?(o=CA(e),f.length=1,t=t-o-1,f[0]=yA(10,(bA-t%bA)%bA),e.e=mA(-t/bA)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(0==r?(f.length=u,o=1,u--):(f.length=u+1,o=yA(10,bA-r),f[u]=i>0?(l/yA(10,a-i)%yA(10,i)|0)*o:0),s)for(;;){if(0==u){(f[0]+=o)==gA&&(f[0]=1,++e.e);break}if(f[u]+=o,f[u]!=gA)break;f[u--]=0,o=1}for(r=f.length;0===f[--r];)f.pop();if(fA&&(e.e>wA||e.e<-wA))throw Error(hA+CA(e));return e}function NA(e,t){var n,r,i,o,a,c,s,l,u,f,p=e.constructor,d=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),fA?MA(t,d):t;if(s=e.d,f=t.d,r=t.e,l=e.e,s=s.slice(),a=l-r){for((u=a<0)?(n=s,a=-a,c=f.length):(n=f,r=l,c=s.length),a>(i=Math.max(Math.ceil(d/bA),c)+2)&&(a=i,n.length=1),n.reverse(),i=a;i--;)n.push(0);n.reverse()}else{for((u=(i=s.length)<(c=f.length))&&(c=i),i=0;i<c;i++)if(s[i]!=f[i]){u=s[i]<f[i];break}a=0}for(u&&(n=s,s=f,f=n,t.s=-t.s),c=s.length,i=f.length-c;i>0;--i)s[c++]=0;for(i=f.length;i>a;){if(s[--i]<f[i]){for(o=i;o&&0===s[--o];)s[o]=gA-1;--s[o],s[i]+=gA}s[i]-=f[i]}for(;0===s[--c];)s.pop();for(;0===s[0];s.shift())--r;return s[0]?(t.d=s,t.e=r,fA?MA(t,d):t):new p(0)}function IA(e,t,n){var r,i=CA(e),o=_A(e.d),a=o.length;return t?(n&&(r=n-a)>0?o=o.charAt(0)+"."+o.slice(1)+PA(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+PA(-i-1)+o,n&&(r=n-a)>0&&(o+=PA(r))):i>=a?(o+=PA(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+PA(r))):((r=i+1)<a&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-a)>0&&(i+1===a&&(o+="."),o+=PA(r))),e.s<0?"-"+o:o}function RA(e,t){if(e.length>t)return e.length=t,!0}function LA(e){if(!e||"object"!=typeof e)throw Error(pA+"Object expected");var t,n,r,i=["precision",1,uA,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if(void 0!==(r=e[n=i[t]])){if(!(mA(r)===r&&r>=i[t+1]&&r<=i[t+2]))throw Error(dA+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(dA+n+": "+r);this[n]=new this(r)}return this}var FA=function e(t){var n,r,i;function o(e){var t=this;if(!(t instanceof o))return new o(e);if(t.constructor=o,e instanceof o)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(dA+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])):jA(t,e.toString())}if("string"!=typeof e)throw Error(dA+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!vA.test(e))throw Error(dA+e);jA(t,e)}if(o.prototype=kA,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=e,o.config=o.set=LA,void 0===t&&(t={}),t)for(i=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n<i.length;)t.hasOwnProperty(r=i[n++])||(t[r]=this[r]);return o.config(t),o}({precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"});aA=new FA(1);var zA=FA,BA=O(Object.freeze({__proto__:null,get Decimal(){return FA},default:zA})),qA={};function HA(e){return function(e){if(Array.isArray(e))return VA(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 VA(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 VA(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 VA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(qA,"__esModule",{value:!0}),qA.memoize=qA.reverse=qA.compose=qA.map=qA.range=qA.curry=qA.PLACE_HOLDER=void 0;var UA=function(e){return e},WA={"@@functional/placeholder":!0};qA.PLACE_HOLDER=WA;var $A=function(e){return e===WA},GA=function(e){return function t(){return 0===arguments.length||1===arguments.length&&$A(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},YA=function e(t,n){return 1===t?n:GA((function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=i.filter((function(e){return e!==WA})).length;return a>=t?n.apply(void 0,i):e(t-a,GA((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o=i.map((function(e){return $A(e)?t.shift():e}));return n.apply(void 0,HA(o).concat(t))})))}))},XA=function(e){return YA(e.length,e)};qA.curry=XA;qA.range=function(e,t){for(var n=[],r=e;r<t;++r)n[r-e]=r;return n};var ZA=XA((function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map((function(e){return t[e]})).map(e)}));qA.map=ZA;qA.compose=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return UA;var r=t.reverse(),i=r[0],o=r.slice(1);return function(){return o.reduce((function(e,t){return t(e)}),i.apply(void 0,arguments))}};qA.reverse=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")};qA.memoize=function(e){var t=null,n=null;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t&&i.every((function(e,n){return e===t[n]}))?n:(t=i,n=e.apply(void 0,i))}};var KA={};Object.defineProperty(KA,"__esModule",{value:!0}),KA.default=void 0;var JA=function(e){return e&&e.__esModule?e:{default:e}}(BA),QA=qA;var eC=(0,QA.curry)((function(e,t,n){var r=+e;return r+n*(+t-r)})),tC=(0,QA.curry)((function(e,t,n){var r=t-+e;return(n-e)/(r=r||1/0)})),nC=(0,QA.curry)((function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))})),rC={rangeStep:function(e,t,n){for(var r=new JA.default(e),i=0,o=[];r.lt(t)&&i<1e5;)o.push(r.toNumber()),r=r.add(n),i++;return o},getDigitCount:function(e){return 0===e?1:Math.floor(new JA.default(e).abs().log(10).toNumber())+1},interpolateNumber:eC,uninterpolateNumber:tC,uninterpolateTruncation:nC};KA.default=rC,Object.defineProperty(lA,"__esModule",{value:!0}),lA.getTickValuesFixedDomain=lA.getTickValues=lA.getNiceTickValues=void 0;var iC=cC(BA),oC=qA,aC=cC(KA);function cC(e){return e&&e.__esModule?e:{default:e}}function sC(e){return function(e){if(Array.isArray(e))return fC(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||uC(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 lC(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,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||uC(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 uC(e,t){if(e){if("string"==typeof e)return fC(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)?fC(e,t):void 0}}function fC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pC(e){var t=lC(e,2),n=t[0],r=t[1],i=n,o=r;return n>r&&(i=r,o=n),[i,o]}function dC(e,t,n){if(e.lte(0))return new iC.default(0);var r=aC.default.getDigitCount(e.toNumber()),i=new iC.default(10).pow(r),o=e.div(i),a=1!==r?.05:.1,c=new iC.default(Math.ceil(o.div(a).toNumber())).add(n).mul(a).mul(i);return t?c:new iC.default(Math.ceil(c))}function hC(e,t,n){var r=1,i=new iC.default(e);if(!i.isint()&&n){var o=Math.abs(e);o<1?(r=new iC.default(10).pow(aC.default.getDigitCount(e)-1),i=new iC.default(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new iC.default(Math.floor(e)))}else 0===e?i=new iC.default(Math.floor((t-1)/2)):n||(i=new iC.default(Math.floor(e)));var a=Math.floor((t-1)/2),c=(0,oC.compose)((0,oC.map)((function(e){return i.add(new iC.default(e-a).mul(r)).toNumber()})),oC.range);return c(0,t)}function mC(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new iC.default(0),tickMin:new iC.default(0),tickMax:new iC.default(0)};var o,a=dC(new iC.default(t).sub(e).div(n-1),r,i);o=e<=0&&t>=0?new iC.default(0):(o=new iC.default(e).add(t).div(2)).sub(new iC.default(o).mod(a));var c=Math.ceil(o.sub(e).div(a).toNumber()),s=Math.ceil(new iC.default(t).sub(o).div(a).toNumber()),l=c+s+1;return l>n?mC(e,t,n,r,i+1):(l<n&&(s=t>0?s+(n-l):s,c=t>0?c:c+(n-l)),{step:a,tickMin:o.sub(new iC.default(c).mul(a)),tickMax:o.add(new iC.default(s).mul(a))})}var yC=(0,oC.memoize)((function(e){var t=lC(e,2),n=t[0],r=t[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(i,2),c=lC(pC([n,r]),2),s=c[0],l=c[1];if(s===-1/0||l===1/0){var u=l===1/0?[s].concat(sC((0,oC.range)(0,i-1).map((function(){return 1/0})))):[].concat(sC((0,oC.range)(0,i-1).map((function(){return-1/0}))),[l]);return n>r?(0,oC.reverse)(u):u}if(s===l)return hC(s,i,o);var f=mC(s,l,a,o),p=f.step,d=f.tickMin,h=f.tickMax,m=aC.default.rangeStep(d,h.add(new iC.default(.1).mul(p)),p);return n>r?(0,oC.reverse)(m):m}));lA.getNiceTickValues=yC;var vC=(0,oC.memoize)((function(e){var t=lC(e,2),n=t[0],r=t[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(i,2),c=lC(pC([n,r]),2),s=c[0],l=c[1];if(s===-1/0||l===1/0)return[n,r];if(s===l)return hC(s,i,o);var u=dC(new iC.default(l).sub(s).div(a-1),o,0),f=(0,oC.compose)((0,oC.map)((function(e){return new iC.default(s).add(new iC.default(e).mul(u)).toNumber()})),oC.range),p=f(0,a).filter((function(e){return e>=s&&e<=l}));return n>r?(0,oC.reverse)(p):p}));lA.getTickValues=vC;var gC=(0,oC.memoize)((function(e,t){var n=lC(e,2),r=n[0],i=n[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=lC(pC([r,i]),2),c=a[0],s=a[1];if(c===-1/0||s===1/0)return[r,i];if(c===s)return[c];var l=Math.max(t,2),u=dC(new iC.default(s).sub(c).div(l-1),o,0),f=[].concat(sC(aC.default.rangeStep(new iC.default(c),new iC.default(s).sub(new iC.default(.99).mul(u)),u)),[s]);return r>i?(0,oC.reverse)(f):f}));lA.getTickValuesFixedDomain=gC,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getTickValues",{enumerable:!0,get:function(){return t.getTickValues}}),Object.defineProperty(e,"getNiceTickValues",{enumerable:!0,get:function(){return t.getNiceTickValues}}),Object.defineProperty(e,"getTickValuesFixedDomain",{enumerable:!0,get:function(){return t.getTickValuesFixedDomain}});var t=lA}(sA);var bC=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function xC(){return xC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xC.apply(this,arguments)}function wC(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,c=[],s=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return kC(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 kC(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 kC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function EC(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function SC(t){var n=t.offset,r=t.layout,i=t.width,o=t.dataKey,a=t.data,c=t.dataPointFormatter,s=t.xAxis,l=t.yAxis,u=EC(t,bC),f=hc(u),p=a.map((function(t,a){var u=c(t,o),p=u.x,d=u.y,h=u.value,m=u.errorVal;if(!m)return null;var y,v,g=[];if(Array.isArray(m)){var b=wC(m,2);y=b[0],v=b[1]}else y=v=m;if("vertical"===r){var x=s.scale,w=d+n,k=w+i,E=w-i,S=x(h-y),_=x(h+v);g.push({x1:_,y1:k,x2:_,y2:E}),g.push({x1:S,y1:w,x2:_,y2:w}),g.push({x1:S,y1:k,x2:S,y2:E})}else if("horizontal"===r){var O=l.scale,A=p+n,C=A-i,T=A+i,P=O(h-y),D=O(h+v);g.push({x1:C,y1:D,x2:T,y2:D}),g.push({x1:A,y1:P,x2:A,y2:D}),g.push({x1:C,y1:P,x2:T,y2:P})}return e.createElement(_c,xC({className:"recharts-errorBar",key:"bar-".concat(a)},f),g.map((function(t,n){return e.createElement("line",xC({},t,{key:"line-".concat(n)}))})))}));return e.createElement(_c,{className:"recharts-errorBars"},p)}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},_C(e)}function OC(e){return function(e){if(Array.isArray(e))return AC(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return AC(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 AC(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 AC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function CC(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 TC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?CC(Object(n),!0).forEach((function(t){PC(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function PC(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==_C(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==_C(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===_C(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DC(e,t,n){return Sa(e)||Sa(t)?n:za(t)?ka(e,t,n):hi(t)?t(e):n}function jC(e,t,n,r){var i=Ww(e,(function(e){return DC(e,t)}));if("number"===n){var o=i.filter((function(e){return Fa(e)||parseFloat(e)}));return o.length?[Fw(o),jw(o)]:[1/0,-1/0]}return(r?i.filter((function(e){return!Sa(e)})):i).map((function(e){return za(e)||e instanceof Date?e:""}))}SC.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},SC.displayName="ErrorBar";var MC=function(e){var t,n=e.type.displayName,r=e.props,i=r.stroke,o=r.fill;switch(n){case"Line":t=i;break;case"Area":case"Radar":t=i&&"none"!==i?i:o;break;default:t=o}return t},NC=function(e){var t,n=e.children,r=e.formattedGraphicalItems,i=e.legendWidth,o=e.legendContent,a=lc(n,Ud);return a?(t=a.props&&a.props.payload?a.props&&a.props.payload:"children"===o?(r||[]).reduce((function(e,t){var n=t.item,r=t.props,i=r.sectors||r.data||[];return e.concat(i.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,i=n.name,o=n.legendType;return{inactive:n.hide,dataKey:r,type:a.props.iconType||o||"square",color:MC(t),value:i||r,payload:t.props}})),TC(TC(TC({},a.props),Ud.getWithHeight(a,i)),{},{payload:t,item:a})):null},IC=function(e,t,n,r,i){var o=sc(t.props.children,SC).filter((function(e){return function(e,t,n){return!!Sa(t)||("horizontal"===e?"yAxis"===t:"vertical"===e||"x"===n?"xAxis"===t:"y"!==n||"yAxis"===t)}(r,i,e.props.direction)}));if(o&&o.length){var a=o.map((function(e){return e.props.dataKey}));return e.reduce((function(e,t){var r=DC(t,n,0),i=yi(r)?[Fw(r),jw(r)]:[r,r],o=a.reduce((function(e,n){var r=DC(t,n,0),o=i[0]-Math.abs(yi(r)?r[0]:r),a=i[1]+Math.abs(yi(r)?r[1]:r);return[Math.min(o,e[0]),Math.max(a,e[1])]}),[1/0,-1/0]);return[Math.min(o[0],e[0]),Math.max(o[1],e[1])]}),[1/0,-1/0])}return null},RC=function(e,t,n,r,i){var o=t.map((function(t){var o=t.props.dataKey;return"number"===n&&o&&IC(e,t,o,r)||jC(e,o,n,i)}));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 a={};return o.reduce((function(e,t){for(var n=0,r=t.length;n<r;n++)a[t[n]]||(a[t[n]]=!0,e.push(t[n]));return e}),[])},LC=function(e,t){return"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t},FC=function(e,t,n){var r,i,o=e.map((function(e){return e.coordinate===t&&(r=!0),e.coordinate===n&&(i=!0),e.coordinate}));return r||o.push(t),i||o.push(n),o},zC=function(e,t,n){if(!e)return null;var r=e.scale,i=e.duplicateDomain,o=e.type,a=e.range,c="scaleBand"===e.realScaleType?r.bandwidth()/2:2,s=(t||n)&&"category"===o&&r.bandwidth?r.bandwidth()/c:0;return s="angleAxis"===e.axisType&&(null==a?void 0:a.length)>=2?2*Ra(a[0]-a[1])*s:s,t&&(e.ticks||e.niceTicks)?(e.ticks||e.niceTicks).map((function(e){var t=i?i.indexOf(e):e;return{coordinate:r(t)+s,value:e,offset:s}})).filter((function(e){return!Ia(e.coordinate)})):e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map((function(e,t){return{coordinate:r(e)+s,value:e,index:t,offset:s}})):r.ticks&&!n?r.ticks(e.tickCount).map((function(e){return{coordinate:r(e)+s,value:e,offset:s}})):r.domain().map((function(e,t){return{coordinate:r(e)+s,value:i?i[e]:e,index:t,offset:s}}))},BC=function(e,t,n){var r;return hi(n)?r=n:hi(t)&&(r=t),hi(e)||r?function(t,n,i,o){hi(e)&&e(t,n,i,o),hi(r)&&r(t,n,i,o)}:null},qC=function(e,t,n){var r=e.scale,i=e.type,o=e.layout,a=e.axisType;if("auto"===r)return"radial"===o&&"radiusAxis"===a?{scale:gk(),realScaleType:"band"}:"radial"===o&&"angleAxis"===a?{scale:bS(),realScaleType:"linear"}:"category"===i&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!n)?{scale:xk(),realScaleType:"point"}:"category"===i?{scale:gk(),realScaleType:"band"}:{scale:bS(),realScaleType:"linear"};if(wi(r)){var c="scale".concat(Xf(r));return{scale:(cA[c]||xk)(),realScaleType:cA[c]?c:"point"}}return hi(r)?{scale:r}:{scale:xk(),realScaleType:"point"}},HC=1e-4,VC=function(e){var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,r=e.range(),i=Math.min(r[0],r[1])-HC,o=Math.max(r[0],r[1])+HC,a=e(t[0]),c=e(t[n-1]);(a<i||a>o||c<i||c>o)&&e.domain([t[0],t[n-1]])}},UC=function(e,t){if(!e)return null;for(var n=0,r=e.length;n<r;n++)if(e[n].item===t)return e[n].position;return null},WC=function(e,t){if(!t||2!==t.length||!Fa(t[0])||!Fa(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!Fa(e[0])||e[0]<n)&&(i[0]=n),(!Fa(e[1])||e[1]>r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]<n&&(i[1]=n),i},$C={sign:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var i=0,o=0,a=0;a<t;++a){var c=Ia(e[a][n][1])?e[a][n][0]:e[a][n][1];c>=0?(e[a][n][0]=i,e[a][n][1]=i+c,i=e[a][n][1]):(e[a][n][0]=o,e[a][n][1]=o+c,o=e[a][n][1])}},expand:function(e,t){if((r=e.length)>0){for(var n,r,i,o=0,a=e[0].length;o<a;++o){for(i=n=0;n<r;++n)i+=e[n][o][1]||0;if(i)for(n=0;n<r;++n)e[n][o][1]/=i}id(e,t)}},none:id,silhouette:function(e,t){if((n=e.length)>0){for(var n,r=0,i=e[t[0]],o=i.length;r<o;++r){for(var a=0,c=0;a<n;++a)c+=e[a][r][1]||0;i[r][1]+=i[r][0]=-c/2}id(e,t)}},wiggle:function(e,t){if((i=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,i,o=0,a=1;a<r;++a){for(var c=0,s=0,l=0;c<i;++c){for(var u=e[t[c]],f=u[a][1]||0,p=(f-(u[a-1][1]||0))/2,d=0;d<c;++d){var h=e[t[d]];p+=(h[a][1]||0)-(h[a-1][1]||0)}s+=f,l+=p*f}n[a-1][1]+=n[a-1][0]=o,s&&(o-=l/s)}n[a-1][1]+=n[a-1][0]=o,id(e,t)}},positive:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var i=0,o=0;o<t;++o){var a=Ia(e[o][n][1])?e[o][n][0]:e[o][n][1];a>=0?(e[o][n][0]=i,e[o][n][1]=i+a,i=e[o][n][1]):(e[o][n][0]=0,e[o][n][1]=0)}}},GC=function(e,t,n){var r=t.map((function(e){return e.props.dataKey})),i=function(){var e=Zf([]),t=od,n=id,r=ad;function i(i){var o,a,c=Array.from(e.apply(this,arguments),cd),s=c.length,l=-1;for(const e of i)for(o=0,++l;o<s;++o)(c[o][l]=[0,+r(e,c[o].key,l,i)]).data=e;for(o=0,a=lp(t(c));o<s;++o)c[a[o]].index=o;return n(c,a),c}return i.keys=function(t){return arguments.length?(e="function"==typeof t?t:Zf(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r="function"==typeof e?e:Zf(+e),i):r},i.order=function(e){return arguments.length?(t=null==e?od:"function"==typeof e?e:Zf(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=null==e?id:e,i):n},i}().keys(r).value((function(e,t){return+DC(e,t,0)})).order(od).offset($C[n]);return i(e)},YC=function(e,t){var n=t.realScaleType,r=t.type,i=t.tickCount,o=t.originalDomain,a=t.allowDecimals,c=n||t.scale;if("auto"!==c&&"linear"!==c)return null;if(i&&"number"===r&&o&&("auto"===o[0]||"auto"===o[1])){var s=e.domain();if(!s.length)return null;var l=sA.getNiceTickValues(s,i,a);return e.domain([Fw(l),jw(l)]),{niceTicks:l}}if(i&&"number"===r){var u=e.domain();return{niceTicks:sA.getTickValuesFixedDomain(u,i,a)}}return null},XC=function(e){var t=e.axis,n=e.ticks,r=e.bandSize,i=e.entry,o=e.index,a=e.dataKey;if("category"===t.type){if(!t.allowDuplicatedCategory&&t.dataKey&&!Sa(i[t.dataKey])){var c=Wa(n,"value",i[t.dataKey]);if(c)return c.coordinate+r/2}return n[o]?n[o].coordinate+r/2:null}var s=DC(i,Sa(a)?t.dataKey:a);return Sa(s)?null:t.scale(s)},ZC=function(e){var t=e.axis,n=e.ticks,r=e.offset,i=e.bandSize,o=e.entry,a=e.index;if("category"===t.type)return n[a]?n[a].coordinate+r:null;var c=DC(o,t.dataKey,t.domain[a]);return Sa(c)?null:t.scale(c)-i/2+r},KC=function(e){var t=e.numericAxis,n=t.scale.domain();if("number"===t.type){var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return r<=0&&i>=0?0:i<0?i:r}return n[0]},JC=function(e,t,n){return Object.keys(e).reduce((function(r,i){var o=e[i].stackedData.reduce((function(e,r){var i=r.slice(t,n+1).reduce((function(e,t){return[Fw(t.concat([e[0]]).filter(Fa)),jw(t.concat([e[1]]).filter(Fa))]}),[1/0,-1/0]);return[Math.min(e[0],i[0]),Math.max(e[1],i[1])]}),[1/0,-1/0]);return[Math.min(o[0],r[0]),Math.max(o[1],r[1])]}),[1/0,-1/0]).map((function(e){return e===1/0||e===-1/0?0:e}))},QC=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,eT=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,tT=function(e,t,n){if(hi(e))return e(t,n);if(!yi(e))return t;var r=[];if(Fa(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(QC.test(e[0])){var i=+QC.exec(e[0])[1];r[0]=t[0]-i}else hi(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if(Fa(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(eT.test(e[1])){var o=+eT.exec(e[1])[1];r[1]=t[1]+o}else hi(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},nT=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 i=Qg(t,(function(e){return e.coordinate})),o=1/0,a=1,c=i.length;a<c;a++){var s=i[a],l=i[a-1];o=Math.min((s.coordinate||0)-(l.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},rT=function(e,t,n){return e&&e.length?Sw(e,ka(n,"type.defaultProps.domain"))?t:e:t},iT=function(e,t){var n=e.props,r=n.dataKey,i=n.name,o=n.unit,a=n.formatter,c=n.tooltipType,s=n.chartType;return TC(TC({},hc(e)),{},{dataKey:r,unit:o,formatter:a,name:i||r,color:MC(e),value:DC(t,r),type:c,payload:t,chartType:s})};function oT(e){return oT="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},oT(e)}function aT(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;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aT(Object(n),!0).forEach((function(t){sT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sT(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==oT(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==oT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===oT(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lT(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,c=[],s=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return uT(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 uT(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 uT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var fT=Math.PI/180,pT=function(e){return 180*e/Math.PI},dT=function(e,t,n,r){return{x:e+Math.cos(-fT*r)*n,y:t+Math.sin(-fT*r)*n}},hT=function(e,t){var n=arguments.length>2&&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},mT=function(e,t,n,r,i){var o=e.width,a=e.height,c=e.startAngle,s=e.endAngle,l=Ha(e.cx,o,o/2),u=Ha(e.cy,a,a/2),f=hT(o,a,n),p=Ha(e.innerRadius,f,0),d=Ha(e.outerRadius,f,.8*f);return Object.keys(t).reduce((function(e,n){var o,a=t[n],f=a.domain,h=a.reversed;if(Sa(a.range))"angleAxis"===r?o=[c,s]:"radiusAxis"===r&&(o=[p,d]),h&&(o=[o[1],o[0]]);else{var m=lT(o=a.range,2);c=m[0],s=m[1]}var y=qC(a,i),v=y.realScaleType,g=y.scale;g.domain(f).range(o),VC(g);var b=YC(g,cT(cT({},a),{},{realScaleType:v})),x=cT(cT(cT({},a),b),{},{range:o,radius:d,realScaleType:v,scale:g,cx:l,cy:u,innerRadius:p,outerRadius:d,startAngle:c,endAngle:s});return cT(cT({},e),{},sT({},n,x))}),{})},yT=function(e,t){var n=e.x,r=e.y,i=t.cx,o=t.cy,a=function(e,t){var n=e.x,r=e.y,i=t.x,o=t.y;return Math.sqrt(Math.pow(n-i,2)+Math.pow(r-o,2))}({x:n,y:r},{x:i,y:o});if(a<=0)return{radius:a};var c=(n-i)/a,s=Math.acos(c);return r>o&&(s=2*Math.PI-s),{radius:a,angle:pT(s),angleInRadian:s}},vT=function(e,t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),o=Math.floor(r/360);return e+360*Math.min(i,o)},gT=function(e,t){var n=e.x,r=e.y,i=yT({x:n,y:r},t),o=i.radius,a=i.angle,c=t.innerRadius,s=t.outerRadius;if(o<c||o>s)return!1;if(0===o)return!0;var l,u=function(e){var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),i=Math.floor(n/360),o=Math.min(r,i);return{startAngle:t-360*o,endAngle:n-360*o}}(t),f=u.startAngle,p=u.endAngle,d=a;if(f<=p){for(;d>p;)d-=360;for(;d<f;)d+=360;l=d>=f&&d<=p}else{for(;d>f;)d-=360;for(;d<p;)d+=360;l=d>=p&&d<=f}return l?cT(cT({},t),{},{radius:o,angle:vT(d,t)}):null};function bT(e){return bT="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},bT(e)}function xT(e){return function(e){if(Array.isArray(e))return wT(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return wT(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 wT(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 wT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function kT(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 ET(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kT(Object(n),!0).forEach((function(t){ST(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ST(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==bT(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==bT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===bT(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _T(){return _T=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_T.apply(this,arguments)}var OT=function(e){var t=e.value,n=e.formatter,r=Sa(e.children)?t:e.children;return hi(n)?n(r):r},AT=function(t,n,r){var i,o,a=t.position,c=t.viewBox,s=t.offset,l=t.className,u=c,f=u.cx,p=u.cy,d=u.innerRadius,h=u.outerRadius,m=u.startAngle,y=u.endAngle,v=u.clockWise,g=(d+h)/2,b=function(e,t){return Ra(t-e)*Math.min(Math.abs(t-e),360)}(m,y),x=b>=0?1:-1;"insideStart"===a?(i=m+x*s,o=v):"insideEnd"===a?(i=y-x*s,o=!v):"end"===a&&(i=y+x*s,o=v),o=b<=0?o:!o;var w=dT(f,p,g,i),k=dT(f,p,g,i+359*(o?1:-1)),E="M".concat(w.x,",").concat(w.y,"\n A").concat(g,",").concat(g,",0,1,").concat(o?0:1,",\n ").concat(k.x,",").concat(k.y),S=Sa(t.id)?qa("recharts-radial-line-"):t.id;return e.createElement("text",_T({},r,{dominantBaseline:"central",className:$r("recharts-radial-bar-label",l)}),e.createElement("defs",null,e.createElement("path",{id:S,d:E})),e.createElement("textPath",{xlinkHref:"#".concat(S)},n))},CT=function(e){var t=e.viewBox,n=e.offset,r=e.position,i=t,o=i.cx,a=i.cy,c=i.innerRadius,s=i.outerRadius,l=(i.startAngle+i.endAngle)/2;if("outside"===r){var u=dT(o,a,s+n,l),f=u.x;return{x:f,y:u.y,textAnchor:f>=o?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"end"};var p=dT(o,a,(c+s)/2,l);return{x:p.x,y:p.y,textAnchor:"middle",verticalAnchor:"middle"}},TT=function(e){var t=e.viewBox,n=e.parentViewBox,r=e.offset,i=e.position,o=t,a=o.x,c=o.y,s=o.width,l=o.height,u=l>=0?1:-1,f=u*r,p=u>0?"end":"start",d=u>0?"start":"end",h=s>=0?1:-1,m=h*r,y=h>0?"end":"start",v=h>0?"start":"end";if("top"===i)return ET(ET({},{x:a+s/2,y:c-u*r,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(c-n.y,0),width:s}:{});if("bottom"===i)return ET(ET({},{x:a+s/2,y:c+l+f,textAnchor:"middle",verticalAnchor:d}),n?{height:Math.max(n.y+n.height-(c+l),0),width:s}:{});if("left"===i){var g={x:a-m,y:c+l/2,textAnchor:y,verticalAnchor:"middle"};return ET(ET({},g),n?{width:Math.max(g.x-n.x,0),height:l}:{})}if("right"===i){var b={x:a+s+m,y:c+l/2,textAnchor:v,verticalAnchor:"middle"};return ET(ET({},b),n?{width:Math.max(n.x+n.width-b.x,0),height:l}:{})}var x=n?{width:s,height:l}:{};return"insideLeft"===i?ET({x:a+m,y:c+l/2,textAnchor:v,verticalAnchor:"middle"},x):"insideRight"===i?ET({x:a+s-m,y:c+l/2,textAnchor:y,verticalAnchor:"middle"},x):"insideTop"===i?ET({x:a+s/2,y:c+f,textAnchor:"middle",verticalAnchor:d},x):"insideBottom"===i?ET({x:a+s/2,y:c+l-f,textAnchor:"middle",verticalAnchor:p},x):"insideTopLeft"===i?ET({x:a+m,y:c+f,textAnchor:v,verticalAnchor:d},x):"insideTopRight"===i?ET({x:a+s-m,y:c+f,textAnchor:y,verticalAnchor:d},x):"insideBottomLeft"===i?ET({x:a+m,y:c+l-f,textAnchor:v,verticalAnchor:p},x):"insideBottomRight"===i?ET({x:a+s-m,y:c+l-f,textAnchor:y,verticalAnchor:p},x):Yr(i)&&(Fa(i.x)||La(i.x))&&(Fa(i.y)||La(i.y))?ET({x:a+Ha(i.x,s),y:c+Ha(i.y,l),textAnchor:"end",verticalAnchor:"end"},x):ET({x:a+s/2,y:c+l/2,textAnchor:"middle",verticalAnchor:"middle"},x)},PT=function(e){return"cx"in e&&Fa(e.cx)};function DT(t){var r,i=t.viewBox,o=t.position,a=t.value,c=t.children,s=t.content,l=t.className,f=void 0===l?"":l,p=t.textBreakAll;if(!i||Sa(a)&&Sa(c)&&!u(s)&&!hi(s))return null;if(u(s))return d(s,t);if(hi(s)){if(u(r=n(s,t)))return r}else r=OT(t);var h=PT(i),m=hc(t,!0);if(h&&("insideStart"===o||"insideEnd"===o||"end"===o))return AT(t,r,m);var y=h?CT(t):TT(t);return e.createElement(kw,_T({className:$r("recharts-label",f)},m,y,{breakAll:p}),r)}DT.displayName="Label",DT.defaultProps={offset:5};var jT=function(e){var t=e.cx,n=e.cy,r=e.angle,i=e.startAngle,o=e.endAngle,a=e.r,c=e.radius,s=e.innerRadius,l=e.outerRadius,u=e.x,f=e.y,p=e.top,d=e.left,h=e.width,m=e.height,y=e.clockWise,v=e.labelViewBox;if(v)return v;if(Fa(h)&&Fa(m)){if(Fa(u)&&Fa(f))return{x:u,y:f,width:h,height:m};if(Fa(p)&&Fa(d))return{x:p,y:d,width:h,height:m}}return Fa(u)&&Fa(f)?{x:u,y:f,width:0,height:0}:Fa(t)&&Fa(n)?{cx:t,cy:n,startAngle:i||r||0,endAngle:o||r||0,innerRadius:s||0,outerRadius:l||c||a||0,clockWise:y}:e.viewBox?e.viewBox:{}};DT.parseViewBox=jT,DT.renderCallByParent=function(t,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&r&&!t.label)return null;var i=t.children,o=jT(t),a=sc(i,DT).map((function(e,t){return d(e,{viewBox:n||o,key:"label-".concat(t)})}));if(!r)return a;var c=function(t,n){return t?!0===t?e.createElement(DT,{key:"label-implicit",viewBox:n}):za(t)?e.createElement(DT,{key:"label-implicit",viewBox:n,value:t}):u(t)?t.type===DT?d(t,{key:"label-implicit",viewBox:n}):e.createElement(DT,{key:"label-implicit",content:t,viewBox:n}):hi(t)?e.createElement(DT,{key:"label-implicit",content:t,viewBox:n}):Yr(t)?e.createElement(DT,_T({viewBox:n},t,{key:"label-implicit"})):null:null}(t.label,n||o);return[c].concat(xT(a))};var MT=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},NT=_(MT);function IT(e){return IT="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},IT(e)}var RT=["data","valueAccessor","dataKey","clockWise","id","textBreakAll"];function LT(e){return function(e){if(Array.isArray(e))return FT(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return FT(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 FT(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 FT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function zT(){return zT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zT.apply(this,arguments)}function BT(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 qT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?BT(Object(n),!0).forEach((function(t){HT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function HT(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==IT(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==IT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===IT(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VT(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var UT={valueAccessor:function(e){return yi(e.value)?NT(e.value):e.value}};function WT(t){var n=t.data,r=t.valueAccessor,i=t.dataKey,o=t.clockWise,a=t.id,c=t.textBreakAll,s=VT(t,RT);return n&&n.length?e.createElement(_c,{className:"recharts-label-list"},n.map((function(t,n){var l=Sa(i)?r(t,n):DC(t&&t.payload,i),u=Sa(a)?{}:{id:"".concat(a,"-").concat(n)};return e.createElement(DT,zT({},hc(t,!0),s,u,{parentViewBox:t.parentViewBox,index:n,value:l,textBreakAll:c,viewBox:DT.parseViewBox(Sa(o)?t:qT(qT({},t),{},{clockWise:o})),key:"label-".concat(n)}))}))):null}function $T(e){return $T="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},$T(e)}function GT(){return GT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},GT.apply(this,arguments)}function YT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,JT(r.key),r)}}function XT(e,t){return XT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},XT(e,t)}function ZT(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=KT(e);if(t){var i=KT(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===$T(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function KT(e){return KT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},KT(e)}function JT(e){var t=function(e,t){if("object"!==$T(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==$T(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===$T(t)?t:String(t)}WT.displayName="LabelList",WT.renderCallByParent=function(t,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&r&&!t.label)return null;var i=sc(t.children,WT).map((function(e,t){return d(e,{data:n,key:"labelList-".concat(t)})}));return r?[function(t,n){return t?!0===t?e.createElement(WT,{key:"labelList-implicit",data:n}):e.isValidElement(t)||hi(t)?e.createElement(WT,{key:"labelList-implicit",data:n,content:t}):Yr(t)?e.createElement(WT,zT({data:n},t,{key:"labelList-implicit"})):null:null}(t.label,n)].concat(LT(i)):i},WT.defaultProps=UT;var QT=function(e){var t=e.cx,n=e.cy,r=e.radius,i=e.angle,o=e.sign,a=e.isExternal,c=e.cornerRadius,s=e.cornerIsExternal,l=c*(a?1:-1)+r,u=Math.asin(c/l)/fT,f=s?i:i+o*u,p=s?i-o*u:i;return{center:dT(t,n,l,f),circleTangency:dT(t,n,r,f),lineTangency:dT(t,n,l*Math.cos(u*fT),p),theta:u}},eP=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,o=e.startAngle,a=function(e,t){return Ra(t-e)*Math.min(Math.abs(t-e),359.999)}(o,e.endAngle),c=o+a,s=dT(t,n,i,o),l=dT(t,n,i,c),u="M ".concat(s.x,",").concat(s.y,"\n A ").concat(i,",").concat(i,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(o>c),",\n ").concat(l.x,",").concat(l.y,"\n ");if(r>0){var f=dT(t,n,r,o),p=dT(t,n,r,c);u+="L ".concat(p.x,",").concat(p.y,"\n A ").concat(r,",").concat(r,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(o<=c),",\n ").concat(f.x,",").concat(f.y," Z")}else u+="L ".concat(t,",").concat(n," Z");return u},tP=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&XT(e,t)}(a,p);var n,r,i,o=ZT(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return n=a,r=[{key:"render",value:function(){var t=this.props,n=t.cx,r=t.cy,i=t.innerRadius,o=t.outerRadius,a=t.cornerRadius,c=t.forceCornerRadius,s=t.cornerIsExternal,l=t.startAngle,u=t.endAngle,f=t.className;if(o<i||l===u)return null;var p,d=$r("recharts-sector",f),h=o-i,m=Ha(a,h,0,!0);return p=m>0&&Math.abs(l-u)<360?function(e){var t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,o=e.cornerRadius,a=e.forceCornerRadius,c=e.cornerIsExternal,s=e.startAngle,l=e.endAngle,u=Ra(l-s),f=QT({cx:t,cy:n,radius:i,angle:s,sign:u,cornerRadius:o,cornerIsExternal:c}),p=f.circleTangency,d=f.lineTangency,h=f.theta,m=QT({cx:t,cy:n,radius:i,angle:l,sign:-u,cornerRadius:o,cornerIsExternal:c}),y=m.circleTangency,v=m.lineTangency,g=m.theta,b=c?Math.abs(s-l):Math.abs(s-l)-h-g;if(b<0)return a?"M ".concat(d.x,",").concat(d.y,"\n a").concat(o,",").concat(o,",0,0,1,").concat(2*o,",0\n a").concat(o,",").concat(o,",0,0,1,").concat(2*-o,",0\n "):eP({cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:s,endAngle:l});var x="M ".concat(d.x,",").concat(d.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(u<0),",").concat(p.x,",").concat(p.y,"\n A").concat(i,",").concat(i,",0,").concat(+(b>180),",").concat(+(u<0),",").concat(y.x,",").concat(y.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(u<0),",").concat(v.x,",").concat(v.y,"\n ");if(r>0){var w=QT({cx:t,cy:n,radius:r,angle:s,sign:u,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),k=w.circleTangency,E=w.lineTangency,S=w.theta,_=QT({cx:t,cy:n,radius:r,angle:l,sign:-u,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),O=_.circleTangency,A=_.lineTangency,C=_.theta,T=c?Math.abs(s-l):Math.abs(s-l)-S-C;if(T<0&&0===o)return"".concat(x,"L").concat(t,",").concat(n,"Z");x+="L".concat(A.x,",").concat(A.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(u<0),",").concat(O.x,",").concat(O.y,"\n A").concat(r,",").concat(r,",0,").concat(+(T>180),",").concat(+(u>0),",").concat(k.x,",").concat(k.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(u<0),",").concat(E.x,",").concat(E.y,"Z")}else x+="L".concat(t,",").concat(n,"Z");return x}({cx:n,cy:r,innerRadius:i,outerRadius:o,cornerRadius:Math.min(m,h/2),forceCornerRadius:c,cornerIsExternal:s,startAngle:l,endAngle:u}):eP({cx:n,cy:r,innerRadius:i,outerRadius:o,startAngle:l,endAngle:u}),e.createElement("path",GT({},hc(this.props,!0),{className:d,d:p,role:"img"}))}}],r&&YT(n.prototype,r),i&&YT(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function nP(e){return nP="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},nP(e)}function rP(){return rP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rP.apply(this,arguments)}function iP(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 oP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iP(Object(n),!0).forEach((function(t){uP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function aP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fP(r.key),r)}}function cP(e,t){return cP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},cP(e,t)}function sP(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=lP(e);if(t){var i=lP(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===nP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function lP(e){return lP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},lP(e)}function uP(e,t,n){return(t=fP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fP(e){var t=function(e,t){if("object"!==nP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==nP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===nP(t)?t:String(t)}!function(e,t,n){(t=JT(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(tP,"defaultProps",{cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1});var pP={curveBasisClosed:function(e){return new Rp(e)},curveBasisOpen:function(e){return new Lp(e)},curveBasis:function(e){return new Ip(e)},curveLinearClosed:function(e){return new Gp(e)},curveLinear:fp,curveMonotoneX:function(e){return new Jp(e)},curveMonotoneY:function(e){return new Qp(e)},curveNatural:function(e){return new td(e)},curveStep:function(e){return new rd(e,.5)},curveStepAfter:function(e){return new rd(e,1)},curveStepBefore:function(e){return new rd(e,0)}},dP=function(e){return e.x===+e.x&&e.y===+e.y},hP=function(e){return e.x},mP=function(e){return e.y},yP=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cP(e,t)}(a,p);var n,r,i,o=sP(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return n=a,r=[{key:"getPath",value:function(){var e,t=this.props,n=t.type,r=t.points,i=t.baseLine,o=t.layout,a=t.connectNulls,c=function(e,t){if(hi(e))return e;var n="curve".concat(Xf(e));return"curveMonotone"===n&&t?pP["".concat(n).concat("vertical"===t?"Y":"X")]:pP[n]||fp}(n,o),s=a?r.filter((function(e){return dP(e)})):r;if(yi(i)){var l=a?i.filter((function(e){return dP(e)})):i,u=s.map((function(e,t){return oP(oP({},e),{},{base:l[t]})}));return(e="vertical"===o?mp().y(mP).x1(hP).x0((function(e){return e.base.x})):mp().x(hP).y1(mP).y0((function(e){return e.base.y}))).defined(dP).curve(c),e(u)}return(e="vertical"===o&&Fa(i)?mp().y(mP).x1(hP).x0(i):Fa(i)?mp().x(hP).y1(mP).y0(i):hp().x(hP).y(mP)).defined(dP).curve(c),e(s)}},{key:"render",value:function(){var t=this.props,n=t.className,r=t.points,i=t.path,o=t.pathRef;if(!(r&&r.length||i))return null;var a=r&&r.length?this.getPath():i;return e.createElement("path",rP({},hc(this.props),Ja(this.props),{className:$r("recharts-curve",n),d:a,ref:o}))}}],r&&aP(n.prototype,r),i&&aP(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function vP(e){return vP="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},vP(e)}function gP(){return gP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gP.apply(this,arguments)}function bP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_P(r.key),r)}}function xP(e,t){return xP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xP(e,t)}function wP(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=EP(e);if(t){var i=EP(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===vP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return kP(e)}(this,n)}}function kP(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function EP(e){return EP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},EP(e)}function SP(e,t,n){return(t=_P(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _P(e){var t=function(e,t){if("object"!==vP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==vP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===vP(t)?t:String(t)}uP(yP,"defaultProps",{type:"linear",points:[],connectNulls:!1});var OP=function(e,t,n,r,i){var o,a=Math.min(Math.abs(n)/2,Math.abs(r)/2),c=r>=0?1:-1,s=n>=0?1:-1,l=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&i instanceof Array){for(var u=[0,0,0,0],f=0;f<4;f++)u[f]=i[f]>a?a:i[f];o="M".concat(e,",").concat(t+c*u[0]),u[0]>0&&(o+="A ".concat(u[0],",").concat(u[0],",0,0,").concat(l,",").concat(e+s*u[0],",").concat(t)),o+="L ".concat(e+n-s*u[1],",").concat(t),u[1]>0&&(o+="A ".concat(u[1],",").concat(u[1],",0,0,").concat(l,",\n ").concat(e+n,",").concat(t+c*u[1])),o+="L ".concat(e+n,",").concat(t+r-c*u[2]),u[2]>0&&(o+="A ".concat(u[2],",").concat(u[2],",0,0,").concat(l,",\n ").concat(e+n-s*u[2],",").concat(t+r)),o+="L ".concat(e+s*u[3],",").concat(t+r),u[3]>0&&(o+="A ".concat(u[3],",").concat(u[3],",0,0,").concat(l,",\n ").concat(e,",").concat(t+r-c*u[3])),o+="Z"}else if(a>0&&i===+i&&i>0){var p=Math.min(a,i);o="M ".concat(e,",").concat(t+c*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(e+s*p,",").concat(t,"\n L ").concat(e+n-s*p,",").concat(t,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(e+n,",").concat(t+c*p,"\n L ").concat(e+n,",").concat(t+r-c*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(e+n-s*p,",").concat(t+r,"\n L ").concat(e+s*p,",").concat(t+r,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(e,",").concat(t+r-c*p," Z")}else o="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return o},AP=function(e,t){if(!e||!t)return!1;var n=e.x,r=e.y,i=t.x,o=t.y,a=t.width,c=t.height;if(Math.abs(a)>0&&Math.abs(c)>0){var s=Math.min(i,i+a),l=Math.max(i,i+a),u=Math.min(o,o+c),f=Math.max(o,o+c);return n>=s&&n<=l&&r>=u&&r<=f}return!1},CP=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xP(e,t)}(a,p);var n,r,i,o=wP(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return SP(kP(e=o.call.apply(o,[this].concat(n))),"state",{totalLength:-1}),e}return n=a,r=[{key:"componentDidMount",value:function(){if(this.node&&this.node.getTotalLength)try{var e=this.node.getTotalLength();e&&this.setState({totalLength:e})}catch(e){}}},{key:"render",value:function(){var t=this,n=this.props,r=n.x,i=n.y,o=n.width,a=n.height,c=n.radius,s=n.className,l=this.state.totalLength,u=this.props,f=u.animationEasing,p=u.animationDuration,d=u.animationBegin,h=u.isAnimationActive,m=u.isUpdateAnimationActive;if(r!==+r||i!==+i||o!==+o||a!==+a||0===o||0===a)return null;var y=$r("recharts-rectangle",s);return m?e.createElement(Zv,{canBegin:l>0,from:{width:o,height:a,x:r,y:i},to:{width:o,height:a,x:r,y:i},duration:p,animationEasing:f,isActive:m},(function(n){var r=n.width,i=n.height,o=n.x,a=n.y;return e.createElement(Zv,{canBegin:l>0,from:"0px ".concat(-1===l?1:l,"px"),to:"".concat(l,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:p,isActive:h,easing:f},e.createElement("path",gP({},hc(t.props,!0),{className:y,d:OP(o,a,r,i,c),ref:function(e){t.node=e}})))})):e.createElement("path",gP({},hc(this.props,!0),{className:y,d:OP(r,i,o,a,c)}))}}],r&&bP(n.prototype,r),i&&bP(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function TP(e){return TP="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},TP(e)}SP(CP,"defaultProps",{x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"});var PP=["points","className","baseLinePoints","connectNulls"];function DP(){return DP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},DP.apply(this,arguments)}function jP(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function MP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(i=r.key,o=void 0,o=function(e,t){if("object"!==TP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==TP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"),"symbol"===TP(o)?o:String(o)),r)}var i,o}function NP(e,t){return NP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},NP(e,t)}function IP(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=RP(e);if(t){var i=RP(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===TP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function RP(e){return RP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},RP(e)}function LP(e){return function(e){if(Array.isArray(e))return FP(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return FP(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 FP(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 FP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var zP=function(e){return e&&e.x===+e.x&&e.y===+e.y},BP=function(e,t){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[[]];return e.forEach((function(e){zP(e)?t[t.length-1].push(e):t[t.length-1].length>0&&t.push([])})),zP(e[0])&&t[t.length-1].push(e[0]),t[t.length-1].length<=0&&(t=t.slice(0,-1)),t}(e);t&&(n=[n.reduce((function(e,t){return[].concat(LP(e),LP(t))}),[])]);var r=n.map((function(e){return e.reduce((function(e,t,n){return"".concat(e).concat(0===n?"M":"L").concat(t.x,",").concat(t.y)}),"")})).join("");return 1===n.length?"".concat(r,"Z"):r},qP=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&NP(e,t)}(a,p);var n,r,i,o=IP(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return n=a,(r=[{key:"render",value:function(){var t=this.props,n=t.points,r=t.className,i=t.baseLinePoints,o=t.connectNulls,a=jP(t,PP);if(!n||!n.length)return null;var c=$r("recharts-polygon",r);if(i&&i.length){var s=a.stroke&&"none"!==a.stroke,l=function(e,t,n){var r=BP(e,n);return"".concat("Z"===r.slice(-1)?r.slice(0,-1):r,"L").concat(BP(t.reverse(),n).slice(1))}(n,i,o);return e.createElement("g",{className:c},e.createElement("path",DP({},hc(a,!0),{fill:"Z"===l.slice(-1)?a.fill:"none",stroke:"none",d:l})),s?e.createElement("path",DP({},hc(a,!0),{fill:"none",d:BP(n,o)})):null,s?e.createElement("path",DP({},hc(a,!0),{fill:"none",d:BP(i,o)})):null)}var u=BP(n,o);return e.createElement("path",DP({},hc(a,!0),{fill:"Z"===u.slice(-1)?a.fill:"none",className:c,d:u}))}}])&&MP(n.prototype,r),i&&MP(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function HP(e){return HP="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},HP(e)}function VP(){return VP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},VP.apply(this,arguments)}function UP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(i=r.key,o=void 0,o=function(e,t){if("object"!==HP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==HP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"),"symbol"===HP(o)?o:String(o)),r)}var i,o}function WP(e,t){return WP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},WP(e,t)}function $P(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=GP(e);if(t){var i=GP(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===HP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function GP(e){return GP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},GP(e)}var YP=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&WP(e,t)}(a,p);var n,r,i,o=$P(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return n=a,(r=[{key:"render",value:function(){var t=this.props,n=t.cx,r=t.cy,i=t.r,o=t.className,a=$r("recharts-dot",o);return n===+n&&r===+r&&i===+i?e.createElement("circle",VP({},hc(this.props),Ja(this.props),{className:a,cx:n,cy:r,r:i})):null}}])&&UP(n.prototype,r),i&&UP(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function XP(e){return XP="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},XP(e)}function ZP(){return ZP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ZP.apply(this,arguments)}function KP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,tD(r.key),r)}}function JP(e,t){return JP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},JP(e,t)}function QP(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=eD(e);if(t){var i=eD(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===XP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function eD(e){return eD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},eD(e)}function tD(e){var t=function(e,t){if("object"!==XP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==XP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===XP(t)?t:String(t)}var nD=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&JP(e,t)}(a,p);var n,r,i,o=QP(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return n=a,r=[{key:"render",value:function(){var t=this.props,n=t.x,r=t.y,i=t.width,o=t.height,c=t.top,s=t.left,l=t.className;return Fa(n)&&Fa(r)&&Fa(i)&&Fa(o)&&Fa(c)&&Fa(s)?e.createElement("path",ZP({},hc(this.props,!0),{className:$r("recharts-cross",l),d:a.getPath(n,r,i,o,c,s)})):null}}],i=[{key:"getPath",value:function(e,t,n,r,i,o){return"M".concat(e,",").concat(i,"v").concat(r,"M").concat(o,",").concat(t,"h").concat(n)}}],r&&KP(n.prototype,r),i&&KP(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function rD(e){return rD="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},rD(e)}function iD(){return iD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iD.apply(this,arguments)}function oD(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 aD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oD(Object(n),!0).forEach((function(t){fD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,pD(r.key),r)}}function sD(e,t){return sD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},sD(e,t)}function lD(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=uD(e);if(t){var i=uD(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===rD(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function uD(e){return uD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},uD(e)}function fD(e,t,n){return(t=pD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pD(e){var t=function(e,t){if("object"!==rD(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==rD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===rD(t)?t:String(t)}!function(e,t,n){(t=tD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(nD,"defaultProps",{x:0,y:0,top:0,left:0,width:0,height:0});var dD=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sD(e,t)}(a,p);var n,r,i,o=lD(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return n=a,r=[{key:"getPolygonPath",value:function(e){var t=this.props,n=t.cx,r=t.cy,i=t.polarAngles,o="";return i.forEach((function(t,i){var a=dT(n,r,e,t);o+=i?"L ".concat(a.x,",").concat(a.y):"M ".concat(a.x,",").concat(a.y)})),o+="Z"}},{key:"renderPolarAngles",value:function(){var t=this.props,n=t.cx,r=t.cy,i=t.innerRadius,o=t.outerRadius,a=t.polarAngles,c=t.radialLines;if(!a||!a.length||!c)return null;var s=aD({stroke:"#ccc"},hc(this.props));return e.createElement("g",{className:"recharts-polar-grid-angle"},a.map((function(t,a){var c=dT(n,r,i,t),l=dT(n,r,o,t);return e.createElement("line",iD({},s,{key:"line-".concat(a),x1:c.x,y1:c.y,x2:l.x,y2:l.y}))})))}},{key:"renderConcentricCircle",value:function(t,n,r){var i=this.props,o=i.cx,a=i.cy,c=aD(aD({stroke:"#ccc"},hc(this.props)),{},{fill:"none"},r);return e.createElement("circle",iD({},c,{className:"recharts-polar-grid-concentric-circle",key:"circle-".concat(n),cx:o,cy:a,r:t}))}},{key:"renderConcentricPolygon",value:function(t,n,r){var i=aD(aD({stroke:"#ccc"},hc(this.props)),{},{fill:"none"},r);return e.createElement("path",iD({},i,{className:"recharts-polar-grid-concentric-polygon",key:"path-".concat(n),d:this.getPolygonPath(t)}))}},{key:"renderConcentricPath",value:function(){var t=this,n=this.props,r=n.polarRadius,i=n.gridType;return r&&r.length?e.createElement("g",{className:"recharts-polar-grid-concentric"},r.map((function(e,n){return"circle"===i?t.renderConcentricCircle(e,n):t.renderConcentricPolygon(e,n)}))):null}},{key:"render",value:function(){return this.props.outerRadius<=0?null:e.createElement("g",{className:"recharts-polar-grid"},this.renderPolarAngles(),this.renderConcentricPath())}}],r&&cD(n.prototype,r),i&&cD(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();fD(dD,"displayName","PolarGrid"),fD(dD,"defaultProps",{cx:0,cy:0,innerRadius:0,outerRadius:0,gridType:"polygon",radialLines:!0});var hD=Ow,mD=Zu,yD=Mw;var vD=function(e,t){return e&&e.length?hD(e,mD(t),yD):void 0},gD=_(vD),bD=Ow,xD=Aw,wD=Zu;var kD=function(e,t){return e&&e.length?bD(e,wD(t),xD):void 0},ED=_(kD),SD=["cx","cy","angle","ticks","axisLine"],_D=["ticks","tick","angle","tickFormatter","stroke"];function OD(e){return OD="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},OD(e)}function AD(){return AD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},AD.apply(this,arguments)}function CD(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 TD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?CD(Object(n),!0).forEach((function(t){ID(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function PD(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function DD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,RD(r.key),r)}}function jD(e,t){return jD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jD(e,t)}function MD(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ND(e);if(t){var i=ND(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===OD(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function ND(e){return ND=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ND(e)}function ID(e,t,n){return(t=RD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RD(e){var t=function(e,t){if("object"!==OD(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==OD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===OD(t)?t:String(t)}var LD=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jD(e,t)}(a,p);var n,r,i,o=MD(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return n=a,r=[{key:"getTickValueCoord",value:function(e){var t=e.coordinate,n=this.props,r=n.angle,i=n.cx,o=n.cy;return dT(i,o,t,r)}},{key:"getTickTextAnchor",value:function(){var e;switch(this.props.orientation){case"left":e="end";break;case"right":e="start";break;default:e="middle"}return e}},{key:"getViewBox",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.angle,i=e.ticks,o=ED(i,(function(e){return e.coordinate||0}));return{cx:t,cy:n,startAngle:r,endAngle:r,innerRadius:gD(i,(function(e){return e.coordinate||0})).coordinate||0,outerRadius:o.coordinate||0}}},{key:"renderAxisLine",value:function(){var t=this.props,n=t.cx,r=t.cy,i=t.angle,o=t.ticks,a=t.axisLine,c=PD(t,SD),s=o.reduce((function(e,t){return[Math.min(e[0],t.coordinate),Math.max(e[1],t.coordinate)]}),[1/0,-1/0]),l=dT(n,r,s[0],i),u=dT(n,r,s[1],i),f=TD(TD(TD({},hc(c)),{},{fill:"none"},hc(a)),{},{x1:l.x,y1:l.y,x2:u.x,y2:u.y});return e.createElement("line",AD({className:"recharts-polar-radius-axis-line"},f))}},{key:"renderTicks",value:function(){var t=this,n=this.props,r=n.ticks,i=n.tick,o=n.angle,c=n.tickFormatter,s=n.stroke,l=PD(n,_D),u=this.getTickTextAnchor(),f=hc(l),p=hc(i),d=r.map((function(n,r){var l=t.getTickValueCoord(n),d=TD(TD(TD(TD({textAnchor:u,transform:"rotate(".concat(90-o,", ").concat(l.x,", ").concat(l.y,")")},f),{},{stroke:"none",fill:s},p),{},{index:r},l),{},{payload:n});return e.createElement(_c,AD({className:"recharts-polar-radius-axis-tick",key:"tick-".concat(r)},Qa(t.props,n,r)),a.renderTickItem(i,d,c?c(n.value,r):n.value))}));return e.createElement(_c,{className:"recharts-polar-radius-axis-ticks"},d)}},{key:"render",value:function(){var t=this.props,n=t.ticks,r=t.axisLine,i=t.tick;return n&&n.length?e.createElement(_c,{className:"recharts-polar-radius-axis"},r&&this.renderAxisLine(),i&&this.renderTicks(),DT.renderCallByParent(this.props,this.getViewBox())):null}}],i=[{key:"renderTickItem",value:function(t,n,r){return e.isValidElement(t)?e.cloneElement(t,n):hi(t)?t(n):e.createElement(kw,AD({},n,{className:"recharts-polar-radius-axis-tick-value"}),r)}}],r&&DD(n.prototype,r),i&&DD(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function FD(e){return FD="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},FD(e)}function zD(){return zD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zD.apply(this,arguments)}function BD(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 qD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?BD(Object(n),!0).forEach((function(t){$D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function HD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,GD(r.key),r)}}function VD(e,t){return VD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},VD(e,t)}function UD(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=WD(e);if(t){var i=WD(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===FD(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function WD(e){return WD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},WD(e)}function $D(e,t,n){return(t=GD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GD(e){var t=function(e,t){if("object"!==FD(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==FD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===FD(t)?t:String(t)}ID(LD,"displayName","PolarRadiusAxis"),ID(LD,"axisType","radiusAxis"),ID(LD,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});var YD=Math.PI/180,XD=1e-5,ZD=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&VD(e,t)}(a,p);var n,r,i,o=UD(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return n=a,r=[{key:"getTickLineCoord",value:function(e){var t=this.props,n=t.cx,r=t.cy,i=t.radius,o=t.orientation,a=t.tickSize||8,c=dT(n,r,i,e.coordinate),s=dT(n,r,i+("inner"===o?-1:1)*a,e.coordinate);return{x1:c.x,y1:c.y,x2:s.x,y2:s.y}}},{key:"getTickTextAnchor",value:function(e){var t=this.props.orientation,n=Math.cos(-e.coordinate*YD);return n>XD?"outer"===t?"start":"end":n<-XD?"outer"===t?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var t=this.props,n=t.cx,r=t.cy,i=t.radius,o=t.axisLine,a=t.axisLineType,c=qD(qD({},hc(this.props)),{},{fill:"none"},hc(o));if("circle"===a)return e.createElement(YP,zD({className:"recharts-polar-angle-axis-line"},c,{cx:n,cy:r,r:i}));var s=this.props.ticks.map((function(e){return dT(n,r,i,e.coordinate)}));return e.createElement(qP,zD({className:"recharts-polar-angle-axis-line"},c,{points:s}))}},{key:"renderTicks",value:function(){var t=this,n=this.props,r=n.ticks,i=n.tick,o=n.tickLine,c=n.tickFormatter,s=n.stroke,l=hc(this.props),u=hc(i),f=qD(qD({},l),{},{fill:"none"},hc(o)),p=r.map((function(n,r){var p=t.getTickLineCoord(n),d=qD(qD(qD({textAnchor:t.getTickTextAnchor(n)},l),{},{stroke:"none",fill:s},u),{},{index:r,payload:n,x:p.x2,y:p.y2});return e.createElement(_c,zD({className:"recharts-polar-angle-axis-tick",key:"tick-".concat(r)},Qa(t.props,n,r)),o&&e.createElement("line",zD({className:"recharts-polar-angle-axis-tick-line"},f,p)),i&&a.renderTickItem(i,d,c?c(n.value,r):n.value))}));return e.createElement(_c,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var t=this.props,n=t.ticks,r=t.radius,i=t.axisLine;return r<=0||!n||!n.length?null:e.createElement(_c,{className:"recharts-polar-angle-axis"},i&&this.renderAxisLine(),this.renderTicks())}}],i=[{key:"renderTickItem",value:function(t,n,r){return e.isValidElement(t)?e.cloneElement(t,n):hi(t)?t(n):e.createElement(kw,zD({},n,{className:"recharts-polar-angle-axis-tick-value"}),r)}}],r&&HD(n.prototype,r),i&&HD(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();$D(ZD,"displayName","PolarAngleAxis"),$D(ZD,"axisType","angleAxis"),$D(ZD,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var KD=tl(Object.getPrototypeOf,Object),JD=ui,QD=KD,ej=vi,tj=Function.prototype,nj=Object.prototype,rj=tj.toString,ij=nj.hasOwnProperty,oj=rj.call(Object);var aj=function(e){if(!ej(e)||"[object Object]"!=JD(e))return!1;var t=QD(e);if(null===t)return!0;var n=ij.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&rj.call(n)==oj},cj=_(aj);function sj(e){return sj="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},sj(e)}function lj(){return lj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lj.apply(this,arguments)}function uj(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 fj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uj(Object(n),!0).forEach((function(t){vj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,gj(r.key),r)}}function dj(e,t){return dj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},dj(e,t)}function hj(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=yj(e);if(t){var i=yj(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===sj(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return mj(e)}(this,n)}}function mj(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yj(e){return yj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},yj(e)}function vj(e,t,n){return(t=gj(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gj(e){var t=function(e,t){if("object"!==sj(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==sj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===sj(t)?t:String(t)}var bj=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dj(e,t)}(a,p);var n,r,i,o=hj(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),vj(mj(t=o.call(this,e)),"pieRef",null),vj(mj(t),"sectorRefs",[]),vj(mj(t),"id",qa("recharts-pie-")),vj(mj(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),hi(e)&&e()})),vj(mj(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),hi(e)&&e()})),t.state={isAnimationFinished:!e.isAnimationActive,prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,sectorToFocus:0},t}return n=a,r=[{key:"isActiveIndex",value:function(e){var t=this.props.activeIndex;return Array.isArray(t)?-1!==t.indexOf(e):e===t}},{key:"hasActiveIndex",value:function(){var e=this.props.activeIndex;return Array.isArray(e)?0!==e.length:e||0===e}},{key:"renderLabels",value:function(t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.label,i=n.labelLine,o=n.dataKey,c=n.valueKey,s=hc(this.props),l=hc(r),u=hc(i),f=r&&r.offsetRadius||20,p=t.map((function(t,n){var p=(t.startAngle+t.endAngle)/2,d=dT(t.cx,t.cy,t.outerRadius+f,p),h=fj(fj(fj(fj({},s),t),{},{stroke:"none"},l),{},{index:n,textAnchor:a.getTextAnchor(d.x,t.cx)},d),m=fj(fj(fj(fj({},s),t),{},{fill:"none",stroke:t.fill},u),{},{index:n,points:[dT(t.cx,t.cy,t.outerRadius,p),d],key:"line"}),y=o;return Sa(o)&&Sa(c)?y="value":Sa(o)&&(y=c),e.createElement(_c,{key:"label-".concat(n)},i&&a.renderLabelLineItem(i,m),a.renderLabelItem(r,h,DC(t,y)))}));return e.createElement(_c,{className:"recharts-pie-labels"},p)}},{key:"renderSectorsStatically",value:function(t){var n=this,r=this.props,i=r.activeShape,o=r.blendStroke,c=r.inactiveShape;return t.map((function(t,r){var s=c&&n.hasActiveIndex()?c:null,l=n.isActiveIndex(r)?i:s,u=fj(fj({},t),{},{stroke:o?t.fill:t.stroke});return e.createElement(_c,lj({ref:function(e){e&&!n.sectorRefs.includes(e)&&n.sectorRefs.push(e)},tabIndex:-1,className:"recharts-pie-sector"},Qa(n.props,t,r),{key:"sector-".concat(r)}),a.renderSectorItem(l,u))}))}},{key:"renderSectorsWithAnimation",value:function(){var t=this,n=this.props,r=n.sectors,i=n.isAnimationActive,o=n.animationBegin,a=n.animationDuration,c=n.animationEasing,s=n.animationId,l=this.state,u=l.prevSectors,f=l.prevIsAnimationActive;return e.createElement(Zv,{begin:o,duration:a,isActive:i,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(s,"-").concat(f),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(n){var i=n.t,o=[],a=(r&&r[0]).startAngle;return r.forEach((function(e,t){var n=u&&u[t],r=t>0?ka(e,"paddingAngle",0):0;if(n){var c=Ua(n.endAngle-n.startAngle,e.endAngle-e.startAngle),s=fj(fj({},e),{},{startAngle:a+r,endAngle:a+c(i)+r});o.push(s),a=s.endAngle}else{var l=e.endAngle,f=e.startAngle,p=Ua(0,l-f)(i),d=fj(fj({},e),{},{startAngle:a+r,endAngle:a+p+r});o.push(d),a=d.endAngle}})),e.createElement(_c,null,t.renderSectorsStatically(o))}))}},{key:"attachKeyboardHandlers",value:function(e){var t=this;e.onkeydown=function(e){if(!e.altKey)switch(e.key){case"ArrowLeft":var n=++t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[n].focus(),t.setState({sectorToFocus:n});break;case"ArrowRight":var r=--t.state.sectorToFocus<0?t.sectorRefs.length-1:t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[r].focus(),t.setState({sectorToFocus:r});break;case"Escape":t.sectorRefs[t.state.sectorToFocus].blur(),t.setState({sectorToFocus:0})}}}},{key:"renderSectors",value:function(){var e=this.props,t=e.sectors,n=e.isAnimationActive,r=this.state.prevSectors;return!(n&&t&&t.length)||r&&Sw(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var t=this,n=this.props,r=n.hide,i=n.sectors,o=n.className,a=n.label,c=n.cx,s=n.cy,l=n.innerRadius,u=n.outerRadius,f=n.isAnimationActive,p=this.state.isAnimationFinished;if(r||!i||!i.length||!Fa(c)||!Fa(s)||!Fa(l)||!Fa(u))return null;var d=$r("recharts-pie",o);return e.createElement(_c,{tabIndex:0,className:d,ref:function(e){t.pieRef=e}},this.renderSectors(),a&&this.renderLabels(i),DT.renderCallByParent(this.props,null,!1),(!f||p)&&WT.renderCallByParent(this.props,i,!1))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return t.prevIsAnimationActive!==e.isAnimationActive?{prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:[],isAnimationFinished:!0}:e.isAnimationActive&&e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:t.curSectors,isAnimationFinished:!0}:e.sectors!==t.curSectors?{curSectors:e.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(e,t){return e>t?"start":e<t?"end":"middle"}},{key:"renderLabelLineItem",value:function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):hi(t)?t(n):e.createElement(yP,lj({},n,{type:"linear",className:"recharts-pie-label-line"}))}},{key:"renderLabelItem",value:function(t,n,r){if(e.isValidElement(t))return e.cloneElement(t,n);var i=r;return hi(t)&&(i=t(n),e.isValidElement(i))?i:e.createElement(kw,lj({},n,{alignmentBaseline:"middle",className:"recharts-pie-label-text"}),i)}},{key:"renderSectorItem",value:function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):hi(t)?t(n):cj(t)?e.createElement(tP,lj({tabIndex:-1},n,t)):e.createElement(tP,lj({tabIndex:-1},n))}}],r&&pj(n.prototype,r),i&&pj(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();vj(bj,"displayName","Pie"),vj(bj,"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:!db.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1}),vj(bj,"parseDeltaAngle",(function(e,t){return Ra(t-e)*Math.min(Math.abs(t-e),360)})),vj(bj,"getRealPieData",(function(e){var t=e.props,n=t.data,r=t.children,i=hc(e.props),o=sc(r,lx);return n&&n.length?n.map((function(e,t){return fj(fj(fj({payload:e},i),e),o&&o[t]&&o[t].props)})):o&&o.length?o.map((function(e){return fj(fj({},i),e.props)})):[]})),vj(bj,"parseCoordinateOfPie",(function(e,t){var n=t.top,r=t.left,i=t.width,o=t.height,a=hT(i,o);return{cx:r+Ha(e.props.cx,i,i/2),cy:n+Ha(e.props.cy,o,o/2),innerRadius:Ha(e.props.innerRadius,a,0),outerRadius:Ha(e.props.outerRadius,a,.8*a),maxRadius:e.props.maxRadius||Math.sqrt(i*i+o*o)/2}})),vj(bj,"getComposedData",(function(e){var t=e.item,n=e.offset,r=bj.getRealPieData(t);if(!r||!r.length)return null;var i=t.props,o=i.cornerRadius,a=i.startAngle,c=i.endAngle,s=i.paddingAngle,l=i.dataKey,u=i.nameKey,f=i.valueKey,p=i.tooltipType,d=Math.abs(t.props.minAngle),h=bj.parseCoordinateOfPie(t,n),m=bj.parseDeltaAngle(a,c),y=Math.abs(m),v=l;Sa(l)&&Sa(f)?(ix(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),v="value"):Sa(l)&&(ix(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),v=f);var g,b,x=r.filter((function(e){return 0!==DC(e,v,0)})).length,w=y-x*d-(y>=360?x:x-1)*s,k=r.reduce((function(e,t){var n=DC(t,v,0);return e+(Fa(n)?n:0)}),0);k>0&&(g=r.map((function(e,t){var n,r=DC(e,v,0),i=DC(e,u,t),c=(Fa(r)?r:0)/k,l=(n=t?b.endAngle+Ra(m)*s*(0!==r?1:0):a)+Ra(m)*((0!==r?d:0)+c*w),f=(n+l)/2,y=(h.innerRadius+h.outerRadius)/2,g=[{name:i,value:r,payload:e,dataKey:v,type:p}],x=dT(h.cx,h.cy,y,f);return b=fj(fj(fj({percent:c,cornerRadius:o,name:i,tooltipPayload:g,midAngle:f,middleRadius:y,tooltipPosition:x},e),h),{},{value:DC(e,v),startAngle:n,endAngle:l,payload:e,paddingAngle:Ra(m)*s})})));return fj(fj({},h),{},{sectors:g,data:r})}));var xj=function(e){return e&&e.length?e[0]:void 0},wj=_(xj);function kj(e){return kj="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},kj(e)}function Ej(){return Ej=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ej.apply(this,arguments)}function Sj(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 _j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sj(Object(n),!0).forEach((function(t){Dj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Oj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,jj(r.key),r)}}function Aj(e,t){return Aj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Aj(e,t)}function Cj(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Pj(e);if(t){var i=Pj(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===kj(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Tj(e)}(this,n)}}function Tj(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pj(e){return Pj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Pj(e)}function Dj(e,t,n){return(t=jj(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jj(e){var t=function(e,t){if("object"!==kj(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==kj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===kj(t)?t:String(t)}var Mj=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Aj(e,t)}(a,p);var n,r,i,o=Cj(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Dj(Tj(e=o.call.apply(o,[this].concat(n))),"state",{isAnimationFinished:!1}),Dj(Tj(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),hi(t)&&t()})),Dj(Tj(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),hi(t)&&t()})),Dj(Tj(e),"handleMouseEnter",(function(t){var n=e.props.onMouseEnter;n&&n(e.props,t)})),Dj(Tj(e),"handleMouseLeave",(function(t){var n=e.props.onMouseLeave;n&&n(e.props,t)})),e}return n=a,r=[{key:"renderDots",value:function(t){var n=this.props,r=n.dot,i=n.dataKey,o=hc(this.props),c=hc(r),s=t.map((function(e,t){var n=_j(_j(_j({key:"dot-".concat(t),r:3},o),c),{},{dataKey:i,cx:e.x,cy:e.y,index:t,payload:e});return a.renderDotItem(r,n)}));return e.createElement(_c,{className:"recharts-radar-dots"},s)}},{key:"renderPolygonStatically",value:function(t){var n,r=this.props,i=r.shape,o=r.dot,a=r.isRange,c=r.baseLinePoints,s=r.connectNulls;return n=e.isValidElement(i)?e.cloneElement(i,_j(_j({},this.props),{},{points:t})):hi(i)?i(_j(_j({},this.props),{},{points:t})):e.createElement(qP,Ej({},hc(this.props,!0),{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,points:t,baseLinePoints:a?c:null,connectNulls:s})),e.createElement(_c,{className:"recharts-radar-polygon"},n,o?this.renderDots(t):null)}},{key:"renderPolygonWithAnimation",value:function(){var t=this,n=this.props,r=n.points,i=n.isAnimationActive,o=n.animationBegin,a=n.animationDuration,c=n.animationEasing,s=n.animationId,l=this.state.prevPoints;return e.createElement(Zv,{begin:o,duration:a,isActive:i,easing:c,from:{t:0},to:{t:1},key:"radar-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(e){var n=e.t,i=l&&l.length/r.length,o=r.map((function(e,t){var r=l&&l[Math.floor(t*i)];if(r){var o=Ua(r.x,e.x),a=Ua(r.y,e.y);return _j(_j({},e),{},{x:o(n),y:a(n)})}var c=Ua(e.cx,e.x),s=Ua(e.cy,e.y);return _j(_j({},e),{},{x:c(n),y:s(n)})}));return t.renderPolygonStatically(o)}))}},{key:"renderPolygon",value:function(){var e=this.props,t=e.points,n=e.isAnimationActive,r=e.isRange,i=this.state.prevPoints;return!(n&&t&&t.length)||r||i&&Sw(i,t)?this.renderPolygonStatically(t):this.renderPolygonWithAnimation()}},{key:"render",value:function(){var t=this.props,n=t.hide,r=t.className,i=t.points,o=t.isAnimationActive;if(n||!i||!i.length)return null;var a=this.state.isAnimationFinished,c=$r("recharts-radar",r);return e.createElement(_c,{className:c},this.renderPolygon(),(!o||a)&&WT.renderCallByParent(this.props,i))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,prevPoints:t.curPoints}:e.points!==t.curPoints?{curPoints:e.points}:null}},{key:"renderDotItem",value:function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):hi(t)?t(n):e.createElement(YP,Ej({},n,{className:"recharts-radar-dot"}))}}],r&&Oj(n.prototype,r),i&&Oj(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();Dj(Mj,"displayName","Radar"),Dj(Mj,"defaultProps",{angleAxisId:0,radiusAxisId:0,hide:!1,activeDot:!0,dot:!1,legendType:"rect",isAnimationActive:!db.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),Dj(Mj,"getComposedData",(function(e){var t=e.radiusAxis,n=e.angleAxis,r=e.displayedData,i=e.dataKey,o=e.bandSize,a=n.cx,c=n.cy,s=!1,l=[];r.forEach((function(e,r){var u=DC(e,n.dataKey,r),f=DC(e,i),p=n.scale(u)+(o||0),d=yi(f)?NT(f):f,h=Sa(d)?void 0:t.scale(d);yi(f)&&f.length>=2&&(s=!0),l.push(_j(_j({},dT(a,c,h,p)),{},{name:u,value:f,cx:a,cy:c,radius:h,angle:p,payload:e}))}));var u=[];return s&&l.forEach((function(e){if(yi(e.value)){var n=wj(e.value),r=Sa(n)?void 0:t.scale(n);u.push(_j(_j({},e),{},{radius:r},dT(a,c,r,e.angle)))}else u.push(e)})),{points:l,isRange:s,baseLinePoints:u}}));var Nj=["shape","activeShape","activeIndex","cornerRadius"],Ij=["value","background"];function Rj(e){return Rj="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},Rj(e)}function Lj(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 Fj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lj(Object(n),!0).forEach((function(t){Wj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zj(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Bj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$j(r.key),r)}}function qj(e,t){return qj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qj(e,t)}function Hj(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Uj(e);if(t){var i=Uj(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Rj(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Vj(e)}(this,n)}}function Vj(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Uj(e){return Uj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Uj(e)}function Wj(e,t,n){return(t=$j(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $j(e){var t=function(e,t){if("object"!==Rj(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Rj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Rj(t)?t:String(t)}var Gj=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qj(e,t)}(a,p);var n,r,i,o=Hj(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Wj(Vj(e=o.call.apply(o,[this].concat(n))),"state",{isAnimationFinished:!1}),Wj(Vj(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),hi(t)&&t()})),Wj(Vj(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),hi(t)&&t()})),e}return n=a,r=[{key:"getDeltaAngle",value:function(){var e=this.props,t=e.startAngle,n=e.endAngle;return Ra(n-t)*Math.min(Math.abs(n-t),360)}},{key:"renderSectorsStatically",value:function(e){var t=this,n=this.props,r=n.shape,i=n.activeShape,o=n.activeIndex,c=n.cornerRadius,s=zj(n,Nj),l=hc(s);return e.map((function(e,n){var u=Fj(Fj(Fj(Fj({},l),{},{cornerRadius:c},e),Qa(t.props,e,n)),{},{key:"sector-".concat(n),className:"recharts-radial-bar-sector",forceCornerRadius:s.forceCornerRadius,cornerIsExternal:s.cornerIsExternal});return a.renderSectorShape(n===o?i:r,u)}))}},{key:"renderSectorsWithAnimation",value:function(){var t=this,n=this.props,r=n.data,i=n.isAnimationActive,o=n.animationBegin,a=n.animationDuration,c=n.animationEasing,s=n.animationId,l=this.state.prevData;return e.createElement(Zv,{begin:o,duration:a,isActive:i,easing:c,from:{t:0},to:{t:1},key:"radialBar-".concat(s),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(n){var i=n.t,o=r.map((function(e,t){var n=l&&l[t];if(n){var r=Ua(n.startAngle,e.startAngle),o=Ua(n.endAngle,e.endAngle);return Fj(Fj({},e),{},{startAngle:r(i),endAngle:o(i)})}var a=e.endAngle,c=e.startAngle,s=Ua(c,a);return Fj(Fj({},e),{},{endAngle:s(i)})}));return e.createElement(_c,null,t.renderSectorsStatically(o))}))}},{key:"renderSectors",value:function(){var e=this.props,t=e.data,n=e.isAnimationActive,r=this.state.prevData;return!(n&&t&&t.length)||r&&Sw(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"renderBackground",value:function(e){var t=this,n=this.props.cornerRadius,r=hc(this.props.background);return e.map((function(e,i){e.value;var o=e.background,c=zj(e,Ij);if(!o)return null;var s=Fj(Fj(Fj(Fj(Fj({cornerRadius:n},c),{},{fill:"#eee"},o),r),Qa(t.props,e,i)),{},{index:i,key:"sector-".concat(i),className:"recharts-radial-bar-background-sector"});return a.renderSectorShape(o,s)}))}},{key:"render",value:function(){var t=this.props,n=t.hide,r=t.data,i=t.className,o=t.background,a=t.isAnimationActive;if(n||!r||!r.length)return null;var c=this.state.isAnimationFinished,s=$r("recharts-area",i);return e.createElement(_c,{className:s},o&&e.createElement(_c,{className:"recharts-radial-bar-background"},this.renderBackground(r)),e.createElement(_c,{className:"recharts-radial-bar-sectors"},this.renderSectors()),(!a||c)&&WT.renderCallByParent(Fj({},this.props),r))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curData:e.data,prevData:t.curData}:e.data!==t.curData?{curData:e.data}:null}},{key:"renderSectorShape",value:function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):hi(t)?t(n):e.createElement(tP,n)}}],r&&Bj(n.prototype,r),i&&Bj(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();Wj(Gj,"displayName","RadialBar"),Wj(Gj,"defaultProps",{angleAxisId:0,radiusAxisId:0,minPointSize:0,hide:!1,legendType:"rect",data:[],isAnimationActive:!db.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease",forceCornerRadius:!1,cornerIsExternal:!1}),Wj(Gj,"getComposedData",(function(e){var t=e.item,n=e.props,r=e.radiusAxis,i=e.radiusAxisTicks,o=e.angleAxis,a=e.angleAxisTicks,c=e.displayedData,s=e.dataKey,l=e.stackedData,u=e.barPosition,f=e.bandSize,p=e.dataStartIndex,d=UC(u,t);if(!d)return null;var h=o.cx,m=o.cy,y=n.layout,v=t.props,g=v.children,b=v.minPointSize,x="radial"===y?o:r,w=l?x.scale.domain():null,k=KC({numericAxis:x}),E=sc(g,lx);return{data:c.map((function(e,c){var u,v,g,x,S,_;if(l?u=WC(l[p+c],w):(u=DC(e,s),yi(u)||(u=[k,u])),"radial"===y){v=ZC({axis:r,ticks:i,bandSize:f,offset:d.offset,entry:e,index:c}),S=o.scale(u[1]),x=o.scale(u[0]),g=v+d.size;var O=S-x;if(Math.abs(b)>0&&Math.abs(O)<Math.abs(b))S+=Ra(O||b)*(Math.abs(b)-Math.abs(O));_={background:{cx:h,cy:m,innerRadius:v,outerRadius:g,startAngle:n.startAngle,endAngle:n.endAngle}}}else{v=r.scale(u[0]),g=r.scale(u[1]),S=(x=ZC({axis:o,ticks:a,bandSize:f,offset:d.offset,entry:e,index:c}))+d.size;var A=g-v;if(Math.abs(b)>0&&Math.abs(A)<Math.abs(b))g+=Ra(A||b)*(Math.abs(b)-Math.abs(A))}return Fj(Fj(Fj(Fj({},e),_),{},{payload:e,value:l?u:u[1],cx:h,cy:m,innerRadius:v,outerRadius:g,startAngle:x,endAngle:S},E&&E[c]&&E[c].props),{},{tooltipPayload:[iT(t,e)],tooltipPosition:dT(h,m,(v+g)/2,(x+S)/2)})})),layout:y}}));var Yj=Math.ceil,Xj=Math.max;var Zj=Bb,Kj=1/0;var Jj=function(e){return e?(e=Zj(e))===Kj||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0},Qj=function(e,t,n,r){for(var i=-1,o=Xj(Yj((t-e)/(n||1)),0),a=Array(o);o--;)a[r?o:++i]=e,e+=n;return a},eM=Xg,tM=Jj;var nM=_(function(e){return function(t,n,r){return r&&"number"!=typeof r&&eM(t,n,r)&&(n=r=void 0),t=tM(t),void 0===n?(n=t,t=0):n=tM(n),r=void 0===r?t<n?1:-1:tM(r),Qj(t,n,r,e)}}());function rM(e){return rM="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},rM(e)}function iM(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 oM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iM(Object(n),!0).forEach((function(t){aM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function aM(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==rM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==rM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===rM(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cM=["Webkit","Moz","O","ms"];function sM(e){return sM="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},sM(e)}function lM(){return lM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lM.apply(this,arguments)}function uM(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 fM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uM(Object(n),!0).forEach((function(t){vM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,gM(r.key),r)}}function dM(e,t){return dM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},dM(e,t)}function hM(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=yM(e);if(t){var i=yM(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===sM(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return mM(e)}(this,n)}}function mM(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yM(e){return yM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},yM(e)}function vM(e,t,n){return(t=gM(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gM(e){var t=function(e,t){if("object"!==sM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==sM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===sM(t)?t:String(t)}var bM=function(e){return e.changedTouches&&!!e.changedTouches.length},xM=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dM(e,t)}(a,p);var n,r,i,o=hM(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),vM(mM(t=o.call(this,e)),"handleDrag",(function(e){t.leaveTimer&&(clearTimeout(t.leaveTimer),t.leaveTimer=null),t.state.isTravellerMoving?t.handleTravellerMove(e):t.state.isSlideMoving&&t.handleSlideDrag(e)})),vM(mM(t),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleDrag(e.changedTouches[0])})),vM(mM(t),"handleDragEnd",(function(){t.setState({isTravellerMoving:!1,isSlideMoving:!1}),t.detachDragEndListener()})),vM(mM(t),"handleLeaveWrapper",(function(){(t.state.isTravellerMoving||t.state.isSlideMoving)&&(t.leaveTimer=window.setTimeout(t.handleDragEnd,t.props.leaveTimeOut))})),vM(mM(t),"handleEnterSlideOrTraveller",(function(){t.setState({isTextActive:!0})})),vM(mM(t),"handleLeaveSlideOrTraveller",(function(){t.setState({isTextActive:!1})})),vM(mM(t),"handleSlideDragStart",(function(e){var n=bM(e)?e.changedTouches[0]:e;t.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),t.attachDragEndListener()})),t.travellerDragStartHandlers={startX:t.handleTravellerDragStart.bind(mM(t),"startX"),endX:t.handleTravellerDragStart.bind(mM(t),"endX")},t.state={},t}return n=a,r=[{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,i=this.props,o=i.gap,c=i.data.length-1,s=Math.min(t,n),l=Math.max(t,n),u=a.getIndexInRange(r,s),f=a.getIndexInRange(r,l);return{startIndex:u-u%o,endIndex:f===c?c:f-f%o}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,i=t.dataKey,o=DC(n[e],i,e);return hi(r)?r(o,e):o}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,i=t.endX,o=this.props,a=o.x,c=o.width,s=o.travellerWidth,l=o.startIndex,u=o.endIndex,f=o.onChange,p=e.pageX-n;p>0?p=Math.min(p,a+c-s-i,a+c-s-r):p<0&&(p=Math.max(p,a-r,a-i));var d=this.getIndex({startX:r+p,endX:i+p});d.startIndex===l&&d.endIndex===u||!f||f(d),this.setState({startX:r+p,endX:i+p,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=bM(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,i=n.movingTravellerId,o=n.endX,a=n.startX,c=this.state[i],s=this.props,l=s.x,u=s.width,f=s.travellerWidth,p=s.onChange,d=s.gap,h=s.data,m={startX:this.state.startX,endX:this.state.endX},y=e.pageX-r;y>0?y=Math.min(y,l+u-f-c):y<0&&(y=Math.max(y,l-c)),m[i]=c+y;var v=this.getIndex(m),g=v.startIndex,b=v.endIndex;this.setState((vM(t={},i,c+y),vM(t,"brushMoveStartX",e.pageX),t),(function(){var e;p&&(e=h.length-1,("startX"===i&&(o>a?g%d==0:b%d==0)||o<a&&b===e||"endX"===i&&(o>a?b%d==0:g%d==0)||o>a&&b===e)&&p(v))}))}},{key:"renderBackground",value:function(){var t=this.props,n=t.x,r=t.y,i=t.width,o=t.height,a=t.fill,c=t.stroke;return e.createElement("rect",{stroke:c,fill:a,x:n,y:r,width:i,height:o})}},{key:"renderPanorama",value:function(){var t=this.props,n=t.x,r=t.y,i=t.width,o=t.height,a=t.data,c=t.children,s=t.padding,l=f.only(c);return l?e.cloneElement(l,{x:n,y:r,width:i,height:o,margin:s,compact:!0,data:a}):null}},{key:"renderTravellerLayer",value:function(t,n){var r=this.props,i=r.y,o=r.travellerWidth,c=r.height,s=r.traveller,l=Math.max(t,this.props.x),u=fM(fM({},hc(this.props)),{},{x:l,y:i,width:o,height:c});return e.createElement(_c,{className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[n],onTouchStart:this.travellerDragStartHandlers[n],style:{cursor:"col-resize"}},a.renderTraveller(s,u))}},{key:"renderSlide",value:function(t,n){var r=this.props,i=r.y,o=r.height,a=r.stroke,c=r.travellerWidth,s=Math.min(t,n)+c,l=Math.max(Math.abs(n-t)-c,0);return e.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:s,y:i,width:l,height:o})}},{key:"renderText",value:function(){var t=this.props,n=t.startIndex,r=t.endIndex,i=t.y,o=t.height,a=t.travellerWidth,c=t.stroke,s=this.state,l=s.startX,u=s.endX,f={pointerEvents:"none",fill:c};return e.createElement(_c,{className:"recharts-brush-texts"},e.createElement(kw,lM({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,u)-5,y:i+o/2},f),this.getTextOfTick(n)),e.createElement(kw,lM({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,u)+a+5,y:i+o/2},f),this.getTextOfTick(r)))}},{key:"render",value:function(){var t=this.props,n=t.data,r=t.className,i=t.children,o=t.x,a=t.y,c=t.width,s=t.height,l=t.alwaysShowText,u=this.state,f=u.startX,p=u.endX,d=u.isTextActive,h=u.isSlideMoving,m=u.isTravellerMoving;if(!n||!n.length||!Fa(o)||!Fa(a)||!Fa(c)||!Fa(s)||c<=0||s<=0)return null;var y=$r("recharts-brush",r),v=1===e.Children.count(i),g=function(e,t){if(!e)return null;var n=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),r=cM.reduce((function(e,r){return oM(oM({},e),{},aM({},r+n,t))}),{});return r[e]=t,r}("userSelect","none");return e.createElement(_c,{className:y,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:g},this.renderBackground(),v&&this.renderPanorama(),this.renderSlide(f,p),this.renderTravellerLayer(f,"startX"),this.renderTravellerLayer(p,"endX"),(d||h||m||l)&&this.renderText())}}],i=[{key:"renderDefaultTraveller",value:function(t){var n=t.x,r=t.y,i=t.width,o=t.height,a=t.stroke,c=Math.floor(r+o/2)-1;return e.createElement(e.Fragment,null,e.createElement("rect",{x:n,y:r,width:i,height:o,fill:a,stroke:"none"}),e.createElement("line",{x1:n+1,y1:c,x2:n+i-1,y2:c,fill:"none",stroke:"#fff"}),e.createElement("line",{x1:n+1,y1:c+2,x2:n+i-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):hi(t)?t(n):a.renderDefaultTraveller(n)}},{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=e.width,i=e.x,o=e.travellerWidth,a=e.updateId,c=e.startIndex,s=e.endIndex;if(n!==t.prevData||a!==t.prevUpdateId)return fM({prevData:n,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:r},n&&n.length?function(e){var t=e.data,n=e.startIndex,r=e.endIndex,i=e.x,o=e.width,a=e.travellerWidth;if(!t||!t.length)return{};var c=t.length,s=xk().domain(nM(0,c)).range([i,i+o-a]),l=s.domain().map((function(e){return s(e)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,startX:s(n),endX:s(r),scale:s,scaleValues:l}}({data:n,width:r,x:i,travellerWidth:o,startIndex:c,endIndex:s}):{scale:null,scaleValues:null});if(t.scale&&(r!==t.prevWidth||i!==t.prevX||o!==t.prevTravellerWidth)){t.scale.range([i,i+r-o]);var l=t.scale.domain().map((function(e){return t.scale(e)}));return{prevData:n,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:r,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:l}}return null}},{key:"getIndexInRange",value:function(e,t){for(var n=0,r=e.length-1;r-n>1;){var i=Math.floor((n+r)/2);e[i]>t?r=i:n=i}return t>=e[r]?r:n}}],r&&pM(n.prototype,r),i&&pM(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();vM(xM,"displayName","Brush"),vM(xM,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var wM=sg;var kM=Vc,EM=Zu,SM=function(e,t){var n;return wM(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n},_M=mi,OM=Xg;var AM=function(e,t,n){var r=_M(e)?kM:SM;return n&&OM(e,t,n)&&(t=void 0),r(e,EM(t))},CM=_(AM),TM=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t};var PM=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0},DM=sg;var jM=PM,MM=function(e,t){var n=!0;return DM(e,(function(e,r,i){return n=!!t(e,r,i)})),n},NM=Zu,IM=mi,RM=Xg;var LM=function(e,t,n){var r=IM(e)?jM:MM;return n&&RM(e,t,n)&&(t=void 0),r(e,NM(t))},FM=_(LM),zM=Mg;var BM=function(e,t,n){"__proto__"==t&&zM?zM(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},qM=BM,HM=ag,VM=Zu;var UM=function(e,t){var n={};return t=VM(t),HM(e,(function(e,r,i){qM(n,r,t(e,r,i))})),n},WM=_(UM),$M=["value","background"];function GM(e){return GM="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},GM(e)}function YM(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function XM(){return XM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},XM.apply(this,arguments)}function ZM(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 KM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ZM(Object(n),!0).forEach((function(t){rN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function JM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,iN(r.key),r)}}function QM(e,t){return QM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},QM(e,t)}function eN(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=nN(e);if(t){var i=nN(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===GM(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return tN(e)}(this,n)}}function tN(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nN(e){return nN=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},nN(e)}function rN(e,t,n){return(t=iN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iN(e){var t=function(e,t){if("object"!==GM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==GM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===GM(t)?t:String(t)}var oN=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&QM(e,t)}(a,p);var n,r,i,o=eN(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return rN(tN(e=o.call.apply(o,[this].concat(n))),"state",{isAnimationFinished:!1}),rN(tN(e),"id",qa("recharts-bar-")),rN(tN(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),t&&t()})),rN(tN(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),t&&t()})),e}return n=a,r=[{key:"renderRectanglesStatically",value:function(t){var n=this,r=this.props.shape,i=hc(this.props);return t&&t.map((function(t,o){var c=KM(KM(KM({},i),t),{},{index:o});return e.createElement(_c,XM({className:"recharts-bar-rectangle"},Qa(n.props,t,o),{key:"rectangle-".concat(o),role:"img"}),a.renderRectangle(r,c))}))}},{key:"renderRectanglesWithAnimation",value:function(){var t=this,n=this.props,r=n.data,i=n.layout,o=n.isAnimationActive,a=n.animationBegin,c=n.animationDuration,s=n.animationEasing,l=n.animationId,u=this.state.prevData;return e.createElement(Zv,{begin:a,duration:c,isActive:o,easing:s,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var o=n.t,a=r.map((function(e,t){var n=u&&u[t];if(n){var r=Ua(n.x,e.x),a=Ua(n.y,e.y),c=Ua(n.width,e.width),s=Ua(n.height,e.height);return KM(KM({},e),{},{x:r(o),y:a(o),width:c(o),height:s(o)})}if("horizontal"===i){var l=Ua(0,e.height)(o);return KM(KM({},e),{},{y:e.y+e.height-l,height:l})}var f=Ua(0,e.width)(o);return KM(KM({},e),{},{width:f})}));return e.createElement(_c,null,t.renderRectanglesStatically(a))}))}},{key:"renderRectangles",value:function(){var e=this.props,t=e.data,n=e.isAnimationActive,r=this.state.prevData;return!(n&&t&&t.length)||r&&Sw(r,t)?this.renderRectanglesStatically(t):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var e=this,t=this.props.data,n=hc(this.props.background);return t.map((function(t,r){t.value;var i=t.background,o=YM(t,$M);if(!i)return null;var c=KM(KM(KM(KM(KM({},o),{},{fill:"#eee"},i),n),Qa(e.props,t,r)),{},{index:r,key:"background-bar-".concat(r),className:"recharts-bar-background-rectangle"});return a.renderRectangle(e.props.background,c)}))}},{key:"renderErrorBar",value:function(t,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,i=r.data,o=r.xAxis,a=r.yAxis,c=r.layout,s=sc(r.children,SC);if(!s)return null;var l="vertical"===c?i[0].height/2:i[0].width/2;function u(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:DC(e,t)}}var f={clipPath:t?"url(#clipPath-".concat(n,")"):null};return e.createElement(_c,f,s.map((function(t,n){return e.cloneElement(t,{key:"error-bar-".concat(n),data:i,xAxis:o,yAxis:a,layout:c,offset:l,dataPointFormatter:u})})))}},{key:"render",value:function(){var t=this.props,n=t.hide,r=t.data,i=t.className,o=t.xAxis,a=t.yAxis,c=t.left,s=t.top,l=t.width,u=t.height,f=t.isAnimationActive,p=t.background,d=t.id;if(n||!r||!r.length)return null;var h=this.state.isAnimationFinished,m=$r("recharts-bar",i),y=o&&o.allowDataOverflow||a&&a.allowDataOverflow,v=Sa(d)?this.id:d;return e.createElement(_c,{className:m},y?e.createElement("defs",null,e.createElement("clipPath",{id:"clipPath-".concat(v)},e.createElement("rect",{x:c,y:s,width:l,height:u}))):null,e.createElement(_c,{className:"recharts-bar-rectangles",clipPath:y?"url(#clipPath-".concat(v,")"):null},p?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(y,v),(!f||h)&&WT.renderCallByParent(this.props,r))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curData:e.data,prevData:t.curData}:e.data!==t.curData?{curData:e.data}:null}},{key:"renderRectangle",value:function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):hi(t)?t(n):e.createElement(CP,n)}}],r&&JM(n.prototype,r),i&&JM(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function aN(e){return aN="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},aN(e)}function cN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fN(r.key),r)}}function sN(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 lN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sN(Object(n),!0).forEach((function(t){uN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function uN(e,t,n){return(t=fN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fN(e){var t=function(e,t){if("object"!==aN(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==aN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===aN(t)?t:String(t)}rN(oN,"displayName","Bar"),rN(oN,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",isAnimationActive:!db.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),rN(oN,"getComposedData",(function(e){var t=e.props,n=e.item,r=e.barPosition,i=e.bandSize,o=e.xAxis,a=e.yAxis,c=e.xAxisTicks,s=e.yAxisTicks,l=e.stackedData,u=e.dataStartIndex,f=e.displayedData,p=e.offset,d=UC(r,n);if(!d)return null;var h=t.layout,m=n.props,y=m.dataKey,v=m.children,g=m.minPointSize,b="horizontal"===h?a:o,x=l?b.scale.domain():null,w=KC({numericAxis:b}),k=sc(v,lx),E=f.map((function(e,t){var r,f,p,m,v,b;if(l?r=WC(l[u+t],x):(r=DC(e,y),yi(r)||(r=[w,r])),"horizontal"===h){var E,S=[a.scale(r[0]),a.scale(r[1])],_=S[0],O=S[1];f=ZC({axis:o,ticks:c,bandSize:i,offset:d.offset,entry:e,index:t}),p=null!==(E=null!=O?O:_)&&void 0!==E?E:void 0,m=d.size;var A=_-O;if(v=Number.isNaN(A)?0:A,b={x:f,y:a.y,width:m,height:a.height},Math.abs(g)>0&&Math.abs(v)<Math.abs(g)){var C=Ra(v||g)*(Math.abs(g)-Math.abs(v));p-=C,v+=C}}else{var T=[o.scale(r[0]),o.scale(r[1])],P=T[0],D=T[1];if(f=P,p=ZC({axis:a,ticks:s,bandSize:i,offset:d.offset,entry:e,index:t}),m=D-P,v=d.size,b={x:o.x,y:p,width:o.width,height:v},Math.abs(g)>0&&Math.abs(m)<Math.abs(g))m+=Ra(m||g)*(Math.abs(g)-Math.abs(m))}return KM(KM(KM({},e),{},{x:f,y:p,width:m,height:v,value:l?r:r[1],payload:e,background:b},k&&k[t]&&k[t].props),{},{tooltipPayload:[iT(n,e)],tooltipPosition:{x:f+m/2,y:p+v/2}})}));return KM({data:E,layout:h},p)}));var pN=function(e,t,n,r,i){var o=e.width,a=e.height,c=e.layout,s=e.children,l=Object.keys(t),u={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:a-n.bottom,bottomMirror:a-n.bottom},f=!!lc(s,oN);return l.reduce((function(o,a){var s,l,p,d,h,m=t[a],y=m.orientation,v=m.domain,g=m.padding,b=void 0===g?{}:g,x=m.mirror,w=m.reversed,k="".concat(y).concat(x?"Mirror":"");if("number"===m.type&&("gap"===m.padding||"no-gap"===m.padding)){var E=v[1]-v[0],S=1/0,_=m.categoricalDomain.sort();_.forEach((function(e,t){t>0&&(S=Math.min((e||0)-(_[t-1]||0),S))}));var O=S/E,A="vertical"===m.layout?n.height:n.width;if("gap"===m.padding&&(s=O*A/2),"no-gap"===m.padding){var C=Ha(e.barCategoryGap,O*A),T=O*A/2;s=T-C-(T-C)/A*C}}l="xAxis"===r?[n.left+(b.left||0)+(s||0),n.left+n.width-(b.right||0)-(s||0)]:"yAxis"===r?"horizontal"===c?[n.top+n.height-(b.bottom||0),n.top+(b.top||0)]:[n.top+(b.top||0)+(s||0),n.top+n.height-(b.bottom||0)-(s||0)]:m.range,w&&(l=[l[1],l[0]]);var P=qC(m,i,f),D=P.scale,j=P.realScaleType;D.domain(v).range(l),VC(D);var M=YC(D,lN(lN({},m),{},{realScaleType:j}));"xAxis"===r?(h="top"===y&&!x||"bottom"===y&&x,p=n.left,d=u[k]-h*m.height):"yAxis"===r&&(h="left"===y&&!x||"right"===y&&x,p=u[k]-h*m.width,d=n.top);var N=lN(lN(lN({},m),M),{},{realScaleType:j,x:p,y:d,scale:D,width:"xAxis"===r?n.width:m.width,height:"yAxis"===r?n.height:m.height});return N.bandSize=nT(N,M),m.hide||"xAxis"!==r?m.hide||(u[k]+=(h?-1:1)*N.width):u[k]+=(h?-1:1)*N.height,lN(lN({},o),{},uN({},a,N))}),{})},dN=function(e,t){var n=e.x,r=e.y,i=t.x,o=t.y;return{x:Math.min(n,i),y:Math.min(r,o),width:Math.abs(i-n),height:Math.abs(o-r)}},hN=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scale=t}var t,n,r;return t=e,n=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,r=t.position;if(void 0!==e){if(r)switch(r){case"start":default:return this.scale(e);case"middle":var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+i;case"end":var o=this.bandwidth?this.bandwidth():0;return this.scale(e)+o}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}}],r=[{key:"create",value:function(t){return new e(t)}}],n&&cN(t.prototype,n),r&&cN(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();uN(hN,"EPS",1e-4);var mN=function(e){var t=Object.keys(e).reduce((function(t,n){return lN(lN({},t),{},uN({},n,hN.create(e[n])))}),{});return lN(lN({},t),{},{apply:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,i=n.position;return WM(e,(function(e,n){return t[n].apply(e,{bandAware:r,position:i})}))},isInRange:function(e){return FM(e,(function(e,n){return t[n].isInRange(e)}))}})};function yN(e){return yN="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},yN(e)}function vN(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 gN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vN(Object(n),!0).forEach((function(t){bN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bN(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==yN(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==yN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===yN(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xN(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,c=[],s=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return wN(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 wN(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 wN(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function kN(){return kN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kN.apply(this,arguments)}function EN(t){var n=t.x,r=t.y,i=t.segment,o=t.xAxis,a=t.yAxis,c=t.shape,s=t.className,l=t.alwaysShow,u=t.clipPathId;ix(void 0===l,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=function(e,t,n,r,i){var o=i.viewBox,a=o.x,c=o.y,s=o.width,l=o.height,u=i.position;if(n){var f=i.y,p=i.yAxis.orientation,d=e.y.apply(f,{position:u});if(TM(i,"discard")&&!e.y.isInRange(d))return null;var h=[{x:a+s,y:d},{x:a,y:d}];return"left"===p?h.reverse():h}if(t){var m=i.x,y=i.xAxis.orientation,v=e.x.apply(m,{position:u});if(TM(i,"discard")&&!e.x.isInRange(v))return null;var g=[{x:v,y:c+l},{x:v,y:c}];return"top"===y?g.reverse():g}if(r){var b=i.segment.map((function(t){return e.apply(t,{position:u})}));return TM(i,"discard")&&CM(b,(function(t){return!e.isInRange(t)}))?null:b}return null}(mN({x:o.scale,y:a.scale}),za(n),za(r),i&&2===i.length,t);if(!f)return null;var p=xN(f,2),d=p[0],h=d.x,m=d.y,y=p[1],v=y.x,g=y.y,b=gN(gN({clipPath:TM(t,"hidden")?"url(#".concat(u,")"):void 0},hc(t,!0)),{},{x1:h,y1:m,x2:v,y2:g});return e.createElement(_c,{className:$r("recharts-reference-line",s)},function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):hi(t)?t(n):e.createElement("line",kN({},n,{className:"recharts-reference-line-line"}))}(c,b),DT.renderCallByParent(t,function(e){var t=e.x1,n=e.y1,r=e.x2,i=e.y2;return dN({x:t,y:n},{x:r,y:i})}({x1:h,y1:m,x2:v,y2:g})))}function SN(e){return SN="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},SN(e)}function _N(){return _N=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_N.apply(this,arguments)}function ON(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 AN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ON(Object(n),!0).forEach((function(t){CN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ON(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function CN(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==SN(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==SN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===SN(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}EN.displayName="ReferenceLine",EN.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};function TN(t){var n=t.x,r=t.y,i=t.r,o=t.alwaysShow,a=t.clipPathId,c=za(n),s=za(r);if(ix(void 0===o,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!s)return null;var l=function(e){var t=e.x,n=e.y,r=e.xAxis,i=e.yAxis,o=mN({x:r.scale,y:i.scale}),a=o.apply({x:t,y:n},{bandAware:!0});return TM(e,"discard")&&!o.isInRange(a)?null:a}(t);if(!l)return null;var u=l.x,f=l.y,p=t.shape,d=t.className,h=AN(AN({clipPath:TM(t,"hidden")?"url(#".concat(a,")"):void 0},hc(t,!0)),{},{cx:u,cy:f});return e.createElement(_c,{className:$r("recharts-reference-dot",d)},TN.renderDot(p,h),DT.renderCallByParent(t,{x:u-i,y:f-i,width:2*i,height:2*i}))}function PN(e){return PN="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},PN(e)}function DN(){return DN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},DN.apply(this,arguments)}function jN(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 MN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jN(Object(n),!0).forEach((function(t){NN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function NN(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==PN(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==PN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===PN(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}TN.displayName="ReferenceDot",TN.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},TN.renderDot=function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):hi(t)?t(n):e.createElement(YP,_N({},n,{cx:n.cx,cy:n.cy,className:"recharts-reference-dot-dot"}))};function IN(t){var n=t.x1,r=t.x2,i=t.y1,o=t.y2,a=t.className,c=t.alwaysShow,s=t.clipPathId;ix(void 0===c,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=za(n),u=za(r),f=za(i),p=za(o),d=t.shape;if(!(l||u||f||p||d))return null;var h=function(e,t,n,r,i){var o=i.x1,a=i.x2,c=i.y1,s=i.y2,l=i.xAxis,u=i.yAxis;if(!l||!u)return null;var f=mN({x:l.scale,y:u.scale}),p={x:e?f.x.apply(o,{position:"start"}):f.x.rangeMin,y:n?f.y.apply(c,{position:"start"}):f.y.rangeMin},d={x:t?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:r?f.y.apply(s,{position:"end"}):f.y.rangeMax};return!TM(i,"discard")||f.isInRange(p)&&f.isInRange(d)?dN(p,d):null}(l,u,f,p,t);if(!h&&!d)return null;var m=TM(t,"hidden")?"url(#".concat(s,")"):void 0;return e.createElement(_c,{className:$r("recharts-reference-area",a)},IN.renderRect(d,MN(MN({clipPath:m},hc(t,!0)),h)),DT.renderCallByParent(t,h))}function RN(e,t,n){if(t<1)return[];if(1===t&&void 0===n)return e;for(var r=[],i=0;i<e.length;i+=t){if(void 0!==n&&!0!==n(e[i]))return;r.push(e[i])}return r}function LN(e){return LN="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},LN(e)}function FN(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 zN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?FN(Object(n),!0).forEach((function(t){BN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function BN(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==LN(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==LN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===LN(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qN(e,t){var n,r,i=e.ticks,o=e.tickFormatter,a=e.viewBox,c=e.orientation,s=e.minTickGap,l=e.unit,u=e.fontSize,f=e.letterSpacing,p=a.x,d=a.y,h=a.width,m=a.height,y="top"===c||"bottom"===c?"width":"height",v=(i||[]).slice(),g=l&&"width"===y?nw(l,{fontSize:u,letterSpacing:f})[y]:0,b=v.length,x=b>=2?Ra(v[1].coordinate-v[0].coordinate):1;if(1===x?(n="width"===y?p:d,r="width"===y?p+h:d+m):(n="width"===y?p+h:d+m,r="width"===y?p:d),t){var w=i[b-1],k=hi(o)?o(w.value,b-1):w.value,E=nw(k,{fontSize:u,letterSpacing:f})[y]+g,S=x*(w.coordinate+x*E/2-r);v[b-1]=w=zN(zN({},w),{},{tickCoord:S>0?w.coordinate-S*x:w.coordinate}),x*(w.tickCoord-x*E/2-n)>=0&&x*(w.tickCoord+x*E/2-r)<=0&&(r=w.tickCoord-x*(E/2+s),v[b-1]=zN(zN({},w),{},{isShow:!0}))}for(var _=t?b-1:b,O=0;O<_;O++){var A=v[O],C=hi(o)?o(A.value,O):A.value,T=nw(C,{fontSize:u,letterSpacing:f})[y]+g;if(0===O){var P=x*(A.coordinate-x*T/2-n);v[O]=A=zN(zN({},A),{},{tickCoord:P<0?A.coordinate-P*x:A.coordinate})}else v[O]=A=zN(zN({},A),{},{tickCoord:A.coordinate});x*(A.tickCoord-x*T/2-n)>=0&&x*(A.tickCoord+x*T/2-r)<=0&&(n=A.tickCoord+x*(T/2+s),v[O]=zN(zN({},A),{},{isShow:!0}))}return v}function HN(e,t,n){var r=e.tick,i=e.ticks,o=e.viewBox,a=e.minTickGap,c=e.orientation,s=e.interval,l=e.tickFormatter,u=e.unit;if(!i||!i.length||!r)return[];if(Fa(s)||db.isSsr)return function(e,t){return RN(e,t+1)}(i,"number"==typeof s&&Fa(s)?s:0);var f=[];return"equidistantPreserveStart"===s?function(e){for(var t=1,n=RN(e,t,(function(e){return e.isShow}));t<=e.length;){if(void 0!==n)return n;n=RN(e,++t,(function(e){return e.isShow}))}return e.slice(0,1)}(f=qN({ticks:i,tickFormatter:l,viewBox:o,orientation:c,minTickGap:a,unit:u,fontSize:t,letterSpacing:n})):(f="preserveStart"===s||"preserveStartEnd"===s?qN({ticks:i,tickFormatter:l,viewBox:o,orientation:c,minTickGap:a,unit:u,fontSize:t,letterSpacing:n},"preserveStartEnd"===s):function(e){var t,n,r=e.ticks,i=e.tickFormatter,o=e.viewBox,a=e.orientation,c=e.minTickGap,s=e.unit,l=e.fontSize,u=e.letterSpacing,f=o.x,p=o.y,d=o.width,h=o.height,m="top"===a||"bottom"===a?"width":"height",y=s&&"width"===m?nw(s,{fontSize:l,letterSpacing:u})[m]:0,v=(r||[]).slice(),g=v.length,b=g>=2?Ra(v[1].coordinate-v[0].coordinate):1;1===b?(t="width"===m?f:p,n="width"===m?f+d:p+h):(t="width"===m?f+d:p+h,n="width"===m?f:p);for(var x=g-1;x>=0;x--){var w=v[x],k=hi(i)?i(w.value,g-x-1):w.value,E=nw(k,{fontSize:l,letterSpacing:u})[m]+y;if(x===g-1){var S=b*(w.coordinate+b*E/2-n);v[x]=w=zN(zN({},w),{},{tickCoord:S>0?w.coordinate-S*b:w.coordinate})}else v[x]=w=zN(zN({},w),{},{tickCoord:w.coordinate});b*(w.tickCoord-b*E/2-t)>=0&&b*(w.tickCoord+b*E/2-n)<=0&&(n=w.tickCoord-b*(E/2+c),v[x]=zN(zN({},w),{},{isShow:!0}))}return v}({ticks:i,tickFormatter:l,viewBox:o,orientation:c,minTickGap:a,unit:u,fontSize:t,letterSpacing:n}),f.filter((function(e){return e.isShow})))}IN.displayName="ReferenceArea",IN.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},IN.renderRect=function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):hi(t)?t(n):e.createElement(CP,DN({},n,{className:"recharts-reference-area-rect"}))};var VN=["viewBox"],UN=["viewBox"],WN=["ticks"];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},$N(e)}function GN(){return GN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},GN.apply(this,arguments)}function YN(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 XN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?YN(Object(n),!0).forEach((function(t){tI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ZN(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function KN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,nI(r.key),r)}}function JN(e,t){return JN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},JN(e,t)}function QN(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=eI(e);if(t){var i=eI(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===$N(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function eI(e){return eI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},eI(e)}function tI(e,t,n){return(t=nI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nI(e){var t=function(e,t){if("object"!==$N(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==$N(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===$N(t)?t:String(t)}var rI=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&JN(e,t)}(a,g);var n,r,i,o=QN(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).state={fontSize:"",letterSpacing:""},t}return n=a,r=[{key:"shouldComponentUpdate",value:function(e,t){var n=e.viewBox,r=ZN(e,VN),i=this.props,o=i.viewBox,a=ZN(i,UN);return!$a(n,o)||!$a(r,a)||!$a(t,this.state)}},{key:"componentDidMount",value:function(){var e=this.layerReference;if(e){var t=e.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];t&&this.setState({fontSize:window.getComputedStyle(t).fontSize,letterSpacing:window.getComputedStyle(t).letterSpacing})}}},{key:"getTickLineCoord",value:function(e){var t,n,r,i,o,a,c=this.props,s=c.x,l=c.y,u=c.width,f=c.height,p=c.orientation,d=c.tickSize,h=c.mirror,m=c.tickMargin,y=h?-1:1,v=e.tickSize||d,g=Fa(e.tickCoord)?e.tickCoord:e.coordinate;switch(p){case"top":t=n=e.coordinate,a=(r=(i=l+ +!h*f)-y*v)-y*m,o=g;break;case"left":r=i=e.coordinate,o=(t=(n=s+ +!h*u)-y*v)-y*m,a=g;break;case"right":r=i=e.coordinate,o=(t=(n=s+ +h*u)+y*v)+y*m,a=g;break;default:t=n=e.coordinate,a=(r=(i=l+ +h*f)+y*v)+y*m,o=g}return{line:{x1:t,y1:r,x2:n,y2:i},tick:{x:o,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 t=this.props,n=t.x,r=t.y,i=t.width,o=t.height,a=t.orientation,c=t.mirror,s=t.axisLine,l=XN(XN(XN({},hc(this.props)),hc(s)),{},{fill:"none"});if("top"===a||"bottom"===a){var u=+("top"===a&&!c||"bottom"===a&&c);l=XN(XN({},l),{},{x1:n,y1:r+u*o,x2:n+i,y2:r+u*o})}else{var f=+("left"===a&&!c||"right"===a&&c);l=XN(XN({},l),{},{x1:n+f*i,y1:r,x2:n+f*i,y2:r+o})}return e.createElement("line",GN({},l,{className:$r("recharts-cartesian-axis-line",ka(s,"className"))}))}},{key:"renderTicks",value:function(t,n,r){var i=this,o=this.props,c=o.tickLine,s=o.stroke,l=o.tick,u=o.tickFormatter,f=o.unit,p=HN(XN(XN({},this.props),{},{ticks:t}),n,r),d=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),m=hc(this.props),y=hc(l),v=XN(XN({},m),{},{fill:"none"},hc(c)),g=p.map((function(t,n){var r=i.getTickLineCoord(t),o=r.line,g=r.tick,b=XN(XN(XN(XN({textAnchor:d,verticalAnchor:h},m),{},{stroke:"none",fill:s},y),g),{},{index:n,payload:t,visibleTicksCount:p.length,tickFormatter:u});return e.createElement(_c,GN({className:"recharts-cartesian-axis-tick",key:"tick-".concat(n)},Qa(i.props,t,n)),c&&e.createElement("line",GN({},v,o,{className:$r("recharts-cartesian-axis-tick-line",ka(c,"className"))})),l&&a.renderTickItem(l,b,"".concat(hi(u)?u(t.value,n):t.value).concat(f||"")))}));return e.createElement("g",{className:"recharts-cartesian-axis-ticks"},g)}},{key:"render",value:function(){var t=this,n=this.props,r=n.axisLine,i=n.width,o=n.height,a=n.ticksGenerator,c=n.className;if(n.hide)return null;var s=this.props,l=s.ticks,u=ZN(s,WN),f=l;return hi(a)&&(f=l&&l.length>0?a(this.props):a(u)),i<=0||o<=0||!f||!f.length?null:e.createElement(_c,{className:$r("recharts-cartesian-axis",c),ref:function(e){t.layerReference=e}},r&&this.renderAxisLine(),this.renderTicks(f,this.state.fontSize,this.state.letterSpacing),DT.renderCallByParent(this.props))}}],i=[{key:"renderTickItem",value:function(t,n,r){return e.isValidElement(t)?e.cloneElement(t,n):hi(t)?t(n):e.createElement(kw,GN({},n,{className:"recharts-cartesian-axis-tick-value"}),r)}}],r&&KN(n.prototype,r),i&&KN(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();tI(rI,"displayName","CartesianAxis"),tI(rI,"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"});var iI=["x1","y1","x2","y2","key"];function oI(e){return oI="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},oI(e)}function aI(){return aI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},aI.apply(this,arguments)}function cI(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function sI(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 lI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sI(Object(n),!0).forEach((function(t){hI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function uI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mI(r.key),r)}}function fI(e,t){return fI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fI(e,t)}function pI(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=dI(e);if(t){var i=dI(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===oI(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function dI(e){return dI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},dI(e)}function hI(e,t,n){return(t=mI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mI(e){var t=function(e,t){if("object"!==oI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==oI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===oI(t)?t:String(t)}var yI=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fI(e,t)}(a,p);var n,r,i,o=pI(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return n=a,r=[{key:"renderHorizontal",value:function(t){var n=this,r=this.props,i=r.x,o=r.width,c=r.horizontal;if(!t||!t.length)return null;var s=t.map((function(e,t){var r=lI(lI({},n.props),{},{x1:i,y1:e,x2:i+o,y2:e,key:"line-".concat(t),index:t});return a.renderLineItem(c,r)}));return e.createElement("g",{className:"recharts-cartesian-grid-horizontal"},s)}},{key:"renderVertical",value:function(t){var n=this,r=this.props,i=r.y,o=r.height,c=r.vertical;if(!t||!t.length)return null;var s=t.map((function(e,t){var r=lI(lI({},n.props),{},{x1:e,y1:i,x2:e,y2:i+o,key:"line-".concat(t),index:t});return a.renderLineItem(c,r)}));return e.createElement("g",{className:"recharts-cartesian-grid-vertical"},s)}},{key:"renderVerticalStripes",value:function(t){var n=this.props.verticalFill;if(!n||!n.length)return null;var r=this.props,i=r.fillOpacity,o=r.x,a=r.y,c=r.width,s=r.height,l=t.map((function(e){return Math.round(e+o-o)})).sort((function(e,t){return e-t}));o!==l[0]&&l.unshift(0);var u=l.map((function(t,r){var u=l[r+1]?l[r+1]-t:o+c-t;if(u<=0)return null;var f=r%n.length;return e.createElement("rect",{key:"react-".concat(r),x:t,y:a,width:u,height:s,stroke:"none",fill:n[f],fillOpacity:i,className:"recharts-cartesian-grid-bg"})}));return e.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},u)}},{key:"renderHorizontalStripes",value:function(t){var n=this.props.horizontalFill;if(!n||!n.length)return null;var r=this.props,i=r.fillOpacity,o=r.x,a=r.y,c=r.width,s=r.height,l=t.map((function(e){return Math.round(e+a-a)})).sort((function(e,t){return e-t}));a!==l[0]&&l.unshift(0);var u=l.map((function(t,r){var u=l[r+1]?l[r+1]-t:a+s-t;if(u<=0)return null;var f=r%n.length;return e.createElement("rect",{key:"react-".concat(r),y:t,x:o,height:u,width:c,stroke:"none",fill:n[f],fillOpacity:i,className:"recharts-cartesian-grid-bg"})}));return e.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},u)}},{key:"renderBackground",value:function(){var t=this.props.fill;if(!t||"none"===t)return null;var n=this.props,r=n.fillOpacity,i=n.x,o=n.y,a=n.width,c=n.height;return e.createElement("rect",{x:i,y:o,width:a,height:c,stroke:"none",fill:t,fillOpacity:r,className:"recharts-cartesian-grid-bg"})}},{key:"render",value:function(){var t=this.props,n=t.x,r=t.y,i=t.width,o=t.height,a=t.horizontal,c=t.vertical,s=t.horizontalCoordinatesGenerator,l=t.verticalCoordinatesGenerator,u=t.xAxis,f=t.yAxis,p=t.offset,d=t.chartWidth,h=t.chartHeight;if(!Fa(i)||i<=0||!Fa(o)||o<=0||!Fa(n)||n!==+n||!Fa(r)||r!==+r)return null;var m=this.props,y=m.horizontalPoints,v=m.verticalPoints;return y&&y.length||!hi(s)||(y=s({yAxis:f,width:d,height:h,offset:p})),v&&v.length||!hi(l)||(v=l({xAxis:u,width:d,height:h,offset:p})),e.createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),a&&this.renderHorizontal(y),c&&this.renderVertical(v),a&&this.renderHorizontalStripes(y),c&&this.renderVerticalStripes(v))}}],i=[{key:"renderLineItem",value:function(t,n){var r;if(e.isValidElement(t))r=e.cloneElement(t,n);else if(hi(t))r=t(n);else{var i=n.x1,o=n.y1,a=n.x2,c=n.y2,s=n.key,l=cI(n,iI);r=e.createElement("line",aI({},hc(l),{x1:i,y1:o,x2:a,y2:c,fill:"none",key:s}))}return r}}],r&&uI(n.prototype,r),i&&uI(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();hI(yI,"displayName","CartesianGrid"),hI(yI,"defaultProps",{horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]});var vI=["type","layout","connectNulls","ref"];function gI(e){return gI="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},gI(e)}function bI(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function xI(){return xI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xI.apply(this,arguments)}function wI(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 kI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wI(Object(n),!0).forEach((function(t){PI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function EI(e){return function(e){if(Array.isArray(e))return SI(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return SI(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 SI(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 SI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _I(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,DI(r.key),r)}}function OI(e,t){return OI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},OI(e,t)}function AI(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=TI(e);if(t){var i=TI(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===gI(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return CI(e)}(this,n)}}function CI(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TI(e){return TI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},TI(e)}function PI(e,t,n){return(t=DI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DI(e){var t=function(e,t){if("object"!==gI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==gI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===gI(t)?t:String(t)}var jI=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&OI(e,t)}(a,p);var n,r,i,o=AI(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return PI(CI(e=o.call.apply(o,[this].concat(n))),"state",{isAnimationFinished:!0,totalLength:0}),PI(CI(e),"getStrokeDasharray",(function(e,t,n){for(var r=n.reduce((function(e,t){return e+t})),i=Math.floor(e/r),o=e%r,c=t-e,s=[],l=0,u=0;;u+=n[l],++l)if(u+n[l]>o){s=[].concat(EI(n.slice(0,l)),[o-u]);break}var f=s.length%2==0?[0,c]:[c];return[].concat(EI(a.repeat(n,i)),EI(s),f).map((function(e){return"".concat(e,"px")})).join(", ")})),PI(CI(e),"id",qa("recharts-line-")),PI(CI(e),"pathRef",(function(t){e.mainCurve=t})),PI(CI(e),"handleAnimationEnd",(function(){e.setState({isAnimationFinished:!0}),e.props.onAnimationEnd&&e.props.onAnimationEnd()})),PI(CI(e),"handleAnimationStart",(function(){e.setState({isAnimationFinished:!1}),e.props.onAnimationStart&&e.props.onAnimationStart()})),e}return n=a,r=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var e=this.getTotalLength();this.setState({totalLength:e})}}},{key:"getTotalLength",value:function(){var e=this.mainCurve;try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch(e){return 0}}},{key:"renderErrorBar",value:function(t,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,i=r.points,o=r.xAxis,a=r.yAxis,c=r.layout,s=sc(r.children,SC);if(!s)return null;function l(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:DC(e.payload,t)}}var u={clipPath:t?"url(#clipPath-".concat(n,")"):null};return e.createElement(_c,u,s.map((function(t,n){return e.cloneElement(t,{key:"bar-".concat(n),data:i,xAxis:o,yAxis:a,layout:c,dataPointFormatter:l})})))}},{key:"renderDots",value:function(t,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,i=r.dot,o=r.points,c=r.dataKey,s=hc(this.props),l=hc(i,!0),u=o.map((function(e,t){var n=kI(kI(kI({key:"dot-".concat(t),r:3},s),l),{},{value:e.value,dataKey:c,cx:e.x,cy:e.y,index:t,payload:e.payload});return a.renderDotItem(i,n)})),f={clipPath:t?"url(#clipPath-".concat(n,")"):null};return e.createElement(_c,xI({className:"recharts-line-dots",key:"dots"},f,{role:"img"}),u)}},{key:"renderCurveStatically",value:function(t,n,r,i){var o=this.props,a=o.type,c=o.layout,s=o.connectNulls;o.ref;var l=bI(o,vI),u=kI(kI(kI({},hc(l,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:n?"url(#clipPath-".concat(r,")"):null,points:t},i),{},{type:a,layout:c,connectNulls:s});return e.createElement(yP,xI({},u,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(t,n){var r=this,i=this.props,o=i.points,a=i.strokeDasharray,c=i.isAnimationActive,s=i.animationBegin,l=i.animationDuration,u=i.animationEasing,f=i.animationId,p=i.animateNewValues,d=i.width,h=i.height,m=this.state,y=m.prevPoints,v=m.totalLength;return e.createElement(Zv,{begin:s,duration:l,isActive:c,easing:u,from:{t:0},to:{t:1},key:"line-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(e){var i=e.t;if(y){var c=y.length/o.length,s=o.map((function(e,t){var n=Math.floor(t*c);if(y[n]){var r=y[n],o=Ua(r.x,e.x),a=Ua(r.y,e.y);return kI(kI({},e),{},{x:o(i),y:a(i)})}if(p){var s=Ua(2*d,e.x),l=Ua(h/2,e.y);return kI(kI({},e),{},{x:s(i),y:l(i)})}return kI(kI({},e),{},{x:e.x,y:e.y})}));return r.renderCurveStatically(s,t,n)}var l,u=Ua(0,v)(i);if(a){var f="".concat(a).split(/[,\s]+/gim).map((function(e){return parseFloat(e)}));l=r.getStrokeDasharray(u,v,f)}else l="".concat(u,"px ").concat(v-u,"px");return r.renderCurveStatically(o,t,n,{strokeDasharray:l})}))}},{key:"renderCurve",value:function(e,t){var n=this.props,r=n.points,i=n.isAnimationActive,o=this.state,a=o.prevPoints,c=o.totalLength;return i&&r&&r.length&&(!a&&c>0||!Sw(a,r))?this.renderCurveWithAnimation(e,t):this.renderCurveStatically(r,e,t)}},{key:"render",value:function(){var t=this.props,n=t.hide,r=t.dot,i=t.points,o=t.className,a=t.xAxis,c=t.yAxis,s=t.top,l=t.left,u=t.width,f=t.height,p=t.isAnimationActive,d=t.id;if(n||!i||!i.length)return null;var h=this.state.isAnimationFinished,m=1===i.length,y=$r("recharts-line",o),v=a&&a.allowDataOverflow||c&&c.allowDataOverflow,g=Sa(d)?this.id:d;return e.createElement(_c,{className:y},v?e.createElement("defs",null,e.createElement("clipPath",{id:"clipPath-".concat(g)},e.createElement("rect",{x:l,y:s,width:u,height:f}))):null,!m&&this.renderCurve(v,g),this.renderErrorBar(v,g),(m||r)&&this.renderDots(v,g),(!p||h)&&WT.renderCallByParent(this.props,i))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,prevPoints:t.curPoints}:e.points!==t.curPoints?{curPoints:e.points}:null}},{key:"repeat",value:function(e,t){for(var n=e.length%2!=0?[].concat(EI(e),[0]):e,r=[],i=0;i<t;++i)r=[].concat(EI(r),EI(n));return r}},{key:"renderDotItem",value:function(t,n){var r;if(e.isValidElement(t))r=e.cloneElement(t,n);else if(hi(t))r=t(n);else{var i=$r("recharts-line-dot",t?t.className:"");r=e.createElement(YP,xI({},n,{className:i}))}return r}}],r&&_I(n.prototype,r),i&&_I(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();PI(jI,"displayName","Line"),PI(jI,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!db.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),PI(jI,"getComposedData",(function(e){var t=e.props,n=e.xAxis,r=e.yAxis,i=e.xAxisTicks,o=e.yAxisTicks,a=e.dataKey,c=e.bandSize,s=e.displayedData,l=e.offset,u=t.layout;return kI({points:s.map((function(e,t){var s=DC(e,a);return"horizontal"===u?{x:XC({axis:n,ticks:i,bandSize:c,entry:e,index:t}),y:Sa(s)?null:r.scale(s),value:s,payload:e}:{x:Sa(s)?null:n.scale(s),y:XC({axis:r,ticks:o,bandSize:c,entry:e,index:t}),value:s,payload:e}})),layout:u},l)}));var MI=["layout","type","stroke","connectNulls","isRange","ref"];function NI(e){return NI="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},NI(e)}function II(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function RI(){return RI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},RI.apply(this,arguments)}function LI(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 FI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?LI(Object(n),!0).forEach((function(t){UI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,WI(r.key),r)}}function BI(e,t){return BI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},BI(e,t)}function qI(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=VI(e);if(t){var i=VI(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===NI(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return HI(e)}(this,n)}}function HI(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function VI(e){return VI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},VI(e)}function UI(e,t,n){return(t=WI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WI(e){var t=function(e,t){if("object"!==NI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==NI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===NI(t)?t:String(t)}var $I=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&BI(e,t)}(a,p);var n,r,i,o=qI(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return UI(HI(e=o.call.apply(o,[this].concat(n))),"state",{isAnimationFinished:!0}),UI(HI(e),"id",qa("recharts-area-")),UI(HI(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),hi(t)&&t()})),UI(HI(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),hi(t)&&t()})),e}return n=a,r=[{key:"renderDots",value:function(t,n){var r=this.props.isAnimationActive,i=this.state.isAnimationFinished;if(r&&!i)return null;var o=this.props,c=o.dot,s=o.points,l=o.dataKey,u=hc(this.props),f=hc(c,!0),p=s.map((function(e,t){var n=FI(FI(FI({key:"dot-".concat(t),r:3},u),f),{},{dataKey:l,cx:e.x,cy:e.y,index:t,value:e.value,payload:e.payload});return a.renderDotItem(c,n)})),d={clipPath:t?"url(#clipPath-".concat(n,")"):null};return e.createElement(_c,RI({className:"recharts-area-dots"},d),p)}},{key:"renderHorizontalRect",value:function(t){var n=this.props,r=n.baseLine,i=n.points,o=n.strokeWidth,a=i[0].x,c=i[i.length-1].x,s=t*Math.abs(a-c),l=jw(i.map((function(e){return e.y||0})));return Fa(r)&&"number"==typeof r?l=Math.max(r,l):r&&yi(r)&&r.length&&(l=Math.max(jw(r.map((function(e){return e.y||0}))),l)),Fa(l)?e.createElement("rect",{x:a<c?a:a-s,y:0,width:s,height:Math.floor(l+(o?parseInt("".concat(o),10):1))}):null}},{key:"renderVerticalRect",value:function(t){var n=this.props,r=n.baseLine,i=n.points,o=n.strokeWidth,a=i[0].y,c=i[i.length-1].y,s=t*Math.abs(a-c),l=jw(i.map((function(e){return e.x||0})));return Fa(r)&&"number"==typeof r?l=Math.max(r,l):r&&yi(r)&&r.length&&(l=Math.max(jw(r.map((function(e){return e.x||0}))),l)),Fa(l)?e.createElement("rect",{x:0,y:a<c?a:a-s,width:l+(o?parseInt("".concat(o),10):1),height:Math.floor(s)}):null}},{key:"renderClipRect",value:function(e){return"vertical"===this.props.layout?this.renderVerticalRect(e):this.renderHorizontalRect(e)}},{key:"renderAreaStatically",value:function(t,n,r,i){var o=this.props,a=o.layout,c=o.type,s=o.stroke,l=o.connectNulls,u=o.isRange;o.ref;var f=II(o,MI);return e.createElement(_c,{clipPath:r?"url(#clipPath-".concat(i,")"):null},e.createElement(yP,RI({},hc(f,!0),{points:t,connectNulls:l,type:c,baseLine:n,layout:a,stroke:"none",className:"recharts-area-area"})),"none"!==s&&e.createElement(yP,RI({},hc(this.props),{className:"recharts-area-curve",layout:a,type:c,connectNulls:l,fill:"none",points:t})),"none"!==s&&u&&e.createElement(yP,RI({},hc(this.props),{className:"recharts-area-curve",layout:a,type:c,connectNulls:l,fill:"none",points:n})))}},{key:"renderAreaWithAnimation",value:function(t,n){var r=this,i=this.props,o=i.points,a=i.baseLine,c=i.isAnimationActive,s=i.animationBegin,l=i.animationDuration,u=i.animationEasing,f=i.animationId,p=this.state,d=p.prevPoints,h=p.prevBaseLine;return e.createElement(Zv,{begin:s,duration:l,isActive:c,easing:u,from:{t:0},to:{t:1},key:"area-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(i){var c=i.t;if(d){var s,l=d.length/o.length,u=o.map((function(e,t){var n=Math.floor(t*l);if(d[n]){var r=d[n],i=Ua(r.x,e.x),o=Ua(r.y,e.y);return FI(FI({},e),{},{x:i(c),y:o(c)})}return e}));return s=Fa(a)&&"number"==typeof a?Ua(h,a)(c):Sa(a)||Ia(a)?Ua(h,0)(c):a.map((function(e,t){var n=Math.floor(t*l);if(h[n]){var r=h[n],i=Ua(r.x,e.x),o=Ua(r.y,e.y);return FI(FI({},e),{},{x:i(c),y:o(c)})}return e})),r.renderAreaStatically(u,s,t,n)}return e.createElement(_c,null,e.createElement("defs",null,e.createElement("clipPath",{id:"animationClipPath-".concat(n)},r.renderClipRect(c))),e.createElement(_c,{clipPath:"url(#animationClipPath-".concat(n,")")},r.renderAreaStatically(o,a,t,n)))}))}},{key:"renderArea",value:function(e,t){var n=this.props,r=n.points,i=n.baseLine,o=n.isAnimationActive,a=this.state,c=a.prevPoints,s=a.prevBaseLine,l=a.totalLength;return o&&r&&r.length&&(!c&&l>0||!Sw(c,r)||!Sw(s,i))?this.renderAreaWithAnimation(e,t):this.renderAreaStatically(r,i,e,t)}},{key:"render",value:function(){var t=this.props,n=t.hide,r=t.dot,i=t.points,o=t.className,a=t.top,c=t.left,s=t.xAxis,l=t.yAxis,u=t.width,f=t.height,p=t.isAnimationActive,d=t.id;if(n||!i||!i.length)return null;var h=this.state.isAnimationFinished,m=1===i.length,y=$r("recharts-area",o),v=s&&s.allowDataOverflow||l&&l.allowDataOverflow,g=Sa(d)?this.id:d;return e.createElement(_c,{className:y},v?e.createElement("defs",null,e.createElement("clipPath",{id:"clipPath-".concat(g)},e.createElement("rect",{x:c,y:a,width:u,height:Math.floor(f)}))):null,m?null:this.renderArea(v,g),(r||m)&&this.renderDots(v,g),(!p||h)&&WT.renderCallByParent(this.props,i))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,curBaseLine:e.baseLine,prevPoints:t.curPoints,prevBaseLine:t.curBaseLine}:e.points!==t.curPoints||e.baseLine!==t.curBaseLine?{curPoints:e.points,curBaseLine:e.baseLine}:null}}],r&&zI(n.prototype,r),i&&zI(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();UI($I,"displayName","Area"),UI($I,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!db.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),UI($I,"getBaseValue",(function(e,t,n,r){var i=e.layout,o=e.baseValue,a=t.props.baseValue,c=null!=a?a:o;if(Fa(c)&&"number"==typeof c)return c;var s="horizontal"===i?r:n,l=s.scale.domain();if("number"===s.type){var u=Math.max(l[0],l[1]),f=Math.min(l[0],l[1]);return"dataMin"===c?f:"dataMax"===c||u<0?u:Math.max(Math.min(l[0],l[1]),0)}return"dataMin"===c?l[0]:"dataMax"===c?l[1]:l[0]})),UI($I,"getComposedData",(function(e){var t,n=e.props,r=e.item,i=e.xAxis,o=e.yAxis,a=e.xAxisTicks,c=e.yAxisTicks,s=e.bandSize,l=e.dataKey,u=e.stackedData,f=e.dataStartIndex,p=e.displayedData,d=e.offset,h=n.layout,m=u&&u.length,y=$I.getBaseValue(n,r,i,o),v=!1,g=p.map((function(e,t){var n,r=DC(e,l);m?n=u[f+t]:yi(n=r)?v=!0:n=[y,n];var p=Sa(n[1])||m&&Sa(r);return"horizontal"===h?{x:XC({axis:i,ticks:a,bandSize:s,entry:e,index:t}),y:p?null:o.scale(n[1]),value:n,payload:e}:{x:p?null:i.scale(n[1]),y:XC({axis:o,ticks:c,bandSize:s,entry:e,index:t}),value:n,payload:e}}));return t=m||v?g.map((function(e){return"horizontal"===h?{x:e.x,y:Sa(ka(e,"value[0]"))||Sa(ka(e,"y"))?null:o.scale(ka(e,"value[0]"))}:{x:Sa(ka(e,"value[0]"))?null:i.scale(ka(e,"value[0]")),y:e.y}})):"horizontal"===h?o.scale(y):i.scale(y),FI({points:g,baseLine:t,layout:h,isRange:v},d)})),UI($I,"renderDotItem",(function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):hi(t)?t(n):e.createElement(YP,RI({},n,{className:"recharts-area-dot"}))}));var GI=function(){return null};function YI(e){return YI="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},YI(e)}function XI(){return XI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},XI.apply(this,arguments)}function ZI(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 KI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ZI(Object(n),!0).forEach((function(t){rR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function JI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,iR(r.key),r)}}function QI(e,t){return QI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},QI(e,t)}function eR(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=nR(e);if(t){var i=nR(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===YI(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return tR(e)}(this,n)}}function tR(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nR(e){return nR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},nR(e)}function rR(e,t,n){return(t=iR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iR(e){var t=function(e,t){if("object"!==YI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==YI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===YI(t)?t:String(t)}GI.displayName="ZAxis",GI.defaultProps={zAxisId:0,range:[64,64],scale:"auto",type:"number"};var oR=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&QI(e,t)}(a,p);var n,r,i,o=eR(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return rR(tR(e=o.call.apply(o,[this].concat(n))),"state",{isAnimationFinished:!1}),rR(tR(e),"handleAnimationEnd",(function(){e.setState({isAnimationFinished:!0})})),rR(tR(e),"handleAnimationStart",(function(){e.setState({isAnimationFinished:!1})})),rR(tR(e),"id",qa("recharts-scatter-")),e}return n=a,r=[{key:"renderSymbolsStatically",value:function(t){var n=this,r=this.props,i=r.shape,o=r.activeShape,c=r.activeIndex,s=hc(this.props);return t.map((function(t,r){var l=KI(KI({key:"symbol-".concat(r)},s),t);return e.createElement(_c,XI({className:"recharts-scatter-symbol"},Qa(n.props,t,r),{key:"symbol-".concat(r),role:"img"}),a.renderSymbolItem(c===r?o:i,l))}))}},{key:"renderSymbolsWithAnimation",value:function(){var t=this,n=this.props,r=n.points,i=n.isAnimationActive,o=n.animationBegin,a=n.animationDuration,c=n.animationEasing,s=n.animationId,l=this.state.prevPoints;return e.createElement(Zv,{begin:o,duration:a,isActive:i,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var i=n.t,o=r.map((function(e,t){var n=l&&l[t];if(n){var r=Ua(n.cx,e.cx),o=Ua(n.cy,e.cy),a=Ua(n.size,e.size);return KI(KI({},e),{},{cx:r(i),cy:o(i),size:a(i)})}var c=Ua(0,e.size);return KI(KI({},e),{},{size:c(i)})}));return e.createElement(_c,null,t.renderSymbolsStatically(o))}))}},{key:"renderSymbols",value:function(){var e=this.props,t=e.points,n=e.isAnimationActive,r=this.state.prevPoints;return!(n&&t&&t.length)||r&&Sw(r,t)?this.renderSymbolsStatically(t):this.renderSymbolsWithAnimation()}},{key:"renderErrorBar",value:function(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var t=this.props,n=t.points,r=t.xAxis,i=t.yAxis,o=sc(t.children,SC);if(!o)return null;function a(e,t){return{x:e.cx,y:e.cy,value:+e.node.y,errorVal:DC(e,t)}}function c(e,t){return{x:e.cx,y:e.cy,value:+e.node.x,errorVal:DC(e,t)}}return o.map((function(t,o){var s=t.props.direction;return e.cloneElement(t,{key:o,data:n,xAxis:r,yAxis:i,layout:"x"===s?"vertical":"horizontal",dataPointFormatter:"x"===s?c:a})}))}},{key:"renderLine",value:function(){var t,n,r=this.props,i=r.points,o=r.line,a=r.lineType,c=r.lineJointType,s=hc(this.props),l=hc(o);if("joint"===a)t=i.map((function(e){return{x:e.cx,y:e.cy}}));else if("fitting"===a){var u=function(e){if(!e||!e.length)return null;for(var t=e.length,n=0,r=0,i=0,o=0,a=1/0,c=-1/0,s=0,l=0,u=0;u<t;u++)n+=s=e[u].cx||0,r+=l=e[u].cy||0,i+=s*l,o+=s*s,a=Math.min(a,s),c=Math.max(c,s);var f=t*o!=n*n?(t*i-n*r)/(t*o-n*n):0;return{xmin:a,xmax:c,a:f,b:(r-f*n)/t}}(i),f=u.xmin,p=u.xmax,d=u.a,h=u.b,m=function(e){return d*e+h};t=[{x:f,y:m(f)},{x:p,y:m(p)}]}var y=KI(KI(KI({},s),{},{fill:"none",stroke:s&&s.fill},l),{},{points:t});return n=e.isValidElement(o)?e.cloneElement(o,y):hi(o)?o(y):e.createElement(yP,XI({},y,{type:c})),e.createElement(_c,{className:"recharts-scatter-line",key:"recharts-scatter-line"},n)}},{key:"render",value:function(){var t=this.props,n=t.hide,r=t.points,i=t.line,o=t.className,a=t.xAxis,c=t.yAxis,s=t.left,l=t.top,u=t.width,f=t.height,p=t.id,d=t.isAnimationActive;if(n||!r||!r.length)return null;var h=this.state.isAnimationFinished,m=$r("recharts-scatter",o),y=a&&a.allowDataOverflow||c&&c.allowDataOverflow,v=Sa(p)?this.id:p;return e.createElement(_c,{className:m,clipPath:y?"url(#clipPath-".concat(v,")"):null},y?e.createElement("defs",null,e.createElement("clipPath",{id:"clipPath-".concat(v)},e.createElement("rect",{x:s,y:l,width:u,height:f}))):null,i&&this.renderLine(),this.renderErrorBar(),e.createElement(_c,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!d||h)&&WT.renderCallByParent(this.props,r))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,prevPoints:t.curPoints}:e.points!==t.curPoints?{curPoints:e.points}:null}},{key:"renderSymbolItem",value:function(t,n){var r;return e.isValidElement(t)?r=e.cloneElement(t,n):hi(t)?r=t(n):"string"==typeof t&&(r=e.createElement(gd,XI({},n,{type:t}))),r}}],r&&JI(n.prototype,r),i&&JI(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();rR(oR,"displayName","Scatter"),rR(oR,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!db.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"}),rR(oR,"getComposedData",(function(e){var t=e.xAxis,n=e.yAxis,r=e.zAxis,i=e.item,o=e.displayedData,a=e.xAxisTicks,c=e.yAxisTicks,s=e.offset,l=i.props.tooltipType,u=sc(i.props.children,lx),f=Sa(t.dataKey)?i.props.dataKey:t.dataKey,p=Sa(n.dataKey)?i.props.dataKey:n.dataKey,d=r&&r.dataKey,h=r?r.range:GI.defaultProps.range,m=h&&h[0],y=t.scale.bandwidth?t.scale.bandwidth():0,v=n.scale.bandwidth?n.scale.bandwidth():0,g=o.map((function(e,o){var s=DC(e,f),h=DC(e,p),g=!Sa(d)&&DC(e,d)||"-",b=[{name:Sa(t.dataKey)?i.props.name:t.name||t.dataKey,unit:t.unit||"",value:s,payload:e,dataKey:f,type:l},{name:Sa(n.dataKey)?i.props.name:n.name||n.dataKey,unit:n.unit||"",value:h,payload:e,dataKey:p,type:l}];"-"!==g&&b.push({name:r.name||r.dataKey,unit:r.unit||"",value:g,payload:e,dataKey:d,type:l});var x=XC({axis:t,ticks:a,bandSize:y,entry:e,index:o,dataKey:f}),w=XC({axis:n,ticks:c,bandSize:v,entry:e,index:o,dataKey:p}),k="-"!==g?r.scale(g):m,E=Math.sqrt(Math.max(k,0)/Math.PI);return KI(KI({},e),{},{cx:x,cy:w,x:x-E,y:w-E,xAxis:t,yAxis:n,zAxis:r,width:2*E,height:2*E,size:k,node:{x:s,y:h,z:g},tooltipPayload:b,tooltipPosition:{x:x,y:w},payload:e},u&&u[o]&&u[o].props)}));return KI({points:g},s)}));var aR=function(){return null};aR.displayName="XAxis",aR.defaultProps={allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0};var cR=function(){return null};cR.displayName="YAxis",cR.defaultProps={allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1};var sR=Zu,lR=ll,uR=dl;var fR=function(e){return function(t,n,r){var i=Object(t);if(!lR(t)){var o=sR(n);t=uR(t),n=function(e){return o(i[e],e,i)}}var a=e(t,n,r);return a>-1?i[o?t[a]:a]:void 0}},pR=Jj;var dR=Ku,hR=Zu,mR=function(e){var t=pR(e),n=t%1;return t==t?n?t-n:t:0},yR=Math.max;var vR=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:mR(n);return i<0&&(i=yR(r+i,0)),dR(e,hR(t),i)},gR=_(fR(vR)),bR=ui,xR=vi;var wR=_((function(e){return!0===e||!1===e||xR(e)&&"[object Boolean]"==bR(e)}));function kR(e){return function(e){if(Array.isArray(e))return ER(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ER(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 ER(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 ER(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var SR=function(e,t,n,r,i){var o=sc(e,EN),a=sc(e,TN),c=[].concat(kR(o),kR(a)),s=sc(e,IN),l="".concat(r,"Id"),u=r[0],f=t;if(c.length&&(f=c.reduce((function(e,t){if(t.props[l]===n&&TM(t.props,"extendDomain")&&Fa(t.props[u])){var r=t.props[u];return[Math.min(e[0],r),Math.max(e[1],r)]}return e}),f)),s.length){var p="".concat(u,"1"),d="".concat(u,"2");f=s.reduce((function(e,t){if(t.props[l]===n&&TM(t.props,"extendDomain")&&Fa(t.props[p])&&Fa(t.props[d])){var r=t.props[p],i=t.props[d];return[Math.min(e[0],r,i),Math.max(e[1],r,i)]}return e}),f)}return i&&i.length&&(f=i.reduce((function(e,t){return Fa(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e}),f)),f},_R={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,r,o,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var c=new i(r,o||e,a),s=n?n+t:t;return e._events[s]?e._events[s].fn?e._events[s]=[e._events[s],c]:e._events[s].push(c):(e._events[s]=c,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function c(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),c.prototype.eventNames=function(){var e,r,i=[];if(0===this._eventsCount)return i;for(r in e=this._events)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},c.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,a=new Array(o);i<o;i++)a[i]=r[i].fn;return a},c.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},c.prototype.emit=function(e,t,r,i,o,a){var c=n?n+e:e;if(!this._events[c])return!1;var s,l,u=this._events[c],f=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),f){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,r),!0;case 4:return u.fn.call(u.context,t,r,i),!0;case 5:return u.fn.call(u.context,t,r,i,o),!0;case 6:return u.fn.call(u.context,t,r,i,o,a),!0}for(l=1,s=new Array(f-1);l<f;l++)s[l-1]=arguments[l];u.fn.apply(u.context,s)}else{var p,d=u.length;for(l=0;l<d;l++)switch(u[l].once&&this.removeListener(e,u[l].fn,void 0,!0),f){case 1:u[l].fn.call(u[l].context);break;case 2:u[l].fn.call(u[l].context,t);break;case 3:u[l].fn.call(u[l].context,t,r);break;case 4:u[l].fn.call(u[l].context,t,r,i);break;default:if(!s)for(p=1,s=new Array(f-1);p<f;p++)s[p-1]=arguments[p];u[l].fn.apply(u[l].context,s)}}return!0},c.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},c.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},c.prototype.removeListener=function(e,t,r,i){var o=n?n+e:e;if(!this._events[o])return this;if(!t)return a(this,o),this;var c=this._events[o];if(c.fn)c.fn!==t||i&&!c.once||r&&c.context!==r||a(this,o);else{for(var s=0,l=[],u=c.length;s<u;s++)(c[s].fn!==t||i&&!c[s].once||r&&c[s].context!==r)&&l.push(c[s]);l.length?this._events[o]=1===l.length?l[0]:l:a(this,o)}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=n,c.EventEmitter=c,e.exports=c}(_R);var OR=new(_(_R.exports));OR.setMaxListeners&&OR.setMaxListeners(10);var AR="recharts.syncMouseEvents",CR=["item"],TR=["children","className","width","height","style","compact","title","desc"];function PR(e){return PR="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},PR(e)}function DR(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,c=[],s=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(e,t)||BR(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 jR(){return jR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jR.apply(this,arguments)}function MR(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function NR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,WR(r.key),r)}}function IR(e,t){return IR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},IR(e,t)}function RR(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=FR(e);if(t){var i=FR(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===PR(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return LR(e)}(this,n)}}function LR(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function FR(e){return FR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},FR(e)}function zR(e){return function(e){if(Array.isArray(e))return qR(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||BR(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 BR(e,t){if(e){if("string"==typeof e)return qR(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)?qR(e,t):void 0}}function qR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function HR(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 VR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?HR(Object(n),!0).forEach((function(t){UR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function UR(e,t,n){return(t=WR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WR(e){var t=function(e,t){if("object"!==PR(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==PR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===PR(t)?t:String(t)}var $R={xAxis:["bottom","top"],yAxis:["left","right"]},GR={x:0,y:0},YR=Number.isFinite?Number.isFinite:isFinite,XR="function"==typeof requestAnimationFrame?requestAnimationFrame:"function"==typeof setImmediate?setImmediate:setTimeout,ZR="function"==typeof cancelAnimationFrame?cancelAnimationFrame:"function"==typeof clearImmediate?clearImmediate:clearTimeout,KR=function(e,t,n){var r=t.graphicalItems,i=t.dataStartIndex,o=t.dataEndIndex,a=(r||[]).reduce((function(e,t){var n=t.props.data;return n&&n.length?[].concat(zR(e),zR(n)):e}),[]);return a&&a.length>0?a:n&&n.props&&n.props.data&&n.props.data.length>0?n.props.data:e&&e.length&&Fa(i)&&Fa(o)?e.slice(i,o+1):[]};function JR(e){return"number"===e?[0,"auto"]:void 0}var QR=function(e,t,n,r){var i=e.graphicalItems,o=e.tooltipAxis,a=KR(t,e);return n<0||!i||!i.length||n>=a.length?null:i.reduce((function(e,t){if(t.props.hide)return e;var i,c=t.props.data;o.dataKey&&!o.allowDuplicatedCategory?i=Wa(void 0===c?a:c,o.dataKey,r):i=c&&c[n]||a[n];return i?[].concat(zR(e),[iT(t,i)]):e}),[])},eL=function(e,t,n,r){var i=r||{x:e.chartX,y:e.chartY},o=function(e,t){return"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radius}(i,n),a=e.orderedTooltipTicks,c=e.tooltipAxis,s=e.tooltipTicks,l=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=-1,a=null!==(t=null==n?void 0:n.length)&&void 0!==t?t:0;if(a<=1)return 0;if(i&&"angleAxis"===i.axisType&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var c=i.range,s=0;s<a;s++){var l=s>0?r[s-1].coordinate:r[a-1].coordinate,u=r[s].coordinate,f=s>=a-1?r[0].coordinate:r[s+1].coordinate,p=void 0;if(Ra(u-l)!==Ra(f-u)){var d=[];if(Ra(f-u)===Ra(c[1]-c[0])){p=f;var h=u+c[1]-c[0];d[0]=Math.min(h,(h+l)/2),d[1]=Math.max(h,(h+l)/2)}else{p=l;var m=f+c[1]-c[0];d[0]=Math.min(u,(m+u)/2),d[1]=Math.max(u,(m+u)/2)}var y=[Math.min(u,(p+u)/2),Math.max(u,(p+u)/2)];if(e>y[0]&&e<=y[1]||e>=d[0]&&e<=d[1]){o=r[s].index;break}}else{var v=Math.min(l,f),g=Math.max(l,f);if(e>(v+u)/2&&e<=(g+u)/2){o=r[s].index;break}}}else for(var b=0;b<a;b++)if(0===b&&e<=(n[b].coordinate+n[b+1].coordinate)/2||b>0&&b<a-1&&e>(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){o=n[b].index;break}return o}(o,a,s,c);if(l>=0&&s){var u=s[l]&&s[l].value,f=QR(e,t,l,u),p=function(e,t,n,r){var i=t.find((function(e){return e&&e.index===n}));if(i){if("horizontal"===e)return{x:i.coordinate,y:r.y};if("vertical"===e)return{x:r.x,y:i.coordinate};if("centric"===e){var o=i.coordinate,a=r.radius;return VR(VR(VR({},r),dT(r.cx,r.cy,a,o)),{},{angle:o,radius:a})}var c=i.coordinate,s=r.angle;return VR(VR(VR({},r),dT(r.cx,r.cy,c,s)),{},{angle:s,radius:c})}return GR}(n,a,l,i);return{activeTooltipIndex:l,activeLabel:u,activePayload:f,activeCoordinate:p}}return null},tL=function(e,t){var n=t.axes,r=t.graphicalItems,i=t.axisType,o=t.axisIdKey,a=t.stackGroups,c=t.dataStartIndex,s=t.dataEndIndex,l=e.layout,u=e.children,f=e.stackOffset,p=LC(l,i),d=n.reduce((function(t,n){var d,h=n.props,m=h.type,y=h.dataKey,v=h.allowDataOverflow,g=h.allowDuplicatedCategory,b=h.scale,x=h.ticks,w=h.includeHidden,k=n.props[o];if(t[k])return t;var E,S,_,O=KR(e.data,{graphicalItems:r.filter((function(e){return e.props[o]===k})),dataStartIndex:c,dataEndIndex:s}),A=O.length;(function(e,t,n){if("number"===n&&!0===t&&Array.isArray(e)){var r=null==e?void 0:e[0],i=null==e?void 0:e[1];if(r&&i&&Fa(r)&&Fa(i))return!0}return!1})(n.props.domain,v,m)&&(E=tT(n.props.domain,null,v),!p||"number"!==m&&"auto"===b||(_=jC(O,y,"category")));var C=JR(m);if(!E||0===E.length){var T,P=null!==(T=n.props.domain)&&void 0!==T?T:C;if(y){if(E=jC(O,y,m),"category"===m&&p){var D=function(e){if(!yi(e))return!1;for(var t=e.length,n={},r=0;r<t;r++){if(n[e[r]])return!0;n[e[r]]=!0}return!1}(E);g&&D?(S=E,E=nM(0,A)):g||(E=rT(P,E,n).reduce((function(e,t){return e.indexOf(t)>=0?e:[].concat(zR(e),[t])}),[]))}else if("category"===m)E=g?E.filter((function(e){return""!==e&&!Sa(e)})):rT(P,E,n).reduce((function(e,t){return e.indexOf(t)>=0||""===t||Sa(t)?e:[].concat(zR(e),[t])}),[]);else if("number"===m){var j=function(e,t,n,r,i){var o=t.map((function(t){return IC(e,t,n,i,r)})).filter((function(e){return!Sa(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}(O,r.filter((function(e){return e.props[o]===k&&(w||!e.props.hide)})),y,i,l);j&&(E=j)}!p||"number"!==m&&"auto"===b||(_=jC(O,y,"category"))}else E=p?nM(0,A):a&&a[k]&&a[k].hasStack&&"number"===m?"expand"===f?[0,1]:JC(a[k].stackGroups,c,s):RC(O,r.filter((function(e){return e.props[o]===k&&(w||!e.props.hide)})),m,l,!0);if("number"===m)E=SR(u,E,k,i,x),P&&(E=tT(P,E,v));else if("category"===m&&P){var M=P;E.every((function(e){return M.indexOf(e)>=0}))&&(E=M)}}return VR(VR({},t),{},UR({},k,VR(VR({},n.props),{},{axisType:i,domain:E,categoricalDomain:_,duplicateDomain:S,originalDomain:null!==(d=n.props.domain)&&void 0!==d?d:C,isCategorical:p,layout:l})))}),{});return d},nL=function(e,t){var n=t.axisType,r=void 0===n?"xAxis":n,i=t.AxisComp,o=t.graphicalItems,a=t.stackGroups,c=t.dataStartIndex,s=t.dataEndIndex,l=e.children,u="".concat(r,"Id"),f=sc(l,i),p={};return f&&f.length?p=tL(e,{axes:f,graphicalItems:o,axisType:r,axisIdKey:u,stackGroups:a,dataStartIndex:c,dataEndIndex:s}):o&&o.length&&(p=function(e,t){var n=t.graphicalItems,r=t.Axis,i=t.axisType,o=t.axisIdKey,a=t.stackGroups,c=t.dataStartIndex,s=t.dataEndIndex,l=e.layout,u=e.children,f=KR(e.data,{graphicalItems:n,dataStartIndex:c,dataEndIndex:s}),p=f.length,d=LC(l,i),h=-1;return n.reduce((function(e,t){var m,y=t.props[o],v=JR("number");return e[y]?e:(h++,d?m=nM(0,p):a&&a[y]&&a[y].hasStack?(m=JC(a[y].stackGroups,c,s),m=SR(u,m,y,i)):(m=tT(v,RC(f,n.filter((function(e){return e.props[o]===y&&!e.props.hide})),"number",l),r.defaultProps.allowDataOverflow),m=SR(u,m,y,i)),VR(VR({},e),{},UR({},y,VR(VR({axisType:i},r.defaultProps),{},{hide:!0,orientation:ka($R,"".concat(i,".").concat(h%2),null),domain:m,originalDomain:v,isCategorical:d,layout:l}))))}),{})}(e,{Axis:i,graphicalItems:o,axisType:r,axisIdKey:u,stackGroups:a,dataStartIndex:c,dataEndIndex:s})),p},rL=function(e){var t,n,r=e.children,i=e.defaultShowTooltip,o=lc(r,xM);return{chartX:0,chartY:0,dataStartIndex:o&&o.props&&o.props.startIndex||0,dataEndIndex:void 0!==(null==o||null===(t=o.props)||void 0===t?void 0:t.endIndex)?null==o||null===(n=o.props)||void 0===n?void 0:n.endIndex:e.data&&e.data.length-1||0,activeTooltipIndex:-1,isTooltipActive:!Sa(i)&&i}},iL=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"}},oL=function(e,t){var n=e.props,r=(e.graphicalItems,e.xAxisMap),i=void 0===r?{}:r,o=e.yAxisMap,a=void 0===o?{}:o,c=n.width,s=n.height,l=n.children,u=n.margin||{},f=lc(l,xM),p=lc(l,Ud),d=Object.keys(a).reduce((function(e,t){var n=a[t],r=n.orientation;return n.mirror||n.hide?e:VR(VR({},e),{},UR({},r,e[r]+n.width))}),{left:u.left||0,right:u.right||0}),h=Object.keys(i).reduce((function(e,t){var n=i[t],r=n.orientation;return n.mirror||n.hide?e:VR(VR({},e),{},UR({},r,ka(e,"".concat(r))+n.height))}),{top:u.top||0,bottom:u.bottom||0}),m=VR(VR({},h),d),y=m.bottom;return f&&(m.bottom+=f.props.height||xM.defaultProps.height),p&&t&&(m=function(e,t,n,r){var i=n.children,o=n.width,a=n.margin,c=o-(a.left||0)-(a.right||0),s=NC({children:i,legendWidth:c}),l=e;if(s){var u=r||{},f=s.align,p=s.verticalAlign,d=s.layout;("vertical"===d||"horizontal"===d&&"middle"===p)&&Fa(e[f])&&(l=TC(TC({},e),{},PC({},f,l[f]+(u.width||0)))),("horizontal"===d||"vertical"===d&&"center"===f)&&Fa(e[p])&&(l=TC(TC({},e),{},PC({},p,l[p]+(u.height||0))))}return l}(m,0,n,t)),VR(VR({brushBottom:y},m),{},{width:c-m.left-m.right,height:s-m.top-m.bottom})},aL=function(t){var r,i=t.chartName,o=t.GraphicalChild,a=t.defaultTooltipEventType,c=void 0===a?"axis":a,s=t.validateTooltipEventTypes,l=void 0===s?["axis"]:s,f=t.axisComponents,p=t.legendContent,h=t.formatAxisMap,m=t.defaultProps,y=function(e,t){var n=t.graphicalItems,r=t.stackGroups,i=t.offset,o=t.updateId,a=t.dataStartIndex,c=t.dataEndIndex,s=e.barSize,l=e.layout,u=e.barGap,p=e.barCategoryGap,d=e.maxBarSize,h=iL(l),m=h.numericAxisName,y=h.cateAxisName,v=function(e){return!(!e||!e.length)&&e.some((function(e){var t=ic(e&&e.type);return t&&t.indexOf("Bar")>=0}))}(n),g=v&&function(e){var t=e.barSize,n=e.stackGroups,r=void 0===n?{}:n;if(!r)return{};for(var i={},o=Object.keys(r),a=0,c=o.length;a<c;a++)for(var s=r[o[a]].stackGroups,l=Object.keys(s),u=0,f=l.length;u<f;u++){var p=s[l[u]],d=p.items,h=p.cateAxisId,m=d.filter((function(e){return ic(e.type).indexOf("Bar")>=0}));if(m&&m.length){var y=m[0].props.barSize,v=m[0].props[h];i[v]||(i[v]=[]),i[v].push({item:m[0],stackList:m.slice(1),barSize:Sa(y)?t:y})}}return i}({barSize:s,stackGroups:r}),b=[];return n.forEach((function(n,s){var h=KR(e.data,{dataStartIndex:a,dataEndIndex:c},n),v=n.props,x=v.dataKey,w=v.maxBarSize,k=n.props["".concat(m,"Id")],E=n.props["".concat(y,"Id")],S=f.reduce((function(e,r){var i,o=t["".concat(r.axisType,"Map")],a=n.props["".concat(r.axisType,"Id")],c=o&&o[a];return VR(VR({},e),{},(UR(i={},r.axisType,c),UR(i,"".concat(r.axisType,"Ticks"),zC(c)),i))}),{}),_=S[y],O=S["".concat(y,"Ticks")],A=r&&r[k]&&r[k].hasStack&&function(e,t){var n=e.props.stackId;if(za(n)){var r=t[n];if(r&&r.items.length){for(var i=-1,o=0,a=r.items.length;o<a;o++)if(r.items[o]===e){i=o;break}return i>=0?r.stackedData[i]:null}}return null}(n,r[k].stackGroups),C=ic(n.type).indexOf("Bar")>=0,T=nT(_,O),P=[];if(C){var D,j,M=Sa(w)?d:w,N=null!==(D=null!==(j=nT(_,O,!0))&&void 0!==j?j:M)&&void 0!==D?D:0;P=function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,i=e.sizeList,o=void 0===i?[]:i,a=e.maxBarSize,c=o.length;if(c<1)return null;var s,l=Ha(t,r,0,!0);if(o[0].barSize===+o[0].barSize){var u=!1,f=r/c,p=o.reduce((function(e,t){return e+t.barSize||0}),0);(p+=(c-1)*l)>=r&&(p-=(c-1)*l,l=0),p>=r&&f>0&&(u=!0,p=c*(f*=.9));var d={offset:((r-p)/2>>0)-l,size:0};s=o.reduce((function(e,t){var n=[].concat(OC(e),[{item:t.item,position:{offset:d.offset+d.size+l,size:u?f:t.barSize}}]);return d=n[n.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){n.push({item:e,position:d})})),n}),[])}else{var h=Ha(n,r,0,!0);r-2*h-(c-1)*l<=0&&(l=0);var m=(r-2*h-(c-1)*l)/c;m>1&&(m>>=0);var y=a===+a?Math.min(m,a):m;s=o.reduce((function(e,t,n){var r=[].concat(OC(e),[{item:t.item,position:{offset:h+(m+l)*n+(m-y)/2,size:y}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){r.push({item:e,position:r[r.length-1].position})})),r}),[])}return s}({barGap:u,barCategoryGap:p,bandSize:N!==T?N:T,sizeList:g[E],maxBarSize:M}),N!==T&&(P=P.map((function(e){return VR(VR({},e),{},{position:VR(VR({},e.position),{},{offset:e.position.offset-N/2})})})))}var I,R,L,F=n&&n.type&&n.type.getComposedData;F&&b.push({props:VR(VR({},F(VR(VR({},S),{},{displayedData:h,props:e,dataKey:x,item:n,bandSize:T,barPosition:P,offset:i,stackedData:A,layout:l,dataStartIndex:a,dataEndIndex:c}))),{},(I={key:n.key||"item-".concat(s)},UR(I,m,S[m]),UR(I,y,S[y]),UR(I,"animationId",o),I)),childIndex:(R=n,L=e.children,cc(L).indexOf(R)),item:n})})),b},v=function(e,t){var n=e.props,r=e.dataStartIndex,a=e.dataEndIndex,c=e.updateId;if(!uc({props:n}))return null;var s=n.children,l=n.layout,u=n.stackOffset,p=n.data,d=n.reverseStackOrder,m=iL(l),v=m.numericAxisName,g=m.cateAxisName,b=sc(s,o),x=function(e,t,n,r,i,o){if(!e)return null;var a=(o?t.reverse():t).reduce((function(e,t){var i=t.props,o=i.stackId;if(i.hide)return e;var a=t.props[n],c=e[a]||{hasStack:!1,stackGroups:{}};if(za(o)){var s=c.stackGroups[o]||{numericAxisId:n,cateAxisId:r,items:[]};s.items.push(t),c.hasStack=!0,c.stackGroups[o]=s}else c.stackGroups[qa("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return TC(TC({},e),{},PC({},a,c))}),{});return Object.keys(a).reduce((function(t,o){var c=a[o];return c.hasStack&&(c.stackGroups=Object.keys(c.stackGroups).reduce((function(t,o){var a=c.stackGroups[o];return TC(TC({},t),{},PC({},o,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:GC(e,a.items,i)}))}),{})),TC(TC({},t),{},PC({},o,c))}),{})}(p,b,"".concat(v,"Id"),"".concat(g,"Id"),u,d),w=f.reduce((function(e,t){var i="".concat(t.axisType,"Map");return VR(VR({},e),{},UR({},i,nL(n,VR(VR({},t),{},{graphicalItems:b,stackGroups:t.axisType===v&&x,dataStartIndex:r,dataEndIndex:a}))))}),{}),k=oL(VR(VR({},w),{},{props:n,graphicalItems:b}),null==t?void 0:t.legendBBox);Object.keys(w).forEach((function(e){w[e]=h(n,w[e],k,e.replace("Map",""),i)}));var E,S,_=w["".concat(g,"Map")],O=(E=Va(_),{tooltipTicks:S=zC(E,!1,!0),orderedTooltipTicks:Qg(S,(function(e){return e.coordinate})),tooltipAxis:E,tooltipAxisBandSize:nT(E,S)}),A=y(n,VR(VR({},w),{},{dataStartIndex:r,dataEndIndex:a,updateId:c,graphicalItems:b,stackGroups:x,offset:k}));return VR(VR({formattedGraphicalItems:A,graphicalItems:b,offset:k,stackGroups:x},O),w)};return r=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&IR(e,t)}(f,g);var r,o,a,s=RR(f);function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),UR(LR(t=s.call(this,e)),"clearDeferId",(function(){!Sa(t.deferId)&&ZR&&ZR(t.deferId),t.deferId=null})),UR(LR(t),"handleLegendBBoxUpdate",(function(e){if(e){var n=t.state,r=n.dataStartIndex,i=n.dataEndIndex,o=n.updateId;t.setState(VR({legendBBox:e},v({props:t.props,dataStartIndex:r,dataEndIndex:i,updateId:o},VR(VR({},t.state),{},{legendBBox:e}))))}})),UR(LR(t),"handleReceiveSyncEvent",(function(e,n,r){t.props.syncId===e&&n!==t.uniqueChartId&&(t.clearDeferId(),t.deferId=XR&&XR(t.applySyncEvent.bind(LR(t),r)))})),UR(LR(t),"handleBrushChange",(function(e){var n=e.startIndex,r=e.endIndex;if(n!==t.state.dataStartIndex||r!==t.state.dataEndIndex){var i=t.state.updateId;t.setState((function(){return VR({dataStartIndex:n,dataEndIndex:r},v({props:t.props,dataStartIndex:n,dataEndIndex:r,updateId:i},t.state))})),t.triggerSyncEvent({dataStartIndex:n,dataEndIndex:r})}})),UR(LR(t),"handleMouseEnter",(function(e){var n=t.props.onMouseEnter,r=t.getMouseInfo(e);if(r){var i=VR(VR({},r),{},{isTooltipActive:!0});t.setState(i),t.triggerSyncEvent(i),hi(n)&&n(i,e)}})),UR(LR(t),"triggeredAfterMouseMove",(function(e){var n=t.props.onMouseMove,r=t.getMouseInfo(e),i=r?VR(VR({},r),{},{isTooltipActive:!0}):{isTooltipActive:!1};t.setState(i),t.triggerSyncEvent(i),hi(n)&&n(i,e)})),UR(LR(t),"handleItemMouseEnter",(function(e){t.setState((function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}}))})),UR(LR(t),"handleItemMouseLeave",(function(){t.setState((function(){return{isTooltipActive:!1}}))})),UR(LR(t),"handleMouseMove",(function(e){e&&hi(e.persist)&&e.persist(),t.triggeredAfterMouseMove(e)})),UR(LR(t),"handleMouseLeave",(function(e){var n=t.props.onMouseLeave,r={isTooltipActive:!1};t.setState(r),t.triggerSyncEvent(r),hi(n)&&n(r,e),t.cancelThrottledTriggerAfterMouseMove()})),UR(LR(t),"handleOuterEvent",(function(e){var n=function(e){var t=e&&e.type;return t&&rc[t]?rc[t]:null}(e),r=ka(t.props,"".concat(n));n&&hi(r)&&r(/.*touch.*/i.test(n)?t.getMouseInfo(e.changedTouches[0]):t.getMouseInfo(e),e)})),UR(LR(t),"handleClick",(function(e){var n=t.props.onClick,r=t.getMouseInfo(e);if(r){var i=VR(VR({},r),{},{isTooltipActive:!0});t.setState(i),t.triggerSyncEvent(i),hi(n)&&n(i,e)}})),UR(LR(t),"handleMouseDown",(function(e){var n=t.props.onMouseDown;hi(n)&&n(t.getMouseInfo(e),e)})),UR(LR(t),"handleMouseUp",(function(e){var n=t.props.onMouseUp;hi(n)&&n(t.getMouseInfo(e),e)})),UR(LR(t),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseMove(e.changedTouches[0])})),UR(LR(t),"handleTouchStart",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseDown(e.changedTouches[0])})),UR(LR(t),"handleTouchEnd",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseUp(e.changedTouches[0])})),UR(LR(t),"verticalCoordinatesGenerator",(function(e){var t=e.xAxis,n=e.width,r=e.height,i=e.offset;return FC(HN(VR(VR(VR({},rI.defaultProps),t),{},{ticks:zC(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),i.left,i.left+i.width)})),UR(LR(t),"horizontalCoordinatesGenerator",(function(e){var t=e.yAxis,n=e.width,r=e.height,i=e.offset;return FC(HN(VR(VR(VR({},rI.defaultProps),t),{},{ticks:zC(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),i.top,i.top+i.height)})),UR(LR(t),"axesTicksGenerator",(function(e){return zC(e,!0)})),UR(LR(t),"renderCursor",(function(e){var r=t.state,o=r.isTooltipActive,a=r.activeCoordinate,c=r.activePayload,s=r.offset,l=r.activeTooltipIndex,f=t.getTooltipEventType();if(!e||!e.props.cursor||!o||!a||"ScatterChart"!==i&&"axis"!==f)return null;var p,h=t.props.layout,m=yP;if("ScatterChart"===i)p=a,m=nD;else if("BarChart"===i)p=t.getCursorRectangle(),m=CP;else if("radial"===h){var y=t.getCursorPoints(),v=y.cx,g=y.cy,b=y.radius;p={cx:v,cy:g,startAngle:y.startAngle,endAngle:y.endAngle,innerRadius:b,outerRadius:b},m=tP}else p={points:t.getCursorPoints()},m=yP;var x=e.key||"_recharts-cursor",w=VR(VR(VR(VR({stroke:"#ccc",pointerEvents:"none"},s),p),hc(e.props.cursor)),{},{payload:c,payloadIndex:l,key:x,className:"recharts-tooltip-cursor"});return u(e.props.cursor)?d(e.props.cursor,w):n(m,w)})),UR(LR(t),"renderPolarAxis",(function(e,n,r){var i=ka(e,"type.axisType"),o=ka(t.state,"".concat(i,"Map")),a=o&&o[e.props["".concat(i,"Id")]];return d(e,VR(VR({},a),{},{className:i,key:e.key||"".concat(n,"-").concat(r),ticks:zC(a,!0)}))})),UR(LR(t),"renderXAxis",(function(e,n,r){var i=t.state.xAxisMap[e.props.xAxisId];return t.renderAxis(i,e,n,r)})),UR(LR(t),"renderYAxis",(function(e,n,r){var i=t.state.yAxisMap[e.props.yAxisId];return t.renderAxis(i,e,n,r)})),UR(LR(t),"renderGrid",(function(e){var n=t.state,r=n.xAxisMap,i=n.yAxisMap,o=n.offset,a=t.props,c=a.width,s=a.height,l=Va(r),u=gR(i,(function(e){return FM(e.domain,YR)}))||Va(i),f=e.props||{};return d(e,{key:e.key||"grid",x:Fa(f.x)?f.x:o.left,y:Fa(f.y)?f.y:o.top,width:Fa(f.width)?f.width:o.width,height:Fa(f.height)?f.height:o.height,xAxis:l,yAxis:u,offset:o,chartWidth:c,chartHeight:s,verticalCoordinatesGenerator:f.verticalCoordinatesGenerator||t.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:f.horizontalCoordinatesGenerator||t.horizontalCoordinatesGenerator})})),UR(LR(t),"renderPolarGrid",(function(e){var n=e.props,r=n.radialLines,i=n.polarAngles,o=n.polarRadius,a=t.state,c=a.radiusAxisMap,s=a.angleAxisMap,l=Va(c),u=Va(s),f=u.cx,p=u.cy,h=u.innerRadius,m=u.outerRadius;return d(e,{polarAngles:yi(i)?i:zC(u,!0).map((function(e){return e.coordinate})),polarRadius:yi(o)?o:zC(l,!0).map((function(e){return e.coordinate})),cx:f,cy:p,innerRadius:h,outerRadius:m,key:e.key||"polar-grid",radialLines:r})})),UR(LR(t),"renderLegend",(function(){var e=t.state.formattedGraphicalItems,n=t.props,r=n.children,i=n.width,o=n.height,a=t.props.margin||{},c=i-(a.left||0)-(a.right||0),s=NC({children:r,formattedGraphicalItems:e,legendWidth:c,legendContent:p});if(!s)return null;var l=s.item,u=MR(s,CR);return d(l,VR(VR({},u),{},{chartWidth:i,chartHeight:o,margin:a,ref:function(e){t.legendInstance=e},onBBoxUpdate:t.handleLegendBBoxUpdate}))})),UR(LR(t),"renderTooltip",(function(){var e=lc(t.props.children,Ob);if(!e)return null;var n=t.state,r=n.isTooltipActive,i=n.activeCoordinate,o=n.activePayload,a=n.activeLabel,c=n.offset;return d(e,{viewBox:VR(VR({},c),{},{x:c.left,y:c.top}),active:r,label:a,payload:r?o:[],coordinate:i})})),UR(LR(t),"renderBrush",(function(e){var n=t.props,r=n.margin,i=n.data,o=t.state,a=o.offset,c=o.dataStartIndex,s=o.dataEndIndex,l=o.updateId;return d(e,{key:e.key||"_recharts-brush",onChange:BC(t.handleBrushChange,null,e.props.onChange),data:i,x:Fa(e.props.x)?e.props.x:a.left,y:Fa(e.props.y)?e.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:Fa(e.props.width)?e.props.width:a.width,startIndex:c,endIndex:s,updateId:"brush-".concat(l)})})),UR(LR(t),"renderReferenceElement",(function(e,n,r){if(!e)return null;var i=LR(t).clipPathId,o=t.state,a=o.xAxisMap,c=o.yAxisMap,s=o.offset,l=e.props,u=l.xAxisId,f=l.yAxisId;return d(e,{key:e.key||"".concat(n,"-").concat(r),xAxis:a[u],yAxis:c[f],viewBox:{x:s.left,y:s.top,width:s.width,height:s.height},clipPathId:i})})),UR(LR(t),"renderActivePoints",(function(e){var t=e.item,n=e.activePoint,r=e.basePoint,i=e.childIndex,o=e.isRange,a=[],c=t.props.key,s=t.item.props,l=s.activeDot,u=VR(VR({index:i,dataKey:s.dataKey,cx:n.x,cy:n.y,r:4,fill:MC(t.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value,key:"".concat(c,"-activePoint-").concat(i)},hc(l)),Ja(l));return a.push(f.renderActiveDot(l,u)),r?a.push(f.renderActiveDot(l,VR(VR({},u),{},{cx:r.x,cy:r.y,key:"".concat(c,"-basePoint-").concat(i)}))):o&&a.push(null),a})),UR(LR(t),"renderGraphicChild",(function(e,n,r){var i=t.filterFormatItem(e,n,r);if(!i)return null;var o=t.getTooltipEventType(),a=t.state,c=a.isTooltipActive,s=a.tooltipAxis,l=a.activeTooltipIndex,u=a.activeLabel,f=lc(t.props.children,Ob),p=i.props,h=p.points,m=p.isRange,y=p.baseLine,v=i.item.props,g=v.activeDot,b=!v.hide&&c&&f&&g&&l>=0,x={};"axis"!==o&&f&&"click"===f.props.trigger?x={onClick:BC(t.handleItemMouseEnter,null,e.props.onCLick)}:"axis"!==o&&(x={onMouseLeave:BC(t.handleItemMouseLeave,null,e.props.onMouseLeave),onMouseEnter:BC(t.handleItemMouseEnter,null,e.props.onMouseEnter)});var w=d(e,VR(VR({},i.props),x));if(b){var k,E;if(s.dataKey&&!s.allowDuplicatedCategory){var S="function"==typeof s.dataKey?function(e){return"function"==typeof s.dataKey?s.dataKey(e.payload):null}:"payload.".concat(s.dataKey.toString());k=Wa(h,S,u),E=m&&y&&Wa(y,S,u)}else k=h[l],E=m&&y&&y[l];if(!Sa(k))return[w].concat(zR(t.renderActivePoints({item:i,activePoint:k,basePoint:E,childIndex:l,isRange:m})))}return m?[w,null,null]:[w,null]})),UR(LR(t),"renderCustomized",(function(e,n,r){return d(e,VR(VR({key:"recharts-customized-".concat(r)},t.props),t.state))})),t.uniqueChartId=Sa(e.id)?qa("recharts"):e.id,t.clipPathId="".concat(t.uniqueChartId,"-clip"),e.throttleDelay&&(t.triggeredAfterMouseMove=Kb(t.triggeredAfterMouseMove,e.throttleDelay)),t.state={},t}return r=f,o=[{key:"componentDidMount",value:function(){Sa(this.props.syncId)||this.addListener()}},{key:"componentDidUpdate",value:function(e){Sa(e.syncId)&&!Sa(this.props.syncId)&&this.addListener(),!Sa(e.syncId)&&Sa(this.props.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){this.clearDeferId(),Sa(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=lc(this.props.children,Ob);if(e&&wR(e.props.shared)){var t=e.props.shared?"axis":"item";return l.indexOf(t)>=0?t:c}return c}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t=function(e){var t=e.ownerDocument.documentElement,n={top:0,left:0};return void 0!==e.getBoundingClientRect&&(n=e.getBoundingClientRect()),{top:n.top+window.pageYOffset-t.clientTop,left:n.left+window.pageXOffset-t.clientLeft}}(this.container),n=function(e,t){return{chartX:Math.round(e.pageX-t.left),chartY:Math.round(e.pageY-t.top)}}(e,t),r=this.inRange(n.chartX,n.chartY);if(!r)return null;var i=this.state,o=i.xAxisMap,a=i.yAxisMap;if("axis"!==this.getTooltipEventType()&&o&&a){var c=Va(o).scale,s=Va(a).scale,l=c&&c.invert?c.invert(n.chartX):null,u=s&&s.invert?s.invert(n.chartY):null;return VR(VR({},n),{},{xValue:l,yValue:u})}var f=eL(this.state,this.props.data,this.props.layout,r);return f?VR(VR({},n),f):null}},{key:"getCursorRectangle",value:function(){var e=this.props.layout,t=this.state,n=t.activeCoordinate,r=t.offset,i=t.tooltipAxisBandSize,o=i/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?n.x-o:r.left+.5,y:"horizontal"===e?r.top+.5:n.y-o,width:"horizontal"===e?i:r.width-1,height:"horizontal"===e?r.height-1:i}}},{key:"getCursorPoints",value:function(){var e,t,n,r,i=this.props.layout,o=this.state,a=o.activeCoordinate,c=o.offset;if("horizontal"===i)n=e=a.x,t=c.top,r=c.top+c.height;else if("vertical"===i)r=t=a.y,e=c.left,n=c.left+c.width;else if(!Sa(a.cx)||!Sa(a.cy)){if("centric"!==i){var s=a.cx,l=a.cy,u=a.radius,f=a.startAngle,p=a.endAngle;return{points:[dT(s,l,u,f),dT(s,l,u,p)],cx:s,cy:l,radius:u,startAngle:f,endAngle:p}}var d=a.cx,h=a.cy,m=a.innerRadius,y=a.outerRadius,v=a.angle,g=dT(d,h,m,v),b=dT(d,h,y,v);e=g.x,t=g.y,n=b.x,r=b.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 i=this.state,o=i.angleAxisMap,a=i.radiusAxisMap;if(o&&a){var c=Va(o);return gT({x:e,y:t},c)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=lc(e,Ob),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}),VR(VR({},Ja(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){OR.on(AR,this.handleReceiveSyncEvent),OR.setMaxListeners&&OR._maxListeners&&OR.setMaxListeners(OR._maxListeners+1)}},{key:"removeListener",value:function(){OR.removeListener(AR,this.handleReceiveSyncEvent),OR.setMaxListeners&&OR._maxListeners&&OR.setMaxListeners(OR._maxListeners-1)}},{key:"triggerSyncEvent",value:function(e){var t=this.props.syncId;Sa(t)||OR.emit(AR,t,this.uniqueChartId,e)}},{key:"applySyncEvent",value:function(e){var t=this.props,n=t.layout,r=t.syncMethod,i=this.state.updateId,o=e.dataStartIndex,a=e.dataEndIndex;if(Sa(e.dataStartIndex)&&Sa(e.dataEndIndex))if(Sa(e.activeTooltipIndex))this.setState(e);else{var c=e.chartX,s=e.chartY,l=e.activeTooltipIndex,u=this.state,f=u.offset,p=u.tooltipTicks;if(!f)return;if("function"==typeof r)l=r(p,e);else if("value"===r){l=-1;for(var d=0;d<p.length;d++)if(p[d].value===e.activeLabel){l=d;break}}var h=VR(VR({},f),{},{x:f.left,y:f.top}),m=Math.min(c,h.x+h.width),y=Math.min(s,h.y+h.height),g=p[l]&&p[l].value,b=QR(this.state,this.props.data,l),x=p[l]?{x:"horizontal"===n?p[l].coordinate:m,y:"horizontal"===n?y:p[l].coordinate}:GR;this.setState(VR(VR({},e),{},{activeLabel:g,activeCoordinate:x,activePayload:b,activeTooltipIndex:l}))}else this.setState(VR({dataStartIndex:o,dataEndIndex:a},v({props:this.props,dataStartIndex:o,dataEndIndex:a,updateId:i},this.state)))}},{key:"filterFormatItem",value:function(e,t,n){for(var r=this.state.formattedGraphicalItems,i=0,o=r.length;i<o;i++){var a=r[i];if(a.item===e||a.props.key===e.key||t===ic(a.item.type)&&n===a.childIndex)return a}return null}},{key:"renderAxis",value:function(t,n,r,i){var o=this.props,a=o.width,c=o.height;return e.createElement(rI,jR({},t,{className:"recharts-".concat(t.axisType," ").concat(t.axisType),key:n.key||"".concat(r,"-").concat(i),viewBox:{x:0,y:0,width:a,height:c},ticksGenerator:this.axesTicksGenerator}))}},{key:"renderClipPath",value:function(){var t=this.clipPathId,n=this.state.offset,r=n.left,i=n.top,o=n.height,a=n.width;return e.createElement("defs",null,e.createElement("clipPath",{id:t},e.createElement("rect",{x:r,y:i,height:o,width:a})))}},{key:"getXScales",value:function(){var e=this.state.xAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=DR(t,2),r=n[0],i=n[1];return VR(VR({},e),{},UR({},r,i.scale))}),{}):null}},{key:"getYScales",value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=DR(t,2),r=n[0],i=n[1];return VR(VR({},e),{},UR({},r,i.scale))}),{}):null}},{key:"getXScaleByAxisId",value:function(e){var t,n;return null===(t=this.state.xAxisMap)||void 0===t||null===(n=t[e])||void 0===n?void 0:n.scale}},{key:"getYScaleByAxisId",value:function(e){var t,n;return null===(t=this.state.yAxisMap)||void 0===t||null===(n=t[e])||void 0===n?void 0:n.scale}},{key:"getItemByXY",value:function(e){var t=this.state.formattedGraphicalItems;if(t&&t.length)for(var n=0,r=t.length;n<r;n++){var i=t[n],o=i.props,a=i.item,c=ic(a.type);if("Bar"===c){var s=(o.data||[]).find((function(t){return AP(e,t)}));if(s)return{graphicalItem:i,payload:s}}else if("RadialBar"===c){var l=(o.data||[]).find((function(t){return gT(e,t)}));if(l)return{graphicalItem:i,payload:l}}}return null}},{key:"render",value:function(){var t=this;if(!uc(this))return null;var n=this.props,r=n.children,i=n.className,o=n.width,a=n.height,c=n.style,s=n.compact,l=n.title,u=n.desc,f=MR(n,TR),p=hc(f),d={CartesianGrid:{handler:this.renderGrid,once:!0},ReferenceArea:{handler:this.renderReferenceElement},ReferenceLine:{handler:this.renderReferenceElement},ReferenceDot:{handler:this.renderReferenceElement},XAxis:{handler:this.renderXAxis},YAxis:{handler:this.renderYAxis},Brush:{handler:this.renderBrush,once:!0},Bar:{handler:this.renderGraphicChild},Line:{handler:this.renderGraphicChild},Area:{handler:this.renderGraphicChild},Radar:{handler:this.renderGraphicChild},RadialBar:{handler:this.renderGraphicChild},Scatter:{handler:this.renderGraphicChild},Pie:{handler:this.renderGraphicChild},Funnel:{handler:this.renderGraphicChild},Tooltip:{handler:this.renderCursor,once:!0},PolarGrid:{handler:this.renderPolarGrid,once:!0},PolarAngleAxis:{handler:this.renderPolarAxis},PolarRadiusAxis:{handler:this.renderPolarAxis},Customized:{handler:this.renderCustomized}};if(s)return e.createElement(wc,jR({},p,{width:o,height:a,title:l,desc:u}),this.renderClipPath(),vc(r,d));var h=this.parseEventsOfWrapper();return e.createElement("div",jR({className:$r("recharts-wrapper",i),style:VR({position:"relative",cursor:"default",width:o,height:a},c)},h,{ref:function(e){t.container=e},role:"region"}),e.createElement(wc,jR({},p,{width:o,height:a,title:l,desc:u}),this.renderClipPath(),vc(r,d)),this.renderLegend(),this.renderTooltip())}}],o&&NR(r.prototype,o),a&&NR(r,a),Object.defineProperty(r,"prototype",{writable:!1}),f}(),UR(r,"displayName",i),UR(r,"defaultProps",VR({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},m)),UR(r,"getDerivedStateFromProps",(function(e,t){var n=e.data,r=e.children,i=e.width,o=e.height,a=e.layout,c=e.stackOffset,s=e.margin;if(Sa(t.updateId)){var l=rL(e);return VR(VR(VR({},l),{},{updateId:0},v(VR(VR({props:e},l),{},{updateId:0}),t)),{},{prevData:n,prevWidth:i,prevHeight:o,prevLayout:a,prevStackOffset:c,prevMargin:s,prevChildren:r})}if(n!==t.prevData||i!==t.prevWidth||o!==t.prevHeight||a!==t.prevLayout||c!==t.prevStackOffset||!$a(s,t.prevMargin)){var u=rL(e),f={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},p=VR(VR({},eL(t,n,a)),{},{updateId:t.updateId+1}),d=VR(VR(VR({},u),f),p);return VR(VR(VR({},d),v(VR({props:e},d),t)),{},{prevData:n,prevWidth:i,prevHeight:o,prevLayout:a,prevStackOffset:c,prevMargin:s,prevChildren:r})}if(!mc(r,t.prevChildren)){var h=!Sa(n)?t.updateId:t.updateId+1;return VR(VR({updateId:h},v(VR(VR({props:e},t),{},{updateId:h}),t)),{},{prevChildren:r})}return null})),UR(r,"renderActiveDot",(function(t,n){var r;return r=u(t)?d(t,n):hi(t)?t(n):e.createElement(YP,n),e.createElement(_c,{className:"recharts-active-dot",key:n.key},r)})),r},cL=aL({chartName:"LineChart",GraphicalChild:jI,axisComponents:[{axisType:"xAxis",AxisComp:aR},{axisType:"yAxis",AxisComp:cR}],formatAxisMap:pN});aL({chartName:"BarChart",GraphicalChild:oN,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:aR},{axisType:"yAxis",AxisComp:cR}],formatAxisMap:pN}),aL({chartName:"PieChart",GraphicalChild:bj,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:ZD},{axisType:"radiusAxis",AxisComp:LD}],formatAxisMap:mT,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});var sL=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},lL=BM,uL=mo,fL=Object.prototype.hasOwnProperty;var pL=function(e,t,n){var r=e[t];fL.call(e,t)&&uL(r,n)&&(void 0!==n||t in e)||lL(e,t,n)},dL=pL,hL=BM;var mL=function(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var c=t[o],s=r?r(n[c],e[c],c,n,e):void 0;void 0===s&&(s=e[c]),i?hL(n,c,s):dL(n,c,s)}return n},yL=mL,vL=dl;var gL=function(e,t){return e&&yL(t,vL(t),e)};var bL=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},xL=Gr,wL=el,kL=bL,EL=Object.prototype.hasOwnProperty;var SL=function(e){if(!xL(e))return kL(e);var t=wL(e),n=[];for(var r in e)("constructor"!=r||!t&&EL.call(e,r))&&n.push(r);return n},_L=Js,OL=SL,AL=ll;var CL=function(e){return AL(e)?_L(e,!0):OL(e)},TL=mL,PL=CL;var DL=function(e,t){return e&&TL(t,PL(t),e)},jL={exports:{}};!function(e,t){var n=Jr,r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r?n.Buffer:void 0,a=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=a?a(n):new e.constructor(n);return e.copy(r),r}}(jL,jL.exports);var ML=jL.exports;var NL=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},IL=mL,RL=vs;var LL=function(e,t){return IL(e,RL(e),t)},FL=as,zL=KD,BL=vs,qL=fs,HL=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)FL(t,BL(e)),e=zL(e);return t}:qL,VL=mL,UL=HL;var WL=function(e,t){return VL(e,UL(e),t)},$L=ls,GL=HL,YL=CL;var XL=function(e){return $L(e,YL,GL)},ZL=Object.prototype.hasOwnProperty;var KL=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ZL.call(e,"index")&&(n.index=e.index,n.input=e.input),n},JL=Xc;var QL=function(e){var t=new e.constructor(e.byteLength);return new JL(t).set(new JL(e)),t},eF=QL;var tF=function(e,t){var n=t?eF(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},nF=/\w*$/;var rF=function(e){var t=new e.constructor(e.source,nF.exec(e));return t.lastIndex=e.lastIndex,t},iF=Qr?Qr.prototype:void 0,oF=iF?iF.valueOf:void 0;var aF=QL;var cF=QL,sF=tF,lF=rF,uF=function(e){return oF?Object(oF.call(e)):{}},fF=function(e,t){var n=t?aF(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var pF=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return cF(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return sF(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return fF(e,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return lF(e);case"[object Symbol]":return uF(e)}},dF=Gr,hF=Object.create,mF=function(){function e(){}return function(t){if(!dF(t))return{};if(hF)return hF(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),yF=mF,vF=KD,gF=el;var bF=function(e){return"function"!=typeof e.constructor||gF(e)?{}:yF(vF(e))},xF=Hl,wF=vi;var kF=function(e){return wF(e)&&"[object Map]"==xF(e)},EF=Fs,SF=Bs&&Bs.isMap,_F=SF?EF(SF):kF,OF=Hl,AF=vi;var CF=function(e){return AF(e)&&"[object Set]"==OF(e)},TF=Fs,PF=Bs&&Bs.isSet,DF=PF?TF(PF):CF,jF=Lc,MF=sL,NF=pL,IF=gL,RF=DL,LF=ML,FF=NL,zF=LL,BF=WL,qF=vl,HF=XL,VF=Hl,UF=KL,WF=pF,$F=bF,GF=mi,YF=Ts,XF=_F,ZF=Gr,KF=DF,JF=dl,QF=CL,ez="[object Arguments]",tz="[object Function]",nz="[object Object]",rz={};rz[ez]=rz["[object Array]"]=rz["[object ArrayBuffer]"]=rz["[object DataView]"]=rz["[object Boolean]"]=rz["[object Date]"]=rz["[object Float32Array]"]=rz["[object Float64Array]"]=rz["[object Int8Array]"]=rz["[object Int16Array]"]=rz["[object Int32Array]"]=rz["[object Map]"]=rz["[object Number]"]=rz[nz]=rz["[object RegExp]"]=rz["[object Set]"]=rz["[object String]"]=rz["[object Symbol]"]=rz["[object Uint8Array]"]=rz["[object Uint8ClampedArray]"]=rz["[object Uint16Array]"]=rz["[object Uint32Array]"]=!0,rz["[object Error]"]=rz[tz]=rz["[object WeakMap]"]=!1;var iz=function e(t,n,r,i,o,a){var c,s=1&n,l=2&n,u=4&n;if(r&&(c=o?r(t,i,o,a):r(t)),void 0!==c)return c;if(!ZF(t))return t;var f=GF(t);if(f){if(c=UF(t),!s)return FF(t,c)}else{var p=VF(t),d=p==tz||"[object GeneratorFunction]"==p;if(YF(t))return LF(t,s);if(p==nz||p==ez||d&&!o){if(c=l||d?{}:$F(t),!s)return l?BF(t,RF(c,t)):zF(t,IF(c,t))}else{if(!rz[p])return o?t:{};c=WF(t,p,s)}}a||(a=new jF);var h=a.get(t);if(h)return h;a.set(t,c),KF(t)?t.forEach((function(i){c.add(e(i,n,r,i,t,a))})):XF(t)&&t.forEach((function(i,o){c.set(o,e(i,n,r,o,t,a))}));var m=f?void 0:(u?l?HF:qF:l?QF:JF)(t);return MF(m||t,(function(i,o){m&&(i=t[o=i]),NF(c,o,e(i,n,r,o,t,a))})),c},oz=ba,az=wf;var cz=function(e,t){return t.length<2?e:oz(e,az(t,0,-1))},sz=ha,lz=MT,uz=cz,fz=ya;var pz=function(e,t){return t=sz(t,e),null==(e=uz(e,t))||delete e[fz(lz(t))]},dz=aj;var hz=ng;var mz=function(e){return(null==e?0:e.length)?hz(e,1):[]},yz=mz,vz=Tg,gz=Bg;var bz=function(e){return gz(vz(e,void 0,yz),e+"")},xz=ta,wz=iz,kz=pz,Ez=ha,Sz=mL,_z=function(e){return dz(e)?void 0:e},Oz=XL,Az=bz((function(e,t){var n={};if(null==e)return n;var r=!1;t=xz(t,(function(t){return t=Ez(t,e),r||(r=t.length>1),t})),Sz(e,Oz(e),n),r&&(n=wz(n,7,_z));for(var i=t.length;i--;)kz(n,t[i]);return n})),Cz=_(Az),Tz=["#1890FF","#66B5FF","#41D9C7","#2FC25B","#6EDB8F","#9AE65C","#FACC14","#E6965C","#57AD71","#223273","#738AE6","#7564CC","#8543E0","#A877ED","#5C8EE6","#13C2C2","#70E0E0","#5CA3E6","#3436C7","#8082FF","#DD81E6","#F04864","#FA7D92","#D598D9"],Pz=["width","height","className","style","children","type"];function Dz(e){return Dz="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},Dz(e)}function jz(){return jz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jz.apply(this,arguments)}function Mz(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Nz(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Hz(r.key),r)}}function Iz(e,t){return Iz=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Iz(e,t)}function Rz(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Fz(e);if(t){var i=Fz(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Dz(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Lz(e)}(this,n)}}function Lz(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fz(e){return Fz=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Fz(e)}function zz(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 Bz(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zz(Object(n),!0).forEach((function(t){qz(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zz(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qz(e,t,n){return(t=Hz(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hz(e){var t=function(e,t){if("object"!==Dz(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Dz(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Dz(t)?t:String(t)}var Vz="value",Uz=function e(t){var n,r,i=t.depth,o=t.node,a=t.index,c=t.valueKey,s=o.children,l=i+1,u=s&&s.length?s.map((function(t,n){return e({depth:l,node:t,index:n,valueKey:c})})):null;return r=s&&s.length?u.reduce((function(e,t){return e+t[Vz]}),0):Ia(o[c])||o[c]<=0?0:o[c],Bz(Bz({},o),{},(qz(n={children:u},Vz,r),qz(n,"depth",i),qz(n,"index",a),n))},Wz=function(e,t,n){var r=t*t,i=e.area*e.area,o=e.reduce((function(e,t){return{min:Math.min(e.min,t.area),max:Math.max(e.max,t.area)}}),{min:1/0,max:0}),a=o.min,c=o.max;return i?Math.max(r*c*n/i,i/(r*a*n)):1/0},$z=function(e,t,n,r){return t===n.width?function(e,t,n,r){var i=t?Math.round(e.area/t):0;(r||i>n.height)&&(i=n.height);for(var o,a=n.x,c=0,s=e.length;c<s;c++)(o=e[c]).x=a,o.y=n.y,o.height=i,o.width=Math.min(i?Math.round(o.area/i):0,n.x+n.width-a),a+=o.width;return o.width+=n.x+n.width-a,Bz(Bz({},n),{},{y:n.y+i,height:n.height-i})}(e,t,n,r):function(e,t,n,r){var i=t?Math.round(e.area/t):0;(r||i>n.width)&&(i=n.width);for(var o,a=n.y,c=0,s=e.length;c<s;c++)(o=e[c]).x=n.x,o.y=a,o.width=i,o.height=Math.min(i?Math.round(o.area/i):0,n.y+n.height-a),a+=o.height;return o&&(o.height+=n.y+n.height-a),Bz(Bz({},n),{},{x:n.x+i,width:n.width-i})}(e,t,n,r)},Gz=function e(t,n){var r=t.children;if(r&&r.length){var i,o,a=function(e){return{x:e.x,y:e.y,width:e.width,height:e.height}}(t),c=[],s=1/0,l=Math.min(a.width,a.height),u=function(e,t){var n=t<0?0:t;return e.map((function(e){var t=e[Vz]*n;return Bz(Bz({},e),{},{area:Ia(t)||t<=0?0:t})}))}(r,a.width*a.height/t[Vz]),f=u.slice();for(c.area=0;f.length>0;)c.push(i=f[0]),c.area+=i.area,(o=Wz(c,l,n))<=s?(f.shift(),s=o):(c.area-=c.pop().area,a=$z(c,l,a,!1),l=Math.min(a.width,a.height),c.length=c.area=0,s=1/0);return c.length&&(a=$z(c,l,a,!0),c.length=c.area=0),Bz(Bz({},t),{},{children:u.map((function(t){return e(t,n)}))})}return t},Yz={isTooltipActive:!1,isAnimationFinished:!1,activeNode:null,formatRoot:null,currentRoot:null,nestIndex:[]},Xz=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Iz(e,t)}(a,p);var n,r,i,o=Rz(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return qz(Lz(e=o.call.apply(o,[this].concat(n))),"state",Bz({},Yz)),qz(Lz(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),hi(t)&&t()})),qz(Lz(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),hi(t)&&t()})),e}return n=a,r=[{key:"handleMouseEnter",value:function(e,t){var n=this.props,r=n.onMouseEnter;lc(n.children,Ob)?this.setState({isTooltipActive:!0,activeNode:e},(function(){r&&r(e,t)})):r&&r(e,t)}},{key:"handleMouseLeave",value:function(e,t){var n=this.props,r=n.onMouseLeave;lc(n.children,Ob)?this.setState({isTooltipActive:!1,activeNode:null},(function(){r&&r(e,t)})):r&&r(e,t)}},{key:"handleClick",value:function(e){var t=this.props,n=t.onClick;if("nest"===t.type&&e.children){var r=this.props,i=r.width,o=r.height,a=r.dataKey,c=r.aspectRatio,s=Uz({depth:0,node:Bz(Bz({},e),{},{x:0,y:0,width:i,height:o}),index:0,valueKey:a}),l=Gz(s,c),u=this.state.nestIndex;u.push(e),this.setState({formatRoot:l,currentRoot:s,nestIndex:u})}n&&n(e)}},{key:"handleNestIndex",value:function(e,t){var n=this.state.nestIndex,r=this.props,i=r.width,o=r.height,a=r.dataKey,c=r.aspectRatio,s=Uz({depth:0,node:Bz(Bz({},e),{},{x:0,y:0,width:i,height:o}),index:0,valueKey:a}),l=Gz(s,c);n=n.slice(0,t+1),this.setState({formatRoot:l,currentRoot:e,nestIndex:n})}},{key:"renderItem",value:function(t,n,r){var i=this,o=this.props,a=o.isAnimationActive,c=o.animationBegin,s=o.animationDuration,l=o.animationEasing,u=o.isUpdateAnimationActive,f=o.type,p=o.animationId,d=o.colorPanel,h=this.state.isAnimationFinished,m=n.width,y=n.height,v=n.x,g=n.y,b=n.depth,x=parseInt("".concat((2*Math.random()-1)*m),10),w={};return(r||"nest"===f)&&(w={onMouseEnter:this.handleMouseEnter.bind(this,n),onMouseLeave:this.handleMouseLeave.bind(this,n),onClick:this.handleClick.bind(this,n)}),a?e.createElement(Zv,{begin:c,duration:s,isActive:a,easing:l,key:"treemap-".concat(p),from:{x:v,y:g,width:m,height:y},to:{x:v,y:g,width:m,height:y},onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(r){var o=r.x,p=r.y,m=r.width,y=r.height;return e.createElement(Zv,{from:"translate(".concat(x,"px, ").concat(x,"px)"),to:"translate(0, 0)",attributeName:"transform",begin:c,easing:l,isActive:a,duration:s},e.createElement(_c,w,b>2&&!h?null:i.constructor.renderContentItem(t,Bz(Bz({},n),{},{isAnimationActive:a,isUpdateAnimationActive:!u,width:m,height:y,x:o,y:p}),f,d)))})):e.createElement(_c,w,this.constructor.renderContentItem(t,Bz(Bz({},n),{},{isAnimationActive:!1,isUpdateAnimationActive:!1,width:m,height:y,x:v,y:g}),f,d))}},{key:"renderNode",value:function(t,n,r){var i=this,o=this.props,a=o.content,c=o.type,s=Bz(Bz(Bz({},hc(this.props)),n),{},{root:t}),l=!n.children||!n.children.length;return!(this.state.currentRoot.children||[]).filter((function(e){return e.depth===n.depth&&e.name===n.name})).length&&t.depth&&"nest"===c?null:e.createElement(_c,{key:"recharts-treemap-node-".concat(r),className:"recharts-treemap-depth-".concat(n.depth)},this.renderItem(a,s,l),n.children&&n.children.length?n.children.map((function(e,t){return i.renderNode(n,e,t)})):null)}},{key:"renderAllNodes",value:function(){var e=this.state.formatRoot;return e?this.renderNode(e,e,0):null}},{key:"renderTooltip",value:function(){var t=this.props,n=t.children,r=t.nameKey,i=lc(n,Ob);if(!i)return null;var o=this.props,a=o.width,c=o.height,s=this.state,l=s.isTooltipActive,u=s.activeNode,f={x:0,y:0,width:a,height:c},p=u?{x:u.x+u.width/2,y:u.y+u.height/2}:null,d=l&&u?[{payload:u,name:DC(u,r,""),value:DC(u,Vz)}]:[];return e.cloneElement(i,{viewBox:f,active:l,coordinate:p,label:"",payload:d})}},{key:"renderNestIndex",value:function(){var t=this,n=this.props,r=n.nameKey,i=n.nestIndexContent,o=this.state.nestIndex;return e.createElement("div",{className:"recharts-treemap-nest-index-wrapper",style:{marginTop:"8px",textAlign:"center"}},o.map((function(n,o){var a=ka(n,r,"root"),c=null;return e.isValidElement(i)&&(c=e.cloneElement(i,n,o)),c=hi(i)?i(n,o):a,e.createElement("div",{onClick:t.handleNestIndex.bind(t,n,o),key:"nest-index-".concat(qa()),className:"recharts-treemap-nest-index-box",style:{cursor:"pointer",display:"inline-block",padding:"0 7px",background:"#000",color:"#fff",marginRight:"3px"}},c)})))}},{key:"render",value:function(){if(!uc(this))return null;var t=this.props,n=t.width,r=t.height,i=t.className,o=t.style,a=t.children,c=t.type,s=Mz(t,Pz),l=hc(s);return e.createElement("div",{className:$r("recharts-wrapper",i),style:Bz(Bz({},o),{},{position:"relative",cursor:"default",width:n,height:r}),role:"region"},e.createElement(wc,jz({},l,{width:n,height:"nest"===c?r-30:r}),this.renderAllNodes(),dc(a)),this.renderTooltip(),"nest"===c&&this.renderNestIndex())}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){if(e.data!==t.prevData||e.type!==t.prevType||e.width!==t.prevWidth||e.height!==t.prevHeight||e.dataKey!==t.prevDataKey||e.aspectRatio!==t.prevAspectRatio){var n=Uz({depth:0,node:{children:e.data,x:0,y:0,width:e.width,height:e.height},index:0,valueKey:e.dataKey}),r=Gz(n,e.aspectRatio);return Bz(Bz({},t),{},{formatRoot:r,currentRoot:n,nestIndex:[n],prevAspectRatio:e.aspectRatio,prevData:e.data,prevWidth:e.width,prevHeight:e.height,prevDataKey:e.dataKey,prevType:e.type})}return null}},{key:"renderContentItem",value:function(t,n,r,i){if(e.isValidElement(t))return e.cloneElement(t,n);if(hi(t))return t(n);var o=n.x,a=n.y,c=n.width,s=n.height,l=n.index,u=null;c>10&&s>10&&n.children&&"nest"===r&&(u=e.createElement(qP,{points:[{x:o+2,y:a+s/2},{x:o+6,y:a+s/2+3},{x:o+2,y:a+s/2+6}]}));var f=null,p=nw(n.name);c>20&&s>20&&p.width<c&&p.height<s&&(f=e.createElement("text",{x:o+8,y:a+s/2+7,fontSize:14},n.name));var d=i||Tz;return e.createElement("g",null,e.createElement(CP,jz({fill:n.depth<2?d[l%d.length]:"rgba(255,255,255,0)",stroke:"#fff"},Cz(n,"children"),{role:"img"})),u,f)}}],r&&Nz(n.prototype,r),i&&Nz(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();qz(Xz,"displayName","Treemap"),qz(Xz,"defaultProps",{aspectRatio:.5*(1+Math.sqrt(5)),dataKey:"value",type:"flat",isAnimationActive:!db.isSsr,isUpdateAnimationActive:!db.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"linear"});var Zz=function(e,t){for(var n,r=-1,i=e.length;++r<i;){var o=t(e[r]);void 0!==o&&(n=void 0===n?o:n+o)}return n},Kz=Zu,Jz=Zz;var Qz=function(e,t){return e&&e.length?Jz(e,Kz(t)):0},eB=_(Qz),tB=["width","height","className","style","children"],nB=["sourceX","sourceY","sourceControlX","targetX","targetY","targetControlX","linkWidth"];function rB(e){return rB="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},rB(e)}function iB(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function oB(){return oB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oB.apply(this,arguments)}function aB(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hB(r.key),r)}}function cB(e,t){return cB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},cB(e,t)}function sB(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=uB(e);if(t){var i=uB(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===rB(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return lB(e)}(this,n)}}function lB(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uB(e){return uB=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},uB(e)}function fB(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 pB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fB(Object(n),!0).forEach((function(t){dB(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dB(e,t,n){return(t=hB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hB(e){var t=function(e,t){if("object"!==rB(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==rB(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===rB(t)?t:String(t)}var mB={x:0,y:0},yB=function(e){return e.y+e.dy/2},vB=function(e){return e&&e.value||0},gB=function(e,t){return t.reduce((function(t,n){return t+vB(e[n])}),0)},bB=function(e,t,n){return n.reduce((function(n,r){var i=t[r],o=e[i.source];return n+yB(o)*vB(t[r])}),0)},xB=function(e,t,n){return n.reduce((function(n,r){var i=t[r],o=e[i.target];return n+yB(o)*vB(t[r])}),0)},wB=function(e,t){return e.y-t.y},kB=function e(t,n){for(var r=n.targetNodes,i=0,o=r.length;i<o;i++){var a=t[r[i]];a&&(a.depth=Math.max(n.depth+1,a.depth),e(t,a))}},EB=function(e,t,n){for(var r=0,i=e.length;r<i;r++){var o=e[r],a=o.length;o.sort(wB);for(var c=0,s=0;s<a;s++){var l=o[s],u=c-l.y;u>0&&(l.y+=u),c=l.y+l.dy+n}c=t+n;for(var f=a-1;f>=0;f--){var p=o[f],d=p.y+p.dy+n-c;if(!(d>0))break;p.y-=d,c=p.y}}},SB=function(e,t,n,r){for(var i=0,o=t.length;i<o;i++)for(var a=t[i],c=0,s=a.length;c<s;c++){var l=a[c];if(l.sourceLinks.length){var u=gB(n,l.sourceLinks),f=bB(e,n,l.sourceLinks)/u;l.y+=(f-yB(l))*r}}},_B=function(e,t,n,r){for(var i=t.length-1;i>=0;i--)for(var o=t[i],a=0,c=o.length;a<c;a++){var s=o[a];if(s.targetLinks.length){var l=gB(n,s.targetLinks),u=xB(e,n,s.targetLinks)/l;s.y+=(u-yB(s))*r}}},OB=function(e){var t=e.data,n=e.width,r=e.height,i=e.iterations,o=e.nodeWidth,a=e.nodePadding,c=t.links,s=function(e,t,n){for(var r=e.nodes,i=e.links,o=r.map((function(e,t){var n=function(e,t){for(var n=[],r=[],i=[],o=[],a=0,c=e.length;a<c;a++){var s=e[a];s.source===t&&(i.push(s.target),o.push(a)),s.target===t&&(n.push(s.source),r.push(a))}return{sourceNodes:n,sourceLinks:r,targetLinks:o,targetNodes:i}}(i,t);return pB(pB(pB({},e),n),{},{value:Math.max(gB(i,n.sourceLinks),gB(i,n.targetLinks)),depth:0})})),a=0,c=o.length;a<c;a++){var s=o[a];s.sourceNodes.length||kB(o,s)}var l=ED(o,(function(e){return e.depth})).depth;if(l>=1)for(var u=(t-n)/l,f=0,p=o.length;f<p;f++){var d=o[f];d.targetNodes.length||(d.depth=l),d.x=d.depth*u,d.dx=n}return{tree:o,maxDepth:l}}(t,n,o),l=s.tree,u=function(e){for(var t=[],n=0,r=e.length;n<r;n++){var i=e[n];t[i.depth]||(t[i.depth]=[]),t[i.depth].push(i)}return t}(l),f=function(e,t,n,r){for(var i=Fw(e.map((function(e){return(t-(e.length-1)*n)/eB(e,vB)}))),o=0,a=e.length;o<a;o++)for(var c=0,s=e[o].length;c<s;c++){var l=e[o][c];l.y=c,l.dy=l.value*i}return r.map((function(e){return pB(pB({},e),{},{dy:vB(e)*i})}))}(u,r,a,c);EB(u,r,a);for(var p=1,d=1;d<=i;d++)_B(l,u,f,p*=.99),EB(u,r,a),SB(l,u,f,p),EB(u,r,a);return function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n],o=0,a=0;i.targetLinks.sort((function(n,r){return e[t[n].target].y-e[t[r].target].y})),i.sourceLinks.sort((function(n,r){return e[t[n].source].y-e[t[r].source].y}));for(var c=0,s=i.targetLinks.length;c<s;c++){var l=t[i.targetLinks[c]];l&&(l.sy=o,o+=l.dy)}for(var u=0,f=i.sourceLinks.length;u<f;u++){var p=t[i.sourceLinks[u]];p&&(p.ty=a,a+=p.dy)}}}(l,f),{nodes:l,links:f}},AB=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cB(e,t)}(a,p);var n,r,i,o=sB(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return dB(lB(e=o.call.apply(o,[this].concat(n))),"state",{activeElement:null,activeElementType:null,isTooltipActive:!1,nodes:[],links:[]}),e}return n=a,r=[{key:"handleMouseEnter",value:function(e,t,n){var r=this.props,i=r.onMouseEnter,o=lc(r.children,Ob);o?this.setState((function(n){return"hover"===o.props.trigger?pB(pB({},n),{},{activeElement:e,activeElementType:t,isTooltipActive:!0}):n}),(function(){i&&i(e,t,n)})):i&&i(e,t,n)}},{key:"handleMouseLeave",value:function(e,t,n){var r=this.props,i=r.onMouseLeave,o=lc(r.children,Ob);o?this.setState((function(e){return"hover"===o.props.trigger?pB(pB({},e),{},{activeElement:void 0,activeElementType:void 0,isTooltipActive:!1}):e}),(function(){i&&i(e,t,n)})):i&&i(e,t,n)}},{key:"handleClick",value:function(e,t,n){var r=this.props,i=r.onClick,o=lc(r.children,Ob);o&&"click"===o.props.trigger&&(this.state.isTooltipActive?this.setState((function(e){return pB(pB({},e),{},{activeElement:void 0,activeElementType:void 0,isTooltipActive:!1})})):this.setState((function(n){return pB(pB({},n),{},{activeElement:e,activeElementType:t,isTooltipActive:!0})}))),i&&i(e,t,n)}},{key:"renderLinks",value:function(t,n){var r=this,i=this.props,o=i.linkCurvature,a=i.link,c=i.margin,s=ka(c,"top")||0,l=ka(c,"left")||0;return e.createElement(_c,{className:"recharts-sankey-links",key:"recharts-sankey-links"},t.map((function(t,i){var c=t.sy,u=t.ty,f=t.dy,p=n[t.source],d=n[t.target],h=p.x+p.dx+l,m=d.x+l,y=function(e,t){var n=+e,r=t-n;return function(e){return n+r*e}}(h,m),v=y(o),g=y(1-o),b=pB({sourceX:h,targetX:m,sourceY:p.y+c+f/2+s,targetY:d.y+u+f/2+s,sourceControlX:v,targetControlX:g,sourceRelativeY:c,targetRelativeY:u,linkWidth:f,index:i,payload:pB(pB({},t),{},{source:p,target:d})},hc(a)),x={onMouseEnter:r.handleMouseEnter.bind(r,b,"link"),onMouseLeave:r.handleMouseLeave.bind(r,b,"link"),onClick:r.handleClick.bind(r,b,"link")};return e.createElement(_c,oB({key:"link".concat(i)},x),r.constructor.renderLinkItem(a,b))})))}},{key:"renderNodes",value:function(t){var n=this,r=this.props,i=r.node,o=r.margin,a=ka(o,"top")||0,c=ka(o,"left")||0;return e.createElement(_c,{className:"recharts-sankey-nodes",key:"recharts-sankey-nodes"},t.map((function(t,r){var o=t.x,s=t.y,l=t.dx,u=t.dy,f=pB(pB({},hc(i)),{},{x:o+c,y:s+a,width:l,height:u,index:r,payload:t}),p={onMouseEnter:n.handleMouseEnter.bind(n,f,"node"),onMouseLeave:n.handleMouseLeave.bind(n,f,"node"),onClick:n.handleClick.bind(n,f,"node")};return e.createElement(_c,oB({key:"node".concat(r)},p),n.constructor.renderNodeItem(i,f))})))}},{key:"renderTooltip",value:function(){var t=this.props,n=t.children,r=t.width,i=t.height,o=t.nameKey,a=lc(n,Ob);if(!a)return null;var c=this.state,s=c.isTooltipActive,l=c.activeElement,u=c.activeElementType,f={x:0,y:0,width:r,height:i},p=l?function(e,t){return"node"===t?{x:e.x+e.width/2,y:e.y+e.height/2}:{x:(e.sourceX+e.targetX)/2,y:(e.sourceY+e.targetY)/2}}(l,u):mB,d=l?function(e,t,n){var r=e.payload;if("node"===t)return[{payload:e,name:DC(r,n,""),value:DC(r,"value")}];if(r.source&&r.target){var i=DC(r.source,n,""),o=DC(r.target,n,"");return[{payload:e,name:"".concat(i," - ").concat(o),value:DC(r,"value")}]}return[]}(l,u,o):[];return e.cloneElement(a,{viewBox:f,active:s,coordinate:p,label:"",payload:d})}},{key:"render",value:function(){if(!uc(this))return null;var t=this.props,n=t.width,r=t.height,i=t.className,o=t.style,a=t.children,c=iB(t,tB),s=this.state,l=s.links,u=s.nodes,f=hc(c);return e.createElement("div",{className:$r("recharts-wrapper",i),style:pB(pB({},o),{},{position:"relative",cursor:"default",width:n,height:r}),role:"region"},e.createElement(wc,oB({},f,{width:n,height:r}),dc(a),this.renderLinks(l,u),this.renderNodes(u)),this.renderTooltip())}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=e.width,i=e.height,o=e.margin,a=e.iterations,c=e.nodeWidth,s=e.nodePadding;if(n!==t.prevData||r!==t.prevWidth||i!==t.prevHeight||!$a(o,t.prevMargin)||a!==t.prevIterations||c!==t.prevNodeWidth||s!==t.prevNodePadding){var l=r-(o&&o.left||0)-(o&&o.right||0),u=i-(o&&o.top||0)-(o&&o.bottom||0),f=OB({data:n,width:l,height:u,iterations:a,nodeWidth:c,nodePadding:s}),p=f.links,d=f.nodes;return pB(pB({},t),{},{nodes:d,links:p,prevData:n,prevWidth:a,prevHeight:i,prevMargin:o,prevNodePadding:s,prevNodeWidth:c,prevIterations:a})}return null}},{key:"renderLinkItem",value:function(t,n){if(e.isValidElement(t))return e.cloneElement(t,n);if(hi(t))return t(n);var r=n.sourceX,i=n.sourceY,o=n.sourceControlX,a=n.targetX,c=n.targetY,s=n.targetControlX,l=n.linkWidth,u=iB(n,nB);return e.createElement("path",oB({className:"recharts-sankey-link",d:"\n M".concat(r,",").concat(i,"\n C").concat(o,",").concat(i," ").concat(s,",").concat(c," ").concat(a,",").concat(c,"\n "),fill:"none",stroke:"#333",strokeWidth:l,strokeOpacity:"0.2"},hc(u)))}},{key:"renderNodeItem",value:function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):hi(t)?t(n):e.createElement(CP,oB({className:"recharts-sankey-node",fill:"#0088fe",fillOpacity:"0.8"},hc(n),{role:"img"}))}}],r&&aB(n.prototype,r),i&&aB(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function CB(e){return CB="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},CB(e)}function TB(){return TB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},TB.apply(this,arguments)}function PB(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,RB(r.key),r)}}function DB(e,t){return DB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},DB(e,t)}function jB(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=NB(e);if(t){var i=NB(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===CB(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return MB(e)}(this,n)}}function MB(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function NB(e){return NB=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},NB(e)}function IB(e,t,n){return(t=RB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RB(e){var t=function(e,t){if("object"!==CB(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==CB(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===CB(t)?t:String(t)}dB(AB,"displayName","Sankey"),dB(AB,"defaultProps",{nameKey:"name",dataKey:"value",nodePadding:10,nodeWidth:10,linkCurvature:.5,iterations:32,margin:{top:5,right:5,bottom:5,left:5}}),aL({chartName:"RadarChart",GraphicalChild:Mj,axisComponents:[{axisType:"angleAxis",AxisComp:ZD},{axisType:"radiusAxis",AxisComp:LD}],formatAxisMap:mT,defaultProps:{layout:"centric",startAngle:90,endAngle:-270,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),aL({chartName:"ScatterChart",GraphicalChild:oR,defaultTooltipEventType:"item",validateTooltipEventTypes:["item"],axisComponents:[{axisType:"xAxis",AxisComp:aR},{axisType:"yAxis",AxisComp:cR},{axisType:"zAxis",AxisComp:GI}],formatAxisMap:pN}),aL({chartName:"AreaChart",GraphicalChild:$I,axisComponents:[{axisType:"xAxis",AxisComp:aR},{axisType:"yAxis",AxisComp:cR}],formatAxisMap:pN}),aL({chartName:"RadialBarChart",GraphicalChild:Gj,legendContent:"children",defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"angleAxis",AxisComp:ZD},{axisType:"radiusAxis",AxisComp:LD}],formatAxisMap:mT,defaultProps:{layout:"radial",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),aL({chartName:"ComposedChart",GraphicalChild:[jI,$I,oN,oR],axisComponents:[{axisType:"xAxis",AxisComp:aR},{axisType:"yAxis",AxisComp:cR},{axisType:"zAxis",AxisComp:GI}],formatAxisMap:pN});var LB=function(e,t,n,r,i){var o,a=n-r;return o="M ".concat(e,",").concat(t),o+="L ".concat(e+n,",").concat(t),o+="L ".concat(e+n-a/2,",").concat(t+i),o+="L ".concat(e+n-a/2-r,",").concat(t+i),o+="L ".concat(e,",").concat(t," Z")},FB=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&DB(e,t)}(a,p);var n,r,i,o=jB(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return IB(MB(e=o.call.apply(o,[this].concat(n))),"state",{totalLength:-1}),e}return n=a,r=[{key:"componentDidMount",value:function(){if(this.node&&this.node.getTotalLength)try{var e=this.node.getTotalLength();e&&this.setState({totalLength:e})}catch(e){}}},{key:"render",value:function(){var t=this,n=this.props,r=n.x,i=n.y,o=n.upperWidth,a=n.lowerWidth,c=n.height,s=n.className,l=this.state.totalLength,u=this.props,f=u.animationEasing,p=u.animationDuration,d=u.animationBegin,h=u.isUpdateAnimationActive;if(r!==+r||i!==+i||o!==+o||a!==+a||c!==+c||0===o&&0===a||0===c)return null;var m=$r("recharts-trapezoid",s);return h?e.createElement(Zv,{canBegin:l>0,from:{upperWidth:0,lowerWidth:0,height:c,x:r,y:i},to:{upperWidth:o,lowerWidth:a,height:c,x:r,y:i},duration:p,animationEasing:f,isActive:h},(function(n){var r=n.upperWidth,i=n.lowerWidth,o=n.height,a=n.x,c=n.y;return e.createElement(Zv,{canBegin:l>0,from:"0px ".concat(-1===l?1:l,"px"),to:"".concat(l,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:p,easing:f},e.createElement("path",TB({},hc(t.props,!0),{className:m,d:LB(a,c,r,i,o),ref:function(e){t.node=e}})))})):e.createElement("g",null,e.createElement("path",TB({},hc(this.props,!0),{className:m,d:LB(r,i,o,a,c)})))}}],r&&PB(n.prototype,r),i&&PB(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function zB(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,c=[],s=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return BB(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 BB(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 BB(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qB(e){return qB="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},qB(e)}function HB(){return HB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},HB.apply(this,arguments)}function VB(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 UB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?VB(Object(n),!0).forEach((function(t){ZB(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function WB(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,KB(r.key),r)}}function $B(e,t){return $B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$B(e,t)}function GB(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=XB(e);if(t){var i=XB(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===qB(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return YB(e)}(this,n)}}function YB(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function XB(e){return XB=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},XB(e)}function ZB(e,t,n){return(t=KB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KB(e){var t=function(e,t){if("object"!==qB(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==qB(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===qB(t)?t:String(t)}IB(FB,"defaultProps",{x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"});var JB=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$B(e,t)}(a,p);var n,r,i,o=GB(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return ZB(YB(e=o.call.apply(o,[this].concat(n))),"state",{isAnimationFinished:!1}),ZB(YB(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),hi(t)&&t()})),ZB(YB(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),hi(t)&&t()})),e}return n=a,r=[{key:"isActiveIndex",value:function(e){var t=this.props.activeIndex;return Array.isArray(t)?-1!==t.indexOf(e):e===t}},{key:"renderTrapezoidsStatically",value:function(t){var n=this,r=this.props.activeShape;return t.map((function(t,i){var o=n.isActiveIndex(i)?r:null,c=UB(UB({},t),{},{stroke:t.stroke});return e.createElement(_c,HB({className:"recharts-funnel-trapezoid"},Qa(n.props,t,i),{key:"trapezoid-".concat(i),role:"img"}),a.renderTrapezoidItem(o,c))}))}},{key:"renderTrapezoidsWithAnimation",value:function(){var t=this,n=this.props,r=n.trapezoids,i=n.isAnimationActive,o=n.animationBegin,a=n.animationDuration,c=n.animationEasing,s=n.animationId,l=this.state.prevTrapezoids;return e.createElement(Zv,{begin:o,duration:a,isActive:i,easing:c,from:{t:0},to:{t:1},key:"funnel-".concat(s),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(n){var i=n.t,o=r.map((function(e,t){var n=l&&l[t];if(n){var r=Ua(n.x,e.x),o=Ua(n.y,e.y),a=Ua(n.upperWidth,e.upperWidth),c=Ua(n.lowerWidth,e.lowerWidth),s=Ua(n.height,e.height);return UB(UB({},e),{},{x:r(i),y:o(i),upperWidth:a(i),lowerWidth:c(i),height:s(i)})}var u=Ua(e.x+e.upperWidth/2,e.x),f=Ua(e.y+e.height/2,e.y),p=Ua(0,e.upperWidth),d=Ua(0,e.lowerWidth),h=Ua(0,e.height);return UB(UB({},e),{},{x:u(i),y:f(i),upperWidth:p(i),lowerWidth:d(i),height:h(i)})}));return e.createElement(_c,null,t.renderTrapezoidsStatically(o))}))}},{key:"renderTrapezoids",value:function(){var e=this.props,t=e.trapezoids,n=e.isAnimationActive,r=this.state.prevTrapezoids;return!(n&&t&&t.length)||r&&Sw(r,t)?this.renderTrapezoidsStatically(t):this.renderTrapezoidsWithAnimation()}},{key:"render",value:function(){var t=this.props,n=t.hide,r=t.trapezoids,i=t.className,o=t.isAnimationActive,a=this.state.isAnimationFinished;if(n||!r||!r.length)return null;var c=$r("recharts-trapezoids",i);return e.createElement(_c,{className:c},this.renderTrapezoids(),(!o||a)&&WT.renderCallByParent(this.props,r))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curTrapezoids:e.trapezoids,prevTrapezoids:t.curTrapezoids}:e.trapezoids!==t.curTrapezoids?{curTrapezoids:e.trapezoids}:null}},{key:"renderTrapezoidItem",value:function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):hi(t)?t(n):cj(t)?e.createElement(FB,HB({},n,t)):e.createElement(FB,n)}}],r&&WB(n.prototype,r),i&&WB(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function QB(e){return lt(e).substr(0,10)}function eq(e,t,n){return"FitbitSteps"==e?tq(t,n):"FitbitRestingHeartRates"==e?nq(t,n):"GarminSteps"==e?function(e,t){var n=new Date(e,t,1,0,0,0,0),r=Y(n,{months:1}),i={};for(;n<r;)i[QB(n)]=3e3+Math.floor(1e4*Math.random()),n=Y(n,{days:1});return i}(t,n):"GarminRestingHeartRates"==e?function(e,t){var n=new Date(e,t,1,0,0,0,0),r=Y(n,{months:1}),i={};for(;n<r;)i[QB(n)]=60+Math.floor(5*Math.random()),n=Y(n,{days:1});return i}(t,n):"AppleHealthSteps"==e?nq(t,n):"AppleHealthDistanceRunningWalking"==e?function(e,t){var n=new Date(e,t,1,0,0,0,0),r=Y(n,{months:1}),i={};for(;n<r;)i[QB(n)]=Math.floor(500*Math.random()),n=Y(n,{hours:1});return i}(t,n):"GoogleFitSteps"==e?function(e,t){var n=new Date(e,t,1,0,0,0,0),r=Y(n,{months:1}),i={};for(;n<r;)i[QB(n)]=Math.floor(500*Math.random()),n=Y(n,{hours:1});return i}(t,n):tq(t,n)}function tq(e,t){for(var n=new Date(e,t,1,0,0,0,0),r=Y(n,{months:1}),i={};n<r;)i[QB(n)]=3e3+Math.floor(1e4*Math.random()),n=Y(n,{days:1});return i}function nq(e,t){for(var n=new Date(e,t,1,0,0,0,0),r=Y(n,{months:1}),i={};n<r;)i[QB(n)]=60+Math.floor(5*Math.random()),n=Y(n,{days:1});return i}function rq(e){var t=[],n=function(r){var i=It({},e);return r&&(i.pageID=r),b.queryDeviceData(i).then((function(e){return t=t.concat(e.deviceDataPoints),e.nextPageID?n(e.nextPageID):t}))};return n()}function iq(e,t){var n=e.startDate;t.startDate<n&&(n=t.startDate);var r=e.endDate;return t.endDate>r&&(r=t.endDate),{startDate:n,endDate:r}}function oq(e){e=e.sort((function(e,t){return e.startDate.getTime()-t.startDate.getTime()}));for(var t,n,r=[],i=e[0],o=1;o<e.length;o++)t=i,(n=e[o]).startDate>=t.startDate&&n.startDate<=t.endDate||n.endDate>=t.startDate&&n.endDate<=t.endDate||t.startDate>=n.startDate&&t.startDate<=n.endDate||t.endDate>=n.startDate&&t.endDate<=n.endDate?i=iq(i,e[o]):(r.push(i),i=e[o]);r.push(i);var a=0;return r.forEach((function(e){a+=function(e,t,n){H(2,arguments);var r=oe(e,t)/te;return se(null==n?void 0:n.roundingMethod)(r)}(e.endDate,e.startDate)})),a}function aq(e,t,n){return rq({namespace:"AppleHealth",type:"SleepAnalysisInterval",observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(r){var i={};r.forEach((function(e){if(e.observationDate&&e.startDate&&e.value==n)for(var t=function(e){for(var t=[],n=pt(e.startDate),r=pt(e.observationDate),i=Y(new Date(n.getFullYear(),n.getMonth(),n.getDate(),18,0,0,0),{days:-1});i<r;){var o=Y(i,{days:1});if(o>n){var a=new Date(i),c=new Date(o);n>=i&&n<o&&(a=n),r>=i&&r<o&&(c=r),t.push({startDate:a,endDate:c})}i=o}return t}(e),r=0;r<t.length;r++){var o=lt(Y(t[r].startDate,{hours:6})).substring(0,10);i[o]||(i[o]=[]),i[o].push(t[r])}}));for(var o={};e<t;){var a=e.toISOString().substr(0,10),c=i[a];c&&(o[a]=oq(c)),e=Y(e,{days:1})}return o}))}function cq(e,t){return rq({namespace:"AppleHealth",type:"HourlySteps",observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate){var n=QB(pt(e.startDate));t[n]||(t[n]=0),t[n]+=parseFloat(e.value)}})),t}))}function sq(e,t,n){return rq({namespace:"Fitbit",type:n,observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate){var n=e.startDate.substr(0,10);t[n]||(t[n]=0),t[n]+=parseInt(e.value)}})),t}))}function lq(e,t,n){return rq({namespace:"Fitbit",type:"HeartRateZone",observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if("Out of Range"!=e.value&&(!n||e.value==n)&&e.properties&&e.properties.Minutes&&e.startDate){var r=e.startDate.substr(0,10);t[r]||(t[r]=0),t[r]+=parseInt(e.properties.Minutes)}})),t}))}function uq(e,t,n){return rq({namespace:"Fitbit",type:e,observedAfter:Y(t,{days:-1}).toISOString(),observedBefore:Y(n,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate&&0!=parseInt(e.value)){var n=e.startDate.substr(0,10);t[n]=Math.round(parseFloat(e.value))}})),t}))}function fq(e,t){return uq("RestingHeartRate",e,t)}function pq(e,t,n){return rq({namespace:"Fitbit",type:n,observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.observationDate){var n=lt(Y(pt(e.observationDate),{hours:6})).substr(0,10);t[n]||(t[n]=0),t[n]+=parseFloat(e.value)}})),t}))}function dq(e,t){return uq("Steps",e,t)}function hq(e,t){return function(e,t,n){return rq({namespace:"Garmin",type:e,observedAfter:Y(t,{days:-1}).toISOString(),observedBefore:Y(n,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate&&0!=parseInt(e.value)){var n=e.startDate.substring(0,10);t[n]=Math.round(parseFloat(e.value))}})),t}))}("Steps",e,t)}ZB(JB,"displayName","Funnel"),ZB(JB,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",labelLine:!0,hide:!1,isAnimationActive:!db.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",lastShapeType:"triangle"}),ZB(JB,"getRealFunnelData",(function(e){var t=e.props,n=t.data,r=t.children,i=hc(e.props),o=sc(r,lx);return n&&n.length?n.map((function(e,t){return UB(UB(UB({payload:e},i),e),o&&o[t]&&o[t].props)})):o&&o.length?o.map((function(e){return UB(UB({},i),e.props)})):[]})),ZB(JB,"getRealWidthHeight",(function(e,t){var n=e.props.width,r=t.width,i=t.height,o=t.left,a=t.right,c=t.top,s=t.bottom,l=i,u=r;return Ma(n)?u=n:wi(n)&&(u=u*parseFloat(n)/100),{realWidth:u-o-a-50,realHeight:l-s-c,offsetX:(r-u)/2,offsetY:(i-l)/2}})),ZB(JB,"getComposedData",(function(e){var t=e.item,n=e.offset,r=JB.getRealFunnelData(t),i=t.props,o=i.dataKey,a=i.nameKey,c=i.tooltipType,s=i.lastShapeType,l=i.reversed,u=n.left,f=n.top,p=JB.getRealWidthHeight(t,n),d=p.realHeight,h=p.realWidth,m=p.offsetX,y=p.offsetY,v=Math.max.apply(null,r.map((function(e){return DC(e,o,0)}))),g=r.length,b=d/g,x={x:n.left,y:n.top,width:n.width,height:n.height},w=r.map((function(e,t){var n,i=DC(e,o,0),l=DC(e,a,t),p=i;if(t!==g-1)(n=DC(r[t+1],o,0))instanceof Array&&(n=zB(n,1)[0]);else if(i instanceof Array&&2===i.length){var d=zB(i,2);p=d[0],n=d[1]}else n="rectangle"===s?p:0;var w=(v-p)*h/(2*v)+f+25+m,k=b*t+u+y,E=p/v*h,S=n/v*h,_=[{name:l,value:p,payload:e,dataKey:o,type:c}],O={x:w+E/2,y:k+b/2};return UB(UB({x:w,y:k,width:Math.max(E,S),upperWidth:E,lowerWidth:S,height:b,name:l,val:p,tooltipPayload:_,tooltipPosition:O},Cz(e,"width")),{},{payload:e,parentViewBox:x,labelViewBox:{x:w+(E-S)/4,y:k,width:Math.abs(E-S)/2+Math.min(E,S),height:b}})}));return l&&(w=w.map((function(e,t){var n=e.y-t*b+(g-1-t)*b;return UB(UB({},e),{},{upperWidth:e.lowerWidth,lowerWidth:e.upperWidth,x:e.x-(e.lowerWidth-e.upperWidth)/2,y:e.y-t*b+(g-1-t)*b,tooltipPosition:UB(UB({},e.tooltipPosition),{},{y:n+b/2}),labelViewBox:UB(UB({},e.labelViewBox),{},{y:n})})}))),{trapezoids:w,data:r}})),aL({chartName:"FunnelChart",GraphicalChild:JB,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",axisComponents:[],defaultProps:{layout:"centric"}});var mq,yq={};function vq(e,t,n){yq[e]={provider:t,availabilityCheck:n}}function gq(e,t){var n=yq[e];if(!n)throw"Unknown data type:"+e;return n.availabilityCheck(t)}function bq(e,t,n){return yq[e].provider(t,n).then((function(e){for(var r={};t<n;){var i=QB(t);e[i]&&(r[i]=e[i]),t=Y(t,{days:1})}return r}))}function xq(e,t){return function(n){var r={namespace:e,type:t,limit:1};return n&&(r.modifiedAfter=n.toISOString()),b.queryDeviceData(r).then((function(e){return e.deviceDataPoints.length>0})).catch((function(){return!1}))}}function wq(t){var n=t.x,r=t.y;t.stroke;var i=t.payload.value;return e.createElement("text",{x:n,y:r+15,textAnchor:"middle",fontSize:"12"},i)}function kq(t){var n=s(null),r=n[0],i=n[1],o=s(!1),c=o[0],u=o[1],f=s(!1),p=f[0],d=f[1],h=a(),m=new Date(t.year,t.month,1,0,0,0,0),y=Y(m,{months:1});function v(){var e,n;if(t.previewState&&(d(!0),t.onDataDetected&&t.onDataDetected()),"Loading"==t.previewState&&u(!0),"WithData"==t.previewState){var r={};t.lines.forEach((function(e){var n=eq(e.dailyDataType,t.year,t.month);r[e.dailyDataType]=n})),i(r)}if("NoData"==t.previewState){r={};t.lines.forEach((function(e){r[e.dailyDataType]={}})),i(r),u(!1)}if(!t.previewState){!function(){if(!p){var e=t.lines.map((function(e){return gq(e.dailyDataType)}));Promise.all(e).then((function(e){e.find((function(e){return e}))&&(d(!0),t.onDataDetected&&t.onDataDetected())}))}}(),h.current=(null!==(e=h.current)&&void 0!==e?e:0)+1;var o=null!==(n=h.current)&&void 0!==n?n:0;u(!0);var a;a=t.lines.map((function(e){return bq(e.dailyDataType,m,y)})),Promise.all(a).then((function(e){if(o==h.current){for(var n={},r=0;r<t.lines.length;r++)n[t.lines[r].dailyDataType]=e[r];i(n),u(!1)}}))}}l((function(){return v(),b.on("applicationDidBecomeVisible",v),b.on("externalAccountSyncComplete",v),function(){b.off("applicationDidBecomeVisible",v),b.off("externalAccountSyncComplete",v)}}),[t]);for(var g=[],x=m,w=!1;x<y;){var k={day:x.getDate()};g.push(k);var E=QB(x);t.lines.forEach((function(e){r&&(k[e.dailyDataType]=r[e.dailyDataType][E],e.valueConverter&&(k[e.dailyDataType]=e.valueConverter(k[e.dailyDataType])),k[e.dailyDataType]>0&&(w=!0))})),x=Y(x,{days:1})}if(!p)return null;var S=function(){var e=t.lines.filter((function(e){return e.showAverage}));if(0==e.length)return null;if(e.length>1)return console.error("Only one line can display an average"),null;var n=e[0],r=g.map((function(e){return e[n.dailyDataType]}));if(!(r=r.filter((function(e){return!!e}))).length)return null;var i=r.reduce((function(e,t){return e+t}))/r.length;return i.toLocaleString("en-US",{minimumFractionDigits:0,maximumFractionDigits:1})}();return e.createElement("div",{className:"mdhui-device-data-month-chart"},t.title&&e.createElement("div",{className:"title"},t.title),!c&&null!=S&&e.createElement("div",{className:"average"},"Daily Average: ",e.createElement("span",{className:"average-value"},S)),e.createElement("div",{style:{clear:"both"}}),e.createElement("div",{className:"chart-container"},(!w||c)&&e.createElement("div",null,!w&&!c&&e.createElement("div",{className:"no-data-label"},"No Data"),c&&e.createElement(I,null),e.createElement(sx,{width:"100%",height:150},e.createElement(cL,{width:400,height:400,data:g,syncId:t.syncId},e.createElement(yI,{strokeDasharray:"3 3"}),e.createElement(cR,{axisLine:!1,interval:0,tickLine:!1,width:30,scale:"linear"}),e.createElement(aR,{id:"myXAxis",tick:wq,axisLine:!1,dataKey:"day",tickMargin:0,minTickGap:0,tickLine:!1,interval:1})))),w&&!c&&e.createElement(sx,{width:"100%",height:150},e.createElement(cL,{width:400,height:400,data:g,syncId:t.syncId},t.lines.map((function(t){return e.createElement(jI,{key:t.dailyDataType,type:"monotone",dataKey:t.dailyDataType,stroke:"var(--mdhui-color-primary)"})})),e.createElement(Ob,{content:e.createElement((function(n){var r=n.active,i=n.payload;if(n.label,r&&i&&i.length){var o=new Date(t.year,t.month,i[0].payload.day),a={};return t.lines.forEach((function(e){a[e.dailyDataType]=e.label})),e.createElement("div",{className:"graph-tooltip"},e.createElement("div",{className:"graph-date"},nt(o,"MM/dd/yyyy")),e.createElement("table",{className:"payload-values"},e.createElement("tbody",null,i.map((function(t){return e.createElement("tr",{key:t.dataKey},e.createElement("th",null,a[t.dataKey]),e.createElement("td",null,parseFloat(t.value.toFixed(2))))})))))}return null}),null)}),e.createElement(yI,{strokeDasharray:"3 3"}),e.createElement(cR,{tickFormatter:function(e){return e>=1e4?Math.floor(e/1e3)+"K":e},axisLine:!1,interval:0,tickLine:!1,width:30}),e.createElement(aR,{id:"myXAxis",tick:wq,axisLine:!1,dataKey:"day",tickMargin:0,minTickGap:0,tickLine:!1,interval:1})))))}function Eq(t){var n=s(!1),r=n[0],i=n[1],o=new Date,a=s(new Date(o.getFullYear(),o.getMonth(),1,0,0,0,0)),c=a[0],l=a[1];function u(){i(!0)}var f=c.getMonth(),p=c.getFullYear();return e.createElement(e.Fragment,null,!r&&e.createElement(Nr,null,br["device-data-no-data"]),e.createElement("div",{style:{display:r?"block":"none"}},e.createElement(Mt,{intervalType:"Month",intervalStart:c,onIntervalChange:function(e){l(e)}}),e.createElement(kq,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:mq.FitbitSteps,label:br.steps}],title:"Fitbit "+br.steps,month:f,year:p,syncId:"DeviceDataCharts"}),e.createElement(kq,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:mq.FitbitRestingHeartRate,label:br["resting-heart-rate"]}],title:"Fitbit "+br["resting-heart-rate"],month:f,year:p,syncId:"DeviceDataCharts"}),e.createElement(kq,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:mq.GarminSteps,label:br.steps}],title:"Garmin "+br.steps,month:f,year:p,syncId:"DeviceDataCharts"}),e.createElement(kq,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:mq.GarminRestingHeartRate,label:br["resting-heart-rate"]}],title:"Garmin "+br["resting-heart-rate"],month:f,year:p,syncId:"DeviceDataCharts"}),e.createElement(kq,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:mq.AppleHealthSteps,label:br.steps}],title:"Apple Health "+br.steps,month:f,year:p,syncId:"DeviceDataCharts"}),e.createElement(kq,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:mq.AppleHealthDistanceWalkingRunning,label:br["distance-traveled"],valueConverter:function(e){return 621371e-9*e}}],title:"Apple Health "+br["distance-traveled"]+" (Miles)",month:f,year:p,syncId:"DeviceDataCharts"}),e.createElement(kq,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:mq.GoogleFitSteps,label:br.steps}],title:"Google Fit "+br.steps,month:f,year:p,syncId:"DeviceDataCharts"})))}!function(e){e.AppleHealthDistanceWalkingRunning="AppleHealthDistanceWalkingRunning",e.AppleHealthFlightsClimbed="AppleHealthFlightsClimbed",e.AppleHealthHeartRateRange="AppleHealthHeartRateRange",e.AppleHealthHrv="AppleHealthHrv",e.AppleHealthMaxHeartRate="AppleHealthMaxHeartRate",e.AppleHealthRestingHeartRate="AppleHealthRestingHeartRate",e.AppleHealthSleepMinutes="AppleHealthSleepMinutes",e.AppleHealthInBedMinutes="AppleHealthInBedMinutes",e.AppleHealthStandMinutes="AppleHealthStandMinutes",e.AppleHealthSteps="AppleHealthSteps",e.AppleHealthWalkingHeartRateAverage="AppleHealthWalkingHeartRateAverage",e.FitbitActiveMinutes="FitbitActiveMinutes",e.FitbitLightlyActiveMinutes="FitbitLightlyActiveMinutes",e.FitbitFairlyActiveMinutes="FitbitFairlyActiveMinutes",e.FitbitVeryActiveMinutes="FitbitVeryActiveMinutes",e.FitbitBreathingRate="FitbitBreathingRate",e.FitbitCaloriesBurned="FitbitCaloriesBurned",e.FitbitElevatedHeartRateMinutes="FitbitElevatedHeartRateMinutes",e.FitbitFatBurnHeartRateMinutes="FitbitFatBurnHeartRateMinutes",e.FitbitCardioHeartRateMinutes="FitbitCardioHeartRateMinutes",e.FitbitPeakHeartRateMinutes="FitbitPeakHeartRateMinutes",e.FitbitFloors="FitbitFloors",e.FitbitHrv="FitbitHrv",e.FitbitRestingHeartRate="FitbitRestingHeartRate",e.FitbitSleepMinutes="FitbitSleepMinutes",e.FitbitLightSleepMinutes="FitbitLightSleepMinutes",e.FitbitRemSleepMinutes="FitbitRemSleepMinutes",e.FitbitDeepSleepMinutes="FitbitDeepSleepMinutes",e.FitbitSpO2="FitbitSpO2",e.FitbitSteps="FitbitSteps",e.GarminRestingHeartRate="GarminRestingHeartRate",e.GarminSteps="GarminSteps",e.GoogleFitSteps="GoogleFitSteps",e.Steps="Steps",e.RestingHeartRate="RestingHeartRate"}(mq||(mq={})),vq(mq.AppleHealthDistanceWalkingRunning,(function(e,t){return rq({namespace:"AppleHealth",type:"HourlyDistanceWalkingRunning",observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate){var n=lt(pt(e.startDate)).substring(0,10);t[n]||(t[n]=0),t[n]+=parseFloat(e.value)}})),t}))}),xq("AppleHealth",["HourlyDistanceWalkingRunning"])),vq(mq.AppleHealthFlightsClimbed,(function(e,t){return rq({namespace:"AppleHealth",type:"FlightsClimbed",observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate){var n=QB(pt(e.startDate));t[n]||(t[n]=0),t[n]+=parseFloat(e.value)}})),t}))}),xq("AppleHealth",["HourlySteps"])),vq(mq.AppleHealthHeartRateRange,(function(e,t){return rq({namespace:"AppleHealth",type:["HourlyMaximumHeartRate","HourlyMinimumHeartRate"],observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(n){var r={};n.forEach((function(e){if(e.startDate){var t=QB(pt(e.startDate)),n=parseFloat(e.value);"HourlyMaximumHeartRate"==e.type&&(r[t]?(!r[t].MaxHeartRate||n>r[t].MaxHeartRate)&&(r[t].MaxHeartRate=n):r[t]={MaxHeartRate:n}),"HourlyMinimumHeartRate"==e.type&&(r[t]?(!r[t].MinHeartRate||n<r[t].MinHeartRate)&&(r[t].MinHeartRate=n):r[t]={MinHeartRate:n})}}));for(var i={};e<t;){var o=r[QB(e)];o&&o.MaxHeartRate&&o.MinHeartRate&&(i[QB(e)]=o.MaxHeartRate-o.MinHeartRate),e=Y(e,{days:1})}return i}))}),xq("AppleHealth",["HourlyMaximumHeartRate"])),vq(mq.AppleHealthHrv,(function(e,t){return rq({namespace:"AppleHealth",type:"HeartRateVariability",observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(n){var r={};n.forEach((function(e){if(e.startDate){var t=lt(pt(e.startDate)).substring(0,10),n=parseFloat(e.value);r[t]||(r[t]=[]),r[t].push(n)}}));for(var i={};e<t;){var o=e.toISOString().substr(0,10);r[o]&&(i[o]=r[o].reduce((function(e,t){return e+t}))/r[o].length),e=Y(e,{days:1})}return i}))}),xq("AppleHealth",["HeartRateVariability"])),vq(mq.AppleHealthMaxHeartRate,(function(e,t){return rq({namespace:"AppleHealth",type:"HourlyMaximumHeartRate",observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate){var n=lt(pt(e.startDate)).substring(0,10),r=parseFloat(e.value);t[n]?r>t[n]&&(t[n]=r):t[n]=r}})),t}))}),xq("AppleHealth",["HourlyMaximumHeartRate"])),vq(mq.AppleHealthRestingHeartRate,(function(e,t){return rq({namespace:"AppleHealth",type:"RestingHeartRate",observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(n){var r={};n.forEach((function(e){if(e.startDate){var t=QB(pt(e.startDate)),n=parseFloat(e.value);r[t]||(r[t]=[]),r[t].push(n)}}));for(var i={};e<t;){var o=e.toISOString().substr(0,10);r[o]&&(i[o]=r[o].reduce((function(e,t){return e+t}))/r[o].length),e=Y(e,{days:1})}return i}))}),xq("AppleHealth",["RestingHeartRate"])),vq(mq.AppleHealthSleepMinutes,(function(e,t){return aq(e,t,"Asleep")}),xq("AppleHealth",["SleepAnalysisInterval"])),vq(mq.AppleHealthInBedMinutes,(function(e,t){return aq(e,t,"InBed")}),xq("AppleHealth",["SleepAnalysisInterval"])),vq(mq.AppleHealthStandMinutes,(function(e,t){return rq({namespace:"AppleHealth",type:"AppleStandTime",observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate){var n=QB(pt(e.startDate));t[n]||(t[n]=0),t[n]+=parseFloat(e.value)}})),t}))}),xq("AppleHealth",["AppleStandTime"])),vq(mq.AppleHealthSteps,cq,xq("AppleHealth",["HourlySteps"])),vq(mq.AppleHealthWalkingHeartRateAverage,(function(e,t){return rq({namespace:"AppleHealth",type:"WalkingHeartRateAverage",observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(n){var r={};n.forEach((function(e){if(e.startDate){var t=QB(pt(e.startDate)),n=parseFloat(e.value);r[t]||(r[t]=[]),r[t].push(n)}}));for(var i={};e<t;){var o=e.toISOString().substr(0,10);r[o]&&(i[o]=r[o].reduce((function(e,t){return e+t}))/r[o].length),e=Y(e,{days:1})}return i}))}),xq("AppleHealth",["WalkingHeartRateAverage"])),vq(mq.FitbitActiveMinutes,(function(e,t){return sq(e,t,["MinutesVeryActive","MinutesFairlyActive","MinutesLightlyActive"])}),xq("Fitbit",["MinutesVeryActive","MinutesFairlyActive","MinutesLightlyActive"])),vq(mq.FitbitLightlyActiveMinutes,(function(e,t){return sq(e,t,["MinutesLightlyActive"])}),xq("Fitbit",["MinutesLightlyActive"])),vq(mq.FitbitFairlyActiveMinutes,(function(e,t){return sq(e,t,["MinutesFairlyActive"])}),xq("Fitbit",["MinutesFairlyActive"])),vq(mq.FitbitVeryActiveMinutes,(function(e,t){return sq(e,t,["MinutesVeryActive"])}),xq("Fitbit",["MinutesVeryActive"])),vq(mq.FitbitBreathingRate,(function(e,t){return uq("BreathingRate",e,t)}),xq("Fitbit",["BreathingRate"])),vq(mq.FitbitCaloriesBurned,(function(e,t){return uq("Calories",e,t)}),xq("Fitbit",["Calories"])),vq(mq.FitbitElevatedHeartRateMinutes,(function(e,t){return lq(e,t)}),xq("Fitbit",["HeartRateZone"])),vq(mq.FitbitFatBurnHeartRateMinutes,(function(e,t){return lq(e,t,"Fat Burn")}),xq("Fitbit",["HeartRateZone"])),vq(mq.FitbitCardioHeartRateMinutes,(function(e,t){return lq(e,t,"Cardio")}),xq("Fitbit",["HeartRateZone"])),vq(mq.FitbitPeakHeartRateMinutes,(function(e,t){return lq(e,t,"Peak")}),xq("Fitbit",["HeartRateZone"])),vq(mq.FitbitFloors,(function(e,t){return uq("Floors",e,t)}),xq("Fitbit",["HeartRateZone"])),vq(mq.FitbitHrv,(function(e,t){return uq("Hrv",e,t)}),xq("Fitbit",["Floors"])),vq(mq.FitbitRestingHeartRate,fq,xq("Fitbit",["RestingHeartRate"])),vq(mq.FitbitSleepMinutes,(function(e,t){return pq(e,t,["SleepLevelRem","SleepLevelLight","SleepLevelDeep","SleepLevelAsleep"])}),xq("Fitbit",["SleepLevelRem","SleepLevelLight","SleepLevelDeep","SleepLevelAsleep"])),vq(mq.FitbitLightSleepMinutes,(function(e,t){return pq(e,t,["SleepLevelLight"])}),xq("Fitbit",["SleepLevelLight"])),vq(mq.FitbitRemSleepMinutes,(function(e,t){return pq(e,t,["SleepLevelRem"])}),xq("Fitbit",["SleepLevelRem"])),vq(mq.FitbitDeepSleepMinutes,(function(e,t){return pq(e,t,["SleepLevelDeep"])}),xq("Fitbit",["SleepLevelDeep"])),vq(mq.FitbitSpO2,(function(e,t){return uq("SpO2",e,t)}),xq("Fitbit",["SpO2"])),vq(mq.FitbitSteps,dq,xq("Fitbit",["Steps"])),vq(mq.GarminSteps,hq,xq("Garmin",["Steps"])),vq(mq.GarminRestingHeartRate,hq,xq("Garmin",["RestingHeartRateInBeatsPerMinute"])),vq(mq.GoogleFitSteps,(function(e,t){return rq({namespace:"GoogleFit",type:"Steps",observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate){var n=lt(pt(e.startDate)).substring(0,10);t[n]||(t[n]=0),t[n]+=parseFloat(e.value)}})),t}))}),xq("GoogleFit",["Steps"])),vq(mq.RestingHeartRate,(function(e,t){return rq({namespace:"AppleHealth",type:"RestingHeartRate",observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(n){return fq(e,t).then((function(r){var i={};n.forEach((function(e){if(e.startDate){var t=QB(pt(e.startDate)),n=parseFloat(e.value);i[t]||(i[t]=[]),i[t].push(n)}}));for(var o={};e<t;){var a=QB(e);r[a]&&(i[a]||(i[a]=[]),i[a].push(r[a])),i[a]&&(o[a]=i[a].reduce((function(e,t){return e+t}))/i[a].length),e=Y(e,{days:1})}return o}))}))}),(function(e){return xq("AppleHealth",["RestingHeartRate"])(e).then((function(t){return t||xq("Fitbit",["RestingHeartRate"])(e).then((function(t){return t||xq("Garmin",["RestingHeartRate"])(e)}))}))})),vq(mq.Steps,(function(e,t){var n=dq(e,t),r=cq(e,t),i=hq(e,t);return Promise.all([n,r,i]).then((function(n){for(var r={};e<t;){var i=QB(e),o=null;n[0][i]&&(o=n[0][i]),n[1][i]&&(null==o||n[1][i]>o)&&(o=n[1][i]),o&&(r[i]=o),e=Y(e,{days:1})}return r}))}),(function(e){return xq("AppleHealth",["Steps"])(e).then((function(t){return t||xq("Fitbit",["Steps"])(e).then((function(t){return t||xq("Garmin",["Steps"])(e)}))}))}));var Sq=[{id:1,lastRefreshDate:Y(new Date,{days:-1}).toISOString(),status:"fetchComplete",provider:{id:37,name:"Cedars-Sinai Health System",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/37/logo"}},{id:2,lastRefreshDate:Y(new Date,{hours:-8}).toISOString(),status:"unauthorized",provider:{id:1,name:"CareEvolution FHIR",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/1/logo"}},{id:3,lastRefreshDate:Y(new Date,{hours:-2}).toISOString(),status:"fetchComplete",provider:{id:17,name:"CMS Sandbox",category:"Health Plan",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/17/logo"}},{id:4,lastRefreshDate:Y(new Date,{hours:-3}).toISOString(),status:"fetchComplete",provider:{id:2,name:"Fitbit Staging",category:"Device Manufacturer",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/2/logo"}}];function _q(t){var n=s(!0),r=n[0],i=n[1],o=s([]),a=o[0],c=o[1];function u(){if("Default"==t.previewState)return i(!1),void p(Sq);f()}function f(){b.getExternalAccounts().then((function(e){p(e),i(!1)}))}function p(e){t.externalAccountProviderCategories&&(e=e.filter((function(e){var n;return-1!=(null===(n=t.externalAccountProviderCategories)||void 0===n?void 0:n.indexOf(e.provider.category))}))),c(e),t.onExternalAccountsLoaded&&t.onExternalAccountsLoaded(e)}return l((function(){return u(),b.on("applicationDidBecomeVisible",u),b.on("externalAccountSyncComplete",u),function(){b.off("applicationDidBecomeVisible",u),b.off("externalAccountSyncComplete",u)}}),[]),e.createElement("div",{className:"mdhui-external-account-list"},a&&a.map((function(t){return e.createElement(Pt,{key:t.id.toString()+t.lastRefreshDate},e.createElement(_r,{externalAccount:t,onAccountRemoved:function(e){return i(!0),void f()},onReconnectAccount:function(e){return function(e){b.connectExternalAccount(e.provider.id)}(e)}}))})),r&&e.createElement(I,null))}function Oq(e,t){var n=a();l((function(){n.current=e}),[e]),l((function(){if(null!==t){var e=setInterval((function(){n.current&&n.current()}),t);return function(){return clearInterval(e)}}}),[t])}k(".mdhui-external-accounts-loading-indicator {\n text-align: center;\n padding: 16px;\n}\n\n.mdhui-external-accounts-loading-indicator .mdhui-external-accounts-loading-indicator-message {\n color: var(--mdhui-text-color-3);\n margin-left: 8px;\n}");var Aq=[{id:1,lastRefreshDate:Y(new Date,{days:-1}).toISOString(),status:"fetchingData",provider:{id:37,name:"Cedars-Sinai Health System",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/37/logo"}}];function Cq(t){var n=s(!1),r=n[0],i=n[1],o=s([]),a=o[0],c=o[1];function u(){return"externalAccountsFetchingData"==t.previewState?(Aq[0].status="fetchingData",void c(Aq)):"externalAccountsLoaded"==t.previewState?(Aq[0].status="fetchComplete",void c(Aq)):void b.getExternalAccounts().then((function(e){t.externalAccountCategories&&(e=e.filter((function(e){return t.externalAccountCategories.includes(e.provider.category)}))),e.forEach((function(e){"fetchComplete"==e.status&&ft(new Date,Y(pt(e.lastRefreshDate),{hours:3}))&&(b.refreshExternalAccount(e.id),e.status="fetchingData")})),c(e)}))}l((function(){return b.getDeviceInfo().then((function(e){i("Web"==e.platform)})).catch((function(){i(!0)})).finally((function(){u()})),b.on("externalAccountSyncComplete",u),b.on("applicationDidBecomeVisible",u),function(){b.off("externalAccountSyncComplete",u),b.off("applicationDidBecomeVisible",u)}}),[]);var f=!!a.find((function(e){return"fetchingData"==e.status}));return Oq((function(){u()}),r&&f?5e3:null),f?e.createElement("div",{className:"mdhui-external-accounts-loading-indicator"},e.createElement(I,{variant:"inline"}),e.createElement("span",{className:"mdhui-external-accounts-loading-indicator-message"},br["external-account-fetching-data"])):null}k(".mdhui-external-accounts-preview .external-account-title {\n font-size: .88em;\n color: var(--mdhui-text-color-2);\n}");var Tq=[{id:1,lastRefreshDate:Y(new Date,{days:-1}).toISOString(),status:"fetchComplete",provider:{id:37,name:"Cedars-Sinai Health System",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/37/logo"}},{id:2,lastRefreshDate:Y(new Date,{hours:-8}).toISOString(),status:"unauthorized",provider:{id:1,name:"CareEvolution FHIR",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/1/logo"}},{id:3,lastRefreshDate:Y(new Date,{hours:-2}).toISOString(),status:"fetchComplete",provider:{id:17,name:"CMS Sandbox",category:"Health Plan",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/17/logo"}},{id:4,lastRefreshDate:Y(new Date,{hours:-3}).toISOString(),status:"fetchComplete",provider:{id:2,name:"Fitbit Staging",category:"Device Manufacturer",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/2/logo"}}];function Pq(t){var n=s(null),r=n[0],i=n[1],o="",a=[];function c(){"Default"!=t.previewState?b.getExternalAccounts().then((function(e){u(e)})):u(Tq)}function u(e){a&&(e=e.filter((function(e){return-1!=(null==a?void 0:a.indexOf(e.provider.category))}))),i(e)}return t.excludeProviders||(a.push("Provider"),o+=br["external-accounts-title-providers"]),t.excludeHealthPlans||(a.push("Health Plan"),o.length>0&&(o+=br["external-accounts-title-divider"]),o+=br["external-accounts-title-health-plans"]),t.excludeDeviceManufacturers||(a.push("Device Manufacturer"),o.length>0&&(o+=br["external-accounts-title-divider"]),o+=br["external-accounts-title-devices"]),l((function(){return c(),b.on("applicationDidBecomeVisible",c),function(){b.off("applicationDidBecomeVisible",c)}}),[]),r&&r.length?e.createElement("div",{className:"mdhui-external-accounts-preview"},e.createElement(D,{title:o,onClick:function(){"preview"==t.applicationUrl?console.log("PREVIEW: Opening the external accounts application."):b.openApplication(t.applicationUrl)}},r.map((function(t){return e.createElement("div",{key:t.id,className:"external-account-title"},t.provider.name)})))):null}var Dq=[{id:"1109644c-dea3-ec11-aaab-f47bb6835a10",namespace:"Fitbit",insertedDate:"2022-03-14T21:32:51.413Z",modifiedDate:"2022-03-14T21:32:51.413Z",identifier:"806637943",type:"Device",value:"Charge 3",properties:{Battery:"High",Type:"TRACKER",DataLakeUrl:"https://pep-device-data-qa.s3.amazonaws.com/fitbit-devices/d9134fe6-a777-ec11-aaa8-89aad5fbf200/devices.json"},observationDate:"2022-03-14T17:31:24+00:00"},{id:"1009644c-dea3-ec11-aaab-f47bb6835a10",namespace:"Fitbit",insertedDate:"2022-03-14T21:32:51.397Z",modifiedDate:"2022-03-14T21:32:51.397Z",identifier:"F-31-A4C138BBAE04",type:"Device",value:"Aria Air",properties:{Battery:"Low",Type:"SCALE",DataLakeUrl:"https://pep-device-data-qa.s3.amazonaws.com/fitbit-devices/d9134fe6-a777-ec11-aaa8-89aad5fbf200/devices.json"},observationDate:"2022-01-12T18:34:23+00:00"}];k(".mdhui-connected-devices .connected-device {\n border-bottom: solid 1px var(--mdhui-border-color-0);\n padding: 16px;\n position: relative;\n padding-left: 48px;\n}\n\n.mdhui-connected-devices .connected-device:last-child {\n border-bottom: none;\n}\n\n.mdhui-connected-devices .connected-device .device-icon {\n position: absolute;\n left: 16px;\n top: calc(50% - 8px);\n color: var(--mdhui-text-color-2);\n font-size: 16px;\n}\n\n.mdhui-connected-devices .connected-device .device-title {\n font-weight: bold;\n font-size: .88em;\n}\n\n.mdhui-connected-devices .connected-device .device-sync {\n font-size: .88em;\n color: var(--mdhui-text-color-2);\n}\n\n\n.mdhui-connected-devices .connected-device .battery-icon {\n position: absolute;\n font-size: 21px;\n right: 16px;\n top: calc(50% - 11px);\n}\n\n.mdhui-connected-devices .connected-device .battery-icon.battery-empty,\n.mdhui-connected-devices .connected-device .battery-icon.battery-low {\n color: var(--mdhui-color-danger);\n}\n\n.mdhui-connected-devices .connected-device .battery-icon.battery-medium {\n color: var(--mdhui-color-warning);\n}\n\n.mdhui-connected-devices .connected-device .battery-icon.battery-high {\n color: var(--mdhui-color-success);\n}\n");var jq={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="battery-empty",n=["battery-0"],r="f244",i="M80 160c-8.8 0-16 7.2-16 16V336c0 8.8 7.2 16 16 16H464c8.8 0 16-7.2 16-16V176c0-8.8-7.2-16-16-16H80zM0 176c0-44.2 35.8-80 80-80H464c44.2 0 80 35.8 80 80v16c17.7 0 32 14.3 32 32v64c0 17.7-14.3 32-32 32v16c0 44.2-35.8 80-80 80H80c-44.2 0-80-35.8-80-80V176z";e.definition={prefix:"fas",iconName:t,icon:[576,512,n,r,i]},e.faBatteryEmpty=e.definition,e.prefix="fas",e.iconName=t,e.width=576,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=i,e.aliases=n}(jq);var Mq={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="battery-full",n=[128267,"battery","battery-5"],r="f240",i="M464 160c8.8 0 16 7.2 16 16V336c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16H464zM80 96C35.8 96 0 131.8 0 176V336c0 44.2 35.8 80 80 80H464c44.2 0 80-35.8 80-80V320c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32V176c0-44.2-35.8-80-80-80H80zm368 96H96V320H448V192z";e.definition={prefix:"fas",iconName:t,icon:[576,512,n,r,i]},e.faBatteryFull=e.definition,e.prefix="fas",e.iconName=t,e.width=576,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=i,e.aliases=n}(Mq);var Nq={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="battery-half",n=["battery-3"],r="f242",i="M464 160c8.8 0 16 7.2 16 16V336c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16H464zM80 96C35.8 96 0 131.8 0 176V336c0 44.2 35.8 80 80 80H464c44.2 0 80-35.8 80-80V320c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32V176c0-44.2-35.8-80-80-80H80zm208 96H96V320H288V192z";e.definition={prefix:"fas",iconName:t,icon:[576,512,n,r,i]},e.faBatteryHalf=e.definition,e.prefix="fas",e.iconName=t,e.width=576,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=i,e.aliases=n}(Nq);var Iq={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="battery-quarter",n=["battery-2"],r="f243",i="M464 160c8.8 0 16 7.2 16 16V336c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16H464zM80 96C35.8 96 0 131.8 0 176V336c0 44.2 35.8 80 80 80H464c44.2 0 80-35.8 80-80V320c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32V176c0-44.2-35.8-80-80-80H80zm112 96H96V320h96V192z";e.definition={prefix:"fas",iconName:t,icon:[576,512,n,r,i]},e.faBatteryQuarter=e.definition,e.prefix="fas",e.iconName=t,e.width=576,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=i,e.aliases=n}(Iq);var Rq={};function Lq(){return Lq=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lq.apply(this,arguments)}function Fq(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="weight-scale",n=["weight"],r="f496",i="M128 176a128 128 0 1 1 256 0 128 128 0 1 1 -256 0zM391.8 64C359.5 24.9 310.7 0 256 0S152.5 24.9 120.2 64H64C28.7 64 0 92.7 0 128V448c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V128c0-35.3-28.7-64-64-64H391.8zM296 224c0-10.6-4.1-20.2-10.9-27.4l33.6-78.3c3.5-8.1-.3-17.5-8.4-21s-17.5 .3-21 8.4L255.7 184c-22 .1-39.7 18-39.7 40c0 22.1 17.9 40 40 40s40-17.9 40-40z";e.definition={prefix:"fas",iconName:t,icon:[512,512,n,r,i]},e.faWeightScale=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=i,e.aliases=n}(Rq);var zq=t((function(t,n){var r=t.color,i=void 0===r?"currentColor":r,o=t.size,a=void 0===o?24:o,c=Fq(t,["color","size"]);return e.createElement("svg",Lq({ref:n,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},c),e.createElement("circle",{cx:"12",cy:"12",r:"7"}),e.createElement("polyline",{points:"12 9 12 12 13.5 13.5"}),e.createElement("path",{d:"M16.51 17.35l-.35 3.83a2 2 0 0 1-2 1.82H9.83a2 2 0 0 1-2-1.82l-.35-3.83m.01-10.7l.35-3.83A2 2 0 0 1 9.83 1h4.35a2 2 0 0 1 2 1.82l.35 3.83"}))}));zq.propTypes={color:gh.string,size:gh.oneOfType([gh.string,gh.number])},zq.displayName="Watch";var Bq=zq;function qq(t){var n=s([]),r=n[0],i=n[1];function o(){if("connected"!=t.previewState)if("notEnabled"!=t.previewState&&"notConnected"!=t.previewState){var e={namespace:t.providerNamespace,type:"Device"};b.queryDeviceData(e).then((function(e){i(e.deviceDataPoints)}))}else i([]);else i(t.previewData)}if(l((function(){return o(),b.on("applicationDidBecomeVisible",o),b.on("externalAccountSyncComplete",o),function(){b.off("applicationDidBecomeVisible",o),b.off("externalAccountSyncComplete",o)}}),[]),!r.length)return null;var a=b.getCurrentLanguage().toLowerCase().startsWith("es")?Ct:Ze;return e.createElement("div",{className:"mdhui-connected-devices"},e.createElement(Dt,{title:t.providerName+" "+br.devices}),r.map((function(t){var n,r,i,o,c,s;return e.createElement("div",{key:t.id.toString(),className:"connected-device"},"TRACKER"==(null===(n=t.properties)||void 0===n?void 0:n.Type)&&e.createElement("div",{className:"device-icon"},e.createElement(Bq,{size:"16"})),"SCALE"==(null===(r=t.properties)||void 0===r?void 0:r.Type)&&e.createElement("div",{className:"device-icon"},e.createElement(P,{icon:Rq.faWeightScale})),e.createElement("div",{className:"device-info"},e.createElement("div",{className:"device-title"},t.value),t.observationDate&&e.createElement("div",{className:"device-sync"},br["last-sync"]," ",ut(pt(t.observationDate),new Date,{locale:a}))),"Empty"==(null===(i=t.properties)||void 0===i?void 0:i.Battery)&&e.createElement("div",{className:"battery-icon battery-empty"},e.createElement(P,{icon:jq.faBatteryEmpty,rotate:-90})),"Low"==(null===(o=t.properties)||void 0===o?void 0:o.Battery)&&e.createElement("div",{className:"battery-icon battery-low"},e.createElement(P,{icon:Iq.faBatteryQuarter,rotate:-90})),"Medium"==(null===(c=t.properties)||void 0===c?void 0:c.Battery)&&e.createElement("div",{className:"battery-icon battery-medium"},e.createElement(P,{icon:Nq.faBatteryHalf,rotate:-90})),"High"==(null===(s=t.properties)||void 0===s?void 0:s.Battery)&&e.createElement("div",{className:"battery-icon battery-high"},e.createElement(P,{icon:Mq.faBatteryFull,rotate:-90})))})))}function Hq(t){return e.createElement(qq,{providerName:"Fitbit",providerNamespace:"Fitbit",previewData:Dq,previewState:t.previewState})}function Vq(t){var n,r=s(!1),i=r[0],o=r[1],a=new Date,c=s(new Date(a.getFullYear(),a.getMonth(),1,0,0,0,0)),l=c[0],u=c[1];var f=l.getMonth(),p=l.getFullYear();return e.createElement("div",{style:{display:i?"block":"none"}},e.createElement(Mt,{intervalType:"Month",intervalStart:l,onIntervalChange:function(e){u(e)}}),null===(n=t.charts)||void 0===n?void 0:n.map((function(n){return e.createElement(kq,{onDataDetected:function(){o(!0)},previewState:"connected"==t.previewState?"WithData":"notEnabled"==t.previewState||"notConnected"==t.previewState?"NoData":void 0,lines:n.lines,title:n.title,syncId:n.syncId,month:f,year:p})})))}function Uq(t){return e.createElement(Vq,{previewState:t.previewState,charts:[{lines:[{showAverage:!0,dailyDataType:mq.FitbitSteps,label:br.steps}],title:br.steps,syncId:"fitbit"},{lines:[{showAverage:!0,dailyDataType:mq.FitbitRestingHeartRate,label:br["resting-heart-rate"]}],title:br["resting-heart-rate"],syncId:"DeviceDataCharts"}]})}var Wq=[{id:"1109644c-dea3-ec11-aaab-f47bb6835a10",namespace:"Garmin",insertedDate:"2022-03-14T21:32:51.413Z",modifiedDate:"2022-03-14T21:32:51.413Z",identifier:"806637943",type:"Device",value:"Forerunner 55",properties:{Battery:"High",Type:"TRACKER",DataLakeUrl:"https://pep-device-data-qa.s3.amazonaws.com/garmin-devices/d9134fe6-a777-ec11-aaa8-89aad5fbf200/devices.json"},observationDate:"2022-03-14T17:31:24+00:00"}];function $q(t){return e.createElement(qq,{providerName:"Garmin",providerNamespace:"Garmin",previewData:Wq,previewState:t.previewState})}function Gq(t){return e.createElement(Vq,{previewState:t.previewState,charts:[{lines:[{showAverage:!0,dailyDataType:mq.GarminSteps,label:br.steps}],title:br.steps,syncId:"garmin"},{lines:[{showAverage:!0,dailyDataType:mq.GarminRestingHeartRate,label:br["resting-heart-rate"]}],title:br["resting-heart-rate"],syncId:"DeviceDataCharts"}]})}var Yq="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAACXBIWXMAACE3AAAhNwEzWJ96AAANGElEQVR42u1de2xT1x3+bF8nJi+HCEUsq1WqYdZIUTElsI2QNaxTVaLRZqKEqNDVJawRSECXpdUaica0Eq1alEI3NaUiNLSBQmk1l2gpqpYmKSPd0nYYmsodbgdrogyhKItfxPFzf+TauS/b99rn2k7wT7KixPH1vd93fs/zO+coQqEQspI+UWYhyBJwWwuVqTc2qdMvA2BgvIoB3Cfy44MApgBYwq+SUdv1THxORab4ABrwGgB19E8t4a+wAxgAYAYwkCmEpJWASZ2+GICRfq1M8ddfBtAFoKtk1DZ1WxEwqdPX0KA/niGW4ARNxMCCJoAG3iTBlqdaBgGYUklESgiY1OkNAA5nMPBCRDxVMmqzzGsCaBtvArBvnkaJR2iNmJp3BEzq9HW0k9NifosdgLFk1GaeFwQsgFGfUm0gSgAdy5vTEFKmMnStI5lDECOAdrQDC8DkiDFJNaQctJIQ+EYAl24D8EE/4yX6mdNPAH0jb+H2k7dIkKDMgp9eEpRZ8NNLQkJOmHa4l7LYs2RVIo5ZMgF0qGmR0+EqSjXI2bQGasMaKMvuBLW2lvV+yDGBwDfDCFy9Ap/ln/CeyYixYAdgkBqiSiKATrIG5IrzlRVa5DU1Iqdul6TPBcesmOl5B55jPQjd9KQ7T6iRkqxJJeCwHBmuolSDvN9tQ+72PyR1nZBjAtNvPg/PkY/SmjGXjNqeIk4AXdv5M+m7parKUHDoDSjvKOe95+s7Bf/VEfgtbNOqKCyA2nAvqNU/h6p8neDnXM+8mE5t+LXY2pEoAmjTc5203c/Zugr5z70ORdES1ij2nGwXbU6oqjJoGhp4ZitgHYJje1O6SLADWCbGFIkNQ02kwVfX6lFw6D0W+L6+U5jasAHTB8+KBs5/cRyuPe1wNtUiYB2K/F1Vvg5F3UehKNWkK1s2EdEAOUJOZYUW2jPnWeDfOrQ3adutKNUgf/9uljYErEOwP/C4aHOo0Oaz/YrdDf/FcdlCUzFtKYdJD4/C9tdY4LtNOzDTeSHp64ZueuDa044CIEKCqnwdFrVuwfTBs1HD3ZzqX0J9/6Mxnbv33DHcevWkVJN2GLMdHolpAD2H208SfM2+jchreS3y+3RHqyA4SduAj0+wHPTUxkoER+wR4DU7N0GzrZk1EMREWbfan5E6WDbEmmOO5wNMpIFZ9ORzLPMgB/gA4Gzei5BjIvJ7XlPj7Pe3bkFxfz8W7ToYFXz/cC/8w7380Vq0BPmm48htrJZyK6aENECO0Z/bWI180/E5kJpq4eu1yeYJF7VuwaJdB1mERwtbvRf+Ct8/rkS0JF6U5Wi4T4pviKoFsTTASBoQzdadrFEmJ/gAZkNZhhZwwfeaOzC1sRJOYxtmOi/wwGdGWW7TDja5v22ScitGSSaIjvuJNk0pSjUsAGZ635c9Fgzd9MD3yVlBEzO1sRKuPe2CoAvJTOcFTHe0zoXR9z8qJcR9nMZUtAYQH/1UpY49+no+T0lA7v0b24reOrQXjs37RAPP1ahYz5SIFqSOAIOBZYtTlaH6+q3s0f/F5aQ0iumcmc9EjAC63CxrV0Nw/HrKUlIu0dxEK4WyksY2rgbUyH0n/qsjKX1yZokizVIjhoA6LDBRFC4mdi3V3WvnBpJF8gRYXUZogHr1+pQSIFTqTsiPVZWxkrfA9zfJagBto7Tyj8ji1IFfwX6ckN2deB7T0MAyawlEUlquH+BqgEEuIJjqqipfl7Iysfon9/ASq0TzGPUvtszlBX85negtGdJCADfrzdm0JjUEGNawErBEJX//7oj5CTkmMPNuPxECKLkIUNfqQRkMUK9eD9Xda3mFr9zaR4iUoOOZH2YNx/vp+YSfhXkdz8n2ZPKYmAQkZZzDZd7cTY/FdXzU2lqoa/8kbzFu2yMcG74LwRs3JLWxKEo1KHjl7Tkf4pjgZcQShYUxqxo6qdOHkgFean09OGaF/eF6WbJiqqoMRacHhcsT5g649rSLeq6i7qOsGparpT7pPqSSUZsiXilC2oN2HxWsrwesQ5jpfgmulno4Gu7DpE4PV0s9KzzM37+bfJRVqkF+24tR38+p2wXtxydiBgJC4M90v0S8CSwpDaCqylD45ge8rgbvuWOYPvl+1DCtsOsAawpQ7IgUCz4XuOmOVlArKnjTjv7hXjg27xN8rvy2F1nX8PWdgtPYRuQemRqQMAFC4Pv6TsF9KH6JV1GqgfbD91h+ggQJQuAzr8udEAqPaveznXPBQWM18ppfZidchFtciBDAnXOVOrEuRGDAOgT3gWcTitWFeoyEgBMiwdlUi8D3N1Fw4HleH6rX3AH3C68T9VNJE8B9iES7GoRICD+05/RpUUTkbF0FTb2RB1y0Ucs1f2GzKRQ8yNUwkDQBzNEfzY4mYzaYUZJv4EMEbowjYPt2jjiDAdSKClBrHhAEjmtWwlLwx2ZRjb/BMSvcL/xethA5KQIUpRos/vIromEZMDuBLjWMFQtcLJK5muA52S5bpwaRMJQ3tUgoLPMc60kY/IB1CG7TDkz97CEe+FRVGbQfvscD323aAa+5g/U319O/kR18Hp7IEFFvKOfZXwCgVlRAUVgcKWcEx6wIjl9DcPw/8H9rhbdPuCoZTg6ZbSlcnxWo+o5lkiiDQfZOjXgEDCLOhhrcGjhVVZZM7ySjaHYvTyNmHaj0EZnbWI1FO5/mlUNCjgk4n9wcuV//xXEEx6yR/1OvXo9pyK4Bg7GqoXHbqYMjdgTHrIz6SgORu1KtuIdlUqSGfYpSDTT7NqL4s3PINx3nge8f7sXUhg28wRL415wJZc52yShTsQgQNcc20/MOK61X1+qJ3mHIOSUa9NzGahR2HcDiL79CXstrgqM+3IoiRCpzfjqZAECCWGKZIFEEeI71sCKWglfehtO+OSlTxB19uY3VCP73BhvwwgKofrQcqh/ooPrxyrhRzUz3SzE7mpUVWmi2Nafa3Vli1YKWAbgmymbX6lF4tJdY4lL82Tkic7dialGxQtNJnV5uAu5irqTkNedO6vRTEDkvLJTWB8esmD72iuTMuOiDI7xsVoqEG2y9PZ/H9R9CxbYUEWAvGbUVxwtDBwA8LMoXdF5AyFXPqsEo7yhHvuk48pon4PvkLHyWzxH45ruo5klRqgFVqYOy7C5JT+If7o2sE/b1W0U7baGaEXPwyCwDYvIAs1gCwomY/+sHkd/SzKqxKIqWIKduFyvODi+wnrXnxTFtuKulHiGniz/SE4zTxSyFZUZEMolZDAEDkksAI3Y4jW1Q13ZDU7896nIfRdES0WZGuXQpPGfIrPeNlhfwyL3095RrgOACjUmd3oIk+kOVFVrk3L8O6lU/jVowEyonKH+4IvK/JKYrYwHv6zsFZdmyqMuYZJDLJaM2g9hSRBeAVxMuio3Y4Rn5CB58BKAtYufDoaRy6dJIdZO5CpFZrVTeUQ7Nzk2Soyqqqgy5v9qInId2ChIfckzA/fxuhJwuVhTnH+6VE/wwphCrAcUA/pfqAJm7fDUMlv/rf0et91CVOqj0y0EtLwdVWRPTzIQnVwDwZuTkXi4FYLHQwu1Ya8S6kIathbnrukiI19yBW0c7IyRy5wWSndMQISdKRm1G0RpAE1ADwov0UpmUBces8JzuwMy7/Sw/wgU/5JiAfeuDcpufqIv04q0THkAathuO1dMTLzfwfnoe/i8u8/IORakGBS8/y4vQSC0SjyGDJaO2mqjPGufDpnRogf/iONymHbwsOzyymcVAv8UiajsBqlKXDvDDGEb3e7HepNVmMB1maKbzAtymHaxlpuHoKHfTY7Oh5OBF+HptooqAKv3ydIA/GG8n9rRs1iHVHEXbT4ibXUdyiqtXeFVQrnNPQdENELFZh9j9gmTZKUtKGUFq72nAOgRn896Ic2UW+6TsoJKEiNo5S8p+QfZ0ERC66cH0wbOzewl1tIoqmqnK10F75rzgZJHYCZ8kxA5S+wUxtECWLcuSMU1U5UpQy8uhLLtzDniBtQjTHa0s8xOtb4igkN2yLFNMEQmfESZExvYTSZv2Se0LMmF2a8aMFf/Fcdgfroev71T0/7HIdjLJZUjc4kcSAXQtoy6d/kCsz3Aa21iba7DeT2KlZBy7Xyf1gIcFv3Wx0AyYTCFoQlsXJ7RChv6iJ+YDAd4zl2Df+mBkuwKZph2fSPRAh4SXKJWM2rrmCwnBETsc25vgNXcgOH5NDvC7Es5xkj3CZL5tY0+qlZIE+EQImI8kZAr4xAhgOOYBZA/xSY0PiOKYDZmeJxCI8w0kjzgkeqI23XJXg9lDzxaaHKFH/nWSF80eZSjO5Mh2lKFsZ8rTN7xsnmvDEcxuQ2+W6wuyx9kKy8I4zlaAiBpkD3ROHwEcIozIHmmeHgIYRBTTRBiR+hNYL9NBQpecBzZnNAEcMpbRIWwd/ZN09GSnE0UzgAHS4eS8JyAKIQbGq1iC7xjE7GpES/iVKYDPGwJuF1FmIcgScFvL/wF1Sa+givPozQAAAABJRU5ErkJggg==",Xq="data:image/svg+xml,%3csvg id='medication' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 292 292'%3e %3cpath id='background' fill='%23f7931d' d='M145.63%2c0c-80.43%2c0 -145.63%2c65.2 -145.63%2c145.63c0%2c80.44 65.2%2c145.65 145.63%2c145.65c80.43%2c0 145.63%2c-65.21 145.63%2c-145.65c0%2c-80.43 -65.2%2c-145.63 -145.63%2c-145.63'/%3e %3cpath fill='white' d='M175.55%2c105.22c3.91%2c4.42 7.55%2c8.5 10.46%2c11.75c1.46%2c1.62 2.74%2c3.04 3.79%2c4.18c1.06%2c1.14 1.87%2c2.01 2.48%2c2.62c4.76%2c4.78 7.69%2c11.31 7.69%2c18.58l0%2c74.84c-0%2c7.28 -2.93%2c13.81 -7.69%2c18.58c-4.77%2c4.76 -11.3%2c7.68 -18.57%2c7.68l-26.32%2c0l-26.31%2c0c-7.26%2c0 -13.8%2c-2.92 -18.57%2c-7.68c-4.76%2c-4.77 -7.69%2c-11.31 -7.69%2c-18.58l0%2c-57.96l0%2c-16.89c0%2c-7.27 2.93%2c-13.8 7.69%2c-18.58c0.61%2c-0.61 1.41%2c-1.48 2.47%2c-2.62c3.9%2c-4.24 11.04%2c-12.28 18.57%2c-20.81l47.67%2c0c1.45%2c1.65 2.9%2c3.29 4.31%2c4.88M101.32%2c110.24c-1.44%2c1.61 -2.7%2c3 -3.72%2c4.09c-1%2c1.11 -1.79%2c1.92 -2.19%2c2.33c-6.56%2c6.56 -10.63%2c15.67 -10.63%2c25.69l0%2c74.84c-0.01%2c10.02 4.07%2c19.13 10.63%2c25.68c6.57%2c6.57 15.67%2c10.65 25.68%2c10.64l52.63%2c0c10.02%2c0.01 19.12%2c-4.07 25.67%2c-10.64c6.56%2c-6.56 10.64%2c-15.66 10.64%2c-25.68l0%2c-57.96l0%2c-16.89c0%2c-10.02 -4.07%2c-19.13 -10.64%2c-25.69c-0.39%2c-0.4 -1.17%2c-1.22 -2.19%2c-2.33c-4.34%2c-4.72 -13.04%2c-14.53 -21.7%2c-24.37l0%2c-1.02l-0.02%2c0l0%2c-21.82l8.16%2c0c8.98%2c0 16.27%2c-8.34 16.27%2c-18.64c-0.02%2c-10.27 -7.3%2c-18.61 -16.28%2c-18.63l-72.33%2c0.03c-9%2c-0.02 -16.28%2c8.32 -16.28%2c18.61c0%2c10.3 7.28%2c18.64 16.27%2c18.64l8.13%2c0l0.02%2c22.72c-2.6%2c2.95 -5.21%2c5.91 -7.7%2c8.72c-3.9%2c4.4 -7.52%2c8.47 -10.41%2c11.68'/%3e %3cpath fill='white' d='M172.37%2c181.84l0%2c4.59c0%2c2.11 -1.48%2c3.82 -3.3%2c3.82l-15.03%2c0l0%2c15.03c0%2c1.82 -1.71%2c3.3 -3.82%2c3.3l-6.75%2c0c-2.11%2c0 -3.81%2c-1.48 -3.81%2c-3.3l0%2c-15.03l-15.04%2c0c-1.82%2c0 -3.3%2c-1.71 -3.3%2c-3.82l0%2c-0.78l0%2c-3.81l0%2c-2.16c0%2c-2.1 1.48%2c-3.81 3.3%2c-3.81l15.04%2c0l0%2c-15.04c0%2c-1.82 1.71%2c-3.29 3.81%2c-3.29l6.75%2c0c2.11%2c0 3.82%2c1.48 3.82%2c3.29l0%2c15.04l15.03%2c0c1.83%2c0 3.3%2c1.71 3.3%2c3.81l0%2c2.16ZM107.23%2c219.96l79.8%2c0l0%2c-76.54l-79.8%2c0l0%2c76.54Z'/%3e%3c/svg%3e",Zq="data:image/svg+xml,%3csvg id='report' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 288 288'%3e %3cpath id='background' fill='%23474c54' d='M143.81%2c0c-79.42%2c0 -143.81%2c64.38 -143.81%2c143.81c0%2c79.44 64.38%2c143.82 143.81%2c143.82c79.42%2c0 143.81%2c-64.39 143.81%2c-143.82c-0%2c-79.43 -64.39%2c-143.81 -143.81%2c-143.81'/%3e %3cpath fill='white' d='M188.88%2c81.07l-90.14%2c0c-2.38%2c0 -4.31%2c1.72 -4.31%2c3.84c0%2c2.12 1.93%2c3.84 4.31%2c3.84l90.14%2c0c2.38%2c0 4.3%2c-1.72 4.3%2c-3.84c0%2c-2.12 -1.92%2c-3.84 -4.3%2c-3.84'/%3e %3cpath fill='white' d='M188.88%2c98.89l-90.14%2c0c-2.38%2c0 -4.31%2c1.71 -4.31%2c3.84c0%2c2.12 1.93%2c3.84 4.31%2c3.84l90.14%2c0c2.38%2c0 4.3%2c-1.72 4.3%2c-3.84c0%2c-2.13 -1.92%2c-3.84 -4.3%2c-3.84'/%3e %3cpath fill='white' d='M145.74%2c124.36c2.38%2c0 4.31%2c-1.72 4.31%2c-3.83c0%2c-2.12 -1.93%2c-3.84 -4.31%2c-3.84l-47%2c0c-2.38%2c0 -4.3%2c1.72 -4.3%2c3.84c0%2c2.11 1.92%2c3.83 4.3%2c3.83l47%2c0Z'/%3e %3cpath fill='white' d='M208.06%2c221.83c0%2c2.31 -1.87%2c4.17 -4.17%2c4.17l-120.15%2c0c-2.3%2c0 -4.18%2c-1.87 -4.18%2c-4.17l0%2c-156.02c0%2c-2.3 1.88%2c-4.18 4.18%2c-4.18l120.15%2c0c2.3%2c0 4.17%2c1.88 4.17%2c4.18l0%2c156.02ZM203.88%2c53.02l-120.15%2c0c-7.06%2c0 -12.78%2c5.72 -12.78%2c12.78l0%2c156.02c0%2c7.06 5.72%2c12.78 12.78%2c12.78l120.15%2c0c7.06%2c0 12.78%2c-5.72 12.78%2c-12.78l0%2c-156.02c0%2c-7.06 -5.72%2c-12.78 -12.78%2c-12.78'/%3e %3cpath fill='white' d='M122.75%2c167.37h17.9v41.86h-17.9z'/%3e %3cpath fill='white' d='M99.65%2c186.32h17.9v22.91h-17.9z'/%3e %3cpath fill='white' d='M145.86%2c176.39h17.91v32.84h-17.91z'/%3e %3cpath fill='white' d='M168.98%2c162.08h17.9v47.15h-17.9z'/%3e %3cpath fill='white' d='M154.28%2c160.54l-23.11%2c-19.05l-33.7%2c32.35l4.22%2c4.41l29.79%2c-28.61l23.11%2c19.05l32.94%2c-31.59l-4.22%2c-4.4l-29.03%2c27.84Z'/%3e%3c/svg%3e",Kq="data:image/svg+xml,%3csvg id='problem' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 292 292'%3e %3cpath id='background' fill='%23a154a1' d='M145.63%2c0c-80.43%2c0 -145.63%2c65.2 -145.63%2c145.63c0%2c80.43 65.2%2c145.64 145.63%2c145.64c80.43%2c0 145.63%2c-65.21 145.63%2c-145.64c0%2c-80.43 -65.2%2c-145.63 -145.63%2c-145.63'/%3e %3cpath fill='white' d='M255.86%2c145.51l-59.15%2c0l0%2c-59.17l-50.28%2c0l0%2c59.17l-59.17%2c0l0%2c50.29l59.17%2c0l0%2c59.15l50.28%2c0l0%2c-59.15l59.15%2c0l0%2c-50.29Z'/%3e %3cpath fill='white' d='M106.17%2c21.07l-18.11%2c31.87l-35.37%2c-11.72l9.19%2c36.12l-33.17%2c15.85l32.18%2c18.93l-12.74%2c36.64l29.72%2c-12.86l-19.5%2c3.14l11.51%2c-30.58l-24.34%2c-14.36l25.12%2c-13.03l-7.39%2c-29.37l28.85%2c9.79l13.73%2c-25.71l13.06%2c27.38l31.18%2c-9.73l-4.48%2c20.11l14.34%2c-29.12l-36.92%2c9.79l-16.86%2c-33.16Z'/%3e %3cpath fill='white' d='M95.58%2c69.15l3.06%2c40.67l12.94%2c0l3.07%2c-40.67l-19.07%2c0Z'/%3e %3cpath fill='white' d='M105.11%2c114.84c-4.38%2c0 -7.93%2c3.55 -7.93%2c7.93c0%2c4.38 3.55%2c7.93 7.93%2c7.93c4.37%2c0 7.92%2c-3.55 7.92%2c-7.93c0%2c-4.38 -3.55%2c-7.93 -7.92%2c-7.93'/%3e%3c/svg%3e",Jq="data:image/svg+xml,%3csvg id='procedure' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 292 292'%3e %3cpath id='background' fill='%234eb848' d='M145.63%2c0c-80.43%2c0 -145.63%2c65.2 -145.63%2c145.63c0%2c80.44 65.2%2c145.64 145.63%2c145.64c80.43%2c0 145.63%2c-65.21 145.63%2c-145.64c0%2c-80.43 -65.2%2c-145.63 -145.63%2c-145.63'/%3e %3cpath fill='white' d='M178.18%2c61.38c12.86%2c-12.86 33.78%2c-12.86 46.63%2c0l4.26%2c4.26c12.86%2c12.86 12.86%2c33.78 0%2c46.64l-18.45%2c18.45l7.24%2c7.24l0.01%2c0l18.44%2c-18.44c16.84%2c-16.84 16.84%2c-44.26 0%2c-61.11l-4.26%2c-4.26c-16.85%2c-16.86 -44.26%2c-16.86 -61.1%2c0l-18.44%2c18.44l7.23%2c7.23l18.44%2c-18.44Z'/%3e %3cpath fill='white' d='M130.79%2c210.57l-18.44%2c18.44c-12.86%2c12.86 -33.78%2c12.86 -46.64%2c0l-4.26%2c-4.26c-12.86%2c-12.86 -12.86%2c-33.78 0%2c-46.64l18.45%2c-18.44l-7.24%2c-7.23l-18.44%2c18.45c-16.86%2c16.85 -16.86%2c44.26 0%2c61.11l4.26%2c4.26c16.85%2c16.85 44.26%2c16.85 61.1%2c0.01l18.44%2c-18.44l-0.01%2c-0.01l-7.23%2c-7.23Z'/%3e %3cpath fill='white' d='M229.08%2c224.75l-4.26%2c4.27c-12.86%2c12.86 -33.78%2c12.86 -46.63%2c0l-25.67%2c-25.68l50.9%2c-50.91l25.67%2c25.68c12.86%2c12.87 12.86%2c33.78 0%2c46.64M87.14%2c137.96l-25.68%2c-25.68c-12.85%2c-12.86 -12.85%2c-33.78 0%2c-46.64l4.26%2c-4.26c12.87%2c-12.86 33.78%2c-12.86 46.64%2c0l25.68%2c25.67l-50.9%2c50.91ZM236.31%2c170.88l-25.68%2c-25.69l-65.36%2c-65.36l-25.68%2c-25.67c-16.84%2c-16.85 -44.25%2c-16.85 -61.1%2c0l-4.26%2c4.26c-16.86%2c16.85 -16.86%2c44.27 0%2c61.11l25.67%2c25.67l65.36%2c65.38l25.67%2c25.68c16.84%2c16.85 44.26%2c16.85 61.11%2c-0.01l4.26%2c-4.26c16.85%2c-16.85 16.85%2c-44.26 0%2c-61.11'/%3e %3cpath fill='white' d='M121.51%2c93.92c1.88%2c-1.88 1.88%2c-4.93 0%2c-6.82c-1.88%2c-1.88 -4.93%2c-1.88 -6.81%2c0c-1.88%2c1.88 -1.88%2c4.93 0%2c6.82c1.88%2c1.88 4.94%2c1.88 6.81%2c0'/%3e %3cpath fill='white' d='M87.18%2c59.58c-1.89%2c1.88 -1.89%2c4.94 0%2c6.82c1.89%2c1.88 4.94%2c1.88 6.82%2c0c1.88%2c-1.88 1.88%2c-4.93 0%2c-6.82c-1.88%2c-1.88 -4.93%2c-1.88 -6.82%2c0'/%3e %3cpath fill='white' d='M87.18%2c114.62c-1.89%2c1.88 -1.89%2c4.94 0%2c6.82c1.89%2c1.88 4.94%2c1.88 6.82%2c0c1.88%2c-1.88 1.88%2c-4.93 0%2c-6.82c-1.88%2c-1.88 -4.93%2c-1.88 -6.82%2c0'/%3e %3cpath fill='white' d='M59.66%2c87.11c-1.89%2c1.88 -1.89%2c4.93 0%2c6.82c1.88%2c1.88 4.94%2c1.88 6.82%2c0c1.88%2c-1.88 1.88%2c-4.93 0%2c-6.82c-1.88%2c-1.88 -4.94%2c-1.88 -6.82%2c0'/%3e %3cpath fill='white' d='M93.94%2c93.99c1.88%2c-1.88 1.88%2c-4.94 0%2c-6.82c-1.89%2c-1.88 -4.94%2c-1.88 -6.82%2c0c-1.88%2c1.88 -1.88%2c4.94 0%2c6.82c1.88%2c1.88 4.93%2c1.88 6.82%2c0'/%3e %3cpath fill='white' d='M230.88%2c196.47c-1.88%2c-1.88 -4.94%2c-1.88 -6.82%2c0c-1.89%2c1.88 -1.89%2c4.94 0%2c6.82c1.88%2c1.88 4.93%2c1.88 6.82%2c0c1.88%2c-1.88 1.89%2c-4.94 0%2c-6.82'/%3e %3cpath fill='white' d='M196.53%2c168.94c-1.88%2c1.88 -1.88%2c4.94 0%2c6.82c1.88%2c1.89 4.93%2c1.89 6.82%2c0c1.89%2c-1.88 1.89%2c-4.93 0%2c-6.82c-1.88%2c-1.88 -4.93%2c-1.88 -6.82%2c0'/%3e %3cpath fill='white' d='M196.53%2c224c-1.88%2c1.88 -1.88%2c4.93 0%2c6.81c1.88%2c1.88 4.93%2c1.88 6.82%2c0c1.89%2c-1.88 1.89%2c-4.93 0%2c-6.81c-1.88%2c-1.89 -4.93%2c-1.89 -6.82%2c0'/%3e %3cpath fill='white' d='M169.01%2c196.47c-1.88%2c1.88 -1.88%2c4.94 0%2c6.82c1.89%2c1.88 4.93%2c1.88 6.82%2c0c1.88%2c-1.88 1.88%2c-4.94 0%2c-6.82c-1.89%2c-1.88 -4.93%2c-1.88 -6.82%2c0'/%3e %3cpath fill='white' d='M203.29%2c203.35c1.88%2c-1.88 1.88%2c-4.94 0%2c-6.82c-1.88%2c-1.89 -4.93%2c-1.89 -6.82%2c0c-1.88%2c1.87 -1.88%2c4.93 0%2c6.82c1.89%2c1.88 4.94%2c1.88 6.82%2c0'/%3e%3c/svg%3e",Qq="data:image/svg+xml,%3csvg viewBox='0 0 292 292' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3e %3cg id='Page-1' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3e %3cg id='immunizations'%3e %3cpath d='M145.63%2c-2.84217094e-14 C65.2%2c-2.84217094e-14 0%2c65.2 0%2c145.63 C0%2c226.07 65.2%2c291.28 145.63%2c291.28 C226.06%2c291.28 291.26%2c226.07 291.26%2c145.63 C291.26%2c65.2 226.06%2c-2.84217094e-14 145.63%2c-2.84217094e-14' id='background' fill='%233054A5' fill-rule='nonzero'%3e%3c/path%3e %3cpath d='M197.11978%2c37.7935761 L197.381623%2c38.0096942 L243.102486%2c76.374054 C247.799291%2c80.3151412 248.02423%2c84.81633 243.777303%2c89.8776203 C239.603599%2c94.851647 235.247384%2c95.4369604 230.708659%2c91.6335605 L230.46961%2c91.4293291 L214.684717%2c110.241032 L237.313265%2c129.228639 C245.330865%2c135.956204 236.000124%2c147.238973 227.954658%2c140.870269 L227.711269%2c140.671852 L212.127928%2c127.595877 L123.611055%2c233.086178 C119.468352%2c238.023259 114.964724%2c238.522176 110.100172%2c234.582929 L109.848235%2c234.375217 L94.5566334%2c221.544039 L68.9882949%2c252.015199 L67.2926598%2c224.960953 L80.2399786%2c209.53094 L64.5148376%2c196.33598 C59.3405626%2c191.994247 58.7477203%2c187.359104 62.7363106%2c182.430551 L62.9430687%2c182.179694 L151.459942%2c76.6893919 C146.435251%2c72.4731754 141.379204%2c68.3109956 136.2918%2c64.2028525 C128.737006%2c58.10226 138.305031%2c46.5484907 145.786436%2c52.4344647 L146.012487%2c52.6181893 L168.963853%2c71.8766726 L184.748747%2c53.0649694 C179.431643%2c48.749482 178.896554%2c44.0610931 183.143481%2c38.9998028 C187.319626%2c34.0228673 191.978392%2c33.6207917 197.11978%2c37.7935761 Z M159.361857%2c83.3198861 L70.7832683%2c188.883738 L116.504132%2c227.248097 L138.334785%2c201.231338 L124.560663%2c189.673477 C116.651559%2c183.03695 125.814437%2c171.956435 133.750199%2c178.239948 L133.990282%2c178.435695 L147.764404%2c189.993556 L157.167266%2c178.787661 L150.889924%2c173.520346 C143.571138%2c167.379155 153.092938%2c155.456529 160.665086%2c161.412069 L160.893929%2c161.598036 L167.171271%2c166.865352 L176.262824%2c156.030462 L162.488702%2c144.472601 C155.169916%2c138.33141 164.788317%2c126.720013 172.154559%2c132.507379 L172.377069%2c132.688103 L186.151191%2c144.245964 L205.082721%2c121.684246 L159.361857%2c83.3198861 Z M192.439376%2c59.4084639 L176.482316%2c78.3769286 L206.864349%2c103.805572 L222.821409%2c84.8371072 L192.439376%2c59.4084639 Z' id='Syringe' fill='white'%3e%3c/path%3e %3c/g%3e %3c/g%3e%3c/svg%3e";function eH(t){var n=s(),r=n[0],i=n[1];function o(){if("NoData"!=t.previewState){if("Default"!=t.previewState){var e=new URLSearchParams({View:t.concept}).toString();return b.invokeCustomApi("HealthAndWellnessApi.PatientEventsPreview","GET",e,!0).then((function(e){i(e)}))}i(function(e){switch(e){case"Medications":return{PreviewValues:["atorvastatin 10 MG Oral Tablet","Metformin hydrochloride 500 MG Oral Tablet","atorvastatin 40 MG Oral Tablet"],Count:67};case"Conditions":return{PreviewValues:["Hypertension","Hyperlipidemia","Diabetes"],Count:12};case"Allergies":return{PreviewValues:["Penicillin","Dust","Pollen"],Count:3};case"Immunizations":return{PreviewValues:["Influenza virus vaccine","Tetanus and diphtheria toxoids - preservative free","Pneumococcal conjugate vaccine"],Count:3};case"Reports":return{PreviewValues:["Diagnostic X-Ray","Operative Note"],Count:3};case"Procedures":return{PreviewValues:["INJ TENDON SHEATH/LIGAMENT","DRAIN/INJ JOINT/BURSA W/US","INJ FOR TENDON ORIGIN/INSRT"],Count:3}}}(t.concept))}else i({PreviewValues:[],Count:0})}return l((function(){return o(),b.on("externalAccountSyncComplete",o),b.on("applicationDidBecomeVisible",o),function(){b.off("externalAccountSyncComplete",o),b.off("applicationDidBecomeVisible",o)}}),[t.concept]),r?r.PreviewValues.length?e.createElement(D,{indicatorPosition:t.indicatorPosition,bottomBorder:!0,indicatorValue:r.Count,className:"mdhui-health-preview-section",title:function(){switch(t.concept){case"Medications":return br["medications-title"];case"Immunizations":return br["immunizations-title"];case"Reports":return br["reports-title"];case"Allergies":return br["allergies-title"];case"Conditions":return br["conditions-title"];case"Procedures":return br["procedures-title"]}}(),titleIcon:e.createElement("img",{className:"mdhui-health-preview-icon",src:function(){switch(t.concept){case"Medications":return Xq;case"Immunizations":return Qq;case"Reports":return Zq;case"Allergies":return Yq;case"Conditions":return Kq;case"Procedures":return Jq}}()}),onClick:function(){return t.onClick()}},e.createElement("div",null,r.PreviewValues.map((function(t){return e.createElement("div",{key:t,className:"mdhui-health-preview-item"},t)})))):null:e.createElement("div",{className:"mdhui-health-preview-section"},e.createElement(I,null))}k(".mdhui-health-preview-section .mdhui-health-preview-icon {\n width: 15px;\n height: 15px;\n margin-right: 8px;\n}\n\n.mdhui-health-preview-section .mdhui-health-preview-item {\n white-space: nowrap;\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n margin-bottom: 2px;\n margin-top: 2px;\n font-size: .82em;\n color: var(--mdhui-text-color-2);\n box-sizing: border-box;\n}\n\n.mdhui-health-preview-section .mdhui-health-preview-item:first-child {\n margin-top: 4px;\n}");k(".mdhui-lab-results-summary {\n padding: 16px;\n background: var(--mdhui-background-color-0);\n position: relative;\n width: 100%;\n}\n\n.mdhui-lab-results-summary .mdhui-hw-section-header .mdhui-hw-section-header-icon {\n position: absolute;\n left: 0;\n top: 0;\n width: 15px;\n}\n\n.mdhui-lab-results-summary .mdhui-important-labs {\n background: var(--mdhui-background-color-0);\n}\n\n.mdhui-hw-section-indicator {\n position: absolute;\n right: 16px;\n top: 16px;\n font-size: 16px;\n color: var(--mdhui-text-color-3);\n}\n\n.mdhui-lab-results-values-container {\n margin-left: -16px;\n margin-right: -16px;\n overflow-y: hidden;\n margin-bottom: -16px;\n width: calc(100% + 32px);\n}\n\n.mdhui-lab-results-values-container.no-overflow {\n overflow-x: hidden;\n}\n\n.mdhui-lab-results-values-slider {\n padding-left: 8px;\n width: 10000px;\n}\n\n.mdhui-lab-results-values-column {\n width: 13em;\n min-width: 160px;\n border-right: solid 1px var(--mdhui-border-color-0);\n float: left;\n}\n\n.mdhui-lab-results-values-column:last-child {\n border: none;\n}");var tH="data:image/svg+xml,%3csvg id='labreport' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 292 292'%3e %3cpath id='background' fill='%230e90c0' d='M145.6%2c0c-80.41%2c0 -145.6%2c65.2 -145.6%2c145.63c0%2c80.44 65.2%2c145.65 145.6%2c145.65c80.43%2c0 145.63%2c-65.21 145.63%2c-145.65c0%2c-80.43 -65.2%2c-145.63 -145.63%2c-145.63'/%3e %3cpath fill='white' d='M117.4%2c168.37c0%2c-5.12 4.16%2c-9.25 9.26%2c-9.25c5.12%2c0 9.26%2c4.14 9.26%2c9.25c0%2c5.13 -4.14%2c9.28 -9.26%2c9.28c-5.11%2c0 -9.26%2c-4.15 -9.26%2c-9.28M125.4%2c118.36l9.09%2c-15.75l0%2c-28.86l29.31%2c0l0%2c28.86l9.08%2c15.75c4.56%2c7.87 10.48%2c18.16 16.48%2c28.53l-80.42%2c0c5.99%2c-10.37 11.93%2c-20.66 16.46%2c-28.53M174.14%2c99.85l0%2c-26.09l0.28%2c0c10.95%2c0 19.83%2c-7.91 19.83%2c-17.67c0%2c-9.76 -8.88%2c-17.67 -19.83%2c-17.67l-54%2c0c-10.95%2c0 -19.83%2c7.91 -19.83%2c17.67c0%2c9.76 8.87%2c17.67 19.83%2c17.67l3.74%2c0l0%2c26.09l-7.71%2c13.34c-9.48%2c16.43 -25%2c43.31 -34.48%2c59.74l-10.98%2c19.02c-3.1%2c5.37 -4.74%2c10.73 -4.74%2c15.86c0%2c3.14 0.63%2c6.18 1.92%2c8.93c1.92%2c4.13 5.31%2c7.46 9.54%2c9.61c4.24%2c2.17 9.31%2c3.22 15%2c3.23l112.89%2c0c7.58%2c-0.01 14.1%2c-1.9 18.93%2c-5.76c2.4%2c-1.93 4.33%2c-4.34 5.61%2c-7.08c1.28%2c-2.75 1.93%2c-5.79 1.92%2c-8.93c0%2c-5.13 -1.64%2c-10.49 -4.74%2c-15.86l-10.99%2c-19.02c-9.47%2c-16.42 -24.99%2c-43.3 -34.47%2c-59.74l-7.7%2c-13.34Z'/%3e%3c/svg%3e";k(".mdhui-lab-result-with-sparkline {\n padding: 8px;\n padding-top: 16px;\n height: 5.64em;\n box-sizing: border-box;\n position: relative;\n}\n\n.mdhui-lab-result-with-sparkline:first-child {\n border-bottom: solid 1px var(--mdhui-border-color-0);\n}\n\n.mdhui-lab-result-with-sparkline .mdhui-lab-result-with-sparkline-title {\n text-transform: uppercase;\n font-size: .7em;\n color: var(--mdhui-text-color-2);\n white-space: nowrap;\n width: calc(100% - 16px);\n text-overflow: ellipsis;\n overflow: hidden;\n}\n\n.mdhui-lab-result-with-sparkline .mdhui-lab-result-with-sparkline-flex {\n display: flex;\n gap: 8px;\n flex-direction: row;\n justify-content: space-between;\n}\n\n.mdhui-lab-result-with-sparkline .mdhui-lab-result-with-sparkline-value {\n padding-top: 8px;\n}\n\n.mdhui-lab-result-with-sparkline .mdhui-lab-result-with-sparkline-quantity {\n font-size: 1.23em;\n font-weight: 700;\n max-width: 3.8em;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.mdhui-lab-result-with-sparkline .mdhui-lab-result-with-sparkline-date {\n font-size: .7em;\n}\n\n.mdhui-lab-result-with-sparkline .mdhui-lab-result-with-sparkline-container {\n position: relative;\n padding: 8px;\n padding-right: 2em;\n}\n\n.mdhui-lab-result-with-sparkline .mdhui-lab-result-with-sparkline-sparkline {\n width: 70px;\n height: 40px;\n}\n\n.mdhui-lab-result-with-sparkline .mdhui-lab-result-with-sparkline-sparkline rect {\n opacity: .1;\n}\n\n.mdhui-lab-result-with-sparkline .mdhui-lab-result-with-sparkline-term-info {\n color: var(--mdhui-color-primary);\n font-size: 24px;\n opacity: .8;\n position: absolute;\n right: 0;\n top: calc(50% - 15px);\n cursor: pointer;\n}\n\n.mdhui-lab-result-with-sparkline .mdhui-lab-result-with-sparkline-acuity {\n display: inline-block;\n border-radius: 2px;\n font-size: 0.7em;\n color: #FFF;\n padding-left: 2px;\n padding-right: 2px;\n height: 18px;\n vertical-align: middle;\n line-height: 1.3em;\n}\n\n.mdhui-lab-result-with-sparkline .mdhui-lab-result-with-sparkline-acuity.mdhui-lab-result-with-sparkline-acuity-high {\n background-color: var(--mdhui-color-danger);\n}\n\n.mdhui-lab-result-with-sparkline .mdhui-lab-result-with-sparkline-acuity.mdhui-lab-result-with-sparkline-acuity-low {\n background-color: var(--mdhui-color-primary);\n}");var nH={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]};function rH(t){var n=s(0),r=n[0],i=n[1],o=s(0),c=o[0],u=o[1],f=a(null);return l((function(){var e,t;i((null===(e=f.current)||void 0===e?void 0:e.getBoundingClientRect().width)||0),u((null===(t=f.current)||void 0===t?void 0:t.getBoundingClientRect().height)||0)})),e.createElement("div",{className:"mdhui-lab-result-with-sparkline"},e.createElement("div",{className:"mdhui-lab-result-with-sparkline-title"},t.labResultValue.Type),e.createElement("div",{className:"mdhui-lab-result-with-sparkline-flex"},e.createElement("div",{className:"mdhui-lab-result-with-sparkline-value"},e.createElement("div",{className:"mdhui-lab-result-with-sparkline-quantity"},e.createElement("span",{style:{verticalAlign:"middle"}},t.labResultValue.MostRecentValue)," ","High"==t.labResultValue.AcuityHighlight&&e.createElement("span",{className:"mdhui-lab-result-with-sparkline-acuity mdhui-lab-result-with-sparkline-acuity-high"},"H"),"Low"==t.labResultValue.AcuityHighlight&&e.createElement("span",{className:"mdhui-lab-result-with-sparkline-acuity mdhui-lab-result-with-sparkline-acuity-low"},"L")),e.createElement("div",{className:"mdhui-lab-result-with-sparkline-date"},nt(pt(t.labResultValue.MostRecentDate),"MM/dd/yy"))),e.createElement("div",{className:"mdhui-lab-result-with-sparkline-container"},!!t.labResultValue.SparklinePoints.length&&e.createElement("svg",{ref:f,className:"mdhui-lab-result-with-sparkline-sparkline"},t.labResultValue.NormalRangeTopY&&e.createElement("rect",{x:"0",y:"0",width:r,height:t.labResultValue.NormalRangeTopY*c,fill:"var(--mdhui-color-danger)"}),t.labResultValue.NormalRangeBottomY&&e.createElement("rect",{x:"0",y:t.labResultValue.NormalRangeBottomY*c,width:r,height:t.labResultValue.NormalRangeBottomY*c,fill:"var(--mdhui-color-primary)"}),t.labResultValue.SparklinePoints.slice(0,t.labResultValue.SparklinePoints.length-1).map((function(n,i){return e.createElement("line",{key:i,x1:n.X*r,y1:n.Y*c,x2:t.labResultValue.SparklinePoints[i+1].X*r,y2:t.labResultValue.SparklinePoints[i+1].Y*c,style:{stroke:"var(--mdhui-border-color-2)",strokeWidth:2}})})),e.createElement("circle",{cx:t.labResultValue.SparklinePoints[t.labResultValue.SparklinePoints.length-1].X*r,cy:t.labResultValue.SparklinePoints[t.labResultValue.SparklinePoints.length-1].Y*c,r:"3",fill:"var(--mdhui-color-primary)"})),!!t.labResultValue.TermInformation&&e.createElement("div",{className:"mdhui-lab-result-with-sparkline-term-info",onClick:function(e){return function(e,n){e.preventDefault(),e.stopPropagation(),t.onViewTermInfo(n)}(e,t.labResultValue.TermInformation)}},e.createElement(P,{icon:nH})))))}var iH={RecentLabs:{TotalLabReports:53,RecentLabReports:["CORONAVIRUS (COVID-19), PCR - Final result","VWP","CBC"]},ImportantLabs:[]},oH={RecentLabs:{TotalLabReports:53,RecentLabReports:["CORONAVIRUS (COVID-19), PCR - Final result","VWP","CBC"]},ImportantLabs:[[{Type:"WBC count",MostRecentValue:"16.6",MostRecentDate:"2021-03-03T23:32:00-05:00",AcuityHighlight:"High",SparklinePoints:[],NormalRangeTopY:null,NormalRangeBottomY:null,TermInformation:{TermNamespace:"LOINC",TermCode:"6690-2",TermFamily:"Reference"}},{Type:"HDL",MostRecentValue:"45.0",MostRecentDate:"2021-02-27T08:25:00-05:00",AcuityHighlight:"Normal",SparklinePoints:[{X:.2660136408613797,Y:.7777777777777778},{X:.2660160174679657,Y:.08333333333333337},{X:.3912703143726733,Y:.8935185185185185},{X:.4542408824767116,Y:.8587962962962963}],NormalRangeTopY:null,NormalRangeBottomY:.9166666666666666,TermInformation:{TermNamespace:"LOINC",TermCode:"2085-9",TermFamily:"Reference"}}],[{Type:"Cholesterol",MostRecentValue:"135.0",MostRecentDate:"2021-02-27T08:25:00-05:00",AcuityHighlight:"Normal",SparklinePoints:[{X:.2660136408613797,Y:.39583333333333337},{X:.3912703143726733,Y:.39583333333333337},{X:.4542408824767116,Y:.35416666666666663}],NormalRangeTopY:.08333333333333337,NormalRangeBottomY:.9166666666666666,TermInformation:{TermNamespace:"LOINC",TermCode:"2093-3",TermFamily:"Reference"}},{Type:"LDL",MostRecentValue:"152.0",MostRecentDate:"2021-02-27T08:25:00-05:00",AcuityHighlight:"High",SparklinePoints:[{X:.2660136408613797,Y:.08333333333333337},{X:.3912703143726733,Y:.16935483870967738},{X:.4542408824767116,Y:.09946236559139787}],NormalRangeTopY:.217741935483871,NormalRangeBottomY:.9166666666666666,TermInformation:{TermNamespace:"LOINC",TermCode:"13457-7",TermFamily:"Reference"}}],[{Type:"Glucose",MostRecentValue:"67",MostRecentDate:"2020-04-22T16:27:00+00:00",AcuityHighlight:"Normal",SparklinePoints:[{X:.24160208865208618,Y:.9166666666666667}],NormalRangeTopY:.08333333333333348,NormalRangeBottomY:.7670940170940171,TermInformation:{TermNamespace:"LOINC",TermCode:"2345-7",TermFamily:"Reference"}}]]};function aH(t){var n,r,i,o=s(null),a=o[0],c=o[1],u=s(!1),f=u[0],p=u[1];function d(){if("ImportantLabs"!=t.previewState)if("RecentLabs"!=t.previewState){if("NoData"!=t.previewState){return b.invokeCustomApi("HealthAndWellnessApi.LabResults","GET","",!0).then((function(e){c(e)}))}c({ImportantLabs:[],RecentLabs:{RecentLabReports:[]}})}else c(iH);else c(oH)}l((function(){return h()>0&&p(!0),d(),b.on("externalAccountSyncComplete",d),b.on("applicationDidBecomeVisible",d),function(){b.off("externalAccountSyncComplete",d),b.off("applicationDidBecomeVisible",d)}}),[]);var h=function(){var e,t=h.width;return void 0===t&&((e=document.createElement("div")).innerHTML='<div style="width:50px;height:50px;position:absolute;left:-50px;top:-50px;overflow:auto;"><div style="width:1px;height:100px;"></div></div>',e=e.firstChild,document.body.appendChild(e),t=h.width=e.offsetWidth-e.clientWidth,document.body.removeChild(e)),t};if(!a)return e.createElement("div",{className:"mdhui-health-preview-section"},e.createElement(I,null));if(a&&!a.ImportantLabs.length&&!(null===(n=a.RecentLabs)||void 0===n?void 0:n.RecentLabReports.length))return null;return e.createElement(D,{bottomBorder:!0,title:br["lab-results-title"],titleIcon:e.createElement("img",{className:"mdhui-health-preview-icon",src:tH,alt:"Lab Results"}),onClick:function(){a&&t.onClick()},indicatorValue:null===(r=null==a?void 0:a.RecentLabs)||void 0===r?void 0:r.TotalLabReports,indicatorPosition:(null===(i=a.ImportantLabs)||void 0===i?void 0:i.length)?"topRight":void 0,className:"mdhui-lab-results-summary mdhui-health-preview-section"},!a&&e.createElement(I,null),a&&e.createElement(e.Fragment,null,!!a.ImportantLabs.length&&e.createElement("div",{className:"mdhui-lab-results-values-container"+(f?" no-overflow":""),style:{height:5.64*a.ImportantLabs[0].length+"em"}},e.createElement("div",{className:"mdhui-lab-results-values-slider",style:{width:13*a.ImportantLabs.length+.5+"em"}},a.ImportantLabs.map((function(n,r){return e.createElement("div",{key:r,className:"mdhui-lab-results-values-column"},n.map((function(n,r){return e.createElement(rH,{onViewTermInfo:function(e){return t.onViewTermInfo(e)},labResultValue:n,key:r})})))})))),!a.ImportantLabs.length&&e.createElement("div",null,a.RecentLabs.RecentLabReports.map((function(t){return e.createElement("div",{key:t,className:"mdhui-health-preview-item"},t)})))))}k(".mdhui-most-recent-notification .mdhui-notification {\n border-bottom: solid 1px var(--mdhui-border-color-0);\n}\n\n.mdhui-most-recent-notification .mdhui-action .subtitle {\n color: var(--mdhui-color-primary);\n}");var cH={id:"1",identifier:"SurveyReminder",sentDate:"2022-03-10T13:37:41.16+00:00",statusCode:"Succeeded",type:"Push",content:{title:"Please Complete Your Surveys",body:"Your latest surveys are due"},recipients:[],contentVersion:0};function sH(t){var n=s(null),r=n[0],i=n[1];function o(){if("Default"!=t.previewState){var e={limit:1,statusCode:"Succeeded"};if(t.hideAfterHours){var n=Y(new Date,{hours:-1*t.hideAfterHours});e.sentAfter=n.toISOString()}t.notificationType&&(e.type=t.notificationType),b.queryNotifications(e).then((function(e){e.notifications.length&&i(e.notifications[0])}))}else i(cH)}return l((function(){return o(),b.on("applicationDidBecomeVisible",o),function(){b.off("applicationDidBecomeVisible",o)}}),[]),r?e.createElement("div",{className:"mdhui-most-recent-notification"},e.createElement(Or,{notification:r}),t.onViewMore&&e.createElement(D,{subtitle:br["all-notifications"],onClick:t.onViewMore})):null}var lH=[{id:"1",identifier:"SurveyReminder",sentDate:(new Date).toISOString(),statusCode:"Succeeded",type:"Push",content:{body:"Thank you for completing your surveys!"},recipients:[],contentVersion:1},{id:"2",identifier:"SurveyReminder",sentDate:Y(new Date,{hours:-1}).toISOString(),statusCode:"Succeeded",type:"Push",content:{title:"Please Complete Your Surveys",body:"Your latest surveys are due"},recipients:[],contentVersion:1},{id:"4",identifier:"SurveyReminder",sentDate:Y(new Date,{days:-1}).toISOString(),statusCode:"Succeeded",type:"Push",content:{title:"Have you received your Fitbit? Connect it!"},recipients:[],contentVersion:1},{id:"5",identifier:"SurveyReminder",sentDate:Y(new Date,{days:-2}).toISOString(),statusCode:"Succeeded",type:"Push",content:{title:"Consent and get a Fitbit",body:"Are you missing out on a Fitbit device? Complete your consent - you could get a new Fitbit at no cost to you!"},recipients:[],contentVersion:1}];function uH(t){var n=a(null);return Oq((function(){n.current&&function(e){var t=e.getBoundingClientRect(),n=Math.max(document.documentElement.clientHeight,window.innerHeight);return!(t.bottom<0||t.top-n>=0)}(n.current)&&t.onTrigger()}),t.enabled?1e3:null),e.createElement("div",null,t.enabled&&e.createElement("div",{style:{height:"0px"},ref:n}))}function fH(t){var n=s(!1),r=n[0],i=n[1],o=s(void 0),a=o[0],c=o[1],u=s(!1),f=u[0],p=u[1],d=s([]),h=d[0],m=d[1];function y(){if("Default"==t.previewState&&m(lH),t.previewState)return i(!1),void p(!0);if(!r&&!f){i(!0);var e={statusCode:"Succeeded",limit:10};t.notificationType&&(e.type=t.notificationType),a&&(e.pageID=a),b.queryNotifications(e).then((function(e){m(h.concat(e.notifications)),i(!1),e.nextPageID||p(!0),c(e.nextPageID)}))}}return l((function(){y();var e=function(){m([]),c(void 0),p(!1),y()};return b.on("applicationDidBecomeVisible",e),function(){b.off("applicationDidBecomeVisible",e)}}),[]),e.createElement("div",{className:"mdhui-notification-list"},h&&h.map((function(t){return e.createElement(Pt,{key:t.id.toString()},e.createElement(Or,{notification:t}))})),r&&!f&&e.createElement(I,null),!r&&f&&0==h.length&&e.createElement(Pt,null,e.createElement(Nr,null,br["no-notifications-received"])),e.createElement(uH,{onTrigger:y,enabled:!r&&!f}))}function pH(t){var n=s(""),r=n[0],i=n[1];return l((function(){b.getDeviceInfo().then((function(e){e&&i(e.platform)}))}),[]),-1==t.platforms.indexOf(r)?null:e.createElement("div",null,t.children)}function dH(t){var n=s(!0),r=n[0],i=n[1],o=s(null),a=o[0],c=o[1];function u(){if("Default"==t.previewState)return c({name:"My Project Name",organization:{name:"My Organization Name",color:"#0076BE",logoUrl:"https://rkstudio.careevolution.com/inv/api/researchkit/organizationbrandingimage/1e1853a2-50d3-4e26-863d-d8546bce63e3"}}),void i(!1);b.getProjectInfo().then((function(e){c(e),i(!1)}))}l((function(){return u(),b.on("applicationDidBecomeVisible",u),function(){b.off("applicationDidBecomeVisible",u)}}),[]);var f=null==a?void 0:a.organization.logoUrl;return f&&!(null==f?void 0:f.startsWith("http"))&&(f=b.baseUrl+(null==a?void 0:a.organization.logoUrl)),e.createElement("div",{className:"mdhui-project-header"},r&&e.createElement(I,null),!r&&a&&e.createElement("div",null,e.createElement("div",{style:{backgroundImage:"url('"+f+"')"},className:"logo"}),e.createElement("div",{className:"project-info"},e.createElement("div",{className:"project-name",style:{color:a.organization.color}},a.name),e.createElement("div",{className:"organization-name"},a.organization.name))))}k(".mdhui-project-header\n{\n padding: 16px;\n text-align: center;\n background: #FFF;\n border-bottom: solid 1px var(--mdhui-border-color-1);\n}\n\n .mdhui-project-header .logo\n {\n display: inline-block;\n width: 48px;\n height: 48px;\n background-size: contain;\n background-position: center center;\n background-repeat: no-repeat;\n vertical-align: middle;\n }\n\n .mdhui-project-header .project-info\n {\n display: inline-block;\n text-align: left;\n padding-left: 16px;\n vertical-align: top;\n padding-right: 16px;\n max-width: calc(100% - 80px);\n }\n\n .mdhui-project-header .project-info .project-name\n {\n font-weight: bold;\n font-size: 1.5em;\n max-width: 100%;\n }\n\n .mdhui-project-header .project-info .organization-name\n {\n max-width: 100%;\n color: #333;\n }\n");k(".mdhui-project-support>.title {\n font-weight: bold;\n padding: 16px;\n padding-bottom: 0;\n}\n\n.mdhui-project-support .mdhui-action {\n color: var(--mdhui-color-primary);\n border-bottom: solid 1px var(--mdhui-border-color-0);\n}\n\n.mdhui-project-support .mdhui-action .subtitle {\n color: var(--mdhui-color-primary);\n}");var hH={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="envelope",n=[128386,9993,61443],r="f0e0",i="M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4L236.8 313.6c11.4 8.5 27 8.5 38.4 0L492.8 150.4c12.1-9.1 19.2-23.3 19.2-38.4c0-26.5-21.5-48-48-48H48zM0 176V384c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V176L294.4 339.2c-22.8 17.1-54 17.1-76.8 0L0 176z";e.definition={prefix:"fas",iconName:t,icon:[512,512,n,r,i]},e.faEnvelope=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=i,e.aliases=n}(hH);var mH={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="globe",n=[127760],r="f0ac",i="M352 256c0 22.2-1.2 43.6-3.3 64H163.3c-2.2-20.4-3.3-41.8-3.3-64s1.2-43.6 3.3-64H348.7c2.2 20.4 3.3 41.8 3.3 64zm28.8-64H503.9c5.3 20.5 8.1 41.9 8.1 64s-2.8 43.5-8.1 64H380.8c2.1-20.6 3.2-42 3.2-64s-1.1-43.4-3.2-64zm112.6-32H376.7c-10-63.9-29.8-117.4-55.3-151.6c78.3 20.7 142 77.5 171.9 151.6zm-149.1 0H167.7c6.1-36.4 15.5-68.6 27-94.7c10.5-23.6 22.2-40.7 33.5-51.5C239.4 3.2 248.7 0 256 0s16.6 3.2 27.8 13.8c11.3 10.8 23 27.9 33.5 51.5c11.6 26 20.9 58.2 27 94.7zm-209 0H18.6C48.6 85.9 112.2 29.1 190.6 8.4C165.1 42.6 145.3 96.1 135.3 160zM8.1 192H131.2c-2.1 20.6-3.2 42-3.2 64s1.1 43.4 3.2 64H8.1C2.8 299.5 0 278.1 0 256s2.8-43.5 8.1-64zM194.7 446.6c-11.6-26-20.9-58.2-27-94.6H344.3c-6.1 36.4-15.5 68.6-27 94.6c-10.5 23.6-22.2 40.7-33.5 51.5C272.6 508.8 263.3 512 256 512s-16.6-3.2-27.8-13.8c-11.3-10.8-23-27.9-33.5-51.5zM135.3 352c10 63.9 29.8 117.4 55.3 151.6C112.2 482.9 48.6 426.1 18.6 352H135.3zm358.1 0c-30 74.1-93.6 130.9-171.9 151.6c25.5-34.2 45.2-87.7 55.3-151.6H493.4z";e.definition={prefix:"fas",iconName:t,icon:[512,512,n,r,i]},e.faGlobe=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=i,e.aliases=n}(mH);var yH={};function vH(t){var n=s(!0),r=n[0],i=n[1],o=s(null),a=o[0],c=o[1];function u(){if("Default"==t.previewState)return c({supportEmail:"test@example.com",supportPhone:"555-555-1212",learnMoreLink:"https://mydatahelps.org",learnMoreTitle:"Project Home Page"}),void i(!1);b.getProjectInfo().then((function(e){c(e),i(!1)}))}return l((function(){return u(),b.on("applicationDidBecomeVisible",u),function(){b.off("applicationDidBecomeVisible",u)}}),[]),!a||a.supportEmail||a.supportPhone||a.learnMoreLink&&a.learnMoreTitle?e.createElement("div",{className:"mdhui-project-support"},e.createElement("div",{className:"title"},br.support),r&&e.createElement(I,null),(null==a?void 0:a.learnMoreLink)&&(null==a?void 0:a.learnMoreTitle)&&e.createElement(D,{indicatorIcon:mH.faGlobe,subtitle:a.learnMoreTitle,onClick:function(){return b.openEmbeddedUrl(a.learnMoreLink)}}),(null==a?void 0:a.supportEmail)&&e.createElement(D,{indicatorIcon:hH.faEnvelope,subtitle:a.supportEmail,onClick:function(){return b.openExternalUrl("mailto:"+a.supportEmail)}}),(null==a?void 0:a.supportPhone)&&e.createElement(D,{indicatorIcon:yH.faPhone,subtitle:a.supportPhone,onClick:function(){return b.openExternalUrl("tel:"+a.supportPhone)}})):null}!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="phone",n=[128222,128379],r="f095",i="M164.9 24.6c-7.7-18.6-28-28.5-47.4-23.2l-88 24C12.1 30.2 0 46 0 64C0 311.4 200.6 512 448 512c18 0 33.8-12.1 38.6-29.5l24-88c5.3-19.4-4.6-39.7-23.2-47.4l-96-40c-16.3-6.8-35.2-2.1-46.3 11.6L304.7 368C234.3 334.7 177.3 277.7 144 207.3L193.3 167c13.7-11.2 18.4-30 11.6-46.3l-40-96z";e.definition={prefix:"fas",iconName:t,icon:[512,512,n,r,i]},e.faPhone=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=i,e.aliases=n}(yH);var gH={},bH={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="magnifying-glass",n=[128269,"search"],r="f002",i="M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z";e.definition={prefix:"fas",iconName:t,icon:[512,512,n,r,i]},e.faMagnifyingGlass=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=i,e.aliases=n}(bH),function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=bH;e.definition={prefix:t.prefix,iconName:t.iconName,icon:[t.width,t.height,t.aliases,t.unicode,t.svgPathData]},e.faSearch=e.definition,e.prefix=t.prefix,e.iconName=t.iconName,e.width=t.width,e.height=t.height,e.ligatures=t.aliases,e.unicode=t.unicode,e.svgPathData=t.svgPathData,e.aliases=t.aliases}(gH);k(".mdhui-provider-search .title {\n font-weight: bold;\n padding: 16px;\n}\n\n.mdhui-provider-search .search-bar-wrapper {\n text-align: left;\n box-sizing: border-box;\n font-weight: bold;\n border-bottom: solid 1px var(--mdhui-border-color-1);\n}\n\n.mdhui-provider-search .search-bar-wrapper .search-bar {\n position: relative;\n}\n\n.mdhui-provider-search .search-bar-wrapper .search-bar input {\n padding: 0;\n margin: 0;\n border: 0;\n width: 100%;\n line-height: 1.5em;\n padding-left: 40px;\n box-sizing: border-box;\n font-size: .88em;\n padding-top: 8px;\n padding-bottom: 8px;\n border: none;\n background: var(--mdhui-background-color-0);\n color: var(--mdhui-text-color-1);\n}\n\n.mdhui-provider-search .search-bar-wrapper .search-bar .fa-magnifying-glass {\n position: absolute;\n left: 16px;\n top: 12px;\n color: var(--mdhui-text-color-4);\n font-size: .8em;\n}\n\n.mdhui-provider-search .search-results .provider {\n border-bottom: solid 1px var(--mdhui-border-color-1);\n padding: 16px;\n position: relative;\n padding-right: 96px;\n cursor: pointer;\n font-size: .88em;\n line-height: 1.25em;\n width: 100%;\n}\n\n.mdhui-provider-search .search-results .provider .provider-logo {\n height: 37px;\n width: 64px;\n position: absolute;\n right: 16px;\n top: 8px;\n background-size: contain;\n background-repeat: no-repeat;\n background-position: center center;\n background-color:#FFF;\n border-radius: 4px;\n}\n\n.mdhui-provider-search .search-results .provider .provider-status {\n font-size: .88em;\n font-weight: bold;\n}\n\n.mdhui-provider-search .search-results .provider .provider-status.error-status {\n color: var(--mdhui-color-danger);\n}\n\n.mdhui-provider-search .search-results .provider .provider-status.connected-status {\n color: var(--mdhui-color-success);\n}");var xH=[{id:20,name:"1upHealth sandbox",category:"Health Plan",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/20/logo"},{id:13,name:"A Woman's Place, LLC",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/13/logo"},{id:130,name:"Abington Jefferson Health",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/130/logo"},{id:41,name:"Access Community Health Network",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/41/logo"},{id:125,name:"Aurora Health Care - myAurora",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/125/logo"},{id:1,name:"CareEvolution FHIR",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/1/logo"},{id:37,name:"Cedars-Sinai Health System",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/37/logo"},{id:27,name:"Maui Medical Group",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/27/logo"}],wH=0;function kH(t){var n=s({}),r=n[0],i=n[1],o=s([]),c=o[0],u=o[1],f=s(!0),p=f[0],d=f[1],h=s(""),m=h[0],y=h[1],g=s(0),x=g[0],w=g[1],k=s(0),S=k[0],_=k[1],O=a(m),A=100;function C(){return Rt(this,void 0,void 0,(function(){return Lt(this,(function(e){return b.getExternalAccounts().then((function(e){for(var t={},n=0;n<e.length;n++)t[e[n].provider.id]=e[n];i(t)})),[2]}))}))}function T(e){d(!0);var t=++wH;b.getExternalAccountProviders(e,null,A,x).then((function(e){t==wH&&(D(e.externalAccountProviders),_(e.totalExternalAccountProviders),d(!1))}))}function D(e){u(c.concat(e.filter((function(e){var n;return-1!=(null===(n=t.providerCategories)||void 0===n?void 0:n.indexOf(e.category))}))))}var j=v((function(){return e=T,void 0===(t=300)&&(t=300),function(){for(var r=this,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];clearTimeout(n),n=setTimeout((function(){return e.apply(r,i)}),t)};var e,t,n}),[]);function M(e){var n;n=e.target.value,O.current=n,y(n),u([]),w(0),t.previewState||j(e.target.value)}function N(){C().then((function(){T(O.current)}))}return l((function(){return function(){if("Default"==t.previewState)return D(xH),void d(!1);C().then((function(){T("")}))}(),b.on("applicationDidBecomeVisible",N),function(){b.off("applicationDidBecomeVisible",N)}}),[]),l((function(){p||T(O.current)}),[x]),e.createElement("div",{className:"mdhui-provider-search"},e.createElement("div",{className:"search-bar-wrapper"},e.createElement("div",{className:"search-bar"},e.createElement("input",{title:br.search,type:"text",value:m,onChange:function(e){return M(e)},placeholder:br.search,spellCheck:"false",autoComplete:"off",autoCorrect:"off",autoCapitalize:"off"}),e.createElement(P,{icon:gH.faSearch}))),e.createElement("div",{className:"search-results"},c&&c.map((function(t){return e.createElement(E,{key:t.id,className:"provider",onClick:function(){return e=t.id,void(r[e]&&"unauthorized"!=r[e].status||b.connectExternalAccount(e));var e}},t.logoUrl&&e.createElement("div",{className:"provider-logo",style:{backgroundImage:"url('"+t.logoUrl+"')"}}),e.createElement("div",{className:"provider-info"},e.createElement("div",{className:"provider-name"},t.name),r[t.id]&&"unauthorized"==r[t.id].status&&e.createElement("div",{className:"provider-status error-status"},br.reconnect),r[t.id]&&"unauthorized"!=r[t.id].status&&e.createElement("div",{className:"provider-status connected-status"},br.connected)))})),p&&e.createElement(I,null)),e.createElement(uH,{onTrigger:function(){w(x+1)},enabled:(x+1)*A<S}))}k(".mdhui-survey-task-list .mdhui-single-survey-task {\n border-bottom: solid 1px var(--mdhui-border-color-0);\n}\n\n.mdhui-survey-task-list .mdhui-single-survey-task:last-child {\n border: none;\n}\n\n.mdhui-survey-task-list .title {\n font-weight: bold;\n padding: 16px;\n padding-bottom: 0;\n}\n\n.mdhui-survey-task-list .empty-message {\n padding: 16px;\n font-size: .88em;\n}");var EH=[{id:"ecf8a7df-caa3-ec11-aaab-f47bb6835a10",surveyID:"53ad3e98-9777-ec11-aaa8-89aad5fbf200",surveyName:"Mood Survey",surveyDisplayName:"Mood Survey",surveyDescription:"3 minutes",status:"incomplete",hasSavedProgress:!1,dueDate:Y(new Date,{days:-1}).toISOString(),insertedDate:"2022-03-14T19:13:48.283Z",modifiedDate:"2022-03-14T19:13:48.283Z",linkIdentifier:"1"},{id:"e7f8a7df-caa3-ec11-aaab-f47bb6835a10",surveyID:"53ad3e98-9777-ec11-aaa8-89aad5fbf200",surveyName:"Pregnancy (Followup)",surveyDisplayName:"Pregnancy: Followup",surveyDescription:"3 minutes",status:"incomplete",hasSavedProgress:!1,dueDate:Y(new Date,{days:0}).toISOString(),insertedDate:"2022-03-14T19:13:48.283Z",modifiedDate:"2022-03-14T19:13:48.283Z",linkIdentifier:"1"},{id:"b1c9bcd2-80a4-ec11-aaab-f47bb6835a10",surveyID:"cd452353-7674-ec11-aaa8-89aad5fbf200",surveyName:"Alcohol and Tobacco",surveyDisplayName:"Alcohol and Tobacco",surveyDescription:"5 minutes",status:"incomplete",hasSavedProgress:!1,dueDate:Y(new Date,{days:1}).toISOString(),insertedDate:"2022-03-15T16:56:15.007Z",modifiedDate:"2022-03-15T16:56:15.007Z",linkIdentifier:"1"},{id:"2c9ab4d9-80a4-ec11-aaab-f47bb6835a10",surveyID:"a7f58ba8-9777-ec11-aaa8-89aad5fbf200",surveyName:"SDOH: Followup",surveyDisplayName:"Social Determinants of Health: Followup",surveyDescription:"5 minutes",status:"incomplete",hasSavedProgress:!1,dueDate:Y(new Date,{days:10}).toISOString(),insertedDate:"2022-03-15T16:56:26.703Z",modifiedDate:"2022-03-15T16:56:26.703Z",linkIdentifier:"1"}],SH=[{id:"2c9ab4d9-80a4-ec11-aaab-f47bb6835a10",surveyID:"a7f58ba8-9777-ec11-aaa8-89aad5fbf200",surveyName:"SDOH: Followup",surveyDisplayName:"Social Determinants of Health: Followup",surveyDescription:"5 minutes",status:"complete",endDate:(new Date).toISOString(),hasSavedProgress:!1,dueDate:Y(new Date,{days:10}).toISOString(),insertedDate:"2022-03-15T16:56:26.703Z",modifiedDate:"2022-03-15T16:56:26.703Z",linkIdentifier:"1"},{id:"b1c9bcd2-80a4-ec11-aaab-f47bb6835a10",surveyID:"cd452353-7674-ec11-aaa8-89aad5fbf200",surveyName:"Alcohol and Tobacco",surveyDisplayName:"Alcohol and Tobacco",surveyDescription:"5 minutes",status:"complete",hasSavedProgress:!1,endDate:Y(new Date,{days:-1}).toISOString(),dueDate:Y(new Date,{days:10}).toISOString(),insertedDate:"2022-03-15T16:56:15.007Z",modifiedDate:"2022-03-15T16:56:15.007Z",linkIdentifier:"1"},{id:"e7f8a7df-caa3-ec11-aaab-f47bb6835a10",surveyID:"53ad3e98-9777-ec11-aaa8-89aad5fbf200",surveyName:"Pregnancy (Followup)",surveyDisplayName:"Pregnancy: Followup",surveyDescription:"3 minutes",status:"complete",hasSavedProgress:!1,endDate:Y(new Date,{days:-2}).toISOString(),dueDate:Y(new Date,{days:10}).toISOString(),insertedDate:"2022-03-14T19:13:48.283Z",modifiedDate:"2022-03-14T19:13:48.283Z",linkIdentifier:"1"}];function _H(t){var n,r=s(!0),i=r[0],o=r[1],a=s(null),c=a[0],u=a[1];function f(){if("IncompleteTasks"!=t.previewState)if("CompleteTasks"!=t.previewState){var e,n;e=[],n=function(r){var i={status:t.status};return r&&(i.pageID=r),b.querySurveyTasks(i).then((function(r){e=e.concat(r.surveyTasks),r.nextPageID?n(r.nextPageID):("incomplete"==t.status&&e.sort((function(e,t){return pt(e.dueDate)>pt(t.dueDate)?1:pt(e.dueDate)<pt(t.dueDate)?-1:0})),"complete"==t.status&&e.sort((function(e,t){return e.endDate&&t.endDate?pt(e.endDate)>pt(t.endDate)?-1:pt(e.endDate)<pt(t.endDate)?1:0:0})),u(e),o(!1))}))},n(null)}else u(SH);else u(EH)}return l((function(){return f(),b.on("applicationDidBecomeVisible",f),function(){b.off("applicationDidBecomeVisible",f)}}),[]),"complete"!=t.status||(null==c?void 0:c.length)?e.createElement("div",{className:"mdhui-survey-task-list"},t.title&&e.createElement(Dt,{title:t.title,detailLinkText:t.onDetailLinkClick?br["view-all"]+" ("+(null!==(n=null==c?void 0:c.length)&&void 0!==n?n:0)+")":void 0,onDetailClick:t.onDetailLinkClick}),i&&!c&&e.createElement(I,null),!(null==c?void 0:c.length)&&!i&&e.createElement("div",{className:"empty-message"},br["all-tasks-complete"]),null==c?void 0:c.slice(0,t.limit).map((function(n){return e.createElement(Pr,{key:n.id.toString(),task:n,disableClick:i,hideDueDate:t.hideDueDate})}))):null}function OH(t){var n,r="",i=[];return t.excludeProviders||(i.push("Provider"),r+=br["connect-ehr-title-providers"]),t.excludeHealthPlans||(i.push("Health Plan"),r.length>0&&(r+=br["connect-ehr-title-divider"]),r+=br["connect-ehr-title-health-plans"]),r=br["connect-ehr-title-prefix"]+r,e.createElement(dr,{colorScheme:null!==(n=t.colorScheme)&&void 0!==n?n:"auto"},t.presentation&&e.createElement(xr,{title:r,showBackButton:"Push"==t.presentation,showCloseButton:"Modal"==t.presentation}),!t.presentation&&e.createElement(Mr,null),e.createElement(Nr,null,br["ehr-intro"]),e.createElement(Pt,null,e.createElement(Pq,{previewState:t.preview?"Default":void 0,applicationUrl:t.externalAccountsApplicationUrl,excludeProviders:t.excludeProviders,excludeHealthPlans:t.excludeHealthPlans,excludeDeviceManufacturers:!0})),e.createElement(Pt,null,e.createElement(kH,{previewState:t.preview?"Default":void 0,providerCategories:i})))}function AH(t){var n;return e.createElement(dr,{colorScheme:null!==(n=t.colorScheme)&&void 0!==n?n:"auto"},e.createElement(Mr,null),e.createElement(pH,{platforms:["Android"]},e.createElement(Pt,null,e.createElement(D,{title:"Google Fit",subtitle:br["google-fit-share"],onClick:function(){return b.showGoogleFitSettings()}}))),e.createElement(Pt,null,e.createElement(Hr,{previewState:t.preview?"notConnected":void 0})),e.createElement(Pt,null,e.createElement(Hq,{previewState:t.preview?"connected":void 0})),e.createElement(Pt,null,e.createElement(Vr,{previewState:t.preview?"notConnected":void 0})),e.createElement(Pt,null,e.createElement($q,{previewState:t.preview?"connected":void 0})),e.createElement(Pt,{allowOverflow:!0},e.createElement(Eq,{previewState:t.preview?"Default":void 0})))}function CH(t){var n,r="",i=[];return t.excludeProviders||(i.push("Provider"),r+=br["external-accounts-title-providers"]),t.excludeHealthPlans||(i.push("Health Plan"),r.length>0&&(r+=br["external-accounts-title-divider"]),r+=br["external-accounts-title-health-plans"]),t.excludeDeviceManufacturers||(i.push("Device Manufacturer"),r.length>0&&(r+=br["external-accounts-title-divider"]),r+=br["external-accounts-title-devices"]),e.createElement(dr,{colorScheme:null!==(n=t.colorScheme)&&void 0!==n?n:"auto"},t.presentation&&e.createElement(xr,{title:r,showBackButton:"Push"==t.presentation,showCloseButton:"Modal"==t.presentation}),!t.presentation&&e.createElement(Mr,null),e.createElement(_q,{previewState:t.preview?"Default":void 0,externalAccountProviderCategories:i,onExternalAccountsLoaded:function(e){0===e.length&&("Modal"===t.presentation?b.dismiss():b.back())}}))}function TH(t){var n;return e.createElement(dr,{colorScheme:null!==(n=t.colorScheme)&&void 0!==n?n:"auto"},e.createElement(Mr,null),e.createElement(Pt,null,e.createElement(Hr,{previewState:t.connectPreview,disabledBehavior:"displayError"})),e.createElement(Pt,null,e.createElement(Hq,{previewState:t.devicesPreview})),e.createElement(Pt,{allowOverflow:!0},e.createElement(Uq,{previewState:t.chartsPreview})))}function PH(t){return e.createElement(dr,null,e.createElement(Mr,{color:"var(--main-bg-color)"}),e.createElement(Pt,null,e.createElement(Vr,{previewState:t.connectPreview,garminProviderID:t.garminProviderID,disabledBehavior:"displayError"})),e.createElement(Pt,null,e.createElement($q,{previewState:t.devicesPreview})),e.createElement(Pt,{allowOverflow:!0},e.createElement(Gq,{previewState:t.chartsPreview})))}function DH(t){var n,r="Push";t.notificationType&&(r=t.notificationType);return e.createElement(dr,{colorScheme:null!==(n=t.colorScheme)&&void 0!==n?n:"auto"},e.createElement(Mr,{color:"#FFFFFF"}),e.createElement(dH,{previewState:t.preview?"Default":void 0}),e.createElement(Pt,null,e.createElement(sH,{notificationType:r,onViewMore:t.notificationsViewUrl?function(){t.notificationsViewUrl&&b.openApplication(t.notificationsViewUrl)}:void 0,previewState:t.preview?"Default":void 0,hideAfterHours:t.notificationHideAfterHours})),e.createElement(Pt,null,e.createElement(_H,{status:"incomplete",limit:3,title:br.tasks,onDetailLinkClick:t.tasksViewUrl?function(){t.tasksViewUrl&&b.openApplication(t.tasksViewUrl)}:void 0,hideDueDate:t.hideTaskDueDate,previewState:t.preview?"IncompleteTasks":void 0})),e.createElement(Pt,null,e.createElement(Hr,{title:"Fitbit",previewState:t.preview?"notConnected":void 0})),e.createElement(Pt,null,e.createElement(Vr,{title:"Garmin",previewState:t.preview?"notConnected":void 0})),e.createElement(Pt,null,t.ehrConnectApplicationUrl&&e.createElement(zr,{previewState:t.preview?"enabled":void 0,applicationUrl:t.ehrConnectApplicationUrl})),e.createElement(Pt,null,e.createElement(vH,{previewState:t.preview?"Default":void 0})))}function jH(t){var n,r;function i(){b.openApplication("https://hw.careevolutionapps.com/LabReports.html?lang="+b.getCurrentLanguage())}function o(e){var t=new URLSearchParams({termFamily:e.TermFamily,termNamespace:e.TermNamespace,termCode:e.TermCode,lang:b.getCurrentLanguage()}).toString();b.openApplication("https://hw.careevolutionapps.com/TermInformation.html?"+t,{modal:!0})}var a=null!==(n=t.variant)&&void 0!==n?n:"default";function c(n){var r=function(){return e.createElement(eH,{concept:n,onClick:function(){return function(e){b.openApplication("https://hw.careevolutionapps.com/"+e+".html")}(n)},previewState:"default"==t.previewState?"Default":void 0,indicatorPosition:"cardBased"==a?"topRight":"default"})};return"cardBased"==t.variant?e.createElement(Pt,null,r()):r()}return e.createElement(dr,{colorScheme:null!==(r=t.colorScheme)&&void 0!==r?r:"auto"},e.createElement(Mr,null),e.createElement(Cq,{previewState:"default"==t.previewState?"externalAccountsLoaded":void 0,externalAccountCategories:["Provider","Health Plan"]}),"default"==a&&e.createElement(wr,{noTopMargin:!0},e.createElement(aH,{onViewTermInfo:function(e){return o(e)},onClick:function(){return i()},previewState:"default"==t.previewState?"ImportantLabs":void 0}),c("Medications"),c("Immunizations"),c("Reports"),c("Allergies"),c("Conditions"),c("Procedures"),e.createElement(Pq,{excludeDeviceManufacturers:!0,applicationUrl:t.externalAccountsApplicationUrl,previewState:"default"==t.previewState?"Default":void 0})),"cardBased"==a&&e.createElement(e.Fragment,null,e.createElement(Pt,null,e.createElement(aH,{onViewTermInfo:function(e){return o(e)},onClick:function(){return i()},previewState:"default"==t.previewState?"ImportantLabs":void 0})),c("Medications"),c("Immunizations"),c("Reports"),c("Allergies"),c("Conditions"),c("Procedures"),e.createElement(Pt,null,e.createElement(Pq,{excludeDeviceManufacturers:!0,applicationUrl:t.externalAccountsApplicationUrl,previewState:"default"==t.previewState?"Default":void 0}))),e.createElement(Pt,null,e.createElement(zr,{bottomBorder:!0,applicationUrl:t.connectEhrApplicationUrl,previewState:"default"==t.previewState?"enabledConnected":void 0})))}function MH(t){var n,r="Push";return t.notificationType&&(r=t.notificationType),e.createElement(dr,{colorScheme:null!==(n=t.colorScheme)&&void 0!==n?n:"auto"},t.presentation&&e.createElement(xr,{title:br.notifications,showBackButton:"Push"==t.presentation,showCloseButton:"Modal"==t.presentation}),!t.presentation&&e.createElement(Mr,null),e.createElement(fH,{notificationType:r,previewState:t.preview?"Default":void 0}))}function NH(t){var n;return e.createElement(dr,{colorScheme:null!==(n=t.colorScheme)&&void 0!==n?n:"auto"},t.presentation&&e.createElement(xr,{title:br.tasks,showBackButton:"Push"==t.presentation,showCloseButton:"Modal"==t.presentation}),!t.presentation&&e.createElement(Mr,null),!t.hideIncompleteTasks&&e.createElement(Pt,null,e.createElement(_H,{title:br["incomplete-tasks"],status:"incomplete",hideDueDate:t.hideDueDate,previewState:t.preview?"IncompleteTasks":void 0})),!t.hideCompleteTasks&&e.createElement(Pt,null,e.createElement(_H,{title:br["completed-tasks"],status:"complete",hideDueDate:t.hideDueDate,previewState:t.preview?"CompleteTasks":void 0})))}var IH={},RH={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""},LH=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,FH={},zH={};function BH(e,t,n){var r,i,o,a,c,s="";for("string"!=typeof t&&(n=t,t=BH.defaultChars),void 0===n&&(n=!0),c=function(e){var t,n,r=zH[e];if(r)return r;for(r=zH[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?r.push(n):r.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t<e.length;t++)r[e.charCodeAt(t)]=e[t];return r}(t),r=0,i=e.length;r<i;r++)if(o=e.charCodeAt(r),n&&37===o&&r+2<i&&/^[0-9a-f]{2}$/i.test(e.slice(r+1,r+3)))s+=e.slice(r,r+3),r+=2;else if(o<128)s+=c[o];else if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&r+1<i&&(a=e.charCodeAt(r+1))>=56320&&a<=57343){s+=encodeURIComponent(e[r]+e[r+1]),r++;continue}s+="%EF%BF%BD"}else s+=encodeURIComponent(e[r]);return s}BH.defaultChars=";/?:@&=+$,-_.!~*'()#",BH.componentChars="-_.!~*'()";var qH=BH,HH={};function VH(e,t){var n;return"string"!=typeof t&&(t=VH.defaultChars),n=function(e){var t,n,r=HH[e];if(r)return r;for(r=HH[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),r.push(n);for(t=0;t<e.length;t++)r[n=e.charCodeAt(t)]="%"+("0"+n.toString(16).toUpperCase()).slice(-2);return r}(t),e.replace(/(%[a-f0-9]{2})+/gi,(function(e){var t,r,i,o,a,c,s,l="";for(t=0,r=e.length;t<r;t+=3)(i=parseInt(e.slice(t+1,t+3),16))<128?l+=n[i]:192==(224&i)&&t+3<r&&128==(192&(o=parseInt(e.slice(t+4,t+6),16)))?(l+=(s=i<<6&1984|63&o)<128?"��":String.fromCharCode(s),t+=3):224==(240&i)&&t+6<r&&(o=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),128==(192&o)&&128==(192&a))?(l+=(s=i<<12&61440|o<<6&4032|63&a)<2048||s>=55296&&s<=57343?"���":String.fromCharCode(s),t+=6):240==(248&i)&&t+9<r&&(o=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),c=parseInt(e.slice(t+10,t+12),16),128==(192&o)&&128==(192&a)&&128==(192&c))?((s=i<<18&1835008|o<<12&258048|a<<6&4032|63&c)<65536||s>1114111?l+="����":(s-=65536,l+=String.fromCharCode(55296+(s>>10),56320+(1023&s))),t+=9):l+="�";return l}))}VH.defaultChars=";/?:@&=+$,#",VH.componentChars="";var UH=VH;function WH(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var $H=/^([a-z0-9.+-]+:)/i,GH=/:[0-9]*$/,YH=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,XH=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),ZH=["'"].concat(XH),KH=["%","/","?",";","#"].concat(ZH),JH=["/","?","#"],QH=/^[+a-z0-9A-Z_-]{0,63}$/,eV=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,tV={javascript:!0,"javascript:":!0},nV={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};WH.prototype.parse=function(e,t){var n,r,i,o,a,c=e;if(c=c.trim(),!t&&1===e.split("#").length){var s=YH.exec(c);if(s)return this.pathname=s[1],s[2]&&(this.search=s[2]),this}var l=$H.exec(c);if(l&&(i=(l=l[0]).toLowerCase(),this.protocol=l,c=c.substr(l.length)),(t||l||c.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(a="//"===c.substr(0,2))||l&&tV[l]||(c=c.substr(2),this.slashes=!0)),!tV[l]&&(a||l&&!nV[l])){var u,f,p=-1;for(n=0;n<JH.length;n++)-1!==(o=c.indexOf(JH[n]))&&(-1===p||o<p)&&(p=o);for(-1!==(f=-1===p?c.lastIndexOf("@"):c.lastIndexOf("@",p))&&(u=c.slice(0,f),c=c.slice(f+1),this.auth=u),p=-1,n=0;n<KH.length;n++)-1!==(o=c.indexOf(KH[n]))&&(-1===p||o<p)&&(p=o);-1===p&&(p=c.length),":"===c[p-1]&&p--;var d=c.slice(0,p);c=c.slice(p),this.parseHost(d),this.hostname=this.hostname||"";var h="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!h){var m=this.hostname.split(/\./);for(n=0,r=m.length;n<r;n++){var y=m[n];if(y&&!y.match(QH)){for(var v="",g=0,b=y.length;g<b;g++)y.charCodeAt(g)>127?v+="x":v+=y[g];if(!v.match(QH)){var x=m.slice(0,n),w=m.slice(n+1),k=y.match(eV);k&&(x.push(k[1]),w.unshift(k[2])),w.length&&(c=w.join(".")+c),this.hostname=x.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),h&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var E=c.indexOf("#");-1!==E&&(this.hash=c.substr(E),c=c.slice(0,E));var S=c.indexOf("?");return-1!==S&&(this.search=c.substr(S),c=c.slice(0,S)),c&&(this.pathname=c),nV[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this},WH.prototype.parseHost=function(e){var t=GH.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var rV=function(e,t){if(e&&e instanceof WH)return e;var n=new WH;return n.parse(e,t),n};FH.encode=qH,FH.decode=UH,FH.format=function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||""},FH.parse=rV;var iV,oV,aV,cV,sV,lV,uV,fV,pV,dV={};function hV(){return oV?iV:(oV=1,iV=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/)}function mV(){return cV?aV:(cV=1,aV=/[\0-\x1F\x7F-\x9F]/)}function yV(){return fV?uV:(fV=1,uV=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/)}function vV(){return pV||(pV=1,dV.Any=hV(),dV.Cc=mV(),dV.Cf=lV?sV:(lV=1,sV=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),dV.P=LH,dV.Z=yV()),dV}!function(e){var t=Object.prototype.hasOwnProperty;function n(e,n){return t.call(e,n)}function r(e){return!(e>=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(65535!=(65535&e)&&65534!=(65535&e)&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function i(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var o=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,a=new RegExp(o.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),c=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,s=RH;var l=/[&<>"]/,u=/[&<>"]/g,f={"&":"&","<":"<",">":">",'"':"""};function p(e){return f[e]}var d=/[.?*+^$[\]\\(){}|-]/g;var h=LH;e.lib={},e.lib.mdurl=FH,e.lib.ucmicro=vV(),e.assign=function(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach((function(n){e[n]=t[n]}))}})),e},e.isString=function(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)},e.has=n,e.unescapeMd=function(e){return e.indexOf("\\")<0?e:e.replace(o,"$1")},e.unescapeAll=function(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(a,(function(e,t,o){return t||function(e,t){var o=0;return n(s,t)?s[t]:35===t.charCodeAt(0)&&c.test(t)&&r(o="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?i(o):e}(e,o)}))},e.isValidEntityCode=r,e.fromCodePoint=i,e.escapeHtml=function(e){return l.test(e)?e.replace(u,p):e},e.arrayReplaceAt=function(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))},e.isSpace=function(e){switch(e){case 9:case 32:return!0}return!1},e.isWhiteSpace=function(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},e.isMdAsciiPunct=function(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},e.isPunctChar=function(e){return h.test(e)},e.escapeRE=function(e){return e.replace(d,"\\$&")},e.normalizeReference=function(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}}(IH);var gV={},bV=IH.unescapeAll,xV=IH.unescapeAll;gV.parseLinkLabel=function(e,t,n){var r,i,o,a,c=-1,s=e.posMax,l=e.pos;for(e.pos=t+1,r=1;e.pos<s;){if(93===(o=e.src.charCodeAt(e.pos))&&0===--r){i=!0;break}if(a=e.pos,e.md.inline.skipToken(e),91===o)if(a===e.pos-1)r++;else if(n)return e.pos=l,-1}return i&&(c=e.pos),e.pos=l,c},gV.parseLinkDestination=function(e,t,n){var r,i,o=t,a={ok:!1,pos:0,lines:0,str:""};if(60===e.charCodeAt(t)){for(t++;t<n;){if(10===(r=e.charCodeAt(t)))return a;if(60===r)return a;if(62===r)return a.pos=t+1,a.str=bV(e.slice(o+1,t)),a.ok=!0,a;92===r&&t+1<n?t+=2:t++}return a}for(i=0;t<n&&32!==(r=e.charCodeAt(t))&&!(r<32||127===r);)if(92===r&&t+1<n){if(32===e.charCodeAt(t+1))break;t+=2}else{if(40===r&&++i>32)return a;if(41===r){if(0===i)break;i--}t++}return o===t||0!==i||(a.str=bV(e.slice(o,t)),a.lines=0,a.pos=t,a.ok=!0),a},gV.parseLinkTitle=function(e,t,n){var r,i,o=0,a=t,c={ok:!1,pos:0,lines:0,str:""};if(t>=n)return c;if(34!==(i=e.charCodeAt(t))&&39!==i&&40!==i)return c;for(t++,40===i&&(i=41);t<n;){if((r=e.charCodeAt(t))===i)return c.pos=t+1,c.lines=o,c.str=xV(e.slice(a+1,t)),c.ok=!0,c;if(40===r&&41===i)return c;10===r?o++:92===r&&t+1<n&&(t++,10===e.charCodeAt(t)&&o++),t++}return c};var wV=IH.assign,kV=IH.unescapeAll,EV=IH.escapeHtml,SV={};function _V(){this.rules=wV({},SV)}SV.code_inline=function(e,t,n,r,i){var o=e[t];return"<code"+i.renderAttrs(o)+">"+EV(e[t].content)+"</code>"},SV.code_block=function(e,t,n,r,i){var o=e[t];return"<pre"+i.renderAttrs(o)+"><code>"+EV(e[t].content)+"</code></pre>\n"},SV.fence=function(e,t,n,r,i){var o,a,c,s,l,u=e[t],f=u.info?kV(u.info).trim():"",p="",d="";return f&&(p=(c=f.split(/(\s+)/g))[0],d=c.slice(2).join("")),0===(o=n.highlight&&n.highlight(u.content,p,d)||EV(u.content)).indexOf("<pre")?o+"\n":f?(a=u.attrIndex("class"),s=u.attrs?u.attrs.slice():[],a<0?s.push(["class",n.langPrefix+p]):(s[a]=s[a].slice(),s[a][1]+=" "+n.langPrefix+p),l={attrs:s},"<pre><code"+i.renderAttrs(l)+">"+o+"</code></pre>\n"):"<pre><code"+i.renderAttrs(u)+">"+o+"</code></pre>\n"},SV.image=function(e,t,n,r,i){var o=e[t];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,n,r),i.renderToken(e,t,n)},SV.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},SV.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},SV.text=function(e,t){return EV(e[t].content)},SV.html_block=function(e,t){return e[t].content},SV.html_inline=function(e,t){return e[t].content},_V.prototype.renderAttrs=function(e){var t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t<n;t++)r+=" "+EV(e.attrs[t][0])+'="'+EV(e.attrs[t][1])+'"';return r},_V.prototype.renderToken=function(e,t,n){var r,i="",o=!1,a=e[t];return a.hidden?"":(a.block&&-1!==a.nesting&&t&&e[t-1].hidden&&(i+="\n"),i+=(-1===a.nesting?"</":"<")+a.tag,i+=this.renderAttrs(a),0===a.nesting&&n.xhtmlOut&&(i+=" /"),a.block&&(o=!0,1===a.nesting&&t+1<e.length&&("inline"===(r=e[t+1]).type||r.hidden||-1===r.nesting&&r.tag===a.tag)&&(o=!1)),i+=o?">\n":">")},_V.prototype.renderInline=function(e,t,n){for(var r,i="",o=this.rules,a=0,c=e.length;a<c;a++)void 0!==o[r=e[a].type]?i+=o[r](e,a,t,n,this):i+=this.renderToken(e,a,t);return i},_V.prototype.renderInlineAsText=function(e,t,n){for(var r="",i=0,o=e.length;i<o;i++)"text"===e[i].type?r+=e[i].content:"image"===e[i].type?r+=this.renderInlineAsText(e[i].children,t,n):"softbreak"===e[i].type&&(r+="\n");return r},_V.prototype.render=function(e,t,n){var r,i,o,a="",c=this.rules;for(r=0,i=e.length;r<i;r++)"inline"===(o=e[r].type)?a+=this.renderInline(e[r].children,t,n):void 0!==c[o]?a+=c[e[r].type](e,r,t,n,this):a+=this.renderToken(e,r,t,n);return a};var OV=_V;function AV(){this.__rules__=[],this.__cache__=null}AV.prototype.__find__=function(e){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},AV.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach((function(e){e.enabled&&e.alt.forEach((function(e){t.indexOf(e)<0&&t.push(e)}))})),e.__cache__={},t.forEach((function(t){e.__cache__[t]=[],e.__rules__.forEach((function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))}))}))},AV.prototype.at=function(e,t,n){var r=this.__find__(e),i=n||{};if(-1===r)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=i.alt||[],this.__cache__=null},AV.prototype.before=function(e,t,n,r){var i=this.__find__(e),o=r||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},AV.prototype.after=function(e,t,n,r){var i=this.__find__(e),o=r||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},AV.prototype.push=function(e,t,n){var r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},AV.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach((function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!0,n.push(e)}),this),this.__cache__=null,n},AV.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach((function(e){e.enabled=!1})),this.enable(e,t)},AV.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach((function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!1,n.push(e)}),this),this.__cache__=null,n},AV.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]};var CV=AV,TV=/\r\n?|\n/g,PV=/\0/g,DV=IH.arrayReplaceAt;function jV(e){return/^<\/a\s*>/i.test(e)}var MV=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,NV=/\((c|tm|r)\)/i,IV=/\((c|tm|r)\)/gi,RV={c:"©",r:"®",tm:"™"};function LV(e,t){return RV[t.toLowerCase()]}function FV(e){var t,n,r=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||r||(n.content=n.content.replace(IV,LV)),"link_open"===n.type&&"auto"===n.info&&r--,"link_close"===n.type&&"auto"===n.info&&r++}function zV(e){var t,n,r=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||r||MV.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===n.type&&"auto"===n.info&&r--,"link_close"===n.type&&"auto"===n.info&&r++}var BV=IH.isWhiteSpace,qV=IH.isPunctChar,HV=IH.isMdAsciiPunct,VV=/['"]/,UV=/['"]/g;function WV(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function $V(e,t){var n,r,i,o,a,c,s,l,u,f,p,d,h,m,y,v,g,b,x,w,k;for(x=[],n=0;n<e.length;n++){for(r=e[n],s=e[n].level,g=x.length-1;g>=0&&!(x[g].level<=s);g--);if(x.length=g+1,"text"===r.type){a=0,c=(i=r.content).length;e:for(;a<c&&(UV.lastIndex=a,o=UV.exec(i));){if(y=v=!0,a=o.index+1,b="'"===o[0],u=32,o.index-1>=0)u=i.charCodeAt(o.index-1);else for(g=n-1;g>=0&&("softbreak"!==e[g].type&&"hardbreak"!==e[g].type);g--)if(e[g].content){u=e[g].content.charCodeAt(e[g].content.length-1);break}if(f=32,a<c)f=i.charCodeAt(a);else for(g=n+1;g<e.length&&("softbreak"!==e[g].type&&"hardbreak"!==e[g].type);g++)if(e[g].content){f=e[g].content.charCodeAt(0);break}if(p=HV(u)||qV(String.fromCharCode(u)),d=HV(f)||qV(String.fromCharCode(f)),h=BV(u),(m=BV(f))?y=!1:d&&(h||p||(y=!1)),h?v=!1:p&&(m||d||(v=!1)),34===f&&'"'===o[0]&&u>=48&&u<=57&&(v=y=!1),y&&v&&(y=p,v=d),y||v){if(v)for(g=x.length-1;g>=0&&(l=x[g],!(x[g].level<s));g--)if(l.single===b&&x[g].level===s){l=x[g],b?(w=t.md.options.quotes[2],k=t.md.options.quotes[3]):(w=t.md.options.quotes[0],k=t.md.options.quotes[1]),r.content=WV(r.content,o.index,k),e[l.token].content=WV(e[l.token].content,l.pos,w),a+=k.length-1,l.token===n&&(a+=w.length-1),c=(i=r.content).length,x.length=g;continue e}y?x.push({token:n,pos:o.index,single:b,level:s}):v&&b&&(r.content=WV(r.content,o.index,"’"))}else b&&(r.content=WV(r.content,o.index,"’"))}}}}function GV(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}GV.prototype.attrIndex=function(e){var t,n,r;if(!this.attrs)return-1;for(n=0,r=(t=this.attrs).length;n<r;n++)if(t[n][0]===e)return n;return-1},GV.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},GV.prototype.attrSet=function(e,t){var n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},GV.prototype.attrGet=function(e){var t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n},GV.prototype.attrJoin=function(e,t){var n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t};var YV=GV,XV=YV;function ZV(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}ZV.prototype.Token=XV;var KV=ZV,JV=CV,QV=[["normalize",function(e){var t;t=(t=e.src.replace(TV,"\n")).replace(PV,"�"),e.src=t}],["block",function(e){var t;e.inlineMode?((t=new e.Token("inline","",0)).content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}],["inline",function(e){var t,n,r,i=e.tokens;for(n=0,r=i.length;n<r;n++)"inline"===(t=i[n]).type&&e.md.inline.parse(t.content,e.md,e.env,t.children)}],["linkify",function(e){var t,n,r,i,o,a,c,s,l,u,f,p,d,h,m,y,v,g,b=e.tokens;if(e.md.options.linkify)for(n=0,r=b.length;n<r;n++)if("inline"===b[n].type&&e.md.linkify.pretest(b[n].content))for(d=0,t=(i=b[n].children).length-1;t>=0;t--)if("link_close"!==(a=i[t]).type){if("html_inline"===a.type&&(g=a.content,/^<a[>\s]/i.test(g)&&d>0&&d--,jV(a.content)&&d++),!(d>0)&&"text"===a.type&&e.md.linkify.test(a.content)){for(l=a.content,v=e.md.linkify.match(l),c=[],p=a.level,f=0,v.length>0&&0===v[0].index&&t>0&&"text_special"===i[t-1].type&&(v=v.slice(1)),s=0;s<v.length;s++)h=v[s].url,m=e.md.normalizeLink(h),e.md.validateLink(m)&&(y=v[s].text,y=v[s].schema?"mailto:"!==v[s].schema||/^mailto:/i.test(y)?e.md.normalizeLinkText(y):e.md.normalizeLinkText("mailto:"+y).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+y).replace(/^http:\/\//,""),(u=v[s].index)>f&&((o=new e.Token("text","",0)).content=l.slice(f,u),o.level=p,c.push(o)),(o=new e.Token("link_open","a",1)).attrs=[["href",m]],o.level=p++,o.markup="linkify",o.info="auto",c.push(o),(o=new e.Token("text","",0)).content=y,o.level=p,c.push(o),(o=new e.Token("link_close","a",-1)).level=--p,o.markup="linkify",o.info="auto",c.push(o),f=v[s].lastIndex);f<l.length&&((o=new e.Token("text","",0)).content=l.slice(f),o.level=p,c.push(o)),b[n].children=i=DV(i,t,c)}}else for(t--;i[t].level!==a.level&&"link_open"!==i[t].type;)t--}],["replacements",function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(NV.test(e.tokens[t].content)&&FV(e.tokens[t].children),MV.test(e.tokens[t].content)&&zV(e.tokens[t].children))}],["smartquotes",function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&VV.test(e.tokens[t].content)&&$V(e.tokens[t].children,e)}],["text_join",function(e){var t,n,r,i,o,a,c=e.tokens;for(t=0,n=c.length;t<n;t++)if("inline"===c[t].type){for(o=(r=c[t].children).length,i=0;i<o;i++)"text_special"===r[i].type&&(r[i].type="text");for(i=a=0;i<o;i++)"text"===r[i].type&&i+1<o&&"text"===r[i+1].type?r[i+1].content=r[i].content+r[i+1].content:(i!==a&&(r[a]=r[i]),a++);i!==a&&(r.length=a)}}]];function eU(){this.ruler=new JV;for(var e=0;e<QV.length;e++)this.ruler.push(QV[e][0],QV[e][1])}eU.prototype.process=function(e){var t,n,r;for(t=0,n=(r=this.ruler.getRules("")).length;t<n;t++)r[t](e)},eU.prototype.State=KV;var tU=eU,nU=IH.isSpace;function rU(e,t){var n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function iU(e){var t,n=[],r=0,i=e.length,o=!1,a=0,c="";for(t=e.charCodeAt(r);r<i;)124===t&&(o?(c+=e.substring(a,r-1),a=r):(n.push(c+e.substring(a,r)),c="",a=r+1)),o=92===t,r++,t=e.charCodeAt(r);return n.push(c+e.substring(a)),n}var oU=IH.isSpace,aU=IH.isSpace,cU=IH.isSpace;function sU(e,t){var n,r,i,o;return r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t],42!==(n=e.src.charCodeAt(r++))&&45!==n&&43!==n||r<i&&(o=e.src.charCodeAt(r),!cU(o))?-1:r}function lU(e,t){var n,r=e.bMarks[t]+e.tShift[t],i=r,o=e.eMarks[t];if(i+1>=o)return-1;if((n=e.src.charCodeAt(i++))<48||n>57)return-1;for(;;){if(i>=o)return-1;if(!((n=e.src.charCodeAt(i++))>=48&&n<=57)){if(41===n||46===n)break;return-1}if(i-r>=10)return-1}return i<o&&(n=e.src.charCodeAt(i),!cU(n))?-1:i}var uU=IH.normalizeReference,fU=IH.isSpace,pU={},dU="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",hU="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",mU=new RegExp("^(?:"+dU+"|"+hU+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),yU=new RegExp("^(?:"+dU+"|"+hU+")");pU.HTML_TAG_RE=mU,pU.HTML_OPEN_CLOSE_TAG_RE=yU;var vU=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],gU=pU.HTML_OPEN_CLOSE_TAG_RE,bU=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+vU.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(gU.source+"\\s*$"),/^$/,!1]],xU=IH.isSpace,wU=YV,kU=IH.isSpace;function EU(e,t,n,r){var i,o,a,c,s,l,u,f;for(this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",f=!1,a=c=l=u=0,s=(o=this.src).length;c<s;c++){if(i=o.charCodeAt(c),!f){if(kU(i)){l++,9===i?u+=4-u%4:u++;continue}f=!0}10!==i&&c!==s-1||(10!==i&&c++,this.bMarks.push(a),this.eMarks.push(c),this.tShift.push(l),this.sCount.push(u),this.bsCount.push(0),f=!1,l=0,u=0,a=c+1)}this.bMarks.push(o.length),this.eMarks.push(o.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}EU.prototype.push=function(e,t,n){var r=new wU(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},EU.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},EU.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},EU.prototype.skipSpaces=function(e){for(var t,n=this.src.length;e<n&&(t=this.src.charCodeAt(e),kU(t));e++);return e},EU.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!kU(this.src.charCodeAt(--e)))return e+1;return e},EU.prototype.skipChars=function(e,t){for(var n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},EU.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},EU.prototype.getLines=function(e,t,n,r){var i,o,a,c,s,l,u,f=e;if(e>=t)return"";for(l=new Array(t-e),i=0;f<t;f++,i++){for(o=0,u=c=this.bMarks[f],s=f+1<t||r?this.eMarks[f]+1:this.eMarks[f];c<s&&o<n;){if(a=this.src.charCodeAt(c),kU(a))9===a?o+=4-(o+this.bsCount[f])%4:o++;else{if(!(c-u<this.tShift[f]))break;o++}c++}l[i]=o>n?new Array(o-n+1).join(" ")+this.src.slice(c,s):this.src.slice(c,s)}return l.join("")},EU.prototype.Token=wU;var SU=EU,_U=CV,OU=[["table",function(e,t,n,r){var i,o,a,c,s,l,u,f,p,d,h,m,y,v,g,b,x,w;if(t+2>n)return!1;if(l=t+1,e.sCount[l]<e.blkIndent)return!1;if(e.sCount[l]-e.blkIndent>=4)return!1;if((a=e.bMarks[l]+e.tShift[l])>=e.eMarks[l])return!1;if(124!==(x=e.src.charCodeAt(a++))&&45!==x&&58!==x)return!1;if(a>=e.eMarks[l])return!1;if(124!==(w=e.src.charCodeAt(a++))&&45!==w&&58!==w&&!nU(w))return!1;if(45===x&&nU(w))return!1;for(;a<e.eMarks[l];){if(124!==(i=e.src.charCodeAt(a))&&45!==i&&58!==i&&!nU(i))return!1;a++}for(u=(o=rU(e,t+1)).split("|"),d=[],c=0;c<u.length;c++){if(!(h=u[c].trim())){if(0===c||c===u.length-1)continue;return!1}if(!/^:?-+:?$/.test(h))return!1;58===h.charCodeAt(h.length-1)?d.push(58===h.charCodeAt(0)?"center":"right"):58===h.charCodeAt(0)?d.push("left"):d.push("")}if(-1===(o=rU(e,t).trim()).indexOf("|"))return!1;if(e.sCount[t]-e.blkIndent>=4)return!1;if((u=iU(o)).length&&""===u[0]&&u.shift(),u.length&&""===u[u.length-1]&&u.pop(),0===(f=u.length)||f!==d.length)return!1;if(r)return!0;for(v=e.parentType,e.parentType="table",b=e.md.block.ruler.getRules("blockquote"),(p=e.push("table_open","table",1)).map=m=[t,0],(p=e.push("thead_open","thead",1)).map=[t,t+1],(p=e.push("tr_open","tr",1)).map=[t,t+1],c=0;c<u.length;c++)p=e.push("th_open","th",1),d[c]&&(p.attrs=[["style","text-align:"+d[c]]]),(p=e.push("inline","",0)).content=u[c].trim(),p.children=[],p=e.push("th_close","th",-1);for(p=e.push("tr_close","tr",-1),p=e.push("thead_close","thead",-1),l=t+2;l<n&&!(e.sCount[l]<e.blkIndent);l++){for(g=!1,c=0,s=b.length;c<s;c++)if(b[c](e,l,n,!0)){g=!0;break}if(g)break;if(!(o=rU(e,l).trim()))break;if(e.sCount[l]-e.blkIndent>=4)break;for((u=iU(o)).length&&""===u[0]&&u.shift(),u.length&&""===u[u.length-1]&&u.pop(),l===t+2&&((p=e.push("tbody_open","tbody",1)).map=y=[t+2,0]),(p=e.push("tr_open","tr",1)).map=[l,l+1],c=0;c<f;c++)p=e.push("td_open","td",1),d[c]&&(p.attrs=[["style","text-align:"+d[c]]]),(p=e.push("inline","",0)).content=u[c]?u[c].trim():"",p.children=[],p=e.push("td_close","td",-1);p=e.push("tr_close","tr",-1)}return y&&(p=e.push("tbody_close","tbody",-1),y[1]=l),p=e.push("table_close","table",-1),m[1]=l,e.parentType=v,e.line=l,!0},["paragraph","reference"]],["code",function(e,t,n){var r,i,o;if(e.sCount[t]-e.blkIndent<4)return!1;for(i=r=t+1;r<n;)if(e.isEmpty(r))r++;else{if(!(e.sCount[r]-e.blkIndent>=4))break;i=++r}return e.line=i,(o=e.push("code_block","code",0)).content=e.getLines(t,i,4+e.blkIndent,!1)+"\n",o.map=[t,e.line],!0}],["fence",function(e,t,n,r){var i,o,a,c,s,l,u,f=!1,p=e.bMarks[t]+e.tShift[t],d=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(p+3>d)return!1;if(126!==(i=e.src.charCodeAt(p))&&96!==i)return!1;if(s=p,(o=(p=e.skipChars(p,i))-s)<3)return!1;if(u=e.src.slice(s,p),a=e.src.slice(p,d),96===i&&a.indexOf(String.fromCharCode(i))>=0)return!1;if(r)return!0;for(c=t;!(++c>=n)&&!((p=s=e.bMarks[c]+e.tShift[c])<(d=e.eMarks[c])&&e.sCount[c]<e.blkIndent);)if(e.src.charCodeAt(p)===i&&!(e.sCount[c]-e.blkIndent>=4||(p=e.skipChars(p,i))-s<o||(p=e.skipSpaces(p))<d)){f=!0;break}return o=e.sCount[t],e.line=c+(f?1:0),(l=e.push("fence","code",0)).info=a,l.content=e.getLines(t+1,c,o,!0),l.markup=u,l.map=[t,e.line],!0},["paragraph","reference","blockquote","list"]],["blockquote",function(e,t,n,r){var i,o,a,c,s,l,u,f,p,d,h,m,y,v,g,b,x,w,k,E,S=e.lineMax,_=e.bMarks[t]+e.tShift[t],O=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(_++))return!1;if(r)return!0;for(c=p=e.sCount[t]+1,32===e.src.charCodeAt(_)?(_++,c++,p++,i=!1,b=!0):9===e.src.charCodeAt(_)?(b=!0,(e.bsCount[t]+p)%4==3?(_++,c++,p++,i=!1):i=!0):b=!1,d=[e.bMarks[t]],e.bMarks[t]=_;_<O&&(o=e.src.charCodeAt(_),oU(o));)9===o?p+=4-(p+e.bsCount[t]+(i?1:0))%4:p++,_++;for(h=[e.bsCount[t]],e.bsCount[t]=e.sCount[t]+1+(b?1:0),l=_>=O,v=[e.sCount[t]],e.sCount[t]=p-c,g=[e.tShift[t]],e.tShift[t]=_-e.bMarks[t],w=e.md.block.ruler.getRules("blockquote"),y=e.parentType,e.parentType="blockquote",f=t+1;f<n&&(E=e.sCount[f]<e.blkIndent,!((_=e.bMarks[f]+e.tShift[f])>=(O=e.eMarks[f])));f++)if(62!==e.src.charCodeAt(_++)||E){if(l)break;for(x=!1,a=0,s=w.length;a<s;a++)if(w[a](e,f,n,!0)){x=!0;break}if(x){e.lineMax=f,0!==e.blkIndent&&(d.push(e.bMarks[f]),h.push(e.bsCount[f]),g.push(e.tShift[f]),v.push(e.sCount[f]),e.sCount[f]-=e.blkIndent);break}d.push(e.bMarks[f]),h.push(e.bsCount[f]),g.push(e.tShift[f]),v.push(e.sCount[f]),e.sCount[f]=-1}else{for(c=p=e.sCount[f]+1,32===e.src.charCodeAt(_)?(_++,c++,p++,i=!1,b=!0):9===e.src.charCodeAt(_)?(b=!0,(e.bsCount[f]+p)%4==3?(_++,c++,p++,i=!1):i=!0):b=!1,d.push(e.bMarks[f]),e.bMarks[f]=_;_<O&&(o=e.src.charCodeAt(_),oU(o));)9===o?p+=4-(p+e.bsCount[f]+(i?1:0))%4:p++,_++;l=_>=O,h.push(e.bsCount[f]),e.bsCount[f]=e.sCount[f]+1+(b?1:0),v.push(e.sCount[f]),e.sCount[f]=p-c,g.push(e.tShift[f]),e.tShift[f]=_-e.bMarks[f]}for(m=e.blkIndent,e.blkIndent=0,(k=e.push("blockquote_open","blockquote",1)).markup=">",k.map=u=[t,0],e.md.block.tokenize(e,t,f),(k=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=S,e.parentType=y,u[1]=e.line,a=0;a<g.length;a++)e.bMarks[a+t]=d[a],e.tShift[a+t]=g[a],e.sCount[a+t]=v[a],e.bsCount[a+t]=h[a];return e.blkIndent=m,!0},["paragraph","reference","blockquote","list"]],["hr",function(e,t,n,r){var i,o,a,c,s=e.bMarks[t]+e.tShift[t],l=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(42!==(i=e.src.charCodeAt(s++))&&45!==i&&95!==i)return!1;for(o=1;s<l;){if((a=e.src.charCodeAt(s++))!==i&&!aU(a))return!1;a===i&&o++}return!(o<3)&&(r||(e.line=t+1,(c=e.push("hr","hr",0)).map=[t,e.line],c.markup=Array(o+1).join(String.fromCharCode(i))),!0)},["paragraph","reference","blockquote","list"]],["list",function(e,t,n,r){var i,o,a,c,s,l,u,f,p,d,h,m,y,v,g,b,x,w,k,E,S,_,O,A,C,T,P,D,j=!1,M=!0;if(e.sCount[t]-e.blkIndent>=4)return!1;if(e.listIndent>=0&&e.sCount[t]-e.listIndent>=4&&e.sCount[t]<e.blkIndent)return!1;if(r&&"paragraph"===e.parentType&&e.sCount[t]>=e.blkIndent&&(j=!0),(O=lU(e,t))>=0){if(u=!0,C=e.bMarks[t]+e.tShift[t],y=Number(e.src.slice(C,O-1)),j&&1!==y)return!1}else{if(!((O=sU(e,t))>=0))return!1;u=!1}if(j&&e.skipSpaces(O)>=e.eMarks[t])return!1;if(m=e.src.charCodeAt(O-1),r)return!0;for(h=e.tokens.length,u?(D=e.push("ordered_list_open","ol",1),1!==y&&(D.attrs=[["start",y]])):D=e.push("bullet_list_open","ul",1),D.map=d=[t,0],D.markup=String.fromCharCode(m),g=t,A=!1,P=e.md.block.ruler.getRules("list"),w=e.parentType,e.parentType="list";g<n;){for(_=O,v=e.eMarks[g],l=b=e.sCount[g]+O-(e.bMarks[t]+e.tShift[t]);_<v;){if(9===(i=e.src.charCodeAt(_)))b+=4-(b+e.bsCount[g])%4;else{if(32!==i)break;b++}_++}if((s=(o=_)>=v?1:b-l)>4&&(s=1),c=l+s,(D=e.push("list_item_open","li",1)).markup=String.fromCharCode(m),D.map=f=[t,0],u&&(D.info=e.src.slice(C,O-1)),S=e.tight,E=e.tShift[t],k=e.sCount[t],x=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=c,e.tight=!0,e.tShift[t]=o-e.bMarks[t],e.sCount[t]=b,o>=v&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,t,n,!0),e.tight&&!A||(M=!1),A=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=x,e.tShift[t]=E,e.sCount[t]=k,e.tight=S,(D=e.push("list_item_close","li",-1)).markup=String.fromCharCode(m),g=t=e.line,f[1]=g,o=e.bMarks[t],g>=n)break;if(e.sCount[g]<e.blkIndent)break;if(e.sCount[t]-e.blkIndent>=4)break;for(T=!1,a=0,p=P.length;a<p;a++)if(P[a](e,g,n,!0)){T=!0;break}if(T)break;if(u){if((O=lU(e,g))<0)break;C=e.bMarks[g]+e.tShift[g]}else if((O=sU(e,g))<0)break;if(m!==e.src.charCodeAt(O-1))break}return(D=u?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(m),d[1]=g,e.line=g,e.parentType=w,M&&function(e,t){var n,r,i=e.level+2;for(n=t+2,r=e.tokens.length-2;n<r;n++)e.tokens[n].level===i&&"paragraph_open"===e.tokens[n].type&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}(e,h),!0},["paragraph","reference","blockquote"]],["reference",function(e,t,n,r){var i,o,a,c,s,l,u,f,p,d,h,m,y,v,g,b,x=0,w=e.bMarks[t]+e.tShift[t],k=e.eMarks[t],E=t+1;if(e.sCount[t]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(w))return!1;for(;++w<k;)if(93===e.src.charCodeAt(w)&&92!==e.src.charCodeAt(w-1)){if(w+1===k)return!1;if(58!==e.src.charCodeAt(w+1))return!1;break}for(c=e.lineMax,g=e.md.block.ruler.getRules("reference"),d=e.parentType,e.parentType="reference";E<c&&!e.isEmpty(E);E++)if(!(e.sCount[E]-e.blkIndent>3||e.sCount[E]<0)){for(v=!1,l=0,u=g.length;l<u;l++)if(g[l](e,E,c,!0)){v=!0;break}if(v)break}for(k=(y=e.getLines(t,E,e.blkIndent,!1).trim()).length,w=1;w<k;w++){if(91===(i=y.charCodeAt(w)))return!1;if(93===i){p=w;break}(10===i||92===i&&++w<k&&10===y.charCodeAt(w))&&x++}if(p<0||58!==y.charCodeAt(p+1))return!1;for(w=p+2;w<k;w++)if(10===(i=y.charCodeAt(w)))x++;else if(!fU(i))break;if(!(h=e.md.helpers.parseLinkDestination(y,w,k)).ok)return!1;if(s=e.md.normalizeLink(h.str),!e.md.validateLink(s))return!1;for(o=w=h.pos,a=x+=h.lines,m=w;w<k;w++)if(10===(i=y.charCodeAt(w)))x++;else if(!fU(i))break;for(h=e.md.helpers.parseLinkTitle(y,w,k),w<k&&m!==w&&h.ok?(b=h.str,w=h.pos,x+=h.lines):(b="",w=o,x=a);w<k&&(i=y.charCodeAt(w),fU(i));)w++;if(w<k&&10!==y.charCodeAt(w)&&b)for(b="",w=o,x=a;w<k&&(i=y.charCodeAt(w),fU(i));)w++;return!(w<k&&10!==y.charCodeAt(w))&&(!!(f=uU(y.slice(1,p)))&&(r||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[f]&&(e.env.references[f]={title:b,href:s}),e.parentType=d,e.line=t+x+1),!0))}],["html_block",function(e,t,n,r){var i,o,a,c,s=e.bMarks[t]+e.tShift[t],l=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(s))return!1;for(c=e.src.slice(s,l),i=0;i<bU.length&&!bU[i][0].test(c);i++);if(i===bU.length)return!1;if(r)return bU[i][2];if(o=t+1,!bU[i][1].test(c))for(;o<n&&!(e.sCount[o]<e.blkIndent);o++)if(s=e.bMarks[o]+e.tShift[o],l=e.eMarks[o],c=e.src.slice(s,l),bU[i][1].test(c)){0!==c.length&&o++;break}return e.line=o,(a=e.push("html_block","",0)).map=[t,o],a.content=e.getLines(t,o,e.blkIndent,!0),!0},["paragraph","reference","blockquote"]],["heading",function(e,t,n,r){var i,o,a,c,s=e.bMarks[t]+e.tShift[t],l=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(35!==(i=e.src.charCodeAt(s))||s>=l)return!1;for(o=1,i=e.src.charCodeAt(++s);35===i&&s<l&&o<=6;)o++,i=e.src.charCodeAt(++s);return!(o>6||s<l&&!xU(i))&&(r||(l=e.skipSpacesBack(l,s),(a=e.skipCharsBack(l,35,s))>s&&xU(e.src.charCodeAt(a-1))&&(l=a),e.line=t+1,(c=e.push("heading_open","h"+String(o),1)).markup="########".slice(0,o),c.map=[t,e.line],(c=e.push("inline","",0)).content=e.src.slice(s,l).trim(),c.map=[t,e.line],c.children=[],(c=e.push("heading_close","h"+String(o),-1)).markup="########".slice(0,o)),!0)},["paragraph","reference","blockquote"]],["lheading",function(e,t,n){var r,i,o,a,c,s,l,u,f,p,d=t+1,h=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(p=e.parentType,e.parentType="paragraph";d<n&&!e.isEmpty(d);d++)if(!(e.sCount[d]-e.blkIndent>3)){if(e.sCount[d]>=e.blkIndent&&(s=e.bMarks[d]+e.tShift[d])<(l=e.eMarks[d])&&(45===(f=e.src.charCodeAt(s))||61===f)&&(s=e.skipChars(s,f),(s=e.skipSpaces(s))>=l)){u=61===f?1:2;break}if(!(e.sCount[d]<0)){for(i=!1,o=0,a=h.length;o<a;o++)if(h[o](e,d,n,!0)){i=!0;break}if(i)break}}return!!u&&(r=e.getLines(t,d,e.blkIndent,!1).trim(),e.line=d+1,(c=e.push("heading_open","h"+String(u),1)).markup=String.fromCharCode(f),c.map=[t,e.line],(c=e.push("inline","",0)).content=r,c.map=[t,e.line-1],c.children=[],(c=e.push("heading_close","h"+String(u),-1)).markup=String.fromCharCode(f),e.parentType=p,!0)}],["paragraph",function(e,t){var n,r,i,o,a,c,s=t+1,l=e.md.block.ruler.getRules("paragraph"),u=e.lineMax;for(c=e.parentType,e.parentType="paragraph";s<u&&!e.isEmpty(s);s++)if(!(e.sCount[s]-e.blkIndent>3||e.sCount[s]<0)){for(r=!1,i=0,o=l.length;i<o;i++)if(l[i](e,s,u,!0)){r=!0;break}if(r)break}return n=e.getLines(t,s,e.blkIndent,!1).trim(),e.line=s,(a=e.push("paragraph_open","p",1)).map=[t,e.line],(a=e.push("inline","",0)).content=n,a.map=[t,e.line],a.children=[],a=e.push("paragraph_close","p",-1),e.parentType=c,!0}]];function AU(){this.ruler=new _U;for(var e=0;e<OU.length;e++)this.ruler.push(OU[e][0],OU[e][1],{alt:(OU[e][2]||[]).slice()})}AU.prototype.tokenize=function(e,t,n){for(var r,i=this.ruler.getRules(""),o=i.length,a=t,c=!1,s=e.md.options.maxNesting;a<n&&(e.line=a=e.skipEmptyLines(a),!(a>=n))&&!(e.sCount[a]<e.blkIndent);){if(e.level>=s){e.line=n;break}for(r=0;r<o&&!i[r](e,a,n,!1);r++);e.tight=!c,e.isEmpty(e.line-1)&&(c=!0),(a=e.line)<n&&e.isEmpty(a)&&(c=!0,a++,e.line=a)}},AU.prototype.parse=function(e,t,n,r){var i;e&&(i=new this.State(e,t,n,r),this.tokenize(i,i.line,i.lineMax))},AU.prototype.State=SU;var CU=AU;function TU(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}for(var PU=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,DU=IH.isSpace,jU=IH.isSpace,MU=[],NU=0;NU<256;NU++)MU.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(e){MU[e.charCodeAt(0)]=1}));var IU={};function RU(e,t){var n,r,i,o,a,c=[],s=t.length;for(n=0;n<s;n++)126===(i=t[n]).marker&&-1!==i.end&&(o=t[i.end],(a=e.tokens[i.token]).type="s_open",a.tag="s",a.nesting=1,a.markup="~~",a.content="",(a=e.tokens[o.token]).type="s_close",a.tag="s",a.nesting=-1,a.markup="~~",a.content="","text"===e.tokens[o.token-1].type&&"~"===e.tokens[o.token-1].content&&c.push(o.token-1));for(;c.length;){for(r=(n=c.pop())+1;r<e.tokens.length&&"s_close"===e.tokens[r].type;)r++;n!==--r&&(a=e.tokens[r],e.tokens[r]=e.tokens[n],e.tokens[n]=a)}}IU.tokenize=function(e,t){var n,r,i,o,a=e.pos,c=e.src.charCodeAt(a);if(t)return!1;if(126!==c)return!1;if(i=(r=e.scanDelims(e.pos,!0)).length,o=String.fromCharCode(c),i<2)return!1;for(i%2&&(e.push("text","",0).content=o,i--),n=0;n<i;n+=2)e.push("text","",0).content=o+o,e.delimiters.push({marker:c,length:0,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},IU.postProcess=function(e){var t,n=e.tokens_meta,r=e.tokens_meta.length;for(RU(e,e.delimiters),t=0;t<r;t++)n[t]&&n[t].delimiters&&RU(e,n[t].delimiters)};var LU={};function FU(e,t){var n,r,i,o,a,c;for(n=t.length-1;n>=0;n--)95!==(r=t[n]).marker&&42!==r.marker||-1!==r.end&&(i=t[r.end],c=n>0&&t[n-1].end===r.end+1&&t[n-1].marker===r.marker&&t[n-1].token===r.token-1&&t[r.end+1].token===i.token+1,a=String.fromCharCode(r.marker),(o=e.tokens[r.token]).type=c?"strong_open":"em_open",o.tag=c?"strong":"em",o.nesting=1,o.markup=c?a+a:a,o.content="",(o=e.tokens[i.token]).type=c?"strong_close":"em_close",o.tag=c?"strong":"em",o.nesting=-1,o.markup=c?a+a:a,o.content="",c&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--))}LU.tokenize=function(e,t){var n,r,i=e.pos,o=e.src.charCodeAt(i);if(t)return!1;if(95!==o&&42!==o)return!1;for(r=e.scanDelims(e.pos,42===o),n=0;n<r.length;n++)e.push("text","",0).content=String.fromCharCode(o),e.delimiters.push({marker:o,length:r.length,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},LU.postProcess=function(e){var t,n=e.tokens_meta,r=e.tokens_meta.length;for(FU(e,e.delimiters),t=0;t<r;t++)n[t]&&n[t].delimiters&&FU(e,n[t].delimiters)};var zU=IH.normalizeReference,BU=IH.isSpace,qU=IH.normalizeReference,HU=IH.isSpace,VU=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,UU=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,WU=pU.HTML_TAG_RE;var $U=RH,GU=IH.has,YU=IH.isValidEntityCode,XU=IH.fromCodePoint,ZU=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,KU=/^&([a-z][a-z0-9]{1,31});/i;function JU(e,t){var n,r,i,o,a,c,s,l,u={},f=t.length;if(f){var p=0,d=-2,h=[];for(n=0;n<f;n++)if(i=t[n],h.push(0),t[p].marker===i.marker&&d===i.token-1||(p=n),d=i.token,i.length=i.length||0,i.close){for(u.hasOwnProperty(i.marker)||(u[i.marker]=[-1,-1,-1,-1,-1,-1]),a=u[i.marker][(i.open?3:0)+i.length%3],c=r=p-h[p]-1;r>a;r-=h[r]+1)if((o=t[r]).marker===i.marker&&o.open&&o.end<0&&(s=!1,(o.close||i.open)&&(o.length+i.length)%3==0&&(o.length%3==0&&i.length%3==0||(s=!0)),!s)){l=r>0&&!t[r-1].open?h[r-1]+1:0,h[n]=n-r+l,h[r]=l,i.open=!1,o.end=n,o.close=!1,c=-1,d=-2;break}-1!==c&&(u[i.marker][(i.open?3:0)+(i.length||0)%3]=c)}}}var QU=YV,eW=IH.isWhiteSpace,tW=IH.isPunctChar,nW=IH.isMdAsciiPunct;function rW(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}rW.prototype.pushPending=function(){var e=new QU("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},rW.prototype.push=function(e,t,n){this.pending&&this.pushPending();var r=new QU(e,t,n),i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r},rW.prototype.scanDelims=function(e,t){var n,r,i,o,a,c,s,l,u,f=e,p=!0,d=!0,h=this.posMax,m=this.src.charCodeAt(e);for(n=e>0?this.src.charCodeAt(e-1):32;f<h&&this.src.charCodeAt(f)===m;)f++;return i=f-e,r=f<h?this.src.charCodeAt(f):32,s=nW(n)||tW(String.fromCharCode(n)),u=nW(r)||tW(String.fromCharCode(r)),c=eW(n),(l=eW(r))?p=!1:u&&(c||s||(p=!1)),c?d=!1:s&&(l||u||(d=!1)),t?(o=p,a=d):(o=p&&(!d||s),a=d&&(!p||u)),{can_open:o,can_close:a,length:i}},rW.prototype.Token=QU;var iW=rW,oW=CV,aW=[["text",function(e,t){for(var n=e.pos;n<e.posMax&&!TU(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}],["linkify",function(e,t){var n,r,i,o,a,c,s;return!!e.md.options.linkify&&(!(e.linkLevel>0)&&(!((n=e.pos)+3>e.posMax)&&(58===e.src.charCodeAt(n)&&(47===e.src.charCodeAt(n+1)&&(47===e.src.charCodeAt(n+2)&&(!!(r=e.pending.match(PU))&&(i=r[1],!!(o=e.md.linkify.matchAtStart(e.src.slice(n-i.length)))&&(a=(a=o.url).replace(/\*+$/,""),c=e.md.normalizeLink(a),!!e.md.validateLink(c)&&(t||(e.pending=e.pending.slice(0,-i.length),(s=e.push("link_open","a",1)).attrs=[["href",c]],s.markup="linkify",s.info="auto",(s=e.push("text","",0)).content=e.md.normalizeLinkText(a),(s=e.push("link_close","a",-1)).markup="linkify",s.info="auto"),e.pos+=a.length-i.length,!0)))))))))}],["newline",function(e,t){var n,r,i,o=e.pos;if(10!==e.src.charCodeAt(o))return!1;if(n=e.pending.length-1,r=e.posMax,!t)if(n>=0&&32===e.pending.charCodeAt(n))if(n>=1&&32===e.pending.charCodeAt(n-1)){for(i=n-1;i>=1&&32===e.pending.charCodeAt(i-1);)i--;e.pending=e.pending.slice(0,i),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(o++;o<r&&DU(e.src.charCodeAt(o));)o++;return e.pos=o,!0}],["escape",function(e,t){var n,r,i,o,a,c=e.pos,s=e.posMax;if(92!==e.src.charCodeAt(c))return!1;if(++c>=s)return!1;if(10===(n=e.src.charCodeAt(c))){for(t||e.push("hardbreak","br",0),c++;c<s&&(n=e.src.charCodeAt(c),jU(n));)c++;return e.pos=c,!0}return o=e.src[c],n>=55296&&n<=56319&&c+1<s&&(r=e.src.charCodeAt(c+1))>=56320&&r<=57343&&(o+=e.src[c+1],c++),i="\\"+o,t||(a=e.push("text_special","",0),n<256&&0!==MU[n]?a.content=o:a.content=i,a.markup=i,a.info="escape"),e.pos=c+1,!0}],["backticks",function(e,t){var n,r,i,o,a,c,s,l,u=e.pos;if(96!==e.src.charCodeAt(u))return!1;for(n=u,u++,r=e.posMax;u<r&&96===e.src.charCodeAt(u);)u++;if(s=(i=e.src.slice(n,u)).length,e.backticksScanned&&(e.backticks[s]||0)<=n)return t||(e.pending+=i),e.pos+=s,!0;for(a=c=u;-1!==(a=e.src.indexOf("`",c));){for(c=a+1;c<r&&96===e.src.charCodeAt(c);)c++;if((l=c-a)===s)return t||((o=e.push("code_inline","code",0)).markup=i,o.content=e.src.slice(u,a).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=c,!0;e.backticks[l]=a}return e.backticksScanned=!0,t||(e.pending+=i),e.pos+=s,!0}],["strikethrough",IU.tokenize],["emphasis",LU.tokenize],["link",function(e,t){var n,r,i,o,a,c,s,l,u="",f="",p=e.pos,d=e.posMax,h=e.pos,m=!0;if(91!==e.src.charCodeAt(e.pos))return!1;if(a=e.pos+1,(o=e.md.helpers.parseLinkLabel(e,e.pos,!0))<0)return!1;if((c=o+1)<d&&40===e.src.charCodeAt(c)){for(m=!1,c++;c<d&&(r=e.src.charCodeAt(c),BU(r)||10===r);c++);if(c>=d)return!1;if(h=c,(s=e.md.helpers.parseLinkDestination(e.src,c,e.posMax)).ok){for(u=e.md.normalizeLink(s.str),e.md.validateLink(u)?c=s.pos:u="",h=c;c<d&&(r=e.src.charCodeAt(c),BU(r)||10===r);c++);if(s=e.md.helpers.parseLinkTitle(e.src,c,e.posMax),c<d&&h!==c&&s.ok)for(f=s.str,c=s.pos;c<d&&(r=e.src.charCodeAt(c),BU(r)||10===r);c++);}(c>=d||41!==e.src.charCodeAt(c))&&(m=!0),c++}if(m){if(void 0===e.env.references)return!1;if(c<d&&91===e.src.charCodeAt(c)?(h=c+1,(c=e.md.helpers.parseLinkLabel(e,c))>=0?i=e.src.slice(h,c++):c=o+1):c=o+1,i||(i=e.src.slice(a,o)),!(l=e.env.references[zU(i)]))return e.pos=p,!1;u=l.href,f=l.title}return t||(e.pos=a,e.posMax=o,e.push("link_open","a",1).attrs=n=[["href",u]],f&&n.push(["title",f]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)),e.pos=c,e.posMax=d,!0}],["image",function(e,t){var n,r,i,o,a,c,s,l,u,f,p,d,h,m="",y=e.pos,v=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;if(c=e.pos+2,(a=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1;if((s=a+1)<v&&40===e.src.charCodeAt(s)){for(s++;s<v&&(r=e.src.charCodeAt(s),HU(r)||10===r);s++);if(s>=v)return!1;for(h=s,(u=e.md.helpers.parseLinkDestination(e.src,s,e.posMax)).ok&&(m=e.md.normalizeLink(u.str),e.md.validateLink(m)?s=u.pos:m=""),h=s;s<v&&(r=e.src.charCodeAt(s),HU(r)||10===r);s++);if(u=e.md.helpers.parseLinkTitle(e.src,s,e.posMax),s<v&&h!==s&&u.ok)for(f=u.str,s=u.pos;s<v&&(r=e.src.charCodeAt(s),HU(r)||10===r);s++);else f="";if(s>=v||41!==e.src.charCodeAt(s))return e.pos=y,!1;s++}else{if(void 0===e.env.references)return!1;if(s<v&&91===e.src.charCodeAt(s)?(h=s+1,(s=e.md.helpers.parseLinkLabel(e,s))>=0?o=e.src.slice(h,s++):s=a+1):s=a+1,o||(o=e.src.slice(c,a)),!(l=e.env.references[qU(o)]))return e.pos=y,!1;m=l.href,f=l.title}return t||(i=e.src.slice(c,a),e.md.inline.parse(i,e.md,e.env,d=[]),(p=e.push("image","img",0)).attrs=n=[["src",m],["alt",""]],p.children=d,p.content=i,f&&n.push(["title",f])),e.pos=s,e.posMax=v,!0}],["autolink",function(e,t){var n,r,i,o,a,c,s=e.pos;if(60!==e.src.charCodeAt(s))return!1;for(a=e.pos,c=e.posMax;;){if(++s>=c)return!1;if(60===(o=e.src.charCodeAt(s)))return!1;if(62===o)break}return n=e.src.slice(a+1,s),UU.test(n)?(r=e.md.normalizeLink(n),!!e.md.validateLink(r)&&(t||((i=e.push("link_open","a",1)).attrs=[["href",r]],i.markup="autolink",i.info="auto",(i=e.push("text","",0)).content=e.md.normalizeLinkText(n),(i=e.push("link_close","a",-1)).markup="autolink",i.info="auto"),e.pos+=n.length+2,!0)):!!VU.test(n)&&(r=e.md.normalizeLink("mailto:"+n),!!e.md.validateLink(r)&&(t||((i=e.push("link_open","a",1)).attrs=[["href",r]],i.markup="autolink",i.info="auto",(i=e.push("text","",0)).content=e.md.normalizeLinkText(n),(i=e.push("link_close","a",-1)).markup="autolink",i.info="auto"),e.pos+=n.length+2,!0))}],["html_inline",function(e,t){var n,r,i,o,a,c=e.pos;return!!e.md.options.html&&(i=e.posMax,!(60!==e.src.charCodeAt(c)||c+2>=i)&&(!(33!==(n=e.src.charCodeAt(c+1))&&63!==n&&47!==n&&!function(e){var t=32|e;return t>=97&&t<=122}(n))&&(!!(r=e.src.slice(c).match(WU))&&(t||((o=e.push("html_inline","",0)).content=e.src.slice(c,c+r[0].length),a=o.content,/^<a[>\s]/i.test(a)&&e.linkLevel++,function(e){return/^<\/a\s*>/i.test(e)}(o.content)&&e.linkLevel--),e.pos+=r[0].length,!0))))}],["entity",function(e,t){var n,r,i,o=e.pos,a=e.posMax;if(38!==e.src.charCodeAt(o))return!1;if(o+1>=a)return!1;if(35===e.src.charCodeAt(o+1)){if(r=e.src.slice(o).match(ZU))return t||(n="x"===r[1][0].toLowerCase()?parseInt(r[1].slice(1),16):parseInt(r[1],10),(i=e.push("text_special","",0)).content=YU(n)?XU(n):XU(65533),i.markup=r[0],i.info="entity"),e.pos+=r[0].length,!0}else if((r=e.src.slice(o).match(KU))&&GU($U,r[1]))return t||((i=e.push("text_special","",0)).content=$U[r[1]],i.markup=r[0],i.info="entity"),e.pos+=r[0].length,!0;return!1}]],cW=[["balance_pairs",function(e){var t,n=e.tokens_meta,r=e.tokens_meta.length;for(JU(0,e.delimiters),t=0;t<r;t++)n[t]&&n[t].delimiters&&JU(0,n[t].delimiters)}],["strikethrough",IU.postProcess],["emphasis",LU.postProcess],["fragments_join",function(e){var t,n,r=0,i=e.tokens,o=e.tokens.length;for(t=n=0;t<o;t++)i[t].nesting<0&&r--,i[t].level=r,i[t].nesting>0&&r++,"text"===i[t].type&&t+1<o&&"text"===i[t+1].type?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}]];function sW(){var e;for(this.ruler=new oW,e=0;e<aW.length;e++)this.ruler.push(aW[e][0],aW[e][1]);for(this.ruler2=new oW,e=0;e<cW.length;e++)this.ruler2.push(cW[e][0],cW[e][1])}sW.prototype.skipToken=function(e){var t,n,r=e.pos,i=this.ruler.getRules(""),o=i.length,a=e.md.options.maxNesting,c=e.cache;if(void 0===c[r]){if(e.level<a)for(n=0;n<o&&(e.level++,t=i[n](e,!0),e.level--,!t);n++);else e.pos=e.posMax;t||e.pos++,c[r]=e.pos}else e.pos=c[r]},sW.prototype.tokenize=function(e){for(var t,n,r=this.ruler.getRules(""),i=r.length,o=e.posMax,a=e.md.options.maxNesting;e.pos<o;){if(e.level<a)for(n=0;n<i&&!(t=r[n](e,!1));n++);if(t){if(e.pos>=o)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},sW.prototype.parse=function(e,t,n,r){var i,o,a,c=new this.State(e,t,n,r);for(this.tokenize(c),a=(o=this.ruler2.getRules("")).length,i=0;i<a;i++)o[i](c)},sW.prototype.State=iW;var lW,uW,fW=sW;function pW(){return uW?lW:(uW=1,lW=function(e){var t={};e=e||{},t.src_Any=hV().source,t.src_Cc=mV().source,t.src_Z=yV().source,t.src_P=LH.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var n="[><|]";return t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+"|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><|]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t})}function dW(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function hW(e){return Object.prototype.toString.call(e)}function mW(e){return"[object Function]"===hW(e)}function yW(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var vW={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};var gW={"http:":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},bW="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",xW="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function wW(e){var t=e.re=pW()(e.__opts__),n=e.__tlds__.slice();function r(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||n.push(bW),n.push(t.src_xn),t.src_tlds=n.join("|"),t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");var i=[];function o(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(t){var n=e.__schemas__[t];if(null!==n){var r={validate:null,link:null};if(e.__compiled__[t]=r,function(e){return"[object Object]"===hW(e)}(n))return!function(e){return"[object RegExp]"===hW(e)}(n.validate)?mW(n.validate)?r.validate=n.validate:o(t,n):r.validate=function(e){return function(t,n){var r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}(n.validate),void(mW(n.normalize)?r.normalize=n.normalize:n.normalize?o(t,n):r.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===hW(e)}(n)?o(t,n):i.push(t)}})),i.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var a=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(yW).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function kW(e,t){var n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function EW(e,t){var n=new kW(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function SW(e,t){if(!(this instanceof SW))return new SW(e,t);t||function(e){return Object.keys(e||{}).reduce((function(e,t){return e||vW.hasOwnProperty(t)}),!1)}(e)&&(t=e,e={}),this.__opts__=dW({},vW,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=dW({},gW,e),this.__compiled__={},this.__tlds__=xW,this.__tlds_replaced__=!1,this.re={},wW(this)}SW.prototype.add=function(e,t){return this.__schemas__[e]=t,wW(this),this},SW.prototype.set=function(e){return this.__opts__=dW(this.__opts__,e),this},SW.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,i,o,a,c,s;if(this.re.schema_test.test(e))for((c=this.re.schema_search).lastIndex=0;null!==(t=c.exec(e));)if(i=this.testSchemaAt(e,t[2],c.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(s=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||s<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(o=n.index+n[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(r=e.match(this.re.email_fuzzy))&&(o=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a)),this.__index__>=0},SW.prototype.pretest=function(e){return this.re.pretest.test(e)},SW.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},SW.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(EW(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(EW(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},SW.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;var t=this.re.schema_at_start.exec(e);if(!t)return null;var n=this.testSchemaAt(e,t[2],t[0].length);return n?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+n,EW(this,0)):null},SW.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse(),wW(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,wW(this),this)},SW.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},SW.prototype.onCompile=function(){};var _W=SW;const OW=2147483647,AW=36,CW=/^xn--/,TW=/[^\0-\x7E]/,PW=/[\x2E\u3002\uFF0E\uFF61]/g,DW={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},jW=Math.floor,MW=String.fromCharCode;function NW(e){throw new RangeError(DW[e])}function IW(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]);const i=function(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}((e=e.replace(PW,".")).split("."),t).join(".");return r+i}function RW(e){const t=[];let n=0;const r=e.length;for(;n<r;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const r=e.charCodeAt(n++);56320==(64512&r)?t.push(((1023&i)<<10)+(1023&r)+65536):(t.push(i),n--)}else t.push(i)}return t}const LW=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},FW=function(e,t,n){let r=0;for(e=n?jW(e/700):e>>1,e+=jW(e/t);e>455;r+=AW)e=jW(e/35);return jW(r+36*e/(e+38))},zW=function(e){const t=[],n=e.length;let r=0,i=128,o=72,a=e.lastIndexOf("-");a<0&&(a=0);for(let n=0;n<a;++n)e.charCodeAt(n)>=128&&NW("not-basic"),t.push(e.charCodeAt(n));for(let s=a>0?a+1:0;s<n;){let a=r;for(let t=1,i=AW;;i+=AW){s>=n&&NW("invalid-input");const a=(c=e.charCodeAt(s++))-48<10?c-22:c-65<26?c-65:c-97<26?c-97:AW;(a>=AW||a>jW((OW-r)/t))&&NW("overflow"),r+=a*t;const l=i<=o?1:i>=o+26?26:i-o;if(a<l)break;const u=AW-l;t>jW(OW/u)&&NW("overflow"),t*=u}const l=t.length+1;o=FW(r-a,l,0==a),jW(r/l)>OW-i&&NW("overflow"),i+=jW(r/l),r%=l,t.splice(r++,0,i)}var c;return String.fromCodePoint(...t)},BW=function(e){const t=[];let n=(e=RW(e)).length,r=128,i=0,o=72;for(const n of e)n<128&&t.push(MW(n));let a=t.length,c=a;for(a&&t.push("-");c<n;){let n=OW;for(const t of e)t>=r&&t<n&&(n=t);const s=c+1;n-r>jW((OW-i)/s)&&NW("overflow"),i+=(n-r)*s,r=n;for(const n of e)if(n<r&&++i>OW&&NW("overflow"),n==r){let e=i;for(let n=AW;;n+=AW){const r=n<=o?1:n>=o+26?26:n-o;if(e<r)break;const i=e-r,a=AW-r;t.push(MW(LW(r+i%a,0))),e=jW(i/a)}t.push(MW(LW(e,0))),o=FW(i,s,c==a),i=0,++c}++i,++r}return t.join("")},qW={version:"2.1.0",ucs2:{decode:RW,encode:e=>String.fromCodePoint(...e)},decode:zW,encode:BW,toASCII:function(e){return IW(e,(function(e){return TW.test(e)?"xn--"+BW(e):e}))},toUnicode:function(e){return IW(e,(function(e){return CW.test(e)?zW(e.slice(4).toLowerCase()):e}))}};var HW=IH,VW=gV,UW=OV,WW=tU,$W=CU,GW=fW,YW=_W,XW=FH,ZW=qW,KW={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},JW=/^(vbscript|javascript|file|data):/,QW=/^data:image\/(gif|png|jpeg|webp);/;function e$(e){var t=e.trim().toLowerCase();return!JW.test(t)||!!QW.test(t)}var t$=["http:","https:","mailto:"];function n$(e){var t=XW.parse(e,!0);if(t.hostname&&(!t.protocol||t$.indexOf(t.protocol)>=0))try{t.hostname=ZW.toASCII(t.hostname)}catch(e){}return XW.encode(XW.format(t))}function r$(e){var t=XW.parse(e,!0);if(t.hostname&&(!t.protocol||t$.indexOf(t.protocol)>=0))try{t.hostname=ZW.toUnicode(t.hostname)}catch(e){}return XW.decode(XW.format(t),XW.decode.defaultChars+"%")}function i$(e,t){if(!(this instanceof i$))return new i$(e,t);t||HW.isString(e)||(t=e||{},e="default"),this.inline=new GW,this.block=new $W,this.core=new WW,this.renderer=new UW,this.linkify=new YW,this.validateLink=e$,this.normalizeLink=n$,this.normalizeLinkText=r$,this.utils=HW,this.helpers=HW.assign({},VW),this.options={},this.configure(e),t&&this.set(t)}i$.prototype.set=function(e){return HW.assign(this.options,e),this},i$.prototype.configure=function(e){var t,n=this;if(HW.isString(e)&&!(e=KW[t=e]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&n.set(e.options),e.components&&Object.keys(e.components).forEach((function(t){e.components[t].rules&&n[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&n[t].ruler2.enableOnly(e.components[t].rules2)})),this},i$.prototype.enable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.enable(e,!0))}),this),n=n.concat(this.inline.ruler2.enable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},i$.prototype.disable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.disable(e,!0))}),this),n=n.concat(this.inline.ruler2.disable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},i$.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},i$.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},i$.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},i$.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},i$.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var o$=_(i$),a$={exports:{}},c$={},s$={};!function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(t=e.ElementType||(e.ElementType={})),e.isTag=function(e){return e.type===t.Tag||e.type===t.Script||e.type===t.Style},e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype}(s$);var l$={},u$=S&&S.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),f$=S&&S.__assign||function(){return f$=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},f$.apply(this,arguments)};Object.defineProperty(l$,"__esModule",{value:!0}),l$.cloneNode=l$.hasChildren=l$.isDocument=l$.isDirective=l$.isComment=l$.isText=l$.isCDATA=l$.isTag=l$.Element=l$.Document=l$.CDATA=l$.NodeWithChildren=l$.ProcessingInstruction=l$.Comment=l$.Text=l$.DataNode=l$.Node=void 0;var p$=s$,d$=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),C$(this,e)},e}();l$.Node=d$;var h$=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return u$(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(d$);l$.DataNode=h$;var m$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=p$.ElementType.Text,t}return u$(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(h$);l$.Text=m$;var y$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=p$.ElementType.Comment,t}return u$(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(h$);l$.Comment=y$;var v$=function(e){function t(t,n){var r=e.call(this,n)||this;return r.name=t,r.type=p$.ElementType.Directive,r}return u$(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(h$);l$.ProcessingInstruction=v$;var g$=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return u$(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(d$);l$.NodeWithChildren=g$;var b$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=p$.ElementType.CDATA,t}return u$(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(g$);l$.CDATA=b$;var x$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=p$.ElementType.Root,t}return u$(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(g$);l$.Document=x$;var w$=function(e){function t(t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i="script"===t?p$.ElementType.Script:"style"===t?p$.ElementType.Style:p$.ElementType.Tag);var o=e.call(this,r)||this;return o.name=t,o.attribs=n,o.type=i,o}return u$(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(g$);function k$(e){return(0,p$.isTag)(e)}function E$(e){return e.type===p$.ElementType.CDATA}function S$(e){return e.type===p$.ElementType.Text}function _$(e){return e.type===p$.ElementType.Comment}function O$(e){return e.type===p$.ElementType.Directive}function A$(e){return e.type===p$.ElementType.Root}function C$(e,t){var n;if(void 0===t&&(t=!1),S$(e))n=new m$(e.data);else if(_$(e))n=new y$(e.data);else if(k$(e)){var r=t?T$(e.children):[],i=new w$(e.name,f$({},e.attribs),r);r.forEach((function(e){return e.parent=i})),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=f$({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=f$({},e["x-attribsPrefix"])),n=i}else if(E$(e)){r=t?T$(e.children):[];var o=new b$(r);r.forEach((function(e){return e.parent=o})),n=o}else if(A$(e)){r=t?T$(e.children):[];var a=new x$(r);r.forEach((function(e){return e.parent=a})),e["x-mode"]&&(a["x-mode"]=e["x-mode"]),n=a}else{if(!O$(e))throw new Error("Not implemented yet: ".concat(e.type));var c=new v$(e.name,e.data);null!=e["x-name"]&&(c["x-name"]=e["x-name"],c["x-publicId"]=e["x-publicId"],c["x-systemId"]=e["x-systemId"]),n=c}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function T$(e){for(var t=e.map((function(e){return C$(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}l$.Element=w$,l$.isTag=k$,l$.isCDATA=E$,l$.isText=S$,l$.isComment=_$,l$.isDirective=O$,l$.isDocument=A$,l$.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},l$.cloneNode=C$,function(e){var t=S&&S.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=S&&S.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var r=s$,i=l$;n(l$,e);var o={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},a=function(){function e(e,t,n){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=o),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:o,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?r.ElementType.Tag:void 0,o=new i.Element(e,t,void 0,n);this.addNode(o),this.tagStack.push(o)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===r.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new i.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment)this.lastNode.data+=e;else{var t=new i.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new i.Text(""),t=new i.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new i.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();e.DomHandler=a,e.default=a}(c$);var P$={exports:{}},D$={},j$={},M$={},N$={},I$={};Object.defineProperty(I$,"__esModule",{value:!0}),I$.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((function(e){return e.charCodeAt(0)})));var R$={};Object.defineProperty(R$,"__esModule",{value:!0}),R$.default=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((function(e){return e.charCodeAt(0)})));var L$={};!function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.replaceCodePoint=e.fromCodePoint=void 0;var n=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function r(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=n.get(e))&&void 0!==t?t:e}e.fromCodePoint=null!==(t=String.fromCodePoint)&&void 0!==t?t:function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)},e.replaceCodePoint=r,e.default=function(t){return(0,e.fromCodePoint)(r(t))}}(L$),function(e){var t=S&&S.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXML=e.decodeHTMLStrict=e.decodeHTML=e.determineBranch=e.BinTrieFlags=e.fromCodePoint=e.replaceCodePoint=e.decodeCodePoint=e.xmlDecodeTree=e.htmlDecodeTree=void 0;var n=t(I$);e.htmlDecodeTree=n.default;var r=t(R$);e.xmlDecodeTree=r.default;var i=t(L$);e.decodeCodePoint=i.default;var o,a,c=L$;function s(e){return function(t,n){for(var r="",c=0,s=0;(s=t.indexOf("&",s))>=0;)if(r+=t.slice(c,s),c=s,s+=1,t.charCodeAt(s)!==o.NUM){for(var u=0,f=1,p=0,d=e[p];s<t.length&&!((p=l(e,d,p+1,t.charCodeAt(s)))<0);s++,f++){var h=(d=e[p])&a.VALUE_LENGTH;if(h){var m;if(n&&t.charCodeAt(s)!==o.SEMI||(u=p,f=0),0===(m=(h>>14)-1))break;p+=m}}if(0!==u)r+=1===(m=(e[u]&a.VALUE_LENGTH)>>14)?String.fromCharCode(e[u]&~a.VALUE_LENGTH):2===m?String.fromCharCode(e[u+1]):String.fromCharCode(e[u+1],e[u+2]),c=s-f+1}else{var y=s+1,v=10,g=t.charCodeAt(y);(g|o.To_LOWER_BIT)===o.LOWER_X&&(v=16,s+=1,y+=1);do{g=t.charCodeAt(++s)}while(g>=o.ZERO&&g<=o.NINE||16===v&&(g|o.To_LOWER_BIT)>=o.LOWER_A&&(g|o.To_LOWER_BIT)<=o.LOWER_F);if(y!==s){var b=t.substring(y,s),x=parseInt(b,v);if(t.charCodeAt(s)===o.SEMI)s+=1;else if(n)continue;r+=(0,i.default)(x),c=s}}return r+t.slice(c)}}function l(e,t,n,r){var i=(t&a.BRANCH_LENGTH)>>7,o=t&a.JUMP_TABLE;if(0===i)return 0!==o&&r===o?n:-1;if(o){var c=r-o;return c<0||c>=i?-1:e[n+c]-1}for(var s=n,l=s+i-1;s<=l;){var u=s+l>>>1,f=e[u];if(f<r)s=u+1;else{if(!(f>r))return e[u+i];l=u-1}}return-1}Object.defineProperty(e,"replaceCodePoint",{enumerable:!0,get:function(){return c.replaceCodePoint}}),Object.defineProperty(e,"fromCodePoint",{enumerable:!0,get:function(){return c.fromCodePoint}}),function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.To_LOWER_BIT=32]="To_LOWER_BIT"}(o||(o={})),function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(a=e.BinTrieFlags||(e.BinTrieFlags={})),e.determineBranch=l;var u=s(n.default),f=s(r.default);e.decodeHTML=function(e){return u(e,!1)},e.decodeHTMLStrict=function(e){return u(e,!0)},e.decodeXML=function(e){return f(e,!0)}}(N$),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.QuoteType=void 0;var t,n,r,i=N$;function o(e){return e===t.Space||e===t.NewLine||e===t.Tab||e===t.FormFeed||e===t.CarriageReturn}function a(e){return e===t.Slash||e===t.Gt||o(e)}function c(e){return e>=t.Zero&&e<=t.Nine}!function(e){e[e.Tab=9]="Tab",e[e.NewLine=10]="NewLine",e[e.FormFeed=12]="FormFeed",e[e.CarriageReturn=13]="CarriageReturn",e[e.Space=32]="Space",e[e.ExclamationMark=33]="ExclamationMark",e[e.Num=35]="Num",e[e.Amp=38]="Amp",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Dash=45]="Dash",e[e.Slash=47]="Slash",e[e.Zero=48]="Zero",e[e.Nine=57]="Nine",e[e.Semi=59]="Semi",e[e.Lt=60]="Lt",e[e.Eq=61]="Eq",e[e.Gt=62]="Gt",e[e.Questionmark=63]="Questionmark",e[e.UpperA=65]="UpperA",e[e.LowerA=97]="LowerA",e[e.UpperF=70]="UpperF",e[e.LowerF=102]="LowerF",e[e.UpperZ=90]="UpperZ",e[e.LowerZ=122]="LowerZ",e[e.LowerX=120]="LowerX",e[e.OpeningSquareBracket=91]="OpeningSquareBracket"}(t||(t={})),function(e){e[e.Text=1]="Text",e[e.BeforeTagName=2]="BeforeTagName",e[e.InTagName=3]="InTagName",e[e.InSelfClosingTag=4]="InSelfClosingTag",e[e.BeforeClosingTagName=5]="BeforeClosingTagName",e[e.InClosingTagName=6]="InClosingTagName",e[e.AfterClosingTagName=7]="AfterClosingTagName",e[e.BeforeAttributeName=8]="BeforeAttributeName",e[e.InAttributeName=9]="InAttributeName",e[e.AfterAttributeName=10]="AfterAttributeName",e[e.BeforeAttributeValue=11]="BeforeAttributeValue",e[e.InAttributeValueDq=12]="InAttributeValueDq",e[e.InAttributeValueSq=13]="InAttributeValueSq",e[e.InAttributeValueNq=14]="InAttributeValueNq",e[e.BeforeDeclaration=15]="BeforeDeclaration",e[e.InDeclaration=16]="InDeclaration",e[e.InProcessingInstruction=17]="InProcessingInstruction",e[e.BeforeComment=18]="BeforeComment",e[e.CDATASequence=19]="CDATASequence",e[e.InSpecialComment=20]="InSpecialComment",e[e.InCommentLike=21]="InCommentLike",e[e.BeforeSpecialS=22]="BeforeSpecialS",e[e.SpecialStartSequence=23]="SpecialStartSequence",e[e.InSpecialTag=24]="InSpecialTag",e[e.BeforeEntity=25]="BeforeEntity",e[e.BeforeNumericEntity=26]="BeforeNumericEntity",e[e.InNamedEntity=27]="InNamedEntity",e[e.InNumericEntity=28]="InNumericEntity",e[e.InHexEntity=29]="InHexEntity"}(n||(n={})),function(e){e[e.NoValue=0]="NoValue",e[e.Unquoted=1]="Unquoted",e[e.Single=2]="Single",e[e.Double=3]="Double"}(r=e.QuoteType||(e.QuoteType={}));var s={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},l=function(){function e(e,t){var r=e.xmlMode,o=void 0!==r&&r,a=e.decodeEntities,c=void 0===a||a;this.cbs=t,this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=o,this.decodeEntities=c,this.entityTrie=o?i.xmlDecodeTree:i.htmlDecodeTree}return e.prototype.reset=function(){this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},e.prototype.write=function(e){this.offset+=this.buffer.length,this.buffer=e,this.parse()},e.prototype.end=function(){this.running&&this.finish()},e.prototype.pause=function(){this.running=!1},e.prototype.resume=function(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()},e.prototype.getIndex=function(){return this.index},e.prototype.getSectionStart=function(){return this.sectionStart},e.prototype.stateText=function(e){e===t.Lt||!this.decodeEntities&&this.fastForwardTo(t.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=n.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&e===t.Amp&&(this.state=n.BeforeEntity)},e.prototype.stateSpecialStartSequence=function(e){var t=this.sequenceIndex===this.currentSequence.length;if(t?a(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t)return void this.sequenceIndex++}else this.isSpecial=!1;this.sequenceIndex=0,this.state=n.InTagName,this.stateInTagName(e)},e.prototype.stateInSpecialTag=function(e){if(this.sequenceIndex===this.currentSequence.length){if(e===t.Gt||o(e)){var r=this.index-this.currentSequence.length;if(this.sectionStart<r){var i=this.index;this.index=r,this.cbs.ontext(this.sectionStart,r),this.index=i}return this.isSpecial=!1,this.sectionStart=r+2,void this.stateInClosingTagName(e)}this.sequenceIndex=0}(32|e)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:0===this.sequenceIndex?this.currentSequence===s.TitleEnd?this.decodeEntities&&e===t.Amp&&(this.state=n.BeforeEntity):this.fastForwardTo(t.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=Number(e===t.Lt)},e.prototype.stateCDATASequence=function(e){e===s.Cdata[this.sequenceIndex]?++this.sequenceIndex===s.Cdata.length&&(this.state=n.InCommentLike,this.currentSequence=s.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=n.InDeclaration,this.stateInDeclaration(e))},e.prototype.fastForwardTo=function(e){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===e)return!0;return this.index=this.buffer.length+this.offset-1,!1},e.prototype.stateInCommentLike=function(e){e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===s.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=n.Text):0===this.sequenceIndex?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)},e.prototype.isTagStartChar=function(e){return this.xmlMode?!a(e):function(e){return e>=t.LowerA&&e<=t.LowerZ||e>=t.UpperA&&e<=t.UpperZ}(e)},e.prototype.startSpecial=function(e,t){this.isSpecial=!0,this.currentSequence=e,this.sequenceIndex=t,this.state=n.SpecialStartSequence},e.prototype.stateBeforeTagName=function(e){if(e===t.ExclamationMark)this.state=n.BeforeDeclaration,this.sectionStart=this.index+1;else if(e===t.Questionmark)this.state=n.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(e)){var r=32|e;this.sectionStart=this.index,this.xmlMode||r!==s.TitleEnd[2]?this.state=this.xmlMode||r!==s.ScriptEnd[2]?n.InTagName:n.BeforeSpecialS:this.startSpecial(s.TitleEnd,3)}else e===t.Slash?this.state=n.BeforeClosingTagName:(this.state=n.Text,this.stateText(e))},e.prototype.stateInTagName=function(e){a(e)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(e))},e.prototype.stateBeforeClosingTagName=function(e){o(e)||(e===t.Gt?this.state=n.Text:(this.state=this.isTagStartChar(e)?n.InClosingTagName:n.InSpecialComment,this.sectionStart=this.index))},e.prototype.stateInClosingTagName=function(e){(e===t.Gt||o(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.AfterClosingTagName,this.stateAfterClosingTagName(e))},e.prototype.stateAfterClosingTagName=function(e){(e===t.Gt||this.fastForwardTo(t.Gt))&&(this.state=n.Text,this.sectionStart=this.index+1)},e.prototype.stateBeforeAttributeName=function(e){e===t.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=n.InSpecialTag,this.sequenceIndex=0):this.state=n.Text,this.baseState=this.state,this.sectionStart=this.index+1):e===t.Slash?this.state=n.InSelfClosingTag:o(e)||(this.state=n.InAttributeName,this.sectionStart=this.index)},e.prototype.stateInSelfClosingTag=function(e){e===t.Gt?(this.cbs.onselfclosingtag(this.index),this.state=n.Text,this.baseState=n.Text,this.sectionStart=this.index+1,this.isSpecial=!1):o(e)||(this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(e))},e.prototype.stateInAttributeName=function(e){(e===t.Eq||a(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.AfterAttributeName,this.stateAfterAttributeName(e))},e.prototype.stateAfterAttributeName=function(e){e===t.Eq?this.state=n.BeforeAttributeValue:e===t.Slash||e===t.Gt?(this.cbs.onattribend(r.NoValue,this.index),this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(e)):o(e)||(this.cbs.onattribend(r.NoValue,this.index),this.state=n.InAttributeName,this.sectionStart=this.index)},e.prototype.stateBeforeAttributeValue=function(e){e===t.DoubleQuote?(this.state=n.InAttributeValueDq,this.sectionStart=this.index+1):e===t.SingleQuote?(this.state=n.InAttributeValueSq,this.sectionStart=this.index+1):o(e)||(this.sectionStart=this.index,this.state=n.InAttributeValueNq,this.stateInAttributeValueNoQuotes(e))},e.prototype.handleInAttributeValue=function(e,i){e===i||!this.decodeEntities&&this.fastForwardTo(i)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(i===t.DoubleQuote?r.Double:r.Single,this.index),this.state=n.BeforeAttributeName):this.decodeEntities&&e===t.Amp&&(this.baseState=this.state,this.state=n.BeforeEntity)},e.prototype.stateInAttributeValueDoubleQuotes=function(e){this.handleInAttributeValue(e,t.DoubleQuote)},e.prototype.stateInAttributeValueSingleQuotes=function(e){this.handleInAttributeValue(e,t.SingleQuote)},e.prototype.stateInAttributeValueNoQuotes=function(e){o(e)||e===t.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(r.Unquoted,this.index),this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(e)):this.decodeEntities&&e===t.Amp&&(this.baseState=this.state,this.state=n.BeforeEntity)},e.prototype.stateBeforeDeclaration=function(e){e===t.OpeningSquareBracket?(this.state=n.CDATASequence,this.sequenceIndex=0):this.state=e===t.Dash?n.BeforeComment:n.InDeclaration},e.prototype.stateInDeclaration=function(e){(e===t.Gt||this.fastForwardTo(t.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=n.Text,this.sectionStart=this.index+1)},e.prototype.stateInProcessingInstruction=function(e){(e===t.Gt||this.fastForwardTo(t.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=n.Text,this.sectionStart=this.index+1)},e.prototype.stateBeforeComment=function(e){e===t.Dash?(this.state=n.InCommentLike,this.currentSequence=s.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=n.InDeclaration},e.prototype.stateInSpecialComment=function(e){(e===t.Gt||this.fastForwardTo(t.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=n.Text,this.sectionStart=this.index+1)},e.prototype.stateBeforeSpecialS=function(e){var t=32|e;t===s.ScriptEnd[3]?this.startSpecial(s.ScriptEnd,4):t===s.StyleEnd[3]?this.startSpecial(s.StyleEnd,4):(this.state=n.InTagName,this.stateInTagName(e))},e.prototype.stateBeforeEntity=function(e){this.entityExcess=1,this.entityResult=0,e===t.Num?this.state=n.BeforeNumericEntity:e===t.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=n.InNamedEntity,this.stateInNamedEntity(e))},e.prototype.stateInNamedEntity=function(e){if(this.entityExcess+=1,this.trieIndex=(0,i.determineBranch)(this.entityTrie,this.trieCurrent,this.trieIndex+1,e),this.trieIndex<0)return this.emitNamedEntity(),void this.index--;this.trieCurrent=this.entityTrie[this.trieIndex];var n=this.trieCurrent&i.BinTrieFlags.VALUE_LENGTH;if(n){var r=(n>>14)-1;if(this.allowLegacyEntity()||e===t.Semi){var o=this.index-this.entityExcess+1;o>this.sectionStart&&this.emitPartial(this.sectionStart,o),this.entityResult=this.trieIndex,this.trieIndex+=r,this.entityExcess=0,this.sectionStart=this.index+1,0===r&&this.emitNamedEntity()}else this.trieIndex+=r}},e.prototype.emitNamedEntity=function(){if(this.state=this.baseState,0!==this.entityResult)switch((this.entityTrie[this.entityResult]&i.BinTrieFlags.VALUE_LENGTH)>>14){case 1:this.emitCodePoint(this.entityTrie[this.entityResult]&~i.BinTrieFlags.VALUE_LENGTH);break;case 2:this.emitCodePoint(this.entityTrie[this.entityResult+1]);break;case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}},e.prototype.stateBeforeNumericEntity=function(e){(32|e)===t.LowerX?(this.entityExcess++,this.state=n.InHexEntity):(this.state=n.InNumericEntity,this.stateInNumericEntity(e))},e.prototype.emitNumericEntity=function(e){var t=this.index-this.entityExcess-1;t+2+Number(this.state===n.InHexEntity)!==this.index&&(t>this.sectionStart&&this.emitPartial(this.sectionStart,t),this.sectionStart=this.index+Number(e),this.emitCodePoint((0,i.replaceCodePoint)(this.entityResult))),this.state=this.baseState},e.prototype.stateInNumericEntity=function(e){e===t.Semi?this.emitNumericEntity(!0):c(e)?(this.entityResult=10*this.entityResult+(e-t.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},e.prototype.stateInHexEntity=function(e){e===t.Semi?this.emitNumericEntity(!0):c(e)?(this.entityResult=16*this.entityResult+(e-t.Zero),this.entityExcess++):!function(e){return e>=t.UpperA&&e<=t.UpperF||e>=t.LowerA&&e<=t.LowerF}(e)?(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--):(this.entityResult=16*this.entityResult+((32|e)-t.LowerA+10),this.entityExcess++)},e.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===n.Text||this.baseState===n.InSpecialTag)},e.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===n.Text||this.state===n.InSpecialTag&&0===this.sequenceIndex?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):this.state!==n.InAttributeValueDq&&this.state!==n.InAttributeValueSq&&this.state!==n.InAttributeValueNq||(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},e.prototype.shouldContinue=function(){return this.index<this.buffer.length+this.offset&&this.running},e.prototype.parse=function(){for(;this.shouldContinue();){var e=this.buffer.charCodeAt(this.index-this.offset);this.state===n.Text?this.stateText(e):this.state===n.SpecialStartSequence?this.stateSpecialStartSequence(e):this.state===n.InSpecialTag?this.stateInSpecialTag(e):this.state===n.CDATASequence?this.stateCDATASequence(e):this.state===n.InAttributeValueDq?this.stateInAttributeValueDoubleQuotes(e):this.state===n.InAttributeName?this.stateInAttributeName(e):this.state===n.InCommentLike?this.stateInCommentLike(e):this.state===n.InSpecialComment?this.stateInSpecialComment(e):this.state===n.BeforeAttributeName?this.stateBeforeAttributeName(e):this.state===n.InTagName?this.stateInTagName(e):this.state===n.InClosingTagName?this.stateInClosingTagName(e):this.state===n.BeforeTagName?this.stateBeforeTagName(e):this.state===n.AfterAttributeName?this.stateAfterAttributeName(e):this.state===n.InAttributeValueSq?this.stateInAttributeValueSingleQuotes(e):this.state===n.BeforeAttributeValue?this.stateBeforeAttributeValue(e):this.state===n.BeforeClosingTagName?this.stateBeforeClosingTagName(e):this.state===n.AfterClosingTagName?this.stateAfterClosingTagName(e):this.state===n.BeforeSpecialS?this.stateBeforeSpecialS(e):this.state===n.InAttributeValueNq?this.stateInAttributeValueNoQuotes(e):this.state===n.InSelfClosingTag?this.stateInSelfClosingTag(e):this.state===n.InDeclaration?this.stateInDeclaration(e):this.state===n.BeforeDeclaration?this.stateBeforeDeclaration(e):this.state===n.BeforeComment?this.stateBeforeComment(e):this.state===n.InProcessingInstruction?this.stateInProcessingInstruction(e):this.state===n.InNamedEntity?this.stateInNamedEntity(e):this.state===n.BeforeEntity?this.stateBeforeEntity(e):this.state===n.InHexEntity?this.stateInHexEntity(e):this.state===n.InNumericEntity?this.stateInNumericEntity(e):this.stateBeforeNumericEntity(e),this.index++}this.cleanup()},e.prototype.finish=function(){this.state===n.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()},e.prototype.handleTrailingData=function(){var e=this.buffer.length+this.offset;this.state===n.InCommentLike?this.currentSequence===s.CdataEnd?this.cbs.oncdata(this.sectionStart,e,0):this.cbs.oncomment(this.sectionStart,e,0):this.state===n.InNumericEntity&&this.allowLegacyEntity()||this.state===n.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===n.InTagName||this.state===n.BeforeAttributeName||this.state===n.BeforeAttributeValue||this.state===n.AfterAttributeName||this.state===n.InAttributeName||this.state===n.InAttributeValueSq||this.state===n.InAttributeValueDq||this.state===n.InAttributeValueNq||this.state===n.InClosingTagName||this.cbs.ontext(this.sectionStart,e)},e.prototype.emitPartial=function(e,t){this.baseState!==n.Text&&this.baseState!==n.InSpecialTag?this.cbs.onattribdata(e,t):this.cbs.ontext(e,t)},e.prototype.emitCodePoint=function(e){this.baseState!==n.Text&&this.baseState!==n.InSpecialTag?this.cbs.onattribentity(e):this.cbs.ontextentity(e)},e}();e.default=l}(M$);var F$=S&&S.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),z$=S&&S.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),B$=S&&S.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&F$(t,e,n);return z$(t,e),t};Object.defineProperty(j$,"__esModule",{value:!0}),j$.Parser=void 0;var q$=B$(M$),H$=N$,V$=new Set(["input","option","optgroup","select","button","datalist","textarea"]),U$=new Set(["p"]),W$=new Set(["thead","tbody"]),$$=new Set(["dd","dt"]),G$=new Set(["rt","rp"]),Y$=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",U$],["h1",U$],["h2",U$],["h3",U$],["h4",U$],["h5",U$],["h6",U$],["select",V$],["input",V$],["output",V$],["button",V$],["datalist",V$],["textarea",V$],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",$$],["dt",$$],["address",U$],["article",U$],["aside",U$],["blockquote",U$],["details",U$],["div",U$],["dl",U$],["fieldset",U$],["figcaption",U$],["figure",U$],["footer",U$],["form",U$],["header",U$],["hr",U$],["main",U$],["nav",U$],["ol",U$],["pre",U$],["section",U$],["table",U$],["ul",U$],["rt",G$],["rp",G$],["tbody",W$],["tfoot",W$]]),X$=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),Z$=new Set(["math","svg"]),K$=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),J$=/\s|\//,Q$=function(){function e(e,t){var n,r,i,o,a;void 0===t&&(t={}),this.options=t,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=null!=e?e:{},this.lowerCaseTagNames=null!==(n=t.lowerCaseTags)&&void 0!==n?n:!t.xmlMode,this.lowerCaseAttributeNames=null!==(r=t.lowerCaseAttributeNames)&&void 0!==r?r:!t.xmlMode,this.tokenizer=new(null!==(i=t.Tokenizer)&&void 0!==i?i:q$.default)(this.options,this),null===(a=(o=this.cbs).onparserinit)||void 0===a||a.call(o,this)}return e.prototype.ontext=function(e,t){var n,r,i=this.getSlice(e,t);this.endIndex=t-1,null===(r=(n=this.cbs).ontext)||void 0===r||r.call(n,i),this.startIndex=t},e.prototype.ontextentity=function(e){var t,n,r=this.tokenizer.getSectionStart();this.endIndex=r-1,null===(n=(t=this.cbs).ontext)||void 0===n||n.call(t,(0,H$.fromCodePoint)(e)),this.startIndex=r},e.prototype.isVoidElement=function(e){return!this.options.xmlMode&&X$.has(e)},e.prototype.onopentagname=function(e,t){this.endIndex=t;var n=this.getSlice(e,t);this.lowerCaseTagNames&&(n=n.toLowerCase()),this.emitOpenTag(n)},e.prototype.emitOpenTag=function(e){var t,n,r,i;this.openTagStart=this.startIndex,this.tagname=e;var o=!this.options.xmlMode&&Y$.get(e);if(o)for(;this.stack.length>0&&o.has(this.stack[this.stack.length-1]);){var a=this.stack.pop();null===(n=(t=this.cbs).onclosetag)||void 0===n||n.call(t,a,!0)}this.isVoidElement(e)||(this.stack.push(e),Z$.has(e)?this.foreignContext.push(!0):K$.has(e)&&this.foreignContext.push(!1)),null===(i=(r=this.cbs).onopentagname)||void 0===i||i.call(r,e),this.cbs.onopentag&&(this.attribs={})},e.prototype.endOpenTag=function(e){var t,n;this.startIndex=this.openTagStart,this.attribs&&(null===(n=(t=this.cbs).onopentag)||void 0===n||n.call(t,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},e.prototype.onopentagend=function(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1},e.prototype.onclosetag=function(e,t){var n,r,i,o,a,c;this.endIndex=t;var s=this.getSlice(e,t);if(this.lowerCaseTagNames&&(s=s.toLowerCase()),(Z$.has(s)||K$.has(s))&&this.foreignContext.pop(),this.isVoidElement(s))this.options.xmlMode||"br"!==s||(null===(r=(n=this.cbs).onopentagname)||void 0===r||r.call(n,"br"),null===(o=(i=this.cbs).onopentag)||void 0===o||o.call(i,"br",{},!0),null===(c=(a=this.cbs).onclosetag)||void 0===c||c.call(a,"br",!1));else{var l=this.stack.lastIndexOf(s);if(-1!==l)if(this.cbs.onclosetag)for(var u=this.stack.length-l;u--;)this.cbs.onclosetag(this.stack.pop(),0!==u);else this.stack.length=l;else this.options.xmlMode||"p"!==s||(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=t+1},e.prototype.onselfclosingtag=function(e){this.endIndex=e,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)},e.prototype.closeCurrentTag=function(e){var t,n,r=this.tagname;this.endOpenTag(e),this.stack[this.stack.length-1]===r&&(null===(n=(t=this.cbs).onclosetag)||void 0===n||n.call(t,r,!e),this.stack.pop())},e.prototype.onattribname=function(e,t){this.startIndex=e;var n=this.getSlice(e,t);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n},e.prototype.onattribdata=function(e,t){this.attribvalue+=this.getSlice(e,t)},e.prototype.onattribentity=function(e){this.attribvalue+=(0,H$.fromCodePoint)(e)},e.prototype.onattribend=function(e,t){var n,r;this.endIndex=t,null===(r=(n=this.cbs).onattribute)||void 0===r||r.call(n,this.attribname,this.attribvalue,e===q$.QuoteType.Double?'"':e===q$.QuoteType.Single?"'":e===q$.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},e.prototype.getInstructionName=function(e){var t=e.search(J$),n=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n},e.prototype.ondeclaration=function(e,t){this.endIndex=t;var n=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){var r=this.getInstructionName(n);this.cbs.onprocessinginstruction("!".concat(r),"!".concat(n))}this.startIndex=t+1},e.prototype.onprocessinginstruction=function(e,t){this.endIndex=t;var n=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){var r=this.getInstructionName(n);this.cbs.onprocessinginstruction("?".concat(r),"?".concat(n))}this.startIndex=t+1},e.prototype.oncomment=function(e,t,n){var r,i,o,a;this.endIndex=t,null===(i=(r=this.cbs).oncomment)||void 0===i||i.call(r,this.getSlice(e,t-n)),null===(a=(o=this.cbs).oncommentend)||void 0===a||a.call(o),this.startIndex=t+1},e.prototype.oncdata=function(e,t,n){var r,i,o,a,c,s,l,u,f,p;this.endIndex=t;var d=this.getSlice(e,t-n);this.options.xmlMode||this.options.recognizeCDATA?(null===(i=(r=this.cbs).oncdatastart)||void 0===i||i.call(r),null===(a=(o=this.cbs).ontext)||void 0===a||a.call(o,d),null===(s=(c=this.cbs).oncdataend)||void 0===s||s.call(c)):(null===(u=(l=this.cbs).oncomment)||void 0===u||u.call(l,"[CDATA[".concat(d,"]]")),null===(p=(f=this.cbs).oncommentend)||void 0===p||p.call(f)),this.startIndex=t+1},e.prototype.onend=function(){var e,t;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var n=this.stack.length;n>0;this.cbs.onclosetag(this.stack[--n],!0));}null===(t=(e=this.cbs).onend)||void 0===t||t.call(e)},e.prototype.reset=function(){var e,t,n,r;null===(t=(e=this.cbs).onreset)||void 0===t||t.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,null===(r=(n=this.cbs).onparserinit)||void 0===r||r.call(n,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},e.prototype.parseComplete=function(e){this.reset(),this.end(e)},e.prototype.getSlice=function(e,t){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var n=this.buffers[0].slice(e-this.bufferOffset,t-this.bufferOffset);t-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,t-this.bufferOffset);return n},e.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},e.prototype.write=function(e){var t,n;this.ended?null===(n=(t=this.cbs).onerror)||void 0===n||n.call(t,new Error(".write() after done!")):(this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++))},e.prototype.end=function(e){var t,n;this.ended?null===(n=(t=this.cbs).onerror)||void 0===n||n.call(t,Error(".end() after done!")):(e&&this.write(e),this.ended=!0,this.tokenizer.end())},e.prototype.pause=function(){this.tokenizer.pause()},e.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()},e.prototype.parseChunk=function(e){this.write(e)},e.prototype.done=function(e){this.end(e)},e}();j$.Parser=Q$;var eG={},tG={},nG=S&&S.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),rG=S&&S.__assign||function(){return rG=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},rG.apply(this,arguments)};Object.defineProperty(tG,"__esModule",{value:!0}),tG.cloneNode=tG.hasChildren=tG.isDocument=tG.isDirective=tG.isComment=tG.isText=tG.isCDATA=tG.isTag=tG.Element=tG.Document=tG.CDATA=tG.NodeWithChildren=tG.ProcessingInstruction=tG.Comment=tG.Text=tG.DataNode=tG.Node=void 0;var iG=s$,oG=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),xG(this,e)},e}();tG.Node=oG;var aG=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return nG(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(oG);tG.DataNode=aG;var cG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=iG.ElementType.Text,t}return nG(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(aG);tG.Text=cG;var sG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=iG.ElementType.Comment,t}return nG(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(aG);tG.Comment=sG;var lG=function(e){function t(t,n){var r=e.call(this,n)||this;return r.name=t,r.type=iG.ElementType.Directive,r}return nG(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(aG);tG.ProcessingInstruction=lG;var uG=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return nG(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(oG);tG.NodeWithChildren=uG;var fG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=iG.ElementType.CDATA,t}return nG(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(uG);tG.CDATA=fG;var pG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=iG.ElementType.Root,t}return nG(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(uG);tG.Document=pG;var dG=function(e){function t(t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i="script"===t?iG.ElementType.Script:"style"===t?iG.ElementType.Style:iG.ElementType.Tag);var o=e.call(this,r)||this;return o.name=t,o.attribs=n,o.type=i,o}return nG(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(uG);function hG(e){return(0,iG.isTag)(e)}function mG(e){return e.type===iG.ElementType.CDATA}function yG(e){return e.type===iG.ElementType.Text}function vG(e){return e.type===iG.ElementType.Comment}function gG(e){return e.type===iG.ElementType.Directive}function bG(e){return e.type===iG.ElementType.Root}function xG(e,t){var n;if(void 0===t&&(t=!1),yG(e))n=new cG(e.data);else if(vG(e))n=new sG(e.data);else if(hG(e)){var r=t?wG(e.children):[],i=new dG(e.name,rG({},e.attribs),r);r.forEach((function(e){return e.parent=i})),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=rG({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=rG({},e["x-attribsPrefix"])),n=i}else if(mG(e)){r=t?wG(e.children):[];var o=new fG(r);r.forEach((function(e){return e.parent=o})),n=o}else if(bG(e)){r=t?wG(e.children):[];var a=new pG(r);r.forEach((function(e){return e.parent=a})),e["x-mode"]&&(a["x-mode"]=e["x-mode"]),n=a}else{if(!gG(e))throw new Error("Not implemented yet: ".concat(e.type));var c=new lG(e.name,e.data);null!=e["x-name"]&&(c["x-name"]=e["x-name"],c["x-publicId"]=e["x-publicId"],c["x-systemId"]=e["x-systemId"]),n=c}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function wG(e){for(var t=e.map((function(e){return xG(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}tG.Element=dG,tG.isTag=hG,tG.isCDATA=mG,tG.isText=yG,tG.isComment=vG,tG.isDirective=gG,tG.isDocument=bG,tG.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},tG.cloneNode=xG,function(e){var t=S&&S.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=S&&S.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var r=s$,i=tG;n(tG,e);var o={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},a=function(){function e(e,t,n){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=o),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:o,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?r.ElementType.Tag:void 0,o=new i.Element(e,t,void 0,n);this.addNode(o),this.tagStack.push(o)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===r.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new i.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment)this.lastNode.data+=e;else{var t=new i.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new i.Text(""),t=new i.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new i.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();e.DomHandler=a,e.default=a}(eG);var kG={},EG={},SG={},_G={},OG={},AG={};function CG(e){for(var t=1;t<e.length;t++)e[t][0]+=e[t-1][0]+1;return e}Object.defineProperty(AG,"__esModule",{value:!0}),AG.default=new Map(CG([[9,"	"],[0,"
"],[22,"!"],[0,"""],[0,"#"],[0,"$"],[0,"%"],[0,"&"],[0,"'"],[0,"("],[0,")"],[0,"*"],[0,"+"],[0,","],[1,"."],[0,"/"],[10,":"],[0,";"],[0,{v:"<",n:8402,o:"<⃒"}],[0,{v:"=",n:8421,o:"=⃥"}],[0,{v:">",n:8402,o:">⃒"}],[0,"?"],[0,"@"],[26,"["],[0,"\"],[0,"]"],[0,"^"],[0,"_"],[0,"`"],[5,{n:106,o:"fj"}],[20,"{"],[0,"|"],[0,"}"],[34," "],[0,"¡"],[0,"¢"],[0,"£"],[0,"¤"],[0,"¥"],[0,"¦"],[0,"§"],[0,"¨"],[0,"©"],[0,"ª"],[0,"«"],[0,"¬"],[0,"­"],[0,"®"],[0,"¯"],[0,"°"],[0,"±"],[0,"²"],[0,"³"],[0,"´"],[0,"µ"],[0,"¶"],[0,"·"],[0,"¸"],[0,"¹"],[0,"º"],[0,"»"],[0,"¼"],[0,"½"],[0,"¾"],[0,"¿"],[0,"À"],[0,"Á"],[0,"Â"],[0,"Ã"],[0,"Ä"],[0,"Å"],[0,"Æ"],[0,"Ç"],[0,"È"],[0,"É"],[0,"Ê"],[0,"Ë"],[0,"Ì"],[0,"Í"],[0,"Î"],[0,"Ï"],[0,"Ð"],[0,"Ñ"],[0,"Ò"],[0,"Ó"],[0,"Ô"],[0,"Õ"],[0,"Ö"],[0,"×"],[0,"Ø"],[0,"Ù"],[0,"Ú"],[0,"Û"],[0,"Ü"],[0,"Ý"],[0,"Þ"],[0,"ß"],[0,"à"],[0,"á"],[0,"â"],[0,"ã"],[0,"ä"],[0,"å"],[0,"æ"],[0,"ç"],[0,"è"],[0,"é"],[0,"ê"],[0,"ë"],[0,"ì"],[0,"í"],[0,"î"],[0,"ï"],[0,"ð"],[0,"ñ"],[0,"ò"],[0,"ó"],[0,"ô"],[0,"õ"],[0,"ö"],[0,"÷"],[0,"ø"],[0,"ù"],[0,"ú"],[0,"û"],[0,"ü"],[0,"ý"],[0,"þ"],[0,"ÿ"],[0,"Ā"],[0,"ā"],[0,"Ă"],[0,"ă"],[0,"Ą"],[0,"ą"],[0,"Ć"],[0,"ć"],[0,"Ĉ"],[0,"ĉ"],[0,"Ċ"],[0,"ċ"],[0,"Č"],[0,"č"],[0,"Ď"],[0,"ď"],[0,"Đ"],[0,"đ"],[0,"Ē"],[0,"ē"],[2,"Ė"],[0,"ė"],[0,"Ę"],[0,"ę"],[0,"Ě"],[0,"ě"],[0,"Ĝ"],[0,"ĝ"],[0,"Ğ"],[0,"ğ"],[0,"Ġ"],[0,"ġ"],[0,"Ģ"],[1,"Ĥ"],[0,"ĥ"],[0,"Ħ"],[0,"ħ"],[0,"Ĩ"],[0,"ĩ"],[0,"Ī"],[0,"ī"],[2,"Į"],[0,"į"],[0,"İ"],[0,"ı"],[0,"IJ"],[0,"ij"],[0,"Ĵ"],[0,"ĵ"],[0,"Ķ"],[0,"ķ"],[0,"ĸ"],[0,"Ĺ"],[0,"ĺ"],[0,"Ļ"],[0,"ļ"],[0,"Ľ"],[0,"ľ"],[0,"Ŀ"],[0,"ŀ"],[0,"Ł"],[0,"ł"],[0,"Ń"],[0,"ń"],[0,"Ņ"],[0,"ņ"],[0,"Ň"],[0,"ň"],[0,"ʼn"],[0,"Ŋ"],[0,"ŋ"],[0,"Ō"],[0,"ō"],[2,"Ő"],[0,"ő"],[0,"Œ"],[0,"œ"],[0,"Ŕ"],[0,"ŕ"],[0,"Ŗ"],[0,"ŗ"],[0,"Ř"],[0,"ř"],[0,"Ś"],[0,"ś"],[0,"Ŝ"],[0,"ŝ"],[0,"Ş"],[0,"ş"],[0,"Š"],[0,"š"],[0,"Ţ"],[0,"ţ"],[0,"Ť"],[0,"ť"],[0,"Ŧ"],[0,"ŧ"],[0,"Ũ"],[0,"ũ"],[0,"Ū"],[0,"ū"],[0,"Ŭ"],[0,"ŭ"],[0,"Ů"],[0,"ů"],[0,"Ű"],[0,"ű"],[0,"Ų"],[0,"ų"],[0,"Ŵ"],[0,"ŵ"],[0,"Ŷ"],[0,"ŷ"],[0,"Ÿ"],[0,"Ź"],[0,"ź"],[0,"Ż"],[0,"ż"],[0,"Ž"],[0,"ž"],[19,"ƒ"],[34,"Ƶ"],[63,"ǵ"],[65,"ȷ"],[142,"ˆ"],[0,"ˇ"],[16,"˘"],[0,"˙"],[0,"˚"],[0,"˛"],[0,"˜"],[0,"˝"],[51,"̑"],[127,"Α"],[0,"Β"],[0,"Γ"],[0,"Δ"],[0,"Ε"],[0,"Ζ"],[0,"Η"],[0,"Θ"],[0,"Ι"],[0,"Κ"],[0,"Λ"],[0,"Μ"],[0,"Ν"],[0,"Ξ"],[0,"Ο"],[0,"Π"],[0,"Ρ"],[1,"Σ"],[0,"Τ"],[0,"Υ"],[0,"Φ"],[0,"Χ"],[0,"Ψ"],[0,"Ω"],[7,"α"],[0,"β"],[0,"γ"],[0,"δ"],[0,"ε"],[0,"ζ"],[0,"η"],[0,"θ"],[0,"ι"],[0,"κ"],[0,"λ"],[0,"μ"],[0,"ν"],[0,"ξ"],[0,"ο"],[0,"π"],[0,"ρ"],[0,"ς"],[0,"σ"],[0,"τ"],[0,"υ"],[0,"φ"],[0,"χ"],[0,"ψ"],[0,"ω"],[7,"ϑ"],[0,"ϒ"],[2,"ϕ"],[0,"ϖ"],[5,"Ϝ"],[0,"ϝ"],[18,"ϰ"],[0,"ϱ"],[3,"ϵ"],[0,"϶"],[10,"Ё"],[0,"Ђ"],[0,"Ѓ"],[0,"Є"],[0,"Ѕ"],[0,"І"],[0,"Ї"],[0,"Ј"],[0,"Љ"],[0,"Њ"],[0,"Ћ"],[0,"Ќ"],[1,"Ў"],[0,"Џ"],[0,"А"],[0,"Б"],[0,"В"],[0,"Г"],[0,"Д"],[0,"Е"],[0,"Ж"],[0,"З"],[0,"И"],[0,"Й"],[0,"К"],[0,"Л"],[0,"М"],[0,"Н"],[0,"О"],[0,"П"],[0,"Р"],[0,"С"],[0,"Т"],[0,"У"],[0,"Ф"],[0,"Х"],[0,"Ц"],[0,"Ч"],[0,"Ш"],[0,"Щ"],[0,"Ъ"],[0,"Ы"],[0,"Ь"],[0,"Э"],[0,"Ю"],[0,"Я"],[0,"а"],[0,"б"],[0,"в"],[0,"г"],[0,"д"],[0,"е"],[0,"ж"],[0,"з"],[0,"и"],[0,"й"],[0,"к"],[0,"л"],[0,"м"],[0,"н"],[0,"о"],[0,"п"],[0,"р"],[0,"с"],[0,"т"],[0,"у"],[0,"ф"],[0,"х"],[0,"ц"],[0,"ч"],[0,"ш"],[0,"щ"],[0,"ъ"],[0,"ы"],[0,"ь"],[0,"э"],[0,"ю"],[0,"я"],[1,"ё"],[0,"ђ"],[0,"ѓ"],[0,"є"],[0,"ѕ"],[0,"і"],[0,"ї"],[0,"ј"],[0,"љ"],[0,"њ"],[0,"ћ"],[0,"ќ"],[1,"ў"],[0,"џ"],[7074," "],[0," "],[0," "],[0," "],[1," "],[0," "],[0," "],[0," "],[0,"​"],[0,"‌"],[0,"‍"],[0,"‎"],[0,"‏"],[0,"‐"],[2,"–"],[0,"—"],[0,"―"],[0,"‖"],[1,"‘"],[0,"’"],[0,"‚"],[1,"“"],[0,"”"],[0,"„"],[1,"†"],[0,"‡"],[0,"•"],[2,"‥"],[0,"…"],[9,"‰"],[0,"‱"],[0,"′"],[0,"″"],[0,"‴"],[0,"‵"],[3,"‹"],[0,"›"],[3,"‾"],[2,"⁁"],[1,"⁃"],[0,"⁄"],[10,"⁏"],[7,"⁗"],[7,{v:" ",n:8202,o:"  "}],[0,"⁠"],[0,"⁡"],[0,"⁢"],[0,"⁣"],[72,"€"],[46,"⃛"],[0,"⃜"],[37,"ℂ"],[2,"℅"],[4,"ℊ"],[0,"ℋ"],[0,"ℌ"],[0,"ℍ"],[0,"ℎ"],[0,"ℏ"],[0,"ℐ"],[0,"ℑ"],[0,"ℒ"],[0,"ℓ"],[1,"ℕ"],[0,"№"],[0,"℗"],[0,"℘"],[0,"ℙ"],[0,"ℚ"],[0,"ℛ"],[0,"ℜ"],[0,"ℝ"],[0,"℞"],[3,"™"],[1,"ℤ"],[2,"℧"],[0,"ℨ"],[0,"℩"],[2,"ℬ"],[0,"ℭ"],[1,"ℯ"],[0,"ℰ"],[0,"ℱ"],[1,"ℳ"],[0,"ℴ"],[0,"ℵ"],[0,"ℶ"],[0,"ℷ"],[0,"ℸ"],[12,"ⅅ"],[0,"ⅆ"],[0,"ⅇ"],[0,"ⅈ"],[10,"⅓"],[0,"⅔"],[0,"⅕"],[0,"⅖"],[0,"⅗"],[0,"⅘"],[0,"⅙"],[0,"⅚"],[0,"⅛"],[0,"⅜"],[0,"⅝"],[0,"⅞"],[49,"←"],[0,"↑"],[0,"→"],[0,"↓"],[0,"↔"],[0,"↕"],[0,"↖"],[0,"↗"],[0,"↘"],[0,"↙"],[0,"↚"],[0,"↛"],[1,{v:"↝",n:824,o:"↝̸"}],[0,"↞"],[0,"↟"],[0,"↠"],[0,"↡"],[0,"↢"],[0,"↣"],[0,"↤"],[0,"↥"],[0,"↦"],[0,"↧"],[1,"↩"],[0,"↪"],[0,"↫"],[0,"↬"],[0,"↭"],[0,"↮"],[1,"↰"],[0,"↱"],[0,"↲"],[0,"↳"],[1,"↵"],[0,"↶"],[0,"↷"],[2,"↺"],[0,"↻"],[0,"↼"],[0,"↽"],[0,"↾"],[0,"↿"],[0,"⇀"],[0,"⇁"],[0,"⇂"],[0,"⇃"],[0,"⇄"],[0,"⇅"],[0,"⇆"],[0,"⇇"],[0,"⇈"],[0,"⇉"],[0,"⇊"],[0,"⇋"],[0,"⇌"],[0,"⇍"],[0,"⇎"],[0,"⇏"],[0,"⇐"],[0,"⇑"],[0,"⇒"],[0,"⇓"],[0,"⇔"],[0,"⇕"],[0,"⇖"],[0,"⇗"],[0,"⇘"],[0,"⇙"],[0,"⇚"],[0,"⇛"],[1,"⇝"],[6,"⇤"],[0,"⇥"],[15,"⇵"],[7,"⇽"],[0,"⇾"],[0,"⇿"],[0,"∀"],[0,"∁"],[0,{v:"∂",n:824,o:"∂̸"}],[0,"∃"],[0,"∄"],[0,"∅"],[1,"∇"],[0,"∈"],[0,"∉"],[1,"∋"],[0,"∌"],[2,"∏"],[0,"∐"],[0,"∑"],[0,"−"],[0,"∓"],[0,"∔"],[1,"∖"],[0,"∗"],[0,"∘"],[1,"√"],[2,"∝"],[0,"∞"],[0,"∟"],[0,{v:"∠",n:8402,o:"∠⃒"}],[0,"∡"],[0,"∢"],[0,"∣"],[0,"∤"],[0,"∥"],[0,"∦"],[0,"∧"],[0,"∨"],[0,{v:"∩",n:65024,o:"∩︀"}],[0,{v:"∪",n:65024,o:"∪︀"}],[0,"∫"],[0,"∬"],[0,"∭"],[0,"∮"],[0,"∯"],[0,"∰"],[0,"∱"],[0,"∲"],[0,"∳"],[0,"∴"],[0,"∵"],[0,"∶"],[0,"∷"],[0,"∸"],[1,"∺"],[0,"∻"],[0,{v:"∼",n:8402,o:"∼⃒"}],[0,{v:"∽",n:817,o:"∽̱"}],[0,{v:"∾",n:819,o:"∾̳"}],[0,"∿"],[0,"≀"],[0,"≁"],[0,{v:"≂",n:824,o:"≂̸"}],[0,"≃"],[0,"≄"],[0,"≅"],[0,"≆"],[0,"≇"],[0,"≈"],[0,"≉"],[0,"≊"],[0,{v:"≋",n:824,o:"≋̸"}],[0,"≌"],[0,{v:"≍",n:8402,o:"≍⃒"}],[0,{v:"≎",n:824,o:"≎̸"}],[0,{v:"≏",n:824,o:"≏̸"}],[0,{v:"≐",n:824,o:"≐̸"}],[0,"≑"],[0,"≒"],[0,"≓"],[0,"≔"],[0,"≕"],[0,"≖"],[0,"≗"],[1,"≙"],[0,"≚"],[1,"≜"],[2,"≟"],[0,"≠"],[0,{v:"≡",n:8421,o:"≡⃥"}],[0,"≢"],[1,{v:"≤",n:8402,o:"≤⃒"}],[0,{v:"≥",n:8402,o:"≥⃒"}],[0,{v:"≦",n:824,o:"≦̸"}],[0,{v:"≧",n:824,o:"≧̸"}],[0,{v:"≨",n:65024,o:"≨︀"}],[0,{v:"≩",n:65024,o:"≩︀"}],[0,{v:"≪",n:new Map(CG([[824,"≪̸"],[7577,"≪⃒"]]))}],[0,{v:"≫",n:new Map(CG([[824,"≫̸"],[7577,"≫⃒"]]))}],[0,"≬"],[0,"≭"],[0,"≮"],[0,"≯"],[0,"≰"],[0,"≱"],[0,"≲"],[0,"≳"],[0,"≴"],[0,"≵"],[0,"≶"],[0,"≷"],[0,"≸"],[0,"≹"],[0,"≺"],[0,"≻"],[0,"≼"],[0,"≽"],[0,"≾"],[0,{v:"≿",n:824,o:"≿̸"}],[0,"⊀"],[0,"⊁"],[0,{v:"⊂",n:8402,o:"⊂⃒"}],[0,{v:"⊃",n:8402,o:"⊃⃒"}],[0,"⊄"],[0,"⊅"],[0,"⊆"],[0,"⊇"],[0,"⊈"],[0,"⊉"],[0,{v:"⊊",n:65024,o:"⊊︀"}],[0,{v:"⊋",n:65024,o:"⊋︀"}],[1,"⊍"],[0,"⊎"],[0,{v:"⊏",n:824,o:"⊏̸"}],[0,{v:"⊐",n:824,o:"⊐̸"}],[0,"⊑"],[0,"⊒"],[0,{v:"⊓",n:65024,o:"⊓︀"}],[0,{v:"⊔",n:65024,o:"⊔︀"}],[0,"⊕"],[0,"⊖"],[0,"⊗"],[0,"⊘"],[0,"⊙"],[0,"⊚"],[0,"⊛"],[1,"⊝"],[0,"⊞"],[0,"⊟"],[0,"⊠"],[0,"⊡"],[0,"⊢"],[0,"⊣"],[0,"⊤"],[0,"⊥"],[1,"⊧"],[0,"⊨"],[0,"⊩"],[0,"⊪"],[0,"⊫"],[0,"⊬"],[0,"⊭"],[0,"⊮"],[0,"⊯"],[0,"⊰"],[1,"⊲"],[0,"⊳"],[0,{v:"⊴",n:8402,o:"⊴⃒"}],[0,{v:"⊵",n:8402,o:"⊵⃒"}],[0,"⊶"],[0,"⊷"],[0,"⊸"],[0,"⊹"],[0,"⊺"],[0,"⊻"],[1,"⊽"],[0,"⊾"],[0,"⊿"],[0,"⋀"],[0,"⋁"],[0,"⋂"],[0,"⋃"],[0,"⋄"],[0,"⋅"],[0,"⋆"],[0,"⋇"],[0,"⋈"],[0,"⋉"],[0,"⋊"],[0,"⋋"],[0,"⋌"],[0,"⋍"],[0,"⋎"],[0,"⋏"],[0,"⋐"],[0,"⋑"],[0,"⋒"],[0,"⋓"],[0,"⋔"],[0,"⋕"],[0,"⋖"],[0,"⋗"],[0,{v:"⋘",n:824,o:"⋘̸"}],[0,{v:"⋙",n:824,o:"⋙̸"}],[0,{v:"⋚",n:65024,o:"⋚︀"}],[0,{v:"⋛",n:65024,o:"⋛︀"}],[2,"⋞"],[0,"⋟"],[0,"⋠"],[0,"⋡"],[0,"⋢"],[0,"⋣"],[2,"⋦"],[0,"⋧"],[0,"⋨"],[0,"⋩"],[0,"⋪"],[0,"⋫"],[0,"⋬"],[0,"⋭"],[0,"⋮"],[0,"⋯"],[0,"⋰"],[0,"⋱"],[0,"⋲"],[0,"⋳"],[0,"⋴"],[0,{v:"⋵",n:824,o:"⋵̸"}],[0,"⋶"],[0,"⋷"],[1,{v:"⋹",n:824,o:"⋹̸"}],[0,"⋺"],[0,"⋻"],[0,"⋼"],[0,"⋽"],[0,"⋾"],[6,"⌅"],[0,"⌆"],[1,"⌈"],[0,"⌉"],[0,"⌊"],[0,"⌋"],[0,"⌌"],[0,"⌍"],[0,"⌎"],[0,"⌏"],[0,"⌐"],[1,"⌒"],[0,"⌓"],[1,"⌕"],[0,"⌖"],[5,"⌜"],[0,"⌝"],[0,"⌞"],[0,"⌟"],[2,"⌢"],[0,"⌣"],[9,"⌭"],[0,"⌮"],[7,"⌶"],[6,"⌽"],[1,"⌿"],[60,"⍼"],[51,"⎰"],[0,"⎱"],[2,"⎴"],[0,"⎵"],[0,"⎶"],[37,"⏜"],[0,"⏝"],[0,"⏞"],[0,"⏟"],[2,"⏢"],[4,"⏧"],[59,"␣"],[164,"Ⓢ"],[55,"─"],[1,"│"],[9,"┌"],[3,"┐"],[3,"└"],[3,"┘"],[3,"├"],[7,"┤"],[7,"┬"],[7,"┴"],[7,"┼"],[19,"═"],[0,"║"],[0,"╒"],[0,"╓"],[0,"╔"],[0,"╕"],[0,"╖"],[0,"╗"],[0,"╘"],[0,"╙"],[0,"╚"],[0,"╛"],[0,"╜"],[0,"╝"],[0,"╞"],[0,"╟"],[0,"╠"],[0,"╡"],[0,"╢"],[0,"╣"],[0,"╤"],[0,"╥"],[0,"╦"],[0,"╧"],[0,"╨"],[0,"╩"],[0,"╪"],[0,"╫"],[0,"╬"],[19,"▀"],[3,"▄"],[3,"█"],[8,"░"],[0,"▒"],[0,"▓"],[13,"□"],[8,"▪"],[0,"▫"],[1,"▭"],[0,"▮"],[2,"▱"],[1,"△"],[0,"▴"],[0,"▵"],[2,"▸"],[0,"▹"],[3,"▽"],[0,"▾"],[0,"▿"],[2,"◂"],[0,"◃"],[6,"◊"],[0,"○"],[32,"◬"],[2,"◯"],[8,"◸"],[0,"◹"],[0,"◺"],[0,"◻"],[0,"◼"],[8,"★"],[0,"☆"],[7,"☎"],[49,"♀"],[1,"♂"],[29,"♠"],[2,"♣"],[1,"♥"],[0,"♦"],[3,"♪"],[2,"♭"],[0,"♮"],[0,"♯"],[163,"✓"],[3,"✗"],[8,"✠"],[21,"✶"],[33,"❘"],[25,"❲"],[0,"❳"],[84,"⟈"],[0,"⟉"],[28,"⟦"],[0,"⟧"],[0,"⟨"],[0,"⟩"],[0,"⟪"],[0,"⟫"],[0,"⟬"],[0,"⟭"],[7,"⟵"],[0,"⟶"],[0,"⟷"],[0,"⟸"],[0,"⟹"],[0,"⟺"],[1,"⟼"],[2,"⟿"],[258,"⤂"],[0,"⤃"],[0,"⤄"],[0,"⤅"],[6,"⤌"],[0,"⤍"],[0,"⤎"],[0,"⤏"],[0,"⤐"],[0,"⤑"],[0,"⤒"],[0,"⤓"],[2,"⤖"],[2,"⤙"],[0,"⤚"],[0,"⤛"],[0,"⤜"],[0,"⤝"],[0,"⤞"],[0,"⤟"],[0,"⤠"],[2,"⤣"],[0,"⤤"],[0,"⤥"],[0,"⤦"],[0,"⤧"],[0,"⤨"],[0,"⤩"],[0,"⤪"],[8,{v:"⤳",n:824,o:"⤳̸"}],[1,"⤵"],[0,"⤶"],[0,"⤷"],[0,"⤸"],[0,"⤹"],[2,"⤼"],[0,"⤽"],[7,"⥅"],[2,"⥈"],[0,"⥉"],[0,"⥊"],[0,"⥋"],[2,"⥎"],[0,"⥏"],[0,"⥐"],[0,"⥑"],[0,"⥒"],[0,"⥓"],[0,"⥔"],[0,"⥕"],[0,"⥖"],[0,"⥗"],[0,"⥘"],[0,"⥙"],[0,"⥚"],[0,"⥛"],[0,"⥜"],[0,"⥝"],[0,"⥞"],[0,"⥟"],[0,"⥠"],[0,"⥡"],[0,"⥢"],[0,"⥣"],[0,"⥤"],[0,"⥥"],[0,"⥦"],[0,"⥧"],[0,"⥨"],[0,"⥩"],[0,"⥪"],[0,"⥫"],[0,"⥬"],[0,"⥭"],[0,"⥮"],[0,"⥯"],[0,"⥰"],[0,"⥱"],[0,"⥲"],[0,"⥳"],[0,"⥴"],[0,"⥵"],[0,"⥶"],[1,"⥸"],[0,"⥹"],[1,"⥻"],[0,"⥼"],[0,"⥽"],[0,"⥾"],[0,"⥿"],[5,"⦅"],[0,"⦆"],[4,"⦋"],[0,"⦌"],[0,"⦍"],[0,"⦎"],[0,"⦏"],[0,"⦐"],[0,"⦑"],[0,"⦒"],[0,"⦓"],[0,"⦔"],[0,"⦕"],[0,"⦖"],[3,"⦚"],[1,"⦜"],[0,"⦝"],[6,"⦤"],[0,"⦥"],[0,"⦦"],[0,"⦧"],[0,"⦨"],[0,"⦩"],[0,"⦪"],[0,"⦫"],[0,"⦬"],[0,"⦭"],[0,"⦮"],[0,"⦯"],[0,"⦰"],[0,"⦱"],[0,"⦲"],[0,"⦳"],[0,"⦴"],[0,"⦵"],[0,"⦶"],[0,"⦷"],[1,"⦹"],[1,"⦻"],[0,"⦼"],[1,"⦾"],[0,"⦿"],[0,"⧀"],[0,"⧁"],[0,"⧂"],[0,"⧃"],[0,"⧄"],[0,"⧅"],[3,"⧉"],[3,"⧍"],[0,"⧎"],[0,{v:"⧏",n:824,o:"⧏̸"}],[0,{v:"⧐",n:824,o:"⧐̸"}],[11,"⧜"],[0,"⧝"],[0,"⧞"],[4,"⧣"],[0,"⧤"],[0,"⧥"],[5,"⧫"],[8,"⧴"],[1,"⧶"],[9,"⨀"],[0,"⨁"],[0,"⨂"],[1,"⨄"],[1,"⨆"],[5,"⨌"],[0,"⨍"],[2,"⨐"],[0,"⨑"],[0,"⨒"],[0,"⨓"],[0,"⨔"],[0,"⨕"],[0,"⨖"],[0,"⨗"],[10,"⨢"],[0,"⨣"],[0,"⨤"],[0,"⨥"],[0,"⨦"],[0,"⨧"],[1,"⨩"],[0,"⨪"],[2,"⨭"],[0,"⨮"],[0,"⨯"],[0,"⨰"],[0,"⨱"],[1,"⨳"],[0,"⨴"],[0,"⨵"],[0,"⨶"],[0,"⨷"],[0,"⨸"],[0,"⨹"],[0,"⨺"],[0,"⨻"],[0,"⨼"],[2,"⨿"],[0,"⩀"],[1,"⩂"],[0,"⩃"],[0,"⩄"],[0,"⩅"],[0,"⩆"],[0,"⩇"],[0,"⩈"],[0,"⩉"],[0,"⩊"],[0,"⩋"],[0,"⩌"],[0,"⩍"],[2,"⩐"],[2,"⩓"],[0,"⩔"],[0,"⩕"],[0,"⩖"],[0,"⩗"],[0,"⩘"],[1,"⩚"],[0,"⩛"],[0,"⩜"],[0,"⩝"],[1,"⩟"],[6,"⩦"],[3,"⩪"],[2,{v:"⩭",n:824,o:"⩭̸"}],[0,"⩮"],[0,"⩯"],[0,{v:"⩰",n:824,o:"⩰̸"}],[0,"⩱"],[0,"⩲"],[0,"⩳"],[0,"⩴"],[0,"⩵"],[1,"⩷"],[0,"⩸"],[0,"⩹"],[0,"⩺"],[0,"⩻"],[0,"⩼"],[0,{v:"⩽",n:824,o:"⩽̸"}],[0,{v:"⩾",n:824,o:"⩾̸"}],[0,"⩿"],[0,"⪀"],[0,"⪁"],[0,"⪂"],[0,"⪃"],[0,"⪄"],[0,"⪅"],[0,"⪆"],[0,"⪇"],[0,"⪈"],[0,"⪉"],[0,"⪊"],[0,"⪋"],[0,"⪌"],[0,"⪍"],[0,"⪎"],[0,"⪏"],[0,"⪐"],[0,"⪑"],[0,"⪒"],[0,"⪓"],[0,"⪔"],[0,"⪕"],[0,"⪖"],[0,"⪗"],[0,"⪘"],[0,"⪙"],[0,"⪚"],[2,"⪝"],[0,"⪞"],[0,"⪟"],[0,"⪠"],[0,{v:"⪡",n:824,o:"⪡̸"}],[0,{v:"⪢",n:824,o:"⪢̸"}],[1,"⪤"],[0,"⪥"],[0,"⪦"],[0,"⪧"],[0,"⪨"],[0,"⪩"],[0,"⪪"],[0,"⪫"],[0,{v:"⪬",n:65024,o:"⪬︀"}],[0,{v:"⪭",n:65024,o:"⪭︀"}],[0,"⪮"],[0,{v:"⪯",n:824,o:"⪯̸"}],[0,{v:"⪰",n:824,o:"⪰̸"}],[2,"⪳"],[0,"⪴"],[0,"⪵"],[0,"⪶"],[0,"⪷"],[0,"⪸"],[0,"⪹"],[0,"⪺"],[0,"⪻"],[0,"⪼"],[0,"⪽"],[0,"⪾"],[0,"⪿"],[0,"⫀"],[0,"⫁"],[0,"⫂"],[0,"⫃"],[0,"⫄"],[0,{v:"⫅",n:824,o:"⫅̸"}],[0,{v:"⫆",n:824,o:"⫆̸"}],[0,"⫇"],[0,"⫈"],[2,{v:"⫋",n:65024,o:"⫋︀"}],[0,{v:"⫌",n:65024,o:"⫌︀"}],[2,"⫏"],[0,"⫐"],[0,"⫑"],[0,"⫒"],[0,"⫓"],[0,"⫔"],[0,"⫕"],[0,"⫖"],[0,"⫗"],[0,"⫘"],[0,"⫙"],[0,"⫚"],[0,"⫛"],[8,"⫤"],[1,"⫦"],[0,"⫧"],[0,"⫨"],[0,"⫩"],[1,"⫫"],[0,"⫬"],[0,"⫭"],[0,"⫮"],[0,"⫯"],[0,"⫰"],[0,"⫱"],[0,"⫲"],[0,"⫳"],[9,{v:"⫽",n:8421,o:"⫽⃥"}],[44343,{n:new Map(CG([[56476,"𝒜"],[1,"𝒞"],[0,"𝒟"],[2,"𝒢"],[2,"𝒥"],[0,"𝒦"],[2,"𝒩"],[0,"𝒪"],[0,"𝒫"],[0,"𝒬"],[1,"𝒮"],[0,"𝒯"],[0,"𝒰"],[0,"𝒱"],[0,"𝒲"],[0,"𝒳"],[0,"𝒴"],[0,"𝒵"],[0,"𝒶"],[0,"𝒷"],[0,"𝒸"],[0,"𝒹"],[1,"𝒻"],[1,"𝒽"],[0,"𝒾"],[0,"𝒿"],[0,"𝓀"],[0,"𝓁"],[0,"𝓂"],[0,"𝓃"],[1,"𝓅"],[0,"𝓆"],[0,"𝓇"],[0,"𝓈"],[0,"𝓉"],[0,"𝓊"],[0,"𝓋"],[0,"𝓌"],[0,"𝓍"],[0,"𝓎"],[0,"𝓏"],[52,"𝔄"],[0,"𝔅"],[1,"𝔇"],[0,"𝔈"],[0,"𝔉"],[0,"𝔊"],[2,"𝔍"],[0,"𝔎"],[0,"𝔏"],[0,"𝔐"],[0,"𝔑"],[0,"𝔒"],[0,"𝔓"],[0,"𝔔"],[1,"𝔖"],[0,"𝔗"],[0,"𝔘"],[0,"𝔙"],[0,"𝔚"],[0,"𝔛"],[0,"𝔜"],[1,"𝔞"],[0,"𝔟"],[0,"𝔠"],[0,"𝔡"],[0,"𝔢"],[0,"𝔣"],[0,"𝔤"],[0,"𝔥"],[0,"𝔦"],[0,"𝔧"],[0,"𝔨"],[0,"𝔩"],[0,"𝔪"],[0,"𝔫"],[0,"𝔬"],[0,"𝔭"],[0,"𝔮"],[0,"𝔯"],[0,"𝔰"],[0,"𝔱"],[0,"𝔲"],[0,"𝔳"],[0,"𝔴"],[0,"𝔵"],[0,"𝔶"],[0,"𝔷"],[0,"𝔸"],[0,"𝔹"],[1,"𝔻"],[0,"𝔼"],[0,"𝔽"],[0,"𝔾"],[1,"𝕀"],[0,"𝕁"],[0,"𝕂"],[0,"𝕃"],[0,"𝕄"],[1,"𝕆"],[3,"𝕊"],[0,"𝕋"],[0,"𝕌"],[0,"𝕍"],[0,"𝕎"],[0,"𝕏"],[0,"𝕐"],[1,"𝕒"],[0,"𝕓"],[0,"𝕔"],[0,"𝕕"],[0,"𝕖"],[0,"𝕗"],[0,"𝕘"],[0,"𝕙"],[0,"𝕚"],[0,"𝕛"],[0,"𝕜"],[0,"𝕝"],[0,"𝕞"],[0,"𝕟"],[0,"𝕠"],[0,"𝕡"],[0,"𝕢"],[0,"𝕣"],[0,"𝕤"],[0,"𝕥"],[0,"𝕦"],[0,"𝕧"],[0,"𝕨"],[0,"𝕩"],[0,"𝕪"],[0,"𝕫"]]))}],[8906,"ff"],[0,"fi"],[0,"fl"],[0,"ffi"],[0,"ffl"]]));var TG={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.escapeText=e.escapeAttribute=e.escapeUTF8=e.escape=e.encodeXML=e.getCodePoint=e.xmlReplacer=void 0,e.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var t=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);function n(n){for(var r,i="",o=0;null!==(r=e.xmlReplacer.exec(n));){var a=r.index,c=n.charCodeAt(a),s=t.get(c);void 0!==s?(i+=n.substring(o,a)+s,o=a+1):(i+="".concat(n.substring(o,a),"&#x").concat((0,e.getCodePoint)(n,a).toString(16),";"),o=e.xmlReplacer.lastIndex+=Number(55296==(64512&c)))}return i+n.substr(o)}function r(e,t){return function(n){for(var r,i=0,o="";r=e.exec(n);)i!==r.index&&(o+=n.substring(i,r.index)),o+=t.get(r[0].charCodeAt(0)),i=r.index+1;return o+n.substring(i)}}e.getCodePoint=null!=String.prototype.codePointAt?function(e,t){return e.codePointAt(t)}:function(e,t){return 55296==(64512&e.charCodeAt(t))?1024*(e.charCodeAt(t)-55296)+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t)},e.encodeXML=n,e.escape=n,e.escapeUTF8=r(/[&<>'"]/g,t),e.escapeAttribute=r(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),e.escapeText=r(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))}(TG);var PG=S&&S.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(OG,"__esModule",{value:!0}),OG.encodeNonAsciiHTML=OG.encodeHTML=void 0;var DG=PG(AG),jG=TG,MG=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function NG(e,t){for(var n,r="",i=0;null!==(n=e.exec(t));){var o=n.index;r+=t.substring(i,o);var a=t.charCodeAt(o),c=DG.default.get(a);if("object"==typeof c){if(o+1<t.length){var s=t.charCodeAt(o+1),l="number"==typeof c.n?c.n===s?c.o:void 0:c.n.get(s);if(void 0!==l){r+=l,i=e.lastIndex+=1;continue}}c=c.v}if(void 0!==c)r+=c,i=o+1;else{var u=(0,jG.getCodePoint)(t,o);r+="&#x".concat(u.toString(16),";"),i=e.lastIndex+=Number(u!==a)}}return r+t.substr(i)}OG.encodeHTML=function(e){return NG(MG,e)},OG.encodeNonAsciiHTML=function(e){return NG(jG.xmlReplacer,e)},function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.encodeNonAsciiHTML=e.encodeHTML=e.escapeText=e.escapeAttribute=e.escapeUTF8=e.escape=e.encodeXML=e.encode=e.decodeStrict=e.decode=e.EncodingMode=e.DecodingMode=e.EntityLevel=void 0;var t,n,r,i=N$,o=OG,a=TG;!function(e){e[e.XML=0]="XML",e[e.HTML=1]="HTML"}(t=e.EntityLevel||(e.EntityLevel={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict"}(n=e.DecodingMode||(e.DecodingMode={})),function(e){e[e.UTF8=0]="UTF8",e[e.ASCII=1]="ASCII",e[e.Extensive=2]="Extensive",e[e.Attribute=3]="Attribute",e[e.Text=4]="Text"}(r=e.EncodingMode||(e.EncodingMode={})),e.decode=function(e,r){void 0===r&&(r=t.XML);var o="number"==typeof r?{level:r}:r;return o.level===t.HTML?o.mode===n.Strict?(0,i.decodeHTMLStrict)(e):(0,i.decodeHTML)(e):(0,i.decodeXML)(e)},e.decodeStrict=function(e,r){void 0===r&&(r=t.XML);var o="number"==typeof r?{level:r}:r;return o.level===t.HTML?o.mode===n.Legacy?(0,i.decodeHTML)(e):(0,i.decodeHTMLStrict)(e):(0,i.decodeXML)(e)},e.encode=function(e,n){void 0===n&&(n=t.XML);var i="number"==typeof n?{level:n}:n;return i.mode===r.UTF8?(0,a.escapeUTF8)(e):i.mode===r.Attribute?(0,a.escapeAttribute)(e):i.mode===r.Text?(0,a.escapeText)(e):i.level===t.HTML?i.mode===r.ASCII?(0,o.encodeNonAsciiHTML)(e):(0,o.encodeHTML)(e):(0,a.encodeXML)(e)};var c=TG;Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return c.encodeXML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return c.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return c.escapeUTF8}}),Object.defineProperty(e,"escapeAttribute",{enumerable:!0,get:function(){return c.escapeAttribute}}),Object.defineProperty(e,"escapeText",{enumerable:!0,get:function(){return c.escapeText}});var s=OG;Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return s.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return s.encodeNonAsciiHTML}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return s.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return s.encodeHTML}});var l=N$;Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return l.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return l.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return l.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return l.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return l.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return l.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return l.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return l.decodeXML}})}(_G);var IG={};Object.defineProperty(IG,"__esModule",{value:!0}),IG.attributeNames=IG.elementNames=void 0,IG.elementNames=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map((function(e){return[e.toLowerCase(),e]}))),IG.attributeNames=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map((function(e){return[e.toLowerCase(),e]})));var RG=S&&S.__assign||function(){return RG=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},RG.apply(this,arguments)},LG=S&&S.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),FG=S&&S.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),zG=S&&S.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&LG(t,e,n);return FG(t,e),t};Object.defineProperty(SG,"__esModule",{value:!0}),SG.render=void 0;var BG=zG(s$),qG=_G,HG=IG,VG=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function UG(e){return e.replace(/"/g,""")}var WG=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function $G(e,t){void 0===t&&(t={});for(var n=("length"in e?e:[e]),r="",i=0;i<n.length;i++)r+=GG(n[i],t);return r}function GG(e,t){switch(e.type){case BG.Root:return $G(e.children,t);case BG.Doctype:case BG.Directive:return"<".concat(e.data,">");case BG.Comment:return function(e){return"\x3c!--".concat(e.data,"--\x3e")}(e);case BG.CDATA:return function(e){return"<![CDATA[".concat(e.children[0].data,"]]>")}(e);case BG.Script:case BG.Style:case BG.Tag:return function(e,t){var n;"foreign"===t.xmlMode&&(e.name=null!==(n=HG.elementNames.get(e.name))&&void 0!==n?n:e.name,e.parent&&YG.has(e.parent.name)&&(t=RG(RG({},t),{xmlMode:!1})));!t.xmlMode&&XG.has(e.name)&&(t=RG(RG({},t),{xmlMode:"foreign"}));var r="<".concat(e.name),i=function(e,t){var n;if(e){var r=!1===(null!==(n=t.encodeEntities)&&void 0!==n?n:t.decodeEntities)?UG:t.xmlMode||"utf8"!==t.encodeEntities?qG.encodeXML:qG.escapeAttribute;return Object.keys(e).map((function(n){var i,o,a=null!==(i=e[n])&&void 0!==i?i:"";return"foreign"===t.xmlMode&&(n=null!==(o=HG.attributeNames.get(n))&&void 0!==o?o:n),t.emptyAttrs||t.xmlMode||""!==a?"".concat(n,'="').concat(r(a),'"'):n})).join(" ")}}(e.attribs,t);i&&(r+=" ".concat(i));0===e.children.length&&(t.xmlMode?!1!==t.selfClosingTags:t.selfClosingTags&&WG.has(e.name))?(t.xmlMode||(r+=" "),r+="/>"):(r+=">",e.children.length>0&&(r+=$G(e.children,t)),!t.xmlMode&&WG.has(e.name)||(r+="</".concat(e.name,">")));return r}(e,t);case BG.Text:return function(e,t){var n,r=e.data||"";!1===(null!==(n=t.encodeEntities)&&void 0!==n?n:t.decodeEntities)||!t.xmlMode&&e.parent&&VG.has(e.parent.name)||(r=t.xmlMode||"utf8"!==t.encodeEntities?(0,qG.encodeXML)(r):(0,qG.escapeText)(r));return r}(e,t)}}SG.render=$G,SG.default=$G;var YG=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),XG=new Set(["svg","math"]);var ZG=S&&S.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(EG,"__esModule",{value:!0}),EG.innerText=EG.textContent=EG.getText=EG.getInnerHTML=EG.getOuterHTML=void 0;var KG=eG,JG=ZG(SG),QG=s$;function eY(e,t){return(0,JG.default)(e,t)}EG.getOuterHTML=eY,EG.getInnerHTML=function(e,t){return(0,KG.hasChildren)(e)?e.children.map((function(e){return eY(e,t)})).join(""):""},EG.getText=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,KG.isTag)(t)?"br"===t.name?"\n":e(t.children):(0,KG.isCDATA)(t)?e(t.children):(0,KG.isText)(t)?t.data:""},EG.textContent=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,KG.hasChildren)(t)&&!(0,KG.isComment)(t)?e(t.children):(0,KG.isText)(t)?t.data:""},EG.innerText=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,KG.hasChildren)(t)&&(t.type===QG.ElementType.Tag||(0,KG.isCDATA)(t))?e(t.children):(0,KG.isText)(t)?t.data:""};var tY={};Object.defineProperty(tY,"__esModule",{value:!0}),tY.prevElementSibling=tY.nextElementSibling=tY.getName=tY.hasAttrib=tY.getAttributeValue=tY.getSiblings=tY.getParent=tY.getChildren=void 0;var nY=eG;function rY(e){return(0,nY.hasChildren)(e)?e.children:[]}function iY(e){return e.parent||null}tY.getChildren=rY,tY.getParent=iY,tY.getSiblings=function(e){var t=iY(e);if(null!=t)return rY(t);for(var n=[e],r=e.prev,i=e.next;null!=r;)n.unshift(r),r=r.prev;for(;null!=i;)n.push(i),i=i.next;return n},tY.getAttributeValue=function(e,t){var n;return null===(n=e.attribs)||void 0===n?void 0:n[t]},tY.hasAttrib=function(e,t){return null!=e.attribs&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&null!=e.attribs[t]},tY.getName=function(e){return e.name},tY.nextElementSibling=function(e){for(var t=e.next;null!==t&&!(0,nY.isTag)(t);)t=t.next;return t},tY.prevElementSibling=function(e){for(var t=e.prev;null!==t&&!(0,nY.isTag)(t);)t=t.prev;return t};var oY={};function aY(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var t=e.parent.children;t.splice(t.lastIndexOf(e),1)}}Object.defineProperty(oY,"__esModule",{value:!0}),oY.prepend=oY.prependChild=oY.append=oY.appendChild=oY.replaceElement=oY.removeElement=void 0,oY.removeElement=aY,oY.replaceElement=function(e,t){var n=t.prev=e.prev;n&&(n.next=t);var r=t.next=e.next;r&&(r.prev=t);var i=t.parent=e.parent;if(i){var o=i.children;o[o.lastIndexOf(e)]=t,e.parent=null}},oY.appendChild=function(e,t){if(aY(t),t.next=null,t.parent=e,e.children.push(t)>1){var n=e.children[e.children.length-2];n.next=t,t.prev=n}else t.prev=null},oY.append=function(e,t){aY(t);var n=e.parent,r=e.next;if(t.next=r,t.prev=e,e.next=t,t.parent=n,r){if(r.prev=t,n){var i=n.children;i.splice(i.lastIndexOf(r),0,t)}}else n&&n.children.push(t)},oY.prependChild=function(e,t){if(aY(t),t.parent=e,t.prev=null,1!==e.children.unshift(t)){var n=e.children[1];n.prev=t,t.next=n}else t.next=null},oY.prepend=function(e,t){aY(t);var n=e.parent;if(n){var r=n.children;r.splice(r.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=n,t.prev=e.prev,t.next=e,e.prev=t};var cY={};Object.defineProperty(cY,"__esModule",{value:!0}),cY.findAll=cY.existsOne=cY.findOne=cY.findOneChild=cY.find=cY.filter=void 0;var sY=eG;function lY(e,t,n,r){for(var i=[],o=0,a=t;o<a.length;o++){var c=a[o];if(e(c)&&(i.push(c),--r<=0))break;if(n&&(0,sY.hasChildren)(c)&&c.children.length>0){var s=lY(e,c.children,n,r);if(i.push.apply(i,s),(r-=s.length)<=0)break}}return i}cY.filter=function(e,t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=1/0),Array.isArray(t)||(t=[t]),lY(e,t,n,r)},cY.find=lY,cY.findOneChild=function(e,t){return t.find(e)},cY.findOne=function e(t,n,r){void 0===r&&(r=!0);for(var i=null,o=0;o<n.length&&!i;o++){var a=n[o];(0,sY.isTag)(a)&&(t(a)?i=a:r&&a.children.length>0&&(i=e(t,a.children,!0)))}return i},cY.existsOne=function e(t,n){return n.some((function(n){return(0,sY.isTag)(n)&&(t(n)||n.children.length>0&&e(t,n.children))}))},cY.findAll=function(e,t){for(var n,r,i=[],o=t.filter(sY.isTag);r=o.shift();){var a=null===(n=r.children)||void 0===n?void 0:n.filter(sY.isTag);a&&a.length>0&&o.unshift.apply(o,a),e(r)&&i.push(r)}return i};var uY={};Object.defineProperty(uY,"__esModule",{value:!0}),uY.getElementsByTagType=uY.getElementsByTagName=uY.getElementById=uY.getElements=uY.testElement=void 0;var fY=eG,pY=cY,dY={tag_name:function(e){return"function"==typeof e?function(t){return(0,fY.isTag)(t)&&e(t.name)}:"*"===e?fY.isTag:function(t){return(0,fY.isTag)(t)&&t.name===e}},tag_type:function(e){return"function"==typeof e?function(t){return e(t.type)}:function(t){return t.type===e}},tag_contains:function(e){return"function"==typeof e?function(t){return(0,fY.isText)(t)&&e(t.data)}:function(t){return(0,fY.isText)(t)&&t.data===e}}};function hY(e,t){return"function"==typeof t?function(n){return(0,fY.isTag)(n)&&t(n.attribs[e])}:function(n){return(0,fY.isTag)(n)&&n.attribs[e]===t}}function mY(e,t){return function(n){return e(n)||t(n)}}function yY(e){var t=Object.keys(e).map((function(t){var n=e[t];return Object.prototype.hasOwnProperty.call(dY,t)?dY[t](n):hY(t,n)}));return 0===t.length?null:t.reduce(mY)}uY.testElement=function(e,t){var n=yY(e);return!n||n(t)},uY.getElements=function(e,t,n,r){void 0===r&&(r=1/0);var i=yY(e);return i?(0,pY.filter)(i,t,n,r):[]},uY.getElementById=function(e,t,n){return void 0===n&&(n=!0),Array.isArray(t)||(t=[t]),(0,pY.findOne)(hY("id",e),t,n)},uY.getElementsByTagName=function(e,t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=1/0),(0,pY.filter)(dY.tag_name(e),t,n,r)},uY.getElementsByTagType=function(e,t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=1/0),(0,pY.filter)(dY.tag_type(e),t,n,r)};var vY={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.uniqueSort=e.compareDocumentPosition=e.DocumentPosition=e.removeSubsets=void 0;var t,n=eG;function r(e,r){var i=[],o=[];if(e===r)return 0;for(var a=(0,n.hasChildren)(e)?e:e.parent;a;)i.unshift(a),a=a.parent;for(a=(0,n.hasChildren)(r)?r:r.parent;a;)o.unshift(a),a=a.parent;for(var c=Math.min(i.length,o.length),s=0;s<c&&i[s]===o[s];)s++;if(0===s)return t.DISCONNECTED;var l=i[s-1],u=l.children,f=i[s],p=o[s];return u.indexOf(f)>u.indexOf(p)?l===r?t.FOLLOWING|t.CONTAINED_BY:t.FOLLOWING:l===e?t.PRECEDING|t.CONTAINS:t.PRECEDING}e.removeSubsets=function(e){for(var t=e.length;--t>=0;){var n=e[t];if(t>0&&e.lastIndexOf(n,t-1)>=0)e.splice(t,1);else for(var r=n.parent;r;r=r.parent)if(e.includes(r)){e.splice(t,1);break}}return e},function(e){e[e.DISCONNECTED=1]="DISCONNECTED",e[e.PRECEDING=2]="PRECEDING",e[e.FOLLOWING=4]="FOLLOWING",e[e.CONTAINS=8]="CONTAINS",e[e.CONTAINED_BY=16]="CONTAINED_BY"}(t=e.DocumentPosition||(e.DocumentPosition={})),e.compareDocumentPosition=r,e.uniqueSort=function(e){return e=e.filter((function(e,t,n){return!n.includes(e,t+1)})),e.sort((function(e,n){var i=r(e,n);return i&t.PRECEDING?-1:i&t.FOLLOWING?1:0})),e}}(vY);var gY={};Object.defineProperty(gY,"__esModule",{value:!0}),gY.getFeed=void 0;var bY=EG,xY=uY;gY.getFeed=function(e){var t=SY(AY,e);return t?"feed"===t.name?function(e){var t,n=e.children,r={type:"atom",items:(0,xY.getElementsByTagName)("entry",n).map((function(e){var t,n=e.children,r={media:EY(n)};OY(r,"id","id",n),OY(r,"title","title",n);var i=null===(t=SY("link",n))||void 0===t?void 0:t.attribs.href;i&&(r.link=i);var o=_Y("summary",n)||_Y("content",n);o&&(r.description=o);var a=_Y("updated",n);return a&&(r.pubDate=new Date(a)),r}))};OY(r,"id","id",n),OY(r,"title","title",n);var i=null===(t=SY("link",n))||void 0===t?void 0:t.attribs.href;i&&(r.link=i);OY(r,"description","subtitle",n);var o=_Y("updated",n);o&&(r.updated=new Date(o));return OY(r,"author","email",n,!0),r}(t):function(e){var t,n,r=null!==(n=null===(t=SY("channel",e.children))||void 0===t?void 0:t.children)&&void 0!==n?n:[],i={type:e.name.substr(0,3),id:"",items:(0,xY.getElementsByTagName)("item",e.children).map((function(e){var t=e.children,n={media:EY(t)};OY(n,"id","guid",t),OY(n,"title","title",t),OY(n,"link","link",t),OY(n,"description","description",t);var r=_Y("pubDate",t);return r&&(n.pubDate=new Date(r)),n}))};OY(i,"title","title",r),OY(i,"link","link",r),OY(i,"description","description",r);var o=_Y("lastBuildDate",r);o&&(i.updated=new Date(o));return OY(i,"author","managingEditor",r,!0),i}(t):null};var wY=["url","type","lang"],kY=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function EY(e){return(0,xY.getElementsByTagName)("media:content",e).map((function(e){for(var t=e.attribs,n={medium:t.medium,isDefault:!!t.isDefault},r=0,i=wY;r<i.length;r++){t[c=i[r]]&&(n[c]=t[c])}for(var o=0,a=kY;o<a.length;o++){var c;t[c=a[o]]&&(n[c]=parseInt(t[c],10))}return t.expression&&(n.expression=t.expression),n}))}function SY(e,t){return(0,xY.getElementsByTagName)(e,t,!0,1)[0]}function _Y(e,t,n){return void 0===n&&(n=!1),(0,bY.textContent)((0,xY.getElementsByTagName)(e,t,n,1)).trim()}function OY(e,t,n,r,i){void 0===i&&(i=!1);var o=_Y(n,r,i);o&&(e[t]=o)}function AY(e){return"rss"===e||"feed"===e||"rdf:RDF"===e}!function(e){var t=S&&S.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=S&&S.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.hasChildren=e.isDocument=e.isComment=e.isText=e.isCDATA=e.isTag=void 0,n(EG,e),n(tY,e),n(oY,e),n(cY,e),n(uY,e),n(vY,e),n(gY,e);var r=eG;Object.defineProperty(e,"isTag",{enumerable:!0,get:function(){return r.isTag}}),Object.defineProperty(e,"isCDATA",{enumerable:!0,get:function(){return r.isCDATA}}),Object.defineProperty(e,"isText",{enumerable:!0,get:function(){return r.isText}}),Object.defineProperty(e,"isComment",{enumerable:!0,get:function(){return r.isComment}}),Object.defineProperty(e,"isDocument",{enumerable:!0,get:function(){return r.isDocument}}),Object.defineProperty(e,"hasChildren",{enumerable:!0,get:function(){return r.hasChildren}})}(kG),function(e){var t=S&&S.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=S&&S.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=S&&S.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=S&&S.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultHandler=e.DomUtils=e.parseFeed=e.getFeed=e.ElementType=e.Tokenizer=e.createDomStream=e.parseDOM=e.parseDocument=e.DomHandler=e.Parser=void 0;var o=j$;Object.defineProperty(e,"Parser",{enumerable:!0,get:function(){return o.Parser}});var a=eG;function c(e,t){var n=new a.DomHandler(void 0,t);return new o.Parser(n,t).end(e),n.root}function s(e,t){return c(e,t).children}Object.defineProperty(e,"DomHandler",{enumerable:!0,get:function(){return a.DomHandler}}),Object.defineProperty(e,"DefaultHandler",{enumerable:!0,get:function(){return a.DomHandler}}),e.parseDocument=c,e.parseDOM=s,e.createDomStream=function(e,t,n){var r=new a.DomHandler(e,t,n);return new o.Parser(r,t)};var l=M$;Object.defineProperty(e,"Tokenizer",{enumerable:!0,get:function(){return i(l).default}});var u=r(s$);e.ElementType=u;var f=kG;Object.defineProperty(e,"getFeed",{enumerable:!0,get:function(){return f.getFeed}}),e.parseFeed=function(e,t){return void 0===t&&(t={xmlMode:!0}),(0,f.getFeed)(s(e,t))},e.DomUtils=r(kG)}(D$);var CY=D$.Parser,TY=eG.DomHandler,PY=function(e){for(var t=0,n=e.length;t<n;t++){e[t].parent=null}return e};var DY=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string.");if(""===e)return[];var n=new TY(void 0,t);return new CY(n,t).end(e),PY(n.dom)};P$.exports=DY,P$.exports.default=DY;var jY=P$.exports,MY={},NY={};NY.SAME=0;function IY(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){c=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return RY(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 RY(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 RY(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}NY.CAMELCASE=1,NY.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1},Object.defineProperty(MY,"__esModule",{value:!0});function LY(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var FY={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((function(e){FY[e]=new LY(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=IY(e,2),n=t[0],r=t[1];FY[n]=new LY(n,1,!1,r,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){FY[e]=new LY(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){FY[e]=new LY(e,2,!1,e,null,!1,!1)})),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((function(e){FY[e]=new LY(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){FY[e]=new LY(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){FY[e]=new LY(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){FY[e]=new LY(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){FY[e]=new LY(e,5,!1,e.toLowerCase(),null,!1,!1)}));var zY=/[\-\:]([a-z])/g,BY=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((function(e){var t=e.replace(zY,BY);FY[t]=new LY(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((function(e){var t=e.replace(zY,BY);FY[t]=new LY(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(zY,BY);FY[t]=new LY(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){FY[e]=new LY(e,1,!1,e.toLowerCase(),null,!1,!1)}));FY.xlinkHref=new LY("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){FY[e]=new LY(e,1,!1,e.toLowerCase(),null,!0,!0)}));var qY=NY,HY=qY.CAMELCASE,VY=qY.SAME,UY=qY.possibleStandardNames,WY=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),$Y=Object.keys(UY).reduce((function(e,t){var n=UY[t];return n===VY?e[t]=t:n===HY?e[t.toLowerCase()]=t:e[t]=n,e}),{});MY.BOOLEAN=3,MY.BOOLEANISH_STRING=2,MY.NUMERIC=5,MY.OVERLOADED_BOOLEAN=4,MY.POSITIVE_NUMERIC=6,MY.RESERVED=0,MY.STRING=1,MY.getPropertyInfo=function(e){return FY.hasOwnProperty(e)?FY[e]:null},MY.isCustomAttribute=WY,MY.possibleStandardNames=$Y;var GY={},YY={exports:{}},XY=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,ZY=/\n/g,KY=/^\s*/,JY=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,QY=/^:\s*/,eX=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,tX=/^[;\s]*/,nX=/^\s+|\s+$/g,rX="";function iX(e){return e?e.replace(nX,rX):rX}var oX=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(e){var t=e.match(ZY);t&&(n+=t.length);var i=e.lastIndexOf("\n");r=~i?e.length-i:r+e.length}function o(){var e={line:n,column:r};return function(t){return t.position=new a(e),l(),t}}function a(e){this.start=e,this.end={line:n,column:r},this.source=t.source}function c(i){var o=new Error(t.source+":"+n+":"+r+": "+i);if(o.reason=i,o.filename=t.source,o.line=n,o.column=r,o.source=e,!t.silent)throw o}function s(t){var n=t.exec(e);if(n){var r=n[0];return i(r),e=e.slice(r.length),n}}function l(){s(KY)}function u(e){var t;for(e=e||[];t=f();)!1!==t&&e.push(t);return e}function f(){var t=o();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;rX!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,rX===e.charAt(n-1))return c("End of comment missing");var a=e.slice(2,n-2);return r+=2,i(a),e=e.slice(n),r+=2,t({type:"comment",comment:a})}}function p(){var e=o(),t=s(JY);if(t){if(f(),!s(QY))return c("property missing ':'");var n=s(eX),r=e({type:"declaration",property:iX(t[0].replace(XY,rX)),value:n?iX(n[0].replace(XY,rX)):rX});return s(tX),r}}return a.prototype.content=e,l(),function(){var e,t=[];for(u(t);e=p();)!1!==e&&(t.push(e),u(t));return t}()};function aX(e,t){var n,r=null;if(!e||"string"!=typeof e)return r;for(var i,o,a=oX(e),c="function"==typeof t,s=0,l=a.length;s<l;s++)i=(n=a[s]).property,o=n.value,c?t(i,o,n):o&&(r||(r={}),r[i]=o);return r}YY.exports=aX,YY.exports.default=aX;var cX=YY.exports,sX={__esModule:!0,camelCase:void 0},lX=/^--[a-zA-Z0-9-]+$/,uX=/-([a-z])/g,fX=/^[^-]+$/,pX=/^-(webkit|moz|ms|o|khtml)-/,dX=/^-(ms)-/,hX=function(e,t){return t.toUpperCase()},mX=function(e,t){return"".concat(t,"-")};sX.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||fX.test(e)||lX.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(dX,mX):e.replace(pX,mX)).replace(uX,hX))},function(e){var t=S&&S.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};e.__esModule=!0;var n=t(cX),r=sX;e.default=function(e,t){var i={};return e&&"string"==typeof e?((0,n.default)(e,(function(e,n){e&&n&&(i[(0,r.camelCase)(e,t)]=n)})),i):i}}(GY);var yX=GY.default;var vX={reactCompat:!0};var gX=e.version.split(".")[0]>=16,bX=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var xX={PRESERVE_CUSTOM_ATTRIBUTES:gX,invertObject:function(e,t){if(!e||"object"!=typeof e)throw new TypeError("First argument must be an object");var n,r,i="function"==typeof t,o={},a={};for(n in e)r=e[n],i&&(o=t(n,r))&&2===o.length?a[o[0]]=o[1]:"string"==typeof r&&(a[r]=n);return a},isCustomComponent:function(e,t){if(-1===e.indexOf("-"))return t&&"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}},setStyleProp:function(e,t){if(null!=e)try{t.style=yX(e,vX)}catch(e){t.style={}}},canTextBeChildOfNode:function(e){return!bX.has(e.name)},elementsWithNoTextChildren:bX},wX=MY,kX=xX,EX=function(e,t){var n,r,i,o,a,c={},s=(e=e||{}).type&&{reset:!0,submit:!0}[e.type];for(n in e)if(i=e[n],wX.isCustomAttribute(n))c[n]=i;else if(o=SX(r=n.toLowerCase()))switch(a=wX.getPropertyInfo(o),"checked"!==o&&"value"!==o||"option"===t||s||(o=SX("default"+r)),c[o]=i,a&&a.type){case wX.BOOLEAN:c[o]=!0;break;case wX.OVERLOADED_BOOLEAN:""===i&&(c[o]=!0)}else kX.PRESERVE_CUSTOM_ATTRIBUTES&&(c[n]=i);return kX.setStyleProp(e.style,c),c};function SX(e){return wX.possibleStandardNames[e]}var _X=e,OX=EX,AX=xX,CX=AX.setStyleProp,TX=AX.canTextBeChildOfNode;function PX(e){return AX.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&AX.isCustomComponent(e.name,e.attribs)}var DX=function e(t,n){for(var r,i,o,a,c,s=(n=n||{}).library||_X,l=s.cloneElement,u=s.createElement,f=s.isValidElement,p=[],d="function"==typeof n.replace,h=n.trim,m=0,y=t.length;m<y;m++)if(r=t[m],d&&f(o=n.replace(r)))y>1&&(o=l(o,{key:o.key||m})),p.push(o);else if("text"!==r.type){switch(a=r.attribs,PX(r)?CX(a.style,a):a&&(a=OX(a,r.name)),c=null,r.type){case"script":case"style":r.children[0]&&(a.dangerouslySetInnerHTML={__html:r.children[0].data});break;case"tag":"textarea"===r.name&&r.children[0]?a.defaultValue=r.children[0].data:r.children&&r.children.length&&(c=e(r.children,n));break;default:continue}y>1&&(a.key=m),p.push(u(r.name,a,c))}else{if((i=!r.data.trim().length)&&r.parent&&!TX(r.parent))continue;if(h&&i)continue;p.push(r.data)}return 1===p.length?p[0]:p},jX=c$,MX=jY,NX=EX,IX=DX;MX="function"==typeof MX.default?MX.default:MX;var RX={lowerCaseAttributeNames:!1};function LX(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return""===e?[]:IX(MX(e,(t=t||{}).htmlparser2||RX),t)}LX.domToReact=IX,LX.htmlToDOM=MX,LX.attributesToProps=NX,LX.Comment=jX.Comment,LX.Element=jX.Element,LX.ProcessingInstruction=jX.ProcessingInstruction,LX.Text=jX.Text,a$.exports=LX,a$.exports.default=LX;var FX=_(a$.exports);function zX(t){var n,r,i,o=new o$;i=null==(i=t.inline?o.renderInline(null!==(n=t.text)&&void 0!==n?n:""):o.render(null!==(r=t.text)&&void 0!==r?r:""))?void 0:i.trim();var a=FX(i,{replace:function(e){var t=e;"a"===t.name&&(t.attribs.target="_blank")}});return e.createElement(e.Fragment,null,a)}FX.domToReact,FX.htmlToDOM,FX.attributesToProps,FX.Comment,FX.Element,FX.ProcessingInstruction,FX.Text;function BX(t){return e.createElement(dr,{colorScheme:"light",className:"mdhui-step-container",bodyBackgroundColor:"#FFFFFF"},t.children)}function qX(e){return{textAlign:e.textAlign,color:e.color,fontSize:e.fontSize?"".concat(e.fontSize,"px"):void 0,fontWeight:e.fontWeight,backgroundImage:""}}k(".mdhui-step-container {\n background-color: #FFFFFF;\n}\n\n.mdhui-step-container div,\n.mdhui-step-container dl,\n.mdhui-step-container dt,\n.mdhui-step-container dd,\n.mdhui-step-container ul,\n.mdhui-step-container ol,\n.mdhui-step-container li,\n.mdhui-step-container h1,\n.mdhui-step-container h2,\n.mdhui-step-container h3,\n.mdhui-step-container h4,\n.mdhui-step-container h5,\n.mdhui-step-container h6,\n.mdhui-step-container pre,\n.mdhui-step-container form,\n.mdhui-step-container fieldset,\n.mdhui-step-container input,\n.mdhui-step-container textarea,\n.mdhui-step-container p,\n.mdhui-step-container blockquote,\n.mdhui-step-container th,\n.mdhui-step-container td {\n margin: 0;\n padding: 0;\n}\n\n.mdhui-step-container a {\n color: var(--mdhui-color-primary);\n text-decoration: none;\n}\n\n.mdhui-step-container ol {\n list-style-type: decimal;\n white-space: normal;\n list-style-position: inside;\n}\n\n.mdhui-step-container ul {\n list-style-type: disc;\n text-align: left;\n display: block;\n margin-inline-start: 0px;\n margin-inline-end: 0px;\n padding-inline-start: 40px;\n white-space: normal;\n}\n\n.mdhui-step-container ul ul {\n list-style-type: circle;\n}\n\n.mdhui-step-container ul ul ul {\n list-style-type: square;\n}");function HX(t){return t.text?e.createElement("div",{className:"mdhui-step-title",style:qX(t)},e.createElement(zX,{text:t.text,inline:!0})):null}k(".mdhui-step-container .mdhui-step-title {\n text-align: center;\n font-size: 1.7em;\n line-height: 1.2em;\n font-weight: normal;\n margin-top: 20px;\n margin-bottom: 15px;\n margin-left: 20px;\n margin-right: 20px; \n position: relative;\n display: block;\n}");function VX(t){return t.text?e.createElement("div",{className:"mdhui-step-text",style:qX(t)},e.createElement(zX,{text:t.text})):null}k(".mdhui-step-container .mdhui-step-text {\n font-size: 1em;\n line-height: 1.3em;\n text-align: center;\n margin-top: 15px;\n margin-bottom: 15px;\n margin-left: 20px;\n margin-right: 20px; \n white-space: pre-line;\n}");function UX(t){return t.text?e.createElement("div",{className:"mdhui-step-detail-text",style:qX(t)},e.createElement(zX,{text:t.text})):null}k(".mdhui-step-container .mdhui-step-detail-text {\n font-size: 1em;\n line-height: 1.3em;\n text-align: center;\n margin-top: 15px;\n margin-bottom: 15px;\n margin-left: 20px;\n margin-right: 20px;\n white-space: pre-line;\n}");function WX(t){var n=qX(t);if(t.gradient){var r="LeftToRight"===t.gradient.direction?"linear-gradient(to right, ".concat(t.gradient.startColor," 0%, ").concat(t.gradient.endColor," 100%)"):"linear-gradient(to bottom, ".concat(t.gradient.startColor," 0%, ").concat(t.gradient.endColor," 100%)");n.backgroundImage=r}n.letterSpacing=t.letterSpacing,n.textTransform=t.textTransform,n.backgroundColor=t.backgroundColor;var i=t.text?t.text:br["next-button-text"];return e.createElement("button",{className:"mdhui-step-next-button",style:n,onClick:t.onClick},i)}k(".mdhui-step-container .mdhui-step-next-button {\n margin: 20px;\n padding: 16px;\n background: var(--mdhui-color-primary);\n font-size: 1em;\n color: #FFF;\n font-weight: bold;\n border: solid 1px var(--mdhui-color-primary);\n border-radius: 5px;\n cursor: pointer;\n width: calc(100% - 40px);\n box-sizing: border-box;\n text-align: center;\n display: inline-block;\n}");function $X(t){return t.srcUrl?e.createElement("div",{className:"mdhui-step-image"},e.createElement("img",{src:t.srcUrl})):null}k(".mdhui-step-container .mdhui-step-image {\n text-align: center;\n}\n.mdhui-step-container .mdhui-step-image img {\n width: 100%;\n padding: 0;\n margin: 0;\n padding-top: 40px;\n padding-bottom: 40px;\n}");function GX(t){return t.srcUrl?e.createElement("div",{className:"mdhui-step-image-icon"},e.createElement("img",{src:t.srcUrl})):null}function YX(t){var n,r=(t.height?t.height:"225")+"px",i=b.getCurrentLanguage();return e.createElement(BX,null,e.createElement(HX,{text:t.title,textAlign:t.styles.titleAlignment,color:t.styles.titleColor,fontSize:t.styles.titleFontSize,fontWeight:t.styles.titleFontWeight}),e.createElement(VX,{text:t.text,textAlign:t.styles.textAlignment,color:t.styles.textColor,fontSize:t.styles.textFontSize,fontWeight:t.styles.textFontWeight}),e.createElement("div",{style:{textAlign:"center",width:"100%"}},e.createElement("iframe",{style:{width:"100%",height:r,border:0},src:"https://www.youtube.com/embed/".concat(t.videoId,"?rel=").concat(0,"&cc_lang_pref=").concat(i,"&controls=").concat(1,"&autoplay=").concat(0,"&fs=").concat(1,"&modestbranding=").concat(1),title:"YouTube video player",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; fullscreen",allowFullScreen:!0})),e.createElement(UX,{text:t.transcript,textAlign:t.styles.detailTextAlignment,color:t.styles.detailTextColor,fontSize:t.styles.detailTextFontSize,fontWeight:t.styles.detailTextFontWeight}),e.createElement(WX,{text:t.nextButtonText,color:t.styles.nextButtonTextColor,fontWeight:t.styles.nextButtonFontWeight,backgroundColor:t.styles.nextButtonBackgroundColor,letterSpacing:t.styles.nextButtonLetterSpacing,textTransform:null===(n=t.styles.nextButtonTextTransform)||void 0===n?void 0:n.toLowerCase(),gradient:t.styles.nextButtonBackgroundGradient,onClick:function(){return b.completeStep("")}}))}function XX(){var t=s(),n=t[0],r=t[1],i=s(),o=i[0],a=i[1],c=s(),u=c[0],f=c[1],p=s(""),d=p[0],h=p[1],m=s(),y=m[0],v=m[1],g=s(),x=g[0],w=g[1],k=s({}),E=k[0],S=k[1];return l((function(){b.getStepConfiguration().then((function(e){var t;e&&(r(e.properties.title),a(e.properties.text),f(e.properties.transcript),h(e.properties.videoId),v(e.properties.nextButtonText),w(e.properties.height),S(null!==(t=e.styles)&&void 0!==t?t:{}))}))}),[]),e.createElement(YX,{title:n,text:o,transcript:u,nextButtonText:y,height:x,videoId:d,styles:E})}k(".mdhui-step-container .mdhui-step-image-icon {\n text-align: center;\n}\n\n.mdhui-step-container .mdhui-step-image-icon img {\n max-width: 100%;\n max-height: 60px;\n padding: 0;\n margin: 0;\n padding-top: 50px;\n}");var ZX=150,KX=2,JX=["DodgerBlue","OliveDrab","Gold","Pink","SlateBlue","LightBlue","Violet","PaleGreen","SteelBlue","SandyBrown","Chocolate","Crimson"],QX=!1,eZ=null,tZ=[],nZ=0;function rZ(e,t,n){return e.color=JX[Math.random()*JX.length|0],e.x=Math.random()*t,e.y=Math.random()*n-n,e.diameter=10*Math.random()+5,e.tilt=10*Math.random()-10,e.tiltAngleIncrement=.07*Math.random()+.05,e.tiltAngle=0,e}function iZ(){var e=window.innerWidth,t=window.innerHeight,n=window.requestAnimationFrame||function(e){return window.setTimeout(e,16.6666667)},r=document.getElementById("confetti-canvas");null===r&&((r=document.createElement("canvas")).setAttribute("id","confetti-canvas"),r.setAttribute("style","display:block;z-index:999999;pointer-events:none;position:fixed;top:0"),document.body.prepend(r),r.width=e,r.height=t,window.addEventListener("resize",(function(){r.width=window.innerWidth,r.height=window.innerHeight}),!0));for(var i=r.getContext("2d");tZ.length<ZX;)tZ.push(rZ({color:"",x:0,y:0,diameter:0,tilt:0,tiltAngleIncrement:0,tiltAngle:0},e,t));QX=!0,null===eZ&&function e(){null==i||i.clearRect(0,0,window.innerWidth,window.innerHeight),0===tZ.length?eZ=null:(!function(){var e,t=window.innerWidth,n=window.innerHeight;nZ+=.01;for(var r=0;r<tZ.length;r++)e=tZ[r],!QX&&e.y<-15?e.y=n+100:(e.tiltAngle+=e.tiltAngleIncrement,e.x+=Math.sin(nZ),e.y+=.5*(Math.cos(nZ)+e.diameter+KX),e.tilt=15*Math.sin(e.tiltAngle)),(e.x>t+20||e.x<-20||e.y>n)&&(QX&&tZ.length<=ZX?rZ(e,t,n):(tZ.splice(r,1),r--))}(),function(e){if(e)for(var t,n,r=0;r<tZ.length;r++)t=tZ[r],e.beginPath(),e.lineWidth=t.diameter,e.strokeStyle=t.color,n=t.x+t.tilt,e.moveTo(n+t.diameter/2,t.y),e.lineTo(n,t.y+t.tilt+t.diameter/2),e.stroke()}(i),eZ=n(e))}()}function oZ(t){var n;return iZ(),window.setTimeout((function(){QX=!1}),1200),e.createElement(BX,null,e.createElement(GX,{srcUrl:t.iconUrl}),e.createElement(HX,{text:t.title,textAlign:t.styles.titleAlignment,color:t.styles.titleColor,fontSize:t.styles.titleFontSize,fontWeight:t.styles.titleFontWeight}),e.createElement(VX,{text:t.text,textAlign:t.styles.textAlignment,color:t.styles.textColor,fontSize:t.styles.textFontSize,fontWeight:t.styles.textFontWeight}),e.createElement(UX,{text:t.detailText,textAlign:t.styles.textAlignment,color:t.styles.textColor,fontSize:t.styles.textFontSize,fontWeight:t.styles.textFontWeight}),e.createElement($X,{srcUrl:t.imageUrl}),e.createElement(WX,{text:t.nextButtonText,color:t.styles.nextButtonTextColor,fontWeight:t.styles.nextButtonFontWeight,backgroundColor:t.styles.nextButtonBackgroundColor,letterSpacing:t.styles.nextButtonLetterSpacing,textTransform:null===(n=t.styles.nextButtonTextTransform)||void 0===n?void 0:n.toLowerCase(),gradient:t.styles.nextButtonBackgroundGradient,onClick:function(){return b.completeStep("")}}))}function aZ(){var t=s(),n=t[0],r=t[1],i=s(),o=i[0],a=i[1],c=s(),u=c[0],f=c[1],p=s(),d=p[0],h=p[1],m=s(),y=m[0],v=m[1],g=s(),x=g[0],w=g[1],k=s({}),E=k[0],S=k[1];return l((function(){b.getStepConfiguration().then((function(e){var t;e&&(r(e.properties.title),a(e.properties.text),f(e.properties.detailText),h(e.properties.iconImage),v(e.properties.image),w(e.properties.nextButtonText),S(null!==(t=e.styles)&&void 0!==t?t:{}))}))}),[]),e.createElement(oZ,{title:n,text:o,detailText:u,iconUrl:d,imageUrl:y,nextButtonText:x,styles:E})}export{D as Action,j as ActivityMeter,R as Button,Tt as Calendar,Pt as Card,Dt as CardTitle,oZ as CelebrationStep,aZ as CelebrationStepContainer,zr as ConnectEhr,OH as ConnectEhrView,Hr as ConnectFitbit,Vr as ConnectGarmin,mq as DailyDataType,Mt as DateRangeNavigator,Nt as DayTrackerSymbol,kq as DeviceDataMonthChart,Eq as DeviceDataMonthCharts,AH as DeviceDataView,_q as ExternalAccountList,Cq as ExternalAccountsLoadingIndicator,Pq as ExternalAccountsPreview,CH as ExternalAccountsView,hr as Face,Hq as FitbitDevices,Uq as FitbitMonthCharts,TH as FitbitView,$q as GarminDevices,Gq as GarminMonthCharts,PH as GarminView,jH as HealthAndWellnessView,eH as HealthPreviewSection,yr as Histogram,DH as HomeView,aH as LabResultsSummary,dr as Layout,pr as LayoutContext,I as LoadingIndicator,sH as MostRecentNotification,xr as NavigationBar,fH as NotificationList,MH as NotificationsView,pH as PlatformSpecificContent,dH as ProjectHeader,vH as ProjectSupport,kH as ProviderSearch,kH as RestingHeartRateCalendar,wr as Section,kr as SegmentedControl,mr as ShinyOverlay,_r as SingleExternalAccount,Or as SingleNotification,Pr as SingleSurveyTask,Dr as SparkBarChart,Mr as StatusBarBackground,UX as StepDetailText,$X as StepImage,GX as StepImageIcon,BX as StepLayout,zX as StepMarkdown,WX as StepNextButton,VX as StepText,HX as StepTitle,_H as SurveyTaskList,NH as SurveyTasksView,jr as Switch,Nr as TextBlock,Ir as TrackerItem,E as UnstyledButton,Rr as WeekCalendar,YX as YouTubeStep,XX as YouTubeStepContainer,gq as checkDailyDataAvailability,bq as queryDailyData,vq as registerDailyDataProvider,Oq as useInterval};
|
|
207
|
+
39:1},rules:[/^(?:(--[\d\-A-Za-z]*))/,/^(?:\s+)/,/^(?:\*)/,/^(?:\/)/,/^(?:\+)/,/^(?:-)/,/^(?:(\d+(\.\d*)?|\.\d+)px\b)/,/^(?:(\d+(\.\d*)?|\.\d+)cm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)mm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)in\b)/,/^(?:(\d+(\.\d*)?|\.\d+)pt\b)/,/^(?:(\d+(\.\d*)?|\.\d+)pc\b)/,/^(?:(\d+(\.\d*)?|\.\d+)deg\b)/,/^(?:(\d+(\.\d*)?|\.\d+)grad\b)/,/^(?:(\d+(\.\d*)?|\.\d+)rad\b)/,/^(?:(\d+(\.\d*)?|\.\d+)turn\b)/,/^(?:(\d+(\.\d*)?|\.\d+)s\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ms\b)/,/^(?:(\d+(\.\d*)?|\.\d+)Hz\b)/,/^(?:(\d+(\.\d*)?|\.\d+)kHz\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dpi\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dpcm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dppx\b)/,/^(?:(\d+(\.\d*)?|\.\d+)em\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ex\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ch\b)/,/^(?:(\d+(\.\d*)?|\.\d+)rem\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vw\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vh\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vmin\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vmax\b)/,/^(?:(\d+(\.\d*)?|\.\d+)%)/,/^(?:(\d+(\.\d*)?|\.\d+)\b)/,/^(?:(calc))/,/^(?:(var))/,/^(?:([a-z]+))/,/^(?:\()/,/^(?:\))/,/^(?:,)/,/^(?:$)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39],inclusive:!0}}};return t}();function a(){this.yy={}}return i.lexer=o,a.prototype=i,i.Parser=a,new a}();void 0!==Tx&&(e.parser=t,e.Parser=t.Parser,e.parse=function(){return t.parse.apply(t,arguments)})}(Px);var Dx={},jx={exports:{}},Mx={px:{px:1,cm:96/2.54,mm:96/25.4,in:96,pt:96/72,pc:16},cm:{px:2.54/96,cm:1,mm:.1,in:2.54,pt:2.54/72,pc:2.54/6},mm:{px:25.4/96,cm:10,mm:1,in:25.4,pt:25.4/72,pc:25.4/6},in:{px:1/96,cm:1/2.54,mm:1/25.4,in:1,pt:1/72,pc:1/6},pt:{px:.75,cm:72/2.54,mm:72/25.4,in:72,pt:1,pc:12},pc:{px:6/96,cm:6/2.54,mm:6/25.4,in:6,pt:6/72,pc:1},deg:{deg:1,grad:.9,rad:180/Math.PI,turn:360},grad:{deg:400/360,grad:1,rad:200/Math.PI,turn:400},rad:{deg:Math.PI/180,grad:Math.PI/200,rad:1,turn:2*Math.PI},turn:{deg:1/360,grad:1/400,rad:.5/Math.PI,turn:1},s:{s:1,ms:.001},ms:{s:1e3,ms:1},Hz:{Hz:1,kHz:1e3},kHz:{Hz:.001,kHz:1},dpi:{dpi:1,dpcm:1/2.54,dppx:1/96},dpcm:{dpi:2.54,dpcm:1,dppx:2.54/96},dppx:{dpi:96,dpcm:96/2.54,dppx:1}},Nx=function(e,t,n,r){if(!Mx.hasOwnProperty(n))throw new Error("Cannot convert to "+n);if(!Mx[n].hasOwnProperty(t))throw new Error("Cannot convert from "+t+" to "+n);var i=Mx[n][t]*e;return!1!==r?(r=Math.pow(10,parseInt(r)||5),Math.round(i*r)/r):i};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e&&e.__esModule?e:{default:e}}(Nx);t.default=function(e,t,r){switch(e.type){case"LengthValue":case"AngleValue":case"TimeValue":case"FrequencyValue":case"ResolutionValue":return function(e,t,r){t.type===e.type&&(t={type:e.type,value:(0,n.default)(t.value,t.unit,e.unit,r),unit:e.unit});return{left:e,right:t}}(e,t,r);default:return{left:e,right:t}}},e.exports=t.default}(jx,jx.exports);var Ix=jx.exports;Object.defineProperty(Dx,"__esModule",{value:!0}),Dx.flip=Bx;var Rx=function(e){return e&&e.__esModule?e:{default:e}}(Ix);function Lx(e,t){return"MathExpression"===e.type?function(e,t){switch(e=function(e,t){var n=(0,Rx.default)(e.left,e.right,t),r=Lx(n.left,t),i=Lx(n.right,t);"MathExpression"===r.type&&"MathExpression"===i.type&&("/"===r.operator&&"*"===i.operator||"-"===r.operator&&"+"===i.operator||"*"===r.operator&&"/"===i.operator||"+"===r.operator&&"-"===i.operator)&&(Fx(r.right,i.right)?n=(0,Rx.default)(r.left,i.left,t):Fx(r.right,i.left)&&(n=(0,Rx.default)(r.left,i.right,t)),r=Lx(n.left,t),i=Lx(n.right,t));return e.left=r,e.right=i,e}(e,t),e.operator){case"+":case"-":return function(e,t){var n=e,r=n.left,i=n.right,o=n.operator;if("CssVariable"===r.type||"CssVariable"===i.type)return e;if(0===i.value)return r;if(0===r.value&&"+"===o)return i;if(0===r.value&&"-"===o)return qx(i);r.type===i.type&&zx(r.type)&&((e=Object.assign({},r)).value="+"===o?r.value+i.value:r.value-i.value);if(zx(r.type)&&("+"===i.operator||"-"===i.operator)&&"MathExpression"===i.type){if(r.type===i.left.type)return(e=Object.assign({},e)).left=Lx({type:"MathExpression",operator:o,left:r,right:i.left},t),e.right=i.right,e.operator="-"===o?Bx(i.operator):i.operator,Lx(e,t);if(r.type===i.right.type)return(e=Object.assign({},e)).left=Lx({type:"MathExpression",operator:"-"===o?Bx(i.operator):i.operator,left:r,right:i.right},t),e.right=i.left,Lx(e,t)}if("MathExpression"===r.type&&("+"===r.operator||"-"===r.operator)&&zx(i.type)){if(i.type===r.left.type)return(e=Object.assign({},r)).left=Lx({type:"MathExpression",operator:o,left:r.left,right:i},t),Lx(e,t);if(i.type===r.right.type)return e=Object.assign({},r),"-"===r.operator?(e.right=Lx({type:"MathExpression",operator:"-"===o?"+":"-",left:i,right:r.right},t),e.operator="-"===o?"-":"+"):e.right=Lx({type:"MathExpression",operator:o,left:r.right,right:i},t),e.right.value<0&&(e.right.value*=-1,e.operator="-"===e.operator?"+":"-"),Lx(e,t)}return e}(e,t);case"/":return function(e,t){if(!zx(e.right.type))return e;if("Value"!==e.right.type)throw new Error('Cannot divide by "'+e.right.unit+'", number expected');if(0===e.right.value)throw new Error("Cannot divide by zero");if("MathExpression"===e.left.type)return zx(e.left.left.type)&&zx(e.left.right.type)?(e.left.left.value/=e.right.value,e.left.right.value/=e.right.value,Lx(e.left,t)):e;if(zx(e.left.type))return e.left.value/=e.right.value,e.left;return e}(e,t);case"*":return function(e){if("MathExpression"===e.left.type&&"Value"===e.right.type){if(zx(e.left.left.type)&&zx(e.left.right.type))return e.left.left.value*=e.right.value,e.left.right.value*=e.right.value,e.left}else{if(zx(e.left.type)&&"Value"===e.right.type)return e.left.value*=e.right.value,e.left;if("Value"===e.left.type&&"MathExpression"===e.right.type){if(zx(e.right.left.type)&&zx(e.right.right.type))return e.right.left.value*=e.left.value,e.right.right.value*=e.left.value,e.right}else if("Value"===e.left.type&&zx(e.right.type))return e.right.value*=e.left.value,e.right}return e}(e)}return e}(e,t):"Calc"===e.type?Lx(e.value,t):e}function Fx(e,t){return e.type===t.type&&e.value===t.value}function zx(e){switch(e){case"LengthValue":case"AngleValue":case"TimeValue":case"FrequencyValue":case"ResolutionValue":case"EmValue":case"ExValue":case"ChValue":case"RemValue":case"VhValue":case"VwValue":case"VminValue":case"VmaxValue":case"PercentageValue":case"Value":return!0}return!1}function Bx(e){return"+"===e?"-":"+"}function qx(e){return zx(e.type)?e.value=-e.value:"MathExpression"==e.type&&(e.left=qx(e.left),e.right=qx(e.right)),e}Dx.default=Lx;var Hx={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=o(t,n);return"MathExpression"===t.type&&(r=e+"("+r+")"),r};var n=Dx,r={"*":0,"/":0,"+":1,"-":1};function i(e,t){if(!1!==t){var n=Math.pow(10,t);return Math.round(e*n)/n}return e}function o(e,t){switch(e.type){case"MathExpression":var a=e.left,c=e.right,s=e.operator,l="";return"MathExpression"===a.type&&r[s]<r[a.operator]?l+="("+o(a,t)+")":l+=o(a,t),l+=" "+e.operator+" ","MathExpression"===c.type&&r[s]<r[c.operator]?l+="("+o(c,t)+")":"MathExpression"===c.type&&"-"===s&&["+","-"].includes(c.operator)?(c.operator=(0,n.flip)(c.operator),l+=o(c,t)):l+=o(c,t),l;case"Value":return i(e.value,t);case"CssVariable":return e.fallback?"var("+e.value+", "+o(e.fallback,t)+")":"var("+e.value+")";case"Calc":return e.prefix?"-"+e.prefix+"-calc("+o(e.value,t)+")":"calc("+o(e.value,t)+")";default:return i(e.value,t)+e.unit}}e.exports=t.default}(Hx,Hx.exports);var Vx=Hx.exports;!function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=a(Cx),r=Px,i=a(Dx),o=a(Vx);function a(e){return e&&e.__esModule?e:{default:e}}var c=/((?:\-[a-z]+\-)?calc)/;t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;return(0,n.default)(e).walk((function(e){if("function"===e.type&&c.test(e.value)){var a=n.default.stringify(e.nodes);if(!(a.indexOf("constant")>=0||a.indexOf("env")>=0)){var s=r.parser.parse(a),l=(0,i.default)(s,t);e.type="word",e.value=(0,o.default)(e.value,l,t)}}}),!0).toString()},e.exports=t.default}(px,px.exports);var Ux=_(px.exports);function Wx(e){return Wx="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},Wx(e)}function $x(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 Gx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$x(Object(n),!0).forEach((function(t){Yx(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Yx(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Wx(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Wx(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Wx(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xx(e){return function(e){if(Array.isArray(e))return Zx(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Zx(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 Zx(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 Zx(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Kx={widthCache:{},cacheCount:0},Jx={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Qx=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","lineHeight","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],ew="recharts_measurement_span";var tw=function(e){return Object.keys(e).reduce((function(t,n){return"".concat(t).concat(function(e){return e.split("").reduce((function(e,t){return t===t.toUpperCase()?[].concat(Xx(e),["-",t.toLowerCase()]):[].concat(Xx(e),[t])}),[]).join("")}(n),":").concat((r=n,i=e[n],Qx.indexOf(r)>=0&&i===+i?"".concat(i,"px"):i),";");var r,i}),"")},nw=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||db.isSsr)return{width:0,height:0};var n="".concat(e),r=tw(t),i="".concat(n,"-").concat(r);if(Kx.widthCache[i])return Kx.widthCache[i];try{var o=document.getElementById(ew);o||((o=document.createElement("span")).setAttribute("id",ew),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var a=Gx(Gx({},Jx),t);Object.keys(a).map((function(e){return o.style[e]=a[e],e})),o.textContent=n;var c=o.getBoundingClientRect(),s={width:c.width,height:c.height};return Kx.widthCache[i]=s,++Kx.cacheCount>2e3&&(Kx.cacheCount=0,Kx.widthCache={}),s}catch(e){return{width:0,height:0}}},rw=["dx","dy","textAnchor","verticalAnchor","scaleToFit","angle","lineHeight","capHeight","className","breakAll"];function iw(e){return iw="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},iw(e)}function ow(){return ow=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ow.apply(this,arguments)}function aw(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function cw(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,vw(r.key),r)}}function sw(e,t){return sw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},sw(e,t)}function lw(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=fw(e);if(t){var i=fw(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===iw(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return uw(e)}(this,n)}}function uw(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fw(e){return fw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fw(e)}function pw(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,c=[],s=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return dw(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 dw(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 dw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function hw(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 mw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hw(Object(n),!0).forEach((function(t){yw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yw(e,t,n){return(t=vw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vw(e){var t=function(e,t){if("object"!==iw(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==iw(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===iw(t)?t:String(t)}var gw=/[ \f\n\r\t\v\u2028\u2029]+/,bw=function(e){try{var t=[];return Sa(e.children)||(t=e.breakAll?e.children.toString().split(""):e.children.toString().split(gw)),{wordsWithComputedWidth:t.map((function(t){return{word:t,width:nw(t,e.style).width}})),spaceWidth:e.breakAll?0:nw(" ",e.style).width}}catch(e){return null}},xw=function(e){return[{words:Sa(e)?[]:e.toString().split(gw)}]},ww=function(e,t){if((e.width||e.scaleToFit)&&!db.isSsr&&t){var n=bw(e);return n?function(e,t,n,r,i){var o=Fa(e.maxLines),a=e.children,c=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(e,t){var o=t.word,a=t.width,c=e[e.length-1];if(c&&(null==r||i||c.width+a+n<r))c.words.push(o),c.width+=a+n;else{var s={words:[o],width:a};e.push(s)}return e}),[])},s=c(t);if(!o)return s;for(var l,u=function(t){var n=a.slice(0,t),i=bw(mw(mw({},e),{},{children:n+"…"})).wordsWithComputedWidth,o=c(i),s=o.length>e.maxLines||function(e){return e.reduce((function(e,t){return e.width>t.width?e:t}))}(o).width>r;return[s,o]},f=0,p=a.length-1,d=0;f<=p&&d<=a.length-1;){var h=Math.floor((f+p)/2),m=pw(u(h-1),2),y=m[0],v=m[1],g=pw(u(h),1)[0];if(y||g||(f=h+1),y&&g&&(p=h-1),!y&&g){l=v;break}d++}return l||s}(e,n.wordsWithComputedWidth,n.spaceWidth,e.width,e.scaleToFit):xw(e.children)}return xw(e.children)},kw=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sw(e,t)}(a,g);var n,r,i,o=lw(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return yw(uw(e=o.call.apply(o,[this].concat(n))),"state",{}),e}return n=a,r=[{key:"render",value:function(){var t=this.props,n=t.dx,r=t.dy,i=t.textAnchor,o=t.verticalAnchor,c=t.scaleToFit,s=t.angle,l=t.lineHeight,u=t.capHeight,f=t.className,p=t.breakAll,d=aw(t,rw),h=this.state.wordsByLines;if(!za(d.x)||!za(d.y))return null;var m,y=d.x+(Fa(n)?n:0),v=d.y+(Fa(r)?r:0);switch(o){case"start":m=Ux("calc(".concat(u,")"));break;case"middle":m=Ux("calc(".concat((h.length-1)/2," * -").concat(l," + (").concat(u," / 2))"));break;default:m=Ux("calc(".concat(h.length-1," * -").concat(l,")"))}var g=[];if(c){var b=h[0].width,x=this.props.width;g.push("scale(".concat((Fa(x)?x/b:1)/b,")"))}return s&&g.push("rotate(".concat(s,", ").concat(y,", ").concat(v,")")),g.length&&(d.transform=g.join(" ")),e.createElement("text",ow({},hc(d,!0),{x:y,y:v,className:$r("recharts-text",f),textAnchor:i,fill:d.fill.includes("url")?a.defaultProps.fill:d.fill}),h.map((function(t,n){return e.createElement("tspan",{x:y,dy:0===n?m:l,key:n},t.words.join(p?"":" "))})))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){if(e.width!==t.prevWidth||e.scaleToFit!==t.prevScaleToFit||e.children!==t.prevChildren||e.style!==t.prevStyle||e.breakAll!==t.prevBreakAll){var n=e.children!==t.prevChildren||e.style!==t.prevStyle||e.breakAll!==t.prevBreakAll;return{prevWidth:e.width,prevScaleToFit:e.scaleToFit,prevChildren:e.children,prevStyle:e.style,wordsByLines:ww(e,n)}}return null}}],r&&cw(n.prototype,r),i&&cw(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();yw(kw,"defaultProps",{x:0,y:0,lineHeight:"1em",capHeight:"0.71em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",fill:"#808080"});var Ew=iu;var Sw=_((function(e,t){return Ew(e,t)})),_w=Si;var Ow=function(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],a=t(o);if(null!=a&&(void 0===c?a==a&&!_w(a):n(a,c)))var c=a,s=o}return s};var Aw=function(e,t){return e>t},Cw=Ow,Tw=Aw,Pw=Lu;var Dw=function(e){return e&&e.length?Cw(e,Pw,Tw):void 0},jw=_(Dw);var Mw=function(e,t){return e<t},Nw=Ow,Iw=Mw,Rw=Lu;var Lw=function(e){return e&&e.length?Nw(e,Rw,Iw):void 0},Fw=_(Lw),zw=ta,Bw=Zu,qw=fg,Hw=mi;var Vw=ng,Uw=function(e,t){return(Hw(e)?zw:qw)(e,Bw(t))};var Ww=_((function(e,t){return Vw(Uw(e,t),1)}));function $w(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Gw(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Yw(e){let t,n,r;function i(e,r,i=0,o=e.length){if(i<o){if(0!==t(r,r))return o;do{const t=i+o>>>1;n(e[t],r)<0?i=t+1:o=t}while(i<o)}return i}return 2!==e.length?(t=$w,n=(t,n)=>$w(e(t),n),r=(t,n)=>e(t)-n):(t=e===$w||e===Gw?e:Xw,n=e,r=e),{left:i,center:function(e,t,n=0,o=e.length){const a=i(e,t,n,o-1);return a>n&&r(e[a-1],t)>-r(e[a],t)?a-1:a},right:function(e,r,i=0,o=e.length){if(i<o){if(0!==t(r,r))return o;do{const t=i+o>>>1;n(e[t],r)<=0?i=t+1:o=t}while(i<o)}return i}}}function Xw(){return 0}function Zw(e){return null===e?NaN:+e}const Kw=Yw($w).right;Yw(Zw).center;class Jw extends Map{constructor(e,t=ek){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(Qw(this,e))}has(e){return super.has(Qw(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){const r=t(n);e.has(r)&&(n=e.get(r),e.delete(r));return n}(this,e))}}function Qw({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function ek(e){return null!==e&&"object"==typeof e?e.valueOf():e}function tk(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:e>t?1:0)}const nk=Math.sqrt(50),rk=Math.sqrt(10),ik=Math.sqrt(2);function ok(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=nk?10:o>=rk?5:o>=ik?2:1;let c,s,l;return i<0?(l=Math.pow(10,-i)/a,c=Math.round(e*l),s=Math.round(t*l),c/l<e&&++c,s/l>t&&--s,l=-l):(l=Math.pow(10,i)*a,c=Math.round(e/l),s=Math.round(t/l),c*l<e&&++c,s*l>t&&--s),s<c&&.5<=n&&n<2?ok(e,t,2*n):[c,s,l]}function ak(e,t,n){if(!((n=+n)>0))return[];if((e=+e)===(t=+t))return[e];const r=t<e,[i,o,a]=r?ok(t,e,n):ok(e,t,n);if(!(o>=i))return[];const c=o-i+1,s=new Array(c);if(r)if(a<0)for(let e=0;e<c;++e)s[e]=(o-e)/-a;else for(let e=0;e<c;++e)s[e]=(o-e)*a;else if(a<0)for(let e=0;e<c;++e)s[e]=(i+e)/-a;else for(let e=0;e<c;++e)s[e]=(i+e)*a;return s}function ck(e,t,n){return ok(e=+e,t=+t,n=+n)[2]}function sk(e,t,n){n=+n;const r=(t=+t)<(e=+e),i=r?ck(t,e,n):ck(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function lk(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n<t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function uk(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function fk(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=void 0===i?tk:function(e=$w){if(e===$w)return tk;if("function"!=typeof e)throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||0===r?r:(0===e(n,n))-(0===e(t,t))}}(i);r>n;){if(r-n>600){const o=r-n+1,a=t-n+1,c=Math.log(o),s=.5*Math.exp(2*c/3),l=.5*Math.sqrt(c*s*(o-s)/o)*(a-o/2<0?-1:1);fk(e,t,Math.max(n,Math.floor(t-a*s/o+l)),Math.min(r,Math.floor(t+(o-a)*s/o+l)),i)}const o=e[t];let a=n,c=r;for(pk(e,n,t),i(e[r],o)>0&&pk(e,n,r);a<c;){for(pk(e,a,c),++a,--c;i(e[a],o)<0;)++a;for(;i(e[c],o)>0;)--c}0===i(e[n],o)?pk(e,n,c):(++c,pk(e,c,r)),c<=t&&(n=c+1),t<=c&&(r=c-1)}return e}function pk(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function dk(e,t,n=Zw){if((r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),a=+n(e[o],o,e);return a+(+n(e[o+1],o+1,e)-a)*(i-o)}}function hk(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function mk(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}const yk=Symbol("implicit");function vk(){var e=new Jw,t=[],n=[],r=yk;function i(i){let o=e.get(i);if(void 0===o){if(r!==yk)return r;e.set(i,o=t.push(i)-1)}return n[o%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new Jw;for(const r of n)e.has(r)||e.set(r,t.push(r)-1);return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return vk(t,n).unknown(r)},hk.apply(i,arguments),i}function gk(){var e,t,n=vk().unknown(void 0),r=n.domain,i=n.range,o=0,a=1,c=!1,s=0,l=0,u=.5;function f(){var n=r().length,f=a<o,p=f?a:o,d=f?o:a;e=(d-p)/Math.max(1,n-s+2*l),c&&(e=Math.floor(e)),p+=(d-p-e*(n-s))*u,t=e*(1-s),c&&(p=Math.round(p),t=Math.round(t));var h=function(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),o=new Array(i);++r<i;)o[r]=e+r*n;return o}(n).map((function(t){return p+e*t}));return i(f?h.reverse():h)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),f()):r()},n.range=function(e){return arguments.length?([o,a]=e,o=+o,a=+a,f()):[o,a]},n.rangeRound=function(e){return[o,a]=e,o=+o,a=+a,c=!0,f()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(c=!!e,f()):c},n.padding=function(e){return arguments.length?(s=Math.min(1,l=+e),f()):s},n.paddingInner=function(e){return arguments.length?(s=Math.min(1,e),f()):s},n.paddingOuter=function(e){return arguments.length?(l=+e,f()):l},n.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),f()):u},n.copy=function(){return gk(r(),[o,a]).round(c).paddingInner(s).paddingOuter(l).align(u)},hk.apply(f(),arguments)}function bk(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return bk(t())},e}function xk(){return bk(gk.apply(null,arguments).paddingInner(1))}function wk(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function kk(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Ek(){}var Sk=.7,_k=1/Sk,Ok="\\s*([+-]?\\d+)\\s*",Ak="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ck="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Tk=/^#([0-9a-f]{3,8})$/,Pk=new RegExp(`^rgb\\(${Ok},${Ok},${Ok}\\)$`),Dk=new RegExp(`^rgb\\(${Ck},${Ck},${Ck}\\)$`),jk=new RegExp(`^rgba\\(${Ok},${Ok},${Ok},${Ak}\\)$`),Mk=new RegExp(`^rgba\\(${Ck},${Ck},${Ck},${Ak}\\)$`),Nk=new RegExp(`^hsl\\(${Ak},${Ck},${Ck}\\)$`),Ik=new RegExp(`^hsla\\(${Ak},${Ck},${Ck},${Ak}\\)$`),Rk={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Lk(){return this.rgb().formatHex()}function Fk(){return this.rgb().formatRgb()}function zk(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Tk.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Bk(t):3===n?new Uk(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?qk(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?qk(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=Pk.exec(e))?new Uk(t[1],t[2],t[3],1):(t=Dk.exec(e))?new Uk(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=jk.exec(e))?qk(t[1],t[2],t[3],t[4]):(t=Mk.exec(e))?qk(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Nk.exec(e))?Zk(t[1],t[2]/100,t[3]/100,1):(t=Ik.exec(e))?Zk(t[1],t[2]/100,t[3]/100,t[4]):Rk.hasOwnProperty(e)?Bk(Rk[e]):"transparent"===e?new Uk(NaN,NaN,NaN,0):null}function Bk(e){return new Uk(e>>16&255,e>>8&255,255&e,1)}function qk(e,t,n,r){return r<=0&&(e=t=n=NaN),new Uk(e,t,n,r)}function Hk(e){return e instanceof Ek||(e=zk(e)),e?new Uk((e=e.rgb()).r,e.g,e.b,e.opacity):new Uk}function Vk(e,t,n,r){return 1===arguments.length?Hk(e):new Uk(e,t,n,null==r?1:r)}function Uk(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Wk(){return`#${Xk(this.r)}${Xk(this.g)}${Xk(this.b)}`}function $k(){const e=Gk(this.opacity);return`${1===e?"rgb(":"rgba("}${Yk(this.r)}, ${Yk(this.g)}, ${Yk(this.b)}${1===e?")":`, ${e})`}`}function Gk(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Yk(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Xk(e){return((e=Yk(e))<16?"0":"")+e.toString(16)}function Zk(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Jk(e,t,n,r)}function Kk(e){if(e instanceof Jk)return new Jk(e.h,e.s,e.l,e.opacity);if(e instanceof Ek||(e=zk(e)),!e)return new Jk;if(e instanceof Jk)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,c=o-i,s=(o+i)/2;return c?(a=t===o?(n-r)/c+6*(n<r):n===o?(r-t)/c+2:(t-n)/c+4,c/=s<.5?o+i:2-o-i,a*=60):c=s>0&&s<1?0:a,new Jk(a,c,s,e.opacity)}function Jk(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Qk(e){return(e=(e||0)%360)<0?e+360:e}function eE(e){return Math.max(0,Math.min(1,e||0))}function tE(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}wk(Ek,zk,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Lk,formatHex:Lk,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Kk(this).formatHsl()},formatRgb:Fk,toString:Fk}),wk(Uk,Vk,kk(Ek,{brighter(e){return e=null==e?_k:Math.pow(_k,e),new Uk(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Sk:Math.pow(Sk,e),new Uk(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Uk(Yk(this.r),Yk(this.g),Yk(this.b),Gk(this.opacity))},displayable(){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:Wk,formatHex:Wk,formatHex8:function(){return`#${Xk(this.r)}${Xk(this.g)}${Xk(this.b)}${Xk(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:$k,toString:$k})),wk(Jk,(function(e,t,n,r){return 1===arguments.length?Kk(e):new Jk(e,t,n,null==r?1:r)}),kk(Ek,{brighter(e){return e=null==e?_k:Math.pow(_k,e),new Jk(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Sk:Math.pow(Sk,e),new Jk(this.h,this.s,this.l*e,this.opacity)},rgb(){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,i=2*n-r;return new Uk(tE(e>=240?e-240:e+120,i,r),tE(e,i,r),tE(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Jk(Qk(this.h),eE(this.s),eE(this.l),Gk(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Gk(this.opacity);return`${1===e?"hsl(":"hsla("}${Qk(this.h)}, ${100*eE(this.s)}%, ${100*eE(this.l)}%${1===e?")":`, ${e})`}`}}));const nE=Math.PI/180,rE=180/Math.PI,iE=.96422,oE=1,aE=.82521,cE=4/29,sE=6/29,lE=3*sE*sE,uE=sE*sE*sE;function fE(e){if(e instanceof pE)return new pE(e.l,e.a,e.b,e.opacity);if(e instanceof vE)return gE(e);e instanceof Uk||(e=Hk(e));var t,n,r=yE(e.r),i=yE(e.g),o=yE(e.b),a=dE((.2225045*r+.7168786*i+.0606169*o)/oE);return r===i&&i===o?t=n=a:(t=dE((.4360747*r+.3850649*i+.1430804*o)/iE),n=dE((.0139322*r+.0971045*i+.7141733*o)/aE)),new pE(116*a-16,500*(t-a),200*(a-n),e.opacity)}function pE(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function dE(e){return e>uE?Math.pow(e,1/3):e/lE+cE}function hE(e){return e>sE?e*e*e:lE*(e-cE)}function mE(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function yE(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function vE(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function gE(e){if(isNaN(e.h))return new pE(e.l,0,0,e.opacity);var t=e.h*nE;return new pE(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}wk(pE,(function(e,t,n,r){return 1===arguments.length?fE(e):new pE(e,t,n,null==r?1:r)}),kk(Ek,{brighter(e){return new pE(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new pE(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new Uk(mE(3.1338561*(t=iE*hE(t))-1.6168667*(e=oE*hE(e))-.4906146*(n=aE*hE(n))),mE(-.9787684*t+1.9161415*e+.033454*n),mE(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),wk(vE,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof vE)return new vE(e.h,e.c,e.l,e.opacity);if(e instanceof pE||(e=fE(e)),0===e.a&&0===e.b)return new vE(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*rE;return new vE(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new vE(e,t,n,null==r?1:r)}),kk(Ek,{brighter(e){return new vE(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new vE(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return gE(this).rgb()}}));var bE=-.14861,xE=1.78277,wE=-.29227,kE=-.90649,EE=1.97294,SE=EE*kE,_E=EE*xE,OE=xE*wE-kE*bE;function AE(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof CE)return new CE(e.h,e.s,e.l,e.opacity);e instanceof Uk||(e=Hk(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(OE*r+SE*t-_E*n)/(OE+SE-_E),o=r-i,a=(EE*(n-i)-wE*o)/kE,c=Math.sqrt(a*a+o*o)/(EE*i*(1-i)),s=c?Math.atan2(a,o)*rE-120:NaN;return new CE(s<0?s+360:s,c,i,e.opacity)}(e):new CE(e,t,n,null==r?1:r)}function CE(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}wk(CE,AE,kk(Ek,{brighter(e){return e=null==e?_k:Math.pow(_k,e),new CE(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Sk:Math.pow(Sk,e),new CE(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*nE,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new Uk(255*(t+n*(bE*r+xE*i)),255*(t+n*(wE*r+kE*i)),255*(t+n*(EE*r)),this.opacity)}}));var TE=e=>()=>e;function PE(e,t){return function(n){return e+n*t}}function DE(e){return 1==(e=+e)?jE: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):TE(isNaN(t)?n:t)}}function jE(e,t){var n=t-e;return n?PE(e,n):TE(isNaN(e)?t:e)}var ME=function e(t){var n=DE(t);function r(e,t){var r=n((e=Vk(e)).r,(t=Vk(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=jE(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function NE(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,i=t.slice();return function(o){for(n=0;n<r;++n)i[n]=e[n]*(1-o)+t[n]*o;return i}}function IE(e,t){var n,r=t?t.length:0,i=e?Math.min(r,e.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=HE(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<i;++n)a[n]=o[n](e);return a}}function RE(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function LE(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function FE(e,t){var n,r={},i={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=HE(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}}var zE=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,BE=new RegExp(zE.source,"g");function qE(e,t){var n,r,i,o=zE.lastIndex=BE.lastIndex=0,a=-1,c=[],s=[];for(e+="",t+="";(n=zE.exec(e))&&(r=BE.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),c[a]?c[a]+=i:c[++a]=i),(n=n[0])===(r=r[0])?c[a]?c[a]+=r:c[++a]=r:(c[++a]=null,s.push({i:a,x:LE(n,r)})),o=BE.lastIndex;return o<t.length&&(i=t.slice(o),c[a]?c[a]+=i:c[++a]=i),c.length<2?s[0]?function(e){return function(t){return e(t)+""}}(s[0].x):function(e){return function(){return e}}(t):(t=s.length,function(e){for(var n,r=0;r<t;++r)c[(n=s[r]).i]=n.x(e);return c.join("")})}function HE(e,t){var n,r=typeof t;return null==t||"boolean"===r?TE(t):("number"===r?LE:"string"===r?(n=zk(t))?(t=n,ME):qE:t instanceof zk?ME:t instanceof Date?RE:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?NE:Array.isArray(t)?IE:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?FE:LE)(e,t)}function VE(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function UE(e){return((e=Math.exp(e))+1/e)/2}function WE(e){return function t(n){function r(t,r){var i=e((t=AE(t)).h,(r=AE(r)).h),o=jE(t.s,r.s),a=jE(t.l,r.l),c=jE(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=o(e),t.l=a(Math.pow(e,n)),t.opacity=c(e),t+""}}return n=+n,r.gamma=t,r}(1)}function $E(e,t){void 0===t&&(t=e,e=HE);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return o[t](e-t)}}function GE(e){return+e}!function e(t,n,r){function i(e,i){var o,a,c=e[0],s=e[1],l=e[2],u=i[0],f=i[1],p=i[2],d=u-c,h=f-s,m=d*d+h*h;if(m<1e-12)a=Math.log(p/l)/t,o=function(e){return[c+e*d,s+e*h,l*Math.exp(t*e*a)]};else{var y=Math.sqrt(m),v=(p*p-l*l+r*m)/(2*l*n*y),g=(p*p-l*l-r*m)/(2*p*n*y),b=Math.log(Math.sqrt(v*v+1)-v),x=Math.log(Math.sqrt(g*g+1)-g);a=(x-b)/t,o=function(e){var r=e*a,i=UE(b),o=l/(n*y)*(i*function(e){return((e=Math.exp(2*e))-1)/(e+1)}(t*r+b)-function(e){return((e=Math.exp(e))-1/e)/2}(b));return[c+o*d,s+o*h,l*i/UE(t*r+b)]}}return o.duration=1e3*a*t/Math.SQRT2,o}return i.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},i}(Math.SQRT2,2,4),WE((function(e,t){var n=t-e;return n?PE(e,n>180||n<-180?n-360*Math.round(n/360):n):TE(isNaN(e)?t:e)})),WE(jE);var YE=[0,1];function XE(e){return e}function ZE(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function KE(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=ZE(i,r),o=n(a,o)):(r=ZE(r,i),o=n(o,a)),function(e){return o(r(e))}}function JE(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=ZE(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(t){var n=Kw(e,t,1,r)-1;return o[n](i[n](t))}}function QE(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function eS(){var e,t,n,r,i,o,a=YE,c=YE,s=HE,l=XE;function u(){var e=Math.min(a.length,c.length);return l!==XE&&(l=function(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(a[0],a[e-1])),r=e>2?JE:KE,i=o=null,f}function f(t){return null==t||isNaN(t=+t)?n:(i||(i=r(a.map(e),c,s)))(e(l(t)))}return f.invert=function(n){return l(t((o||(o=r(c,a.map(e),LE)))(n)))},f.domain=function(e){return arguments.length?(a=Array.from(e,GE),u()):a.slice()},f.range=function(e){return arguments.length?(c=Array.from(e),u()):c.slice()},f.rangeRound=function(e){return c=Array.from(e),s=VE,u()},f.clamp=function(e){return arguments.length?(l=!!e||XE,u()):l!==XE},f.interpolate=function(e){return arguments.length?(s=e,u()):s},f.unknown=function(e){return arguments.length?(n=e,f):n},function(n,r){return e=n,t=r,u()}}function tS(){return eS()(XE,XE)}function nS(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function rS(e){return(e=nS(Math.abs(e)))?e[1]:NaN}var iS,oS=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function aS(e){if(!(t=oS.exec(e)))throw new Error("invalid format: "+e);var t;return new cS({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 cS(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+""}function sS(e,t){var n=nS(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}aS.prototype=cS.prototype,cS.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};var lS={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>sS(100*e,t),r:sS,s:function(e,t){var n=nS(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(iS=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+nS(e,Math.max(0,t+o-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function uS(e){return e}var fS,pS,dS,hS=Array.prototype.map,mS=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function yS(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?uS:(t=hS.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],a=0,c=t[0],s=0;i>0&&c>0&&(s+c+1>r&&(c=Math.max(1,r-s)),o.push(e.substring(i-=c,i+c)),!((s+=c+1)>r));)c=t[a=(a+1)%t.length];return o.reverse().join(n)}),i=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",c=void 0===e.numerals?uS:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(hS.call(e.numerals,String)),s=void 0===e.percent?"%":e.percent+"",l=void 0===e.minus?"−":e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function f(e){var t=(e=aS(e)).fill,n=e.align,f=e.sign,p=e.symbol,d=e.zero,h=e.width,m=e.comma,y=e.precision,v=e.trim,g=e.type;"n"===g?(m=!0,g="g"):lS[g]||(void 0===y&&(y=12),v=!0,g="g"),(d||"0"===t&&"="===n)&&(d=!0,t="0",n="=");var b="$"===p?i:"#"===p&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",x="$"===p?o:/[%p]/.test(g)?s:"",w=lS[g],k=/[defgprs%]/.test(g);function E(e){var i,o,s,p=b,E=x;if("c"===g)E=w(e)+E,e="";else{var S=(e=+e)<0||1/e<0;if(e=isNaN(e)?u:w(Math.abs(e),y),v&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(!+e[r])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),S&&0==+e&&"+"!==f&&(S=!1),p=(S?"("===f?f:l:"-"===f||"("===f?"":f)+p,E=("s"===g?mS[8+iS/3]:"")+E+(S&&"("===f?")":""),k)for(i=-1,o=e.length;++i<o;)if(48>(s=e.charCodeAt(i))||s>57){E=(46===s?a+e.slice(i+1):e.slice(i))+E,e=e.slice(0,i);break}}m&&!d&&(e=r(e,1/0));var _=p.length+e.length+E.length,O=_<h?new Array(h-_+1).join(t):"";switch(m&&d&&(e=r(O+e,O.length?h-E.length:1/0),O=""),n){case"<":e=p+e+E+O;break;case"=":e=p+O+e+E;break;case"^":e=O.slice(0,_=O.length>>1)+p+e+E+O.slice(_);break;default:e=O+p+e+E}return c(e)}return y=void 0===y?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),E.toString=function(){return e+""},E}return{format:f,formatPrefix:function(e,t){var n=f(((e=aS(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(rS(t)/3))),i=Math.pow(10,-r),o=mS[8+r/3];return function(e){return n(i*e)+o}}}}function vS(e,t,n,r){var i,o=sk(e,t,n);switch((r=aS(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(i=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(rS(t)/3)))-rS(Math.abs(e)))}(o,a))||(r.precision=i),dS(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,rS(t)-rS(e))+1}(o,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(e){return Math.max(0,-rS(Math.abs(e)))}(o))||(r.precision=i-2*("%"===r.type))}return pS(r)}function gS(e){var t=e.domain;return e.ticks=function(e){var n=t();return ak(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return vS(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,i,o=t(),a=0,c=o.length-1,s=o[a],l=o[c],u=10;for(l<s&&(i=s,s=l,l=i,i=a,a=c,c=i);u-- >0;){if((i=ck(s,l,n))===r)return o[a]=s,o[c]=l,t(o);if(i>0)s=Math.floor(s/i)*i,l=Math.ceil(l/i)*i;else{if(!(i<0))break;s=Math.ceil(s*i)/i,l=Math.floor(l*i)/i}r=i}return e},e}function bS(){var e=tS();return e.copy=function(){return QE(e,bS())},hk.apply(e,arguments),gS(e)}function xS(e,t){var n,r=0,i=(e=e.slice()).length-1,o=e[r],a=e[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),e[r]=t.floor(o),e[i]=t.ceil(a),e}function wS(e){return Math.log(e)}function kS(e){return Math.exp(e)}function ES(e){return-Math.log(-e)}function SS(e){return-Math.exp(-e)}function _S(e){return isFinite(e)?+("1e"+e):e<0?0:e}function OS(e){return(t,n)=>-e(-t,n)}function AS(e){const t=e(wS,kS),n=t.domain;let r,i,o=10;function a(){return r=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}(o),i=function(e){return 10===e?_S:e===Math.E?Math.exp:t=>Math.pow(e,t)}(o),n()[0]<0?(r=OS(r),i=OS(i),e(ES,SS)):e(wS,kS),t}return t.base=function(e){return arguments.length?(o=+e,a()):o},t.domain=function(e){return arguments.length?(n(e),a()):n()},t.ticks=e=>{const t=n();let a=t[0],c=t[t.length-1];const s=c<a;s&&([a,c]=[c,a]);let l,u,f=r(a),p=r(c);const d=null==e?10:+e;let h=[];if(!(o%1)&&p-f<d){if(f=Math.floor(f),p=Math.ceil(p),a>0){for(;f<=p;++f)for(l=1;l<o;++l)if(u=f<0?l/i(-f):l*i(f),!(u<a)){if(u>c)break;h.push(u)}}else for(;f<=p;++f)for(l=o-1;l>=1;--l)if(u=f>0?l/i(-f):l*i(f),!(u<a)){if(u>c)break;h.push(u)}2*h.length<d&&(h=ak(a,c,d))}else h=ak(f,p,Math.min(p-f,d)).map(i);return s?h.reverse():h},t.tickFormat=(e,n)=>{if(null==e&&(e=10),null==n&&(n=10===o?"s":","),"function"!=typeof n&&(o%1||null!=(n=aS(n)).precision||(n.trim=!0),n=pS(n)),e===1/0)return n;const a=Math.max(1,o*e/t.ticks().length);return e=>{let t=e/i(Math.round(r(e)));return t*o<o-.5&&(t*=o),t<=a?n(e):""}},t.nice=()=>n(xS(n(),{floor:e=>i(Math.floor(r(e))),ceil:e=>i(Math.ceil(r(e)))})),t}function CS(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function TS(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function PS(e){var t=1,n=e(CS(t),TS(t));return n.constant=function(n){return arguments.length?e(CS(t=+n),TS(t)):t},gS(n)}function DS(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function jS(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function MS(e){return e<0?-e*e:e*e}function NS(e){var t=e(XE,XE),n=1;return t.exponent=function(t){return arguments.length?1===(n=+t)?e(XE,XE):.5===n?e(jS,MS):e(DS(n),DS(1/n)):n},gS(t)}function IS(){var e=NS(eS());return e.copy=function(){return QE(e,IS()).exponent(e.exponent())},hk.apply(e,arguments),e}function RS(e){return Math.sign(e)*e*e}fS=yS({thousands:",",grouping:[3],currency:["$",""]}),pS=fS.format,dS=fS.formatPrefix;const LS=new Date,FS=new Date;function zS(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{const t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),i.range=(n,r,o)=>{const a=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return a;let c;do{a.push(c=new Date(+n)),t(n,o),e(n)}while(c<n&&n<r);return a},i.filter=n=>zS((t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),((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&&(i.count=(t,r)=>(LS.setTime(+t),FS.setTime(+r),e(LS),e(FS),Math.floor(n(LS,FS))),i.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?t=>r(t)%e==0:t=>i.count(0,t)%e==0):i:null)),i}const BS=zS((()=>{}),((e,t)=>{e.setTime(+e+t)}),((e,t)=>t-e));BS.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?zS((t=>{t.setTime(Math.floor(t/e)*e)}),((t,n)=>{t.setTime(+t+n*e)}),((t,n)=>(n-t)/e)):BS:null),BS.range;const qS=1e3,HS=6e4,VS=36e5,US=864e5,WS=6048e5,$S=2592e6,GS=31536e6,YS=zS((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*qS)}),((e,t)=>(t-e)/qS),(e=>e.getUTCSeconds()));YS.range;const XS=zS((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*qS)}),((e,t)=>{e.setTime(+e+t*HS)}),((e,t)=>(t-e)/HS),(e=>e.getMinutes()));XS.range;const ZS=zS((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*HS)}),((e,t)=>(t-e)/HS),(e=>e.getUTCMinutes()));ZS.range;const KS=zS((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*qS-e.getMinutes()*HS)}),((e,t)=>{e.setTime(+e+t*VS)}),((e,t)=>(t-e)/VS),(e=>e.getHours()));KS.range;const JS=zS((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*VS)}),((e,t)=>(t-e)/VS),(e=>e.getUTCHours()));JS.range;const QS=zS((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*HS)/US),(e=>e.getDate()-1));QS.range;const e_=zS((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/US),(e=>e.getUTCDate()-1));e_.range;const t_=zS((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/US),(e=>Math.floor(e/US)));function n_(e){return zS((t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),((e,t)=>{e.setDate(e.getDate()+7*t)}),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*HS)/WS))}t_.range;const r_=n_(0),i_=n_(1),o_=n_(2),a_=n_(3),c_=n_(4),s_=n_(5),l_=n_(6);function u_(e){return zS((t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)}),((e,t)=>(t-e)/WS))}r_.range,i_.range,o_.range,a_.range,c_.range,s_.range,l_.range;const f_=u_(0),p_=u_(1),d_=u_(2),h_=u_(3),m_=u_(4),y_=u_(5),v_=u_(6);f_.range,p_.range,d_.range,h_.range,m_.range,y_.range,v_.range;const g_=zS((e=>{e.setDate(1),e.setHours(0,0,0,0)}),((e,t)=>{e.setMonth(e.getMonth()+t)}),((e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())),(e=>e.getMonth()));g_.range;const b_=zS((e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)}),((e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())),(e=>e.getUTCMonth()));b_.range;const x_=zS((e=>{e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,t)=>{e.setFullYear(e.getFullYear()+t)}),((e,t)=>t.getFullYear()-e.getFullYear()),(e=>e.getFullYear()));x_.every=e=>isFinite(e=Math.floor(e))&&e>0?zS((t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,n)=>{t.setFullYear(t.getFullYear()+n*e)})):null,x_.range;const w_=zS((e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)}),((e,t)=>t.getUTCFullYear()-e.getUTCFullYear()),(e=>e.getUTCFullYear()));function k_(e,t,n,r,i,o){const a=[[YS,1,qS],[YS,5,5e3],[YS,15,15e3],[YS,30,3e4],[o,1,HS],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,VS],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,US],[r,2,1728e5],[n,1,WS],[t,1,$S],[t,3,7776e6],[e,1,GS]];function c(t,n,r){const i=Math.abs(n-t)/r,o=Yw((([,,e])=>e)).right(a,i);if(o===a.length)return e.every(sk(t/GS,n/GS,r));if(0===o)return BS.every(Math.max(sk(t,n,r),1));const[c,s]=a[i/a[o-1][2]<a[o][2]/i?o-1:o];return c.every(s)}return[function(e,t,n){const r=t<e;r&&([e,t]=[t,e]);const i=n&&"function"==typeof n.range?n:c(e,t,n),o=i?i.range(e,+t+1):[];return r?o.reverse():o},c]}w_.every=e=>isFinite(e=Math.floor(e))&&e>0?zS((t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null,w_.range;const[E_,S_]=k_(w_,b_,f_,t_,JS,ZS),[__,O_]=k_(x_,g_,r_,QS,KS,XS);function A_(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function C_(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function T_(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var P_,D_,j_,M_,N_={"-":"",_:" ",0:"0"},I_=/^\s*\d+/,R_=/^%/,L_=/[\\^$*+?|[\]().{}]/g;function F_(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function z_(e){return e.replace(L_,"\\$&")}function B_(e){return new RegExp("^(?:"+e.map(z_).join("|")+")","i")}function q_(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function H_(e,t,n){var r=I_.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function V_(e,t,n){var r=I_.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function U_(e,t,n){var r=I_.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function W_(e,t,n){var r=I_.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function $_(e,t,n){var r=I_.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function G_(e,t,n){var r=I_.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Y_(e,t,n){var r=I_.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function X_(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 Z_(e,t,n){var r=I_.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function K_(e,t,n){var r=I_.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function J_(e,t,n){var r=I_.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Q_(e,t,n){var r=I_.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function eO(e,t,n){var r=I_.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function tO(e,t,n){var r=I_.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function nO(e,t,n){var r=I_.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function rO(e,t,n){var r=I_.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function iO(e,t,n){var r=I_.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function oO(e,t,n){var r=R_.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function aO(e,t,n){var r=I_.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function cO(e,t,n){var r=I_.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function sO(e,t){return F_(e.getDate(),t,2)}function lO(e,t){return F_(e.getHours(),t,2)}function uO(e,t){return F_(e.getHours()%12||12,t,2)}function fO(e,t){return F_(1+QS.count(x_(e),e),t,3)}function pO(e,t){return F_(e.getMilliseconds(),t,3)}function dO(e,t){return pO(e,t)+"000"}function hO(e,t){return F_(e.getMonth()+1,t,2)}function mO(e,t){return F_(e.getMinutes(),t,2)}function yO(e,t){return F_(e.getSeconds(),t,2)}function vO(e){var t=e.getDay();return 0===t?7:t}function gO(e,t){return F_(r_.count(x_(e)-1,e),t,2)}function bO(e){var t=e.getDay();return t>=4||0===t?c_(e):c_.ceil(e)}function xO(e,t){return e=bO(e),F_(c_.count(x_(e),e)+(4===x_(e).getDay()),t,2)}function wO(e){return e.getDay()}function kO(e,t){return F_(i_.count(x_(e)-1,e),t,2)}function EO(e,t){return F_(e.getFullYear()%100,t,2)}function SO(e,t){return F_((e=bO(e)).getFullYear()%100,t,2)}function _O(e,t){return F_(e.getFullYear()%1e4,t,4)}function OO(e,t){var n=e.getDay();return F_((e=n>=4||0===n?c_(e):c_.ceil(e)).getFullYear()%1e4,t,4)}function AO(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+F_(t/60|0,"0",2)+F_(t%60,"0",2)}function CO(e,t){return F_(e.getUTCDate(),t,2)}function TO(e,t){return F_(e.getUTCHours(),t,2)}function PO(e,t){return F_(e.getUTCHours()%12||12,t,2)}function DO(e,t){return F_(1+e_.count(w_(e),e),t,3)}function jO(e,t){return F_(e.getUTCMilliseconds(),t,3)}function MO(e,t){return jO(e,t)+"000"}function NO(e,t){return F_(e.getUTCMonth()+1,t,2)}function IO(e,t){return F_(e.getUTCMinutes(),t,2)}function RO(e,t){return F_(e.getUTCSeconds(),t,2)}function LO(e){var t=e.getUTCDay();return 0===t?7:t}function FO(e,t){return F_(f_.count(w_(e)-1,e),t,2)}function zO(e){var t=e.getUTCDay();return t>=4||0===t?m_(e):m_.ceil(e)}function BO(e,t){return e=zO(e),F_(m_.count(w_(e),e)+(4===w_(e).getUTCDay()),t,2)}function qO(e){return e.getUTCDay()}function HO(e,t){return F_(p_.count(w_(e)-1,e),t,2)}function VO(e,t){return F_(e.getUTCFullYear()%100,t,2)}function UO(e,t){return F_((e=zO(e)).getUTCFullYear()%100,t,2)}function WO(e,t){return F_(e.getUTCFullYear()%1e4,t,4)}function $O(e,t){var n=e.getUTCDay();return F_((e=n>=4||0===n?m_(e):m_.ceil(e)).getUTCFullYear()%1e4,t,4)}function GO(){return"+0000"}function YO(){return"%"}function XO(e){return+e}function ZO(e){return Math.floor(+e/1e3)}!function(e){P_=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,c=e.months,s=e.shortMonths,l=B_(i),u=q_(i),f=B_(o),p=q_(o),d=B_(a),h=q_(a),m=B_(c),y=q_(c),v=B_(s),g=q_(s),b={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return s[e.getMonth()]},B:function(e){return c[e.getMonth()]},c:null,d:sO,e:sO,f:dO,g:SO,G:OO,H:lO,I:uO,j:fO,L:pO,m:hO,M:mO,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:XO,s:ZO,S:yO,u:vO,U:gO,V:xO,w:wO,W:kO,x:null,X:null,y:EO,Y:_O,Z:AO,"%":YO},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return s[e.getUTCMonth()]},B:function(e){return c[e.getUTCMonth()]},c:null,d:CO,e:CO,f:MO,g:UO,G:$O,H:TO,I:PO,j:DO,L:jO,m:NO,M:IO,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:XO,s:ZO,S:RO,u:LO,U:FO,V:BO,w:qO,W:HO,x:null,X:null,y:VO,Y:WO,Z:GO,"%":YO},w={a:function(e,t,n){var r=d.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=p.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=g.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=y.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return S(e,t,n,r)},d:J_,e:J_,f:iO,g:Y_,G:G_,H:eO,I:eO,j:Q_,L:rO,m:K_,M:tO,p:function(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:Z_,Q:aO,s:cO,S:nO,u:V_,U:U_,V:W_,w:H_,W:$_,x:function(e,t,r){return S(e,n,t,r)},X:function(e,t,n){return S(e,r,t,n)},y:Y_,Y:G_,Z:X_,"%":oO};function k(e,t){return function(n){var r,i,o,a=[],c=-1,s=0,l=e.length;for(n instanceof Date||(n=new Date(+n));++c<l;)37===e.charCodeAt(c)&&(a.push(e.slice(s,c)),null!=(i=N_[r=e.charAt(++c)])?r=e.charAt(++c):i="e"===r?" ":"0",(o=t[r])&&(r=o(n,i)),a.push(r),s=c+1);return a.push(e.slice(s,c)),a.join("")}}function E(e,t){return function(n){var r,i,o=T_(1900,void 0,1);if(S(o,e,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(t&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=C_(T_(o.y,0,1))).getUTCDay(),r=i>4||0===i?p_.ceil(r):p_(r),r=e_.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=A_(T_(o.y,0,1))).getDay(),r=i>4||0===i?i_.ceil(r):i_(r),r=QS.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?C_(T_(o.y,0,1)).getUTCDay():A_(T_(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,C_(o)):A_(o)}}function S(e,t,n,r){for(var i,o,a=0,c=t.length,s=n.length;a<c;){if(r>=s)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=w[i in N_?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=k(n,b),b.X=k(r,b),b.c=k(t,b),x.x=k(n,x),x.X=k(r,x),x.c=k(t,x),{format:function(e){var t=k(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=E(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=k(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=E(e+="",!0);return t.toString=function(){return e},t}}}(e),D_=P_.format,P_.parse,j_=P_.utcFormat,M_=P_.utcParse}({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"]});var KO="%Y-%m-%dT%H:%M:%S.%LZ";function JO(e){return new Date(e)}function QO(e){return e instanceof Date?+e:+new Date(+e)}function eA(e,t,n,r,i,o,a,c,s,l){var u=tS(),f=u.invert,p=u.domain,d=l(".%L"),h=l(":%S"),m=l("%I:%M"),y=l("%I %p"),v=l("%a %d"),g=l("%b %d"),b=l("%B"),x=l("%Y");function w(e){return(s(e)<e?d:c(e)<e?h:a(e)<e?m:o(e)<e?y:r(e)<e?i(e)<e?v:g:n(e)<e?b:x)(e)}return u.invert=function(e){return new Date(f(e))},u.domain=function(e){return arguments.length?p(Array.from(e,QO)):p().map(JO)},u.ticks=function(t){var n=p();return e(n[0],n[n.length-1],null==t?10:t)},u.tickFormat=function(e,t){return null==t?w:l(t)},u.nice=function(e){var n=p();return e&&"function"==typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?p(xS(n,e)):u},u.copy=function(){return QE(u,eA(e,t,n,r,i,o,a,c,s,l))},u}function tA(){var e,t,n,r,i,o=0,a=1,c=XE,s=!1;function l(t){return null==t||isNaN(t=+t)?i:c(0===n?.5:(t=(r(t)-e)*n,s?Math.max(0,Math.min(1,t)):t))}function u(e){return function(t){var n,r;return arguments.length?([n,r]=t,c=e(n,r),l):[c(0),c(1)]}}return l.domain=function(i){return arguments.length?([o,a]=i,e=r(o=+o),t=r(a=+a),n=e===t?0:1/(t-e),l):[o,a]},l.clamp=function(e){return arguments.length?(s=!!e,l):s},l.interpolator=function(e){return arguments.length?(c=e,l):c},l.range=u(HE),l.rangeRound=u(VE),l.unknown=function(e){return arguments.length?(i=e,l):i},function(i){return r=i,e=i(o),t=i(a),n=e===t?0:1/(t-e),l}}function nA(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function rA(){var e=NS(tA());return e.copy=function(){return nA(e,rA()).exponent(e.exponent())},mk.apply(e,arguments)}function iA(){var e,t,n,r,i,o,a,c=0,s=.5,l=1,u=1,f=XE,p=!1;function d(e){return isNaN(e=+e)?a:(e=.5+((e=+o(e))-t)*(u*e<u*t?r:i),f(p?Math.max(0,Math.min(1,e)):e))}function h(e){return function(t){var n,r,i;return arguments.length?([n,r,i]=t,f=$E(e,[n,r,i]),d):[f(0),f(.5),f(1)]}}return d.domain=function(a){return arguments.length?([c,s,l]=a,e=o(c=+c),t=o(s=+s),n=o(l=+l),r=e===t?0:.5/(t-e),i=t===n?0:.5/(n-t),u=t<e?-1:1,d):[c,s,l]},d.clamp=function(e){return arguments.length?(p=!!e,d):p},d.interpolator=function(e){return arguments.length?(f=e,d):f},d.range=h(HE),d.rangeRound=h(VE),d.unknown=function(e){return arguments.length?(a=e,d):a},function(a){return o=a,e=a(c),t=a(s),n=a(l),r=e===t?0:.5/(t-e),i=t===n?0:.5/(n-t),u=t<e?-1:1,d}}function oA(){var e=NS(iA());return e.copy=function(){return nA(e,oA()).exponent(e.exponent())},mk.apply(e,arguments)}Date.prototype.toISOString||j_(KO),+new Date("2000-01-01T00:00:00.000Z")||M_(KO);var aA,cA=Object.freeze({__proto__:null,scaleBand:gk,scalePoint:xk,scaleIdentity:function e(t){var n;function r(e){return null==e||isNaN(e=+e)?n:e}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(t=Array.from(e,GE),r):t.slice()},r.unknown=function(e){return arguments.length?(n=e,r):n},r.copy=function(){return e(t).unknown(n)},t=arguments.length?Array.from(t,GE):[0,1],gS(r)},scaleLinear:bS,scaleLog:function e(){const t=AS(eS()).domain([1,10]);return t.copy=()=>QE(t,e()).base(t.base()),hk.apply(t,arguments),t},scaleSymlog:function e(){var t=PS(eS());return t.copy=function(){return QE(t,e()).constant(t.constant())},hk.apply(t,arguments)},scaleOrdinal:vk,scaleImplicit:yk,scalePow:IS,scaleSqrt:function(){return IS.apply(null,arguments).exponent(.5)},scaleRadial:function e(){var t,n=tS(),r=[0,1],i=!1;function o(e){var r=function(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}(n(e));return isNaN(r)?t:i?Math.round(r):r}return o.invert=function(e){return n.invert(RS(e))},o.domain=function(e){return arguments.length?(n.domain(e),o):n.domain()},o.range=function(e){return arguments.length?(n.range((r=Array.from(e,GE)).map(RS)),o):r.slice()},o.rangeRound=function(e){return o.range(e).round(!0)},o.round=function(e){return arguments.length?(i=!!e,o):i},o.clamp=function(e){return arguments.length?(n.clamp(e),o):n.clamp()},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return e(n.domain(),r).round(i).clamp(n.clamp()).unknown(t)},hk.apply(o,arguments),gS(o)},scaleQuantile:function e(){var t,n=[],r=[],i=[];function o(){var e=0,t=Math.max(1,r.length);for(i=new Array(t-1);++e<t;)i[e-1]=dk(n,e/t);return a}function a(e){return null==e||isNaN(e=+e)?t:r[Kw(i,e)]}return a.invertExtent=function(e){var t=r.indexOf(e);return t<0?[NaN,NaN]:[t>0?i[t-1]:n[0],t<i.length?i[t]:n[n.length-1]]},a.domain=function(e){if(!arguments.length)return n.slice();n=[];for(let t of e)null==t||isNaN(t=+t)||n.push(t);return n.sort($w),o()},a.range=function(e){return arguments.length?(r=Array.from(e),o()):r.slice()},a.unknown=function(e){return arguments.length?(t=e,a):t},a.quantiles=function(){return i.slice()},a.copy=function(){return e().domain(n).range(r).unknown(t)},hk.apply(a,arguments)},scaleQuantize:function e(){var t,n=0,r=1,i=1,o=[.5],a=[0,1];function c(e){return null!=e&&e<=e?a[Kw(o,e,0,i)]:t}function s(){var e=-1;for(o=new Array(i);++e<i;)o[e]=((e+1)*r-(e-i)*n)/(i+1);return c}return c.domain=function(e){return arguments.length?([n,r]=e,n=+n,r=+r,s()):[n,r]},c.range=function(e){return arguments.length?(i=(a=Array.from(e)).length-1,s()):a.slice()},c.invertExtent=function(e){var t=a.indexOf(e);return t<0?[NaN,NaN]:t<1?[n,o[0]]:t>=i?[o[i-1],r]:[o[t-1],o[t]]},c.unknown=function(e){return arguments.length?(t=e,c):c},c.thresholds=function(){return o.slice()},c.copy=function(){return e().domain([n,r]).range(a).unknown(t)},hk.apply(gS(c),arguments)},scaleThreshold:function e(){var t,n=[.5],r=[0,1],i=1;function o(e){return null!=e&&e<=e?r[Kw(n,e,0,i)]:t}return o.domain=function(e){return arguments.length?(n=Array.from(e),i=Math.min(n.length,r.length-1),o):n.slice()},o.range=function(e){return arguments.length?(r=Array.from(e),i=Math.min(n.length,r.length-1),o):r.slice()},o.invertExtent=function(e){var t=r.indexOf(e);return[n[t-1],n[t]]},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return e().domain(n).range(r).unknown(t)},hk.apply(o,arguments)},scaleTime:function(){return hk.apply(eA(__,O_,x_,g_,r_,QS,KS,XS,YS,D_).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return hk.apply(eA(E_,S_,w_,b_,f_,e_,JS,ZS,YS,j_).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},scaleSequential:function e(){var t=gS(tA()(XE));return t.copy=function(){return nA(t,e())},mk.apply(t,arguments)},scaleSequentialLog:function e(){var t=AS(tA()).domain([1,10]);return t.copy=function(){return nA(t,e()).base(t.base())},mk.apply(t,arguments)},scaleSequentialPow:rA,scaleSequentialSqrt:function(){return rA.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function e(){var t=PS(tA());return t.copy=function(){return nA(t,e()).constant(t.constant())},mk.apply(t,arguments)},scaleSequentialQuantile:function e(){var t=[],n=XE;function r(e){if(null!=e&&!isNaN(e=+e))return n((Kw(t,e,1)-1)/(t.length-1))}return r.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let n of e)null==n||isNaN(n=+n)||t.push(n);return t.sort($w),r},r.interpolator=function(e){return arguments.length?(n=e,r):n},r.range=function(){return t.map(((e,r)=>n(r/(t.length-1))))},r.quantiles=function(e){return Array.from({length:e+1},((n,r)=>function(e,t,n){if(e=Float64Array.from(function*(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}(e,n)),(r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return uk(e);if(t>=1)return lk(e);var r,i=(r-1)*t,o=Math.floor(i),a=lk(fk(e,o).subarray(0,o+1));return a+(uk(e.subarray(o+1))-a)*(i-o)}}(t,r/e)))},r.copy=function(){return e(n).domain(t)},mk.apply(r,arguments)},scaleDiverging:function e(){var t=gS(iA()(XE));return t.copy=function(){return nA(t,e())},mk.apply(t,arguments)},scaleDivergingLog:function e(){var t=AS(iA()).domain([.1,1,10]);return t.copy=function(){return nA(t,e()).base(t.base())},mk.apply(t,arguments)},scaleDivergingPow:oA,scaleDivergingSqrt:function(){return oA.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function e(){var t=PS(iA());return t.copy=function(){return nA(t,e()).constant(t.constant())},mk.apply(t,arguments)},tickFormat:vS}),sA={},lA={},uA=1e9,fA=!0,pA="[DecimalError] ",dA=pA+"Invalid argument: ",hA=pA+"Exponent out of range: ",mA=Math.floor,yA=Math.pow,vA=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,gA=1e7,bA=7,xA=9007199254740991,wA=mA(xA/bA),kA={};function EA(e,t){var n,r,i,o,a,c,s,l,u=e.constructor,f=u.precision;if(!e.s||!t.s)return t.s||(t=new u(e)),fA?MA(t,f):t;if(s=e.d,l=t.d,a=e.e,i=t.e,s=s.slice(),o=a-i){for(o<0?(r=s,o=-o,c=l.length):(r=l,i=a,c=s.length),o>(c=(a=Math.ceil(f/bA))>c?a+1:c+1)&&(o=c,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for((c=s.length)-(o=l.length)<0&&(o=c,r=l,l=s,s=r),n=0;o;)n=(s[--o]=s[o]+l[o]+n)/gA|0,s[o]%=gA;for(n&&(s.unshift(n),++i),c=s.length;0==s[--c];)s.pop();return t.d=s,t.e=i,fA?MA(t,f):t}function SA(e,t,n){if(e!==~~e||e<t||e>n)throw Error(dA+e)}function _A(e){var t,n,r,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;t<i;t++)r=e[t]+"",(n=bA-r.length)&&(o+=PA(n)),o+=r;a=e[t],(n=bA-(r=a+"").length)&&(o+=PA(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return o+a}kA.absoluteValue=kA.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},kA.comparedTo=kA.cmp=function(e){var t,n,r,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(t=0,n=(r=o.d.length)<(i=e.d.length)?r:i;t<n;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return r===i?0:r>i^o.s<0?1:-1},kA.decimalPlaces=kA.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*bA;if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},kA.dividedBy=kA.div=function(e){return OA(this,new this.constructor(e))},kA.dividedToIntegerBy=kA.idiv=function(e){var t=this.constructor;return MA(OA(this,new t(e),0,1),t.precision)},kA.equals=kA.eq=function(e){return!this.cmp(e)},kA.exponent=function(){return CA(this)},kA.greaterThan=kA.gt=function(e){return this.cmp(e)>0},kA.greaterThanOrEqualTo=kA.gte=function(e){return this.cmp(e)>=0},kA.isInteger=kA.isint=function(){return this.e>this.d.length-2},kA.isNegative=kA.isneg=function(){return this.s<0},kA.isPositive=kA.ispos=function(){return this.s>0},kA.isZero=function(){return 0===this.s},kA.lessThan=kA.lt=function(e){return this.cmp(e)<0},kA.lessThanOrEqualTo=kA.lte=function(e){return this.cmp(e)<1},kA.logarithm=kA.log=function(e){var t,n=this,r=n.constructor,i=r.precision,o=i+5;if(void 0===e)e=new r(10);else if((e=new r(e)).s<1||e.eq(aA))throw Error(pA+"NaN");if(n.s<1)throw Error(pA+(n.s?"NaN":"-Infinity"));return n.eq(aA)?new r(0):(fA=!1,t=OA(DA(n,o),DA(e,o),o),fA=!0,MA(t,i))},kA.minus=kA.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?NA(t,e):EA(t,(e.s=-e.s,e))},kA.modulo=kA.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(!(e=new r(e)).s)throw Error(pA+"NaN");return n.s?(fA=!1,t=OA(n,e,0,1).times(e),fA=!0,n.minus(t)):MA(new r(n),i)},kA.naturalExponential=kA.exp=function(){return AA(this)},kA.naturalLogarithm=kA.ln=function(){return DA(this)},kA.negated=kA.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},kA.plus=kA.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?EA(t,e):NA(t,(e.s=-e.s,e))},kA.precision=kA.sd=function(e){var t,n,r,i=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(dA+e);if(t=CA(i)+1,n=(r=i.d.length-1)*bA+1,r=i.d[r]){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},kA.squareRoot=kA.sqrt=function(){var e,t,n,r,i,o,a,c=this,s=c.constructor;if(c.s<1){if(!c.s)return new s(0);throw Error(pA+"NaN")}for(e=CA(c),fA=!1,0==(i=Math.sqrt(+c))||i==1/0?(((t=_A(c.d)).length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=mA((e+1)/2)-(e<0||e%2),r=new s(t=i==1/0?"5e"+e:(t=i.toExponential()).slice(0,t.indexOf("e")+1)+e)):r=new s(i.toString()),i=a=(n=s.precision)+3;;)if(r=(o=r).plus(OA(c,o,a+2)).times(.5),_A(o.d).slice(0,a)===(t=_A(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&"4999"==t){if(MA(o,n+1,0),o.times(o).eq(c)){r=o;break}}else if("9999"!=t)break;a+=4}return fA=!0,MA(r,n)},kA.times=kA.mul=function(e){var t,n,r,i,o,a,c,s,l,u=this,f=u.constructor,p=u.d,d=(e=new f(e)).d;if(!u.s||!e.s)return new f(0);for(e.s*=u.s,n=u.e+e.e,(s=p.length)<(l=d.length)&&(o=p,p=d,d=o,a=s,s=l,l=a),o=[],r=a=s+l;r--;)o.push(0);for(r=l;--r>=0;){for(t=0,i=s+r;i>r;)c=o[i]+d[r]*p[i-r-1]+t,o[i--]=c%gA|0,t=c/gA|0;o[i]=(o[i]+t)%gA|0}for(;!o[--a];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,fA?MA(e,f.precision):e},kA.toDecimalPlaces=kA.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(SA(e,0,uA),void 0===t?t=r.rounding:SA(t,0,8),MA(n,e+CA(n)+1,t))},kA.toExponential=function(e,t){var n,r=this,i=r.constructor;return void 0===e?n=IA(r,!0):(SA(e,0,uA),void 0===t?t=i.rounding:SA(t,0,8),n=IA(r=MA(new i(r),e+1,t),!0,e+1)),n},kA.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return void 0===e?IA(i):(SA(e,0,uA),void 0===t?t=o.rounding:SA(t,0,8),n=IA((r=MA(new o(i),e+CA(i)+1,t)).abs(),!1,e+CA(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)},kA.toInteger=kA.toint=function(){var e=this,t=e.constructor;return MA(new t(e),CA(e)+1,t.rounding)},kA.toNumber=function(){return+this},kA.toPower=kA.pow=function(e){var t,n,r,i,o,a,c=this,s=c.constructor,l=+(e=new s(e));if(!e.s)return new s(aA);if(!(c=new s(c)).s){if(e.s<1)throw Error(pA+"Infinity");return c}if(c.eq(aA))return c;if(r=s.precision,e.eq(aA))return MA(c,r);if(a=(t=e.e)>=(n=e.d.length-1),o=c.s,a){if((n=l<0?-l:l)<=xA){for(i=new s(aA),t=Math.ceil(r/bA+4),fA=!1;n%2&&RA((i=i.times(c)).d,t),0!==(n=mA(n/2));)RA((c=c.times(c)).d,t);return fA=!0,e.s<0?new s(aA).div(i):MA(i,r)}}else if(o<0)throw Error(pA+"NaN");return o=o<0&&1&e.d[Math.max(t,n)]?-1:1,c.s=1,fA=!1,i=e.times(DA(c,r+12)),fA=!0,(i=AA(i)).s=o,i},kA.toPrecision=function(e,t){var n,r,i=this,o=i.constructor;return void 0===e?r=IA(i,(n=CA(i))<=o.toExpNeg||n>=o.toExpPos):(SA(e,1,uA),void 0===t?t=o.rounding:SA(t,0,8),r=IA(i=MA(new o(i),e,t),e<=(n=CA(i))||n<=o.toExpNeg,e)),r},kA.toSignificantDigits=kA.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(SA(e,1,uA),void 0===t?t=n.rounding:SA(t,0,8)),MA(new n(this),e,t)},kA.toString=kA.valueOf=kA.val=kA.toJSON=kA[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=CA(e),n=e.constructor;return IA(e,t<=n.toExpNeg||t>=n.toExpPos)};var OA=function(){function e(e,t){var n,r=0,i=e.length;for(e=e.slice();i--;)n=e[i]*t+r,e[i]=n%gA|0,r=n/gA|0;return r&&e.unshift(r),e}function t(e,t,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;i<n;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]<t[n]?1:0,e[n]=r*gA+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,i,o,a){var c,s,l,u,f,p,d,h,m,y,v,g,b,x,w,k,E,S,_=r.constructor,O=r.s==i.s?1:-1,A=r.d,C=i.d;if(!r.s)return new _(r);if(!i.s)throw Error(pA+"Division by zero");for(s=r.e-i.e,E=C.length,w=A.length,h=(d=new _(O)).d=[],l=0;C[l]==(A[l]||0);)++l;if(C[l]>(A[l]||0)&&--s,(g=null==o?o=_.precision:a?o+(CA(r)-CA(i))+1:o)<0)return new _(0);if(g=g/bA+2|0,l=0,1==E)for(u=0,C=C[0],g++;(l<w||u)&&g--;l++)b=u*gA+(A[l]||0),h[l]=b/C|0,u=b%C|0;else{for((u=gA/(C[0]+1)|0)>1&&(C=e(C,u),A=e(A,u),E=C.length,w=A.length),x=E,y=(m=A.slice(0,E)).length;y<E;)m[y++]=0;(S=C.slice()).unshift(0),k=C[0],C[1]>=gA/2&&++k;do{u=0,(c=t(C,m,E,y))<0?(v=m[0],E!=y&&(v=v*gA+(m[1]||0)),(u=v/k|0)>1?(u>=gA&&(u=gA-1),1==(c=t(f=e(C,u),m,p=f.length,y=m.length))&&(u--,n(f,E<p?S:C,p))):(0==u&&(c=u=1),f=C.slice()),(p=f.length)<y&&f.unshift(0),n(m,f,y),-1==c&&(c=t(C,m,E,y=m.length))<1&&(u++,n(m,E<y?S:C,y)),y=m.length):0===c&&(u++,m=[0]),h[l++]=u,c&&m[0]?m[y++]=A[x]||0:(m=[A[x]],y=1)}while((x++<w||void 0!==m[0])&&g--)}return h[0]||h.shift(),d.e=s,MA(d,a?o+CA(d)+1:o)}}();function AA(e,t){var n,r,i,o,a,c=0,s=0,l=e.constructor,u=l.precision;if(CA(e)>16)throw Error(hA+CA(e));if(!e.s)return new l(aA);for(null==t?(fA=!1,a=u):a=t,o=new l(.03125);e.abs().gte(.1);)e=e.times(o),s+=5;for(a+=Math.log(yA(2,s))/Math.LN10*2+5|0,n=r=i=new l(aA),l.precision=a;;){if(r=MA(r.times(e),a),n=n.times(++c),_A((o=i.plus(OA(r,n,a))).d).slice(0,a)===_A(i.d).slice(0,a)){for(;s--;)i=MA(i.times(i),a);return l.precision=u,null==t?(fA=!0,MA(i,u)):i}i=o}}function CA(e){for(var t=e.e*bA,n=e.d[0];n>=10;n/=10)t++;return t}function TA(e,t,n){if(t>e.LN10.sd())throw fA=!0,n&&(e.precision=n),Error(pA+"LN10 precision limit exceeded");return MA(new e(e.LN10),t)}function PA(e){for(var t="";e--;)t+="0";return t}function DA(e,t){var n,r,i,o,a,c,s,l,u,f=1,p=e,d=p.d,h=p.constructor,m=h.precision;if(p.s<1)throw Error(pA+(p.s?"NaN":"-Infinity"));if(p.eq(aA))return new h(0);if(null==t?(fA=!1,l=m):l=t,p.eq(10))return null==t&&(fA=!0),TA(h,l);if(l+=10,h.precision=l,r=(n=_A(d)).charAt(0),o=CA(p),!(Math.abs(o)<15e14))return s=TA(h,l+2,m).times(o+""),p=DA(new h(r+"."+n.slice(1)),l-10).plus(s),h.precision=m,null==t?(fA=!0,MA(p,m)):p;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=_A((p=p.times(e)).d)).charAt(0),f++;for(o=CA(p),r>1?(p=new h("0."+n),o++):p=new h(r+"."+n.slice(1)),c=a=p=OA(p.minus(aA),p.plus(aA),l),u=MA(p.times(p),l),i=3;;){if(a=MA(a.times(u),l),_A((s=c.plus(OA(a,new h(i),l))).d).slice(0,l)===_A(c.d).slice(0,l))return c=c.times(2),0!==o&&(c=c.plus(TA(h,l+2,m).times(o+""))),c=OA(c,new h(f),l),h.precision=m,null==t?(fA=!0,MA(c,m)):c;c=s,i+=2}}function jA(e,t){var n,r,i;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(i=t.length;48===t.charCodeAt(i-1);)--i;if(t=t.slice(r,i)){if(i-=r,n=n-r-1,e.e=mA(n/bA),e.d=[],r=(n+1)%bA,n<0&&(r+=bA),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=bA;r<i;)e.d.push(+t.slice(r,r+=bA));t=t.slice(r),r=bA-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),fA&&(e.e>wA||e.e<-wA))throw Error(hA+n)}else e.s=0,e.e=0,e.d=[0];return e}function MA(e,t,n){var r,i,o,a,c,s,l,u,f=e.d;for(a=1,o=f[0];o>=10;o/=10)a++;if((r=t-a)<0)r+=bA,i=t,l=f[u=0];else{if((u=Math.ceil((r+1)/bA))>=(o=f.length))return e;for(l=o=f[u],a=1;o>=10;o/=10)a++;i=(r%=bA)-bA+a}if(void 0!==n&&(c=l/(o=yA(10,a-i-1))%10|0,s=t<0||void 0!==f[u+1]||l%o,s=n<4?(c||s)&&(0==n||n==(e.s<0?3:2)):c>5||5==c&&(4==n||s||6==n&&(r>0?i>0?l/yA(10,a-i):0:f[u-1])%10&1||n==(e.s<0?8:7))),t<1||!f[0])return s?(o=CA(e),f.length=1,t=t-o-1,f[0]=yA(10,(bA-t%bA)%bA),e.e=mA(-t/bA)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(0==r?(f.length=u,o=1,u--):(f.length=u+1,o=yA(10,bA-r),f[u]=i>0?(l/yA(10,a-i)%yA(10,i)|0)*o:0),s)for(;;){if(0==u){(f[0]+=o)==gA&&(f[0]=1,++e.e);break}if(f[u]+=o,f[u]!=gA)break;f[u--]=0,o=1}for(r=f.length;0===f[--r];)f.pop();if(fA&&(e.e>wA||e.e<-wA))throw Error(hA+CA(e));return e}function NA(e,t){var n,r,i,o,a,c,s,l,u,f,p=e.constructor,d=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),fA?MA(t,d):t;if(s=e.d,f=t.d,r=t.e,l=e.e,s=s.slice(),a=l-r){for((u=a<0)?(n=s,a=-a,c=f.length):(n=f,r=l,c=s.length),a>(i=Math.max(Math.ceil(d/bA),c)+2)&&(a=i,n.length=1),n.reverse(),i=a;i--;)n.push(0);n.reverse()}else{for((u=(i=s.length)<(c=f.length))&&(c=i),i=0;i<c;i++)if(s[i]!=f[i]){u=s[i]<f[i];break}a=0}for(u&&(n=s,s=f,f=n,t.s=-t.s),c=s.length,i=f.length-c;i>0;--i)s[c++]=0;for(i=f.length;i>a;){if(s[--i]<f[i]){for(o=i;o&&0===s[--o];)s[o]=gA-1;--s[o],s[i]+=gA}s[i]-=f[i]}for(;0===s[--c];)s.pop();for(;0===s[0];s.shift())--r;return s[0]?(t.d=s,t.e=r,fA?MA(t,d):t):new p(0)}function IA(e,t,n){var r,i=CA(e),o=_A(e.d),a=o.length;return t?(n&&(r=n-a)>0?o=o.charAt(0)+"."+o.slice(1)+PA(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+PA(-i-1)+o,n&&(r=n-a)>0&&(o+=PA(r))):i>=a?(o+=PA(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+PA(r))):((r=i+1)<a&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-a)>0&&(i+1===a&&(o+="."),o+=PA(r))),e.s<0?"-"+o:o}function RA(e,t){if(e.length>t)return e.length=t,!0}function LA(e){if(!e||"object"!=typeof e)throw Error(pA+"Object expected");var t,n,r,i=["precision",1,uA,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if(void 0!==(r=e[n=i[t]])){if(!(mA(r)===r&&r>=i[t+1]&&r<=i[t+2]))throw Error(dA+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(dA+n+": "+r);this[n]=new this(r)}return this}var FA=function e(t){var n,r,i;function o(e){var t=this;if(!(t instanceof o))return new o(e);if(t.constructor=o,e instanceof o)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(dA+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])):jA(t,e.toString())}if("string"!=typeof e)throw Error(dA+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!vA.test(e))throw Error(dA+e);jA(t,e)}if(o.prototype=kA,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=e,o.config=o.set=LA,void 0===t&&(t={}),t)for(i=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n<i.length;)t.hasOwnProperty(r=i[n++])||(t[r]=this[r]);return o.config(t),o}({precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"});aA=new FA(1);var zA=FA,BA=O(Object.freeze({__proto__:null,get Decimal(){return FA},default:zA})),qA={};function HA(e){return function(e){if(Array.isArray(e))return VA(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 VA(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 VA(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 VA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(qA,"__esModule",{value:!0}),qA.memoize=qA.reverse=qA.compose=qA.map=qA.range=qA.curry=qA.PLACE_HOLDER=void 0;var UA=function(e){return e},WA={"@@functional/placeholder":!0};qA.PLACE_HOLDER=WA;var $A=function(e){return e===WA},GA=function(e){return function t(){return 0===arguments.length||1===arguments.length&&$A(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},YA=function e(t,n){return 1===t?n:GA((function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=i.filter((function(e){return e!==WA})).length;return a>=t?n.apply(void 0,i):e(t-a,GA((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o=i.map((function(e){return $A(e)?t.shift():e}));return n.apply(void 0,HA(o).concat(t))})))}))},XA=function(e){return YA(e.length,e)};qA.curry=XA;qA.range=function(e,t){for(var n=[],r=e;r<t;++r)n[r-e]=r;return n};var ZA=XA((function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map((function(e){return t[e]})).map(e)}));qA.map=ZA;qA.compose=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return UA;var r=t.reverse(),i=r[0],o=r.slice(1);return function(){return o.reduce((function(e,t){return t(e)}),i.apply(void 0,arguments))}};qA.reverse=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")};qA.memoize=function(e){var t=null,n=null;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t&&i.every((function(e,n){return e===t[n]}))?n:(t=i,n=e.apply(void 0,i))}};var KA={};Object.defineProperty(KA,"__esModule",{value:!0}),KA.default=void 0;var JA=function(e){return e&&e.__esModule?e:{default:e}}(BA),QA=qA;var eC=(0,QA.curry)((function(e,t,n){var r=+e;return r+n*(+t-r)})),tC=(0,QA.curry)((function(e,t,n){var r=t-+e;return(n-e)/(r=r||1/0)})),nC=(0,QA.curry)((function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))})),rC={rangeStep:function(e,t,n){for(var r=new JA.default(e),i=0,o=[];r.lt(t)&&i<1e5;)o.push(r.toNumber()),r=r.add(n),i++;return o},getDigitCount:function(e){return 0===e?1:Math.floor(new JA.default(e).abs().log(10).toNumber())+1},interpolateNumber:eC,uninterpolateNumber:tC,uninterpolateTruncation:nC};KA.default=rC,Object.defineProperty(lA,"__esModule",{value:!0}),lA.getTickValuesFixedDomain=lA.getTickValues=lA.getNiceTickValues=void 0;var iC=cC(BA),oC=qA,aC=cC(KA);function cC(e){return e&&e.__esModule?e:{default:e}}function sC(e){return function(e){if(Array.isArray(e))return fC(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||uC(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 lC(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,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||uC(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 uC(e,t){if(e){if("string"==typeof e)return fC(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)?fC(e,t):void 0}}function fC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pC(e){var t=lC(e,2),n=t[0],r=t[1],i=n,o=r;return n>r&&(i=r,o=n),[i,o]}function dC(e,t,n){if(e.lte(0))return new iC.default(0);var r=aC.default.getDigitCount(e.toNumber()),i=new iC.default(10).pow(r),o=e.div(i),a=1!==r?.05:.1,c=new iC.default(Math.ceil(o.div(a).toNumber())).add(n).mul(a).mul(i);return t?c:new iC.default(Math.ceil(c))}function hC(e,t,n){var r=1,i=new iC.default(e);if(!i.isint()&&n){var o=Math.abs(e);o<1?(r=new iC.default(10).pow(aC.default.getDigitCount(e)-1),i=new iC.default(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new iC.default(Math.floor(e)))}else 0===e?i=new iC.default(Math.floor((t-1)/2)):n||(i=new iC.default(Math.floor(e)));var a=Math.floor((t-1)/2),c=(0,oC.compose)((0,oC.map)((function(e){return i.add(new iC.default(e-a).mul(r)).toNumber()})),oC.range);return c(0,t)}function mC(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new iC.default(0),tickMin:new iC.default(0),tickMax:new iC.default(0)};var o,a=dC(new iC.default(t).sub(e).div(n-1),r,i);o=e<=0&&t>=0?new iC.default(0):(o=new iC.default(e).add(t).div(2)).sub(new iC.default(o).mod(a));var c=Math.ceil(o.sub(e).div(a).toNumber()),s=Math.ceil(new iC.default(t).sub(o).div(a).toNumber()),l=c+s+1;return l>n?mC(e,t,n,r,i+1):(l<n&&(s=t>0?s+(n-l):s,c=t>0?c:c+(n-l)),{step:a,tickMin:o.sub(new iC.default(c).mul(a)),tickMax:o.add(new iC.default(s).mul(a))})}var yC=(0,oC.memoize)((function(e){var t=lC(e,2),n=t[0],r=t[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(i,2),c=lC(pC([n,r]),2),s=c[0],l=c[1];if(s===-1/0||l===1/0){var u=l===1/0?[s].concat(sC((0,oC.range)(0,i-1).map((function(){return 1/0})))):[].concat(sC((0,oC.range)(0,i-1).map((function(){return-1/0}))),[l]);return n>r?(0,oC.reverse)(u):u}if(s===l)return hC(s,i,o);var f=mC(s,l,a,o),p=f.step,d=f.tickMin,h=f.tickMax,m=aC.default.rangeStep(d,h.add(new iC.default(.1).mul(p)),p);return n>r?(0,oC.reverse)(m):m}));lA.getNiceTickValues=yC;var vC=(0,oC.memoize)((function(e){var t=lC(e,2),n=t[0],r=t[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(i,2),c=lC(pC([n,r]),2),s=c[0],l=c[1];if(s===-1/0||l===1/0)return[n,r];if(s===l)return hC(s,i,o);var u=dC(new iC.default(l).sub(s).div(a-1),o,0),f=(0,oC.compose)((0,oC.map)((function(e){return new iC.default(s).add(new iC.default(e).mul(u)).toNumber()})),oC.range),p=f(0,a).filter((function(e){return e>=s&&e<=l}));return n>r?(0,oC.reverse)(p):p}));lA.getTickValues=vC;var gC=(0,oC.memoize)((function(e,t){var n=lC(e,2),r=n[0],i=n[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=lC(pC([r,i]),2),c=a[0],s=a[1];if(c===-1/0||s===1/0)return[r,i];if(c===s)return[c];var l=Math.max(t,2),u=dC(new iC.default(s).sub(c).div(l-1),o,0),f=[].concat(sC(aC.default.rangeStep(new iC.default(c),new iC.default(s).sub(new iC.default(.99).mul(u)),u)),[s]);return r>i?(0,oC.reverse)(f):f}));lA.getTickValuesFixedDomain=gC,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getTickValues",{enumerable:!0,get:function(){return t.getTickValues}}),Object.defineProperty(e,"getNiceTickValues",{enumerable:!0,get:function(){return t.getNiceTickValues}}),Object.defineProperty(e,"getTickValuesFixedDomain",{enumerable:!0,get:function(){return t.getTickValuesFixedDomain}});var t=lA}(sA);var bC=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function xC(){return xC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xC.apply(this,arguments)}function wC(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,c=[],s=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return kC(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 kC(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 kC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function EC(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function SC(t){var n=t.offset,r=t.layout,i=t.width,o=t.dataKey,a=t.data,c=t.dataPointFormatter,s=t.xAxis,l=t.yAxis,u=EC(t,bC),f=hc(u),p=a.map((function(t,a){var u=c(t,o),p=u.x,d=u.y,h=u.value,m=u.errorVal;if(!m)return null;var y,v,g=[];if(Array.isArray(m)){var b=wC(m,2);y=b[0],v=b[1]}else y=v=m;if("vertical"===r){var x=s.scale,w=d+n,k=w+i,E=w-i,S=x(h-y),_=x(h+v);g.push({x1:_,y1:k,x2:_,y2:E}),g.push({x1:S,y1:w,x2:_,y2:w}),g.push({x1:S,y1:k,x2:S,y2:E})}else if("horizontal"===r){var O=l.scale,A=p+n,C=A-i,T=A+i,P=O(h-y),D=O(h+v);g.push({x1:C,y1:D,x2:T,y2:D}),g.push({x1:A,y1:P,x2:A,y2:D}),g.push({x1:C,y1:P,x2:T,y2:P})}return e.createElement(_c,xC({className:"recharts-errorBar",key:"bar-".concat(a)},f),g.map((function(t,n){return e.createElement("line",xC({},t,{key:"line-".concat(n)}))})))}));return e.createElement(_c,{className:"recharts-errorBars"},p)}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},_C(e)}function OC(e){return function(e){if(Array.isArray(e))return AC(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return AC(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 AC(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 AC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function CC(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 TC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?CC(Object(n),!0).forEach((function(t){PC(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function PC(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==_C(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==_C(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===_C(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DC(e,t,n){return Sa(e)||Sa(t)?n:za(t)?ka(e,t,n):hi(t)?t(e):n}function jC(e,t,n,r){var i=Ww(e,(function(e){return DC(e,t)}));if("number"===n){var o=i.filter((function(e){return Fa(e)||parseFloat(e)}));return o.length?[Fw(o),jw(o)]:[1/0,-1/0]}return(r?i.filter((function(e){return!Sa(e)})):i).map((function(e){return za(e)||e instanceof Date?e:""}))}SC.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},SC.displayName="ErrorBar";var MC=function(e){var t,n=e.type.displayName,r=e.props,i=r.stroke,o=r.fill;switch(n){case"Line":t=i;break;case"Area":case"Radar":t=i&&"none"!==i?i:o;break;default:t=o}return t},NC=function(e){var t,n=e.children,r=e.formattedGraphicalItems,i=e.legendWidth,o=e.legendContent,a=lc(n,Ud);return a?(t=a.props&&a.props.payload?a.props&&a.props.payload:"children"===o?(r||[]).reduce((function(e,t){var n=t.item,r=t.props,i=r.sectors||r.data||[];return e.concat(i.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,i=n.name,o=n.legendType;return{inactive:n.hide,dataKey:r,type:a.props.iconType||o||"square",color:MC(t),value:i||r,payload:t.props}})),TC(TC(TC({},a.props),Ud.getWithHeight(a,i)),{},{payload:t,item:a})):null},IC=function(e,t,n,r,i){var o=sc(t.props.children,SC).filter((function(e){return function(e,t,n){return!!Sa(t)||("horizontal"===e?"yAxis"===t:"vertical"===e||"x"===n?"xAxis"===t:"y"!==n||"yAxis"===t)}(r,i,e.props.direction)}));if(o&&o.length){var a=o.map((function(e){return e.props.dataKey}));return e.reduce((function(e,t){var r=DC(t,n,0),i=yi(r)?[Fw(r),jw(r)]:[r,r],o=a.reduce((function(e,n){var r=DC(t,n,0),o=i[0]-Math.abs(yi(r)?r[0]:r),a=i[1]+Math.abs(yi(r)?r[1]:r);return[Math.min(o,e[0]),Math.max(a,e[1])]}),[1/0,-1/0]);return[Math.min(o[0],e[0]),Math.max(o[1],e[1])]}),[1/0,-1/0])}return null},RC=function(e,t,n,r,i){var o=t.map((function(t){var o=t.props.dataKey;return"number"===n&&o&&IC(e,t,o,r)||jC(e,o,n,i)}));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 a={};return o.reduce((function(e,t){for(var n=0,r=t.length;n<r;n++)a[t[n]]||(a[t[n]]=!0,e.push(t[n]));return e}),[])},LC=function(e,t){return"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t},FC=function(e,t,n){var r,i,o=e.map((function(e){return e.coordinate===t&&(r=!0),e.coordinate===n&&(i=!0),e.coordinate}));return r||o.push(t),i||o.push(n),o},zC=function(e,t,n){if(!e)return null;var r=e.scale,i=e.duplicateDomain,o=e.type,a=e.range,c="scaleBand"===e.realScaleType?r.bandwidth()/2:2,s=(t||n)&&"category"===o&&r.bandwidth?r.bandwidth()/c:0;return s="angleAxis"===e.axisType&&(null==a?void 0:a.length)>=2?2*Ra(a[0]-a[1])*s:s,t&&(e.ticks||e.niceTicks)?(e.ticks||e.niceTicks).map((function(e){var t=i?i.indexOf(e):e;return{coordinate:r(t)+s,value:e,offset:s}})).filter((function(e){return!Ia(e.coordinate)})):e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map((function(e,t){return{coordinate:r(e)+s,value:e,index:t,offset:s}})):r.ticks&&!n?r.ticks(e.tickCount).map((function(e){return{coordinate:r(e)+s,value:e,offset:s}})):r.domain().map((function(e,t){return{coordinate:r(e)+s,value:i?i[e]:e,index:t,offset:s}}))},BC=function(e,t,n){var r;return hi(n)?r=n:hi(t)&&(r=t),hi(e)||r?function(t,n,i,o){hi(e)&&e(t,n,i,o),hi(r)&&r(t,n,i,o)}:null},qC=function(e,t,n){var r=e.scale,i=e.type,o=e.layout,a=e.axisType;if("auto"===r)return"radial"===o&&"radiusAxis"===a?{scale:gk(),realScaleType:"band"}:"radial"===o&&"angleAxis"===a?{scale:bS(),realScaleType:"linear"}:"category"===i&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!n)?{scale:xk(),realScaleType:"point"}:"category"===i?{scale:gk(),realScaleType:"band"}:{scale:bS(),realScaleType:"linear"};if(wi(r)){var c="scale".concat(Xf(r));return{scale:(cA[c]||xk)(),realScaleType:cA[c]?c:"point"}}return hi(r)?{scale:r}:{scale:xk(),realScaleType:"point"}},HC=1e-4,VC=function(e){var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,r=e.range(),i=Math.min(r[0],r[1])-HC,o=Math.max(r[0],r[1])+HC,a=e(t[0]),c=e(t[n-1]);(a<i||a>o||c<i||c>o)&&e.domain([t[0],t[n-1]])}},UC=function(e,t){if(!e)return null;for(var n=0,r=e.length;n<r;n++)if(e[n].item===t)return e[n].position;return null},WC=function(e,t){if(!t||2!==t.length||!Fa(t[0])||!Fa(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!Fa(e[0])||e[0]<n)&&(i[0]=n),(!Fa(e[1])||e[1]>r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]<n&&(i[1]=n),i},$C={sign:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var i=0,o=0,a=0;a<t;++a){var c=Ia(e[a][n][1])?e[a][n][0]:e[a][n][1];c>=0?(e[a][n][0]=i,e[a][n][1]=i+c,i=e[a][n][1]):(e[a][n][0]=o,e[a][n][1]=o+c,o=e[a][n][1])}},expand:function(e,t){if((r=e.length)>0){for(var n,r,i,o=0,a=e[0].length;o<a;++o){for(i=n=0;n<r;++n)i+=e[n][o][1]||0;if(i)for(n=0;n<r;++n)e[n][o][1]/=i}id(e,t)}},none:id,silhouette:function(e,t){if((n=e.length)>0){for(var n,r=0,i=e[t[0]],o=i.length;r<o;++r){for(var a=0,c=0;a<n;++a)c+=e[a][r][1]||0;i[r][1]+=i[r][0]=-c/2}id(e,t)}},wiggle:function(e,t){if((i=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,i,o=0,a=1;a<r;++a){for(var c=0,s=0,l=0;c<i;++c){for(var u=e[t[c]],f=u[a][1]||0,p=(f-(u[a-1][1]||0))/2,d=0;d<c;++d){var h=e[t[d]];p+=(h[a][1]||0)-(h[a-1][1]||0)}s+=f,l+=p*f}n[a-1][1]+=n[a-1][0]=o,s&&(o-=l/s)}n[a-1][1]+=n[a-1][0]=o,id(e,t)}},positive:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var i=0,o=0;o<t;++o){var a=Ia(e[o][n][1])?e[o][n][0]:e[o][n][1];a>=0?(e[o][n][0]=i,e[o][n][1]=i+a,i=e[o][n][1]):(e[o][n][0]=0,e[o][n][1]=0)}}},GC=function(e,t,n){var r=t.map((function(e){return e.props.dataKey})),i=function(){var e=Zf([]),t=od,n=id,r=ad;function i(i){var o,a,c=Array.from(e.apply(this,arguments),cd),s=c.length,l=-1;for(const e of i)for(o=0,++l;o<s;++o)(c[o][l]=[0,+r(e,c[o].key,l,i)]).data=e;for(o=0,a=lp(t(c));o<s;++o)c[a[o]].index=o;return n(c,a),c}return i.keys=function(t){return arguments.length?(e="function"==typeof t?t:Zf(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r="function"==typeof e?e:Zf(+e),i):r},i.order=function(e){return arguments.length?(t=null==e?od:"function"==typeof e?e:Zf(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=null==e?id:e,i):n},i}().keys(r).value((function(e,t){return+DC(e,t,0)})).order(od).offset($C[n]);return i(e)},YC=function(e,t){var n=t.realScaleType,r=t.type,i=t.tickCount,o=t.originalDomain,a=t.allowDecimals,c=n||t.scale;if("auto"!==c&&"linear"!==c)return null;if(i&&"number"===r&&o&&("auto"===o[0]||"auto"===o[1])){var s=e.domain();if(!s.length)return null;var l=sA.getNiceTickValues(s,i,a);return e.domain([Fw(l),jw(l)]),{niceTicks:l}}if(i&&"number"===r){var u=e.domain();return{niceTicks:sA.getTickValuesFixedDomain(u,i,a)}}return null},XC=function(e){var t=e.axis,n=e.ticks,r=e.bandSize,i=e.entry,o=e.index,a=e.dataKey;if("category"===t.type){if(!t.allowDuplicatedCategory&&t.dataKey&&!Sa(i[t.dataKey])){var c=Wa(n,"value",i[t.dataKey]);if(c)return c.coordinate+r/2}return n[o]?n[o].coordinate+r/2:null}var s=DC(i,Sa(a)?t.dataKey:a);return Sa(s)?null:t.scale(s)},ZC=function(e){var t=e.axis,n=e.ticks,r=e.offset,i=e.bandSize,o=e.entry,a=e.index;if("category"===t.type)return n[a]?n[a].coordinate+r:null;var c=DC(o,t.dataKey,t.domain[a]);return Sa(c)?null:t.scale(c)-i/2+r},KC=function(e){var t=e.numericAxis,n=t.scale.domain();if("number"===t.type){var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return r<=0&&i>=0?0:i<0?i:r}return n[0]},JC=function(e,t,n){return Object.keys(e).reduce((function(r,i){var o=e[i].stackedData.reduce((function(e,r){var i=r.slice(t,n+1).reduce((function(e,t){return[Fw(t.concat([e[0]]).filter(Fa)),jw(t.concat([e[1]]).filter(Fa))]}),[1/0,-1/0]);return[Math.min(e[0],i[0]),Math.max(e[1],i[1])]}),[1/0,-1/0]);return[Math.min(o[0],r[0]),Math.max(o[1],r[1])]}),[1/0,-1/0]).map((function(e){return e===1/0||e===-1/0?0:e}))},QC=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,eT=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,tT=function(e,t,n){if(hi(e))return e(t,n);if(!yi(e))return t;var r=[];if(Fa(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(QC.test(e[0])){var i=+QC.exec(e[0])[1];r[0]=t[0]-i}else hi(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if(Fa(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(eT.test(e[1])){var o=+eT.exec(e[1])[1];r[1]=t[1]+o}else hi(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},nT=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 i=Qg(t,(function(e){return e.coordinate})),o=1/0,a=1,c=i.length;a<c;a++){var s=i[a],l=i[a-1];o=Math.min((s.coordinate||0)-(l.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},rT=function(e,t,n){return e&&e.length?Sw(e,ka(n,"type.defaultProps.domain"))?t:e:t},iT=function(e,t){var n=e.props,r=n.dataKey,i=n.name,o=n.unit,a=n.formatter,c=n.tooltipType,s=n.chartType;return TC(TC({},hc(e)),{},{dataKey:r,unit:o,formatter:a,name:i||r,color:MC(e),value:DC(t,r),type:c,payload:t,chartType:s})};function oT(e){return oT="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},oT(e)}function aT(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;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aT(Object(n),!0).forEach((function(t){sT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sT(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==oT(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==oT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===oT(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lT(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,c=[],s=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return uT(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 uT(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 uT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var fT=Math.PI/180,pT=function(e){return 180*e/Math.PI},dT=function(e,t,n,r){return{x:e+Math.cos(-fT*r)*n,y:t+Math.sin(-fT*r)*n}},hT=function(e,t){var n=arguments.length>2&&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},mT=function(e,t,n,r,i){var o=e.width,a=e.height,c=e.startAngle,s=e.endAngle,l=Ha(e.cx,o,o/2),u=Ha(e.cy,a,a/2),f=hT(o,a,n),p=Ha(e.innerRadius,f,0),d=Ha(e.outerRadius,f,.8*f);return Object.keys(t).reduce((function(e,n){var o,a=t[n],f=a.domain,h=a.reversed;if(Sa(a.range))"angleAxis"===r?o=[c,s]:"radiusAxis"===r&&(o=[p,d]),h&&(o=[o[1],o[0]]);else{var m=lT(o=a.range,2);c=m[0],s=m[1]}var y=qC(a,i),v=y.realScaleType,g=y.scale;g.domain(f).range(o),VC(g);var b=YC(g,cT(cT({},a),{},{realScaleType:v})),x=cT(cT(cT({},a),b),{},{range:o,radius:d,realScaleType:v,scale:g,cx:l,cy:u,innerRadius:p,outerRadius:d,startAngle:c,endAngle:s});return cT(cT({},e),{},sT({},n,x))}),{})},yT=function(e,t){var n=e.x,r=e.y,i=t.cx,o=t.cy,a=function(e,t){var n=e.x,r=e.y,i=t.x,o=t.y;return Math.sqrt(Math.pow(n-i,2)+Math.pow(r-o,2))}({x:n,y:r},{x:i,y:o});if(a<=0)return{radius:a};var c=(n-i)/a,s=Math.acos(c);return r>o&&(s=2*Math.PI-s),{radius:a,angle:pT(s),angleInRadian:s}},vT=function(e,t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),o=Math.floor(r/360);return e+360*Math.min(i,o)},gT=function(e,t){var n=e.x,r=e.y,i=yT({x:n,y:r},t),o=i.radius,a=i.angle,c=t.innerRadius,s=t.outerRadius;if(o<c||o>s)return!1;if(0===o)return!0;var l,u=function(e){var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),i=Math.floor(n/360),o=Math.min(r,i);return{startAngle:t-360*o,endAngle:n-360*o}}(t),f=u.startAngle,p=u.endAngle,d=a;if(f<=p){for(;d>p;)d-=360;for(;d<f;)d+=360;l=d>=f&&d<=p}else{for(;d>f;)d-=360;for(;d<p;)d+=360;l=d>=p&&d<=f}return l?cT(cT({},t),{},{radius:o,angle:vT(d,t)}):null};function bT(e){return bT="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},bT(e)}function xT(e){return function(e){if(Array.isArray(e))return wT(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return wT(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 wT(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 wT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function kT(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 ET(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kT(Object(n),!0).forEach((function(t){ST(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ST(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==bT(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==bT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===bT(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _T(){return _T=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_T.apply(this,arguments)}var OT=function(e){var t=e.value,n=e.formatter,r=Sa(e.children)?t:e.children;return hi(n)?n(r):r},AT=function(t,n,r){var i,o,a=t.position,c=t.viewBox,s=t.offset,l=t.className,u=c,f=u.cx,p=u.cy,d=u.innerRadius,h=u.outerRadius,m=u.startAngle,y=u.endAngle,v=u.clockWise,g=(d+h)/2,b=function(e,t){return Ra(t-e)*Math.min(Math.abs(t-e),360)}(m,y),x=b>=0?1:-1;"insideStart"===a?(i=m+x*s,o=v):"insideEnd"===a?(i=y-x*s,o=!v):"end"===a&&(i=y+x*s,o=v),o=b<=0?o:!o;var w=dT(f,p,g,i),k=dT(f,p,g,i+359*(o?1:-1)),E="M".concat(w.x,",").concat(w.y,"\n A").concat(g,",").concat(g,",0,1,").concat(o?0:1,",\n ").concat(k.x,",").concat(k.y),S=Sa(t.id)?qa("recharts-radial-line-"):t.id;return e.createElement("text",_T({},r,{dominantBaseline:"central",className:$r("recharts-radial-bar-label",l)}),e.createElement("defs",null,e.createElement("path",{id:S,d:E})),e.createElement("textPath",{xlinkHref:"#".concat(S)},n))},CT=function(e){var t=e.viewBox,n=e.offset,r=e.position,i=t,o=i.cx,a=i.cy,c=i.innerRadius,s=i.outerRadius,l=(i.startAngle+i.endAngle)/2;if("outside"===r){var u=dT(o,a,s+n,l),f=u.x;return{x:f,y:u.y,textAnchor:f>=o?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"end"};var p=dT(o,a,(c+s)/2,l);return{x:p.x,y:p.y,textAnchor:"middle",verticalAnchor:"middle"}},TT=function(e){var t=e.viewBox,n=e.parentViewBox,r=e.offset,i=e.position,o=t,a=o.x,c=o.y,s=o.width,l=o.height,u=l>=0?1:-1,f=u*r,p=u>0?"end":"start",d=u>0?"start":"end",h=s>=0?1:-1,m=h*r,y=h>0?"end":"start",v=h>0?"start":"end";if("top"===i)return ET(ET({},{x:a+s/2,y:c-u*r,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(c-n.y,0),width:s}:{});if("bottom"===i)return ET(ET({},{x:a+s/2,y:c+l+f,textAnchor:"middle",verticalAnchor:d}),n?{height:Math.max(n.y+n.height-(c+l),0),width:s}:{});if("left"===i){var g={x:a-m,y:c+l/2,textAnchor:y,verticalAnchor:"middle"};return ET(ET({},g),n?{width:Math.max(g.x-n.x,0),height:l}:{})}if("right"===i){var b={x:a+s+m,y:c+l/2,textAnchor:v,verticalAnchor:"middle"};return ET(ET({},b),n?{width:Math.max(n.x+n.width-b.x,0),height:l}:{})}var x=n?{width:s,height:l}:{};return"insideLeft"===i?ET({x:a+m,y:c+l/2,textAnchor:v,verticalAnchor:"middle"},x):"insideRight"===i?ET({x:a+s-m,y:c+l/2,textAnchor:y,verticalAnchor:"middle"},x):"insideTop"===i?ET({x:a+s/2,y:c+f,textAnchor:"middle",verticalAnchor:d},x):"insideBottom"===i?ET({x:a+s/2,y:c+l-f,textAnchor:"middle",verticalAnchor:p},x):"insideTopLeft"===i?ET({x:a+m,y:c+f,textAnchor:v,verticalAnchor:d},x):"insideTopRight"===i?ET({x:a+s-m,y:c+f,textAnchor:y,verticalAnchor:d},x):"insideBottomLeft"===i?ET({x:a+m,y:c+l-f,textAnchor:v,verticalAnchor:p},x):"insideBottomRight"===i?ET({x:a+s-m,y:c+l-f,textAnchor:y,verticalAnchor:p},x):Yr(i)&&(Fa(i.x)||La(i.x))&&(Fa(i.y)||La(i.y))?ET({x:a+Ha(i.x,s),y:c+Ha(i.y,l),textAnchor:"end",verticalAnchor:"end"},x):ET({x:a+s/2,y:c+l/2,textAnchor:"middle",verticalAnchor:"middle"},x)},PT=function(e){return"cx"in e&&Fa(e.cx)};function DT(t){var r,i=t.viewBox,o=t.position,a=t.value,c=t.children,s=t.content,l=t.className,f=void 0===l?"":l,p=t.textBreakAll;if(!i||Sa(a)&&Sa(c)&&!u(s)&&!hi(s))return null;if(u(s))return d(s,t);if(hi(s)){if(u(r=n(s,t)))return r}else r=OT(t);var h=PT(i),m=hc(t,!0);if(h&&("insideStart"===o||"insideEnd"===o||"end"===o))return AT(t,r,m);var y=h?CT(t):TT(t);return e.createElement(kw,_T({className:$r("recharts-label",f)},m,y,{breakAll:p}),r)}DT.displayName="Label",DT.defaultProps={offset:5};var jT=function(e){var t=e.cx,n=e.cy,r=e.angle,i=e.startAngle,o=e.endAngle,a=e.r,c=e.radius,s=e.innerRadius,l=e.outerRadius,u=e.x,f=e.y,p=e.top,d=e.left,h=e.width,m=e.height,y=e.clockWise,v=e.labelViewBox;if(v)return v;if(Fa(h)&&Fa(m)){if(Fa(u)&&Fa(f))return{x:u,y:f,width:h,height:m};if(Fa(p)&&Fa(d))return{x:p,y:d,width:h,height:m}}return Fa(u)&&Fa(f)?{x:u,y:f,width:0,height:0}:Fa(t)&&Fa(n)?{cx:t,cy:n,startAngle:i||r||0,endAngle:o||r||0,innerRadius:s||0,outerRadius:l||c||a||0,clockWise:y}:e.viewBox?e.viewBox:{}};DT.parseViewBox=jT,DT.renderCallByParent=function(t,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&r&&!t.label)return null;var i=t.children,o=jT(t),a=sc(i,DT).map((function(e,t){return d(e,{viewBox:n||o,key:"label-".concat(t)})}));if(!r)return a;var c=function(t,n){return t?!0===t?e.createElement(DT,{key:"label-implicit",viewBox:n}):za(t)?e.createElement(DT,{key:"label-implicit",viewBox:n,value:t}):u(t)?t.type===DT?d(t,{key:"label-implicit",viewBox:n}):e.createElement(DT,{key:"label-implicit",content:t,viewBox:n}):hi(t)?e.createElement(DT,{key:"label-implicit",content:t,viewBox:n}):Yr(t)?e.createElement(DT,_T({viewBox:n},t,{key:"label-implicit"})):null:null}(t.label,n||o);return[c].concat(xT(a))};var MT=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},NT=_(MT);function IT(e){return IT="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},IT(e)}var RT=["data","valueAccessor","dataKey","clockWise","id","textBreakAll"];function LT(e){return function(e){if(Array.isArray(e))return FT(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return FT(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 FT(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 FT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function zT(){return zT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zT.apply(this,arguments)}function BT(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 qT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?BT(Object(n),!0).forEach((function(t){HT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function HT(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==IT(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==IT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===IT(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VT(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var UT={valueAccessor:function(e){return yi(e.value)?NT(e.value):e.value}};function WT(t){var n=t.data,r=t.valueAccessor,i=t.dataKey,o=t.clockWise,a=t.id,c=t.textBreakAll,s=VT(t,RT);return n&&n.length?e.createElement(_c,{className:"recharts-label-list"},n.map((function(t,n){var l=Sa(i)?r(t,n):DC(t&&t.payload,i),u=Sa(a)?{}:{id:"".concat(a,"-").concat(n)};return e.createElement(DT,zT({},hc(t,!0),s,u,{parentViewBox:t.parentViewBox,index:n,value:l,textBreakAll:c,viewBox:DT.parseViewBox(Sa(o)?t:qT(qT({},t),{},{clockWise:o})),key:"label-".concat(n)}))}))):null}function $T(e){return $T="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},$T(e)}function GT(){return GT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},GT.apply(this,arguments)}function YT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,JT(r.key),r)}}function XT(e,t){return XT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},XT(e,t)}function ZT(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=KT(e);if(t){var i=KT(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===$T(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function KT(e){return KT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},KT(e)}function JT(e){var t=function(e,t){if("object"!==$T(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==$T(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===$T(t)?t:String(t)}WT.displayName="LabelList",WT.renderCallByParent=function(t,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&r&&!t.label)return null;var i=sc(t.children,WT).map((function(e,t){return d(e,{data:n,key:"labelList-".concat(t)})}));return r?[function(t,n){return t?!0===t?e.createElement(WT,{key:"labelList-implicit",data:n}):e.isValidElement(t)||hi(t)?e.createElement(WT,{key:"labelList-implicit",data:n,content:t}):Yr(t)?e.createElement(WT,zT({data:n},t,{key:"labelList-implicit"})):null:null}(t.label,n)].concat(LT(i)):i},WT.defaultProps=UT;var QT=function(e){var t=e.cx,n=e.cy,r=e.radius,i=e.angle,o=e.sign,a=e.isExternal,c=e.cornerRadius,s=e.cornerIsExternal,l=c*(a?1:-1)+r,u=Math.asin(c/l)/fT,f=s?i:i+o*u,p=s?i-o*u:i;return{center:dT(t,n,l,f),circleTangency:dT(t,n,r,f),lineTangency:dT(t,n,l*Math.cos(u*fT),p),theta:u}},eP=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,o=e.startAngle,a=function(e,t){return Ra(t-e)*Math.min(Math.abs(t-e),359.999)}(o,e.endAngle),c=o+a,s=dT(t,n,i,o),l=dT(t,n,i,c),u="M ".concat(s.x,",").concat(s.y,"\n A ").concat(i,",").concat(i,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(o>c),",\n ").concat(l.x,",").concat(l.y,"\n ");if(r>0){var f=dT(t,n,r,o),p=dT(t,n,r,c);u+="L ".concat(p.x,",").concat(p.y,"\n A ").concat(r,",").concat(r,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(o<=c),",\n ").concat(f.x,",").concat(f.y," Z")}else u+="L ".concat(t,",").concat(n," Z");return u},tP=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&XT(e,t)}(a,p);var n,r,i,o=ZT(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return n=a,r=[{key:"render",value:function(){var t=this.props,n=t.cx,r=t.cy,i=t.innerRadius,o=t.outerRadius,a=t.cornerRadius,c=t.forceCornerRadius,s=t.cornerIsExternal,l=t.startAngle,u=t.endAngle,f=t.className;if(o<i||l===u)return null;var p,d=$r("recharts-sector",f),h=o-i,m=Ha(a,h,0,!0);return p=m>0&&Math.abs(l-u)<360?function(e){var t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,o=e.cornerRadius,a=e.forceCornerRadius,c=e.cornerIsExternal,s=e.startAngle,l=e.endAngle,u=Ra(l-s),f=QT({cx:t,cy:n,radius:i,angle:s,sign:u,cornerRadius:o,cornerIsExternal:c}),p=f.circleTangency,d=f.lineTangency,h=f.theta,m=QT({cx:t,cy:n,radius:i,angle:l,sign:-u,cornerRadius:o,cornerIsExternal:c}),y=m.circleTangency,v=m.lineTangency,g=m.theta,b=c?Math.abs(s-l):Math.abs(s-l)-h-g;if(b<0)return a?"M ".concat(d.x,",").concat(d.y,"\n a").concat(o,",").concat(o,",0,0,1,").concat(2*o,",0\n a").concat(o,",").concat(o,",0,0,1,").concat(2*-o,",0\n "):eP({cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:s,endAngle:l});var x="M ".concat(d.x,",").concat(d.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(u<0),",").concat(p.x,",").concat(p.y,"\n A").concat(i,",").concat(i,",0,").concat(+(b>180),",").concat(+(u<0),",").concat(y.x,",").concat(y.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(u<0),",").concat(v.x,",").concat(v.y,"\n ");if(r>0){var w=QT({cx:t,cy:n,radius:r,angle:s,sign:u,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),k=w.circleTangency,E=w.lineTangency,S=w.theta,_=QT({cx:t,cy:n,radius:r,angle:l,sign:-u,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),O=_.circleTangency,A=_.lineTangency,C=_.theta,T=c?Math.abs(s-l):Math.abs(s-l)-S-C;if(T<0&&0===o)return"".concat(x,"L").concat(t,",").concat(n,"Z");x+="L".concat(A.x,",").concat(A.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(u<0),",").concat(O.x,",").concat(O.y,"\n A").concat(r,",").concat(r,",0,").concat(+(T>180),",").concat(+(u>0),",").concat(k.x,",").concat(k.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(u<0),",").concat(E.x,",").concat(E.y,"Z")}else x+="L".concat(t,",").concat(n,"Z");return x}({cx:n,cy:r,innerRadius:i,outerRadius:o,cornerRadius:Math.min(m,h/2),forceCornerRadius:c,cornerIsExternal:s,startAngle:l,endAngle:u}):eP({cx:n,cy:r,innerRadius:i,outerRadius:o,startAngle:l,endAngle:u}),e.createElement("path",GT({},hc(this.props,!0),{className:d,d:p,role:"img"}))}}],r&&YT(n.prototype,r),i&&YT(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function nP(e){return nP="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},nP(e)}function rP(){return rP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rP.apply(this,arguments)}function iP(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 oP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iP(Object(n),!0).forEach((function(t){uP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function aP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fP(r.key),r)}}function cP(e,t){return cP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},cP(e,t)}function sP(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=lP(e);if(t){var i=lP(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===nP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function lP(e){return lP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},lP(e)}function uP(e,t,n){return(t=fP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fP(e){var t=function(e,t){if("object"!==nP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==nP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===nP(t)?t:String(t)}!function(e,t,n){(t=JT(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(tP,"defaultProps",{cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1});var pP={curveBasisClosed:function(e){return new Rp(e)},curveBasisOpen:function(e){return new Lp(e)},curveBasis:function(e){return new Ip(e)},curveLinearClosed:function(e){return new Gp(e)},curveLinear:fp,curveMonotoneX:function(e){return new Jp(e)},curveMonotoneY:function(e){return new Qp(e)},curveNatural:function(e){return new td(e)},curveStep:function(e){return new rd(e,.5)},curveStepAfter:function(e){return new rd(e,1)},curveStepBefore:function(e){return new rd(e,0)}},dP=function(e){return e.x===+e.x&&e.y===+e.y},hP=function(e){return e.x},mP=function(e){return e.y},yP=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cP(e,t)}(a,p);var n,r,i,o=sP(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return n=a,r=[{key:"getPath",value:function(){var e,t=this.props,n=t.type,r=t.points,i=t.baseLine,o=t.layout,a=t.connectNulls,c=function(e,t){if(hi(e))return e;var n="curve".concat(Xf(e));return"curveMonotone"===n&&t?pP["".concat(n).concat("vertical"===t?"Y":"X")]:pP[n]||fp}(n,o),s=a?r.filter((function(e){return dP(e)})):r;if(yi(i)){var l=a?i.filter((function(e){return dP(e)})):i,u=s.map((function(e,t){return oP(oP({},e),{},{base:l[t]})}));return(e="vertical"===o?mp().y(mP).x1(hP).x0((function(e){return e.base.x})):mp().x(hP).y1(mP).y0((function(e){return e.base.y}))).defined(dP).curve(c),e(u)}return(e="vertical"===o&&Fa(i)?mp().y(mP).x1(hP).x0(i):Fa(i)?mp().x(hP).y1(mP).y0(i):hp().x(hP).y(mP)).defined(dP).curve(c),e(s)}},{key:"render",value:function(){var t=this.props,n=t.className,r=t.points,i=t.path,o=t.pathRef;if(!(r&&r.length||i))return null;var a=r&&r.length?this.getPath():i;return e.createElement("path",rP({},hc(this.props),Ja(this.props),{className:$r("recharts-curve",n),d:a,ref:o}))}}],r&&aP(n.prototype,r),i&&aP(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function vP(e){return vP="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},vP(e)}function gP(){return gP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gP.apply(this,arguments)}function bP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_P(r.key),r)}}function xP(e,t){return xP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xP(e,t)}function wP(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=EP(e);if(t){var i=EP(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===vP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return kP(e)}(this,n)}}function kP(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function EP(e){return EP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},EP(e)}function SP(e,t,n){return(t=_P(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _P(e){var t=function(e,t){if("object"!==vP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==vP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===vP(t)?t:String(t)}uP(yP,"defaultProps",{type:"linear",points:[],connectNulls:!1});var OP=function(e,t,n,r,i){var o,a=Math.min(Math.abs(n)/2,Math.abs(r)/2),c=r>=0?1:-1,s=n>=0?1:-1,l=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&i instanceof Array){for(var u=[0,0,0,0],f=0;f<4;f++)u[f]=i[f]>a?a:i[f];o="M".concat(e,",").concat(t+c*u[0]),u[0]>0&&(o+="A ".concat(u[0],",").concat(u[0],",0,0,").concat(l,",").concat(e+s*u[0],",").concat(t)),o+="L ".concat(e+n-s*u[1],",").concat(t),u[1]>0&&(o+="A ".concat(u[1],",").concat(u[1],",0,0,").concat(l,",\n ").concat(e+n,",").concat(t+c*u[1])),o+="L ".concat(e+n,",").concat(t+r-c*u[2]),u[2]>0&&(o+="A ".concat(u[2],",").concat(u[2],",0,0,").concat(l,",\n ").concat(e+n-s*u[2],",").concat(t+r)),o+="L ".concat(e+s*u[3],",").concat(t+r),u[3]>0&&(o+="A ".concat(u[3],",").concat(u[3],",0,0,").concat(l,",\n ").concat(e,",").concat(t+r-c*u[3])),o+="Z"}else if(a>0&&i===+i&&i>0){var p=Math.min(a,i);o="M ".concat(e,",").concat(t+c*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(e+s*p,",").concat(t,"\n L ").concat(e+n-s*p,",").concat(t,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(e+n,",").concat(t+c*p,"\n L ").concat(e+n,",").concat(t+r-c*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(e+n-s*p,",").concat(t+r,"\n L ").concat(e+s*p,",").concat(t+r,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(e,",").concat(t+r-c*p," Z")}else o="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return o},AP=function(e,t){if(!e||!t)return!1;var n=e.x,r=e.y,i=t.x,o=t.y,a=t.width,c=t.height;if(Math.abs(a)>0&&Math.abs(c)>0){var s=Math.min(i,i+a),l=Math.max(i,i+a),u=Math.min(o,o+c),f=Math.max(o,o+c);return n>=s&&n<=l&&r>=u&&r<=f}return!1},CP=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xP(e,t)}(a,p);var n,r,i,o=wP(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return SP(kP(e=o.call.apply(o,[this].concat(n))),"state",{totalLength:-1}),e}return n=a,r=[{key:"componentDidMount",value:function(){if(this.node&&this.node.getTotalLength)try{var e=this.node.getTotalLength();e&&this.setState({totalLength:e})}catch(e){}}},{key:"render",value:function(){var t=this,n=this.props,r=n.x,i=n.y,o=n.width,a=n.height,c=n.radius,s=n.className,l=this.state.totalLength,u=this.props,f=u.animationEasing,p=u.animationDuration,d=u.animationBegin,h=u.isAnimationActive,m=u.isUpdateAnimationActive;if(r!==+r||i!==+i||o!==+o||a!==+a||0===o||0===a)return null;var y=$r("recharts-rectangle",s);return m?e.createElement(Zv,{canBegin:l>0,from:{width:o,height:a,x:r,y:i},to:{width:o,height:a,x:r,y:i},duration:p,animationEasing:f,isActive:m},(function(n){var r=n.width,i=n.height,o=n.x,a=n.y;return e.createElement(Zv,{canBegin:l>0,from:"0px ".concat(-1===l?1:l,"px"),to:"".concat(l,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:p,isActive:h,easing:f},e.createElement("path",gP({},hc(t.props,!0),{className:y,d:OP(o,a,r,i,c),ref:function(e){t.node=e}})))})):e.createElement("path",gP({},hc(this.props,!0),{className:y,d:OP(r,i,o,a,c)}))}}],r&&bP(n.prototype,r),i&&bP(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function TP(e){return TP="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},TP(e)}SP(CP,"defaultProps",{x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"});var PP=["points","className","baseLinePoints","connectNulls"];function DP(){return DP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},DP.apply(this,arguments)}function jP(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function MP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(i=r.key,o=void 0,o=function(e,t){if("object"!==TP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==TP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"),"symbol"===TP(o)?o:String(o)),r)}var i,o}function NP(e,t){return NP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},NP(e,t)}function IP(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=RP(e);if(t){var i=RP(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===TP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function RP(e){return RP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},RP(e)}function LP(e){return function(e){if(Array.isArray(e))return FP(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return FP(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 FP(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 FP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var zP=function(e){return e&&e.x===+e.x&&e.y===+e.y},BP=function(e,t){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[[]];return e.forEach((function(e){zP(e)?t[t.length-1].push(e):t[t.length-1].length>0&&t.push([])})),zP(e[0])&&t[t.length-1].push(e[0]),t[t.length-1].length<=0&&(t=t.slice(0,-1)),t}(e);t&&(n=[n.reduce((function(e,t){return[].concat(LP(e),LP(t))}),[])]);var r=n.map((function(e){return e.reduce((function(e,t,n){return"".concat(e).concat(0===n?"M":"L").concat(t.x,",").concat(t.y)}),"")})).join("");return 1===n.length?"".concat(r,"Z"):r},qP=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&NP(e,t)}(a,p);var n,r,i,o=IP(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return n=a,(r=[{key:"render",value:function(){var t=this.props,n=t.points,r=t.className,i=t.baseLinePoints,o=t.connectNulls,a=jP(t,PP);if(!n||!n.length)return null;var c=$r("recharts-polygon",r);if(i&&i.length){var s=a.stroke&&"none"!==a.stroke,l=function(e,t,n){var r=BP(e,n);return"".concat("Z"===r.slice(-1)?r.slice(0,-1):r,"L").concat(BP(t.reverse(),n).slice(1))}(n,i,o);return e.createElement("g",{className:c},e.createElement("path",DP({},hc(a,!0),{fill:"Z"===l.slice(-1)?a.fill:"none",stroke:"none",d:l})),s?e.createElement("path",DP({},hc(a,!0),{fill:"none",d:BP(n,o)})):null,s?e.createElement("path",DP({},hc(a,!0),{fill:"none",d:BP(i,o)})):null)}var u=BP(n,o);return e.createElement("path",DP({},hc(a,!0),{fill:"Z"===u.slice(-1)?a.fill:"none",className:c,d:u}))}}])&&MP(n.prototype,r),i&&MP(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function HP(e){return HP="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},HP(e)}function VP(){return VP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},VP.apply(this,arguments)}function UP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(i=r.key,o=void 0,o=function(e,t){if("object"!==HP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==HP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"),"symbol"===HP(o)?o:String(o)),r)}var i,o}function WP(e,t){return WP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},WP(e,t)}function $P(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=GP(e);if(t){var i=GP(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===HP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function GP(e){return GP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},GP(e)}var YP=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&WP(e,t)}(a,p);var n,r,i,o=$P(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return n=a,(r=[{key:"render",value:function(){var t=this.props,n=t.cx,r=t.cy,i=t.r,o=t.className,a=$r("recharts-dot",o);return n===+n&&r===+r&&i===+i?e.createElement("circle",VP({},hc(this.props),Ja(this.props),{className:a,cx:n,cy:r,r:i})):null}}])&&UP(n.prototype,r),i&&UP(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function XP(e){return XP="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},XP(e)}function ZP(){return ZP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ZP.apply(this,arguments)}function KP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,tD(r.key),r)}}function JP(e,t){return JP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},JP(e,t)}function QP(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=eD(e);if(t){var i=eD(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===XP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function eD(e){return eD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},eD(e)}function tD(e){var t=function(e,t){if("object"!==XP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==XP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===XP(t)?t:String(t)}var nD=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&JP(e,t)}(a,p);var n,r,i,o=QP(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return n=a,r=[{key:"render",value:function(){var t=this.props,n=t.x,r=t.y,i=t.width,o=t.height,c=t.top,s=t.left,l=t.className;return Fa(n)&&Fa(r)&&Fa(i)&&Fa(o)&&Fa(c)&&Fa(s)?e.createElement("path",ZP({},hc(this.props,!0),{className:$r("recharts-cross",l),d:a.getPath(n,r,i,o,c,s)})):null}}],i=[{key:"getPath",value:function(e,t,n,r,i,o){return"M".concat(e,",").concat(i,"v").concat(r,"M").concat(o,",").concat(t,"h").concat(n)}}],r&&KP(n.prototype,r),i&&KP(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function rD(e){return rD="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},rD(e)}function iD(){return iD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iD.apply(this,arguments)}function oD(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 aD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oD(Object(n),!0).forEach((function(t){fD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,pD(r.key),r)}}function sD(e,t){return sD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},sD(e,t)}function lD(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=uD(e);if(t){var i=uD(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===rD(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function uD(e){return uD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},uD(e)}function fD(e,t,n){return(t=pD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pD(e){var t=function(e,t){if("object"!==rD(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==rD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===rD(t)?t:String(t)}!function(e,t,n){(t=tD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(nD,"defaultProps",{x:0,y:0,top:0,left:0,width:0,height:0});var dD=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sD(e,t)}(a,p);var n,r,i,o=lD(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return n=a,r=[{key:"getPolygonPath",value:function(e){var t=this.props,n=t.cx,r=t.cy,i=t.polarAngles,o="";return i.forEach((function(t,i){var a=dT(n,r,e,t);o+=i?"L ".concat(a.x,",").concat(a.y):"M ".concat(a.x,",").concat(a.y)})),o+="Z"}},{key:"renderPolarAngles",value:function(){var t=this.props,n=t.cx,r=t.cy,i=t.innerRadius,o=t.outerRadius,a=t.polarAngles,c=t.radialLines;if(!a||!a.length||!c)return null;var s=aD({stroke:"#ccc"},hc(this.props));return e.createElement("g",{className:"recharts-polar-grid-angle"},a.map((function(t,a){var c=dT(n,r,i,t),l=dT(n,r,o,t);return e.createElement("line",iD({},s,{key:"line-".concat(a),x1:c.x,y1:c.y,x2:l.x,y2:l.y}))})))}},{key:"renderConcentricCircle",value:function(t,n,r){var i=this.props,o=i.cx,a=i.cy,c=aD(aD({stroke:"#ccc"},hc(this.props)),{},{fill:"none"},r);return e.createElement("circle",iD({},c,{className:"recharts-polar-grid-concentric-circle",key:"circle-".concat(n),cx:o,cy:a,r:t}))}},{key:"renderConcentricPolygon",value:function(t,n,r){var i=aD(aD({stroke:"#ccc"},hc(this.props)),{},{fill:"none"},r);return e.createElement("path",iD({},i,{className:"recharts-polar-grid-concentric-polygon",key:"path-".concat(n),d:this.getPolygonPath(t)}))}},{key:"renderConcentricPath",value:function(){var t=this,n=this.props,r=n.polarRadius,i=n.gridType;return r&&r.length?e.createElement("g",{className:"recharts-polar-grid-concentric"},r.map((function(e,n){return"circle"===i?t.renderConcentricCircle(e,n):t.renderConcentricPolygon(e,n)}))):null}},{key:"render",value:function(){return this.props.outerRadius<=0?null:e.createElement("g",{className:"recharts-polar-grid"},this.renderPolarAngles(),this.renderConcentricPath())}}],r&&cD(n.prototype,r),i&&cD(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();fD(dD,"displayName","PolarGrid"),fD(dD,"defaultProps",{cx:0,cy:0,innerRadius:0,outerRadius:0,gridType:"polygon",radialLines:!0});var hD=Ow,mD=Zu,yD=Mw;var vD=function(e,t){return e&&e.length?hD(e,mD(t),yD):void 0},gD=_(vD),bD=Ow,xD=Aw,wD=Zu;var kD=function(e,t){return e&&e.length?bD(e,wD(t),xD):void 0},ED=_(kD),SD=["cx","cy","angle","ticks","axisLine"],_D=["ticks","tick","angle","tickFormatter","stroke"];function OD(e){return OD="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},OD(e)}function AD(){return AD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},AD.apply(this,arguments)}function CD(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 TD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?CD(Object(n),!0).forEach((function(t){ID(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function PD(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function DD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,RD(r.key),r)}}function jD(e,t){return jD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jD(e,t)}function MD(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ND(e);if(t){var i=ND(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===OD(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function ND(e){return ND=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ND(e)}function ID(e,t,n){return(t=RD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RD(e){var t=function(e,t){if("object"!==OD(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==OD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===OD(t)?t:String(t)}var LD=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jD(e,t)}(a,p);var n,r,i,o=MD(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return n=a,r=[{key:"getTickValueCoord",value:function(e){var t=e.coordinate,n=this.props,r=n.angle,i=n.cx,o=n.cy;return dT(i,o,t,r)}},{key:"getTickTextAnchor",value:function(){var e;switch(this.props.orientation){case"left":e="end";break;case"right":e="start";break;default:e="middle"}return e}},{key:"getViewBox",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.angle,i=e.ticks,o=ED(i,(function(e){return e.coordinate||0}));return{cx:t,cy:n,startAngle:r,endAngle:r,innerRadius:gD(i,(function(e){return e.coordinate||0})).coordinate||0,outerRadius:o.coordinate||0}}},{key:"renderAxisLine",value:function(){var t=this.props,n=t.cx,r=t.cy,i=t.angle,o=t.ticks,a=t.axisLine,c=PD(t,SD),s=o.reduce((function(e,t){return[Math.min(e[0],t.coordinate),Math.max(e[1],t.coordinate)]}),[1/0,-1/0]),l=dT(n,r,s[0],i),u=dT(n,r,s[1],i),f=TD(TD(TD({},hc(c)),{},{fill:"none"},hc(a)),{},{x1:l.x,y1:l.y,x2:u.x,y2:u.y});return e.createElement("line",AD({className:"recharts-polar-radius-axis-line"},f))}},{key:"renderTicks",value:function(){var t=this,n=this.props,r=n.ticks,i=n.tick,o=n.angle,c=n.tickFormatter,s=n.stroke,l=PD(n,_D),u=this.getTickTextAnchor(),f=hc(l),p=hc(i),d=r.map((function(n,r){var l=t.getTickValueCoord(n),d=TD(TD(TD(TD({textAnchor:u,transform:"rotate(".concat(90-o,", ").concat(l.x,", ").concat(l.y,")")},f),{},{stroke:"none",fill:s},p),{},{index:r},l),{},{payload:n});return e.createElement(_c,AD({className:"recharts-polar-radius-axis-tick",key:"tick-".concat(r)},Qa(t.props,n,r)),a.renderTickItem(i,d,c?c(n.value,r):n.value))}));return e.createElement(_c,{className:"recharts-polar-radius-axis-ticks"},d)}},{key:"render",value:function(){var t=this.props,n=t.ticks,r=t.axisLine,i=t.tick;return n&&n.length?e.createElement(_c,{className:"recharts-polar-radius-axis"},r&&this.renderAxisLine(),i&&this.renderTicks(),DT.renderCallByParent(this.props,this.getViewBox())):null}}],i=[{key:"renderTickItem",value:function(t,n,r){return e.isValidElement(t)?e.cloneElement(t,n):hi(t)?t(n):e.createElement(kw,AD({},n,{className:"recharts-polar-radius-axis-tick-value"}),r)}}],r&&DD(n.prototype,r),i&&DD(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function FD(e){return FD="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},FD(e)}function zD(){return zD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zD.apply(this,arguments)}function BD(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 qD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?BD(Object(n),!0).forEach((function(t){$D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function HD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,GD(r.key),r)}}function VD(e,t){return VD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},VD(e,t)}function UD(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=WD(e);if(t){var i=WD(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===FD(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function WD(e){return WD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},WD(e)}function $D(e,t,n){return(t=GD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GD(e){var t=function(e,t){if("object"!==FD(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==FD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===FD(t)?t:String(t)}ID(LD,"displayName","PolarRadiusAxis"),ID(LD,"axisType","radiusAxis"),ID(LD,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});var YD=Math.PI/180,XD=1e-5,ZD=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&VD(e,t)}(a,p);var n,r,i,o=UD(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return n=a,r=[{key:"getTickLineCoord",value:function(e){var t=this.props,n=t.cx,r=t.cy,i=t.radius,o=t.orientation,a=t.tickSize||8,c=dT(n,r,i,e.coordinate),s=dT(n,r,i+("inner"===o?-1:1)*a,e.coordinate);return{x1:c.x,y1:c.y,x2:s.x,y2:s.y}}},{key:"getTickTextAnchor",value:function(e){var t=this.props.orientation,n=Math.cos(-e.coordinate*YD);return n>XD?"outer"===t?"start":"end":n<-XD?"outer"===t?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var t=this.props,n=t.cx,r=t.cy,i=t.radius,o=t.axisLine,a=t.axisLineType,c=qD(qD({},hc(this.props)),{},{fill:"none"},hc(o));if("circle"===a)return e.createElement(YP,zD({className:"recharts-polar-angle-axis-line"},c,{cx:n,cy:r,r:i}));var s=this.props.ticks.map((function(e){return dT(n,r,i,e.coordinate)}));return e.createElement(qP,zD({className:"recharts-polar-angle-axis-line"},c,{points:s}))}},{key:"renderTicks",value:function(){var t=this,n=this.props,r=n.ticks,i=n.tick,o=n.tickLine,c=n.tickFormatter,s=n.stroke,l=hc(this.props),u=hc(i),f=qD(qD({},l),{},{fill:"none"},hc(o)),p=r.map((function(n,r){var p=t.getTickLineCoord(n),d=qD(qD(qD({textAnchor:t.getTickTextAnchor(n)},l),{},{stroke:"none",fill:s},u),{},{index:r,payload:n,x:p.x2,y:p.y2});return e.createElement(_c,zD({className:"recharts-polar-angle-axis-tick",key:"tick-".concat(r)},Qa(t.props,n,r)),o&&e.createElement("line",zD({className:"recharts-polar-angle-axis-tick-line"},f,p)),i&&a.renderTickItem(i,d,c?c(n.value,r):n.value))}));return e.createElement(_c,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var t=this.props,n=t.ticks,r=t.radius,i=t.axisLine;return r<=0||!n||!n.length?null:e.createElement(_c,{className:"recharts-polar-angle-axis"},i&&this.renderAxisLine(),this.renderTicks())}}],i=[{key:"renderTickItem",value:function(t,n,r){return e.isValidElement(t)?e.cloneElement(t,n):hi(t)?t(n):e.createElement(kw,zD({},n,{className:"recharts-polar-angle-axis-tick-value"}),r)}}],r&&HD(n.prototype,r),i&&HD(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();$D(ZD,"displayName","PolarAngleAxis"),$D(ZD,"axisType","angleAxis"),$D(ZD,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var KD=tl(Object.getPrototypeOf,Object),JD=ui,QD=KD,ej=vi,tj=Function.prototype,nj=Object.prototype,rj=tj.toString,ij=nj.hasOwnProperty,oj=rj.call(Object);var aj=function(e){if(!ej(e)||"[object Object]"!=JD(e))return!1;var t=QD(e);if(null===t)return!0;var n=ij.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&rj.call(n)==oj},cj=_(aj);function sj(e){return sj="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},sj(e)}function lj(){return lj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lj.apply(this,arguments)}function uj(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 fj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uj(Object(n),!0).forEach((function(t){vj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,gj(r.key),r)}}function dj(e,t){return dj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},dj(e,t)}function hj(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=yj(e);if(t){var i=yj(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===sj(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return mj(e)}(this,n)}}function mj(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yj(e){return yj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},yj(e)}function vj(e,t,n){return(t=gj(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gj(e){var t=function(e,t){if("object"!==sj(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==sj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===sj(t)?t:String(t)}var bj=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dj(e,t)}(a,p);var n,r,i,o=hj(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),vj(mj(t=o.call(this,e)),"pieRef",null),vj(mj(t),"sectorRefs",[]),vj(mj(t),"id",qa("recharts-pie-")),vj(mj(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),hi(e)&&e()})),vj(mj(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),hi(e)&&e()})),t.state={isAnimationFinished:!e.isAnimationActive,prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,sectorToFocus:0},t}return n=a,r=[{key:"isActiveIndex",value:function(e){var t=this.props.activeIndex;return Array.isArray(t)?-1!==t.indexOf(e):e===t}},{key:"hasActiveIndex",value:function(){var e=this.props.activeIndex;return Array.isArray(e)?0!==e.length:e||0===e}},{key:"renderLabels",value:function(t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.label,i=n.labelLine,o=n.dataKey,c=n.valueKey,s=hc(this.props),l=hc(r),u=hc(i),f=r&&r.offsetRadius||20,p=t.map((function(t,n){var p=(t.startAngle+t.endAngle)/2,d=dT(t.cx,t.cy,t.outerRadius+f,p),h=fj(fj(fj(fj({},s),t),{},{stroke:"none"},l),{},{index:n,textAnchor:a.getTextAnchor(d.x,t.cx)},d),m=fj(fj(fj(fj({},s),t),{},{fill:"none",stroke:t.fill},u),{},{index:n,points:[dT(t.cx,t.cy,t.outerRadius,p),d],key:"line"}),y=o;return Sa(o)&&Sa(c)?y="value":Sa(o)&&(y=c),e.createElement(_c,{key:"label-".concat(n)},i&&a.renderLabelLineItem(i,m),a.renderLabelItem(r,h,DC(t,y)))}));return e.createElement(_c,{className:"recharts-pie-labels"},p)}},{key:"renderSectorsStatically",value:function(t){var n=this,r=this.props,i=r.activeShape,o=r.blendStroke,c=r.inactiveShape;return t.map((function(t,r){var s=c&&n.hasActiveIndex()?c:null,l=n.isActiveIndex(r)?i:s,u=fj(fj({},t),{},{stroke:o?t.fill:t.stroke});return e.createElement(_c,lj({ref:function(e){e&&!n.sectorRefs.includes(e)&&n.sectorRefs.push(e)},tabIndex:-1,className:"recharts-pie-sector"},Qa(n.props,t,r),{key:"sector-".concat(r)}),a.renderSectorItem(l,u))}))}},{key:"renderSectorsWithAnimation",value:function(){var t=this,n=this.props,r=n.sectors,i=n.isAnimationActive,o=n.animationBegin,a=n.animationDuration,c=n.animationEasing,s=n.animationId,l=this.state,u=l.prevSectors,f=l.prevIsAnimationActive;return e.createElement(Zv,{begin:o,duration:a,isActive:i,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(s,"-").concat(f),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(n){var i=n.t,o=[],a=(r&&r[0]).startAngle;return r.forEach((function(e,t){var n=u&&u[t],r=t>0?ka(e,"paddingAngle",0):0;if(n){var c=Ua(n.endAngle-n.startAngle,e.endAngle-e.startAngle),s=fj(fj({},e),{},{startAngle:a+r,endAngle:a+c(i)+r});o.push(s),a=s.endAngle}else{var l=e.endAngle,f=e.startAngle,p=Ua(0,l-f)(i),d=fj(fj({},e),{},{startAngle:a+r,endAngle:a+p+r});o.push(d),a=d.endAngle}})),e.createElement(_c,null,t.renderSectorsStatically(o))}))}},{key:"attachKeyboardHandlers",value:function(e){var t=this;e.onkeydown=function(e){if(!e.altKey)switch(e.key){case"ArrowLeft":var n=++t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[n].focus(),t.setState({sectorToFocus:n});break;case"ArrowRight":var r=--t.state.sectorToFocus<0?t.sectorRefs.length-1:t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[r].focus(),t.setState({sectorToFocus:r});break;case"Escape":t.sectorRefs[t.state.sectorToFocus].blur(),t.setState({sectorToFocus:0})}}}},{key:"renderSectors",value:function(){var e=this.props,t=e.sectors,n=e.isAnimationActive,r=this.state.prevSectors;return!(n&&t&&t.length)||r&&Sw(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var t=this,n=this.props,r=n.hide,i=n.sectors,o=n.className,a=n.label,c=n.cx,s=n.cy,l=n.innerRadius,u=n.outerRadius,f=n.isAnimationActive,p=this.state.isAnimationFinished;if(r||!i||!i.length||!Fa(c)||!Fa(s)||!Fa(l)||!Fa(u))return null;var d=$r("recharts-pie",o);return e.createElement(_c,{tabIndex:0,className:d,ref:function(e){t.pieRef=e}},this.renderSectors(),a&&this.renderLabels(i),DT.renderCallByParent(this.props,null,!1),(!f||p)&&WT.renderCallByParent(this.props,i,!1))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return t.prevIsAnimationActive!==e.isAnimationActive?{prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:[],isAnimationFinished:!0}:e.isAnimationActive&&e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:t.curSectors,isAnimationFinished:!0}:e.sectors!==t.curSectors?{curSectors:e.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(e,t){return e>t?"start":e<t?"end":"middle"}},{key:"renderLabelLineItem",value:function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):hi(t)?t(n):e.createElement(yP,lj({},n,{type:"linear",className:"recharts-pie-label-line"}))}},{key:"renderLabelItem",value:function(t,n,r){if(e.isValidElement(t))return e.cloneElement(t,n);var i=r;return hi(t)&&(i=t(n),e.isValidElement(i))?i:e.createElement(kw,lj({},n,{alignmentBaseline:"middle",className:"recharts-pie-label-text"}),i)}},{key:"renderSectorItem",value:function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):hi(t)?t(n):cj(t)?e.createElement(tP,lj({tabIndex:-1},n,t)):e.createElement(tP,lj({tabIndex:-1},n))}}],r&&pj(n.prototype,r),i&&pj(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();vj(bj,"displayName","Pie"),vj(bj,"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:!db.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1}),vj(bj,"parseDeltaAngle",(function(e,t){return Ra(t-e)*Math.min(Math.abs(t-e),360)})),vj(bj,"getRealPieData",(function(e){var t=e.props,n=t.data,r=t.children,i=hc(e.props),o=sc(r,lx);return n&&n.length?n.map((function(e,t){return fj(fj(fj({payload:e},i),e),o&&o[t]&&o[t].props)})):o&&o.length?o.map((function(e){return fj(fj({},i),e.props)})):[]})),vj(bj,"parseCoordinateOfPie",(function(e,t){var n=t.top,r=t.left,i=t.width,o=t.height,a=hT(i,o);return{cx:r+Ha(e.props.cx,i,i/2),cy:n+Ha(e.props.cy,o,o/2),innerRadius:Ha(e.props.innerRadius,a,0),outerRadius:Ha(e.props.outerRadius,a,.8*a),maxRadius:e.props.maxRadius||Math.sqrt(i*i+o*o)/2}})),vj(bj,"getComposedData",(function(e){var t=e.item,n=e.offset,r=bj.getRealPieData(t);if(!r||!r.length)return null;var i=t.props,o=i.cornerRadius,a=i.startAngle,c=i.endAngle,s=i.paddingAngle,l=i.dataKey,u=i.nameKey,f=i.valueKey,p=i.tooltipType,d=Math.abs(t.props.minAngle),h=bj.parseCoordinateOfPie(t,n),m=bj.parseDeltaAngle(a,c),y=Math.abs(m),v=l;Sa(l)&&Sa(f)?(ix(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),v="value"):Sa(l)&&(ix(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),v=f);var g,b,x=r.filter((function(e){return 0!==DC(e,v,0)})).length,w=y-x*d-(y>=360?x:x-1)*s,k=r.reduce((function(e,t){var n=DC(t,v,0);return e+(Fa(n)?n:0)}),0);k>0&&(g=r.map((function(e,t){var n,r=DC(e,v,0),i=DC(e,u,t),c=(Fa(r)?r:0)/k,l=(n=t?b.endAngle+Ra(m)*s*(0!==r?1:0):a)+Ra(m)*((0!==r?d:0)+c*w),f=(n+l)/2,y=(h.innerRadius+h.outerRadius)/2,g=[{name:i,value:r,payload:e,dataKey:v,type:p}],x=dT(h.cx,h.cy,y,f);return b=fj(fj(fj({percent:c,cornerRadius:o,name:i,tooltipPayload:g,midAngle:f,middleRadius:y,tooltipPosition:x},e),h),{},{value:DC(e,v),startAngle:n,endAngle:l,payload:e,paddingAngle:Ra(m)*s})})));return fj(fj({},h),{},{sectors:g,data:r})}));var xj=function(e){return e&&e.length?e[0]:void 0},wj=_(xj);function kj(e){return kj="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},kj(e)}function Ej(){return Ej=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ej.apply(this,arguments)}function Sj(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 _j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sj(Object(n),!0).forEach((function(t){Dj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Oj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,jj(r.key),r)}}function Aj(e,t){return Aj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Aj(e,t)}function Cj(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Pj(e);if(t){var i=Pj(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===kj(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Tj(e)}(this,n)}}function Tj(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pj(e){return Pj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Pj(e)}function Dj(e,t,n){return(t=jj(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jj(e){var t=function(e,t){if("object"!==kj(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==kj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===kj(t)?t:String(t)}var Mj=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Aj(e,t)}(a,p);var n,r,i,o=Cj(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Dj(Tj(e=o.call.apply(o,[this].concat(n))),"state",{isAnimationFinished:!1}),Dj(Tj(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),hi(t)&&t()})),Dj(Tj(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),hi(t)&&t()})),Dj(Tj(e),"handleMouseEnter",(function(t){var n=e.props.onMouseEnter;n&&n(e.props,t)})),Dj(Tj(e),"handleMouseLeave",(function(t){var n=e.props.onMouseLeave;n&&n(e.props,t)})),e}return n=a,r=[{key:"renderDots",value:function(t){var n=this.props,r=n.dot,i=n.dataKey,o=hc(this.props),c=hc(r),s=t.map((function(e,t){var n=_j(_j(_j({key:"dot-".concat(t),r:3},o),c),{},{dataKey:i,cx:e.x,cy:e.y,index:t,payload:e});return a.renderDotItem(r,n)}));return e.createElement(_c,{className:"recharts-radar-dots"},s)}},{key:"renderPolygonStatically",value:function(t){var n,r=this.props,i=r.shape,o=r.dot,a=r.isRange,c=r.baseLinePoints,s=r.connectNulls;return n=e.isValidElement(i)?e.cloneElement(i,_j(_j({},this.props),{},{points:t})):hi(i)?i(_j(_j({},this.props),{},{points:t})):e.createElement(qP,Ej({},hc(this.props,!0),{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,points:t,baseLinePoints:a?c:null,connectNulls:s})),e.createElement(_c,{className:"recharts-radar-polygon"},n,o?this.renderDots(t):null)}},{key:"renderPolygonWithAnimation",value:function(){var t=this,n=this.props,r=n.points,i=n.isAnimationActive,o=n.animationBegin,a=n.animationDuration,c=n.animationEasing,s=n.animationId,l=this.state.prevPoints;return e.createElement(Zv,{begin:o,duration:a,isActive:i,easing:c,from:{t:0},to:{t:1},key:"radar-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(e){var n=e.t,i=l&&l.length/r.length,o=r.map((function(e,t){var r=l&&l[Math.floor(t*i)];if(r){var o=Ua(r.x,e.x),a=Ua(r.y,e.y);return _j(_j({},e),{},{x:o(n),y:a(n)})}var c=Ua(e.cx,e.x),s=Ua(e.cy,e.y);return _j(_j({},e),{},{x:c(n),y:s(n)})}));return t.renderPolygonStatically(o)}))}},{key:"renderPolygon",value:function(){var e=this.props,t=e.points,n=e.isAnimationActive,r=e.isRange,i=this.state.prevPoints;return!(n&&t&&t.length)||r||i&&Sw(i,t)?this.renderPolygonStatically(t):this.renderPolygonWithAnimation()}},{key:"render",value:function(){var t=this.props,n=t.hide,r=t.className,i=t.points,o=t.isAnimationActive;if(n||!i||!i.length)return null;var a=this.state.isAnimationFinished,c=$r("recharts-radar",r);return e.createElement(_c,{className:c},this.renderPolygon(),(!o||a)&&WT.renderCallByParent(this.props,i))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,prevPoints:t.curPoints}:e.points!==t.curPoints?{curPoints:e.points}:null}},{key:"renderDotItem",value:function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):hi(t)?t(n):e.createElement(YP,Ej({},n,{className:"recharts-radar-dot"}))}}],r&&Oj(n.prototype,r),i&&Oj(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();Dj(Mj,"displayName","Radar"),Dj(Mj,"defaultProps",{angleAxisId:0,radiusAxisId:0,hide:!1,activeDot:!0,dot:!1,legendType:"rect",isAnimationActive:!db.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),Dj(Mj,"getComposedData",(function(e){var t=e.radiusAxis,n=e.angleAxis,r=e.displayedData,i=e.dataKey,o=e.bandSize,a=n.cx,c=n.cy,s=!1,l=[];r.forEach((function(e,r){var u=DC(e,n.dataKey,r),f=DC(e,i),p=n.scale(u)+(o||0),d=yi(f)?NT(f):f,h=Sa(d)?void 0:t.scale(d);yi(f)&&f.length>=2&&(s=!0),l.push(_j(_j({},dT(a,c,h,p)),{},{name:u,value:f,cx:a,cy:c,radius:h,angle:p,payload:e}))}));var u=[];return s&&l.forEach((function(e){if(yi(e.value)){var n=wj(e.value),r=Sa(n)?void 0:t.scale(n);u.push(_j(_j({},e),{},{radius:r},dT(a,c,r,e.angle)))}else u.push(e)})),{points:l,isRange:s,baseLinePoints:u}}));var Nj=["shape","activeShape","activeIndex","cornerRadius"],Ij=["value","background"];function Rj(e){return Rj="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},Rj(e)}function Lj(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 Fj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lj(Object(n),!0).forEach((function(t){Wj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zj(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Bj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$j(r.key),r)}}function qj(e,t){return qj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qj(e,t)}function Hj(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Uj(e);if(t){var i=Uj(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Rj(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Vj(e)}(this,n)}}function Vj(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Uj(e){return Uj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Uj(e)}function Wj(e,t,n){return(t=$j(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $j(e){var t=function(e,t){if("object"!==Rj(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Rj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Rj(t)?t:String(t)}var Gj=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qj(e,t)}(a,p);var n,r,i,o=Hj(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Wj(Vj(e=o.call.apply(o,[this].concat(n))),"state",{isAnimationFinished:!1}),Wj(Vj(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),hi(t)&&t()})),Wj(Vj(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),hi(t)&&t()})),e}return n=a,r=[{key:"getDeltaAngle",value:function(){var e=this.props,t=e.startAngle,n=e.endAngle;return Ra(n-t)*Math.min(Math.abs(n-t),360)}},{key:"renderSectorsStatically",value:function(e){var t=this,n=this.props,r=n.shape,i=n.activeShape,o=n.activeIndex,c=n.cornerRadius,s=zj(n,Nj),l=hc(s);return e.map((function(e,n){var u=Fj(Fj(Fj(Fj({},l),{},{cornerRadius:c},e),Qa(t.props,e,n)),{},{key:"sector-".concat(n),className:"recharts-radial-bar-sector",forceCornerRadius:s.forceCornerRadius,cornerIsExternal:s.cornerIsExternal});return a.renderSectorShape(n===o?i:r,u)}))}},{key:"renderSectorsWithAnimation",value:function(){var t=this,n=this.props,r=n.data,i=n.isAnimationActive,o=n.animationBegin,a=n.animationDuration,c=n.animationEasing,s=n.animationId,l=this.state.prevData;return e.createElement(Zv,{begin:o,duration:a,isActive:i,easing:c,from:{t:0},to:{t:1},key:"radialBar-".concat(s),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(n){var i=n.t,o=r.map((function(e,t){var n=l&&l[t];if(n){var r=Ua(n.startAngle,e.startAngle),o=Ua(n.endAngle,e.endAngle);return Fj(Fj({},e),{},{startAngle:r(i),endAngle:o(i)})}var a=e.endAngle,c=e.startAngle,s=Ua(c,a);return Fj(Fj({},e),{},{endAngle:s(i)})}));return e.createElement(_c,null,t.renderSectorsStatically(o))}))}},{key:"renderSectors",value:function(){var e=this.props,t=e.data,n=e.isAnimationActive,r=this.state.prevData;return!(n&&t&&t.length)||r&&Sw(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"renderBackground",value:function(e){var t=this,n=this.props.cornerRadius,r=hc(this.props.background);return e.map((function(e,i){e.value;var o=e.background,c=zj(e,Ij);if(!o)return null;var s=Fj(Fj(Fj(Fj(Fj({cornerRadius:n},c),{},{fill:"#eee"},o),r),Qa(t.props,e,i)),{},{index:i,key:"sector-".concat(i),className:"recharts-radial-bar-background-sector"});return a.renderSectorShape(o,s)}))}},{key:"render",value:function(){var t=this.props,n=t.hide,r=t.data,i=t.className,o=t.background,a=t.isAnimationActive;if(n||!r||!r.length)return null;var c=this.state.isAnimationFinished,s=$r("recharts-area",i);return e.createElement(_c,{className:s},o&&e.createElement(_c,{className:"recharts-radial-bar-background"},this.renderBackground(r)),e.createElement(_c,{className:"recharts-radial-bar-sectors"},this.renderSectors()),(!a||c)&&WT.renderCallByParent(Fj({},this.props),r))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curData:e.data,prevData:t.curData}:e.data!==t.curData?{curData:e.data}:null}},{key:"renderSectorShape",value:function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):hi(t)?t(n):e.createElement(tP,n)}}],r&&Bj(n.prototype,r),i&&Bj(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();Wj(Gj,"displayName","RadialBar"),Wj(Gj,"defaultProps",{angleAxisId:0,radiusAxisId:0,minPointSize:0,hide:!1,legendType:"rect",data:[],isAnimationActive:!db.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease",forceCornerRadius:!1,cornerIsExternal:!1}),Wj(Gj,"getComposedData",(function(e){var t=e.item,n=e.props,r=e.radiusAxis,i=e.radiusAxisTicks,o=e.angleAxis,a=e.angleAxisTicks,c=e.displayedData,s=e.dataKey,l=e.stackedData,u=e.barPosition,f=e.bandSize,p=e.dataStartIndex,d=UC(u,t);if(!d)return null;var h=o.cx,m=o.cy,y=n.layout,v=t.props,g=v.children,b=v.minPointSize,x="radial"===y?o:r,w=l?x.scale.domain():null,k=KC({numericAxis:x}),E=sc(g,lx);return{data:c.map((function(e,c){var u,v,g,x,S,_;if(l?u=WC(l[p+c],w):(u=DC(e,s),yi(u)||(u=[k,u])),"radial"===y){v=ZC({axis:r,ticks:i,bandSize:f,offset:d.offset,entry:e,index:c}),S=o.scale(u[1]),x=o.scale(u[0]),g=v+d.size;var O=S-x;if(Math.abs(b)>0&&Math.abs(O)<Math.abs(b))S+=Ra(O||b)*(Math.abs(b)-Math.abs(O));_={background:{cx:h,cy:m,innerRadius:v,outerRadius:g,startAngle:n.startAngle,endAngle:n.endAngle}}}else{v=r.scale(u[0]),g=r.scale(u[1]),S=(x=ZC({axis:o,ticks:a,bandSize:f,offset:d.offset,entry:e,index:c}))+d.size;var A=g-v;if(Math.abs(b)>0&&Math.abs(A)<Math.abs(b))g+=Ra(A||b)*(Math.abs(b)-Math.abs(A))}return Fj(Fj(Fj(Fj({},e),_),{},{payload:e,value:l?u:u[1],cx:h,cy:m,innerRadius:v,outerRadius:g,startAngle:x,endAngle:S},E&&E[c]&&E[c].props),{},{tooltipPayload:[iT(t,e)],tooltipPosition:dT(h,m,(v+g)/2,(x+S)/2)})})),layout:y}}));var Yj=Math.ceil,Xj=Math.max;var Zj=Bb,Kj=1/0;var Jj=function(e){return e?(e=Zj(e))===Kj||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0},Qj=function(e,t,n,r){for(var i=-1,o=Xj(Yj((t-e)/(n||1)),0),a=Array(o);o--;)a[r?o:++i]=e,e+=n;return a},eM=Xg,tM=Jj;var nM=_(function(e){return function(t,n,r){return r&&"number"!=typeof r&&eM(t,n,r)&&(n=r=void 0),t=tM(t),void 0===n?(n=t,t=0):n=tM(n),r=void 0===r?t<n?1:-1:tM(r),Qj(t,n,r,e)}}());function rM(e){return rM="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},rM(e)}function iM(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 oM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iM(Object(n),!0).forEach((function(t){aM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function aM(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==rM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==rM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===rM(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cM=["Webkit","Moz","O","ms"];function sM(e){return sM="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},sM(e)}function lM(){return lM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lM.apply(this,arguments)}function uM(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 fM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uM(Object(n),!0).forEach((function(t){vM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,gM(r.key),r)}}function dM(e,t){return dM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},dM(e,t)}function hM(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=yM(e);if(t){var i=yM(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===sM(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return mM(e)}(this,n)}}function mM(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yM(e){return yM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},yM(e)}function vM(e,t,n){return(t=gM(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gM(e){var t=function(e,t){if("object"!==sM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==sM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===sM(t)?t:String(t)}var bM=function(e){return e.changedTouches&&!!e.changedTouches.length},xM=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dM(e,t)}(a,p);var n,r,i,o=hM(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),vM(mM(t=o.call(this,e)),"handleDrag",(function(e){t.leaveTimer&&(clearTimeout(t.leaveTimer),t.leaveTimer=null),t.state.isTravellerMoving?t.handleTravellerMove(e):t.state.isSlideMoving&&t.handleSlideDrag(e)})),vM(mM(t),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleDrag(e.changedTouches[0])})),vM(mM(t),"handleDragEnd",(function(){t.setState({isTravellerMoving:!1,isSlideMoving:!1}),t.detachDragEndListener()})),vM(mM(t),"handleLeaveWrapper",(function(){(t.state.isTravellerMoving||t.state.isSlideMoving)&&(t.leaveTimer=window.setTimeout(t.handleDragEnd,t.props.leaveTimeOut))})),vM(mM(t),"handleEnterSlideOrTraveller",(function(){t.setState({isTextActive:!0})})),vM(mM(t),"handleLeaveSlideOrTraveller",(function(){t.setState({isTextActive:!1})})),vM(mM(t),"handleSlideDragStart",(function(e){var n=bM(e)?e.changedTouches[0]:e;t.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),t.attachDragEndListener()})),t.travellerDragStartHandlers={startX:t.handleTravellerDragStart.bind(mM(t),"startX"),endX:t.handleTravellerDragStart.bind(mM(t),"endX")},t.state={},t}return n=a,r=[{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,i=this.props,o=i.gap,c=i.data.length-1,s=Math.min(t,n),l=Math.max(t,n),u=a.getIndexInRange(r,s),f=a.getIndexInRange(r,l);return{startIndex:u-u%o,endIndex:f===c?c:f-f%o}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,i=t.dataKey,o=DC(n[e],i,e);return hi(r)?r(o,e):o}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,i=t.endX,o=this.props,a=o.x,c=o.width,s=o.travellerWidth,l=o.startIndex,u=o.endIndex,f=o.onChange,p=e.pageX-n;p>0?p=Math.min(p,a+c-s-i,a+c-s-r):p<0&&(p=Math.max(p,a-r,a-i));var d=this.getIndex({startX:r+p,endX:i+p});d.startIndex===l&&d.endIndex===u||!f||f(d),this.setState({startX:r+p,endX:i+p,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=bM(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,i=n.movingTravellerId,o=n.endX,a=n.startX,c=this.state[i],s=this.props,l=s.x,u=s.width,f=s.travellerWidth,p=s.onChange,d=s.gap,h=s.data,m={startX:this.state.startX,endX:this.state.endX},y=e.pageX-r;y>0?y=Math.min(y,l+u-f-c):y<0&&(y=Math.max(y,l-c)),m[i]=c+y;var v=this.getIndex(m),g=v.startIndex,b=v.endIndex;this.setState((vM(t={},i,c+y),vM(t,"brushMoveStartX",e.pageX),t),(function(){var e;p&&(e=h.length-1,("startX"===i&&(o>a?g%d==0:b%d==0)||o<a&&b===e||"endX"===i&&(o>a?b%d==0:g%d==0)||o>a&&b===e)&&p(v))}))}},{key:"renderBackground",value:function(){var t=this.props,n=t.x,r=t.y,i=t.width,o=t.height,a=t.fill,c=t.stroke;return e.createElement("rect",{stroke:c,fill:a,x:n,y:r,width:i,height:o})}},{key:"renderPanorama",value:function(){var t=this.props,n=t.x,r=t.y,i=t.width,o=t.height,a=t.data,c=t.children,s=t.padding,l=f.only(c);return l?e.cloneElement(l,{x:n,y:r,width:i,height:o,margin:s,compact:!0,data:a}):null}},{key:"renderTravellerLayer",value:function(t,n){var r=this.props,i=r.y,o=r.travellerWidth,c=r.height,s=r.traveller,l=Math.max(t,this.props.x),u=fM(fM({},hc(this.props)),{},{x:l,y:i,width:o,height:c});return e.createElement(_c,{className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[n],onTouchStart:this.travellerDragStartHandlers[n],style:{cursor:"col-resize"}},a.renderTraveller(s,u))}},{key:"renderSlide",value:function(t,n){var r=this.props,i=r.y,o=r.height,a=r.stroke,c=r.travellerWidth,s=Math.min(t,n)+c,l=Math.max(Math.abs(n-t)-c,0);return e.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:s,y:i,width:l,height:o})}},{key:"renderText",value:function(){var t=this.props,n=t.startIndex,r=t.endIndex,i=t.y,o=t.height,a=t.travellerWidth,c=t.stroke,s=this.state,l=s.startX,u=s.endX,f={pointerEvents:"none",fill:c};return e.createElement(_c,{className:"recharts-brush-texts"},e.createElement(kw,lM({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,u)-5,y:i+o/2},f),this.getTextOfTick(n)),e.createElement(kw,lM({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,u)+a+5,y:i+o/2},f),this.getTextOfTick(r)))}},{key:"render",value:function(){var t=this.props,n=t.data,r=t.className,i=t.children,o=t.x,a=t.y,c=t.width,s=t.height,l=t.alwaysShowText,u=this.state,f=u.startX,p=u.endX,d=u.isTextActive,h=u.isSlideMoving,m=u.isTravellerMoving;if(!n||!n.length||!Fa(o)||!Fa(a)||!Fa(c)||!Fa(s)||c<=0||s<=0)return null;var y=$r("recharts-brush",r),v=1===e.Children.count(i),g=function(e,t){if(!e)return null;var n=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),r=cM.reduce((function(e,r){return oM(oM({},e),{},aM({},r+n,t))}),{});return r[e]=t,r}("userSelect","none");return e.createElement(_c,{className:y,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:g},this.renderBackground(),v&&this.renderPanorama(),this.renderSlide(f,p),this.renderTravellerLayer(f,"startX"),this.renderTravellerLayer(p,"endX"),(d||h||m||l)&&this.renderText())}}],i=[{key:"renderDefaultTraveller",value:function(t){var n=t.x,r=t.y,i=t.width,o=t.height,a=t.stroke,c=Math.floor(r+o/2)-1;return e.createElement(e.Fragment,null,e.createElement("rect",{x:n,y:r,width:i,height:o,fill:a,stroke:"none"}),e.createElement("line",{x1:n+1,y1:c,x2:n+i-1,y2:c,fill:"none",stroke:"#fff"}),e.createElement("line",{x1:n+1,y1:c+2,x2:n+i-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):hi(t)?t(n):a.renderDefaultTraveller(n)}},{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=e.width,i=e.x,o=e.travellerWidth,a=e.updateId,c=e.startIndex,s=e.endIndex;if(n!==t.prevData||a!==t.prevUpdateId)return fM({prevData:n,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:r},n&&n.length?function(e){var t=e.data,n=e.startIndex,r=e.endIndex,i=e.x,o=e.width,a=e.travellerWidth;if(!t||!t.length)return{};var c=t.length,s=xk().domain(nM(0,c)).range([i,i+o-a]),l=s.domain().map((function(e){return s(e)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,startX:s(n),endX:s(r),scale:s,scaleValues:l}}({data:n,width:r,x:i,travellerWidth:o,startIndex:c,endIndex:s}):{scale:null,scaleValues:null});if(t.scale&&(r!==t.prevWidth||i!==t.prevX||o!==t.prevTravellerWidth)){t.scale.range([i,i+r-o]);var l=t.scale.domain().map((function(e){return t.scale(e)}));return{prevData:n,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:r,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:l}}return null}},{key:"getIndexInRange",value:function(e,t){for(var n=0,r=e.length-1;r-n>1;){var i=Math.floor((n+r)/2);e[i]>t?r=i:n=i}return t>=e[r]?r:n}}],r&&pM(n.prototype,r),i&&pM(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();vM(xM,"displayName","Brush"),vM(xM,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var wM=sg;var kM=Vc,EM=Zu,SM=function(e,t){var n;return wM(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n},_M=mi,OM=Xg;var AM=function(e,t,n){var r=_M(e)?kM:SM;return n&&OM(e,t,n)&&(t=void 0),r(e,EM(t))},CM=_(AM),TM=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t};var PM=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0},DM=sg;var jM=PM,MM=function(e,t){var n=!0;return DM(e,(function(e,r,i){return n=!!t(e,r,i)})),n},NM=Zu,IM=mi,RM=Xg;var LM=function(e,t,n){var r=IM(e)?jM:MM;return n&&RM(e,t,n)&&(t=void 0),r(e,NM(t))},FM=_(LM),zM=Mg;var BM=function(e,t,n){"__proto__"==t&&zM?zM(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},qM=BM,HM=ag,VM=Zu;var UM=function(e,t){var n={};return t=VM(t),HM(e,(function(e,r,i){qM(n,r,t(e,r,i))})),n},WM=_(UM),$M=["value","background"];function GM(e){return GM="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},GM(e)}function YM(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function XM(){return XM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},XM.apply(this,arguments)}function ZM(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 KM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ZM(Object(n),!0).forEach((function(t){rN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function JM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,iN(r.key),r)}}function QM(e,t){return QM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},QM(e,t)}function eN(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=nN(e);if(t){var i=nN(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===GM(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return tN(e)}(this,n)}}function tN(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nN(e){return nN=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},nN(e)}function rN(e,t,n){return(t=iN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iN(e){var t=function(e,t){if("object"!==GM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==GM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===GM(t)?t:String(t)}var oN=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&QM(e,t)}(a,p);var n,r,i,o=eN(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return rN(tN(e=o.call.apply(o,[this].concat(n))),"state",{isAnimationFinished:!1}),rN(tN(e),"id",qa("recharts-bar-")),rN(tN(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),t&&t()})),rN(tN(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),t&&t()})),e}return n=a,r=[{key:"renderRectanglesStatically",value:function(t){var n=this,r=this.props.shape,i=hc(this.props);return t&&t.map((function(t,o){var c=KM(KM(KM({},i),t),{},{index:o});return e.createElement(_c,XM({className:"recharts-bar-rectangle"},Qa(n.props,t,o),{key:"rectangle-".concat(o),role:"img"}),a.renderRectangle(r,c))}))}},{key:"renderRectanglesWithAnimation",value:function(){var t=this,n=this.props,r=n.data,i=n.layout,o=n.isAnimationActive,a=n.animationBegin,c=n.animationDuration,s=n.animationEasing,l=n.animationId,u=this.state.prevData;return e.createElement(Zv,{begin:a,duration:c,isActive:o,easing:s,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var o=n.t,a=r.map((function(e,t){var n=u&&u[t];if(n){var r=Ua(n.x,e.x),a=Ua(n.y,e.y),c=Ua(n.width,e.width),s=Ua(n.height,e.height);return KM(KM({},e),{},{x:r(o),y:a(o),width:c(o),height:s(o)})}if("horizontal"===i){var l=Ua(0,e.height)(o);return KM(KM({},e),{},{y:e.y+e.height-l,height:l})}var f=Ua(0,e.width)(o);return KM(KM({},e),{},{width:f})}));return e.createElement(_c,null,t.renderRectanglesStatically(a))}))}},{key:"renderRectangles",value:function(){var e=this.props,t=e.data,n=e.isAnimationActive,r=this.state.prevData;return!(n&&t&&t.length)||r&&Sw(r,t)?this.renderRectanglesStatically(t):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var e=this,t=this.props.data,n=hc(this.props.background);return t.map((function(t,r){t.value;var i=t.background,o=YM(t,$M);if(!i)return null;var c=KM(KM(KM(KM(KM({},o),{},{fill:"#eee"},i),n),Qa(e.props,t,r)),{},{index:r,key:"background-bar-".concat(r),className:"recharts-bar-background-rectangle"});return a.renderRectangle(e.props.background,c)}))}},{key:"renderErrorBar",value:function(t,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,i=r.data,o=r.xAxis,a=r.yAxis,c=r.layout,s=sc(r.children,SC);if(!s)return null;var l="vertical"===c?i[0].height/2:i[0].width/2;function u(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:DC(e,t)}}var f={clipPath:t?"url(#clipPath-".concat(n,")"):null};return e.createElement(_c,f,s.map((function(t,n){return e.cloneElement(t,{key:"error-bar-".concat(n),data:i,xAxis:o,yAxis:a,layout:c,offset:l,dataPointFormatter:u})})))}},{key:"render",value:function(){var t=this.props,n=t.hide,r=t.data,i=t.className,o=t.xAxis,a=t.yAxis,c=t.left,s=t.top,l=t.width,u=t.height,f=t.isAnimationActive,p=t.background,d=t.id;if(n||!r||!r.length)return null;var h=this.state.isAnimationFinished,m=$r("recharts-bar",i),y=o&&o.allowDataOverflow||a&&a.allowDataOverflow,v=Sa(d)?this.id:d;return e.createElement(_c,{className:m},y?e.createElement("defs",null,e.createElement("clipPath",{id:"clipPath-".concat(v)},e.createElement("rect",{x:c,y:s,width:l,height:u}))):null,e.createElement(_c,{className:"recharts-bar-rectangles",clipPath:y?"url(#clipPath-".concat(v,")"):null},p?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(y,v),(!f||h)&&WT.renderCallByParent(this.props,r))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curData:e.data,prevData:t.curData}:e.data!==t.curData?{curData:e.data}:null}},{key:"renderRectangle",value:function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):hi(t)?t(n):e.createElement(CP,n)}}],r&&JM(n.prototype,r),i&&JM(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function aN(e){return aN="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},aN(e)}function cN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fN(r.key),r)}}function sN(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 lN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sN(Object(n),!0).forEach((function(t){uN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function uN(e,t,n){return(t=fN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fN(e){var t=function(e,t){if("object"!==aN(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==aN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===aN(t)?t:String(t)}rN(oN,"displayName","Bar"),rN(oN,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",isAnimationActive:!db.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),rN(oN,"getComposedData",(function(e){var t=e.props,n=e.item,r=e.barPosition,i=e.bandSize,o=e.xAxis,a=e.yAxis,c=e.xAxisTicks,s=e.yAxisTicks,l=e.stackedData,u=e.dataStartIndex,f=e.displayedData,p=e.offset,d=UC(r,n);if(!d)return null;var h=t.layout,m=n.props,y=m.dataKey,v=m.children,g=m.minPointSize,b="horizontal"===h?a:o,x=l?b.scale.domain():null,w=KC({numericAxis:b}),k=sc(v,lx),E=f.map((function(e,t){var r,f,p,m,v,b;if(l?r=WC(l[u+t],x):(r=DC(e,y),yi(r)||(r=[w,r])),"horizontal"===h){var E,S=[a.scale(r[0]),a.scale(r[1])],_=S[0],O=S[1];f=ZC({axis:o,ticks:c,bandSize:i,offset:d.offset,entry:e,index:t}),p=null!==(E=null!=O?O:_)&&void 0!==E?E:void 0,m=d.size;var A=_-O;if(v=Number.isNaN(A)?0:A,b={x:f,y:a.y,width:m,height:a.height},Math.abs(g)>0&&Math.abs(v)<Math.abs(g)){var C=Ra(v||g)*(Math.abs(g)-Math.abs(v));p-=C,v+=C}}else{var T=[o.scale(r[0]),o.scale(r[1])],P=T[0],D=T[1];if(f=P,p=ZC({axis:a,ticks:s,bandSize:i,offset:d.offset,entry:e,index:t}),m=D-P,v=d.size,b={x:o.x,y:p,width:o.width,height:v},Math.abs(g)>0&&Math.abs(m)<Math.abs(g))m+=Ra(m||g)*(Math.abs(g)-Math.abs(m))}return KM(KM(KM({},e),{},{x:f,y:p,width:m,height:v,value:l?r:r[1],payload:e,background:b},k&&k[t]&&k[t].props),{},{tooltipPayload:[iT(n,e)],tooltipPosition:{x:f+m/2,y:p+v/2}})}));return KM({data:E,layout:h},p)}));var pN=function(e,t,n,r,i){var o=e.width,a=e.height,c=e.layout,s=e.children,l=Object.keys(t),u={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:a-n.bottom,bottomMirror:a-n.bottom},f=!!lc(s,oN);return l.reduce((function(o,a){var s,l,p,d,h,m=t[a],y=m.orientation,v=m.domain,g=m.padding,b=void 0===g?{}:g,x=m.mirror,w=m.reversed,k="".concat(y).concat(x?"Mirror":"");if("number"===m.type&&("gap"===m.padding||"no-gap"===m.padding)){var E=v[1]-v[0],S=1/0,_=m.categoricalDomain.sort();_.forEach((function(e,t){t>0&&(S=Math.min((e||0)-(_[t-1]||0),S))}));var O=S/E,A="vertical"===m.layout?n.height:n.width;if("gap"===m.padding&&(s=O*A/2),"no-gap"===m.padding){var C=Ha(e.barCategoryGap,O*A),T=O*A/2;s=T-C-(T-C)/A*C}}l="xAxis"===r?[n.left+(b.left||0)+(s||0),n.left+n.width-(b.right||0)-(s||0)]:"yAxis"===r?"horizontal"===c?[n.top+n.height-(b.bottom||0),n.top+(b.top||0)]:[n.top+(b.top||0)+(s||0),n.top+n.height-(b.bottom||0)-(s||0)]:m.range,w&&(l=[l[1],l[0]]);var P=qC(m,i,f),D=P.scale,j=P.realScaleType;D.domain(v).range(l),VC(D);var M=YC(D,lN(lN({},m),{},{realScaleType:j}));"xAxis"===r?(h="top"===y&&!x||"bottom"===y&&x,p=n.left,d=u[k]-h*m.height):"yAxis"===r&&(h="left"===y&&!x||"right"===y&&x,p=u[k]-h*m.width,d=n.top);var N=lN(lN(lN({},m),M),{},{realScaleType:j,x:p,y:d,scale:D,width:"xAxis"===r?n.width:m.width,height:"yAxis"===r?n.height:m.height});return N.bandSize=nT(N,M),m.hide||"xAxis"!==r?m.hide||(u[k]+=(h?-1:1)*N.width):u[k]+=(h?-1:1)*N.height,lN(lN({},o),{},uN({},a,N))}),{})},dN=function(e,t){var n=e.x,r=e.y,i=t.x,o=t.y;return{x:Math.min(n,i),y:Math.min(r,o),width:Math.abs(i-n),height:Math.abs(o-r)}},hN=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scale=t}var t,n,r;return t=e,n=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,r=t.position;if(void 0!==e){if(r)switch(r){case"start":default:return this.scale(e);case"middle":var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+i;case"end":var o=this.bandwidth?this.bandwidth():0;return this.scale(e)+o}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}}],r=[{key:"create",value:function(t){return new e(t)}}],n&&cN(t.prototype,n),r&&cN(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();uN(hN,"EPS",1e-4);var mN=function(e){var t=Object.keys(e).reduce((function(t,n){return lN(lN({},t),{},uN({},n,hN.create(e[n])))}),{});return lN(lN({},t),{},{apply:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,i=n.position;return WM(e,(function(e,n){return t[n].apply(e,{bandAware:r,position:i})}))},isInRange:function(e){return FM(e,(function(e,n){return t[n].isInRange(e)}))}})};function yN(e){return yN="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},yN(e)}function vN(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 gN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vN(Object(n),!0).forEach((function(t){bN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bN(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==yN(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==yN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===yN(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xN(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,c=[],s=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return wN(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 wN(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 wN(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function kN(){return kN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kN.apply(this,arguments)}function EN(t){var n=t.x,r=t.y,i=t.segment,o=t.xAxis,a=t.yAxis,c=t.shape,s=t.className,l=t.alwaysShow,u=t.clipPathId;ix(void 0===l,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=function(e,t,n,r,i){var o=i.viewBox,a=o.x,c=o.y,s=o.width,l=o.height,u=i.position;if(n){var f=i.y,p=i.yAxis.orientation,d=e.y.apply(f,{position:u});if(TM(i,"discard")&&!e.y.isInRange(d))return null;var h=[{x:a+s,y:d},{x:a,y:d}];return"left"===p?h.reverse():h}if(t){var m=i.x,y=i.xAxis.orientation,v=e.x.apply(m,{position:u});if(TM(i,"discard")&&!e.x.isInRange(v))return null;var g=[{x:v,y:c+l},{x:v,y:c}];return"top"===y?g.reverse():g}if(r){var b=i.segment.map((function(t){return e.apply(t,{position:u})}));return TM(i,"discard")&&CM(b,(function(t){return!e.isInRange(t)}))?null:b}return null}(mN({x:o.scale,y:a.scale}),za(n),za(r),i&&2===i.length,t);if(!f)return null;var p=xN(f,2),d=p[0],h=d.x,m=d.y,y=p[1],v=y.x,g=y.y,b=gN(gN({clipPath:TM(t,"hidden")?"url(#".concat(u,")"):void 0},hc(t,!0)),{},{x1:h,y1:m,x2:v,y2:g});return e.createElement(_c,{className:$r("recharts-reference-line",s)},function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):hi(t)?t(n):e.createElement("line",kN({},n,{className:"recharts-reference-line-line"}))}(c,b),DT.renderCallByParent(t,function(e){var t=e.x1,n=e.y1,r=e.x2,i=e.y2;return dN({x:t,y:n},{x:r,y:i})}({x1:h,y1:m,x2:v,y2:g})))}function SN(e){return SN="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},SN(e)}function _N(){return _N=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_N.apply(this,arguments)}function ON(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 AN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ON(Object(n),!0).forEach((function(t){CN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ON(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function CN(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==SN(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==SN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===SN(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}EN.displayName="ReferenceLine",EN.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};function TN(t){var n=t.x,r=t.y,i=t.r,o=t.alwaysShow,a=t.clipPathId,c=za(n),s=za(r);if(ix(void 0===o,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!s)return null;var l=function(e){var t=e.x,n=e.y,r=e.xAxis,i=e.yAxis,o=mN({x:r.scale,y:i.scale}),a=o.apply({x:t,y:n},{bandAware:!0});return TM(e,"discard")&&!o.isInRange(a)?null:a}(t);if(!l)return null;var u=l.x,f=l.y,p=t.shape,d=t.className,h=AN(AN({clipPath:TM(t,"hidden")?"url(#".concat(a,")"):void 0},hc(t,!0)),{},{cx:u,cy:f});return e.createElement(_c,{className:$r("recharts-reference-dot",d)},TN.renderDot(p,h),DT.renderCallByParent(t,{x:u-i,y:f-i,width:2*i,height:2*i}))}function PN(e){return PN="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},PN(e)}function DN(){return DN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},DN.apply(this,arguments)}function jN(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 MN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jN(Object(n),!0).forEach((function(t){NN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function NN(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==PN(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==PN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===PN(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}TN.displayName="ReferenceDot",TN.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},TN.renderDot=function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):hi(t)?t(n):e.createElement(YP,_N({},n,{cx:n.cx,cy:n.cy,className:"recharts-reference-dot-dot"}))};function IN(t){var n=t.x1,r=t.x2,i=t.y1,o=t.y2,a=t.className,c=t.alwaysShow,s=t.clipPathId;ix(void 0===c,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=za(n),u=za(r),f=za(i),p=za(o),d=t.shape;if(!(l||u||f||p||d))return null;var h=function(e,t,n,r,i){var o=i.x1,a=i.x2,c=i.y1,s=i.y2,l=i.xAxis,u=i.yAxis;if(!l||!u)return null;var f=mN({x:l.scale,y:u.scale}),p={x:e?f.x.apply(o,{position:"start"}):f.x.rangeMin,y:n?f.y.apply(c,{position:"start"}):f.y.rangeMin},d={x:t?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:r?f.y.apply(s,{position:"end"}):f.y.rangeMax};return!TM(i,"discard")||f.isInRange(p)&&f.isInRange(d)?dN(p,d):null}(l,u,f,p,t);if(!h&&!d)return null;var m=TM(t,"hidden")?"url(#".concat(s,")"):void 0;return e.createElement(_c,{className:$r("recharts-reference-area",a)},IN.renderRect(d,MN(MN({clipPath:m},hc(t,!0)),h)),DT.renderCallByParent(t,h))}function RN(e,t,n){if(t<1)return[];if(1===t&&void 0===n)return e;for(var r=[],i=0;i<e.length;i+=t){if(void 0!==n&&!0!==n(e[i]))return;r.push(e[i])}return r}function LN(e){return LN="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},LN(e)}function FN(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 zN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?FN(Object(n),!0).forEach((function(t){BN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function BN(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==LN(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==LN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===LN(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qN(e,t){var n,r,i=e.ticks,o=e.tickFormatter,a=e.viewBox,c=e.orientation,s=e.minTickGap,l=e.unit,u=e.fontSize,f=e.letterSpacing,p=a.x,d=a.y,h=a.width,m=a.height,y="top"===c||"bottom"===c?"width":"height",v=(i||[]).slice(),g=l&&"width"===y?nw(l,{fontSize:u,letterSpacing:f})[y]:0,b=v.length,x=b>=2?Ra(v[1].coordinate-v[0].coordinate):1;if(1===x?(n="width"===y?p:d,r="width"===y?p+h:d+m):(n="width"===y?p+h:d+m,r="width"===y?p:d),t){var w=i[b-1],k=hi(o)?o(w.value,b-1):w.value,E=nw(k,{fontSize:u,letterSpacing:f})[y]+g,S=x*(w.coordinate+x*E/2-r);v[b-1]=w=zN(zN({},w),{},{tickCoord:S>0?w.coordinate-S*x:w.coordinate}),x*(w.tickCoord-x*E/2-n)>=0&&x*(w.tickCoord+x*E/2-r)<=0&&(r=w.tickCoord-x*(E/2+s),v[b-1]=zN(zN({},w),{},{isShow:!0}))}for(var _=t?b-1:b,O=0;O<_;O++){var A=v[O],C=hi(o)?o(A.value,O):A.value,T=nw(C,{fontSize:u,letterSpacing:f})[y]+g;if(0===O){var P=x*(A.coordinate-x*T/2-n);v[O]=A=zN(zN({},A),{},{tickCoord:P<0?A.coordinate-P*x:A.coordinate})}else v[O]=A=zN(zN({},A),{},{tickCoord:A.coordinate});x*(A.tickCoord-x*T/2-n)>=0&&x*(A.tickCoord+x*T/2-r)<=0&&(n=A.tickCoord+x*(T/2+s),v[O]=zN(zN({},A),{},{isShow:!0}))}return v}function HN(e,t,n){var r=e.tick,i=e.ticks,o=e.viewBox,a=e.minTickGap,c=e.orientation,s=e.interval,l=e.tickFormatter,u=e.unit;if(!i||!i.length||!r)return[];if(Fa(s)||db.isSsr)return function(e,t){return RN(e,t+1)}(i,"number"==typeof s&&Fa(s)?s:0);var f=[];return"equidistantPreserveStart"===s?function(e){for(var t=1,n=RN(e,t,(function(e){return e.isShow}));t<=e.length;){if(void 0!==n)return n;n=RN(e,++t,(function(e){return e.isShow}))}return e.slice(0,1)}(f=qN({ticks:i,tickFormatter:l,viewBox:o,orientation:c,minTickGap:a,unit:u,fontSize:t,letterSpacing:n})):(f="preserveStart"===s||"preserveStartEnd"===s?qN({ticks:i,tickFormatter:l,viewBox:o,orientation:c,minTickGap:a,unit:u,fontSize:t,letterSpacing:n},"preserveStartEnd"===s):function(e){var t,n,r=e.ticks,i=e.tickFormatter,o=e.viewBox,a=e.orientation,c=e.minTickGap,s=e.unit,l=e.fontSize,u=e.letterSpacing,f=o.x,p=o.y,d=o.width,h=o.height,m="top"===a||"bottom"===a?"width":"height",y=s&&"width"===m?nw(s,{fontSize:l,letterSpacing:u})[m]:0,v=(r||[]).slice(),g=v.length,b=g>=2?Ra(v[1].coordinate-v[0].coordinate):1;1===b?(t="width"===m?f:p,n="width"===m?f+d:p+h):(t="width"===m?f+d:p+h,n="width"===m?f:p);for(var x=g-1;x>=0;x--){var w=v[x],k=hi(i)?i(w.value,g-x-1):w.value,E=nw(k,{fontSize:l,letterSpacing:u})[m]+y;if(x===g-1){var S=b*(w.coordinate+b*E/2-n);v[x]=w=zN(zN({},w),{},{tickCoord:S>0?w.coordinate-S*b:w.coordinate})}else v[x]=w=zN(zN({},w),{},{tickCoord:w.coordinate});b*(w.tickCoord-b*E/2-t)>=0&&b*(w.tickCoord+b*E/2-n)<=0&&(n=w.tickCoord-b*(E/2+c),v[x]=zN(zN({},w),{},{isShow:!0}))}return v}({ticks:i,tickFormatter:l,viewBox:o,orientation:c,minTickGap:a,unit:u,fontSize:t,letterSpacing:n}),f.filter((function(e){return e.isShow})))}IN.displayName="ReferenceArea",IN.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},IN.renderRect=function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):hi(t)?t(n):e.createElement(CP,DN({},n,{className:"recharts-reference-area-rect"}))};var VN=["viewBox"],UN=["viewBox"],WN=["ticks"];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},$N(e)}function GN(){return GN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},GN.apply(this,arguments)}function YN(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 XN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?YN(Object(n),!0).forEach((function(t){tI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ZN(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function KN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,nI(r.key),r)}}function JN(e,t){return JN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},JN(e,t)}function QN(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=eI(e);if(t){var i=eI(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===$N(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function eI(e){return eI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},eI(e)}function tI(e,t,n){return(t=nI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nI(e){var t=function(e,t){if("object"!==$N(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==$N(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===$N(t)?t:String(t)}var rI=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&JN(e,t)}(a,g);var n,r,i,o=QN(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).state={fontSize:"",letterSpacing:""},t}return n=a,r=[{key:"shouldComponentUpdate",value:function(e,t){var n=e.viewBox,r=ZN(e,VN),i=this.props,o=i.viewBox,a=ZN(i,UN);return!$a(n,o)||!$a(r,a)||!$a(t,this.state)}},{key:"componentDidMount",value:function(){var e=this.layerReference;if(e){var t=e.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];t&&this.setState({fontSize:window.getComputedStyle(t).fontSize,letterSpacing:window.getComputedStyle(t).letterSpacing})}}},{key:"getTickLineCoord",value:function(e){var t,n,r,i,o,a,c=this.props,s=c.x,l=c.y,u=c.width,f=c.height,p=c.orientation,d=c.tickSize,h=c.mirror,m=c.tickMargin,y=h?-1:1,v=e.tickSize||d,g=Fa(e.tickCoord)?e.tickCoord:e.coordinate;switch(p){case"top":t=n=e.coordinate,a=(r=(i=l+ +!h*f)-y*v)-y*m,o=g;break;case"left":r=i=e.coordinate,o=(t=(n=s+ +!h*u)-y*v)-y*m,a=g;break;case"right":r=i=e.coordinate,o=(t=(n=s+ +h*u)+y*v)+y*m,a=g;break;default:t=n=e.coordinate,a=(r=(i=l+ +h*f)+y*v)+y*m,o=g}return{line:{x1:t,y1:r,x2:n,y2:i},tick:{x:o,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 t=this.props,n=t.x,r=t.y,i=t.width,o=t.height,a=t.orientation,c=t.mirror,s=t.axisLine,l=XN(XN(XN({},hc(this.props)),hc(s)),{},{fill:"none"});if("top"===a||"bottom"===a){var u=+("top"===a&&!c||"bottom"===a&&c);l=XN(XN({},l),{},{x1:n,y1:r+u*o,x2:n+i,y2:r+u*o})}else{var f=+("left"===a&&!c||"right"===a&&c);l=XN(XN({},l),{},{x1:n+f*i,y1:r,x2:n+f*i,y2:r+o})}return e.createElement("line",GN({},l,{className:$r("recharts-cartesian-axis-line",ka(s,"className"))}))}},{key:"renderTicks",value:function(t,n,r){var i=this,o=this.props,c=o.tickLine,s=o.stroke,l=o.tick,u=o.tickFormatter,f=o.unit,p=HN(XN(XN({},this.props),{},{ticks:t}),n,r),d=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),m=hc(this.props),y=hc(l),v=XN(XN({},m),{},{fill:"none"},hc(c)),g=p.map((function(t,n){var r=i.getTickLineCoord(t),o=r.line,g=r.tick,b=XN(XN(XN(XN({textAnchor:d,verticalAnchor:h},m),{},{stroke:"none",fill:s},y),g),{},{index:n,payload:t,visibleTicksCount:p.length,tickFormatter:u});return e.createElement(_c,GN({className:"recharts-cartesian-axis-tick",key:"tick-".concat(n)},Qa(i.props,t,n)),c&&e.createElement("line",GN({},v,o,{className:$r("recharts-cartesian-axis-tick-line",ka(c,"className"))})),l&&a.renderTickItem(l,b,"".concat(hi(u)?u(t.value,n):t.value).concat(f||"")))}));return e.createElement("g",{className:"recharts-cartesian-axis-ticks"},g)}},{key:"render",value:function(){var t=this,n=this.props,r=n.axisLine,i=n.width,o=n.height,a=n.ticksGenerator,c=n.className;if(n.hide)return null;var s=this.props,l=s.ticks,u=ZN(s,WN),f=l;return hi(a)&&(f=l&&l.length>0?a(this.props):a(u)),i<=0||o<=0||!f||!f.length?null:e.createElement(_c,{className:$r("recharts-cartesian-axis",c),ref:function(e){t.layerReference=e}},r&&this.renderAxisLine(),this.renderTicks(f,this.state.fontSize,this.state.letterSpacing),DT.renderCallByParent(this.props))}}],i=[{key:"renderTickItem",value:function(t,n,r){return e.isValidElement(t)?e.cloneElement(t,n):hi(t)?t(n):e.createElement(kw,GN({},n,{className:"recharts-cartesian-axis-tick-value"}),r)}}],r&&KN(n.prototype,r),i&&KN(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();tI(rI,"displayName","CartesianAxis"),tI(rI,"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"});var iI=["x1","y1","x2","y2","key"];function oI(e){return oI="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},oI(e)}function aI(){return aI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},aI.apply(this,arguments)}function cI(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function sI(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 lI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sI(Object(n),!0).forEach((function(t){hI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function uI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mI(r.key),r)}}function fI(e,t){return fI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fI(e,t)}function pI(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=dI(e);if(t){var i=dI(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===oI(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function dI(e){return dI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},dI(e)}function hI(e,t,n){return(t=mI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mI(e){var t=function(e,t){if("object"!==oI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==oI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===oI(t)?t:String(t)}var yI=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fI(e,t)}(a,p);var n,r,i,o=pI(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return n=a,r=[{key:"renderHorizontal",value:function(t){var n=this,r=this.props,i=r.x,o=r.width,c=r.horizontal;if(!t||!t.length)return null;var s=t.map((function(e,t){var r=lI(lI({},n.props),{},{x1:i,y1:e,x2:i+o,y2:e,key:"line-".concat(t),index:t});return a.renderLineItem(c,r)}));return e.createElement("g",{className:"recharts-cartesian-grid-horizontal"},s)}},{key:"renderVertical",value:function(t){var n=this,r=this.props,i=r.y,o=r.height,c=r.vertical;if(!t||!t.length)return null;var s=t.map((function(e,t){var r=lI(lI({},n.props),{},{x1:e,y1:i,x2:e,y2:i+o,key:"line-".concat(t),index:t});return a.renderLineItem(c,r)}));return e.createElement("g",{className:"recharts-cartesian-grid-vertical"},s)}},{key:"renderVerticalStripes",value:function(t){var n=this.props.verticalFill;if(!n||!n.length)return null;var r=this.props,i=r.fillOpacity,o=r.x,a=r.y,c=r.width,s=r.height,l=t.map((function(e){return Math.round(e+o-o)})).sort((function(e,t){return e-t}));o!==l[0]&&l.unshift(0);var u=l.map((function(t,r){var u=l[r+1]?l[r+1]-t:o+c-t;if(u<=0)return null;var f=r%n.length;return e.createElement("rect",{key:"react-".concat(r),x:t,y:a,width:u,height:s,stroke:"none",fill:n[f],fillOpacity:i,className:"recharts-cartesian-grid-bg"})}));return e.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},u)}},{key:"renderHorizontalStripes",value:function(t){var n=this.props.horizontalFill;if(!n||!n.length)return null;var r=this.props,i=r.fillOpacity,o=r.x,a=r.y,c=r.width,s=r.height,l=t.map((function(e){return Math.round(e+a-a)})).sort((function(e,t){return e-t}));a!==l[0]&&l.unshift(0);var u=l.map((function(t,r){var u=l[r+1]?l[r+1]-t:a+s-t;if(u<=0)return null;var f=r%n.length;return e.createElement("rect",{key:"react-".concat(r),y:t,x:o,height:u,width:c,stroke:"none",fill:n[f],fillOpacity:i,className:"recharts-cartesian-grid-bg"})}));return e.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},u)}},{key:"renderBackground",value:function(){var t=this.props.fill;if(!t||"none"===t)return null;var n=this.props,r=n.fillOpacity,i=n.x,o=n.y,a=n.width,c=n.height;return e.createElement("rect",{x:i,y:o,width:a,height:c,stroke:"none",fill:t,fillOpacity:r,className:"recharts-cartesian-grid-bg"})}},{key:"render",value:function(){var t=this.props,n=t.x,r=t.y,i=t.width,o=t.height,a=t.horizontal,c=t.vertical,s=t.horizontalCoordinatesGenerator,l=t.verticalCoordinatesGenerator,u=t.xAxis,f=t.yAxis,p=t.offset,d=t.chartWidth,h=t.chartHeight;if(!Fa(i)||i<=0||!Fa(o)||o<=0||!Fa(n)||n!==+n||!Fa(r)||r!==+r)return null;var m=this.props,y=m.horizontalPoints,v=m.verticalPoints;return y&&y.length||!hi(s)||(y=s({yAxis:f,width:d,height:h,offset:p})),v&&v.length||!hi(l)||(v=l({xAxis:u,width:d,height:h,offset:p})),e.createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),a&&this.renderHorizontal(y),c&&this.renderVertical(v),a&&this.renderHorizontalStripes(y),c&&this.renderVerticalStripes(v))}}],i=[{key:"renderLineItem",value:function(t,n){var r;if(e.isValidElement(t))r=e.cloneElement(t,n);else if(hi(t))r=t(n);else{var i=n.x1,o=n.y1,a=n.x2,c=n.y2,s=n.key,l=cI(n,iI);r=e.createElement("line",aI({},hc(l),{x1:i,y1:o,x2:a,y2:c,fill:"none",key:s}))}return r}}],r&&uI(n.prototype,r),i&&uI(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();hI(yI,"displayName","CartesianGrid"),hI(yI,"defaultProps",{horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]});var vI=["type","layout","connectNulls","ref"];function gI(e){return gI="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},gI(e)}function bI(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function xI(){return xI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xI.apply(this,arguments)}function wI(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 kI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wI(Object(n),!0).forEach((function(t){PI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function EI(e){return function(e){if(Array.isArray(e))return SI(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return SI(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 SI(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 SI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _I(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,DI(r.key),r)}}function OI(e,t){return OI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},OI(e,t)}function AI(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=TI(e);if(t){var i=TI(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===gI(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return CI(e)}(this,n)}}function CI(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TI(e){return TI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},TI(e)}function PI(e,t,n){return(t=DI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DI(e){var t=function(e,t){if("object"!==gI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==gI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===gI(t)?t:String(t)}var jI=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&OI(e,t)}(a,p);var n,r,i,o=AI(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return PI(CI(e=o.call.apply(o,[this].concat(n))),"state",{isAnimationFinished:!0,totalLength:0}),PI(CI(e),"getStrokeDasharray",(function(e,t,n){for(var r=n.reduce((function(e,t){return e+t})),i=Math.floor(e/r),o=e%r,c=t-e,s=[],l=0,u=0;;u+=n[l],++l)if(u+n[l]>o){s=[].concat(EI(n.slice(0,l)),[o-u]);break}var f=s.length%2==0?[0,c]:[c];return[].concat(EI(a.repeat(n,i)),EI(s),f).map((function(e){return"".concat(e,"px")})).join(", ")})),PI(CI(e),"id",qa("recharts-line-")),PI(CI(e),"pathRef",(function(t){e.mainCurve=t})),PI(CI(e),"handleAnimationEnd",(function(){e.setState({isAnimationFinished:!0}),e.props.onAnimationEnd&&e.props.onAnimationEnd()})),PI(CI(e),"handleAnimationStart",(function(){e.setState({isAnimationFinished:!1}),e.props.onAnimationStart&&e.props.onAnimationStart()})),e}return n=a,r=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var e=this.getTotalLength();this.setState({totalLength:e})}}},{key:"getTotalLength",value:function(){var e=this.mainCurve;try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch(e){return 0}}},{key:"renderErrorBar",value:function(t,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,i=r.points,o=r.xAxis,a=r.yAxis,c=r.layout,s=sc(r.children,SC);if(!s)return null;function l(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:DC(e.payload,t)}}var u={clipPath:t?"url(#clipPath-".concat(n,")"):null};return e.createElement(_c,u,s.map((function(t,n){return e.cloneElement(t,{key:"bar-".concat(n),data:i,xAxis:o,yAxis:a,layout:c,dataPointFormatter:l})})))}},{key:"renderDots",value:function(t,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,i=r.dot,o=r.points,c=r.dataKey,s=hc(this.props),l=hc(i,!0),u=o.map((function(e,t){var n=kI(kI(kI({key:"dot-".concat(t),r:3},s),l),{},{value:e.value,dataKey:c,cx:e.x,cy:e.y,index:t,payload:e.payload});return a.renderDotItem(i,n)})),f={clipPath:t?"url(#clipPath-".concat(n,")"):null};return e.createElement(_c,xI({className:"recharts-line-dots",key:"dots"},f,{role:"img"}),u)}},{key:"renderCurveStatically",value:function(t,n,r,i){var o=this.props,a=o.type,c=o.layout,s=o.connectNulls;o.ref;var l=bI(o,vI),u=kI(kI(kI({},hc(l,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:n?"url(#clipPath-".concat(r,")"):null,points:t},i),{},{type:a,layout:c,connectNulls:s});return e.createElement(yP,xI({},u,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(t,n){var r=this,i=this.props,o=i.points,a=i.strokeDasharray,c=i.isAnimationActive,s=i.animationBegin,l=i.animationDuration,u=i.animationEasing,f=i.animationId,p=i.animateNewValues,d=i.width,h=i.height,m=this.state,y=m.prevPoints,v=m.totalLength;return e.createElement(Zv,{begin:s,duration:l,isActive:c,easing:u,from:{t:0},to:{t:1},key:"line-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(e){var i=e.t;if(y){var c=y.length/o.length,s=o.map((function(e,t){var n=Math.floor(t*c);if(y[n]){var r=y[n],o=Ua(r.x,e.x),a=Ua(r.y,e.y);return kI(kI({},e),{},{x:o(i),y:a(i)})}if(p){var s=Ua(2*d,e.x),l=Ua(h/2,e.y);return kI(kI({},e),{},{x:s(i),y:l(i)})}return kI(kI({},e),{},{x:e.x,y:e.y})}));return r.renderCurveStatically(s,t,n)}var l,u=Ua(0,v)(i);if(a){var f="".concat(a).split(/[,\s]+/gim).map((function(e){return parseFloat(e)}));l=r.getStrokeDasharray(u,v,f)}else l="".concat(u,"px ").concat(v-u,"px");return r.renderCurveStatically(o,t,n,{strokeDasharray:l})}))}},{key:"renderCurve",value:function(e,t){var n=this.props,r=n.points,i=n.isAnimationActive,o=this.state,a=o.prevPoints,c=o.totalLength;return i&&r&&r.length&&(!a&&c>0||!Sw(a,r))?this.renderCurveWithAnimation(e,t):this.renderCurveStatically(r,e,t)}},{key:"render",value:function(){var t=this.props,n=t.hide,r=t.dot,i=t.points,o=t.className,a=t.xAxis,c=t.yAxis,s=t.top,l=t.left,u=t.width,f=t.height,p=t.isAnimationActive,d=t.id;if(n||!i||!i.length)return null;var h=this.state.isAnimationFinished,m=1===i.length,y=$r("recharts-line",o),v=a&&a.allowDataOverflow||c&&c.allowDataOverflow,g=Sa(d)?this.id:d;return e.createElement(_c,{className:y},v?e.createElement("defs",null,e.createElement("clipPath",{id:"clipPath-".concat(g)},e.createElement("rect",{x:l,y:s,width:u,height:f}))):null,!m&&this.renderCurve(v,g),this.renderErrorBar(v,g),(m||r)&&this.renderDots(v,g),(!p||h)&&WT.renderCallByParent(this.props,i))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,prevPoints:t.curPoints}:e.points!==t.curPoints?{curPoints:e.points}:null}},{key:"repeat",value:function(e,t){for(var n=e.length%2!=0?[].concat(EI(e),[0]):e,r=[],i=0;i<t;++i)r=[].concat(EI(r),EI(n));return r}},{key:"renderDotItem",value:function(t,n){var r;if(e.isValidElement(t))r=e.cloneElement(t,n);else if(hi(t))r=t(n);else{var i=$r("recharts-line-dot",t?t.className:"");r=e.createElement(YP,xI({},n,{className:i}))}return r}}],r&&_I(n.prototype,r),i&&_I(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();PI(jI,"displayName","Line"),PI(jI,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!db.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),PI(jI,"getComposedData",(function(e){var t=e.props,n=e.xAxis,r=e.yAxis,i=e.xAxisTicks,o=e.yAxisTicks,a=e.dataKey,c=e.bandSize,s=e.displayedData,l=e.offset,u=t.layout;return kI({points:s.map((function(e,t){var s=DC(e,a);return"horizontal"===u?{x:XC({axis:n,ticks:i,bandSize:c,entry:e,index:t}),y:Sa(s)?null:r.scale(s),value:s,payload:e}:{x:Sa(s)?null:n.scale(s),y:XC({axis:r,ticks:o,bandSize:c,entry:e,index:t}),value:s,payload:e}})),layout:u},l)}));var MI=["layout","type","stroke","connectNulls","isRange","ref"];function NI(e){return NI="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},NI(e)}function II(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function RI(){return RI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},RI.apply(this,arguments)}function LI(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 FI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?LI(Object(n),!0).forEach((function(t){UI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,WI(r.key),r)}}function BI(e,t){return BI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},BI(e,t)}function qI(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=VI(e);if(t){var i=VI(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===NI(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return HI(e)}(this,n)}}function HI(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function VI(e){return VI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},VI(e)}function UI(e,t,n){return(t=WI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WI(e){var t=function(e,t){if("object"!==NI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==NI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===NI(t)?t:String(t)}var $I=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&BI(e,t)}(a,p);var n,r,i,o=qI(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return UI(HI(e=o.call.apply(o,[this].concat(n))),"state",{isAnimationFinished:!0}),UI(HI(e),"id",qa("recharts-area-")),UI(HI(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),hi(t)&&t()})),UI(HI(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),hi(t)&&t()})),e}return n=a,r=[{key:"renderDots",value:function(t,n){var r=this.props.isAnimationActive,i=this.state.isAnimationFinished;if(r&&!i)return null;var o=this.props,c=o.dot,s=o.points,l=o.dataKey,u=hc(this.props),f=hc(c,!0),p=s.map((function(e,t){var n=FI(FI(FI({key:"dot-".concat(t),r:3},u),f),{},{dataKey:l,cx:e.x,cy:e.y,index:t,value:e.value,payload:e.payload});return a.renderDotItem(c,n)})),d={clipPath:t?"url(#clipPath-".concat(n,")"):null};return e.createElement(_c,RI({className:"recharts-area-dots"},d),p)}},{key:"renderHorizontalRect",value:function(t){var n=this.props,r=n.baseLine,i=n.points,o=n.strokeWidth,a=i[0].x,c=i[i.length-1].x,s=t*Math.abs(a-c),l=jw(i.map((function(e){return e.y||0})));return Fa(r)&&"number"==typeof r?l=Math.max(r,l):r&&yi(r)&&r.length&&(l=Math.max(jw(r.map((function(e){return e.y||0}))),l)),Fa(l)?e.createElement("rect",{x:a<c?a:a-s,y:0,width:s,height:Math.floor(l+(o?parseInt("".concat(o),10):1))}):null}},{key:"renderVerticalRect",value:function(t){var n=this.props,r=n.baseLine,i=n.points,o=n.strokeWidth,a=i[0].y,c=i[i.length-1].y,s=t*Math.abs(a-c),l=jw(i.map((function(e){return e.x||0})));return Fa(r)&&"number"==typeof r?l=Math.max(r,l):r&&yi(r)&&r.length&&(l=Math.max(jw(r.map((function(e){return e.x||0}))),l)),Fa(l)?e.createElement("rect",{x:0,y:a<c?a:a-s,width:l+(o?parseInt("".concat(o),10):1),height:Math.floor(s)}):null}},{key:"renderClipRect",value:function(e){return"vertical"===this.props.layout?this.renderVerticalRect(e):this.renderHorizontalRect(e)}},{key:"renderAreaStatically",value:function(t,n,r,i){var o=this.props,a=o.layout,c=o.type,s=o.stroke,l=o.connectNulls,u=o.isRange;o.ref;var f=II(o,MI);return e.createElement(_c,{clipPath:r?"url(#clipPath-".concat(i,")"):null},e.createElement(yP,RI({},hc(f,!0),{points:t,connectNulls:l,type:c,baseLine:n,layout:a,stroke:"none",className:"recharts-area-area"})),"none"!==s&&e.createElement(yP,RI({},hc(this.props),{className:"recharts-area-curve",layout:a,type:c,connectNulls:l,fill:"none",points:t})),"none"!==s&&u&&e.createElement(yP,RI({},hc(this.props),{className:"recharts-area-curve",layout:a,type:c,connectNulls:l,fill:"none",points:n})))}},{key:"renderAreaWithAnimation",value:function(t,n){var r=this,i=this.props,o=i.points,a=i.baseLine,c=i.isAnimationActive,s=i.animationBegin,l=i.animationDuration,u=i.animationEasing,f=i.animationId,p=this.state,d=p.prevPoints,h=p.prevBaseLine;return e.createElement(Zv,{begin:s,duration:l,isActive:c,easing:u,from:{t:0},to:{t:1},key:"area-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(i){var c=i.t;if(d){var s,l=d.length/o.length,u=o.map((function(e,t){var n=Math.floor(t*l);if(d[n]){var r=d[n],i=Ua(r.x,e.x),o=Ua(r.y,e.y);return FI(FI({},e),{},{x:i(c),y:o(c)})}return e}));return s=Fa(a)&&"number"==typeof a?Ua(h,a)(c):Sa(a)||Ia(a)?Ua(h,0)(c):a.map((function(e,t){var n=Math.floor(t*l);if(h[n]){var r=h[n],i=Ua(r.x,e.x),o=Ua(r.y,e.y);return FI(FI({},e),{},{x:i(c),y:o(c)})}return e})),r.renderAreaStatically(u,s,t,n)}return e.createElement(_c,null,e.createElement("defs",null,e.createElement("clipPath",{id:"animationClipPath-".concat(n)},r.renderClipRect(c))),e.createElement(_c,{clipPath:"url(#animationClipPath-".concat(n,")")},r.renderAreaStatically(o,a,t,n)))}))}},{key:"renderArea",value:function(e,t){var n=this.props,r=n.points,i=n.baseLine,o=n.isAnimationActive,a=this.state,c=a.prevPoints,s=a.prevBaseLine,l=a.totalLength;return o&&r&&r.length&&(!c&&l>0||!Sw(c,r)||!Sw(s,i))?this.renderAreaWithAnimation(e,t):this.renderAreaStatically(r,i,e,t)}},{key:"render",value:function(){var t=this.props,n=t.hide,r=t.dot,i=t.points,o=t.className,a=t.top,c=t.left,s=t.xAxis,l=t.yAxis,u=t.width,f=t.height,p=t.isAnimationActive,d=t.id;if(n||!i||!i.length)return null;var h=this.state.isAnimationFinished,m=1===i.length,y=$r("recharts-area",o),v=s&&s.allowDataOverflow||l&&l.allowDataOverflow,g=Sa(d)?this.id:d;return e.createElement(_c,{className:y},v?e.createElement("defs",null,e.createElement("clipPath",{id:"clipPath-".concat(g)},e.createElement("rect",{x:c,y:a,width:u,height:Math.floor(f)}))):null,m?null:this.renderArea(v,g),(r||m)&&this.renderDots(v,g),(!p||h)&&WT.renderCallByParent(this.props,i))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,curBaseLine:e.baseLine,prevPoints:t.curPoints,prevBaseLine:t.curBaseLine}:e.points!==t.curPoints||e.baseLine!==t.curBaseLine?{curPoints:e.points,curBaseLine:e.baseLine}:null}}],r&&zI(n.prototype,r),i&&zI(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();UI($I,"displayName","Area"),UI($I,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!db.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),UI($I,"getBaseValue",(function(e,t,n,r){var i=e.layout,o=e.baseValue,a=t.props.baseValue,c=null!=a?a:o;if(Fa(c)&&"number"==typeof c)return c;var s="horizontal"===i?r:n,l=s.scale.domain();if("number"===s.type){var u=Math.max(l[0],l[1]),f=Math.min(l[0],l[1]);return"dataMin"===c?f:"dataMax"===c||u<0?u:Math.max(Math.min(l[0],l[1]),0)}return"dataMin"===c?l[0]:"dataMax"===c?l[1]:l[0]})),UI($I,"getComposedData",(function(e){var t,n=e.props,r=e.item,i=e.xAxis,o=e.yAxis,a=e.xAxisTicks,c=e.yAxisTicks,s=e.bandSize,l=e.dataKey,u=e.stackedData,f=e.dataStartIndex,p=e.displayedData,d=e.offset,h=n.layout,m=u&&u.length,y=$I.getBaseValue(n,r,i,o),v=!1,g=p.map((function(e,t){var n,r=DC(e,l);m?n=u[f+t]:yi(n=r)?v=!0:n=[y,n];var p=Sa(n[1])||m&&Sa(r);return"horizontal"===h?{x:XC({axis:i,ticks:a,bandSize:s,entry:e,index:t}),y:p?null:o.scale(n[1]),value:n,payload:e}:{x:p?null:i.scale(n[1]),y:XC({axis:o,ticks:c,bandSize:s,entry:e,index:t}),value:n,payload:e}}));return t=m||v?g.map((function(e){return"horizontal"===h?{x:e.x,y:Sa(ka(e,"value[0]"))||Sa(ka(e,"y"))?null:o.scale(ka(e,"value[0]"))}:{x:Sa(ka(e,"value[0]"))?null:i.scale(ka(e,"value[0]")),y:e.y}})):"horizontal"===h?o.scale(y):i.scale(y),FI({points:g,baseLine:t,layout:h,isRange:v},d)})),UI($I,"renderDotItem",(function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):hi(t)?t(n):e.createElement(YP,RI({},n,{className:"recharts-area-dot"}))}));var GI=function(){return null};function YI(e){return YI="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},YI(e)}function XI(){return XI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},XI.apply(this,arguments)}function ZI(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 KI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ZI(Object(n),!0).forEach((function(t){rR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function JI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,iR(r.key),r)}}function QI(e,t){return QI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},QI(e,t)}function eR(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=nR(e);if(t){var i=nR(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===YI(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return tR(e)}(this,n)}}function tR(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nR(e){return nR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},nR(e)}function rR(e,t,n){return(t=iR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iR(e){var t=function(e,t){if("object"!==YI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==YI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===YI(t)?t:String(t)}GI.displayName="ZAxis",GI.defaultProps={zAxisId:0,range:[64,64],scale:"auto",type:"number"};var oR=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&QI(e,t)}(a,p);var n,r,i,o=eR(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return rR(tR(e=o.call.apply(o,[this].concat(n))),"state",{isAnimationFinished:!1}),rR(tR(e),"handleAnimationEnd",(function(){e.setState({isAnimationFinished:!0})})),rR(tR(e),"handleAnimationStart",(function(){e.setState({isAnimationFinished:!1})})),rR(tR(e),"id",qa("recharts-scatter-")),e}return n=a,r=[{key:"renderSymbolsStatically",value:function(t){var n=this,r=this.props,i=r.shape,o=r.activeShape,c=r.activeIndex,s=hc(this.props);return t.map((function(t,r){var l=KI(KI({key:"symbol-".concat(r)},s),t);return e.createElement(_c,XI({className:"recharts-scatter-symbol"},Qa(n.props,t,r),{key:"symbol-".concat(r),role:"img"}),a.renderSymbolItem(c===r?o:i,l))}))}},{key:"renderSymbolsWithAnimation",value:function(){var t=this,n=this.props,r=n.points,i=n.isAnimationActive,o=n.animationBegin,a=n.animationDuration,c=n.animationEasing,s=n.animationId,l=this.state.prevPoints;return e.createElement(Zv,{begin:o,duration:a,isActive:i,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var i=n.t,o=r.map((function(e,t){var n=l&&l[t];if(n){var r=Ua(n.cx,e.cx),o=Ua(n.cy,e.cy),a=Ua(n.size,e.size);return KI(KI({},e),{},{cx:r(i),cy:o(i),size:a(i)})}var c=Ua(0,e.size);return KI(KI({},e),{},{size:c(i)})}));return e.createElement(_c,null,t.renderSymbolsStatically(o))}))}},{key:"renderSymbols",value:function(){var e=this.props,t=e.points,n=e.isAnimationActive,r=this.state.prevPoints;return!(n&&t&&t.length)||r&&Sw(r,t)?this.renderSymbolsStatically(t):this.renderSymbolsWithAnimation()}},{key:"renderErrorBar",value:function(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var t=this.props,n=t.points,r=t.xAxis,i=t.yAxis,o=sc(t.children,SC);if(!o)return null;function a(e,t){return{x:e.cx,y:e.cy,value:+e.node.y,errorVal:DC(e,t)}}function c(e,t){return{x:e.cx,y:e.cy,value:+e.node.x,errorVal:DC(e,t)}}return o.map((function(t,o){var s=t.props.direction;return e.cloneElement(t,{key:o,data:n,xAxis:r,yAxis:i,layout:"x"===s?"vertical":"horizontal",dataPointFormatter:"x"===s?c:a})}))}},{key:"renderLine",value:function(){var t,n,r=this.props,i=r.points,o=r.line,a=r.lineType,c=r.lineJointType,s=hc(this.props),l=hc(o);if("joint"===a)t=i.map((function(e){return{x:e.cx,y:e.cy}}));else if("fitting"===a){var u=function(e){if(!e||!e.length)return null;for(var t=e.length,n=0,r=0,i=0,o=0,a=1/0,c=-1/0,s=0,l=0,u=0;u<t;u++)n+=s=e[u].cx||0,r+=l=e[u].cy||0,i+=s*l,o+=s*s,a=Math.min(a,s),c=Math.max(c,s);var f=t*o!=n*n?(t*i-n*r)/(t*o-n*n):0;return{xmin:a,xmax:c,a:f,b:(r-f*n)/t}}(i),f=u.xmin,p=u.xmax,d=u.a,h=u.b,m=function(e){return d*e+h};t=[{x:f,y:m(f)},{x:p,y:m(p)}]}var y=KI(KI(KI({},s),{},{fill:"none",stroke:s&&s.fill},l),{},{points:t});return n=e.isValidElement(o)?e.cloneElement(o,y):hi(o)?o(y):e.createElement(yP,XI({},y,{type:c})),e.createElement(_c,{className:"recharts-scatter-line",key:"recharts-scatter-line"},n)}},{key:"render",value:function(){var t=this.props,n=t.hide,r=t.points,i=t.line,o=t.className,a=t.xAxis,c=t.yAxis,s=t.left,l=t.top,u=t.width,f=t.height,p=t.id,d=t.isAnimationActive;if(n||!r||!r.length)return null;var h=this.state.isAnimationFinished,m=$r("recharts-scatter",o),y=a&&a.allowDataOverflow||c&&c.allowDataOverflow,v=Sa(p)?this.id:p;return e.createElement(_c,{className:m,clipPath:y?"url(#clipPath-".concat(v,")"):null},y?e.createElement("defs",null,e.createElement("clipPath",{id:"clipPath-".concat(v)},e.createElement("rect",{x:s,y:l,width:u,height:f}))):null,i&&this.renderLine(),this.renderErrorBar(),e.createElement(_c,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!d||h)&&WT.renderCallByParent(this.props,r))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,prevPoints:t.curPoints}:e.points!==t.curPoints?{curPoints:e.points}:null}},{key:"renderSymbolItem",value:function(t,n){var r;return e.isValidElement(t)?r=e.cloneElement(t,n):hi(t)?r=t(n):"string"==typeof t&&(r=e.createElement(gd,XI({},n,{type:t}))),r}}],r&&JI(n.prototype,r),i&&JI(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();rR(oR,"displayName","Scatter"),rR(oR,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!db.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"}),rR(oR,"getComposedData",(function(e){var t=e.xAxis,n=e.yAxis,r=e.zAxis,i=e.item,o=e.displayedData,a=e.xAxisTicks,c=e.yAxisTicks,s=e.offset,l=i.props.tooltipType,u=sc(i.props.children,lx),f=Sa(t.dataKey)?i.props.dataKey:t.dataKey,p=Sa(n.dataKey)?i.props.dataKey:n.dataKey,d=r&&r.dataKey,h=r?r.range:GI.defaultProps.range,m=h&&h[0],y=t.scale.bandwidth?t.scale.bandwidth():0,v=n.scale.bandwidth?n.scale.bandwidth():0,g=o.map((function(e,o){var s=DC(e,f),h=DC(e,p),g=!Sa(d)&&DC(e,d)||"-",b=[{name:Sa(t.dataKey)?i.props.name:t.name||t.dataKey,unit:t.unit||"",value:s,payload:e,dataKey:f,type:l},{name:Sa(n.dataKey)?i.props.name:n.name||n.dataKey,unit:n.unit||"",value:h,payload:e,dataKey:p,type:l}];"-"!==g&&b.push({name:r.name||r.dataKey,unit:r.unit||"",value:g,payload:e,dataKey:d,type:l});var x=XC({axis:t,ticks:a,bandSize:y,entry:e,index:o,dataKey:f}),w=XC({axis:n,ticks:c,bandSize:v,entry:e,index:o,dataKey:p}),k="-"!==g?r.scale(g):m,E=Math.sqrt(Math.max(k,0)/Math.PI);return KI(KI({},e),{},{cx:x,cy:w,x:x-E,y:w-E,xAxis:t,yAxis:n,zAxis:r,width:2*E,height:2*E,size:k,node:{x:s,y:h,z:g},tooltipPayload:b,tooltipPosition:{x:x,y:w},payload:e},u&&u[o]&&u[o].props)}));return KI({points:g},s)}));var aR=function(){return null};aR.displayName="XAxis",aR.defaultProps={allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0};var cR=function(){return null};cR.displayName="YAxis",cR.defaultProps={allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1};var sR=Zu,lR=ll,uR=dl;var fR=function(e){return function(t,n,r){var i=Object(t);if(!lR(t)){var o=sR(n);t=uR(t),n=function(e){return o(i[e],e,i)}}var a=e(t,n,r);return a>-1?i[o?t[a]:a]:void 0}},pR=Jj;var dR=Ku,hR=Zu,mR=function(e){var t=pR(e),n=t%1;return t==t?n?t-n:t:0},yR=Math.max;var vR=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:mR(n);return i<0&&(i=yR(r+i,0)),dR(e,hR(t),i)},gR=_(fR(vR)),bR=ui,xR=vi;var wR=_((function(e){return!0===e||!1===e||xR(e)&&"[object Boolean]"==bR(e)}));function kR(e){return function(e){if(Array.isArray(e))return ER(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ER(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 ER(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 ER(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var SR=function(e,t,n,r,i){var o=sc(e,EN),a=sc(e,TN),c=[].concat(kR(o),kR(a)),s=sc(e,IN),l="".concat(r,"Id"),u=r[0],f=t;if(c.length&&(f=c.reduce((function(e,t){if(t.props[l]===n&&TM(t.props,"extendDomain")&&Fa(t.props[u])){var r=t.props[u];return[Math.min(e[0],r),Math.max(e[1],r)]}return e}),f)),s.length){var p="".concat(u,"1"),d="".concat(u,"2");f=s.reduce((function(e,t){if(t.props[l]===n&&TM(t.props,"extendDomain")&&Fa(t.props[p])&&Fa(t.props[d])){var r=t.props[p],i=t.props[d];return[Math.min(e[0],r,i),Math.max(e[1],r,i)]}return e}),f)}return i&&i.length&&(f=i.reduce((function(e,t){return Fa(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e}),f)),f},_R={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,r,o,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var c=new i(r,o||e,a),s=n?n+t:t;return e._events[s]?e._events[s].fn?e._events[s]=[e._events[s],c]:e._events[s].push(c):(e._events[s]=c,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function c(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),c.prototype.eventNames=function(){var e,r,i=[];if(0===this._eventsCount)return i;for(r in e=this._events)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},c.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,a=new Array(o);i<o;i++)a[i]=r[i].fn;return a},c.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},c.prototype.emit=function(e,t,r,i,o,a){var c=n?n+e:e;if(!this._events[c])return!1;var s,l,u=this._events[c],f=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),f){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,r),!0;case 4:return u.fn.call(u.context,t,r,i),!0;case 5:return u.fn.call(u.context,t,r,i,o),!0;case 6:return u.fn.call(u.context,t,r,i,o,a),!0}for(l=1,s=new Array(f-1);l<f;l++)s[l-1]=arguments[l];u.fn.apply(u.context,s)}else{var p,d=u.length;for(l=0;l<d;l++)switch(u[l].once&&this.removeListener(e,u[l].fn,void 0,!0),f){case 1:u[l].fn.call(u[l].context);break;case 2:u[l].fn.call(u[l].context,t);break;case 3:u[l].fn.call(u[l].context,t,r);break;case 4:u[l].fn.call(u[l].context,t,r,i);break;default:if(!s)for(p=1,s=new Array(f-1);p<f;p++)s[p-1]=arguments[p];u[l].fn.apply(u[l].context,s)}}return!0},c.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},c.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},c.prototype.removeListener=function(e,t,r,i){var o=n?n+e:e;if(!this._events[o])return this;if(!t)return a(this,o),this;var c=this._events[o];if(c.fn)c.fn!==t||i&&!c.once||r&&c.context!==r||a(this,o);else{for(var s=0,l=[],u=c.length;s<u;s++)(c[s].fn!==t||i&&!c[s].once||r&&c[s].context!==r)&&l.push(c[s]);l.length?this._events[o]=1===l.length?l[0]:l:a(this,o)}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=n,c.EventEmitter=c,e.exports=c}(_R);var OR=new(_(_R.exports));OR.setMaxListeners&&OR.setMaxListeners(10);var AR="recharts.syncMouseEvents",CR=["item"],TR=["children","className","width","height","style","compact","title","desc"];function PR(e){return PR="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},PR(e)}function DR(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,c=[],s=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(e,t)||BR(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 jR(){return jR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jR.apply(this,arguments)}function MR(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function NR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,WR(r.key),r)}}function IR(e,t){return IR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},IR(e,t)}function RR(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=FR(e);if(t){var i=FR(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===PR(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return LR(e)}(this,n)}}function LR(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function FR(e){return FR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},FR(e)}function zR(e){return function(e){if(Array.isArray(e))return qR(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||BR(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 BR(e,t){if(e){if("string"==typeof e)return qR(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)?qR(e,t):void 0}}function qR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function HR(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 VR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?HR(Object(n),!0).forEach((function(t){UR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function UR(e,t,n){return(t=WR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WR(e){var t=function(e,t){if("object"!==PR(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==PR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===PR(t)?t:String(t)}var $R={xAxis:["bottom","top"],yAxis:["left","right"]},GR={x:0,y:0},YR=Number.isFinite?Number.isFinite:isFinite,XR="function"==typeof requestAnimationFrame?requestAnimationFrame:"function"==typeof setImmediate?setImmediate:setTimeout,ZR="function"==typeof cancelAnimationFrame?cancelAnimationFrame:"function"==typeof clearImmediate?clearImmediate:clearTimeout,KR=function(e,t,n){var r=t.graphicalItems,i=t.dataStartIndex,o=t.dataEndIndex,a=(r||[]).reduce((function(e,t){var n=t.props.data;return n&&n.length?[].concat(zR(e),zR(n)):e}),[]);return a&&a.length>0?a:n&&n.props&&n.props.data&&n.props.data.length>0?n.props.data:e&&e.length&&Fa(i)&&Fa(o)?e.slice(i,o+1):[]};function JR(e){return"number"===e?[0,"auto"]:void 0}var QR=function(e,t,n,r){var i=e.graphicalItems,o=e.tooltipAxis,a=KR(t,e);return n<0||!i||!i.length||n>=a.length?null:i.reduce((function(e,t){if(t.props.hide)return e;var i,c=t.props.data;o.dataKey&&!o.allowDuplicatedCategory?i=Wa(void 0===c?a:c,o.dataKey,r):i=c&&c[n]||a[n];return i?[].concat(zR(e),[iT(t,i)]):e}),[])},eL=function(e,t,n,r){var i=r||{x:e.chartX,y:e.chartY},o=function(e,t){return"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radius}(i,n),a=e.orderedTooltipTicks,c=e.tooltipAxis,s=e.tooltipTicks,l=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=-1,a=null!==(t=null==n?void 0:n.length)&&void 0!==t?t:0;if(a<=1)return 0;if(i&&"angleAxis"===i.axisType&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var c=i.range,s=0;s<a;s++){var l=s>0?r[s-1].coordinate:r[a-1].coordinate,u=r[s].coordinate,f=s>=a-1?r[0].coordinate:r[s+1].coordinate,p=void 0;if(Ra(u-l)!==Ra(f-u)){var d=[];if(Ra(f-u)===Ra(c[1]-c[0])){p=f;var h=u+c[1]-c[0];d[0]=Math.min(h,(h+l)/2),d[1]=Math.max(h,(h+l)/2)}else{p=l;var m=f+c[1]-c[0];d[0]=Math.min(u,(m+u)/2),d[1]=Math.max(u,(m+u)/2)}var y=[Math.min(u,(p+u)/2),Math.max(u,(p+u)/2)];if(e>y[0]&&e<=y[1]||e>=d[0]&&e<=d[1]){o=r[s].index;break}}else{var v=Math.min(l,f),g=Math.max(l,f);if(e>(v+u)/2&&e<=(g+u)/2){o=r[s].index;break}}}else for(var b=0;b<a;b++)if(0===b&&e<=(n[b].coordinate+n[b+1].coordinate)/2||b>0&&b<a-1&&e>(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){o=n[b].index;break}return o}(o,a,s,c);if(l>=0&&s){var u=s[l]&&s[l].value,f=QR(e,t,l,u),p=function(e,t,n,r){var i=t.find((function(e){return e&&e.index===n}));if(i){if("horizontal"===e)return{x:i.coordinate,y:r.y};if("vertical"===e)return{x:r.x,y:i.coordinate};if("centric"===e){var o=i.coordinate,a=r.radius;return VR(VR(VR({},r),dT(r.cx,r.cy,a,o)),{},{angle:o,radius:a})}var c=i.coordinate,s=r.angle;return VR(VR(VR({},r),dT(r.cx,r.cy,c,s)),{},{angle:s,radius:c})}return GR}(n,a,l,i);return{activeTooltipIndex:l,activeLabel:u,activePayload:f,activeCoordinate:p}}return null},tL=function(e,t){var n=t.axes,r=t.graphicalItems,i=t.axisType,o=t.axisIdKey,a=t.stackGroups,c=t.dataStartIndex,s=t.dataEndIndex,l=e.layout,u=e.children,f=e.stackOffset,p=LC(l,i),d=n.reduce((function(t,n){var d,h=n.props,m=h.type,y=h.dataKey,v=h.allowDataOverflow,g=h.allowDuplicatedCategory,b=h.scale,x=h.ticks,w=h.includeHidden,k=n.props[o];if(t[k])return t;var E,S,_,O=KR(e.data,{graphicalItems:r.filter((function(e){return e.props[o]===k})),dataStartIndex:c,dataEndIndex:s}),A=O.length;(function(e,t,n){if("number"===n&&!0===t&&Array.isArray(e)){var r=null==e?void 0:e[0],i=null==e?void 0:e[1];if(r&&i&&Fa(r)&&Fa(i))return!0}return!1})(n.props.domain,v,m)&&(E=tT(n.props.domain,null,v),!p||"number"!==m&&"auto"===b||(_=jC(O,y,"category")));var C=JR(m);if(!E||0===E.length){var T,P=null!==(T=n.props.domain)&&void 0!==T?T:C;if(y){if(E=jC(O,y,m),"category"===m&&p){var D=function(e){if(!yi(e))return!1;for(var t=e.length,n={},r=0;r<t;r++){if(n[e[r]])return!0;n[e[r]]=!0}return!1}(E);g&&D?(S=E,E=nM(0,A)):g||(E=rT(P,E,n).reduce((function(e,t){return e.indexOf(t)>=0?e:[].concat(zR(e),[t])}),[]))}else if("category"===m)E=g?E.filter((function(e){return""!==e&&!Sa(e)})):rT(P,E,n).reduce((function(e,t){return e.indexOf(t)>=0||""===t||Sa(t)?e:[].concat(zR(e),[t])}),[]);else if("number"===m){var j=function(e,t,n,r,i){var o=t.map((function(t){return IC(e,t,n,i,r)})).filter((function(e){return!Sa(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}(O,r.filter((function(e){return e.props[o]===k&&(w||!e.props.hide)})),y,i,l);j&&(E=j)}!p||"number"!==m&&"auto"===b||(_=jC(O,y,"category"))}else E=p?nM(0,A):a&&a[k]&&a[k].hasStack&&"number"===m?"expand"===f?[0,1]:JC(a[k].stackGroups,c,s):RC(O,r.filter((function(e){return e.props[o]===k&&(w||!e.props.hide)})),m,l,!0);if("number"===m)E=SR(u,E,k,i,x),P&&(E=tT(P,E,v));else if("category"===m&&P){var M=P;E.every((function(e){return M.indexOf(e)>=0}))&&(E=M)}}return VR(VR({},t),{},UR({},k,VR(VR({},n.props),{},{axisType:i,domain:E,categoricalDomain:_,duplicateDomain:S,originalDomain:null!==(d=n.props.domain)&&void 0!==d?d:C,isCategorical:p,layout:l})))}),{});return d},nL=function(e,t){var n=t.axisType,r=void 0===n?"xAxis":n,i=t.AxisComp,o=t.graphicalItems,a=t.stackGroups,c=t.dataStartIndex,s=t.dataEndIndex,l=e.children,u="".concat(r,"Id"),f=sc(l,i),p={};return f&&f.length?p=tL(e,{axes:f,graphicalItems:o,axisType:r,axisIdKey:u,stackGroups:a,dataStartIndex:c,dataEndIndex:s}):o&&o.length&&(p=function(e,t){var n=t.graphicalItems,r=t.Axis,i=t.axisType,o=t.axisIdKey,a=t.stackGroups,c=t.dataStartIndex,s=t.dataEndIndex,l=e.layout,u=e.children,f=KR(e.data,{graphicalItems:n,dataStartIndex:c,dataEndIndex:s}),p=f.length,d=LC(l,i),h=-1;return n.reduce((function(e,t){var m,y=t.props[o],v=JR("number");return e[y]?e:(h++,d?m=nM(0,p):a&&a[y]&&a[y].hasStack?(m=JC(a[y].stackGroups,c,s),m=SR(u,m,y,i)):(m=tT(v,RC(f,n.filter((function(e){return e.props[o]===y&&!e.props.hide})),"number",l),r.defaultProps.allowDataOverflow),m=SR(u,m,y,i)),VR(VR({},e),{},UR({},y,VR(VR({axisType:i},r.defaultProps),{},{hide:!0,orientation:ka($R,"".concat(i,".").concat(h%2),null),domain:m,originalDomain:v,isCategorical:d,layout:l}))))}),{})}(e,{Axis:i,graphicalItems:o,axisType:r,axisIdKey:u,stackGroups:a,dataStartIndex:c,dataEndIndex:s})),p},rL=function(e){var t,n,r=e.children,i=e.defaultShowTooltip,o=lc(r,xM);return{chartX:0,chartY:0,dataStartIndex:o&&o.props&&o.props.startIndex||0,dataEndIndex:void 0!==(null==o||null===(t=o.props)||void 0===t?void 0:t.endIndex)?null==o||null===(n=o.props)||void 0===n?void 0:n.endIndex:e.data&&e.data.length-1||0,activeTooltipIndex:-1,isTooltipActive:!Sa(i)&&i}},iL=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"}},oL=function(e,t){var n=e.props,r=(e.graphicalItems,e.xAxisMap),i=void 0===r?{}:r,o=e.yAxisMap,a=void 0===o?{}:o,c=n.width,s=n.height,l=n.children,u=n.margin||{},f=lc(l,xM),p=lc(l,Ud),d=Object.keys(a).reduce((function(e,t){var n=a[t],r=n.orientation;return n.mirror||n.hide?e:VR(VR({},e),{},UR({},r,e[r]+n.width))}),{left:u.left||0,right:u.right||0}),h=Object.keys(i).reduce((function(e,t){var n=i[t],r=n.orientation;return n.mirror||n.hide?e:VR(VR({},e),{},UR({},r,ka(e,"".concat(r))+n.height))}),{top:u.top||0,bottom:u.bottom||0}),m=VR(VR({},h),d),y=m.bottom;return f&&(m.bottom+=f.props.height||xM.defaultProps.height),p&&t&&(m=function(e,t,n,r){var i=n.children,o=n.width,a=n.margin,c=o-(a.left||0)-(a.right||0),s=NC({children:i,legendWidth:c}),l=e;if(s){var u=r||{},f=s.align,p=s.verticalAlign,d=s.layout;("vertical"===d||"horizontal"===d&&"middle"===p)&&Fa(e[f])&&(l=TC(TC({},e),{},PC({},f,l[f]+(u.width||0)))),("horizontal"===d||"vertical"===d&&"center"===f)&&Fa(e[p])&&(l=TC(TC({},e),{},PC({},p,l[p]+(u.height||0))))}return l}(m,0,n,t)),VR(VR({brushBottom:y},m),{},{width:c-m.left-m.right,height:s-m.top-m.bottom})},aL=function(t){var r,i=t.chartName,o=t.GraphicalChild,a=t.defaultTooltipEventType,c=void 0===a?"axis":a,s=t.validateTooltipEventTypes,l=void 0===s?["axis"]:s,f=t.axisComponents,p=t.legendContent,h=t.formatAxisMap,m=t.defaultProps,y=function(e,t){var n=t.graphicalItems,r=t.stackGroups,i=t.offset,o=t.updateId,a=t.dataStartIndex,c=t.dataEndIndex,s=e.barSize,l=e.layout,u=e.barGap,p=e.barCategoryGap,d=e.maxBarSize,h=iL(l),m=h.numericAxisName,y=h.cateAxisName,v=function(e){return!(!e||!e.length)&&e.some((function(e){var t=ic(e&&e.type);return t&&t.indexOf("Bar")>=0}))}(n),g=v&&function(e){var t=e.barSize,n=e.stackGroups,r=void 0===n?{}:n;if(!r)return{};for(var i={},o=Object.keys(r),a=0,c=o.length;a<c;a++)for(var s=r[o[a]].stackGroups,l=Object.keys(s),u=0,f=l.length;u<f;u++){var p=s[l[u]],d=p.items,h=p.cateAxisId,m=d.filter((function(e){return ic(e.type).indexOf("Bar")>=0}));if(m&&m.length){var y=m[0].props.barSize,v=m[0].props[h];i[v]||(i[v]=[]),i[v].push({item:m[0],stackList:m.slice(1),barSize:Sa(y)?t:y})}}return i}({barSize:s,stackGroups:r}),b=[];return n.forEach((function(n,s){var h=KR(e.data,{dataStartIndex:a,dataEndIndex:c},n),v=n.props,x=v.dataKey,w=v.maxBarSize,k=n.props["".concat(m,"Id")],E=n.props["".concat(y,"Id")],S=f.reduce((function(e,r){var i,o=t["".concat(r.axisType,"Map")],a=n.props["".concat(r.axisType,"Id")],c=o&&o[a];return VR(VR({},e),{},(UR(i={},r.axisType,c),UR(i,"".concat(r.axisType,"Ticks"),zC(c)),i))}),{}),_=S[y],O=S["".concat(y,"Ticks")],A=r&&r[k]&&r[k].hasStack&&function(e,t){var n=e.props.stackId;if(za(n)){var r=t[n];if(r&&r.items.length){for(var i=-1,o=0,a=r.items.length;o<a;o++)if(r.items[o]===e){i=o;break}return i>=0?r.stackedData[i]:null}}return null}(n,r[k].stackGroups),C=ic(n.type).indexOf("Bar")>=0,T=nT(_,O),P=[];if(C){var D,j,M=Sa(w)?d:w,N=null!==(D=null!==(j=nT(_,O,!0))&&void 0!==j?j:M)&&void 0!==D?D:0;P=function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,i=e.sizeList,o=void 0===i?[]:i,a=e.maxBarSize,c=o.length;if(c<1)return null;var s,l=Ha(t,r,0,!0);if(o[0].barSize===+o[0].barSize){var u=!1,f=r/c,p=o.reduce((function(e,t){return e+t.barSize||0}),0);(p+=(c-1)*l)>=r&&(p-=(c-1)*l,l=0),p>=r&&f>0&&(u=!0,p=c*(f*=.9));var d={offset:((r-p)/2>>0)-l,size:0};s=o.reduce((function(e,t){var n=[].concat(OC(e),[{item:t.item,position:{offset:d.offset+d.size+l,size:u?f:t.barSize}}]);return d=n[n.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){n.push({item:e,position:d})})),n}),[])}else{var h=Ha(n,r,0,!0);r-2*h-(c-1)*l<=0&&(l=0);var m=(r-2*h-(c-1)*l)/c;m>1&&(m>>=0);var y=a===+a?Math.min(m,a):m;s=o.reduce((function(e,t,n){var r=[].concat(OC(e),[{item:t.item,position:{offset:h+(m+l)*n+(m-y)/2,size:y}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){r.push({item:e,position:r[r.length-1].position})})),r}),[])}return s}({barGap:u,barCategoryGap:p,bandSize:N!==T?N:T,sizeList:g[E],maxBarSize:M}),N!==T&&(P=P.map((function(e){return VR(VR({},e),{},{position:VR(VR({},e.position),{},{offset:e.position.offset-N/2})})})))}var I,R,L,F=n&&n.type&&n.type.getComposedData;F&&b.push({props:VR(VR({},F(VR(VR({},S),{},{displayedData:h,props:e,dataKey:x,item:n,bandSize:T,barPosition:P,offset:i,stackedData:A,layout:l,dataStartIndex:a,dataEndIndex:c}))),{},(I={key:n.key||"item-".concat(s)},UR(I,m,S[m]),UR(I,y,S[y]),UR(I,"animationId",o),I)),childIndex:(R=n,L=e.children,cc(L).indexOf(R)),item:n})})),b},v=function(e,t){var n=e.props,r=e.dataStartIndex,a=e.dataEndIndex,c=e.updateId;if(!uc({props:n}))return null;var s=n.children,l=n.layout,u=n.stackOffset,p=n.data,d=n.reverseStackOrder,m=iL(l),v=m.numericAxisName,g=m.cateAxisName,b=sc(s,o),x=function(e,t,n,r,i,o){if(!e)return null;var a=(o?t.reverse():t).reduce((function(e,t){var i=t.props,o=i.stackId;if(i.hide)return e;var a=t.props[n],c=e[a]||{hasStack:!1,stackGroups:{}};if(za(o)){var s=c.stackGroups[o]||{numericAxisId:n,cateAxisId:r,items:[]};s.items.push(t),c.hasStack=!0,c.stackGroups[o]=s}else c.stackGroups[qa("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return TC(TC({},e),{},PC({},a,c))}),{});return Object.keys(a).reduce((function(t,o){var c=a[o];return c.hasStack&&(c.stackGroups=Object.keys(c.stackGroups).reduce((function(t,o){var a=c.stackGroups[o];return TC(TC({},t),{},PC({},o,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:GC(e,a.items,i)}))}),{})),TC(TC({},t),{},PC({},o,c))}),{})}(p,b,"".concat(v,"Id"),"".concat(g,"Id"),u,d),w=f.reduce((function(e,t){var i="".concat(t.axisType,"Map");return VR(VR({},e),{},UR({},i,nL(n,VR(VR({},t),{},{graphicalItems:b,stackGroups:t.axisType===v&&x,dataStartIndex:r,dataEndIndex:a}))))}),{}),k=oL(VR(VR({},w),{},{props:n,graphicalItems:b}),null==t?void 0:t.legendBBox);Object.keys(w).forEach((function(e){w[e]=h(n,w[e],k,e.replace("Map",""),i)}));var E,S,_=w["".concat(g,"Map")],O=(E=Va(_),{tooltipTicks:S=zC(E,!1,!0),orderedTooltipTicks:Qg(S,(function(e){return e.coordinate})),tooltipAxis:E,tooltipAxisBandSize:nT(E,S)}),A=y(n,VR(VR({},w),{},{dataStartIndex:r,dataEndIndex:a,updateId:c,graphicalItems:b,stackGroups:x,offset:k}));return VR(VR({formattedGraphicalItems:A,graphicalItems:b,offset:k,stackGroups:x},O),w)};return r=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&IR(e,t)}(f,g);var r,o,a,s=RR(f);function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),UR(LR(t=s.call(this,e)),"clearDeferId",(function(){!Sa(t.deferId)&&ZR&&ZR(t.deferId),t.deferId=null})),UR(LR(t),"handleLegendBBoxUpdate",(function(e){if(e){var n=t.state,r=n.dataStartIndex,i=n.dataEndIndex,o=n.updateId;t.setState(VR({legendBBox:e},v({props:t.props,dataStartIndex:r,dataEndIndex:i,updateId:o},VR(VR({},t.state),{},{legendBBox:e}))))}})),UR(LR(t),"handleReceiveSyncEvent",(function(e,n,r){t.props.syncId===e&&n!==t.uniqueChartId&&(t.clearDeferId(),t.deferId=XR&&XR(t.applySyncEvent.bind(LR(t),r)))})),UR(LR(t),"handleBrushChange",(function(e){var n=e.startIndex,r=e.endIndex;if(n!==t.state.dataStartIndex||r!==t.state.dataEndIndex){var i=t.state.updateId;t.setState((function(){return VR({dataStartIndex:n,dataEndIndex:r},v({props:t.props,dataStartIndex:n,dataEndIndex:r,updateId:i},t.state))})),t.triggerSyncEvent({dataStartIndex:n,dataEndIndex:r})}})),UR(LR(t),"handleMouseEnter",(function(e){var n=t.props.onMouseEnter,r=t.getMouseInfo(e);if(r){var i=VR(VR({},r),{},{isTooltipActive:!0});t.setState(i),t.triggerSyncEvent(i),hi(n)&&n(i,e)}})),UR(LR(t),"triggeredAfterMouseMove",(function(e){var n=t.props.onMouseMove,r=t.getMouseInfo(e),i=r?VR(VR({},r),{},{isTooltipActive:!0}):{isTooltipActive:!1};t.setState(i),t.triggerSyncEvent(i),hi(n)&&n(i,e)})),UR(LR(t),"handleItemMouseEnter",(function(e){t.setState((function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}}))})),UR(LR(t),"handleItemMouseLeave",(function(){t.setState((function(){return{isTooltipActive:!1}}))})),UR(LR(t),"handleMouseMove",(function(e){e&&hi(e.persist)&&e.persist(),t.triggeredAfterMouseMove(e)})),UR(LR(t),"handleMouseLeave",(function(e){var n=t.props.onMouseLeave,r={isTooltipActive:!1};t.setState(r),t.triggerSyncEvent(r),hi(n)&&n(r,e),t.cancelThrottledTriggerAfterMouseMove()})),UR(LR(t),"handleOuterEvent",(function(e){var n=function(e){var t=e&&e.type;return t&&rc[t]?rc[t]:null}(e),r=ka(t.props,"".concat(n));n&&hi(r)&&r(/.*touch.*/i.test(n)?t.getMouseInfo(e.changedTouches[0]):t.getMouseInfo(e),e)})),UR(LR(t),"handleClick",(function(e){var n=t.props.onClick,r=t.getMouseInfo(e);if(r){var i=VR(VR({},r),{},{isTooltipActive:!0});t.setState(i),t.triggerSyncEvent(i),hi(n)&&n(i,e)}})),UR(LR(t),"handleMouseDown",(function(e){var n=t.props.onMouseDown;hi(n)&&n(t.getMouseInfo(e),e)})),UR(LR(t),"handleMouseUp",(function(e){var n=t.props.onMouseUp;hi(n)&&n(t.getMouseInfo(e),e)})),UR(LR(t),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseMove(e.changedTouches[0])})),UR(LR(t),"handleTouchStart",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseDown(e.changedTouches[0])})),UR(LR(t),"handleTouchEnd",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseUp(e.changedTouches[0])})),UR(LR(t),"verticalCoordinatesGenerator",(function(e){var t=e.xAxis,n=e.width,r=e.height,i=e.offset;return FC(HN(VR(VR(VR({},rI.defaultProps),t),{},{ticks:zC(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),i.left,i.left+i.width)})),UR(LR(t),"horizontalCoordinatesGenerator",(function(e){var t=e.yAxis,n=e.width,r=e.height,i=e.offset;return FC(HN(VR(VR(VR({},rI.defaultProps),t),{},{ticks:zC(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),i.top,i.top+i.height)})),UR(LR(t),"axesTicksGenerator",(function(e){return zC(e,!0)})),UR(LR(t),"renderCursor",(function(e){var r=t.state,o=r.isTooltipActive,a=r.activeCoordinate,c=r.activePayload,s=r.offset,l=r.activeTooltipIndex,f=t.getTooltipEventType();if(!e||!e.props.cursor||!o||!a||"ScatterChart"!==i&&"axis"!==f)return null;var p,h=t.props.layout,m=yP;if("ScatterChart"===i)p=a,m=nD;else if("BarChart"===i)p=t.getCursorRectangle(),m=CP;else if("radial"===h){var y=t.getCursorPoints(),v=y.cx,g=y.cy,b=y.radius;p={cx:v,cy:g,startAngle:y.startAngle,endAngle:y.endAngle,innerRadius:b,outerRadius:b},m=tP}else p={points:t.getCursorPoints()},m=yP;var x=e.key||"_recharts-cursor",w=VR(VR(VR(VR({stroke:"#ccc",pointerEvents:"none"},s),p),hc(e.props.cursor)),{},{payload:c,payloadIndex:l,key:x,className:"recharts-tooltip-cursor"});return u(e.props.cursor)?d(e.props.cursor,w):n(m,w)})),UR(LR(t),"renderPolarAxis",(function(e,n,r){var i=ka(e,"type.axisType"),o=ka(t.state,"".concat(i,"Map")),a=o&&o[e.props["".concat(i,"Id")]];return d(e,VR(VR({},a),{},{className:i,key:e.key||"".concat(n,"-").concat(r),ticks:zC(a,!0)}))})),UR(LR(t),"renderXAxis",(function(e,n,r){var i=t.state.xAxisMap[e.props.xAxisId];return t.renderAxis(i,e,n,r)})),UR(LR(t),"renderYAxis",(function(e,n,r){var i=t.state.yAxisMap[e.props.yAxisId];return t.renderAxis(i,e,n,r)})),UR(LR(t),"renderGrid",(function(e){var n=t.state,r=n.xAxisMap,i=n.yAxisMap,o=n.offset,a=t.props,c=a.width,s=a.height,l=Va(r),u=gR(i,(function(e){return FM(e.domain,YR)}))||Va(i),f=e.props||{};return d(e,{key:e.key||"grid",x:Fa(f.x)?f.x:o.left,y:Fa(f.y)?f.y:o.top,width:Fa(f.width)?f.width:o.width,height:Fa(f.height)?f.height:o.height,xAxis:l,yAxis:u,offset:o,chartWidth:c,chartHeight:s,verticalCoordinatesGenerator:f.verticalCoordinatesGenerator||t.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:f.horizontalCoordinatesGenerator||t.horizontalCoordinatesGenerator})})),UR(LR(t),"renderPolarGrid",(function(e){var n=e.props,r=n.radialLines,i=n.polarAngles,o=n.polarRadius,a=t.state,c=a.radiusAxisMap,s=a.angleAxisMap,l=Va(c),u=Va(s),f=u.cx,p=u.cy,h=u.innerRadius,m=u.outerRadius;return d(e,{polarAngles:yi(i)?i:zC(u,!0).map((function(e){return e.coordinate})),polarRadius:yi(o)?o:zC(l,!0).map((function(e){return e.coordinate})),cx:f,cy:p,innerRadius:h,outerRadius:m,key:e.key||"polar-grid",radialLines:r})})),UR(LR(t),"renderLegend",(function(){var e=t.state.formattedGraphicalItems,n=t.props,r=n.children,i=n.width,o=n.height,a=t.props.margin||{},c=i-(a.left||0)-(a.right||0),s=NC({children:r,formattedGraphicalItems:e,legendWidth:c,legendContent:p});if(!s)return null;var l=s.item,u=MR(s,CR);return d(l,VR(VR({},u),{},{chartWidth:i,chartHeight:o,margin:a,ref:function(e){t.legendInstance=e},onBBoxUpdate:t.handleLegendBBoxUpdate}))})),UR(LR(t),"renderTooltip",(function(){var e=lc(t.props.children,Ob);if(!e)return null;var n=t.state,r=n.isTooltipActive,i=n.activeCoordinate,o=n.activePayload,a=n.activeLabel,c=n.offset;return d(e,{viewBox:VR(VR({},c),{},{x:c.left,y:c.top}),active:r,label:a,payload:r?o:[],coordinate:i})})),UR(LR(t),"renderBrush",(function(e){var n=t.props,r=n.margin,i=n.data,o=t.state,a=o.offset,c=o.dataStartIndex,s=o.dataEndIndex,l=o.updateId;return d(e,{key:e.key||"_recharts-brush",onChange:BC(t.handleBrushChange,null,e.props.onChange),data:i,x:Fa(e.props.x)?e.props.x:a.left,y:Fa(e.props.y)?e.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:Fa(e.props.width)?e.props.width:a.width,startIndex:c,endIndex:s,updateId:"brush-".concat(l)})})),UR(LR(t),"renderReferenceElement",(function(e,n,r){if(!e)return null;var i=LR(t).clipPathId,o=t.state,a=o.xAxisMap,c=o.yAxisMap,s=o.offset,l=e.props,u=l.xAxisId,f=l.yAxisId;return d(e,{key:e.key||"".concat(n,"-").concat(r),xAxis:a[u],yAxis:c[f],viewBox:{x:s.left,y:s.top,width:s.width,height:s.height},clipPathId:i})})),UR(LR(t),"renderActivePoints",(function(e){var t=e.item,n=e.activePoint,r=e.basePoint,i=e.childIndex,o=e.isRange,a=[],c=t.props.key,s=t.item.props,l=s.activeDot,u=VR(VR({index:i,dataKey:s.dataKey,cx:n.x,cy:n.y,r:4,fill:MC(t.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value,key:"".concat(c,"-activePoint-").concat(i)},hc(l)),Ja(l));return a.push(f.renderActiveDot(l,u)),r?a.push(f.renderActiveDot(l,VR(VR({},u),{},{cx:r.x,cy:r.y,key:"".concat(c,"-basePoint-").concat(i)}))):o&&a.push(null),a})),UR(LR(t),"renderGraphicChild",(function(e,n,r){var i=t.filterFormatItem(e,n,r);if(!i)return null;var o=t.getTooltipEventType(),a=t.state,c=a.isTooltipActive,s=a.tooltipAxis,l=a.activeTooltipIndex,u=a.activeLabel,f=lc(t.props.children,Ob),p=i.props,h=p.points,m=p.isRange,y=p.baseLine,v=i.item.props,g=v.activeDot,b=!v.hide&&c&&f&&g&&l>=0,x={};"axis"!==o&&f&&"click"===f.props.trigger?x={onClick:BC(t.handleItemMouseEnter,null,e.props.onCLick)}:"axis"!==o&&(x={onMouseLeave:BC(t.handleItemMouseLeave,null,e.props.onMouseLeave),onMouseEnter:BC(t.handleItemMouseEnter,null,e.props.onMouseEnter)});var w=d(e,VR(VR({},i.props),x));if(b){var k,E;if(s.dataKey&&!s.allowDuplicatedCategory){var S="function"==typeof s.dataKey?function(e){return"function"==typeof s.dataKey?s.dataKey(e.payload):null}:"payload.".concat(s.dataKey.toString());k=Wa(h,S,u),E=m&&y&&Wa(y,S,u)}else k=h[l],E=m&&y&&y[l];if(!Sa(k))return[w].concat(zR(t.renderActivePoints({item:i,activePoint:k,basePoint:E,childIndex:l,isRange:m})))}return m?[w,null,null]:[w,null]})),UR(LR(t),"renderCustomized",(function(e,n,r){return d(e,VR(VR({key:"recharts-customized-".concat(r)},t.props),t.state))})),t.uniqueChartId=Sa(e.id)?qa("recharts"):e.id,t.clipPathId="".concat(t.uniqueChartId,"-clip"),e.throttleDelay&&(t.triggeredAfterMouseMove=Kb(t.triggeredAfterMouseMove,e.throttleDelay)),t.state={},t}return r=f,o=[{key:"componentDidMount",value:function(){Sa(this.props.syncId)||this.addListener()}},{key:"componentDidUpdate",value:function(e){Sa(e.syncId)&&!Sa(this.props.syncId)&&this.addListener(),!Sa(e.syncId)&&Sa(this.props.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){this.clearDeferId(),Sa(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=lc(this.props.children,Ob);if(e&&wR(e.props.shared)){var t=e.props.shared?"axis":"item";return l.indexOf(t)>=0?t:c}return c}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t=function(e){var t=e.ownerDocument.documentElement,n={top:0,left:0};return void 0!==e.getBoundingClientRect&&(n=e.getBoundingClientRect()),{top:n.top+window.pageYOffset-t.clientTop,left:n.left+window.pageXOffset-t.clientLeft}}(this.container),n=function(e,t){return{chartX:Math.round(e.pageX-t.left),chartY:Math.round(e.pageY-t.top)}}(e,t),r=this.inRange(n.chartX,n.chartY);if(!r)return null;var i=this.state,o=i.xAxisMap,a=i.yAxisMap;if("axis"!==this.getTooltipEventType()&&o&&a){var c=Va(o).scale,s=Va(a).scale,l=c&&c.invert?c.invert(n.chartX):null,u=s&&s.invert?s.invert(n.chartY):null;return VR(VR({},n),{},{xValue:l,yValue:u})}var f=eL(this.state,this.props.data,this.props.layout,r);return f?VR(VR({},n),f):null}},{key:"getCursorRectangle",value:function(){var e=this.props.layout,t=this.state,n=t.activeCoordinate,r=t.offset,i=t.tooltipAxisBandSize,o=i/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?n.x-o:r.left+.5,y:"horizontal"===e?r.top+.5:n.y-o,width:"horizontal"===e?i:r.width-1,height:"horizontal"===e?r.height-1:i}}},{key:"getCursorPoints",value:function(){var e,t,n,r,i=this.props.layout,o=this.state,a=o.activeCoordinate,c=o.offset;if("horizontal"===i)n=e=a.x,t=c.top,r=c.top+c.height;else if("vertical"===i)r=t=a.y,e=c.left,n=c.left+c.width;else if(!Sa(a.cx)||!Sa(a.cy)){if("centric"!==i){var s=a.cx,l=a.cy,u=a.radius,f=a.startAngle,p=a.endAngle;return{points:[dT(s,l,u,f),dT(s,l,u,p)],cx:s,cy:l,radius:u,startAngle:f,endAngle:p}}var d=a.cx,h=a.cy,m=a.innerRadius,y=a.outerRadius,v=a.angle,g=dT(d,h,m,v),b=dT(d,h,y,v);e=g.x,t=g.y,n=b.x,r=b.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 i=this.state,o=i.angleAxisMap,a=i.radiusAxisMap;if(o&&a){var c=Va(o);return gT({x:e,y:t},c)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=lc(e,Ob),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}),VR(VR({},Ja(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){OR.on(AR,this.handleReceiveSyncEvent),OR.setMaxListeners&&OR._maxListeners&&OR.setMaxListeners(OR._maxListeners+1)}},{key:"removeListener",value:function(){OR.removeListener(AR,this.handleReceiveSyncEvent),OR.setMaxListeners&&OR._maxListeners&&OR.setMaxListeners(OR._maxListeners-1)}},{key:"triggerSyncEvent",value:function(e){var t=this.props.syncId;Sa(t)||OR.emit(AR,t,this.uniqueChartId,e)}},{key:"applySyncEvent",value:function(e){var t=this.props,n=t.layout,r=t.syncMethod,i=this.state.updateId,o=e.dataStartIndex,a=e.dataEndIndex;if(Sa(e.dataStartIndex)&&Sa(e.dataEndIndex))if(Sa(e.activeTooltipIndex))this.setState(e);else{var c=e.chartX,s=e.chartY,l=e.activeTooltipIndex,u=this.state,f=u.offset,p=u.tooltipTicks;if(!f)return;if("function"==typeof r)l=r(p,e);else if("value"===r){l=-1;for(var d=0;d<p.length;d++)if(p[d].value===e.activeLabel){l=d;break}}var h=VR(VR({},f),{},{x:f.left,y:f.top}),m=Math.min(c,h.x+h.width),y=Math.min(s,h.y+h.height),g=p[l]&&p[l].value,b=QR(this.state,this.props.data,l),x=p[l]?{x:"horizontal"===n?p[l].coordinate:m,y:"horizontal"===n?y:p[l].coordinate}:GR;this.setState(VR(VR({},e),{},{activeLabel:g,activeCoordinate:x,activePayload:b,activeTooltipIndex:l}))}else this.setState(VR({dataStartIndex:o,dataEndIndex:a},v({props:this.props,dataStartIndex:o,dataEndIndex:a,updateId:i},this.state)))}},{key:"filterFormatItem",value:function(e,t,n){for(var r=this.state.formattedGraphicalItems,i=0,o=r.length;i<o;i++){var a=r[i];if(a.item===e||a.props.key===e.key||t===ic(a.item.type)&&n===a.childIndex)return a}return null}},{key:"renderAxis",value:function(t,n,r,i){var o=this.props,a=o.width,c=o.height;return e.createElement(rI,jR({},t,{className:"recharts-".concat(t.axisType," ").concat(t.axisType),key:n.key||"".concat(r,"-").concat(i),viewBox:{x:0,y:0,width:a,height:c},ticksGenerator:this.axesTicksGenerator}))}},{key:"renderClipPath",value:function(){var t=this.clipPathId,n=this.state.offset,r=n.left,i=n.top,o=n.height,a=n.width;return e.createElement("defs",null,e.createElement("clipPath",{id:t},e.createElement("rect",{x:r,y:i,height:o,width:a})))}},{key:"getXScales",value:function(){var e=this.state.xAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=DR(t,2),r=n[0],i=n[1];return VR(VR({},e),{},UR({},r,i.scale))}),{}):null}},{key:"getYScales",value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=DR(t,2),r=n[0],i=n[1];return VR(VR({},e),{},UR({},r,i.scale))}),{}):null}},{key:"getXScaleByAxisId",value:function(e){var t,n;return null===(t=this.state.xAxisMap)||void 0===t||null===(n=t[e])||void 0===n?void 0:n.scale}},{key:"getYScaleByAxisId",value:function(e){var t,n;return null===(t=this.state.yAxisMap)||void 0===t||null===(n=t[e])||void 0===n?void 0:n.scale}},{key:"getItemByXY",value:function(e){var t=this.state.formattedGraphicalItems;if(t&&t.length)for(var n=0,r=t.length;n<r;n++){var i=t[n],o=i.props,a=i.item,c=ic(a.type);if("Bar"===c){var s=(o.data||[]).find((function(t){return AP(e,t)}));if(s)return{graphicalItem:i,payload:s}}else if("RadialBar"===c){var l=(o.data||[]).find((function(t){return gT(e,t)}));if(l)return{graphicalItem:i,payload:l}}}return null}},{key:"render",value:function(){var t=this;if(!uc(this))return null;var n=this.props,r=n.children,i=n.className,o=n.width,a=n.height,c=n.style,s=n.compact,l=n.title,u=n.desc,f=MR(n,TR),p=hc(f),d={CartesianGrid:{handler:this.renderGrid,once:!0},ReferenceArea:{handler:this.renderReferenceElement},ReferenceLine:{handler:this.renderReferenceElement},ReferenceDot:{handler:this.renderReferenceElement},XAxis:{handler:this.renderXAxis},YAxis:{handler:this.renderYAxis},Brush:{handler:this.renderBrush,once:!0},Bar:{handler:this.renderGraphicChild},Line:{handler:this.renderGraphicChild},Area:{handler:this.renderGraphicChild},Radar:{handler:this.renderGraphicChild},RadialBar:{handler:this.renderGraphicChild},Scatter:{handler:this.renderGraphicChild},Pie:{handler:this.renderGraphicChild},Funnel:{handler:this.renderGraphicChild},Tooltip:{handler:this.renderCursor,once:!0},PolarGrid:{handler:this.renderPolarGrid,once:!0},PolarAngleAxis:{handler:this.renderPolarAxis},PolarRadiusAxis:{handler:this.renderPolarAxis},Customized:{handler:this.renderCustomized}};if(s)return e.createElement(wc,jR({},p,{width:o,height:a,title:l,desc:u}),this.renderClipPath(),vc(r,d));var h=this.parseEventsOfWrapper();return e.createElement("div",jR({className:$r("recharts-wrapper",i),style:VR({position:"relative",cursor:"default",width:o,height:a},c)},h,{ref:function(e){t.container=e},role:"region"}),e.createElement(wc,jR({},p,{width:o,height:a,title:l,desc:u}),this.renderClipPath(),vc(r,d)),this.renderLegend(),this.renderTooltip())}}],o&&NR(r.prototype,o),a&&NR(r,a),Object.defineProperty(r,"prototype",{writable:!1}),f}(),UR(r,"displayName",i),UR(r,"defaultProps",VR({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},m)),UR(r,"getDerivedStateFromProps",(function(e,t){var n=e.data,r=e.children,i=e.width,o=e.height,a=e.layout,c=e.stackOffset,s=e.margin;if(Sa(t.updateId)){var l=rL(e);return VR(VR(VR({},l),{},{updateId:0},v(VR(VR({props:e},l),{},{updateId:0}),t)),{},{prevData:n,prevWidth:i,prevHeight:o,prevLayout:a,prevStackOffset:c,prevMargin:s,prevChildren:r})}if(n!==t.prevData||i!==t.prevWidth||o!==t.prevHeight||a!==t.prevLayout||c!==t.prevStackOffset||!$a(s,t.prevMargin)){var u=rL(e),f={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},p=VR(VR({},eL(t,n,a)),{},{updateId:t.updateId+1}),d=VR(VR(VR({},u),f),p);return VR(VR(VR({},d),v(VR({props:e},d),t)),{},{prevData:n,prevWidth:i,prevHeight:o,prevLayout:a,prevStackOffset:c,prevMargin:s,prevChildren:r})}if(!mc(r,t.prevChildren)){var h=!Sa(n)?t.updateId:t.updateId+1;return VR(VR({updateId:h},v(VR(VR({props:e},t),{},{updateId:h}),t)),{},{prevChildren:r})}return null})),UR(r,"renderActiveDot",(function(t,n){var r;return r=u(t)?d(t,n):hi(t)?t(n):e.createElement(YP,n),e.createElement(_c,{className:"recharts-active-dot",key:n.key},r)})),r},cL=aL({chartName:"LineChart",GraphicalChild:jI,axisComponents:[{axisType:"xAxis",AxisComp:aR},{axisType:"yAxis",AxisComp:cR}],formatAxisMap:pN});aL({chartName:"BarChart",GraphicalChild:oN,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:aR},{axisType:"yAxis",AxisComp:cR}],formatAxisMap:pN}),aL({chartName:"PieChart",GraphicalChild:bj,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:ZD},{axisType:"radiusAxis",AxisComp:LD}],formatAxisMap:mT,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});var sL=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},lL=BM,uL=mo,fL=Object.prototype.hasOwnProperty;var pL=function(e,t,n){var r=e[t];fL.call(e,t)&&uL(r,n)&&(void 0!==n||t in e)||lL(e,t,n)},dL=pL,hL=BM;var mL=function(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var c=t[o],s=r?r(n[c],e[c],c,n,e):void 0;void 0===s&&(s=e[c]),i?hL(n,c,s):dL(n,c,s)}return n},yL=mL,vL=dl;var gL=function(e,t){return e&&yL(t,vL(t),e)};var bL=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},xL=Gr,wL=el,kL=bL,EL=Object.prototype.hasOwnProperty;var SL=function(e){if(!xL(e))return kL(e);var t=wL(e),n=[];for(var r in e)("constructor"!=r||!t&&EL.call(e,r))&&n.push(r);return n},_L=Js,OL=SL,AL=ll;var CL=function(e){return AL(e)?_L(e,!0):OL(e)},TL=mL,PL=CL;var DL=function(e,t){return e&&TL(t,PL(t),e)},jL={exports:{}};!function(e,t){var n=Jr,r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r?n.Buffer:void 0,a=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=a?a(n):new e.constructor(n);return e.copy(r),r}}(jL,jL.exports);var ML=jL.exports;var NL=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},IL=mL,RL=vs;var LL=function(e,t){return IL(e,RL(e),t)},FL=as,zL=KD,BL=vs,qL=fs,HL=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)FL(t,BL(e)),e=zL(e);return t}:qL,VL=mL,UL=HL;var WL=function(e,t){return VL(e,UL(e),t)},$L=ls,GL=HL,YL=CL;var XL=function(e){return $L(e,YL,GL)},ZL=Object.prototype.hasOwnProperty;var KL=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ZL.call(e,"index")&&(n.index=e.index,n.input=e.input),n},JL=Xc;var QL=function(e){var t=new e.constructor(e.byteLength);return new JL(t).set(new JL(e)),t},eF=QL;var tF=function(e,t){var n=t?eF(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},nF=/\w*$/;var rF=function(e){var t=new e.constructor(e.source,nF.exec(e));return t.lastIndex=e.lastIndex,t},iF=Qr?Qr.prototype:void 0,oF=iF?iF.valueOf:void 0;var aF=QL;var cF=QL,sF=tF,lF=rF,uF=function(e){return oF?Object(oF.call(e)):{}},fF=function(e,t){var n=t?aF(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var pF=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return cF(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return sF(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return fF(e,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return lF(e);case"[object Symbol]":return uF(e)}},dF=Gr,hF=Object.create,mF=function(){function e(){}return function(t){if(!dF(t))return{};if(hF)return hF(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),yF=mF,vF=KD,gF=el;var bF=function(e){return"function"!=typeof e.constructor||gF(e)?{}:yF(vF(e))},xF=Hl,wF=vi;var kF=function(e){return wF(e)&&"[object Map]"==xF(e)},EF=Fs,SF=Bs&&Bs.isMap,_F=SF?EF(SF):kF,OF=Hl,AF=vi;var CF=function(e){return AF(e)&&"[object Set]"==OF(e)},TF=Fs,PF=Bs&&Bs.isSet,DF=PF?TF(PF):CF,jF=Lc,MF=sL,NF=pL,IF=gL,RF=DL,LF=ML,FF=NL,zF=LL,BF=WL,qF=vl,HF=XL,VF=Hl,UF=KL,WF=pF,$F=bF,GF=mi,YF=Ts,XF=_F,ZF=Gr,KF=DF,JF=dl,QF=CL,ez="[object Arguments]",tz="[object Function]",nz="[object Object]",rz={};rz[ez]=rz["[object Array]"]=rz["[object ArrayBuffer]"]=rz["[object DataView]"]=rz["[object Boolean]"]=rz["[object Date]"]=rz["[object Float32Array]"]=rz["[object Float64Array]"]=rz["[object Int8Array]"]=rz["[object Int16Array]"]=rz["[object Int32Array]"]=rz["[object Map]"]=rz["[object Number]"]=rz[nz]=rz["[object RegExp]"]=rz["[object Set]"]=rz["[object String]"]=rz["[object Symbol]"]=rz["[object Uint8Array]"]=rz["[object Uint8ClampedArray]"]=rz["[object Uint16Array]"]=rz["[object Uint32Array]"]=!0,rz["[object Error]"]=rz[tz]=rz["[object WeakMap]"]=!1;var iz=function e(t,n,r,i,o,a){var c,s=1&n,l=2&n,u=4&n;if(r&&(c=o?r(t,i,o,a):r(t)),void 0!==c)return c;if(!ZF(t))return t;var f=GF(t);if(f){if(c=UF(t),!s)return FF(t,c)}else{var p=VF(t),d=p==tz||"[object GeneratorFunction]"==p;if(YF(t))return LF(t,s);if(p==nz||p==ez||d&&!o){if(c=l||d?{}:$F(t),!s)return l?BF(t,RF(c,t)):zF(t,IF(c,t))}else{if(!rz[p])return o?t:{};c=WF(t,p,s)}}a||(a=new jF);var h=a.get(t);if(h)return h;a.set(t,c),KF(t)?t.forEach((function(i){c.add(e(i,n,r,i,t,a))})):XF(t)&&t.forEach((function(i,o){c.set(o,e(i,n,r,o,t,a))}));var m=f?void 0:(u?l?HF:qF:l?QF:JF)(t);return MF(m||t,(function(i,o){m&&(i=t[o=i]),NF(c,o,e(i,n,r,o,t,a))})),c},oz=ba,az=wf;var cz=function(e,t){return t.length<2?e:oz(e,az(t,0,-1))},sz=ha,lz=MT,uz=cz,fz=ya;var pz=function(e,t){return t=sz(t,e),null==(e=uz(e,t))||delete e[fz(lz(t))]},dz=aj;var hz=ng;var mz=function(e){return(null==e?0:e.length)?hz(e,1):[]},yz=mz,vz=Tg,gz=Bg;var bz=function(e){return gz(vz(e,void 0,yz),e+"")},xz=ta,wz=iz,kz=pz,Ez=ha,Sz=mL,_z=function(e){return dz(e)?void 0:e},Oz=XL,Az=bz((function(e,t){var n={};if(null==e)return n;var r=!1;t=xz(t,(function(t){return t=Ez(t,e),r||(r=t.length>1),t})),Sz(e,Oz(e),n),r&&(n=wz(n,7,_z));for(var i=t.length;i--;)kz(n,t[i]);return n})),Cz=_(Az),Tz=["#1890FF","#66B5FF","#41D9C7","#2FC25B","#6EDB8F","#9AE65C","#FACC14","#E6965C","#57AD71","#223273","#738AE6","#7564CC","#8543E0","#A877ED","#5C8EE6","#13C2C2","#70E0E0","#5CA3E6","#3436C7","#8082FF","#DD81E6","#F04864","#FA7D92","#D598D9"],Pz=["width","height","className","style","children","type"];function Dz(e){return Dz="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},Dz(e)}function jz(){return jz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jz.apply(this,arguments)}function Mz(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Nz(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Hz(r.key),r)}}function Iz(e,t){return Iz=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Iz(e,t)}function Rz(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Fz(e);if(t){var i=Fz(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Dz(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Lz(e)}(this,n)}}function Lz(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fz(e){return Fz=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Fz(e)}function zz(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 Bz(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zz(Object(n),!0).forEach((function(t){qz(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zz(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qz(e,t,n){return(t=Hz(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hz(e){var t=function(e,t){if("object"!==Dz(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Dz(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Dz(t)?t:String(t)}var Vz="value",Uz=function e(t){var n,r,i=t.depth,o=t.node,a=t.index,c=t.valueKey,s=o.children,l=i+1,u=s&&s.length?s.map((function(t,n){return e({depth:l,node:t,index:n,valueKey:c})})):null;return r=s&&s.length?u.reduce((function(e,t){return e+t[Vz]}),0):Ia(o[c])||o[c]<=0?0:o[c],Bz(Bz({},o),{},(qz(n={children:u},Vz,r),qz(n,"depth",i),qz(n,"index",a),n))},Wz=function(e,t,n){var r=t*t,i=e.area*e.area,o=e.reduce((function(e,t){return{min:Math.min(e.min,t.area),max:Math.max(e.max,t.area)}}),{min:1/0,max:0}),a=o.min,c=o.max;return i?Math.max(r*c*n/i,i/(r*a*n)):1/0},$z=function(e,t,n,r){return t===n.width?function(e,t,n,r){var i=t?Math.round(e.area/t):0;(r||i>n.height)&&(i=n.height);for(var o,a=n.x,c=0,s=e.length;c<s;c++)(o=e[c]).x=a,o.y=n.y,o.height=i,o.width=Math.min(i?Math.round(o.area/i):0,n.x+n.width-a),a+=o.width;return o.width+=n.x+n.width-a,Bz(Bz({},n),{},{y:n.y+i,height:n.height-i})}(e,t,n,r):function(e,t,n,r){var i=t?Math.round(e.area/t):0;(r||i>n.width)&&(i=n.width);for(var o,a=n.y,c=0,s=e.length;c<s;c++)(o=e[c]).x=n.x,o.y=a,o.width=i,o.height=Math.min(i?Math.round(o.area/i):0,n.y+n.height-a),a+=o.height;return o&&(o.height+=n.y+n.height-a),Bz(Bz({},n),{},{x:n.x+i,width:n.width-i})}(e,t,n,r)},Gz=function e(t,n){var r=t.children;if(r&&r.length){var i,o,a=function(e){return{x:e.x,y:e.y,width:e.width,height:e.height}}(t),c=[],s=1/0,l=Math.min(a.width,a.height),u=function(e,t){var n=t<0?0:t;return e.map((function(e){var t=e[Vz]*n;return Bz(Bz({},e),{},{area:Ia(t)||t<=0?0:t})}))}(r,a.width*a.height/t[Vz]),f=u.slice();for(c.area=0;f.length>0;)c.push(i=f[0]),c.area+=i.area,(o=Wz(c,l,n))<=s?(f.shift(),s=o):(c.area-=c.pop().area,a=$z(c,l,a,!1),l=Math.min(a.width,a.height),c.length=c.area=0,s=1/0);return c.length&&(a=$z(c,l,a,!0),c.length=c.area=0),Bz(Bz({},t),{},{children:u.map((function(t){return e(t,n)}))})}return t},Yz={isTooltipActive:!1,isAnimationFinished:!1,activeNode:null,formatRoot:null,currentRoot:null,nestIndex:[]},Xz=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Iz(e,t)}(a,p);var n,r,i,o=Rz(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return qz(Lz(e=o.call.apply(o,[this].concat(n))),"state",Bz({},Yz)),qz(Lz(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),hi(t)&&t()})),qz(Lz(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),hi(t)&&t()})),e}return n=a,r=[{key:"handleMouseEnter",value:function(e,t){var n=this.props,r=n.onMouseEnter;lc(n.children,Ob)?this.setState({isTooltipActive:!0,activeNode:e},(function(){r&&r(e,t)})):r&&r(e,t)}},{key:"handleMouseLeave",value:function(e,t){var n=this.props,r=n.onMouseLeave;lc(n.children,Ob)?this.setState({isTooltipActive:!1,activeNode:null},(function(){r&&r(e,t)})):r&&r(e,t)}},{key:"handleClick",value:function(e){var t=this.props,n=t.onClick;if("nest"===t.type&&e.children){var r=this.props,i=r.width,o=r.height,a=r.dataKey,c=r.aspectRatio,s=Uz({depth:0,node:Bz(Bz({},e),{},{x:0,y:0,width:i,height:o}),index:0,valueKey:a}),l=Gz(s,c),u=this.state.nestIndex;u.push(e),this.setState({formatRoot:l,currentRoot:s,nestIndex:u})}n&&n(e)}},{key:"handleNestIndex",value:function(e,t){var n=this.state.nestIndex,r=this.props,i=r.width,o=r.height,a=r.dataKey,c=r.aspectRatio,s=Uz({depth:0,node:Bz(Bz({},e),{},{x:0,y:0,width:i,height:o}),index:0,valueKey:a}),l=Gz(s,c);n=n.slice(0,t+1),this.setState({formatRoot:l,currentRoot:e,nestIndex:n})}},{key:"renderItem",value:function(t,n,r){var i=this,o=this.props,a=o.isAnimationActive,c=o.animationBegin,s=o.animationDuration,l=o.animationEasing,u=o.isUpdateAnimationActive,f=o.type,p=o.animationId,d=o.colorPanel,h=this.state.isAnimationFinished,m=n.width,y=n.height,v=n.x,g=n.y,b=n.depth,x=parseInt("".concat((2*Math.random()-1)*m),10),w={};return(r||"nest"===f)&&(w={onMouseEnter:this.handleMouseEnter.bind(this,n),onMouseLeave:this.handleMouseLeave.bind(this,n),onClick:this.handleClick.bind(this,n)}),a?e.createElement(Zv,{begin:c,duration:s,isActive:a,easing:l,key:"treemap-".concat(p),from:{x:v,y:g,width:m,height:y},to:{x:v,y:g,width:m,height:y},onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(r){var o=r.x,p=r.y,m=r.width,y=r.height;return e.createElement(Zv,{from:"translate(".concat(x,"px, ").concat(x,"px)"),to:"translate(0, 0)",attributeName:"transform",begin:c,easing:l,isActive:a,duration:s},e.createElement(_c,w,b>2&&!h?null:i.constructor.renderContentItem(t,Bz(Bz({},n),{},{isAnimationActive:a,isUpdateAnimationActive:!u,width:m,height:y,x:o,y:p}),f,d)))})):e.createElement(_c,w,this.constructor.renderContentItem(t,Bz(Bz({},n),{},{isAnimationActive:!1,isUpdateAnimationActive:!1,width:m,height:y,x:v,y:g}),f,d))}},{key:"renderNode",value:function(t,n,r){var i=this,o=this.props,a=o.content,c=o.type,s=Bz(Bz(Bz({},hc(this.props)),n),{},{root:t}),l=!n.children||!n.children.length;return!(this.state.currentRoot.children||[]).filter((function(e){return e.depth===n.depth&&e.name===n.name})).length&&t.depth&&"nest"===c?null:e.createElement(_c,{key:"recharts-treemap-node-".concat(r),className:"recharts-treemap-depth-".concat(n.depth)},this.renderItem(a,s,l),n.children&&n.children.length?n.children.map((function(e,t){return i.renderNode(n,e,t)})):null)}},{key:"renderAllNodes",value:function(){var e=this.state.formatRoot;return e?this.renderNode(e,e,0):null}},{key:"renderTooltip",value:function(){var t=this.props,n=t.children,r=t.nameKey,i=lc(n,Ob);if(!i)return null;var o=this.props,a=o.width,c=o.height,s=this.state,l=s.isTooltipActive,u=s.activeNode,f={x:0,y:0,width:a,height:c},p=u?{x:u.x+u.width/2,y:u.y+u.height/2}:null,d=l&&u?[{payload:u,name:DC(u,r,""),value:DC(u,Vz)}]:[];return e.cloneElement(i,{viewBox:f,active:l,coordinate:p,label:"",payload:d})}},{key:"renderNestIndex",value:function(){var t=this,n=this.props,r=n.nameKey,i=n.nestIndexContent,o=this.state.nestIndex;return e.createElement("div",{className:"recharts-treemap-nest-index-wrapper",style:{marginTop:"8px",textAlign:"center"}},o.map((function(n,o){var a=ka(n,r,"root"),c=null;return e.isValidElement(i)&&(c=e.cloneElement(i,n,o)),c=hi(i)?i(n,o):a,e.createElement("div",{onClick:t.handleNestIndex.bind(t,n,o),key:"nest-index-".concat(qa()),className:"recharts-treemap-nest-index-box",style:{cursor:"pointer",display:"inline-block",padding:"0 7px",background:"#000",color:"#fff",marginRight:"3px"}},c)})))}},{key:"render",value:function(){if(!uc(this))return null;var t=this.props,n=t.width,r=t.height,i=t.className,o=t.style,a=t.children,c=t.type,s=Mz(t,Pz),l=hc(s);return e.createElement("div",{className:$r("recharts-wrapper",i),style:Bz(Bz({},o),{},{position:"relative",cursor:"default",width:n,height:r}),role:"region"},e.createElement(wc,jz({},l,{width:n,height:"nest"===c?r-30:r}),this.renderAllNodes(),dc(a)),this.renderTooltip(),"nest"===c&&this.renderNestIndex())}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){if(e.data!==t.prevData||e.type!==t.prevType||e.width!==t.prevWidth||e.height!==t.prevHeight||e.dataKey!==t.prevDataKey||e.aspectRatio!==t.prevAspectRatio){var n=Uz({depth:0,node:{children:e.data,x:0,y:0,width:e.width,height:e.height},index:0,valueKey:e.dataKey}),r=Gz(n,e.aspectRatio);return Bz(Bz({},t),{},{formatRoot:r,currentRoot:n,nestIndex:[n],prevAspectRatio:e.aspectRatio,prevData:e.data,prevWidth:e.width,prevHeight:e.height,prevDataKey:e.dataKey,prevType:e.type})}return null}},{key:"renderContentItem",value:function(t,n,r,i){if(e.isValidElement(t))return e.cloneElement(t,n);if(hi(t))return t(n);var o=n.x,a=n.y,c=n.width,s=n.height,l=n.index,u=null;c>10&&s>10&&n.children&&"nest"===r&&(u=e.createElement(qP,{points:[{x:o+2,y:a+s/2},{x:o+6,y:a+s/2+3},{x:o+2,y:a+s/2+6}]}));var f=null,p=nw(n.name);c>20&&s>20&&p.width<c&&p.height<s&&(f=e.createElement("text",{x:o+8,y:a+s/2+7,fontSize:14},n.name));var d=i||Tz;return e.createElement("g",null,e.createElement(CP,jz({fill:n.depth<2?d[l%d.length]:"rgba(255,255,255,0)",stroke:"#fff"},Cz(n,"children"),{role:"img"})),u,f)}}],r&&Nz(n.prototype,r),i&&Nz(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();qz(Xz,"displayName","Treemap"),qz(Xz,"defaultProps",{aspectRatio:.5*(1+Math.sqrt(5)),dataKey:"value",type:"flat",isAnimationActive:!db.isSsr,isUpdateAnimationActive:!db.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"linear"});var Zz=function(e,t){for(var n,r=-1,i=e.length;++r<i;){var o=t(e[r]);void 0!==o&&(n=void 0===n?o:n+o)}return n},Kz=Zu,Jz=Zz;var Qz=function(e,t){return e&&e.length?Jz(e,Kz(t)):0},eB=_(Qz),tB=["width","height","className","style","children"],nB=["sourceX","sourceY","sourceControlX","targetX","targetY","targetControlX","linkWidth"];function rB(e){return rB="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},rB(e)}function iB(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function oB(){return oB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oB.apply(this,arguments)}function aB(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hB(r.key),r)}}function cB(e,t){return cB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},cB(e,t)}function sB(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=uB(e);if(t){var i=uB(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===rB(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return lB(e)}(this,n)}}function lB(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uB(e){return uB=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},uB(e)}function fB(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 pB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fB(Object(n),!0).forEach((function(t){dB(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dB(e,t,n){return(t=hB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hB(e){var t=function(e,t){if("object"!==rB(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==rB(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===rB(t)?t:String(t)}var mB={x:0,y:0},yB=function(e){return e.y+e.dy/2},vB=function(e){return e&&e.value||0},gB=function(e,t){return t.reduce((function(t,n){return t+vB(e[n])}),0)},bB=function(e,t,n){return n.reduce((function(n,r){var i=t[r],o=e[i.source];return n+yB(o)*vB(t[r])}),0)},xB=function(e,t,n){return n.reduce((function(n,r){var i=t[r],o=e[i.target];return n+yB(o)*vB(t[r])}),0)},wB=function(e,t){return e.y-t.y},kB=function e(t,n){for(var r=n.targetNodes,i=0,o=r.length;i<o;i++){var a=t[r[i]];a&&(a.depth=Math.max(n.depth+1,a.depth),e(t,a))}},EB=function(e,t,n){for(var r=0,i=e.length;r<i;r++){var o=e[r],a=o.length;o.sort(wB);for(var c=0,s=0;s<a;s++){var l=o[s],u=c-l.y;u>0&&(l.y+=u),c=l.y+l.dy+n}c=t+n;for(var f=a-1;f>=0;f--){var p=o[f],d=p.y+p.dy+n-c;if(!(d>0))break;p.y-=d,c=p.y}}},SB=function(e,t,n,r){for(var i=0,o=t.length;i<o;i++)for(var a=t[i],c=0,s=a.length;c<s;c++){var l=a[c];if(l.sourceLinks.length){var u=gB(n,l.sourceLinks),f=bB(e,n,l.sourceLinks)/u;l.y+=(f-yB(l))*r}}},_B=function(e,t,n,r){for(var i=t.length-1;i>=0;i--)for(var o=t[i],a=0,c=o.length;a<c;a++){var s=o[a];if(s.targetLinks.length){var l=gB(n,s.targetLinks),u=xB(e,n,s.targetLinks)/l;s.y+=(u-yB(s))*r}}},OB=function(e){var t=e.data,n=e.width,r=e.height,i=e.iterations,o=e.nodeWidth,a=e.nodePadding,c=t.links,s=function(e,t,n){for(var r=e.nodes,i=e.links,o=r.map((function(e,t){var n=function(e,t){for(var n=[],r=[],i=[],o=[],a=0,c=e.length;a<c;a++){var s=e[a];s.source===t&&(i.push(s.target),o.push(a)),s.target===t&&(n.push(s.source),r.push(a))}return{sourceNodes:n,sourceLinks:r,targetLinks:o,targetNodes:i}}(i,t);return pB(pB(pB({},e),n),{},{value:Math.max(gB(i,n.sourceLinks),gB(i,n.targetLinks)),depth:0})})),a=0,c=o.length;a<c;a++){var s=o[a];s.sourceNodes.length||kB(o,s)}var l=ED(o,(function(e){return e.depth})).depth;if(l>=1)for(var u=(t-n)/l,f=0,p=o.length;f<p;f++){var d=o[f];d.targetNodes.length||(d.depth=l),d.x=d.depth*u,d.dx=n}return{tree:o,maxDepth:l}}(t,n,o),l=s.tree,u=function(e){for(var t=[],n=0,r=e.length;n<r;n++){var i=e[n];t[i.depth]||(t[i.depth]=[]),t[i.depth].push(i)}return t}(l),f=function(e,t,n,r){for(var i=Fw(e.map((function(e){return(t-(e.length-1)*n)/eB(e,vB)}))),o=0,a=e.length;o<a;o++)for(var c=0,s=e[o].length;c<s;c++){var l=e[o][c];l.y=c,l.dy=l.value*i}return r.map((function(e){return pB(pB({},e),{},{dy:vB(e)*i})}))}(u,r,a,c);EB(u,r,a);for(var p=1,d=1;d<=i;d++)_B(l,u,f,p*=.99),EB(u,r,a),SB(l,u,f,p),EB(u,r,a);return function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n],o=0,a=0;i.targetLinks.sort((function(n,r){return e[t[n].target].y-e[t[r].target].y})),i.sourceLinks.sort((function(n,r){return e[t[n].source].y-e[t[r].source].y}));for(var c=0,s=i.targetLinks.length;c<s;c++){var l=t[i.targetLinks[c]];l&&(l.sy=o,o+=l.dy)}for(var u=0,f=i.sourceLinks.length;u<f;u++){var p=t[i.sourceLinks[u]];p&&(p.ty=a,a+=p.dy)}}}(l,f),{nodes:l,links:f}},AB=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cB(e,t)}(a,p);var n,r,i,o=sB(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return dB(lB(e=o.call.apply(o,[this].concat(n))),"state",{activeElement:null,activeElementType:null,isTooltipActive:!1,nodes:[],links:[]}),e}return n=a,r=[{key:"handleMouseEnter",value:function(e,t,n){var r=this.props,i=r.onMouseEnter,o=lc(r.children,Ob);o?this.setState((function(n){return"hover"===o.props.trigger?pB(pB({},n),{},{activeElement:e,activeElementType:t,isTooltipActive:!0}):n}),(function(){i&&i(e,t,n)})):i&&i(e,t,n)}},{key:"handleMouseLeave",value:function(e,t,n){var r=this.props,i=r.onMouseLeave,o=lc(r.children,Ob);o?this.setState((function(e){return"hover"===o.props.trigger?pB(pB({},e),{},{activeElement:void 0,activeElementType:void 0,isTooltipActive:!1}):e}),(function(){i&&i(e,t,n)})):i&&i(e,t,n)}},{key:"handleClick",value:function(e,t,n){var r=this.props,i=r.onClick,o=lc(r.children,Ob);o&&"click"===o.props.trigger&&(this.state.isTooltipActive?this.setState((function(e){return pB(pB({},e),{},{activeElement:void 0,activeElementType:void 0,isTooltipActive:!1})})):this.setState((function(n){return pB(pB({},n),{},{activeElement:e,activeElementType:t,isTooltipActive:!0})}))),i&&i(e,t,n)}},{key:"renderLinks",value:function(t,n){var r=this,i=this.props,o=i.linkCurvature,a=i.link,c=i.margin,s=ka(c,"top")||0,l=ka(c,"left")||0;return e.createElement(_c,{className:"recharts-sankey-links",key:"recharts-sankey-links"},t.map((function(t,i){var c=t.sy,u=t.ty,f=t.dy,p=n[t.source],d=n[t.target],h=p.x+p.dx+l,m=d.x+l,y=function(e,t){var n=+e,r=t-n;return function(e){return n+r*e}}(h,m),v=y(o),g=y(1-o),b=pB({sourceX:h,targetX:m,sourceY:p.y+c+f/2+s,targetY:d.y+u+f/2+s,sourceControlX:v,targetControlX:g,sourceRelativeY:c,targetRelativeY:u,linkWidth:f,index:i,payload:pB(pB({},t),{},{source:p,target:d})},hc(a)),x={onMouseEnter:r.handleMouseEnter.bind(r,b,"link"),onMouseLeave:r.handleMouseLeave.bind(r,b,"link"),onClick:r.handleClick.bind(r,b,"link")};return e.createElement(_c,oB({key:"link".concat(i)},x),r.constructor.renderLinkItem(a,b))})))}},{key:"renderNodes",value:function(t){var n=this,r=this.props,i=r.node,o=r.margin,a=ka(o,"top")||0,c=ka(o,"left")||0;return e.createElement(_c,{className:"recharts-sankey-nodes",key:"recharts-sankey-nodes"},t.map((function(t,r){var o=t.x,s=t.y,l=t.dx,u=t.dy,f=pB(pB({},hc(i)),{},{x:o+c,y:s+a,width:l,height:u,index:r,payload:t}),p={onMouseEnter:n.handleMouseEnter.bind(n,f,"node"),onMouseLeave:n.handleMouseLeave.bind(n,f,"node"),onClick:n.handleClick.bind(n,f,"node")};return e.createElement(_c,oB({key:"node".concat(r)},p),n.constructor.renderNodeItem(i,f))})))}},{key:"renderTooltip",value:function(){var t=this.props,n=t.children,r=t.width,i=t.height,o=t.nameKey,a=lc(n,Ob);if(!a)return null;var c=this.state,s=c.isTooltipActive,l=c.activeElement,u=c.activeElementType,f={x:0,y:0,width:r,height:i},p=l?function(e,t){return"node"===t?{x:e.x+e.width/2,y:e.y+e.height/2}:{x:(e.sourceX+e.targetX)/2,y:(e.sourceY+e.targetY)/2}}(l,u):mB,d=l?function(e,t,n){var r=e.payload;if("node"===t)return[{payload:e,name:DC(r,n,""),value:DC(r,"value")}];if(r.source&&r.target){var i=DC(r.source,n,""),o=DC(r.target,n,"");return[{payload:e,name:"".concat(i," - ").concat(o),value:DC(r,"value")}]}return[]}(l,u,o):[];return e.cloneElement(a,{viewBox:f,active:s,coordinate:p,label:"",payload:d})}},{key:"render",value:function(){if(!uc(this))return null;var t=this.props,n=t.width,r=t.height,i=t.className,o=t.style,a=t.children,c=iB(t,tB),s=this.state,l=s.links,u=s.nodes,f=hc(c);return e.createElement("div",{className:$r("recharts-wrapper",i),style:pB(pB({},o),{},{position:"relative",cursor:"default",width:n,height:r}),role:"region"},e.createElement(wc,oB({},f,{width:n,height:r}),dc(a),this.renderLinks(l,u),this.renderNodes(u)),this.renderTooltip())}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=e.width,i=e.height,o=e.margin,a=e.iterations,c=e.nodeWidth,s=e.nodePadding;if(n!==t.prevData||r!==t.prevWidth||i!==t.prevHeight||!$a(o,t.prevMargin)||a!==t.prevIterations||c!==t.prevNodeWidth||s!==t.prevNodePadding){var l=r-(o&&o.left||0)-(o&&o.right||0),u=i-(o&&o.top||0)-(o&&o.bottom||0),f=OB({data:n,width:l,height:u,iterations:a,nodeWidth:c,nodePadding:s}),p=f.links,d=f.nodes;return pB(pB({},t),{},{nodes:d,links:p,prevData:n,prevWidth:a,prevHeight:i,prevMargin:o,prevNodePadding:s,prevNodeWidth:c,prevIterations:a})}return null}},{key:"renderLinkItem",value:function(t,n){if(e.isValidElement(t))return e.cloneElement(t,n);if(hi(t))return t(n);var r=n.sourceX,i=n.sourceY,o=n.sourceControlX,a=n.targetX,c=n.targetY,s=n.targetControlX,l=n.linkWidth,u=iB(n,nB);return e.createElement("path",oB({className:"recharts-sankey-link",d:"\n M".concat(r,",").concat(i,"\n C").concat(o,",").concat(i," ").concat(s,",").concat(c," ").concat(a,",").concat(c,"\n "),fill:"none",stroke:"#333",strokeWidth:l,strokeOpacity:"0.2"},hc(u)))}},{key:"renderNodeItem",value:function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):hi(t)?t(n):e.createElement(CP,oB({className:"recharts-sankey-node",fill:"#0088fe",fillOpacity:"0.8"},hc(n),{role:"img"}))}}],r&&aB(n.prototype,r),i&&aB(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function CB(e){return CB="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},CB(e)}function TB(){return TB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},TB.apply(this,arguments)}function PB(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,RB(r.key),r)}}function DB(e,t){return DB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},DB(e,t)}function jB(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=NB(e);if(t){var i=NB(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===CB(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return MB(e)}(this,n)}}function MB(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function NB(e){return NB=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},NB(e)}function IB(e,t,n){return(t=RB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RB(e){var t=function(e,t){if("object"!==CB(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==CB(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===CB(t)?t:String(t)}dB(AB,"displayName","Sankey"),dB(AB,"defaultProps",{nameKey:"name",dataKey:"value",nodePadding:10,nodeWidth:10,linkCurvature:.5,iterations:32,margin:{top:5,right:5,bottom:5,left:5}}),aL({chartName:"RadarChart",GraphicalChild:Mj,axisComponents:[{axisType:"angleAxis",AxisComp:ZD},{axisType:"radiusAxis",AxisComp:LD}],formatAxisMap:mT,defaultProps:{layout:"centric",startAngle:90,endAngle:-270,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),aL({chartName:"ScatterChart",GraphicalChild:oR,defaultTooltipEventType:"item",validateTooltipEventTypes:["item"],axisComponents:[{axisType:"xAxis",AxisComp:aR},{axisType:"yAxis",AxisComp:cR},{axisType:"zAxis",AxisComp:GI}],formatAxisMap:pN}),aL({chartName:"AreaChart",GraphicalChild:$I,axisComponents:[{axisType:"xAxis",AxisComp:aR},{axisType:"yAxis",AxisComp:cR}],formatAxisMap:pN}),aL({chartName:"RadialBarChart",GraphicalChild:Gj,legendContent:"children",defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"angleAxis",AxisComp:ZD},{axisType:"radiusAxis",AxisComp:LD}],formatAxisMap:mT,defaultProps:{layout:"radial",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),aL({chartName:"ComposedChart",GraphicalChild:[jI,$I,oN,oR],axisComponents:[{axisType:"xAxis",AxisComp:aR},{axisType:"yAxis",AxisComp:cR},{axisType:"zAxis",AxisComp:GI}],formatAxisMap:pN});var LB=function(e,t,n,r,i){var o,a=n-r;return o="M ".concat(e,",").concat(t),o+="L ".concat(e+n,",").concat(t),o+="L ".concat(e+n-a/2,",").concat(t+i),o+="L ".concat(e+n-a/2-r,",").concat(t+i),o+="L ".concat(e,",").concat(t," Z")},FB=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&DB(e,t)}(a,p);var n,r,i,o=jB(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return IB(MB(e=o.call.apply(o,[this].concat(n))),"state",{totalLength:-1}),e}return n=a,r=[{key:"componentDidMount",value:function(){if(this.node&&this.node.getTotalLength)try{var e=this.node.getTotalLength();e&&this.setState({totalLength:e})}catch(e){}}},{key:"render",value:function(){var t=this,n=this.props,r=n.x,i=n.y,o=n.upperWidth,a=n.lowerWidth,c=n.height,s=n.className,l=this.state.totalLength,u=this.props,f=u.animationEasing,p=u.animationDuration,d=u.animationBegin,h=u.isUpdateAnimationActive;if(r!==+r||i!==+i||o!==+o||a!==+a||c!==+c||0===o&&0===a||0===c)return null;var m=$r("recharts-trapezoid",s);return h?e.createElement(Zv,{canBegin:l>0,from:{upperWidth:0,lowerWidth:0,height:c,x:r,y:i},to:{upperWidth:o,lowerWidth:a,height:c,x:r,y:i},duration:p,animationEasing:f,isActive:h},(function(n){var r=n.upperWidth,i=n.lowerWidth,o=n.height,a=n.x,c=n.y;return e.createElement(Zv,{canBegin:l>0,from:"0px ".concat(-1===l?1:l,"px"),to:"".concat(l,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:p,easing:f},e.createElement("path",TB({},hc(t.props,!0),{className:m,d:LB(a,c,r,i,o),ref:function(e){t.node=e}})))})):e.createElement("g",null,e.createElement("path",TB({},hc(this.props,!0),{className:m,d:LB(r,i,o,a,c)})))}}],r&&PB(n.prototype,r),i&&PB(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function zB(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,c=[],s=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return BB(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 BB(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 BB(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qB(e){return qB="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},qB(e)}function HB(){return HB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},HB.apply(this,arguments)}function VB(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 UB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?VB(Object(n),!0).forEach((function(t){ZB(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function WB(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,KB(r.key),r)}}function $B(e,t){return $B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$B(e,t)}function GB(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=XB(e);if(t){var i=XB(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===qB(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return YB(e)}(this,n)}}function YB(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function XB(e){return XB=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},XB(e)}function ZB(e,t,n){return(t=KB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KB(e){var t=function(e,t){if("object"!==qB(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==qB(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===qB(t)?t:String(t)}IB(FB,"defaultProps",{x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"});var JB=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$B(e,t)}(a,p);var n,r,i,o=GB(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return ZB(YB(e=o.call.apply(o,[this].concat(n))),"state",{isAnimationFinished:!1}),ZB(YB(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),hi(t)&&t()})),ZB(YB(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),hi(t)&&t()})),e}return n=a,r=[{key:"isActiveIndex",value:function(e){var t=this.props.activeIndex;return Array.isArray(t)?-1!==t.indexOf(e):e===t}},{key:"renderTrapezoidsStatically",value:function(t){var n=this,r=this.props.activeShape;return t.map((function(t,i){var o=n.isActiveIndex(i)?r:null,c=UB(UB({},t),{},{stroke:t.stroke});return e.createElement(_c,HB({className:"recharts-funnel-trapezoid"},Qa(n.props,t,i),{key:"trapezoid-".concat(i),role:"img"}),a.renderTrapezoidItem(o,c))}))}},{key:"renderTrapezoidsWithAnimation",value:function(){var t=this,n=this.props,r=n.trapezoids,i=n.isAnimationActive,o=n.animationBegin,a=n.animationDuration,c=n.animationEasing,s=n.animationId,l=this.state.prevTrapezoids;return e.createElement(Zv,{begin:o,duration:a,isActive:i,easing:c,from:{t:0},to:{t:1},key:"funnel-".concat(s),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(n){var i=n.t,o=r.map((function(e,t){var n=l&&l[t];if(n){var r=Ua(n.x,e.x),o=Ua(n.y,e.y),a=Ua(n.upperWidth,e.upperWidth),c=Ua(n.lowerWidth,e.lowerWidth),s=Ua(n.height,e.height);return UB(UB({},e),{},{x:r(i),y:o(i),upperWidth:a(i),lowerWidth:c(i),height:s(i)})}var u=Ua(e.x+e.upperWidth/2,e.x),f=Ua(e.y+e.height/2,e.y),p=Ua(0,e.upperWidth),d=Ua(0,e.lowerWidth),h=Ua(0,e.height);return UB(UB({},e),{},{x:u(i),y:f(i),upperWidth:p(i),lowerWidth:d(i),height:h(i)})}));return e.createElement(_c,null,t.renderTrapezoidsStatically(o))}))}},{key:"renderTrapezoids",value:function(){var e=this.props,t=e.trapezoids,n=e.isAnimationActive,r=this.state.prevTrapezoids;return!(n&&t&&t.length)||r&&Sw(r,t)?this.renderTrapezoidsStatically(t):this.renderTrapezoidsWithAnimation()}},{key:"render",value:function(){var t=this.props,n=t.hide,r=t.trapezoids,i=t.className,o=t.isAnimationActive,a=this.state.isAnimationFinished;if(n||!r||!r.length)return null;var c=$r("recharts-trapezoids",i);return e.createElement(_c,{className:c},this.renderTrapezoids(),(!o||a)&&WT.renderCallByParent(this.props,r))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curTrapezoids:e.trapezoids,prevTrapezoids:t.curTrapezoids}:e.trapezoids!==t.curTrapezoids?{curTrapezoids:e.trapezoids}:null}},{key:"renderTrapezoidItem",value:function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):hi(t)?t(n):cj(t)?e.createElement(FB,HB({},n,t)):e.createElement(FB,n)}}],r&&WB(n.prototype,r),i&&WB(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function QB(e){return lt(e).substr(0,10)}function eq(e,t,n){return"FitbitSteps"==e?tq(t,n):"FitbitRestingHeartRates"==e?nq(t,n):"GarminSteps"==e?function(e,t){var n=new Date(e,t,1,0,0,0,0),r=Y(n,{months:1}),i={};for(;n<r;)i[QB(n)]=3e3+Math.floor(1e4*Math.random()),n=Y(n,{days:1});return i}(t,n):"GarminRestingHeartRates"==e?function(e,t){var n=new Date(e,t,1,0,0,0,0),r=Y(n,{months:1}),i={};for(;n<r;)i[QB(n)]=60+Math.floor(5*Math.random()),n=Y(n,{days:1});return i}(t,n):"AppleHealthSteps"==e?nq(t,n):"AppleHealthDistanceRunningWalking"==e?function(e,t){var n=new Date(e,t,1,0,0,0,0),r=Y(n,{months:1}),i={};for(;n<r;)i[QB(n)]=Math.floor(500*Math.random()),n=Y(n,{hours:1});return i}(t,n):"GoogleFitSteps"==e?function(e,t){var n=new Date(e,t,1,0,0,0,0),r=Y(n,{months:1}),i={};for(;n<r;)i[QB(n)]=Math.floor(500*Math.random()),n=Y(n,{hours:1});return i}(t,n):tq(t,n)}function tq(e,t){for(var n=new Date(e,t,1,0,0,0,0),r=Y(n,{months:1}),i={};n<r;)i[QB(n)]=3e3+Math.floor(1e4*Math.random()),n=Y(n,{days:1});return i}function nq(e,t){for(var n=new Date(e,t,1,0,0,0,0),r=Y(n,{months:1}),i={};n<r;)i[QB(n)]=60+Math.floor(5*Math.random()),n=Y(n,{days:1});return i}function rq(e){var t=[],n=function(r){var i=It({},e);return r&&(i.pageID=r),b.queryDeviceData(i).then((function(e){return t=t.concat(e.deviceDataPoints),e.nextPageID?n(e.nextPageID):t}))};return n()}function iq(e,t){var n=e.startDate;t.startDate<n&&(n=t.startDate);var r=e.endDate;return t.endDate>r&&(r=t.endDate),{startDate:n,endDate:r}}function oq(e){e=e.sort((function(e,t){return e.startDate.getTime()-t.startDate.getTime()}));for(var t,n,r=[],i=e[0],o=1;o<e.length;o++)t=i,(n=e[o]).startDate>=t.startDate&&n.startDate<=t.endDate||n.endDate>=t.startDate&&n.endDate<=t.endDate||t.startDate>=n.startDate&&t.startDate<=n.endDate||t.endDate>=n.startDate&&t.endDate<=n.endDate?i=iq(i,e[o]):(r.push(i),i=e[o]);r.push(i);var a=0;return r.forEach((function(e){a+=function(e,t,n){H(2,arguments);var r=oe(e,t)/te;return se(null==n?void 0:n.roundingMethod)(r)}(e.endDate,e.startDate)})),a}function aq(e,t,n){return rq({namespace:"AppleHealth",type:"SleepAnalysisInterval",observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(r){var i={};r.forEach((function(e){if(e.observationDate&&e.startDate&&e.value==n)for(var t=function(e){for(var t=[],n=pt(e.startDate),r=pt(e.observationDate),i=Y(new Date(n.getFullYear(),n.getMonth(),n.getDate(),18,0,0,0),{days:-1});i<r;){var o=Y(i,{days:1});if(o>n){var a=new Date(i),c=new Date(o);n>=i&&n<o&&(a=n),r>=i&&r<o&&(c=r),t.push({startDate:a,endDate:c})}i=o}return t}(e),r=0;r<t.length;r++){var o=lt(Y(t[r].startDate,{hours:6})).substring(0,10);i[o]||(i[o]=[]),i[o].push(t[r])}}));for(var o={};e<t;){var a=e.toISOString().substr(0,10),c=i[a];c&&(o[a]=oq(c)),e=Y(e,{days:1})}return o}))}function cq(e,t){return rq({namespace:"AppleHealth",type:"HourlySteps",observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate){var n=QB(pt(e.startDate));t[n]||(t[n]=0),t[n]+=parseFloat(e.value)}})),t}))}function sq(e,t,n){return rq({namespace:"Fitbit",type:n,observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate){var n=e.startDate.substr(0,10);t[n]||(t[n]=0),t[n]+=parseInt(e.value)}})),t}))}function lq(e,t,n){return rq({namespace:"Fitbit",type:"HeartRateZone",observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if("Out of Range"!=e.value&&(!n||e.value==n)&&e.properties&&e.properties.Minutes&&e.startDate){var r=e.startDate.substr(0,10);t[r]||(t[r]=0),t[r]+=parseInt(e.properties.Minutes)}})),t}))}function uq(e,t,n){return rq({namespace:"Fitbit",type:e,observedAfter:Y(t,{days:-1}).toISOString(),observedBefore:Y(n,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate&&0!=parseInt(e.value)){var n=e.startDate.substr(0,10);t[n]=Math.round(parseFloat(e.value))}})),t}))}function fq(e,t){return uq("RestingHeartRate",e,t)}function pq(e,t,n){return rq({namespace:"Fitbit",type:n,observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.observationDate){var n=lt(Y(pt(e.observationDate),{hours:6})).substr(0,10);t[n]||(t[n]=0),t[n]+=parseFloat(e.value)}})),t}))}function dq(e,t){return uq("Steps",e,t)}function hq(e,t){return function(e,t,n){return rq({namespace:"Garmin",type:e,observedAfter:Y(t,{days:-1}).toISOString(),observedBefore:Y(n,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate&&0!=parseInt(e.value)){var n=e.startDate.substring(0,10);t[n]=Math.round(parseFloat(e.value))}})),t}))}("Steps",e,t)}ZB(JB,"displayName","Funnel"),ZB(JB,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",labelLine:!0,hide:!1,isAnimationActive:!db.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",lastShapeType:"triangle"}),ZB(JB,"getRealFunnelData",(function(e){var t=e.props,n=t.data,r=t.children,i=hc(e.props),o=sc(r,lx);return n&&n.length?n.map((function(e,t){return UB(UB(UB({payload:e},i),e),o&&o[t]&&o[t].props)})):o&&o.length?o.map((function(e){return UB(UB({},i),e.props)})):[]})),ZB(JB,"getRealWidthHeight",(function(e,t){var n=e.props.width,r=t.width,i=t.height,o=t.left,a=t.right,c=t.top,s=t.bottom,l=i,u=r;return Ma(n)?u=n:wi(n)&&(u=u*parseFloat(n)/100),{realWidth:u-o-a-50,realHeight:l-s-c,offsetX:(r-u)/2,offsetY:(i-l)/2}})),ZB(JB,"getComposedData",(function(e){var t=e.item,n=e.offset,r=JB.getRealFunnelData(t),i=t.props,o=i.dataKey,a=i.nameKey,c=i.tooltipType,s=i.lastShapeType,l=i.reversed,u=n.left,f=n.top,p=JB.getRealWidthHeight(t,n),d=p.realHeight,h=p.realWidth,m=p.offsetX,y=p.offsetY,v=Math.max.apply(null,r.map((function(e){return DC(e,o,0)}))),g=r.length,b=d/g,x={x:n.left,y:n.top,width:n.width,height:n.height},w=r.map((function(e,t){var n,i=DC(e,o,0),l=DC(e,a,t),p=i;if(t!==g-1)(n=DC(r[t+1],o,0))instanceof Array&&(n=zB(n,1)[0]);else if(i instanceof Array&&2===i.length){var d=zB(i,2);p=d[0],n=d[1]}else n="rectangle"===s?p:0;var w=(v-p)*h/(2*v)+f+25+m,k=b*t+u+y,E=p/v*h,S=n/v*h,_=[{name:l,value:p,payload:e,dataKey:o,type:c}],O={x:w+E/2,y:k+b/2};return UB(UB({x:w,y:k,width:Math.max(E,S),upperWidth:E,lowerWidth:S,height:b,name:l,val:p,tooltipPayload:_,tooltipPosition:O},Cz(e,"width")),{},{payload:e,parentViewBox:x,labelViewBox:{x:w+(E-S)/4,y:k,width:Math.abs(E-S)/2+Math.min(E,S),height:b}})}));return l&&(w=w.map((function(e,t){var n=e.y-t*b+(g-1-t)*b;return UB(UB({},e),{},{upperWidth:e.lowerWidth,lowerWidth:e.upperWidth,x:e.x-(e.lowerWidth-e.upperWidth)/2,y:e.y-t*b+(g-1-t)*b,tooltipPosition:UB(UB({},e.tooltipPosition),{},{y:n+b/2}),labelViewBox:UB(UB({},e.labelViewBox),{},{y:n})})}))),{trapezoids:w,data:r}})),aL({chartName:"FunnelChart",GraphicalChild:JB,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",axisComponents:[],defaultProps:{layout:"centric"}});var mq,yq={};function vq(e,t,n){yq[e]={provider:t,availabilityCheck:n}}function gq(e,t){var n=yq[e];if(!n)throw"Unknown data type:"+e;return n.availabilityCheck(t)}function bq(e,t,n){return yq[e].provider(t,n).then((function(e){for(var r={};t<n;){var i=QB(t);e[i]&&(r[i]=e[i]),t=Y(t,{days:1})}return r}))}function xq(e,t){return function(n){var r={namespace:e,type:t,limit:1};return n&&(r.modifiedAfter=n.toISOString()),b.queryDeviceData(r).then((function(e){return e.deviceDataPoints.length>0})).catch((function(){return!1}))}}function wq(t){var n=t.x,r=t.y;t.stroke;var i=t.payload.value;return e.createElement("text",{x:n,y:r+15,textAnchor:"middle",fontSize:"12"},i)}function kq(t){var n=s(null),r=n[0],i=n[1],o=s(!1),c=o[0],u=o[1],f=s(!1),p=f[0],d=f[1],h=a(),m=new Date(t.year,t.month,1,0,0,0,0),y=Y(m,{months:1});function v(){var e,n;if(t.previewState&&(d(!0),t.onDataDetected&&t.onDataDetected()),"Loading"==t.previewState&&u(!0),"WithData"==t.previewState){var r={};t.lines.forEach((function(e){var n=eq(e.dailyDataType,t.year,t.month);r[e.dailyDataType]=n})),i(r)}if("NoData"==t.previewState){r={};t.lines.forEach((function(e){r[e.dailyDataType]={}})),i(r),u(!1)}if(!t.previewState){!function(){if(!p){var e=t.lines.map((function(e){return gq(e.dailyDataType)}));Promise.all(e).then((function(e){e.find((function(e){return e}))&&(d(!0),t.onDataDetected&&t.onDataDetected())}))}}(),h.current=(null!==(e=h.current)&&void 0!==e?e:0)+1;var o=null!==(n=h.current)&&void 0!==n?n:0;u(!0);var a;a=t.lines.map((function(e){return bq(e.dailyDataType,m,y)})),Promise.all(a).then((function(e){if(o==h.current){for(var n={},r=0;r<t.lines.length;r++)n[t.lines[r].dailyDataType]=e[r];i(n),u(!1)}}))}}l((function(){return v(),b.on("applicationDidBecomeVisible",v),b.on("externalAccountSyncComplete",v),function(){b.off("applicationDidBecomeVisible",v),b.off("externalAccountSyncComplete",v)}}),[t]);for(var g=[],x=m,w=!1;x<y;){var k={day:x.getDate()};g.push(k);var E=QB(x);t.lines.forEach((function(e){r&&(k[e.dailyDataType]=r[e.dailyDataType][E],e.valueConverter&&(k[e.dailyDataType]=e.valueConverter(k[e.dailyDataType])),k[e.dailyDataType]>0&&(w=!0))})),x=Y(x,{days:1})}if(!p)return null;var S=function(){var e=t.lines.filter((function(e){return e.showAverage}));if(0==e.length)return null;if(e.length>1)return console.error("Only one line can display an average"),null;var n=e[0],r=g.map((function(e){return e[n.dailyDataType]}));if(!(r=r.filter((function(e){return!!e}))).length)return null;var i=r.reduce((function(e,t){return e+t}))/r.length;return i.toLocaleString("en-US",{minimumFractionDigits:0,maximumFractionDigits:1})}();return e.createElement("div",{className:"mdhui-device-data-month-chart"},t.title&&e.createElement("div",{className:"title"},t.title),!c&&null!=S&&e.createElement("div",{className:"average"},"Daily Average: ",e.createElement("span",{className:"average-value"},S)),e.createElement("div",{style:{clear:"both"}}),e.createElement("div",{className:"chart-container"},(!w||c)&&e.createElement("div",null,!w&&!c&&e.createElement("div",{className:"no-data-label"},"No Data"),c&&e.createElement(I,null),e.createElement(sx,{width:"100%",height:150},e.createElement(cL,{width:400,height:400,data:g,syncId:t.syncId},e.createElement(yI,{strokeDasharray:"3 3"}),e.createElement(cR,{axisLine:!1,interval:0,tickLine:!1,width:30,scale:"linear"}),e.createElement(aR,{id:"myXAxis",tick:wq,axisLine:!1,dataKey:"day",tickMargin:0,minTickGap:0,tickLine:!1,interval:1})))),w&&!c&&e.createElement(sx,{width:"100%",height:150},e.createElement(cL,{width:400,height:400,data:g,syncId:t.syncId},t.lines.map((function(t){return e.createElement(jI,{key:t.dailyDataType,type:"monotone",dataKey:t.dailyDataType,stroke:"var(--mdhui-color-primary)"})})),e.createElement(Ob,{content:e.createElement((function(n){var r=n.active,i=n.payload;if(n.label,r&&i&&i.length){var o=new Date(t.year,t.month,i[0].payload.day),a={};return t.lines.forEach((function(e){a[e.dailyDataType]=e.label})),e.createElement("div",{className:"graph-tooltip"},e.createElement("div",{className:"graph-date"},nt(o,"MM/dd/yyyy")),e.createElement("table",{className:"payload-values"},e.createElement("tbody",null,i.map((function(t){return e.createElement("tr",{key:t.dataKey},e.createElement("th",null,a[t.dataKey]),e.createElement("td",null,parseFloat(t.value.toFixed(2))))})))))}return null}),null)}),e.createElement(yI,{strokeDasharray:"3 3"}),e.createElement(cR,{tickFormatter:function(e){return e>=1e4?Math.floor(e/1e3)+"K":e},axisLine:!1,interval:0,tickLine:!1,width:30}),e.createElement(aR,{id:"myXAxis",tick:wq,axisLine:!1,dataKey:"day",tickMargin:0,minTickGap:0,tickLine:!1,interval:1})))))}function Eq(t){var n=s(!1),r=n[0],i=n[1],o=new Date,a=s(new Date(o.getFullYear(),o.getMonth(),1,0,0,0,0)),c=a[0],l=a[1];function u(){i(!0)}var f=c.getMonth(),p=c.getFullYear();return e.createElement(e.Fragment,null,!r&&e.createElement(Nr,null,br["device-data-no-data"]),e.createElement("div",{style:{display:r?"block":"none"}},e.createElement(Mt,{intervalType:"Month",intervalStart:c,onIntervalChange:function(e){l(e)}}),e.createElement(kq,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:mq.FitbitSteps,label:br.steps}],title:"Fitbit "+br.steps,month:f,year:p,syncId:"DeviceDataCharts"}),e.createElement(kq,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:mq.FitbitRestingHeartRate,label:br["resting-heart-rate"]}],title:"Fitbit "+br["resting-heart-rate"],month:f,year:p,syncId:"DeviceDataCharts"}),e.createElement(kq,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:mq.GarminSteps,label:br.steps}],title:"Garmin "+br.steps,month:f,year:p,syncId:"DeviceDataCharts"}),e.createElement(kq,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:mq.GarminRestingHeartRate,label:br["resting-heart-rate"]}],title:"Garmin "+br["resting-heart-rate"],month:f,year:p,syncId:"DeviceDataCharts"}),e.createElement(kq,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:mq.AppleHealthSteps,label:br.steps}],title:"Apple Health "+br.steps,month:f,year:p,syncId:"DeviceDataCharts"}),e.createElement(kq,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:mq.AppleHealthDistanceWalkingRunning,label:br["distance-traveled"],valueConverter:function(e){return 621371e-9*e}}],title:"Apple Health "+br["distance-traveled"]+" (Miles)",month:f,year:p,syncId:"DeviceDataCharts"}),e.createElement(kq,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:mq.GoogleFitSteps,label:br.steps}],title:"Google Fit "+br.steps,month:f,year:p,syncId:"DeviceDataCharts"})))}!function(e){e.AppleHealthDistanceWalkingRunning="AppleHealthDistanceWalkingRunning",e.AppleHealthFlightsClimbed="AppleHealthFlightsClimbed",e.AppleHealthHeartRateRange="AppleHealthHeartRateRange",e.AppleHealthHrv="AppleHealthHrv",e.AppleHealthMaxHeartRate="AppleHealthMaxHeartRate",e.AppleHealthRestingHeartRate="AppleHealthRestingHeartRate",e.AppleHealthSleepMinutes="AppleHealthSleepMinutes",e.AppleHealthInBedMinutes="AppleHealthInBedMinutes",e.AppleHealthStandMinutes="AppleHealthStandMinutes",e.AppleHealthSteps="AppleHealthSteps",e.AppleHealthWalkingHeartRateAverage="AppleHealthWalkingHeartRateAverage",e.FitbitActiveMinutes="FitbitActiveMinutes",e.FitbitLightlyActiveMinutes="FitbitLightlyActiveMinutes",e.FitbitFairlyActiveMinutes="FitbitFairlyActiveMinutes",e.FitbitVeryActiveMinutes="FitbitVeryActiveMinutes",e.FitbitBreathingRate="FitbitBreathingRate",e.FitbitCaloriesBurned="FitbitCaloriesBurned",e.FitbitElevatedHeartRateMinutes="FitbitElevatedHeartRateMinutes",e.FitbitFatBurnHeartRateMinutes="FitbitFatBurnHeartRateMinutes",e.FitbitCardioHeartRateMinutes="FitbitCardioHeartRateMinutes",e.FitbitPeakHeartRateMinutes="FitbitPeakHeartRateMinutes",e.FitbitFloors="FitbitFloors",e.FitbitHrv="FitbitHrv",e.FitbitRestingHeartRate="FitbitRestingHeartRate",e.FitbitSleepMinutes="FitbitSleepMinutes",e.FitbitLightSleepMinutes="FitbitLightSleepMinutes",e.FitbitRemSleepMinutes="FitbitRemSleepMinutes",e.FitbitDeepSleepMinutes="FitbitDeepSleepMinutes",e.FitbitSpO2="FitbitSpO2",e.FitbitSteps="FitbitSteps",e.GarminRestingHeartRate="GarminRestingHeartRate",e.GarminSteps="GarminSteps",e.GoogleFitSteps="GoogleFitSteps",e.Steps="Steps",e.RestingHeartRate="RestingHeartRate"}(mq||(mq={})),vq(mq.AppleHealthDistanceWalkingRunning,(function(e,t){return rq({namespace:"AppleHealth",type:"HourlyDistanceWalkingRunning",observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate){var n=lt(pt(e.startDate)).substring(0,10);t[n]||(t[n]=0),t[n]+=parseFloat(e.value)}})),t}))}),xq("AppleHealth",["HourlyDistanceWalkingRunning"])),vq(mq.AppleHealthFlightsClimbed,(function(e,t){return rq({namespace:"AppleHealth",type:"FlightsClimbed",observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate){var n=QB(pt(e.startDate));t[n]||(t[n]=0),t[n]+=parseFloat(e.value)}})),t}))}),xq("AppleHealth",["HourlySteps"])),vq(mq.AppleHealthHeartRateRange,(function(e,t){return rq({namespace:"AppleHealth",type:["HourlyMaximumHeartRate","HourlyMinimumHeartRate"],observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(n){var r={};n.forEach((function(e){if(e.startDate){var t=QB(pt(e.startDate)),n=parseFloat(e.value);"HourlyMaximumHeartRate"==e.type&&(r[t]?(!r[t].MaxHeartRate||n>r[t].MaxHeartRate)&&(r[t].MaxHeartRate=n):r[t]={MaxHeartRate:n}),"HourlyMinimumHeartRate"==e.type&&(r[t]?(!r[t].MinHeartRate||n<r[t].MinHeartRate)&&(r[t].MinHeartRate=n):r[t]={MinHeartRate:n})}}));for(var i={};e<t;){var o=r[QB(e)];o&&o.MaxHeartRate&&o.MinHeartRate&&(i[QB(e)]=o.MaxHeartRate-o.MinHeartRate),e=Y(e,{days:1})}return i}))}),xq("AppleHealth",["HourlyMaximumHeartRate"])),vq(mq.AppleHealthHrv,(function(e,t){return rq({namespace:"AppleHealth",type:"HeartRateVariability",observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(n){var r={};n.forEach((function(e){if(e.startDate){var t=lt(pt(e.startDate)).substring(0,10),n=parseFloat(e.value);r[t]||(r[t]=[]),r[t].push(n)}}));for(var i={};e<t;){var o=e.toISOString().substr(0,10);r[o]&&(i[o]=r[o].reduce((function(e,t){return e+t}))/r[o].length),e=Y(e,{days:1})}return i}))}),xq("AppleHealth",["HeartRateVariability"])),vq(mq.AppleHealthMaxHeartRate,(function(e,t){return rq({namespace:"AppleHealth",type:"HourlyMaximumHeartRate",observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate){var n=lt(pt(e.startDate)).substring(0,10),r=parseFloat(e.value);t[n]?r>t[n]&&(t[n]=r):t[n]=r}})),t}))}),xq("AppleHealth",["HourlyMaximumHeartRate"])),vq(mq.AppleHealthRestingHeartRate,(function(e,t){return rq({namespace:"AppleHealth",type:"RestingHeartRate",observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(n){var r={};n.forEach((function(e){if(e.startDate){var t=QB(pt(e.startDate)),n=parseFloat(e.value);r[t]||(r[t]=[]),r[t].push(n)}}));for(var i={};e<t;){var o=e.toISOString().substr(0,10);r[o]&&(i[o]=r[o].reduce((function(e,t){return e+t}))/r[o].length),e=Y(e,{days:1})}return i}))}),xq("AppleHealth",["RestingHeartRate"])),vq(mq.AppleHealthSleepMinutes,(function(e,t){return aq(e,t,"Asleep")}),xq("AppleHealth",["SleepAnalysisInterval"])),vq(mq.AppleHealthInBedMinutes,(function(e,t){return aq(e,t,"InBed")}),xq("AppleHealth",["SleepAnalysisInterval"])),vq(mq.AppleHealthStandMinutes,(function(e,t){return rq({namespace:"AppleHealth",type:"AppleStandTime",observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate){var n=QB(pt(e.startDate));t[n]||(t[n]=0),t[n]+=parseFloat(e.value)}})),t}))}),xq("AppleHealth",["AppleStandTime"])),vq(mq.AppleHealthSteps,cq,xq("AppleHealth",["HourlySteps"])),vq(mq.AppleHealthWalkingHeartRateAverage,(function(e,t){return rq({namespace:"AppleHealth",type:"WalkingHeartRateAverage",observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(n){var r={};n.forEach((function(e){if(e.startDate){var t=QB(pt(e.startDate)),n=parseFloat(e.value);r[t]||(r[t]=[]),r[t].push(n)}}));for(var i={};e<t;){var o=e.toISOString().substr(0,10);r[o]&&(i[o]=r[o].reduce((function(e,t){return e+t}))/r[o].length),e=Y(e,{days:1})}return i}))}),xq("AppleHealth",["WalkingHeartRateAverage"])),vq(mq.FitbitActiveMinutes,(function(e,t){return sq(e,t,["MinutesVeryActive","MinutesFairlyActive","MinutesLightlyActive"])}),xq("Fitbit",["MinutesVeryActive","MinutesFairlyActive","MinutesLightlyActive"])),vq(mq.FitbitLightlyActiveMinutes,(function(e,t){return sq(e,t,["MinutesLightlyActive"])}),xq("Fitbit",["MinutesLightlyActive"])),vq(mq.FitbitFairlyActiveMinutes,(function(e,t){return sq(e,t,["MinutesFairlyActive"])}),xq("Fitbit",["MinutesFairlyActive"])),vq(mq.FitbitVeryActiveMinutes,(function(e,t){return sq(e,t,["MinutesVeryActive"])}),xq("Fitbit",["MinutesVeryActive"])),vq(mq.FitbitBreathingRate,(function(e,t){return uq("BreathingRate",e,t)}),xq("Fitbit",["BreathingRate"])),vq(mq.FitbitCaloriesBurned,(function(e,t){return uq("Calories",e,t)}),xq("Fitbit",["Calories"])),vq(mq.FitbitElevatedHeartRateMinutes,(function(e,t){return lq(e,t)}),xq("Fitbit",["HeartRateZone"])),vq(mq.FitbitFatBurnHeartRateMinutes,(function(e,t){return lq(e,t,"Fat Burn")}),xq("Fitbit",["HeartRateZone"])),vq(mq.FitbitCardioHeartRateMinutes,(function(e,t){return lq(e,t,"Cardio")}),xq("Fitbit",["HeartRateZone"])),vq(mq.FitbitPeakHeartRateMinutes,(function(e,t){return lq(e,t,"Peak")}),xq("Fitbit",["HeartRateZone"])),vq(mq.FitbitFloors,(function(e,t){return uq("Floors",e,t)}),xq("Fitbit",["HeartRateZone"])),vq(mq.FitbitHrv,(function(e,t){return uq("Hrv",e,t)}),xq("Fitbit",["Floors"])),vq(mq.FitbitRestingHeartRate,fq,xq("Fitbit",["RestingHeartRate"])),vq(mq.FitbitSleepMinutes,(function(e,t){return pq(e,t,["SleepLevelRem","SleepLevelLight","SleepLevelDeep","SleepLevelAsleep"])}),xq("Fitbit",["SleepLevelRem","SleepLevelLight","SleepLevelDeep","SleepLevelAsleep"])),vq(mq.FitbitLightSleepMinutes,(function(e,t){return pq(e,t,["SleepLevelLight"])}),xq("Fitbit",["SleepLevelLight"])),vq(mq.FitbitRemSleepMinutes,(function(e,t){return pq(e,t,["SleepLevelRem"])}),xq("Fitbit",["SleepLevelRem"])),vq(mq.FitbitDeepSleepMinutes,(function(e,t){return pq(e,t,["SleepLevelDeep"])}),xq("Fitbit",["SleepLevelDeep"])),vq(mq.FitbitSpO2,(function(e,t){return uq("SpO2",e,t)}),xq("Fitbit",["SpO2"])),vq(mq.FitbitSteps,dq,xq("Fitbit",["Steps"])),vq(mq.GarminSteps,hq,xq("Garmin",["Steps"])),vq(mq.GarminRestingHeartRate,hq,xq("Garmin",["RestingHeartRateInBeatsPerMinute"])),vq(mq.GoogleFitSteps,(function(e,t){return rq({namespace:"GoogleFit",type:"Steps",observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate){var n=lt(pt(e.startDate)).substring(0,10);t[n]||(t[n]=0),t[n]+=parseFloat(e.value)}})),t}))}),xq("GoogleFit",["Steps"])),vq(mq.RestingHeartRate,(function(e,t){return rq({namespace:"AppleHealth",type:"RestingHeartRate",observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(n){return fq(e,t).then((function(r){var i={};n.forEach((function(e){if(e.startDate){var t=QB(pt(e.startDate)),n=parseFloat(e.value);i[t]||(i[t]=[]),i[t].push(n)}}));for(var o={};e<t;){var a=QB(e);r[a]&&(i[a]||(i[a]=[]),i[a].push(r[a])),i[a]&&(o[a]=i[a].reduce((function(e,t){return e+t}))/i[a].length),e=Y(e,{days:1})}return o}))}))}),(function(e){return xq("AppleHealth",["RestingHeartRate"])(e).then((function(t){return t||xq("Fitbit",["RestingHeartRate"])(e).then((function(t){return t||xq("Garmin",["RestingHeartRate"])(e)}))}))})),vq(mq.Steps,(function(e,t){var n=dq(e,t),r=cq(e,t),i=hq(e,t);return Promise.all([n,r,i]).then((function(n){for(var r={};e<t;){var i=QB(e),o=null;n[0][i]&&(o=n[0][i]),n[1][i]&&(null==o||n[1][i]>o)&&(o=n[1][i]),o&&(r[i]=o),e=Y(e,{days:1})}return r}))}),(function(e){return xq("AppleHealth",["Steps"])(e).then((function(t){return t||xq("Fitbit",["Steps"])(e).then((function(t){return t||xq("Garmin",["Steps"])(e)}))}))}));var Sq=[{id:1,lastRefreshDate:Y(new Date,{days:-1}).toISOString(),status:"fetchComplete",provider:{id:37,name:"Cedars-Sinai Health System",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/37/logo"}},{id:2,lastRefreshDate:Y(new Date,{hours:-8}).toISOString(),status:"unauthorized",provider:{id:1,name:"CareEvolution FHIR",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/1/logo"}},{id:3,lastRefreshDate:Y(new Date,{hours:-2}).toISOString(),status:"fetchComplete",provider:{id:17,name:"CMS Sandbox",category:"Health Plan",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/17/logo"}},{id:4,lastRefreshDate:Y(new Date,{hours:-3}).toISOString(),status:"fetchComplete",provider:{id:2,name:"Fitbit Staging",category:"Device Manufacturer",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/2/logo"}}];function _q(t){var n=s(!0),r=n[0],i=n[1],o=s([]),a=o[0],c=o[1];function u(){if("Default"==t.previewState)return i(!1),void p(Sq);f()}function f(){b.getExternalAccounts().then((function(e){p(e),i(!1)}))}function p(e){t.externalAccountProviderCategories&&(e=e.filter((function(e){var n;return-1!=(null===(n=t.externalAccountProviderCategories)||void 0===n?void 0:n.indexOf(e.provider.category))}))),c(e),t.onExternalAccountsLoaded&&t.onExternalAccountsLoaded(e)}return l((function(){return u(),b.on("applicationDidBecomeVisible",u),b.on("externalAccountSyncComplete",u),function(){b.off("applicationDidBecomeVisible",u),b.off("externalAccountSyncComplete",u)}}),[]),e.createElement("div",{className:"mdhui-external-account-list"},a&&a.map((function(t){return e.createElement(Pt,{key:t.id.toString()+t.lastRefreshDate},e.createElement(_r,{externalAccount:t,onAccountRemoved:function(e){return i(!0),void f()},onReconnectAccount:function(e){return function(e){b.connectExternalAccount(e.provider.id)}(e)}}))})),r&&e.createElement(I,null))}function Oq(e,t){var n=a();l((function(){n.current=e}),[e]),l((function(){if(null!==t){var e=setInterval((function(){n.current&&n.current()}),t);return function(){return clearInterval(e)}}}),[t])}k(".mdhui-external-accounts-loading-indicator {\n text-align: center;\n padding: 16px;\n}\n\n.mdhui-external-accounts-loading-indicator .mdhui-external-accounts-loading-indicator-message {\n color: var(--mdhui-text-color-3);\n margin-left: 8px;\n}");var Aq=[{id:1,lastRefreshDate:Y(new Date,{days:-1}).toISOString(),status:"fetchingData",provider:{id:37,name:"Cedars-Sinai Health System",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/37/logo"}}];function Cq(t){var n=s(!1),r=n[0],i=n[1],o=s([]),a=o[0],c=o[1];function u(){return"externalAccountsFetchingData"==t.previewState?(Aq[0].status="fetchingData",void c(Aq)):"externalAccountsLoaded"==t.previewState?(Aq[0].status="fetchComplete",void c(Aq)):void b.getExternalAccounts().then((function(e){t.externalAccountCategories&&(e=e.filter((function(e){return t.externalAccountCategories.includes(e.provider.category)}))),e.forEach((function(e){"fetchComplete"==e.status&&ft(new Date,Y(pt(e.lastRefreshDate),{hours:3}))&&(b.refreshExternalAccount(e.id),e.status="fetchingData")})),c(e)}))}l((function(){return b.getDeviceInfo().then((function(e){i("Web"==e.platform)})).catch((function(){i(!0)})).finally((function(){u()})),b.on("externalAccountSyncComplete",u),b.on("applicationDidBecomeVisible",u),function(){b.off("externalAccountSyncComplete",u),b.off("applicationDidBecomeVisible",u)}}),[]);var f=!!a.find((function(e){return"fetchingData"==e.status}));return Oq((function(){u()}),r&&f?5e3:null),f?e.createElement("div",{className:"mdhui-external-accounts-loading-indicator"},e.createElement(I,{variant:"inline"}),e.createElement("span",{className:"mdhui-external-accounts-loading-indicator-message"},br["external-account-fetching-data"])):null}k(".mdhui-external-accounts-preview .external-account-title {\n font-size: .88em;\n color: var(--mdhui-text-color-2);\n}");var Tq=[{id:1,lastRefreshDate:Y(new Date,{days:-1}).toISOString(),status:"fetchComplete",provider:{id:37,name:"Cedars-Sinai Health System",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/37/logo"}},{id:2,lastRefreshDate:Y(new Date,{hours:-8}).toISOString(),status:"unauthorized",provider:{id:1,name:"CareEvolution FHIR",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/1/logo"}},{id:3,lastRefreshDate:Y(new Date,{hours:-2}).toISOString(),status:"fetchComplete",provider:{id:17,name:"CMS Sandbox",category:"Health Plan",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/17/logo"}},{id:4,lastRefreshDate:Y(new Date,{hours:-3}).toISOString(),status:"fetchComplete",provider:{id:2,name:"Fitbit Staging",category:"Device Manufacturer",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/2/logo"}}];function Pq(t){var n=s(null),r=n[0],i=n[1],o="",a=[];function c(){"Default"!=t.previewState?b.getExternalAccounts().then((function(e){u(e)})):u(Tq)}function u(e){a&&(e=e.filter((function(e){return-1!=(null==a?void 0:a.indexOf(e.provider.category))}))),i(e)}return t.excludeProviders||(a.push("Provider"),o+=br["external-accounts-title-providers"]),t.excludeHealthPlans||(a.push("Health Plan"),o.length>0&&(o+=br["external-accounts-title-divider"]),o+=br["external-accounts-title-health-plans"]),t.excludeDeviceManufacturers||(a.push("Device Manufacturer"),o.length>0&&(o+=br["external-accounts-title-divider"]),o+=br["external-accounts-title-devices"]),l((function(){return c(),b.on("applicationDidBecomeVisible",c),function(){b.off("applicationDidBecomeVisible",c)}}),[]),r&&r.length?e.createElement("div",{className:"mdhui-external-accounts-preview"},e.createElement(D,{title:o,onClick:function(){"preview"==t.applicationUrl?console.log("PREVIEW: Opening the external accounts application."):b.openApplication(t.applicationUrl)}},r.map((function(t){return e.createElement("div",{key:t.id,className:"external-account-title"},t.provider.name)})))):null}var Dq=[{id:"1109644c-dea3-ec11-aaab-f47bb6835a10",namespace:"Fitbit",insertedDate:"2022-03-14T21:32:51.413Z",modifiedDate:"2022-03-14T21:32:51.413Z",identifier:"806637943",type:"Device",value:"Charge 3",properties:{Battery:"High",Type:"TRACKER",DataLakeUrl:"https://pep-device-data-qa.s3.amazonaws.com/fitbit-devices/d9134fe6-a777-ec11-aaa8-89aad5fbf200/devices.json"},observationDate:"2022-03-14T17:31:24+00:00"},{id:"1009644c-dea3-ec11-aaab-f47bb6835a10",namespace:"Fitbit",insertedDate:"2022-03-14T21:32:51.397Z",modifiedDate:"2022-03-14T21:32:51.397Z",identifier:"F-31-A4C138BBAE04",type:"Device",value:"Aria Air",properties:{Battery:"Low",Type:"SCALE",DataLakeUrl:"https://pep-device-data-qa.s3.amazonaws.com/fitbit-devices/d9134fe6-a777-ec11-aaa8-89aad5fbf200/devices.json"},observationDate:"2022-01-12T18:34:23+00:00"}];k(".mdhui-connected-devices .connected-device {\n border-bottom: solid 1px var(--mdhui-border-color-0);\n padding: 16px;\n position: relative;\n padding-left: 48px;\n}\n\n.mdhui-connected-devices .connected-device:last-child {\n border-bottom: none;\n}\n\n.mdhui-connected-devices .connected-device .device-icon {\n position: absolute;\n left: 16px;\n top: calc(50% - 8px);\n color: var(--mdhui-text-color-2);\n font-size: 16px;\n}\n\n.mdhui-connected-devices .connected-device .device-title {\n font-weight: bold;\n font-size: .88em;\n}\n\n.mdhui-connected-devices .connected-device .device-sync {\n font-size: .88em;\n color: var(--mdhui-text-color-2);\n}\n\n\n.mdhui-connected-devices .connected-device .battery-icon {\n position: absolute;\n font-size: 21px;\n right: 16px;\n top: calc(50% - 11px);\n}\n\n.mdhui-connected-devices .connected-device .battery-icon.battery-empty,\n.mdhui-connected-devices .connected-device .battery-icon.battery-low {\n color: var(--mdhui-color-danger);\n}\n\n.mdhui-connected-devices .connected-device .battery-icon.battery-medium {\n color: var(--mdhui-color-warning);\n}\n\n.mdhui-connected-devices .connected-device .battery-icon.battery-high {\n color: var(--mdhui-color-success);\n}\n");var jq={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="battery-empty",n=["battery-0"],r="f244",i="M80 160c-8.8 0-16 7.2-16 16V336c0 8.8 7.2 16 16 16H464c8.8 0 16-7.2 16-16V176c0-8.8-7.2-16-16-16H80zM0 176c0-44.2 35.8-80 80-80H464c44.2 0 80 35.8 80 80v16c17.7 0 32 14.3 32 32v64c0 17.7-14.3 32-32 32v16c0 44.2-35.8 80-80 80H80c-44.2 0-80-35.8-80-80V176z";e.definition={prefix:"fas",iconName:t,icon:[576,512,n,r,i]},e.faBatteryEmpty=e.definition,e.prefix="fas",e.iconName=t,e.width=576,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=i,e.aliases=n}(jq);var Mq={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="battery-full",n=[128267,"battery","battery-5"],r="f240",i="M464 160c8.8 0 16 7.2 16 16V336c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16H464zM80 96C35.8 96 0 131.8 0 176V336c0 44.2 35.8 80 80 80H464c44.2 0 80-35.8 80-80V320c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32V176c0-44.2-35.8-80-80-80H80zm368 96H96V320H448V192z";e.definition={prefix:"fas",iconName:t,icon:[576,512,n,r,i]},e.faBatteryFull=e.definition,e.prefix="fas",e.iconName=t,e.width=576,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=i,e.aliases=n}(Mq);var Nq={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="battery-half",n=["battery-3"],r="f242",i="M464 160c8.8 0 16 7.2 16 16V336c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16H464zM80 96C35.8 96 0 131.8 0 176V336c0 44.2 35.8 80 80 80H464c44.2 0 80-35.8 80-80V320c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32V176c0-44.2-35.8-80-80-80H80zm208 96H96V320H288V192z";e.definition={prefix:"fas",iconName:t,icon:[576,512,n,r,i]},e.faBatteryHalf=e.definition,e.prefix="fas",e.iconName=t,e.width=576,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=i,e.aliases=n}(Nq);var Iq={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="battery-quarter",n=["battery-2"],r="f243",i="M464 160c8.8 0 16 7.2 16 16V336c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16H464zM80 96C35.8 96 0 131.8 0 176V336c0 44.2 35.8 80 80 80H464c44.2 0 80-35.8 80-80V320c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32V176c0-44.2-35.8-80-80-80H80zm112 96H96V320h96V192z";e.definition={prefix:"fas",iconName:t,icon:[576,512,n,r,i]},e.faBatteryQuarter=e.definition,e.prefix="fas",e.iconName=t,e.width=576,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=i,e.aliases=n}(Iq);var Rq={};function Lq(){return Lq=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lq.apply(this,arguments)}function Fq(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="weight-scale",n=["weight"],r="f496",i="M128 176a128 128 0 1 1 256 0 128 128 0 1 1 -256 0zM391.8 64C359.5 24.9 310.7 0 256 0S152.5 24.9 120.2 64H64C28.7 64 0 92.7 0 128V448c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V128c0-35.3-28.7-64-64-64H391.8zM296 224c0-10.6-4.1-20.2-10.9-27.4l33.6-78.3c3.5-8.1-.3-17.5-8.4-21s-17.5 .3-21 8.4L255.7 184c-22 .1-39.7 18-39.7 40c0 22.1 17.9 40 40 40s40-17.9 40-40z";e.definition={prefix:"fas",iconName:t,icon:[512,512,n,r,i]},e.faWeightScale=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=i,e.aliases=n}(Rq);var zq=t((function(t,n){var r=t.color,i=void 0===r?"currentColor":r,o=t.size,a=void 0===o?24:o,c=Fq(t,["color","size"]);return e.createElement("svg",Lq({ref:n,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},c),e.createElement("circle",{cx:"12",cy:"12",r:"7"}),e.createElement("polyline",{points:"12 9 12 12 13.5 13.5"}),e.createElement("path",{d:"M16.51 17.35l-.35 3.83a2 2 0 0 1-2 1.82H9.83a2 2 0 0 1-2-1.82l-.35-3.83m.01-10.7l.35-3.83A2 2 0 0 1 9.83 1h4.35a2 2 0 0 1 2 1.82l.35 3.83"}))}));zq.propTypes={color:gh.string,size:gh.oneOfType([gh.string,gh.number])},zq.displayName="Watch";var Bq=zq;function qq(t){var n=s([]),r=n[0],i=n[1];function o(){if("connected"!=t.previewState)if("notEnabled"!=t.previewState&&"notConnected"!=t.previewState){var e={namespace:t.providerNamespace,type:"Device"};b.queryDeviceData(e).then((function(e){i(e.deviceDataPoints)}))}else i([]);else i(t.previewData)}if(l((function(){return o(),b.on("applicationDidBecomeVisible",o),b.on("externalAccountSyncComplete",o),function(){b.off("applicationDidBecomeVisible",o),b.off("externalAccountSyncComplete",o)}}),[]),!r.length)return null;var a=b.getCurrentLanguage().toLowerCase().startsWith("es")?Ct:Ze;return e.createElement("div",{className:"mdhui-connected-devices"},e.createElement(Dt,{title:t.providerName+" "+br.devices}),r.map((function(t){var n,r,i,o,c,s;return e.createElement("div",{key:t.id.toString(),className:"connected-device"},"TRACKER"==(null===(n=t.properties)||void 0===n?void 0:n.Type)&&e.createElement("div",{className:"device-icon"},e.createElement(Bq,{size:"16"})),"SCALE"==(null===(r=t.properties)||void 0===r?void 0:r.Type)&&e.createElement("div",{className:"device-icon"},e.createElement(P,{icon:Rq.faWeightScale})),e.createElement("div",{className:"device-info"},e.createElement("div",{className:"device-title"},t.value),t.observationDate&&e.createElement("div",{className:"device-sync"},br["last-sync"]," ",ut(pt(t.observationDate),new Date,{locale:a}))),"Empty"==(null===(i=t.properties)||void 0===i?void 0:i.Battery)&&e.createElement("div",{className:"battery-icon battery-empty"},e.createElement(P,{icon:jq.faBatteryEmpty,rotate:-90})),"Low"==(null===(o=t.properties)||void 0===o?void 0:o.Battery)&&e.createElement("div",{className:"battery-icon battery-low"},e.createElement(P,{icon:Iq.faBatteryQuarter,rotate:-90})),"Medium"==(null===(c=t.properties)||void 0===c?void 0:c.Battery)&&e.createElement("div",{className:"battery-icon battery-medium"},e.createElement(P,{icon:Nq.faBatteryHalf,rotate:-90})),"High"==(null===(s=t.properties)||void 0===s?void 0:s.Battery)&&e.createElement("div",{className:"battery-icon battery-high"},e.createElement(P,{icon:Mq.faBatteryFull,rotate:-90})))})))}function Hq(t){return e.createElement(qq,{providerName:"Fitbit",providerNamespace:"Fitbit",previewData:Dq,previewState:t.previewState})}function Vq(t){var n,r=s(!1),i=r[0],o=r[1],a=new Date,c=s(new Date(a.getFullYear(),a.getMonth(),1,0,0,0,0)),l=c[0],u=c[1];var f=l.getMonth(),p=l.getFullYear();return e.createElement("div",{style:{display:i?"block":"none"}},e.createElement(Mt,{intervalType:"Month",intervalStart:l,onIntervalChange:function(e){u(e)}}),null===(n=t.charts)||void 0===n?void 0:n.map((function(n){return e.createElement(kq,{onDataDetected:function(){o(!0)},previewState:"connected"==t.previewState?"WithData":"notEnabled"==t.previewState||"notConnected"==t.previewState?"NoData":void 0,lines:n.lines,title:n.title,syncId:n.syncId,month:f,year:p})})))}function Uq(t){return e.createElement(Vq,{previewState:t.previewState,charts:[{lines:[{showAverage:!0,dailyDataType:mq.FitbitSteps,label:br.steps}],title:br.steps,syncId:"fitbit"},{lines:[{showAverage:!0,dailyDataType:mq.FitbitRestingHeartRate,label:br["resting-heart-rate"]}],title:br["resting-heart-rate"],syncId:"DeviceDataCharts"}]})}var Wq=[{id:"1109644c-dea3-ec11-aaab-f47bb6835a10",namespace:"Garmin",insertedDate:"2022-03-14T21:32:51.413Z",modifiedDate:"2022-03-14T21:32:51.413Z",identifier:"806637943",type:"Device",value:"Forerunner 55",properties:{Battery:"High",Type:"TRACKER",DataLakeUrl:"https://pep-device-data-qa.s3.amazonaws.com/garmin-devices/d9134fe6-a777-ec11-aaa8-89aad5fbf200/devices.json"},observationDate:"2022-03-14T17:31:24+00:00"}];function $q(t){return e.createElement(qq,{providerName:"Garmin",providerNamespace:"Garmin",previewData:Wq,previewState:t.previewState})}function Gq(t){return e.createElement(Vq,{previewState:t.previewState,charts:[{lines:[{showAverage:!0,dailyDataType:mq.GarminSteps,label:br.steps}],title:br.steps,syncId:"garmin"},{lines:[{showAverage:!0,dailyDataType:mq.GarminRestingHeartRate,label:br["resting-heart-rate"]}],title:br["resting-heart-rate"],syncId:"DeviceDataCharts"}]})}var Yq="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAACXBIWXMAACE3AAAhNwEzWJ96AAANGElEQVR42u1de2xT1x3+bF8nJi+HCEUsq1WqYdZIUTElsI2QNaxTVaLRZqKEqNDVJawRSECXpdUaica0Eq1alEI3NaUiNLSBQmk1l2gpqpYmKSPd0nYYmsodbgdrogyhKItfxPFzf+TauS/b99rn2k7wT7KixPH1vd93fs/zO+coQqEQspI+UWYhyBJwWwuVqTc2qdMvA2BgvIoB3Cfy44MApgBYwq+SUdv1THxORab4ABrwGgB19E8t4a+wAxgAYAYwkCmEpJWASZ2+GICRfq1M8ddfBtAFoKtk1DZ1WxEwqdPX0KA/niGW4ARNxMCCJoAG3iTBlqdaBgGYUklESgiY1OkNAA5nMPBCRDxVMmqzzGsCaBtvArBvnkaJR2iNmJp3BEzq9HW0k9NifosdgLFk1GaeFwQsgFGfUm0gSgAdy5vTEFKmMnStI5lDECOAdrQDC8DkiDFJNaQctJIQ+EYAl24D8EE/4yX6mdNPAH0jb+H2k7dIkKDMgp9eEpRZ8NNLQkJOmHa4l7LYs2RVIo5ZMgF0qGmR0+EqSjXI2bQGasMaKMvuBLW2lvV+yDGBwDfDCFy9Ap/ln/CeyYixYAdgkBqiSiKATrIG5IrzlRVa5DU1Iqdul6TPBcesmOl5B55jPQjd9KQ7T6iRkqxJJeCwHBmuolSDvN9tQ+72PyR1nZBjAtNvPg/PkY/SmjGXjNqeIk4AXdv5M+m7parKUHDoDSjvKOe95+s7Bf/VEfgtbNOqKCyA2nAvqNU/h6p8neDnXM+8mE5t+LXY2pEoAmjTc5203c/Zugr5z70ORdES1ij2nGwXbU6oqjJoGhp4ZitgHYJje1O6SLADWCbGFIkNQ02kwVfX6lFw6D0W+L6+U5jasAHTB8+KBs5/cRyuPe1wNtUiYB2K/F1Vvg5F3UehKNWkK1s2EdEAOUJOZYUW2jPnWeDfOrQ3adutKNUgf/9uljYErEOwP/C4aHOo0Oaz/YrdDf/FcdlCUzFtKYdJD4/C9tdY4LtNOzDTeSHp64ZueuDa044CIEKCqnwdFrVuwfTBs1HD3ZzqX0J9/6Mxnbv33DHcevWkVJN2GLMdHolpAD2H208SfM2+jchreS3y+3RHqyA4SduAj0+wHPTUxkoER+wR4DU7N0GzrZk1EMREWbfan5E6WDbEmmOO5wNMpIFZ9ORzLPMgB/gA4Gzei5BjIvJ7XlPj7Pe3bkFxfz8W7ToYFXz/cC/8w7380Vq0BPmm48htrJZyK6aENECO0Z/bWI180/E5kJpq4eu1yeYJF7VuwaJdB1mERwtbvRf+Ct8/rkS0JF6U5Wi4T4pviKoFsTTASBoQzdadrFEmJ/gAZkNZhhZwwfeaOzC1sRJOYxtmOi/wwGdGWW7TDja5v22ScitGSSaIjvuJNk0pSjUsAGZ635c9Fgzd9MD3yVlBEzO1sRKuPe2CoAvJTOcFTHe0zoXR9z8qJcR9nMZUtAYQH/1UpY49+no+T0lA7v0b24reOrQXjs37RAPP1ahYz5SIFqSOAIOBZYtTlaH6+q3s0f/F5aQ0iumcmc9EjAC63CxrV0Nw/HrKUlIu0dxEK4WyksY2rgbUyH0n/qsjKX1yZokizVIjhoA6LDBRFC4mdi3V3WvnBpJF8gRYXUZogHr1+pQSIFTqTsiPVZWxkrfA9zfJagBto7Tyj8ji1IFfwX6ckN2deB7T0MAyawlEUlquH+BqgEEuIJjqqipfl7Iysfon9/ASq0TzGPUvtszlBX85negtGdJCADfrzdm0JjUEGNawErBEJX//7oj5CTkmMPNuPxECKLkIUNfqQRkMUK9eD9Xda3mFr9zaR4iUoOOZH2YNx/vp+YSfhXkdz8n2ZPKYmAQkZZzDZd7cTY/FdXzU2lqoa/8kbzFu2yMcG74LwRs3JLWxKEo1KHjl7Tkf4pjgZcQShYUxqxo6qdOHkgFean09OGaF/eF6WbJiqqoMRacHhcsT5g649rSLeq6i7qOsGparpT7pPqSSUZsiXilC2oN2HxWsrwesQ5jpfgmulno4Gu7DpE4PV0s9KzzM37+bfJRVqkF+24tR38+p2wXtxydiBgJC4M90v0S8CSwpDaCqylD45ge8rgbvuWOYPvl+1DCtsOsAawpQ7IgUCz4XuOmOVlArKnjTjv7hXjg27xN8rvy2F1nX8PWdgtPYRuQemRqQMAFC4Pv6TsF9KH6JV1GqgfbD91h+ggQJQuAzr8udEAqPaveznXPBQWM18ppfZidchFtciBDAnXOVOrEuRGDAOgT3gWcTitWFeoyEgBMiwdlUi8D3N1Fw4HleH6rX3AH3C68T9VNJE8B9iES7GoRICD+05/RpUUTkbF0FTb2RB1y0Ucs1f2GzKRQ8yNUwkDQBzNEfzY4mYzaYUZJv4EMEbowjYPt2jjiDAdSKClBrHhAEjmtWwlLwx2ZRjb/BMSvcL/xethA5KQIUpRos/vIromEZMDuBLjWMFQtcLJK5muA52S5bpwaRMJQ3tUgoLPMc60kY/IB1CG7TDkz97CEe+FRVGbQfvscD323aAa+5g/U319O/kR18Hp7IEFFvKOfZXwCgVlRAUVgcKWcEx6wIjl9DcPw/8H9rhbdPuCoZTg6ZbSlcnxWo+o5lkiiDQfZOjXgEDCLOhhrcGjhVVZZM7ySjaHYvTyNmHaj0EZnbWI1FO5/mlUNCjgk4n9wcuV//xXEEx6yR/1OvXo9pyK4Bg7GqoXHbqYMjdgTHrIz6SgORu1KtuIdlUqSGfYpSDTT7NqL4s3PINx3nge8f7sXUhg28wRL415wJZc52yShTsQgQNcc20/MOK61X1+qJ3mHIOSUa9NzGahR2HcDiL79CXstrgqM+3IoiRCpzfjqZAECCWGKZIFEEeI71sCKWglfehtO+OSlTxB19uY3VCP73BhvwwgKofrQcqh/ooPrxyrhRzUz3SzE7mpUVWmi2Nafa3Vli1YKWAbgmymbX6lF4tJdY4lL82Tkic7dialGxQtNJnV5uAu5irqTkNedO6vRTEDkvLJTWB8esmD72iuTMuOiDI7xsVoqEG2y9PZ/H9R9CxbYUEWAvGbUVxwtDBwA8LMoXdF5AyFXPqsEo7yhHvuk48pon4PvkLHyWzxH45ruo5klRqgFVqYOy7C5JT+If7o2sE/b1W0U7baGaEXPwyCwDYvIAs1gCwomY/+sHkd/SzKqxKIqWIKduFyvODi+wnrXnxTFtuKulHiGniz/SE4zTxSyFZUZEMolZDAEDkksAI3Y4jW1Q13ZDU7896nIfRdES0WZGuXQpPGfIrPeNlhfwyL3095RrgOACjUmd3oIk+kOVFVrk3L8O6lU/jVowEyonKH+4IvK/JKYrYwHv6zsFZdmyqMuYZJDLJaM2g9hSRBeAVxMuio3Y4Rn5CB58BKAtYufDoaRy6dJIdZO5CpFZrVTeUQ7Nzk2Soyqqqgy5v9qInId2ChIfckzA/fxuhJwuVhTnH+6VE/wwphCrAcUA/pfqAJm7fDUMlv/rf0et91CVOqj0y0EtLwdVWRPTzIQnVwDwZuTkXi4FYLHQwu1Ya8S6kIathbnrukiI19yBW0c7IyRy5wWSndMQISdKRm1G0RpAE1ADwov0UpmUBces8JzuwMy7/Sw/wgU/5JiAfeuDcpufqIv04q0THkAathuO1dMTLzfwfnoe/i8u8/IORakGBS8/y4vQSC0SjyGDJaO2mqjPGufDpnRogf/iONymHbwsOzyymcVAv8UiajsBqlKXDvDDGEb3e7HepNVmMB1maKbzAtymHaxlpuHoKHfTY7Oh5OBF+HptooqAKv3ydIA/GG8n9rRs1iHVHEXbT4ibXUdyiqtXeFVQrnNPQdENELFZh9j9gmTZKUtKGUFq72nAOgRn896Ic2UW+6TsoJKEiNo5S8p+QfZ0ERC66cH0wbOzewl1tIoqmqnK10F75rzgZJHYCZ8kxA5S+wUxtECWLcuSMU1U5UpQy8uhLLtzDniBtQjTHa0s8xOtb4igkN2yLFNMEQmfESZExvYTSZv2Se0LMmF2a8aMFf/Fcdgfroev71T0/7HIdjLJZUjc4kcSAXQtoy6d/kCsz3Aa21iba7DeT2KlZBy7Xyf1gIcFv3Wx0AyYTCFoQlsXJ7RChv6iJ+YDAd4zl2Df+mBkuwKZph2fSPRAh4SXKJWM2rrmCwnBETsc25vgNXcgOH5NDvC7Es5xkj3CZL5tY0+qlZIE+EQImI8kZAr4xAhgOOYBZA/xSY0PiOKYDZmeJxCI8w0kjzgkeqI23XJXg9lDzxaaHKFH/nWSF80eZSjO5Mh2lKFsZ8rTN7xsnmvDEcxuQ2+W6wuyx9kKy8I4zlaAiBpkD3ROHwEcIozIHmmeHgIYRBTTRBiR+hNYL9NBQpecBzZnNAEcMpbRIWwd/ZN09GSnE0UzgAHS4eS8JyAKIQbGq1iC7xjE7GpES/iVKYDPGwJuF1FmIcgScFvL/wF1Sa+givPozQAAAABJRU5ErkJggg==",Xq="data:image/svg+xml,%3csvg id='medication' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 292 292'%3e %3cpath id='background' fill='%23f7931d' d='M145.63%2c0c-80.43%2c0 -145.63%2c65.2 -145.63%2c145.63c0%2c80.44 65.2%2c145.65 145.63%2c145.65c80.43%2c0 145.63%2c-65.21 145.63%2c-145.65c0%2c-80.43 -65.2%2c-145.63 -145.63%2c-145.63'/%3e %3cpath fill='white' d='M175.55%2c105.22c3.91%2c4.42 7.55%2c8.5 10.46%2c11.75c1.46%2c1.62 2.74%2c3.04 3.79%2c4.18c1.06%2c1.14 1.87%2c2.01 2.48%2c2.62c4.76%2c4.78 7.69%2c11.31 7.69%2c18.58l0%2c74.84c-0%2c7.28 -2.93%2c13.81 -7.69%2c18.58c-4.77%2c4.76 -11.3%2c7.68 -18.57%2c7.68l-26.32%2c0l-26.31%2c0c-7.26%2c0 -13.8%2c-2.92 -18.57%2c-7.68c-4.76%2c-4.77 -7.69%2c-11.31 -7.69%2c-18.58l0%2c-57.96l0%2c-16.89c0%2c-7.27 2.93%2c-13.8 7.69%2c-18.58c0.61%2c-0.61 1.41%2c-1.48 2.47%2c-2.62c3.9%2c-4.24 11.04%2c-12.28 18.57%2c-20.81l47.67%2c0c1.45%2c1.65 2.9%2c3.29 4.31%2c4.88M101.32%2c110.24c-1.44%2c1.61 -2.7%2c3 -3.72%2c4.09c-1%2c1.11 -1.79%2c1.92 -2.19%2c2.33c-6.56%2c6.56 -10.63%2c15.67 -10.63%2c25.69l0%2c74.84c-0.01%2c10.02 4.07%2c19.13 10.63%2c25.68c6.57%2c6.57 15.67%2c10.65 25.68%2c10.64l52.63%2c0c10.02%2c0.01 19.12%2c-4.07 25.67%2c-10.64c6.56%2c-6.56 10.64%2c-15.66 10.64%2c-25.68l0%2c-57.96l0%2c-16.89c0%2c-10.02 -4.07%2c-19.13 -10.64%2c-25.69c-0.39%2c-0.4 -1.17%2c-1.22 -2.19%2c-2.33c-4.34%2c-4.72 -13.04%2c-14.53 -21.7%2c-24.37l0%2c-1.02l-0.02%2c0l0%2c-21.82l8.16%2c0c8.98%2c0 16.27%2c-8.34 16.27%2c-18.64c-0.02%2c-10.27 -7.3%2c-18.61 -16.28%2c-18.63l-72.33%2c0.03c-9%2c-0.02 -16.28%2c8.32 -16.28%2c18.61c0%2c10.3 7.28%2c18.64 16.27%2c18.64l8.13%2c0l0.02%2c22.72c-2.6%2c2.95 -5.21%2c5.91 -7.7%2c8.72c-3.9%2c4.4 -7.52%2c8.47 -10.41%2c11.68'/%3e %3cpath fill='white' d='M172.37%2c181.84l0%2c4.59c0%2c2.11 -1.48%2c3.82 -3.3%2c3.82l-15.03%2c0l0%2c15.03c0%2c1.82 -1.71%2c3.3 -3.82%2c3.3l-6.75%2c0c-2.11%2c0 -3.81%2c-1.48 -3.81%2c-3.3l0%2c-15.03l-15.04%2c0c-1.82%2c0 -3.3%2c-1.71 -3.3%2c-3.82l0%2c-0.78l0%2c-3.81l0%2c-2.16c0%2c-2.1 1.48%2c-3.81 3.3%2c-3.81l15.04%2c0l0%2c-15.04c0%2c-1.82 1.71%2c-3.29 3.81%2c-3.29l6.75%2c0c2.11%2c0 3.82%2c1.48 3.82%2c3.29l0%2c15.04l15.03%2c0c1.83%2c0 3.3%2c1.71 3.3%2c3.81l0%2c2.16ZM107.23%2c219.96l79.8%2c0l0%2c-76.54l-79.8%2c0l0%2c76.54Z'/%3e%3c/svg%3e",Zq="data:image/svg+xml,%3csvg id='report' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 288 288'%3e %3cpath id='background' fill='%23474c54' d='M143.81%2c0c-79.42%2c0 -143.81%2c64.38 -143.81%2c143.81c0%2c79.44 64.38%2c143.82 143.81%2c143.82c79.42%2c0 143.81%2c-64.39 143.81%2c-143.82c-0%2c-79.43 -64.39%2c-143.81 -143.81%2c-143.81'/%3e %3cpath fill='white' d='M188.88%2c81.07l-90.14%2c0c-2.38%2c0 -4.31%2c1.72 -4.31%2c3.84c0%2c2.12 1.93%2c3.84 4.31%2c3.84l90.14%2c0c2.38%2c0 4.3%2c-1.72 4.3%2c-3.84c0%2c-2.12 -1.92%2c-3.84 -4.3%2c-3.84'/%3e %3cpath fill='white' d='M188.88%2c98.89l-90.14%2c0c-2.38%2c0 -4.31%2c1.71 -4.31%2c3.84c0%2c2.12 1.93%2c3.84 4.31%2c3.84l90.14%2c0c2.38%2c0 4.3%2c-1.72 4.3%2c-3.84c0%2c-2.13 -1.92%2c-3.84 -4.3%2c-3.84'/%3e %3cpath fill='white' d='M145.74%2c124.36c2.38%2c0 4.31%2c-1.72 4.31%2c-3.83c0%2c-2.12 -1.93%2c-3.84 -4.31%2c-3.84l-47%2c0c-2.38%2c0 -4.3%2c1.72 -4.3%2c3.84c0%2c2.11 1.92%2c3.83 4.3%2c3.83l47%2c0Z'/%3e %3cpath fill='white' d='M208.06%2c221.83c0%2c2.31 -1.87%2c4.17 -4.17%2c4.17l-120.15%2c0c-2.3%2c0 -4.18%2c-1.87 -4.18%2c-4.17l0%2c-156.02c0%2c-2.3 1.88%2c-4.18 4.18%2c-4.18l120.15%2c0c2.3%2c0 4.17%2c1.88 4.17%2c4.18l0%2c156.02ZM203.88%2c53.02l-120.15%2c0c-7.06%2c0 -12.78%2c5.72 -12.78%2c12.78l0%2c156.02c0%2c7.06 5.72%2c12.78 12.78%2c12.78l120.15%2c0c7.06%2c0 12.78%2c-5.72 12.78%2c-12.78l0%2c-156.02c0%2c-7.06 -5.72%2c-12.78 -12.78%2c-12.78'/%3e %3cpath fill='white' d='M122.75%2c167.37h17.9v41.86h-17.9z'/%3e %3cpath fill='white' d='M99.65%2c186.32h17.9v22.91h-17.9z'/%3e %3cpath fill='white' d='M145.86%2c176.39h17.91v32.84h-17.91z'/%3e %3cpath fill='white' d='M168.98%2c162.08h17.9v47.15h-17.9z'/%3e %3cpath fill='white' d='M154.28%2c160.54l-23.11%2c-19.05l-33.7%2c32.35l4.22%2c4.41l29.79%2c-28.61l23.11%2c19.05l32.94%2c-31.59l-4.22%2c-4.4l-29.03%2c27.84Z'/%3e%3c/svg%3e",Kq="data:image/svg+xml,%3csvg id='problem' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 292 292'%3e %3cpath id='background' fill='%23a154a1' d='M145.63%2c0c-80.43%2c0 -145.63%2c65.2 -145.63%2c145.63c0%2c80.43 65.2%2c145.64 145.63%2c145.64c80.43%2c0 145.63%2c-65.21 145.63%2c-145.64c0%2c-80.43 -65.2%2c-145.63 -145.63%2c-145.63'/%3e %3cpath fill='white' d='M255.86%2c145.51l-59.15%2c0l0%2c-59.17l-50.28%2c0l0%2c59.17l-59.17%2c0l0%2c50.29l59.17%2c0l0%2c59.15l50.28%2c0l0%2c-59.15l59.15%2c0l0%2c-50.29Z'/%3e %3cpath fill='white' d='M106.17%2c21.07l-18.11%2c31.87l-35.37%2c-11.72l9.19%2c36.12l-33.17%2c15.85l32.18%2c18.93l-12.74%2c36.64l29.72%2c-12.86l-19.5%2c3.14l11.51%2c-30.58l-24.34%2c-14.36l25.12%2c-13.03l-7.39%2c-29.37l28.85%2c9.79l13.73%2c-25.71l13.06%2c27.38l31.18%2c-9.73l-4.48%2c20.11l14.34%2c-29.12l-36.92%2c9.79l-16.86%2c-33.16Z'/%3e %3cpath fill='white' d='M95.58%2c69.15l3.06%2c40.67l12.94%2c0l3.07%2c-40.67l-19.07%2c0Z'/%3e %3cpath fill='white' d='M105.11%2c114.84c-4.38%2c0 -7.93%2c3.55 -7.93%2c7.93c0%2c4.38 3.55%2c7.93 7.93%2c7.93c4.37%2c0 7.92%2c-3.55 7.92%2c-7.93c0%2c-4.38 -3.55%2c-7.93 -7.92%2c-7.93'/%3e%3c/svg%3e",Jq="data:image/svg+xml,%3csvg id='procedure' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 292 292'%3e %3cpath id='background' fill='%234eb848' d='M145.63%2c0c-80.43%2c0 -145.63%2c65.2 -145.63%2c145.63c0%2c80.44 65.2%2c145.64 145.63%2c145.64c80.43%2c0 145.63%2c-65.21 145.63%2c-145.64c0%2c-80.43 -65.2%2c-145.63 -145.63%2c-145.63'/%3e %3cpath fill='white' d='M178.18%2c61.38c12.86%2c-12.86 33.78%2c-12.86 46.63%2c0l4.26%2c4.26c12.86%2c12.86 12.86%2c33.78 0%2c46.64l-18.45%2c18.45l7.24%2c7.24l0.01%2c0l18.44%2c-18.44c16.84%2c-16.84 16.84%2c-44.26 0%2c-61.11l-4.26%2c-4.26c-16.85%2c-16.86 -44.26%2c-16.86 -61.1%2c0l-18.44%2c18.44l7.23%2c7.23l18.44%2c-18.44Z'/%3e %3cpath fill='white' d='M130.79%2c210.57l-18.44%2c18.44c-12.86%2c12.86 -33.78%2c12.86 -46.64%2c0l-4.26%2c-4.26c-12.86%2c-12.86 -12.86%2c-33.78 0%2c-46.64l18.45%2c-18.44l-7.24%2c-7.23l-18.44%2c18.45c-16.86%2c16.85 -16.86%2c44.26 0%2c61.11l4.26%2c4.26c16.85%2c16.85 44.26%2c16.85 61.1%2c0.01l18.44%2c-18.44l-0.01%2c-0.01l-7.23%2c-7.23Z'/%3e %3cpath fill='white' d='M229.08%2c224.75l-4.26%2c4.27c-12.86%2c12.86 -33.78%2c12.86 -46.63%2c0l-25.67%2c-25.68l50.9%2c-50.91l25.67%2c25.68c12.86%2c12.87 12.86%2c33.78 0%2c46.64M87.14%2c137.96l-25.68%2c-25.68c-12.85%2c-12.86 -12.85%2c-33.78 0%2c-46.64l4.26%2c-4.26c12.87%2c-12.86 33.78%2c-12.86 46.64%2c0l25.68%2c25.67l-50.9%2c50.91ZM236.31%2c170.88l-25.68%2c-25.69l-65.36%2c-65.36l-25.68%2c-25.67c-16.84%2c-16.85 -44.25%2c-16.85 -61.1%2c0l-4.26%2c4.26c-16.86%2c16.85 -16.86%2c44.27 0%2c61.11l25.67%2c25.67l65.36%2c65.38l25.67%2c25.68c16.84%2c16.85 44.26%2c16.85 61.11%2c-0.01l4.26%2c-4.26c16.85%2c-16.85 16.85%2c-44.26 0%2c-61.11'/%3e %3cpath fill='white' d='M121.51%2c93.92c1.88%2c-1.88 1.88%2c-4.93 0%2c-6.82c-1.88%2c-1.88 -4.93%2c-1.88 -6.81%2c0c-1.88%2c1.88 -1.88%2c4.93 0%2c6.82c1.88%2c1.88 4.94%2c1.88 6.81%2c0'/%3e %3cpath fill='white' d='M87.18%2c59.58c-1.89%2c1.88 -1.89%2c4.94 0%2c6.82c1.89%2c1.88 4.94%2c1.88 6.82%2c0c1.88%2c-1.88 1.88%2c-4.93 0%2c-6.82c-1.88%2c-1.88 -4.93%2c-1.88 -6.82%2c0'/%3e %3cpath fill='white' d='M87.18%2c114.62c-1.89%2c1.88 -1.89%2c4.94 0%2c6.82c1.89%2c1.88 4.94%2c1.88 6.82%2c0c1.88%2c-1.88 1.88%2c-4.93 0%2c-6.82c-1.88%2c-1.88 -4.93%2c-1.88 -6.82%2c0'/%3e %3cpath fill='white' d='M59.66%2c87.11c-1.89%2c1.88 -1.89%2c4.93 0%2c6.82c1.88%2c1.88 4.94%2c1.88 6.82%2c0c1.88%2c-1.88 1.88%2c-4.93 0%2c-6.82c-1.88%2c-1.88 -4.94%2c-1.88 -6.82%2c0'/%3e %3cpath fill='white' d='M93.94%2c93.99c1.88%2c-1.88 1.88%2c-4.94 0%2c-6.82c-1.89%2c-1.88 -4.94%2c-1.88 -6.82%2c0c-1.88%2c1.88 -1.88%2c4.94 0%2c6.82c1.88%2c1.88 4.93%2c1.88 6.82%2c0'/%3e %3cpath fill='white' d='M230.88%2c196.47c-1.88%2c-1.88 -4.94%2c-1.88 -6.82%2c0c-1.89%2c1.88 -1.89%2c4.94 0%2c6.82c1.88%2c1.88 4.93%2c1.88 6.82%2c0c1.88%2c-1.88 1.89%2c-4.94 0%2c-6.82'/%3e %3cpath fill='white' d='M196.53%2c168.94c-1.88%2c1.88 -1.88%2c4.94 0%2c6.82c1.88%2c1.89 4.93%2c1.89 6.82%2c0c1.89%2c-1.88 1.89%2c-4.93 0%2c-6.82c-1.88%2c-1.88 -4.93%2c-1.88 -6.82%2c0'/%3e %3cpath fill='white' d='M196.53%2c224c-1.88%2c1.88 -1.88%2c4.93 0%2c6.81c1.88%2c1.88 4.93%2c1.88 6.82%2c0c1.89%2c-1.88 1.89%2c-4.93 0%2c-6.81c-1.88%2c-1.89 -4.93%2c-1.89 -6.82%2c0'/%3e %3cpath fill='white' d='M169.01%2c196.47c-1.88%2c1.88 -1.88%2c4.94 0%2c6.82c1.89%2c1.88 4.93%2c1.88 6.82%2c0c1.88%2c-1.88 1.88%2c-4.94 0%2c-6.82c-1.89%2c-1.88 -4.93%2c-1.88 -6.82%2c0'/%3e %3cpath fill='white' d='M203.29%2c203.35c1.88%2c-1.88 1.88%2c-4.94 0%2c-6.82c-1.88%2c-1.89 -4.93%2c-1.89 -6.82%2c0c-1.88%2c1.87 -1.88%2c4.93 0%2c6.82c1.89%2c1.88 4.94%2c1.88 6.82%2c0'/%3e%3c/svg%3e",Qq="data:image/svg+xml,%3csvg viewBox='0 0 292 292' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3e %3cg id='Page-1' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3e %3cg id='immunizations'%3e %3cpath d='M145.63%2c-2.84217094e-14 C65.2%2c-2.84217094e-14 0%2c65.2 0%2c145.63 C0%2c226.07 65.2%2c291.28 145.63%2c291.28 C226.06%2c291.28 291.26%2c226.07 291.26%2c145.63 C291.26%2c65.2 226.06%2c-2.84217094e-14 145.63%2c-2.84217094e-14' id='background' fill='%233054A5' fill-rule='nonzero'%3e%3c/path%3e %3cpath d='M197.11978%2c37.7935761 L197.381623%2c38.0096942 L243.102486%2c76.374054 C247.799291%2c80.3151412 248.02423%2c84.81633 243.777303%2c89.8776203 C239.603599%2c94.851647 235.247384%2c95.4369604 230.708659%2c91.6335605 L230.46961%2c91.4293291 L214.684717%2c110.241032 L237.313265%2c129.228639 C245.330865%2c135.956204 236.000124%2c147.238973 227.954658%2c140.870269 L227.711269%2c140.671852 L212.127928%2c127.595877 L123.611055%2c233.086178 C119.468352%2c238.023259 114.964724%2c238.522176 110.100172%2c234.582929 L109.848235%2c234.375217 L94.5566334%2c221.544039 L68.9882949%2c252.015199 L67.2926598%2c224.960953 L80.2399786%2c209.53094 L64.5148376%2c196.33598 C59.3405626%2c191.994247 58.7477203%2c187.359104 62.7363106%2c182.430551 L62.9430687%2c182.179694 L151.459942%2c76.6893919 C146.435251%2c72.4731754 141.379204%2c68.3109956 136.2918%2c64.2028525 C128.737006%2c58.10226 138.305031%2c46.5484907 145.786436%2c52.4344647 L146.012487%2c52.6181893 L168.963853%2c71.8766726 L184.748747%2c53.0649694 C179.431643%2c48.749482 178.896554%2c44.0610931 183.143481%2c38.9998028 C187.319626%2c34.0228673 191.978392%2c33.6207917 197.11978%2c37.7935761 Z M159.361857%2c83.3198861 L70.7832683%2c188.883738 L116.504132%2c227.248097 L138.334785%2c201.231338 L124.560663%2c189.673477 C116.651559%2c183.03695 125.814437%2c171.956435 133.750199%2c178.239948 L133.990282%2c178.435695 L147.764404%2c189.993556 L157.167266%2c178.787661 L150.889924%2c173.520346 C143.571138%2c167.379155 153.092938%2c155.456529 160.665086%2c161.412069 L160.893929%2c161.598036 L167.171271%2c166.865352 L176.262824%2c156.030462 L162.488702%2c144.472601 C155.169916%2c138.33141 164.788317%2c126.720013 172.154559%2c132.507379 L172.377069%2c132.688103 L186.151191%2c144.245964 L205.082721%2c121.684246 L159.361857%2c83.3198861 Z M192.439376%2c59.4084639 L176.482316%2c78.3769286 L206.864349%2c103.805572 L222.821409%2c84.8371072 L192.439376%2c59.4084639 Z' id='Syringe' fill='white'%3e%3c/path%3e %3c/g%3e %3c/g%3e%3c/svg%3e";function eH(t){var n=s(),r=n[0],i=n[1];function o(){if("NoData"!=t.previewState){if("Default"!=t.previewState){var e=new URLSearchParams({View:t.concept}).toString();return b.invokeCustomApi("HealthAndWellnessApi.PatientEventsPreview","GET",e,!0).then((function(e){i(e)}))}i(function(e){switch(e){case"Medications":return{PreviewValues:["atorvastatin 10 MG Oral Tablet","Metformin hydrochloride 500 MG Oral Tablet","atorvastatin 40 MG Oral Tablet"],Count:67};case"Conditions":return{PreviewValues:["Hypertension","Hyperlipidemia","Diabetes"],Count:12};case"Allergies":return{PreviewValues:["Penicillin","Dust","Pollen"],Count:3};case"Immunizations":return{PreviewValues:["Influenza virus vaccine","Tetanus and diphtheria toxoids - preservative free","Pneumococcal conjugate vaccine"],Count:3};case"Reports":return{PreviewValues:["Diagnostic X-Ray","Operative Note"],Count:3};case"Procedures":return{PreviewValues:["INJ TENDON SHEATH/LIGAMENT","DRAIN/INJ JOINT/BURSA W/US","INJ FOR TENDON ORIGIN/INSRT"],Count:3}}}(t.concept))}else i({PreviewValues:[],Count:0})}return l((function(){return o(),b.on("externalAccountSyncComplete",o),b.on("applicationDidBecomeVisible",o),function(){b.off("externalAccountSyncComplete",o),b.off("applicationDidBecomeVisible",o)}}),[t.concept]),r?r.PreviewValues.length?e.createElement(D,{indicatorPosition:t.indicatorPosition,bottomBorder:!0,indicatorValue:r.Count,className:"mdhui-health-preview-section",title:function(){switch(t.concept){case"Medications":return br["medications-title"];case"Immunizations":return br["immunizations-title"];case"Reports":return br["reports-title"];case"Allergies":return br["allergies-title"];case"Conditions":return br["conditions-title"];case"Procedures":return br["procedures-title"]}}(),titleIcon:e.createElement("img",{className:"mdhui-health-preview-icon",src:function(){switch(t.concept){case"Medications":return Xq;case"Immunizations":return Qq;case"Reports":return Zq;case"Allergies":return Yq;case"Conditions":return Kq;case"Procedures":return Jq}}()}),onClick:function(){return t.onClick()}},e.createElement("div",null,r.PreviewValues.map((function(t){return e.createElement("div",{key:t,className:"mdhui-health-preview-item"},t)})))):null:e.createElement("div",{className:"mdhui-health-preview-section"},e.createElement(I,null))}k(".mdhui-health-preview-section .mdhui-health-preview-icon {\n width: 15px;\n height: 15px;\n margin-right: 8px;\n}\n\n.mdhui-health-preview-section .mdhui-health-preview-item {\n white-space: nowrap;\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n margin-bottom: 2px;\n margin-top: 2px;\n font-size: .82em;\n color: var(--mdhui-text-color-2);\n box-sizing: border-box;\n}\n\n.mdhui-health-preview-section .mdhui-health-preview-item:first-child {\n margin-top: 4px;\n}");k(".mdhui-lab-results-summary {\n padding: 16px;\n background: var(--mdhui-background-color-0);\n position: relative;\n width: 100%;\n}\n\n.mdhui-lab-results-summary .mdhui-hw-section-header .mdhui-hw-section-header-icon {\n position: absolute;\n left: 0;\n top: 0;\n width: 15px;\n}\n\n.mdhui-lab-results-summary .mdhui-important-labs {\n background: var(--mdhui-background-color-0);\n}\n\n.mdhui-hw-section-indicator {\n position: absolute;\n right: 16px;\n top: 16px;\n font-size: 16px;\n color: var(--mdhui-text-color-3);\n}\n\n.mdhui-lab-results-values-container {\n margin-left: -16px;\n margin-right: -16px;\n overflow-y: hidden;\n margin-bottom: -16px;\n width: calc(100% + 32px);\n}\n\n.mdhui-lab-results-values-container.no-overflow {\n overflow-x: hidden;\n}\n\n.mdhui-lab-results-values-slider {\n padding-left: 8px;\n width: 10000px;\n}\n\n.mdhui-lab-results-values-column {\n width: 13em;\n min-width: 160px;\n border-right: solid 1px var(--mdhui-border-color-0);\n float: left;\n}\n\n.mdhui-lab-results-values-column:last-child {\n border: none;\n}");var tH="data:image/svg+xml,%3csvg id='labreport' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 292 292'%3e %3cpath id='background' fill='%230e90c0' d='M145.6%2c0c-80.41%2c0 -145.6%2c65.2 -145.6%2c145.63c0%2c80.44 65.2%2c145.65 145.6%2c145.65c80.43%2c0 145.63%2c-65.21 145.63%2c-145.65c0%2c-80.43 -65.2%2c-145.63 -145.63%2c-145.63'/%3e %3cpath fill='white' d='M117.4%2c168.37c0%2c-5.12 4.16%2c-9.25 9.26%2c-9.25c5.12%2c0 9.26%2c4.14 9.26%2c9.25c0%2c5.13 -4.14%2c9.28 -9.26%2c9.28c-5.11%2c0 -9.26%2c-4.15 -9.26%2c-9.28M125.4%2c118.36l9.09%2c-15.75l0%2c-28.86l29.31%2c0l0%2c28.86l9.08%2c15.75c4.56%2c7.87 10.48%2c18.16 16.48%2c28.53l-80.42%2c0c5.99%2c-10.37 11.93%2c-20.66 16.46%2c-28.53M174.14%2c99.85l0%2c-26.09l0.28%2c0c10.95%2c0 19.83%2c-7.91 19.83%2c-17.67c0%2c-9.76 -8.88%2c-17.67 -19.83%2c-17.67l-54%2c0c-10.95%2c0 -19.83%2c7.91 -19.83%2c17.67c0%2c9.76 8.87%2c17.67 19.83%2c17.67l3.74%2c0l0%2c26.09l-7.71%2c13.34c-9.48%2c16.43 -25%2c43.31 -34.48%2c59.74l-10.98%2c19.02c-3.1%2c5.37 -4.74%2c10.73 -4.74%2c15.86c0%2c3.14 0.63%2c6.18 1.92%2c8.93c1.92%2c4.13 5.31%2c7.46 9.54%2c9.61c4.24%2c2.17 9.31%2c3.22 15%2c3.23l112.89%2c0c7.58%2c-0.01 14.1%2c-1.9 18.93%2c-5.76c2.4%2c-1.93 4.33%2c-4.34 5.61%2c-7.08c1.28%2c-2.75 1.93%2c-5.79 1.92%2c-8.93c0%2c-5.13 -1.64%2c-10.49 -4.74%2c-15.86l-10.99%2c-19.02c-9.47%2c-16.42 -24.99%2c-43.3 -34.47%2c-59.74l-7.7%2c-13.34Z'/%3e%3c/svg%3e";k(".mdhui-lab-result-with-sparkline {\n padding: 8px;\n padding-top: 16px;\n height: 5.64em;\n box-sizing: border-box;\n position: relative;\n}\n\n.mdhui-lab-result-with-sparkline:first-child {\n border-bottom: solid 1px var(--mdhui-border-color-0);\n}\n\n.mdhui-lab-result-with-sparkline .mdhui-lab-result-with-sparkline-title {\n text-transform: uppercase;\n font-size: .7em;\n color: var(--mdhui-text-color-2);\n white-space: nowrap;\n width: calc(100% - 16px);\n text-overflow: ellipsis;\n overflow: hidden;\n}\n\n.mdhui-lab-result-with-sparkline .mdhui-lab-result-with-sparkline-flex {\n display: flex;\n gap: 8px;\n flex-direction: row;\n justify-content: space-between;\n}\n\n.mdhui-lab-result-with-sparkline .mdhui-lab-result-with-sparkline-value {\n padding-top: 8px;\n}\n\n.mdhui-lab-result-with-sparkline .mdhui-lab-result-with-sparkline-quantity {\n font-size: 1.23em;\n font-weight: 700;\n max-width: 3.8em;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.mdhui-lab-result-with-sparkline .mdhui-lab-result-with-sparkline-date {\n font-size: .7em;\n}\n\n.mdhui-lab-result-with-sparkline .mdhui-lab-result-with-sparkline-container {\n position: relative;\n padding: 8px;\n padding-right: 2em;\n}\n\n.mdhui-lab-result-with-sparkline .mdhui-lab-result-with-sparkline-sparkline {\n width: 70px;\n height: 40px;\n}\n\n.mdhui-lab-result-with-sparkline .mdhui-lab-result-with-sparkline-sparkline rect {\n opacity: .1;\n}\n\n.mdhui-lab-result-with-sparkline .mdhui-lab-result-with-sparkline-term-info {\n color: var(--mdhui-color-primary);\n font-size: 24px;\n opacity: .8;\n position: absolute;\n right: 0;\n top: calc(50% - 15px);\n cursor: pointer;\n}\n\n.mdhui-lab-result-with-sparkline .mdhui-lab-result-with-sparkline-acuity {\n display: inline-block;\n border-radius: 2px;\n font-size: 0.7em;\n color: #FFF;\n padding-left: 2px;\n padding-right: 2px;\n height: 18px;\n vertical-align: middle;\n line-height: 1.3em;\n}\n\n.mdhui-lab-result-with-sparkline .mdhui-lab-result-with-sparkline-acuity.mdhui-lab-result-with-sparkline-acuity-high {\n background-color: var(--mdhui-color-danger);\n}\n\n.mdhui-lab-result-with-sparkline .mdhui-lab-result-with-sparkline-acuity.mdhui-lab-result-with-sparkline-acuity-low {\n background-color: var(--mdhui-color-primary);\n}");var nH={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]};function rH(t){var n=s(0),r=n[0],i=n[1],o=s(0),c=o[0],u=o[1],f=a(null);return l((function(){var e,t;i((null===(e=f.current)||void 0===e?void 0:e.getBoundingClientRect().width)||0),u((null===(t=f.current)||void 0===t?void 0:t.getBoundingClientRect().height)||0)})),e.createElement("div",{className:"mdhui-lab-result-with-sparkline"},e.createElement("div",{className:"mdhui-lab-result-with-sparkline-title"},t.labResultValue.Type),e.createElement("div",{className:"mdhui-lab-result-with-sparkline-flex"},e.createElement("div",{className:"mdhui-lab-result-with-sparkline-value"},e.createElement("div",{className:"mdhui-lab-result-with-sparkline-quantity"},e.createElement("span",{style:{verticalAlign:"middle"}},t.labResultValue.MostRecentValue)," ","High"==t.labResultValue.AcuityHighlight&&e.createElement("span",{className:"mdhui-lab-result-with-sparkline-acuity mdhui-lab-result-with-sparkline-acuity-high"},"H"),"Low"==t.labResultValue.AcuityHighlight&&e.createElement("span",{className:"mdhui-lab-result-with-sparkline-acuity mdhui-lab-result-with-sparkline-acuity-low"},"L")),e.createElement("div",{className:"mdhui-lab-result-with-sparkline-date"},nt(pt(t.labResultValue.MostRecentDate),"MM/dd/yy"))),e.createElement("div",{className:"mdhui-lab-result-with-sparkline-container"},!!t.labResultValue.SparklinePoints.length&&e.createElement("svg",{ref:f,className:"mdhui-lab-result-with-sparkline-sparkline"},t.labResultValue.NormalRangeTopY&&e.createElement("rect",{x:"0",y:"0",width:r,height:t.labResultValue.NormalRangeTopY*c,fill:"var(--mdhui-color-danger)"}),t.labResultValue.NormalRangeBottomY&&e.createElement("rect",{x:"0",y:t.labResultValue.NormalRangeBottomY*c,width:r,height:t.labResultValue.NormalRangeBottomY*c,fill:"var(--mdhui-color-primary)"}),t.labResultValue.SparklinePoints.slice(0,t.labResultValue.SparklinePoints.length-1).map((function(n,i){return e.createElement("line",{key:i,x1:n.X*r,y1:n.Y*c,x2:t.labResultValue.SparklinePoints[i+1].X*r,y2:t.labResultValue.SparklinePoints[i+1].Y*c,style:{stroke:"var(--mdhui-border-color-2)",strokeWidth:2}})})),e.createElement("circle",{cx:t.labResultValue.SparklinePoints[t.labResultValue.SparklinePoints.length-1].X*r,cy:t.labResultValue.SparklinePoints[t.labResultValue.SparklinePoints.length-1].Y*c,r:"3",fill:"var(--mdhui-color-primary)"})),!!t.labResultValue.TermInformation&&e.createElement("div",{className:"mdhui-lab-result-with-sparkline-term-info",onClick:function(e){return function(e,n){e.preventDefault(),e.stopPropagation(),t.onViewTermInfo(n)}(e,t.labResultValue.TermInformation)}},e.createElement(P,{icon:nH})))))}var iH={RecentLabs:{TotalLabReports:53,RecentLabReports:["CORONAVIRUS (COVID-19), PCR - Final result","VWP","CBC"]},ImportantLabs:[]},oH={RecentLabs:{TotalLabReports:53,RecentLabReports:["CORONAVIRUS (COVID-19), PCR - Final result","VWP","CBC"]},ImportantLabs:[[{Type:"WBC count",MostRecentValue:"16.6",MostRecentDate:"2021-03-03T23:32:00-05:00",AcuityHighlight:"High",SparklinePoints:[],NormalRangeTopY:null,NormalRangeBottomY:null,TermInformation:{TermNamespace:"LOINC",TermCode:"6690-2",TermFamily:"Reference"}},{Type:"HDL",MostRecentValue:"45.0",MostRecentDate:"2021-02-27T08:25:00-05:00",AcuityHighlight:"Normal",SparklinePoints:[{X:.2660136408613797,Y:.7777777777777778},{X:.2660160174679657,Y:.08333333333333337},{X:.3912703143726733,Y:.8935185185185185},{X:.4542408824767116,Y:.8587962962962963}],NormalRangeTopY:null,NormalRangeBottomY:.9166666666666666,TermInformation:{TermNamespace:"LOINC",TermCode:"2085-9",TermFamily:"Reference"}}],[{Type:"Cholesterol",MostRecentValue:"135.0",MostRecentDate:"2021-02-27T08:25:00-05:00",AcuityHighlight:"Normal",SparklinePoints:[{X:.2660136408613797,Y:.39583333333333337},{X:.3912703143726733,Y:.39583333333333337},{X:.4542408824767116,Y:.35416666666666663}],NormalRangeTopY:.08333333333333337,NormalRangeBottomY:.9166666666666666,TermInformation:{TermNamespace:"LOINC",TermCode:"2093-3",TermFamily:"Reference"}},{Type:"LDL",MostRecentValue:"152.0",MostRecentDate:"2021-02-27T08:25:00-05:00",AcuityHighlight:"High",SparklinePoints:[{X:.2660136408613797,Y:.08333333333333337},{X:.3912703143726733,Y:.16935483870967738},{X:.4542408824767116,Y:.09946236559139787}],NormalRangeTopY:.217741935483871,NormalRangeBottomY:.9166666666666666,TermInformation:{TermNamespace:"LOINC",TermCode:"13457-7",TermFamily:"Reference"}}],[{Type:"Glucose",MostRecentValue:"67",MostRecentDate:"2020-04-22T16:27:00+00:00",AcuityHighlight:"Normal",SparklinePoints:[{X:.24160208865208618,Y:.9166666666666667}],NormalRangeTopY:.08333333333333348,NormalRangeBottomY:.7670940170940171,TermInformation:{TermNamespace:"LOINC",TermCode:"2345-7",TermFamily:"Reference"}}]]};function aH(t){var n,r,i,o=s(null),a=o[0],c=o[1],u=s(!1),f=u[0],p=u[1];function d(){if("ImportantLabs"!=t.previewState)if("RecentLabs"!=t.previewState){if("NoData"!=t.previewState){return b.invokeCustomApi("HealthAndWellnessApi.LabResults","GET","",!0).then((function(e){c(e)}))}c({ImportantLabs:[],RecentLabs:{RecentLabReports:[]}})}else c(iH);else c(oH)}l((function(){return h()>0&&p(!0),d(),b.on("externalAccountSyncComplete",d),b.on("applicationDidBecomeVisible",d),function(){b.off("externalAccountSyncComplete",d),b.off("applicationDidBecomeVisible",d)}}),[]);var h=function(){var e,t=h.width;return void 0===t&&((e=document.createElement("div")).innerHTML='<div style="width:50px;height:50px;position:absolute;left:-50px;top:-50px;overflow:auto;"><div style="width:1px;height:100px;"></div></div>',e=e.firstChild,document.body.appendChild(e),t=h.width=e.offsetWidth-e.clientWidth,document.body.removeChild(e)),t};if(!a)return e.createElement("div",{className:"mdhui-health-preview-section"},e.createElement(I,null));if(a&&!a.ImportantLabs.length&&!(null===(n=a.RecentLabs)||void 0===n?void 0:n.RecentLabReports.length))return null;return e.createElement(D,{bottomBorder:!0,title:br["lab-results-title"],titleIcon:e.createElement("img",{className:"mdhui-health-preview-icon",src:tH,alt:"Lab Results"}),onClick:function(){a&&t.onClick()},indicatorValue:null===(r=null==a?void 0:a.RecentLabs)||void 0===r?void 0:r.TotalLabReports,indicatorPosition:(null===(i=a.ImportantLabs)||void 0===i?void 0:i.length)?"topRight":void 0,className:"mdhui-lab-results-summary mdhui-health-preview-section"},!a&&e.createElement(I,null),a&&e.createElement(e.Fragment,null,!!a.ImportantLabs.length&&e.createElement("div",{className:"mdhui-lab-results-values-container"+(f?" no-overflow":""),style:{height:5.64*a.ImportantLabs[0].length+"em"}},e.createElement("div",{className:"mdhui-lab-results-values-slider",style:{width:13*a.ImportantLabs.length+.5+"em"}},a.ImportantLabs.map((function(n,r){return e.createElement("div",{key:r,className:"mdhui-lab-results-values-column"},n.map((function(n,r){return e.createElement(rH,{onViewTermInfo:function(e){return t.onViewTermInfo(e)},labResultValue:n,key:r})})))})))),!a.ImportantLabs.length&&e.createElement("div",null,a.RecentLabs.RecentLabReports.map((function(t){return e.createElement("div",{key:t,className:"mdhui-health-preview-item"},t)})))))}k(".mdhui-most-recent-notification .mdhui-notification {\n border-bottom: solid 1px var(--mdhui-border-color-0);\n}\n\n.mdhui-most-recent-notification .mdhui-action .subtitle {\n color: var(--mdhui-color-primary);\n}");var cH={id:"1",identifier:"SurveyReminder",sentDate:"2022-03-10T13:37:41.16+00:00",statusCode:"Succeeded",type:"Push",content:{title:"Please Complete Your Surveys",body:"Your latest surveys are due"},recipients:[],contentVersion:0};function sH(t){var n=s(null),r=n[0],i=n[1];function o(){if("Default"!=t.previewState){var e={limit:1,statusCode:"Succeeded"};if(t.hideAfterHours){var n=Y(new Date,{hours:-1*t.hideAfterHours});e.sentAfter=n.toISOString()}t.notificationType&&(e.type=t.notificationType),b.queryNotifications(e).then((function(e){e.notifications.length&&i(e.notifications[0])}))}else i(cH)}return l((function(){return o(),b.on("applicationDidBecomeVisible",o),function(){b.off("applicationDidBecomeVisible",o)}}),[]),r?e.createElement("div",{className:"mdhui-most-recent-notification"},e.createElement(Or,{notification:r}),t.onViewMore&&e.createElement(D,{subtitle:br["all-notifications"],onClick:t.onViewMore})):null}var lH=[{id:"1",identifier:"SurveyReminder",sentDate:(new Date).toISOString(),statusCode:"Succeeded",type:"Push",content:{body:"Thank you for completing your surveys!"},recipients:[],contentVersion:1},{id:"2",identifier:"SurveyReminder",sentDate:Y(new Date,{hours:-1}).toISOString(),statusCode:"Succeeded",type:"Push",content:{title:"Please Complete Your Surveys",body:"Your latest surveys are due"},recipients:[],contentVersion:1},{id:"4",identifier:"SurveyReminder",sentDate:Y(new Date,{days:-1}).toISOString(),statusCode:"Succeeded",type:"Push",content:{title:"Have you received your Fitbit? Connect it!"},recipients:[],contentVersion:1},{id:"5",identifier:"SurveyReminder",sentDate:Y(new Date,{days:-2}).toISOString(),statusCode:"Succeeded",type:"Push",content:{title:"Consent and get a Fitbit",body:"Are you missing out on a Fitbit device? Complete your consent - you could get a new Fitbit at no cost to you!"},recipients:[],contentVersion:1}];function uH(t){var n=a(null);return Oq((function(){n.current&&function(e){var t=e.getBoundingClientRect(),n=Math.max(document.documentElement.clientHeight,window.innerHeight);return!(t.bottom<0||t.top-n>=0)}(n.current)&&t.onTrigger()}),t.enabled?1e3:null),e.createElement("div",null,t.enabled&&e.createElement("div",{style:{height:"0px"},ref:n}))}function fH(t){var n=s(!1),r=n[0],i=n[1],o=s(void 0),a=o[0],c=o[1],u=s(!1),f=u[0],p=u[1],d=s([]),h=d[0],m=d[1];function y(){if("Default"==t.previewState&&m(lH),t.previewState)return i(!1),void p(!0);if(!r&&!f){i(!0);var e={statusCode:"Succeeded",limit:10};t.notificationType&&(e.type=t.notificationType),a&&(e.pageID=a),b.queryNotifications(e).then((function(e){m(h.concat(e.notifications)),i(!1),e.nextPageID||p(!0),c(e.nextPageID)}))}}return l((function(){y();var e=function(){m([]),c(void 0),p(!1),y()};return b.on("applicationDidBecomeVisible",e),function(){b.off("applicationDidBecomeVisible",e)}}),[]),e.createElement("div",{className:"mdhui-notification-list"},h&&h.map((function(t){return e.createElement(Pt,{key:t.id.toString()},e.createElement(Or,{notification:t}))})),r&&!f&&e.createElement(I,null),!r&&f&&0==h.length&&e.createElement(Pt,null,e.createElement(Nr,null,br["no-notifications-received"])),e.createElement(uH,{onTrigger:y,enabled:!r&&!f}))}function pH(t){var n=s(""),r=n[0],i=n[1];return l((function(){t.previewDevicePlatform?i(t.previewDevicePlatform):b.getDeviceInfo().then((function(e){e&&i(e.platform)}))}),[]),t.platforms.includes(r)?e.createElement("div",null,t.children):null}function dH(t){var n=s(!0),r=n[0],i=n[1],o=s(null),a=o[0],c=o[1];function u(){if("Default"==t.previewState)return c({name:"My Project Name",organization:{name:"My Organization Name",color:"#0076BE",logoUrl:"https://rkstudio.careevolution.com/inv/api/researchkit/organizationbrandingimage/1e1853a2-50d3-4e26-863d-d8546bce63e3"}}),void i(!1);b.getProjectInfo().then((function(e){c(e),i(!1)}))}l((function(){return u(),b.on("applicationDidBecomeVisible",u),function(){b.off("applicationDidBecomeVisible",u)}}),[]);var f=null==a?void 0:a.organization.logoUrl;return f&&!(null==f?void 0:f.startsWith("http"))&&(f=b.baseUrl+(null==a?void 0:a.organization.logoUrl)),e.createElement("div",{className:"mdhui-project-header"},r&&e.createElement(I,null),!r&&a&&e.createElement("div",null,e.createElement("div",{style:{backgroundImage:"url('"+f+"')"},className:"logo"}),e.createElement("div",{className:"project-info"},e.createElement("div",{className:"project-name",style:{color:a.organization.color}},a.name),e.createElement("div",{className:"organization-name"},a.organization.name))))}k(".mdhui-project-header\n{\n padding: 16px;\n text-align: center;\n background: #FFF;\n border-bottom: solid 1px var(--mdhui-border-color-1);\n}\n\n .mdhui-project-header .logo\n {\n display: inline-block;\n width: 48px;\n height: 48px;\n background-size: contain;\n background-position: center center;\n background-repeat: no-repeat;\n vertical-align: middle;\n }\n\n .mdhui-project-header .project-info\n {\n display: inline-block;\n text-align: left;\n padding-left: 16px;\n vertical-align: top;\n padding-right: 16px;\n max-width: calc(100% - 80px);\n }\n\n .mdhui-project-header .project-info .project-name\n {\n font-weight: bold;\n font-size: 1.5em;\n max-width: 100%;\n }\n\n .mdhui-project-header .project-info .organization-name\n {\n max-width: 100%;\n color: #333;\n }\n");k(".mdhui-project-support>.title {\n font-weight: bold;\n padding: 16px;\n padding-bottom: 0;\n}\n\n.mdhui-project-support .mdhui-action {\n color: var(--mdhui-color-primary);\n border-bottom: solid 1px var(--mdhui-border-color-0);\n}\n\n.mdhui-project-support .mdhui-action .subtitle {\n color: var(--mdhui-color-primary);\n}");var hH={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="envelope",n=[128386,9993,61443],r="f0e0",i="M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4L236.8 313.6c11.4 8.5 27 8.5 38.4 0L492.8 150.4c12.1-9.1 19.2-23.3 19.2-38.4c0-26.5-21.5-48-48-48H48zM0 176V384c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V176L294.4 339.2c-22.8 17.1-54 17.1-76.8 0L0 176z";e.definition={prefix:"fas",iconName:t,icon:[512,512,n,r,i]},e.faEnvelope=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=i,e.aliases=n}(hH);var mH={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="globe",n=[127760],r="f0ac",i="M352 256c0 22.2-1.2 43.6-3.3 64H163.3c-2.2-20.4-3.3-41.8-3.3-64s1.2-43.6 3.3-64H348.7c2.2 20.4 3.3 41.8 3.3 64zm28.8-64H503.9c5.3 20.5 8.1 41.9 8.1 64s-2.8 43.5-8.1 64H380.8c2.1-20.6 3.2-42 3.2-64s-1.1-43.4-3.2-64zm112.6-32H376.7c-10-63.9-29.8-117.4-55.3-151.6c78.3 20.7 142 77.5 171.9 151.6zm-149.1 0H167.7c6.1-36.4 15.5-68.6 27-94.7c10.5-23.6 22.2-40.7 33.5-51.5C239.4 3.2 248.7 0 256 0s16.6 3.2 27.8 13.8c11.3 10.8 23 27.9 33.5 51.5c11.6 26 20.9 58.2 27 94.7zm-209 0H18.6C48.6 85.9 112.2 29.1 190.6 8.4C165.1 42.6 145.3 96.1 135.3 160zM8.1 192H131.2c-2.1 20.6-3.2 42-3.2 64s1.1 43.4 3.2 64H8.1C2.8 299.5 0 278.1 0 256s2.8-43.5 8.1-64zM194.7 446.6c-11.6-26-20.9-58.2-27-94.6H344.3c-6.1 36.4-15.5 68.6-27 94.6c-10.5 23.6-22.2 40.7-33.5 51.5C272.6 508.8 263.3 512 256 512s-16.6-3.2-27.8-13.8c-11.3-10.8-23-27.9-33.5-51.5zM135.3 352c10 63.9 29.8 117.4 55.3 151.6C112.2 482.9 48.6 426.1 18.6 352H135.3zm358.1 0c-30 74.1-93.6 130.9-171.9 151.6c25.5-34.2 45.2-87.7 55.3-151.6H493.4z";e.definition={prefix:"fas",iconName:t,icon:[512,512,n,r,i]},e.faGlobe=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=i,e.aliases=n}(mH);var yH={};function vH(t){var n=s(!0),r=n[0],i=n[1],o=s(null),a=o[0],c=o[1];function u(){if("Default"==t.previewState)return c({supportEmail:"test@example.com",supportPhone:"555-555-1212",learnMoreLink:"https://mydatahelps.org",learnMoreTitle:"Project Home Page"}),void i(!1);b.getProjectInfo().then((function(e){c(e),i(!1)}))}return l((function(){return u(),b.on("applicationDidBecomeVisible",u),function(){b.off("applicationDidBecomeVisible",u)}}),[]),!a||a.supportEmail||a.supportPhone||a.learnMoreLink&&a.learnMoreTitle?e.createElement("div",{className:"mdhui-project-support"},e.createElement("div",{className:"title"},br.support),r&&e.createElement(I,null),(null==a?void 0:a.learnMoreLink)&&(null==a?void 0:a.learnMoreTitle)&&e.createElement(D,{indicatorIcon:mH.faGlobe,subtitle:a.learnMoreTitle,onClick:function(){return b.openEmbeddedUrl(a.learnMoreLink)}}),(null==a?void 0:a.supportEmail)&&e.createElement(D,{indicatorIcon:hH.faEnvelope,subtitle:a.supportEmail,onClick:function(){return b.openExternalUrl("mailto:"+a.supportEmail)}}),(null==a?void 0:a.supportPhone)&&e.createElement(D,{indicatorIcon:yH.faPhone,subtitle:a.supportPhone,onClick:function(){return b.openExternalUrl("tel:"+a.supportPhone)}})):null}!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="phone",n=[128222,128379],r="f095",i="M164.9 24.6c-7.7-18.6-28-28.5-47.4-23.2l-88 24C12.1 30.2 0 46 0 64C0 311.4 200.6 512 448 512c18 0 33.8-12.1 38.6-29.5l24-88c5.3-19.4-4.6-39.7-23.2-47.4l-96-40c-16.3-6.8-35.2-2.1-46.3 11.6L304.7 368C234.3 334.7 177.3 277.7 144 207.3L193.3 167c13.7-11.2 18.4-30 11.6-46.3l-40-96z";e.definition={prefix:"fas",iconName:t,icon:[512,512,n,r,i]},e.faPhone=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=i,e.aliases=n}(yH);var gH={},bH={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="magnifying-glass",n=[128269,"search"],r="f002",i="M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z";e.definition={prefix:"fas",iconName:t,icon:[512,512,n,r,i]},e.faMagnifyingGlass=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=i,e.aliases=n}(bH),function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=bH;e.definition={prefix:t.prefix,iconName:t.iconName,icon:[t.width,t.height,t.aliases,t.unicode,t.svgPathData]},e.faSearch=e.definition,e.prefix=t.prefix,e.iconName=t.iconName,e.width=t.width,e.height=t.height,e.ligatures=t.aliases,e.unicode=t.unicode,e.svgPathData=t.svgPathData,e.aliases=t.aliases}(gH);k(".mdhui-provider-search .title {\n font-weight: bold;\n padding: 16px;\n}\n\n.mdhui-provider-search .search-bar-wrapper {\n text-align: left;\n box-sizing: border-box;\n font-weight: bold;\n border-bottom: solid 1px var(--mdhui-border-color-1);\n}\n\n.mdhui-provider-search .search-bar-wrapper .search-bar {\n position: relative;\n}\n\n.mdhui-provider-search .search-bar-wrapper .search-bar input {\n padding: 0;\n margin: 0;\n border: 0;\n width: 100%;\n line-height: 1.5em;\n padding-left: 40px;\n box-sizing: border-box;\n font-size: .88em;\n padding-top: 8px;\n padding-bottom: 8px;\n border: none;\n background: var(--mdhui-background-color-0);\n color: var(--mdhui-text-color-1);\n}\n\n.mdhui-provider-search .search-bar-wrapper .search-bar .fa-magnifying-glass {\n position: absolute;\n left: 16px;\n top: 12px;\n color: var(--mdhui-text-color-4);\n font-size: .8em;\n}\n\n.mdhui-provider-search .search-results .provider {\n border-bottom: solid 1px var(--mdhui-border-color-1);\n padding: 16px;\n position: relative;\n padding-right: 96px;\n cursor: pointer;\n font-size: .88em;\n line-height: 1.25em;\n width: 100%;\n}\n\n.mdhui-provider-search .search-results .provider .provider-logo {\n height: 37px;\n width: 64px;\n position: absolute;\n right: 16px;\n top: 8px;\n background-size: contain;\n background-repeat: no-repeat;\n background-position: center center;\n background-color:#FFF;\n border-radius: 4px;\n}\n\n.mdhui-provider-search .search-results .provider .provider-status {\n font-size: .88em;\n font-weight: bold;\n}\n\n.mdhui-provider-search .search-results .provider .provider-status.error-status {\n color: var(--mdhui-color-danger);\n}\n\n.mdhui-provider-search .search-results .provider .provider-status.connected-status {\n color: var(--mdhui-color-success);\n}");var xH=[{id:20,name:"1upHealth sandbox",category:"Health Plan",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/20/logo"},{id:13,name:"A Woman's Place, LLC",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/13/logo"},{id:130,name:"Abington Jefferson Health",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/130/logo"},{id:41,name:"Access Community Health Network",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/41/logo"},{id:125,name:"Aurora Health Care - myAurora",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/125/logo"},{id:1,name:"CareEvolution FHIR",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/1/logo"},{id:37,name:"Cedars-Sinai Health System",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/37/logo"},{id:27,name:"Maui Medical Group",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/27/logo"}],wH=0;function kH(t){var n=s({}),r=n[0],i=n[1],o=s([]),c=o[0],u=o[1],f=s(!0),p=f[0],d=f[1],h=s(""),m=h[0],y=h[1],g=s(0),x=g[0],w=g[1],k=s(0),S=k[0],_=k[1],O=a(m),A=100;function C(){return Rt(this,void 0,void 0,(function(){return Lt(this,(function(e){return b.getExternalAccounts().then((function(e){for(var t={},n=0;n<e.length;n++)t[e[n].provider.id]=e[n];i(t)})),[2]}))}))}function T(e){d(!0);var t=++wH;b.getExternalAccountProviders(e,null,A,x).then((function(e){t==wH&&(D(e.externalAccountProviders),_(e.totalExternalAccountProviders),d(!1))}))}function D(e){u(c.concat(e.filter((function(e){var n;return-1!=(null===(n=t.providerCategories)||void 0===n?void 0:n.indexOf(e.category))}))))}var j=v((function(){return e=T,void 0===(t=300)&&(t=300),function(){for(var r=this,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];clearTimeout(n),n=setTimeout((function(){return e.apply(r,i)}),t)};var e,t,n}),[]);function M(e){var n;n=e.target.value,O.current=n,y(n),u([]),w(0),t.previewState||j(e.target.value)}function N(){C().then((function(){T(O.current)}))}return l((function(){return function(){if("Default"==t.previewState)return D(xH),void d(!1);C().then((function(){T("")}))}(),b.on("applicationDidBecomeVisible",N),function(){b.off("applicationDidBecomeVisible",N)}}),[]),l((function(){p||T(O.current)}),[x]),e.createElement("div",{className:"mdhui-provider-search"},e.createElement("div",{className:"search-bar-wrapper"},e.createElement("div",{className:"search-bar"},e.createElement("input",{title:br.search,type:"text",value:m,onChange:function(e){return M(e)},placeholder:br.search,spellCheck:"false",autoComplete:"off",autoCorrect:"off",autoCapitalize:"off"}),e.createElement(P,{icon:gH.faSearch}))),e.createElement("div",{className:"search-results"},c&&c.map((function(t){return e.createElement(E,{key:t.id,className:"provider",onClick:function(){return e=t.id,void(r[e]&&"unauthorized"!=r[e].status||b.connectExternalAccount(e));var e}},t.logoUrl&&e.createElement("div",{className:"provider-logo",style:{backgroundImage:"url('"+t.logoUrl+"')"}}),e.createElement("div",{className:"provider-info"},e.createElement("div",{className:"provider-name"},t.name),r[t.id]&&"unauthorized"==r[t.id].status&&e.createElement("div",{className:"provider-status error-status"},br.reconnect),r[t.id]&&"unauthorized"!=r[t.id].status&&e.createElement("div",{className:"provider-status connected-status"},br.connected)))})),p&&e.createElement(I,null)),e.createElement(uH,{onTrigger:function(){w(x+1)},enabled:(x+1)*A<S}))}k(".mdhui-survey-task-list .mdhui-single-survey-task {\n border-bottom: solid 1px var(--mdhui-border-color-0);\n}\n\n.mdhui-survey-task-list .mdhui-single-survey-task:last-child {\n border: none;\n}\n\n.mdhui-survey-task-list .title {\n font-weight: bold;\n padding: 16px;\n padding-bottom: 0;\n}\n\n.mdhui-survey-task-list .empty-message {\n padding: 16px;\n font-size: .88em;\n}");var EH=[{id:"ecf8a7df-caa3-ec11-aaab-f47bb6835a10",surveyID:"53ad3e98-9777-ec11-aaa8-89aad5fbf200",surveyName:"Mood Survey",surveyDisplayName:"Mood Survey",surveyDescription:"3 minutes",status:"incomplete",hasSavedProgress:!1,dueDate:Y(new Date,{days:-1}).toISOString(),insertedDate:"2022-03-14T19:13:48.283Z",modifiedDate:"2022-03-14T19:13:48.283Z",linkIdentifier:"1"},{id:"e7f8a7df-caa3-ec11-aaab-f47bb6835a10",surveyID:"53ad3e98-9777-ec11-aaa8-89aad5fbf200",surveyName:"Pregnancy (Followup)",surveyDisplayName:"Pregnancy: Followup",surveyDescription:"3 minutes",status:"incomplete",hasSavedProgress:!1,dueDate:Y(new Date,{days:0}).toISOString(),insertedDate:"2022-03-14T19:13:48.283Z",modifiedDate:"2022-03-14T19:13:48.283Z",linkIdentifier:"1"},{id:"b1c9bcd2-80a4-ec11-aaab-f47bb6835a10",surveyID:"cd452353-7674-ec11-aaa8-89aad5fbf200",surveyName:"Alcohol and Tobacco",surveyDisplayName:"Alcohol and Tobacco",surveyDescription:"5 minutes",status:"incomplete",hasSavedProgress:!1,dueDate:Y(new Date,{days:1}).toISOString(),insertedDate:"2022-03-15T16:56:15.007Z",modifiedDate:"2022-03-15T16:56:15.007Z",linkIdentifier:"1"},{id:"2c9ab4d9-80a4-ec11-aaab-f47bb6835a10",surveyID:"a7f58ba8-9777-ec11-aaa8-89aad5fbf200",surveyName:"SDOH: Followup",surveyDisplayName:"Social Determinants of Health: Followup",surveyDescription:"5 minutes",status:"incomplete",hasSavedProgress:!1,dueDate:Y(new Date,{days:10}).toISOString(),insertedDate:"2022-03-15T16:56:26.703Z",modifiedDate:"2022-03-15T16:56:26.703Z",linkIdentifier:"1"}],SH=[{id:"2c9ab4d9-80a4-ec11-aaab-f47bb6835a10",surveyID:"a7f58ba8-9777-ec11-aaa8-89aad5fbf200",surveyName:"SDOH: Followup",surveyDisplayName:"Social Determinants of Health: Followup",surveyDescription:"5 minutes",status:"complete",endDate:(new Date).toISOString(),hasSavedProgress:!1,dueDate:Y(new Date,{days:10}).toISOString(),insertedDate:"2022-03-15T16:56:26.703Z",modifiedDate:"2022-03-15T16:56:26.703Z",linkIdentifier:"1"},{id:"b1c9bcd2-80a4-ec11-aaab-f47bb6835a10",surveyID:"cd452353-7674-ec11-aaa8-89aad5fbf200",surveyName:"Alcohol and Tobacco",surveyDisplayName:"Alcohol and Tobacco",surveyDescription:"5 minutes",status:"complete",hasSavedProgress:!1,endDate:Y(new Date,{days:-1}).toISOString(),dueDate:Y(new Date,{days:10}).toISOString(),insertedDate:"2022-03-15T16:56:15.007Z",modifiedDate:"2022-03-15T16:56:15.007Z",linkIdentifier:"1"},{id:"e7f8a7df-caa3-ec11-aaab-f47bb6835a10",surveyID:"53ad3e98-9777-ec11-aaa8-89aad5fbf200",surveyName:"Pregnancy (Followup)",surveyDisplayName:"Pregnancy: Followup",surveyDescription:"3 minutes",status:"complete",hasSavedProgress:!1,endDate:Y(new Date,{days:-2}).toISOString(),dueDate:Y(new Date,{days:10}).toISOString(),insertedDate:"2022-03-14T19:13:48.283Z",modifiedDate:"2022-03-14T19:13:48.283Z",linkIdentifier:"1"}];function _H(t){var n,r=s(!0),i=r[0],o=r[1],a=s(null),c=a[0],u=a[1];function f(){if("IncompleteTasks"!=t.previewState)if("CompleteTasks"!=t.previewState){var e,n;e=[],n=function(r){var i={status:t.status};return r&&(i.pageID=r),b.querySurveyTasks(i).then((function(r){e=e.concat(r.surveyTasks),r.nextPageID?n(r.nextPageID):("incomplete"==t.status&&e.sort((function(e,t){return pt(e.dueDate)>pt(t.dueDate)?1:pt(e.dueDate)<pt(t.dueDate)?-1:0})),"complete"==t.status&&e.sort((function(e,t){return e.endDate&&t.endDate?pt(e.endDate)>pt(t.endDate)?-1:pt(e.endDate)<pt(t.endDate)?1:0:0})),u(e),o(!1))}))},n(null)}else u(SH);else u(EH)}return l((function(){return f(),b.on("applicationDidBecomeVisible",f),function(){b.off("applicationDidBecomeVisible",f)}}),[]),"complete"!=t.status||(null==c?void 0:c.length)?e.createElement("div",{className:"mdhui-survey-task-list"},t.title&&e.createElement(Dt,{title:t.title,detailLinkText:t.onDetailLinkClick?br["view-all"]+" ("+(null!==(n=null==c?void 0:c.length)&&void 0!==n?n:0)+")":void 0,onDetailClick:t.onDetailLinkClick}),i&&!c&&e.createElement(I,null),!(null==c?void 0:c.length)&&!i&&e.createElement("div",{className:"empty-message"},br["all-tasks-complete"]),null==c?void 0:c.slice(0,t.limit).map((function(n){return e.createElement(Pr,{key:n.id.toString(),task:n,disableClick:i,hideDueDate:t.hideDueDate})}))):null}function OH(t){var n,r="",i=[];return t.excludeProviders||(i.push("Provider"),r+=br["connect-ehr-title-providers"]),t.excludeHealthPlans||(i.push("Health Plan"),r.length>0&&(r+=br["connect-ehr-title-divider"]),r+=br["connect-ehr-title-health-plans"]),r=br["connect-ehr-title-prefix"]+r,e.createElement(dr,{colorScheme:null!==(n=t.colorScheme)&&void 0!==n?n:"auto"},t.presentation&&e.createElement(xr,{title:r,showBackButton:"Push"==t.presentation,showCloseButton:"Modal"==t.presentation}),!t.presentation&&e.createElement(Mr,null),e.createElement(Nr,null,br["ehr-intro"]),e.createElement(Pt,null,e.createElement(Pq,{previewState:t.preview?"Default":void 0,applicationUrl:t.externalAccountsApplicationUrl,excludeProviders:t.excludeProviders,excludeHealthPlans:t.excludeHealthPlans,excludeDeviceManufacturers:!0})),e.createElement(Pt,null,e.createElement(kH,{previewState:t.preview?"Default":void 0,providerCategories:i})))}function AH(t){var n;return e.createElement(dr,{colorScheme:null!==(n=t.colorScheme)&&void 0!==n?n:"auto"},e.createElement(Mr,null),e.createElement(pH,{platforms:["Android"]},e.createElement(Pt,null,e.createElement(D,{title:"Google Fit",subtitle:br["google-fit-share"],onClick:function(){return b.showGoogleFitSettings()}}))),e.createElement(Pt,null,e.createElement(Hr,{previewState:t.preview?"notConnected":void 0})),e.createElement(Pt,null,e.createElement(Hq,{previewState:t.preview?"connected":void 0})),e.createElement(Pt,null,e.createElement(Vr,{previewState:t.preview?"notConnected":void 0})),e.createElement(Pt,null,e.createElement($q,{previewState:t.preview?"connected":void 0})),e.createElement(Pt,{allowOverflow:!0},e.createElement(Eq,{previewState:t.preview?"Default":void 0})))}function CH(t){var n,r="",i=[];return t.excludeProviders||(i.push("Provider"),r+=br["external-accounts-title-providers"]),t.excludeHealthPlans||(i.push("Health Plan"),r.length>0&&(r+=br["external-accounts-title-divider"]),r+=br["external-accounts-title-health-plans"]),t.excludeDeviceManufacturers||(i.push("Device Manufacturer"),r.length>0&&(r+=br["external-accounts-title-divider"]),r+=br["external-accounts-title-devices"]),e.createElement(dr,{colorScheme:null!==(n=t.colorScheme)&&void 0!==n?n:"auto"},t.presentation&&e.createElement(xr,{title:r,showBackButton:"Push"==t.presentation,showCloseButton:"Modal"==t.presentation}),!t.presentation&&e.createElement(Mr,null),e.createElement(_q,{previewState:t.preview?"Default":void 0,externalAccountProviderCategories:i,onExternalAccountsLoaded:function(e){0===e.length&&("Modal"===t.presentation?b.dismiss():b.back())}}))}function TH(t){var n;return e.createElement(dr,{colorScheme:null!==(n=t.colorScheme)&&void 0!==n?n:"auto"},e.createElement(Mr,null),e.createElement(Pt,null,e.createElement(Hr,{previewState:t.connectPreview,disabledBehavior:"displayError"})),e.createElement(Pt,null,e.createElement(Hq,{previewState:t.devicesPreview})),e.createElement(Pt,{allowOverflow:!0},e.createElement(Uq,{previewState:t.chartsPreview})))}function PH(t){return e.createElement(dr,null,e.createElement(Mr,{color:"var(--main-bg-color)"}),e.createElement(Pt,null,e.createElement(Vr,{previewState:t.connectPreview,garminProviderID:t.garminProviderID,disabledBehavior:"displayError"})),e.createElement(Pt,null,e.createElement($q,{previewState:t.devicesPreview})),e.createElement(Pt,{allowOverflow:!0},e.createElement(Gq,{previewState:t.chartsPreview})))}k(".mdhui-app-download {\n}\n\n.mdhui-app-download-title {\n padding: 16px 0 0 16px;\n font-weight: bold;\n}\n\n.mdhui-app-download-subtitle {\n margin-bottom: 16px;\n}\n\n.mdhui-app-download-links a:first-child {\n margin-right: 12px;\n}\n\n.mdhui-app-download-link img {\n height: 44px;\n}");var DH=require("lodash.debounce");var jH="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 135 40'%3e%3cpath d='M130 40H5c-2.8 0-5-2.2-5-5V5c0-2.8 2.2-5 5-5h125c2.8 0 5 2.2 5 5v30c0 2.8-2.2 5-5 5z'/%3e%3cpath d='M130 .8c2.3 0 4.2 1.9 4.2 4.2v30c0 2.3-1.9 4.2-4.2 4.2H5C2.7 39.2.8 37.3.8 35V5C.8 2.7 2.7.8 5 .8h125m0-.8H5C2.2 0 0 2.3 0 5v30c0 2.8 2.2 5 5 5h125c2.8 0 5-2.2 5-5V5c0-2.7-2.2-5-5-5z' fill='%23a6a6a6'/%3e%3cpath d='M47.4 10.2c0 .8-.2 1.5-.7 2-.6.6-1.3.9-2.2.9s-1.6-.3-2.2-.9c-.6-.6-.9-1.3-.9-2.2s.3-1.6.9-2.2c.6-.6 1.3-.9 2.2-.9.4 0 .8.1 1.2.3.4.2.7.4.9.7l-.5.5c-.4-.5-.9-.7-1.6-.7-.6 0-1.2.2-1.6.7-.5.4-.7 1-.7 1.7s.2 1.3.7 1.7 1 .7 1.6.7c.7 0 1.2-.2 1.7-.7.3-.3.5-.7.5-1.2h-2.2v-.8h2.9v.4zM52 7.7h-2.7v1.9h2.5v.7h-2.5v1.9H52v.8h-3.5V7H52v.7zm3.3 5.3h-.8V7.7h-1.7V7H57v.7h-1.7V13zm4.6 0V7h.8v6h-.8zm4.2 0h-.8V7.7h-1.7V7h4.1v.7H64l.1 5.3zm9.5-.8c-.6.6-1.3.9-2.2.9-.9 0-1.6-.3-2.2-.9-.6-.6-.9-1.3-.9-2.2s.3-1.6.9-2.2 1.3-.9 2.2-.9c.9 0 1.6.3 2.2.9s.9 1.3.9 2.2-.3 1.6-.9 2.2zm-3.8-.5c.4.4 1 .7 1.6.7s1.2-.2 1.6-.7c.4-.4.7-1 .7-1.7s-.2-1.3-.7-1.7c-.4-.4-1-.7-1.6-.7s-1.2.2-1.6.7c-.4.4-.7 1-.7 1.7s.2 1.3.7 1.7zm5.8 1.3V7h.9l2.9 4.7V7h.8v6h-.8l-3.1-4.9V13h-.7z' fill='white' stroke='white' stroke-width='.2' stroke-miterlimit='10'/%3e%3cpath d='M68.1 21.8c-2.4 0-4.3 1.8-4.3 4.3 0 2.4 1.9 4.3 4.3 4.3s4.3-1.8 4.3-4.3c0-2.6-1.9-4.3-4.3-4.3zm0 6.8c-1.3 0-2.4-1.1-2.4-2.6s1.1-2.6 2.4-2.6 2.4 1 2.4 2.6c0 1.5-1.1 2.6-2.4 2.6zm-9.3-6.8c-2.4 0-4.3 1.8-4.3 4.3 0 2.4 1.9 4.3 4.3 4.3s4.3-1.8 4.3-4.3c0-2.6-1.9-4.3-4.3-4.3zm0 6.8c-1.3 0-2.4-1.1-2.4-2.6s1.1-2.6 2.4-2.6c1.3 0 2.4 1 2.4 2.6 0 1.5-1.1 2.6-2.4 2.6zm-11.1-5.5v1.8H52c-.1 1-.5 1.8-1 2.3-.6.6-1.6 1.3-3.3 1.3-2.7 0-4.7-2.1-4.7-4.8s2.1-4.8 4.7-4.8c1.4 0 2.5.6 3.3 1.3l1.3-1.3c-1.1-1-2.5-1.8-4.5-1.8-3.6 0-6.7 3-6.7 6.6s3.1 6.6 6.7 6.6c2 0 3.4-.6 4.6-1.9 1.2-1.2 1.6-2.9 1.6-4.2 0-.4 0-.8-.1-1.1h-6.2zm45.4 1.4c-.4-1-1.4-2.7-3.6-2.7s-4 1.7-4 4.3c0 2.4 1.8 4.3 4.2 4.3 1.9 0 3.1-1.2 3.5-1.9l-1.4-1c-.5.7-1.1 1.2-2.1 1.2s-1.6-.4-2.1-1.3l5.7-2.4-.2-.5zm-5.8 1.4c0-1.6 1.3-2.5 2.2-2.5.7 0 1.4.4 1.6.9l-3.8 1.6zM82.6 30h1.9V17.5h-1.9V30zm-3-7.3c-.5-.5-1.3-1-2.3-1-2.1 0-4.1 1.9-4.1 4.3s1.9 4.2 4.1 4.2c1 0 1.8-.5 2.2-1h.1v.6c0 1.6-.9 2.5-2.3 2.5-1.1 0-1.9-.8-2.1-1.5l-1.6.7c.5 1.1 1.7 2.5 3.8 2.5 2.2 0 4-1.3 4-4.4V22h-1.8v.7zm-2.2 5.9c-1.3 0-2.4-1.1-2.4-2.6s1.1-2.6 2.4-2.6 2.3 1.1 2.3 2.6-1 2.6-2.3 2.6zm24.4-11.1h-4.5V30h1.9v-4.7h2.6c2.1 0 4.1-1.5 4.1-3.9s-2-3.9-4.1-3.9zm.1 6h-2.7v-4.3h2.7c1.4 0 2.2 1.2 2.2 2.1-.1 1.1-.9 2.2-2.2 2.2zm11.5-1.8c-1.4 0-2.8.6-3.3 1.9l1.7.7c.4-.7 1-.9 1.7-.9 1 0 1.9.6 2 1.6v.1c-.3-.2-1.1-.5-1.9-.5-1.8 0-3.6 1-3.6 2.8 0 1.7 1.5 2.8 3.1 2.8 1.3 0 1.9-.6 2.4-1.2h.1v1h1.8v-4.8c-.2-2.2-1.9-3.5-4-3.5zm-.2 6.9c-.6 0-1.5-.3-1.5-1.1 0-1 1.1-1.3 2-1.3.8 0 1.2.2 1.7.4-.2 1.2-1.2 2-2.2 2zm10.5-6.6l-2.1 5.4h-.1l-2.2-5.4h-2l3.3 7.6-1.9 4.2h1.9l5.1-11.8h-2zm-16.8 8h1.9V17.5h-1.9V30z' fill='white'/%3e%3clinearGradient id='a' gradientUnits='userSpaceOnUse' x1='21.795' y1='-152.295' x2='5.012' y2='-135.513' gradientTransform='translate(0 161)'%3e%3cstop offset='0' stop-color='%2300a0ff'/%3e%3cstop offset='.007' stop-color='%2300a1ff'/%3e%3cstop offset='.26' stop-color='%2300beff'/%3e%3cstop offset='.512' stop-color='%2300d2ff'/%3e%3cstop offset='.76' stop-color='%2300dfff'/%3e%3cstop offset='1' stop-color='%2300e3ff'/%3e%3c/linearGradient%3e%3cpath d='M10.4 7.5c-.3.3-.4.8-.4 1.4V31c0 .6.2 1.1.5 1.4l.1.1L23 20.1v-.2L10.4 7.5z' fill='url(%23a)'/%3e%3clinearGradient id='b' gradientUnits='userSpaceOnUse' x1='33.834' y1='-140.95' x2='9.637' y2='-140.95' gradientTransform='translate(0 161)'%3e%3cstop offset='0' stop-color='%23ffe000'/%3e%3cstop offset='.409' stop-color='%23ffbd00'/%3e%3cstop offset='.775' stop-color='orange'/%3e%3cstop offset='1' stop-color='%23ff9c00'/%3e%3c/linearGradient%3e%3cpath d='M27 24.3l-4.1-4.1v-.3l4.1-4.1.1.1 4.9 2.8c1.4.8 1.4 2.1 0 2.9l-5 2.7z' fill='url(%23b)'/%3e%3clinearGradient id='c' gradientUnits='userSpaceOnUse' x1='24.816' y1='-138.715' x2='2.058' y2='-115.957' gradientTransform='translate(0 161)'%3e%3cstop offset='0' stop-color='%23ff3a44'/%3e%3cstop offset='1' stop-color='%23c31162'/%3e%3c/linearGradient%3e%3cpath d='M27.1 24.2L22.9 20 10.4 32.5c.5.5 1.2.5 2.1.1l14.6-8.4' fill='url(%23c)'/%3e%3clinearGradient id='d' gradientUnits='userSpaceOnUse' x1='7.261' y1='-160.788' x2='17.424' y2='-150.625' gradientTransform='translate(0 161)'%3e%3cstop offset='0' stop-color='%2332a071'/%3e%3cstop offset='.069' stop-color='%232da771'/%3e%3cstop offset='.476' stop-color='%2315cf74'/%3e%3cstop offset='.801' stop-color='%2306e775'/%3e%3cstop offset='1' stop-color='%2300f076'/%3e%3c/linearGradient%3e%3cpath d='M27.1 15.8L12.5 7.5c-.9-.5-1.6-.4-2.1.1L22.9 20l4.2-4.2z' fill='url(%23d)'/%3e%3cpath d='M27 24.1l-14.5 8.2c-.8.5-1.5.4-2 0l-.1.1.1.1c.5.4 1.2.5 2 0L27 24.1z' opacity='.2'/%3e%3cpath d='M10.4 32.3c-.3-.3-.4-.8-.4-1.4v.1c0 .6.2 1.1.5 1.4v-.1h-.1zm21.6-11l-5 2.8.1.1 4.9-2.8c.7-.4 1-.9 1-1.4 0 .5-.4.9-1 1.3z' opacity='.12'/%3e%3cpath d='M12.5 7.6L32 18.7c.6.4 1 .8 1 1.3 0-.5-.3-1-1-1.4l-19.5-11c-1.4-.9-2.5-.3-2.5 1.3V9c0-1.5 1.1-2.2 2.5-1.4z' opacity='.25' fill='white'/%3e%3c/svg%3e",MH="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 119.7 40'%3e%3cpath d='M110.1 0H7.5c-.7 0-1.3.1-2 .2-.6.1-1.3.3-1.9.6C3 1.1 2.5 1.5 2 2S1.1 3 .8 3.6C.5 4.2.3 4.9.2 5.5c-.1.7-.2 1.4-.2 2v24.9c0 .7.1 1.3.2 2s.3 1.3.6 1.9c.3.7.7 1.2 1.2 1.7s1 .9 1.6 1.2c.6.3 1.2.5 1.9.6.7.1 1.3.2 2 .2h104.6c.7 0 1.3-.1 2-.2s1.3-.3 1.9-.6c.6-.3 1.1-.7 1.6-1.2s.9-1 1.2-1.6c.3-.6.5-1.2.6-1.9.1-.7.2-1.3.2-2v-25c0-.7-.1-1.3-.2-2s-.3-1.3-.6-1.9c-.6-1.2-1.6-2.2-2.8-2.8-.6-.3-1.2-.5-1.9-.6-.7-.1-1.3-.2-2-.2h-2z' fill='%23a6a6a6'/%3e%3cpath d='M8.4 39.1h-.9c-.6 0-1.3-.1-1.9-.2-.6-.1-1.1-.3-1.7-.5-.5-.3-1-.6-1.4-1-.4-.4-.8-.9-1-1.4-.3-.5-.4-1.1-.5-1.7-.1-.6-.2-1.2-.2-1.9V7.5c0-.6.1-1.3.2-1.9.1-.5.3-1.1.6-1.6s.6-1 1-1.4c.4-.4.9-.7 1.4-1 .5-.3 1.1-.4 1.7-.5C6.3 1 6.9.9 7.6.9h104.6c.6 0 1.2.1 1.9.2.6.1 1.1.3 1.7.5 1 .5 1.9 1.4 2.4 2.4.3.5.4 1.1.5 1.6.1.6.2 1.3.2 1.9v24.9c0 .6-.1 1.2-.2 1.9-.1.6-.3 1.1-.5 1.7-.3.5-.6 1-1 1.4-.4.4-.9.8-1.4 1-.5.3-1.1.5-1.7.5-.6.1-1.2.2-1.9.2H8.4z'/%3e%3cpath d='M24.8 20.3c0-1.7.9-3.3 2.4-4.2-.9-1.3-2.4-2.1-4-2.2-1.7-.2-3.3 1-4.2 1-.9 0-2.2-1-3.6-1-1.9.1-3.6 1.1-4.5 2.7-1.9 3.3-.5 8.3 1.4 11 .9 1.3 2 2.8 3.4 2.8 1.4-.1 1.9-.9 3.6-.9 1.7 0 2.1.9 3.6.9s2.4-1.3 3.3-2.7c.7-.9 1.2-2 1.5-3.1-1.8-.6-2.9-2.4-2.9-4.3zM22 12.2c.8-1 1.2-2.2 1.1-3.5-1.2.1-2.4.7-3.2 1.7-.8.9-1.2 2.1-1.1 3.4 1.3 0 2.4-.6 3.2-1.6zm20.3 14.9h-4.7l-1.1 3.4h-2L39 18.1h2l4.5 12.4h-2l-1.2-3.4zm-4.2-1.5h3.8L40 20.1h-.1l-1.8 5.5zm17.1.4c0 2.8-1.5 4.6-3.8 4.6-1.2.1-2.3-.6-2.8-1.6v4.5h-1.9v-12h1.8V23c.6-1 1.7-1.6 2.9-1.6 2.2-.1 3.8 1.8 3.8 4.6zm-2 0c0-1.8-.9-3-2.4-3-1.4 0-2.4 1.2-2.4 3s1 3 2.4 3c1.5 0 2.4-1.2 2.4-3zm11.9 0c0 2.8-1.5 4.6-3.8 4.6-1.2.1-2.3-.6-2.8-1.6v4.5h-1.9v-12h1.8V23c.6-1 1.7-1.6 2.9-1.6 2.3-.1 3.8 1.8 3.8 4.6zm-1.9 0c0-1.8-.9-3-2.4-3-1.4 0-2.4 1.2-2.4 3s1 3 2.4 3c1.5 0 2.4-1.2 2.4-3zm8.5 1c.1 1.2 1.3 2 3 2 1.6 0 2.7-.8 2.7-1.9 0-1-.7-1.5-2.3-1.9l-1.6-.4c-2.3-.5-3.3-1.6-3.3-3.3 0-2.1 1.9-3.6 4.5-3.6s4.4 1.5 4.5 3.6h-1.9c-.1-1.2-1.1-2-2.6-2s-2.5.8-2.5 1.9c0 .9.7 1.4 2.3 1.8l1.4.3c2.5.6 3.6 1.6 3.6 3.4 0 2.3-1.8 3.8-4.8 3.8-2.8 0-4.6-1.4-4.7-3.7h1.7zm11.6-7.7v2.1H85v1.5h-1.7v5c0 .8.3 1.1 1.1 1.1h.6v1.5c-.3.1-.7.1-1 .1-1.8 0-2.5-.7-2.5-2.4V23h-1.3v-1.5h1.3v-2.1h1.8zm2.8 6.7c0-2.8 1.7-4.6 4.3-4.6 2.6 0 4.3 1.8 4.3 4.6 0 2.9-1.7 4.6-4.3 4.6-2.7 0-4.3-1.8-4.3-4.6zm6.7 0c0-2-.9-3.1-2.4-3.1S88 24 88 26s.9 3.1 2.4 3.1 2.4-1.2 2.4-3.1zm3.4-4.6H98V23c.2-1 1.2-1.7 2.2-1.6.2 0 .4 0 .6.1v1.7c-.3-.1-.6-.1-.8-.1-1 0-1.9.8-1.9 1.8v5.7h-1.9v-9.2zm13.2 6.4c-.2 1.6-1.8 2.8-3.9 2.8-2.6 0-4.3-1.8-4.3-4.6s1.6-4.7 4.2-4.7c2.5 0 4.1 1.7 4.1 4.5v.6h-6.4v.1c-.1 1.3.8 2.4 2.1 2.6h.3c.9.1 1.8-.4 2.1-1.3h1.8zm-6.3-2.7h4.5c.1-1.2-.9-2.2-2.1-2.3h-.2c-1.2 0-2.2 1-2.2 2.3zM37.8 8.7c1.5-.1 2.7 1 2.8 2.4v.5c0 1.9-1 3-2.8 3h-2.2v-6l2.2.1zm-1.2 5.2h1.1c1 .1 1.9-.7 2-1.8v-.4c.1-1-.6-2-1.6-2.1h-1.5v4.3zm5.1-1.5c-.1-1.2.8-2.2 1.9-2.3 1.2-.1 2.2.8 2.3 1.9v.4c.1 1.2-.7 2.2-1.9 2.3-1.2.1-2.2-.7-2.3-1.9v-.4zm3.3 0c0-1-.4-1.5-1.2-1.5-.8 0-1.2.6-1.2 1.5 0 1 .4 1.6 1.2 1.6.8 0 1.2-.6 1.2-1.6zm6.6 2.3h-.9l-.9-3.3h-.1l-.9 3.3h-.9l-1.2-4.5h.9l.8 3.4h.1l.9-3.4h.9l.9 3.4h.1l.8-3.4h.9l-1.4 4.5zm2.3-4.5h.9v.7h.1c.2-.5.8-.8 1.3-.8.8-.1 1.5.5 1.6 1.4v3.2h-.9V12c0-.7-.3-1.1-1-1.1-.6 0-1.1.4-1.1 1v2.8h-.9v-4.5zm5.2-1.8h.9v6.3h-.9V8.4zm2.1 4c-.1-1.2.7-2.2 1.9-2.3 1.2-.1 2.2.7 2.3 1.9v.4c.1 1.2-.7 2.2-1.9 2.3-1.2.1-2.2-.7-2.3-1.9v-.4zm3.4 0c0-1-.4-1.5-1.2-1.5-.8 0-1.2.6-1.2 1.5 0 1 .4 1.6 1.2 1.6.7 0 1.2-.6 1.2-1.6zm1.8 1c0-.8.6-1.3 1.7-1.3l1.2-.1v-.4c0-.5-.3-.7-.9-.7-.5 0-.8.2-.9.5h-.9c.1-.8.8-1.3 1.8-1.3 1.1 0 1.8.6 1.8 1.5v3.1h-.9v-.6h-.1c-.3.5-.8.7-1.4.7-.7.1-1.4-.5-1.5-1.2.1-.1.1-.1.1-.2zm2.9-.4v-.4l-1.1.1c-.6 0-.9.3-.9.6 0 .4.4.6.8.6.6.2 1.1-.2 1.2-.9 0 .1 0 .1 0 0zm2-.6c0-1.4.7-2.3 1.9-2.3.6 0 1.1.3 1.4.8h.1V8.4h.9v6.3h-.9V14h-.1c-.3.5-.8.8-1.4.8-1.1 0-1.9-.9-1.9-2.4zm1 0c0 1 .4 1.5 1.2 1.5.8 0 1.2-.6 1.2-1.5s-.5-1.5-1.2-1.5c-.8 0-1.2.6-1.2 1.5zm6.9 0c-.1-1.2.7-2.2 1.9-2.3 1.2-.1 2.2.7 2.3 1.9v.4c.1 1.2-.7 2.2-1.9 2.3-1.2.1-2.2-.7-2.3-1.9v-.4zm3.4 0c0-1-.4-1.5-1.2-1.5-.8 0-1.2.6-1.2 1.5 0 1 .4 1.6 1.2 1.6.7 0 1.2-.6 1.2-1.6zm2.1-2.2h.9v.7h.1c.2-.5.8-.8 1.3-.8.8-.1 1.5.5 1.6 1.4v3.2h-.9V12c0-.7-.3-1.1-1-1.1-.6 0-1.1.4-1.1 1v2.8h-.9v-4.5zm8.8-1.1v1.1h1v.8h-1v2.3c0 .5.2.7.6.7h.3v.7h-.5c-1 0-1.4-.3-1.4-1.2V11h-.7v-.7h.7V9.1h1zm2.2-.7h.9v2.5h.1c.2-.5.8-.9 1.4-.8.8 0 1.5.6 1.6 1.4v3.2h-.9V12c0-.7-.3-1.1-1-1.1-.6 0-1.1.4-1.1 1v2.8h-.9V8.4zm9.1 5.1c-.2.8-1.1 1.4-1.9 1.3-1.1 0-2.1-.9-2.1-2v-.3c-.2-1.1.6-2.2 1.8-2.3h.3c1.3 0 2 .9 2 2.3v.3h-3.2v.1c-.1.7.4 1.2 1.1 1.3h.1c.4.1.9-.2 1.1-.5h.8zm-3.2-1.5h2.3c0-.6-.4-1.1-1-1.2h-.1c-.6.1-1.2.6-1.2 1.2z' fill='white'/%3e%3c/svg%3e";function NH(t){var n,r,i,o=s(),a=o[0],c=o[1];return n=function(){t.previewProjectPlatforms?c({name:"PROJECT",platforms:t.previewProjectPlatforms||[]}):b.getProjectInfo().then((function(e){c(e)}))},l((function(){var e=DH(n,500);return e(),b.on("applicationDidBecomeVisible",e),null==r||r.forEach((function(t){b.on(t,e)})),function(){b.off("applicationDidBecomeVisible",e),null==r||r.forEach((function(t){b.off(t,e)}))}}),null!=i?i:[]),a?e.createElement("div",{className:"mdhui-app-download"},e.createElement(pH,{platforms:["Web"],previewDevicePlatform:t.previewDevicePlatform},e.createElement(Pt,null,e.createElement("div",{className:"mdhui-app-download-title"},br["app-download-title"]),e.createElement(Nr,null,e.createElement("div",{className:"mdhui-app-download-subtitle"},br["app-download-subtitle"].replace("@@PROJECT_NAME@@",a.name)),e.createElement("div",{className:"mdhui-app-download-links"},a.platforms.includes("Android")&&e.createElement("a",{target:"_blank",className:"mdhui-app-download-link",href:"https://play.google.com/store/apps/details?id=com.careevolution.mydatahelps&hl=en_US&gl=US"},e.createElement("img",{src:jH,alt:br["app-download-google-play-link-alt"]})),a.platforms.includes("iOS")&&e.createElement("a",{target:"_blank",className:"mdhui-app-download-link",href:"https://apps.apple.com/us/app/mydatahelps/id1286789190"},e.createElement("img",{src:MH,alt:br["app-download-app-store-link-alt"]}))))))):null}function IH(t){var n,r="Push";t.notificationType&&(r=t.notificationType);return e.createElement(dr,{colorScheme:null!==(n=t.colorScheme)&&void 0!==n?n:"auto"},e.createElement(Mr,{color:"#FFFFFF"}),e.createElement(dH,{previewState:t.preview?"Default":void 0}),e.createElement(NH,{previewDevicePlatform:t.preview?"Web":void 0,previewProjectPlatforms:t.preview?["Web","Android","iOS"]:void 0}),e.createElement(Pt,null,e.createElement(sH,{notificationType:r,onViewMore:t.notificationsViewUrl?function(){t.notificationsViewUrl&&b.openApplication(t.notificationsViewUrl)}:void 0,previewState:t.preview?"Default":void 0,hideAfterHours:t.notificationHideAfterHours})),e.createElement(Pt,null,e.createElement(_H,{status:"incomplete",limit:3,title:br.tasks,onDetailLinkClick:t.tasksViewUrl?function(){t.tasksViewUrl&&b.openApplication(t.tasksViewUrl)}:void 0,hideDueDate:t.hideTaskDueDate,previewState:t.preview?"IncompleteTasks":void 0})),e.createElement(Pt,null,e.createElement(Hr,{title:"Fitbit",previewState:t.preview?"notConnected":void 0})),e.createElement(Pt,null,e.createElement(Vr,{title:"Garmin",previewState:t.preview?"notConnected":void 0})),e.createElement(Pt,null,t.ehrConnectApplicationUrl&&e.createElement(zr,{previewState:t.preview?"enabled":void 0,applicationUrl:t.ehrConnectApplicationUrl})),e.createElement(Pt,null,e.createElement(vH,{previewState:t.preview?"Default":void 0})))}function RH(t){var n,r;function i(){b.openApplication("https://hw.careevolutionapps.com/LabReports.html?lang="+b.getCurrentLanguage())}function o(e){var t=new URLSearchParams({termFamily:e.TermFamily,termNamespace:e.TermNamespace,termCode:e.TermCode,lang:b.getCurrentLanguage()}).toString();b.openApplication("https://hw.careevolutionapps.com/TermInformation.html?"+t,{modal:!0})}var a=null!==(n=t.variant)&&void 0!==n?n:"default";function c(n){var r=function(){return e.createElement(eH,{concept:n,onClick:function(){return function(e){b.openApplication("https://hw.careevolutionapps.com/"+e+".html")}(n)},previewState:"default"==t.previewState?"Default":void 0,indicatorPosition:"cardBased"==a?"topRight":"default"})};return"cardBased"==t.variant?e.createElement(Pt,null,r()):r()}return e.createElement(dr,{colorScheme:null!==(r=t.colorScheme)&&void 0!==r?r:"auto"},e.createElement(Mr,null),e.createElement(Cq,{previewState:"default"==t.previewState?"externalAccountsLoaded":void 0,externalAccountCategories:["Provider","Health Plan"]}),"default"==a&&e.createElement(wr,{noTopMargin:!0},e.createElement(aH,{onViewTermInfo:function(e){return o(e)},onClick:function(){return i()},previewState:"default"==t.previewState?"ImportantLabs":void 0}),c("Medications"),c("Immunizations"),c("Reports"),c("Allergies"),c("Conditions"),c("Procedures"),e.createElement(Pq,{excludeDeviceManufacturers:!0,applicationUrl:t.externalAccountsApplicationUrl,previewState:"default"==t.previewState?"Default":void 0})),"cardBased"==a&&e.createElement(e.Fragment,null,e.createElement(Pt,null,e.createElement(aH,{onViewTermInfo:function(e){return o(e)},onClick:function(){return i()},previewState:"default"==t.previewState?"ImportantLabs":void 0})),c("Medications"),c("Immunizations"),c("Reports"),c("Allergies"),c("Conditions"),c("Procedures"),e.createElement(Pt,null,e.createElement(Pq,{excludeDeviceManufacturers:!0,applicationUrl:t.externalAccountsApplicationUrl,previewState:"default"==t.previewState?"Default":void 0}))),e.createElement(Pt,null,e.createElement(zr,{bottomBorder:!0,applicationUrl:t.connectEhrApplicationUrl,previewState:"default"==t.previewState?"enabledConnected":void 0})))}function LH(t){var n,r="Push";return t.notificationType&&(r=t.notificationType),e.createElement(dr,{colorScheme:null!==(n=t.colorScheme)&&void 0!==n?n:"auto"},t.presentation&&e.createElement(xr,{title:br.notifications,showBackButton:"Push"==t.presentation,showCloseButton:"Modal"==t.presentation}),!t.presentation&&e.createElement(Mr,null),e.createElement(fH,{notificationType:r,previewState:t.preview?"Default":void 0}))}function FH(t){var n;return e.createElement(dr,{colorScheme:null!==(n=t.colorScheme)&&void 0!==n?n:"auto"},t.presentation&&e.createElement(xr,{title:br.tasks,showBackButton:"Push"==t.presentation,showCloseButton:"Modal"==t.presentation}),!t.presentation&&e.createElement(Mr,null),!t.hideIncompleteTasks&&e.createElement(Pt,null,e.createElement(_H,{title:br["incomplete-tasks"],status:"incomplete",hideDueDate:t.hideDueDate,previewState:t.preview?"IncompleteTasks":void 0})),!t.hideCompleteTasks&&e.createElement(Pt,null,e.createElement(_H,{title:br["completed-tasks"],status:"complete",hideDueDate:t.hideDueDate,previewState:t.preview?"CompleteTasks":void 0})))}var zH={},BH={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""},qH=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,HH={},VH={};function UH(e,t,n){var r,i,o,a,c,s="";for("string"!=typeof t&&(n=t,t=UH.defaultChars),void 0===n&&(n=!0),c=function(e){var t,n,r=VH[e];if(r)return r;for(r=VH[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?r.push(n):r.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t<e.length;t++)r[e.charCodeAt(t)]=e[t];return r}(t),r=0,i=e.length;r<i;r++)if(o=e.charCodeAt(r),n&&37===o&&r+2<i&&/^[0-9a-f]{2}$/i.test(e.slice(r+1,r+3)))s+=e.slice(r,r+3),r+=2;else if(o<128)s+=c[o];else if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&r+1<i&&(a=e.charCodeAt(r+1))>=56320&&a<=57343){s+=encodeURIComponent(e[r]+e[r+1]),r++;continue}s+="%EF%BF%BD"}else s+=encodeURIComponent(e[r]);return s}UH.defaultChars=";/?:@&=+$,-_.!~*'()#",UH.componentChars="-_.!~*'()";var WH=UH,$H={};function GH(e,t){var n;return"string"!=typeof t&&(t=GH.defaultChars),n=function(e){var t,n,r=$H[e];if(r)return r;for(r=$H[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),r.push(n);for(t=0;t<e.length;t++)r[n=e.charCodeAt(t)]="%"+("0"+n.toString(16).toUpperCase()).slice(-2);return r}(t),e.replace(/(%[a-f0-9]{2})+/gi,(function(e){var t,r,i,o,a,c,s,l="";for(t=0,r=e.length;t<r;t+=3)(i=parseInt(e.slice(t+1,t+3),16))<128?l+=n[i]:192==(224&i)&&t+3<r&&128==(192&(o=parseInt(e.slice(t+4,t+6),16)))?(l+=(s=i<<6&1984|63&o)<128?"��":String.fromCharCode(s),t+=3):224==(240&i)&&t+6<r&&(o=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),128==(192&o)&&128==(192&a))?(l+=(s=i<<12&61440|o<<6&4032|63&a)<2048||s>=55296&&s<=57343?"���":String.fromCharCode(s),t+=6):240==(248&i)&&t+9<r&&(o=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),c=parseInt(e.slice(t+10,t+12),16),128==(192&o)&&128==(192&a)&&128==(192&c))?((s=i<<18&1835008|o<<12&258048|a<<6&4032|63&c)<65536||s>1114111?l+="����":(s-=65536,l+=String.fromCharCode(55296+(s>>10),56320+(1023&s))),t+=9):l+="�";return l}))}GH.defaultChars=";/?:@&=+$,#",GH.componentChars="";var YH=GH;function XH(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var ZH=/^([a-z0-9.+-]+:)/i,KH=/:[0-9]*$/,JH=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,QH=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),eV=["'"].concat(QH),tV=["%","/","?",";","#"].concat(eV),nV=["/","?","#"],rV=/^[+a-z0-9A-Z_-]{0,63}$/,iV=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,oV={javascript:!0,"javascript:":!0},aV={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};XH.prototype.parse=function(e,t){var n,r,i,o,a,c=e;if(c=c.trim(),!t&&1===e.split("#").length){var s=JH.exec(c);if(s)return this.pathname=s[1],s[2]&&(this.search=s[2]),this}var l=ZH.exec(c);if(l&&(i=(l=l[0]).toLowerCase(),this.protocol=l,c=c.substr(l.length)),(t||l||c.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(a="//"===c.substr(0,2))||l&&oV[l]||(c=c.substr(2),this.slashes=!0)),!oV[l]&&(a||l&&!aV[l])){var u,f,p=-1;for(n=0;n<nV.length;n++)-1!==(o=c.indexOf(nV[n]))&&(-1===p||o<p)&&(p=o);for(-1!==(f=-1===p?c.lastIndexOf("@"):c.lastIndexOf("@",p))&&(u=c.slice(0,f),c=c.slice(f+1),this.auth=u),p=-1,n=0;n<tV.length;n++)-1!==(o=c.indexOf(tV[n]))&&(-1===p||o<p)&&(p=o);-1===p&&(p=c.length),":"===c[p-1]&&p--;var d=c.slice(0,p);c=c.slice(p),this.parseHost(d),this.hostname=this.hostname||"";var h="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!h){var m=this.hostname.split(/\./);for(n=0,r=m.length;n<r;n++){var y=m[n];if(y&&!y.match(rV)){for(var v="",g=0,b=y.length;g<b;g++)y.charCodeAt(g)>127?v+="x":v+=y[g];if(!v.match(rV)){var x=m.slice(0,n),w=m.slice(n+1),k=y.match(iV);k&&(x.push(k[1]),w.unshift(k[2])),w.length&&(c=w.join(".")+c),this.hostname=x.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),h&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var E=c.indexOf("#");-1!==E&&(this.hash=c.substr(E),c=c.slice(0,E));var S=c.indexOf("?");return-1!==S&&(this.search=c.substr(S),c=c.slice(0,S)),c&&(this.pathname=c),aV[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this},XH.prototype.parseHost=function(e){var t=KH.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var cV=function(e,t){if(e&&e instanceof XH)return e;var n=new XH;return n.parse(e,t),n};HH.encode=WH,HH.decode=YH,HH.format=function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||""},HH.parse=cV;var sV,lV,uV,fV,pV,dV,hV,mV,yV,vV={};function gV(){return lV?sV:(lV=1,sV=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/)}function bV(){return fV?uV:(fV=1,uV=/[\0-\x1F\x7F-\x9F]/)}function xV(){return mV?hV:(mV=1,hV=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/)}function wV(){return yV||(yV=1,vV.Any=gV(),vV.Cc=bV(),vV.Cf=dV?pV:(dV=1,pV=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),vV.P=qH,vV.Z=xV()),vV}!function(e){var t=Object.prototype.hasOwnProperty;function n(e,n){return t.call(e,n)}function r(e){return!(e>=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(65535!=(65535&e)&&65534!=(65535&e)&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function i(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var o=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,a=new RegExp(o.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),c=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,s=BH;var l=/[&<>"]/,u=/[&<>"]/g,f={"&":"&","<":"<",">":">",'"':"""};function p(e){return f[e]}var d=/[.?*+^$[\]\\(){}|-]/g;var h=qH;e.lib={},e.lib.mdurl=HH,e.lib.ucmicro=wV(),e.assign=function(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach((function(n){e[n]=t[n]}))}})),e},e.isString=function(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)},e.has=n,e.unescapeMd=function(e){return e.indexOf("\\")<0?e:e.replace(o,"$1")},e.unescapeAll=function(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(a,(function(e,t,o){return t||function(e,t){var o=0;return n(s,t)?s[t]:35===t.charCodeAt(0)&&c.test(t)&&r(o="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?i(o):e}(e,o)}))},e.isValidEntityCode=r,e.fromCodePoint=i,e.escapeHtml=function(e){return l.test(e)?e.replace(u,p):e},e.arrayReplaceAt=function(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))},e.isSpace=function(e){switch(e){case 9:case 32:return!0}return!1},e.isWhiteSpace=function(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},e.isMdAsciiPunct=function(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},e.isPunctChar=function(e){return h.test(e)},e.escapeRE=function(e){return e.replace(d,"\\$&")},e.normalizeReference=function(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}}(zH);var kV={},EV=zH.unescapeAll,SV=zH.unescapeAll;kV.parseLinkLabel=function(e,t,n){var r,i,o,a,c=-1,s=e.posMax,l=e.pos;for(e.pos=t+1,r=1;e.pos<s;){if(93===(o=e.src.charCodeAt(e.pos))&&0===--r){i=!0;break}if(a=e.pos,e.md.inline.skipToken(e),91===o)if(a===e.pos-1)r++;else if(n)return e.pos=l,-1}return i&&(c=e.pos),e.pos=l,c},kV.parseLinkDestination=function(e,t,n){var r,i,o=t,a={ok:!1,pos:0,lines:0,str:""};if(60===e.charCodeAt(t)){for(t++;t<n;){if(10===(r=e.charCodeAt(t)))return a;if(60===r)return a;if(62===r)return a.pos=t+1,a.str=EV(e.slice(o+1,t)),a.ok=!0,a;92===r&&t+1<n?t+=2:t++}return a}for(i=0;t<n&&32!==(r=e.charCodeAt(t))&&!(r<32||127===r);)if(92===r&&t+1<n){if(32===e.charCodeAt(t+1))break;t+=2}else{if(40===r&&++i>32)return a;if(41===r){if(0===i)break;i--}t++}return o===t||0!==i||(a.str=EV(e.slice(o,t)),a.lines=0,a.pos=t,a.ok=!0),a},kV.parseLinkTitle=function(e,t,n){var r,i,o=0,a=t,c={ok:!1,pos:0,lines:0,str:""};if(t>=n)return c;if(34!==(i=e.charCodeAt(t))&&39!==i&&40!==i)return c;for(t++,40===i&&(i=41);t<n;){if((r=e.charCodeAt(t))===i)return c.pos=t+1,c.lines=o,c.str=SV(e.slice(a+1,t)),c.ok=!0,c;if(40===r&&41===i)return c;10===r?o++:92===r&&t+1<n&&(t++,10===e.charCodeAt(t)&&o++),t++}return c};var _V=zH.assign,OV=zH.unescapeAll,AV=zH.escapeHtml,CV={};function TV(){this.rules=_V({},CV)}CV.code_inline=function(e,t,n,r,i){var o=e[t];return"<code"+i.renderAttrs(o)+">"+AV(e[t].content)+"</code>"},CV.code_block=function(e,t,n,r,i){var o=e[t];return"<pre"+i.renderAttrs(o)+"><code>"+AV(e[t].content)+"</code></pre>\n"},CV.fence=function(e,t,n,r,i){var o,a,c,s,l,u=e[t],f=u.info?OV(u.info).trim():"",p="",d="";return f&&(p=(c=f.split(/(\s+)/g))[0],d=c.slice(2).join("")),0===(o=n.highlight&&n.highlight(u.content,p,d)||AV(u.content)).indexOf("<pre")?o+"\n":f?(a=u.attrIndex("class"),s=u.attrs?u.attrs.slice():[],a<0?s.push(["class",n.langPrefix+p]):(s[a]=s[a].slice(),s[a][1]+=" "+n.langPrefix+p),l={attrs:s},"<pre><code"+i.renderAttrs(l)+">"+o+"</code></pre>\n"):"<pre><code"+i.renderAttrs(u)+">"+o+"</code></pre>\n"},CV.image=function(e,t,n,r,i){var o=e[t];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,n,r),i.renderToken(e,t,n)},CV.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},CV.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},CV.text=function(e,t){return AV(e[t].content)},CV.html_block=function(e,t){return e[t].content},CV.html_inline=function(e,t){return e[t].content},TV.prototype.renderAttrs=function(e){var t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t<n;t++)r+=" "+AV(e.attrs[t][0])+'="'+AV(e.attrs[t][1])+'"';return r},TV.prototype.renderToken=function(e,t,n){var r,i="",o=!1,a=e[t];return a.hidden?"":(a.block&&-1!==a.nesting&&t&&e[t-1].hidden&&(i+="\n"),i+=(-1===a.nesting?"</":"<")+a.tag,i+=this.renderAttrs(a),0===a.nesting&&n.xhtmlOut&&(i+=" /"),a.block&&(o=!0,1===a.nesting&&t+1<e.length&&("inline"===(r=e[t+1]).type||r.hidden||-1===r.nesting&&r.tag===a.tag)&&(o=!1)),i+=o?">\n":">")},TV.prototype.renderInline=function(e,t,n){for(var r,i="",o=this.rules,a=0,c=e.length;a<c;a++)void 0!==o[r=e[a].type]?i+=o[r](e,a,t,n,this):i+=this.renderToken(e,a,t);return i},TV.prototype.renderInlineAsText=function(e,t,n){for(var r="",i=0,o=e.length;i<o;i++)"text"===e[i].type?r+=e[i].content:"image"===e[i].type?r+=this.renderInlineAsText(e[i].children,t,n):"softbreak"===e[i].type&&(r+="\n");return r},TV.prototype.render=function(e,t,n){var r,i,o,a="",c=this.rules;for(r=0,i=e.length;r<i;r++)"inline"===(o=e[r].type)?a+=this.renderInline(e[r].children,t,n):void 0!==c[o]?a+=c[e[r].type](e,r,t,n,this):a+=this.renderToken(e,r,t,n);return a};var PV=TV;function DV(){this.__rules__=[],this.__cache__=null}DV.prototype.__find__=function(e){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},DV.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach((function(e){e.enabled&&e.alt.forEach((function(e){t.indexOf(e)<0&&t.push(e)}))})),e.__cache__={},t.forEach((function(t){e.__cache__[t]=[],e.__rules__.forEach((function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))}))}))},DV.prototype.at=function(e,t,n){var r=this.__find__(e),i=n||{};if(-1===r)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=i.alt||[],this.__cache__=null},DV.prototype.before=function(e,t,n,r){var i=this.__find__(e),o=r||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},DV.prototype.after=function(e,t,n,r){var i=this.__find__(e),o=r||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},DV.prototype.push=function(e,t,n){var r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},DV.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach((function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!0,n.push(e)}),this),this.__cache__=null,n},DV.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach((function(e){e.enabled=!1})),this.enable(e,t)},DV.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach((function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!1,n.push(e)}),this),this.__cache__=null,n},DV.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]};var jV=DV,MV=/\r\n?|\n/g,NV=/\0/g,IV=zH.arrayReplaceAt;function RV(e){return/^<\/a\s*>/i.test(e)}var LV=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,FV=/\((c|tm|r)\)/i,zV=/\((c|tm|r)\)/gi,BV={c:"©",r:"®",tm:"™"};function qV(e,t){return BV[t.toLowerCase()]}function HV(e){var t,n,r=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||r||(n.content=n.content.replace(zV,qV)),"link_open"===n.type&&"auto"===n.info&&r--,"link_close"===n.type&&"auto"===n.info&&r++}function VV(e){var t,n,r=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||r||LV.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===n.type&&"auto"===n.info&&r--,"link_close"===n.type&&"auto"===n.info&&r++}var UV=zH.isWhiteSpace,WV=zH.isPunctChar,$V=zH.isMdAsciiPunct,GV=/['"]/,YV=/['"]/g;function XV(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function ZV(e,t){var n,r,i,o,a,c,s,l,u,f,p,d,h,m,y,v,g,b,x,w,k;for(x=[],n=0;n<e.length;n++){for(r=e[n],s=e[n].level,g=x.length-1;g>=0&&!(x[g].level<=s);g--);if(x.length=g+1,"text"===r.type){a=0,c=(i=r.content).length;e:for(;a<c&&(YV.lastIndex=a,o=YV.exec(i));){if(y=v=!0,a=o.index+1,b="'"===o[0],u=32,o.index-1>=0)u=i.charCodeAt(o.index-1);else for(g=n-1;g>=0&&("softbreak"!==e[g].type&&"hardbreak"!==e[g].type);g--)if(e[g].content){u=e[g].content.charCodeAt(e[g].content.length-1);break}if(f=32,a<c)f=i.charCodeAt(a);else for(g=n+1;g<e.length&&("softbreak"!==e[g].type&&"hardbreak"!==e[g].type);g++)if(e[g].content){f=e[g].content.charCodeAt(0);break}if(p=$V(u)||WV(String.fromCharCode(u)),d=$V(f)||WV(String.fromCharCode(f)),h=UV(u),(m=UV(f))?y=!1:d&&(h||p||(y=!1)),h?v=!1:p&&(m||d||(v=!1)),34===f&&'"'===o[0]&&u>=48&&u<=57&&(v=y=!1),y&&v&&(y=p,v=d),y||v){if(v)for(g=x.length-1;g>=0&&(l=x[g],!(x[g].level<s));g--)if(l.single===b&&x[g].level===s){l=x[g],b?(w=t.md.options.quotes[2],k=t.md.options.quotes[3]):(w=t.md.options.quotes[0],k=t.md.options.quotes[1]),r.content=XV(r.content,o.index,k),e[l.token].content=XV(e[l.token].content,l.pos,w),a+=k.length-1,l.token===n&&(a+=w.length-1),c=(i=r.content).length,x.length=g;continue e}y?x.push({token:n,pos:o.index,single:b,level:s}):v&&b&&(r.content=XV(r.content,o.index,"’"))}else b&&(r.content=XV(r.content,o.index,"’"))}}}}function KV(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}KV.prototype.attrIndex=function(e){var t,n,r;if(!this.attrs)return-1;for(n=0,r=(t=this.attrs).length;n<r;n++)if(t[n][0]===e)return n;return-1},KV.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},KV.prototype.attrSet=function(e,t){var n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},KV.prototype.attrGet=function(e){var t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n},KV.prototype.attrJoin=function(e,t){var n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t};var JV=KV,QV=JV;function eU(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}eU.prototype.Token=QV;var tU=eU,nU=jV,rU=[["normalize",function(e){var t;t=(t=e.src.replace(MV,"\n")).replace(NV,"�"),e.src=t}],["block",function(e){var t;e.inlineMode?((t=new e.Token("inline","",0)).content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}],["inline",function(e){var t,n,r,i=e.tokens;for(n=0,r=i.length;n<r;n++)"inline"===(t=i[n]).type&&e.md.inline.parse(t.content,e.md,e.env,t.children)}],["linkify",function(e){var t,n,r,i,o,a,c,s,l,u,f,p,d,h,m,y,v,g,b=e.tokens;if(e.md.options.linkify)for(n=0,r=b.length;n<r;n++)if("inline"===b[n].type&&e.md.linkify.pretest(b[n].content))for(d=0,t=(i=b[n].children).length-1;t>=0;t--)if("link_close"!==(a=i[t]).type){if("html_inline"===a.type&&(g=a.content,/^<a[>\s]/i.test(g)&&d>0&&d--,RV(a.content)&&d++),!(d>0)&&"text"===a.type&&e.md.linkify.test(a.content)){for(l=a.content,v=e.md.linkify.match(l),c=[],p=a.level,f=0,v.length>0&&0===v[0].index&&t>0&&"text_special"===i[t-1].type&&(v=v.slice(1)),s=0;s<v.length;s++)h=v[s].url,m=e.md.normalizeLink(h),e.md.validateLink(m)&&(y=v[s].text,y=v[s].schema?"mailto:"!==v[s].schema||/^mailto:/i.test(y)?e.md.normalizeLinkText(y):e.md.normalizeLinkText("mailto:"+y).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+y).replace(/^http:\/\//,""),(u=v[s].index)>f&&((o=new e.Token("text","",0)).content=l.slice(f,u),o.level=p,c.push(o)),(o=new e.Token("link_open","a",1)).attrs=[["href",m]],o.level=p++,o.markup="linkify",o.info="auto",c.push(o),(o=new e.Token("text","",0)).content=y,o.level=p,c.push(o),(o=new e.Token("link_close","a",-1)).level=--p,o.markup="linkify",o.info="auto",c.push(o),f=v[s].lastIndex);f<l.length&&((o=new e.Token("text","",0)).content=l.slice(f),o.level=p,c.push(o)),b[n].children=i=IV(i,t,c)}}else for(t--;i[t].level!==a.level&&"link_open"!==i[t].type;)t--}],["replacements",function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(FV.test(e.tokens[t].content)&&HV(e.tokens[t].children),LV.test(e.tokens[t].content)&&VV(e.tokens[t].children))}],["smartquotes",function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&GV.test(e.tokens[t].content)&&ZV(e.tokens[t].children,e)}],["text_join",function(e){var t,n,r,i,o,a,c=e.tokens;for(t=0,n=c.length;t<n;t++)if("inline"===c[t].type){for(o=(r=c[t].children).length,i=0;i<o;i++)"text_special"===r[i].type&&(r[i].type="text");for(i=a=0;i<o;i++)"text"===r[i].type&&i+1<o&&"text"===r[i+1].type?r[i+1].content=r[i].content+r[i+1].content:(i!==a&&(r[a]=r[i]),a++);i!==a&&(r.length=a)}}]];function iU(){this.ruler=new nU;for(var e=0;e<rU.length;e++)this.ruler.push(rU[e][0],rU[e][1])}iU.prototype.process=function(e){var t,n,r;for(t=0,n=(r=this.ruler.getRules("")).length;t<n;t++)r[t](e)},iU.prototype.State=tU;var oU=iU,aU=zH.isSpace;function cU(e,t){var n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function sU(e){var t,n=[],r=0,i=e.length,o=!1,a=0,c="";for(t=e.charCodeAt(r);r<i;)124===t&&(o?(c+=e.substring(a,r-1),a=r):(n.push(c+e.substring(a,r)),c="",a=r+1)),o=92===t,r++,t=e.charCodeAt(r);return n.push(c+e.substring(a)),n}var lU=zH.isSpace,uU=zH.isSpace,fU=zH.isSpace;function pU(e,t){var n,r,i,o;return r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t],42!==(n=e.src.charCodeAt(r++))&&45!==n&&43!==n||r<i&&(o=e.src.charCodeAt(r),!fU(o))?-1:r}function dU(e,t){var n,r=e.bMarks[t]+e.tShift[t],i=r,o=e.eMarks[t];if(i+1>=o)return-1;if((n=e.src.charCodeAt(i++))<48||n>57)return-1;for(;;){if(i>=o)return-1;if(!((n=e.src.charCodeAt(i++))>=48&&n<=57)){if(41===n||46===n)break;return-1}if(i-r>=10)return-1}return i<o&&(n=e.src.charCodeAt(i),!fU(n))?-1:i}var hU=zH.normalizeReference,mU=zH.isSpace,yU={},vU="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",gU="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",bU=new RegExp("^(?:"+vU+"|"+gU+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),xU=new RegExp("^(?:"+vU+"|"+gU+")");yU.HTML_TAG_RE=bU,yU.HTML_OPEN_CLOSE_TAG_RE=xU;var wU=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],kU=yU.HTML_OPEN_CLOSE_TAG_RE,EU=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+wU.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(kU.source+"\\s*$"),/^$/,!1]],SU=zH.isSpace,_U=JV,OU=zH.isSpace;function AU(e,t,n,r){var i,o,a,c,s,l,u,f;for(this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",f=!1,a=c=l=u=0,s=(o=this.src).length;c<s;c++){if(i=o.charCodeAt(c),!f){if(OU(i)){l++,9===i?u+=4-u%4:u++;continue}f=!0}10!==i&&c!==s-1||(10!==i&&c++,this.bMarks.push(a),this.eMarks.push(c),this.tShift.push(l),this.sCount.push(u),this.bsCount.push(0),f=!1,l=0,u=0,a=c+1)}this.bMarks.push(o.length),this.eMarks.push(o.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}AU.prototype.push=function(e,t,n){var r=new _U(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},AU.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},AU.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},AU.prototype.skipSpaces=function(e){for(var t,n=this.src.length;e<n&&(t=this.src.charCodeAt(e),OU(t));e++);return e},AU.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!OU(this.src.charCodeAt(--e)))return e+1;return e},AU.prototype.skipChars=function(e,t){for(var n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},AU.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},AU.prototype.getLines=function(e,t,n,r){var i,o,a,c,s,l,u,f=e;if(e>=t)return"";for(l=new Array(t-e),i=0;f<t;f++,i++){for(o=0,u=c=this.bMarks[f],s=f+1<t||r?this.eMarks[f]+1:this.eMarks[f];c<s&&o<n;){if(a=this.src.charCodeAt(c),OU(a))9===a?o+=4-(o+this.bsCount[f])%4:o++;else{if(!(c-u<this.tShift[f]))break;o++}c++}l[i]=o>n?new Array(o-n+1).join(" ")+this.src.slice(c,s):this.src.slice(c,s)}return l.join("")},AU.prototype.Token=_U;var CU=AU,TU=jV,PU=[["table",function(e,t,n,r){var i,o,a,c,s,l,u,f,p,d,h,m,y,v,g,b,x,w;if(t+2>n)return!1;if(l=t+1,e.sCount[l]<e.blkIndent)return!1;if(e.sCount[l]-e.blkIndent>=4)return!1;if((a=e.bMarks[l]+e.tShift[l])>=e.eMarks[l])return!1;if(124!==(x=e.src.charCodeAt(a++))&&45!==x&&58!==x)return!1;if(a>=e.eMarks[l])return!1;if(124!==(w=e.src.charCodeAt(a++))&&45!==w&&58!==w&&!aU(w))return!1;if(45===x&&aU(w))return!1;for(;a<e.eMarks[l];){if(124!==(i=e.src.charCodeAt(a))&&45!==i&&58!==i&&!aU(i))return!1;a++}for(u=(o=cU(e,t+1)).split("|"),d=[],c=0;c<u.length;c++){if(!(h=u[c].trim())){if(0===c||c===u.length-1)continue;return!1}if(!/^:?-+:?$/.test(h))return!1;58===h.charCodeAt(h.length-1)?d.push(58===h.charCodeAt(0)?"center":"right"):58===h.charCodeAt(0)?d.push("left"):d.push("")}if(-1===(o=cU(e,t).trim()).indexOf("|"))return!1;if(e.sCount[t]-e.blkIndent>=4)return!1;if((u=sU(o)).length&&""===u[0]&&u.shift(),u.length&&""===u[u.length-1]&&u.pop(),0===(f=u.length)||f!==d.length)return!1;if(r)return!0;for(v=e.parentType,e.parentType="table",b=e.md.block.ruler.getRules("blockquote"),(p=e.push("table_open","table",1)).map=m=[t,0],(p=e.push("thead_open","thead",1)).map=[t,t+1],(p=e.push("tr_open","tr",1)).map=[t,t+1],c=0;c<u.length;c++)p=e.push("th_open","th",1),d[c]&&(p.attrs=[["style","text-align:"+d[c]]]),(p=e.push("inline","",0)).content=u[c].trim(),p.children=[],p=e.push("th_close","th",-1);for(p=e.push("tr_close","tr",-1),p=e.push("thead_close","thead",-1),l=t+2;l<n&&!(e.sCount[l]<e.blkIndent);l++){for(g=!1,c=0,s=b.length;c<s;c++)if(b[c](e,l,n,!0)){g=!0;break}if(g)break;if(!(o=cU(e,l).trim()))break;if(e.sCount[l]-e.blkIndent>=4)break;for((u=sU(o)).length&&""===u[0]&&u.shift(),u.length&&""===u[u.length-1]&&u.pop(),l===t+2&&((p=e.push("tbody_open","tbody",1)).map=y=[t+2,0]),(p=e.push("tr_open","tr",1)).map=[l,l+1],c=0;c<f;c++)p=e.push("td_open","td",1),d[c]&&(p.attrs=[["style","text-align:"+d[c]]]),(p=e.push("inline","",0)).content=u[c]?u[c].trim():"",p.children=[],p=e.push("td_close","td",-1);p=e.push("tr_close","tr",-1)}return y&&(p=e.push("tbody_close","tbody",-1),y[1]=l),p=e.push("table_close","table",-1),m[1]=l,e.parentType=v,e.line=l,!0},["paragraph","reference"]],["code",function(e,t,n){var r,i,o;if(e.sCount[t]-e.blkIndent<4)return!1;for(i=r=t+1;r<n;)if(e.isEmpty(r))r++;else{if(!(e.sCount[r]-e.blkIndent>=4))break;i=++r}return e.line=i,(o=e.push("code_block","code",0)).content=e.getLines(t,i,4+e.blkIndent,!1)+"\n",o.map=[t,e.line],!0}],["fence",function(e,t,n,r){var i,o,a,c,s,l,u,f=!1,p=e.bMarks[t]+e.tShift[t],d=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(p+3>d)return!1;if(126!==(i=e.src.charCodeAt(p))&&96!==i)return!1;if(s=p,(o=(p=e.skipChars(p,i))-s)<3)return!1;if(u=e.src.slice(s,p),a=e.src.slice(p,d),96===i&&a.indexOf(String.fromCharCode(i))>=0)return!1;if(r)return!0;for(c=t;!(++c>=n)&&!((p=s=e.bMarks[c]+e.tShift[c])<(d=e.eMarks[c])&&e.sCount[c]<e.blkIndent);)if(e.src.charCodeAt(p)===i&&!(e.sCount[c]-e.blkIndent>=4||(p=e.skipChars(p,i))-s<o||(p=e.skipSpaces(p))<d)){f=!0;break}return o=e.sCount[t],e.line=c+(f?1:0),(l=e.push("fence","code",0)).info=a,l.content=e.getLines(t+1,c,o,!0),l.markup=u,l.map=[t,e.line],!0},["paragraph","reference","blockquote","list"]],["blockquote",function(e,t,n,r){var i,o,a,c,s,l,u,f,p,d,h,m,y,v,g,b,x,w,k,E,S=e.lineMax,_=e.bMarks[t]+e.tShift[t],O=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(_++))return!1;if(r)return!0;for(c=p=e.sCount[t]+1,32===e.src.charCodeAt(_)?(_++,c++,p++,i=!1,b=!0):9===e.src.charCodeAt(_)?(b=!0,(e.bsCount[t]+p)%4==3?(_++,c++,p++,i=!1):i=!0):b=!1,d=[e.bMarks[t]],e.bMarks[t]=_;_<O&&(o=e.src.charCodeAt(_),lU(o));)9===o?p+=4-(p+e.bsCount[t]+(i?1:0))%4:p++,_++;for(h=[e.bsCount[t]],e.bsCount[t]=e.sCount[t]+1+(b?1:0),l=_>=O,v=[e.sCount[t]],e.sCount[t]=p-c,g=[e.tShift[t]],e.tShift[t]=_-e.bMarks[t],w=e.md.block.ruler.getRules("blockquote"),y=e.parentType,e.parentType="blockquote",f=t+1;f<n&&(E=e.sCount[f]<e.blkIndent,!((_=e.bMarks[f]+e.tShift[f])>=(O=e.eMarks[f])));f++)if(62!==e.src.charCodeAt(_++)||E){if(l)break;for(x=!1,a=0,s=w.length;a<s;a++)if(w[a](e,f,n,!0)){x=!0;break}if(x){e.lineMax=f,0!==e.blkIndent&&(d.push(e.bMarks[f]),h.push(e.bsCount[f]),g.push(e.tShift[f]),v.push(e.sCount[f]),e.sCount[f]-=e.blkIndent);break}d.push(e.bMarks[f]),h.push(e.bsCount[f]),g.push(e.tShift[f]),v.push(e.sCount[f]),e.sCount[f]=-1}else{for(c=p=e.sCount[f]+1,32===e.src.charCodeAt(_)?(_++,c++,p++,i=!1,b=!0):9===e.src.charCodeAt(_)?(b=!0,(e.bsCount[f]+p)%4==3?(_++,c++,p++,i=!1):i=!0):b=!1,d.push(e.bMarks[f]),e.bMarks[f]=_;_<O&&(o=e.src.charCodeAt(_),lU(o));)9===o?p+=4-(p+e.bsCount[f]+(i?1:0))%4:p++,_++;l=_>=O,h.push(e.bsCount[f]),e.bsCount[f]=e.sCount[f]+1+(b?1:0),v.push(e.sCount[f]),e.sCount[f]=p-c,g.push(e.tShift[f]),e.tShift[f]=_-e.bMarks[f]}for(m=e.blkIndent,e.blkIndent=0,(k=e.push("blockquote_open","blockquote",1)).markup=">",k.map=u=[t,0],e.md.block.tokenize(e,t,f),(k=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=S,e.parentType=y,u[1]=e.line,a=0;a<g.length;a++)e.bMarks[a+t]=d[a],e.tShift[a+t]=g[a],e.sCount[a+t]=v[a],e.bsCount[a+t]=h[a];return e.blkIndent=m,!0},["paragraph","reference","blockquote","list"]],["hr",function(e,t,n,r){var i,o,a,c,s=e.bMarks[t]+e.tShift[t],l=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(42!==(i=e.src.charCodeAt(s++))&&45!==i&&95!==i)return!1;for(o=1;s<l;){if((a=e.src.charCodeAt(s++))!==i&&!uU(a))return!1;a===i&&o++}return!(o<3)&&(r||(e.line=t+1,(c=e.push("hr","hr",0)).map=[t,e.line],c.markup=Array(o+1).join(String.fromCharCode(i))),!0)},["paragraph","reference","blockquote","list"]],["list",function(e,t,n,r){var i,o,a,c,s,l,u,f,p,d,h,m,y,v,g,b,x,w,k,E,S,_,O,A,C,T,P,D,j=!1,M=!0;if(e.sCount[t]-e.blkIndent>=4)return!1;if(e.listIndent>=0&&e.sCount[t]-e.listIndent>=4&&e.sCount[t]<e.blkIndent)return!1;if(r&&"paragraph"===e.parentType&&e.sCount[t]>=e.blkIndent&&(j=!0),(O=dU(e,t))>=0){if(u=!0,C=e.bMarks[t]+e.tShift[t],y=Number(e.src.slice(C,O-1)),j&&1!==y)return!1}else{if(!((O=pU(e,t))>=0))return!1;u=!1}if(j&&e.skipSpaces(O)>=e.eMarks[t])return!1;if(m=e.src.charCodeAt(O-1),r)return!0;for(h=e.tokens.length,u?(D=e.push("ordered_list_open","ol",1),1!==y&&(D.attrs=[["start",y]])):D=e.push("bullet_list_open","ul",1),D.map=d=[t,0],D.markup=String.fromCharCode(m),g=t,A=!1,P=e.md.block.ruler.getRules("list"),w=e.parentType,e.parentType="list";g<n;){for(_=O,v=e.eMarks[g],l=b=e.sCount[g]+O-(e.bMarks[t]+e.tShift[t]);_<v;){if(9===(i=e.src.charCodeAt(_)))b+=4-(b+e.bsCount[g])%4;else{if(32!==i)break;b++}_++}if((s=(o=_)>=v?1:b-l)>4&&(s=1),c=l+s,(D=e.push("list_item_open","li",1)).markup=String.fromCharCode(m),D.map=f=[t,0],u&&(D.info=e.src.slice(C,O-1)),S=e.tight,E=e.tShift[t],k=e.sCount[t],x=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=c,e.tight=!0,e.tShift[t]=o-e.bMarks[t],e.sCount[t]=b,o>=v&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,t,n,!0),e.tight&&!A||(M=!1),A=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=x,e.tShift[t]=E,e.sCount[t]=k,e.tight=S,(D=e.push("list_item_close","li",-1)).markup=String.fromCharCode(m),g=t=e.line,f[1]=g,o=e.bMarks[t],g>=n)break;if(e.sCount[g]<e.blkIndent)break;if(e.sCount[t]-e.blkIndent>=4)break;for(T=!1,a=0,p=P.length;a<p;a++)if(P[a](e,g,n,!0)){T=!0;break}if(T)break;if(u){if((O=dU(e,g))<0)break;C=e.bMarks[g]+e.tShift[g]}else if((O=pU(e,g))<0)break;if(m!==e.src.charCodeAt(O-1))break}return(D=u?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(m),d[1]=g,e.line=g,e.parentType=w,M&&function(e,t){var n,r,i=e.level+2;for(n=t+2,r=e.tokens.length-2;n<r;n++)e.tokens[n].level===i&&"paragraph_open"===e.tokens[n].type&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}(e,h),!0},["paragraph","reference","blockquote"]],["reference",function(e,t,n,r){var i,o,a,c,s,l,u,f,p,d,h,m,y,v,g,b,x=0,w=e.bMarks[t]+e.tShift[t],k=e.eMarks[t],E=t+1;if(e.sCount[t]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(w))return!1;for(;++w<k;)if(93===e.src.charCodeAt(w)&&92!==e.src.charCodeAt(w-1)){if(w+1===k)return!1;if(58!==e.src.charCodeAt(w+1))return!1;break}for(c=e.lineMax,g=e.md.block.ruler.getRules("reference"),d=e.parentType,e.parentType="reference";E<c&&!e.isEmpty(E);E++)if(!(e.sCount[E]-e.blkIndent>3||e.sCount[E]<0)){for(v=!1,l=0,u=g.length;l<u;l++)if(g[l](e,E,c,!0)){v=!0;break}if(v)break}for(k=(y=e.getLines(t,E,e.blkIndent,!1).trim()).length,w=1;w<k;w++){if(91===(i=y.charCodeAt(w)))return!1;if(93===i){p=w;break}(10===i||92===i&&++w<k&&10===y.charCodeAt(w))&&x++}if(p<0||58!==y.charCodeAt(p+1))return!1;for(w=p+2;w<k;w++)if(10===(i=y.charCodeAt(w)))x++;else if(!mU(i))break;if(!(h=e.md.helpers.parseLinkDestination(y,w,k)).ok)return!1;if(s=e.md.normalizeLink(h.str),!e.md.validateLink(s))return!1;for(o=w=h.pos,a=x+=h.lines,m=w;w<k;w++)if(10===(i=y.charCodeAt(w)))x++;else if(!mU(i))break;for(h=e.md.helpers.parseLinkTitle(y,w,k),w<k&&m!==w&&h.ok?(b=h.str,w=h.pos,x+=h.lines):(b="",w=o,x=a);w<k&&(i=y.charCodeAt(w),mU(i));)w++;if(w<k&&10!==y.charCodeAt(w)&&b)for(b="",w=o,x=a;w<k&&(i=y.charCodeAt(w),mU(i));)w++;return!(w<k&&10!==y.charCodeAt(w))&&(!!(f=hU(y.slice(1,p)))&&(r||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[f]&&(e.env.references[f]={title:b,href:s}),e.parentType=d,e.line=t+x+1),!0))}],["html_block",function(e,t,n,r){var i,o,a,c,s=e.bMarks[t]+e.tShift[t],l=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(s))return!1;for(c=e.src.slice(s,l),i=0;i<EU.length&&!EU[i][0].test(c);i++);if(i===EU.length)return!1;if(r)return EU[i][2];if(o=t+1,!EU[i][1].test(c))for(;o<n&&!(e.sCount[o]<e.blkIndent);o++)if(s=e.bMarks[o]+e.tShift[o],l=e.eMarks[o],c=e.src.slice(s,l),EU[i][1].test(c)){0!==c.length&&o++;break}return e.line=o,(a=e.push("html_block","",0)).map=[t,o],a.content=e.getLines(t,o,e.blkIndent,!0),!0},["paragraph","reference","blockquote"]],["heading",function(e,t,n,r){var i,o,a,c,s=e.bMarks[t]+e.tShift[t],l=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(35!==(i=e.src.charCodeAt(s))||s>=l)return!1;for(o=1,i=e.src.charCodeAt(++s);35===i&&s<l&&o<=6;)o++,i=e.src.charCodeAt(++s);return!(o>6||s<l&&!SU(i))&&(r||(l=e.skipSpacesBack(l,s),(a=e.skipCharsBack(l,35,s))>s&&SU(e.src.charCodeAt(a-1))&&(l=a),e.line=t+1,(c=e.push("heading_open","h"+String(o),1)).markup="########".slice(0,o),c.map=[t,e.line],(c=e.push("inline","",0)).content=e.src.slice(s,l).trim(),c.map=[t,e.line],c.children=[],(c=e.push("heading_close","h"+String(o),-1)).markup="########".slice(0,o)),!0)},["paragraph","reference","blockquote"]],["lheading",function(e,t,n){var r,i,o,a,c,s,l,u,f,p,d=t+1,h=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(p=e.parentType,e.parentType="paragraph";d<n&&!e.isEmpty(d);d++)if(!(e.sCount[d]-e.blkIndent>3)){if(e.sCount[d]>=e.blkIndent&&(s=e.bMarks[d]+e.tShift[d])<(l=e.eMarks[d])&&(45===(f=e.src.charCodeAt(s))||61===f)&&(s=e.skipChars(s,f),(s=e.skipSpaces(s))>=l)){u=61===f?1:2;break}if(!(e.sCount[d]<0)){for(i=!1,o=0,a=h.length;o<a;o++)if(h[o](e,d,n,!0)){i=!0;break}if(i)break}}return!!u&&(r=e.getLines(t,d,e.blkIndent,!1).trim(),e.line=d+1,(c=e.push("heading_open","h"+String(u),1)).markup=String.fromCharCode(f),c.map=[t,e.line],(c=e.push("inline","",0)).content=r,c.map=[t,e.line-1],c.children=[],(c=e.push("heading_close","h"+String(u),-1)).markup=String.fromCharCode(f),e.parentType=p,!0)}],["paragraph",function(e,t){var n,r,i,o,a,c,s=t+1,l=e.md.block.ruler.getRules("paragraph"),u=e.lineMax;for(c=e.parentType,e.parentType="paragraph";s<u&&!e.isEmpty(s);s++)if(!(e.sCount[s]-e.blkIndent>3||e.sCount[s]<0)){for(r=!1,i=0,o=l.length;i<o;i++)if(l[i](e,s,u,!0)){r=!0;break}if(r)break}return n=e.getLines(t,s,e.blkIndent,!1).trim(),e.line=s,(a=e.push("paragraph_open","p",1)).map=[t,e.line],(a=e.push("inline","",0)).content=n,a.map=[t,e.line],a.children=[],a=e.push("paragraph_close","p",-1),e.parentType=c,!0}]];function DU(){this.ruler=new TU;for(var e=0;e<PU.length;e++)this.ruler.push(PU[e][0],PU[e][1],{alt:(PU[e][2]||[]).slice()})}DU.prototype.tokenize=function(e,t,n){for(var r,i=this.ruler.getRules(""),o=i.length,a=t,c=!1,s=e.md.options.maxNesting;a<n&&(e.line=a=e.skipEmptyLines(a),!(a>=n))&&!(e.sCount[a]<e.blkIndent);){if(e.level>=s){e.line=n;break}for(r=0;r<o&&!i[r](e,a,n,!1);r++);e.tight=!c,e.isEmpty(e.line-1)&&(c=!0),(a=e.line)<n&&e.isEmpty(a)&&(c=!0,a++,e.line=a)}},DU.prototype.parse=function(e,t,n,r){var i;e&&(i=new this.State(e,t,n,r),this.tokenize(i,i.line,i.lineMax))},DU.prototype.State=CU;var jU=DU;function MU(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}for(var NU=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,IU=zH.isSpace,RU=zH.isSpace,LU=[],FU=0;FU<256;FU++)LU.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(e){LU[e.charCodeAt(0)]=1}));var zU={};function BU(e,t){var n,r,i,o,a,c=[],s=t.length;for(n=0;n<s;n++)126===(i=t[n]).marker&&-1!==i.end&&(o=t[i.end],(a=e.tokens[i.token]).type="s_open",a.tag="s",a.nesting=1,a.markup="~~",a.content="",(a=e.tokens[o.token]).type="s_close",a.tag="s",a.nesting=-1,a.markup="~~",a.content="","text"===e.tokens[o.token-1].type&&"~"===e.tokens[o.token-1].content&&c.push(o.token-1));for(;c.length;){for(r=(n=c.pop())+1;r<e.tokens.length&&"s_close"===e.tokens[r].type;)r++;n!==--r&&(a=e.tokens[r],e.tokens[r]=e.tokens[n],e.tokens[n]=a)}}zU.tokenize=function(e,t){var n,r,i,o,a=e.pos,c=e.src.charCodeAt(a);if(t)return!1;if(126!==c)return!1;if(i=(r=e.scanDelims(e.pos,!0)).length,o=String.fromCharCode(c),i<2)return!1;for(i%2&&(e.push("text","",0).content=o,i--),n=0;n<i;n+=2)e.push("text","",0).content=o+o,e.delimiters.push({marker:c,length:0,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},zU.postProcess=function(e){var t,n=e.tokens_meta,r=e.tokens_meta.length;for(BU(e,e.delimiters),t=0;t<r;t++)n[t]&&n[t].delimiters&&BU(e,n[t].delimiters)};var qU={};function HU(e,t){var n,r,i,o,a,c;for(n=t.length-1;n>=0;n--)95!==(r=t[n]).marker&&42!==r.marker||-1!==r.end&&(i=t[r.end],c=n>0&&t[n-1].end===r.end+1&&t[n-1].marker===r.marker&&t[n-1].token===r.token-1&&t[r.end+1].token===i.token+1,a=String.fromCharCode(r.marker),(o=e.tokens[r.token]).type=c?"strong_open":"em_open",o.tag=c?"strong":"em",o.nesting=1,o.markup=c?a+a:a,o.content="",(o=e.tokens[i.token]).type=c?"strong_close":"em_close",o.tag=c?"strong":"em",o.nesting=-1,o.markup=c?a+a:a,o.content="",c&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--))}qU.tokenize=function(e,t){var n,r,i=e.pos,o=e.src.charCodeAt(i);if(t)return!1;if(95!==o&&42!==o)return!1;for(r=e.scanDelims(e.pos,42===o),n=0;n<r.length;n++)e.push("text","",0).content=String.fromCharCode(o),e.delimiters.push({marker:o,length:r.length,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},qU.postProcess=function(e){var t,n=e.tokens_meta,r=e.tokens_meta.length;for(HU(e,e.delimiters),t=0;t<r;t++)n[t]&&n[t].delimiters&&HU(e,n[t].delimiters)};var VU=zH.normalizeReference,UU=zH.isSpace,WU=zH.normalizeReference,$U=zH.isSpace,GU=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,YU=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,XU=yU.HTML_TAG_RE;var ZU=BH,KU=zH.has,JU=zH.isValidEntityCode,QU=zH.fromCodePoint,eW=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,tW=/^&([a-z][a-z0-9]{1,31});/i;function nW(e,t){var n,r,i,o,a,c,s,l,u={},f=t.length;if(f){var p=0,d=-2,h=[];for(n=0;n<f;n++)if(i=t[n],h.push(0),t[p].marker===i.marker&&d===i.token-1||(p=n),d=i.token,i.length=i.length||0,i.close){for(u.hasOwnProperty(i.marker)||(u[i.marker]=[-1,-1,-1,-1,-1,-1]),a=u[i.marker][(i.open?3:0)+i.length%3],c=r=p-h[p]-1;r>a;r-=h[r]+1)if((o=t[r]).marker===i.marker&&o.open&&o.end<0&&(s=!1,(o.close||i.open)&&(o.length+i.length)%3==0&&(o.length%3==0&&i.length%3==0||(s=!0)),!s)){l=r>0&&!t[r-1].open?h[r-1]+1:0,h[n]=n-r+l,h[r]=l,i.open=!1,o.end=n,o.close=!1,c=-1,d=-2;break}-1!==c&&(u[i.marker][(i.open?3:0)+(i.length||0)%3]=c)}}}var rW=JV,iW=zH.isWhiteSpace,oW=zH.isPunctChar,aW=zH.isMdAsciiPunct;function cW(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}cW.prototype.pushPending=function(){var e=new rW("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},cW.prototype.push=function(e,t,n){this.pending&&this.pushPending();var r=new rW(e,t,n),i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r},cW.prototype.scanDelims=function(e,t){var n,r,i,o,a,c,s,l,u,f=e,p=!0,d=!0,h=this.posMax,m=this.src.charCodeAt(e);for(n=e>0?this.src.charCodeAt(e-1):32;f<h&&this.src.charCodeAt(f)===m;)f++;return i=f-e,r=f<h?this.src.charCodeAt(f):32,s=aW(n)||oW(String.fromCharCode(n)),u=aW(r)||oW(String.fromCharCode(r)),c=iW(n),(l=iW(r))?p=!1:u&&(c||s||(p=!1)),c?d=!1:s&&(l||u||(d=!1)),t?(o=p,a=d):(o=p&&(!d||s),a=d&&(!p||u)),{can_open:o,can_close:a,length:i}},cW.prototype.Token=rW;var sW=cW,lW=jV,uW=[["text",function(e,t){for(var n=e.pos;n<e.posMax&&!MU(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}],["linkify",function(e,t){var n,r,i,o,a,c,s;return!!e.md.options.linkify&&(!(e.linkLevel>0)&&(!((n=e.pos)+3>e.posMax)&&(58===e.src.charCodeAt(n)&&(47===e.src.charCodeAt(n+1)&&(47===e.src.charCodeAt(n+2)&&(!!(r=e.pending.match(NU))&&(i=r[1],!!(o=e.md.linkify.matchAtStart(e.src.slice(n-i.length)))&&(a=(a=o.url).replace(/\*+$/,""),c=e.md.normalizeLink(a),!!e.md.validateLink(c)&&(t||(e.pending=e.pending.slice(0,-i.length),(s=e.push("link_open","a",1)).attrs=[["href",c]],s.markup="linkify",s.info="auto",(s=e.push("text","",0)).content=e.md.normalizeLinkText(a),(s=e.push("link_close","a",-1)).markup="linkify",s.info="auto"),e.pos+=a.length-i.length,!0)))))))))}],["newline",function(e,t){var n,r,i,o=e.pos;if(10!==e.src.charCodeAt(o))return!1;if(n=e.pending.length-1,r=e.posMax,!t)if(n>=0&&32===e.pending.charCodeAt(n))if(n>=1&&32===e.pending.charCodeAt(n-1)){for(i=n-1;i>=1&&32===e.pending.charCodeAt(i-1);)i--;e.pending=e.pending.slice(0,i),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(o++;o<r&&IU(e.src.charCodeAt(o));)o++;return e.pos=o,!0}],["escape",function(e,t){var n,r,i,o,a,c=e.pos,s=e.posMax;if(92!==e.src.charCodeAt(c))return!1;if(++c>=s)return!1;if(10===(n=e.src.charCodeAt(c))){for(t||e.push("hardbreak","br",0),c++;c<s&&(n=e.src.charCodeAt(c),RU(n));)c++;return e.pos=c,!0}return o=e.src[c],n>=55296&&n<=56319&&c+1<s&&(r=e.src.charCodeAt(c+1))>=56320&&r<=57343&&(o+=e.src[c+1],c++),i="\\"+o,t||(a=e.push("text_special","",0),n<256&&0!==LU[n]?a.content=o:a.content=i,a.markup=i,a.info="escape"),e.pos=c+1,!0}],["backticks",function(e,t){var n,r,i,o,a,c,s,l,u=e.pos;if(96!==e.src.charCodeAt(u))return!1;for(n=u,u++,r=e.posMax;u<r&&96===e.src.charCodeAt(u);)u++;if(s=(i=e.src.slice(n,u)).length,e.backticksScanned&&(e.backticks[s]||0)<=n)return t||(e.pending+=i),e.pos+=s,!0;for(a=c=u;-1!==(a=e.src.indexOf("`",c));){for(c=a+1;c<r&&96===e.src.charCodeAt(c);)c++;if((l=c-a)===s)return t||((o=e.push("code_inline","code",0)).markup=i,o.content=e.src.slice(u,a).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=c,!0;e.backticks[l]=a}return e.backticksScanned=!0,t||(e.pending+=i),e.pos+=s,!0}],["strikethrough",zU.tokenize],["emphasis",qU.tokenize],["link",function(e,t){var n,r,i,o,a,c,s,l,u="",f="",p=e.pos,d=e.posMax,h=e.pos,m=!0;if(91!==e.src.charCodeAt(e.pos))return!1;if(a=e.pos+1,(o=e.md.helpers.parseLinkLabel(e,e.pos,!0))<0)return!1;if((c=o+1)<d&&40===e.src.charCodeAt(c)){for(m=!1,c++;c<d&&(r=e.src.charCodeAt(c),UU(r)||10===r);c++);if(c>=d)return!1;if(h=c,(s=e.md.helpers.parseLinkDestination(e.src,c,e.posMax)).ok){for(u=e.md.normalizeLink(s.str),e.md.validateLink(u)?c=s.pos:u="",h=c;c<d&&(r=e.src.charCodeAt(c),UU(r)||10===r);c++);if(s=e.md.helpers.parseLinkTitle(e.src,c,e.posMax),c<d&&h!==c&&s.ok)for(f=s.str,c=s.pos;c<d&&(r=e.src.charCodeAt(c),UU(r)||10===r);c++);}(c>=d||41!==e.src.charCodeAt(c))&&(m=!0),c++}if(m){if(void 0===e.env.references)return!1;if(c<d&&91===e.src.charCodeAt(c)?(h=c+1,(c=e.md.helpers.parseLinkLabel(e,c))>=0?i=e.src.slice(h,c++):c=o+1):c=o+1,i||(i=e.src.slice(a,o)),!(l=e.env.references[VU(i)]))return e.pos=p,!1;u=l.href,f=l.title}return t||(e.pos=a,e.posMax=o,e.push("link_open","a",1).attrs=n=[["href",u]],f&&n.push(["title",f]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)),e.pos=c,e.posMax=d,!0}],["image",function(e,t){var n,r,i,o,a,c,s,l,u,f,p,d,h,m="",y=e.pos,v=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;if(c=e.pos+2,(a=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1;if((s=a+1)<v&&40===e.src.charCodeAt(s)){for(s++;s<v&&(r=e.src.charCodeAt(s),$U(r)||10===r);s++);if(s>=v)return!1;for(h=s,(u=e.md.helpers.parseLinkDestination(e.src,s,e.posMax)).ok&&(m=e.md.normalizeLink(u.str),e.md.validateLink(m)?s=u.pos:m=""),h=s;s<v&&(r=e.src.charCodeAt(s),$U(r)||10===r);s++);if(u=e.md.helpers.parseLinkTitle(e.src,s,e.posMax),s<v&&h!==s&&u.ok)for(f=u.str,s=u.pos;s<v&&(r=e.src.charCodeAt(s),$U(r)||10===r);s++);else f="";if(s>=v||41!==e.src.charCodeAt(s))return e.pos=y,!1;s++}else{if(void 0===e.env.references)return!1;if(s<v&&91===e.src.charCodeAt(s)?(h=s+1,(s=e.md.helpers.parseLinkLabel(e,s))>=0?o=e.src.slice(h,s++):s=a+1):s=a+1,o||(o=e.src.slice(c,a)),!(l=e.env.references[WU(o)]))return e.pos=y,!1;m=l.href,f=l.title}return t||(i=e.src.slice(c,a),e.md.inline.parse(i,e.md,e.env,d=[]),(p=e.push("image","img",0)).attrs=n=[["src",m],["alt",""]],p.children=d,p.content=i,f&&n.push(["title",f])),e.pos=s,e.posMax=v,!0}],["autolink",function(e,t){var n,r,i,o,a,c,s=e.pos;if(60!==e.src.charCodeAt(s))return!1;for(a=e.pos,c=e.posMax;;){if(++s>=c)return!1;if(60===(o=e.src.charCodeAt(s)))return!1;if(62===o)break}return n=e.src.slice(a+1,s),YU.test(n)?(r=e.md.normalizeLink(n),!!e.md.validateLink(r)&&(t||((i=e.push("link_open","a",1)).attrs=[["href",r]],i.markup="autolink",i.info="auto",(i=e.push("text","",0)).content=e.md.normalizeLinkText(n),(i=e.push("link_close","a",-1)).markup="autolink",i.info="auto"),e.pos+=n.length+2,!0)):!!GU.test(n)&&(r=e.md.normalizeLink("mailto:"+n),!!e.md.validateLink(r)&&(t||((i=e.push("link_open","a",1)).attrs=[["href",r]],i.markup="autolink",i.info="auto",(i=e.push("text","",0)).content=e.md.normalizeLinkText(n),(i=e.push("link_close","a",-1)).markup="autolink",i.info="auto"),e.pos+=n.length+2,!0))}],["html_inline",function(e,t){var n,r,i,o,a,c=e.pos;return!!e.md.options.html&&(i=e.posMax,!(60!==e.src.charCodeAt(c)||c+2>=i)&&(!(33!==(n=e.src.charCodeAt(c+1))&&63!==n&&47!==n&&!function(e){var t=32|e;return t>=97&&t<=122}(n))&&(!!(r=e.src.slice(c).match(XU))&&(t||((o=e.push("html_inline","",0)).content=e.src.slice(c,c+r[0].length),a=o.content,/^<a[>\s]/i.test(a)&&e.linkLevel++,function(e){return/^<\/a\s*>/i.test(e)}(o.content)&&e.linkLevel--),e.pos+=r[0].length,!0))))}],["entity",function(e,t){var n,r,i,o=e.pos,a=e.posMax;if(38!==e.src.charCodeAt(o))return!1;if(o+1>=a)return!1;if(35===e.src.charCodeAt(o+1)){if(r=e.src.slice(o).match(eW))return t||(n="x"===r[1][0].toLowerCase()?parseInt(r[1].slice(1),16):parseInt(r[1],10),(i=e.push("text_special","",0)).content=JU(n)?QU(n):QU(65533),i.markup=r[0],i.info="entity"),e.pos+=r[0].length,!0}else if((r=e.src.slice(o).match(tW))&&KU(ZU,r[1]))return t||((i=e.push("text_special","",0)).content=ZU[r[1]],i.markup=r[0],i.info="entity"),e.pos+=r[0].length,!0;return!1}]],fW=[["balance_pairs",function(e){var t,n=e.tokens_meta,r=e.tokens_meta.length;for(nW(0,e.delimiters),t=0;t<r;t++)n[t]&&n[t].delimiters&&nW(0,n[t].delimiters)}],["strikethrough",zU.postProcess],["emphasis",qU.postProcess],["fragments_join",function(e){var t,n,r=0,i=e.tokens,o=e.tokens.length;for(t=n=0;t<o;t++)i[t].nesting<0&&r--,i[t].level=r,i[t].nesting>0&&r++,"text"===i[t].type&&t+1<o&&"text"===i[t+1].type?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}]];function pW(){var e;for(this.ruler=new lW,e=0;e<uW.length;e++)this.ruler.push(uW[e][0],uW[e][1]);for(this.ruler2=new lW,e=0;e<fW.length;e++)this.ruler2.push(fW[e][0],fW[e][1])}pW.prototype.skipToken=function(e){var t,n,r=e.pos,i=this.ruler.getRules(""),o=i.length,a=e.md.options.maxNesting,c=e.cache;if(void 0===c[r]){if(e.level<a)for(n=0;n<o&&(e.level++,t=i[n](e,!0),e.level--,!t);n++);else e.pos=e.posMax;t||e.pos++,c[r]=e.pos}else e.pos=c[r]},pW.prototype.tokenize=function(e){for(var t,n,r=this.ruler.getRules(""),i=r.length,o=e.posMax,a=e.md.options.maxNesting;e.pos<o;){if(e.level<a)for(n=0;n<i&&!(t=r[n](e,!1));n++);if(t){if(e.pos>=o)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},pW.prototype.parse=function(e,t,n,r){var i,o,a,c=new this.State(e,t,n,r);for(this.tokenize(c),a=(o=this.ruler2.getRules("")).length,i=0;i<a;i++)o[i](c)},pW.prototype.State=sW;var dW,hW,mW=pW;function yW(){return hW?dW:(hW=1,dW=function(e){var t={};e=e||{},t.src_Any=gV().source,t.src_Cc=bV().source,t.src_Z=xV().source,t.src_P=qH.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var n="[><|]";return t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+"|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><|]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t})}function vW(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function gW(e){return Object.prototype.toString.call(e)}function bW(e){return"[object Function]"===gW(e)}function xW(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var wW={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};var kW={"http:":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},EW="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",SW="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function _W(e){var t=e.re=yW()(e.__opts__),n=e.__tlds__.slice();function r(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||n.push(EW),n.push(t.src_xn),t.src_tlds=n.join("|"),t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");var i=[];function o(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(t){var n=e.__schemas__[t];if(null!==n){var r={validate:null,link:null};if(e.__compiled__[t]=r,function(e){return"[object Object]"===gW(e)}(n))return!function(e){return"[object RegExp]"===gW(e)}(n.validate)?bW(n.validate)?r.validate=n.validate:o(t,n):r.validate=function(e){return function(t,n){var r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}(n.validate),void(bW(n.normalize)?r.normalize=n.normalize:n.normalize?o(t,n):r.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===gW(e)}(n)?o(t,n):i.push(t)}})),i.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var a=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(xW).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function OW(e,t){var n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function AW(e,t){var n=new OW(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function CW(e,t){if(!(this instanceof CW))return new CW(e,t);t||function(e){return Object.keys(e||{}).reduce((function(e,t){return e||wW.hasOwnProperty(t)}),!1)}(e)&&(t=e,e={}),this.__opts__=vW({},wW,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=vW({},kW,e),this.__compiled__={},this.__tlds__=SW,this.__tlds_replaced__=!1,this.re={},_W(this)}CW.prototype.add=function(e,t){return this.__schemas__[e]=t,_W(this),this},CW.prototype.set=function(e){return this.__opts__=vW(this.__opts__,e),this},CW.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,i,o,a,c,s;if(this.re.schema_test.test(e))for((c=this.re.schema_search).lastIndex=0;null!==(t=c.exec(e));)if(i=this.testSchemaAt(e,t[2],c.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(s=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||s<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(o=n.index+n[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(r=e.match(this.re.email_fuzzy))&&(o=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a)),this.__index__>=0},CW.prototype.pretest=function(e){return this.re.pretest.test(e)},CW.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},CW.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(AW(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(AW(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},CW.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;var t=this.re.schema_at_start.exec(e);if(!t)return null;var n=this.testSchemaAt(e,t[2],t[0].length);return n?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+n,AW(this,0)):null},CW.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse(),_W(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,_W(this),this)},CW.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},CW.prototype.onCompile=function(){};var TW=CW;const PW=2147483647,DW=36,jW=/^xn--/,MW=/[^\0-\x7E]/,NW=/[\x2E\u3002\uFF0E\uFF61]/g,IW={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},RW=Math.floor,LW=String.fromCharCode;function FW(e){throw new RangeError(IW[e])}function zW(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]);const i=function(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}((e=e.replace(NW,".")).split("."),t).join(".");return r+i}function BW(e){const t=[];let n=0;const r=e.length;for(;n<r;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const r=e.charCodeAt(n++);56320==(64512&r)?t.push(((1023&i)<<10)+(1023&r)+65536):(t.push(i),n--)}else t.push(i)}return t}const qW=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},HW=function(e,t,n){let r=0;for(e=n?RW(e/700):e>>1,e+=RW(e/t);e>455;r+=DW)e=RW(e/35);return RW(r+36*e/(e+38))},VW=function(e){const t=[],n=e.length;let r=0,i=128,o=72,a=e.lastIndexOf("-");a<0&&(a=0);for(let n=0;n<a;++n)e.charCodeAt(n)>=128&&FW("not-basic"),t.push(e.charCodeAt(n));for(let s=a>0?a+1:0;s<n;){let a=r;for(let t=1,i=DW;;i+=DW){s>=n&&FW("invalid-input");const a=(c=e.charCodeAt(s++))-48<10?c-22:c-65<26?c-65:c-97<26?c-97:DW;(a>=DW||a>RW((PW-r)/t))&&FW("overflow"),r+=a*t;const l=i<=o?1:i>=o+26?26:i-o;if(a<l)break;const u=DW-l;t>RW(PW/u)&&FW("overflow"),t*=u}const l=t.length+1;o=HW(r-a,l,0==a),RW(r/l)>PW-i&&FW("overflow"),i+=RW(r/l),r%=l,t.splice(r++,0,i)}var c;return String.fromCodePoint(...t)},UW=function(e){const t=[];let n=(e=BW(e)).length,r=128,i=0,o=72;for(const n of e)n<128&&t.push(LW(n));let a=t.length,c=a;for(a&&t.push("-");c<n;){let n=PW;for(const t of e)t>=r&&t<n&&(n=t);const s=c+1;n-r>RW((PW-i)/s)&&FW("overflow"),i+=(n-r)*s,r=n;for(const n of e)if(n<r&&++i>PW&&FW("overflow"),n==r){let e=i;for(let n=DW;;n+=DW){const r=n<=o?1:n>=o+26?26:n-o;if(e<r)break;const i=e-r,a=DW-r;t.push(LW(qW(r+i%a,0))),e=RW(i/a)}t.push(LW(qW(e,0))),o=HW(i,s,c==a),i=0,++c}++i,++r}return t.join("")},WW={version:"2.1.0",ucs2:{decode:BW,encode:e=>String.fromCodePoint(...e)},decode:VW,encode:UW,toASCII:function(e){return zW(e,(function(e){return MW.test(e)?"xn--"+UW(e):e}))},toUnicode:function(e){return zW(e,(function(e){return jW.test(e)?VW(e.slice(4).toLowerCase()):e}))}};var $W=zH,GW=kV,YW=PV,XW=oU,ZW=jU,KW=mW,JW=TW,QW=HH,e$=WW,t$={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},n$=/^(vbscript|javascript|file|data):/,r$=/^data:image\/(gif|png|jpeg|webp);/;function i$(e){var t=e.trim().toLowerCase();return!n$.test(t)||!!r$.test(t)}var o$=["http:","https:","mailto:"];function a$(e){var t=QW.parse(e,!0);if(t.hostname&&(!t.protocol||o$.indexOf(t.protocol)>=0))try{t.hostname=e$.toASCII(t.hostname)}catch(e){}return QW.encode(QW.format(t))}function c$(e){var t=QW.parse(e,!0);if(t.hostname&&(!t.protocol||o$.indexOf(t.protocol)>=0))try{t.hostname=e$.toUnicode(t.hostname)}catch(e){}return QW.decode(QW.format(t),QW.decode.defaultChars+"%")}function s$(e,t){if(!(this instanceof s$))return new s$(e,t);t||$W.isString(e)||(t=e||{},e="default"),this.inline=new KW,this.block=new ZW,this.core=new XW,this.renderer=new YW,this.linkify=new JW,this.validateLink=i$,this.normalizeLink=a$,this.normalizeLinkText=c$,this.utils=$W,this.helpers=$W.assign({},GW),this.options={},this.configure(e),t&&this.set(t)}s$.prototype.set=function(e){return $W.assign(this.options,e),this},s$.prototype.configure=function(e){var t,n=this;if($W.isString(e)&&!(e=t$[t=e]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&n.set(e.options),e.components&&Object.keys(e.components).forEach((function(t){e.components[t].rules&&n[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&n[t].ruler2.enableOnly(e.components[t].rules2)})),this},s$.prototype.enable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.enable(e,!0))}),this),n=n.concat(this.inline.ruler2.enable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},s$.prototype.disable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.disable(e,!0))}),this),n=n.concat(this.inline.ruler2.disable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},s$.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},s$.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},s$.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},s$.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},s$.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var l$=_(s$),u$={exports:{}},f$={},p$={};!function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(t=e.ElementType||(e.ElementType={})),e.isTag=function(e){return e.type===t.Tag||e.type===t.Script||e.type===t.Style},e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype}(p$);var d$={},h$=S&&S.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),m$=S&&S.__assign||function(){return m$=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},m$.apply(this,arguments)};Object.defineProperty(d$,"__esModule",{value:!0}),d$.cloneNode=d$.hasChildren=d$.isDocument=d$.isDirective=d$.isComment=d$.isText=d$.isCDATA=d$.isTag=d$.Element=d$.Document=d$.CDATA=d$.NodeWithChildren=d$.ProcessingInstruction=d$.Comment=d$.Text=d$.DataNode=d$.Node=void 0;var y$=p$,v$=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),j$(this,e)},e}();d$.Node=v$;var g$=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return h$(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(v$);d$.DataNode=g$;var b$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=y$.ElementType.Text,t}return h$(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(g$);d$.Text=b$;var x$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=y$.ElementType.Comment,t}return h$(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(g$);d$.Comment=x$;var w$=function(e){function t(t,n){var r=e.call(this,n)||this;return r.name=t,r.type=y$.ElementType.Directive,r}return h$(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(g$);d$.ProcessingInstruction=w$;var k$=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return h$(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(v$);d$.NodeWithChildren=k$;var E$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=y$.ElementType.CDATA,t}return h$(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(k$);d$.CDATA=E$;var S$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=y$.ElementType.Root,t}return h$(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(k$);d$.Document=S$;var _$=function(e){function t(t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i="script"===t?y$.ElementType.Script:"style"===t?y$.ElementType.Style:y$.ElementType.Tag);var o=e.call(this,r)||this;return o.name=t,o.attribs=n,o.type=i,o}return h$(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(k$);function O$(e){return(0,y$.isTag)(e)}function A$(e){return e.type===y$.ElementType.CDATA}function C$(e){return e.type===y$.ElementType.Text}function T$(e){return e.type===y$.ElementType.Comment}function P$(e){return e.type===y$.ElementType.Directive}function D$(e){return e.type===y$.ElementType.Root}function j$(e,t){var n;if(void 0===t&&(t=!1),C$(e))n=new b$(e.data);else if(T$(e))n=new x$(e.data);else if(O$(e)){var r=t?M$(e.children):[],i=new _$(e.name,m$({},e.attribs),r);r.forEach((function(e){return e.parent=i})),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=m$({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=m$({},e["x-attribsPrefix"])),n=i}else if(A$(e)){r=t?M$(e.children):[];var o=new E$(r);r.forEach((function(e){return e.parent=o})),n=o}else if(D$(e)){r=t?M$(e.children):[];var a=new S$(r);r.forEach((function(e){return e.parent=a})),e["x-mode"]&&(a["x-mode"]=e["x-mode"]),n=a}else{if(!P$(e))throw new Error("Not implemented yet: ".concat(e.type));var c=new w$(e.name,e.data);null!=e["x-name"]&&(c["x-name"]=e["x-name"],c["x-publicId"]=e["x-publicId"],c["x-systemId"]=e["x-systemId"]),n=c}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function M$(e){for(var t=e.map((function(e){return j$(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}d$.Element=_$,d$.isTag=O$,d$.isCDATA=A$,d$.isText=C$,d$.isComment=T$,d$.isDirective=P$,d$.isDocument=D$,d$.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},d$.cloneNode=j$,function(e){var t=S&&S.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=S&&S.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var r=p$,i=d$;n(d$,e);var o={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},a=function(){function e(e,t,n){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=o),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:o,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?r.ElementType.Tag:void 0,o=new i.Element(e,t,void 0,n);this.addNode(o),this.tagStack.push(o)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===r.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new i.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment)this.lastNode.data+=e;else{var t=new i.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new i.Text(""),t=new i.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new i.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();e.DomHandler=a,e.default=a}(f$);var N$={exports:{}},I$={},R$={},L$={},F$={},z$={};Object.defineProperty(z$,"__esModule",{value:!0}),z$.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((function(e){return e.charCodeAt(0)})));var B$={};Object.defineProperty(B$,"__esModule",{value:!0}),B$.default=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((function(e){return e.charCodeAt(0)})));var q$={};!function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.replaceCodePoint=e.fromCodePoint=void 0;var n=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function r(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=n.get(e))&&void 0!==t?t:e}e.fromCodePoint=null!==(t=String.fromCodePoint)&&void 0!==t?t:function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)},e.replaceCodePoint=r,e.default=function(t){return(0,e.fromCodePoint)(r(t))}}(q$),function(e){var t=S&&S.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXML=e.decodeHTMLStrict=e.decodeHTML=e.determineBranch=e.BinTrieFlags=e.fromCodePoint=e.replaceCodePoint=e.decodeCodePoint=e.xmlDecodeTree=e.htmlDecodeTree=void 0;var n=t(z$);e.htmlDecodeTree=n.default;var r=t(B$);e.xmlDecodeTree=r.default;var i=t(q$);e.decodeCodePoint=i.default;var o,a,c=q$;function s(e){return function(t,n){for(var r="",c=0,s=0;(s=t.indexOf("&",s))>=0;)if(r+=t.slice(c,s),c=s,s+=1,t.charCodeAt(s)!==o.NUM){for(var u=0,f=1,p=0,d=e[p];s<t.length&&!((p=l(e,d,p+1,t.charCodeAt(s)))<0);s++,f++){var h=(d=e[p])&a.VALUE_LENGTH;if(h){var m;if(n&&t.charCodeAt(s)!==o.SEMI||(u=p,f=0),0===(m=(h>>14)-1))break;p+=m}}if(0!==u)r+=1===(m=(e[u]&a.VALUE_LENGTH)>>14)?String.fromCharCode(e[u]&~a.VALUE_LENGTH):2===m?String.fromCharCode(e[u+1]):String.fromCharCode(e[u+1],e[u+2]),c=s-f+1}else{var y=s+1,v=10,g=t.charCodeAt(y);(g|o.To_LOWER_BIT)===o.LOWER_X&&(v=16,s+=1,y+=1);do{g=t.charCodeAt(++s)}while(g>=o.ZERO&&g<=o.NINE||16===v&&(g|o.To_LOWER_BIT)>=o.LOWER_A&&(g|o.To_LOWER_BIT)<=o.LOWER_F);if(y!==s){var b=t.substring(y,s),x=parseInt(b,v);if(t.charCodeAt(s)===o.SEMI)s+=1;else if(n)continue;r+=(0,i.default)(x),c=s}}return r+t.slice(c)}}function l(e,t,n,r){var i=(t&a.BRANCH_LENGTH)>>7,o=t&a.JUMP_TABLE;if(0===i)return 0!==o&&r===o?n:-1;if(o){var c=r-o;return c<0||c>=i?-1:e[n+c]-1}for(var s=n,l=s+i-1;s<=l;){var u=s+l>>>1,f=e[u];if(f<r)s=u+1;else{if(!(f>r))return e[u+i];l=u-1}}return-1}Object.defineProperty(e,"replaceCodePoint",{enumerable:!0,get:function(){return c.replaceCodePoint}}),Object.defineProperty(e,"fromCodePoint",{enumerable:!0,get:function(){return c.fromCodePoint}}),function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.To_LOWER_BIT=32]="To_LOWER_BIT"}(o||(o={})),function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(a=e.BinTrieFlags||(e.BinTrieFlags={})),e.determineBranch=l;var u=s(n.default),f=s(r.default);e.decodeHTML=function(e){return u(e,!1)},e.decodeHTMLStrict=function(e){return u(e,!0)},e.decodeXML=function(e){return f(e,!0)}}(F$),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.QuoteType=void 0;var t,n,r,i=F$;function o(e){return e===t.Space||e===t.NewLine||e===t.Tab||e===t.FormFeed||e===t.CarriageReturn}function a(e){return e===t.Slash||e===t.Gt||o(e)}function c(e){return e>=t.Zero&&e<=t.Nine}!function(e){e[e.Tab=9]="Tab",e[e.NewLine=10]="NewLine",e[e.FormFeed=12]="FormFeed",e[e.CarriageReturn=13]="CarriageReturn",e[e.Space=32]="Space",e[e.ExclamationMark=33]="ExclamationMark",e[e.Num=35]="Num",e[e.Amp=38]="Amp",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Dash=45]="Dash",e[e.Slash=47]="Slash",e[e.Zero=48]="Zero",e[e.Nine=57]="Nine",e[e.Semi=59]="Semi",e[e.Lt=60]="Lt",e[e.Eq=61]="Eq",e[e.Gt=62]="Gt",e[e.Questionmark=63]="Questionmark",e[e.UpperA=65]="UpperA",e[e.LowerA=97]="LowerA",e[e.UpperF=70]="UpperF",e[e.LowerF=102]="LowerF",e[e.UpperZ=90]="UpperZ",e[e.LowerZ=122]="LowerZ",e[e.LowerX=120]="LowerX",e[e.OpeningSquareBracket=91]="OpeningSquareBracket"}(t||(t={})),function(e){e[e.Text=1]="Text",e[e.BeforeTagName=2]="BeforeTagName",e[e.InTagName=3]="InTagName",e[e.InSelfClosingTag=4]="InSelfClosingTag",e[e.BeforeClosingTagName=5]="BeforeClosingTagName",e[e.InClosingTagName=6]="InClosingTagName",e[e.AfterClosingTagName=7]="AfterClosingTagName",e[e.BeforeAttributeName=8]="BeforeAttributeName",e[e.InAttributeName=9]="InAttributeName",e[e.AfterAttributeName=10]="AfterAttributeName",e[e.BeforeAttributeValue=11]="BeforeAttributeValue",e[e.InAttributeValueDq=12]="InAttributeValueDq",e[e.InAttributeValueSq=13]="InAttributeValueSq",e[e.InAttributeValueNq=14]="InAttributeValueNq",e[e.BeforeDeclaration=15]="BeforeDeclaration",e[e.InDeclaration=16]="InDeclaration",e[e.InProcessingInstruction=17]="InProcessingInstruction",e[e.BeforeComment=18]="BeforeComment",e[e.CDATASequence=19]="CDATASequence",e[e.InSpecialComment=20]="InSpecialComment",e[e.InCommentLike=21]="InCommentLike",e[e.BeforeSpecialS=22]="BeforeSpecialS",e[e.SpecialStartSequence=23]="SpecialStartSequence",e[e.InSpecialTag=24]="InSpecialTag",e[e.BeforeEntity=25]="BeforeEntity",e[e.BeforeNumericEntity=26]="BeforeNumericEntity",e[e.InNamedEntity=27]="InNamedEntity",e[e.InNumericEntity=28]="InNumericEntity",e[e.InHexEntity=29]="InHexEntity"}(n||(n={})),function(e){e[e.NoValue=0]="NoValue",e[e.Unquoted=1]="Unquoted",e[e.Single=2]="Single",e[e.Double=3]="Double"}(r=e.QuoteType||(e.QuoteType={}));var s={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},l=function(){function e(e,t){var r=e.xmlMode,o=void 0!==r&&r,a=e.decodeEntities,c=void 0===a||a;this.cbs=t,this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=o,this.decodeEntities=c,this.entityTrie=o?i.xmlDecodeTree:i.htmlDecodeTree}return e.prototype.reset=function(){this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},e.prototype.write=function(e){this.offset+=this.buffer.length,this.buffer=e,this.parse()},e.prototype.end=function(){this.running&&this.finish()},e.prototype.pause=function(){this.running=!1},e.prototype.resume=function(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()},e.prototype.getIndex=function(){return this.index},e.prototype.getSectionStart=function(){return this.sectionStart},e.prototype.stateText=function(e){e===t.Lt||!this.decodeEntities&&this.fastForwardTo(t.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=n.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&e===t.Amp&&(this.state=n.BeforeEntity)},e.prototype.stateSpecialStartSequence=function(e){var t=this.sequenceIndex===this.currentSequence.length;if(t?a(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t)return void this.sequenceIndex++}else this.isSpecial=!1;this.sequenceIndex=0,this.state=n.InTagName,this.stateInTagName(e)},e.prototype.stateInSpecialTag=function(e){if(this.sequenceIndex===this.currentSequence.length){if(e===t.Gt||o(e)){var r=this.index-this.currentSequence.length;if(this.sectionStart<r){var i=this.index;this.index=r,this.cbs.ontext(this.sectionStart,r),this.index=i}return this.isSpecial=!1,this.sectionStart=r+2,void this.stateInClosingTagName(e)}this.sequenceIndex=0}(32|e)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:0===this.sequenceIndex?this.currentSequence===s.TitleEnd?this.decodeEntities&&e===t.Amp&&(this.state=n.BeforeEntity):this.fastForwardTo(t.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=Number(e===t.Lt)},e.prototype.stateCDATASequence=function(e){e===s.Cdata[this.sequenceIndex]?++this.sequenceIndex===s.Cdata.length&&(this.state=n.InCommentLike,this.currentSequence=s.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=n.InDeclaration,this.stateInDeclaration(e))},e.prototype.fastForwardTo=function(e){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===e)return!0;return this.index=this.buffer.length+this.offset-1,!1},e.prototype.stateInCommentLike=function(e){e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===s.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=n.Text):0===this.sequenceIndex?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)},e.prototype.isTagStartChar=function(e){return this.xmlMode?!a(e):function(e){return e>=t.LowerA&&e<=t.LowerZ||e>=t.UpperA&&e<=t.UpperZ}(e)},e.prototype.startSpecial=function(e,t){this.isSpecial=!0,this.currentSequence=e,this.sequenceIndex=t,this.state=n.SpecialStartSequence},e.prototype.stateBeforeTagName=function(e){if(e===t.ExclamationMark)this.state=n.BeforeDeclaration,this.sectionStart=this.index+1;else if(e===t.Questionmark)this.state=n.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(e)){var r=32|e;this.sectionStart=this.index,this.xmlMode||r!==s.TitleEnd[2]?this.state=this.xmlMode||r!==s.ScriptEnd[2]?n.InTagName:n.BeforeSpecialS:this.startSpecial(s.TitleEnd,3)}else e===t.Slash?this.state=n.BeforeClosingTagName:(this.state=n.Text,this.stateText(e))},e.prototype.stateInTagName=function(e){a(e)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(e))},e.prototype.stateBeforeClosingTagName=function(e){o(e)||(e===t.Gt?this.state=n.Text:(this.state=this.isTagStartChar(e)?n.InClosingTagName:n.InSpecialComment,this.sectionStart=this.index))},e.prototype.stateInClosingTagName=function(e){(e===t.Gt||o(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.AfterClosingTagName,this.stateAfterClosingTagName(e))},e.prototype.stateAfterClosingTagName=function(e){(e===t.Gt||this.fastForwardTo(t.Gt))&&(this.state=n.Text,this.sectionStart=this.index+1)},e.prototype.stateBeforeAttributeName=function(e){e===t.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=n.InSpecialTag,this.sequenceIndex=0):this.state=n.Text,this.baseState=this.state,this.sectionStart=this.index+1):e===t.Slash?this.state=n.InSelfClosingTag:o(e)||(this.state=n.InAttributeName,this.sectionStart=this.index)},e.prototype.stateInSelfClosingTag=function(e){e===t.Gt?(this.cbs.onselfclosingtag(this.index),this.state=n.Text,this.baseState=n.Text,this.sectionStart=this.index+1,this.isSpecial=!1):o(e)||(this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(e))},e.prototype.stateInAttributeName=function(e){(e===t.Eq||a(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.AfterAttributeName,this.stateAfterAttributeName(e))},e.prototype.stateAfterAttributeName=function(e){e===t.Eq?this.state=n.BeforeAttributeValue:e===t.Slash||e===t.Gt?(this.cbs.onattribend(r.NoValue,this.index),this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(e)):o(e)||(this.cbs.onattribend(r.NoValue,this.index),this.state=n.InAttributeName,this.sectionStart=this.index)},e.prototype.stateBeforeAttributeValue=function(e){e===t.DoubleQuote?(this.state=n.InAttributeValueDq,this.sectionStart=this.index+1):e===t.SingleQuote?(this.state=n.InAttributeValueSq,this.sectionStart=this.index+1):o(e)||(this.sectionStart=this.index,this.state=n.InAttributeValueNq,this.stateInAttributeValueNoQuotes(e))},e.prototype.handleInAttributeValue=function(e,i){e===i||!this.decodeEntities&&this.fastForwardTo(i)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(i===t.DoubleQuote?r.Double:r.Single,this.index),this.state=n.BeforeAttributeName):this.decodeEntities&&e===t.Amp&&(this.baseState=this.state,this.state=n.BeforeEntity)},e.prototype.stateInAttributeValueDoubleQuotes=function(e){this.handleInAttributeValue(e,t.DoubleQuote)},e.prototype.stateInAttributeValueSingleQuotes=function(e){this.handleInAttributeValue(e,t.SingleQuote)},e.prototype.stateInAttributeValueNoQuotes=function(e){o(e)||e===t.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(r.Unquoted,this.index),this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(e)):this.decodeEntities&&e===t.Amp&&(this.baseState=this.state,this.state=n.BeforeEntity)},e.prototype.stateBeforeDeclaration=function(e){e===t.OpeningSquareBracket?(this.state=n.CDATASequence,this.sequenceIndex=0):this.state=e===t.Dash?n.BeforeComment:n.InDeclaration},e.prototype.stateInDeclaration=function(e){(e===t.Gt||this.fastForwardTo(t.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=n.Text,this.sectionStart=this.index+1)},e.prototype.stateInProcessingInstruction=function(e){(e===t.Gt||this.fastForwardTo(t.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=n.Text,this.sectionStart=this.index+1)},e.prototype.stateBeforeComment=function(e){e===t.Dash?(this.state=n.InCommentLike,this.currentSequence=s.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=n.InDeclaration},e.prototype.stateInSpecialComment=function(e){(e===t.Gt||this.fastForwardTo(t.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=n.Text,this.sectionStart=this.index+1)},e.prototype.stateBeforeSpecialS=function(e){var t=32|e;t===s.ScriptEnd[3]?this.startSpecial(s.ScriptEnd,4):t===s.StyleEnd[3]?this.startSpecial(s.StyleEnd,4):(this.state=n.InTagName,this.stateInTagName(e))},e.prototype.stateBeforeEntity=function(e){this.entityExcess=1,this.entityResult=0,e===t.Num?this.state=n.BeforeNumericEntity:e===t.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=n.InNamedEntity,this.stateInNamedEntity(e))},e.prototype.stateInNamedEntity=function(e){if(this.entityExcess+=1,this.trieIndex=(0,i.determineBranch)(this.entityTrie,this.trieCurrent,this.trieIndex+1,e),this.trieIndex<0)return this.emitNamedEntity(),void this.index--;this.trieCurrent=this.entityTrie[this.trieIndex];var n=this.trieCurrent&i.BinTrieFlags.VALUE_LENGTH;if(n){var r=(n>>14)-1;if(this.allowLegacyEntity()||e===t.Semi){var o=this.index-this.entityExcess+1;o>this.sectionStart&&this.emitPartial(this.sectionStart,o),this.entityResult=this.trieIndex,this.trieIndex+=r,this.entityExcess=0,this.sectionStart=this.index+1,0===r&&this.emitNamedEntity()}else this.trieIndex+=r}},e.prototype.emitNamedEntity=function(){if(this.state=this.baseState,0!==this.entityResult)switch((this.entityTrie[this.entityResult]&i.BinTrieFlags.VALUE_LENGTH)>>14){case 1:this.emitCodePoint(this.entityTrie[this.entityResult]&~i.BinTrieFlags.VALUE_LENGTH);break;case 2:this.emitCodePoint(this.entityTrie[this.entityResult+1]);break;case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}},e.prototype.stateBeforeNumericEntity=function(e){(32|e)===t.LowerX?(this.entityExcess++,this.state=n.InHexEntity):(this.state=n.InNumericEntity,this.stateInNumericEntity(e))},e.prototype.emitNumericEntity=function(e){var t=this.index-this.entityExcess-1;t+2+Number(this.state===n.InHexEntity)!==this.index&&(t>this.sectionStart&&this.emitPartial(this.sectionStart,t),this.sectionStart=this.index+Number(e),this.emitCodePoint((0,i.replaceCodePoint)(this.entityResult))),this.state=this.baseState},e.prototype.stateInNumericEntity=function(e){e===t.Semi?this.emitNumericEntity(!0):c(e)?(this.entityResult=10*this.entityResult+(e-t.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},e.prototype.stateInHexEntity=function(e){e===t.Semi?this.emitNumericEntity(!0):c(e)?(this.entityResult=16*this.entityResult+(e-t.Zero),this.entityExcess++):!function(e){return e>=t.UpperA&&e<=t.UpperF||e>=t.LowerA&&e<=t.LowerF}(e)?(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--):(this.entityResult=16*this.entityResult+((32|e)-t.LowerA+10),this.entityExcess++)},e.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===n.Text||this.baseState===n.InSpecialTag)},e.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===n.Text||this.state===n.InSpecialTag&&0===this.sequenceIndex?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):this.state!==n.InAttributeValueDq&&this.state!==n.InAttributeValueSq&&this.state!==n.InAttributeValueNq||(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},e.prototype.shouldContinue=function(){return this.index<this.buffer.length+this.offset&&this.running},e.prototype.parse=function(){for(;this.shouldContinue();){var e=this.buffer.charCodeAt(this.index-this.offset);this.state===n.Text?this.stateText(e):this.state===n.SpecialStartSequence?this.stateSpecialStartSequence(e):this.state===n.InSpecialTag?this.stateInSpecialTag(e):this.state===n.CDATASequence?this.stateCDATASequence(e):this.state===n.InAttributeValueDq?this.stateInAttributeValueDoubleQuotes(e):this.state===n.InAttributeName?this.stateInAttributeName(e):this.state===n.InCommentLike?this.stateInCommentLike(e):this.state===n.InSpecialComment?this.stateInSpecialComment(e):this.state===n.BeforeAttributeName?this.stateBeforeAttributeName(e):this.state===n.InTagName?this.stateInTagName(e):this.state===n.InClosingTagName?this.stateInClosingTagName(e):this.state===n.BeforeTagName?this.stateBeforeTagName(e):this.state===n.AfterAttributeName?this.stateAfterAttributeName(e):this.state===n.InAttributeValueSq?this.stateInAttributeValueSingleQuotes(e):this.state===n.BeforeAttributeValue?this.stateBeforeAttributeValue(e):this.state===n.BeforeClosingTagName?this.stateBeforeClosingTagName(e):this.state===n.AfterClosingTagName?this.stateAfterClosingTagName(e):this.state===n.BeforeSpecialS?this.stateBeforeSpecialS(e):this.state===n.InAttributeValueNq?this.stateInAttributeValueNoQuotes(e):this.state===n.InSelfClosingTag?this.stateInSelfClosingTag(e):this.state===n.InDeclaration?this.stateInDeclaration(e):this.state===n.BeforeDeclaration?this.stateBeforeDeclaration(e):this.state===n.BeforeComment?this.stateBeforeComment(e):this.state===n.InProcessingInstruction?this.stateInProcessingInstruction(e):this.state===n.InNamedEntity?this.stateInNamedEntity(e):this.state===n.BeforeEntity?this.stateBeforeEntity(e):this.state===n.InHexEntity?this.stateInHexEntity(e):this.state===n.InNumericEntity?this.stateInNumericEntity(e):this.stateBeforeNumericEntity(e),this.index++}this.cleanup()},e.prototype.finish=function(){this.state===n.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()},e.prototype.handleTrailingData=function(){var e=this.buffer.length+this.offset;this.state===n.InCommentLike?this.currentSequence===s.CdataEnd?this.cbs.oncdata(this.sectionStart,e,0):this.cbs.oncomment(this.sectionStart,e,0):this.state===n.InNumericEntity&&this.allowLegacyEntity()||this.state===n.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===n.InTagName||this.state===n.BeforeAttributeName||this.state===n.BeforeAttributeValue||this.state===n.AfterAttributeName||this.state===n.InAttributeName||this.state===n.InAttributeValueSq||this.state===n.InAttributeValueDq||this.state===n.InAttributeValueNq||this.state===n.InClosingTagName||this.cbs.ontext(this.sectionStart,e)},e.prototype.emitPartial=function(e,t){this.baseState!==n.Text&&this.baseState!==n.InSpecialTag?this.cbs.onattribdata(e,t):this.cbs.ontext(e,t)},e.prototype.emitCodePoint=function(e){this.baseState!==n.Text&&this.baseState!==n.InSpecialTag?this.cbs.onattribentity(e):this.cbs.ontextentity(e)},e}();e.default=l}(L$);var H$=S&&S.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),V$=S&&S.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),U$=S&&S.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&H$(t,e,n);return V$(t,e),t};Object.defineProperty(R$,"__esModule",{value:!0}),R$.Parser=void 0;var W$=U$(L$),$$=F$,G$=new Set(["input","option","optgroup","select","button","datalist","textarea"]),Y$=new Set(["p"]),X$=new Set(["thead","tbody"]),Z$=new Set(["dd","dt"]),K$=new Set(["rt","rp"]),J$=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",Y$],["h1",Y$],["h2",Y$],["h3",Y$],["h4",Y$],["h5",Y$],["h6",Y$],["select",G$],["input",G$],["output",G$],["button",G$],["datalist",G$],["textarea",G$],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",Z$],["dt",Z$],["address",Y$],["article",Y$],["aside",Y$],["blockquote",Y$],["details",Y$],["div",Y$],["dl",Y$],["fieldset",Y$],["figcaption",Y$],["figure",Y$],["footer",Y$],["form",Y$],["header",Y$],["hr",Y$],["main",Y$],["nav",Y$],["ol",Y$],["pre",Y$],["section",Y$],["table",Y$],["ul",Y$],["rt",K$],["rp",K$],["tbody",X$],["tfoot",X$]]),Q$=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),eG=new Set(["math","svg"]),tG=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),nG=/\s|\//,rG=function(){function e(e,t){var n,r,i,o,a;void 0===t&&(t={}),this.options=t,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=null!=e?e:{},this.lowerCaseTagNames=null!==(n=t.lowerCaseTags)&&void 0!==n?n:!t.xmlMode,this.lowerCaseAttributeNames=null!==(r=t.lowerCaseAttributeNames)&&void 0!==r?r:!t.xmlMode,this.tokenizer=new(null!==(i=t.Tokenizer)&&void 0!==i?i:W$.default)(this.options,this),null===(a=(o=this.cbs).onparserinit)||void 0===a||a.call(o,this)}return e.prototype.ontext=function(e,t){var n,r,i=this.getSlice(e,t);this.endIndex=t-1,null===(r=(n=this.cbs).ontext)||void 0===r||r.call(n,i),this.startIndex=t},e.prototype.ontextentity=function(e){var t,n,r=this.tokenizer.getSectionStart();this.endIndex=r-1,null===(n=(t=this.cbs).ontext)||void 0===n||n.call(t,(0,$$.fromCodePoint)(e)),this.startIndex=r},e.prototype.isVoidElement=function(e){return!this.options.xmlMode&&Q$.has(e)},e.prototype.onopentagname=function(e,t){this.endIndex=t;var n=this.getSlice(e,t);this.lowerCaseTagNames&&(n=n.toLowerCase()),this.emitOpenTag(n)},e.prototype.emitOpenTag=function(e){var t,n,r,i;this.openTagStart=this.startIndex,this.tagname=e;var o=!this.options.xmlMode&&J$.get(e);if(o)for(;this.stack.length>0&&o.has(this.stack[this.stack.length-1]);){var a=this.stack.pop();null===(n=(t=this.cbs).onclosetag)||void 0===n||n.call(t,a,!0)}this.isVoidElement(e)||(this.stack.push(e),eG.has(e)?this.foreignContext.push(!0):tG.has(e)&&this.foreignContext.push(!1)),null===(i=(r=this.cbs).onopentagname)||void 0===i||i.call(r,e),this.cbs.onopentag&&(this.attribs={})},e.prototype.endOpenTag=function(e){var t,n;this.startIndex=this.openTagStart,this.attribs&&(null===(n=(t=this.cbs).onopentag)||void 0===n||n.call(t,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},e.prototype.onopentagend=function(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1},e.prototype.onclosetag=function(e,t){var n,r,i,o,a,c;this.endIndex=t;var s=this.getSlice(e,t);if(this.lowerCaseTagNames&&(s=s.toLowerCase()),(eG.has(s)||tG.has(s))&&this.foreignContext.pop(),this.isVoidElement(s))this.options.xmlMode||"br"!==s||(null===(r=(n=this.cbs).onopentagname)||void 0===r||r.call(n,"br"),null===(o=(i=this.cbs).onopentag)||void 0===o||o.call(i,"br",{},!0),null===(c=(a=this.cbs).onclosetag)||void 0===c||c.call(a,"br",!1));else{var l=this.stack.lastIndexOf(s);if(-1!==l)if(this.cbs.onclosetag)for(var u=this.stack.length-l;u--;)this.cbs.onclosetag(this.stack.pop(),0!==u);else this.stack.length=l;else this.options.xmlMode||"p"!==s||(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=t+1},e.prototype.onselfclosingtag=function(e){this.endIndex=e,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)},e.prototype.closeCurrentTag=function(e){var t,n,r=this.tagname;this.endOpenTag(e),this.stack[this.stack.length-1]===r&&(null===(n=(t=this.cbs).onclosetag)||void 0===n||n.call(t,r,!e),this.stack.pop())},e.prototype.onattribname=function(e,t){this.startIndex=e;var n=this.getSlice(e,t);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n},e.prototype.onattribdata=function(e,t){this.attribvalue+=this.getSlice(e,t)},e.prototype.onattribentity=function(e){this.attribvalue+=(0,$$.fromCodePoint)(e)},e.prototype.onattribend=function(e,t){var n,r;this.endIndex=t,null===(r=(n=this.cbs).onattribute)||void 0===r||r.call(n,this.attribname,this.attribvalue,e===W$.QuoteType.Double?'"':e===W$.QuoteType.Single?"'":e===W$.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},e.prototype.getInstructionName=function(e){var t=e.search(nG),n=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n},e.prototype.ondeclaration=function(e,t){this.endIndex=t;var n=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){var r=this.getInstructionName(n);this.cbs.onprocessinginstruction("!".concat(r),"!".concat(n))}this.startIndex=t+1},e.prototype.onprocessinginstruction=function(e,t){this.endIndex=t;var n=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){var r=this.getInstructionName(n);this.cbs.onprocessinginstruction("?".concat(r),"?".concat(n))}this.startIndex=t+1},e.prototype.oncomment=function(e,t,n){var r,i,o,a;this.endIndex=t,null===(i=(r=this.cbs).oncomment)||void 0===i||i.call(r,this.getSlice(e,t-n)),null===(a=(o=this.cbs).oncommentend)||void 0===a||a.call(o),this.startIndex=t+1},e.prototype.oncdata=function(e,t,n){var r,i,o,a,c,s,l,u,f,p;this.endIndex=t;var d=this.getSlice(e,t-n);this.options.xmlMode||this.options.recognizeCDATA?(null===(i=(r=this.cbs).oncdatastart)||void 0===i||i.call(r),null===(a=(o=this.cbs).ontext)||void 0===a||a.call(o,d),null===(s=(c=this.cbs).oncdataend)||void 0===s||s.call(c)):(null===(u=(l=this.cbs).oncomment)||void 0===u||u.call(l,"[CDATA[".concat(d,"]]")),null===(p=(f=this.cbs).oncommentend)||void 0===p||p.call(f)),this.startIndex=t+1},e.prototype.onend=function(){var e,t;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var n=this.stack.length;n>0;this.cbs.onclosetag(this.stack[--n],!0));}null===(t=(e=this.cbs).onend)||void 0===t||t.call(e)},e.prototype.reset=function(){var e,t,n,r;null===(t=(e=this.cbs).onreset)||void 0===t||t.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,null===(r=(n=this.cbs).onparserinit)||void 0===r||r.call(n,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},e.prototype.parseComplete=function(e){this.reset(),this.end(e)},e.prototype.getSlice=function(e,t){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var n=this.buffers[0].slice(e-this.bufferOffset,t-this.bufferOffset);t-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,t-this.bufferOffset);return n},e.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},e.prototype.write=function(e){var t,n;this.ended?null===(n=(t=this.cbs).onerror)||void 0===n||n.call(t,new Error(".write() after done!")):(this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++))},e.prototype.end=function(e){var t,n;this.ended?null===(n=(t=this.cbs).onerror)||void 0===n||n.call(t,Error(".end() after done!")):(e&&this.write(e),this.ended=!0,this.tokenizer.end())},e.prototype.pause=function(){this.tokenizer.pause()},e.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()},e.prototype.parseChunk=function(e){this.write(e)},e.prototype.done=function(e){this.end(e)},e}();R$.Parser=rG;var iG={},oG={},aG=S&&S.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),cG=S&&S.__assign||function(){return cG=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},cG.apply(this,arguments)};Object.defineProperty(oG,"__esModule",{value:!0}),oG.cloneNode=oG.hasChildren=oG.isDocument=oG.isDirective=oG.isComment=oG.isText=oG.isCDATA=oG.isTag=oG.Element=oG.Document=oG.CDATA=oG.NodeWithChildren=oG.ProcessingInstruction=oG.Comment=oG.Text=oG.DataNode=oG.Node=void 0;var sG=p$,lG=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),SG(this,e)},e}();oG.Node=lG;var uG=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return aG(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(lG);oG.DataNode=uG;var fG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=sG.ElementType.Text,t}return aG(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(uG);oG.Text=fG;var pG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=sG.ElementType.Comment,t}return aG(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(uG);oG.Comment=pG;var dG=function(e){function t(t,n){var r=e.call(this,n)||this;return r.name=t,r.type=sG.ElementType.Directive,r}return aG(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(uG);oG.ProcessingInstruction=dG;var hG=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return aG(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(lG);oG.NodeWithChildren=hG;var mG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=sG.ElementType.CDATA,t}return aG(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(hG);oG.CDATA=mG;var yG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=sG.ElementType.Root,t}return aG(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(hG);oG.Document=yG;var vG=function(e){function t(t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i="script"===t?sG.ElementType.Script:"style"===t?sG.ElementType.Style:sG.ElementType.Tag);var o=e.call(this,r)||this;return o.name=t,o.attribs=n,o.type=i,o}return aG(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(hG);function gG(e){return(0,sG.isTag)(e)}function bG(e){return e.type===sG.ElementType.CDATA}function xG(e){return e.type===sG.ElementType.Text}function wG(e){return e.type===sG.ElementType.Comment}function kG(e){return e.type===sG.ElementType.Directive}function EG(e){return e.type===sG.ElementType.Root}function SG(e,t){var n;if(void 0===t&&(t=!1),xG(e))n=new fG(e.data);else if(wG(e))n=new pG(e.data);else if(gG(e)){var r=t?_G(e.children):[],i=new vG(e.name,cG({},e.attribs),r);r.forEach((function(e){return e.parent=i})),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=cG({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=cG({},e["x-attribsPrefix"])),n=i}else if(bG(e)){r=t?_G(e.children):[];var o=new mG(r);r.forEach((function(e){return e.parent=o})),n=o}else if(EG(e)){r=t?_G(e.children):[];var a=new yG(r);r.forEach((function(e){return e.parent=a})),e["x-mode"]&&(a["x-mode"]=e["x-mode"]),n=a}else{if(!kG(e))throw new Error("Not implemented yet: ".concat(e.type));var c=new dG(e.name,e.data);null!=e["x-name"]&&(c["x-name"]=e["x-name"],c["x-publicId"]=e["x-publicId"],c["x-systemId"]=e["x-systemId"]),n=c}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function _G(e){for(var t=e.map((function(e){return SG(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}oG.Element=vG,oG.isTag=gG,oG.isCDATA=bG,oG.isText=xG,oG.isComment=wG,oG.isDirective=kG,oG.isDocument=EG,oG.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},oG.cloneNode=SG,function(e){var t=S&&S.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=S&&S.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var r=p$,i=oG;n(oG,e);var o={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},a=function(){function e(e,t,n){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=o),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:o,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?r.ElementType.Tag:void 0,o=new i.Element(e,t,void 0,n);this.addNode(o),this.tagStack.push(o)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===r.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new i.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment)this.lastNode.data+=e;else{var t=new i.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new i.Text(""),t=new i.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new i.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();e.DomHandler=a,e.default=a}(iG);var OG={},AG={},CG={},TG={},PG={},DG={};function jG(e){for(var t=1;t<e.length;t++)e[t][0]+=e[t-1][0]+1;return e}Object.defineProperty(DG,"__esModule",{value:!0}),DG.default=new Map(jG([[9,"	"],[0,"
"],[22,"!"],[0,"""],[0,"#"],[0,"$"],[0,"%"],[0,"&"],[0,"'"],[0,"("],[0,")"],[0,"*"],[0,"+"],[0,","],[1,"."],[0,"/"],[10,":"],[0,";"],[0,{v:"<",n:8402,o:"<⃒"}],[0,{v:"=",n:8421,o:"=⃥"}],[0,{v:">",n:8402,o:">⃒"}],[0,"?"],[0,"@"],[26,"["],[0,"\"],[0,"]"],[0,"^"],[0,"_"],[0,"`"],[5,{n:106,o:"fj"}],[20,"{"],[0,"|"],[0,"}"],[34," "],[0,"¡"],[0,"¢"],[0,"£"],[0,"¤"],[0,"¥"],[0,"¦"],[0,"§"],[0,"¨"],[0,"©"],[0,"ª"],[0,"«"],[0,"¬"],[0,"­"],[0,"®"],[0,"¯"],[0,"°"],[0,"±"],[0,"²"],[0,"³"],[0,"´"],[0,"µ"],[0,"¶"],[0,"·"],[0,"¸"],[0,"¹"],[0,"º"],[0,"»"],[0,"¼"],[0,"½"],[0,"¾"],[0,"¿"],[0,"À"],[0,"Á"],[0,"Â"],[0,"Ã"],[0,"Ä"],[0,"Å"],[0,"Æ"],[0,"Ç"],[0,"È"],[0,"É"],[0,"Ê"],[0,"Ë"],[0,"Ì"],[0,"Í"],[0,"Î"],[0,"Ï"],[0,"Ð"],[0,"Ñ"],[0,"Ò"],[0,"Ó"],[0,"Ô"],[0,"Õ"],[0,"Ö"],[0,"×"],[0,"Ø"],[0,"Ù"],[0,"Ú"],[0,"Û"],[0,"Ü"],[0,"Ý"],[0,"Þ"],[0,"ß"],[0,"à"],[0,"á"],[0,"â"],[0,"ã"],[0,"ä"],[0,"å"],[0,"æ"],[0,"ç"],[0,"è"],[0,"é"],[0,"ê"],[0,"ë"],[0,"ì"],[0,"í"],[0,"î"],[0,"ï"],[0,"ð"],[0,"ñ"],[0,"ò"],[0,"ó"],[0,"ô"],[0,"õ"],[0,"ö"],[0,"÷"],[0,"ø"],[0,"ù"],[0,"ú"],[0,"û"],[0,"ü"],[0,"ý"],[0,"þ"],[0,"ÿ"],[0,"Ā"],[0,"ā"],[0,"Ă"],[0,"ă"],[0,"Ą"],[0,"ą"],[0,"Ć"],[0,"ć"],[0,"Ĉ"],[0,"ĉ"],[0,"Ċ"],[0,"ċ"],[0,"Č"],[0,"č"],[0,"Ď"],[0,"ď"],[0,"Đ"],[0,"đ"],[0,"Ē"],[0,"ē"],[2,"Ė"],[0,"ė"],[0,"Ę"],[0,"ę"],[0,"Ě"],[0,"ě"],[0,"Ĝ"],[0,"ĝ"],[0,"Ğ"],[0,"ğ"],[0,"Ġ"],[0,"ġ"],[0,"Ģ"],[1,"Ĥ"],[0,"ĥ"],[0,"Ħ"],[0,"ħ"],[0,"Ĩ"],[0,"ĩ"],[0,"Ī"],[0,"ī"],[2,"Į"],[0,"į"],[0,"İ"],[0,"ı"],[0,"IJ"],[0,"ij"],[0,"Ĵ"],[0,"ĵ"],[0,"Ķ"],[0,"ķ"],[0,"ĸ"],[0,"Ĺ"],[0,"ĺ"],[0,"Ļ"],[0,"ļ"],[0,"Ľ"],[0,"ľ"],[0,"Ŀ"],[0,"ŀ"],[0,"Ł"],[0,"ł"],[0,"Ń"],[0,"ń"],[0,"Ņ"],[0,"ņ"],[0,"Ň"],[0,"ň"],[0,"ʼn"],[0,"Ŋ"],[0,"ŋ"],[0,"Ō"],[0,"ō"],[2,"Ő"],[0,"ő"],[0,"Œ"],[0,"œ"],[0,"Ŕ"],[0,"ŕ"],[0,"Ŗ"],[0,"ŗ"],[0,"Ř"],[0,"ř"],[0,"Ś"],[0,"ś"],[0,"Ŝ"],[0,"ŝ"],[0,"Ş"],[0,"ş"],[0,"Š"],[0,"š"],[0,"Ţ"],[0,"ţ"],[0,"Ť"],[0,"ť"],[0,"Ŧ"],[0,"ŧ"],[0,"Ũ"],[0,"ũ"],[0,"Ū"],[0,"ū"],[0,"Ŭ"],[0,"ŭ"],[0,"Ů"],[0,"ů"],[0,"Ű"],[0,"ű"],[0,"Ų"],[0,"ų"],[0,"Ŵ"],[0,"ŵ"],[0,"Ŷ"],[0,"ŷ"],[0,"Ÿ"],[0,"Ź"],[0,"ź"],[0,"Ż"],[0,"ż"],[0,"Ž"],[0,"ž"],[19,"ƒ"],[34,"Ƶ"],[63,"ǵ"],[65,"ȷ"],[142,"ˆ"],[0,"ˇ"],[16,"˘"],[0,"˙"],[0,"˚"],[0,"˛"],[0,"˜"],[0,"˝"],[51,"̑"],[127,"Α"],[0,"Β"],[0,"Γ"],[0,"Δ"],[0,"Ε"],[0,"Ζ"],[0,"Η"],[0,"Θ"],[0,"Ι"],[0,"Κ"],[0,"Λ"],[0,"Μ"],[0,"Ν"],[0,"Ξ"],[0,"Ο"],[0,"Π"],[0,"Ρ"],[1,"Σ"],[0,"Τ"],[0,"Υ"],[0,"Φ"],[0,"Χ"],[0,"Ψ"],[0,"Ω"],[7,"α"],[0,"β"],[0,"γ"],[0,"δ"],[0,"ε"],[0,"ζ"],[0,"η"],[0,"θ"],[0,"ι"],[0,"κ"],[0,"λ"],[0,"μ"],[0,"ν"],[0,"ξ"],[0,"ο"],[0,"π"],[0,"ρ"],[0,"ς"],[0,"σ"],[0,"τ"],[0,"υ"],[0,"φ"],[0,"χ"],[0,"ψ"],[0,"ω"],[7,"ϑ"],[0,"ϒ"],[2,"ϕ"],[0,"ϖ"],[5,"Ϝ"],[0,"ϝ"],[18,"ϰ"],[0,"ϱ"],[3,"ϵ"],[0,"϶"],[10,"Ё"],[0,"Ђ"],[0,"Ѓ"],[0,"Є"],[0,"Ѕ"],[0,"І"],[0,"Ї"],[0,"Ј"],[0,"Љ"],[0,"Њ"],[0,"Ћ"],[0,"Ќ"],[1,"Ў"],[0,"Џ"],[0,"А"],[0,"Б"],[0,"В"],[0,"Г"],[0,"Д"],[0,"Е"],[0,"Ж"],[0,"З"],[0,"И"],[0,"Й"],[0,"К"],[0,"Л"],[0,"М"],[0,"Н"],[0,"О"],[0,"П"],[0,"Р"],[0,"С"],[0,"Т"],[0,"У"],[0,"Ф"],[0,"Х"],[0,"Ц"],[0,"Ч"],[0,"Ш"],[0,"Щ"],[0,"Ъ"],[0,"Ы"],[0,"Ь"],[0,"Э"],[0,"Ю"],[0,"Я"],[0,"а"],[0,"б"],[0,"в"],[0,"г"],[0,"д"],[0,"е"],[0,"ж"],[0,"з"],[0,"и"],[0,"й"],[0,"к"],[0,"л"],[0,"м"],[0,"н"],[0,"о"],[0,"п"],[0,"р"],[0,"с"],[0,"т"],[0,"у"],[0,"ф"],[0,"х"],[0,"ц"],[0,"ч"],[0,"ш"],[0,"щ"],[0,"ъ"],[0,"ы"],[0,"ь"],[0,"э"],[0,"ю"],[0,"я"],[1,"ё"],[0,"ђ"],[0,"ѓ"],[0,"є"],[0,"ѕ"],[0,"і"],[0,"ї"],[0,"ј"],[0,"љ"],[0,"њ"],[0,"ћ"],[0,"ќ"],[1,"ў"],[0,"џ"],[7074," "],[0," "],[0," "],[0," "],[1," "],[0," "],[0," "],[0," "],[0,"​"],[0,"‌"],[0,"‍"],[0,"‎"],[0,"‏"],[0,"‐"],[2,"–"],[0,"—"],[0,"―"],[0,"‖"],[1,"‘"],[0,"’"],[0,"‚"],[1,"“"],[0,"”"],[0,"„"],[1,"†"],[0,"‡"],[0,"•"],[2,"‥"],[0,"…"],[9,"‰"],[0,"‱"],[0,"′"],[0,"″"],[0,"‴"],[0,"‵"],[3,"‹"],[0,"›"],[3,"‾"],[2,"⁁"],[1,"⁃"],[0,"⁄"],[10,"⁏"],[7,"⁗"],[7,{v:" ",n:8202,o:"  "}],[0,"⁠"],[0,"⁡"],[0,"⁢"],[0,"⁣"],[72,"€"],[46,"⃛"],[0,"⃜"],[37,"ℂ"],[2,"℅"],[4,"ℊ"],[0,"ℋ"],[0,"ℌ"],[0,"ℍ"],[0,"ℎ"],[0,"ℏ"],[0,"ℐ"],[0,"ℑ"],[0,"ℒ"],[0,"ℓ"],[1,"ℕ"],[0,"№"],[0,"℗"],[0,"℘"],[0,"ℙ"],[0,"ℚ"],[0,"ℛ"],[0,"ℜ"],[0,"ℝ"],[0,"℞"],[3,"™"],[1,"ℤ"],[2,"℧"],[0,"ℨ"],[0,"℩"],[2,"ℬ"],[0,"ℭ"],[1,"ℯ"],[0,"ℰ"],[0,"ℱ"],[1,"ℳ"],[0,"ℴ"],[0,"ℵ"],[0,"ℶ"],[0,"ℷ"],[0,"ℸ"],[12,"ⅅ"],[0,"ⅆ"],[0,"ⅇ"],[0,"ⅈ"],[10,"⅓"],[0,"⅔"],[0,"⅕"],[0,"⅖"],[0,"⅗"],[0,"⅘"],[0,"⅙"],[0,"⅚"],[0,"⅛"],[0,"⅜"],[0,"⅝"],[0,"⅞"],[49,"←"],[0,"↑"],[0,"→"],[0,"↓"],[0,"↔"],[0,"↕"],[0,"↖"],[0,"↗"],[0,"↘"],[0,"↙"],[0,"↚"],[0,"↛"],[1,{v:"↝",n:824,o:"↝̸"}],[0,"↞"],[0,"↟"],[0,"↠"],[0,"↡"],[0,"↢"],[0,"↣"],[0,"↤"],[0,"↥"],[0,"↦"],[0,"↧"],[1,"↩"],[0,"↪"],[0,"↫"],[0,"↬"],[0,"↭"],[0,"↮"],[1,"↰"],[0,"↱"],[0,"↲"],[0,"↳"],[1,"↵"],[0,"↶"],[0,"↷"],[2,"↺"],[0,"↻"],[0,"↼"],[0,"↽"],[0,"↾"],[0,"↿"],[0,"⇀"],[0,"⇁"],[0,"⇂"],[0,"⇃"],[0,"⇄"],[0,"⇅"],[0,"⇆"],[0,"⇇"],[0,"⇈"],[0,"⇉"],[0,"⇊"],[0,"⇋"],[0,"⇌"],[0,"⇍"],[0,"⇎"],[0,"⇏"],[0,"⇐"],[0,"⇑"],[0,"⇒"],[0,"⇓"],[0,"⇔"],[0,"⇕"],[0,"⇖"],[0,"⇗"],[0,"⇘"],[0,"⇙"],[0,"⇚"],[0,"⇛"],[1,"⇝"],[6,"⇤"],[0,"⇥"],[15,"⇵"],[7,"⇽"],[0,"⇾"],[0,"⇿"],[0,"∀"],[0,"∁"],[0,{v:"∂",n:824,o:"∂̸"}],[0,"∃"],[0,"∄"],[0,"∅"],[1,"∇"],[0,"∈"],[0,"∉"],[1,"∋"],[0,"∌"],[2,"∏"],[0,"∐"],[0,"∑"],[0,"−"],[0,"∓"],[0,"∔"],[1,"∖"],[0,"∗"],[0,"∘"],[1,"√"],[2,"∝"],[0,"∞"],[0,"∟"],[0,{v:"∠",n:8402,o:"∠⃒"}],[0,"∡"],[0,"∢"],[0,"∣"],[0,"∤"],[0,"∥"],[0,"∦"],[0,"∧"],[0,"∨"],[0,{v:"∩",n:65024,o:"∩︀"}],[0,{v:"∪",n:65024,o:"∪︀"}],[0,"∫"],[0,"∬"],[0,"∭"],[0,"∮"],[0,"∯"],[0,"∰"],[0,"∱"],[0,"∲"],[0,"∳"],[0,"∴"],[0,"∵"],[0,"∶"],[0,"∷"],[0,"∸"],[1,"∺"],[0,"∻"],[0,{v:"∼",n:8402,o:"∼⃒"}],[0,{v:"∽",n:817,o:"∽̱"}],[0,{v:"∾",n:819,o:"∾̳"}],[0,"∿"],[0,"≀"],[0,"≁"],[0,{v:"≂",n:824,o:"≂̸"}],[0,"≃"],[0,"≄"],[0,"≅"],[0,"≆"],[0,"≇"],[0,"≈"],[0,"≉"],[0,"≊"],[0,{v:"≋",n:824,o:"≋̸"}],[0,"≌"],[0,{v:"≍",n:8402,o:"≍⃒"}],[0,{v:"≎",n:824,o:"≎̸"}],[0,{v:"≏",n:824,o:"≏̸"}],[0,{v:"≐",n:824,o:"≐̸"}],[0,"≑"],[0,"≒"],[0,"≓"],[0,"≔"],[0,"≕"],[0,"≖"],[0,"≗"],[1,"≙"],[0,"≚"],[1,"≜"],[2,"≟"],[0,"≠"],[0,{v:"≡",n:8421,o:"≡⃥"}],[0,"≢"],[1,{v:"≤",n:8402,o:"≤⃒"}],[0,{v:"≥",n:8402,o:"≥⃒"}],[0,{v:"≦",n:824,o:"≦̸"}],[0,{v:"≧",n:824,o:"≧̸"}],[0,{v:"≨",n:65024,o:"≨︀"}],[0,{v:"≩",n:65024,o:"≩︀"}],[0,{v:"≪",n:new Map(jG([[824,"≪̸"],[7577,"≪⃒"]]))}],[0,{v:"≫",n:new Map(jG([[824,"≫̸"],[7577,"≫⃒"]]))}],[0,"≬"],[0,"≭"],[0,"≮"],[0,"≯"],[0,"≰"],[0,"≱"],[0,"≲"],[0,"≳"],[0,"≴"],[0,"≵"],[0,"≶"],[0,"≷"],[0,"≸"],[0,"≹"],[0,"≺"],[0,"≻"],[0,"≼"],[0,"≽"],[0,"≾"],[0,{v:"≿",n:824,o:"≿̸"}],[0,"⊀"],[0,"⊁"],[0,{v:"⊂",n:8402,o:"⊂⃒"}],[0,{v:"⊃",n:8402,o:"⊃⃒"}],[0,"⊄"],[0,"⊅"],[0,"⊆"],[0,"⊇"],[0,"⊈"],[0,"⊉"],[0,{v:"⊊",n:65024,o:"⊊︀"}],[0,{v:"⊋",n:65024,o:"⊋︀"}],[1,"⊍"],[0,"⊎"],[0,{v:"⊏",n:824,o:"⊏̸"}],[0,{v:"⊐",n:824,o:"⊐̸"}],[0,"⊑"],[0,"⊒"],[0,{v:"⊓",n:65024,o:"⊓︀"}],[0,{v:"⊔",n:65024,o:"⊔︀"}],[0,"⊕"],[0,"⊖"],[0,"⊗"],[0,"⊘"],[0,"⊙"],[0,"⊚"],[0,"⊛"],[1,"⊝"],[0,"⊞"],[0,"⊟"],[0,"⊠"],[0,"⊡"],[0,"⊢"],[0,"⊣"],[0,"⊤"],[0,"⊥"],[1,"⊧"],[0,"⊨"],[0,"⊩"],[0,"⊪"],[0,"⊫"],[0,"⊬"],[0,"⊭"],[0,"⊮"],[0,"⊯"],[0,"⊰"],[1,"⊲"],[0,"⊳"],[0,{v:"⊴",n:8402,o:"⊴⃒"}],[0,{v:"⊵",n:8402,o:"⊵⃒"}],[0,"⊶"],[0,"⊷"],[0,"⊸"],[0,"⊹"],[0,"⊺"],[0,"⊻"],[1,"⊽"],[0,"⊾"],[0,"⊿"],[0,"⋀"],[0,"⋁"],[0,"⋂"],[0,"⋃"],[0,"⋄"],[0,"⋅"],[0,"⋆"],[0,"⋇"],[0,"⋈"],[0,"⋉"],[0,"⋊"],[0,"⋋"],[0,"⋌"],[0,"⋍"],[0,"⋎"],[0,"⋏"],[0,"⋐"],[0,"⋑"],[0,"⋒"],[0,"⋓"],[0,"⋔"],[0,"⋕"],[0,"⋖"],[0,"⋗"],[0,{v:"⋘",n:824,o:"⋘̸"}],[0,{v:"⋙",n:824,o:"⋙̸"}],[0,{v:"⋚",n:65024,o:"⋚︀"}],[0,{v:"⋛",n:65024,o:"⋛︀"}],[2,"⋞"],[0,"⋟"],[0,"⋠"],[0,"⋡"],[0,"⋢"],[0,"⋣"],[2,"⋦"],[0,"⋧"],[0,"⋨"],[0,"⋩"],[0,"⋪"],[0,"⋫"],[0,"⋬"],[0,"⋭"],[0,"⋮"],[0,"⋯"],[0,"⋰"],[0,"⋱"],[0,"⋲"],[0,"⋳"],[0,"⋴"],[0,{v:"⋵",n:824,o:"⋵̸"}],[0,"⋶"],[0,"⋷"],[1,{v:"⋹",n:824,o:"⋹̸"}],[0,"⋺"],[0,"⋻"],[0,"⋼"],[0,"⋽"],[0,"⋾"],[6,"⌅"],[0,"⌆"],[1,"⌈"],[0,"⌉"],[0,"⌊"],[0,"⌋"],[0,"⌌"],[0,"⌍"],[0,"⌎"],[0,"⌏"],[0,"⌐"],[1,"⌒"],[0,"⌓"],[1,"⌕"],[0,"⌖"],[5,"⌜"],[0,"⌝"],[0,"⌞"],[0,"⌟"],[2,"⌢"],[0,"⌣"],[9,"⌭"],[0,"⌮"],[7,"⌶"],[6,"⌽"],[1,"⌿"],[60,"⍼"],[51,"⎰"],[0,"⎱"],[2,"⎴"],[0,"⎵"],[0,"⎶"],[37,"⏜"],[0,"⏝"],[0,"⏞"],[0,"⏟"],[2,"⏢"],[4,"⏧"],[59,"␣"],[164,"Ⓢ"],[55,"─"],[1,"│"],[9,"┌"],[3,"┐"],[3,"└"],[3,"┘"],[3,"├"],[7,"┤"],[7,"┬"],[7,"┴"],[7,"┼"],[19,"═"],[0,"║"],[0,"╒"],[0,"╓"],[0,"╔"],[0,"╕"],[0,"╖"],[0,"╗"],[0,"╘"],[0,"╙"],[0,"╚"],[0,"╛"],[0,"╜"],[0,"╝"],[0,"╞"],[0,"╟"],[0,"╠"],[0,"╡"],[0,"╢"],[0,"╣"],[0,"╤"],[0,"╥"],[0,"╦"],[0,"╧"],[0,"╨"],[0,"╩"],[0,"╪"],[0,"╫"],[0,"╬"],[19,"▀"],[3,"▄"],[3,"█"],[8,"░"],[0,"▒"],[0,"▓"],[13,"□"],[8,"▪"],[0,"▫"],[1,"▭"],[0,"▮"],[2,"▱"],[1,"△"],[0,"▴"],[0,"▵"],[2,"▸"],[0,"▹"],[3,"▽"],[0,"▾"],[0,"▿"],[2,"◂"],[0,"◃"],[6,"◊"],[0,"○"],[32,"◬"],[2,"◯"],[8,"◸"],[0,"◹"],[0,"◺"],[0,"◻"],[0,"◼"],[8,"★"],[0,"☆"],[7,"☎"],[49,"♀"],[1,"♂"],[29,"♠"],[2,"♣"],[1,"♥"],[0,"♦"],[3,"♪"],[2,"♭"],[0,"♮"],[0,"♯"],[163,"✓"],[3,"✗"],[8,"✠"],[21,"✶"],[33,"❘"],[25,"❲"],[0,"❳"],[84,"⟈"],[0,"⟉"],[28,"⟦"],[0,"⟧"],[0,"⟨"],[0,"⟩"],[0,"⟪"],[0,"⟫"],[0,"⟬"],[0,"⟭"],[7,"⟵"],[0,"⟶"],[0,"⟷"],[0,"⟸"],[0,"⟹"],[0,"⟺"],[1,"⟼"],[2,"⟿"],[258,"⤂"],[0,"⤃"],[0,"⤄"],[0,"⤅"],[6,"⤌"],[0,"⤍"],[0,"⤎"],[0,"⤏"],[0,"⤐"],[0,"⤑"],[0,"⤒"],[0,"⤓"],[2,"⤖"],[2,"⤙"],[0,"⤚"],[0,"⤛"],[0,"⤜"],[0,"⤝"],[0,"⤞"],[0,"⤟"],[0,"⤠"],[2,"⤣"],[0,"⤤"],[0,"⤥"],[0,"⤦"],[0,"⤧"],[0,"⤨"],[0,"⤩"],[0,"⤪"],[8,{v:"⤳",n:824,o:"⤳̸"}],[1,"⤵"],[0,"⤶"],[0,"⤷"],[0,"⤸"],[0,"⤹"],[2,"⤼"],[0,"⤽"],[7,"⥅"],[2,"⥈"],[0,"⥉"],[0,"⥊"],[0,"⥋"],[2,"⥎"],[0,"⥏"],[0,"⥐"],[0,"⥑"],[0,"⥒"],[0,"⥓"],[0,"⥔"],[0,"⥕"],[0,"⥖"],[0,"⥗"],[0,"⥘"],[0,"⥙"],[0,"⥚"],[0,"⥛"],[0,"⥜"],[0,"⥝"],[0,"⥞"],[0,"⥟"],[0,"⥠"],[0,"⥡"],[0,"⥢"],[0,"⥣"],[0,"⥤"],[0,"⥥"],[0,"⥦"],[0,"⥧"],[0,"⥨"],[0,"⥩"],[0,"⥪"],[0,"⥫"],[0,"⥬"],[0,"⥭"],[0,"⥮"],[0,"⥯"],[0,"⥰"],[0,"⥱"],[0,"⥲"],[0,"⥳"],[0,"⥴"],[0,"⥵"],[0,"⥶"],[1,"⥸"],[0,"⥹"],[1,"⥻"],[0,"⥼"],[0,"⥽"],[0,"⥾"],[0,"⥿"],[5,"⦅"],[0,"⦆"],[4,"⦋"],[0,"⦌"],[0,"⦍"],[0,"⦎"],[0,"⦏"],[0,"⦐"],[0,"⦑"],[0,"⦒"],[0,"⦓"],[0,"⦔"],[0,"⦕"],[0,"⦖"],[3,"⦚"],[1,"⦜"],[0,"⦝"],[6,"⦤"],[0,"⦥"],[0,"⦦"],[0,"⦧"],[0,"⦨"],[0,"⦩"],[0,"⦪"],[0,"⦫"],[0,"⦬"],[0,"⦭"],[0,"⦮"],[0,"⦯"],[0,"⦰"],[0,"⦱"],[0,"⦲"],[0,"⦳"],[0,"⦴"],[0,"⦵"],[0,"⦶"],[0,"⦷"],[1,"⦹"],[1,"⦻"],[0,"⦼"],[1,"⦾"],[0,"⦿"],[0,"⧀"],[0,"⧁"],[0,"⧂"],[0,"⧃"],[0,"⧄"],[0,"⧅"],[3,"⧉"],[3,"⧍"],[0,"⧎"],[0,{v:"⧏",n:824,o:"⧏̸"}],[0,{v:"⧐",n:824,o:"⧐̸"}],[11,"⧜"],[0,"⧝"],[0,"⧞"],[4,"⧣"],[0,"⧤"],[0,"⧥"],[5,"⧫"],[8,"⧴"],[1,"⧶"],[9,"⨀"],[0,"⨁"],[0,"⨂"],[1,"⨄"],[1,"⨆"],[5,"⨌"],[0,"⨍"],[2,"⨐"],[0,"⨑"],[0,"⨒"],[0,"⨓"],[0,"⨔"],[0,"⨕"],[0,"⨖"],[0,"⨗"],[10,"⨢"],[0,"⨣"],[0,"⨤"],[0,"⨥"],[0,"⨦"],[0,"⨧"],[1,"⨩"],[0,"⨪"],[2,"⨭"],[0,"⨮"],[0,"⨯"],[0,"⨰"],[0,"⨱"],[1,"⨳"],[0,"⨴"],[0,"⨵"],[0,"⨶"],[0,"⨷"],[0,"⨸"],[0,"⨹"],[0,"⨺"],[0,"⨻"],[0,"⨼"],[2,"⨿"],[0,"⩀"],[1,"⩂"],[0,"⩃"],[0,"⩄"],[0,"⩅"],[0,"⩆"],[0,"⩇"],[0,"⩈"],[0,"⩉"],[0,"⩊"],[0,"⩋"],[0,"⩌"],[0,"⩍"],[2,"⩐"],[2,"⩓"],[0,"⩔"],[0,"⩕"],[0,"⩖"],[0,"⩗"],[0,"⩘"],[1,"⩚"],[0,"⩛"],[0,"⩜"],[0,"⩝"],[1,"⩟"],[6,"⩦"],[3,"⩪"],[2,{v:"⩭",n:824,o:"⩭̸"}],[0,"⩮"],[0,"⩯"],[0,{v:"⩰",n:824,o:"⩰̸"}],[0,"⩱"],[0,"⩲"],[0,"⩳"],[0,"⩴"],[0,"⩵"],[1,"⩷"],[0,"⩸"],[0,"⩹"],[0,"⩺"],[0,"⩻"],[0,"⩼"],[0,{v:"⩽",n:824,o:"⩽̸"}],[0,{v:"⩾",n:824,o:"⩾̸"}],[0,"⩿"],[0,"⪀"],[0,"⪁"],[0,"⪂"],[0,"⪃"],[0,"⪄"],[0,"⪅"],[0,"⪆"],[0,"⪇"],[0,"⪈"],[0,"⪉"],[0,"⪊"],[0,"⪋"],[0,"⪌"],[0,"⪍"],[0,"⪎"],[0,"⪏"],[0,"⪐"],[0,"⪑"],[0,"⪒"],[0,"⪓"],[0,"⪔"],[0,"⪕"],[0,"⪖"],[0,"⪗"],[0,"⪘"],[0,"⪙"],[0,"⪚"],[2,"⪝"],[0,"⪞"],[0,"⪟"],[0,"⪠"],[0,{v:"⪡",n:824,o:"⪡̸"}],[0,{v:"⪢",n:824,o:"⪢̸"}],[1,"⪤"],[0,"⪥"],[0,"⪦"],[0,"⪧"],[0,"⪨"],[0,"⪩"],[0,"⪪"],[0,"⪫"],[0,{v:"⪬",n:65024,o:"⪬︀"}],[0,{v:"⪭",n:65024,o:"⪭︀"}],[0,"⪮"],[0,{v:"⪯",n:824,o:"⪯̸"}],[0,{v:"⪰",n:824,o:"⪰̸"}],[2,"⪳"],[0,"⪴"],[0,"⪵"],[0,"⪶"],[0,"⪷"],[0,"⪸"],[0,"⪹"],[0,"⪺"],[0,"⪻"],[0,"⪼"],[0,"⪽"],[0,"⪾"],[0,"⪿"],[0,"⫀"],[0,"⫁"],[0,"⫂"],[0,"⫃"],[0,"⫄"],[0,{v:"⫅",n:824,o:"⫅̸"}],[0,{v:"⫆",n:824,o:"⫆̸"}],[0,"⫇"],[0,"⫈"],[2,{v:"⫋",n:65024,o:"⫋︀"}],[0,{v:"⫌",n:65024,o:"⫌︀"}],[2,"⫏"],[0,"⫐"],[0,"⫑"],[0,"⫒"],[0,"⫓"],[0,"⫔"],[0,"⫕"],[0,"⫖"],[0,"⫗"],[0,"⫘"],[0,"⫙"],[0,"⫚"],[0,"⫛"],[8,"⫤"],[1,"⫦"],[0,"⫧"],[0,"⫨"],[0,"⫩"],[1,"⫫"],[0,"⫬"],[0,"⫭"],[0,"⫮"],[0,"⫯"],[0,"⫰"],[0,"⫱"],[0,"⫲"],[0,"⫳"],[9,{v:"⫽",n:8421,o:"⫽⃥"}],[44343,{n:new Map(jG([[56476,"𝒜"],[1,"𝒞"],[0,"𝒟"],[2,"𝒢"],[2,"𝒥"],[0,"𝒦"],[2,"𝒩"],[0,"𝒪"],[0,"𝒫"],[0,"𝒬"],[1,"𝒮"],[0,"𝒯"],[0,"𝒰"],[0,"𝒱"],[0,"𝒲"],[0,"𝒳"],[0,"𝒴"],[0,"𝒵"],[0,"𝒶"],[0,"𝒷"],[0,"𝒸"],[0,"𝒹"],[1,"𝒻"],[1,"𝒽"],[0,"𝒾"],[0,"𝒿"],[0,"𝓀"],[0,"𝓁"],[0,"𝓂"],[0,"𝓃"],[1,"𝓅"],[0,"𝓆"],[0,"𝓇"],[0,"𝓈"],[0,"𝓉"],[0,"𝓊"],[0,"𝓋"],[0,"𝓌"],[0,"𝓍"],[0,"𝓎"],[0,"𝓏"],[52,"𝔄"],[0,"𝔅"],[1,"𝔇"],[0,"𝔈"],[0,"𝔉"],[0,"𝔊"],[2,"𝔍"],[0,"𝔎"],[0,"𝔏"],[0,"𝔐"],[0,"𝔑"],[0,"𝔒"],[0,"𝔓"],[0,"𝔔"],[1,"𝔖"],[0,"𝔗"],[0,"𝔘"],[0,"𝔙"],[0,"𝔚"],[0,"𝔛"],[0,"𝔜"],[1,"𝔞"],[0,"𝔟"],[0,"𝔠"],[0,"𝔡"],[0,"𝔢"],[0,"𝔣"],[0,"𝔤"],[0,"𝔥"],[0,"𝔦"],[0,"𝔧"],[0,"𝔨"],[0,"𝔩"],[0,"𝔪"],[0,"𝔫"],[0,"𝔬"],[0,"𝔭"],[0,"𝔮"],[0,"𝔯"],[0,"𝔰"],[0,"𝔱"],[0,"𝔲"],[0,"𝔳"],[0,"𝔴"],[0,"𝔵"],[0,"𝔶"],[0,"𝔷"],[0,"𝔸"],[0,"𝔹"],[1,"𝔻"],[0,"𝔼"],[0,"𝔽"],[0,"𝔾"],[1,"𝕀"],[0,"𝕁"],[0,"𝕂"],[0,"𝕃"],[0,"𝕄"],[1,"𝕆"],[3,"𝕊"],[0,"𝕋"],[0,"𝕌"],[0,"𝕍"],[0,"𝕎"],[0,"𝕏"],[0,"𝕐"],[1,"𝕒"],[0,"𝕓"],[0,"𝕔"],[0,"𝕕"],[0,"𝕖"],[0,"𝕗"],[0,"𝕘"],[0,"𝕙"],[0,"𝕚"],[0,"𝕛"],[0,"𝕜"],[0,"𝕝"],[0,"𝕞"],[0,"𝕟"],[0,"𝕠"],[0,"𝕡"],[0,"𝕢"],[0,"𝕣"],[0,"𝕤"],[0,"𝕥"],[0,"𝕦"],[0,"𝕧"],[0,"𝕨"],[0,"𝕩"],[0,"𝕪"],[0,"𝕫"]]))}],[8906,"ff"],[0,"fi"],[0,"fl"],[0,"ffi"],[0,"ffl"]]));var MG={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.escapeText=e.escapeAttribute=e.escapeUTF8=e.escape=e.encodeXML=e.getCodePoint=e.xmlReplacer=void 0,e.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var t=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);function n(n){for(var r,i="",o=0;null!==(r=e.xmlReplacer.exec(n));){var a=r.index,c=n.charCodeAt(a),s=t.get(c);void 0!==s?(i+=n.substring(o,a)+s,o=a+1):(i+="".concat(n.substring(o,a),"&#x").concat((0,e.getCodePoint)(n,a).toString(16),";"),o=e.xmlReplacer.lastIndex+=Number(55296==(64512&c)))}return i+n.substr(o)}function r(e,t){return function(n){for(var r,i=0,o="";r=e.exec(n);)i!==r.index&&(o+=n.substring(i,r.index)),o+=t.get(r[0].charCodeAt(0)),i=r.index+1;return o+n.substring(i)}}e.getCodePoint=null!=String.prototype.codePointAt?function(e,t){return e.codePointAt(t)}:function(e,t){return 55296==(64512&e.charCodeAt(t))?1024*(e.charCodeAt(t)-55296)+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t)},e.encodeXML=n,e.escape=n,e.escapeUTF8=r(/[&<>'"]/g,t),e.escapeAttribute=r(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),e.escapeText=r(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))}(MG);var NG=S&&S.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(PG,"__esModule",{value:!0}),PG.encodeNonAsciiHTML=PG.encodeHTML=void 0;var IG=NG(DG),RG=MG,LG=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function FG(e,t){for(var n,r="",i=0;null!==(n=e.exec(t));){var o=n.index;r+=t.substring(i,o);var a=t.charCodeAt(o),c=IG.default.get(a);if("object"==typeof c){if(o+1<t.length){var s=t.charCodeAt(o+1),l="number"==typeof c.n?c.n===s?c.o:void 0:c.n.get(s);if(void 0!==l){r+=l,i=e.lastIndex+=1;continue}}c=c.v}if(void 0!==c)r+=c,i=o+1;else{var u=(0,RG.getCodePoint)(t,o);r+="&#x".concat(u.toString(16),";"),i=e.lastIndex+=Number(u!==a)}}return r+t.substr(i)}PG.encodeHTML=function(e){return FG(LG,e)},PG.encodeNonAsciiHTML=function(e){return FG(RG.xmlReplacer,e)},function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.encodeNonAsciiHTML=e.encodeHTML=e.escapeText=e.escapeAttribute=e.escapeUTF8=e.escape=e.encodeXML=e.encode=e.decodeStrict=e.decode=e.EncodingMode=e.DecodingMode=e.EntityLevel=void 0;var t,n,r,i=F$,o=PG,a=MG;!function(e){e[e.XML=0]="XML",e[e.HTML=1]="HTML"}(t=e.EntityLevel||(e.EntityLevel={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict"}(n=e.DecodingMode||(e.DecodingMode={})),function(e){e[e.UTF8=0]="UTF8",e[e.ASCII=1]="ASCII",e[e.Extensive=2]="Extensive",e[e.Attribute=3]="Attribute",e[e.Text=4]="Text"}(r=e.EncodingMode||(e.EncodingMode={})),e.decode=function(e,r){void 0===r&&(r=t.XML);var o="number"==typeof r?{level:r}:r;return o.level===t.HTML?o.mode===n.Strict?(0,i.decodeHTMLStrict)(e):(0,i.decodeHTML)(e):(0,i.decodeXML)(e)},e.decodeStrict=function(e,r){void 0===r&&(r=t.XML);var o="number"==typeof r?{level:r}:r;return o.level===t.HTML?o.mode===n.Legacy?(0,i.decodeHTML)(e):(0,i.decodeHTMLStrict)(e):(0,i.decodeXML)(e)},e.encode=function(e,n){void 0===n&&(n=t.XML);var i="number"==typeof n?{level:n}:n;return i.mode===r.UTF8?(0,a.escapeUTF8)(e):i.mode===r.Attribute?(0,a.escapeAttribute)(e):i.mode===r.Text?(0,a.escapeText)(e):i.level===t.HTML?i.mode===r.ASCII?(0,o.encodeNonAsciiHTML)(e):(0,o.encodeHTML)(e):(0,a.encodeXML)(e)};var c=MG;Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return c.encodeXML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return c.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return c.escapeUTF8}}),Object.defineProperty(e,"escapeAttribute",{enumerable:!0,get:function(){return c.escapeAttribute}}),Object.defineProperty(e,"escapeText",{enumerable:!0,get:function(){return c.escapeText}});var s=PG;Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return s.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return s.encodeNonAsciiHTML}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return s.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return s.encodeHTML}});var l=F$;Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return l.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return l.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return l.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return l.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return l.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return l.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return l.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return l.decodeXML}})}(TG);var zG={};Object.defineProperty(zG,"__esModule",{value:!0}),zG.attributeNames=zG.elementNames=void 0,zG.elementNames=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map((function(e){return[e.toLowerCase(),e]}))),zG.attributeNames=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map((function(e){return[e.toLowerCase(),e]})));var BG=S&&S.__assign||function(){return BG=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},BG.apply(this,arguments)},qG=S&&S.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),HG=S&&S.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),VG=S&&S.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&qG(t,e,n);return HG(t,e),t};Object.defineProperty(CG,"__esModule",{value:!0}),CG.render=void 0;var UG=VG(p$),WG=TG,$G=zG,GG=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function YG(e){return e.replace(/"/g,""")}var XG=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function ZG(e,t){void 0===t&&(t={});for(var n=("length"in e?e:[e]),r="",i=0;i<n.length;i++)r+=KG(n[i],t);return r}function KG(e,t){switch(e.type){case UG.Root:return ZG(e.children,t);case UG.Doctype:case UG.Directive:return"<".concat(e.data,">");case UG.Comment:return function(e){return"\x3c!--".concat(e.data,"--\x3e")}(e);case UG.CDATA:return function(e){return"<![CDATA[".concat(e.children[0].data,"]]>")}(e);case UG.Script:case UG.Style:case UG.Tag:return function(e,t){var n;"foreign"===t.xmlMode&&(e.name=null!==(n=$G.elementNames.get(e.name))&&void 0!==n?n:e.name,e.parent&&JG.has(e.parent.name)&&(t=BG(BG({},t),{xmlMode:!1})));!t.xmlMode&&QG.has(e.name)&&(t=BG(BG({},t),{xmlMode:"foreign"}));var r="<".concat(e.name),i=function(e,t){var n;if(e){var r=!1===(null!==(n=t.encodeEntities)&&void 0!==n?n:t.decodeEntities)?YG:t.xmlMode||"utf8"!==t.encodeEntities?WG.encodeXML:WG.escapeAttribute;return Object.keys(e).map((function(n){var i,o,a=null!==(i=e[n])&&void 0!==i?i:"";return"foreign"===t.xmlMode&&(n=null!==(o=$G.attributeNames.get(n))&&void 0!==o?o:n),t.emptyAttrs||t.xmlMode||""!==a?"".concat(n,'="').concat(r(a),'"'):n})).join(" ")}}(e.attribs,t);i&&(r+=" ".concat(i));0===e.children.length&&(t.xmlMode?!1!==t.selfClosingTags:t.selfClosingTags&&XG.has(e.name))?(t.xmlMode||(r+=" "),r+="/>"):(r+=">",e.children.length>0&&(r+=ZG(e.children,t)),!t.xmlMode&&XG.has(e.name)||(r+="</".concat(e.name,">")));return r}(e,t);case UG.Text:return function(e,t){var n,r=e.data||"";!1===(null!==(n=t.encodeEntities)&&void 0!==n?n:t.decodeEntities)||!t.xmlMode&&e.parent&&GG.has(e.parent.name)||(r=t.xmlMode||"utf8"!==t.encodeEntities?(0,WG.encodeXML)(r):(0,WG.escapeText)(r));return r}(e,t)}}CG.render=ZG,CG.default=ZG;var JG=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),QG=new Set(["svg","math"]);var eY=S&&S.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(AG,"__esModule",{value:!0}),AG.innerText=AG.textContent=AG.getText=AG.getInnerHTML=AG.getOuterHTML=void 0;var tY=iG,nY=eY(CG),rY=p$;function iY(e,t){return(0,nY.default)(e,t)}AG.getOuterHTML=iY,AG.getInnerHTML=function(e,t){return(0,tY.hasChildren)(e)?e.children.map((function(e){return iY(e,t)})).join(""):""},AG.getText=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,tY.isTag)(t)?"br"===t.name?"\n":e(t.children):(0,tY.isCDATA)(t)?e(t.children):(0,tY.isText)(t)?t.data:""},AG.textContent=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,tY.hasChildren)(t)&&!(0,tY.isComment)(t)?e(t.children):(0,tY.isText)(t)?t.data:""},AG.innerText=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,tY.hasChildren)(t)&&(t.type===rY.ElementType.Tag||(0,tY.isCDATA)(t))?e(t.children):(0,tY.isText)(t)?t.data:""};var oY={};Object.defineProperty(oY,"__esModule",{value:!0}),oY.prevElementSibling=oY.nextElementSibling=oY.getName=oY.hasAttrib=oY.getAttributeValue=oY.getSiblings=oY.getParent=oY.getChildren=void 0;var aY=iG;function cY(e){return(0,aY.hasChildren)(e)?e.children:[]}function sY(e){return e.parent||null}oY.getChildren=cY,oY.getParent=sY,oY.getSiblings=function(e){var t=sY(e);if(null!=t)return cY(t);for(var n=[e],r=e.prev,i=e.next;null!=r;)n.unshift(r),r=r.prev;for(;null!=i;)n.push(i),i=i.next;return n},oY.getAttributeValue=function(e,t){var n;return null===(n=e.attribs)||void 0===n?void 0:n[t]},oY.hasAttrib=function(e,t){return null!=e.attribs&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&null!=e.attribs[t]},oY.getName=function(e){return e.name},oY.nextElementSibling=function(e){for(var t=e.next;null!==t&&!(0,aY.isTag)(t);)t=t.next;return t},oY.prevElementSibling=function(e){for(var t=e.prev;null!==t&&!(0,aY.isTag)(t);)t=t.prev;return t};var lY={};function uY(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var t=e.parent.children;t.splice(t.lastIndexOf(e),1)}}Object.defineProperty(lY,"__esModule",{value:!0}),lY.prepend=lY.prependChild=lY.append=lY.appendChild=lY.replaceElement=lY.removeElement=void 0,lY.removeElement=uY,lY.replaceElement=function(e,t){var n=t.prev=e.prev;n&&(n.next=t);var r=t.next=e.next;r&&(r.prev=t);var i=t.parent=e.parent;if(i){var o=i.children;o[o.lastIndexOf(e)]=t,e.parent=null}},lY.appendChild=function(e,t){if(uY(t),t.next=null,t.parent=e,e.children.push(t)>1){var n=e.children[e.children.length-2];n.next=t,t.prev=n}else t.prev=null},lY.append=function(e,t){uY(t);var n=e.parent,r=e.next;if(t.next=r,t.prev=e,e.next=t,t.parent=n,r){if(r.prev=t,n){var i=n.children;i.splice(i.lastIndexOf(r),0,t)}}else n&&n.children.push(t)},lY.prependChild=function(e,t){if(uY(t),t.parent=e,t.prev=null,1!==e.children.unshift(t)){var n=e.children[1];n.prev=t,t.next=n}else t.next=null},lY.prepend=function(e,t){uY(t);var n=e.parent;if(n){var r=n.children;r.splice(r.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=n,t.prev=e.prev,t.next=e,e.prev=t};var fY={};Object.defineProperty(fY,"__esModule",{value:!0}),fY.findAll=fY.existsOne=fY.findOne=fY.findOneChild=fY.find=fY.filter=void 0;var pY=iG;function dY(e,t,n,r){for(var i=[],o=0,a=t;o<a.length;o++){var c=a[o];if(e(c)&&(i.push(c),--r<=0))break;if(n&&(0,pY.hasChildren)(c)&&c.children.length>0){var s=dY(e,c.children,n,r);if(i.push.apply(i,s),(r-=s.length)<=0)break}}return i}fY.filter=function(e,t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=1/0),Array.isArray(t)||(t=[t]),dY(e,t,n,r)},fY.find=dY,fY.findOneChild=function(e,t){return t.find(e)},fY.findOne=function e(t,n,r){void 0===r&&(r=!0);for(var i=null,o=0;o<n.length&&!i;o++){var a=n[o];(0,pY.isTag)(a)&&(t(a)?i=a:r&&a.children.length>0&&(i=e(t,a.children,!0)))}return i},fY.existsOne=function e(t,n){return n.some((function(n){return(0,pY.isTag)(n)&&(t(n)||n.children.length>0&&e(t,n.children))}))},fY.findAll=function(e,t){for(var n,r,i=[],o=t.filter(pY.isTag);r=o.shift();){var a=null===(n=r.children)||void 0===n?void 0:n.filter(pY.isTag);a&&a.length>0&&o.unshift.apply(o,a),e(r)&&i.push(r)}return i};var hY={};Object.defineProperty(hY,"__esModule",{value:!0}),hY.getElementsByTagType=hY.getElementsByTagName=hY.getElementById=hY.getElements=hY.testElement=void 0;var mY=iG,yY=fY,vY={tag_name:function(e){return"function"==typeof e?function(t){return(0,mY.isTag)(t)&&e(t.name)}:"*"===e?mY.isTag:function(t){return(0,mY.isTag)(t)&&t.name===e}},tag_type:function(e){return"function"==typeof e?function(t){return e(t.type)}:function(t){return t.type===e}},tag_contains:function(e){return"function"==typeof e?function(t){return(0,mY.isText)(t)&&e(t.data)}:function(t){return(0,mY.isText)(t)&&t.data===e}}};function gY(e,t){return"function"==typeof t?function(n){return(0,mY.isTag)(n)&&t(n.attribs[e])}:function(n){return(0,mY.isTag)(n)&&n.attribs[e]===t}}function bY(e,t){return function(n){return e(n)||t(n)}}function xY(e){var t=Object.keys(e).map((function(t){var n=e[t];return Object.prototype.hasOwnProperty.call(vY,t)?vY[t](n):gY(t,n)}));return 0===t.length?null:t.reduce(bY)}hY.testElement=function(e,t){var n=xY(e);return!n||n(t)},hY.getElements=function(e,t,n,r){void 0===r&&(r=1/0);var i=xY(e);return i?(0,yY.filter)(i,t,n,r):[]},hY.getElementById=function(e,t,n){return void 0===n&&(n=!0),Array.isArray(t)||(t=[t]),(0,yY.findOne)(gY("id",e),t,n)},hY.getElementsByTagName=function(e,t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=1/0),(0,yY.filter)(vY.tag_name(e),t,n,r)},hY.getElementsByTagType=function(e,t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=1/0),(0,yY.filter)(vY.tag_type(e),t,n,r)};var wY={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.uniqueSort=e.compareDocumentPosition=e.DocumentPosition=e.removeSubsets=void 0;var t,n=iG;function r(e,r){var i=[],o=[];if(e===r)return 0;for(var a=(0,n.hasChildren)(e)?e:e.parent;a;)i.unshift(a),a=a.parent;for(a=(0,n.hasChildren)(r)?r:r.parent;a;)o.unshift(a),a=a.parent;for(var c=Math.min(i.length,o.length),s=0;s<c&&i[s]===o[s];)s++;if(0===s)return t.DISCONNECTED;var l=i[s-1],u=l.children,f=i[s],p=o[s];return u.indexOf(f)>u.indexOf(p)?l===r?t.FOLLOWING|t.CONTAINED_BY:t.FOLLOWING:l===e?t.PRECEDING|t.CONTAINS:t.PRECEDING}e.removeSubsets=function(e){for(var t=e.length;--t>=0;){var n=e[t];if(t>0&&e.lastIndexOf(n,t-1)>=0)e.splice(t,1);else for(var r=n.parent;r;r=r.parent)if(e.includes(r)){e.splice(t,1);break}}return e},function(e){e[e.DISCONNECTED=1]="DISCONNECTED",e[e.PRECEDING=2]="PRECEDING",e[e.FOLLOWING=4]="FOLLOWING",e[e.CONTAINS=8]="CONTAINS",e[e.CONTAINED_BY=16]="CONTAINED_BY"}(t=e.DocumentPosition||(e.DocumentPosition={})),e.compareDocumentPosition=r,e.uniqueSort=function(e){return e=e.filter((function(e,t,n){return!n.includes(e,t+1)})),e.sort((function(e,n){var i=r(e,n);return i&t.PRECEDING?-1:i&t.FOLLOWING?1:0})),e}}(wY);var kY={};Object.defineProperty(kY,"__esModule",{value:!0}),kY.getFeed=void 0;var EY=AG,SY=hY;kY.getFeed=function(e){var t=CY(DY,e);return t?"feed"===t.name?function(e){var t,n=e.children,r={type:"atom",items:(0,SY.getElementsByTagName)("entry",n).map((function(e){var t,n=e.children,r={media:AY(n)};PY(r,"id","id",n),PY(r,"title","title",n);var i=null===(t=CY("link",n))||void 0===t?void 0:t.attribs.href;i&&(r.link=i);var o=TY("summary",n)||TY("content",n);o&&(r.description=o);var a=TY("updated",n);return a&&(r.pubDate=new Date(a)),r}))};PY(r,"id","id",n),PY(r,"title","title",n);var i=null===(t=CY("link",n))||void 0===t?void 0:t.attribs.href;i&&(r.link=i);PY(r,"description","subtitle",n);var o=TY("updated",n);o&&(r.updated=new Date(o));return PY(r,"author","email",n,!0),r}(t):function(e){var t,n,r=null!==(n=null===(t=CY("channel",e.children))||void 0===t?void 0:t.children)&&void 0!==n?n:[],i={type:e.name.substr(0,3),id:"",items:(0,SY.getElementsByTagName)("item",e.children).map((function(e){var t=e.children,n={media:AY(t)};PY(n,"id","guid",t),PY(n,"title","title",t),PY(n,"link","link",t),PY(n,"description","description",t);var r=TY("pubDate",t);return r&&(n.pubDate=new Date(r)),n}))};PY(i,"title","title",r),PY(i,"link","link",r),PY(i,"description","description",r);var o=TY("lastBuildDate",r);o&&(i.updated=new Date(o));return PY(i,"author","managingEditor",r,!0),i}(t):null};var _Y=["url","type","lang"],OY=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function AY(e){return(0,SY.getElementsByTagName)("media:content",e).map((function(e){for(var t=e.attribs,n={medium:t.medium,isDefault:!!t.isDefault},r=0,i=_Y;r<i.length;r++){t[c=i[r]]&&(n[c]=t[c])}for(var o=0,a=OY;o<a.length;o++){var c;t[c=a[o]]&&(n[c]=parseInt(t[c],10))}return t.expression&&(n.expression=t.expression),n}))}function CY(e,t){return(0,SY.getElementsByTagName)(e,t,!0,1)[0]}function TY(e,t,n){return void 0===n&&(n=!1),(0,EY.textContent)((0,SY.getElementsByTagName)(e,t,n,1)).trim()}function PY(e,t,n,r,i){void 0===i&&(i=!1);var o=TY(n,r,i);o&&(e[t]=o)}function DY(e){return"rss"===e||"feed"===e||"rdf:RDF"===e}!function(e){var t=S&&S.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=S&&S.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.hasChildren=e.isDocument=e.isComment=e.isText=e.isCDATA=e.isTag=void 0,n(AG,e),n(oY,e),n(lY,e),n(fY,e),n(hY,e),n(wY,e),n(kY,e);var r=iG;Object.defineProperty(e,"isTag",{enumerable:!0,get:function(){return r.isTag}}),Object.defineProperty(e,"isCDATA",{enumerable:!0,get:function(){return r.isCDATA}}),Object.defineProperty(e,"isText",{enumerable:!0,get:function(){return r.isText}}),Object.defineProperty(e,"isComment",{enumerable:!0,get:function(){return r.isComment}}),Object.defineProperty(e,"isDocument",{enumerable:!0,get:function(){return r.isDocument}}),Object.defineProperty(e,"hasChildren",{enumerable:!0,get:function(){return r.hasChildren}})}(OG),function(e){var t=S&&S.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=S&&S.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=S&&S.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=S&&S.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultHandler=e.DomUtils=e.parseFeed=e.getFeed=e.ElementType=e.Tokenizer=e.createDomStream=e.parseDOM=e.parseDocument=e.DomHandler=e.Parser=void 0;var o=R$;Object.defineProperty(e,"Parser",{enumerable:!0,get:function(){return o.Parser}});var a=iG;function c(e,t){var n=new a.DomHandler(void 0,t);return new o.Parser(n,t).end(e),n.root}function s(e,t){return c(e,t).children}Object.defineProperty(e,"DomHandler",{enumerable:!0,get:function(){return a.DomHandler}}),Object.defineProperty(e,"DefaultHandler",{enumerable:!0,get:function(){return a.DomHandler}}),e.parseDocument=c,e.parseDOM=s,e.createDomStream=function(e,t,n){var r=new a.DomHandler(e,t,n);return new o.Parser(r,t)};var l=L$;Object.defineProperty(e,"Tokenizer",{enumerable:!0,get:function(){return i(l).default}});var u=r(p$);e.ElementType=u;var f=OG;Object.defineProperty(e,"getFeed",{enumerable:!0,get:function(){return f.getFeed}}),e.parseFeed=function(e,t){return void 0===t&&(t={xmlMode:!0}),(0,f.getFeed)(s(e,t))},e.DomUtils=r(OG)}(I$);var jY=I$.Parser,MY=iG.DomHandler,NY=function(e){for(var t=0,n=e.length;t<n;t++){e[t].parent=null}return e};var IY=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string.");if(""===e)return[];var n=new MY(void 0,t);return new jY(n,t).end(e),NY(n.dom)};N$.exports=IY,N$.exports.default=IY;var RY=N$.exports,LY={},FY={};FY.SAME=0;function zY(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){c=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return BY(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 BY(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 BY(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}FY.CAMELCASE=1,FY.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1},Object.defineProperty(LY,"__esModule",{value:!0});function qY(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var HY={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((function(e){HY[e]=new qY(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=zY(e,2),n=t[0],r=t[1];HY[n]=new qY(n,1,!1,r,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){HY[e]=new qY(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){HY[e]=new qY(e,2,!1,e,null,!1,!1)})),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((function(e){HY[e]=new qY(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){HY[e]=new qY(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){HY[e]=new qY(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){HY[e]=new qY(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){HY[e]=new qY(e,5,!1,e.toLowerCase(),null,!1,!1)}));var VY=/[\-\:]([a-z])/g,UY=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((function(e){var t=e.replace(VY,UY);HY[t]=new qY(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((function(e){var t=e.replace(VY,UY);HY[t]=new qY(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(VY,UY);HY[t]=new qY(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){HY[e]=new qY(e,1,!1,e.toLowerCase(),null,!1,!1)}));HY.xlinkHref=new qY("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){HY[e]=new qY(e,1,!1,e.toLowerCase(),null,!0,!0)}));var WY=FY,$Y=WY.CAMELCASE,GY=WY.SAME,YY=WY.possibleStandardNames,XY=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),ZY=Object.keys(YY).reduce((function(e,t){var n=YY[t];return n===GY?e[t]=t:n===$Y?e[t.toLowerCase()]=t:e[t]=n,e}),{});LY.BOOLEAN=3,LY.BOOLEANISH_STRING=2,LY.NUMERIC=5,LY.OVERLOADED_BOOLEAN=4,LY.POSITIVE_NUMERIC=6,LY.RESERVED=0,LY.STRING=1,LY.getPropertyInfo=function(e){return HY.hasOwnProperty(e)?HY[e]:null},LY.isCustomAttribute=XY,LY.possibleStandardNames=ZY;var KY={},JY={exports:{}},QY=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,eX=/\n/g,tX=/^\s*/,nX=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,rX=/^:\s*/,iX=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,oX=/^[;\s]*/,aX=/^\s+|\s+$/g,cX="";function sX(e){return e?e.replace(aX,cX):cX}var lX=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(e){var t=e.match(eX);t&&(n+=t.length);var i=e.lastIndexOf("\n");r=~i?e.length-i:r+e.length}function o(){var e={line:n,column:r};return function(t){return t.position=new a(e),l(),t}}function a(e){this.start=e,this.end={line:n,column:r},this.source=t.source}function c(i){var o=new Error(t.source+":"+n+":"+r+": "+i);if(o.reason=i,o.filename=t.source,o.line=n,o.column=r,o.source=e,!t.silent)throw o}function s(t){var n=t.exec(e);if(n){var r=n[0];return i(r),e=e.slice(r.length),n}}function l(){s(tX)}function u(e){var t;for(e=e||[];t=f();)!1!==t&&e.push(t);return e}function f(){var t=o();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;cX!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,cX===e.charAt(n-1))return c("End of comment missing");var a=e.slice(2,n-2);return r+=2,i(a),e=e.slice(n),r+=2,t({type:"comment",comment:a})}}function p(){var e=o(),t=s(nX);if(t){if(f(),!s(rX))return c("property missing ':'");var n=s(iX),r=e({type:"declaration",property:sX(t[0].replace(QY,cX)),value:n?sX(n[0].replace(QY,cX)):cX});return s(oX),r}}return a.prototype.content=e,l(),function(){var e,t=[];for(u(t);e=p();)!1!==e&&(t.push(e),u(t));return t}()};function uX(e,t){var n,r=null;if(!e||"string"!=typeof e)return r;for(var i,o,a=lX(e),c="function"==typeof t,s=0,l=a.length;s<l;s++)i=(n=a[s]).property,o=n.value,c?t(i,o,n):o&&(r||(r={}),r[i]=o);return r}JY.exports=uX,JY.exports.default=uX;var fX=JY.exports,pX={__esModule:!0,camelCase:void 0},dX=/^--[a-zA-Z0-9-]+$/,hX=/-([a-z])/g,mX=/^[^-]+$/,yX=/^-(webkit|moz|ms|o|khtml)-/,vX=/^-(ms)-/,gX=function(e,t){return t.toUpperCase()},bX=function(e,t){return"".concat(t,"-")};pX.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||mX.test(e)||dX.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(vX,bX):e.replace(yX,bX)).replace(hX,gX))},function(e){var t=S&&S.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};e.__esModule=!0;var n=t(fX),r=pX;e.default=function(e,t){var i={};return e&&"string"==typeof e?((0,n.default)(e,(function(e,n){e&&n&&(i[(0,r.camelCase)(e,t)]=n)})),i):i}}(KY);var xX=KY.default;var wX={reactCompat:!0};var kX=e.version.split(".")[0]>=16,EX=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var SX={PRESERVE_CUSTOM_ATTRIBUTES:kX,invertObject:function(e,t){if(!e||"object"!=typeof e)throw new TypeError("First argument must be an object");var n,r,i="function"==typeof t,o={},a={};for(n in e)r=e[n],i&&(o=t(n,r))&&2===o.length?a[o[0]]=o[1]:"string"==typeof r&&(a[r]=n);return a},isCustomComponent:function(e,t){if(-1===e.indexOf("-"))return t&&"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}},setStyleProp:function(e,t){if(null!=e)try{t.style=xX(e,wX)}catch(e){t.style={}}},canTextBeChildOfNode:function(e){return!EX.has(e.name)},elementsWithNoTextChildren:EX},_X=LY,OX=SX,AX=function(e,t){var n,r,i,o,a,c={},s=(e=e||{}).type&&{reset:!0,submit:!0}[e.type];for(n in e)if(i=e[n],_X.isCustomAttribute(n))c[n]=i;else if(o=CX(r=n.toLowerCase()))switch(a=_X.getPropertyInfo(o),"checked"!==o&&"value"!==o||"option"===t||s||(o=CX("default"+r)),c[o]=i,a&&a.type){case _X.BOOLEAN:c[o]=!0;break;case _X.OVERLOADED_BOOLEAN:""===i&&(c[o]=!0)}else OX.PRESERVE_CUSTOM_ATTRIBUTES&&(c[n]=i);return OX.setStyleProp(e.style,c),c};function CX(e){return _X.possibleStandardNames[e]}var TX=e,PX=AX,DX=SX,jX=DX.setStyleProp,MX=DX.canTextBeChildOfNode;function NX(e){return DX.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&DX.isCustomComponent(e.name,e.attribs)}var IX=function e(t,n){for(var r,i,o,a,c,s=(n=n||{}).library||TX,l=s.cloneElement,u=s.createElement,f=s.isValidElement,p=[],d="function"==typeof n.replace,h=n.trim,m=0,y=t.length;m<y;m++)if(r=t[m],d&&f(o=n.replace(r)))y>1&&(o=l(o,{key:o.key||m})),p.push(o);else if("text"!==r.type){switch(a=r.attribs,NX(r)?jX(a.style,a):a&&(a=PX(a,r.name)),c=null,r.type){case"script":case"style":r.children[0]&&(a.dangerouslySetInnerHTML={__html:r.children[0].data});break;case"tag":"textarea"===r.name&&r.children[0]?a.defaultValue=r.children[0].data:r.children&&r.children.length&&(c=e(r.children,n));break;default:continue}y>1&&(a.key=m),p.push(u(r.name,a,c))}else{if((i=!r.data.trim().length)&&r.parent&&!MX(r.parent))continue;if(h&&i)continue;p.push(r.data)}return 1===p.length?p[0]:p},RX=f$,LX=RY,FX=AX,zX=IX;LX="function"==typeof LX.default?LX.default:LX;var BX={lowerCaseAttributeNames:!1};function qX(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return""===e?[]:zX(LX(e,(t=t||{}).htmlparser2||BX),t)}qX.domToReact=zX,qX.htmlToDOM=LX,qX.attributesToProps=FX,qX.Comment=RX.Comment,qX.Element=RX.Element,qX.ProcessingInstruction=RX.ProcessingInstruction,qX.Text=RX.Text,u$.exports=qX,u$.exports.default=qX;var HX=_(u$.exports);function VX(t){var n,r,i,o=new l$;i=null==(i=t.inline?o.renderInline(null!==(n=t.text)&&void 0!==n?n:""):o.render(null!==(r=t.text)&&void 0!==r?r:""))?void 0:i.trim();var a=HX(i,{replace:function(e){var t=e;"a"===t.name&&(t.attribs.target="_blank")}});return e.createElement(e.Fragment,null,a)}HX.domToReact,HX.htmlToDOM,HX.attributesToProps,HX.Comment,HX.Element,HX.ProcessingInstruction,HX.Text;function UX(t){return e.createElement(dr,{colorScheme:"light",className:"mdhui-step-container",bodyBackgroundColor:"#FFFFFF"},t.children)}function WX(e){return{textAlign:e.textAlign,color:e.color,fontSize:e.fontSize?"".concat(e.fontSize,"px"):void 0,fontWeight:e.fontWeight,backgroundImage:""}}k(".mdhui-step-container {\n background-color: #FFFFFF;\n}\n\n.mdhui-step-container div,\n.mdhui-step-container dl,\n.mdhui-step-container dt,\n.mdhui-step-container dd,\n.mdhui-step-container ul,\n.mdhui-step-container ol,\n.mdhui-step-container li,\n.mdhui-step-container h1,\n.mdhui-step-container h2,\n.mdhui-step-container h3,\n.mdhui-step-container h4,\n.mdhui-step-container h5,\n.mdhui-step-container h6,\n.mdhui-step-container pre,\n.mdhui-step-container form,\n.mdhui-step-container fieldset,\n.mdhui-step-container input,\n.mdhui-step-container textarea,\n.mdhui-step-container p,\n.mdhui-step-container blockquote,\n.mdhui-step-container th,\n.mdhui-step-container td {\n margin: 0;\n padding: 0;\n}\n\n.mdhui-step-container a {\n color: var(--mdhui-color-primary);\n text-decoration: none;\n}\n\n.mdhui-step-container ol {\n list-style-type: decimal;\n white-space: normal;\n list-style-position: inside;\n}\n\n.mdhui-step-container ul {\n list-style-type: disc;\n text-align: left;\n display: block;\n margin-inline-start: 0px;\n margin-inline-end: 0px;\n padding-inline-start: 40px;\n white-space: normal;\n}\n\n.mdhui-step-container ul ul {\n list-style-type: circle;\n}\n\n.mdhui-step-container ul ul ul {\n list-style-type: square;\n}");function $X(t){return t.text?e.createElement("div",{className:"mdhui-step-title",style:WX(t)},e.createElement(VX,{text:t.text,inline:!0})):null}k(".mdhui-step-container .mdhui-step-title {\n text-align: center;\n font-size: 1.7em;\n line-height: 1.2em;\n font-weight: normal;\n margin-top: 20px;\n margin-bottom: 15px;\n margin-left: 20px;\n margin-right: 20px; \n position: relative;\n display: block;\n}");function GX(t){return t.text?e.createElement("div",{className:"mdhui-step-text",style:WX(t)},e.createElement(VX,{text:t.text})):null}k(".mdhui-step-container .mdhui-step-text {\n font-size: 1em;\n line-height: 1.3em;\n text-align: center;\n margin-top: 15px;\n margin-bottom: 15px;\n margin-left: 20px;\n margin-right: 20px; \n white-space: pre-line;\n}");function YX(t){return t.text?e.createElement("div",{className:"mdhui-step-detail-text",style:WX(t)},e.createElement(VX,{text:t.text})):null}k(".mdhui-step-container .mdhui-step-detail-text {\n font-size: 1em;\n line-height: 1.3em;\n text-align: center;\n margin-top: 15px;\n margin-bottom: 15px;\n margin-left: 20px;\n margin-right: 20px;\n white-space: pre-line;\n}");function XX(t){var n=WX(t);if(t.gradient){var r="LeftToRight"===t.gradient.direction?"linear-gradient(to right, ".concat(t.gradient.startColor," 0%, ").concat(t.gradient.endColor," 100%)"):"linear-gradient(to bottom, ".concat(t.gradient.startColor," 0%, ").concat(t.gradient.endColor," 100%)");n.backgroundImage=r}n.letterSpacing=t.letterSpacing,n.textTransform=t.textTransform,n.backgroundColor=t.backgroundColor;var i=t.text?t.text:br["next-button-text"];return e.createElement("button",{className:"mdhui-step-next-button",style:n,onClick:t.onClick},i)}k(".mdhui-step-container .mdhui-step-next-button {\n margin: 20px;\n padding: 16px;\n background: var(--mdhui-color-primary);\n font-size: 1em;\n color: #FFF;\n font-weight: bold;\n border: solid 1px var(--mdhui-color-primary);\n border-radius: 5px;\n cursor: pointer;\n width: calc(100% - 40px);\n box-sizing: border-box;\n text-align: center;\n display: inline-block;\n}");function ZX(t){return t.srcUrl?e.createElement("div",{className:"mdhui-step-image"},e.createElement("img",{src:t.srcUrl})):null}k(".mdhui-step-container .mdhui-step-image {\n text-align: center;\n}\n.mdhui-step-container .mdhui-step-image img {\n width: 100%;\n padding: 0;\n margin: 0;\n padding-top: 40px;\n padding-bottom: 40px;\n}");function KX(t){return t.srcUrl?e.createElement("div",{className:"mdhui-step-image-icon"},e.createElement("img",{src:t.srcUrl})):null}function JX(t){var n,r=(t.height?t.height:"225")+"px",i=b.getCurrentLanguage();return e.createElement(UX,null,e.createElement($X,{text:t.title,textAlign:t.styles.titleAlignment,color:t.styles.titleColor,fontSize:t.styles.titleFontSize,fontWeight:t.styles.titleFontWeight}),e.createElement(GX,{text:t.text,textAlign:t.styles.textAlignment,color:t.styles.textColor,fontSize:t.styles.textFontSize,fontWeight:t.styles.textFontWeight}),e.createElement("div",{style:{textAlign:"center",width:"100%"}},e.createElement("iframe",{style:{width:"100%",height:r,border:0},src:"https://www.youtube.com/embed/".concat(t.videoId,"?rel=").concat(0,"&cc_lang_pref=").concat(i,"&controls=").concat(1,"&autoplay=").concat(0,"&fs=").concat(1,"&modestbranding=").concat(1),title:"YouTube video player",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; fullscreen",allowFullScreen:!0})),e.createElement(YX,{text:t.transcript,textAlign:t.styles.detailTextAlignment,color:t.styles.detailTextColor,fontSize:t.styles.detailTextFontSize,fontWeight:t.styles.detailTextFontWeight}),e.createElement(XX,{text:t.nextButtonText,color:t.styles.nextButtonTextColor,fontWeight:t.styles.nextButtonFontWeight,backgroundColor:t.styles.nextButtonBackgroundColor,letterSpacing:t.styles.nextButtonLetterSpacing,textTransform:null===(n=t.styles.nextButtonTextTransform)||void 0===n?void 0:n.toLowerCase(),gradient:t.styles.nextButtonBackgroundGradient,onClick:function(){return b.completeStep("")}}))}function QX(){var t=s(),n=t[0],r=t[1],i=s(),o=i[0],a=i[1],c=s(),u=c[0],f=c[1],p=s(""),d=p[0],h=p[1],m=s(),y=m[0],v=m[1],g=s(),x=g[0],w=g[1],k=s({}),E=k[0],S=k[1];return l((function(){b.getStepConfiguration().then((function(e){var t;e&&(r(e.properties.title),a(e.properties.text),f(e.properties.transcript),h(e.properties.videoId),v(e.properties.nextButtonText),w(e.properties.height),S(null!==(t=e.styles)&&void 0!==t?t:{}))}))}),[]),e.createElement(JX,{title:n,text:o,transcript:u,nextButtonText:y,height:x,videoId:d,styles:E})}k(".mdhui-step-container .mdhui-step-image-icon {\n text-align: center;\n}\n\n.mdhui-step-container .mdhui-step-image-icon img {\n max-width: 100%;\n max-height: 60px;\n padding: 0;\n margin: 0;\n padding-top: 50px;\n}");var eZ=150,tZ=2,nZ=["DodgerBlue","OliveDrab","Gold","Pink","SlateBlue","LightBlue","Violet","PaleGreen","SteelBlue","SandyBrown","Chocolate","Crimson"],rZ=!1,iZ=null,oZ=[],aZ=0;function cZ(e,t,n){return e.color=nZ[Math.random()*nZ.length|0],e.x=Math.random()*t,e.y=Math.random()*n-n,e.diameter=10*Math.random()+5,e.tilt=10*Math.random()-10,e.tiltAngleIncrement=.07*Math.random()+.05,e.tiltAngle=0,e}function sZ(){var e=window.innerWidth,t=window.innerHeight,n=window.requestAnimationFrame||function(e){return window.setTimeout(e,16.6666667)},r=document.getElementById("confetti-canvas");null===r&&((r=document.createElement("canvas")).setAttribute("id","confetti-canvas"),r.setAttribute("style","display:block;z-index:999999;pointer-events:none;position:fixed;top:0"),document.body.prepend(r),r.width=e,r.height=t,window.addEventListener("resize",(function(){r.width=window.innerWidth,r.height=window.innerHeight}),!0));for(var i=r.getContext("2d");oZ.length<eZ;)oZ.push(cZ({color:"",x:0,y:0,diameter:0,tilt:0,tiltAngleIncrement:0,tiltAngle:0},e,t));rZ=!0,null===iZ&&function e(){null==i||i.clearRect(0,0,window.innerWidth,window.innerHeight),0===oZ.length?iZ=null:(!function(){var e,t=window.innerWidth,n=window.innerHeight;aZ+=.01;for(var r=0;r<oZ.length;r++)e=oZ[r],!rZ&&e.y<-15?e.y=n+100:(e.tiltAngle+=e.tiltAngleIncrement,e.x+=Math.sin(aZ),e.y+=.5*(Math.cos(aZ)+e.diameter+tZ),e.tilt=15*Math.sin(e.tiltAngle)),(e.x>t+20||e.x<-20||e.y>n)&&(rZ&&oZ.length<=eZ?cZ(e,t,n):(oZ.splice(r,1),r--))}(),function(e){if(e)for(var t,n,r=0;r<oZ.length;r++)t=oZ[r],e.beginPath(),e.lineWidth=t.diameter,e.strokeStyle=t.color,n=t.x+t.tilt,e.moveTo(n+t.diameter/2,t.y),e.lineTo(n,t.y+t.tilt+t.diameter/2),e.stroke()}(i),iZ=n(e))}()}function lZ(t){var n;return sZ(),window.setTimeout((function(){rZ=!1}),1200),e.createElement(UX,null,e.createElement(KX,{srcUrl:t.iconUrl}),e.createElement($X,{text:t.title,textAlign:t.styles.titleAlignment,color:t.styles.titleColor,fontSize:t.styles.titleFontSize,fontWeight:t.styles.titleFontWeight}),e.createElement(GX,{text:t.text,textAlign:t.styles.textAlignment,color:t.styles.textColor,fontSize:t.styles.textFontSize,fontWeight:t.styles.textFontWeight}),e.createElement(YX,{text:t.detailText,textAlign:t.styles.textAlignment,color:t.styles.textColor,fontSize:t.styles.textFontSize,fontWeight:t.styles.textFontWeight}),e.createElement(ZX,{srcUrl:t.imageUrl}),e.createElement(XX,{text:t.nextButtonText,color:t.styles.nextButtonTextColor,fontWeight:t.styles.nextButtonFontWeight,backgroundColor:t.styles.nextButtonBackgroundColor,letterSpacing:t.styles.nextButtonLetterSpacing,textTransform:null===(n=t.styles.nextButtonTextTransform)||void 0===n?void 0:n.toLowerCase(),gradient:t.styles.nextButtonBackgroundGradient,onClick:function(){return b.completeStep("")}}))}function uZ(){var t=s(),n=t[0],r=t[1],i=s(),o=i[0],a=i[1],c=s(),u=c[0],f=c[1],p=s(),d=p[0],h=p[1],m=s(),y=m[0],v=m[1],g=s(),x=g[0],w=g[1],k=s({}),E=k[0],S=k[1];return l((function(){b.getStepConfiguration().then((function(e){var t;e&&(r(e.properties.title),a(e.properties.text),f(e.properties.detailText),h(e.properties.iconImage),v(e.properties.image),w(e.properties.nextButtonText),S(null!==(t=e.styles)&&void 0!==t?t:{}))}))}),[]),e.createElement(lZ,{title:n,text:o,detailText:u,iconUrl:d,imageUrl:y,nextButtonText:x,styles:E})}export{D as Action,j as ActivityMeter,R as Button,Tt as Calendar,Pt as Card,Dt as CardTitle,lZ as CelebrationStep,uZ as CelebrationStepContainer,zr as ConnectEhr,OH as ConnectEhrView,Hr as ConnectFitbit,Vr as ConnectGarmin,mq as DailyDataType,Mt as DateRangeNavigator,Nt as DayTrackerSymbol,kq as DeviceDataMonthChart,Eq as DeviceDataMonthCharts,AH as DeviceDataView,_q as ExternalAccountList,Cq as ExternalAccountsLoadingIndicator,Pq as ExternalAccountsPreview,CH as ExternalAccountsView,hr as Face,Hq as FitbitDevices,Uq as FitbitMonthCharts,TH as FitbitView,$q as GarminDevices,Gq as GarminMonthCharts,PH as GarminView,RH as HealthAndWellnessView,eH as HealthPreviewSection,yr as Histogram,IH as HomeView,aH as LabResultsSummary,dr as Layout,pr as LayoutContext,I as LoadingIndicator,sH as MostRecentNotification,xr as NavigationBar,fH as NotificationList,LH as NotificationsView,pH as PlatformSpecificContent,dH as ProjectHeader,vH as ProjectSupport,kH as ProviderSearch,kH as RestingHeartRateCalendar,wr as Section,kr as SegmentedControl,mr as ShinyOverlay,_r as SingleExternalAccount,Or as SingleNotification,Pr as SingleSurveyTask,Dr as SparkBarChart,Mr as StatusBarBackground,YX as StepDetailText,ZX as StepImage,KX as StepImageIcon,UX as StepLayout,VX as StepMarkdown,XX as StepNextButton,GX as StepText,$X as StepTitle,_H as SurveyTaskList,FH as SurveyTasksView,jr as Switch,Nr as TextBlock,Ir as TrackerItem,E as UnstyledButton,Rr as WeekCalendar,JX as YouTubeStep,QX as YouTubeStepContainer,gq as checkDailyDataAvailability,bq as queryDailyData,vq as registerDailyDataProvider,Oq as useInterval};
|
|
208
208
|
//# sourceMappingURL=index.js.map
|