@careevolution/mydatahelps-ui 2.6.0 → 2.6.1
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 +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -212,5 +212,5 @@ var i=n[t];i.value*=-1,this.$=i}},table:function(e){for(var t=[],n=e.len,r=e.sym
|
|
|
212
212
|
38:14,
|
|
213
213
|
/*! Conditions:: INITIAL */
|
|
214
214
|
/*! Rule:: $ */
|
|
215
|
-
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!==sw&&(e.parser=t,e.Parser=t.Parser,e.parse=function(){return t.parse.apply(t,arguments)})}(lw);var uw={},fw={exports:{}},pw={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}},dw=function(e,t,n,r){if(!pw.hasOwnProperty(n))throw new Error("Cannot convert to "+n);if(!pw[n].hasOwnProperty(t))throw new Error("Cannot convert from "+t+" to "+n);var i=pw[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}}(dw);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}(fw,fw.exports);var hw=fw.exports;Object.defineProperty(uw,"__esModule",{value:!0}),uw.flip=bw;var mw=function(e){return e&&e.__esModule?e:{default:e}}(hw);function vw(e,t){return"MathExpression"===e.type?function(e,t){switch(e=function(e,t){var n=(0,mw.default)(e.left,e.right,t),r=vw(n.left,t),i=vw(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)&&(yw(r.right,i.right)?n=(0,mw.default)(r.left,i.left,t):yw(r.right,i.left)&&(n=(0,mw.default)(r.left,i.right,t)),r=vw(n.left,t),i=vw(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 xw(i);r.type===i.type&&gw(r.type)&&((e=Object.assign({},r)).value="+"===o?r.value+i.value:r.value-i.value);if(gw(r.type)&&("+"===i.operator||"-"===i.operator)&&"MathExpression"===i.type){if(r.type===i.left.type)return(e=Object.assign({},e)).left=vw({type:"MathExpression",operator:o,left:r,right:i.left},t),e.right=i.right,e.operator="-"===o?bw(i.operator):i.operator,vw(e,t);if(r.type===i.right.type)return(e=Object.assign({},e)).left=vw({type:"MathExpression",operator:"-"===o?bw(i.operator):i.operator,left:r,right:i.right},t),e.right=i.left,vw(e,t)}if("MathExpression"===r.type&&("+"===r.operator||"-"===r.operator)&&gw(i.type)){if(i.type===r.left.type)return(e=Object.assign({},r)).left=vw({type:"MathExpression",operator:o,left:r.left,right:i},t),vw(e,t);if(i.type===r.right.type)return e=Object.assign({},r),"-"===r.operator?(e.right=vw({type:"MathExpression",operator:"-"===o?"+":"-",left:i,right:r.right},t),e.operator="-"===o?"-":"+"):e.right=vw({type:"MathExpression",operator:o,left:r.right,right:i},t),e.right.value<0&&(e.right.value*=-1,e.operator="-"===e.operator?"+":"-"),vw(e,t)}return e}(e,t);case"/":return function(e,t){if(!gw(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 gw(e.left.left.type)&&gw(e.left.right.type)?(e.left.left.value/=e.right.value,e.left.right.value/=e.right.value,vw(e.left,t)):e;if(gw(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(gw(e.left.left.type)&&gw(e.left.right.type))return e.left.left.value*=e.right.value,e.left.right.value*=e.right.value,e.left}else{if(gw(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(gw(e.right.left.type)&&gw(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&&gw(e.right.type))return e.right.value*=e.left.value,e.right}return e}(e)}return e}(e,t):"Calc"===e.type?vw(e.value,t):e}function yw(e,t){return e.type===t.type&&e.value===t.value}function gw(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 bw(e){return"+"===e?"-":"+"}function xw(e){return gw(e.type)?e.value=-e.value:"MathExpression"==e.type&&(e.left=xw(e.left),e.right=xw(e.right)),e}uw.default=vw;var ww={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=uw,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}(ww,ww.exports);var _w=ww.exports;!function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=a(cw),r=lw,i=a(uw),o=a(_w);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}(Wx,Wx.exports);var kw=E(Wx.exports);function Sw(e){return Sw="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},Sw(e)}function Ew(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 Ow(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ew(Object(n),!0).forEach((function(t){Aw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ew(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Aw(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Sw(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Sw(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Sw(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cw(e){return function(e){if(Array.isArray(e))return Tw(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 Tw(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 Tw(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 Tw(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 Pw={widthCache:{},cacheCount:0},Dw={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},jw=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","lineHeight","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],Mw="recharts_measurement_span";var Nw=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(Cw(e),["-",t.toLowerCase()]):[].concat(Cw(e),[t])}),[]).join("")}(n),":").concat((r=n,i=e[n],jw.indexOf(r)>=0&&i===+i?"".concat(i,"px"):i),";");var r,i}),"")},Iw=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||Gb.isSsr)return{width:0,height:0};var n="".concat(e),r=Nw(t),i="".concat(n,"-").concat(r);if(Pw.widthCache[i])return Pw.widthCache[i];try{var o=document.getElementById(Mw);o||((o=document.createElement("span")).setAttribute("id",Mw),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var a=Ow(Ow({},Dw),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 Pw.widthCache[i]=s,++Pw.cacheCount>2e3&&(Pw.cacheCount=0,Pw.widthCache={}),s}catch(e){return{width:0,height:0}}},Rw=["dx","dy","textAnchor","verticalAnchor","scaleToFit","angle","lineHeight","capHeight","className","breakAll"];function Lw(e){return Lw="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},Lw(e)}function zw(){return zw=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},zw.apply(this,arguments)}function Fw(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 Bw(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,Zw(r.key),r)}}function qw(e,t){return qw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qw(e,t)}function Hw(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=Uw(e);if(t){var i=Uw(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Lw(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Vw(e)}(this,n)}}function Vw(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Uw(e){return Uw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Uw(e)}function Ww(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 Gw(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 Gw(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 Gw(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 $w(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 Yw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$w(Object(n),!0).forEach((function(t){Xw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xw(e,t,n){return(t=Zw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zw(e){var t=function(e,t){if("object"!==Lw(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Lw(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Lw(t)?t:String(t)}var Kw=/[ \f\n\r\t\v\u2028\u2029]+/,Jw=function(e){try{var t=[];return rc(e.children)||(t=e.breakAll?e.children.toString().split(""):e.children.toString().split(Kw)),{wordsWithComputedWidth:t.map((function(t){return{word:t,width:Iw(t,e.style).width}})),spaceWidth:e.breakAll?0:Iw(" ",e.style).width}}catch(e){return null}},Qw=function(e){return[{words:rc(e)?[]:e.toString().split(Kw)}]},e_=function(e,t){if((e.width||e.scaleToFit)&&!Gb.isSsr&&t){var n=Jw(e);return n?function(e,t,n,r,i){var o=yc(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=Jw(Yw(Yw({},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=Ww(u(h-1),2),v=m[0],y=m[1],g=Ww(u(h),1)[0];if(v||g||(f=h+1),v&&g&&(p=h-1),!v&&g){l=y;break}d++}return l||s}(e,n.wordsWithComputedWidth,n.spaceWidth,e.width,e.scaleToFit):Qw(e.children)}return Qw(e.children)},t_=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&&qw(e,t)}(a,g);var n,r,i,o=Hw(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 Xw(Vw(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=Fw(t,Rw),h=this.state.wordsByLines;if(!gc(d.x)||!gc(d.y))return null;var m,v=d.x+(yc(n)?n:0),y=d.y+(yc(r)?r:0);switch(o){case"start":m=kw("calc(".concat(u,")"));break;case"middle":m=kw("calc(".concat((h.length-1)/2," * -").concat(l," + (").concat(u," / 2))"));break;default:m=kw("calc(".concat(h.length-1," * -").concat(l,")"))}var g=[];if(c){var b=h[0].width,x=this.props.width;g.push("scale(".concat((yc(x)?x/b:1)/b,")"))}return s&&g.push("rotate(".concat(s,", ").concat(v,", ").concat(y,")")),g.length&&(d.transform=g.join(" ")),e.createElement("text",zw({},$c(d,!0),{x:v,y:y,className:Ei("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:v,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:e_(e,n)}}return null}}],r&&Bw(n.prototype,r),i&&Bw(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();Xw(t_,"defaultProps",{x:0,y:0,lineHeight:"1em",capHeight:"0.71em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",fill:"#808080"});var n_=Lu;var r_=E((function(e,t){return n_(e,t)})),i_=ro;var o_=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&&!i_(a):n(a,c)))var c=a,s=o}return s};var a_=function(e,t){return e>t},c_=o_,s_=a_,l_=yf;var u_=function(e){return e&&e.length?c_(e,l_,s_):void 0},f_=E(u_);var p_=function(e,t){return e<t},d_=o_,h_=p_,m_=yf;var v_=function(e){return e&&e.length?d_(e,m_,h_):void 0},y_=E(v_),g_=Na,b_=Pf,x_=Ug,w_=Yi;var __=Ig,k_=function(e,t){return(w_(e)?g_:x_)(e,b_(t))};var S_=E((function(e,t){return __(k_(e,t),1)}));function E_(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function O_(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function A_(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=E_,n=(t,n)=>E_(e(t),n),r=(t,n)=>e(t)-n):(t=e===E_||e===O_?e:C_,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 C_(){return 0}function T_(e){return null===e?NaN:+e}const P_=A_(E_).right;A_(T_).center;class D_ extends Map{constructor(e,t=M_){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(j_(this,e))}has(e){return super.has(j_(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 j_({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function M_(e){return null!==e&&"object"==typeof e?e.valueOf():e}function N_(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:e>t?1:0)}const I_=Math.sqrt(50),R_=Math.sqrt(10),L_=Math.sqrt(2);function z_(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>=I_?10:o>=R_?5:o>=L_?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?z_(e,t,2*n):[c,s,l]}function F_(e,t,n){if(!((n=+n)>0))return[];if((e=+e)===(t=+t))return[e];const r=t<e,[i,o,a]=r?z_(t,e,n):z_(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 B_(e,t,n){return z_(e=+e,t=+t,n=+n)[2]}function q_(e,t,n){n=+n;const r=(t=+t)<(e=+e),i=r?B_(t,e,n):B_(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function H_(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 V_(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 U_(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?N_:function(e=E_){if(e===E_)return N_;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);U_(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(W_(e,n,t),i(e[r],o)>0&&W_(e,n,r);a<c;){for(W_(e,a,c),++a,--c;i(e[a],o)<0;)++a;for(;i(e[c],o)>0;)--c}0===i(e[n],o)?W_(e,n,c):(++c,W_(e,c,r)),c<=t&&(n=c+1),t<=c&&(r=c-1)}return e}function W_(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function G_(e,t,n=T_){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 $_(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function Y_(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 X_=Symbol("implicit");function Z_(){var e=new D_,t=[],n=[],r=X_;function i(i){let o=e.get(i);if(void 0===o){if(r!==X_)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 D_;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 Z_(t,n).unknown(r)},$_.apply(i,arguments),i}function K_(){var e,t,n=Z_().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 K_(r(),[o,a]).round(c).paddingInner(s).paddingOuter(l).align(u)},$_.apply(f(),arguments)}function J_(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return J_(t())},e}function Q_(){return J_(K_.apply(null,arguments).paddingInner(1))}function ek(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function tk(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function nk(){}var rk=.7,ik=1/rk,ok="\\s*([+-]?\\d+)\\s*",ak="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ck="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",sk=/^#([0-9a-f]{3,8})$/,lk=new RegExp(`^rgb\\(${ok},${ok},${ok}\\)$`),uk=new RegExp(`^rgb\\(${ck},${ck},${ck}\\)$`),fk=new RegExp(`^rgba\\(${ok},${ok},${ok},${ak}\\)$`),pk=new RegExp(`^rgba\\(${ck},${ck},${ck},${ak}\\)$`),dk=new RegExp(`^hsl\\(${ak},${ck},${ck}\\)$`),hk=new RegExp(`^hsla\\(${ak},${ck},${ck},${ak}\\)$`),mk={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 vk(){return this.rgb().formatHex()}function yk(){return this.rgb().formatRgb()}function gk(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=sk.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?bk(t):3===n?new kk(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?xk(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?xk(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=lk.exec(e))?new kk(t[1],t[2],t[3],1):(t=uk.exec(e))?new kk(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=fk.exec(e))?xk(t[1],t[2],t[3],t[4]):(t=pk.exec(e))?xk(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=dk.exec(e))?Tk(t[1],t[2]/100,t[3]/100,1):(t=hk.exec(e))?Tk(t[1],t[2]/100,t[3]/100,t[4]):mk.hasOwnProperty(e)?bk(mk[e]):"transparent"===e?new kk(NaN,NaN,NaN,0):null}function bk(e){return new kk(e>>16&255,e>>8&255,255&e,1)}function xk(e,t,n,r){return r<=0&&(e=t=n=NaN),new kk(e,t,n,r)}function wk(e){return e instanceof nk||(e=gk(e)),e?new kk((e=e.rgb()).r,e.g,e.b,e.opacity):new kk}function _k(e,t,n,r){return 1===arguments.length?wk(e):new kk(e,t,n,null==r?1:r)}function kk(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Sk(){return`#${Ck(this.r)}${Ck(this.g)}${Ck(this.b)}`}function Ek(){const e=Ok(this.opacity);return`${1===e?"rgb(":"rgba("}${Ak(this.r)}, ${Ak(this.g)}, ${Ak(this.b)}${1===e?")":`, ${e})`}`}function Ok(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ak(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ck(e){return((e=Ak(e))<16?"0":"")+e.toString(16)}function Tk(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Dk(e,t,n,r)}function Pk(e){if(e instanceof Dk)return new Dk(e.h,e.s,e.l,e.opacity);if(e instanceof nk||(e=gk(e)),!e)return new Dk;if(e instanceof Dk)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 Dk(a,c,s,e.opacity)}function Dk(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function jk(e){return(e=(e||0)%360)<0?e+360:e}function Mk(e){return Math.max(0,Math.min(1,e||0))}function Nk(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}ek(nk,gk,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:vk,formatHex:vk,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Pk(this).formatHsl()},formatRgb:yk,toString:yk}),ek(kk,_k,tk(nk,{brighter(e){return e=null==e?ik:Math.pow(ik,e),new kk(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?rk:Math.pow(rk,e),new kk(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new kk(Ak(this.r),Ak(this.g),Ak(this.b),Ok(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:Sk,formatHex:Sk,formatHex8:function(){return`#${Ck(this.r)}${Ck(this.g)}${Ck(this.b)}${Ck(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ek,toString:Ek})),ek(Dk,(function(e,t,n,r){return 1===arguments.length?Pk(e):new Dk(e,t,n,null==r?1:r)}),tk(nk,{brighter(e){return e=null==e?ik:Math.pow(ik,e),new Dk(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?rk:Math.pow(rk,e),new Dk(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 kk(Nk(e>=240?e-240:e+120,i,r),Nk(e,i,r),Nk(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Dk(jk(this.h),Mk(this.s),Mk(this.l),Ok(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=Ok(this.opacity);return`${1===e?"hsl(":"hsla("}${jk(this.h)}, ${100*Mk(this.s)}%, ${100*Mk(this.l)}%${1===e?")":`, ${e})`}`}}));const Ik=Math.PI/180,Rk=180/Math.PI,Lk=.96422,zk=1,Fk=.82521,Bk=4/29,qk=6/29,Hk=3*qk*qk,Vk=qk*qk*qk;function Uk(e){if(e instanceof Wk)return new Wk(e.l,e.a,e.b,e.opacity);if(e instanceof Zk)return Kk(e);e instanceof kk||(e=wk(e));var t,n,r=Xk(e.r),i=Xk(e.g),o=Xk(e.b),a=Gk((.2225045*r+.7168786*i+.0606169*o)/zk);return r===i&&i===o?t=n=a:(t=Gk((.4360747*r+.3850649*i+.1430804*o)/Lk),n=Gk((.0139322*r+.0971045*i+.7141733*o)/Fk)),new Wk(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Wk(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Gk(e){return e>Vk?Math.pow(e,1/3):e/Hk+Bk}function $k(e){return e>qk?e*e*e:Hk*(e-Bk)}function Yk(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Xk(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Zk(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Kk(e){if(isNaN(e.h))return new Wk(e.l,0,0,e.opacity);var t=e.h*Ik;return new Wk(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}ek(Wk,(function(e,t,n,r){return 1===arguments.length?Uk(e):new Wk(e,t,n,null==r?1:r)}),tk(nk,{brighter(e){return new Wk(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Wk(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 kk(Yk(3.1338561*(t=Lk*$k(t))-1.6168667*(e=zk*$k(e))-.4906146*(n=Fk*$k(n))),Yk(-.9787684*t+1.9161415*e+.033454*n),Yk(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),ek(Zk,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Zk)return new Zk(e.h,e.c,e.l,e.opacity);if(e instanceof Wk||(e=Uk(e)),0===e.a&&0===e.b)return new Zk(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Rk;return new Zk(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Zk(e,t,n,null==r?1:r)}),tk(nk,{brighter(e){return new Zk(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Zk(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Kk(this).rgb()}}));var Jk=-.14861,Qk=1.78277,eS=-.29227,tS=-.90649,nS=1.97294,rS=nS*tS,iS=nS*Qk,oS=Qk*eS-tS*Jk;function aS(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof cS)return new cS(e.h,e.s,e.l,e.opacity);e instanceof kk||(e=wk(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(oS*r+rS*t-iS*n)/(oS+rS-iS),o=r-i,a=(nS*(n-i)-eS*o)/tS,c=Math.sqrt(a*a+o*o)/(nS*i*(1-i)),s=c?Math.atan2(a,o)*Rk-120:NaN;return new cS(s<0?s+360:s,c,i,e.opacity)}(e):new cS(e,t,n,null==r?1:r)}function cS(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}ek(cS,aS,tk(nk,{brighter(e){return e=null==e?ik:Math.pow(ik,e),new cS(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?rk:Math.pow(rk,e),new cS(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*Ik,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new kk(255*(t+n*(Jk*r+Qk*i)),255*(t+n*(eS*r+tS*i)),255*(t+n*(nS*r)),this.opacity)}}));var sS=e=>()=>e;function lS(e,t){return function(n){return e+n*t}}function uS(e){return 1==(e=+e)?fS: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):sS(isNaN(t)?n:t)}}function fS(e,t){var n=t-e;return n?lS(e,n):sS(isNaN(e)?t:e)}var pS=function e(t){var n=uS(t);function r(e,t){var r=n((e=_k(e)).r,(t=_k(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=fS(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 dS(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 hS(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]=wS(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 mS(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function vS(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function yS(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]=wS(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}}var gS=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,bS=new RegExp(gS.source,"g");function xS(e,t){var n,r,i,o=gS.lastIndex=bS.lastIndex=0,a=-1,c=[],s=[];for(e+="",t+="";(n=gS.exec(e))&&(r=bS.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:vS(n,r)})),o=bS.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 wS(e,t){var n,r=typeof t;return null==t||"boolean"===r?sS(t):("number"===r?vS:"string"===r?(n=gk(t))?(t=n,pS):xS:t instanceof gk?pS:t instanceof Date?mS:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?dS:Array.isArray(t)?hS:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?yS:vS)(e,t)}function _S(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function kS(e){return((e=Math.exp(e))+1/e)/2}function SS(e){return function t(n){function r(t,r){var i=e((t=aS(t)).h,(r=aS(r)).h),o=fS(t.s,r.s),a=fS(t.l,r.l),c=fS(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 ES(e,t){void 0===t&&(t=e,e=wS);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 OS(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 v=Math.sqrt(m),y=(p*p-l*l+r*m)/(2*l*n*v),g=(p*p-l*l-r*m)/(2*p*n*v),b=Math.log(Math.sqrt(y*y+1)-y),x=Math.log(Math.sqrt(g*g+1)-g);a=(x-b)/t,o=function(e){var r=e*a,i=kS(b),o=l/(n*v)*(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/kS(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),SS((function(e,t){var n=t-e;return n?lS(e,n>180||n<-180?n-360*Math.round(n/360):n):sS(isNaN(e)?t:e)})),SS(fS);var AS=[0,1];function CS(e){return e}function TS(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function PS(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=TS(i,r),o=n(a,o)):(r=TS(r,i),o=n(o,a)),function(e){return o(r(e))}}function DS(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]=TS(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(t){var n=P_(e,t,1,r)-1;return o[n](i[n](t))}}function jS(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function MS(){var e,t,n,r,i,o,a=AS,c=AS,s=wS,l=CS;function u(){var e=Math.min(a.length,c.length);return l!==CS&&(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?DS:PS,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),vS)))(n)))},f.domain=function(e){return arguments.length?(a=Array.from(e,OS),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=_S,u()},f.clamp=function(e){return arguments.length?(l=!!e||CS,u()):l!==CS},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 NS(){return MS()(CS,CS)}function IS(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=IS(Math.abs(e)))?e[1]:NaN}var LS,zS=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function FS(e){if(!(t=zS.exec(e)))throw new Error("invalid format: "+e);var t;return new BS({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 BS(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 qS(e,t){var n=IS(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")}FS.prototype=BS.prototype,BS.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 HS={"%":(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)=>qS(100*e,t),r:qS,s:function(e,t){var n=IS(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(LS=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")+IS(e,Math.max(0,t+o-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function VS(e){return e}var US,WS,GS,$S=Array.prototype.map,YS=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function XS(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?VS:(t=$S.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?VS:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}($S.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=FS(e)).fill,n=e.align,f=e.sign,p=e.symbol,d=e.zero,h=e.width,m=e.comma,v=e.precision,y=e.trim,g=e.type;"n"===g?(m=!0,g="g"):HS[g]||(void 0===v&&(v=12),y=!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=HS[g],_=/[defgprs%]/.test(g);function k(e){var i,o,s,p=b,k=x;if("c"===g)k=w(e)+k,e="";else{var S=(e=+e)<0||1/e<0;if(e=isNaN(e)?u:w(Math.abs(e),v),y&&(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,k=("s"===g?YS[8+LS/3]:"")+k+(S&&"("===f?")":""),_)for(i=-1,o=e.length;++i<o;)if(48>(s=e.charCodeAt(i))||s>57){k=(46===s?a+e.slice(i+1):e.slice(i))+k,e=e.slice(0,i);break}}m&&!d&&(e=r(e,1/0));var E=p.length+e.length+k.length,O=E<h?new Array(h-E+1).join(t):"";switch(m&&d&&(e=r(O+e,O.length?h-k.length:1/0),O=""),n){case"<":e=p+e+k+O;break;case"=":e=p+O+e+k;break;case"^":e=O.slice(0,E=O.length>>1)+p+e+k+O.slice(E);break;default:e=O+p+e+k}return c(e)}return v=void 0===v?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),k.toString=function(){return e+""},k}return{format:f,formatPrefix:function(e,t){var n=f(((e=FS(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(RS(t)/3))),i=Math.pow(10,-r),o=YS[8+r/3];return function(e){return n(i*e)+o}}}}function ZS(e,t,n,r){var i,o=q_(e,t,n);switch((r=FS(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),GS(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 WS(r)}function KS(e){var t=e.domain;return e.ticks=function(e){var n=t();return F_(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return ZS(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=B_(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 JS(){var e=NS();return e.copy=function(){return jS(e,JS())},$_.apply(e,arguments),KS(e)}function QS(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 eE(e){return Math.log(e)}function tE(e){return Math.exp(e)}function nE(e){return-Math.log(-e)}function rE(e){return-Math.exp(-e)}function iE(e){return isFinite(e)?+("1e"+e):e<0?0:e}function oE(e){return(t,n)=>-e(-t,n)}function aE(e){const t=e(eE,tE),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?iE:e===Math.E?Math.exp:t=>Math.pow(e,t)}(o),n()[0]<0?(r=oE(r),i=oE(i),e(nE,rE)):e(eE,tE),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=F_(a,c,d))}else h=F_(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=FS(n)).precision||(n.trim=!0),n=WS(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(QS(n(),{floor:e=>i(Math.floor(r(e))),ceil:e=>i(Math.ceil(r(e)))})),t}function cE(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function sE(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function lE(e){var t=1,n=e(cE(t),sE(t));return n.constant=function(n){return arguments.length?e(cE(t=+n),sE(t)):t},KS(n)}function uE(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function fE(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function pE(e){return e<0?-e*e:e*e}function dE(e){var t=e(CS,CS),n=1;return t.exponent=function(t){return arguments.length?1===(n=+t)?e(CS,CS):.5===n?e(fE,pE):e(uE(n),uE(1/n)):n},KS(t)}function hE(){var e=dE(MS());return e.copy=function(){return jS(e,hE()).exponent(e.exponent())},$_.apply(e,arguments),e}function mE(e){return Math.sign(e)*e*e}US=XS({thousands:",",grouping:[3],currency:["$",""]}),WS=US.format,GS=US.formatPrefix;const vE=new Date,yE=new Date;function gE(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=>gE((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)=>(vE.setTime(+t),yE.setTime(+r),e(vE),e(yE),Math.floor(n(vE,yE))),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 bE=gE((()=>{}),((e,t)=>{e.setTime(+e+t)}),((e,t)=>t-e));bE.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?gE((t=>{t.setTime(Math.floor(t/e)*e)}),((t,n)=>{t.setTime(+t+n*e)}),((t,n)=>(n-t)/e)):bE:null),bE.range;const xE=1e3,wE=6e4,_E=36e5,kE=864e5,SE=6048e5,EE=2592e6,OE=31536e6,AE=gE((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*xE)}),((e,t)=>(t-e)/xE),(e=>e.getUTCSeconds()));AE.range;const CE=gE((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*xE)}),((e,t)=>{e.setTime(+e+t*wE)}),((e,t)=>(t-e)/wE),(e=>e.getMinutes()));CE.range;const TE=gE((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*wE)}),((e,t)=>(t-e)/wE),(e=>e.getUTCMinutes()));TE.range;const PE=gE((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*xE-e.getMinutes()*wE)}),((e,t)=>{e.setTime(+e+t*_E)}),((e,t)=>(t-e)/_E),(e=>e.getHours()));PE.range;const DE=gE((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*_E)}),((e,t)=>(t-e)/_E),(e=>e.getUTCHours()));DE.range;const jE=gE((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*wE)/kE),(e=>e.getDate()-1));jE.range;const ME=gE((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/kE),(e=>e.getUTCDate()-1));ME.range;const NE=gE((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/kE),(e=>Math.floor(e/kE)));function IE(e){return gE((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())*wE)/SE))}NE.range;const RE=IE(0),LE=IE(1),zE=IE(2),FE=IE(3),BE=IE(4),qE=IE(5),HE=IE(6);function VE(e){return gE((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)/SE))}RE.range,LE.range,zE.range,FE.range,BE.range,qE.range,HE.range;const UE=VE(0),WE=VE(1),GE=VE(2),$E=VE(3),YE=VE(4),XE=VE(5),ZE=VE(6);UE.range,WE.range,GE.range,$E.range,YE.range,XE.range,ZE.range;const KE=gE((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()));KE.range;const JE=gE((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()));JE.range;const QE=gE((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()));QE.every=e=>isFinite(e=Math.floor(e))&&e>0?gE((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,QE.range;const eO=gE((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 tO(e,t,n,r,i,o){const a=[[AE,1,xE],[AE,5,5e3],[AE,15,15e3],[AE,30,3e4],[o,1,wE],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,_E],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,kE],[r,2,1728e5],[n,1,SE],[t,1,EE],[t,3,7776e6],[e,1,OE]];function c(t,n,r){const i=Math.abs(n-t)/r,o=A_((([,,e])=>e)).right(a,i);if(o===a.length)return e.every(q_(t/OE,n/OE,r));if(0===o)return bE.every(Math.max(q_(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]}eO.every=e=>isFinite(e=Math.floor(e))&&e>0?gE((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,eO.range;const[nO,rO]=tO(eO,JE,UE,NE,DE,TE),[iO,oO]=tO(QE,KE,RE,jE,PE,CE);function aO(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 cO(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 sO(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var lO,uO,fO,pO,dO={"-":"",_:" ",0:"0"},hO=/^\s*\d+/,mO=/^%/,vO=/[\\^$*+?|[\]().{}]/g;function yO(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 gO(e){return e.replace(vO,"\\$&")}function bO(e){return new RegExp("^(?:"+e.map(gO).join("|")+")","i")}function xO(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function wO(e,t,n){var r=hO.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function _O(e,t,n){var r=hO.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function kO(e,t,n){var r=hO.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function SO(e,t,n){var r=hO.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function EO(e,t,n){var r=hO.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function OO(e,t,n){var r=hO.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function AO(e,t,n){var r=hO.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function CO(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 TO(e,t,n){var r=hO.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function PO(e,t,n){var r=hO.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function DO(e,t,n){var r=hO.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function jO(e,t,n){var r=hO.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function MO(e,t,n){var r=hO.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function NO(e,t,n){var r=hO.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function IO(e,t,n){var r=hO.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function RO(e,t,n){var r=hO.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function LO(e,t,n){var r=hO.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function zO(e,t,n){var r=mO.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function FO(e,t,n){var r=hO.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function BO(e,t,n){var r=hO.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function qO(e,t){return yO(e.getDate(),t,2)}function HO(e,t){return yO(e.getHours(),t,2)}function VO(e,t){return yO(e.getHours()%12||12,t,2)}function UO(e,t){return yO(1+jE.count(QE(e),e),t,3)}function WO(e,t){return yO(e.getMilliseconds(),t,3)}function GO(e,t){return WO(e,t)+"000"}function $O(e,t){return yO(e.getMonth()+1,t,2)}function YO(e,t){return yO(e.getMinutes(),t,2)}function XO(e,t){return yO(e.getSeconds(),t,2)}function ZO(e){var t=e.getDay();return 0===t?7:t}function KO(e,t){return yO(RE.count(QE(e)-1,e),t,2)}function JO(e){var t=e.getDay();return t>=4||0===t?BE(e):BE.ceil(e)}function QO(e,t){return e=JO(e),yO(BE.count(QE(e),e)+(4===QE(e).getDay()),t,2)}function eA(e){return e.getDay()}function tA(e,t){return yO(LE.count(QE(e)-1,e),t,2)}function nA(e,t){return yO(e.getFullYear()%100,t,2)}function rA(e,t){return yO((e=JO(e)).getFullYear()%100,t,2)}function iA(e,t){return yO(e.getFullYear()%1e4,t,4)}function oA(e,t){var n=e.getDay();return yO((e=n>=4||0===n?BE(e):BE.ceil(e)).getFullYear()%1e4,t,4)}function aA(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+yO(t/60|0,"0",2)+yO(t%60,"0",2)}function cA(e,t){return yO(e.getUTCDate(),t,2)}function sA(e,t){return yO(e.getUTCHours(),t,2)}function lA(e,t){return yO(e.getUTCHours()%12||12,t,2)}function uA(e,t){return yO(1+ME.count(eO(e),e),t,3)}function fA(e,t){return yO(e.getUTCMilliseconds(),t,3)}function pA(e,t){return fA(e,t)+"000"}function dA(e,t){return yO(e.getUTCMonth()+1,t,2)}function hA(e,t){return yO(e.getUTCMinutes(),t,2)}function mA(e,t){return yO(e.getUTCSeconds(),t,2)}function vA(e){var t=e.getUTCDay();return 0===t?7:t}function yA(e,t){return yO(UE.count(eO(e)-1,e),t,2)}function gA(e){var t=e.getUTCDay();return t>=4||0===t?YE(e):YE.ceil(e)}function bA(e,t){return e=gA(e),yO(YE.count(eO(e),e)+(4===eO(e).getUTCDay()),t,2)}function xA(e){return e.getUTCDay()}function wA(e,t){return yO(WE.count(eO(e)-1,e),t,2)}function _A(e,t){return yO(e.getUTCFullYear()%100,t,2)}function kA(e,t){return yO((e=gA(e)).getUTCFullYear()%100,t,2)}function SA(e,t){return yO(e.getUTCFullYear()%1e4,t,4)}function EA(e,t){var n=e.getUTCDay();return yO((e=n>=4||0===n?YE(e):YE.ceil(e)).getUTCFullYear()%1e4,t,4)}function OA(){return"+0000"}function AA(){return"%"}function CA(e){return+e}function TA(e){return Math.floor(+e/1e3)}!function(e){lO=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=bO(i),u=xO(i),f=bO(o),p=xO(o),d=bO(a),h=xO(a),m=bO(c),v=xO(c),y=bO(s),g=xO(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:qO,e:qO,f:GO,g:rA,G:oA,H:HO,I:VO,j:UO,L:WO,m:$O,M:YO,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:CA,s:TA,S:XO,u:ZO,U:KO,V:QO,w:eA,W:tA,x:null,X:null,y:nA,Y:iA,Z:aA,"%":AA},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:cA,e:cA,f:pA,g:kA,G:EA,H:sA,I:lA,j:uA,L:fA,m:dA,M:hA,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:CA,s:TA,S:mA,u:vA,U:yA,V:bA,w:xA,W:wA,x:null,X:null,y:_A,Y:SA,Z:OA,"%":AA},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=y.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=v.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return S(e,t,n,r)},d:DO,e:DO,f:LO,g:AO,G:OO,H:MO,I:MO,j:jO,L:RO,m:PO,M:NO,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:TO,Q:FO,s:BO,S:IO,u:_O,U:kO,V:SO,w:wO,W:EO,x:function(e,t,r){return S(e,n,t,r)},X:function(e,t,n){return S(e,r,t,n)},y:AO,Y:OO,Z:CO,"%":zO};function _(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=dO[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 k(e,t){return function(n){var r,i,o=sO(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=cO(sO(o.y,0,1))).getUTCDay(),r=i>4||0===i?WE.ceil(r):WE(r),r=ME.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=aO(sO(o.y,0,1))).getDay(),r=i>4||0===i?LE.ceil(r):LE(r),r=jE.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?cO(sO(o.y,0,1)).getUTCDay():aO(sO(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,cO(o)):aO(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 dO?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=_(n,b),b.X=_(r,b),b.c=_(t,b),x.x=_(n,x),x.X=_(r,x),x.c=_(t,x),{format:function(e){var t=_(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=k(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=_(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=k(e+="",!0);return t.toString=function(){return e},t}}}(e),uO=lO.format,lO.parse,fO=lO.utcFormat,pO=lO.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 PA="%Y-%m-%dT%H:%M:%S.%LZ";function DA(e){return new Date(e)}function jA(e){return e instanceof Date?+e:+new Date(+e)}function MA(e,t,n,r,i,o,a,c,s,l){var u=NS(),f=u.invert,p=u.domain,d=l(".%L"),h=l(":%S"),m=l("%I:%M"),v=l("%I %p"),y=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?v:r(e)<e?i(e)<e?y: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,jA)):p().map(DA)},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(QS(n,e)):u},u.copy=function(){return jS(u,MA(e,t,n,r,i,o,a,c,s,l))},u}function NA(){var e,t,n,r,i,o=0,a=1,c=CS,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(wS),l.rangeRound=u(_S),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 IA(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function RA(){var e=dE(NA());return e.copy=function(){return IA(e,RA()).exponent(e.exponent())},Y_.apply(e,arguments)}function LA(){var e,t,n,r,i,o,a,c=0,s=.5,l=1,u=1,f=CS,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=ES(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(wS),d.rangeRound=h(_S),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 zA(){var e=dE(LA());return e.copy=function(){return IA(e,zA()).exponent(e.exponent())},Y_.apply(e,arguments)}Date.prototype.toISOString||fO(PA),+new Date("2000-01-01T00:00:00.000Z")||pO(PA);var FA,BA=Object.freeze({__proto__:null,scaleBand:K_,scalePoint:Q_,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,OS),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,OS):[0,1],KS(r)},scaleLinear:JS,scaleLog:function e(){const t=aE(MS()).domain([1,10]);return t.copy=()=>jS(t,e()).base(t.base()),$_.apply(t,arguments),t},scaleSymlog:function e(){var t=lE(MS());return t.copy=function(){return jS(t,e()).constant(t.constant())},$_.apply(t,arguments)},scaleOrdinal:Z_,scaleImplicit:X_,scalePow:hE,scaleSqrt:function(){return hE.apply(null,arguments).exponent(.5)},scaleRadial:function e(){var t,n=NS(),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(mE(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,OS)).map(mE)),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)},$_.apply(o,arguments),KS(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]=G_(n,e/t);return a}function a(e){return null==e||isNaN(e=+e)?t:r[P_(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(E_),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)},$_.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[P_(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)},$_.apply(KS(c),arguments)},scaleThreshold:function e(){var t,n=[.5],r=[0,1],i=1;function o(e){return null!=e&&e<=e?r[P_(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)},$_.apply(o,arguments)},scaleTime:function(){return $_.apply(MA(iO,oO,QE,KE,RE,jE,PE,CE,AE,uO).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return $_.apply(MA(nO,rO,eO,JE,UE,ME,DE,TE,AE,fO).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},scaleSequential:function e(){var t=KS(NA()(CS));return t.copy=function(){return IA(t,e())},Y_.apply(t,arguments)},scaleSequentialLog:function e(){var t=aE(NA()).domain([1,10]);return t.copy=function(){return IA(t,e()).base(t.base())},Y_.apply(t,arguments)},scaleSequentialPow:RA,scaleSequentialSqrt:function(){return RA.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function e(){var t=lE(NA());return t.copy=function(){return IA(t,e()).constant(t.constant())},Y_.apply(t,arguments)},scaleSequentialQuantile:function e(){var t=[],n=CS;function r(e){if(null!=e&&!isNaN(e=+e))return n((P_(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(E_),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 V_(e);if(t>=1)return H_(e);var r,i=(r-1)*t,o=Math.floor(i),a=H_(U_(e,o).subarray(0,o+1));return a+(V_(e.subarray(o+1))-a)*(i-o)}}(t,r/e)))},r.copy=function(){return e(n).domain(t)},Y_.apply(r,arguments)},scaleDiverging:function e(){var t=KS(LA()(CS));return t.copy=function(){return IA(t,e())},Y_.apply(t,arguments)},scaleDivergingLog:function e(){var t=aE(LA()).domain([.1,1,10]);return t.copy=function(){return IA(t,e()).base(t.base())},Y_.apply(t,arguments)},scaleDivergingPow:zA,scaleDivergingSqrt:function(){return zA.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function e(){var t=lE(LA());return t.copy=function(){return IA(t,e()).constant(t.constant())},Y_.apply(t,arguments)},tickFormat:ZS}),qA={},HA={},VA=1e9,UA=!0,WA="[DecimalError] ",GA=WA+"Invalid argument: ",$A=WA+"Exponent out of range: ",YA=Math.floor,XA=Math.pow,ZA=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,KA=1e7,JA=7,QA=9007199254740991,eC=YA(QA/JA),tC={};function nC(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)),UA?pC(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/JA))>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)/KA|0,s[o]%=KA;for(n&&(s.unshift(n),++i),c=s.length;0==s[--c];)s.pop();return t.d=s,t.e=i,UA?pC(t,f):t}function rC(e,t,n){if(e!==~~e||e<t||e>n)throw Error(GA+e)}function iC(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=JA-r.length)&&(o+=lC(n)),o+=r;a=e[t],(n=JA-(r=a+"").length)&&(o+=lC(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return o+a}tC.absoluteValue=tC.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},tC.comparedTo=tC.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},tC.decimalPlaces=tC.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*JA;if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},tC.dividedBy=tC.div=function(e){return oC(this,new this.constructor(e))},tC.dividedToIntegerBy=tC.idiv=function(e){var t=this.constructor;return pC(oC(this,new t(e),0,1),t.precision)},tC.equals=tC.eq=function(e){return!this.cmp(e)},tC.exponent=function(){return cC(this)},tC.greaterThan=tC.gt=function(e){return this.cmp(e)>0},tC.greaterThanOrEqualTo=tC.gte=function(e){return this.cmp(e)>=0},tC.isInteger=tC.isint=function(){return this.e>this.d.length-2},tC.isNegative=tC.isneg=function(){return this.s<0},tC.isPositive=tC.ispos=function(){return this.s>0},tC.isZero=function(){return 0===this.s},tC.lessThan=tC.lt=function(e){return this.cmp(e)<0},tC.lessThanOrEqualTo=tC.lte=function(e){return this.cmp(e)<1},tC.logarithm=tC.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(FA))throw Error(WA+"NaN");if(n.s<1)throw Error(WA+(n.s?"NaN":"-Infinity"));return n.eq(FA)?new r(0):(UA=!1,t=oC(uC(n,o),uC(e,o),o),UA=!0,pC(t,i))},tC.minus=tC.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?dC(t,e):nC(t,(e.s=-e.s,e))},tC.modulo=tC.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(!(e=new r(e)).s)throw Error(WA+"NaN");return n.s?(UA=!1,t=oC(n,e,0,1).times(e),UA=!0,n.minus(t)):pC(new r(n),i)},tC.naturalExponential=tC.exp=function(){return aC(this)},tC.naturalLogarithm=tC.ln=function(){return uC(this)},tC.negated=tC.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},tC.plus=tC.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?nC(t,e):dC(t,(e.s=-e.s,e))},tC.precision=tC.sd=function(e){var t,n,r,i=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(GA+e);if(t=cC(i)+1,n=(r=i.d.length-1)*JA+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},tC.squareRoot=tC.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(WA+"NaN")}for(e=cC(c),UA=!1,0==(i=Math.sqrt(+c))||i==1/0?(((t=iC(c.d)).length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=YA((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(oC(c,o,a+2)).times(.5),iC(o.d).slice(0,a)===(t=iC(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&"4999"==t){if(pC(o,n+1,0),o.times(o).eq(c)){r=o;break}}else if("9999"!=t)break;a+=4}return UA=!0,pC(r,n)},tC.times=tC.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%KA|0,t=c/KA|0;o[i]=(o[i]+t)%KA|0}for(;!o[--a];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,UA?pC(e,f.precision):e},tC.toDecimalPlaces=tC.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(rC(e,0,VA),void 0===t?t=r.rounding:rC(t,0,8),pC(n,e+cC(n)+1,t))},tC.toExponential=function(e,t){var n,r=this,i=r.constructor;return void 0===e?n=hC(r,!0):(rC(e,0,VA),void 0===t?t=i.rounding:rC(t,0,8),n=hC(r=pC(new i(r),e+1,t),!0,e+1)),n},tC.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return void 0===e?hC(i):(rC(e,0,VA),void 0===t?t=o.rounding:rC(t,0,8),n=hC((r=pC(new o(i),e+cC(i)+1,t)).abs(),!1,e+cC(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)},tC.toInteger=tC.toint=function(){var e=this,t=e.constructor;return pC(new t(e),cC(e)+1,t.rounding)},tC.toNumber=function(){return+this},tC.toPower=tC.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(FA);if(!(c=new s(c)).s){if(e.s<1)throw Error(WA+"Infinity");return c}if(c.eq(FA))return c;if(r=s.precision,e.eq(FA))return pC(c,r);if(a=(t=e.e)>=(n=e.d.length-1),o=c.s,a){if((n=l<0?-l:l)<=QA){for(i=new s(FA),t=Math.ceil(r/JA+4),UA=!1;n%2&&mC((i=i.times(c)).d,t),0!==(n=YA(n/2));)mC((c=c.times(c)).d,t);return UA=!0,e.s<0?new s(FA).div(i):pC(i,r)}}else if(o<0)throw Error(WA+"NaN");return o=o<0&&1&e.d[Math.max(t,n)]?-1:1,c.s=1,UA=!1,i=e.times(uC(c,r+12)),UA=!0,(i=aC(i)).s=o,i},tC.toPrecision=function(e,t){var n,r,i=this,o=i.constructor;return void 0===e?r=hC(i,(n=cC(i))<=o.toExpNeg||n>=o.toExpPos):(rC(e,1,VA),void 0===t?t=o.rounding:rC(t,0,8),r=hC(i=pC(new o(i),e,t),e<=(n=cC(i))||n<=o.toExpNeg,e)),r},tC.toSignificantDigits=tC.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(rC(e,1,VA),void 0===t?t=n.rounding:rC(t,0,8)),pC(new n(this),e,t)},tC.toString=tC.valueOf=tC.val=tC.toJSON=tC[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=cC(e),n=e.constructor;return hC(e,t<=n.toExpNeg||t>=n.toExpPos)};var oC=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%KA|0,r=n/KA|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*KA+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,v,y,g,b,x,w,_,k,S,E=r.constructor,O=r.s==i.s?1:-1,A=r.d,C=i.d;if(!r.s)return new E(r);if(!i.s)throw Error(WA+"Division by zero");for(s=r.e-i.e,k=C.length,w=A.length,h=(d=new E(O)).d=[],l=0;C[l]==(A[l]||0);)++l;if(C[l]>(A[l]||0)&&--s,(g=null==o?o=E.precision:a?o+(cC(r)-cC(i))+1:o)<0)return new E(0);if(g=g/JA+2|0,l=0,1==k)for(u=0,C=C[0],g++;(l<w||u)&&g--;l++)b=u*KA+(A[l]||0),h[l]=b/C|0,u=b%C|0;else{for((u=KA/(C[0]+1)|0)>1&&(C=e(C,u),A=e(A,u),k=C.length,w=A.length),x=k,v=(m=A.slice(0,k)).length;v<k;)m[v++]=0;(S=C.slice()).unshift(0),_=C[0],C[1]>=KA/2&&++_;do{u=0,(c=t(C,m,k,v))<0?(y=m[0],k!=v&&(y=y*KA+(m[1]||0)),(u=y/_|0)>1?(u>=KA&&(u=KA-1),1==(c=t(f=e(C,u),m,p=f.length,v=m.length))&&(u--,n(f,k<p?S:C,p))):(0==u&&(c=u=1),f=C.slice()),(p=f.length)<v&&f.unshift(0),n(m,f,v),-1==c&&(c=t(C,m,k,v=m.length))<1&&(u++,n(m,k<v?S:C,v)),v=m.length):0===c&&(u++,m=[0]),h[l++]=u,c&&m[0]?m[v++]=A[x]||0:(m=[A[x]],v=1)}while((x++<w||void 0!==m[0])&&g--)}return h[0]||h.shift(),d.e=s,pC(d,a?o+cC(d)+1:o)}}();function aC(e,t){var n,r,i,o,a,c=0,s=0,l=e.constructor,u=l.precision;if(cC(e)>16)throw Error($A+cC(e));if(!e.s)return new l(FA);for(null==t?(UA=!1,a=u):a=t,o=new l(.03125);e.abs().gte(.1);)e=e.times(o),s+=5;for(a+=Math.log(XA(2,s))/Math.LN10*2+5|0,n=r=i=new l(FA),l.precision=a;;){if(r=pC(r.times(e),a),n=n.times(++c),iC((o=i.plus(oC(r,n,a))).d).slice(0,a)===iC(i.d).slice(0,a)){for(;s--;)i=pC(i.times(i),a);return l.precision=u,null==t?(UA=!0,pC(i,u)):i}i=o}}function cC(e){for(var t=e.e*JA,n=e.d[0];n>=10;n/=10)t++;return t}function sC(e,t,n){if(t>e.LN10.sd())throw UA=!0,n&&(e.precision=n),Error(WA+"LN10 precision limit exceeded");return pC(new e(e.LN10),t)}function lC(e){for(var t="";e--;)t+="0";return t}function uC(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(WA+(p.s?"NaN":"-Infinity"));if(p.eq(FA))return new h(0);if(null==t?(UA=!1,l=m):l=t,p.eq(10))return null==t&&(UA=!0),sC(h,l);if(l+=10,h.precision=l,r=(n=iC(d)).charAt(0),o=cC(p),!(Math.abs(o)<15e14))return s=sC(h,l+2,m).times(o+""),p=uC(new h(r+"."+n.slice(1)),l-10).plus(s),h.precision=m,null==t?(UA=!0,pC(p,m)):p;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=iC((p=p.times(e)).d)).charAt(0),f++;for(o=cC(p),r>1?(p=new h("0."+n),o++):p=new h(r+"."+n.slice(1)),c=a=p=oC(p.minus(FA),p.plus(FA),l),u=pC(p.times(p),l),i=3;;){if(a=pC(a.times(u),l),iC((s=c.plus(oC(a,new h(i),l))).d).slice(0,l)===iC(c.d).slice(0,l))return c=c.times(2),0!==o&&(c=c.plus(sC(h,l+2,m).times(o+""))),c=oC(c,new h(f),l),h.precision=m,null==t?(UA=!0,pC(c,m)):c;c=s,i+=2}}function fC(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=YA(n/JA),e.d=[],r=(n+1)%JA,n<0&&(r+=JA),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=JA;r<i;)e.d.push(+t.slice(r,r+=JA));t=t.slice(r),r=JA-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),UA&&(e.e>eC||e.e<-eC))throw Error($A+n)}else e.s=0,e.e=0,e.d=[0];return e}function pC(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+=JA,i=t,l=f[u=0];else{if((u=Math.ceil((r+1)/JA))>=(o=f.length))return e;for(l=o=f[u],a=1;o>=10;o/=10)a++;i=(r%=JA)-JA+a}if(void 0!==n&&(c=l/(o=XA(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/XA(10,a-i):0:f[u-1])%10&1||n==(e.s<0?8:7))),t<1||!f[0])return s?(o=cC(e),f.length=1,t=t-o-1,f[0]=XA(10,(JA-t%JA)%JA),e.e=YA(-t/JA)||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=XA(10,JA-r),f[u]=i>0?(l/XA(10,a-i)%XA(10,i)|0)*o:0),s)for(;;){if(0==u){(f[0]+=o)==KA&&(f[0]=1,++e.e);break}if(f[u]+=o,f[u]!=KA)break;f[u--]=0,o=1}for(r=f.length;0===f[--r];)f.pop();if(UA&&(e.e>eC||e.e<-eC))throw Error($A+cC(e));return e}function dC(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),UA?pC(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/JA),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]=KA-1;--s[o],s[i]+=KA}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,UA?pC(t,d):t):new p(0)}function hC(e,t,n){var r,i=cC(e),o=iC(e.d),a=o.length;return t?(n&&(r=n-a)>0?o=o.charAt(0)+"."+o.slice(1)+lC(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+lC(-i-1)+o,n&&(r=n-a)>0&&(o+=lC(r))):i>=a?(o+=lC(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+lC(r))):((r=i+1)<a&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-a)>0&&(i+1===a&&(o+="."),o+=lC(r))),e.s<0?"-"+o:o}function mC(e,t){if(e.length>t)return e.length=t,!0}function vC(e){if(!e||"object"!=typeof e)throw Error(WA+"Object expected");var t,n,r,i=["precision",1,VA,"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(!(YA(r)===r&&r>=i[t+1]&&r<=i[t+2]))throw Error(GA+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(GA+n+": "+r);this[n]=new this(r)}return this}var yC=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(GA+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])):fC(t,e.toString())}if("string"!=typeof e)throw Error(GA+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!ZA.test(e))throw Error(GA+e);fC(t,e)}if(o.prototype=tC,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=vC,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"});FA=new yC(1);var gC=yC,bC=O(Object.freeze({__proto__:null,get Decimal(){return yC},default:gC})),xC={};function wC(e){return function(e){if(Array.isArray(e))return _C(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 _C(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 _C(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 _C(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(xC,"__esModule",{value:!0}),xC.memoize=xC.reverse=xC.compose=xC.map=xC.range=xC.curry=xC.PLACE_HOLDER=void 0;var kC=function(e){return e},SC={"@@functional/placeholder":!0};xC.PLACE_HOLDER=SC;var EC=function(e){return e===SC},OC=function(e){return function t(){return 0===arguments.length||1===arguments.length&&EC(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},AC=function e(t,n){return 1===t?n:OC((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!==SC})).length;return a>=t?n.apply(void 0,i):e(t-a,OC((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 EC(e)?t.shift():e}));return n.apply(void 0,wC(o).concat(t))})))}))},CC=function(e){return AC(e.length,e)};xC.curry=CC;xC.range=function(e,t){for(var n=[],r=e;r<t;++r)n[r-e]=r;return n};var TC=CC((function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map((function(e){return t[e]})).map(e)}));xC.map=TC;xC.compose=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return kC;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))}};xC.reverse=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")};xC.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 PC={};Object.defineProperty(PC,"__esModule",{value:!0}),PC.default=void 0;var DC=function(e){return e&&e.__esModule?e:{default:e}}(bC),jC=xC;var MC=(0,jC.curry)((function(e,t,n){var r=+e;return r+n*(+t-r)})),NC=(0,jC.curry)((function(e,t,n){var r=t-+e;return(n-e)/(r=r||1/0)})),IC=(0,jC.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 DC.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 DC.default(e).abs().log(10).toNumber())+1},interpolateNumber:MC,uninterpolateNumber:NC,uninterpolateTruncation:IC};PC.default=RC,Object.defineProperty(HA,"__esModule",{value:!0}),HA.getTickValuesFixedDomain=HA.getTickValues=HA.getNiceTickValues=void 0;var LC=BC(bC),zC=xC,FC=BC(PC);function BC(e){return e&&e.__esModule?e:{default:e}}function qC(e){return function(e){if(Array.isArray(e))return UC(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||VC(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 HC(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)||VC(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 VC(e,t){if(e){if("string"==typeof e)return UC(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)?UC(e,t):void 0}}function UC(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 WC(e){var t=HC(e,2),n=t[0],r=t[1],i=n,o=r;return n>r&&(i=r,o=n),[i,o]}function GC(e,t,n){if(e.lte(0))return new LC.default(0);var r=FC.default.getDigitCount(e.toNumber()),i=new LC.default(10).pow(r),o=e.div(i),a=1!==r?.05:.1,c=new LC.default(Math.ceil(o.div(a).toNumber())).add(n).mul(a).mul(i);return t?c:new LC.default(Math.ceil(c))}function $C(e,t,n){var r=1,i=new LC.default(e);if(!i.isint()&&n){var o=Math.abs(e);o<1?(r=new LC.default(10).pow(FC.default.getDigitCount(e)-1),i=new LC.default(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new LC.default(Math.floor(e)))}else 0===e?i=new LC.default(Math.floor((t-1)/2)):n||(i=new LC.default(Math.floor(e)));var a=Math.floor((t-1)/2),c=(0,zC.compose)((0,zC.map)((function(e){return i.add(new LC.default(e-a).mul(r)).toNumber()})),zC.range);return c(0,t)}function YC(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 LC.default(0),tickMin:new LC.default(0),tickMax:new LC.default(0)};var o,a=GC(new LC.default(t).sub(e).div(n-1),r,i);o=e<=0&&t>=0?new LC.default(0):(o=new LC.default(e).add(t).div(2)).sub(new LC.default(o).mod(a));var c=Math.ceil(o.sub(e).div(a).toNumber()),s=Math.ceil(new LC.default(t).sub(o).div(a).toNumber()),l=c+s+1;return l>n?YC(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 LC.default(c).mul(a)),tickMax:o.add(new LC.default(s).mul(a))})}var XC=(0,zC.memoize)((function(e){var t=HC(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=HC(WC([n,r]),2),s=c[0],l=c[1];if(s===-1/0||l===1/0){var u=l===1/0?[s].concat(qC((0,zC.range)(0,i-1).map((function(){return 1/0})))):[].concat(qC((0,zC.range)(0,i-1).map((function(){return-1/0}))),[l]);return n>r?(0,zC.reverse)(u):u}if(s===l)return $C(s,i,o);var f=YC(s,l,a,o),p=f.step,d=f.tickMin,h=f.tickMax,m=FC.default.rangeStep(d,h.add(new LC.default(.1).mul(p)),p);return n>r?(0,zC.reverse)(m):m}));HA.getNiceTickValues=XC;var ZC=(0,zC.memoize)((function(e){var t=HC(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=HC(WC([n,r]),2),s=c[0],l=c[1];if(s===-1/0||l===1/0)return[n,r];if(s===l)return $C(s,i,o);var u=GC(new LC.default(l).sub(s).div(a-1),o,0),f=(0,zC.compose)((0,zC.map)((function(e){return new LC.default(s).add(new LC.default(e).mul(u)).toNumber()})),zC.range),p=f(0,a).filter((function(e){return e>=s&&e<=l}));return n>r?(0,zC.reverse)(p):p}));HA.getTickValues=ZC;var KC=(0,zC.memoize)((function(e,t){var n=HC(e,2),r=n[0],i=n[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=HC(WC([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=GC(new LC.default(s).sub(c).div(l-1),o,0),f=[].concat(qC(FC.default.rangeStep(new LC.default(c),new LC.default(s).sub(new LC.default(.99).mul(u)),u)),[s]);return r>i?(0,zC.reverse)(f):f}));HA.getTickValuesFixedDomain=KC,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=HA}(qA);var JC=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function QC(){return QC=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},QC.apply(this,arguments)}function eT(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 tT(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 tT(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 tT(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 nT(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 rT(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=nT(t,JC),f=$c(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 v,y,g=[];if(Array.isArray(m)){var b=eT(m,2);v=b[0],y=b[1]}else v=y=m;if("vertical"===r){var x=s.scale,w=d+n,_=w+i,k=w-i,S=x(h-v),E=x(h+y);g.push({x1:E,y1:_,x2:E,y2:k}),g.push({x1:S,y1:w,x2:E,y2:w}),g.push({x1:S,y1:_,x2:S,y2:k})}else if("horizontal"===r){var O=l.scale,A=p+n,C=A-i,T=A+i,P=O(h-v),D=O(h+y);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(is,QC({className:"recharts-errorBar",key:"bar-".concat(a)},f),g.map((function(t,n){return e.createElement("line",QC({},t,{key:"line-".concat(n)}))})))}));return e.createElement(is,{className:"recharts-errorBars"},p)}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)}function oT(e){return function(e){if(Array.isArray(e))return aT(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 aT(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 aT(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 aT(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 cT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cT(Object(n),!0).forEach((function(t){lT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lT(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 uT(e,t,n){return rc(e)||rc(t)?n:gc(t)?tc(e,t,n):$i(t)?t(e):n}function fT(e,t,n,r){var i=S_(e,(function(e){return uT(e,t)}));if("number"===n){var o=i.filter((function(e){return yc(e)||parseFloat(e)}));return o.length?[y_(o),f_(o)]:[1/0,-1/0]}return(r?i.filter((function(e){return!rc(e)})):i).map((function(e){return gc(e)||e instanceof Date?e:""}))}rT.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},rT.displayName="ErrorBar";var pT=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},dT=function(e){var t,n=e.children,r=e.formattedGraphicalItems,i=e.legendWidth,o=e.legendContent,a=Hc(n,kh);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:pT(t),value:i||r,payload:t.props}})),sT(sT(sT({},a.props),kh.getWithHeight(a,i)),{},{payload:t,item:a})):null},hT=function(e,t,n,r,i){var o=qc(t.props.children,rT).filter((function(e){return function(e,t,n){return!!rc(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=uT(t,n,0),i=Xi(r)?[y_(r),f_(r)]:[r,r],o=a.reduce((function(e,n){var r=uT(t,n,0),o=i[0]-Math.abs(Xi(r)?r[0]:r),a=i[1]+Math.abs(Xi(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},mT=function(e,t,n,r,i){var o=t.map((function(t){var o=t.props.dataKey;return"number"===n&&o&&hT(e,t,o,r)||fT(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}),[])},vT=function(e,t){return"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t},yT=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},gT=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*mc(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!hc(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}}))},bT=function(e,t,n){var r;return $i(n)?r=n:$i(t)&&(r=t),$i(e)||r?function(t,n,i,o){$i(e)&&e(t,n,i,o),$i(r)&&r(t,n,i,o)}:null},xT=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:K_(),realScaleType:"band"}:"radial"===o&&"angleAxis"===a?{scale:JS(),realScaleType:"linear"}:"category"===i&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!n)?{scale:Q_(),realScaleType:"point"}:"category"===i?{scale:K_(),realScaleType:"band"}:{scale:JS(),realScaleType:"linear"};if(eo(r)){var c="scale".concat(Cp(r));return{scale:(BA[c]||Q_)(),realScaleType:BA[c]?c:"point"}}return $i(r)?{scale:r}:{scale:Q_(),realScaleType:"point"}},wT=1e-4,_T=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])-wT,o=Math.max(r[0],r[1])+wT,a=e(t[0]),c=e(t[n-1]);(a<i||a>o||c<i||c>o)&&e.domain([t[0],t[n-1]])}},kT=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},ST=function(e,t){if(!t||2!==t.length||!yc(t[0])||!yc(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(!yc(e[0])||e[0]<n)&&(i[0]=n),(!yc(e[1])||e[1]>r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]<n&&(i[1]=n),i},ET={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=hc(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}Ld(e,t)}},none:Ld,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}Ld(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,Ld(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=hc(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)}}},OT=function(e,t,n){var r=t.map((function(e){return e.props.dataKey})),i=function(){var e=Tp([]),t=zd,n=Ld,r=Fd;function i(i){var o,a,c=Array.from(e.apply(this,arguments),Bd),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=Hp(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:Tp(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r="function"==typeof e?e:Tp(+e),i):r},i.order=function(e){return arguments.length?(t=null==e?zd:"function"==typeof e?e:Tp(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=null==e?Ld:e,i):n},i}().keys(r).value((function(e,t){return+uT(e,t,0)})).order(zd).offset(ET[n]);return i(e)},AT=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=qA.getNiceTickValues(s,i,a);return e.domain([y_(l),f_(l)]),{niceTicks:l}}if(i&&"number"===r){var u=e.domain();return{niceTicks:qA.getTickValuesFixedDomain(u,i,a)}}return null},CT=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&&!rc(i[t.dataKey])){var c=Sc(n,"value",i[t.dataKey]);if(c)return c.coordinate+r/2}return n[o]?n[o].coordinate+r/2:null}var s=uT(i,rc(a)?t.dataKey:a);return rc(s)?null:t.scale(s)},TT=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=uT(o,t.dataKey,t.domain[a]);return rc(c)?null:t.scale(c)-i/2+r},PT=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]},DT=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[y_(t.concat([e[0]]).filter(yc)),f_(t.concat([e[1]]).filter(yc))]}),[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}))},jT=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,MT=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,NT=function(e,t,n){if($i(e))return e(t,n);if(!Xi(e))return t;var r=[];if(yc(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(jT.test(e[0])){var i=+jT.exec(e[0])[1];r[0]=t[0]-i}else $i(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if(yc(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(MT.test(e[1])){var o=+MT.exec(e[1])[1];r[1]=t[1]+o}else $i(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},IT=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=jb(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?r_(e,tc(n,"type.defaultProps.domain"))?t:e:t},LT=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 sT(sT({},$c(e)),{},{dataKey:r,unit:o,formatter:a,name:i||r,color:pT(e),value:uT(t,r),type:c,payload:t,chartType:s})};function zT(e){return zT="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},zT(e)}function FT(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 BT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?FT(Object(n),!0).forEach((function(t){qT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qT(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==zT(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==zT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===zT(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HT(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 VT(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 VT(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 VT(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 UT=Math.PI/180,WT=function(e){return 180*e/Math.PI},GT=function(e,t,n,r){return{x:e+Math.cos(-UT*r)*n,y:t+Math.sin(-UT*r)*n}},$T=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},YT=function(e,t,n,r,i){var o=e.width,a=e.height,c=e.startAngle,s=e.endAngle,l=wc(e.cx,o,o/2),u=wc(e.cy,a,a/2),f=$T(o,a,n),p=wc(e.innerRadius,f,0),d=wc(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(rc(a.range))"angleAxis"===r?o=[c,s]:"radiusAxis"===r&&(o=[p,d]),h&&(o=[o[1],o[0]]);else{var m=HT(o=a.range,2);c=m[0],s=m[1]}var v=xT(a,i),y=v.realScaleType,g=v.scale;g.domain(f).range(o),_T(g);var b=AT(g,BT(BT({},a),{},{realScaleType:y})),x=BT(BT(BT({},a),b),{},{range:o,radius:d,realScaleType:y,scale:g,cx:l,cy:u,innerRadius:p,outerRadius:d,startAngle:c,endAngle:s});return BT(BT({},e),{},qT({},n,x))}),{})},XT=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:WT(s),angleInRadian:s}},ZT=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)},KT=function(e,t){var n=e.x,r=e.y,i=XT({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?BT(BT({},t),{},{radius:o,angle:ZT(d,t)}):null};function JT(e){return JT="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},JT(e)}function QT(e){return function(e){if(Array.isArray(e))return eP(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 eP(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 eP(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 eP(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 tP(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 nP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tP(Object(n),!0).forEach((function(t){rP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rP(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==JT(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==JT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===JT(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iP(){return iP=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},iP.apply(this,arguments)}var oP=function(e){var t=e.value,n=e.formatter,r=rc(e.children)?t:e.children;return $i(n)?n(r):r},aP=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,v=u.endAngle,y=u.clockWise,g=(d+h)/2,b=function(e,t){return mc(t-e)*Math.min(Math.abs(t-e),360)}(m,v),x=b>=0?1:-1;"insideStart"===a?(i=m+x*s,o=y):"insideEnd"===a?(i=v-x*s,o=!y):"end"===a&&(i=v+x*s,o=y),o=b<=0?o:!o;var w=GT(f,p,g,i),_=GT(f,p,g,i+359*(o?1:-1)),k="M".concat(w.x,",").concat(w.y,"\n A").concat(g,",").concat(g,",0,1,").concat(o?0:1,",\n ").concat(_.x,",").concat(_.y),S=rc(t.id)?xc("recharts-radial-line-"):t.id;return e.createElement("text",iP({},r,{dominantBaseline:"central",className:Ei("recharts-radial-bar-label",l)}),e.createElement("defs",null,e.createElement("path",{id:S,d:k})),e.createElement("textPath",{xlinkHref:"#".concat(S)},n))},cP=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=GT(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=GT(o,a,(c+s)/2,l);return{x:p.x,y:p.y,textAnchor:"middle",verticalAnchor:"middle"}},sP=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,v=h>0?"end":"start",y=h>0?"start":"end";if("top"===i)return nP(nP({},{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 nP(nP({},{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:v,verticalAnchor:"middle"};return nP(nP({},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:y,verticalAnchor:"middle"};return nP(nP({},b),n?{width:Math.max(n.x+n.width-b.x,0),height:l}:{})}var x=n?{width:s,height:l}:{};return"insideLeft"===i?nP({x:a+m,y:c+l/2,textAnchor:y,verticalAnchor:"middle"},x):"insideRight"===i?nP({x:a+s-m,y:c+l/2,textAnchor:v,verticalAnchor:"middle"},x):"insideTop"===i?nP({x:a+s/2,y:c+f,textAnchor:"middle",verticalAnchor:d},x):"insideBottom"===i?nP({x:a+s/2,y:c+l-f,textAnchor:"middle",verticalAnchor:p},x):"insideTopLeft"===i?nP({x:a+m,y:c+f,textAnchor:y,verticalAnchor:d},x):"insideTopRight"===i?nP({x:a+s-m,y:c+f,textAnchor:v,verticalAnchor:d},x):"insideBottomLeft"===i?nP({x:a+m,y:c+l-f,textAnchor:y,verticalAnchor:p},x):"insideBottomRight"===i?nP({x:a+s-m,y:c+l-f,textAnchor:v,verticalAnchor:p},x):Ai(i)&&(yc(i.x)||vc(i.x))&&(yc(i.y)||vc(i.y))?nP({x:a+wc(i.x,s),y:c+wc(i.y,l),textAnchor:"end",verticalAnchor:"end"},x):nP({x:a+s/2,y:c+l/2,textAnchor:"middle",verticalAnchor:"middle"},x)},lP=function(e){return"cx"in e&&yc(e.cx)};function uP(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||rc(a)&&rc(c)&&!u(s)&&!$i(s))return null;if(u(s))return d(s,t);if($i(s)){if(u(r=n(s,t)))return r}else r=oP(t);var h=lP(i),m=$c(t,!0);if(h&&("insideStart"===o||"insideEnd"===o||"end"===o))return aP(t,r,m);var v=h?cP(t):sP(t);return e.createElement(t_,iP({className:Ei("recharts-label",f)},m,v,{breakAll:p}),r)}uP.displayName="Label",uP.defaultProps={offset:5};var fP=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,v=e.clockWise,y=e.labelViewBox;if(y)return y;if(yc(h)&&yc(m)){if(yc(u)&&yc(f))return{x:u,y:f,width:h,height:m};if(yc(p)&&yc(d))return{x:p,y:d,width:h,height:m}}return yc(u)&&yc(f)?{x:u,y:f,width:0,height:0}:yc(t)&&yc(n)?{cx:t,cy:n,startAngle:i||r||0,endAngle:o||r||0,innerRadius:s||0,outerRadius:l||c||a||0,clockWise:v}:e.viewBox?e.viewBox:{}};uP.parseViewBox=fP,uP.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=fP(t),a=qc(i,uP).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(uP,{key:"label-implicit",viewBox:n}):gc(t)?e.createElement(uP,{key:"label-implicit",viewBox:n,value:t}):u(t)?t.type===uP?d(t,{key:"label-implicit",viewBox:n}):e.createElement(uP,{key:"label-implicit",content:t,viewBox:n}):$i(t)?e.createElement(uP,{key:"label-implicit",content:t,viewBox:n}):Ai(t)?e.createElement(uP,iP({viewBox:n},t,{key:"label-implicit"})):null:null}(t.label,n||o);return[c].concat(QT(a))};var pP=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},dP=E(pP);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)}var mP=["data","valueAccessor","dataKey","clockWise","id","textBreakAll"];function vP(e){return function(e){if(Array.isArray(e))return yP(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 yP(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 yP(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 yP(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 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){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 xP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bP(Object(n),!0).forEach((function(t){wP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wP(e,t,n){return(t=function(e){var t=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)}(e,"string");return"symbol"===hP(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _P(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 kP={valueAccessor:function(e){return Xi(e.value)?dP(e.value):e.value}};function SP(t){var n=t.data,r=t.valueAccessor,i=t.dataKey,o=t.clockWise,a=t.id,c=t.textBreakAll,s=_P(t,mP);return n&&n.length?e.createElement(is,{className:"recharts-label-list"},n.map((function(t,n){var l=rc(i)?r(t,n):uT(t&&t.payload,i),u=rc(a)?{}:{id:"".concat(a,"-").concat(n)};return e.createElement(uP,gP({},$c(t,!0),s,u,{parentViewBox:t.parentViewBox,index:n,value:l,textBreakAll:c,viewBox:uP.parseViewBox(rc(o)?t:xP(xP({},t),{},{clockWise:o})),key:"label-".concat(n)}))}))):null}function EP(e){return EP="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},EP(e)}function OP(){return OP=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},OP.apply(this,arguments)}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,DP(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 TP(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=PP(e);if(t){var i=PP(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===EP(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 PP(e){return PP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},PP(e)}function DP(e){var t=function(e,t){if("object"!==EP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==EP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===EP(t)?t:String(t)}SP.displayName="LabelList",SP.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=qc(t.children,SP).map((function(e,t){return d(e,{data:n,key:"labelList-".concat(t)})}));return r?[function(t,n){return t?!0===t?e.createElement(SP,{key:"labelList-implicit",data:n}):e.isValidElement(t)||$i(t)?e.createElement(SP,{key:"labelList-implicit",data:n,content:t}):Ai(t)?e.createElement(SP,gP({data:n},t,{key:"labelList-implicit"})):null:null}(t.label,n)].concat(vP(i)):i},SP.defaultProps=kP;var jP=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)/UT,f=s?i:i+o*u,p=s?i-o*u:i;return{center:GT(t,n,l,f),circleTangency:GT(t,n,r,f),lineTangency:GT(t,n,l*Math.cos(u*UT),p),theta:u}},MP=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,o=e.startAngle,a=function(e,t){return mc(t-e)*Math.min(Math.abs(t-e),359.999)}(o,e.endAngle),c=o+a,s=GT(t,n,i,o),l=GT(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=GT(t,n,r,o),p=GT(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},NP=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=TP(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=Ei("recharts-sector",f),h=o-i,m=wc(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=mc(l-s),f=jP({cx:t,cy:n,radius:i,angle:s,sign:u,cornerRadius:o,cornerIsExternal:c}),p=f.circleTangency,d=f.lineTangency,h=f.theta,m=jP({cx:t,cy:n,radius:i,angle:l,sign:-u,cornerRadius:o,cornerIsExternal:c}),v=m.circleTangency,y=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 "):MP({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(v.x,",").concat(v.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(u<0),",").concat(y.x,",").concat(y.y,"\n ");if(r>0){var w=jP({cx:t,cy:n,radius:r,angle:s,sign:u,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),_=w.circleTangency,k=w.lineTangency,S=w.theta,E=jP({cx:t,cy:n,radius:r,angle:l,sign:-u,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),O=E.circleTangency,A=E.lineTangency,C=E.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(_.x,",").concat(_.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(u<0),",").concat(k.x,",").concat(k.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}):MP({cx:n,cy:r,innerRadius:i,outerRadius:o,startAngle:l,endAngle:u}),e.createElement("path",OP({},$c(this.props,!0),{className:d,d:p,role:"img"}))}}],r&&AP(n.prototype,r),i&&AP(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function IP(e){return IP="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},IP(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 LP(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 zP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?LP(Object(n),!0).forEach((function(t){VP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function FP(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,UP(r.key),r)}}function BP(e,t){return BP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},BP(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=HP(e);if(t){var i=HP(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===IP(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 HP(e){return HP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},HP(e)}function VP(e,t,n){return(t=UP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UP(e){var t=function(e,t){if("object"!==IP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==IP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===IP(t)?t:String(t)}!function(e,t,n){(t=DP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(NP,"defaultProps",{cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1});var WP={curveBasisClosed:function(e){return new md(e)},curveBasisOpen:function(e){return new vd(e)},curveBasis:function(e){return new hd(e)},curveLinearClosed:function(e){return new Od(e)},curveLinear:Up,curveMonotoneX:function(e){return new Dd(e)},curveMonotoneY:function(e){return new jd(e)},curveNatural:function(e){return new Nd(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)}},GP=function(e){return e.x===+e.x&&e.y===+e.y},$P=function(e){return e.x},YP=function(e){return e.y},XP=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&&BP(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:"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($i(e))return e;var n="curve".concat(Cp(e));return"curveMonotone"===n&&t?WP["".concat(n).concat("vertical"===t?"Y":"X")]:WP[n]||Up}(n,o),s=a?r.filter((function(e){return GP(e)})):r;if(Xi(i)){var l=a?i.filter((function(e){return GP(e)})):i,u=s.map((function(e,t){return zP(zP({},e),{},{base:l[t]})}));return(e="vertical"===o?Yp().y(YP).x1($P).x0((function(e){return e.base.x})):Yp().x($P).y1(YP).y0((function(e){return e.base.y}))).defined(GP).curve(c),e(u)}return(e="vertical"===o&&yc(i)?Yp().y(YP).x1($P).x0(i):yc(i)?Yp().x($P).y1(YP).y0(i):$p().x($P).y(YP)).defined(GP).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({},$c(this.props),Dc(this.props),{className:Ei("recharts-curve",n),d:a,ref:o}))}}],r&&FP(n.prototype,r),i&&FP(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function ZP(e){return ZP="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},ZP(e)}function KP(){return KP=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},KP.apply(this,arguments)}function JP(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,iD(r.key),r)}}function QP(e,t){return QP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},QP(e,t)}function eD(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"===ZP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return tD(e)}(this,n)}}function tD(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nD(e){return nD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},nD(e)}function rD(e,t,n){return(t=iD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iD(e){var t=function(e,t){if("object"!==ZP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ZP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ZP(t)?t:String(t)}VP(XP,"defaultProps",{type:"linear",points:[],connectNulls:!1});var oD=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},aD=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},cD=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&&QP(e,t)}(a,p);var n,r,i,o=eD(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 rD(tD(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 v=Ei("recharts-rectangle",s);return m?e.createElement(Tg,{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(Tg,{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",KP({},$c(t.props,!0),{className:v,d:oD(o,a,r,i,c),ref:function(e){t.node=e}})))})):e.createElement("path",KP({},$c(this.props,!0),{className:v,d:oD(r,i,o,a,c)}))}}],r&&JP(n.prototype,r),i&&JP(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function sD(e){return sD="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},sD(e)}rD(cD,"defaultProps",{x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"});var lD=["points","className","baseLinePoints","connectNulls"];function uD(){return uD=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},uD.apply(this,arguments)}function fD(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 pD(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"!==sD(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==sD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"),"symbol"===sD(o)?o:String(o)),r)}var i,o}function dD(e,t){return dD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},dD(e,t)}function hD(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=mD(e);if(t){var i=mD(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===sD(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 mD(e){return mD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},mD(e)}function vD(e){return function(e){if(Array.isArray(e))return yD(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 yD(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 yD(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 yD(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 gD=function(e){return e&&e.x===+e.x&&e.y===+e.y},bD=function(e,t){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[[]];return e.forEach((function(e){gD(e)?t[t.length-1].push(e):t[t.length-1].length>0&&t.push([])})),gD(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(vD(e),vD(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},xD=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&&dD(e,t)}(a,p);var n,r,i,o=hD(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=fD(t,lD);if(!n||!n.length)return null;var c=Ei("recharts-polygon",r);if(i&&i.length){var s=a.stroke&&"none"!==a.stroke,l=function(e,t,n){var r=bD(e,n);return"".concat("Z"===r.slice(-1)?r.slice(0,-1):r,"L").concat(bD(t.reverse(),n).slice(1))}(n,i,o);return e.createElement("g",{className:c},e.createElement("path",uD({},$c(a,!0),{fill:"Z"===l.slice(-1)?a.fill:"none",stroke:"none",d:l})),s?e.createElement("path",uD({},$c(a,!0),{fill:"none",d:bD(n,o)})):null,s?e.createElement("path",uD({},$c(a,!0),{fill:"none",d:bD(i,o)})):null)}var u=bD(n,o);return e.createElement("path",uD({},$c(a,!0),{fill:"Z"===u.slice(-1)?a.fill:"none",className:c,d:u}))}}])&&pD(n.prototype,r),i&&pD(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function wD(e){return wD="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},wD(e)}function _D(){return _D=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},_D.apply(this,arguments)}function kD(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"!==wD(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==wD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"),"symbol"===wD(o)?o:String(o)),r)}var i,o}function SD(e,t){return SD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},SD(e,t)}function ED(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=OD(e);if(t){var i=OD(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===wD(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 OD(e){return OD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},OD(e)}var AD=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=ED(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=Ei("recharts-dot",o);return n===+n&&r===+r&&i===+i?e.createElement("circle",_D({},$c(this.props),Dc(this.props),{className:a,cx:n,cy:r,r:i})):null}}])&&kD(n.prototype,r),i&&kD(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function CD(e){return CD="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},CD(e)}function TD(){return TD=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},TD.apply(this,arguments)}function PD(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,ND(r.key),r)}}function DD(e,t){return DD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},DD(e,t)}function jD(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=MD(e);if(t){var i=MD(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===CD(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 MD(e){return MD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},MD(e)}function ND(e){var t=function(e,t){if("object"!==CD(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==CD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===CD(t)?t:String(t)}var ID=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&&DD(e,t)}(a,p);var n,r,i,o=jD(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 yc(n)&&yc(r)&&yc(i)&&yc(o)&&yc(c)&&yc(s)?e.createElement("path",TD({},$c(this.props,!0),{className:Ei("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&&PD(n.prototype,r),i&&PD(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 LD(){return LD=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},LD.apply(this,arguments)}function zD(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 FD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zD(Object(n),!0).forEach((function(t){UD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function BD(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,WD(r.key),r)}}function qD(e,t){return qD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qD(e,t)}function HD(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=VD(e);if(t){var i=VD(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 VD(e){return VD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},VD(e)}function UD(e,t,n){return(t=WD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WD(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=ND(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(ID,"defaultProps",{x:0,y:0,top:0,left:0,width:0,height:0});var GD=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&&qD(e,t)}(a,p);var n,r,i,o=HD(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=GT(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=FD({stroke:"#ccc"},$c(this.props));return e.createElement("g",{className:"recharts-polar-grid-angle"},a.map((function(t,a){var c=GT(n,r,i,t),l=GT(n,r,o,t);return e.createElement("line",LD({},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=FD(FD({stroke:"#ccc"},$c(this.props)),{},{fill:"none"},r);return e.createElement("circle",LD({},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=FD(FD({stroke:"#ccc"},$c(this.props)),{},{fill:"none"},r);return e.createElement("path",LD({},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&&BD(n.prototype,r),i&&BD(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();UD(GD,"displayName","PolarGrid"),UD(GD,"defaultProps",{cx:0,cy:0,innerRadius:0,outerRadius:0,gridType:"polygon",radialLines:!0});var $D=o_,YD=Pf,XD=p_;var ZD=function(e,t){return e&&e.length?$D(e,YD(t),XD):void 0},KD=E(ZD),JD=o_,QD=a_,ej=Pf;var tj=function(e,t){return e&&e.length?JD(e,ej(t),QD):void 0},nj=E(tj),rj=["cx","cy","angle","ticks","axisLine"],ij=["ticks","tick","angle","tickFormatter","stroke"];function oj(e){return oj="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},oj(e)}function aj(){return aj=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},aj.apply(this,arguments)}function cj(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 sj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cj(Object(n),!0).forEach((function(t){hj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lj(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 uj(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,mj(r.key),r)}}function fj(e,t){return fj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fj(e,t)}function pj(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=dj(e);if(t){var i=dj(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===oj(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 dj(e){return dj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},dj(e)}function hj(e,t,n){return(t=mj(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mj(e){var t=function(e,t){if("object"!==oj(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==oj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===oj(t)?t:String(t)}var vj=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&&fj(e,t)}(a,p);var n,r,i,o=pj(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 GT(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=nj(i,(function(e){return e.coordinate||0}));return{cx:t,cy:n,startAngle:r,endAngle:r,innerRadius:KD(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=lj(t,rj),s=o.reduce((function(e,t){return[Math.min(e[0],t.coordinate),Math.max(e[1],t.coordinate)]}),[1/0,-1/0]),l=GT(n,r,s[0],i),u=GT(n,r,s[1],i),f=sj(sj(sj({},$c(c)),{},{fill:"none"},$c(a)),{},{x1:l.x,y1:l.y,x2:u.x,y2:u.y});return e.createElement("line",aj({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=lj(n,ij),u=this.getTickTextAnchor(),f=$c(l),p=$c(i),d=r.map((function(n,r){var l=t.getTickValueCoord(n),d=sj(sj(sj(sj({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(is,aj({className:"recharts-polar-radius-axis-tick",key:"tick-".concat(r)},jc(t.props,n,r)),a.renderTickItem(i,d,c?c(n.value,r):n.value))}));return e.createElement(is,{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(is,{className:"recharts-polar-radius-axis"},r&&this.renderAxisLine(),i&&this.renderTicks(),uP.renderCallByParent(this.props,this.getViewBox())):null}}],i=[{key:"renderTickItem",value:function(t,n,r){return e.isValidElement(t)?e.cloneElement(t,n):$i(t)?t(n):e.createElement(t_,aj({},n,{className:"recharts-polar-radius-axis-tick-value"}),r)}}],r&&uj(n.prototype,r),i&&uj(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function yj(e){return yj="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},yj(e)}function gj(){return gj=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},gj.apply(this,arguments)}function bj(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 xj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bj(Object(n),!0).forEach((function(t){Ej(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wj(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,Oj(r.key),r)}}function _j(e,t){return _j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_j(e,t)}function kj(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=Sj(e);if(t){var i=Sj(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===yj(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 Sj(e){return Sj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Sj(e)}function Ej(e,t,n){return(t=Oj(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oj(e){var t=function(e,t){if("object"!==yj(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==yj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===yj(t)?t:String(t)}hj(vj,"displayName","PolarRadiusAxis"),hj(vj,"axisType","radiusAxis"),hj(vj,"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 Aj=Math.PI/180,Cj=1e-5,Tj=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&&_j(e,t)}(a,p);var n,r,i,o=kj(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=GT(n,r,i,e.coordinate),s=GT(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*Aj);return n>Cj?"outer"===t?"start":"end":n<-Cj?"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=xj(xj({},$c(this.props)),{},{fill:"none"},$c(o));if("circle"===a)return e.createElement(AD,gj({className:"recharts-polar-angle-axis-line"},c,{cx:n,cy:r,r:i}));var s=this.props.ticks.map((function(e){return GT(n,r,i,e.coordinate)}));return e.createElement(xD,gj({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=$c(this.props),u=$c(i),f=xj(xj({},l),{},{fill:"none"},$c(o)),p=r.map((function(n,r){var p=t.getTickLineCoord(n),d=xj(xj(xj({textAnchor:t.getTickTextAnchor(n)},l),{},{stroke:"none",fill:s},u),{},{index:r,payload:n,x:p.x2,y:p.y2});return e.createElement(is,gj({className:"recharts-polar-angle-axis-tick",key:"tick-".concat(r)},jc(t.props,n,r)),o&&e.createElement("line",gj({className:"recharts-polar-angle-axis-tick-line"},f,p)),i&&a.renderTickItem(i,d,c?c(n.value,r):n.value))}));return e.createElement(is,{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(is,{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):$i(t)?t(n):e.createElement(t_,gj({},n,{className:"recharts-polar-angle-axis-tick-value"}),r)}}],r&&wj(n.prototype,r),i&&wj(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();Ej(Tj,"displayName","PolarAngleAxis"),Ej(Tj,"axisType","angleAxis"),Ej(Tj,"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 Pj=Nl(Object.getPrototypeOf,Object),Dj=Vi,jj=Pj,Mj=Zi,Nj=Function.prototype,Ij=Object.prototype,Rj=Nj.toString,Lj=Ij.hasOwnProperty,zj=Rj.call(Object);var Fj=function(e){if(!Mj(e)||"[object Object]"!=Dj(e))return!1;var t=jj(e);if(null===t)return!0;var n=Lj.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Rj.call(n)==zj},Bj=E(Fj);function qj(e){return qj="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},qj(e)}function Hj(){return Hj=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},Hj.apply(this,arguments)}function Vj(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 Uj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vj(Object(n),!0).forEach((function(t){Zj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wj(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,Kj(r.key),r)}}function Gj(e,t){return Gj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Gj(e,t)}function $j(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=Xj(e);if(t){var i=Xj(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===qj(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Yj(e)}(this,n)}}function Yj(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xj(e){return Xj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Xj(e)}function Zj(e,t,n){return(t=Kj(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kj(e){var t=function(e,t){if("object"!==qj(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==qj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===qj(t)?t:String(t)}var Jj=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&&Gj(e,t)}(a,p);var n,r,i,o=$j(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),Zj(Yj(t=o.call(this,e)),"pieRef",null),Zj(Yj(t),"sectorRefs",[]),Zj(Yj(t),"id",xc("recharts-pie-")),Zj(Yj(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),$i(e)&&e()})),Zj(Yj(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),$i(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=$c(this.props),l=$c(r),u=$c(i),f=r&&r.offsetRadius||20,p=t.map((function(t,n){var p=(t.startAngle+t.endAngle)/2,d=GT(t.cx,t.cy,t.outerRadius+f,p),h=Uj(Uj(Uj(Uj({},s),t),{},{stroke:"none"},l),{},{index:n,textAnchor:a.getTextAnchor(d.x,t.cx)},d),m=Uj(Uj(Uj(Uj({},s),t),{},{fill:"none",stroke:t.fill},u),{},{index:n,points:[GT(t.cx,t.cy,t.outerRadius,p),d],key:"line"}),v=o;return rc(o)&&rc(c)?v="value":rc(o)&&(v=c),e.createElement(is,{key:"label-".concat(n)},i&&a.renderLabelLineItem(i,m),a.renderLabelItem(r,h,uT(t,v)))}));return e.createElement(is,{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=Uj(Uj({},t),{},{stroke:o?t.fill:t.stroke});return e.createElement(is,Hj({ref:function(e){e&&!n.sectorRefs.includes(e)&&n.sectorRefs.push(e)},tabIndex:-1,className:"recharts-pie-sector"},jc(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(Tg,{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?tc(e,"paddingAngle",0):0;if(n){var c=kc(n.endAngle-n.startAngle,e.endAngle-e.startAngle),s=Uj(Uj({},e),{},{startAngle:a+r,endAngle:a+c(i)+r});o.push(s),a=s.endAngle}else{var l=e.endAngle,f=e.startAngle,p=kc(0,l-f)(i),d=Uj(Uj({},e),{},{startAngle:a+r,endAngle:a+p+r});o.push(d),a=d.endAngle}})),e.createElement(is,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&&r_(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||!yc(c)||!yc(s)||!yc(l)||!yc(u))return null;var d=Ei("recharts-pie",o);return e.createElement(is,{tabIndex:0,className:d,ref:function(e){t.pieRef=e}},this.renderSectors(),a&&this.renderLabels(i),uP.renderCallByParent(this.props,null,!1),(!f||p)&&SP.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):$i(t)?t(n):e.createElement(XP,Hj({},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 $i(t)&&(i=t(n),e.isValidElement(i))?i:e.createElement(t_,Hj({},n,{alignmentBaseline:"middle",className:"recharts-pie-label-text"}),i)}},{key:"renderSectorItem",value:function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):$i(t)?t(n):Bj(t)?e.createElement(NP,Hj({tabIndex:-1},n,t)):e.createElement(NP,Hj({tabIndex:-1},n))}}],r&&Wj(n.prototype,r),i&&Wj(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();Zj(Jj,"displayName","Pie"),Zj(Jj,"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:!Gb.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1}),Zj(Jj,"parseDeltaAngle",(function(e,t){return mc(t-e)*Math.min(Math.abs(t-e),360)})),Zj(Jj,"getRealPieData",(function(e){var t=e.props,n=t.data,r=t.children,i=$c(e.props),o=qc(r,Hx);return n&&n.length?n.map((function(e,t){return Uj(Uj(Uj({payload:e},i),e),o&&o[t]&&o[t].props)})):o&&o.length?o.map((function(e){return Uj(Uj({},i),e.props)})):[]})),Zj(Jj,"parseCoordinateOfPie",(function(e,t){var n=t.top,r=t.left,i=t.width,o=t.height,a=$T(i,o);return{cx:r+wc(e.props.cx,i,i/2),cy:n+wc(e.props.cy,o,o/2),innerRadius:wc(e.props.innerRadius,a,0),outerRadius:wc(e.props.outerRadius,a,.8*a),maxRadius:e.props.maxRadius||Math.sqrt(i*i+o*o)/2}})),Zj(Jj,"getComposedData",(function(e){var t=e.item,n=e.offset,r=Jj.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=Jj.parseCoordinateOfPie(t,n),m=Jj.parseDeltaAngle(a,c),v=Math.abs(m),y=l;rc(l)&&rc(f)?(Lx(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),y="value"):rc(l)&&(Lx(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),y=f);var g,b,x=r.filter((function(e){return 0!==uT(e,y,0)})).length,w=v-x*d-(v>=360?x:x-1)*s,_=r.reduce((function(e,t){var n=uT(t,y,0);return e+(yc(n)?n:0)}),0);_>0&&(g=r.map((function(e,t){var n,r=uT(e,y,0),i=uT(e,u,t),c=(yc(r)?r:0)/_,l=(n=t?b.endAngle+mc(m)*s*(0!==r?1:0):a)+mc(m)*((0!==r?d:0)+c*w),f=(n+l)/2,v=(h.innerRadius+h.outerRadius)/2,g=[{name:i,value:r,payload:e,dataKey:y,type:p}],x=GT(h.cx,h.cy,v,f);return b=Uj(Uj(Uj({percent:c,cornerRadius:o,name:i,tooltipPayload:g,midAngle:f,middleRadius:v,tooltipPosition:x},e),h),{},{value:uT(e,y),startAngle:n,endAngle:l,payload:e,paddingAngle:mc(m)*s})})));return Uj(Uj({},h),{},{sectors:g,data:r})}));var Qj=function(e){return e&&e.length?e[0]:void 0},eM=E(Qj);function tM(e){return tM="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},tM(e)}function nM(){return nM=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},nM.apply(this,arguments)}function rM(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 iM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rM(Object(n),!0).forEach((function(t){uM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oM(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,fM(r.key),r)}}function aM(e,t){return aM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},aM(e,t)}function cM(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=lM(e);if(t){var i=lM(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===tM(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return sM(e)}(this,n)}}function sM(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lM(e){return lM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},lM(e)}function uM(e,t,n){return(t=fM(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fM(e){var t=function(e,t){if("object"!==tM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==tM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===tM(t)?t:String(t)}var pM=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&&aM(e,t)}(a,p);var n,r,i,o=cM(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 uM(sM(e=o.call.apply(o,[this].concat(n))),"state",{isAnimationFinished:!1}),uM(sM(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),$i(t)&&t()})),uM(sM(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),$i(t)&&t()})),uM(sM(e),"handleMouseEnter",(function(t){var n=e.props.onMouseEnter;n&&n(e.props,t)})),uM(sM(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=$c(this.props),c=$c(r),s=t.map((function(e,t){var n=iM(iM(iM({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(is,{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,iM(iM({},this.props),{},{points:t})):$i(i)?i(iM(iM({},this.props),{},{points:t})):e.createElement(xD,nM({},$c(this.props,!0),{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,points:t,baseLinePoints:a?c:null,connectNulls:s})),e.createElement(is,{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(Tg,{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=kc(r.x,e.x),a=kc(r.y,e.y);return iM(iM({},e),{},{x:o(n),y:a(n)})}var c=kc(e.cx,e.x),s=kc(e.cy,e.y);return iM(iM({},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&&r_(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=Ei("recharts-radar",r);return e.createElement(is,{className:c},this.renderPolygon(),(!o||a)&&SP.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):$i(t)?t(n):e.createElement(AD,nM({},n,{className:"recharts-radar-dot"}))}}],r&&oM(n.prototype,r),i&&oM(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();uM(pM,"displayName","Radar"),uM(pM,"defaultProps",{angleAxisId:0,radiusAxisId:0,hide:!1,activeDot:!0,dot:!1,legendType:"rect",isAnimationActive:!Gb.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),uM(pM,"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=uT(e,n.dataKey,r),f=uT(e,i),p=n.scale(u)+(o||0),d=Xi(f)?dP(f):f,h=rc(d)?void 0:t.scale(d);Xi(f)&&f.length>=2&&(s=!0),l.push(iM(iM({},GT(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(Xi(e.value)){var n=eM(e.value),r=rc(n)?void 0:t.scale(n);u.push(iM(iM({},e),{},{radius:r},GT(a,c,r,e.angle)))}else u.push(e)})),{points:l,isRange:s,baseLinePoints:u}}));var dM=["shape","activeShape","activeIndex","cornerRadius"],hM=["value","background"];function mM(e){return mM="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},mM(e)}function vM(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 yM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vM(Object(n),!0).forEach((function(t){SM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gM(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 bM(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,EM(r.key),r)}}function xM(e,t){return xM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xM(e,t)}function wM(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=kM(e);if(t){var i=kM(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===mM(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _M(e)}(this,n)}}function _M(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kM(e){return kM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},kM(e)}function SM(e,t,n){return(t=EM(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EM(e){var t=function(e,t){if("object"!==mM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==mM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===mM(t)?t:String(t)}var OM=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&&xM(e,t)}(a,p);var n,r,i,o=wM(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 SM(_M(e=o.call.apply(o,[this].concat(n))),"state",{isAnimationFinished:!1}),SM(_M(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),$i(t)&&t()})),SM(_M(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),$i(t)&&t()})),e}return n=a,r=[{key:"getDeltaAngle",value:function(){var e=this.props,t=e.startAngle,n=e.endAngle;return mc(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=gM(n,dM),l=$c(s);return e.map((function(e,n){var u=yM(yM(yM(yM({},l),{},{cornerRadius:c},e),jc(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(Tg,{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=kc(n.startAngle,e.startAngle),o=kc(n.endAngle,e.endAngle);return yM(yM({},e),{},{startAngle:r(i),endAngle:o(i)})}var a=e.endAngle,c=e.startAngle,s=kc(c,a);return yM(yM({},e),{},{endAngle:s(i)})}));return e.createElement(is,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&&r_(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"renderBackground",value:function(e){var t=this,n=this.props.cornerRadius,r=$c(this.props.background);return e.map((function(e,i){e.value;var o=e.background,c=gM(e,hM);if(!o)return null;var s=yM(yM(yM(yM(yM({cornerRadius:n},c),{},{fill:"#eee"},o),r),jc(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=Ei("recharts-area",i);return e.createElement(is,{className:s},o&&e.createElement(is,{className:"recharts-radial-bar-background"},this.renderBackground(r)),e.createElement(is,{className:"recharts-radial-bar-sectors"},this.renderSectors()),(!a||c)&&SP.renderCallByParent(yM({},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):$i(t)?t(n):e.createElement(NP,n)}}],r&&bM(n.prototype,r),i&&bM(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();SM(OM,"displayName","RadialBar"),SM(OM,"defaultProps",{angleAxisId:0,radiusAxisId:0,minPointSize:0,hide:!1,legendType:"rect",data:[],isAnimationActive:!Gb.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease",forceCornerRadius:!1,cornerIsExternal:!1}),SM(OM,"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=kT(u,t);if(!d)return null;var h=o.cx,m=o.cy,v=n.layout,y=t.props,g=y.children,b=y.minPointSize,x="radial"===v?o:r,w=l?x.scale.domain():null,_=PT({numericAxis:x}),k=qc(g,Hx);return{data:c.map((function(e,c){var u,y,g,x,S,E;if(l?u=ST(l[p+c],w):(u=uT(e,s),Xi(u)||(u=[_,u])),"radial"===v){y=TT({axis:r,ticks:i,bandSize:f,offset:d.offset,entry:e,index:c}),S=o.scale(u[1]),x=o.scale(u[0]),g=y+d.size;var O=S-x;if(Math.abs(b)>0&&Math.abs(O)<Math.abs(b))S+=mc(O||b)*(Math.abs(b)-Math.abs(O));E={background:{cx:h,cy:m,innerRadius:y,outerRadius:g,startAngle:n.startAngle,endAngle:n.endAngle}}}else{y=r.scale(u[0]),g=r.scale(u[1]),S=(x=TT({axis:o,ticks:a,bandSize:f,offset:d.offset,entry:e,index:c}))+d.size;var A=g-y;if(Math.abs(b)>0&&Math.abs(A)<Math.abs(b))g+=mc(A||b)*(Math.abs(b)-Math.abs(A))}return yM(yM(yM(yM({},e),E),{},{payload:e,value:l?u:u[1],cx:h,cy:m,innerRadius:y,outerRadius:g,startAngle:x,endAngle:S},k&&k[c]&&k[c].props),{},{tooltipPayload:[LT(t,e)],tooltipPosition:GT(h,m,(y+g)/2,(x+S)/2)})})),layout:v}}));var AM=Math.ceil,CM=Math.max;var TM=bx,PM=1/0;var DM=function(e){return e?(e=TM(e))===PM||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0},jM=function(e,t,n,r){for(var i=-1,o=CM(AM((t-e)/(n||1)),0),a=Array(o);o--;)a[r?o:++i]=e,e+=n;return a},MM=Cb,NM=DM;var IM=E(function(e){return function(t,n,r){return r&&"number"!=typeof r&&MM(t,n,r)&&(n=r=void 0),t=NM(t),void 0===n?(n=t,t=0):n=NM(n),r=void 0===r?t<n?1:-1:NM(r),jM(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 LM(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 zM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?LM(Object(n),!0).forEach((function(t){FM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function FM(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 BM=["Webkit","Moz","O","ms"];function qM(e){return qM="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},qM(e)}function HM(){return HM=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},HM.apply(this,arguments)}function VM(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 UM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?VM(Object(n),!0).forEach((function(t){ZM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function WM(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,KM(r.key),r)}}function GM(e,t){return GM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},GM(e,t)}function $M(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=XM(e);if(t){var i=XM(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===qM(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return YM(e)}(this,n)}}function YM(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function XM(e){return XM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},XM(e)}function ZM(e,t,n){return(t=KM(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KM(e){var t=function(e,t){if("object"!==qM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==qM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===qM(t)?t:String(t)}var JM=function(e){return e.changedTouches&&!!e.changedTouches.length},QM=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&&GM(e,t)}(a,p);var n,r,i,o=$M(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),ZM(YM(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)})),ZM(YM(t),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleDrag(e.changedTouches[0])})),ZM(YM(t),"handleDragEnd",(function(){t.setState({isTravellerMoving:!1,isSlideMoving:!1}),t.detachDragEndListener()})),ZM(YM(t),"handleLeaveWrapper",(function(){(t.state.isTravellerMoving||t.state.isSlideMoving)&&(t.leaveTimer=window.setTimeout(t.handleDragEnd,t.props.leaveTimeOut))})),ZM(YM(t),"handleEnterSlideOrTraveller",(function(){t.setState({isTextActive:!0})})),ZM(YM(t),"handleLeaveSlideOrTraveller",(function(){t.setState({isTextActive:!1})})),ZM(YM(t),"handleSlideDragStart",(function(e){var n=JM(e)?e.changedTouches[0]:e;t.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),t.attachDragEndListener()})),t.travellerDragStartHandlers={startX:t.handleTravellerDragStart.bind(YM(t),"startX"),endX:t.handleTravellerDragStart.bind(YM(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=uT(n[e],i,e);return $i(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=JM(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},v=e.pageX-r;v>0?v=Math.min(v,l+u-f-c):v<0&&(v=Math.max(v,l-c)),m[i]=c+v;var y=this.getIndex(m),g=y.startIndex,b=y.endIndex;this.setState((ZM(t={},i,c+v),ZM(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(y))}))}},{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=UM(UM({},$c(this.props)),{},{x:l,y:i,width:o,height:c});return e.createElement(is,{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(is,{className:"recharts-brush-texts"},e.createElement(t_,HM({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,u)-5,y:i+o/2},f),this.getTextOfTick(n)),e.createElement(t_,HM({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||!yc(o)||!yc(a)||!yc(c)||!yc(s)||c<=0||s<=0)return null;var v=Ei("recharts-brush",r),y=1===e.Children.count(i),g=function(e,t){if(!e)return null;var n=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),r=BM.reduce((function(e,r){return zM(zM({},e),{},FM({},r+n,t))}),{});return r[e]=t,r}("userSelect","none");return e.createElement(is,{className:v,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:g},this.renderBackground(),y&&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):$i(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 UM({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=Q_().domain(IM(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&&WM(n.prototype,r),i&&WM(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();ZM(QM,"displayName","Brush"),ZM(QM,"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 eN=qg;var tN=_s,nN=Pf,rN=function(e,t){var n;return eN(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n},iN=Yi,oN=Cb;var aN=function(e,t,n){var r=iN(e)?tN:rN;return n&&oN(e,t,n)&&(t=void 0),r(e,nN(t))},cN=E(aN),sN=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t};var lN=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},uN=qg;var fN=lN,pN=function(e,t){var n=!0;return uN(e,(function(e,r,i){return n=!!t(e,r,i)})),n},dN=Pf,hN=Yi,mN=Cb;var vN=function(e,t,n){var r=hN(e)?fN:pN;return n&&mN(e,t,n)&&(t=void 0),r(e,dN(t))},yN=E(vN),gN=pb;var bN=function(e,t,n){"__proto__"==t&&gN?gN(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},xN=bN,wN=Fg,_N=Pf;var kN=function(e,t){var n={};return t=_N(t),wN(e,(function(e,r,i){xN(n,r,t(e,r,i))})),n},SN=E(kN),EN=["value","background"];function ON(e){return ON="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},ON(e)}function AN(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 CN(){return CN=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},CN.apply(this,arguments)}function TN(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 PN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?TN(Object(n),!0).forEach((function(t){RN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function DN(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,LN(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 MN(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=IN(e);if(t){var i=IN(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===ON(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return NN(e)}(this,n)}}function NN(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function IN(e){return IN=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},IN(e)}function RN(e,t,n){return(t=LN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LN(e){var t=function(e,t){if("object"!==ON(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ON(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ON(t)?t:String(t)}var zN=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,p);var n,r,i,o=MN(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(NN(e=o.call.apply(o,[this].concat(n))),"state",{isAnimationFinished:!1}),RN(NN(e),"id",xc("recharts-bar-")),RN(NN(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),t&&t()})),RN(NN(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=$c(this.props);return t&&t.map((function(t,o){var c=PN(PN(PN({},i),t),{},{index:o});return e.createElement(is,CN({className:"recharts-bar-rectangle"},jc(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(Tg,{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=kc(n.x,e.x),a=kc(n.y,e.y),c=kc(n.width,e.width),s=kc(n.height,e.height);return PN(PN({},e),{},{x:r(o),y:a(o),width:c(o),height:s(o)})}if("horizontal"===i){var l=kc(0,e.height)(o);return PN(PN({},e),{},{y:e.y+e.height-l,height:l})}var f=kc(0,e.width)(o);return PN(PN({},e),{},{width:f})}));return e.createElement(is,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&&r_(r,t)?this.renderRectanglesStatically(t):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var e=this,t=this.props.data,n=$c(this.props.background);return t.map((function(t,r){t.value;var i=t.background,o=AN(t,EN);if(!i)return null;var c=PN(PN(PN(PN(PN({},o),{},{fill:"#eee"},i),n),jc(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=qc(r.children,rT);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:uT(e,t)}}var f={clipPath:t?"url(#clipPath-".concat(n,")"):null};return e.createElement(is,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=Ei("recharts-bar",i),v=o&&o.allowDataOverflow||a&&a.allowDataOverflow,y=rc(d)?this.id:d;return e.createElement(is,{className:m},v?e.createElement("defs",null,e.createElement("clipPath",{id:"clipPath-".concat(y)},e.createElement("rect",{x:c,y:s,width:l,height:u}))):null,e.createElement(is,{className:"recharts-bar-rectangles",clipPath:v?"url(#clipPath-".concat(y,")"):null},p?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(v,y),(!f||h)&&SP.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):$i(t)?t(n):e.createElement(cD,n)}}],r&&DN(n.prototype,r),i&&DN(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function FN(e){return FN="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},FN(e)}function BN(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,UN(r.key),r)}}function qN(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 HN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qN(Object(n),!0).forEach((function(t){VN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function VN(e,t,n){return(t=UN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UN(e){var t=function(e,t){if("object"!==FN(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==FN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===FN(t)?t:String(t)}RN(zN,"displayName","Bar"),RN(zN,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",isAnimationActive:!Gb.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),RN(zN,"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=kT(r,n);if(!d)return null;var h=t.layout,m=n.props,v=m.dataKey,y=m.children,g=m.minPointSize,b="horizontal"===h?a:o,x=l?b.scale.domain():null,w=PT({numericAxis:b}),_=qc(y,Hx),k=f.map((function(e,t){var r,f,p,m,y,b;if(l?r=ST(l[u+t],x):(r=uT(e,v),Xi(r)||(r=[w,r])),"horizontal"===h){var k,S=[a.scale(r[0]),a.scale(r[1])],E=S[0],O=S[1];f=TT({axis:o,ticks:c,bandSize:i,offset:d.offset,entry:e,index:t}),p=null!==(k=null!=O?O:E)&&void 0!==k?k:void 0,m=d.size;var A=E-O;if(y=Number.isNaN(A)?0:A,b={x:f,y:a.y,width:m,height:a.height},Math.abs(g)>0&&Math.abs(y)<Math.abs(g)){var C=mc(y||g)*(Math.abs(g)-Math.abs(y));p-=C,y+=C}}else{var T=[o.scale(r[0]),o.scale(r[1])],P=T[0],D=T[1];if(f=P,p=TT({axis:a,ticks:s,bandSize:i,offset:d.offset,entry:e,index:t}),m=D-P,y=d.size,b={x:o.x,y:p,width:o.width,height:y},Math.abs(g)>0&&Math.abs(m)<Math.abs(g))m+=mc(m||g)*(Math.abs(g)-Math.abs(m))}return PN(PN(PN({},e),{},{x:f,y:p,width:m,height:y,value:l?r:r[1],payload:e,background:b},_&&_[t]&&_[t].props),{},{tooltipPayload:[LT(n,e)],tooltipPosition:{x:f+m/2,y:p+y/2}})}));return PN({data:k,layout:h},p)}));var WN=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=!!Hc(s,zN);return l.reduce((function(o,a){var s,l,p,d,h,m=t[a],v=m.orientation,y=m.domain,g=m.padding,b=void 0===g?{}:g,x=m.mirror,w=m.reversed,_="".concat(v).concat(x?"Mirror":"");if("number"===m.type&&("gap"===m.padding||"no-gap"===m.padding)){var k=y[1]-y[0],S=1/0,E=m.categoricalDomain.sort();E.forEach((function(e,t){t>0&&(S=Math.min((e||0)-(E[t-1]||0),S))}));var O=S/k,A="vertical"===m.layout?n.height:n.width;if("gap"===m.padding&&(s=O*A/2),"no-gap"===m.padding){var C=wc(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=xT(m,i,f),D=P.scale,j=P.realScaleType;D.domain(y).range(l),_T(D);var M=AT(D,HN(HN({},m),{},{realScaleType:j}));"xAxis"===r?(h="top"===v&&!x||"bottom"===v&&x,p=n.left,d=u[_]-h*m.height):"yAxis"===r&&(h="left"===v&&!x||"right"===v&&x,p=u[_]-h*m.width,d=n.top);var N=HN(HN(HN({},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=IT(N,M),m.hide||"xAxis"!==r?m.hide||(u[_]+=(h?-1:1)*N.width):u[_]+=(h?-1:1)*N.height,HN(HN({},o),{},VN({},a,N))}),{})},GN=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)}},$N=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&&BN(t.prototype,n),r&&BN(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();VN($N,"EPS",1e-4);var YN=function(e){var t=Object.keys(e).reduce((function(t,n){return HN(HN({},t),{},VN({},n,$N.create(e[n])))}),{});return HN(HN({},t),{},{apply:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,i=n.position;return SN(e,(function(e,n){return t[n].apply(e,{bandAware:r,position:i})}))},isInRange:function(e){return yN(e,(function(e,n){return t[n].isInRange(e)}))}})};function XN(e){return XN="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},XN(e)}function ZN(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 KN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ZN(Object(n),!0).forEach((function(t){JN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function JN(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==XN(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==XN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===XN(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){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 eI(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 eI(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 eI(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 tI(){return tI=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},tI.apply(this,arguments)}function nI(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;Lx(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(sN(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,v=i.xAxis.orientation,y=e.x.apply(m,{position:u});if(sN(i,"discard")&&!e.x.isInRange(y))return null;var g=[{x:y,y:c+l},{x:y,y:c}];return"top"===v?g.reverse():g}if(r){var b=i.segment.map((function(t){return e.apply(t,{position:u})}));return sN(i,"discard")&&cN(b,(function(t){return!e.isInRange(t)}))?null:b}return null}(YN({x:o.scale,y:a.scale}),gc(n),gc(r),i&&2===i.length,t);if(!f)return null;var p=QN(f,2),d=p[0],h=d.x,m=d.y,v=p[1],y=v.x,g=v.y,b=KN(KN({clipPath:sN(t,"hidden")?"url(#".concat(u,")"):void 0},$c(t,!0)),{},{x1:h,y1:m,x2:y,y2:g});return e.createElement(is,{className:Ei("recharts-reference-line",s)},function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):$i(t)?t(n):e.createElement("line",tI({},n,{className:"recharts-reference-line-line"}))}(c,b),uP.renderCallByParent(t,function(e){var t=e.x1,n=e.y1,r=e.x2,i=e.y2;return GN({x:t,y:n},{x:r,y:i})}({x1:h,y1:m,x2:y,y2:g})))}function rI(e){return rI="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},rI(e)}function iI(){return iI=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},iI.apply(this,arguments)}function oI(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 aI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oI(Object(n),!0).forEach((function(t){cI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cI(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==rI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==rI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===rI(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}nI.displayName="ReferenceLine",nI.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};function sI(t){var n=t.x,r=t.y,i=t.r,o=t.alwaysShow,a=t.clipPathId,c=gc(n),s=gc(r);if(Lx(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=YN({x:r.scale,y:i.scale}),a=o.apply({x:t,y:n},{bandAware:!0});return sN(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=aI(aI({clipPath:sN(t,"hidden")?"url(#".concat(a,")"):void 0},$c(t,!0)),{},{cx:u,cy:f});return e.createElement(is,{className:Ei("recharts-reference-dot",d)},sI.renderDot(p,h),uP.renderCallByParent(t,{x:u-i,y:f-i,width:2*i,height:2*i}))}function lI(e){return lI="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},lI(e)}function uI(){return uI=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},uI.apply(this,arguments)}function fI(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 pI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fI(Object(n),!0).forEach((function(t){dI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dI(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==lI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==lI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===lI(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}sI.displayName="ReferenceDot",sI.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},sI.renderDot=function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):$i(t)?t(n):e.createElement(AD,iI({},n,{cx:n.cx,cy:n.cy,className:"recharts-reference-dot-dot"}))};function hI(t){var n=t.x1,r=t.x2,i=t.y1,o=t.y2,a=t.className,c=t.alwaysShow,s=t.clipPathId;Lx(void 0===c,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=gc(n),u=gc(r),f=gc(i),p=gc(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=YN({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!sN(i,"discard")||f.isInRange(p)&&f.isInRange(d)?GN(p,d):null}(l,u,f,p,t);if(!h&&!d)return null;var m=sN(t,"hidden")?"url(#".concat(s,")"):void 0;return e.createElement(is,{className:Ei("recharts-reference-area",a)},hI.renderRect(d,pI(pI({clipPath:m},$c(t,!0)),h)),uP.renderCallByParent(t,h))}function mI(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 vI(e){return vI="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},vI(e)}function yI(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 gI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yI(Object(n),!0).forEach((function(t){bI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bI(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==vI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==vI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===vI(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xI(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,v="top"===c||"bottom"===c?"width":"height",y=(i||[]).slice(),g=l&&"width"===v?Iw(l,{fontSize:u,letterSpacing:f})[v]:0,b=y.length,x=b>=2?mc(y[1].coordinate-y[0].coordinate):1;if(1===x?(n="width"===v?p:d,r="width"===v?p+h:d+m):(n="width"===v?p+h:d+m,r="width"===v?p:d),t){var w=i[b-1],_=$i(o)?o(w.value,b-1):w.value,k=Iw(_,{fontSize:u,letterSpacing:f})[v]+g,S=x*(w.coordinate+x*k/2-r);y[b-1]=w=gI(gI({},w),{},{tickCoord:S>0?w.coordinate-S*x:w.coordinate}),x*(w.tickCoord-x*k/2-n)>=0&&x*(w.tickCoord+x*k/2-r)<=0&&(r=w.tickCoord-x*(k/2+s),y[b-1]=gI(gI({},w),{},{isShow:!0}))}for(var E=t?b-1:b,O=0;O<E;O++){var A=y[O],C=$i(o)?o(A.value,O):A.value,T=Iw(C,{fontSize:u,letterSpacing:f})[v]+g;if(0===O){var P=x*(A.coordinate-x*T/2-n);y[O]=A=gI(gI({},A),{},{tickCoord:P<0?A.coordinate-P*x:A.coordinate})}else y[O]=A=gI(gI({},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),y[O]=gI(gI({},A),{},{isShow:!0}))}return y}function wI(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(yc(s)||Gb.isSsr)return function(e,t){return mI(e,t+1)}(i,"number"==typeof s&&yc(s)?s:0);var f=[];return"equidistantPreserveStart"===s?function(e){for(var t=1,n=mI(e,t,(function(e){return e.isShow}));t<=e.length;){if(void 0!==n)return n;n=mI(e,++t,(function(e){return e.isShow}))}return e.slice(0,1)}(f=xI({ticks:i,tickFormatter:l,viewBox:o,orientation:c,minTickGap:a,unit:u,fontSize:t,letterSpacing:n})):(f="preserveStart"===s||"preserveStartEnd"===s?xI({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",v=s&&"width"===m?Iw(s,{fontSize:l,letterSpacing:u})[m]:0,y=(r||[]).slice(),g=y.length,b=g>=2?mc(y[1].coordinate-y[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=y[x],_=$i(i)?i(w.value,g-x-1):w.value,k=Iw(_,{fontSize:l,letterSpacing:u})[m]+v;if(x===g-1){var S=b*(w.coordinate+b*k/2-n);y[x]=w=gI(gI({},w),{},{tickCoord:S>0?w.coordinate-S*b:w.coordinate})}else y[x]=w=gI(gI({},w),{},{tickCoord:w.coordinate});b*(w.tickCoord-b*k/2-t)>=0&&b*(w.tickCoord+b*k/2-n)<=0&&(n=w.tickCoord-b*(k/2+c),y[x]=gI(gI({},w),{},{isShow:!0}))}return y}({ticks:i,tickFormatter:l,viewBox:o,orientation:c,minTickGap:a,unit:u,fontSize:t,letterSpacing:n}),f.filter((function(e){return e.isShow})))}hI.displayName="ReferenceArea",hI.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},hI.renderRect=function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):$i(t)?t(n):e.createElement(cD,uI({},n,{className:"recharts-reference-area-rect"}))};var _I=["viewBox"],kI=["viewBox"],SI=["ticks"];function EI(e){return EI="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},EI(e)}function OI(){return OI=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},OI.apply(this,arguments)}function AI(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 CI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?AI(Object(n),!0).forEach((function(t){NI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function TI(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 PI(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,II(r.key),r)}}function DI(e,t){return DI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},DI(e,t)}function jI(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=MI(e);if(t){var i=MI(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===EI(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 MI(e){return MI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},MI(e)}function NI(e,t,n){return(t=II(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function II(e){var t=function(e,t){if("object"!==EI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==EI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===EI(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&&DI(e,t)}(a,g);var n,r,i,o=jI(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=TI(e,_I),i=this.props,o=i.viewBox,a=TI(i,kI);return!Ec(n,o)||!Ec(r,a)||!Ec(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,v=h?-1:1,y=e.tickSize||d,g=yc(e.tickCoord)?e.tickCoord:e.coordinate;switch(p){case"top":t=n=e.coordinate,a=(r=(i=l+ +!h*f)-v*y)-v*m,o=g;break;case"left":r=i=e.coordinate,o=(t=(n=s+ +!h*u)-v*y)-v*m,a=g;break;case"right":r=i=e.coordinate,o=(t=(n=s+ +h*u)+v*y)+v*m,a=g;break;default:t=n=e.coordinate,a=(r=(i=l+ +h*f)+v*y)+v*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=CI(CI(CI({},$c(this.props)),$c(s)),{},{fill:"none"});if("top"===a||"bottom"===a){var u=+("top"===a&&!c||"bottom"===a&&c);l=CI(CI({},l),{},{x1:n,y1:r+u*o,x2:n+i,y2:r+u*o})}else{var f=+("left"===a&&!c||"right"===a&&c);l=CI(CI({},l),{},{x1:n+f*i,y1:r,x2:n+f*i,y2:r+o})}return e.createElement("line",OI({},l,{className:Ei("recharts-cartesian-axis-line",tc(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=wI(CI(CI({},this.props),{},{ticks:t}),n,r),d=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),m=$c(this.props),v=$c(l),y=CI(CI({},m),{},{fill:"none"},$c(c)),g=p.map((function(t,n){var r=i.getTickLineCoord(t),o=r.line,g=r.tick,b=CI(CI(CI(CI({textAnchor:d,verticalAnchor:h},m),{},{stroke:"none",fill:s},v),g),{},{index:n,payload:t,visibleTicksCount:p.length,tickFormatter:u});return e.createElement(is,OI({className:"recharts-cartesian-axis-tick",key:"tick-".concat(n)},jc(i.props,t,n)),c&&e.createElement("line",OI({},y,o,{className:Ei("recharts-cartesian-axis-tick-line",tc(c,"className"))})),l&&a.renderTickItem(l,b,"".concat($i(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=TI(s,SI),f=l;return $i(a)&&(f=l&&l.length>0?a(this.props):a(u)),i<=0||o<=0||!f||!f.length?null:e.createElement(is,{className:Ei("recharts-cartesian-axis",c),ref:function(e){t.layerReference=e}},r&&this.renderAxisLine(),this.renderTicks(f,this.state.fontSize,this.state.letterSpacing),uP.renderCallByParent(this.props))}}],i=[{key:"renderTickItem",value:function(t,n,r){return e.isValidElement(t)?e.cloneElement(t,n):$i(t)?t(n):e.createElement(t_,OI({},n,{className:"recharts-cartesian-axis-tick-value"}),r)}}],r&&PI(n.prototype,r),i&&PI(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();NI(RI,"displayName","CartesianAxis"),NI(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 LI=["x1","y1","x2","y2","key"];function zI(e){return zI="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},zI(e)}function FI(){return FI=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},FI.apply(this,arguments)}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 qI(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 HI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qI(Object(n),!0).forEach((function(t){$I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function VI(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,YI(r.key),r)}}function UI(e,t){return UI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},UI(e,t)}function WI(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=GI(e);if(t){var i=GI(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===zI(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 GI(e){return GI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},GI(e)}function $I(e,t,n){return(t=YI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YI(e){var t=function(e,t){if("object"!==zI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==zI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===zI(t)?t:String(t)}var XI=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&&UI(e,t)}(a,p);var n,r,i,o=WI(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=HI(HI({},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=HI(HI({},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(!yc(i)||i<=0||!yc(o)||o<=0||!yc(n)||n!==+n||!yc(r)||r!==+r)return null;var m=this.props,v=m.horizontalPoints,y=m.verticalPoints;return v&&v.length||!$i(s)||(v=s({yAxis:f,width:d,height:h,offset:p})),y&&y.length||!$i(l)||(y=l({xAxis:u,width:d,height:h,offset:p})),e.createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),a&&this.renderHorizontal(v),c&&this.renderVertical(y),a&&this.renderHorizontalStripes(v),c&&this.renderVerticalStripes(y))}}],i=[{key:"renderLineItem",value:function(t,n){var r;if(e.isValidElement(t))r=e.cloneElement(t,n);else if($i(t))r=t(n);else{var i=n.x1,o=n.y1,a=n.x2,c=n.y2,s=n.key,l=BI(n,LI);r=e.createElement("line",FI({},$c(l),{x1:i,y1:o,x2:a,y2:c,fill:"none",key:s}))}return r}}],r&&VI(n.prototype,r),i&&VI(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();$I(XI,"displayName","CartesianGrid"),$I(XI,"defaultProps",{horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]});var ZI=["type","layout","connectNulls","ref"];function KI(e){return KI="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},KI(e)}function JI(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 QI(){return QI=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},QI.apply(this,arguments)}function eR(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 tR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eR(Object(n),!0).forEach((function(t){lR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nR(e){return function(e){if(Array.isArray(e))return rR(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 rR(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 rR(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 rR(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 iR(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,uR(r.key),r)}}function oR(e,t){return oR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},oR(e,t)}function aR(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=sR(e);if(t){var i=sR(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===KI(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return cR(e)}(this,n)}}function cR(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sR(e){return sR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},sR(e)}function lR(e,t,n){return(t=uR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uR(e){var t=function(e,t){if("object"!==KI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==KI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===KI(t)?t:String(t)}var fR=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&&oR(e,t)}(a,p);var n,r,i,o=aR(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 lR(cR(e=o.call.apply(o,[this].concat(n))),"state",{isAnimationFinished:!0,totalLength:0}),lR(cR(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(nR(n.slice(0,l)),[o-u]);break}var f=s.length%2==0?[0,c]:[c];return[].concat(nR(a.repeat(n,i)),nR(s),f).map((function(e){return"".concat(e,"px")})).join(", ")})),lR(cR(e),"id",xc("recharts-line-")),lR(cR(e),"pathRef",(function(t){e.mainCurve=t})),lR(cR(e),"handleAnimationEnd",(function(){e.setState({isAnimationFinished:!0}),e.props.onAnimationEnd&&e.props.onAnimationEnd()})),lR(cR(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=qc(r.children,rT);if(!s)return null;function l(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:uT(e.payload,t)}}var u={clipPath:t?"url(#clipPath-".concat(n,")"):null};return e.createElement(is,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=$c(this.props),l=$c(i,!0),u=o.map((function(e,t){var n=tR(tR(tR({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(is,QI({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=JI(o,ZI),u=tR(tR(tR({},$c(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(XP,QI({},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,v=m.prevPoints,y=m.totalLength;return e.createElement(Tg,{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(v){var c=v.length/o.length,s=o.map((function(e,t){var n=Math.floor(t*c);if(v[n]){var r=v[n],o=kc(r.x,e.x),a=kc(r.y,e.y);return tR(tR({},e),{},{x:o(i),y:a(i)})}if(p){var s=kc(2*d,e.x),l=kc(h/2,e.y);return tR(tR({},e),{},{x:s(i),y:l(i)})}return tR(tR({},e),{},{x:e.x,y:e.y})}));return r.renderCurveStatically(s,t,n)}var l,u=kc(0,y)(i);if(a){var f="".concat(a).split(/[,\s]+/gim).map((function(e){return parseFloat(e)}));l=r.getStrokeDasharray(u,y,f)}else l="".concat(u,"px ").concat(y-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||!r_(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,v=Ei("recharts-line",o),y=a&&a.allowDataOverflow||c&&c.allowDataOverflow,g=rc(d)?this.id:d;return e.createElement(is,{className:v},y?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(y,g),this.renderErrorBar(y,g),(m||r)&&this.renderDots(y,g),(!p||h)&&SP.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(nR(e),[0]):e,r=[],i=0;i<t;++i)r=[].concat(nR(r),nR(n));return r}},{key:"renderDotItem",value:function(t,n){var r;if(e.isValidElement(t))r=e.cloneElement(t,n);else if($i(t))r=t(n);else{var i=Ei("recharts-line-dot",t?t.className:"");r=e.createElement(AD,QI({},n,{className:i}))}return r}}],r&&iR(n.prototype,r),i&&iR(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();lR(fR,"displayName","Line"),lR(fR,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Gb.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),lR(fR,"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 tR({points:s.map((function(e,t){var s=uT(e,a);return"horizontal"===u?{x:CT({axis:n,ticks:i,bandSize:c,entry:e,index:t}),y:rc(s)?null:r.scale(s),value:s,payload:e}:{x:rc(s)?null:n.scale(s),y:CT({axis:r,ticks:o,bandSize:c,entry:e,index:t}),value:s,payload:e}})),layout:u},l)}));var pR=["layout","type","stroke","connectNulls","isRange","ref"];function dR(e){return dR="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},dR(e)}function hR(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 mR(){return mR=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},mR.apply(this,arguments)}function vR(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 yR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vR(Object(n),!0).forEach((function(t){kR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gR(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,SR(r.key),r)}}function bR(e,t){return bR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bR(e,t)}function xR(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=_R(e);if(t){var i=_R(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===dR(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return wR(e)}(this,n)}}function wR(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _R(e){return _R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_R(e)}function kR(e,t,n){return(t=SR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SR(e){var t=function(e,t){if("object"!==dR(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==dR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===dR(t)?t:String(t)}var ER=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&&bR(e,t)}(a,p);var n,r,i,o=xR(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 kR(wR(e=o.call.apply(o,[this].concat(n))),"state",{isAnimationFinished:!0}),kR(wR(e),"id",xc("recharts-area-")),kR(wR(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),$i(t)&&t()})),kR(wR(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),$i(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=$c(this.props),f=$c(c,!0),p=s.map((function(e,t){var n=yR(yR(yR({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(is,mR({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=f_(i.map((function(e){return e.y||0})));return yc(r)&&"number"==typeof r?l=Math.max(r,l):r&&Xi(r)&&r.length&&(l=Math.max(f_(r.map((function(e){return e.y||0}))),l)),yc(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=f_(i.map((function(e){return e.x||0})));return yc(r)&&"number"==typeof r?l=Math.max(r,l):r&&Xi(r)&&r.length&&(l=Math.max(f_(r.map((function(e){return e.x||0}))),l)),yc(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=hR(o,pR);return e.createElement(is,{clipPath:r?"url(#clipPath-".concat(i,")"):null},e.createElement(XP,mR({},$c(f,!0),{points:t,connectNulls:l,type:c,baseLine:n,layout:a,stroke:"none",className:"recharts-area-area"})),"none"!==s&&e.createElement(XP,mR({},$c(this.props),{className:"recharts-area-curve",layout:a,type:c,connectNulls:l,fill:"none",points:t})),"none"!==s&&u&&e.createElement(XP,mR({},$c(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(Tg,{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=kc(r.x,e.x),o=kc(r.y,e.y);return yR(yR({},e),{},{x:i(c),y:o(c)})}return e}));return s=yc(a)&&"number"==typeof a?kc(h,a)(c):rc(a)||hc(a)?kc(h,0)(c):a.map((function(e,t){var n=Math.floor(t*l);if(h[n]){var r=h[n],i=kc(r.x,e.x),o=kc(r.y,e.y);return yR(yR({},e),{},{x:i(c),y:o(c)})}return e})),r.renderAreaStatically(u,s,t,n)}return e.createElement(is,null,e.createElement("defs",null,e.createElement("clipPath",{id:"animationClipPath-".concat(n)},r.renderClipRect(c))),e.createElement(is,{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||!r_(c,r)||!r_(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,v=Ei("recharts-area",o),y=s&&s.allowDataOverflow||l&&l.allowDataOverflow,g=rc(d)?this.id:d;return e.createElement(is,{className:v},y?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(y,g),(r||m)&&this.renderDots(y,g),(!p||h)&&SP.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&&gR(n.prototype,r),i&&gR(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();kR(ER,"displayName","Area"),kR(ER,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Gb.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),kR(ER,"getBaseValue",(function(e,t,n,r){var i=e.layout,o=e.baseValue,a=t.props.baseValue,c=null!=a?a:o;if(yc(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]})),kR(ER,"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,v=ER.getBaseValue(n,r,i,o),y=!1,g=p.map((function(e,t){var n,r=uT(e,l);m?n=u[f+t]:Xi(n=r)?y=!0:n=[v,n];var p=rc(n[1])||m&&rc(r);return"horizontal"===h?{x:CT({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:CT({axis:o,ticks:c,bandSize:s,entry:e,index:t}),value:n,payload:e}}));return t=m||y?g.map((function(e){return"horizontal"===h?{x:e.x,y:rc(tc(e,"value[0]"))||rc(tc(e,"y"))?null:o.scale(tc(e,"value[0]"))}:{x:rc(tc(e,"value[0]"))?null:i.scale(tc(e,"value[0]")),y:e.y}})):"horizontal"===h?o.scale(v):i.scale(v),yR({points:g,baseLine:t,layout:h,isRange:y},d)})),kR(ER,"renderDotItem",(function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):$i(t)?t(n):e.createElement(AD,mR({},n,{className:"recharts-area-dot"}))}));var OR=function(){return null};function AR(e){return AR="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},AR(e)}function CR(){return CR=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},CR.apply(this,arguments)}function TR(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 PR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?TR(Object(n),!0).forEach((function(t){RR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function DR(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,LR(r.key),r)}}function jR(e,t){return jR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jR(e,t)}function MR(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=IR(e);if(t){var i=IR(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===AR(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return NR(e)}(this,n)}}function NR(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function IR(e){return IR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},IR(e)}function RR(e,t,n){return(t=LR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LR(e){var t=function(e,t){if("object"!==AR(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==AR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===AR(t)?t:String(t)}OR.displayName="ZAxis",OR.defaultProps={zAxisId:0,range:[64,64],scale:"auto",type:"number"};var zR=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&&jR(e,t)}(a,p);var n,r,i,o=MR(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(NR(e=o.call.apply(o,[this].concat(n))),"state",{isAnimationFinished:!1}),RR(NR(e),"handleAnimationEnd",(function(){e.setState({isAnimationFinished:!0})})),RR(NR(e),"handleAnimationStart",(function(){e.setState({isAnimationFinished:!1})})),RR(NR(e),"id",xc("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=$c(this.props);return t.map((function(t,r){var l=PR(PR({key:"symbol-".concat(r)},s),t);return e.createElement(is,CR({className:"recharts-scatter-symbol"},jc(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(Tg,{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=kc(n.cx,e.cx),o=kc(n.cy,e.cy),a=kc(n.size,e.size);return PR(PR({},e),{},{cx:r(i),cy:o(i),size:a(i)})}var c=kc(0,e.size);return PR(PR({},e),{},{size:c(i)})}));return e.createElement(is,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&&r_(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=qc(t.children,rT);if(!o)return null;function a(e,t){return{x:e.cx,y:e.cy,value:+e.node.y,errorVal:uT(e,t)}}function c(e,t){return{x:e.cx,y:e.cy,value:+e.node.x,errorVal:uT(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=$c(this.props),l=$c(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 v=PR(PR(PR({},s),{},{fill:"none",stroke:s&&s.fill},l),{},{points:t});return n=e.isValidElement(o)?e.cloneElement(o,v):$i(o)?o(v):e.createElement(XP,CR({},v,{type:c})),e.createElement(is,{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=Ei("recharts-scatter",o),v=a&&a.allowDataOverflow||c&&c.allowDataOverflow,y=rc(p)?this.id:p;return e.createElement(is,{className:m,clipPath:v?"url(#clipPath-".concat(y,")"):null},v?e.createElement("defs",null,e.createElement("clipPath",{id:"clipPath-".concat(y)},e.createElement("rect",{x:s,y:l,width:u,height:f}))):null,i&&this.renderLine(),this.renderErrorBar(),e.createElement(is,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!d||h)&&SP.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):$i(t)?r=t(n):"string"==typeof t&&(r=e.createElement(Kd,CR({},n,{type:t}))),r}}],r&&DR(n.prototype,r),i&&DR(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();RR(zR,"displayName","Scatter"),RR(zR,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!Gb.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"}),RR(zR,"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=qc(i.props.children,Hx),f=rc(t.dataKey)?i.props.dataKey:t.dataKey,p=rc(n.dataKey)?i.props.dataKey:n.dataKey,d=r&&r.dataKey,h=r?r.range:OR.defaultProps.range,m=h&&h[0],v=t.scale.bandwidth?t.scale.bandwidth():0,y=n.scale.bandwidth?n.scale.bandwidth():0,g=o.map((function(e,o){var s=uT(e,f),h=uT(e,p),g=!rc(d)&&uT(e,d)||"-",b=[{name:rc(t.dataKey)?i.props.name:t.name||t.dataKey,unit:t.unit||"",value:s,payload:e,dataKey:f,type:l},{name:rc(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=CT({axis:t,ticks:a,bandSize:v,entry:e,index:o,dataKey:f}),w=CT({axis:n,ticks:c,bandSize:y,entry:e,index:o,dataKey:p}),_="-"!==g?r.scale(g):m,k=Math.sqrt(Math.max(_,0)/Math.PI);return PR(PR({},e),{},{cx:x,cy:w,x:x-k,y:w-k,xAxis:t,yAxis:n,zAxis:r,width:2*k,height:2*k,size:_,node:{x:s,y:h,z:g},tooltipPayload:b,tooltipPosition:{x:x,y:w},payload:e},u&&u[o]&&u[o].props)}));return PR({points:g},s)}));var FR=function(){return null};FR.displayName="XAxis",FR.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 BR=function(){return null};BR.displayName="YAxis",BR.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 qR=Pf,HR=Hl,VR=Gl;var UR=function(e){return function(t,n,r){var i=Object(t);if(!HR(t)){var o=qR(n);t=VR(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}},WR=DM;var GR=Df,$R=Pf,YR=function(e){var t=WR(e),n=t%1;return t==t?n?t-n:t:0},XR=Math.max;var ZR=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:YR(n);return i<0&&(i=XR(r+i,0)),GR(e,$R(t),i)},KR=E(UR(ZR)),JR=Vi,QR=Zi;var eL=E((function(e){return!0===e||!1===e||QR(e)&&"[object Boolean]"==JR(e)}));function tL(e){return function(e){if(Array.isArray(e))return nL(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 nL(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 nL(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 nL(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 rL=function(e,t,n,r,i){var o=qc(e,nI),a=qc(e,sI),c=[].concat(tL(o),tL(a)),s=qc(e,hI),l="".concat(r,"Id"),u=r[0],f=t;if(c.length&&(f=c.reduce((function(e,t){if(t.props[l]===n&&sN(t.props,"extendDomain")&&yc(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&&sN(t.props,"extendDomain")&&yc(t.props[p])&&yc(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 yc(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e}),f)),f},iL={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}(iL);var oL=new(E(iL.exports));oL.setMaxListeners&&oL.setMaxListeners(10);var aL="recharts.syncMouseEvents",cL=["item"],sL=["children","className","width","height","style","compact","title","desc"];function lL(e){return lL="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},lL(e)}function uL(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)||bL(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 fL(){return fL=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},fL.apply(this,arguments)}function pL(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 dL(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,SL(r.key),r)}}function hL(e,t){return hL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},hL(e,t)}function mL(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=yL(e);if(t){var i=yL(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===lL(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return vL(e)}(this,n)}}function vL(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yL(e){return yL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},yL(e)}function gL(e){return function(e){if(Array.isArray(e))return xL(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||bL(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 bL(e,t){if(e){if("string"==typeof e)return xL(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)?xL(e,t):void 0}}function xL(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 wL(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 _L(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wL(Object(n),!0).forEach((function(t){kL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kL(e,t,n){return(t=SL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SL(e){var t=function(e,t){if("object"!==lL(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==lL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===lL(t)?t:String(t)}var EL={xAxis:["bottom","top"],yAxis:["left","right"]},OL={x:0,y:0},AL=Number.isFinite?Number.isFinite:isFinite,CL="function"==typeof requestAnimationFrame?requestAnimationFrame:"function"==typeof setImmediate?setImmediate:setTimeout,TL="function"==typeof cancelAnimationFrame?cancelAnimationFrame:"function"==typeof clearImmediate?clearImmediate:clearTimeout,PL=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(gL(e),gL(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&&yc(i)&&yc(o)?e.slice(i,o+1):[]};function DL(e){return"number"===e?[0,"auto"]:void 0}var jL=function(e,t,n,r){var i=e.graphicalItems,o=e.tooltipAxis,a=PL(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=Sc(void 0===c?a:c,o.dataKey,r):i=c&&c[n]||a[n];return i?[].concat(gL(e),[LT(t,i)]):e}),[])},ML=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(mc(u-l)!==mc(f-u)){var d=[];if(mc(f-u)===mc(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 v=[Math.min(u,(p+u)/2),Math.max(u,(p+u)/2)];if(e>v[0]&&e<=v[1]||e>=d[0]&&e<=d[1]){o=r[s].index;break}}else{var y=Math.min(l,f),g=Math.max(l,f);if(e>(y+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=jL(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 _L(_L(_L({},r),GT(r.cx,r.cy,a,o)),{},{angle:o,radius:a})}var c=i.coordinate,s=r.angle;return _L(_L(_L({},r),GT(r.cx,r.cy,c,s)),{},{angle:s,radius:c})}return OL}(n,a,l,i);return{activeTooltipIndex:l,activeLabel:u,activePayload:f,activeCoordinate:p}}return null},NL=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=vT(l,i),d=n.reduce((function(t,n){var d,h=n.props,m=h.type,v=h.dataKey,y=h.allowDataOverflow,g=h.allowDuplicatedCategory,b=h.scale,x=h.ticks,w=h.includeHidden,_=n.props[o];if(t[_])return t;var k,S,E,O=PL(e.data,{graphicalItems:r.filter((function(e){return e.props[o]===_})),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&&yc(r)&&yc(i))return!0}return!1})(n.props.domain,y,m)&&(k=NT(n.props.domain,null,y),!p||"number"!==m&&"auto"===b||(E=fT(O,v,"category")));var C=DL(m);if(!k||0===k.length){var T,P=null!==(T=n.props.domain)&&void 0!==T?T:C;if(v){if(k=fT(O,v,m),"category"===m&&p){var D=function(e){if(!Xi(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}(k);g&&D?(S=k,k=IM(0,A)):g||(k=RT(P,k,n).reduce((function(e,t){return e.indexOf(t)>=0?e:[].concat(gL(e),[t])}),[]))}else if("category"===m)k=g?k.filter((function(e){return""!==e&&!rc(e)})):RT(P,k,n).reduce((function(e,t){return e.indexOf(t)>=0||""===t||rc(t)?e:[].concat(gL(e),[t])}),[]);else if("number"===m){var j=function(e,t,n,r,i){var o=t.map((function(t){return hT(e,t,n,i,r)})).filter((function(e){return!rc(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]===_&&(w||!e.props.hide)})),v,i,l);j&&(k=j)}!p||"number"!==m&&"auto"===b||(E=fT(O,v,"category"))}else k=p?IM(0,A):a&&a[_]&&a[_].hasStack&&"number"===m?"expand"===f?[0,1]:DT(a[_].stackGroups,c,s):mT(O,r.filter((function(e){return e.props[o]===_&&(w||!e.props.hide)})),m,l,!0);if("number"===m)k=rL(u,k,_,i,x),P&&(k=NT(P,k,y));else if("category"===m&&P){var M=P;k.every((function(e){return M.indexOf(e)>=0}))&&(k=M)}}return _L(_L({},t),{},kL({},_,_L(_L({},n.props),{},{axisType:i,domain:k,categoricalDomain:E,duplicateDomain:S,originalDomain:null!==(d=n.props.domain)&&void 0!==d?d:C,isCategorical:p,layout:l})))}),{});return d},IL=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=qc(l,i),p={};return f&&f.length?p=NL(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=PL(e.data,{graphicalItems:n,dataStartIndex:c,dataEndIndex:s}),p=f.length,d=vT(l,i),h=-1;return n.reduce((function(e,t){var m,v=t.props[o],y=DL("number");return e[v]?e:(h++,d?m=IM(0,p):a&&a[v]&&a[v].hasStack?(m=DT(a[v].stackGroups,c,s),m=rL(u,m,v,i)):(m=NT(y,mT(f,n.filter((function(e){return e.props[o]===v&&!e.props.hide})),"number",l),r.defaultProps.allowDataOverflow),m=rL(u,m,v,i)),_L(_L({},e),{},kL({},v,_L(_L({axisType:i},r.defaultProps),{},{hide:!0,orientation:tc(EL,"".concat(i,".").concat(h%2),null),domain:m,originalDomain:y,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=Hc(r,QM);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:!rc(i)&&i}},LL=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"}},zL=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=Hc(l,QM),p=Hc(l,kh),d=Object.keys(a).reduce((function(e,t){var n=a[t],r=n.orientation;return n.mirror||n.hide?e:_L(_L({},e),{},kL({},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:_L(_L({},e),{},kL({},r,tc(e,"".concat(r))+n.height))}),{top:u.top||0,bottom:u.bottom||0}),m=_L(_L({},h),d),v=m.bottom;return f&&(m.bottom+=f.props.height||QM.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=dT({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)&&yc(e[f])&&(l=sT(sT({},e),{},lT({},f,l[f]+(u.width||0)))),("horizontal"===d||"vertical"===d&&"center"===f)&&yc(e[p])&&(l=sT(sT({},e),{},lT({},p,l[p]+(u.height||0))))}return l}(m,0,n,t)),_L(_L({brushBottom:v},m),{},{width:c-m.left-m.right,height:s-m.top-m.bottom})},FL=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,v=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=LL(l),m=h.numericAxisName,v=h.cateAxisName,y=function(e){return!(!e||!e.length)&&e.some((function(e){var t=Lc(e&&e.type);return t&&t.indexOf("Bar")>=0}))}(n),g=y&&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 Lc(e.type).indexOf("Bar")>=0}));if(m&&m.length){var v=m[0].props.barSize,y=m[0].props[h];i[y]||(i[y]=[]),i[y].push({item:m[0],stackList:m.slice(1),barSize:rc(v)?t:v})}}return i}({barSize:s,stackGroups:r}),b=[];return n.forEach((function(n,s){var h=PL(e.data,{dataStartIndex:a,dataEndIndex:c},n),y=n.props,x=y.dataKey,w=y.maxBarSize,_=n.props["".concat(m,"Id")],k=n.props["".concat(v,"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 _L(_L({},e),{},(kL(i={},r.axisType,c),kL(i,"".concat(r.axisType,"Ticks"),gT(c)),i))}),{}),E=S[v],O=S["".concat(v,"Ticks")],A=r&&r[_]&&r[_].hasStack&&function(e,t){var n=e.props.stackId;if(gc(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[_].stackGroups),C=Lc(n.type).indexOf("Bar")>=0,T=IT(E,O),P=[];if(C){var D,j,M=rc(w)?d:w,N=null!==(D=null!==(j=IT(E,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=wc(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(oT(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=wc(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 v=a===+a?Math.min(m,a):m;s=o.reduce((function(e,t,n){var r=[].concat(oT(e),[{item:t.item,position:{offset:h+(m+l)*n+(m-v)/2,size:v}}]);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[k],maxBarSize:M}),N!==T&&(P=P.map((function(e){return _L(_L({},e),{},{position:_L(_L({},e.position),{},{offset:e.position.offset-N/2})})})))}var I,R,L,z=n&&n.type&&n.type.getComposedData;z&&b.push({props:_L(_L({},z(_L(_L({},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)},kL(I,m,S[m]),kL(I,v,S[v]),kL(I,"animationId",o),I)),childIndex:(R=n,L=e.children,Bc(L).indexOf(R)),item:n})})),b},y=function(e,t){var n=e.props,r=e.dataStartIndex,a=e.dataEndIndex,c=e.updateId;if(!Vc({props:n}))return null;var s=n.children,l=n.layout,u=n.stackOffset,p=n.data,d=n.reverseStackOrder,m=LL(l),y=m.numericAxisName,g=m.cateAxisName,b=qc(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(gc(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[xc("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return sT(sT({},e),{},lT({},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 sT(sT({},t),{},lT({},o,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:OT(e,a.items,i)}))}),{})),sT(sT({},t),{},lT({},o,c))}),{})}(p,b,"".concat(y,"Id"),"".concat(g,"Id"),u,d),w=f.reduce((function(e,t){var i="".concat(t.axisType,"Map");return _L(_L({},e),{},kL({},i,IL(n,_L(_L({},t),{},{graphicalItems:b,stackGroups:t.axisType===y&&x,dataStartIndex:r,dataEndIndex:a}))))}),{}),_=zL(_L(_L({},w),{},{props:n,graphicalItems:b}),null==t?void 0:t.legendBBox);Object.keys(w).forEach((function(e){w[e]=h(n,w[e],_,e.replace("Map",""),i)}));var k,S,E=w["".concat(g,"Map")],O=(k=_c(E),{tooltipTicks:S=gT(k,!1,!0),orderedTooltipTicks:jb(S,(function(e){return e.coordinate})),tooltipAxis:k,tooltipAxisBandSize:IT(k,S)}),A=v(n,_L(_L({},w),{},{dataStartIndex:r,dataEndIndex:a,updateId:c,graphicalItems:b,stackGroups:x,offset:_}));return _L(_L({formattedGraphicalItems:A,graphicalItems:b,offset:_,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&&hL(e,t)}(f,g);var r,o,a,s=mL(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),kL(vL(t=s.call(this,e)),"clearDeferId",(function(){!rc(t.deferId)&&TL&&TL(t.deferId),t.deferId=null})),kL(vL(t),"handleLegendBBoxUpdate",(function(e){if(e){var n=t.state,r=n.dataStartIndex,i=n.dataEndIndex,o=n.updateId;t.setState(_L({legendBBox:e},y({props:t.props,dataStartIndex:r,dataEndIndex:i,updateId:o},_L(_L({},t.state),{},{legendBBox:e}))))}})),kL(vL(t),"handleReceiveSyncEvent",(function(e,n,r){t.props.syncId===e&&n!==t.uniqueChartId&&(t.clearDeferId(),t.deferId=CL&&CL(t.applySyncEvent.bind(vL(t),r)))})),kL(vL(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 _L({dataStartIndex:n,dataEndIndex:r},y({props:t.props,dataStartIndex:n,dataEndIndex:r,updateId:i},t.state))})),t.triggerSyncEvent({dataStartIndex:n,dataEndIndex:r})}})),kL(vL(t),"handleMouseEnter",(function(e){var n=t.props.onMouseEnter,r=t.getMouseInfo(e);if(r){var i=_L(_L({},r),{},{isTooltipActive:!0});t.setState(i),t.triggerSyncEvent(i),$i(n)&&n(i,e)}})),kL(vL(t),"triggeredAfterMouseMove",(function(e){var n=t.props.onMouseMove,r=t.getMouseInfo(e),i=r?_L(_L({},r),{},{isTooltipActive:!0}):{isTooltipActive:!1};t.setState(i),t.triggerSyncEvent(i),$i(n)&&n(i,e)})),kL(vL(t),"handleItemMouseEnter",(function(e){t.setState((function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}}))})),kL(vL(t),"handleItemMouseLeave",(function(){t.setState((function(){return{isTooltipActive:!1}}))})),kL(vL(t),"handleMouseMove",(function(e){e&&$i(e.persist)&&e.persist(),t.triggeredAfterMouseMove(e)})),kL(vL(t),"handleMouseLeave",(function(e){var n=t.props.onMouseLeave,r={isTooltipActive:!1};t.setState(r),t.triggerSyncEvent(r),$i(n)&&n(r,e),t.cancelThrottledTriggerAfterMouseMove()})),kL(vL(t),"handleOuterEvent",(function(e){var n=function(e){var t=e&&e.type;return t&&Rc[t]?Rc[t]:null}(e),r=tc(t.props,"".concat(n));n&&$i(r)&&r(/.*touch.*/i.test(n)?t.getMouseInfo(e.changedTouches[0]):t.getMouseInfo(e),e)})),kL(vL(t),"handleClick",(function(e){var n=t.props.onClick,r=t.getMouseInfo(e);if(r){var i=_L(_L({},r),{},{isTooltipActive:!0});t.setState(i),t.triggerSyncEvent(i),$i(n)&&n(i,e)}})),kL(vL(t),"handleMouseDown",(function(e){var n=t.props.onMouseDown;$i(n)&&n(t.getMouseInfo(e),e)})),kL(vL(t),"handleMouseUp",(function(e){var n=t.props.onMouseUp;$i(n)&&n(t.getMouseInfo(e),e)})),kL(vL(t),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseMove(e.changedTouches[0])})),kL(vL(t),"handleTouchStart",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseDown(e.changedTouches[0])})),kL(vL(t),"handleTouchEnd",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseUp(e.changedTouches[0])})),kL(vL(t),"verticalCoordinatesGenerator",(function(e){var t=e.xAxis,n=e.width,r=e.height,i=e.offset;return yT(wI(_L(_L(_L({},RI.defaultProps),t),{},{ticks:gT(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),i.left,i.left+i.width)})),kL(vL(t),"horizontalCoordinatesGenerator",(function(e){var t=e.yAxis,n=e.width,r=e.height,i=e.offset;return yT(wI(_L(_L(_L({},RI.defaultProps),t),{},{ticks:gT(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),i.top,i.top+i.height)})),kL(vL(t),"axesTicksGenerator",(function(e){return gT(e,!0)})),kL(vL(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=XP;if("ScatterChart"===i)p=a,m=ID;else if("BarChart"===i)p=t.getCursorRectangle(),m=cD;else if("radial"===h){var v=t.getCursorPoints(),y=v.cx,g=v.cy,b=v.radius;p={cx:y,cy:g,startAngle:v.startAngle,endAngle:v.endAngle,innerRadius:b,outerRadius:b},m=NP}else p={points:t.getCursorPoints()},m=XP;var x=e.key||"_recharts-cursor",w=_L(_L(_L(_L({stroke:"#ccc",pointerEvents:"none"},s),p),$c(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)})),kL(vL(t),"renderPolarAxis",(function(e,n,r){var i=tc(e,"type.axisType"),o=tc(t.state,"".concat(i,"Map")),a=o&&o[e.props["".concat(i,"Id")]];return d(e,_L(_L({},a),{},{className:i,key:e.key||"".concat(n,"-").concat(r),ticks:gT(a,!0)}))})),kL(vL(t),"renderXAxis",(function(e,n,r){var i=t.state.xAxisMap[e.props.xAxisId];return t.renderAxis(i,e,n,r)})),kL(vL(t),"renderYAxis",(function(e,n,r){var i=t.state.yAxisMap[e.props.yAxisId];return t.renderAxis(i,e,n,r)})),kL(vL(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=_c(r),u=KR(i,(function(e){return yN(e.domain,AL)}))||_c(i),f=e.props||{};return d(e,{key:e.key||"grid",x:yc(f.x)?f.x:o.left,y:yc(f.y)?f.y:o.top,width:yc(f.width)?f.width:o.width,height:yc(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})})),kL(vL(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=_c(c),u=_c(s),f=u.cx,p=u.cy,h=u.innerRadius,m=u.outerRadius;return d(e,{polarAngles:Xi(i)?i:gT(u,!0).map((function(e){return e.coordinate})),polarRadius:Xi(o)?o:gT(l,!0).map((function(e){return e.coordinate})),cx:f,cy:p,innerRadius:h,outerRadius:m,key:e.key||"polar-grid",radialLines:r})})),kL(vL(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=dT({children:r,formattedGraphicalItems:e,legendWidth:c,legendContent:p});if(!s)return null;var l=s.item,u=pL(s,cL);return d(l,_L(_L({},u),{},{chartWidth:i,chartHeight:o,margin:a,ref:function(e){t.legendInstance=e},onBBoxUpdate:t.handleLegendBBoxUpdate}))})),kL(vL(t),"renderTooltip",(function(){var e=Hc(t.props.children,ox);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:_L(_L({},c),{},{x:c.left,y:c.top}),active:r,label:a,payload:r?o:[],coordinate:i})})),kL(vL(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:bT(t.handleBrushChange,null,e.props.onChange),data:i,x:yc(e.props.x)?e.props.x:a.left,y:yc(e.props.y)?e.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:yc(e.props.width)?e.props.width:a.width,startIndex:c,endIndex:s,updateId:"brush-".concat(l)})})),kL(vL(t),"renderReferenceElement",(function(e,n,r){if(!e)return null;var i=vL(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})})),kL(vL(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=_L(_L({index:i,dataKey:s.dataKey,cx:n.x,cy:n.y,r:4,fill:pT(t.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value,key:"".concat(c,"-activePoint-").concat(i)},$c(l)),Dc(l));return a.push(f.renderActiveDot(l,u)),r?a.push(f.renderActiveDot(l,_L(_L({},u),{},{cx:r.x,cy:r.y,key:"".concat(c,"-basePoint-").concat(i)}))):o&&a.push(null),a})),kL(vL(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=Hc(t.props.children,ox),p=i.props,h=p.points,m=p.isRange,v=p.baseLine,y=i.item.props,g=y.activeDot,b=!y.hide&&c&&f&&g&&l>=0,x={};"axis"!==o&&f&&"click"===f.props.trigger?x={onClick:bT(t.handleItemMouseEnter,null,e.props.onCLick)}:"axis"!==o&&(x={onMouseLeave:bT(t.handleItemMouseLeave,null,e.props.onMouseLeave),onMouseEnter:bT(t.handleItemMouseEnter,null,e.props.onMouseEnter)});var w=d(e,_L(_L({},i.props),x));if(b){var _,k;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());_=Sc(h,S,u),k=m&&v&&Sc(v,S,u)}else _=h[l],k=m&&v&&v[l];if(!rc(_))return[w].concat(gL(t.renderActivePoints({item:i,activePoint:_,basePoint:k,childIndex:l,isRange:m})))}return m?[w,null,null]:[w,null]})),kL(vL(t),"renderCustomized",(function(e,n,r){return d(e,_L(_L({key:"recharts-customized-".concat(r)},t.props),t.state))})),t.uniqueChartId=rc(e.id)?xc("recharts"):e.id,t.clipPathId="".concat(t.uniqueChartId,"-clip"),e.throttleDelay&&(t.triggeredAfterMouseMove=Px(t.triggeredAfterMouseMove,e.throttleDelay)),t.state={},t}return r=f,o=[{key:"componentDidMount",value:function(){rc(this.props.syncId)||this.addListener()}},{key:"componentDidUpdate",value:function(e){rc(e.syncId)&&!rc(this.props.syncId)&&this.addListener(),!rc(e.syncId)&&rc(this.props.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){this.clearDeferId(),rc(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=Hc(this.props.children,ox);if(e&&eL(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=_c(o).scale,s=_c(a).scale,l=c&&c.invert?c.invert(n.chartX):null,u=s&&s.invert?s.invert(n.chartY):null;return _L(_L({},n),{},{xValue:l,yValue:u})}var f=ML(this.state,this.props.data,this.props.layout,r);return f?_L(_L({},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(!rc(a.cx)||!rc(a.cy)){if("centric"!==i){var s=a.cx,l=a.cy,u=a.radius,f=a.startAngle,p=a.endAngle;return{points:[GT(s,l,u,f),GT(s,l,u,p)],cx:s,cy:l,radius:u,startAngle:f,endAngle:p}}var d=a.cx,h=a.cy,m=a.innerRadius,v=a.outerRadius,y=a.angle,g=GT(d,h,m,y),b=GT(d,h,v,y);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=_c(o);return KT({x:e,y:t},c)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=Hc(e,ox),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}),_L(_L({},Dc(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){oL.on(aL,this.handleReceiveSyncEvent),oL.setMaxListeners&&oL._maxListeners&&oL.setMaxListeners(oL._maxListeners+1)}},{key:"removeListener",value:function(){oL.removeListener(aL,this.handleReceiveSyncEvent),oL.setMaxListeners&&oL._maxListeners&&oL.setMaxListeners(oL._maxListeners-1)}},{key:"triggerSyncEvent",value:function(e){var t=this.props.syncId;rc(t)||oL.emit(aL,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(rc(e.dataStartIndex)&&rc(e.dataEndIndex))if(rc(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=_L(_L({},f),{},{x:f.left,y:f.top}),m=Math.min(c,h.x+h.width),v=Math.min(s,h.y+h.height),g=p[l]&&p[l].value,b=jL(this.state,this.props.data,l),x=p[l]?{x:"horizontal"===n?p[l].coordinate:m,y:"horizontal"===n?v:p[l].coordinate}:OL;this.setState(_L(_L({},e),{},{activeLabel:g,activeCoordinate:x,activePayload:b,activeTooltipIndex:l}))}else this.setState(_L({dataStartIndex:o,dataEndIndex:a},y({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===Lc(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,fL({},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=uL(t,2),r=n[0],i=n[1];return _L(_L({},e),{},kL({},r,i.scale))}),{}):null}},{key:"getYScales",value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=uL(t,2),r=n[0],i=n[1];return _L(_L({},e),{},kL({},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=Lc(a.type);if("Bar"===c){var s=(o.data||[]).find((function(t){return aD(e,t)}));if(s)return{graphicalItem:i,payload:s}}else if("RadialBar"===c){var l=(o.data||[]).find((function(t){return KT(e,t)}));if(l)return{graphicalItem:i,payload:l}}}return null}},{key:"render",value:function(){var t=this;if(!Vc(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=pL(n,sL),p=$c(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(es,fL({},p,{width:o,height:a,title:l,desc:u}),this.renderClipPath(),Zc(r,d));var h=this.parseEventsOfWrapper();return e.createElement("div",fL({className:Ei("recharts-wrapper",i),style:_L({position:"relative",cursor:"default",width:o,height:a},c)},h,{ref:function(e){t.container=e},role:"region"}),e.createElement(es,fL({},p,{width:o,height:a,title:l,desc:u}),this.renderClipPath(),Zc(r,d)),this.renderLegend(),this.renderTooltip())}}],o&&dL(r.prototype,o),a&&dL(r,a),Object.defineProperty(r,"prototype",{writable:!1}),f}(),kL(r,"displayName",i),kL(r,"defaultProps",_L({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},m)),kL(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(rc(t.updateId)){var l=RL(e);return _L(_L(_L({},l),{},{updateId:0},y(_L(_L({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||!Ec(s,t.prevMargin)){var u=RL(e),f={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},p=_L(_L({},ML(t,n,a)),{},{updateId:t.updateId+1}),d=_L(_L(_L({},u),f),p);return _L(_L(_L({},d),y(_L({props:e},d),t)),{},{prevData:n,prevWidth:i,prevHeight:o,prevLayout:a,prevStackOffset:c,prevMargin:s,prevChildren:r})}if(!Yc(r,t.prevChildren)){var h=!rc(n)?t.updateId:t.updateId+1;return _L(_L({updateId:h},y(_L(_L({props:e},t),{},{updateId:h}),t)),{},{prevChildren:r})}return null})),kL(r,"renderActiveDot",(function(t,n){var r;return r=u(t)?d(t,n):$i(t)?t(n):e.createElement(AD,n),e.createElement(is,{className:"recharts-active-dot",key:n.key},r)})),r},BL=FL({chartName:"LineChart",GraphicalChild:fR,axisComponents:[{axisType:"xAxis",AxisComp:FR},{axisType:"yAxis",AxisComp:BR}],formatAxisMap:WN}),qL=FL({chartName:"BarChart",GraphicalChild:zN,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:FR},{axisType:"yAxis",AxisComp:BR}],formatAxisMap:WN});FL({chartName:"PieChart",GraphicalChild:Jj,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Tj},{axisType:"radiusAxis",AxisComp:vj}],formatAxisMap:YT,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});var HL=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},VL=bN,UL=Yo,WL=Object.prototype.hasOwnProperty;var GL=function(e,t,n){var r=e[t];WL.call(e,t)&&UL(r,n)&&(void 0!==n||t in e)||VL(e,t,n)},$L=GL,YL=bN;var XL=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?YL(n,c,s):$L(n,c,s)}return n},ZL=XL,KL=Gl;var JL=function(e,t){return e&&ZL(t,KL(t),e)};var QL=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},ez=Oi,tz=Ml,nz=QL,rz=Object.prototype.hasOwnProperty;var iz=function(e){if(!ez(e))return nz(e);var t=tz(e),n=[];for(var r in e)("constructor"!=r||!t&&rz.call(e,r))&&n.push(r);return n},oz=Dl,az=iz,cz=Hl;var sz=function(e){return cz(e)?oz(e,!0):az(e)},lz=XL,uz=sz;var fz=function(e,t){return e&&lz(t,uz(t),e)},pz={exports:{}};!function(e,t){var n=Di,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}}(pz,pz.exports);var dz=pz.exports;var hz=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},mz=XL,vz=Zs;var yz=function(e,t){return mz(e,vz(e),t)},gz=Fs,bz=Pj,xz=Zs,wz=Us,_z=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)gz(t,xz(e)),e=bz(e);return t}:wz,kz=XL,Sz=_z;var Ez=function(e,t){return kz(e,Sz(e),t)},Oz=Hs,Az=_z,Cz=sz;var Tz=function(e){return Oz(e,Cz,Az)},Pz=Object.prototype.hasOwnProperty;var Dz=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Pz.call(e,"index")&&(n.index=e.index,n.input=e.input),n},jz=Cs;var Mz=function(e){var t=new e.constructor(e.byteLength);return new jz(t).set(new jz(e)),t},Nz=Mz;var Iz=function(e,t){var n=t?Nz(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},Rz=/\w*$/;var Lz=function(e){var t=new e.constructor(e.source,Rz.exec(e));return t.lastIndex=e.lastIndex,t},zz=ji?ji.prototype:void 0,Fz=zz?zz.valueOf:void 0;var Bz=Mz;var qz=Mz,Hz=Iz,Vz=Lz,Uz=function(e){return Fz?Object(Fz.call(e)):{}},Wz=function(e,t){var n=t?Bz(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var Gz=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return qz(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return Hz(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 Wz(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 Vz(e);case"[object Symbol]":return Uz(e)}},$z=Oi,Yz=Object.create,Xz=function(){function e(){}return function(t){if(!$z(t))return{};if(Yz)return Yz(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),Zz=Xz,Kz=Pj,Jz=Ml;var Qz=function(e){return"function"!=typeof e.constructor||Jz(e)?{}:Zz(Kz(e))},eF=wu,tF=Zi;var nF=function(e){return tF(e)&&"[object Map]"==eF(e)},rF=yl,iF=bl&&bl.isMap,oF=iF?rF(iF):nF,aF=wu,cF=Zi;var sF=function(e){return cF(e)&&"[object Set]"==aF(e)},lF=yl,uF=bl&&bl.isSet,fF=uF?lF(uF):sF,pF=vs,dF=HL,hF=GL,mF=JL,vF=fz,yF=dz,gF=hz,bF=yz,xF=Ez,wF=Zl,_F=Tz,kF=wu,SF=Dz,EF=Gz,OF=Qz,AF=Yi,CF=sl,TF=oF,PF=Oi,DF=fF,jF=Gl,MF=sz,NF="[object Arguments]",IF="[object Function]",RF="[object Object]",LF={};LF[NF]=LF["[object Array]"]=LF["[object ArrayBuffer]"]=LF["[object DataView]"]=LF["[object Boolean]"]=LF["[object Date]"]=LF["[object Float32Array]"]=LF["[object Float64Array]"]=LF["[object Int8Array]"]=LF["[object Int16Array]"]=LF["[object Int32Array]"]=LF["[object Map]"]=LF["[object Number]"]=LF[RF]=LF["[object RegExp]"]=LF["[object Set]"]=LF["[object String]"]=LF["[object Symbol]"]=LF["[object Uint8Array]"]=LF["[object Uint8ClampedArray]"]=LF["[object Uint16Array]"]=LF["[object Uint32Array]"]=!0,LF["[object Error]"]=LF[IF]=LF["[object WeakMap]"]=!1;var zF=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(!PF(t))return t;var f=AF(t);if(f){if(c=SF(t),!s)return gF(t,c)}else{var p=kF(t),d=p==IF||"[object GeneratorFunction]"==p;if(CF(t))return yF(t,s);if(p==RF||p==NF||d&&!o){if(c=l||d?{}:OF(t),!s)return l?xF(t,vF(c,t)):bF(t,mF(c,t))}else{if(!LF[p])return o?t:{};c=EF(t,p,s)}}a||(a=new pF);var h=a.get(t);if(h)return h;a.set(t,c),DF(t)?t.forEach((function(i){c.add(e(i,n,r,i,t,a))})):TF(t)&&t.forEach((function(i,o){c.set(o,e(i,n,r,o,t,a))}));var m=f?void 0:(u?l?_F:wF:l?MF:jF)(t);return dF(m||t,(function(i,o){m&&(i=t[o=i]),hF(c,o,e(i,n,r,o,t,a))})),c},FF=Ja,BF=ep;var qF=function(e,t){return t.length<2?e:FF(e,BF(t,0,-1))},HF=$a,VF=pP,UF=qF,WF=Xa;var GF=function(e,t){return t=HF(t,e),null==(e=UF(e,t))||delete e[WF(VF(t))]},$F=Fj;var YF=Ig;var XF=function(e){return(null==e?0:e.length)?YF(e,1):[]},ZF=XF,KF=sb,JF=bb;var QF=function(e){return JF(KF(e,void 0,ZF),e+"")},eB=Na,tB=zF,nB=GF,rB=$a,iB=XL,oB=function(e){return $F(e)?void 0:e},aB=Tz,cB=QF((function(e,t){var n={};if(null==e)return n;var r=!1;t=eB(t,(function(t){return t=rB(t,e),r||(r=t.length>1),t})),iB(e,aB(e),n),r&&(n=tB(n,7,oB));for(var i=t.length;i--;)nB(n,t[i]);return n})),sB=E(cB),lB=["#1890FF","#66B5FF","#41D9C7","#2FC25B","#6EDB8F","#9AE65C","#FACC14","#E6965C","#57AD71","#223273","#738AE6","#7564CC","#8543E0","#A877ED","#5C8EE6","#13C2C2","#70E0E0","#5CA3E6","#3436C7","#8082FF","#DD81E6","#F04864","#FA7D92","#D598D9"],uB=["width","height","className","style","children","type"];function fB(e){return fB="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},fB(e)}function pB(){return pB=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},pB.apply(this,arguments)}function dB(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 hB(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,_B(r.key),r)}}function mB(e,t){return mB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},mB(e,t)}function vB(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=gB(e);if(t){var i=gB(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===fB(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 gB(e){return gB=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},gB(e)}function bB(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 xB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bB(Object(n),!0).forEach((function(t){wB(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wB(e,t,n){return(t=_B(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _B(e){var t=function(e,t){if("object"!==fB(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==fB(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===fB(t)?t:String(t)}var kB="value",SB=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[kB]}),0):hc(o[c])||o[c]<=0?0:o[c],xB(xB({},o),{},(wB(n={children:u},kB,r),wB(n,"depth",i),wB(n,"index",a),n))},EB=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},OB=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,xB(xB({},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),xB(xB({},n),{},{x:n.x+i,width:n.width-i})}(e,t,n,r)},AB=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[kB]*n;return xB(xB({},e),{},{area:hc(t)||t<=0?0:t})}))}(r,a.width*a.height/t[kB]),f=u.slice();for(c.area=0;f.length>0;)c.push(i=f[0]),c.area+=i.area,(o=EB(c,l,n))<=s?(f.shift(),s=o):(c.area-=c.pop().area,a=OB(c,l,a,!1),l=Math.min(a.width,a.height),c.length=c.area=0,s=1/0);return c.length&&(a=OB(c,l,a,!0),c.length=c.area=0),xB(xB({},t),{},{children:u.map((function(t){return e(t,n)}))})}return t},CB={isTooltipActive:!1,isAnimationFinished:!1,activeNode:null,formatRoot:null,currentRoot:null,nestIndex:[]},TB=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&&mB(e,t)}(a,p);var n,r,i,o=vB(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 wB(yB(e=o.call.apply(o,[this].concat(n))),"state",xB({},CB)),wB(yB(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),$i(t)&&t()})),wB(yB(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),$i(t)&&t()})),e}return n=a,r=[{key:"handleMouseEnter",value:function(e,t){var n=this.props,r=n.onMouseEnter;Hc(n.children,ox)?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;Hc(n.children,ox)?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=SB({depth:0,node:xB(xB({},e),{},{x:0,y:0,width:i,height:o}),index:0,valueKey:a}),l=AB(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=SB({depth:0,node:xB(xB({},e),{},{x:0,y:0,width:i,height:o}),index:0,valueKey:a}),l=AB(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,v=n.height,y=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(Tg,{begin:c,duration:s,isActive:a,easing:l,key:"treemap-".concat(p),from:{x:y,y:g,width:m,height:v},to:{x:y,y:g,width:m,height:v},onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(r){var o=r.x,p=r.y,m=r.width,v=r.height;return e.createElement(Tg,{from:"translate(".concat(x,"px, ").concat(x,"px)"),to:"translate(0, 0)",attributeName:"transform",begin:c,easing:l,isActive:a,duration:s},e.createElement(is,w,b>2&&!h?null:i.constructor.renderContentItem(t,xB(xB({},n),{},{isAnimationActive:a,isUpdateAnimationActive:!u,width:m,height:v,x:o,y:p}),f,d)))})):e.createElement(is,w,this.constructor.renderContentItem(t,xB(xB({},n),{},{isAnimationActive:!1,isUpdateAnimationActive:!1,width:m,height:v,x:y,y:g}),f,d))}},{key:"renderNode",value:function(t,n,r){var i=this,o=this.props,a=o.content,c=o.type,s=xB(xB(xB({},$c(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(is,{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=Hc(n,ox);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:uT(u,r,""),value:uT(u,kB)}]:[];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=tc(n,r,"root"),c=null;return e.isValidElement(i)&&(c=e.cloneElement(i,n,o)),c=$i(i)?i(n,o):a,e.createElement("div",{onClick:t.handleNestIndex.bind(t,n,o),key:"nest-index-".concat(xc()),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(!Vc(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=dB(t,uB),l=$c(s);return e.createElement("div",{className:Ei("recharts-wrapper",i),style:xB(xB({},o),{},{position:"relative",cursor:"default",width:n,height:r}),role:"region"},e.createElement(es,pB({},l,{width:n,height:"nest"===c?r-30:r}),this.renderAllNodes(),Gc(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=SB({depth:0,node:{children:e.data,x:0,y:0,width:e.width,height:e.height},index:0,valueKey:e.dataKey}),r=AB(n,e.aspectRatio);return xB(xB({},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($i(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(xD,{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=Iw(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||lB;return e.createElement("g",null,e.createElement(cD,pB({fill:n.depth<2?d[l%d.length]:"rgba(255,255,255,0)",stroke:"#fff"},sB(n,"children"),{role:"img"})),u,f)}}],r&&hB(n.prototype,r),i&&hB(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();wB(TB,"displayName","Treemap"),wB(TB,"defaultProps",{aspectRatio:.5*(1+Math.sqrt(5)),dataKey:"value",type:"flat",isAnimationActive:!Gb.isSsr,isUpdateAnimationActive:!Gb.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"linear"});var PB=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},DB=Pf,jB=PB;var MB=function(e,t){return e&&e.length?jB(e,DB(t)):0},NB=E(MB),IB=["width","height","className","style","children"],RB=["sourceX","sourceY","sourceControlX","targetX","targetY","targetControlX","linkWidth"];function LB(e){return LB="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},LB(e)}function zB(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 FB(){return FB=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},FB.apply(this,arguments)}function BB(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,YB(r.key),r)}}function qB(e,t){return qB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qB(e,t)}function HB(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"===LB(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return VB(e)}(this,n)}}function VB(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 WB(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 GB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?WB(Object(n),!0).forEach((function(t){$B(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $B(e,t,n){return(t=YB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YB(e){var t=function(e,t){if("object"!==LB(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==LB(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===LB(t)?t:String(t)}var XB={x:0,y:0},ZB=function(e){return e.y+e.dy/2},KB=function(e){return e&&e.value||0},JB=function(e,t){return t.reduce((function(t,n){return t+KB(e[n])}),0)},QB=function(e,t,n){return n.reduce((function(n,r){var i=t[r],o=e[i.source];return n+ZB(o)*KB(t[r])}),0)},eq=function(e,t,n){return n.reduce((function(n,r){var i=t[r],o=e[i.target];return n+ZB(o)*KB(t[r])}),0)},tq=function(e,t){return e.y-t.y},nq=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))}},rq=function(e,t,n){for(var r=0,i=e.length;r<i;r++){var o=e[r],a=o.length;o.sort(tq);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}}},iq=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=JB(n,l.sourceLinks),f=QB(e,n,l.sourceLinks)/u;l.y+=(f-ZB(l))*r}}},oq=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=JB(n,s.targetLinks),u=eq(e,n,s.targetLinks)/l;s.y+=(u-ZB(s))*r}}},aq=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 GB(GB(GB({},e),n),{},{value:Math.max(JB(i,n.sourceLinks),JB(i,n.targetLinks)),depth:0})})),a=0,c=o.length;a<c;a++){var s=o[a];s.sourceNodes.length||nq(o,s)}var l=nj(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=y_(e.map((function(e){return(t-(e.length-1)*n)/NB(e,KB)}))),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 GB(GB({},e),{},{dy:KB(e)*i})}))}(u,r,a,c);rq(u,r,a);for(var p=1,d=1;d<=i;d++)oq(l,u,f,p*=.99),rq(u,r,a),iq(l,u,f,p),rq(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}},cq=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&&qB(e,t)}(a,p);var n,r,i,o=HB(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 $B(VB(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=Hc(r.children,ox);o?this.setState((function(n){return"hover"===o.props.trigger?GB(GB({},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=Hc(r.children,ox);o?this.setState((function(e){return"hover"===o.props.trigger?GB(GB({},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=Hc(r.children,ox);o&&"click"===o.props.trigger&&(this.state.isTooltipActive?this.setState((function(e){return GB(GB({},e),{},{activeElement:void 0,activeElementType:void 0,isTooltipActive:!1})})):this.setState((function(n){return GB(GB({},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=tc(c,"top")||0,l=tc(c,"left")||0;return e.createElement(is,{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,v=function(e,t){var n=+e,r=t-n;return function(e){return n+r*e}}(h,m),y=v(o),g=v(1-o),b=GB({sourceX:h,targetX:m,sourceY:p.y+c+f/2+s,targetY:d.y+u+f/2+s,sourceControlX:y,targetControlX:g,sourceRelativeY:c,targetRelativeY:u,linkWidth:f,index:i,payload:GB(GB({},t),{},{source:p,target:d})},$c(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(is,FB({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=tc(o,"top")||0,c=tc(o,"left")||0;return e.createElement(is,{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=GB(GB({},$c(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(is,FB({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=Hc(n,ox);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):XB,d=l?function(e,t,n){var r=e.payload;if("node"===t)return[{payload:e,name:uT(r,n,""),value:uT(r,"value")}];if(r.source&&r.target){var i=uT(r.source,n,""),o=uT(r.target,n,"");return[{payload:e,name:"".concat(i," - ").concat(o),value:uT(r,"value")}]}return[]}(l,u,o):[];return e.cloneElement(a,{viewBox:f,active:s,coordinate:p,label:"",payload:d})}},{key:"render",value:function(){if(!Vc(this))return null;var t=this.props,n=t.width,r=t.height,i=t.className,o=t.style,a=t.children,c=zB(t,IB),s=this.state,l=s.links,u=s.nodes,f=$c(c);return e.createElement("div",{className:Ei("recharts-wrapper",i),style:GB(GB({},o),{},{position:"relative",cursor:"default",width:n,height:r}),role:"region"},e.createElement(es,FB({},f,{width:n,height:r}),Gc(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||!Ec(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=aq({data:n,width:l,height:u,iterations:a,nodeWidth:c,nodePadding:s}),p=f.links,d=f.nodes;return GB(GB({},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($i(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=zB(n,RB);return e.createElement("path",FB({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"},$c(u)))}},{key:"renderNodeItem",value:function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):$i(t)?t(n):e.createElement(cD,FB({className:"recharts-sankey-node",fill:"#0088fe",fillOpacity:"0.8"},$c(n),{role:"img"}))}}],r&&BB(n.prototype,r),i&&BB(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();$B(cq,"displayName","Sankey"),$B(cq,"defaultProps",{nameKey:"name",dataKey:"value",nodePadding:10,nodeWidth:10,linkCurvature:.5,iterations:32,margin:{top:5,right:5,bottom:5,left:5}}),FL({chartName:"RadarChart",GraphicalChild:pM,axisComponents:[{axisType:"angleAxis",AxisComp:Tj},{axisType:"radiusAxis",AxisComp:vj}],formatAxisMap:YT,defaultProps:{layout:"centric",startAngle:90,endAngle:-270,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),FL({chartName:"ScatterChart",GraphicalChild:zR,defaultTooltipEventType:"item",validateTooltipEventTypes:["item"],axisComponents:[{axisType:"xAxis",AxisComp:FR},{axisType:"yAxis",AxisComp:BR},{axisType:"zAxis",AxisComp:OR}],formatAxisMap:WN});var sq=FL({chartName:"AreaChart",GraphicalChild:ER,axisComponents:[{axisType:"xAxis",AxisComp:FR},{axisType:"yAxis",AxisComp:BR}],formatAxisMap:WN});function lq(e){return lq="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},lq(e)}function uq(){return uq=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},uq.apply(this,arguments)}function fq(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,yq(r.key),r)}}function pq(e,t){return pq=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},pq(e,t)}function dq(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=mq(e);if(t){var i=mq(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===lq(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return hq(e)}(this,n)}}function hq(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mq(e){return mq=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},mq(e)}function vq(e,t,n){return(t=yq(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yq(e){var t=function(e,t){if("object"!==lq(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==lq(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===lq(t)?t:String(t)}FL({chartName:"RadialBarChart",GraphicalChild:OM,legendContent:"children",defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"angleAxis",AxisComp:Tj},{axisType:"radiusAxis",AxisComp:vj}],formatAxisMap:YT,defaultProps:{layout:"radial",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),FL({chartName:"ComposedChart",GraphicalChild:[fR,ER,zN,zR],axisComponents:[{axisType:"xAxis",AxisComp:FR},{axisType:"yAxis",AxisComp:BR},{axisType:"zAxis",AxisComp:OR}],formatAxisMap:WN});var gq=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")},bq=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&&pq(e,t)}(a,p);var n,r,i,o=dq(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 vq(hq(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=Ei("recharts-trapezoid",s);return h?e.createElement(Tg,{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(Tg,{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",uq({},$c(t.props,!0),{className:m,d:gq(a,c,r,i,o),ref:function(e){t.node=e}})))})):e.createElement("g",null,e.createElement("path",uq({},$c(this.props,!0),{className:m,d:gq(r,i,o,a,c)})))}}],r&&fq(n.prototype,r),i&&fq(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function xq(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 wq(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 wq(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 wq(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 _q(e){return _q="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},_q(e)}function kq(){return kq=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},kq.apply(this,arguments)}function Sq(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 Eq(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sq(Object(n),!0).forEach((function(t){Dq(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sq(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Oq(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,jq(r.key),r)}}function Aq(e,t){return Aq=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Aq(e,t)}function Cq(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=Pq(e);if(t){var i=Pq(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===_q(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Tq(e)}(this,n)}}function Tq(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pq(e){return Pq=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Pq(e)}function Dq(e,t,n){return(t=jq(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jq(e){var t=function(e,t){if("object"!==_q(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==_q(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===_q(t)?t:String(t)}vq(bq,"defaultProps",{x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"});var Mq=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&&Aq(e,t)}(a,p);var n,r,i,o=Cq(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 Dq(Tq(e=o.call.apply(o,[this].concat(n))),"state",{isAnimationFinished:!1}),Dq(Tq(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),$i(t)&&t()})),Dq(Tq(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),$i(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=Eq(Eq({},t),{},{stroke:t.stroke});return e.createElement(is,kq({className:"recharts-funnel-trapezoid"},jc(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(Tg,{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=kc(n.x,e.x),o=kc(n.y,e.y),a=kc(n.upperWidth,e.upperWidth),c=kc(n.lowerWidth,e.lowerWidth),s=kc(n.height,e.height);return Eq(Eq({},e),{},{x:r(i),y:o(i),upperWidth:a(i),lowerWidth:c(i),height:s(i)})}var u=kc(e.x+e.upperWidth/2,e.x),f=kc(e.y+e.height/2,e.y),p=kc(0,e.upperWidth),d=kc(0,e.lowerWidth),h=kc(0,e.height);return Eq(Eq({},e),{},{x:u(i),y:f(i),upperWidth:p(i),lowerWidth:d(i),height:h(i)})}));return e.createElement(is,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&&r_(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=Ei("recharts-trapezoids",i);return e.createElement(is,{className:c},this.renderTrapezoids(),(!o||a)&&SP.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):$i(t)?t(n):Bj(t)?e.createElement(bq,kq({},n,t)):e.createElement(bq,n)}}],r&&Oq(n.prototype,r),i&&Oq(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();Dq(Mq,"displayName","Funnel"),Dq(Mq,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",labelLine:!0,hide:!1,isAnimationActive:!Gb.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",lastShapeType:"triangle"}),Dq(Mq,"getRealFunnelData",(function(e){var t=e.props,n=t.data,r=t.children,i=$c(e.props),o=qc(r,Hx);return n&&n.length?n.map((function(e,t){return Eq(Eq(Eq({payload:e},i),e),o&&o[t]&&o[t].props)})):o&&o.length?o.map((function(e){return Eq(Eq({},i),e.props)})):[]})),Dq(Mq,"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 pc(n)?u=n:eo(n)&&(u=u*parseFloat(n)/100),{realWidth:u-o-a-50,realHeight:l-s-c,offsetX:(r-u)/2,offsetY:(i-l)/2}})),Dq(Mq,"getComposedData",(function(e){var t=e.item,n=e.offset,r=Mq.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=Mq.getRealWidthHeight(t,n),d=p.realHeight,h=p.realWidth,m=p.offsetX,v=p.offsetY,y=Math.max.apply(null,r.map((function(e){return uT(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=uT(e,o,0),l=uT(e,a,t),p=i;if(t!==g-1)(n=uT(r[t+1],o,0))instanceof Array&&(n=xq(n,1)[0]);else if(i instanceof Array&&2===i.length){var d=xq(i,2);p=d[0],n=d[1]}else n="rectangle"===s?p:0;var w=(y-p)*h/(2*y)+f+25+m,_=b*t+u+v,k=p/y*h,S=n/y*h,E=[{name:l,value:p,payload:e,dataKey:o,type:c}],O={x:w+k/2,y:_+b/2};return Eq(Eq({x:w,y:_,width:Math.max(k,S),upperWidth:k,lowerWidth:S,height:b,name:l,val:p,tooltipPayload:E,tooltipPosition:O},sB(e,"width")),{},{payload:e,parentViewBox:x,labelViewBox:{x:w+(k-S)/4,y:_,width:Math.abs(k-S)/2+Math.min(k,S),height:b}})}));return l&&(w=w.map((function(e,t){var n=e.y-t*b+(g-1-t)*b;return Eq(Eq({},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:Eq(Eq({},e.tooltipPosition),{},{y:n+b/2}),labelViewBox:Eq(Eq({},e.labelViewBox),{},{y:n})})}))),{trapezoids:w,data:r}})),FL({chartName:"FunnelChart",GraphicalChild:Mq,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",axisComponents:[],defaultProps:{layout:"centric"}});function Nq(t){var n,r,i,s,l,u,f,p=o(null),d=p[0],h=p[1],m=o(!1),v=m[0],y=m[1],g=c(Ht),x=t.intervalType||"Month";g?(x=g.intervalType,f=g.intervalStart):f=function(e,t){return"Week"===e?Bt(t):qt()}(x,t.weekStartsOn);var w=Y(f,"Week"==x?{days:7}:{months:1});function _(){h(null),t.previewDataProvider?t.previewDataProvider(f,w).then((function(e){h(e)})):_i(t.dailyDataType,f,w).then((function(e){h(e)}))}a((function(){function e(){t.previewDataProvider?y(!0):wi(t.dailyDataType).then((function(e){y(e)}))}return e(),b.on("applicationDidBecomeVisible",e),b.on("externalAccountSyncComplete",e),function(){b.off("applicationDidBecomeVisible",e),b.off("externalAccountSyncComplete",e)}}),[t.dailyDataType]),a((function(){return _(),b.on("applicationDidBecomeVisible",_),b.on("externalAccountSyncComplete",_),function(){b.off("applicationDidBecomeVisible",_),b.off("externalAccountSyncComplete",_)}}),[t.intervalType,t.weekStartsOn,g]);var k=f,S=[],E=!1;if(d)for(;k<w;){var O={day:k.getDate()};S.push(O);var A=ri(k);null!=d[A]&&null!=d[A]&&(O.value=d[A],O.rawValue=O.value,O.date=k,t.valueConverter&&(O.value=t.valueConverter(O.value)),E=!0),k=Y(k,{days:1})}var C=function(n){var r=n.active,i=n.payload;if(n.label,r&&i&&i.length){var o=i[0].payload.date;return e.createElement("div",{className:"mdhui-daily-data-tooltip"},e.createElement("div",{className:"mdhui-daily-data-tooltip-value"},t.valueFormatter?t.valueFormatter(i[0].payload.rawValue):i[0].payload.value),e.createElement("div",{className:"mdhui-daily-data-tooltip-date"},nt(o,"MM/dd/yyyy")))}return null},T=function(t){var n=t.x,r=t.y;t.stroke;var i=t.payload.value;if("Month"==x){var o=new Date(f.getFullYear(),f.getMonth(),i);return e.createElement("text",{className:pt(o)?"today":"",fill:"var(--mdhui-text-color-2)",x:n,y:r+15,textAnchor:"middle",fontSize:"12"},i)}for(var a=f,c="",s=0;s<7;s++){if(a.getDate()==i){c=nt(a,"EEEEEE");break}a=Y(a,{days:1})}return e.createElement(e.Fragment,null,e.createElement("text",{className:pt(a)?"today":"",fill:"var(--mdhui-text-color-2)",x:n,y:r+8,textAnchor:"middle",fontSize:"11"},c),e.createElement("text",{className:pt(a)?"today":"",fill:"var(--mdhui-text-color-2)",x:n,y:r+24,textAnchor:"middle",fontSize:"12"},i))};function P(e){return e>=1e4?Number((e/1e3).toFixed(1))+"K":Number(e.toFixed(1))}var D="gradient_".concat(Math.random());function j(){var n=void 0;if(t.options&&"Line"==t.chartType){var r=t.options.domainMin;"Auto"==r?n=["auto","auto"]:null!=r&&(n=[r,"auto"])}return e.createElement(e.Fragment,null,E&&e.createElement(ox,{wrapperStyle:{outline:"none"},active:!0,content:e.createElement(C,null)}),e.createElement(XI,{vertical:"Bar"!=t.chartType,strokeDasharray:"2 4"}),e.createElement(BR,{tickFormatter:P,axisLine:!1,interval:0,tickLine:!1,width:32,domain:n}),e.createElement(FR,{id:"myXAxis",tick:T,axisLine:!1,dataKey:"day",tickMargin:0,minTickGap:0,tickLine:!1,interval:"Month"==x?1:"preserveStartEnd"}))}return!v&&t.hideIfNoData?null:e.createElement("div",{className:"mdhui-daily-data-chart",ref:t.innerRef},t.title&&e.createElement(jt,{title:t.title}),e.createElement("div",{className:"chart-container"},!E&&e.createElement("div",null,d&&e.createElement("div",{className:"no-data-label"},"No Data"),!d&&e.createElement(I,null),e.createElement(qx,{width:"100%",height:150},e.createElement(BL,{width:400,height:400,data:S,syncId:"DailyDataChart"},j()))),E&&"Line"==t.chartType&&e.createElement(qx,{width:"100%",height:150},e.createElement(BL,{width:400,height:400,data:S,syncId:"DailyDataChart"},j(),e.createElement(fR,{strokeWidth:2,key:"line",type:"monotone",dataKey:"value",stroke:(null===(n=t.options)||void 0===n?void 0:n.lineColor)||"var(--mdhui-color-primary)"}))),E&&"Bar"==t.chartType&&e.createElement(qx,{width:"100%",height:150},e.createElement(qL,{width:400,height:400,data:S,syncId:"DailyDataChart"},e.createElement("defs",null,e.createElement("linearGradient",{id:D,x1:"0",y1:"0",x2:"0",y2:"1"},e.createElement("stop",{offset:"0%",stopColor:(null===(r=t.options)||void 0===r?void 0:r.barColor)||"var(--mdhui-color-primary)",stopOpacity:1}),e.createElement("stop",{offset:"100%",stopColor:(null===(i=t.options)||void 0===i?void 0:i.barColor)||"var(--mdhui-color-primary)",stopOpacity:.7}))),j(),e.createElement(zN,{key:"bar",type:"monotone",dataKey:"value",fill:"url(#".concat(D,")"),radius:[2,2,0,0]}))),E&&"Area"==t.chartType&&e.createElement(qx,{width:"100%",height:150},e.createElement(sq,{width:400,height:400,data:S,syncId:"DailyDataChart"},e.createElement("defs",null,e.createElement("linearGradient",{id:D,x1:"0",y1:"0",x2:"0",y2:"1"},e.createElement("stop",{offset:"0%",stopColor:(null===(s=t.options)||void 0===s?void 0:s.areaColor)||"var(--mdhui-color-primary)",stopOpacity:.5}),e.createElement("stop",{offset:"100%",stopColor:(null===(l=t.options)||void 0===l?void 0:l.areaColor)||"var(--mdhui-color-primary)",stopOpacity:.2}))),j(),e.createElement(ER,{key:"area",type:"monotone",dataKey:"value",fillOpacity:1,strokeWidth:2,fill:"url(#".concat(D,")"),stroke:(null===(u=t.options)||void 0===u?void 0:u.lineColor)||"var(--mdhui-color-primary)"})))))}_(".mdhui-daily-data-chart {\n position: relative;\n}\n\n.mdhui-daily-data-chart .title {\n padding: 16px;\n padding-bottom: 0;\n position: relative;\n font-weight: bold;\n}\n\n.mdhui-daily-data-chart .chart-container {\n padding: 16px;\n position: relative;\n}\n\n.mdhui-daily-data-chart .no-data-label,\n.mdhui-daily-data-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-3);\n box-sizing: border-box;\n padding: 16px;\n}\n\n.mdhui-daily-data-chart .mdhui-daily-data-tooltip {\n padding: 8px;\n background: var(--mdhui-background-color-0);\n border-radius: var(--mdhui-card-border-radius);\n box-shadow: var(--mdhui-box-shadow-1);\n animation: fadein 1s;\n -moz-animation: fadein 1s;\n -webkit-animation: fadein 1s;\n}\n\n.mdhui-daily-data-chart .mdhui-daily-data-tooltip .mdhui-daily-data-tooltip-value {\n font-weight: bold;\n font-size: 1.5em;\n color: var(--mdhui-text-color-0);\n padding-bottom: 4px;\n}\n\n.mdhui-daily-data-chart .mdhui-daily-data-tooltip .mdhui-daily-data-tooltip-date {\n font-size: .7em;\n color: var(--mdhui-text-color-2);\n line-height: 1em;\n}\n\n.mdhui-daily-data-chart .recharts-cartesian-axis-tick text {\n fill: var(--mdhui-text-color-1);\n font-size: 11px;\n}\n\n.mdhui-daily-data-chart .today {\n font-weight: bold;\n}");function Iq(e,t,n){return"FitbitSteps"==e?Rq(t,n):"FitbitRestingHeartRates"==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[ri(n)]=60+Math.floor(5*Math.random()),n=Y(n,{days:1});return i}(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[ri(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[ri(n)]=60+Math.floor(5*Math.random()),n=Y(n,{days:1});return i}(t,n):"AppleHealthSteps"==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[ri(n)]=3e3+Math.floor(1e4*Math.random()),n=Y(n,{hours:1});return i}(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[ri(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[ri(n)]=Math.floor(500*Math.random()),n=Y(n,{hours:1});return i}(t,n):Rq(t,n)}function Rq(e,t){for(var n=new Date(e,t,1,0,0,0,0),r=Y(n,{months:1}),i={};n<r;)i[ri(n)]=3e3+Math.floor(1e4*Math.random()),n=Y(n,{days:1});return i}function Lq(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 zq(t){var n=o(null),r=n[0],i=n[1],c=o(!1),l=c[0],u=c[1],f=o(!1),p=f[0],d=f[1],h=s(),m=new Date(t.year,t.month,1,0,0,0,0),v=Y(m,{months:1});function y(){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=Iq(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 wi(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 _i(e.dailyDataType,m,v)})),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)}}))}}a((function(){return y(),b.on("applicationDidBecomeVisible",y),b.on("externalAccountSyncComplete",y),function(){b.off("applicationDidBecomeVisible",y),b.off("externalAccountSyncComplete",y)}}),[t]);for(var g=[],x=m,w=!1;x<v;){var _={day:x.getDate()};g.push(_);var k=ri(x);t.lines.forEach((function(e){r&&(_[e.dailyDataType]=r[e.dailyDataType][k],e.valueConverter&&(_[e.dailyDataType]=e.valueConverter(_[e.dailyDataType])),_[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",ref:t.innerRef},t.title&&e.createElement("div",{className:"title"},t.title),!l&&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||l)&&e.createElement("div",null,!w&&!l&&e.createElement("div",{className:"no-data-label"},"No Data"),l&&e.createElement(I,null),e.createElement(qx,{width:"100%",height:150},e.createElement(BL,{width:400,height:400,data:g,syncId:t.syncId},e.createElement(XI,{strokeDasharray:"3 3"}),e.createElement(BR,{axisLine:!1,interval:0,tickLine:!1,width:30,scale:"linear"}),e.createElement(FR,{id:"myXAxis",tick:Lq,axisLine:!1,dataKey:"day",tickMargin:0,minTickGap:0,tickLine:!1,interval:1})))),w&&!l&&e.createElement(qx,{width:"100%",height:150},e.createElement(BL,{width:400,height:400,data:g,syncId:t.syncId},t.lines.map((function(t){return e.createElement(fR,{key:t.dailyDataType,type:"monotone",dataKey:t.dailyDataType,stroke:"var(--mdhui-color-primary)"})})),e.createElement(ox,{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(XI,{strokeDasharray:"3 3"}),e.createElement(BR,{tickFormatter:function(e){return e>=1e4?Math.floor(e/1e3)+"K":e},axisLine:!1,interval:0,tickLine:!1,width:30}),e.createElement(FR,{id:"myXAxis",tick:Lq,axisLine:!1,dataKey:"day",tickMargin:0,minTickGap:0,tickLine:!1,interval:1})))))}function Fq(t){var n=o(!1),r=n[0],i=n[1],a=new Date,c=o(new Date(a.getFullYear(),a.getMonth(),1,0,0,0,0)),s=c[0],l=c[1];function u(){i(!0)}var f=s.getMonth(),p=s.getFullYear();return e.createElement(e.Fragment,null,!r&&e.createElement(zr,null,Er("device-data-no-data")),e.createElement("div",{style:{display:r?"block":"none"}},e.createElement(zt,{intervalType:"Month",intervalStart:s,onIntervalChange:function(e){l(e)}}),e.createElement(zq,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:gi.FitbitSteps,label:Er("steps")}],title:"Fitbit "+Er("steps"),month:f,year:p,syncId:"DeviceDataCharts"}),e.createElement(zq,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:gi.FitbitRestingHeartRate,label:Er("resting-heart-rate")}],title:"Fitbit "+Er("resting-heart-rate"),month:f,year:p,syncId:"DeviceDataCharts"}),e.createElement(zq,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:gi.GarminSteps,label:Er("steps")}],title:"Garmin "+Er("steps"),month:f,year:p,syncId:"DeviceDataCharts"}),e.createElement(zq,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:gi.GarminRestingHeartRate,label:Er("resting-heart-rate")}],title:"Garmin "+Er("resting-heart-rate"),month:f,year:p,syncId:"DeviceDataCharts"}),e.createElement(zq,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:gi.AppleHealthSteps,label:Er("steps")}],title:"Apple Health "+Er("steps"),month:f,year:p,syncId:"DeviceDataCharts"}),e.createElement(zq,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:gi.AppleHealthDistanceWalkingRunning,label:Er("distance-traveled"),valueConverter:function(e){return 621371e-9*e}}],title:"Apple Health "+Er("distance-traveled")+" (Miles)",month:f,year:p,syncId:"DeviceDataCharts"}),e.createElement(zq,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:gi.GoogleFitSteps,label:Er("steps")}],title:"Google Fit "+Er("steps"),month:f,year:p,syncId:"DeviceDataCharts"})))}_(".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: var(--mdhui-card-border-radius);\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 Bq=[{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 qq(t){var n=o(!0),r=n[0],i=n[1],c=o([]),s=c[0],l=c[1];function u(){if("Default"==t.previewState)return i(!1),void p(Bq);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))}))),l(e),t.onExternalAccountsLoaded&&t.onExternalAccountsLoaded(e)}return a((function(){return u(),b.on("applicationDidBecomeVisible",u),b.on("externalAccountSyncComplete",u),function(){b.off("applicationDidBecomeVisible",u),b.off("externalAccountSyncComplete",u)}}),[]),e.createElement("div",{ref:t.innerRef,className:"mdhui-external-account-list"},s&&s.map((function(t){return e.createElement(Dt,{key:t.id.toString()+t.lastRefreshDate},e.createElement(Dr,{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 Hq(e,t){var n=s();a((function(){n.current=e}),[e]),a((function(){if(null!==t){var e=setInterval((function(){n.current&&n.current()}),t);return function(){return clearInterval(e)}}}),[t])}_(".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 Vq=[{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 Uq(t){var n=o(!1),r=n[0],i=n[1],c=o([]),s=c[0],l=c[1];function u(){return"externalAccountsFetchingData"==t.previewState?(Vq[0].status="fetchingData",void l(Vq)):"externalAccountsLoaded"==t.previewState?(Vq[0].status="fetchComplete",void l(Vq)):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(dt(e.lastRefreshDate),{hours:3}))&&(b.refreshExternalAccount(e.id),e.status="fetchingData")})),l(e)}))}a((function(){return function(){if(t.previewState)return i(!0),void u();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=!!s.find((function(e){return"fetchingData"==e.status}));return Hq((function(){u()}),r&&f?5e3:null),f?e.createElement("div",{ref:t.innerRef,className:"mdhui-external-accounts-loading-indicator"},e.createElement(I,{variant:"inline"}),e.createElement("span",{className:"mdhui-external-accounts-loading-indicator-message"},Er("external-account-fetching-data"))):null}_(".mdhui-external-accounts-preview .external-account-title {\n font-size: .88em;\n color: var(--mdhui-text-color-2);\n}");var Wq=[{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 Gq(t){var n=o(null),r=n[0],i=n[1],c="",s=[];function l(){"Default"!=t.previewState?b.getExternalAccounts().then((function(e){u(e)})):u(Wq)}function u(e){s&&(e=e.filter((function(e){return-1!=(null==s?void 0:s.indexOf(e.provider.category))}))),i(e)}return t.excludeProviders||(s.push("Provider"),c+=Er("external-accounts-title-providers")),t.excludeHealthPlans||(s.push("Health Plan"),c.length>0&&(c+=Er("external-accounts-title-divider")),c+=Er("external-accounts-title-health-plans")),t.excludeDeviceManufacturers||(s.push("Device Manufacturer"),c.length>0&&(c+=Er("external-accounts-title-divider")),c+=Er("external-accounts-title-devices")),a((function(){return l(),b.on("applicationDidBecomeVisible",l),function(){b.off("applicationDidBecomeVisible",l)}}),[]),r&&r.length?e.createElement("div",{ref:t.innerRef,className:"mdhui-external-accounts-preview"},e.createElement(D,{title:c,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 $q=[{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"}];_(".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 Yq={};!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}(Yq);var Xq={};!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}(Xq);var Zq={};!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}(Zq);var Kq={};!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}(Kq);var Jq={};function Qq(){return Qq=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},Qq.apply(this,arguments)}function eH(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}(Jq);var tH=t((function(t,n){var r=t.color,i=void 0===r?"currentColor":r,o=t.size,a=void 0===o?24:o,c=eH(t,["color","size"]);return e.createElement("svg",Qq({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"}))}));tH.propTypes={color:Kh.string,size:Kh.oneOfType([Kh.string,Kh.number])},tH.displayName="Watch";var nH=tH;function rH(t){var n=o([]),r=n[0],i=n[1];function c(){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(a((function(){return c(),b.on("applicationDidBecomeVisible",c),b.on("externalAccountSyncComplete",c),function(){b.off("applicationDidBecomeVisible",c),b.off("externalAccountSyncComplete",c)}}),[]),!r.length)return null;var s=b.getCurrentLanguage().toLowerCase().startsWith("es")?Tt:Ze;return e.createElement("div",{className:"mdhui-connected-devices",ref:t.innerRef},e.createElement(jt,{title:t.providerName+" "+Er("devices")}),r.map((function(t){var n,r,i,o,a,c;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(nH,{size:"16"})),"SCALE"==(null===(r=t.properties)||void 0===r?void 0:r.Type)&&e.createElement("div",{className:"device-icon"},e.createElement(P,{icon:Jq.faWeightScale})),e.createElement("div",{className:"device-info"},e.createElement("div",{className:"device-title"},t.value),t.observationDate&&e.createElement("div",{className:"device-sync"},Er("last-sync")," ",ut(dt(t.observationDate),new Date,{locale:s}))),"Empty"==(null===(i=t.properties)||void 0===i?void 0:i.Battery)&&e.createElement("div",{className:"battery-icon battery-empty"},e.createElement(P,{icon:Yq.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:Kq.faBatteryQuarter,rotate:-90})),"Medium"==(null===(a=t.properties)||void 0===a?void 0:a.Battery)&&e.createElement("div",{className:"battery-icon battery-medium"},e.createElement(P,{icon:Zq.faBatteryHalf,rotate:-90})),"High"==(null===(c=t.properties)||void 0===c?void 0:c.Battery)&&e.createElement("div",{className:"battery-icon battery-high"},e.createElement(P,{icon:Xq.faBatteryFull,rotate:-90})))})))}function iH(t){return e.createElement(rH,{innerRef:t.innerRef,providerName:"Fitbit",providerNamespace:"Fitbit",previewData:$q,previewState:t.previewState})}function oH(t){var n,r=o(!1),i=r[0],a=r[1],c=new Date,s=o(new Date(c.getFullYear(),c.getMonth(),1,0,0,0,0)),l=s[0],u=s[1];var f=l.getMonth(),p=l.getFullYear();return e.createElement("div",{style:{display:i?"block":"none"}},e.createElement(zt,{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(zq,{onDataDetected:function(){a(!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 aH(t){return e.createElement(oH,{previewState:t.previewState,charts:[{lines:[{showAverage:!0,dailyDataType:gi.FitbitSteps,label:Er("steps")}],title:Er("steps"),syncId:"fitbit"},{lines:[{showAverage:!0,dailyDataType:gi.FitbitRestingHeartRate,label:Er("resting-heart-rate")}],title:Er("resting-heart-rate"),syncId:"DeviceDataCharts"}]})}var cH=[{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 sH(t){return e.createElement(rH,{innerRef:t.innerRef,providerName:"Garmin",providerNamespace:"Garmin",previewData:cH,previewState:t.previewState})}function lH(t){return e.createElement(oH,{previewState:t.previewState,charts:[{lines:[{showAverage:!0,dailyDataType:gi.GarminSteps,label:Er("steps")}],title:Er("steps"),syncId:"garmin"},{lines:[{showAverage:!0,dailyDataType:gi.GarminRestingHeartRate,label:Er("resting-heart-rate")}],title:Er("resting-heart-rate"),syncId:"DeviceDataCharts"}]})}var uH="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==",fH="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",pH="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",dH="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",hH="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",mH="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 vH(t){var n=o(),r=n[0],i=n[1];function c(){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 a((function(){return c(),b.on("externalAccountSyncComplete",c),b.on("applicationDidBecomeVisible",c),function(){b.off("externalAccountSyncComplete",c),b.off("applicationDidBecomeVisible",c)}}),[t.concept]),r?r.PreviewValues.length?e.createElement("div",{ref:t.innerRef,className:"mdhui-health-preview-section"},e.createElement(D,{indicatorPosition:t.indicatorPosition,bottomBorder:!0,indicatorValue:r.Count,title:function(){switch(t.concept){case"Medications":return Er("medications-title");case"Immunizations":return Er("immunizations-title");case"Reports":return Er("reports-title");case"Allergies":return Er("allergies-title");case"Conditions":return Er("conditions-title");case"Procedures":return Er("procedures-title")}}(),titleIcon:e.createElement("img",{className:"mdhui-health-preview-icon",src:function(){switch(t.concept){case"Medications":return fH;case"Immunizations":return mH;case"Reports":return pH;case"Allergies":return uH;case"Conditions":return dH;case"Procedures":return hH}}()}),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",{ref:t.innerRef,className:"mdhui-health-preview-section"},e.createElement(I,null))}_(".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}");_(".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 yH="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";_(".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 gH={prefix:"fas",iconName:"chevron-up",icon:[512,512,[],"f077","M233.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L256 173.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z"]},bH={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 xH(t){var n=o(0),r=n[0],i=n[1],c=o(0),l=c[0],u=c[1],f=s(null);return a((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",{ref:t.innerRef,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(dt(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*l,fill:"var(--mdhui-color-danger)"}),t.labResultValue.NormalRangeBottomY&&e.createElement("rect",{x:"0",y:t.labResultValue.NormalRangeBottomY*l,width:r,height:t.labResultValue.NormalRangeBottomY*l,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*l,x2:t.labResultValue.SparklinePoints[i+1].X*r,y2:t.labResultValue.SparklinePoints[i+1].Y*l,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*l,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:bH})))))}var wH={RecentLabs:{TotalLabReports:53,RecentLabReports:["CORONAVIRUS (COVID-19), PCR - Final result","VWP","CBC"]},ImportantLabs:[]},_H={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 kH(t){var n,r,i,c=o(null),s=c[0],l=c[1],u=o(!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){l(e)}))}l({ImportantLabs:[],RecentLabs:{RecentLabReports:[]}})}else l(wH);else l(_H)}a((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(!s)return e.createElement("div",{ref:t.innerRef,className:"mdhui-health-preview-section"},e.createElement(I,null));if(s&&!s.ImportantLabs.length&&!(null===(n=s.RecentLabs)||void 0===n?void 0:n.RecentLabReports.length))return null;return e.createElement("div",{ref:t.innerRef,className:"mdhui-lab-results-summary mdhui-health-preview-section"},e.createElement(D,{bottomBorder:!0,title:Er("lab-results-title"),titleIcon:e.createElement("img",{className:"mdhui-health-preview-icon",src:yH,alt:"Lab Results"}),onClick:function(){s&&t.onClick()},indicatorValue:null===(r=null==s?void 0:s.RecentLabs)||void 0===r?void 0:r.TotalLabReports,indicatorPosition:(null===(i=s.ImportantLabs)||void 0===i?void 0:i.length)?"topRight":void 0,className:"mdhui-lab-results-summary mdhui-health-preview-section"},!s&&e.createElement(I,null),s&&e.createElement(e.Fragment,null,!!s.ImportantLabs.length&&e.createElement("div",{className:"mdhui-lab-results-values-container"+(f?" no-overflow":""),style:{height:5.64*s.ImportantLabs[0].length+"em"}},e.createElement("div",{className:"mdhui-lab-results-values-slider",style:{width:13*s.ImportantLabs.length+.5+"em"}},s.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(xH,{onViewTermInfo:function(e){return t.onViewTermInfo(e)},labResultValue:n,key:r})})))})))),!s.ImportantLabs.length&&e.createElement("div",null,s.RecentLabs.RecentLabReports.map((function(t){return e.createElement("div",{key:t,className:"mdhui-health-preview-item"},t)}))))))}_(".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 SH={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 EH(t){var n=o(null),r=n[0],i=n[1];function c(){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(SH)}return a((function(){return c(),b.on("applicationDidBecomeVisible",c),function(){b.off("applicationDidBecomeVisible",c)}}),[]),r?e.createElement("div",{ref:t.innerRef,className:"mdhui-most-recent-notification"},e.createElement(jr,{notification:r}),t.onViewMore&&e.createElement(D,{subtitle:Er("all-notifications"),onClick:t.onViewMore})):null}var OH=[{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 AH(t){var n=s(null);return Hq((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 CH(t){var n=o(!1),r=n[0],i=n[1],c=o(void 0),s=c[0],l=c[1],u=o(!1),f=u[0],p=u[1],d=o([]),h=d[0],m=d[1];function v(){if("Default"==t.previewState&&m(OH),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),s&&(e.pageID=s),b.queryNotifications(e).then((function(e){m(h.concat(e.notifications)),i(!1),e.nextPageID||p(!0),l(e.nextPageID)}))}}return a((function(){v();var e=function(){m([]),l(void 0),p(!1),v()};return b.on("applicationDidBecomeVisible",e),function(){b.off("applicationDidBecomeVisible",e)}}),[]),e.createElement("div",{ref:t.innerRef,className:"mdhui-notification-list"},h&&h.map((function(t){return e.createElement(Dt,{key:t.id.toString()},e.createElement(jr,{notification:t}))})),r&&!f&&e.createElement(I,null),!r&&f&&0==h.length&&e.createElement(Dt,null,e.createElement(zr,null,Er("no-notifications-received"))),e.createElement(AH,{onTrigger:v,enabled:!r&&!f}))}function TH(t){var n=o(!0),r=n[0],i=n[1],c=o(null),s=c[0],l=c[1];function u(){if("Default"==t.previewState)return l({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){l(e),i(!1)}))}a((function(){return u(),b.on("applicationDidBecomeVisible",u),function(){b.off("applicationDidBecomeVisible",u)}}),[]);var f=null==s?void 0:s.organization.logoUrl;return f&&!(null==f?void 0:f.startsWith("http"))&&(f=b.baseUrl+(null==s?void 0:s.organization.logoUrl)),e.createElement("div",{ref:t.innerRef,className:"mdhui-project-header"},r&&e.createElement(I,null),!r&&s&&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:s.organization.color}},s.name),e.createElement("div",{className:"organization-name"},s.organization.name))))}_(".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 line-height: normal;\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");_(".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 PH={};!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}(PH);var DH={};!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}(DH);var jH={};function MH(t){var n=o(!0),r=n[0],i=n[1],c=o(null),s=c[0],l=c[1];function u(){if("Default"==t.previewState)return l({supportEmail:"test@example.com",supportPhone:"555-555-1212",learnMoreLink:"https://mydatahelps.org",learnMoreTitle:"Project Home Page"}),void i(!1);b.getProjectInfo().then((function(e){l(e),i(!1)}))}return a((function(){return u(),b.on("applicationDidBecomeVisible",u),function(){b.off("applicationDidBecomeVisible",u)}}),[]),!s||s.supportEmail||s.supportPhone||s.learnMoreLink&&s.learnMoreTitle?e.createElement("div",{ref:t.innerRef,className:"mdhui-project-support"},e.createElement("div",{className:"title"},Er("support")),r&&e.createElement(I,null),(null==s?void 0:s.learnMoreLink)&&(null==s?void 0:s.learnMoreTitle)&&e.createElement(D,{indicatorIcon:DH.faGlobe,subtitle:s.learnMoreTitle,onClick:function(){return b.openEmbeddedUrl(s.learnMoreLink)}}),(null==s?void 0:s.supportEmail)&&e.createElement(D,{indicatorIcon:PH.faEnvelope,subtitle:s.supportEmail,onClick:function(){return b.openExternalUrl("mailto:"+s.supportEmail)}}),(null==s?void 0:s.supportPhone)&&e.createElement(D,{indicatorIcon:jH.faPhone,subtitle:s.supportPhone,onClick:function(){return b.openExternalUrl("tel:"+s.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}(jH);var NH={},IH={};!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}(IH),function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=IH;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}(NH);_(".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 RH=[{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"}],LH=0;function zH(t){var n=o({}),r=n[0],i=n[1],c=o([]),l=c[0],u=c[1],f=o(!0),p=f[0],d=f[1],h=o(""),m=h[0],v=h[1],g=o(0),x=g[0],w=g[1],_=o(0),S=_[0],E=_[1],O=s(m),A=100;function C(){return Nt(this,void 0,void 0,(function(){return It(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=++LH;b.getExternalAccountProviders(e,null,A,x).then((function(e){t==LH&&(D(e.externalAccountProviders),E(e.totalExternalAccountProviders),d(!1))}))}function D(e){u(l.concat(e.filter((function(e){var n;return-1!=(null===(n=t.providerCategories)||void 0===n?void 0:n.indexOf(e.category))}))))}var j=y((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,v(n),u([]),w(0),t.previewState||j(e.target.value)}function N(){C().then((function(){T(O.current)}))}return a((function(){return function(){if("Default"==t.previewState)return D(RH),void d(!1);C().then((function(){T("")}))}(),b.on("applicationDidBecomeVisible",N),function(){b.off("applicationDidBecomeVisible",N)}}),[]),a((function(){p||T(O.current)}),[x]),e.createElement("div",{ref:t.innerRef,className:"mdhui-provider-search"},e.createElement("div",{className:"search-bar-wrapper"},e.createElement("div",{className:"search-bar"},e.createElement("input",{title:Er("search"),type:"text",value:m,onChange:function(e){return M(e)},placeholder:Er("search"),spellCheck:"false",autoComplete:"off",autoCorrect:"off",autoCapitalize:"off"}),e.createElement(P,{icon:NH.faSearch}))),e.createElement("div",{className:"search-results"},l&&l.map((function(n){return e.createElement(k,{key:n.id,className:"provider",onClick:function(){return function(e){var n,i=e.id;t.previewState||r[i]&&"unauthorized"!=r[i].status||b.connectExternalAccount(i,{openNewWindow:null!==(n=t.openNewWindow)&&void 0!==n&&n}),t.onProviderSelected&&t.onProviderSelected(e)}(n)}},n.logoUrl&&e.createElement("div",{className:"provider-logo",style:{backgroundImage:"url('"+n.logoUrl+"')"}}),e.createElement("div",{className:"provider-info"},e.createElement("div",{className:"provider-name"},n.name),r[n.id]&&"unauthorized"==r[n.id].status&&e.createElement("div",{className:"provider-status error-status"},Er("reconnect")),r[n.id]&&"unauthorized"!=r[n.id].status&&e.createElement("div",{className:"provider-status connected-status"},Er("connected"))))})),p&&e.createElement(I,null)),e.createElement(AH,{onTrigger:function(){w(x+1)},enabled:(x+1)*A<S}))}function FH(t){var n=o(null),r=n[0],i=n[1];function c(){if("Default"!==t.previewState){var e=new Date,n=Y(new Date,{days:-31}),r=t.dataTypes.map((function(t){return _i(t.dailyDataType,n,Y(e,{days:1}))}));Promise.all(r).then((function(e){var n={};e.forEach((function(e,r){n[t.dataTypes[r].dailyDataType]=e})),i(n)}))}else i({})}a((function(){return c(),b.on("externalAccountSyncComplete",c),b.on("applicationDidBecomeVisible",c),function(){b.off("externalAccountSyncComplete",c),b.off("applicationDidBecomeVisible",c)}}),[]);var s=[];if(!r)return null;var l=ri(new Date);return t.dataTypes.forEach((function(e){var t=r[e.dailyDataType];if(t&&t[l]){for(var n=0,i=0,o=1;o<31;o++){var a=ri(Y(new Date,{days:-o}));void 0!==t[a]&&(n+=t[a],i++)}if(!(i<5)){var c=n/i,u=t[l]/(2*c);u>1&&(u=1),s.push({dailyDataType:e.dailyDataType,fillPercent:u,value:e.formatter(t[l])})}}})),"Default"===t.previewState&&(s=[{dailyDataType:gi.Steps,fillPercent:.7,value:"3,995"},{dailyDataType:gi.AppleHealthSleepMinutes,fillPercent:.55,value:"8h 12m"},{dailyDataType:gi.AppleHealthMaxHeartRate,fillPercent:.42,value:"90 bpm"}]),s.length?e.createElement("div",{ref:t.innerRef,className:"mdhui-relative-activity-today"},t.title&&e.createElement(jt,{title:t.title}),s.map((function(n){var r=t.dataTypes.find((function(e){return e.dailyDataType===n.dailyDataType}));return e.createElement(j,{key:r.dailyDataType,className:"mdhui-relative-activity-today-meter",label:r.label,value:n.value,fillPercent:n.fillPercent,averageFillPercent:.5,icon:r.icon,color:r.color})})),e.createElement("div",{className:"mdhui-relative-activity-average-marker"},e.createElement("div",null,e.createElement(P,{icon:gH})),Er("30-day-average"))):null}_(".mdhui-relative-activity-today .mdhui-relative-activity-today-meter {\n margin: 16px;\n}\n\n.mdhui-relative-activity-today .mdhui-relative-activity-average-marker {\n text-align: center;\n margin: 16px;\n font-size: .7em;\n margin-bottom: 16px;\n color: var(--mdhui-text-color-2);\n}");function BH(t){var n=o(!1),r=n[0],i=n[1],c=o({}),s=c[0],l=c[1],u=new Date(t.year,t.month,1,0,0,0,0),f=Y(u,{months:1});function p(){if(t.showPreviewData){if("Loading"===t.showPreviewData)i(!0);else if("WithData"===t.showPreviewData){var e=Iq("FitbitRestingHeartRates",t.year,t.month);e&&l(e)}}else i(!0),_i(gi.RestingHeartRate,u,f).then((function(e){l(e)})).then((function(){return i(!1)}))}return a((function(){return p(),b.on("applicationDidBecomeVisible",p),b.on("externalAccountSyncComplete",p),function(){b.off("applicationDidBecomeVisible",p),b.off("externalAccountSyncComplete",p)}}),[t]),e.createElement("div",{ref:t.innerRef},r&&e.createElement(I,null),!r&&e.createElement(Pt,{year:t.year,month:t.month,dayRenderer:function(t,n,r){var i=function(e,t,n){if(void 0!==n){var r=ri(new Date(e,t,n));return s[r]}}(t,n,r);return void 0!==r?e.createElement("div",{className:"mdhui-calendar-day-with-data-value"},e.createElement("div",{className:"calendar-value"},i),e.createElement("div",{className:"calendar-day"},r)):e.createElement("div",null)}}))}_(".mdhui-calendar-day-with-data-value .calendar-value {\n\theight: 32px;\n\twidth: 32px;\n\tfont-size: 12px;\n\tborder-radius: 17px;\n\tline-height: 34px;\n\ttext-align: center;\n\tbackground: var(--mdhui-background-color-1);\n\tfont-weight: bold;\n\tdisplay: inline-block;\n}\n\n.mdhui-calendar-day-with-data-value .calendar-day {\n\ttext-align: center;\n}");_(".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 qH=[{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:!0,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"}],HH=[{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 VH(t){var n,r,i=o(!0),c=i[0],s=i[1],l=o(null),u=l[0],f=l[1];function p(t){return e.createElement(Nr,{key:t.id.toString(),task:t,disableClick:c})}function d(){if("IncompleteTasks"!=t.previewState)if("CompleteTasks"!=t.previewState){var e,n;e=[],n=function(r){var i={status:t.status};return t.surveys&&(i.surveyName=t.surveys),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 dt(e.dueDate)>dt(t.dueDate)?1:dt(e.dueDate)<dt(t.dueDate)?-1:0})),"complete"==t.status&&e.sort((function(e,t){return e.endDate&&t.endDate?dt(e.endDate)>dt(t.endDate)?-1:dt(e.endDate)<dt(t.endDate)?1:0:0})),f(e),s(!1))}))},n(null)}else f(HH);else f(qH)}if(a((function(){return d(),b.on("applicationDidBecomeVisible",d),function(){b.off("applicationDidBecomeVisible",d)}}),[t.previewState]),"complete"==t.status&&!(null==u?void 0:u.length))return null;var h=null!==(n=t.variant)&&void 0!==n?n:"noCard";return e.createElement(UH,{innerRef:t.innerRef,card:"singleCard"==h},e.createElement("div",{className:"mdhui-survey-task-list"},t.title&&e.createElement(jt,{title:t.title,detailLinkText:t.onDetailLinkClick?Er("view-all")+" ("+(null!==(r=null==u?void 0:u.length)&&void 0!==r?r:0)+")":void 0,onDetailClick:t.onDetailLinkClick}),c&&!u&&e.createElement(I,null),!(null==u?void 0:u.length)&&!c&&e.createElement("div",{className:"empty-message"},Er("all-tasks-complete")),null==u?void 0:u.slice(0,t.limit).map((function(t){return"multiCard"==h?e.createElement(Dt,{key:t.id},p(t)):p(t)}))))}function UH(t){return t.card?e.createElement(Dt,{innerRef:t.innerRef},t.children):e.createElement("div",{ref:t.innerRef},t.children)}function WH(t){var n;return e.createElement(br,{colorScheme:null!==(n=t.colorScheme)&&void 0!==n?n:"auto",primaryColor:t.primaryColor},(t.showBackButton||t.showCloseButton)&&e.createElement(Or,{title:t.title,showBackButton:t.showBackButton,showCloseButton:t.showCloseButton,subtitle:t.subtitle}),!(t.showBackButton||t.showCloseButton)&&e.createElement(e.Fragment,null,e.createElement(Lr,null),e.createElement(Br,{title:t.title,subtitle:t.subtitle})),t.children)}function GH(t){var n,r="",i=[];return t.excludeProviders||(i.push("Provider"),r+=Er("connect-ehr-title-providers")),t.excludeHealthPlans||(i.push("Health Plan"),r.length>0&&(r+=Er("connect-ehr-title-divider")),r+=Er("connect-ehr-title-health-plans")),r=Er("connect-ehr-title-prefix")+r,e.createElement(br,{colorScheme:null!==(n=t.colorScheme)&&void 0!==n?n:"auto"},t.presentation&&e.createElement(Or,{title:r,showBackButton:"Push"==t.presentation,showCloseButton:"Modal"==t.presentation}),!t.presentation&&e.createElement(Lr,null),e.createElement(zr,null,Er("ehr-intro")),e.createElement(Dt,null,e.createElement(Gq,{previewState:t.preview?"Default":void 0,applicationUrl:t.externalAccountsApplicationUrl,excludeProviders:t.excludeProviders,excludeHealthPlans:t.excludeHealthPlans,excludeDeviceManufacturers:!0})),e.createElement(Dt,null,e.createElement(zH,{previewState:t.preview?"Default":void 0,providerCategories:i})))}function $H(t){var n;return e.createElement(br,{colorScheme:null!==(n=t.colorScheme)&&void 0!==n?n:"auto"},e.createElement(Lr,null),e.createElement(Hr,{platforms:["Android"]},e.createElement(Dt,null,e.createElement(D,{title:"Google Fit",subtitle:Er("google-fit-share"),onClick:function(){return b.showGoogleFitSettings()}}))),e.createElement(Dt,null,e.createElement(ti,{previewState:t.preview?"notConnected":void 0})),e.createElement(Dt,null,e.createElement(iH,{previewState:t.preview?"connected":void 0})),e.createElement(Dt,null,e.createElement(ni,{previewState:t.preview?"notConnected":void 0})),e.createElement(Dt,null,e.createElement(sH,{previewState:t.preview?"connected":void 0})),e.createElement(Dt,{allowOverflow:!0},e.createElement(Fq,{previewState:t.preview?"Default":void 0})))}function YH(t){var n,r="",i=[];return t.excludeProviders||(i.push("Provider"),r+=Er("external-accounts-title-providers")),t.excludeHealthPlans||(i.push("Health Plan"),r.length>0&&(r+=Er("external-accounts-title-divider")),r+=Er("external-accounts-title-health-plans")),t.excludeDeviceManufacturers||(i.push("Device Manufacturer"),r.length>0&&(r+=Er("external-accounts-title-divider")),r+=Er("external-accounts-title-devices")),e.createElement(br,{colorScheme:null!==(n=t.colorScheme)&&void 0!==n?n:"auto"},t.presentation&&e.createElement(Or,{title:r,showBackButton:"Push"==t.presentation,showCloseButton:"Modal"==t.presentation}),!t.presentation&&e.createElement(Lr,null),e.createElement(qq,{previewState:t.preview?"Default":void 0,externalAccountProviderCategories:i,onExternalAccountsLoaded:function(e){0===e.length&&("Modal"===t.presentation?b.dismiss():b.back())}}))}function XH(t){var n;return e.createElement(br,{colorScheme:null!==(n=t.colorScheme)&&void 0!==n?n:"auto"},e.createElement(Lr,null),e.createElement(Dt,null,e.createElement(ti,{previewState:t.connectPreview,disabledBehavior:"displayError"})),e.createElement(Dt,null,e.createElement(iH,{previewState:t.devicesPreview})),e.createElement(Dt,{allowOverflow:!0},e.createElement(aH,{previewState:t.chartsPreview})))}function ZH(t){return e.createElement(br,null,e.createElement(Lr,{color:"var(--main-bg-color)"}),e.createElement(Dt,null,e.createElement(ni,{previewState:t.connectPreview,garminProviderID:t.garminProviderID,disabledBehavior:"displayError"})),e.createElement(Dt,null,e.createElement(sH,{previewState:t.devicesPreview})),e.createElement(Dt,{allowOverflow:!0},e.createElement(lH,{previewState:t.chartsPreview})))}function KH(t){var n,r="Push";t.notificationType&&(r=t.notificationType);return e.createElement(br,{colorScheme:null!==(n=t.colorScheme)&&void 0!==n?n:"auto"},e.createElement(Lr,{color:"#FFFFFF"}),e.createElement(TH,{previewState:t.preview?"Default":void 0}),e.createElement(Xr,{previewDevicePlatform:t.preview?"Web":void 0,previewProjectPlatforms:t.preview?["Web","Android","iOS"]:void 0}),e.createElement(Dt,null,e.createElement(EH,{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(VH,{variant:"singleCard",status:"incomplete",limit:3,title:Er("tasks"),onDetailLinkClick:t.tasksViewUrl?function(){t.tasksViewUrl&&b.openApplication(t.tasksViewUrl)}:void 0,previewState:t.preview?"IncompleteTasks":void 0}),e.createElement(Dt,null,e.createElement(ti,{title:"Fitbit",previewState:t.preview?"notConnected":void 0})),e.createElement(Dt,null,e.createElement(ni,{title:"Garmin",previewState:t.preview?"notConnected":void 0})),e.createElement(Dt,null,t.ehrConnectApplicationUrl&&e.createElement(Jr,{previewState:t.preview?"enabled":void 0,applicationUrl:t.ehrConnectApplicationUrl})),e.createElement(Dt,null,e.createElement(MH,{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(vH,{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(Dt,null,r()):r()}return e.createElement(br,{colorScheme:null!==(r=t.colorScheme)&&void 0!==r?r:"auto"},e.createElement(Lr,null),e.createElement(Uq,{previewState:"default"==t.previewState?"externalAccountsLoaded":void 0,externalAccountCategories:["Provider","Health Plan"]}),"default"==a&&e.createElement(Ar,{noTopMargin:!0},e.createElement(kH,{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(Gq,{excludeDeviceManufacturers:!0,applicationUrl:t.externalAccountsApplicationUrl,previewState:"default"==t.previewState?"Default":void 0})),"cardBased"==a&&e.createElement(e.Fragment,null,e.createElement(Dt,null,e.createElement(kH,{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(Dt,null,e.createElement(Gq,{excludeDeviceManufacturers:!0,applicationUrl:t.externalAccountsApplicationUrl,previewState:"default"==t.previewState?"Default":void 0}))),e.createElement(Dt,null,e.createElement(Jr,{bottomBorder:!0,applicationUrl:t.connectEhrApplicationUrl,previewState:"default"==t.previewState?"enabledConnected":void 0})))}function QH(t){var n,r="Push";return t.notificationType&&(r=t.notificationType),e.createElement(br,{colorScheme:null!==(n=t.colorScheme)&&void 0!==n?n:"auto"},t.presentation&&e.createElement(Or,{title:Er("notifications"),showBackButton:"Push"==t.presentation,showCloseButton:"Modal"==t.presentation}),!t.presentation&&e.createElement(Lr,null),e.createElement(CH,{notificationType:r,previewState:t.preview?"Default":void 0}))}function eV(t){var n;return e.createElement(br,{colorScheme:null!==(n=t.colorScheme)&&void 0!==n?n:"auto"},t.presentation&&e.createElement(Or,{title:Er("tasks"),showBackButton:"Push"==t.presentation,showCloseButton:"Modal"==t.presentation}),!t.presentation&&e.createElement(Lr,null),!t.hideIncompleteTasks&&e.createElement(VH,{variant:"multiCard",title:Er("incomplete-tasks"),status:"incomplete",previewState:t.preview?"IncompleteTasks":void 0}),!t.hideCompleteTasks&&e.createElement(VH,{variant:"multiCard",title:Er("completed-tasks"),status:"complete",previewState:t.preview?"CompleteTasks":void 0}))}function tV(t){return e.createElement(br,{colorScheme:"light",className:"mdhui-step-container",bodyBackgroundColor:"#FFFFFF"},t.children)}function nV(e){return{textAlign:e.textAlign,color:e.color,fontSize:e.fontSize?"".concat(e.fontSize,"px"):void 0,fontWeight:e.fontWeight,backgroundImage:""}}_(".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}");_(".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}");var rV={},iV={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:""},oV=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/,aV={},cV={};function sV(e,t,n){var r,i,o,a,c,s="";for("string"!=typeof t&&(n=t,t=sV.defaultChars),void 0===n&&(n=!0),c=function(e){var t,n,r=cV[e];if(r)return r;for(r=cV[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}sV.defaultChars=";/?:@&=+$,-_.!~*'()#",sV.componentChars="-_.!~*'()";var lV=sV,uV={};function fV(e,t){var n;return"string"!=typeof t&&(t=fV.defaultChars),n=function(e){var t,n,r=uV[e];if(r)return r;for(r=uV[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}))}fV.defaultChars=";/?:@&=+$,#",fV.componentChars="";var pV=fV;function dV(){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 hV=/^([a-z0-9.+-]+:)/i,mV=/:[0-9]*$/,vV=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,yV=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),gV=["'"].concat(yV),bV=["%","/","?",";","#"].concat(gV),xV=["/","?","#"],wV=/^[+a-z0-9A-Z_-]{0,63}$/,_V=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,kV={javascript:!0,"javascript:":!0},SV={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};dV.prototype.parse=function(e,t){var n,r,i,o,a,c=e;if(c=c.trim(),!t&&1===e.split("#").length){var s=vV.exec(c);if(s)return this.pathname=s[1],s[2]&&(this.search=s[2]),this}var l=hV.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&&kV[l]||(c=c.substr(2),this.slashes=!0)),!kV[l]&&(a||l&&!SV[l])){var u,f,p=-1;for(n=0;n<xV.length;n++)-1!==(o=c.indexOf(xV[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<bV.length;n++)-1!==(o=c.indexOf(bV[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 v=m[n];if(v&&!v.match(wV)){for(var y="",g=0,b=v.length;g<b;g++)v.charCodeAt(g)>127?y+="x":y+=v[g];if(!y.match(wV)){var x=m.slice(0,n),w=m.slice(n+1),_=v.match(_V);_&&(x.push(_[1]),w.unshift(_[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 k=c.indexOf("#");-1!==k&&(this.hash=c.substr(k),c=c.slice(0,k));var S=c.indexOf("?");return-1!==S&&(this.search=c.substr(S),c=c.slice(0,S)),c&&(this.pathname=c),SV[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this},dV.prototype.parseHost=function(e){var t=mV.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var EV=function(e,t){if(e&&e instanceof dV)return e;var n=new dV;return n.parse(e,t),n};aV.encode=lV,aV.decode=pV,aV.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||""},aV.parse=EV;var OV,AV,CV,TV,PV,DV,jV,MV,NV,IV={};function RV(){return AV?OV:(AV=1,OV=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/)}function LV(){return TV?CV:(TV=1,CV=/[\0-\x1F\x7F-\x9F]/)}function zV(){return MV?jV:(MV=1,jV=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/)}function FV(){return NV||(NV=1,IV.Any=RV(),IV.Cc=LV(),IV.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]/),IV.P=oV,IV.Z=zV()),IV}!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=iV;var l=/[&<>"]/,u=/[&<>"]/g,f={"&":"&","<":"<",">":">",'"':"""};function p(e){return f[e]}var d=/[.?*+^$[\]\\(){}|-]/g;var h=oV;e.lib={},e.lib.mdurl=aV,e.lib.ucmicro=FV(),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()}}(rV);var BV={},qV=rV.unescapeAll,HV=rV.unescapeAll;BV.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},BV.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=qV(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=qV(e.slice(o,t)),a.lines=0,a.pos=t,a.ok=!0),a},BV.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=HV(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 VV=rV.assign,UV=rV.unescapeAll,WV=rV.escapeHtml,GV={};function $V(){this.rules=VV({},GV)}GV.code_inline=function(e,t,n,r,i){var o=e[t];return"<code"+i.renderAttrs(o)+">"+WV(e[t].content)+"</code>"},GV.code_block=function(e,t,n,r,i){var o=e[t];return"<pre"+i.renderAttrs(o)+"><code>"+WV(e[t].content)+"</code></pre>\n"},GV.fence=function(e,t,n,r,i){var o,a,c,s,l,u=e[t],f=u.info?UV(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)||WV(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"},GV.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)},GV.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},GV.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},GV.text=function(e,t){return WV(e[t].content)},GV.html_block=function(e,t){return e[t].content},GV.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+=" "+WV(e.attrs[t][0])+'="'+WV(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 YV=$V;function XV(){this.__rules__=[],this.__cache__=null}XV.prototype.__find__=function(e){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},XV.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))}))}))},XV.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},XV.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},XV.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},XV.prototype.push=function(e,t,n){var r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},XV.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},XV.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach((function(e){e.enabled=!1})),this.enable(e,t)},XV.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},XV.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]};var ZV=XV,KV=/\r\n?|\n/g,JV=/\0/g,QV=rV.arrayReplaceAt;function eU(e){return/^<\/a\s*>/i.test(e)}var tU=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,nU=/\((c|tm|r)\)/i,rU=/\((c|tm|r)\)/gi,iU={c:"©",r:"®",tm:"™"};function oU(e,t){return iU[t.toLowerCase()]}function aU(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(rU,oU)),"link_open"===n.type&&"auto"===n.info&&r--,"link_close"===n.type&&"auto"===n.info&&r++}function cU(e){var t,n,r=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||r||tU.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 sU=rV.isWhiteSpace,lU=rV.isPunctChar,uU=rV.isMdAsciiPunct,fU=/['"]/,pU=/['"]/g;function dU(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function hU(e,t){var n,r,i,o,a,c,s,l,u,f,p,d,h,m,v,y,g,b,x,w,_;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&&(pU.lastIndex=a,o=pU.exec(i));){if(v=y=!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=uU(u)||lU(String.fromCharCode(u)),d=uU(f)||lU(String.fromCharCode(f)),h=sU(u),(m=sU(f))?v=!1:d&&(h||p||(v=!1)),h?y=!1:p&&(m||d||(y=!1)),34===f&&'"'===o[0]&&u>=48&&u<=57&&(y=v=!1),v&&y&&(v=p,y=d),v||y){if(y)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],_=t.md.options.quotes[3]):(w=t.md.options.quotes[0],_=t.md.options.quotes[1]),r.content=dU(r.content,o.index,_),e[l.token].content=dU(e[l.token].content,l.pos,w),a+=_.length-1,l.token===n&&(a+=w.length-1),c=(i=r.content).length,x.length=g;continue e}v?x.push({token:n,pos:o.index,single:b,level:s}):y&&b&&(r.content=dU(r.content,o.index,"’"))}else b&&(r.content=dU(r.content,o.index,"’"))}}}}function mU(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}mU.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},mU.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},mU.prototype.attrSet=function(e,t){var n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},mU.prototype.attrGet=function(e){var t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n},mU.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 vU=mU,yU=vU;function gU(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}gU.prototype.Token=yU;var bU=gU,xU=ZV,wU=[["normalize",function(e){var t;t=(t=e.src.replace(KV,"\n")).replace(JV,"�"),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,v,y,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--,eU(a.content)&&d++),!(d>0)&&"text"===a.type&&e.md.linkify.test(a.content)){for(l=a.content,y=e.md.linkify.match(l),c=[],p=a.level,f=0,y.length>0&&0===y[0].index&&t>0&&"text_special"===i[t-1].type&&(y=y.slice(1)),s=0;s<y.length;s++)h=y[s].url,m=e.md.normalizeLink(h),e.md.validateLink(m)&&(v=y[s].text,v=y[s].schema?"mailto:"!==y[s].schema||/^mailto:/i.test(v)?e.md.normalizeLinkText(v):e.md.normalizeLinkText("mailto:"+v).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+v).replace(/^http:\/\//,""),(u=y[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=v,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=y[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=QV(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&&(nU.test(e.tokens[t].content)&&aU(e.tokens[t].children),tU.test(e.tokens[t].content)&&cU(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&&fU.test(e.tokens[t].content)&&hU(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 _U(){this.ruler=new xU;for(var e=0;e<wU.length;e++)this.ruler.push(wU[e][0],wU[e][1])}_U.prototype.process=function(e){var t,n,r;for(t=0,n=(r=this.ruler.getRules("")).length;t<n;t++)r[t](e)},_U.prototype.State=bU;var kU=_U,SU=rV.isSpace;function EU(e,t){var n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function OU(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 AU=rV.isSpace,CU=rV.isSpace,TU=rV.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),!TU(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),!TU(n))?-1:i}var jU=rV.normalizeReference,MU=rV.isSpace,NU={},IU="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",RU="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",LU=new RegExp("^(?:"+IU+"|"+RU+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),zU=new RegExp("^(?:"+IU+"|"+RU+")");NU.HTML_TAG_RE=LU,NU.HTML_OPEN_CLOSE_TAG_RE=zU;var FU=["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"],BU=NU.HTML_OPEN_CLOSE_TAG_RE,qU=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+FU.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(BU.source+"\\s*$"),/^$/,!1]],HU=rV.isSpace,VU=vU,UU=rV.isSpace;function WU(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(UU(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}WU.prototype.push=function(e,t,n){var r=new VU(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},WU.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},WU.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},WU.prototype.skipSpaces=function(e){for(var t,n=this.src.length;e<n&&(t=this.src.charCodeAt(e),UU(t));e++);return e},WU.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!UU(this.src.charCodeAt(--e)))return e+1;return e},WU.prototype.skipChars=function(e,t){for(var n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},WU.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},WU.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),UU(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("")},WU.prototype.Token=VU;var GU=WU,$U=ZV,YU=[["table",function(e,t,n,r){var i,o,a,c,s,l,u,f,p,d,h,m,v,y,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&&!SU(w))return!1;if(45===x&&SU(w))return!1;for(;a<e.eMarks[l];){if(124!==(i=e.src.charCodeAt(a))&&45!==i&&58!==i&&!SU(i))return!1;a++}for(u=(o=EU(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=EU(e,t).trim()).indexOf("|"))return!1;if(e.sCount[t]-e.blkIndent>=4)return!1;if((u=OU(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(y=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=EU(e,l).trim()))break;if(e.sCount[l]-e.blkIndent>=4)break;for((u=OU(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=v=[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 v&&(p=e.push("tbody_close","tbody",-1),v[1]=l),p=e.push("table_close","table",-1),m[1]=l,e.parentType=y,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,v,y,g,b,x,w,_,k,S=e.lineMax,E=e.bMarks[t]+e.tShift[t],O=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(E++))return!1;if(r)return!0;for(c=p=e.sCount[t]+1,32===e.src.charCodeAt(E)?(E++,c++,p++,i=!1,b=!0):9===e.src.charCodeAt(E)?(b=!0,(e.bsCount[t]+p)%4==3?(E++,c++,p++,i=!1):i=!0):b=!1,d=[e.bMarks[t]],e.bMarks[t]=E;E<O&&(o=e.src.charCodeAt(E),AU(o));)9===o?p+=4-(p+e.bsCount[t]+(i?1:0))%4:p++,E++;for(h=[e.bsCount[t]],e.bsCount[t]=e.sCount[t]+1+(b?1:0),l=E>=O,y=[e.sCount[t]],e.sCount[t]=p-c,g=[e.tShift[t]],e.tShift[t]=E-e.bMarks[t],w=e.md.block.ruler.getRules("blockquote"),v=e.parentType,e.parentType="blockquote",f=t+1;f<n&&(k=e.sCount[f]<e.blkIndent,!((E=e.bMarks[f]+e.tShift[f])>=(O=e.eMarks[f])));f++)if(62!==e.src.charCodeAt(E++)||k){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]),y.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]),y.push(e.sCount[f]),e.sCount[f]=-1}else{for(c=p=e.sCount[f]+1,32===e.src.charCodeAt(E)?(E++,c++,p++,i=!1,b=!0):9===e.src.charCodeAt(E)?(b=!0,(e.bsCount[f]+p)%4==3?(E++,c++,p++,i=!1):i=!0):b=!1,d.push(e.bMarks[f]),e.bMarks[f]=E;E<O&&(o=e.src.charCodeAt(E),AU(o));)9===o?p+=4-(p+e.bsCount[f]+(i?1:0))%4:p++,E++;l=E>=O,h.push(e.bsCount[f]),e.bsCount[f]=e.sCount[f]+1+(b?1:0),y.push(e.sCount[f]),e.sCount[f]=p-c,g.push(e.tShift[f]),e.tShift[f]=E-e.bMarks[f]}for(m=e.blkIndent,e.blkIndent=0,(_=e.push("blockquote_open","blockquote",1)).markup=">",_.map=u=[t,0],e.md.block.tokenize(e,t,f),(_=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=S,e.parentType=v,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]=y[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&&!CU(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,v,y,g,b,x,w,_,k,S,E,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],v=Number(e.src.slice(C,O-1)),j&&1!==v)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!==v&&(D.attrs=[["start",v]])):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(E=O,y=e.eMarks[g],l=b=e.sCount[g]+O-(e.bMarks[t]+e.tShift[t]);E<y;){if(9===(i=e.src.charCodeAt(E)))b+=4-(b+e.bsCount[g])%4;else{if(32!==i)break;b++}E++}if((s=(o=E)>=y?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,k=e.tShift[t],_=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>=y&&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]=k,e.sCount[t]=_,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,v,y,g,b,x=0,w=e.bMarks[t]+e.tShift[t],_=e.eMarks[t],k=t+1;if(e.sCount[t]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(w))return!1;for(;++w<_;)if(93===e.src.charCodeAt(w)&&92!==e.src.charCodeAt(w-1)){if(w+1===_)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";k<c&&!e.isEmpty(k);k++)if(!(e.sCount[k]-e.blkIndent>3||e.sCount[k]<0)){for(y=!1,l=0,u=g.length;l<u;l++)if(g[l](e,k,c,!0)){y=!0;break}if(y)break}for(_=(v=e.getLines(t,k,e.blkIndent,!1).trim()).length,w=1;w<_;w++){if(91===(i=v.charCodeAt(w)))return!1;if(93===i){p=w;break}(10===i||92===i&&++w<_&&10===v.charCodeAt(w))&&x++}if(p<0||58!==v.charCodeAt(p+1))return!1;for(w=p+2;w<_;w++)if(10===(i=v.charCodeAt(w)))x++;else if(!MU(i))break;if(!(h=e.md.helpers.parseLinkDestination(v,w,_)).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<_;w++)if(10===(i=v.charCodeAt(w)))x++;else if(!MU(i))break;for(h=e.md.helpers.parseLinkTitle(v,w,_),w<_&&m!==w&&h.ok?(b=h.str,w=h.pos,x+=h.lines):(b="",w=o,x=a);w<_&&(i=v.charCodeAt(w),MU(i));)w++;if(w<_&&10!==v.charCodeAt(w)&&b)for(b="",w=o,x=a;w<_&&(i=v.charCodeAt(w),MU(i));)w++;return!(w<_&&10!==v.charCodeAt(w))&&(!!(f=jU(v.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<qU.length&&!qU[i][0].test(c);i++);if(i===qU.length)return!1;if(r)return qU[i][2];if(o=t+1,!qU[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),qU[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&&!HU(i))&&(r||(l=e.skipSpacesBack(l,s),(a=e.skipCharsBack(l,35,s))>s&&HU(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 XU(){this.ruler=new $U;for(var e=0;e<YU.length;e++)this.ruler.push(YU[e][0],YU[e][1],{alt:(YU[e][2]||[]).slice()})}XU.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)}},XU.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))},XU.prototype.State=GU;var ZU=XU;function KU(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 JU=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,QU=rV.isSpace,eW=rV.isSpace,tW=[],nW=0;nW<256;nW++)tW.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(e){tW[e.charCodeAt(0)]=1}));var rW={};function iW(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)}}rW.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},rW.postProcess=function(e){var t,n=e.tokens_meta,r=e.tokens_meta.length;for(iW(e,e.delimiters),t=0;t<r;t++)n[t]&&n[t].delimiters&&iW(e,n[t].delimiters)};var oW={};function aW(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--))}oW.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},oW.postProcess=function(e){var t,n=e.tokens_meta,r=e.tokens_meta.length;for(aW(e,e.delimiters),t=0;t<r;t++)n[t]&&n[t].delimiters&&aW(e,n[t].delimiters)};var cW=rV.normalizeReference,sW=rV.isSpace,lW=rV.normalizeReference,uW=rV.isSpace,fW=/^([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])?)*)$/,pW=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,dW=NU.HTML_TAG_RE;var hW=iV,mW=rV.has,vW=rV.isValidEntityCode,yW=rV.fromCodePoint,gW=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,bW=/^&([a-z][a-z0-9]{1,31});/i;function xW(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 wW=vU,_W=rV.isWhiteSpace,kW=rV.isPunctChar,SW=rV.isMdAsciiPunct;function EW(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}EW.prototype.pushPending=function(){var e=new wW("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},EW.prototype.push=function(e,t,n){this.pending&&this.pushPending();var r=new wW(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},EW.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=SW(n)||kW(String.fromCharCode(n)),u=SW(r)||kW(String.fromCharCode(r)),c=_W(n),(l=_W(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}},EW.prototype.Token=wW;var OW=EW,AW=ZV,CW=[["text",function(e,t){for(var n=e.pos;n<e.posMax&&!KU(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(JU))&&(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&&QU(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),eW(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!==tW[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",rW.tokenize],["emphasis",oW.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),sW(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),sW(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),sW(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[cW(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="",v=e.pos,y=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)<y&&40===e.src.charCodeAt(s)){for(s++;s<y&&(r=e.src.charCodeAt(s),uW(r)||10===r);s++);if(s>=y)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<y&&(r=e.src.charCodeAt(s),uW(r)||10===r);s++);if(u=e.md.helpers.parseLinkTitle(e.src,s,e.posMax),s<y&&h!==s&&u.ok)for(f=u.str,s=u.pos;s<y&&(r=e.src.charCodeAt(s),uW(r)||10===r);s++);else f="";if(s>=y||41!==e.src.charCodeAt(s))return e.pos=v,!1;s++}else{if(void 0===e.env.references)return!1;if(s<y&&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[lW(o)]))return e.pos=v,!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=y,!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),pW.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)):!!fW.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(dW))&&(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(gW))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=vW(n)?yW(n):yW(65533),i.markup=r[0],i.info="entity"),e.pos+=r[0].length,!0}else if((r=e.src.slice(o).match(bW))&&mW(hW,r[1]))return t||((i=e.push("text_special","",0)).content=hW[r[1]],i.markup=r[0],i.info="entity"),e.pos+=r[0].length,!0;return!1}]],TW=[["balance_pairs",function(e){var t,n=e.tokens_meta,r=e.tokens_meta.length;for(xW(0,e.delimiters),t=0;t<r;t++)n[t]&&n[t].delimiters&&xW(0,n[t].delimiters)}],["strikethrough",rW.postProcess],["emphasis",oW.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 AW,e=0;e<CW.length;e++)this.ruler.push(CW[e][0],CW[e][1]);for(this.ruler2=new AW,e=0;e<TW.length;e++)this.ruler2.push(TW[e][0],TW[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=OW;var DW,jW,MW=PW;function NW(){return jW?DW:(jW=1,DW=function(e){var t={};e=e||{},t.src_Any=RV().source,t.src_Cc=LV().source,t.src_Z=zV().source,t.src_P=oV.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 IW(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function RW(e){return Object.prototype.toString.call(e)}function LW(e){return"[object Function]"===RW(e)}function zW(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var FW={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};var BW={"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}}},qW="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]",HW="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function VW(e){var t=e.re=NW()(e.__opts__),n=e.__tlds__.slice();function r(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||n.push(qW),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]"===RW(e)}(n))return!function(e){return"[object RegExp]"===RW(e)}(n.validate)?LW(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(LW(n.normalize)?r.normalize=n.normalize:n.normalize?o(t,n):r.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===RW(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(zW).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 UW(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 WW(e,t){var n=new UW(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function GW(e,t){if(!(this instanceof GW))return new GW(e,t);t||function(e){return Object.keys(e||{}).reduce((function(e,t){return e||FW.hasOwnProperty(t)}),!1)}(e)&&(t=e,e={}),this.__opts__=IW({},FW,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=IW({},BW,e),this.__compiled__={},this.__tlds__=HW,this.__tlds_replaced__=!1,this.re={},VW(this)}GW.prototype.add=function(e,t){return this.__schemas__[e]=t,VW(this),this},GW.prototype.set=function(e){return this.__opts__=IW(this.__opts__,e),this},GW.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},GW.prototype.pretest=function(e){return this.re.pretest.test(e)},GW.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},GW.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(WW(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(WW(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},GW.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,WW(this,0)):null},GW.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(),VW(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,VW(this),this)},GW.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},GW.prototype.onCompile=function(){};var $W=GW;const YW=2147483647,XW=36,ZW=/^xn--/,KW=/[^\0-\x7E]/,JW=/[\x2E\u3002\uFF0E\uFF61]/g,QW={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},eG=Math.floor,tG=String.fromCharCode;function nG(e){throw new RangeError(QW[e])}function rG(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(JW,".")).split("."),t).join(".");return r+i}function iG(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 oG=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},aG=function(e,t,n){let r=0;for(e=n?eG(e/700):e>>1,e+=eG(e/t);e>455;r+=XW)e=eG(e/35);return eG(r+36*e/(e+38))},cG=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&&nG("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=XW;;i+=XW){s>=n&&nG("invalid-input");const a=(c=e.charCodeAt(s++))-48<10?c-22:c-65<26?c-65:c-97<26?c-97:XW;(a>=XW||a>eG((YW-r)/t))&&nG("overflow"),r+=a*t;const l=i<=o?1:i>=o+26?26:i-o;if(a<l)break;const u=XW-l;t>eG(YW/u)&&nG("overflow"),t*=u}const l=t.length+1;o=aG(r-a,l,0==a),eG(r/l)>YW-i&&nG("overflow"),i+=eG(r/l),r%=l,t.splice(r++,0,i)}var c;return String.fromCodePoint(...t)},sG=function(e){const t=[];let n=(e=iG(e)).length,r=128,i=0,o=72;for(const n of e)n<128&&t.push(tG(n));let a=t.length,c=a;for(a&&t.push("-");c<n;){let n=YW;for(const t of e)t>=r&&t<n&&(n=t);const s=c+1;n-r>eG((YW-i)/s)&&nG("overflow"),i+=(n-r)*s,r=n;for(const n of e)if(n<r&&++i>YW&&nG("overflow"),n==r){let e=i;for(let n=XW;;n+=XW){const r=n<=o?1:n>=o+26?26:n-o;if(e<r)break;const i=e-r,a=XW-r;t.push(tG(oG(r+i%a,0))),e=eG(i/a)}t.push(tG(oG(e,0))),o=aG(i,s,c==a),i=0,++c}++i,++r}return t.join("")},lG={version:"2.1.0",ucs2:{decode:iG,encode:e=>String.fromCodePoint(...e)},decode:cG,encode:sG,toASCII:function(e){return rG(e,(function(e){return KW.test(e)?"xn--"+sG(e):e}))},toUnicode:function(e){return rG(e,(function(e){return ZW.test(e)?cG(e.slice(4).toLowerCase()):e}))}};var uG=rV,fG=BV,pG=YV,dG=kU,hG=ZU,mG=MW,vG=$W,yG=aV,gG=lG,bG={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"]}}}},xG=/^(vbscript|javascript|file|data):/,wG=/^data:image\/(gif|png|jpeg|webp);/;function _G(e){var t=e.trim().toLowerCase();return!xG.test(t)||!!wG.test(t)}var kG=["http:","https:","mailto:"];function SG(e){var t=yG.parse(e,!0);if(t.hostname&&(!t.protocol||kG.indexOf(t.protocol)>=0))try{t.hostname=gG.toASCII(t.hostname)}catch(e){}return yG.encode(yG.format(t))}function EG(e){var t=yG.parse(e,!0);if(t.hostname&&(!t.protocol||kG.indexOf(t.protocol)>=0))try{t.hostname=gG.toUnicode(t.hostname)}catch(e){}return yG.decode(yG.format(t),yG.decode.defaultChars+"%")}function OG(e,t){if(!(this instanceof OG))return new OG(e,t);t||uG.isString(e)||(t=e||{},e="default"),this.inline=new mG,this.block=new hG,this.core=new dG,this.renderer=new pG,this.linkify=new vG,this.validateLink=_G,this.normalizeLink=SG,this.normalizeLinkText=EG,this.utils=uG,this.helpers=uG.assign({},fG),this.options={},this.configure(e),t&&this.set(t)}OG.prototype.set=function(e){return uG.assign(this.options,e),this},OG.prototype.configure=function(e){var t,n=this;if(uG.isString(e)&&!(e=bG[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},OG.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},OG.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},OG.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},OG.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},OG.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},OG.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},OG.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var AG=E(OG),CG={exports:{}},TG={},PG={};!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}(PG);var DG={},jG=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)}}(),MG=S&&S.__assign||function(){return MG=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},MG.apply(this,arguments)};Object.defineProperty(DG,"__esModule",{value:!0}),DG.cloneNode=DG.hasChildren=DG.isDocument=DG.isDirective=DG.isComment=DG.isText=DG.isCDATA=DG.isTag=DG.Element=DG.Document=DG.CDATA=DG.NodeWithChildren=DG.ProcessingInstruction=DG.Comment=DG.Text=DG.DataNode=DG.Node=void 0;var NG=PG,IG=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),ZG(this,e)},e}();DG.Node=IG;var RG=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return jG(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(IG);DG.DataNode=RG;var LG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=NG.ElementType.Text,t}return jG(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(RG);DG.Text=LG;var zG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=NG.ElementType.Comment,t}return jG(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(RG);DG.Comment=zG;var FG=function(e){function t(t,n){var r=e.call(this,n)||this;return r.name=t,r.type=NG.ElementType.Directive,r}return jG(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(RG);DG.ProcessingInstruction=FG;var BG=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return jG(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}(IG);DG.NodeWithChildren=BG;var qG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=NG.ElementType.CDATA,t}return jG(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(BG);DG.CDATA=qG;var HG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=NG.ElementType.Root,t}return jG(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(BG);DG.Document=HG;var VG=function(e){function t(t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i="script"===t?NG.ElementType.Script:"style"===t?NG.ElementType.Style:NG.ElementType.Tag);var o=e.call(this,r)||this;return o.name=t,o.attribs=n,o.type=i,o}return jG(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}(BG);function UG(e){return(0,NG.isTag)(e)}function WG(e){return e.type===NG.ElementType.CDATA}function GG(e){return e.type===NG.ElementType.Text}function $G(e){return e.type===NG.ElementType.Comment}function YG(e){return e.type===NG.ElementType.Directive}function XG(e){return e.type===NG.ElementType.Root}function ZG(e,t){var n;if(void 0===t&&(t=!1),GG(e))n=new LG(e.data);else if($G(e))n=new zG(e.data);else if(UG(e)){var r=t?KG(e.children):[],i=new VG(e.name,MG({},e.attribs),r);r.forEach((function(e){return e.parent=i})),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=MG({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=MG({},e["x-attribsPrefix"])),n=i}else if(WG(e)){r=t?KG(e.children):[];var o=new qG(r);r.forEach((function(e){return e.parent=o})),n=o}else if(XG(e)){r=t?KG(e.children):[];var a=new HG(r);r.forEach((function(e){return e.parent=a})),e["x-mode"]&&(a["x-mode"]=e["x-mode"]),n=a}else{if(!YG(e))throw new Error("Not implemented yet: ".concat(e.type));var c=new FG(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 KG(e){for(var t=e.map((function(e){return ZG(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}DG.Element=VG,DG.isTag=UG,DG.isCDATA=WG,DG.isText=GG,DG.isComment=$G,DG.isDirective=YG,DG.isDocument=XG,DG.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},DG.cloneNode=ZG,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=PG,i=DG;n(DG,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}(TG);var JG={exports:{}},QG={},e$={},t$={},n$={},r$={};Object.defineProperty(r$,"__esModule",{value:!0}),r$.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 i$={};Object.defineProperty(i$,"__esModule",{value:!0}),i$.default=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((function(e){return e.charCodeAt(0)})));var o$={};!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))}}(o$),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(r$);e.htmlDecodeTree=n.default;var r=t(i$);e.xmlDecodeTree=r.default;var i=t(o$);e.decodeCodePoint=i.default;var o,a,c=o$;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 v=s+1,y=10,g=t.charCodeAt(v);(g|o.To_LOWER_BIT)===o.LOWER_X&&(y=16,s+=1,v+=1);do{g=t.charCodeAt(++s)}while(g>=o.ZERO&&g<=o.NINE||16===y&&(g|o.To_LOWER_BIT)>=o.LOWER_A&&(g|o.To_LOWER_BIT)<=o.LOWER_F);if(v!==s){var b=t.substring(v,s),x=parseInt(b,y);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}(t$);var a$=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]}),c$=S&&S.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s$=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)&&a$(t,e,n);return c$(t,e),t};Object.defineProperty(e$,"__esModule",{value:!0}),e$.Parser=void 0;var l$=s$(t$),u$=n$,f$=new Set(["input","option","optgroup","select","button","datalist","textarea"]),p$=new Set(["p"]),d$=new Set(["thead","tbody"]),h$=new Set(["dd","dt"]),m$=new Set(["rt","rp"]),v$=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",p$],["h1",p$],["h2",p$],["h3",p$],["h4",p$],["h5",p$],["h6",p$],["select",f$],["input",f$],["output",f$],["button",f$],["datalist",f$],["textarea",f$],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",h$],["dt",h$],["address",p$],["article",p$],["aside",p$],["blockquote",p$],["details",p$],["div",p$],["dl",p$],["fieldset",p$],["figcaption",p$],["figure",p$],["footer",p$],["form",p$],["header",p$],["hr",p$],["main",p$],["nav",p$],["ol",p$],["pre",p$],["section",p$],["table",p$],["ul",p$],["rt",m$],["rp",m$],["tbody",d$],["tfoot",d$]]),y$=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),g$=new Set(["math","svg"]),b$=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),x$=/\s|\//,w$=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:l$.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,u$.fromCodePoint)(e)),this.startIndex=r},e.prototype.isVoidElement=function(e){return!this.options.xmlMode&&y$.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&&v$.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),g$.has(e)?this.foreignContext.push(!0):b$.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()),(g$.has(s)||b$.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,u$.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===l$.QuoteType.Double?'"':e===l$.QuoteType.Single?"'":e===l$.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(x$),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}();e$.Parser=w$;var _$={},k$={},S$=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)}}(),E$=S&&S.__assign||function(){return E$=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},E$.apply(this,arguments)};Object.defineProperty(k$,"__esModule",{value:!0}),k$.cloneNode=k$.hasChildren=k$.isDocument=k$.isDirective=k$.isComment=k$.isText=k$.isCDATA=k$.isTag=k$.Element=k$.Document=k$.CDATA=k$.NodeWithChildren=k$.ProcessingInstruction=k$.Comment=k$.Text=k$.DataNode=k$.Node=void 0;var O$=PG,A$=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),H$(this,e)},e}();k$.Node=A$;var C$=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return S$(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(A$);k$.DataNode=C$;var T$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=O$.ElementType.Text,t}return S$(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(C$);k$.Text=T$;var P$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=O$.ElementType.Comment,t}return S$(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(C$);k$.Comment=P$;var D$=function(e){function t(t,n){var r=e.call(this,n)||this;return r.name=t,r.type=O$.ElementType.Directive,r}return S$(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(C$);k$.ProcessingInstruction=D$;var j$=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return S$(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}(A$);k$.NodeWithChildren=j$;var M$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=O$.ElementType.CDATA,t}return S$(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(j$);k$.CDATA=M$;var N$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=O$.ElementType.Root,t}return S$(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(j$);k$.Document=N$;var I$=function(e){function t(t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i="script"===t?O$.ElementType.Script:"style"===t?O$.ElementType.Style:O$.ElementType.Tag);var o=e.call(this,r)||this;return o.name=t,o.attribs=n,o.type=i,o}return S$(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}(j$);function R$(e){return(0,O$.isTag)(e)}function L$(e){return e.type===O$.ElementType.CDATA}function z$(e){return e.type===O$.ElementType.Text}function F$(e){return e.type===O$.ElementType.Comment}function B$(e){return e.type===O$.ElementType.Directive}function q$(e){return e.type===O$.ElementType.Root}function H$(e,t){var n;if(void 0===t&&(t=!1),z$(e))n=new T$(e.data);else if(F$(e))n=new P$(e.data);else if(R$(e)){var r=t?V$(e.children):[],i=new I$(e.name,E$({},e.attribs),r);r.forEach((function(e){return e.parent=i})),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=E$({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=E$({},e["x-attribsPrefix"])),n=i}else if(L$(e)){r=t?V$(e.children):[];var o=new M$(r);r.forEach((function(e){return e.parent=o})),n=o}else if(q$(e)){r=t?V$(e.children):[];var a=new N$(r);r.forEach((function(e){return e.parent=a})),e["x-mode"]&&(a["x-mode"]=e["x-mode"]),n=a}else{if(!B$(e))throw new Error("Not implemented yet: ".concat(e.type));var c=new D$(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 V$(e){for(var t=e.map((function(e){return H$(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}k$.Element=I$,k$.isTag=R$,k$.isCDATA=L$,k$.isText=z$,k$.isComment=F$,k$.isDirective=B$,k$.isDocument=q$,k$.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},k$.cloneNode=H$,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=PG,i=k$;n(k$,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}(_$);var U$={},W$={},G$={},$$={},Y$={},X$={};function Z$(e){for(var t=1;t<e.length;t++)e[t][0]+=e[t-1][0]+1;return e}Object.defineProperty(X$,"__esModule",{value:!0}),X$.default=new Map(Z$([[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(Z$([[824,"≪̸"],[7577,"≪⃒"]]))}],[0,{v:"≫",n:new Map(Z$([[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(Z$([[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 K$={};!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," "]]))}(K$);var J$=S&&S.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Y$,"__esModule",{value:!0}),Y$.encodeNonAsciiHTML=Y$.encodeHTML=void 0;var Q$=J$(X$),eY=K$,tY=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function nY(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=Q$.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,eY.getCodePoint)(t,o);r+="&#x".concat(u.toString(16),";"),i=e.lastIndex+=Number(u!==a)}}return r+t.substr(i)}Y$.encodeHTML=function(e){return nY(tY,e)},Y$.encodeNonAsciiHTML=function(e){return nY(eY.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=Y$,a=K$;!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=K$;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=Y$;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}})}($$);var rY={};Object.defineProperty(rY,"__esModule",{value:!0}),rY.attributeNames=rY.elementNames=void 0,rY.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]}))),rY.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 iY=S&&S.__assign||function(){return iY=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},iY.apply(this,arguments)},oY=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]}),aY=S&&S.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),cY=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)&&oY(t,e,n);return aY(t,e),t};Object.defineProperty(G$,"__esModule",{value:!0}),G$.render=void 0;var sY=cY(PG),lY=$$,uY=rY,fY=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function pY(e){return e.replace(/"/g,""")}var dY=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function hY(e,t){void 0===t&&(t={});for(var n=("length"in e?e:[e]),r="",i=0;i<n.length;i++)r+=mY(n[i],t);return r}function mY(e,t){switch(e.type){case sY.Root:return hY(e.children,t);case sY.Doctype:case sY.Directive:return"<".concat(e.data,">");case sY.Comment:return function(e){return"\x3c!--".concat(e.data,"--\x3e")}(e);case sY.CDATA:return function(e){return"<![CDATA[".concat(e.children[0].data,"]]>")}(e);case sY.Script:case sY.Style:case sY.Tag:return function(e,t){var n;"foreign"===t.xmlMode&&(e.name=null!==(n=uY.elementNames.get(e.name))&&void 0!==n?n:e.name,e.parent&&vY.has(e.parent.name)&&(t=iY(iY({},t),{xmlMode:!1})));!t.xmlMode&&yY.has(e.name)&&(t=iY(iY({},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)?pY:t.xmlMode||"utf8"!==t.encodeEntities?lY.encodeXML:lY.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=uY.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&&dY.has(e.name))?(t.xmlMode||(r+=" "),r+="/>"):(r+=">",e.children.length>0&&(r+=hY(e.children,t)),!t.xmlMode&&dY.has(e.name)||(r+="</".concat(e.name,">")));return r}(e,t);case sY.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&&fY.has(e.parent.name)||(r=t.xmlMode||"utf8"!==t.encodeEntities?(0,lY.encodeXML)(r):(0,lY.escapeText)(r));return r}(e,t)}}G$.render=hY,G$.default=hY;var vY=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),yY=new Set(["svg","math"]);var gY=S&&S.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(W$,"__esModule",{value:!0}),W$.innerText=W$.textContent=W$.getText=W$.getInnerHTML=W$.getOuterHTML=void 0;var bY=_$,xY=gY(G$),wY=PG;function _Y(e,t){return(0,xY.default)(e,t)}W$.getOuterHTML=_Y,W$.getInnerHTML=function(e,t){return(0,bY.hasChildren)(e)?e.children.map((function(e){return _Y(e,t)})).join(""):""},W$.getText=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,bY.isTag)(t)?"br"===t.name?"\n":e(t.children):(0,bY.isCDATA)(t)?e(t.children):(0,bY.isText)(t)?t.data:""},W$.textContent=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,bY.hasChildren)(t)&&!(0,bY.isComment)(t)?e(t.children):(0,bY.isText)(t)?t.data:""},W$.innerText=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,bY.hasChildren)(t)&&(t.type===wY.ElementType.Tag||(0,bY.isCDATA)(t))?e(t.children):(0,bY.isText)(t)?t.data:""};var kY={};Object.defineProperty(kY,"__esModule",{value:!0}),kY.prevElementSibling=kY.nextElementSibling=kY.getName=kY.hasAttrib=kY.getAttributeValue=kY.getSiblings=kY.getParent=kY.getChildren=void 0;var SY=_$;function EY(e){return(0,SY.hasChildren)(e)?e.children:[]}function OY(e){return e.parent||null}kY.getChildren=EY,kY.getParent=OY,kY.getSiblings=function(e){var t=OY(e);if(null!=t)return EY(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},kY.getAttributeValue=function(e,t){var n;return null===(n=e.attribs)||void 0===n?void 0:n[t]},kY.hasAttrib=function(e,t){return null!=e.attribs&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&null!=e.attribs[t]},kY.getName=function(e){return e.name},kY.nextElementSibling=function(e){for(var t=e.next;null!==t&&!(0,SY.isTag)(t);)t=t.next;return t},kY.prevElementSibling=function(e){for(var t=e.prev;null!==t&&!(0,SY.isTag)(t);)t=t.prev;return t};var AY={};function CY(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(AY,"__esModule",{value:!0}),AY.prepend=AY.prependChild=AY.append=AY.appendChild=AY.replaceElement=AY.removeElement=void 0,AY.removeElement=CY,AY.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}},AY.appendChild=function(e,t){if(CY(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},AY.append=function(e,t){CY(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)},AY.prependChild=function(e,t){if(CY(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},AY.prepend=function(e,t){CY(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 TY={};Object.defineProperty(TY,"__esModule",{value:!0}),TY.findAll=TY.existsOne=TY.findOne=TY.findOneChild=TY.find=TY.filter=void 0;var PY=_$;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}TY.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)},TY.find=DY,TY.findOneChild=function(e,t){return t.find(e)},TY.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},TY.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))}))},TY.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 jY={};Object.defineProperty(jY,"__esModule",{value:!0}),jY.getElementsByTagType=jY.getElementsByTagName=jY.getElementById=jY.getElements=jY.testElement=void 0;var MY=_$,NY=TY,IY={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 RY(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 LY(e,t){return function(n){return e(n)||t(n)}}function zY(e){var t=Object.keys(e).map((function(t){var n=e[t];return Object.prototype.hasOwnProperty.call(IY,t)?IY[t](n):RY(t,n)}));return 0===t.length?null:t.reduce(LY)}jY.testElement=function(e,t){var n=zY(e);return!n||n(t)},jY.getElements=function(e,t,n,r){void 0===r&&(r=1/0);var i=zY(e);return i?(0,NY.filter)(i,t,n,r):[]},jY.getElementById=function(e,t,n){return void 0===n&&(n=!0),Array.isArray(t)||(t=[t]),(0,NY.findOne)(RY("id",e),t,n)},jY.getElementsByTagName=function(e,t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=1/0),(0,NY.filter)(IY.tag_name(e),t,n,r)},jY.getElementsByTagType=function(e,t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=1/0),(0,NY.filter)(IY.tag_type(e),t,n,r)};var FY={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.uniqueSort=e.compareDocumentPosition=e.DocumentPosition=e.removeSubsets=void 0;var t,n=_$;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}}(FY);var BY={};Object.defineProperty(BY,"__esModule",{value:!0}),BY.getFeed=void 0;var qY=W$,HY=jY;BY.getFeed=function(e){var t=GY(XY,e);return t?"feed"===t.name?function(e){var t,n=e.children,r={type:"atom",items:(0,HY.getElementsByTagName)("entry",n).map((function(e){var t,n=e.children,r={media:WY(n)};YY(r,"id","id",n),YY(r,"title","title",n);var i=null===(t=GY("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}))};YY(r,"id","id",n),YY(r,"title","title",n);var i=null===(t=GY("link",n))||void 0===t?void 0:t.attribs.href;i&&(r.link=i);YY(r,"description","subtitle",n);var o=$Y("updated",n);o&&(r.updated=new Date(o));return YY(r,"author","email",n,!0),r}(t):function(e){var t,n,r=null!==(n=null===(t=GY("channel",e.children))||void 0===t?void 0:t.children)&&void 0!==n?n:[],i={type:e.name.substr(0,3),id:"",items:(0,HY.getElementsByTagName)("item",e.children).map((function(e){var t=e.children,n={media:WY(t)};YY(n,"id","guid",t),YY(n,"title","title",t),YY(n,"link","link",t),YY(n,"description","description",t);var r=$Y("pubDate",t);return r&&(n.pubDate=new Date(r)),n}))};YY(i,"title","title",r),YY(i,"link","link",r),YY(i,"description","description",r);var o=$Y("lastBuildDate",r);o&&(i.updated=new Date(o));return YY(i,"author","managingEditor",r,!0),i}(t):null};var VY=["url","type","lang"],UY=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function WY(e){return(0,HY.getElementsByTagName)("media:content",e).map((function(e){for(var t=e.attribs,n={medium:t.medium,isDefault:!!t.isDefault},r=0,i=VY;r<i.length;r++){t[c=i[r]]&&(n[c]=t[c])}for(var o=0,a=UY;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 GY(e,t){return(0,HY.getElementsByTagName)(e,t,!0,1)[0]}function $Y(e,t,n){return void 0===n&&(n=!1),(0,qY.textContent)((0,HY.getElementsByTagName)(e,t,n,1)).trim()}function YY(e,t,n,r,i){void 0===i&&(i=!1);var o=$Y(n,r,i);o&&(e[t]=o)}function XY(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(W$,e),n(kY,e),n(AY,e),n(TY,e),n(jY,e),n(FY,e),n(BY,e);var r=_$;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}})}(U$),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=e$;Object.defineProperty(e,"Parser",{enumerable:!0,get:function(){return o.Parser}});var a=_$;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=t$;Object.defineProperty(e,"Tokenizer",{enumerable:!0,get:function(){return i(l).default}});var u=r(PG);e.ElementType=u;var f=U$;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(U$)}(QG);var ZY=QG.Parser,KY=_$.DomHandler,JY=function(e){for(var t=0,n=e.length;t<n;t++){e[t].parent=null}return e};var QY=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string.");if(""===e)return[];var n=new KY(void 0,t);return new ZY(n,t).end(e),JY(n.dom)};JG.exports=QY,JG.exports.default=QY;var eX=JG.exports,tX={},nX={};nX.SAME=0;function rX(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 iX(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 iX(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 iX(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}nX.CAMELCASE=1,nX.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(tX,"__esModule",{value:!0});function oX(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 aX={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((function(e){aX[e]=new oX(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=rX(e,2),n=t[0],r=t[1];aX[n]=new oX(n,1,!1,r,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){aX[e]=new oX(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){aX[e]=new oX(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){aX[e]=new oX(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){aX[e]=new oX(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){aX[e]=new oX(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){aX[e]=new oX(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){aX[e]=new oX(e,5,!1,e.toLowerCase(),null,!1,!1)}));var cX=/[\-\:]([a-z])/g,sX=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(cX,sX);aX[t]=new oX(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(cX,sX);aX[t]=new oX(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(cX,sX);aX[t]=new oX(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){aX[e]=new oX(e,1,!1,e.toLowerCase(),null,!1,!1)}));aX.xlinkHref=new oX("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){aX[e]=new oX(e,1,!1,e.toLowerCase(),null,!0,!0)}));var lX=nX,uX=lX.CAMELCASE,fX=lX.SAME,pX=lX.possibleStandardNames,dX=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]*$")),hX=Object.keys(pX).reduce((function(e,t){var n=pX[t];return n===fX?e[t]=t:n===uX?e[t.toLowerCase()]=t:e[t]=n,e}),{});tX.BOOLEAN=3,tX.BOOLEANISH_STRING=2,tX.NUMERIC=5,tX.OVERLOADED_BOOLEAN=4,tX.POSITIVE_NUMERIC=6,tX.RESERVED=0,tX.STRING=1,tX.getPropertyInfo=function(e){return aX.hasOwnProperty(e)?aX[e]:null},tX.isCustomAttribute=dX,tX.possibleStandardNames=hX;var mX={},vX={exports:{}},yX=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,gX=/\n/g,bX=/^\s*/,xX=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,wX=/^:\s*/,_X=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,kX=/^[;\s]*/,SX=/^\s+|\s+$/g,EX="";function OX(e){return e?e.replace(SX,EX):EX}var AX=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(gX);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(bX)}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;EX!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,EX===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(xX);if(t){if(f(),!s(wX))return c("property missing ':'");var n=s(_X),r=e({type:"declaration",property:OX(t[0].replace(yX,EX)),value:n?OX(n[0].replace(yX,EX)):EX});return s(kX),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 CX(e,t){var n,r=null;if(!e||"string"!=typeof e)return r;for(var i,o,a=AX(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}vX.exports=CX,vX.exports.default=CX;var TX=vX.exports,PX={__esModule:!0,camelCase:void 0},DX=/^--[a-zA-Z0-9-]+$/,jX=/-([a-z])/g,MX=/^[^-]+$/,NX=/^-(webkit|moz|ms|o|khtml)-/,IX=/^-(ms)-/,RX=function(e,t){return t.toUpperCase()},LX=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(IX,LX):e.replace(NX,LX)).replace(jX,RX))},function(e){var t=S&&S.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};e.__esModule=!0;var n=t(TX),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}}(mX);var zX=mX.default;var FX={reactCompat:!0};var BX=e.version.split(".")[0]>=16,qX=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var HX={PRESERVE_CUSTOM_ATTRIBUTES:BX,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=zX(e,FX)}catch(e){t.style={}}},canTextBeChildOfNode:function(e){return!qX.has(e.name)},elementsWithNoTextChildren:qX},VX=tX,UX=HX,WX=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],VX.isCustomAttribute(n))c[n]=i;else if(o=GX(r=n.toLowerCase()))switch(a=VX.getPropertyInfo(o),"checked"!==o&&"value"!==o||"option"===t||s||(o=GX("default"+r)),c[o]=i,a&&a.type){case VX.BOOLEAN:c[o]=!0;break;case VX.OVERLOADED_BOOLEAN:""===i&&(c[o]=!0)}else UX.PRESERVE_CUSTOM_ATTRIBUTES&&(c[n]=i);return UX.setStyleProp(e.style,c),c};function GX(e){return VX.possibleStandardNames[e]}var $X=e,YX=WX,XX=HX,ZX=XX.setStyleProp,KX=XX.canTextBeChildOfNode;function JX(e){return XX.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&XX.isCustomComponent(e.name,e.attribs)}var QX=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,v=t.length;m<v;m++)if(r=t[m],d&&f(o=n.replace(r)))v>1&&(o=l(o,{key:o.key||m})),p.push(o);else if("text"!==r.type){switch(a=r.attribs,JX(r)?ZX(a.style,a):a&&(a=YX(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}v>1&&(a.key=m),p.push(u(r.name,a,c))}else{if((i=!r.data.trim().length)&&r.parent&&!KX(r.parent))continue;if(h&&i)continue;p.push(r.data)}return 1===p.length?p[0]:p},eZ=TG,tZ=eX,nZ=WX,rZ=QX;tZ="function"==typeof tZ.default?tZ.default:tZ;var iZ={lowerCaseAttributeNames:!1};function oZ(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return""===e?[]:rZ(tZ(e,(t=t||{}).htmlparser2||iZ),t)}oZ.domToReact=rZ,oZ.htmlToDOM=tZ,oZ.attributesToProps=nZ,oZ.Comment=eZ.Comment,oZ.Element=eZ.Element,oZ.ProcessingInstruction=eZ.ProcessingInstruction,oZ.Text=eZ.Text,CG.exports=oZ,CG.exports.default=oZ;var aZ=E(CG.exports);function cZ(t){var n,r,i,o=new AG;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=aZ(i,{replace:function(e){var t=e;"a"===t.name&&(t.attribs.target="_blank")}});return e.createElement(e.Fragment,null,a)}function sZ(t){return t.text?e.createElement("div",{className:"mdhui-step-title",style:nV(t)},e.createElement(cZ,{text:t.text,inline:!0})):null}aZ.domToReact,aZ.htmlToDOM,aZ.attributesToProps,aZ.Comment,aZ.Element,aZ.ProcessingInstruction,aZ.Text;function lZ(t){return t.text?e.createElement("div",{className:"mdhui-step-text",style:nV(t)},e.createElement(cZ,{text:t.text})):null}_(".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 uZ(t){return t.text?e.createElement("div",{className:"mdhui-step-detail-text",style:nV(t)},e.createElement(cZ,{text:t.text})):null}_(".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 fZ(t){var n=nV(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:Er("next-button-text");return e.createElement("button",{className:"mdhui-step-next-button",style:n,disabled:t.disabled,onClick:t.onClick},i)}_(".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 position: fixed;\n bottom: 0;\n left: 0;\n right: 0;\n}\n\n.mdhui-step-container .mdhui-step-next-button:disabled,\n.mdhui-step-container .mdhui-step-next-button[disabled] {\n opacity: 0.65;\n cursor: not-allowed;\n}");var pZ=150,dZ=2,hZ=["DodgerBlue","OliveDrab","Gold","Pink","SlateBlue","LightBlue","Violet","PaleGreen","SteelBlue","SandyBrown","Chocolate","Crimson"],mZ=!1,vZ=null,yZ=[],gZ=0;function bZ(e,t,n){return e.color=hZ[Math.random()*hZ.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 xZ(){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");yZ.length<pZ;)yZ.push(bZ({color:"",x:0,y:0,diameter:0,tilt:0,tiltAngleIncrement:0,tiltAngle:0},e,t));mZ=!0,null===vZ&&function e(){null==i||i.clearRect(0,0,window.innerWidth,window.innerHeight),0===yZ.length?vZ=null:(!function(){var e,t=window.innerWidth,n=window.innerHeight;gZ+=.01;for(var r=0;r<yZ.length;r++)e=yZ[r],!mZ&&e.y<-15?e.y=n+100:(e.tiltAngle+=e.tiltAngleIncrement,e.x+=Math.sin(gZ),e.y+=.5*(Math.cos(gZ)+e.diameter+dZ),e.tilt=15*Math.sin(e.tiltAngle)),(e.x>t+20||e.x<-20||e.y>n)&&(mZ&&yZ.length<=pZ?bZ(e,t,n):(yZ.splice(r,1),r--))}(),function(e){if(e)for(var t,n,r=0;r<yZ.length;r++)t=yZ[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),vZ=n(e))}()}function wZ(t){return t.srcUrl?e.createElement("div",{className:"mdhui-step-image-icon"},e.createElement("img",{src:t.srcUrl})):null}_(".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}");function _Z(t){return t.srcUrl?e.createElement("div",{className:"mdhui-step-image"},e.createElement("img",{src:t.srcUrl})):null}function kZ(t){var n;return xZ(),window.setTimeout((function(){mZ=!1}),1200),e.createElement(tV,null,e.createElement(wZ,{srcUrl:t.iconUrl}),e.createElement(sZ,{text:t.title,textAlign:t.styles.titleAlignment,color:t.styles.titleColor,fontSize:t.styles.titleFontSize,fontWeight:t.styles.titleFontWeight}),e.createElement(lZ,{text:t.text,textAlign:t.styles.textAlignment,color:t.styles.textColor,fontSize:t.styles.textFontSize,fontWeight:t.styles.textFontWeight}),e.createElement(uZ,{text:t.detailText,textAlign:t.styles.textAlignment,color:t.styles.textColor,fontSize:t.styles.textFontSize,fontWeight:t.styles.textFontWeight}),e.createElement(_Z,{srcUrl:t.imageUrl}),e.createElement(fZ,{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 SZ(){var t=o(),n=t[0],r=t[1],i=o(),c=i[0],s=i[1],l=o(),u=l[0],f=l[1],p=o(),d=p[0],h=p[1],m=o(),v=m[0],y=m[1],g=o(),x=g[0],w=g[1],_=o({}),k=_[0],S=_[1];return a((function(){b.getStepConfiguration().then((function(e){var t;e&&(r(e.properties.title),s(e.properties.text),f(e.properties.detailText),h(e.properties.iconImage),y(e.properties.image),w(e.properties.nextButtonText),S(null!==(t=e.styles)&&void 0!==t?t:{}))}))}),[]),e.createElement(kZ,{title:n,text:c,detailText:u,iconUrl:d,imageUrl:v,nextButtonText:x,styles:k})}function EZ(t){var n,r="Connect to ".concat(t.deviceType);return e.createElement(tV,null,e.createElement(sZ,{text:t.title,textAlign:t.styles.titleAlignment,color:t.styles.titleColor,fontSize:t.styles.titleFontSize,fontWeight:t.styles.titleFontWeight}),e.createElement(lZ,{text:t.text,textAlign:t.styles.textAlignment,color:t.styles.textColor,fontSize:t.styles.textFontSize,fontWeight:t.styles.textFontWeight}),e.createElement(fZ,{text:r,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.connectExternalAccount(t.providerID,{openNewWindow:!0})}}))}function OZ(){var t=this,n=o(),r=n[0],i=n[1],c=o(),s=c[0],l=c[1],u=o({}),f=u[0],p=u[1],d=o(""),h=d[0],m=d[1],v=o(),y=v[0],g=v[1],x=o(),w=x[0],_=x[1];return a((function(){b.getStepConfiguration().then((function(e){var t;if(e){if(i(e.properties.title),l(e.properties.text),!e.properties.deviceType)throw new Error("deviceType is required");if(m(e.properties.deviceType),!e.properties.providerID)throw new Error("providerID is required");g(e.properties.providerID),p(null!==(t=e.styles)&&void 0!==t?t:{})}}))}),[]),a((function(){if(y&&!w){var e=setInterval((function(){return Nt(t,void 0,void 0,(function(){var e,t;return It(this,(function(n){switch(n.label){case 0:return[4,b.getExternalAccounts()];case 1:return e=n.sent(),t=e.some((function(e){return e.provider.id===y})),!w&&t&&_(t),[2]}}))}))}),1e3);return function(){return clearInterval(e)}}}),[y,w]),a((function(){w&&(console.log("Connected to provider ID ",y),b.completeStep(""))}),[w]),y&&e.createElement(EZ,{title:r,text:s,deviceType:h,providerID:y,styles:f})}function AZ(t){var n;return e.createElement(tV,null,e.createElement(sZ,{text:t.title,textAlign:t.styles.titleAlignment,color:t.styles.titleColor,fontSize:t.styles.titleFontSize,fontWeight:t.styles.titleFontWeight}),e.createElement(lZ,{text:t.text,textAlign:t.styles.textAlignment,color:t.styles.textColor,fontSize:t.styles.textFontSize,fontWeight:t.styles.textFontWeight}),e.createElement(zH,{previewState:t.previewState,providerCategories:["Provider","Health Plan"],openNewWindow:!0,onProviderSelected:t.onProviderSelected}),e.createElement(fZ,{text:t.nextButtonText,disabled:t.nextButtonDisabled,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 CZ(){var t=o(),n=t[0],r=t[1],i=o(),c=i[0],s=i[1],l=o(),u=l[0],f=l[1],p=o(!0),d=p[0],h=p[1],m=o({}),v=m[0],y=m[1],g=o(void 0),x=g[0],w=g[1];return a((function(){b.getStepConfiguration().then((function(e){var t;e&&(r(e.properties.title),s(e.properties.text),f(e.properties.nextButtonText),y(null!==(t=e.styles)&&void 0!==t?t:{}))}))}),[]),a((function(){var e=setInterval((function(){x&&d&&b.getExternalAccounts().then((function(e){e.some((function(e){return e.provider.id===x.id}))&&h(!1)}))}),1e3);return function(){return clearInterval(e)}}),[x,d]),e.createElement(AZ,{title:n,text:c,nextButtonText:u,nextButtonDisabled:d,styles:v,onProviderSelected:w})}function TZ(t){var n,r=(t.height?t.height:"225")+"px",i=b.getCurrentLanguage();return e.createElement(tV,null,e.createElement(sZ,{text:t.title,textAlign:t.styles.titleAlignment,color:t.styles.titleColor,fontSize:t.styles.titleFontSize,fontWeight:t.styles.titleFontWeight}),e.createElement(lZ,{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(uZ,{text:t.transcript,textAlign:t.styles.detailTextAlignment,color:t.styles.detailTextColor,fontSize:t.styles.detailTextFontSize,fontWeight:t.styles.detailTextFontWeight}),e.createElement(fZ,{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 PZ(){var t=o(),n=t[0],r=t[1],i=o(),c=i[0],s=i[1],l=o(),u=l[0],f=l[1],p=o(""),d=p[0],h=p[1],m=o(),v=m[0],y=m[1],g=o(),x=g[0],w=g[1],_=o({}),k=_[0],S=_[1];return a((function(){b.getStepConfiguration().then((function(e){var t;e&&(r(e.properties.title),s(e.properties.text),f(e.properties.transcript),h(e.properties.videoId),y(e.properties.nextButtonText),w(e.properties.height),S(null!==(t=e.styles)&&void 0!==t?t:{}))}))}),[]),e.createElement(TZ,{title:n,text:c,transcript:u,nextButtonText:v,height:x,videoId:d,styles: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}");export{D as Action,j as ActivityMeter,Xr as AppDownload,WH as BlankView,R as Button,Pt as Calendar,Dt as Card,jt as CardTitle,kZ as CelebrationStep,SZ as CelebrationStepContainer,EZ as ConnectDeviceAccountStep,OZ as ConnectDeviceAccountStepContainer,Jr as ConnectEhr,AZ as ConnectEhrStep,CZ as ConnectEhrStepContainer,GH as ConnectEhrView,ti as ConnectFitbit,ni as ConnectGarmin,Nq as DailyDataChart,gi as DailyDataType,Vt as DateRangeCoordinator,zt as DateRangeNavigator,Ut as DayTrackerSymbol,zq as DeviceDataMonthChart,Fq as DeviceDataMonthCharts,$H as DeviceDataView,qq as ExternalAccountList,Uq as ExternalAccountsLoadingIndicator,Gq as ExternalAccountsPreview,YH as ExternalAccountsView,xr as Face,iH as FitbitDevices,aH as FitbitMonthCharts,XH as FitbitView,sH as GarminDevices,lH as GarminMonthCharts,ZH as GarminView,JH as HealthAndWellnessView,vH as HealthPreviewSection,_r as Histogram,KH as HomeView,kH as LabResultsSummary,br as Layout,gr as LayoutContext,I as LoadingIndicator,EH as MostRecentNotification,Or as NavigationBar,CH as NotificationList,QH as NotificationsView,Hr as PlatformSpecificContent,TH as ProjectHeader,MH as ProjectSupport,zH as ProviderSearch,FH as RelativeActivityToday,BH as RestingHeartRateCalendar,Ar as Section,Cr as SegmentedControl,wr as ShinyOverlay,Dr as SingleExternalAccount,jr as SingleNotification,Nr as SingleSurveyTask,Ir as SparkBarChart,Lr as StatusBarBackground,uZ as StepDetailText,_Z as StepImage,wZ as StepImageIcon,tV as StepLayout,cZ as StepMarkdown,fZ as StepNextButton,lZ as StepText,sZ as StepTitle,VH as SurveyTaskList,eV as SurveyTasksView,Rr as Switch,zr as TextBlock,Fr as TrackerItem,k as UnstyledButton,Br as ViewHeader,qr as WeekCalendar,TZ as YouTubeStep,PZ as YouTubeStepContainer,wi as checkDailyDataAvailability,ri as getDayKey,qt as getMonthStart,Bt as getWeekStart,Er as language,_i as queryDailyData,xi as registerDailyDataProvider,Hq as useInterval};
|
|
215
|
+
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!==sw&&(e.parser=t,e.Parser=t.Parser,e.parse=function(){return t.parse.apply(t,arguments)})}(lw);var uw={},fw={exports:{}},pw={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}},dw=function(e,t,n,r){if(!pw.hasOwnProperty(n))throw new Error("Cannot convert to "+n);if(!pw[n].hasOwnProperty(t))throw new Error("Cannot convert from "+t+" to "+n);var i=pw[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}}(dw);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}(fw,fw.exports);var hw=fw.exports;Object.defineProperty(uw,"__esModule",{value:!0}),uw.flip=bw;var mw=function(e){return e&&e.__esModule?e:{default:e}}(hw);function vw(e,t){return"MathExpression"===e.type?function(e,t){switch(e=function(e,t){var n=(0,mw.default)(e.left,e.right,t),r=vw(n.left,t),i=vw(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)&&(yw(r.right,i.right)?n=(0,mw.default)(r.left,i.left,t):yw(r.right,i.left)&&(n=(0,mw.default)(r.left,i.right,t)),r=vw(n.left,t),i=vw(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 xw(i);r.type===i.type&&gw(r.type)&&((e=Object.assign({},r)).value="+"===o?r.value+i.value:r.value-i.value);if(gw(r.type)&&("+"===i.operator||"-"===i.operator)&&"MathExpression"===i.type){if(r.type===i.left.type)return(e=Object.assign({},e)).left=vw({type:"MathExpression",operator:o,left:r,right:i.left},t),e.right=i.right,e.operator="-"===o?bw(i.operator):i.operator,vw(e,t);if(r.type===i.right.type)return(e=Object.assign({},e)).left=vw({type:"MathExpression",operator:"-"===o?bw(i.operator):i.operator,left:r,right:i.right},t),e.right=i.left,vw(e,t)}if("MathExpression"===r.type&&("+"===r.operator||"-"===r.operator)&&gw(i.type)){if(i.type===r.left.type)return(e=Object.assign({},r)).left=vw({type:"MathExpression",operator:o,left:r.left,right:i},t),vw(e,t);if(i.type===r.right.type)return e=Object.assign({},r),"-"===r.operator?(e.right=vw({type:"MathExpression",operator:"-"===o?"+":"-",left:i,right:r.right},t),e.operator="-"===o?"-":"+"):e.right=vw({type:"MathExpression",operator:o,left:r.right,right:i},t),e.right.value<0&&(e.right.value*=-1,e.operator="-"===e.operator?"+":"-"),vw(e,t)}return e}(e,t);case"/":return function(e,t){if(!gw(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 gw(e.left.left.type)&&gw(e.left.right.type)?(e.left.left.value/=e.right.value,e.left.right.value/=e.right.value,vw(e.left,t)):e;if(gw(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(gw(e.left.left.type)&&gw(e.left.right.type))return e.left.left.value*=e.right.value,e.left.right.value*=e.right.value,e.left}else{if(gw(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(gw(e.right.left.type)&&gw(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&&gw(e.right.type))return e.right.value*=e.left.value,e.right}return e}(e)}return e}(e,t):"Calc"===e.type?vw(e.value,t):e}function yw(e,t){return e.type===t.type&&e.value===t.value}function gw(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 bw(e){return"+"===e?"-":"+"}function xw(e){return gw(e.type)?e.value=-e.value:"MathExpression"==e.type&&(e.left=xw(e.left),e.right=xw(e.right)),e}uw.default=vw;var ww={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=uw,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}(ww,ww.exports);var _w=ww.exports;!function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=a(cw),r=lw,i=a(uw),o=a(_w);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}(Wx,Wx.exports);var kw=E(Wx.exports);function Sw(e){return Sw="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},Sw(e)}function Ew(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 Ow(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ew(Object(n),!0).forEach((function(t){Aw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ew(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Aw(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Sw(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Sw(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Sw(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cw(e){return function(e){if(Array.isArray(e))return Tw(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 Tw(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 Tw(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 Tw(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 Pw={widthCache:{},cacheCount:0},Dw={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},jw=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","lineHeight","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],Mw="recharts_measurement_span";var Nw=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(Cw(e),["-",t.toLowerCase()]):[].concat(Cw(e),[t])}),[]).join("")}(n),":").concat((r=n,i=e[n],jw.indexOf(r)>=0&&i===+i?"".concat(i,"px"):i),";");var r,i}),"")},Iw=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||Gb.isSsr)return{width:0,height:0};var n="".concat(e),r=Nw(t),i="".concat(n,"-").concat(r);if(Pw.widthCache[i])return Pw.widthCache[i];try{var o=document.getElementById(Mw);o||((o=document.createElement("span")).setAttribute("id",Mw),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var a=Ow(Ow({},Dw),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 Pw.widthCache[i]=s,++Pw.cacheCount>2e3&&(Pw.cacheCount=0,Pw.widthCache={}),s}catch(e){return{width:0,height:0}}},Rw=["dx","dy","textAnchor","verticalAnchor","scaleToFit","angle","lineHeight","capHeight","className","breakAll"];function Lw(e){return Lw="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},Lw(e)}function zw(){return zw=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},zw.apply(this,arguments)}function Fw(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 Bw(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,Zw(r.key),r)}}function qw(e,t){return qw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qw(e,t)}function Hw(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=Uw(e);if(t){var i=Uw(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Lw(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Vw(e)}(this,n)}}function Vw(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Uw(e){return Uw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Uw(e)}function Ww(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 Gw(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 Gw(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 Gw(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 $w(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 Yw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$w(Object(n),!0).forEach((function(t){Xw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xw(e,t,n){return(t=Zw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zw(e){var t=function(e,t){if("object"!==Lw(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Lw(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Lw(t)?t:String(t)}var Kw=/[ \f\n\r\t\v\u2028\u2029]+/,Jw=function(e){try{var t=[];return rc(e.children)||(t=e.breakAll?e.children.toString().split(""):e.children.toString().split(Kw)),{wordsWithComputedWidth:t.map((function(t){return{word:t,width:Iw(t,e.style).width}})),spaceWidth:e.breakAll?0:Iw(" ",e.style).width}}catch(e){return null}},Qw=function(e){return[{words:rc(e)?[]:e.toString().split(Kw)}]},e_=function(e,t){if((e.width||e.scaleToFit)&&!Gb.isSsr&&t){var n=Jw(e);return n?function(e,t,n,r,i){var o=yc(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=Jw(Yw(Yw({},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=Ww(u(h-1),2),v=m[0],y=m[1],g=Ww(u(h),1)[0];if(v||g||(f=h+1),v&&g&&(p=h-1),!v&&g){l=y;break}d++}return l||s}(e,n.wordsWithComputedWidth,n.spaceWidth,e.width,e.scaleToFit):Qw(e.children)}return Qw(e.children)},t_=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&&qw(e,t)}(a,g);var n,r,i,o=Hw(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 Xw(Vw(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=Fw(t,Rw),h=this.state.wordsByLines;if(!gc(d.x)||!gc(d.y))return null;var m,v=d.x+(yc(n)?n:0),y=d.y+(yc(r)?r:0);switch(o){case"start":m=kw("calc(".concat(u,")"));break;case"middle":m=kw("calc(".concat((h.length-1)/2," * -").concat(l," + (").concat(u," / 2))"));break;default:m=kw("calc(".concat(h.length-1," * -").concat(l,")"))}var g=[];if(c){var b=h[0].width,x=this.props.width;g.push("scale(".concat((yc(x)?x/b:1)/b,")"))}return s&&g.push("rotate(".concat(s,", ").concat(v,", ").concat(y,")")),g.length&&(d.transform=g.join(" ")),e.createElement("text",zw({},$c(d,!0),{x:v,y:y,className:Ei("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:v,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:e_(e,n)}}return null}}],r&&Bw(n.prototype,r),i&&Bw(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();Xw(t_,"defaultProps",{x:0,y:0,lineHeight:"1em",capHeight:"0.71em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",fill:"#808080"});var n_=Lu;var r_=E((function(e,t){return n_(e,t)})),i_=ro;var o_=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&&!i_(a):n(a,c)))var c=a,s=o}return s};var a_=function(e,t){return e>t},c_=o_,s_=a_,l_=yf;var u_=function(e){return e&&e.length?c_(e,l_,s_):void 0},f_=E(u_);var p_=function(e,t){return e<t},d_=o_,h_=p_,m_=yf;var v_=function(e){return e&&e.length?d_(e,m_,h_):void 0},y_=E(v_),g_=Na,b_=Pf,x_=Ug,w_=Yi;var __=Ig,k_=function(e,t){return(w_(e)?g_:x_)(e,b_(t))};var S_=E((function(e,t){return __(k_(e,t),1)}));function E_(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function O_(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function A_(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=E_,n=(t,n)=>E_(e(t),n),r=(t,n)=>e(t)-n):(t=e===E_||e===O_?e:C_,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 C_(){return 0}function T_(e){return null===e?NaN:+e}const P_=A_(E_).right;A_(T_).center;class D_ extends Map{constructor(e,t=M_){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(j_(this,e))}has(e){return super.has(j_(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 j_({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function M_(e){return null!==e&&"object"==typeof e?e.valueOf():e}function N_(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:e>t?1:0)}const I_=Math.sqrt(50),R_=Math.sqrt(10),L_=Math.sqrt(2);function z_(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>=I_?10:o>=R_?5:o>=L_?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?z_(e,t,2*n):[c,s,l]}function F_(e,t,n){if(!((n=+n)>0))return[];if((e=+e)===(t=+t))return[e];const r=t<e,[i,o,a]=r?z_(t,e,n):z_(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 B_(e,t,n){return z_(e=+e,t=+t,n=+n)[2]}function q_(e,t,n){n=+n;const r=(t=+t)<(e=+e),i=r?B_(t,e,n):B_(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function H_(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 V_(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 U_(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?N_:function(e=E_){if(e===E_)return N_;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);U_(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(W_(e,n,t),i(e[r],o)>0&&W_(e,n,r);a<c;){for(W_(e,a,c),++a,--c;i(e[a],o)<0;)++a;for(;i(e[c],o)>0;)--c}0===i(e[n],o)?W_(e,n,c):(++c,W_(e,c,r)),c<=t&&(n=c+1),t<=c&&(r=c-1)}return e}function W_(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function G_(e,t,n=T_){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 $_(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function Y_(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 X_=Symbol("implicit");function Z_(){var e=new D_,t=[],n=[],r=X_;function i(i){let o=e.get(i);if(void 0===o){if(r!==X_)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 D_;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 Z_(t,n).unknown(r)},$_.apply(i,arguments),i}function K_(){var e,t,n=Z_().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 K_(r(),[o,a]).round(c).paddingInner(s).paddingOuter(l).align(u)},$_.apply(f(),arguments)}function J_(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return J_(t())},e}function Q_(){return J_(K_.apply(null,arguments).paddingInner(1))}function ek(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function tk(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function nk(){}var rk=.7,ik=1/rk,ok="\\s*([+-]?\\d+)\\s*",ak="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ck="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",sk=/^#([0-9a-f]{3,8})$/,lk=new RegExp(`^rgb\\(${ok},${ok},${ok}\\)$`),uk=new RegExp(`^rgb\\(${ck},${ck},${ck}\\)$`),fk=new RegExp(`^rgba\\(${ok},${ok},${ok},${ak}\\)$`),pk=new RegExp(`^rgba\\(${ck},${ck},${ck},${ak}\\)$`),dk=new RegExp(`^hsl\\(${ak},${ck},${ck}\\)$`),hk=new RegExp(`^hsla\\(${ak},${ck},${ck},${ak}\\)$`),mk={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 vk(){return this.rgb().formatHex()}function yk(){return this.rgb().formatRgb()}function gk(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=sk.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?bk(t):3===n?new kk(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?xk(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?xk(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=lk.exec(e))?new kk(t[1],t[2],t[3],1):(t=uk.exec(e))?new kk(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=fk.exec(e))?xk(t[1],t[2],t[3],t[4]):(t=pk.exec(e))?xk(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=dk.exec(e))?Tk(t[1],t[2]/100,t[3]/100,1):(t=hk.exec(e))?Tk(t[1],t[2]/100,t[3]/100,t[4]):mk.hasOwnProperty(e)?bk(mk[e]):"transparent"===e?new kk(NaN,NaN,NaN,0):null}function bk(e){return new kk(e>>16&255,e>>8&255,255&e,1)}function xk(e,t,n,r){return r<=0&&(e=t=n=NaN),new kk(e,t,n,r)}function wk(e){return e instanceof nk||(e=gk(e)),e?new kk((e=e.rgb()).r,e.g,e.b,e.opacity):new kk}function _k(e,t,n,r){return 1===arguments.length?wk(e):new kk(e,t,n,null==r?1:r)}function kk(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Sk(){return`#${Ck(this.r)}${Ck(this.g)}${Ck(this.b)}`}function Ek(){const e=Ok(this.opacity);return`${1===e?"rgb(":"rgba("}${Ak(this.r)}, ${Ak(this.g)}, ${Ak(this.b)}${1===e?")":`, ${e})`}`}function Ok(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ak(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ck(e){return((e=Ak(e))<16?"0":"")+e.toString(16)}function Tk(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Dk(e,t,n,r)}function Pk(e){if(e instanceof Dk)return new Dk(e.h,e.s,e.l,e.opacity);if(e instanceof nk||(e=gk(e)),!e)return new Dk;if(e instanceof Dk)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 Dk(a,c,s,e.opacity)}function Dk(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function jk(e){return(e=(e||0)%360)<0?e+360:e}function Mk(e){return Math.max(0,Math.min(1,e||0))}function Nk(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}ek(nk,gk,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:vk,formatHex:vk,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Pk(this).formatHsl()},formatRgb:yk,toString:yk}),ek(kk,_k,tk(nk,{brighter(e){return e=null==e?ik:Math.pow(ik,e),new kk(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?rk:Math.pow(rk,e),new kk(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new kk(Ak(this.r),Ak(this.g),Ak(this.b),Ok(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:Sk,formatHex:Sk,formatHex8:function(){return`#${Ck(this.r)}${Ck(this.g)}${Ck(this.b)}${Ck(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ek,toString:Ek})),ek(Dk,(function(e,t,n,r){return 1===arguments.length?Pk(e):new Dk(e,t,n,null==r?1:r)}),tk(nk,{brighter(e){return e=null==e?ik:Math.pow(ik,e),new Dk(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?rk:Math.pow(rk,e),new Dk(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 kk(Nk(e>=240?e-240:e+120,i,r),Nk(e,i,r),Nk(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Dk(jk(this.h),Mk(this.s),Mk(this.l),Ok(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=Ok(this.opacity);return`${1===e?"hsl(":"hsla("}${jk(this.h)}, ${100*Mk(this.s)}%, ${100*Mk(this.l)}%${1===e?")":`, ${e})`}`}}));const Ik=Math.PI/180,Rk=180/Math.PI,Lk=.96422,zk=1,Fk=.82521,Bk=4/29,qk=6/29,Hk=3*qk*qk,Vk=qk*qk*qk;function Uk(e){if(e instanceof Wk)return new Wk(e.l,e.a,e.b,e.opacity);if(e instanceof Zk)return Kk(e);e instanceof kk||(e=wk(e));var t,n,r=Xk(e.r),i=Xk(e.g),o=Xk(e.b),a=Gk((.2225045*r+.7168786*i+.0606169*o)/zk);return r===i&&i===o?t=n=a:(t=Gk((.4360747*r+.3850649*i+.1430804*o)/Lk),n=Gk((.0139322*r+.0971045*i+.7141733*o)/Fk)),new Wk(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Wk(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Gk(e){return e>Vk?Math.pow(e,1/3):e/Hk+Bk}function $k(e){return e>qk?e*e*e:Hk*(e-Bk)}function Yk(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Xk(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Zk(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Kk(e){if(isNaN(e.h))return new Wk(e.l,0,0,e.opacity);var t=e.h*Ik;return new Wk(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}ek(Wk,(function(e,t,n,r){return 1===arguments.length?Uk(e):new Wk(e,t,n,null==r?1:r)}),tk(nk,{brighter(e){return new Wk(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Wk(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 kk(Yk(3.1338561*(t=Lk*$k(t))-1.6168667*(e=zk*$k(e))-.4906146*(n=Fk*$k(n))),Yk(-.9787684*t+1.9161415*e+.033454*n),Yk(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),ek(Zk,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Zk)return new Zk(e.h,e.c,e.l,e.opacity);if(e instanceof Wk||(e=Uk(e)),0===e.a&&0===e.b)return new Zk(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Rk;return new Zk(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Zk(e,t,n,null==r?1:r)}),tk(nk,{brighter(e){return new Zk(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Zk(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Kk(this).rgb()}}));var Jk=-.14861,Qk=1.78277,eS=-.29227,tS=-.90649,nS=1.97294,rS=nS*tS,iS=nS*Qk,oS=Qk*eS-tS*Jk;function aS(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof cS)return new cS(e.h,e.s,e.l,e.opacity);e instanceof kk||(e=wk(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(oS*r+rS*t-iS*n)/(oS+rS-iS),o=r-i,a=(nS*(n-i)-eS*o)/tS,c=Math.sqrt(a*a+o*o)/(nS*i*(1-i)),s=c?Math.atan2(a,o)*Rk-120:NaN;return new cS(s<0?s+360:s,c,i,e.opacity)}(e):new cS(e,t,n,null==r?1:r)}function cS(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}ek(cS,aS,tk(nk,{brighter(e){return e=null==e?ik:Math.pow(ik,e),new cS(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?rk:Math.pow(rk,e),new cS(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*Ik,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new kk(255*(t+n*(Jk*r+Qk*i)),255*(t+n*(eS*r+tS*i)),255*(t+n*(nS*r)),this.opacity)}}));var sS=e=>()=>e;function lS(e,t){return function(n){return e+n*t}}function uS(e){return 1==(e=+e)?fS: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):sS(isNaN(t)?n:t)}}function fS(e,t){var n=t-e;return n?lS(e,n):sS(isNaN(e)?t:e)}var pS=function e(t){var n=uS(t);function r(e,t){var r=n((e=_k(e)).r,(t=_k(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=fS(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 dS(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 hS(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]=wS(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 mS(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function vS(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function yS(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]=wS(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}}var gS=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,bS=new RegExp(gS.source,"g");function xS(e,t){var n,r,i,o=gS.lastIndex=bS.lastIndex=0,a=-1,c=[],s=[];for(e+="",t+="";(n=gS.exec(e))&&(r=bS.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:vS(n,r)})),o=bS.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 wS(e,t){var n,r=typeof t;return null==t||"boolean"===r?sS(t):("number"===r?vS:"string"===r?(n=gk(t))?(t=n,pS):xS:t instanceof gk?pS:t instanceof Date?mS:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?dS:Array.isArray(t)?hS:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?yS:vS)(e,t)}function _S(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function kS(e){return((e=Math.exp(e))+1/e)/2}function SS(e){return function t(n){function r(t,r){var i=e((t=aS(t)).h,(r=aS(r)).h),o=fS(t.s,r.s),a=fS(t.l,r.l),c=fS(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 ES(e,t){void 0===t&&(t=e,e=wS);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 OS(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 v=Math.sqrt(m),y=(p*p-l*l+r*m)/(2*l*n*v),g=(p*p-l*l-r*m)/(2*p*n*v),b=Math.log(Math.sqrt(y*y+1)-y),x=Math.log(Math.sqrt(g*g+1)-g);a=(x-b)/t,o=function(e){var r=e*a,i=kS(b),o=l/(n*v)*(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/kS(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),SS((function(e,t){var n=t-e;return n?lS(e,n>180||n<-180?n-360*Math.round(n/360):n):sS(isNaN(e)?t:e)})),SS(fS);var AS=[0,1];function CS(e){return e}function TS(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function PS(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=TS(i,r),o=n(a,o)):(r=TS(r,i),o=n(o,a)),function(e){return o(r(e))}}function DS(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]=TS(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(t){var n=P_(e,t,1,r)-1;return o[n](i[n](t))}}function jS(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function MS(){var e,t,n,r,i,o,a=AS,c=AS,s=wS,l=CS;function u(){var e=Math.min(a.length,c.length);return l!==CS&&(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?DS:PS,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),vS)))(n)))},f.domain=function(e){return arguments.length?(a=Array.from(e,OS),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=_S,u()},f.clamp=function(e){return arguments.length?(l=!!e||CS,u()):l!==CS},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 NS(){return MS()(CS,CS)}function IS(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=IS(Math.abs(e)))?e[1]:NaN}var LS,zS=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function FS(e){if(!(t=zS.exec(e)))throw new Error("invalid format: "+e);var t;return new BS({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 BS(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 qS(e,t){var n=IS(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")}FS.prototype=BS.prototype,BS.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 HS={"%":(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)=>qS(100*e,t),r:qS,s:function(e,t){var n=IS(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(LS=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")+IS(e,Math.max(0,t+o-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function VS(e){return e}var US,WS,GS,$S=Array.prototype.map,YS=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function XS(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?VS:(t=$S.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?VS:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}($S.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=FS(e)).fill,n=e.align,f=e.sign,p=e.symbol,d=e.zero,h=e.width,m=e.comma,v=e.precision,y=e.trim,g=e.type;"n"===g?(m=!0,g="g"):HS[g]||(void 0===v&&(v=12),y=!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=HS[g],_=/[defgprs%]/.test(g);function k(e){var i,o,s,p=b,k=x;if("c"===g)k=w(e)+k,e="";else{var S=(e=+e)<0||1/e<0;if(e=isNaN(e)?u:w(Math.abs(e),v),y&&(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,k=("s"===g?YS[8+LS/3]:"")+k+(S&&"("===f?")":""),_)for(i=-1,o=e.length;++i<o;)if(48>(s=e.charCodeAt(i))||s>57){k=(46===s?a+e.slice(i+1):e.slice(i))+k,e=e.slice(0,i);break}}m&&!d&&(e=r(e,1/0));var E=p.length+e.length+k.length,O=E<h?new Array(h-E+1).join(t):"";switch(m&&d&&(e=r(O+e,O.length?h-k.length:1/0),O=""),n){case"<":e=p+e+k+O;break;case"=":e=p+O+e+k;break;case"^":e=O.slice(0,E=O.length>>1)+p+e+k+O.slice(E);break;default:e=O+p+e+k}return c(e)}return v=void 0===v?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),k.toString=function(){return e+""},k}return{format:f,formatPrefix:function(e,t){var n=f(((e=FS(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(RS(t)/3))),i=Math.pow(10,-r),o=YS[8+r/3];return function(e){return n(i*e)+o}}}}function ZS(e,t,n,r){var i,o=q_(e,t,n);switch((r=FS(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),GS(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 WS(r)}function KS(e){var t=e.domain;return e.ticks=function(e){var n=t();return F_(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return ZS(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=B_(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 JS(){var e=NS();return e.copy=function(){return jS(e,JS())},$_.apply(e,arguments),KS(e)}function QS(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 eE(e){return Math.log(e)}function tE(e){return Math.exp(e)}function nE(e){return-Math.log(-e)}function rE(e){return-Math.exp(-e)}function iE(e){return isFinite(e)?+("1e"+e):e<0?0:e}function oE(e){return(t,n)=>-e(-t,n)}function aE(e){const t=e(eE,tE),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?iE:e===Math.E?Math.exp:t=>Math.pow(e,t)}(o),n()[0]<0?(r=oE(r),i=oE(i),e(nE,rE)):e(eE,tE),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=F_(a,c,d))}else h=F_(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=FS(n)).precision||(n.trim=!0),n=WS(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(QS(n(),{floor:e=>i(Math.floor(r(e))),ceil:e=>i(Math.ceil(r(e)))})),t}function cE(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function sE(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function lE(e){var t=1,n=e(cE(t),sE(t));return n.constant=function(n){return arguments.length?e(cE(t=+n),sE(t)):t},KS(n)}function uE(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function fE(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function pE(e){return e<0?-e*e:e*e}function dE(e){var t=e(CS,CS),n=1;return t.exponent=function(t){return arguments.length?1===(n=+t)?e(CS,CS):.5===n?e(fE,pE):e(uE(n),uE(1/n)):n},KS(t)}function hE(){var e=dE(MS());return e.copy=function(){return jS(e,hE()).exponent(e.exponent())},$_.apply(e,arguments),e}function mE(e){return Math.sign(e)*e*e}US=XS({thousands:",",grouping:[3],currency:["$",""]}),WS=US.format,GS=US.formatPrefix;const vE=new Date,yE=new Date;function gE(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=>gE((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)=>(vE.setTime(+t),yE.setTime(+r),e(vE),e(yE),Math.floor(n(vE,yE))),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 bE=gE((()=>{}),((e,t)=>{e.setTime(+e+t)}),((e,t)=>t-e));bE.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?gE((t=>{t.setTime(Math.floor(t/e)*e)}),((t,n)=>{t.setTime(+t+n*e)}),((t,n)=>(n-t)/e)):bE:null),bE.range;const xE=1e3,wE=6e4,_E=36e5,kE=864e5,SE=6048e5,EE=2592e6,OE=31536e6,AE=gE((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*xE)}),((e,t)=>(t-e)/xE),(e=>e.getUTCSeconds()));AE.range;const CE=gE((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*xE)}),((e,t)=>{e.setTime(+e+t*wE)}),((e,t)=>(t-e)/wE),(e=>e.getMinutes()));CE.range;const TE=gE((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*wE)}),((e,t)=>(t-e)/wE),(e=>e.getUTCMinutes()));TE.range;const PE=gE((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*xE-e.getMinutes()*wE)}),((e,t)=>{e.setTime(+e+t*_E)}),((e,t)=>(t-e)/_E),(e=>e.getHours()));PE.range;const DE=gE((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*_E)}),((e,t)=>(t-e)/_E),(e=>e.getUTCHours()));DE.range;const jE=gE((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*wE)/kE),(e=>e.getDate()-1));jE.range;const ME=gE((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/kE),(e=>e.getUTCDate()-1));ME.range;const NE=gE((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/kE),(e=>Math.floor(e/kE)));function IE(e){return gE((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())*wE)/SE))}NE.range;const RE=IE(0),LE=IE(1),zE=IE(2),FE=IE(3),BE=IE(4),qE=IE(5),HE=IE(6);function VE(e){return gE((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)/SE))}RE.range,LE.range,zE.range,FE.range,BE.range,qE.range,HE.range;const UE=VE(0),WE=VE(1),GE=VE(2),$E=VE(3),YE=VE(4),XE=VE(5),ZE=VE(6);UE.range,WE.range,GE.range,$E.range,YE.range,XE.range,ZE.range;const KE=gE((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()));KE.range;const JE=gE((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()));JE.range;const QE=gE((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()));QE.every=e=>isFinite(e=Math.floor(e))&&e>0?gE((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,QE.range;const eO=gE((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 tO(e,t,n,r,i,o){const a=[[AE,1,xE],[AE,5,5e3],[AE,15,15e3],[AE,30,3e4],[o,1,wE],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,_E],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,kE],[r,2,1728e5],[n,1,SE],[t,1,EE],[t,3,7776e6],[e,1,OE]];function c(t,n,r){const i=Math.abs(n-t)/r,o=A_((([,,e])=>e)).right(a,i);if(o===a.length)return e.every(q_(t/OE,n/OE,r));if(0===o)return bE.every(Math.max(q_(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]}eO.every=e=>isFinite(e=Math.floor(e))&&e>0?gE((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,eO.range;const[nO,rO]=tO(eO,JE,UE,NE,DE,TE),[iO,oO]=tO(QE,KE,RE,jE,PE,CE);function aO(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 cO(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 sO(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var lO,uO,fO,pO,dO={"-":"",_:" ",0:"0"},hO=/^\s*\d+/,mO=/^%/,vO=/[\\^$*+?|[\]().{}]/g;function yO(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 gO(e){return e.replace(vO,"\\$&")}function bO(e){return new RegExp("^(?:"+e.map(gO).join("|")+")","i")}function xO(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function wO(e,t,n){var r=hO.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function _O(e,t,n){var r=hO.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function kO(e,t,n){var r=hO.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function SO(e,t,n){var r=hO.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function EO(e,t,n){var r=hO.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function OO(e,t,n){var r=hO.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function AO(e,t,n){var r=hO.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function CO(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 TO(e,t,n){var r=hO.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function PO(e,t,n){var r=hO.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function DO(e,t,n){var r=hO.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function jO(e,t,n){var r=hO.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function MO(e,t,n){var r=hO.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function NO(e,t,n){var r=hO.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function IO(e,t,n){var r=hO.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function RO(e,t,n){var r=hO.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function LO(e,t,n){var r=hO.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function zO(e,t,n){var r=mO.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function FO(e,t,n){var r=hO.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function BO(e,t,n){var r=hO.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function qO(e,t){return yO(e.getDate(),t,2)}function HO(e,t){return yO(e.getHours(),t,2)}function VO(e,t){return yO(e.getHours()%12||12,t,2)}function UO(e,t){return yO(1+jE.count(QE(e),e),t,3)}function WO(e,t){return yO(e.getMilliseconds(),t,3)}function GO(e,t){return WO(e,t)+"000"}function $O(e,t){return yO(e.getMonth()+1,t,2)}function YO(e,t){return yO(e.getMinutes(),t,2)}function XO(e,t){return yO(e.getSeconds(),t,2)}function ZO(e){var t=e.getDay();return 0===t?7:t}function KO(e,t){return yO(RE.count(QE(e)-1,e),t,2)}function JO(e){var t=e.getDay();return t>=4||0===t?BE(e):BE.ceil(e)}function QO(e,t){return e=JO(e),yO(BE.count(QE(e),e)+(4===QE(e).getDay()),t,2)}function eA(e){return e.getDay()}function tA(e,t){return yO(LE.count(QE(e)-1,e),t,2)}function nA(e,t){return yO(e.getFullYear()%100,t,2)}function rA(e,t){return yO((e=JO(e)).getFullYear()%100,t,2)}function iA(e,t){return yO(e.getFullYear()%1e4,t,4)}function oA(e,t){var n=e.getDay();return yO((e=n>=4||0===n?BE(e):BE.ceil(e)).getFullYear()%1e4,t,4)}function aA(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+yO(t/60|0,"0",2)+yO(t%60,"0",2)}function cA(e,t){return yO(e.getUTCDate(),t,2)}function sA(e,t){return yO(e.getUTCHours(),t,2)}function lA(e,t){return yO(e.getUTCHours()%12||12,t,2)}function uA(e,t){return yO(1+ME.count(eO(e),e),t,3)}function fA(e,t){return yO(e.getUTCMilliseconds(),t,3)}function pA(e,t){return fA(e,t)+"000"}function dA(e,t){return yO(e.getUTCMonth()+1,t,2)}function hA(e,t){return yO(e.getUTCMinutes(),t,2)}function mA(e,t){return yO(e.getUTCSeconds(),t,2)}function vA(e){var t=e.getUTCDay();return 0===t?7:t}function yA(e,t){return yO(UE.count(eO(e)-1,e),t,2)}function gA(e){var t=e.getUTCDay();return t>=4||0===t?YE(e):YE.ceil(e)}function bA(e,t){return e=gA(e),yO(YE.count(eO(e),e)+(4===eO(e).getUTCDay()),t,2)}function xA(e){return e.getUTCDay()}function wA(e,t){return yO(WE.count(eO(e)-1,e),t,2)}function _A(e,t){return yO(e.getUTCFullYear()%100,t,2)}function kA(e,t){return yO((e=gA(e)).getUTCFullYear()%100,t,2)}function SA(e,t){return yO(e.getUTCFullYear()%1e4,t,4)}function EA(e,t){var n=e.getUTCDay();return yO((e=n>=4||0===n?YE(e):YE.ceil(e)).getUTCFullYear()%1e4,t,4)}function OA(){return"+0000"}function AA(){return"%"}function CA(e){return+e}function TA(e){return Math.floor(+e/1e3)}!function(e){lO=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=bO(i),u=xO(i),f=bO(o),p=xO(o),d=bO(a),h=xO(a),m=bO(c),v=xO(c),y=bO(s),g=xO(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:qO,e:qO,f:GO,g:rA,G:oA,H:HO,I:VO,j:UO,L:WO,m:$O,M:YO,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:CA,s:TA,S:XO,u:ZO,U:KO,V:QO,w:eA,W:tA,x:null,X:null,y:nA,Y:iA,Z:aA,"%":AA},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:cA,e:cA,f:pA,g:kA,G:EA,H:sA,I:lA,j:uA,L:fA,m:dA,M:hA,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:CA,s:TA,S:mA,u:vA,U:yA,V:bA,w:xA,W:wA,x:null,X:null,y:_A,Y:SA,Z:OA,"%":AA},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=y.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=v.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return S(e,t,n,r)},d:DO,e:DO,f:LO,g:AO,G:OO,H:MO,I:MO,j:jO,L:RO,m:PO,M:NO,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:TO,Q:FO,s:BO,S:IO,u:_O,U:kO,V:SO,w:wO,W:EO,x:function(e,t,r){return S(e,n,t,r)},X:function(e,t,n){return S(e,r,t,n)},y:AO,Y:OO,Z:CO,"%":zO};function _(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=dO[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 k(e,t){return function(n){var r,i,o=sO(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=cO(sO(o.y,0,1))).getUTCDay(),r=i>4||0===i?WE.ceil(r):WE(r),r=ME.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=aO(sO(o.y,0,1))).getDay(),r=i>4||0===i?LE.ceil(r):LE(r),r=jE.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?cO(sO(o.y,0,1)).getUTCDay():aO(sO(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,cO(o)):aO(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 dO?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=_(n,b),b.X=_(r,b),b.c=_(t,b),x.x=_(n,x),x.X=_(r,x),x.c=_(t,x),{format:function(e){var t=_(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=k(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=_(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=k(e+="",!0);return t.toString=function(){return e},t}}}(e),uO=lO.format,lO.parse,fO=lO.utcFormat,pO=lO.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 PA="%Y-%m-%dT%H:%M:%S.%LZ";function DA(e){return new Date(e)}function jA(e){return e instanceof Date?+e:+new Date(+e)}function MA(e,t,n,r,i,o,a,c,s,l){var u=NS(),f=u.invert,p=u.domain,d=l(".%L"),h=l(":%S"),m=l("%I:%M"),v=l("%I %p"),y=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?v:r(e)<e?i(e)<e?y: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,jA)):p().map(DA)},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(QS(n,e)):u},u.copy=function(){return jS(u,MA(e,t,n,r,i,o,a,c,s,l))},u}function NA(){var e,t,n,r,i,o=0,a=1,c=CS,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(wS),l.rangeRound=u(_S),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 IA(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function RA(){var e=dE(NA());return e.copy=function(){return IA(e,RA()).exponent(e.exponent())},Y_.apply(e,arguments)}function LA(){var e,t,n,r,i,o,a,c=0,s=.5,l=1,u=1,f=CS,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=ES(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(wS),d.rangeRound=h(_S),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 zA(){var e=dE(LA());return e.copy=function(){return IA(e,zA()).exponent(e.exponent())},Y_.apply(e,arguments)}Date.prototype.toISOString||fO(PA),+new Date("2000-01-01T00:00:00.000Z")||pO(PA);var FA,BA=Object.freeze({__proto__:null,scaleBand:K_,scalePoint:Q_,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,OS),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,OS):[0,1],KS(r)},scaleLinear:JS,scaleLog:function e(){const t=aE(MS()).domain([1,10]);return t.copy=()=>jS(t,e()).base(t.base()),$_.apply(t,arguments),t},scaleSymlog:function e(){var t=lE(MS());return t.copy=function(){return jS(t,e()).constant(t.constant())},$_.apply(t,arguments)},scaleOrdinal:Z_,scaleImplicit:X_,scalePow:hE,scaleSqrt:function(){return hE.apply(null,arguments).exponent(.5)},scaleRadial:function e(){var t,n=NS(),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(mE(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,OS)).map(mE)),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)},$_.apply(o,arguments),KS(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]=G_(n,e/t);return a}function a(e){return null==e||isNaN(e=+e)?t:r[P_(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(E_),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)},$_.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[P_(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)},$_.apply(KS(c),arguments)},scaleThreshold:function e(){var t,n=[.5],r=[0,1],i=1;function o(e){return null!=e&&e<=e?r[P_(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)},$_.apply(o,arguments)},scaleTime:function(){return $_.apply(MA(iO,oO,QE,KE,RE,jE,PE,CE,AE,uO).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return $_.apply(MA(nO,rO,eO,JE,UE,ME,DE,TE,AE,fO).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},scaleSequential:function e(){var t=KS(NA()(CS));return t.copy=function(){return IA(t,e())},Y_.apply(t,arguments)},scaleSequentialLog:function e(){var t=aE(NA()).domain([1,10]);return t.copy=function(){return IA(t,e()).base(t.base())},Y_.apply(t,arguments)},scaleSequentialPow:RA,scaleSequentialSqrt:function(){return RA.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function e(){var t=lE(NA());return t.copy=function(){return IA(t,e()).constant(t.constant())},Y_.apply(t,arguments)},scaleSequentialQuantile:function e(){var t=[],n=CS;function r(e){if(null!=e&&!isNaN(e=+e))return n((P_(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(E_),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 V_(e);if(t>=1)return H_(e);var r,i=(r-1)*t,o=Math.floor(i),a=H_(U_(e,o).subarray(0,o+1));return a+(V_(e.subarray(o+1))-a)*(i-o)}}(t,r/e)))},r.copy=function(){return e(n).domain(t)},Y_.apply(r,arguments)},scaleDiverging:function e(){var t=KS(LA()(CS));return t.copy=function(){return IA(t,e())},Y_.apply(t,arguments)},scaleDivergingLog:function e(){var t=aE(LA()).domain([.1,1,10]);return t.copy=function(){return IA(t,e()).base(t.base())},Y_.apply(t,arguments)},scaleDivergingPow:zA,scaleDivergingSqrt:function(){return zA.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function e(){var t=lE(LA());return t.copy=function(){return IA(t,e()).constant(t.constant())},Y_.apply(t,arguments)},tickFormat:ZS}),qA={},HA={},VA=1e9,UA=!0,WA="[DecimalError] ",GA=WA+"Invalid argument: ",$A=WA+"Exponent out of range: ",YA=Math.floor,XA=Math.pow,ZA=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,KA=1e7,JA=7,QA=9007199254740991,eC=YA(QA/JA),tC={};function nC(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)),UA?pC(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/JA))>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)/KA|0,s[o]%=KA;for(n&&(s.unshift(n),++i),c=s.length;0==s[--c];)s.pop();return t.d=s,t.e=i,UA?pC(t,f):t}function rC(e,t,n){if(e!==~~e||e<t||e>n)throw Error(GA+e)}function iC(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=JA-r.length)&&(o+=lC(n)),o+=r;a=e[t],(n=JA-(r=a+"").length)&&(o+=lC(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return o+a}tC.absoluteValue=tC.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},tC.comparedTo=tC.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},tC.decimalPlaces=tC.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*JA;if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},tC.dividedBy=tC.div=function(e){return oC(this,new this.constructor(e))},tC.dividedToIntegerBy=tC.idiv=function(e){var t=this.constructor;return pC(oC(this,new t(e),0,1),t.precision)},tC.equals=tC.eq=function(e){return!this.cmp(e)},tC.exponent=function(){return cC(this)},tC.greaterThan=tC.gt=function(e){return this.cmp(e)>0},tC.greaterThanOrEqualTo=tC.gte=function(e){return this.cmp(e)>=0},tC.isInteger=tC.isint=function(){return this.e>this.d.length-2},tC.isNegative=tC.isneg=function(){return this.s<0},tC.isPositive=tC.ispos=function(){return this.s>0},tC.isZero=function(){return 0===this.s},tC.lessThan=tC.lt=function(e){return this.cmp(e)<0},tC.lessThanOrEqualTo=tC.lte=function(e){return this.cmp(e)<1},tC.logarithm=tC.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(FA))throw Error(WA+"NaN");if(n.s<1)throw Error(WA+(n.s?"NaN":"-Infinity"));return n.eq(FA)?new r(0):(UA=!1,t=oC(uC(n,o),uC(e,o),o),UA=!0,pC(t,i))},tC.minus=tC.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?dC(t,e):nC(t,(e.s=-e.s,e))},tC.modulo=tC.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(!(e=new r(e)).s)throw Error(WA+"NaN");return n.s?(UA=!1,t=oC(n,e,0,1).times(e),UA=!0,n.minus(t)):pC(new r(n),i)},tC.naturalExponential=tC.exp=function(){return aC(this)},tC.naturalLogarithm=tC.ln=function(){return uC(this)},tC.negated=tC.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},tC.plus=tC.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?nC(t,e):dC(t,(e.s=-e.s,e))},tC.precision=tC.sd=function(e){var t,n,r,i=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(GA+e);if(t=cC(i)+1,n=(r=i.d.length-1)*JA+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},tC.squareRoot=tC.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(WA+"NaN")}for(e=cC(c),UA=!1,0==(i=Math.sqrt(+c))||i==1/0?(((t=iC(c.d)).length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=YA((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(oC(c,o,a+2)).times(.5),iC(o.d).slice(0,a)===(t=iC(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&"4999"==t){if(pC(o,n+1,0),o.times(o).eq(c)){r=o;break}}else if("9999"!=t)break;a+=4}return UA=!0,pC(r,n)},tC.times=tC.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%KA|0,t=c/KA|0;o[i]=(o[i]+t)%KA|0}for(;!o[--a];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,UA?pC(e,f.precision):e},tC.toDecimalPlaces=tC.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(rC(e,0,VA),void 0===t?t=r.rounding:rC(t,0,8),pC(n,e+cC(n)+1,t))},tC.toExponential=function(e,t){var n,r=this,i=r.constructor;return void 0===e?n=hC(r,!0):(rC(e,0,VA),void 0===t?t=i.rounding:rC(t,0,8),n=hC(r=pC(new i(r),e+1,t),!0,e+1)),n},tC.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return void 0===e?hC(i):(rC(e,0,VA),void 0===t?t=o.rounding:rC(t,0,8),n=hC((r=pC(new o(i),e+cC(i)+1,t)).abs(),!1,e+cC(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)},tC.toInteger=tC.toint=function(){var e=this,t=e.constructor;return pC(new t(e),cC(e)+1,t.rounding)},tC.toNumber=function(){return+this},tC.toPower=tC.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(FA);if(!(c=new s(c)).s){if(e.s<1)throw Error(WA+"Infinity");return c}if(c.eq(FA))return c;if(r=s.precision,e.eq(FA))return pC(c,r);if(a=(t=e.e)>=(n=e.d.length-1),o=c.s,a){if((n=l<0?-l:l)<=QA){for(i=new s(FA),t=Math.ceil(r/JA+4),UA=!1;n%2&&mC((i=i.times(c)).d,t),0!==(n=YA(n/2));)mC((c=c.times(c)).d,t);return UA=!0,e.s<0?new s(FA).div(i):pC(i,r)}}else if(o<0)throw Error(WA+"NaN");return o=o<0&&1&e.d[Math.max(t,n)]?-1:1,c.s=1,UA=!1,i=e.times(uC(c,r+12)),UA=!0,(i=aC(i)).s=o,i},tC.toPrecision=function(e,t){var n,r,i=this,o=i.constructor;return void 0===e?r=hC(i,(n=cC(i))<=o.toExpNeg||n>=o.toExpPos):(rC(e,1,VA),void 0===t?t=o.rounding:rC(t,0,8),r=hC(i=pC(new o(i),e,t),e<=(n=cC(i))||n<=o.toExpNeg,e)),r},tC.toSignificantDigits=tC.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(rC(e,1,VA),void 0===t?t=n.rounding:rC(t,0,8)),pC(new n(this),e,t)},tC.toString=tC.valueOf=tC.val=tC.toJSON=tC[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=cC(e),n=e.constructor;return hC(e,t<=n.toExpNeg||t>=n.toExpPos)};var oC=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%KA|0,r=n/KA|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*KA+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,v,y,g,b,x,w,_,k,S,E=r.constructor,O=r.s==i.s?1:-1,A=r.d,C=i.d;if(!r.s)return new E(r);if(!i.s)throw Error(WA+"Division by zero");for(s=r.e-i.e,k=C.length,w=A.length,h=(d=new E(O)).d=[],l=0;C[l]==(A[l]||0);)++l;if(C[l]>(A[l]||0)&&--s,(g=null==o?o=E.precision:a?o+(cC(r)-cC(i))+1:o)<0)return new E(0);if(g=g/JA+2|0,l=0,1==k)for(u=0,C=C[0],g++;(l<w||u)&&g--;l++)b=u*KA+(A[l]||0),h[l]=b/C|0,u=b%C|0;else{for((u=KA/(C[0]+1)|0)>1&&(C=e(C,u),A=e(A,u),k=C.length,w=A.length),x=k,v=(m=A.slice(0,k)).length;v<k;)m[v++]=0;(S=C.slice()).unshift(0),_=C[0],C[1]>=KA/2&&++_;do{u=0,(c=t(C,m,k,v))<0?(y=m[0],k!=v&&(y=y*KA+(m[1]||0)),(u=y/_|0)>1?(u>=KA&&(u=KA-1),1==(c=t(f=e(C,u),m,p=f.length,v=m.length))&&(u--,n(f,k<p?S:C,p))):(0==u&&(c=u=1),f=C.slice()),(p=f.length)<v&&f.unshift(0),n(m,f,v),-1==c&&(c=t(C,m,k,v=m.length))<1&&(u++,n(m,k<v?S:C,v)),v=m.length):0===c&&(u++,m=[0]),h[l++]=u,c&&m[0]?m[v++]=A[x]||0:(m=[A[x]],v=1)}while((x++<w||void 0!==m[0])&&g--)}return h[0]||h.shift(),d.e=s,pC(d,a?o+cC(d)+1:o)}}();function aC(e,t){var n,r,i,o,a,c=0,s=0,l=e.constructor,u=l.precision;if(cC(e)>16)throw Error($A+cC(e));if(!e.s)return new l(FA);for(null==t?(UA=!1,a=u):a=t,o=new l(.03125);e.abs().gte(.1);)e=e.times(o),s+=5;for(a+=Math.log(XA(2,s))/Math.LN10*2+5|0,n=r=i=new l(FA),l.precision=a;;){if(r=pC(r.times(e),a),n=n.times(++c),iC((o=i.plus(oC(r,n,a))).d).slice(0,a)===iC(i.d).slice(0,a)){for(;s--;)i=pC(i.times(i),a);return l.precision=u,null==t?(UA=!0,pC(i,u)):i}i=o}}function cC(e){for(var t=e.e*JA,n=e.d[0];n>=10;n/=10)t++;return t}function sC(e,t,n){if(t>e.LN10.sd())throw UA=!0,n&&(e.precision=n),Error(WA+"LN10 precision limit exceeded");return pC(new e(e.LN10),t)}function lC(e){for(var t="";e--;)t+="0";return t}function uC(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(WA+(p.s?"NaN":"-Infinity"));if(p.eq(FA))return new h(0);if(null==t?(UA=!1,l=m):l=t,p.eq(10))return null==t&&(UA=!0),sC(h,l);if(l+=10,h.precision=l,r=(n=iC(d)).charAt(0),o=cC(p),!(Math.abs(o)<15e14))return s=sC(h,l+2,m).times(o+""),p=uC(new h(r+"."+n.slice(1)),l-10).plus(s),h.precision=m,null==t?(UA=!0,pC(p,m)):p;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=iC((p=p.times(e)).d)).charAt(0),f++;for(o=cC(p),r>1?(p=new h("0."+n),o++):p=new h(r+"."+n.slice(1)),c=a=p=oC(p.minus(FA),p.plus(FA),l),u=pC(p.times(p),l),i=3;;){if(a=pC(a.times(u),l),iC((s=c.plus(oC(a,new h(i),l))).d).slice(0,l)===iC(c.d).slice(0,l))return c=c.times(2),0!==o&&(c=c.plus(sC(h,l+2,m).times(o+""))),c=oC(c,new h(f),l),h.precision=m,null==t?(UA=!0,pC(c,m)):c;c=s,i+=2}}function fC(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=YA(n/JA),e.d=[],r=(n+1)%JA,n<0&&(r+=JA),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=JA;r<i;)e.d.push(+t.slice(r,r+=JA));t=t.slice(r),r=JA-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),UA&&(e.e>eC||e.e<-eC))throw Error($A+n)}else e.s=0,e.e=0,e.d=[0];return e}function pC(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+=JA,i=t,l=f[u=0];else{if((u=Math.ceil((r+1)/JA))>=(o=f.length))return e;for(l=o=f[u],a=1;o>=10;o/=10)a++;i=(r%=JA)-JA+a}if(void 0!==n&&(c=l/(o=XA(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/XA(10,a-i):0:f[u-1])%10&1||n==(e.s<0?8:7))),t<1||!f[0])return s?(o=cC(e),f.length=1,t=t-o-1,f[0]=XA(10,(JA-t%JA)%JA),e.e=YA(-t/JA)||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=XA(10,JA-r),f[u]=i>0?(l/XA(10,a-i)%XA(10,i)|0)*o:0),s)for(;;){if(0==u){(f[0]+=o)==KA&&(f[0]=1,++e.e);break}if(f[u]+=o,f[u]!=KA)break;f[u--]=0,o=1}for(r=f.length;0===f[--r];)f.pop();if(UA&&(e.e>eC||e.e<-eC))throw Error($A+cC(e));return e}function dC(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),UA?pC(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/JA),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]=KA-1;--s[o],s[i]+=KA}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,UA?pC(t,d):t):new p(0)}function hC(e,t,n){var r,i=cC(e),o=iC(e.d),a=o.length;return t?(n&&(r=n-a)>0?o=o.charAt(0)+"."+o.slice(1)+lC(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+lC(-i-1)+o,n&&(r=n-a)>0&&(o+=lC(r))):i>=a?(o+=lC(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+lC(r))):((r=i+1)<a&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-a)>0&&(i+1===a&&(o+="."),o+=lC(r))),e.s<0?"-"+o:o}function mC(e,t){if(e.length>t)return e.length=t,!0}function vC(e){if(!e||"object"!=typeof e)throw Error(WA+"Object expected");var t,n,r,i=["precision",1,VA,"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(!(YA(r)===r&&r>=i[t+1]&&r<=i[t+2]))throw Error(GA+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(GA+n+": "+r);this[n]=new this(r)}return this}var yC=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(GA+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])):fC(t,e.toString())}if("string"!=typeof e)throw Error(GA+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!ZA.test(e))throw Error(GA+e);fC(t,e)}if(o.prototype=tC,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=vC,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"});FA=new yC(1);var gC=yC,bC=O(Object.freeze({__proto__:null,get Decimal(){return yC},default:gC})),xC={};function wC(e){return function(e){if(Array.isArray(e))return _C(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 _C(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 _C(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 _C(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(xC,"__esModule",{value:!0}),xC.memoize=xC.reverse=xC.compose=xC.map=xC.range=xC.curry=xC.PLACE_HOLDER=void 0;var kC=function(e){return e},SC={"@@functional/placeholder":!0};xC.PLACE_HOLDER=SC;var EC=function(e){return e===SC},OC=function(e){return function t(){return 0===arguments.length||1===arguments.length&&EC(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},AC=function e(t,n){return 1===t?n:OC((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!==SC})).length;return a>=t?n.apply(void 0,i):e(t-a,OC((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 EC(e)?t.shift():e}));return n.apply(void 0,wC(o).concat(t))})))}))},CC=function(e){return AC(e.length,e)};xC.curry=CC;xC.range=function(e,t){for(var n=[],r=e;r<t;++r)n[r-e]=r;return n};var TC=CC((function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map((function(e){return t[e]})).map(e)}));xC.map=TC;xC.compose=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return kC;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))}};xC.reverse=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")};xC.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 PC={};Object.defineProperty(PC,"__esModule",{value:!0}),PC.default=void 0;var DC=function(e){return e&&e.__esModule?e:{default:e}}(bC),jC=xC;var MC=(0,jC.curry)((function(e,t,n){var r=+e;return r+n*(+t-r)})),NC=(0,jC.curry)((function(e,t,n){var r=t-+e;return(n-e)/(r=r||1/0)})),IC=(0,jC.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 DC.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 DC.default(e).abs().log(10).toNumber())+1},interpolateNumber:MC,uninterpolateNumber:NC,uninterpolateTruncation:IC};PC.default=RC,Object.defineProperty(HA,"__esModule",{value:!0}),HA.getTickValuesFixedDomain=HA.getTickValues=HA.getNiceTickValues=void 0;var LC=BC(bC),zC=xC,FC=BC(PC);function BC(e){return e&&e.__esModule?e:{default:e}}function qC(e){return function(e){if(Array.isArray(e))return UC(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||VC(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 HC(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)||VC(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 VC(e,t){if(e){if("string"==typeof e)return UC(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)?UC(e,t):void 0}}function UC(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 WC(e){var t=HC(e,2),n=t[0],r=t[1],i=n,o=r;return n>r&&(i=r,o=n),[i,o]}function GC(e,t,n){if(e.lte(0))return new LC.default(0);var r=FC.default.getDigitCount(e.toNumber()),i=new LC.default(10).pow(r),o=e.div(i),a=1!==r?.05:.1,c=new LC.default(Math.ceil(o.div(a).toNumber())).add(n).mul(a).mul(i);return t?c:new LC.default(Math.ceil(c))}function $C(e,t,n){var r=1,i=new LC.default(e);if(!i.isint()&&n){var o=Math.abs(e);o<1?(r=new LC.default(10).pow(FC.default.getDigitCount(e)-1),i=new LC.default(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new LC.default(Math.floor(e)))}else 0===e?i=new LC.default(Math.floor((t-1)/2)):n||(i=new LC.default(Math.floor(e)));var a=Math.floor((t-1)/2),c=(0,zC.compose)((0,zC.map)((function(e){return i.add(new LC.default(e-a).mul(r)).toNumber()})),zC.range);return c(0,t)}function YC(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 LC.default(0),tickMin:new LC.default(0),tickMax:new LC.default(0)};var o,a=GC(new LC.default(t).sub(e).div(n-1),r,i);o=e<=0&&t>=0?new LC.default(0):(o=new LC.default(e).add(t).div(2)).sub(new LC.default(o).mod(a));var c=Math.ceil(o.sub(e).div(a).toNumber()),s=Math.ceil(new LC.default(t).sub(o).div(a).toNumber()),l=c+s+1;return l>n?YC(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 LC.default(c).mul(a)),tickMax:o.add(new LC.default(s).mul(a))})}var XC=(0,zC.memoize)((function(e){var t=HC(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=HC(WC([n,r]),2),s=c[0],l=c[1];if(s===-1/0||l===1/0){var u=l===1/0?[s].concat(qC((0,zC.range)(0,i-1).map((function(){return 1/0})))):[].concat(qC((0,zC.range)(0,i-1).map((function(){return-1/0}))),[l]);return n>r?(0,zC.reverse)(u):u}if(s===l)return $C(s,i,o);var f=YC(s,l,a,o),p=f.step,d=f.tickMin,h=f.tickMax,m=FC.default.rangeStep(d,h.add(new LC.default(.1).mul(p)),p);return n>r?(0,zC.reverse)(m):m}));HA.getNiceTickValues=XC;var ZC=(0,zC.memoize)((function(e){var t=HC(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=HC(WC([n,r]),2),s=c[0],l=c[1];if(s===-1/0||l===1/0)return[n,r];if(s===l)return $C(s,i,o);var u=GC(new LC.default(l).sub(s).div(a-1),o,0),f=(0,zC.compose)((0,zC.map)((function(e){return new LC.default(s).add(new LC.default(e).mul(u)).toNumber()})),zC.range),p=f(0,a).filter((function(e){return e>=s&&e<=l}));return n>r?(0,zC.reverse)(p):p}));HA.getTickValues=ZC;var KC=(0,zC.memoize)((function(e,t){var n=HC(e,2),r=n[0],i=n[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=HC(WC([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=GC(new LC.default(s).sub(c).div(l-1),o,0),f=[].concat(qC(FC.default.rangeStep(new LC.default(c),new LC.default(s).sub(new LC.default(.99).mul(u)),u)),[s]);return r>i?(0,zC.reverse)(f):f}));HA.getTickValuesFixedDomain=KC,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=HA}(qA);var JC=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function QC(){return QC=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},QC.apply(this,arguments)}function eT(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 tT(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 tT(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 tT(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 nT(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 rT(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=nT(t,JC),f=$c(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 v,y,g=[];if(Array.isArray(m)){var b=eT(m,2);v=b[0],y=b[1]}else v=y=m;if("vertical"===r){var x=s.scale,w=d+n,_=w+i,k=w-i,S=x(h-v),E=x(h+y);g.push({x1:E,y1:_,x2:E,y2:k}),g.push({x1:S,y1:w,x2:E,y2:w}),g.push({x1:S,y1:_,x2:S,y2:k})}else if("horizontal"===r){var O=l.scale,A=p+n,C=A-i,T=A+i,P=O(h-v),D=O(h+y);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(is,QC({className:"recharts-errorBar",key:"bar-".concat(a)},f),g.map((function(t,n){return e.createElement("line",QC({},t,{key:"line-".concat(n)}))})))}));return e.createElement(is,{className:"recharts-errorBars"},p)}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)}function oT(e){return function(e){if(Array.isArray(e))return aT(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 aT(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 aT(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 aT(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 cT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cT(Object(n),!0).forEach((function(t){lT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lT(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 uT(e,t,n){return rc(e)||rc(t)?n:gc(t)?tc(e,t,n):$i(t)?t(e):n}function fT(e,t,n,r){var i=S_(e,(function(e){return uT(e,t)}));if("number"===n){var o=i.filter((function(e){return yc(e)||parseFloat(e)}));return o.length?[y_(o),f_(o)]:[1/0,-1/0]}return(r?i.filter((function(e){return!rc(e)})):i).map((function(e){return gc(e)||e instanceof Date?e:""}))}rT.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},rT.displayName="ErrorBar";var pT=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},dT=function(e){var t,n=e.children,r=e.formattedGraphicalItems,i=e.legendWidth,o=e.legendContent,a=Hc(n,kh);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:pT(t),value:i||r,payload:t.props}})),sT(sT(sT({},a.props),kh.getWithHeight(a,i)),{},{payload:t,item:a})):null},hT=function(e,t,n,r,i){var o=qc(t.props.children,rT).filter((function(e){return function(e,t,n){return!!rc(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=uT(t,n,0),i=Xi(r)?[y_(r),f_(r)]:[r,r],o=a.reduce((function(e,n){var r=uT(t,n,0),o=i[0]-Math.abs(Xi(r)?r[0]:r),a=i[1]+Math.abs(Xi(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},mT=function(e,t,n,r,i){var o=t.map((function(t){var o=t.props.dataKey;return"number"===n&&o&&hT(e,t,o,r)||fT(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}),[])},vT=function(e,t){return"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t},yT=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},gT=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*mc(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!hc(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}}))},bT=function(e,t,n){var r;return $i(n)?r=n:$i(t)&&(r=t),$i(e)||r?function(t,n,i,o){$i(e)&&e(t,n,i,o),$i(r)&&r(t,n,i,o)}:null},xT=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:K_(),realScaleType:"band"}:"radial"===o&&"angleAxis"===a?{scale:JS(),realScaleType:"linear"}:"category"===i&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!n)?{scale:Q_(),realScaleType:"point"}:"category"===i?{scale:K_(),realScaleType:"band"}:{scale:JS(),realScaleType:"linear"};if(eo(r)){var c="scale".concat(Cp(r));return{scale:(BA[c]||Q_)(),realScaleType:BA[c]?c:"point"}}return $i(r)?{scale:r}:{scale:Q_(),realScaleType:"point"}},wT=1e-4,_T=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])-wT,o=Math.max(r[0],r[1])+wT,a=e(t[0]),c=e(t[n-1]);(a<i||a>o||c<i||c>o)&&e.domain([t[0],t[n-1]])}},kT=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},ST=function(e,t){if(!t||2!==t.length||!yc(t[0])||!yc(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(!yc(e[0])||e[0]<n)&&(i[0]=n),(!yc(e[1])||e[1]>r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]<n&&(i[1]=n),i},ET={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=hc(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}Ld(e,t)}},none:Ld,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}Ld(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,Ld(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=hc(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)}}},OT=function(e,t,n){var r=t.map((function(e){return e.props.dataKey})),i=function(){var e=Tp([]),t=zd,n=Ld,r=Fd;function i(i){var o,a,c=Array.from(e.apply(this,arguments),Bd),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=Hp(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:Tp(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r="function"==typeof e?e:Tp(+e),i):r},i.order=function(e){return arguments.length?(t=null==e?zd:"function"==typeof e?e:Tp(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=null==e?Ld:e,i):n},i}().keys(r).value((function(e,t){return+uT(e,t,0)})).order(zd).offset(ET[n]);return i(e)},AT=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=qA.getNiceTickValues(s,i,a);return e.domain([y_(l),f_(l)]),{niceTicks:l}}if(i&&"number"===r){var u=e.domain();return{niceTicks:qA.getTickValuesFixedDomain(u,i,a)}}return null},CT=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&&!rc(i[t.dataKey])){var c=Sc(n,"value",i[t.dataKey]);if(c)return c.coordinate+r/2}return n[o]?n[o].coordinate+r/2:null}var s=uT(i,rc(a)?t.dataKey:a);return rc(s)?null:t.scale(s)},TT=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=uT(o,t.dataKey,t.domain[a]);return rc(c)?null:t.scale(c)-i/2+r},PT=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]},DT=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[y_(t.concat([e[0]]).filter(yc)),f_(t.concat([e[1]]).filter(yc))]}),[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}))},jT=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,MT=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,NT=function(e,t,n){if($i(e))return e(t,n);if(!Xi(e))return t;var r=[];if(yc(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(jT.test(e[0])){var i=+jT.exec(e[0])[1];r[0]=t[0]-i}else $i(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if(yc(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(MT.test(e[1])){var o=+MT.exec(e[1])[1];r[1]=t[1]+o}else $i(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},IT=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=jb(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?r_(e,tc(n,"type.defaultProps.domain"))?t:e:t},LT=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 sT(sT({},$c(e)),{},{dataKey:r,unit:o,formatter:a,name:i||r,color:pT(e),value:uT(t,r),type:c,payload:t,chartType:s})};function zT(e){return zT="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},zT(e)}function FT(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 BT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?FT(Object(n),!0).forEach((function(t){qT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qT(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==zT(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==zT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===zT(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HT(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 VT(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 VT(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 VT(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 UT=Math.PI/180,WT=function(e){return 180*e/Math.PI},GT=function(e,t,n,r){return{x:e+Math.cos(-UT*r)*n,y:t+Math.sin(-UT*r)*n}},$T=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},YT=function(e,t,n,r,i){var o=e.width,a=e.height,c=e.startAngle,s=e.endAngle,l=wc(e.cx,o,o/2),u=wc(e.cy,a,a/2),f=$T(o,a,n),p=wc(e.innerRadius,f,0),d=wc(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(rc(a.range))"angleAxis"===r?o=[c,s]:"radiusAxis"===r&&(o=[p,d]),h&&(o=[o[1],o[0]]);else{var m=HT(o=a.range,2);c=m[0],s=m[1]}var v=xT(a,i),y=v.realScaleType,g=v.scale;g.domain(f).range(o),_T(g);var b=AT(g,BT(BT({},a),{},{realScaleType:y})),x=BT(BT(BT({},a),b),{},{range:o,radius:d,realScaleType:y,scale:g,cx:l,cy:u,innerRadius:p,outerRadius:d,startAngle:c,endAngle:s});return BT(BT({},e),{},qT({},n,x))}),{})},XT=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:WT(s),angleInRadian:s}},ZT=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)},KT=function(e,t){var n=e.x,r=e.y,i=XT({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?BT(BT({},t),{},{radius:o,angle:ZT(d,t)}):null};function JT(e){return JT="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},JT(e)}function QT(e){return function(e){if(Array.isArray(e))return eP(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 eP(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 eP(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 eP(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 tP(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 nP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tP(Object(n),!0).forEach((function(t){rP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rP(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==JT(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==JT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===JT(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iP(){return iP=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},iP.apply(this,arguments)}var oP=function(e){var t=e.value,n=e.formatter,r=rc(e.children)?t:e.children;return $i(n)?n(r):r},aP=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,v=u.endAngle,y=u.clockWise,g=(d+h)/2,b=function(e,t){return mc(t-e)*Math.min(Math.abs(t-e),360)}(m,v),x=b>=0?1:-1;"insideStart"===a?(i=m+x*s,o=y):"insideEnd"===a?(i=v-x*s,o=!y):"end"===a&&(i=v+x*s,o=y),o=b<=0?o:!o;var w=GT(f,p,g,i),_=GT(f,p,g,i+359*(o?1:-1)),k="M".concat(w.x,",").concat(w.y,"\n A").concat(g,",").concat(g,",0,1,").concat(o?0:1,",\n ").concat(_.x,",").concat(_.y),S=rc(t.id)?xc("recharts-radial-line-"):t.id;return e.createElement("text",iP({},r,{dominantBaseline:"central",className:Ei("recharts-radial-bar-label",l)}),e.createElement("defs",null,e.createElement("path",{id:S,d:k})),e.createElement("textPath",{xlinkHref:"#".concat(S)},n))},cP=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=GT(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=GT(o,a,(c+s)/2,l);return{x:p.x,y:p.y,textAnchor:"middle",verticalAnchor:"middle"}},sP=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,v=h>0?"end":"start",y=h>0?"start":"end";if("top"===i)return nP(nP({},{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 nP(nP({},{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:v,verticalAnchor:"middle"};return nP(nP({},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:y,verticalAnchor:"middle"};return nP(nP({},b),n?{width:Math.max(n.x+n.width-b.x,0),height:l}:{})}var x=n?{width:s,height:l}:{};return"insideLeft"===i?nP({x:a+m,y:c+l/2,textAnchor:y,verticalAnchor:"middle"},x):"insideRight"===i?nP({x:a+s-m,y:c+l/2,textAnchor:v,verticalAnchor:"middle"},x):"insideTop"===i?nP({x:a+s/2,y:c+f,textAnchor:"middle",verticalAnchor:d},x):"insideBottom"===i?nP({x:a+s/2,y:c+l-f,textAnchor:"middle",verticalAnchor:p},x):"insideTopLeft"===i?nP({x:a+m,y:c+f,textAnchor:y,verticalAnchor:d},x):"insideTopRight"===i?nP({x:a+s-m,y:c+f,textAnchor:v,verticalAnchor:d},x):"insideBottomLeft"===i?nP({x:a+m,y:c+l-f,textAnchor:y,verticalAnchor:p},x):"insideBottomRight"===i?nP({x:a+s-m,y:c+l-f,textAnchor:v,verticalAnchor:p},x):Ai(i)&&(yc(i.x)||vc(i.x))&&(yc(i.y)||vc(i.y))?nP({x:a+wc(i.x,s),y:c+wc(i.y,l),textAnchor:"end",verticalAnchor:"end"},x):nP({x:a+s/2,y:c+l/2,textAnchor:"middle",verticalAnchor:"middle"},x)},lP=function(e){return"cx"in e&&yc(e.cx)};function uP(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||rc(a)&&rc(c)&&!u(s)&&!$i(s))return null;if(u(s))return d(s,t);if($i(s)){if(u(r=n(s,t)))return r}else r=oP(t);var h=lP(i),m=$c(t,!0);if(h&&("insideStart"===o||"insideEnd"===o||"end"===o))return aP(t,r,m);var v=h?cP(t):sP(t);return e.createElement(t_,iP({className:Ei("recharts-label",f)},m,v,{breakAll:p}),r)}uP.displayName="Label",uP.defaultProps={offset:5};var fP=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,v=e.clockWise,y=e.labelViewBox;if(y)return y;if(yc(h)&&yc(m)){if(yc(u)&&yc(f))return{x:u,y:f,width:h,height:m};if(yc(p)&&yc(d))return{x:p,y:d,width:h,height:m}}return yc(u)&&yc(f)?{x:u,y:f,width:0,height:0}:yc(t)&&yc(n)?{cx:t,cy:n,startAngle:i||r||0,endAngle:o||r||0,innerRadius:s||0,outerRadius:l||c||a||0,clockWise:v}:e.viewBox?e.viewBox:{}};uP.parseViewBox=fP,uP.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=fP(t),a=qc(i,uP).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(uP,{key:"label-implicit",viewBox:n}):gc(t)?e.createElement(uP,{key:"label-implicit",viewBox:n,value:t}):u(t)?t.type===uP?d(t,{key:"label-implicit",viewBox:n}):e.createElement(uP,{key:"label-implicit",content:t,viewBox:n}):$i(t)?e.createElement(uP,{key:"label-implicit",content:t,viewBox:n}):Ai(t)?e.createElement(uP,iP({viewBox:n},t,{key:"label-implicit"})):null:null}(t.label,n||o);return[c].concat(QT(a))};var pP=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},dP=E(pP);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)}var mP=["data","valueAccessor","dataKey","clockWise","id","textBreakAll"];function vP(e){return function(e){if(Array.isArray(e))return yP(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 yP(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 yP(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 yP(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 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){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 xP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bP(Object(n),!0).forEach((function(t){wP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wP(e,t,n){return(t=function(e){var t=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)}(e,"string");return"symbol"===hP(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _P(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 kP={valueAccessor:function(e){return Xi(e.value)?dP(e.value):e.value}};function SP(t){var n=t.data,r=t.valueAccessor,i=t.dataKey,o=t.clockWise,a=t.id,c=t.textBreakAll,s=_P(t,mP);return n&&n.length?e.createElement(is,{className:"recharts-label-list"},n.map((function(t,n){var l=rc(i)?r(t,n):uT(t&&t.payload,i),u=rc(a)?{}:{id:"".concat(a,"-").concat(n)};return e.createElement(uP,gP({},$c(t,!0),s,u,{parentViewBox:t.parentViewBox,index:n,value:l,textBreakAll:c,viewBox:uP.parseViewBox(rc(o)?t:xP(xP({},t),{},{clockWise:o})),key:"label-".concat(n)}))}))):null}function EP(e){return EP="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},EP(e)}function OP(){return OP=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},OP.apply(this,arguments)}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,DP(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 TP(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=PP(e);if(t){var i=PP(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===EP(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 PP(e){return PP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},PP(e)}function DP(e){var t=function(e,t){if("object"!==EP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==EP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===EP(t)?t:String(t)}SP.displayName="LabelList",SP.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=qc(t.children,SP).map((function(e,t){return d(e,{data:n,key:"labelList-".concat(t)})}));return r?[function(t,n){return t?!0===t?e.createElement(SP,{key:"labelList-implicit",data:n}):e.isValidElement(t)||$i(t)?e.createElement(SP,{key:"labelList-implicit",data:n,content:t}):Ai(t)?e.createElement(SP,gP({data:n},t,{key:"labelList-implicit"})):null:null}(t.label,n)].concat(vP(i)):i},SP.defaultProps=kP;var jP=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)/UT,f=s?i:i+o*u,p=s?i-o*u:i;return{center:GT(t,n,l,f),circleTangency:GT(t,n,r,f),lineTangency:GT(t,n,l*Math.cos(u*UT),p),theta:u}},MP=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,o=e.startAngle,a=function(e,t){return mc(t-e)*Math.min(Math.abs(t-e),359.999)}(o,e.endAngle),c=o+a,s=GT(t,n,i,o),l=GT(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=GT(t,n,r,o),p=GT(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},NP=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=TP(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=Ei("recharts-sector",f),h=o-i,m=wc(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=mc(l-s),f=jP({cx:t,cy:n,radius:i,angle:s,sign:u,cornerRadius:o,cornerIsExternal:c}),p=f.circleTangency,d=f.lineTangency,h=f.theta,m=jP({cx:t,cy:n,radius:i,angle:l,sign:-u,cornerRadius:o,cornerIsExternal:c}),v=m.circleTangency,y=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 "):MP({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(v.x,",").concat(v.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(u<0),",").concat(y.x,",").concat(y.y,"\n ");if(r>0){var w=jP({cx:t,cy:n,radius:r,angle:s,sign:u,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),_=w.circleTangency,k=w.lineTangency,S=w.theta,E=jP({cx:t,cy:n,radius:r,angle:l,sign:-u,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),O=E.circleTangency,A=E.lineTangency,C=E.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(_.x,",").concat(_.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(u<0),",").concat(k.x,",").concat(k.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}):MP({cx:n,cy:r,innerRadius:i,outerRadius:o,startAngle:l,endAngle:u}),e.createElement("path",OP({},$c(this.props,!0),{className:d,d:p,role:"img"}))}}],r&&AP(n.prototype,r),i&&AP(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function IP(e){return IP="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},IP(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 LP(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 zP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?LP(Object(n),!0).forEach((function(t){VP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function FP(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,UP(r.key),r)}}function BP(e,t){return BP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},BP(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=HP(e);if(t){var i=HP(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===IP(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 HP(e){return HP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},HP(e)}function VP(e,t,n){return(t=UP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UP(e){var t=function(e,t){if("object"!==IP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==IP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===IP(t)?t:String(t)}!function(e,t,n){(t=DP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(NP,"defaultProps",{cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1});var WP={curveBasisClosed:function(e){return new md(e)},curveBasisOpen:function(e){return new vd(e)},curveBasis:function(e){return new hd(e)},curveLinearClosed:function(e){return new Od(e)},curveLinear:Up,curveMonotoneX:function(e){return new Dd(e)},curveMonotoneY:function(e){return new jd(e)},curveNatural:function(e){return new Nd(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)}},GP=function(e){return e.x===+e.x&&e.y===+e.y},$P=function(e){return e.x},YP=function(e){return e.y},XP=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&&BP(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:"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($i(e))return e;var n="curve".concat(Cp(e));return"curveMonotone"===n&&t?WP["".concat(n).concat("vertical"===t?"Y":"X")]:WP[n]||Up}(n,o),s=a?r.filter((function(e){return GP(e)})):r;if(Xi(i)){var l=a?i.filter((function(e){return GP(e)})):i,u=s.map((function(e,t){return zP(zP({},e),{},{base:l[t]})}));return(e="vertical"===o?Yp().y(YP).x1($P).x0((function(e){return e.base.x})):Yp().x($P).y1(YP).y0((function(e){return e.base.y}))).defined(GP).curve(c),e(u)}return(e="vertical"===o&&yc(i)?Yp().y(YP).x1($P).x0(i):yc(i)?Yp().x($P).y1(YP).y0(i):$p().x($P).y(YP)).defined(GP).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({},$c(this.props),Dc(this.props),{className:Ei("recharts-curve",n),d:a,ref:o}))}}],r&&FP(n.prototype,r),i&&FP(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function ZP(e){return ZP="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},ZP(e)}function KP(){return KP=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},KP.apply(this,arguments)}function JP(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,iD(r.key),r)}}function QP(e,t){return QP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},QP(e,t)}function eD(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"===ZP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return tD(e)}(this,n)}}function tD(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nD(e){return nD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},nD(e)}function rD(e,t,n){return(t=iD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iD(e){var t=function(e,t){if("object"!==ZP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ZP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ZP(t)?t:String(t)}VP(XP,"defaultProps",{type:"linear",points:[],connectNulls:!1});var oD=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},aD=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},cD=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&&QP(e,t)}(a,p);var n,r,i,o=eD(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 rD(tD(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 v=Ei("recharts-rectangle",s);return m?e.createElement(Tg,{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(Tg,{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",KP({},$c(t.props,!0),{className:v,d:oD(o,a,r,i,c),ref:function(e){t.node=e}})))})):e.createElement("path",KP({},$c(this.props,!0),{className:v,d:oD(r,i,o,a,c)}))}}],r&&JP(n.prototype,r),i&&JP(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function sD(e){return sD="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},sD(e)}rD(cD,"defaultProps",{x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"});var lD=["points","className","baseLinePoints","connectNulls"];function uD(){return uD=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},uD.apply(this,arguments)}function fD(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 pD(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"!==sD(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==sD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"),"symbol"===sD(o)?o:String(o)),r)}var i,o}function dD(e,t){return dD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},dD(e,t)}function hD(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=mD(e);if(t){var i=mD(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===sD(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 mD(e){return mD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},mD(e)}function vD(e){return function(e){if(Array.isArray(e))return yD(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 yD(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 yD(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 yD(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 gD=function(e){return e&&e.x===+e.x&&e.y===+e.y},bD=function(e,t){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[[]];return e.forEach((function(e){gD(e)?t[t.length-1].push(e):t[t.length-1].length>0&&t.push([])})),gD(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(vD(e),vD(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},xD=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&&dD(e,t)}(a,p);var n,r,i,o=hD(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=fD(t,lD);if(!n||!n.length)return null;var c=Ei("recharts-polygon",r);if(i&&i.length){var s=a.stroke&&"none"!==a.stroke,l=function(e,t,n){var r=bD(e,n);return"".concat("Z"===r.slice(-1)?r.slice(0,-1):r,"L").concat(bD(t.reverse(),n).slice(1))}(n,i,o);return e.createElement("g",{className:c},e.createElement("path",uD({},$c(a,!0),{fill:"Z"===l.slice(-1)?a.fill:"none",stroke:"none",d:l})),s?e.createElement("path",uD({},$c(a,!0),{fill:"none",d:bD(n,o)})):null,s?e.createElement("path",uD({},$c(a,!0),{fill:"none",d:bD(i,o)})):null)}var u=bD(n,o);return e.createElement("path",uD({},$c(a,!0),{fill:"Z"===u.slice(-1)?a.fill:"none",className:c,d:u}))}}])&&pD(n.prototype,r),i&&pD(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function wD(e){return wD="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},wD(e)}function _D(){return _D=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},_D.apply(this,arguments)}function kD(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"!==wD(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==wD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"),"symbol"===wD(o)?o:String(o)),r)}var i,o}function SD(e,t){return SD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},SD(e,t)}function ED(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=OD(e);if(t){var i=OD(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===wD(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 OD(e){return OD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},OD(e)}var AD=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=ED(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=Ei("recharts-dot",o);return n===+n&&r===+r&&i===+i?e.createElement("circle",_D({},$c(this.props),Dc(this.props),{className:a,cx:n,cy:r,r:i})):null}}])&&kD(n.prototype,r),i&&kD(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function CD(e){return CD="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},CD(e)}function TD(){return TD=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},TD.apply(this,arguments)}function PD(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,ND(r.key),r)}}function DD(e,t){return DD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},DD(e,t)}function jD(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=MD(e);if(t){var i=MD(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===CD(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 MD(e){return MD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},MD(e)}function ND(e){var t=function(e,t){if("object"!==CD(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==CD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===CD(t)?t:String(t)}var ID=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&&DD(e,t)}(a,p);var n,r,i,o=jD(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 yc(n)&&yc(r)&&yc(i)&&yc(o)&&yc(c)&&yc(s)?e.createElement("path",TD({},$c(this.props,!0),{className:Ei("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&&PD(n.prototype,r),i&&PD(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 LD(){return LD=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},LD.apply(this,arguments)}function zD(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 FD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zD(Object(n),!0).forEach((function(t){UD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function BD(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,WD(r.key),r)}}function qD(e,t){return qD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qD(e,t)}function HD(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=VD(e);if(t){var i=VD(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 VD(e){return VD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},VD(e)}function UD(e,t,n){return(t=WD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WD(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=ND(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(ID,"defaultProps",{x:0,y:0,top:0,left:0,width:0,height:0});var GD=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&&qD(e,t)}(a,p);var n,r,i,o=HD(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=GT(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=FD({stroke:"#ccc"},$c(this.props));return e.createElement("g",{className:"recharts-polar-grid-angle"},a.map((function(t,a){var c=GT(n,r,i,t),l=GT(n,r,o,t);return e.createElement("line",LD({},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=FD(FD({stroke:"#ccc"},$c(this.props)),{},{fill:"none"},r);return e.createElement("circle",LD({},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=FD(FD({stroke:"#ccc"},$c(this.props)),{},{fill:"none"},r);return e.createElement("path",LD({},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&&BD(n.prototype,r),i&&BD(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();UD(GD,"displayName","PolarGrid"),UD(GD,"defaultProps",{cx:0,cy:0,innerRadius:0,outerRadius:0,gridType:"polygon",radialLines:!0});var $D=o_,YD=Pf,XD=p_;var ZD=function(e,t){return e&&e.length?$D(e,YD(t),XD):void 0},KD=E(ZD),JD=o_,QD=a_,ej=Pf;var tj=function(e,t){return e&&e.length?JD(e,ej(t),QD):void 0},nj=E(tj),rj=["cx","cy","angle","ticks","axisLine"],ij=["ticks","tick","angle","tickFormatter","stroke"];function oj(e){return oj="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},oj(e)}function aj(){return aj=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},aj.apply(this,arguments)}function cj(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 sj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cj(Object(n),!0).forEach((function(t){hj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lj(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 uj(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,mj(r.key),r)}}function fj(e,t){return fj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fj(e,t)}function pj(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=dj(e);if(t){var i=dj(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===oj(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 dj(e){return dj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},dj(e)}function hj(e,t,n){return(t=mj(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mj(e){var t=function(e,t){if("object"!==oj(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==oj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===oj(t)?t:String(t)}var vj=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&&fj(e,t)}(a,p);var n,r,i,o=pj(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 GT(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=nj(i,(function(e){return e.coordinate||0}));return{cx:t,cy:n,startAngle:r,endAngle:r,innerRadius:KD(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=lj(t,rj),s=o.reduce((function(e,t){return[Math.min(e[0],t.coordinate),Math.max(e[1],t.coordinate)]}),[1/0,-1/0]),l=GT(n,r,s[0],i),u=GT(n,r,s[1],i),f=sj(sj(sj({},$c(c)),{},{fill:"none"},$c(a)),{},{x1:l.x,y1:l.y,x2:u.x,y2:u.y});return e.createElement("line",aj({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=lj(n,ij),u=this.getTickTextAnchor(),f=$c(l),p=$c(i),d=r.map((function(n,r){var l=t.getTickValueCoord(n),d=sj(sj(sj(sj({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(is,aj({className:"recharts-polar-radius-axis-tick",key:"tick-".concat(r)},jc(t.props,n,r)),a.renderTickItem(i,d,c?c(n.value,r):n.value))}));return e.createElement(is,{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(is,{className:"recharts-polar-radius-axis"},r&&this.renderAxisLine(),i&&this.renderTicks(),uP.renderCallByParent(this.props,this.getViewBox())):null}}],i=[{key:"renderTickItem",value:function(t,n,r){return e.isValidElement(t)?e.cloneElement(t,n):$i(t)?t(n):e.createElement(t_,aj({},n,{className:"recharts-polar-radius-axis-tick-value"}),r)}}],r&&uj(n.prototype,r),i&&uj(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function yj(e){return yj="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},yj(e)}function gj(){return gj=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},gj.apply(this,arguments)}function bj(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 xj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bj(Object(n),!0).forEach((function(t){Ej(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wj(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,Oj(r.key),r)}}function _j(e,t){return _j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_j(e,t)}function kj(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=Sj(e);if(t){var i=Sj(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===yj(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 Sj(e){return Sj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Sj(e)}function Ej(e,t,n){return(t=Oj(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oj(e){var t=function(e,t){if("object"!==yj(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==yj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===yj(t)?t:String(t)}hj(vj,"displayName","PolarRadiusAxis"),hj(vj,"axisType","radiusAxis"),hj(vj,"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 Aj=Math.PI/180,Cj=1e-5,Tj=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&&_j(e,t)}(a,p);var n,r,i,o=kj(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=GT(n,r,i,e.coordinate),s=GT(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*Aj);return n>Cj?"outer"===t?"start":"end":n<-Cj?"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=xj(xj({},$c(this.props)),{},{fill:"none"},$c(o));if("circle"===a)return e.createElement(AD,gj({className:"recharts-polar-angle-axis-line"},c,{cx:n,cy:r,r:i}));var s=this.props.ticks.map((function(e){return GT(n,r,i,e.coordinate)}));return e.createElement(xD,gj({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=$c(this.props),u=$c(i),f=xj(xj({},l),{},{fill:"none"},$c(o)),p=r.map((function(n,r){var p=t.getTickLineCoord(n),d=xj(xj(xj({textAnchor:t.getTickTextAnchor(n)},l),{},{stroke:"none",fill:s},u),{},{index:r,payload:n,x:p.x2,y:p.y2});return e.createElement(is,gj({className:"recharts-polar-angle-axis-tick",key:"tick-".concat(r)},jc(t.props,n,r)),o&&e.createElement("line",gj({className:"recharts-polar-angle-axis-tick-line"},f,p)),i&&a.renderTickItem(i,d,c?c(n.value,r):n.value))}));return e.createElement(is,{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(is,{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):$i(t)?t(n):e.createElement(t_,gj({},n,{className:"recharts-polar-angle-axis-tick-value"}),r)}}],r&&wj(n.prototype,r),i&&wj(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();Ej(Tj,"displayName","PolarAngleAxis"),Ej(Tj,"axisType","angleAxis"),Ej(Tj,"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 Pj=Nl(Object.getPrototypeOf,Object),Dj=Vi,jj=Pj,Mj=Zi,Nj=Function.prototype,Ij=Object.prototype,Rj=Nj.toString,Lj=Ij.hasOwnProperty,zj=Rj.call(Object);var Fj=function(e){if(!Mj(e)||"[object Object]"!=Dj(e))return!1;var t=jj(e);if(null===t)return!0;var n=Lj.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Rj.call(n)==zj},Bj=E(Fj);function qj(e){return qj="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},qj(e)}function Hj(){return Hj=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},Hj.apply(this,arguments)}function Vj(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 Uj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vj(Object(n),!0).forEach((function(t){Zj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wj(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,Kj(r.key),r)}}function Gj(e,t){return Gj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Gj(e,t)}function $j(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=Xj(e);if(t){var i=Xj(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===qj(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Yj(e)}(this,n)}}function Yj(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xj(e){return Xj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Xj(e)}function Zj(e,t,n){return(t=Kj(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kj(e){var t=function(e,t){if("object"!==qj(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==qj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===qj(t)?t:String(t)}var Jj=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&&Gj(e,t)}(a,p);var n,r,i,o=$j(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),Zj(Yj(t=o.call(this,e)),"pieRef",null),Zj(Yj(t),"sectorRefs",[]),Zj(Yj(t),"id",xc("recharts-pie-")),Zj(Yj(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),$i(e)&&e()})),Zj(Yj(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),$i(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=$c(this.props),l=$c(r),u=$c(i),f=r&&r.offsetRadius||20,p=t.map((function(t,n){var p=(t.startAngle+t.endAngle)/2,d=GT(t.cx,t.cy,t.outerRadius+f,p),h=Uj(Uj(Uj(Uj({},s),t),{},{stroke:"none"},l),{},{index:n,textAnchor:a.getTextAnchor(d.x,t.cx)},d),m=Uj(Uj(Uj(Uj({},s),t),{},{fill:"none",stroke:t.fill},u),{},{index:n,points:[GT(t.cx,t.cy,t.outerRadius,p),d],key:"line"}),v=o;return rc(o)&&rc(c)?v="value":rc(o)&&(v=c),e.createElement(is,{key:"label-".concat(n)},i&&a.renderLabelLineItem(i,m),a.renderLabelItem(r,h,uT(t,v)))}));return e.createElement(is,{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=Uj(Uj({},t),{},{stroke:o?t.fill:t.stroke});return e.createElement(is,Hj({ref:function(e){e&&!n.sectorRefs.includes(e)&&n.sectorRefs.push(e)},tabIndex:-1,className:"recharts-pie-sector"},jc(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(Tg,{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?tc(e,"paddingAngle",0):0;if(n){var c=kc(n.endAngle-n.startAngle,e.endAngle-e.startAngle),s=Uj(Uj({},e),{},{startAngle:a+r,endAngle:a+c(i)+r});o.push(s),a=s.endAngle}else{var l=e.endAngle,f=e.startAngle,p=kc(0,l-f)(i),d=Uj(Uj({},e),{},{startAngle:a+r,endAngle:a+p+r});o.push(d),a=d.endAngle}})),e.createElement(is,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&&r_(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||!yc(c)||!yc(s)||!yc(l)||!yc(u))return null;var d=Ei("recharts-pie",o);return e.createElement(is,{tabIndex:0,className:d,ref:function(e){t.pieRef=e}},this.renderSectors(),a&&this.renderLabels(i),uP.renderCallByParent(this.props,null,!1),(!f||p)&&SP.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):$i(t)?t(n):e.createElement(XP,Hj({},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 $i(t)&&(i=t(n),e.isValidElement(i))?i:e.createElement(t_,Hj({},n,{alignmentBaseline:"middle",className:"recharts-pie-label-text"}),i)}},{key:"renderSectorItem",value:function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):$i(t)?t(n):Bj(t)?e.createElement(NP,Hj({tabIndex:-1},n,t)):e.createElement(NP,Hj({tabIndex:-1},n))}}],r&&Wj(n.prototype,r),i&&Wj(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();Zj(Jj,"displayName","Pie"),Zj(Jj,"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:!Gb.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1}),Zj(Jj,"parseDeltaAngle",(function(e,t){return mc(t-e)*Math.min(Math.abs(t-e),360)})),Zj(Jj,"getRealPieData",(function(e){var t=e.props,n=t.data,r=t.children,i=$c(e.props),o=qc(r,Hx);return n&&n.length?n.map((function(e,t){return Uj(Uj(Uj({payload:e},i),e),o&&o[t]&&o[t].props)})):o&&o.length?o.map((function(e){return Uj(Uj({},i),e.props)})):[]})),Zj(Jj,"parseCoordinateOfPie",(function(e,t){var n=t.top,r=t.left,i=t.width,o=t.height,a=$T(i,o);return{cx:r+wc(e.props.cx,i,i/2),cy:n+wc(e.props.cy,o,o/2),innerRadius:wc(e.props.innerRadius,a,0),outerRadius:wc(e.props.outerRadius,a,.8*a),maxRadius:e.props.maxRadius||Math.sqrt(i*i+o*o)/2}})),Zj(Jj,"getComposedData",(function(e){var t=e.item,n=e.offset,r=Jj.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=Jj.parseCoordinateOfPie(t,n),m=Jj.parseDeltaAngle(a,c),v=Math.abs(m),y=l;rc(l)&&rc(f)?(Lx(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),y="value"):rc(l)&&(Lx(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),y=f);var g,b,x=r.filter((function(e){return 0!==uT(e,y,0)})).length,w=v-x*d-(v>=360?x:x-1)*s,_=r.reduce((function(e,t){var n=uT(t,y,0);return e+(yc(n)?n:0)}),0);_>0&&(g=r.map((function(e,t){var n,r=uT(e,y,0),i=uT(e,u,t),c=(yc(r)?r:0)/_,l=(n=t?b.endAngle+mc(m)*s*(0!==r?1:0):a)+mc(m)*((0!==r?d:0)+c*w),f=(n+l)/2,v=(h.innerRadius+h.outerRadius)/2,g=[{name:i,value:r,payload:e,dataKey:y,type:p}],x=GT(h.cx,h.cy,v,f);return b=Uj(Uj(Uj({percent:c,cornerRadius:o,name:i,tooltipPayload:g,midAngle:f,middleRadius:v,tooltipPosition:x},e),h),{},{value:uT(e,y),startAngle:n,endAngle:l,payload:e,paddingAngle:mc(m)*s})})));return Uj(Uj({},h),{},{sectors:g,data:r})}));var Qj=function(e){return e&&e.length?e[0]:void 0},eM=E(Qj);function tM(e){return tM="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},tM(e)}function nM(){return nM=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},nM.apply(this,arguments)}function rM(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 iM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rM(Object(n),!0).forEach((function(t){uM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oM(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,fM(r.key),r)}}function aM(e,t){return aM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},aM(e,t)}function cM(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=lM(e);if(t){var i=lM(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===tM(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return sM(e)}(this,n)}}function sM(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lM(e){return lM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},lM(e)}function uM(e,t,n){return(t=fM(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fM(e){var t=function(e,t){if("object"!==tM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==tM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===tM(t)?t:String(t)}var pM=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&&aM(e,t)}(a,p);var n,r,i,o=cM(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 uM(sM(e=o.call.apply(o,[this].concat(n))),"state",{isAnimationFinished:!1}),uM(sM(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),$i(t)&&t()})),uM(sM(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),$i(t)&&t()})),uM(sM(e),"handleMouseEnter",(function(t){var n=e.props.onMouseEnter;n&&n(e.props,t)})),uM(sM(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=$c(this.props),c=$c(r),s=t.map((function(e,t){var n=iM(iM(iM({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(is,{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,iM(iM({},this.props),{},{points:t})):$i(i)?i(iM(iM({},this.props),{},{points:t})):e.createElement(xD,nM({},$c(this.props,!0),{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,points:t,baseLinePoints:a?c:null,connectNulls:s})),e.createElement(is,{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(Tg,{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=kc(r.x,e.x),a=kc(r.y,e.y);return iM(iM({},e),{},{x:o(n),y:a(n)})}var c=kc(e.cx,e.x),s=kc(e.cy,e.y);return iM(iM({},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&&r_(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=Ei("recharts-radar",r);return e.createElement(is,{className:c},this.renderPolygon(),(!o||a)&&SP.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):$i(t)?t(n):e.createElement(AD,nM({},n,{className:"recharts-radar-dot"}))}}],r&&oM(n.prototype,r),i&&oM(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();uM(pM,"displayName","Radar"),uM(pM,"defaultProps",{angleAxisId:0,radiusAxisId:0,hide:!1,activeDot:!0,dot:!1,legendType:"rect",isAnimationActive:!Gb.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),uM(pM,"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=uT(e,n.dataKey,r),f=uT(e,i),p=n.scale(u)+(o||0),d=Xi(f)?dP(f):f,h=rc(d)?void 0:t.scale(d);Xi(f)&&f.length>=2&&(s=!0),l.push(iM(iM({},GT(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(Xi(e.value)){var n=eM(e.value),r=rc(n)?void 0:t.scale(n);u.push(iM(iM({},e),{},{radius:r},GT(a,c,r,e.angle)))}else u.push(e)})),{points:l,isRange:s,baseLinePoints:u}}));var dM=["shape","activeShape","activeIndex","cornerRadius"],hM=["value","background"];function mM(e){return mM="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},mM(e)}function vM(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 yM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vM(Object(n),!0).forEach((function(t){SM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gM(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 bM(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,EM(r.key),r)}}function xM(e,t){return xM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xM(e,t)}function wM(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=kM(e);if(t){var i=kM(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===mM(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _M(e)}(this,n)}}function _M(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kM(e){return kM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},kM(e)}function SM(e,t,n){return(t=EM(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EM(e){var t=function(e,t){if("object"!==mM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==mM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===mM(t)?t:String(t)}var OM=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&&xM(e,t)}(a,p);var n,r,i,o=wM(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 SM(_M(e=o.call.apply(o,[this].concat(n))),"state",{isAnimationFinished:!1}),SM(_M(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),$i(t)&&t()})),SM(_M(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),$i(t)&&t()})),e}return n=a,r=[{key:"getDeltaAngle",value:function(){var e=this.props,t=e.startAngle,n=e.endAngle;return mc(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=gM(n,dM),l=$c(s);return e.map((function(e,n){var u=yM(yM(yM(yM({},l),{},{cornerRadius:c},e),jc(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(Tg,{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=kc(n.startAngle,e.startAngle),o=kc(n.endAngle,e.endAngle);return yM(yM({},e),{},{startAngle:r(i),endAngle:o(i)})}var a=e.endAngle,c=e.startAngle,s=kc(c,a);return yM(yM({},e),{},{endAngle:s(i)})}));return e.createElement(is,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&&r_(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"renderBackground",value:function(e){var t=this,n=this.props.cornerRadius,r=$c(this.props.background);return e.map((function(e,i){e.value;var o=e.background,c=gM(e,hM);if(!o)return null;var s=yM(yM(yM(yM(yM({cornerRadius:n},c),{},{fill:"#eee"},o),r),jc(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=Ei("recharts-area",i);return e.createElement(is,{className:s},o&&e.createElement(is,{className:"recharts-radial-bar-background"},this.renderBackground(r)),e.createElement(is,{className:"recharts-radial-bar-sectors"},this.renderSectors()),(!a||c)&&SP.renderCallByParent(yM({},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):$i(t)?t(n):e.createElement(NP,n)}}],r&&bM(n.prototype,r),i&&bM(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();SM(OM,"displayName","RadialBar"),SM(OM,"defaultProps",{angleAxisId:0,radiusAxisId:0,minPointSize:0,hide:!1,legendType:"rect",data:[],isAnimationActive:!Gb.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease",forceCornerRadius:!1,cornerIsExternal:!1}),SM(OM,"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=kT(u,t);if(!d)return null;var h=o.cx,m=o.cy,v=n.layout,y=t.props,g=y.children,b=y.minPointSize,x="radial"===v?o:r,w=l?x.scale.domain():null,_=PT({numericAxis:x}),k=qc(g,Hx);return{data:c.map((function(e,c){var u,y,g,x,S,E;if(l?u=ST(l[p+c],w):(u=uT(e,s),Xi(u)||(u=[_,u])),"radial"===v){y=TT({axis:r,ticks:i,bandSize:f,offset:d.offset,entry:e,index:c}),S=o.scale(u[1]),x=o.scale(u[0]),g=y+d.size;var O=S-x;if(Math.abs(b)>0&&Math.abs(O)<Math.abs(b))S+=mc(O||b)*(Math.abs(b)-Math.abs(O));E={background:{cx:h,cy:m,innerRadius:y,outerRadius:g,startAngle:n.startAngle,endAngle:n.endAngle}}}else{y=r.scale(u[0]),g=r.scale(u[1]),S=(x=TT({axis:o,ticks:a,bandSize:f,offset:d.offset,entry:e,index:c}))+d.size;var A=g-y;if(Math.abs(b)>0&&Math.abs(A)<Math.abs(b))g+=mc(A||b)*(Math.abs(b)-Math.abs(A))}return yM(yM(yM(yM({},e),E),{},{payload:e,value:l?u:u[1],cx:h,cy:m,innerRadius:y,outerRadius:g,startAngle:x,endAngle:S},k&&k[c]&&k[c].props),{},{tooltipPayload:[LT(t,e)],tooltipPosition:GT(h,m,(y+g)/2,(x+S)/2)})})),layout:v}}));var AM=Math.ceil,CM=Math.max;var TM=bx,PM=1/0;var DM=function(e){return e?(e=TM(e))===PM||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0},jM=function(e,t,n,r){for(var i=-1,o=CM(AM((t-e)/(n||1)),0),a=Array(o);o--;)a[r?o:++i]=e,e+=n;return a},MM=Cb,NM=DM;var IM=E(function(e){return function(t,n,r){return r&&"number"!=typeof r&&MM(t,n,r)&&(n=r=void 0),t=NM(t),void 0===n?(n=t,t=0):n=NM(n),r=void 0===r?t<n?1:-1:NM(r),jM(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 LM(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 zM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?LM(Object(n),!0).forEach((function(t){FM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function FM(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 BM=["Webkit","Moz","O","ms"];function qM(e){return qM="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},qM(e)}function HM(){return HM=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},HM.apply(this,arguments)}function VM(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 UM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?VM(Object(n),!0).forEach((function(t){ZM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function WM(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,KM(r.key),r)}}function GM(e,t){return GM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},GM(e,t)}function $M(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=XM(e);if(t){var i=XM(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===qM(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return YM(e)}(this,n)}}function YM(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function XM(e){return XM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},XM(e)}function ZM(e,t,n){return(t=KM(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KM(e){var t=function(e,t){if("object"!==qM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==qM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===qM(t)?t:String(t)}var JM=function(e){return e.changedTouches&&!!e.changedTouches.length},QM=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&&GM(e,t)}(a,p);var n,r,i,o=$M(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),ZM(YM(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)})),ZM(YM(t),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleDrag(e.changedTouches[0])})),ZM(YM(t),"handleDragEnd",(function(){t.setState({isTravellerMoving:!1,isSlideMoving:!1}),t.detachDragEndListener()})),ZM(YM(t),"handleLeaveWrapper",(function(){(t.state.isTravellerMoving||t.state.isSlideMoving)&&(t.leaveTimer=window.setTimeout(t.handleDragEnd,t.props.leaveTimeOut))})),ZM(YM(t),"handleEnterSlideOrTraveller",(function(){t.setState({isTextActive:!0})})),ZM(YM(t),"handleLeaveSlideOrTraveller",(function(){t.setState({isTextActive:!1})})),ZM(YM(t),"handleSlideDragStart",(function(e){var n=JM(e)?e.changedTouches[0]:e;t.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),t.attachDragEndListener()})),t.travellerDragStartHandlers={startX:t.handleTravellerDragStart.bind(YM(t),"startX"),endX:t.handleTravellerDragStart.bind(YM(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=uT(n[e],i,e);return $i(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=JM(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},v=e.pageX-r;v>0?v=Math.min(v,l+u-f-c):v<0&&(v=Math.max(v,l-c)),m[i]=c+v;var y=this.getIndex(m),g=y.startIndex,b=y.endIndex;this.setState((ZM(t={},i,c+v),ZM(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(y))}))}},{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=UM(UM({},$c(this.props)),{},{x:l,y:i,width:o,height:c});return e.createElement(is,{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(is,{className:"recharts-brush-texts"},e.createElement(t_,HM({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,u)-5,y:i+o/2},f),this.getTextOfTick(n)),e.createElement(t_,HM({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||!yc(o)||!yc(a)||!yc(c)||!yc(s)||c<=0||s<=0)return null;var v=Ei("recharts-brush",r),y=1===e.Children.count(i),g=function(e,t){if(!e)return null;var n=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),r=BM.reduce((function(e,r){return zM(zM({},e),{},FM({},r+n,t))}),{});return r[e]=t,r}("userSelect","none");return e.createElement(is,{className:v,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:g},this.renderBackground(),y&&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):$i(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 UM({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=Q_().domain(IM(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&&WM(n.prototype,r),i&&WM(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();ZM(QM,"displayName","Brush"),ZM(QM,"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 eN=qg;var tN=_s,nN=Pf,rN=function(e,t){var n;return eN(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n},iN=Yi,oN=Cb;var aN=function(e,t,n){var r=iN(e)?tN:rN;return n&&oN(e,t,n)&&(t=void 0),r(e,nN(t))},cN=E(aN),sN=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t};var lN=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},uN=qg;var fN=lN,pN=function(e,t){var n=!0;return uN(e,(function(e,r,i){return n=!!t(e,r,i)})),n},dN=Pf,hN=Yi,mN=Cb;var vN=function(e,t,n){var r=hN(e)?fN:pN;return n&&mN(e,t,n)&&(t=void 0),r(e,dN(t))},yN=E(vN),gN=pb;var bN=function(e,t,n){"__proto__"==t&&gN?gN(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},xN=bN,wN=Fg,_N=Pf;var kN=function(e,t){var n={};return t=_N(t),wN(e,(function(e,r,i){xN(n,r,t(e,r,i))})),n},SN=E(kN),EN=["value","background"];function ON(e){return ON="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},ON(e)}function AN(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 CN(){return CN=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},CN.apply(this,arguments)}function TN(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 PN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?TN(Object(n),!0).forEach((function(t){RN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function DN(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,LN(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 MN(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=IN(e);if(t){var i=IN(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===ON(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return NN(e)}(this,n)}}function NN(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function IN(e){return IN=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},IN(e)}function RN(e,t,n){return(t=LN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LN(e){var t=function(e,t){if("object"!==ON(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ON(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ON(t)?t:String(t)}var zN=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,p);var n,r,i,o=MN(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(NN(e=o.call.apply(o,[this].concat(n))),"state",{isAnimationFinished:!1}),RN(NN(e),"id",xc("recharts-bar-")),RN(NN(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),t&&t()})),RN(NN(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=$c(this.props);return t&&t.map((function(t,o){var c=PN(PN(PN({},i),t),{},{index:o});return e.createElement(is,CN({className:"recharts-bar-rectangle"},jc(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(Tg,{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=kc(n.x,e.x),a=kc(n.y,e.y),c=kc(n.width,e.width),s=kc(n.height,e.height);return PN(PN({},e),{},{x:r(o),y:a(o),width:c(o),height:s(o)})}if("horizontal"===i){var l=kc(0,e.height)(o);return PN(PN({},e),{},{y:e.y+e.height-l,height:l})}var f=kc(0,e.width)(o);return PN(PN({},e),{},{width:f})}));return e.createElement(is,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&&r_(r,t)?this.renderRectanglesStatically(t):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var e=this,t=this.props.data,n=$c(this.props.background);return t.map((function(t,r){t.value;var i=t.background,o=AN(t,EN);if(!i)return null;var c=PN(PN(PN(PN(PN({},o),{},{fill:"#eee"},i),n),jc(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=qc(r.children,rT);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:uT(e,t)}}var f={clipPath:t?"url(#clipPath-".concat(n,")"):null};return e.createElement(is,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=Ei("recharts-bar",i),v=o&&o.allowDataOverflow||a&&a.allowDataOverflow,y=rc(d)?this.id:d;return e.createElement(is,{className:m},v?e.createElement("defs",null,e.createElement("clipPath",{id:"clipPath-".concat(y)},e.createElement("rect",{x:c,y:s,width:l,height:u}))):null,e.createElement(is,{className:"recharts-bar-rectangles",clipPath:v?"url(#clipPath-".concat(y,")"):null},p?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(v,y),(!f||h)&&SP.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):$i(t)?t(n):e.createElement(cD,n)}}],r&&DN(n.prototype,r),i&&DN(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function FN(e){return FN="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},FN(e)}function BN(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,UN(r.key),r)}}function qN(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 HN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qN(Object(n),!0).forEach((function(t){VN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function VN(e,t,n){return(t=UN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UN(e){var t=function(e,t){if("object"!==FN(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==FN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===FN(t)?t:String(t)}RN(zN,"displayName","Bar"),RN(zN,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",isAnimationActive:!Gb.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),RN(zN,"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=kT(r,n);if(!d)return null;var h=t.layout,m=n.props,v=m.dataKey,y=m.children,g=m.minPointSize,b="horizontal"===h?a:o,x=l?b.scale.domain():null,w=PT({numericAxis:b}),_=qc(y,Hx),k=f.map((function(e,t){var r,f,p,m,y,b;if(l?r=ST(l[u+t],x):(r=uT(e,v),Xi(r)||(r=[w,r])),"horizontal"===h){var k,S=[a.scale(r[0]),a.scale(r[1])],E=S[0],O=S[1];f=TT({axis:o,ticks:c,bandSize:i,offset:d.offset,entry:e,index:t}),p=null!==(k=null!=O?O:E)&&void 0!==k?k:void 0,m=d.size;var A=E-O;if(y=Number.isNaN(A)?0:A,b={x:f,y:a.y,width:m,height:a.height},Math.abs(g)>0&&Math.abs(y)<Math.abs(g)){var C=mc(y||g)*(Math.abs(g)-Math.abs(y));p-=C,y+=C}}else{var T=[o.scale(r[0]),o.scale(r[1])],P=T[0],D=T[1];if(f=P,p=TT({axis:a,ticks:s,bandSize:i,offset:d.offset,entry:e,index:t}),m=D-P,y=d.size,b={x:o.x,y:p,width:o.width,height:y},Math.abs(g)>0&&Math.abs(m)<Math.abs(g))m+=mc(m||g)*(Math.abs(g)-Math.abs(m))}return PN(PN(PN({},e),{},{x:f,y:p,width:m,height:y,value:l?r:r[1],payload:e,background:b},_&&_[t]&&_[t].props),{},{tooltipPayload:[LT(n,e)],tooltipPosition:{x:f+m/2,y:p+y/2}})}));return PN({data:k,layout:h},p)}));var WN=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=!!Hc(s,zN);return l.reduce((function(o,a){var s,l,p,d,h,m=t[a],v=m.orientation,y=m.domain,g=m.padding,b=void 0===g?{}:g,x=m.mirror,w=m.reversed,_="".concat(v).concat(x?"Mirror":"");if("number"===m.type&&("gap"===m.padding||"no-gap"===m.padding)){var k=y[1]-y[0],S=1/0,E=m.categoricalDomain.sort();E.forEach((function(e,t){t>0&&(S=Math.min((e||0)-(E[t-1]||0),S))}));var O=S/k,A="vertical"===m.layout?n.height:n.width;if("gap"===m.padding&&(s=O*A/2),"no-gap"===m.padding){var C=wc(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=xT(m,i,f),D=P.scale,j=P.realScaleType;D.domain(y).range(l),_T(D);var M=AT(D,HN(HN({},m),{},{realScaleType:j}));"xAxis"===r?(h="top"===v&&!x||"bottom"===v&&x,p=n.left,d=u[_]-h*m.height):"yAxis"===r&&(h="left"===v&&!x||"right"===v&&x,p=u[_]-h*m.width,d=n.top);var N=HN(HN(HN({},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=IT(N,M),m.hide||"xAxis"!==r?m.hide||(u[_]+=(h?-1:1)*N.width):u[_]+=(h?-1:1)*N.height,HN(HN({},o),{},VN({},a,N))}),{})},GN=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)}},$N=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&&BN(t.prototype,n),r&&BN(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();VN($N,"EPS",1e-4);var YN=function(e){var t=Object.keys(e).reduce((function(t,n){return HN(HN({},t),{},VN({},n,$N.create(e[n])))}),{});return HN(HN({},t),{},{apply:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,i=n.position;return SN(e,(function(e,n){return t[n].apply(e,{bandAware:r,position:i})}))},isInRange:function(e){return yN(e,(function(e,n){return t[n].isInRange(e)}))}})};function XN(e){return XN="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},XN(e)}function ZN(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 KN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ZN(Object(n),!0).forEach((function(t){JN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function JN(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==XN(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==XN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===XN(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){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 eI(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 eI(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 eI(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 tI(){return tI=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},tI.apply(this,arguments)}function nI(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;Lx(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(sN(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,v=i.xAxis.orientation,y=e.x.apply(m,{position:u});if(sN(i,"discard")&&!e.x.isInRange(y))return null;var g=[{x:y,y:c+l},{x:y,y:c}];return"top"===v?g.reverse():g}if(r){var b=i.segment.map((function(t){return e.apply(t,{position:u})}));return sN(i,"discard")&&cN(b,(function(t){return!e.isInRange(t)}))?null:b}return null}(YN({x:o.scale,y:a.scale}),gc(n),gc(r),i&&2===i.length,t);if(!f)return null;var p=QN(f,2),d=p[0],h=d.x,m=d.y,v=p[1],y=v.x,g=v.y,b=KN(KN({clipPath:sN(t,"hidden")?"url(#".concat(u,")"):void 0},$c(t,!0)),{},{x1:h,y1:m,x2:y,y2:g});return e.createElement(is,{className:Ei("recharts-reference-line",s)},function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):$i(t)?t(n):e.createElement("line",tI({},n,{className:"recharts-reference-line-line"}))}(c,b),uP.renderCallByParent(t,function(e){var t=e.x1,n=e.y1,r=e.x2,i=e.y2;return GN({x:t,y:n},{x:r,y:i})}({x1:h,y1:m,x2:y,y2:g})))}function rI(e){return rI="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},rI(e)}function iI(){return iI=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},iI.apply(this,arguments)}function oI(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 aI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oI(Object(n),!0).forEach((function(t){cI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cI(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==rI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==rI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===rI(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}nI.displayName="ReferenceLine",nI.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};function sI(t){var n=t.x,r=t.y,i=t.r,o=t.alwaysShow,a=t.clipPathId,c=gc(n),s=gc(r);if(Lx(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=YN({x:r.scale,y:i.scale}),a=o.apply({x:t,y:n},{bandAware:!0});return sN(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=aI(aI({clipPath:sN(t,"hidden")?"url(#".concat(a,")"):void 0},$c(t,!0)),{},{cx:u,cy:f});return e.createElement(is,{className:Ei("recharts-reference-dot",d)},sI.renderDot(p,h),uP.renderCallByParent(t,{x:u-i,y:f-i,width:2*i,height:2*i}))}function lI(e){return lI="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},lI(e)}function uI(){return uI=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},uI.apply(this,arguments)}function fI(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 pI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fI(Object(n),!0).forEach((function(t){dI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dI(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==lI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==lI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===lI(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}sI.displayName="ReferenceDot",sI.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},sI.renderDot=function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):$i(t)?t(n):e.createElement(AD,iI({},n,{cx:n.cx,cy:n.cy,className:"recharts-reference-dot-dot"}))};function hI(t){var n=t.x1,r=t.x2,i=t.y1,o=t.y2,a=t.className,c=t.alwaysShow,s=t.clipPathId;Lx(void 0===c,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=gc(n),u=gc(r),f=gc(i),p=gc(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=YN({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!sN(i,"discard")||f.isInRange(p)&&f.isInRange(d)?GN(p,d):null}(l,u,f,p,t);if(!h&&!d)return null;var m=sN(t,"hidden")?"url(#".concat(s,")"):void 0;return e.createElement(is,{className:Ei("recharts-reference-area",a)},hI.renderRect(d,pI(pI({clipPath:m},$c(t,!0)),h)),uP.renderCallByParent(t,h))}function mI(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 vI(e){return vI="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},vI(e)}function yI(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 gI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yI(Object(n),!0).forEach((function(t){bI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bI(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==vI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==vI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===vI(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xI(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,v="top"===c||"bottom"===c?"width":"height",y=(i||[]).slice(),g=l&&"width"===v?Iw(l,{fontSize:u,letterSpacing:f})[v]:0,b=y.length,x=b>=2?mc(y[1].coordinate-y[0].coordinate):1;if(1===x?(n="width"===v?p:d,r="width"===v?p+h:d+m):(n="width"===v?p+h:d+m,r="width"===v?p:d),t){var w=i[b-1],_=$i(o)?o(w.value,b-1):w.value,k=Iw(_,{fontSize:u,letterSpacing:f})[v]+g,S=x*(w.coordinate+x*k/2-r);y[b-1]=w=gI(gI({},w),{},{tickCoord:S>0?w.coordinate-S*x:w.coordinate}),x*(w.tickCoord-x*k/2-n)>=0&&x*(w.tickCoord+x*k/2-r)<=0&&(r=w.tickCoord-x*(k/2+s),y[b-1]=gI(gI({},w),{},{isShow:!0}))}for(var E=t?b-1:b,O=0;O<E;O++){var A=y[O],C=$i(o)?o(A.value,O):A.value,T=Iw(C,{fontSize:u,letterSpacing:f})[v]+g;if(0===O){var P=x*(A.coordinate-x*T/2-n);y[O]=A=gI(gI({},A),{},{tickCoord:P<0?A.coordinate-P*x:A.coordinate})}else y[O]=A=gI(gI({},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),y[O]=gI(gI({},A),{},{isShow:!0}))}return y}function wI(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(yc(s)||Gb.isSsr)return function(e,t){return mI(e,t+1)}(i,"number"==typeof s&&yc(s)?s:0);var f=[];return"equidistantPreserveStart"===s?function(e){for(var t=1,n=mI(e,t,(function(e){return e.isShow}));t<=e.length;){if(void 0!==n)return n;n=mI(e,++t,(function(e){return e.isShow}))}return e.slice(0,1)}(f=xI({ticks:i,tickFormatter:l,viewBox:o,orientation:c,minTickGap:a,unit:u,fontSize:t,letterSpacing:n})):(f="preserveStart"===s||"preserveStartEnd"===s?xI({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",v=s&&"width"===m?Iw(s,{fontSize:l,letterSpacing:u})[m]:0,y=(r||[]).slice(),g=y.length,b=g>=2?mc(y[1].coordinate-y[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=y[x],_=$i(i)?i(w.value,g-x-1):w.value,k=Iw(_,{fontSize:l,letterSpacing:u})[m]+v;if(x===g-1){var S=b*(w.coordinate+b*k/2-n);y[x]=w=gI(gI({},w),{},{tickCoord:S>0?w.coordinate-S*b:w.coordinate})}else y[x]=w=gI(gI({},w),{},{tickCoord:w.coordinate});b*(w.tickCoord-b*k/2-t)>=0&&b*(w.tickCoord+b*k/2-n)<=0&&(n=w.tickCoord-b*(k/2+c),y[x]=gI(gI({},w),{},{isShow:!0}))}return y}({ticks:i,tickFormatter:l,viewBox:o,orientation:c,minTickGap:a,unit:u,fontSize:t,letterSpacing:n}),f.filter((function(e){return e.isShow})))}hI.displayName="ReferenceArea",hI.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},hI.renderRect=function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):$i(t)?t(n):e.createElement(cD,uI({},n,{className:"recharts-reference-area-rect"}))};var _I=["viewBox"],kI=["viewBox"],SI=["ticks"];function EI(e){return EI="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},EI(e)}function OI(){return OI=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},OI.apply(this,arguments)}function AI(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 CI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?AI(Object(n),!0).forEach((function(t){NI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function TI(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 PI(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,II(r.key),r)}}function DI(e,t){return DI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},DI(e,t)}function jI(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=MI(e);if(t){var i=MI(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===EI(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 MI(e){return MI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},MI(e)}function NI(e,t,n){return(t=II(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function II(e){var t=function(e,t){if("object"!==EI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==EI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===EI(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&&DI(e,t)}(a,g);var n,r,i,o=jI(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=TI(e,_I),i=this.props,o=i.viewBox,a=TI(i,kI);return!Ec(n,o)||!Ec(r,a)||!Ec(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,v=h?-1:1,y=e.tickSize||d,g=yc(e.tickCoord)?e.tickCoord:e.coordinate;switch(p){case"top":t=n=e.coordinate,a=(r=(i=l+ +!h*f)-v*y)-v*m,o=g;break;case"left":r=i=e.coordinate,o=(t=(n=s+ +!h*u)-v*y)-v*m,a=g;break;case"right":r=i=e.coordinate,o=(t=(n=s+ +h*u)+v*y)+v*m,a=g;break;default:t=n=e.coordinate,a=(r=(i=l+ +h*f)+v*y)+v*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=CI(CI(CI({},$c(this.props)),$c(s)),{},{fill:"none"});if("top"===a||"bottom"===a){var u=+("top"===a&&!c||"bottom"===a&&c);l=CI(CI({},l),{},{x1:n,y1:r+u*o,x2:n+i,y2:r+u*o})}else{var f=+("left"===a&&!c||"right"===a&&c);l=CI(CI({},l),{},{x1:n+f*i,y1:r,x2:n+f*i,y2:r+o})}return e.createElement("line",OI({},l,{className:Ei("recharts-cartesian-axis-line",tc(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=wI(CI(CI({},this.props),{},{ticks:t}),n,r),d=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),m=$c(this.props),v=$c(l),y=CI(CI({},m),{},{fill:"none"},$c(c)),g=p.map((function(t,n){var r=i.getTickLineCoord(t),o=r.line,g=r.tick,b=CI(CI(CI(CI({textAnchor:d,verticalAnchor:h},m),{},{stroke:"none",fill:s},v),g),{},{index:n,payload:t,visibleTicksCount:p.length,tickFormatter:u});return e.createElement(is,OI({className:"recharts-cartesian-axis-tick",key:"tick-".concat(n)},jc(i.props,t,n)),c&&e.createElement("line",OI({},y,o,{className:Ei("recharts-cartesian-axis-tick-line",tc(c,"className"))})),l&&a.renderTickItem(l,b,"".concat($i(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=TI(s,SI),f=l;return $i(a)&&(f=l&&l.length>0?a(this.props):a(u)),i<=0||o<=0||!f||!f.length?null:e.createElement(is,{className:Ei("recharts-cartesian-axis",c),ref:function(e){t.layerReference=e}},r&&this.renderAxisLine(),this.renderTicks(f,this.state.fontSize,this.state.letterSpacing),uP.renderCallByParent(this.props))}}],i=[{key:"renderTickItem",value:function(t,n,r){return e.isValidElement(t)?e.cloneElement(t,n):$i(t)?t(n):e.createElement(t_,OI({},n,{className:"recharts-cartesian-axis-tick-value"}),r)}}],r&&PI(n.prototype,r),i&&PI(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();NI(RI,"displayName","CartesianAxis"),NI(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 LI=["x1","y1","x2","y2","key"];function zI(e){return zI="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},zI(e)}function FI(){return FI=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},FI.apply(this,arguments)}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 qI(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 HI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qI(Object(n),!0).forEach((function(t){$I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function VI(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,YI(r.key),r)}}function UI(e,t){return UI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},UI(e,t)}function WI(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=GI(e);if(t){var i=GI(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===zI(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 GI(e){return GI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},GI(e)}function $I(e,t,n){return(t=YI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YI(e){var t=function(e,t){if("object"!==zI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==zI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===zI(t)?t:String(t)}var XI=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&&UI(e,t)}(a,p);var n,r,i,o=WI(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=HI(HI({},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=HI(HI({},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(!yc(i)||i<=0||!yc(o)||o<=0||!yc(n)||n!==+n||!yc(r)||r!==+r)return null;var m=this.props,v=m.horizontalPoints,y=m.verticalPoints;return v&&v.length||!$i(s)||(v=s({yAxis:f,width:d,height:h,offset:p})),y&&y.length||!$i(l)||(y=l({xAxis:u,width:d,height:h,offset:p})),e.createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),a&&this.renderHorizontal(v),c&&this.renderVertical(y),a&&this.renderHorizontalStripes(v),c&&this.renderVerticalStripes(y))}}],i=[{key:"renderLineItem",value:function(t,n){var r;if(e.isValidElement(t))r=e.cloneElement(t,n);else if($i(t))r=t(n);else{var i=n.x1,o=n.y1,a=n.x2,c=n.y2,s=n.key,l=BI(n,LI);r=e.createElement("line",FI({},$c(l),{x1:i,y1:o,x2:a,y2:c,fill:"none",key:s}))}return r}}],r&&VI(n.prototype,r),i&&VI(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();$I(XI,"displayName","CartesianGrid"),$I(XI,"defaultProps",{horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]});var ZI=["type","layout","connectNulls","ref"];function KI(e){return KI="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},KI(e)}function JI(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 QI(){return QI=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},QI.apply(this,arguments)}function eR(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 tR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eR(Object(n),!0).forEach((function(t){lR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nR(e){return function(e){if(Array.isArray(e))return rR(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 rR(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 rR(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 rR(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 iR(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,uR(r.key),r)}}function oR(e,t){return oR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},oR(e,t)}function aR(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=sR(e);if(t){var i=sR(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===KI(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return cR(e)}(this,n)}}function cR(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sR(e){return sR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},sR(e)}function lR(e,t,n){return(t=uR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uR(e){var t=function(e,t){if("object"!==KI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==KI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===KI(t)?t:String(t)}var fR=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&&oR(e,t)}(a,p);var n,r,i,o=aR(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 lR(cR(e=o.call.apply(o,[this].concat(n))),"state",{isAnimationFinished:!0,totalLength:0}),lR(cR(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(nR(n.slice(0,l)),[o-u]);break}var f=s.length%2==0?[0,c]:[c];return[].concat(nR(a.repeat(n,i)),nR(s),f).map((function(e){return"".concat(e,"px")})).join(", ")})),lR(cR(e),"id",xc("recharts-line-")),lR(cR(e),"pathRef",(function(t){e.mainCurve=t})),lR(cR(e),"handleAnimationEnd",(function(){e.setState({isAnimationFinished:!0}),e.props.onAnimationEnd&&e.props.onAnimationEnd()})),lR(cR(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=qc(r.children,rT);if(!s)return null;function l(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:uT(e.payload,t)}}var u={clipPath:t?"url(#clipPath-".concat(n,")"):null};return e.createElement(is,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=$c(this.props),l=$c(i,!0),u=o.map((function(e,t){var n=tR(tR(tR({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(is,QI({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=JI(o,ZI),u=tR(tR(tR({},$c(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(XP,QI({},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,v=m.prevPoints,y=m.totalLength;return e.createElement(Tg,{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(v){var c=v.length/o.length,s=o.map((function(e,t){var n=Math.floor(t*c);if(v[n]){var r=v[n],o=kc(r.x,e.x),a=kc(r.y,e.y);return tR(tR({},e),{},{x:o(i),y:a(i)})}if(p){var s=kc(2*d,e.x),l=kc(h/2,e.y);return tR(tR({},e),{},{x:s(i),y:l(i)})}return tR(tR({},e),{},{x:e.x,y:e.y})}));return r.renderCurveStatically(s,t,n)}var l,u=kc(0,y)(i);if(a){var f="".concat(a).split(/[,\s]+/gim).map((function(e){return parseFloat(e)}));l=r.getStrokeDasharray(u,y,f)}else l="".concat(u,"px ").concat(y-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||!r_(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,v=Ei("recharts-line",o),y=a&&a.allowDataOverflow||c&&c.allowDataOverflow,g=rc(d)?this.id:d;return e.createElement(is,{className:v},y?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(y,g),this.renderErrorBar(y,g),(m||r)&&this.renderDots(y,g),(!p||h)&&SP.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(nR(e),[0]):e,r=[],i=0;i<t;++i)r=[].concat(nR(r),nR(n));return r}},{key:"renderDotItem",value:function(t,n){var r;if(e.isValidElement(t))r=e.cloneElement(t,n);else if($i(t))r=t(n);else{var i=Ei("recharts-line-dot",t?t.className:"");r=e.createElement(AD,QI({},n,{className:i}))}return r}}],r&&iR(n.prototype,r),i&&iR(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();lR(fR,"displayName","Line"),lR(fR,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Gb.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),lR(fR,"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 tR({points:s.map((function(e,t){var s=uT(e,a);return"horizontal"===u?{x:CT({axis:n,ticks:i,bandSize:c,entry:e,index:t}),y:rc(s)?null:r.scale(s),value:s,payload:e}:{x:rc(s)?null:n.scale(s),y:CT({axis:r,ticks:o,bandSize:c,entry:e,index:t}),value:s,payload:e}})),layout:u},l)}));var pR=["layout","type","stroke","connectNulls","isRange","ref"];function dR(e){return dR="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},dR(e)}function hR(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 mR(){return mR=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},mR.apply(this,arguments)}function vR(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 yR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vR(Object(n),!0).forEach((function(t){kR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gR(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,SR(r.key),r)}}function bR(e,t){return bR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bR(e,t)}function xR(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=_R(e);if(t){var i=_R(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===dR(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return wR(e)}(this,n)}}function wR(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _R(e){return _R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_R(e)}function kR(e,t,n){return(t=SR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SR(e){var t=function(e,t){if("object"!==dR(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==dR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===dR(t)?t:String(t)}var ER=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&&bR(e,t)}(a,p);var n,r,i,o=xR(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 kR(wR(e=o.call.apply(o,[this].concat(n))),"state",{isAnimationFinished:!0}),kR(wR(e),"id",xc("recharts-area-")),kR(wR(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),$i(t)&&t()})),kR(wR(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),$i(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=$c(this.props),f=$c(c,!0),p=s.map((function(e,t){var n=yR(yR(yR({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(is,mR({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=f_(i.map((function(e){return e.y||0})));return yc(r)&&"number"==typeof r?l=Math.max(r,l):r&&Xi(r)&&r.length&&(l=Math.max(f_(r.map((function(e){return e.y||0}))),l)),yc(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=f_(i.map((function(e){return e.x||0})));return yc(r)&&"number"==typeof r?l=Math.max(r,l):r&&Xi(r)&&r.length&&(l=Math.max(f_(r.map((function(e){return e.x||0}))),l)),yc(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=hR(o,pR);return e.createElement(is,{clipPath:r?"url(#clipPath-".concat(i,")"):null},e.createElement(XP,mR({},$c(f,!0),{points:t,connectNulls:l,type:c,baseLine:n,layout:a,stroke:"none",className:"recharts-area-area"})),"none"!==s&&e.createElement(XP,mR({},$c(this.props),{className:"recharts-area-curve",layout:a,type:c,connectNulls:l,fill:"none",points:t})),"none"!==s&&u&&e.createElement(XP,mR({},$c(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(Tg,{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=kc(r.x,e.x),o=kc(r.y,e.y);return yR(yR({},e),{},{x:i(c),y:o(c)})}return e}));return s=yc(a)&&"number"==typeof a?kc(h,a)(c):rc(a)||hc(a)?kc(h,0)(c):a.map((function(e,t){var n=Math.floor(t*l);if(h[n]){var r=h[n],i=kc(r.x,e.x),o=kc(r.y,e.y);return yR(yR({},e),{},{x:i(c),y:o(c)})}return e})),r.renderAreaStatically(u,s,t,n)}return e.createElement(is,null,e.createElement("defs",null,e.createElement("clipPath",{id:"animationClipPath-".concat(n)},r.renderClipRect(c))),e.createElement(is,{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||!r_(c,r)||!r_(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,v=Ei("recharts-area",o),y=s&&s.allowDataOverflow||l&&l.allowDataOverflow,g=rc(d)?this.id:d;return e.createElement(is,{className:v},y?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(y,g),(r||m)&&this.renderDots(y,g),(!p||h)&&SP.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&&gR(n.prototype,r),i&&gR(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();kR(ER,"displayName","Area"),kR(ER,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Gb.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),kR(ER,"getBaseValue",(function(e,t,n,r){var i=e.layout,o=e.baseValue,a=t.props.baseValue,c=null!=a?a:o;if(yc(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]})),kR(ER,"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,v=ER.getBaseValue(n,r,i,o),y=!1,g=p.map((function(e,t){var n,r=uT(e,l);m?n=u[f+t]:Xi(n=r)?y=!0:n=[v,n];var p=rc(n[1])||m&&rc(r);return"horizontal"===h?{x:CT({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:CT({axis:o,ticks:c,bandSize:s,entry:e,index:t}),value:n,payload:e}}));return t=m||y?g.map((function(e){return"horizontal"===h?{x:e.x,y:rc(tc(e,"value[0]"))||rc(tc(e,"y"))?null:o.scale(tc(e,"value[0]"))}:{x:rc(tc(e,"value[0]"))?null:i.scale(tc(e,"value[0]")),y:e.y}})):"horizontal"===h?o.scale(v):i.scale(v),yR({points:g,baseLine:t,layout:h,isRange:y},d)})),kR(ER,"renderDotItem",(function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):$i(t)?t(n):e.createElement(AD,mR({},n,{className:"recharts-area-dot"}))}));var OR=function(){return null};function AR(e){return AR="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},AR(e)}function CR(){return CR=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},CR.apply(this,arguments)}function TR(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 PR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?TR(Object(n),!0).forEach((function(t){RR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function DR(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,LR(r.key),r)}}function jR(e,t){return jR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jR(e,t)}function MR(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=IR(e);if(t){var i=IR(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===AR(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return NR(e)}(this,n)}}function NR(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function IR(e){return IR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},IR(e)}function RR(e,t,n){return(t=LR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LR(e){var t=function(e,t){if("object"!==AR(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==AR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===AR(t)?t:String(t)}OR.displayName="ZAxis",OR.defaultProps={zAxisId:0,range:[64,64],scale:"auto",type:"number"};var zR=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&&jR(e,t)}(a,p);var n,r,i,o=MR(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(NR(e=o.call.apply(o,[this].concat(n))),"state",{isAnimationFinished:!1}),RR(NR(e),"handleAnimationEnd",(function(){e.setState({isAnimationFinished:!0})})),RR(NR(e),"handleAnimationStart",(function(){e.setState({isAnimationFinished:!1})})),RR(NR(e),"id",xc("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=$c(this.props);return t.map((function(t,r){var l=PR(PR({key:"symbol-".concat(r)},s),t);return e.createElement(is,CR({className:"recharts-scatter-symbol"},jc(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(Tg,{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=kc(n.cx,e.cx),o=kc(n.cy,e.cy),a=kc(n.size,e.size);return PR(PR({},e),{},{cx:r(i),cy:o(i),size:a(i)})}var c=kc(0,e.size);return PR(PR({},e),{},{size:c(i)})}));return e.createElement(is,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&&r_(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=qc(t.children,rT);if(!o)return null;function a(e,t){return{x:e.cx,y:e.cy,value:+e.node.y,errorVal:uT(e,t)}}function c(e,t){return{x:e.cx,y:e.cy,value:+e.node.x,errorVal:uT(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=$c(this.props),l=$c(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 v=PR(PR(PR({},s),{},{fill:"none",stroke:s&&s.fill},l),{},{points:t});return n=e.isValidElement(o)?e.cloneElement(o,v):$i(o)?o(v):e.createElement(XP,CR({},v,{type:c})),e.createElement(is,{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=Ei("recharts-scatter",o),v=a&&a.allowDataOverflow||c&&c.allowDataOverflow,y=rc(p)?this.id:p;return e.createElement(is,{className:m,clipPath:v?"url(#clipPath-".concat(y,")"):null},v?e.createElement("defs",null,e.createElement("clipPath",{id:"clipPath-".concat(y)},e.createElement("rect",{x:s,y:l,width:u,height:f}))):null,i&&this.renderLine(),this.renderErrorBar(),e.createElement(is,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!d||h)&&SP.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):$i(t)?r=t(n):"string"==typeof t&&(r=e.createElement(Kd,CR({},n,{type:t}))),r}}],r&&DR(n.prototype,r),i&&DR(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();RR(zR,"displayName","Scatter"),RR(zR,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!Gb.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"}),RR(zR,"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=qc(i.props.children,Hx),f=rc(t.dataKey)?i.props.dataKey:t.dataKey,p=rc(n.dataKey)?i.props.dataKey:n.dataKey,d=r&&r.dataKey,h=r?r.range:OR.defaultProps.range,m=h&&h[0],v=t.scale.bandwidth?t.scale.bandwidth():0,y=n.scale.bandwidth?n.scale.bandwidth():0,g=o.map((function(e,o){var s=uT(e,f),h=uT(e,p),g=!rc(d)&&uT(e,d)||"-",b=[{name:rc(t.dataKey)?i.props.name:t.name||t.dataKey,unit:t.unit||"",value:s,payload:e,dataKey:f,type:l},{name:rc(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=CT({axis:t,ticks:a,bandSize:v,entry:e,index:o,dataKey:f}),w=CT({axis:n,ticks:c,bandSize:y,entry:e,index:o,dataKey:p}),_="-"!==g?r.scale(g):m,k=Math.sqrt(Math.max(_,0)/Math.PI);return PR(PR({},e),{},{cx:x,cy:w,x:x-k,y:w-k,xAxis:t,yAxis:n,zAxis:r,width:2*k,height:2*k,size:_,node:{x:s,y:h,z:g},tooltipPayload:b,tooltipPosition:{x:x,y:w},payload:e},u&&u[o]&&u[o].props)}));return PR({points:g},s)}));var FR=function(){return null};FR.displayName="XAxis",FR.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 BR=function(){return null};BR.displayName="YAxis",BR.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 qR=Pf,HR=Hl,VR=Gl;var UR=function(e){return function(t,n,r){var i=Object(t);if(!HR(t)){var o=qR(n);t=VR(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}},WR=DM;var GR=Df,$R=Pf,YR=function(e){var t=WR(e),n=t%1;return t==t?n?t-n:t:0},XR=Math.max;var ZR=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:YR(n);return i<0&&(i=XR(r+i,0)),GR(e,$R(t),i)},KR=E(UR(ZR)),JR=Vi,QR=Zi;var eL=E((function(e){return!0===e||!1===e||QR(e)&&"[object Boolean]"==JR(e)}));function tL(e){return function(e){if(Array.isArray(e))return nL(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 nL(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 nL(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 nL(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 rL=function(e,t,n,r,i){var o=qc(e,nI),a=qc(e,sI),c=[].concat(tL(o),tL(a)),s=qc(e,hI),l="".concat(r,"Id"),u=r[0],f=t;if(c.length&&(f=c.reduce((function(e,t){if(t.props[l]===n&&sN(t.props,"extendDomain")&&yc(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&&sN(t.props,"extendDomain")&&yc(t.props[p])&&yc(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 yc(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e}),f)),f},iL={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}(iL);var oL=new(E(iL.exports));oL.setMaxListeners&&oL.setMaxListeners(10);var aL="recharts.syncMouseEvents",cL=["item"],sL=["children","className","width","height","style","compact","title","desc"];function lL(e){return lL="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},lL(e)}function uL(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)||bL(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 fL(){return fL=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},fL.apply(this,arguments)}function pL(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 dL(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,SL(r.key),r)}}function hL(e,t){return hL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},hL(e,t)}function mL(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=yL(e);if(t){var i=yL(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===lL(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return vL(e)}(this,n)}}function vL(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yL(e){return yL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},yL(e)}function gL(e){return function(e){if(Array.isArray(e))return xL(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||bL(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 bL(e,t){if(e){if("string"==typeof e)return xL(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)?xL(e,t):void 0}}function xL(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 wL(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 _L(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wL(Object(n),!0).forEach((function(t){kL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kL(e,t,n){return(t=SL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SL(e){var t=function(e,t){if("object"!==lL(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==lL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===lL(t)?t:String(t)}var EL={xAxis:["bottom","top"],yAxis:["left","right"]},OL={x:0,y:0},AL=Number.isFinite?Number.isFinite:isFinite,CL="function"==typeof requestAnimationFrame?requestAnimationFrame:"function"==typeof setImmediate?setImmediate:setTimeout,TL="function"==typeof cancelAnimationFrame?cancelAnimationFrame:"function"==typeof clearImmediate?clearImmediate:clearTimeout,PL=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(gL(e),gL(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&&yc(i)&&yc(o)?e.slice(i,o+1):[]};function DL(e){return"number"===e?[0,"auto"]:void 0}var jL=function(e,t,n,r){var i=e.graphicalItems,o=e.tooltipAxis,a=PL(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=Sc(void 0===c?a:c,o.dataKey,r):i=c&&c[n]||a[n];return i?[].concat(gL(e),[LT(t,i)]):e}),[])},ML=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(mc(u-l)!==mc(f-u)){var d=[];if(mc(f-u)===mc(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 v=[Math.min(u,(p+u)/2),Math.max(u,(p+u)/2)];if(e>v[0]&&e<=v[1]||e>=d[0]&&e<=d[1]){o=r[s].index;break}}else{var y=Math.min(l,f),g=Math.max(l,f);if(e>(y+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=jL(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 _L(_L(_L({},r),GT(r.cx,r.cy,a,o)),{},{angle:o,radius:a})}var c=i.coordinate,s=r.angle;return _L(_L(_L({},r),GT(r.cx,r.cy,c,s)),{},{angle:s,radius:c})}return OL}(n,a,l,i);return{activeTooltipIndex:l,activeLabel:u,activePayload:f,activeCoordinate:p}}return null},NL=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=vT(l,i),d=n.reduce((function(t,n){var d,h=n.props,m=h.type,v=h.dataKey,y=h.allowDataOverflow,g=h.allowDuplicatedCategory,b=h.scale,x=h.ticks,w=h.includeHidden,_=n.props[o];if(t[_])return t;var k,S,E,O=PL(e.data,{graphicalItems:r.filter((function(e){return e.props[o]===_})),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&&yc(r)&&yc(i))return!0}return!1})(n.props.domain,y,m)&&(k=NT(n.props.domain,null,y),!p||"number"!==m&&"auto"===b||(E=fT(O,v,"category")));var C=DL(m);if(!k||0===k.length){var T,P=null!==(T=n.props.domain)&&void 0!==T?T:C;if(v){if(k=fT(O,v,m),"category"===m&&p){var D=function(e){if(!Xi(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}(k);g&&D?(S=k,k=IM(0,A)):g||(k=RT(P,k,n).reduce((function(e,t){return e.indexOf(t)>=0?e:[].concat(gL(e),[t])}),[]))}else if("category"===m)k=g?k.filter((function(e){return""!==e&&!rc(e)})):RT(P,k,n).reduce((function(e,t){return e.indexOf(t)>=0||""===t||rc(t)?e:[].concat(gL(e),[t])}),[]);else if("number"===m){var j=function(e,t,n,r,i){var o=t.map((function(t){return hT(e,t,n,i,r)})).filter((function(e){return!rc(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]===_&&(w||!e.props.hide)})),v,i,l);j&&(k=j)}!p||"number"!==m&&"auto"===b||(E=fT(O,v,"category"))}else k=p?IM(0,A):a&&a[_]&&a[_].hasStack&&"number"===m?"expand"===f?[0,1]:DT(a[_].stackGroups,c,s):mT(O,r.filter((function(e){return e.props[o]===_&&(w||!e.props.hide)})),m,l,!0);if("number"===m)k=rL(u,k,_,i,x),P&&(k=NT(P,k,y));else if("category"===m&&P){var M=P;k.every((function(e){return M.indexOf(e)>=0}))&&(k=M)}}return _L(_L({},t),{},kL({},_,_L(_L({},n.props),{},{axisType:i,domain:k,categoricalDomain:E,duplicateDomain:S,originalDomain:null!==(d=n.props.domain)&&void 0!==d?d:C,isCategorical:p,layout:l})))}),{});return d},IL=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=qc(l,i),p={};return f&&f.length?p=NL(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=PL(e.data,{graphicalItems:n,dataStartIndex:c,dataEndIndex:s}),p=f.length,d=vT(l,i),h=-1;return n.reduce((function(e,t){var m,v=t.props[o],y=DL("number");return e[v]?e:(h++,d?m=IM(0,p):a&&a[v]&&a[v].hasStack?(m=DT(a[v].stackGroups,c,s),m=rL(u,m,v,i)):(m=NT(y,mT(f,n.filter((function(e){return e.props[o]===v&&!e.props.hide})),"number",l),r.defaultProps.allowDataOverflow),m=rL(u,m,v,i)),_L(_L({},e),{},kL({},v,_L(_L({axisType:i},r.defaultProps),{},{hide:!0,orientation:tc(EL,"".concat(i,".").concat(h%2),null),domain:m,originalDomain:y,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=Hc(r,QM);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:!rc(i)&&i}},LL=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"}},zL=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=Hc(l,QM),p=Hc(l,kh),d=Object.keys(a).reduce((function(e,t){var n=a[t],r=n.orientation;return n.mirror||n.hide?e:_L(_L({},e),{},kL({},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:_L(_L({},e),{},kL({},r,tc(e,"".concat(r))+n.height))}),{top:u.top||0,bottom:u.bottom||0}),m=_L(_L({},h),d),v=m.bottom;return f&&(m.bottom+=f.props.height||QM.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=dT({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)&&yc(e[f])&&(l=sT(sT({},e),{},lT({},f,l[f]+(u.width||0)))),("horizontal"===d||"vertical"===d&&"center"===f)&&yc(e[p])&&(l=sT(sT({},e),{},lT({},p,l[p]+(u.height||0))))}return l}(m,0,n,t)),_L(_L({brushBottom:v},m),{},{width:c-m.left-m.right,height:s-m.top-m.bottom})},FL=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,v=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=LL(l),m=h.numericAxisName,v=h.cateAxisName,y=function(e){return!(!e||!e.length)&&e.some((function(e){var t=Lc(e&&e.type);return t&&t.indexOf("Bar")>=0}))}(n),g=y&&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 Lc(e.type).indexOf("Bar")>=0}));if(m&&m.length){var v=m[0].props.barSize,y=m[0].props[h];i[y]||(i[y]=[]),i[y].push({item:m[0],stackList:m.slice(1),barSize:rc(v)?t:v})}}return i}({barSize:s,stackGroups:r}),b=[];return n.forEach((function(n,s){var h=PL(e.data,{dataStartIndex:a,dataEndIndex:c},n),y=n.props,x=y.dataKey,w=y.maxBarSize,_=n.props["".concat(m,"Id")],k=n.props["".concat(v,"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 _L(_L({},e),{},(kL(i={},r.axisType,c),kL(i,"".concat(r.axisType,"Ticks"),gT(c)),i))}),{}),E=S[v],O=S["".concat(v,"Ticks")],A=r&&r[_]&&r[_].hasStack&&function(e,t){var n=e.props.stackId;if(gc(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[_].stackGroups),C=Lc(n.type).indexOf("Bar")>=0,T=IT(E,O),P=[];if(C){var D,j,M=rc(w)?d:w,N=null!==(D=null!==(j=IT(E,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=wc(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(oT(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=wc(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 v=a===+a?Math.min(m,a):m;s=o.reduce((function(e,t,n){var r=[].concat(oT(e),[{item:t.item,position:{offset:h+(m+l)*n+(m-v)/2,size:v}}]);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[k],maxBarSize:M}),N!==T&&(P=P.map((function(e){return _L(_L({},e),{},{position:_L(_L({},e.position),{},{offset:e.position.offset-N/2})})})))}var I,R,L,z=n&&n.type&&n.type.getComposedData;z&&b.push({props:_L(_L({},z(_L(_L({},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)},kL(I,m,S[m]),kL(I,v,S[v]),kL(I,"animationId",o),I)),childIndex:(R=n,L=e.children,Bc(L).indexOf(R)),item:n})})),b},y=function(e,t){var n=e.props,r=e.dataStartIndex,a=e.dataEndIndex,c=e.updateId;if(!Vc({props:n}))return null;var s=n.children,l=n.layout,u=n.stackOffset,p=n.data,d=n.reverseStackOrder,m=LL(l),y=m.numericAxisName,g=m.cateAxisName,b=qc(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(gc(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[xc("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return sT(sT({},e),{},lT({},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 sT(sT({},t),{},lT({},o,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:OT(e,a.items,i)}))}),{})),sT(sT({},t),{},lT({},o,c))}),{})}(p,b,"".concat(y,"Id"),"".concat(g,"Id"),u,d),w=f.reduce((function(e,t){var i="".concat(t.axisType,"Map");return _L(_L({},e),{},kL({},i,IL(n,_L(_L({},t),{},{graphicalItems:b,stackGroups:t.axisType===y&&x,dataStartIndex:r,dataEndIndex:a}))))}),{}),_=zL(_L(_L({},w),{},{props:n,graphicalItems:b}),null==t?void 0:t.legendBBox);Object.keys(w).forEach((function(e){w[e]=h(n,w[e],_,e.replace("Map",""),i)}));var k,S,E=w["".concat(g,"Map")],O=(k=_c(E),{tooltipTicks:S=gT(k,!1,!0),orderedTooltipTicks:jb(S,(function(e){return e.coordinate})),tooltipAxis:k,tooltipAxisBandSize:IT(k,S)}),A=v(n,_L(_L({},w),{},{dataStartIndex:r,dataEndIndex:a,updateId:c,graphicalItems:b,stackGroups:x,offset:_}));return _L(_L({formattedGraphicalItems:A,graphicalItems:b,offset:_,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&&hL(e,t)}(f,g);var r,o,a,s=mL(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),kL(vL(t=s.call(this,e)),"clearDeferId",(function(){!rc(t.deferId)&&TL&&TL(t.deferId),t.deferId=null})),kL(vL(t),"handleLegendBBoxUpdate",(function(e){if(e){var n=t.state,r=n.dataStartIndex,i=n.dataEndIndex,o=n.updateId;t.setState(_L({legendBBox:e},y({props:t.props,dataStartIndex:r,dataEndIndex:i,updateId:o},_L(_L({},t.state),{},{legendBBox:e}))))}})),kL(vL(t),"handleReceiveSyncEvent",(function(e,n,r){t.props.syncId===e&&n!==t.uniqueChartId&&(t.clearDeferId(),t.deferId=CL&&CL(t.applySyncEvent.bind(vL(t),r)))})),kL(vL(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 _L({dataStartIndex:n,dataEndIndex:r},y({props:t.props,dataStartIndex:n,dataEndIndex:r,updateId:i},t.state))})),t.triggerSyncEvent({dataStartIndex:n,dataEndIndex:r})}})),kL(vL(t),"handleMouseEnter",(function(e){var n=t.props.onMouseEnter,r=t.getMouseInfo(e);if(r){var i=_L(_L({},r),{},{isTooltipActive:!0});t.setState(i),t.triggerSyncEvent(i),$i(n)&&n(i,e)}})),kL(vL(t),"triggeredAfterMouseMove",(function(e){var n=t.props.onMouseMove,r=t.getMouseInfo(e),i=r?_L(_L({},r),{},{isTooltipActive:!0}):{isTooltipActive:!1};t.setState(i),t.triggerSyncEvent(i),$i(n)&&n(i,e)})),kL(vL(t),"handleItemMouseEnter",(function(e){t.setState((function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}}))})),kL(vL(t),"handleItemMouseLeave",(function(){t.setState((function(){return{isTooltipActive:!1}}))})),kL(vL(t),"handleMouseMove",(function(e){e&&$i(e.persist)&&e.persist(),t.triggeredAfterMouseMove(e)})),kL(vL(t),"handleMouseLeave",(function(e){var n=t.props.onMouseLeave,r={isTooltipActive:!1};t.setState(r),t.triggerSyncEvent(r),$i(n)&&n(r,e),t.cancelThrottledTriggerAfterMouseMove()})),kL(vL(t),"handleOuterEvent",(function(e){var n=function(e){var t=e&&e.type;return t&&Rc[t]?Rc[t]:null}(e),r=tc(t.props,"".concat(n));n&&$i(r)&&r(/.*touch.*/i.test(n)?t.getMouseInfo(e.changedTouches[0]):t.getMouseInfo(e),e)})),kL(vL(t),"handleClick",(function(e){var n=t.props.onClick,r=t.getMouseInfo(e);if(r){var i=_L(_L({},r),{},{isTooltipActive:!0});t.setState(i),t.triggerSyncEvent(i),$i(n)&&n(i,e)}})),kL(vL(t),"handleMouseDown",(function(e){var n=t.props.onMouseDown;$i(n)&&n(t.getMouseInfo(e),e)})),kL(vL(t),"handleMouseUp",(function(e){var n=t.props.onMouseUp;$i(n)&&n(t.getMouseInfo(e),e)})),kL(vL(t),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseMove(e.changedTouches[0])})),kL(vL(t),"handleTouchStart",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseDown(e.changedTouches[0])})),kL(vL(t),"handleTouchEnd",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseUp(e.changedTouches[0])})),kL(vL(t),"verticalCoordinatesGenerator",(function(e){var t=e.xAxis,n=e.width,r=e.height,i=e.offset;return yT(wI(_L(_L(_L({},RI.defaultProps),t),{},{ticks:gT(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),i.left,i.left+i.width)})),kL(vL(t),"horizontalCoordinatesGenerator",(function(e){var t=e.yAxis,n=e.width,r=e.height,i=e.offset;return yT(wI(_L(_L(_L({},RI.defaultProps),t),{},{ticks:gT(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),i.top,i.top+i.height)})),kL(vL(t),"axesTicksGenerator",(function(e){return gT(e,!0)})),kL(vL(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=XP;if("ScatterChart"===i)p=a,m=ID;else if("BarChart"===i)p=t.getCursorRectangle(),m=cD;else if("radial"===h){var v=t.getCursorPoints(),y=v.cx,g=v.cy,b=v.radius;p={cx:y,cy:g,startAngle:v.startAngle,endAngle:v.endAngle,innerRadius:b,outerRadius:b},m=NP}else p={points:t.getCursorPoints()},m=XP;var x=e.key||"_recharts-cursor",w=_L(_L(_L(_L({stroke:"#ccc",pointerEvents:"none"},s),p),$c(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)})),kL(vL(t),"renderPolarAxis",(function(e,n,r){var i=tc(e,"type.axisType"),o=tc(t.state,"".concat(i,"Map")),a=o&&o[e.props["".concat(i,"Id")]];return d(e,_L(_L({},a),{},{className:i,key:e.key||"".concat(n,"-").concat(r),ticks:gT(a,!0)}))})),kL(vL(t),"renderXAxis",(function(e,n,r){var i=t.state.xAxisMap[e.props.xAxisId];return t.renderAxis(i,e,n,r)})),kL(vL(t),"renderYAxis",(function(e,n,r){var i=t.state.yAxisMap[e.props.yAxisId];return t.renderAxis(i,e,n,r)})),kL(vL(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=_c(r),u=KR(i,(function(e){return yN(e.domain,AL)}))||_c(i),f=e.props||{};return d(e,{key:e.key||"grid",x:yc(f.x)?f.x:o.left,y:yc(f.y)?f.y:o.top,width:yc(f.width)?f.width:o.width,height:yc(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})})),kL(vL(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=_c(c),u=_c(s),f=u.cx,p=u.cy,h=u.innerRadius,m=u.outerRadius;return d(e,{polarAngles:Xi(i)?i:gT(u,!0).map((function(e){return e.coordinate})),polarRadius:Xi(o)?o:gT(l,!0).map((function(e){return e.coordinate})),cx:f,cy:p,innerRadius:h,outerRadius:m,key:e.key||"polar-grid",radialLines:r})})),kL(vL(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=dT({children:r,formattedGraphicalItems:e,legendWidth:c,legendContent:p});if(!s)return null;var l=s.item,u=pL(s,cL);return d(l,_L(_L({},u),{},{chartWidth:i,chartHeight:o,margin:a,ref:function(e){t.legendInstance=e},onBBoxUpdate:t.handleLegendBBoxUpdate}))})),kL(vL(t),"renderTooltip",(function(){var e=Hc(t.props.children,ox);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:_L(_L({},c),{},{x:c.left,y:c.top}),active:r,label:a,payload:r?o:[],coordinate:i})})),kL(vL(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:bT(t.handleBrushChange,null,e.props.onChange),data:i,x:yc(e.props.x)?e.props.x:a.left,y:yc(e.props.y)?e.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:yc(e.props.width)?e.props.width:a.width,startIndex:c,endIndex:s,updateId:"brush-".concat(l)})})),kL(vL(t),"renderReferenceElement",(function(e,n,r){if(!e)return null;var i=vL(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})})),kL(vL(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=_L(_L({index:i,dataKey:s.dataKey,cx:n.x,cy:n.y,r:4,fill:pT(t.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value,key:"".concat(c,"-activePoint-").concat(i)},$c(l)),Dc(l));return a.push(f.renderActiveDot(l,u)),r?a.push(f.renderActiveDot(l,_L(_L({},u),{},{cx:r.x,cy:r.y,key:"".concat(c,"-basePoint-").concat(i)}))):o&&a.push(null),a})),kL(vL(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=Hc(t.props.children,ox),p=i.props,h=p.points,m=p.isRange,v=p.baseLine,y=i.item.props,g=y.activeDot,b=!y.hide&&c&&f&&g&&l>=0,x={};"axis"!==o&&f&&"click"===f.props.trigger?x={onClick:bT(t.handleItemMouseEnter,null,e.props.onCLick)}:"axis"!==o&&(x={onMouseLeave:bT(t.handleItemMouseLeave,null,e.props.onMouseLeave),onMouseEnter:bT(t.handleItemMouseEnter,null,e.props.onMouseEnter)});var w=d(e,_L(_L({},i.props),x));if(b){var _,k;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());_=Sc(h,S,u),k=m&&v&&Sc(v,S,u)}else _=h[l],k=m&&v&&v[l];if(!rc(_))return[w].concat(gL(t.renderActivePoints({item:i,activePoint:_,basePoint:k,childIndex:l,isRange:m})))}return m?[w,null,null]:[w,null]})),kL(vL(t),"renderCustomized",(function(e,n,r){return d(e,_L(_L({key:"recharts-customized-".concat(r)},t.props),t.state))})),t.uniqueChartId=rc(e.id)?xc("recharts"):e.id,t.clipPathId="".concat(t.uniqueChartId,"-clip"),e.throttleDelay&&(t.triggeredAfterMouseMove=Px(t.triggeredAfterMouseMove,e.throttleDelay)),t.state={},t}return r=f,o=[{key:"componentDidMount",value:function(){rc(this.props.syncId)||this.addListener()}},{key:"componentDidUpdate",value:function(e){rc(e.syncId)&&!rc(this.props.syncId)&&this.addListener(),!rc(e.syncId)&&rc(this.props.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){this.clearDeferId(),rc(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=Hc(this.props.children,ox);if(e&&eL(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=_c(o).scale,s=_c(a).scale,l=c&&c.invert?c.invert(n.chartX):null,u=s&&s.invert?s.invert(n.chartY):null;return _L(_L({},n),{},{xValue:l,yValue:u})}var f=ML(this.state,this.props.data,this.props.layout,r);return f?_L(_L({},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(!rc(a.cx)||!rc(a.cy)){if("centric"!==i){var s=a.cx,l=a.cy,u=a.radius,f=a.startAngle,p=a.endAngle;return{points:[GT(s,l,u,f),GT(s,l,u,p)],cx:s,cy:l,radius:u,startAngle:f,endAngle:p}}var d=a.cx,h=a.cy,m=a.innerRadius,v=a.outerRadius,y=a.angle,g=GT(d,h,m,y),b=GT(d,h,v,y);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=_c(o);return KT({x:e,y:t},c)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=Hc(e,ox),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}),_L(_L({},Dc(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){oL.on(aL,this.handleReceiveSyncEvent),oL.setMaxListeners&&oL._maxListeners&&oL.setMaxListeners(oL._maxListeners+1)}},{key:"removeListener",value:function(){oL.removeListener(aL,this.handleReceiveSyncEvent),oL.setMaxListeners&&oL._maxListeners&&oL.setMaxListeners(oL._maxListeners-1)}},{key:"triggerSyncEvent",value:function(e){var t=this.props.syncId;rc(t)||oL.emit(aL,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(rc(e.dataStartIndex)&&rc(e.dataEndIndex))if(rc(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=_L(_L({},f),{},{x:f.left,y:f.top}),m=Math.min(c,h.x+h.width),v=Math.min(s,h.y+h.height),g=p[l]&&p[l].value,b=jL(this.state,this.props.data,l),x=p[l]?{x:"horizontal"===n?p[l].coordinate:m,y:"horizontal"===n?v:p[l].coordinate}:OL;this.setState(_L(_L({},e),{},{activeLabel:g,activeCoordinate:x,activePayload:b,activeTooltipIndex:l}))}else this.setState(_L({dataStartIndex:o,dataEndIndex:a},y({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===Lc(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,fL({},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=uL(t,2),r=n[0],i=n[1];return _L(_L({},e),{},kL({},r,i.scale))}),{}):null}},{key:"getYScales",value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=uL(t,2),r=n[0],i=n[1];return _L(_L({},e),{},kL({},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=Lc(a.type);if("Bar"===c){var s=(o.data||[]).find((function(t){return aD(e,t)}));if(s)return{graphicalItem:i,payload:s}}else if("RadialBar"===c){var l=(o.data||[]).find((function(t){return KT(e,t)}));if(l)return{graphicalItem:i,payload:l}}}return null}},{key:"render",value:function(){var t=this;if(!Vc(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=pL(n,sL),p=$c(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(es,fL({},p,{width:o,height:a,title:l,desc:u}),this.renderClipPath(),Zc(r,d));var h=this.parseEventsOfWrapper();return e.createElement("div",fL({className:Ei("recharts-wrapper",i),style:_L({position:"relative",cursor:"default",width:o,height:a},c)},h,{ref:function(e){t.container=e},role:"region"}),e.createElement(es,fL({},p,{width:o,height:a,title:l,desc:u}),this.renderClipPath(),Zc(r,d)),this.renderLegend(),this.renderTooltip())}}],o&&dL(r.prototype,o),a&&dL(r,a),Object.defineProperty(r,"prototype",{writable:!1}),f}(),kL(r,"displayName",i),kL(r,"defaultProps",_L({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},m)),kL(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(rc(t.updateId)){var l=RL(e);return _L(_L(_L({},l),{},{updateId:0},y(_L(_L({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||!Ec(s,t.prevMargin)){var u=RL(e),f={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},p=_L(_L({},ML(t,n,a)),{},{updateId:t.updateId+1}),d=_L(_L(_L({},u),f),p);return _L(_L(_L({},d),y(_L({props:e},d),t)),{},{prevData:n,prevWidth:i,prevHeight:o,prevLayout:a,prevStackOffset:c,prevMargin:s,prevChildren:r})}if(!Yc(r,t.prevChildren)){var h=!rc(n)?t.updateId:t.updateId+1;return _L(_L({updateId:h},y(_L(_L({props:e},t),{},{updateId:h}),t)),{},{prevChildren:r})}return null})),kL(r,"renderActiveDot",(function(t,n){var r;return r=u(t)?d(t,n):$i(t)?t(n):e.createElement(AD,n),e.createElement(is,{className:"recharts-active-dot",key:n.key},r)})),r},BL=FL({chartName:"LineChart",GraphicalChild:fR,axisComponents:[{axisType:"xAxis",AxisComp:FR},{axisType:"yAxis",AxisComp:BR}],formatAxisMap:WN}),qL=FL({chartName:"BarChart",GraphicalChild:zN,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:FR},{axisType:"yAxis",AxisComp:BR}],formatAxisMap:WN});FL({chartName:"PieChart",GraphicalChild:Jj,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Tj},{axisType:"radiusAxis",AxisComp:vj}],formatAxisMap:YT,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});var HL=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},VL=bN,UL=Yo,WL=Object.prototype.hasOwnProperty;var GL=function(e,t,n){var r=e[t];WL.call(e,t)&&UL(r,n)&&(void 0!==n||t in e)||VL(e,t,n)},$L=GL,YL=bN;var XL=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?YL(n,c,s):$L(n,c,s)}return n},ZL=XL,KL=Gl;var JL=function(e,t){return e&&ZL(t,KL(t),e)};var QL=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},ez=Oi,tz=Ml,nz=QL,rz=Object.prototype.hasOwnProperty;var iz=function(e){if(!ez(e))return nz(e);var t=tz(e),n=[];for(var r in e)("constructor"!=r||!t&&rz.call(e,r))&&n.push(r);return n},oz=Dl,az=iz,cz=Hl;var sz=function(e){return cz(e)?oz(e,!0):az(e)},lz=XL,uz=sz;var fz=function(e,t){return e&&lz(t,uz(t),e)},pz={exports:{}};!function(e,t){var n=Di,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}}(pz,pz.exports);var dz=pz.exports;var hz=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},mz=XL,vz=Zs;var yz=function(e,t){return mz(e,vz(e),t)},gz=Fs,bz=Pj,xz=Zs,wz=Us,_z=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)gz(t,xz(e)),e=bz(e);return t}:wz,kz=XL,Sz=_z;var Ez=function(e,t){return kz(e,Sz(e),t)},Oz=Hs,Az=_z,Cz=sz;var Tz=function(e){return Oz(e,Cz,Az)},Pz=Object.prototype.hasOwnProperty;var Dz=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Pz.call(e,"index")&&(n.index=e.index,n.input=e.input),n},jz=Cs;var Mz=function(e){var t=new e.constructor(e.byteLength);return new jz(t).set(new jz(e)),t},Nz=Mz;var Iz=function(e,t){var n=t?Nz(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},Rz=/\w*$/;var Lz=function(e){var t=new e.constructor(e.source,Rz.exec(e));return t.lastIndex=e.lastIndex,t},zz=ji?ji.prototype:void 0,Fz=zz?zz.valueOf:void 0;var Bz=Mz;var qz=Mz,Hz=Iz,Vz=Lz,Uz=function(e){return Fz?Object(Fz.call(e)):{}},Wz=function(e,t){var n=t?Bz(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var Gz=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return qz(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return Hz(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 Wz(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 Vz(e);case"[object Symbol]":return Uz(e)}},$z=Oi,Yz=Object.create,Xz=function(){function e(){}return function(t){if(!$z(t))return{};if(Yz)return Yz(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),Zz=Xz,Kz=Pj,Jz=Ml;var Qz=function(e){return"function"!=typeof e.constructor||Jz(e)?{}:Zz(Kz(e))},eF=wu,tF=Zi;var nF=function(e){return tF(e)&&"[object Map]"==eF(e)},rF=yl,iF=bl&&bl.isMap,oF=iF?rF(iF):nF,aF=wu,cF=Zi;var sF=function(e){return cF(e)&&"[object Set]"==aF(e)},lF=yl,uF=bl&&bl.isSet,fF=uF?lF(uF):sF,pF=vs,dF=HL,hF=GL,mF=JL,vF=fz,yF=dz,gF=hz,bF=yz,xF=Ez,wF=Zl,_F=Tz,kF=wu,SF=Dz,EF=Gz,OF=Qz,AF=Yi,CF=sl,TF=oF,PF=Oi,DF=fF,jF=Gl,MF=sz,NF="[object Arguments]",IF="[object Function]",RF="[object Object]",LF={};LF[NF]=LF["[object Array]"]=LF["[object ArrayBuffer]"]=LF["[object DataView]"]=LF["[object Boolean]"]=LF["[object Date]"]=LF["[object Float32Array]"]=LF["[object Float64Array]"]=LF["[object Int8Array]"]=LF["[object Int16Array]"]=LF["[object Int32Array]"]=LF["[object Map]"]=LF["[object Number]"]=LF[RF]=LF["[object RegExp]"]=LF["[object Set]"]=LF["[object String]"]=LF["[object Symbol]"]=LF["[object Uint8Array]"]=LF["[object Uint8ClampedArray]"]=LF["[object Uint16Array]"]=LF["[object Uint32Array]"]=!0,LF["[object Error]"]=LF[IF]=LF["[object WeakMap]"]=!1;var zF=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(!PF(t))return t;var f=AF(t);if(f){if(c=SF(t),!s)return gF(t,c)}else{var p=kF(t),d=p==IF||"[object GeneratorFunction]"==p;if(CF(t))return yF(t,s);if(p==RF||p==NF||d&&!o){if(c=l||d?{}:OF(t),!s)return l?xF(t,vF(c,t)):bF(t,mF(c,t))}else{if(!LF[p])return o?t:{};c=EF(t,p,s)}}a||(a=new pF);var h=a.get(t);if(h)return h;a.set(t,c),DF(t)?t.forEach((function(i){c.add(e(i,n,r,i,t,a))})):TF(t)&&t.forEach((function(i,o){c.set(o,e(i,n,r,o,t,a))}));var m=f?void 0:(u?l?_F:wF:l?MF:jF)(t);return dF(m||t,(function(i,o){m&&(i=t[o=i]),hF(c,o,e(i,n,r,o,t,a))})),c},FF=Ja,BF=ep;var qF=function(e,t){return t.length<2?e:FF(e,BF(t,0,-1))},HF=$a,VF=pP,UF=qF,WF=Xa;var GF=function(e,t){return t=HF(t,e),null==(e=UF(e,t))||delete e[WF(VF(t))]},$F=Fj;var YF=Ig;var XF=function(e){return(null==e?0:e.length)?YF(e,1):[]},ZF=XF,KF=sb,JF=bb;var QF=function(e){return JF(KF(e,void 0,ZF),e+"")},eB=Na,tB=zF,nB=GF,rB=$a,iB=XL,oB=function(e){return $F(e)?void 0:e},aB=Tz,cB=QF((function(e,t){var n={};if(null==e)return n;var r=!1;t=eB(t,(function(t){return t=rB(t,e),r||(r=t.length>1),t})),iB(e,aB(e),n),r&&(n=tB(n,7,oB));for(var i=t.length;i--;)nB(n,t[i]);return n})),sB=E(cB),lB=["#1890FF","#66B5FF","#41D9C7","#2FC25B","#6EDB8F","#9AE65C","#FACC14","#E6965C","#57AD71","#223273","#738AE6","#7564CC","#8543E0","#A877ED","#5C8EE6","#13C2C2","#70E0E0","#5CA3E6","#3436C7","#8082FF","#DD81E6","#F04864","#FA7D92","#D598D9"],uB=["width","height","className","style","children","type"];function fB(e){return fB="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},fB(e)}function pB(){return pB=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},pB.apply(this,arguments)}function dB(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 hB(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,_B(r.key),r)}}function mB(e,t){return mB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},mB(e,t)}function vB(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=gB(e);if(t){var i=gB(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===fB(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 gB(e){return gB=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},gB(e)}function bB(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 xB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bB(Object(n),!0).forEach((function(t){wB(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wB(e,t,n){return(t=_B(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _B(e){var t=function(e,t){if("object"!==fB(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==fB(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===fB(t)?t:String(t)}var kB="value",SB=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[kB]}),0):hc(o[c])||o[c]<=0?0:o[c],xB(xB({},o),{},(wB(n={children:u},kB,r),wB(n,"depth",i),wB(n,"index",a),n))},EB=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},OB=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,xB(xB({},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),xB(xB({},n),{},{x:n.x+i,width:n.width-i})}(e,t,n,r)},AB=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[kB]*n;return xB(xB({},e),{},{area:hc(t)||t<=0?0:t})}))}(r,a.width*a.height/t[kB]),f=u.slice();for(c.area=0;f.length>0;)c.push(i=f[0]),c.area+=i.area,(o=EB(c,l,n))<=s?(f.shift(),s=o):(c.area-=c.pop().area,a=OB(c,l,a,!1),l=Math.min(a.width,a.height),c.length=c.area=0,s=1/0);return c.length&&(a=OB(c,l,a,!0),c.length=c.area=0),xB(xB({},t),{},{children:u.map((function(t){return e(t,n)}))})}return t},CB={isTooltipActive:!1,isAnimationFinished:!1,activeNode:null,formatRoot:null,currentRoot:null,nestIndex:[]},TB=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&&mB(e,t)}(a,p);var n,r,i,o=vB(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 wB(yB(e=o.call.apply(o,[this].concat(n))),"state",xB({},CB)),wB(yB(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),$i(t)&&t()})),wB(yB(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),$i(t)&&t()})),e}return n=a,r=[{key:"handleMouseEnter",value:function(e,t){var n=this.props,r=n.onMouseEnter;Hc(n.children,ox)?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;Hc(n.children,ox)?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=SB({depth:0,node:xB(xB({},e),{},{x:0,y:0,width:i,height:o}),index:0,valueKey:a}),l=AB(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=SB({depth:0,node:xB(xB({},e),{},{x:0,y:0,width:i,height:o}),index:0,valueKey:a}),l=AB(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,v=n.height,y=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(Tg,{begin:c,duration:s,isActive:a,easing:l,key:"treemap-".concat(p),from:{x:y,y:g,width:m,height:v},to:{x:y,y:g,width:m,height:v},onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(r){var o=r.x,p=r.y,m=r.width,v=r.height;return e.createElement(Tg,{from:"translate(".concat(x,"px, ").concat(x,"px)"),to:"translate(0, 0)",attributeName:"transform",begin:c,easing:l,isActive:a,duration:s},e.createElement(is,w,b>2&&!h?null:i.constructor.renderContentItem(t,xB(xB({},n),{},{isAnimationActive:a,isUpdateAnimationActive:!u,width:m,height:v,x:o,y:p}),f,d)))})):e.createElement(is,w,this.constructor.renderContentItem(t,xB(xB({},n),{},{isAnimationActive:!1,isUpdateAnimationActive:!1,width:m,height:v,x:y,y:g}),f,d))}},{key:"renderNode",value:function(t,n,r){var i=this,o=this.props,a=o.content,c=o.type,s=xB(xB(xB({},$c(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(is,{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=Hc(n,ox);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:uT(u,r,""),value:uT(u,kB)}]:[];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=tc(n,r,"root"),c=null;return e.isValidElement(i)&&(c=e.cloneElement(i,n,o)),c=$i(i)?i(n,o):a,e.createElement("div",{onClick:t.handleNestIndex.bind(t,n,o),key:"nest-index-".concat(xc()),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(!Vc(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=dB(t,uB),l=$c(s);return e.createElement("div",{className:Ei("recharts-wrapper",i),style:xB(xB({},o),{},{position:"relative",cursor:"default",width:n,height:r}),role:"region"},e.createElement(es,pB({},l,{width:n,height:"nest"===c?r-30:r}),this.renderAllNodes(),Gc(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=SB({depth:0,node:{children:e.data,x:0,y:0,width:e.width,height:e.height},index:0,valueKey:e.dataKey}),r=AB(n,e.aspectRatio);return xB(xB({},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($i(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(xD,{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=Iw(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||lB;return e.createElement("g",null,e.createElement(cD,pB({fill:n.depth<2?d[l%d.length]:"rgba(255,255,255,0)",stroke:"#fff"},sB(n,"children"),{role:"img"})),u,f)}}],r&&hB(n.prototype,r),i&&hB(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();wB(TB,"displayName","Treemap"),wB(TB,"defaultProps",{aspectRatio:.5*(1+Math.sqrt(5)),dataKey:"value",type:"flat",isAnimationActive:!Gb.isSsr,isUpdateAnimationActive:!Gb.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"linear"});var PB=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},DB=Pf,jB=PB;var MB=function(e,t){return e&&e.length?jB(e,DB(t)):0},NB=E(MB),IB=["width","height","className","style","children"],RB=["sourceX","sourceY","sourceControlX","targetX","targetY","targetControlX","linkWidth"];function LB(e){return LB="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},LB(e)}function zB(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 FB(){return FB=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},FB.apply(this,arguments)}function BB(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,YB(r.key),r)}}function qB(e,t){return qB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qB(e,t)}function HB(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"===LB(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return VB(e)}(this,n)}}function VB(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 WB(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 GB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?WB(Object(n),!0).forEach((function(t){$B(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $B(e,t,n){return(t=YB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YB(e){var t=function(e,t){if("object"!==LB(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==LB(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===LB(t)?t:String(t)}var XB={x:0,y:0},ZB=function(e){return e.y+e.dy/2},KB=function(e){return e&&e.value||0},JB=function(e,t){return t.reduce((function(t,n){return t+KB(e[n])}),0)},QB=function(e,t,n){return n.reduce((function(n,r){var i=t[r],o=e[i.source];return n+ZB(o)*KB(t[r])}),0)},eq=function(e,t,n){return n.reduce((function(n,r){var i=t[r],o=e[i.target];return n+ZB(o)*KB(t[r])}),0)},tq=function(e,t){return e.y-t.y},nq=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))}},rq=function(e,t,n){for(var r=0,i=e.length;r<i;r++){var o=e[r],a=o.length;o.sort(tq);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}}},iq=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=JB(n,l.sourceLinks),f=QB(e,n,l.sourceLinks)/u;l.y+=(f-ZB(l))*r}}},oq=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=JB(n,s.targetLinks),u=eq(e,n,s.targetLinks)/l;s.y+=(u-ZB(s))*r}}},aq=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 GB(GB(GB({},e),n),{},{value:Math.max(JB(i,n.sourceLinks),JB(i,n.targetLinks)),depth:0})})),a=0,c=o.length;a<c;a++){var s=o[a];s.sourceNodes.length||nq(o,s)}var l=nj(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=y_(e.map((function(e){return(t-(e.length-1)*n)/NB(e,KB)}))),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 GB(GB({},e),{},{dy:KB(e)*i})}))}(u,r,a,c);rq(u,r,a);for(var p=1,d=1;d<=i;d++)oq(l,u,f,p*=.99),rq(u,r,a),iq(l,u,f,p),rq(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}},cq=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&&qB(e,t)}(a,p);var n,r,i,o=HB(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 $B(VB(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=Hc(r.children,ox);o?this.setState((function(n){return"hover"===o.props.trigger?GB(GB({},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=Hc(r.children,ox);o?this.setState((function(e){return"hover"===o.props.trigger?GB(GB({},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=Hc(r.children,ox);o&&"click"===o.props.trigger&&(this.state.isTooltipActive?this.setState((function(e){return GB(GB({},e),{},{activeElement:void 0,activeElementType:void 0,isTooltipActive:!1})})):this.setState((function(n){return GB(GB({},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=tc(c,"top")||0,l=tc(c,"left")||0;return e.createElement(is,{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,v=function(e,t){var n=+e,r=t-n;return function(e){return n+r*e}}(h,m),y=v(o),g=v(1-o),b=GB({sourceX:h,targetX:m,sourceY:p.y+c+f/2+s,targetY:d.y+u+f/2+s,sourceControlX:y,targetControlX:g,sourceRelativeY:c,targetRelativeY:u,linkWidth:f,index:i,payload:GB(GB({},t),{},{source:p,target:d})},$c(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(is,FB({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=tc(o,"top")||0,c=tc(o,"left")||0;return e.createElement(is,{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=GB(GB({},$c(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(is,FB({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=Hc(n,ox);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):XB,d=l?function(e,t,n){var r=e.payload;if("node"===t)return[{payload:e,name:uT(r,n,""),value:uT(r,"value")}];if(r.source&&r.target){var i=uT(r.source,n,""),o=uT(r.target,n,"");return[{payload:e,name:"".concat(i," - ").concat(o),value:uT(r,"value")}]}return[]}(l,u,o):[];return e.cloneElement(a,{viewBox:f,active:s,coordinate:p,label:"",payload:d})}},{key:"render",value:function(){if(!Vc(this))return null;var t=this.props,n=t.width,r=t.height,i=t.className,o=t.style,a=t.children,c=zB(t,IB),s=this.state,l=s.links,u=s.nodes,f=$c(c);return e.createElement("div",{className:Ei("recharts-wrapper",i),style:GB(GB({},o),{},{position:"relative",cursor:"default",width:n,height:r}),role:"region"},e.createElement(es,FB({},f,{width:n,height:r}),Gc(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||!Ec(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=aq({data:n,width:l,height:u,iterations:a,nodeWidth:c,nodePadding:s}),p=f.links,d=f.nodes;return GB(GB({},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($i(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=zB(n,RB);return e.createElement("path",FB({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"},$c(u)))}},{key:"renderNodeItem",value:function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):$i(t)?t(n):e.createElement(cD,FB({className:"recharts-sankey-node",fill:"#0088fe",fillOpacity:"0.8"},$c(n),{role:"img"}))}}],r&&BB(n.prototype,r),i&&BB(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();$B(cq,"displayName","Sankey"),$B(cq,"defaultProps",{nameKey:"name",dataKey:"value",nodePadding:10,nodeWidth:10,linkCurvature:.5,iterations:32,margin:{top:5,right:5,bottom:5,left:5}}),FL({chartName:"RadarChart",GraphicalChild:pM,axisComponents:[{axisType:"angleAxis",AxisComp:Tj},{axisType:"radiusAxis",AxisComp:vj}],formatAxisMap:YT,defaultProps:{layout:"centric",startAngle:90,endAngle:-270,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),FL({chartName:"ScatterChart",GraphicalChild:zR,defaultTooltipEventType:"item",validateTooltipEventTypes:["item"],axisComponents:[{axisType:"xAxis",AxisComp:FR},{axisType:"yAxis",AxisComp:BR},{axisType:"zAxis",AxisComp:OR}],formatAxisMap:WN});var sq=FL({chartName:"AreaChart",GraphicalChild:ER,axisComponents:[{axisType:"xAxis",AxisComp:FR},{axisType:"yAxis",AxisComp:BR}],formatAxisMap:WN});function lq(e){return lq="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},lq(e)}function uq(){return uq=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},uq.apply(this,arguments)}function fq(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,yq(r.key),r)}}function pq(e,t){return pq=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},pq(e,t)}function dq(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=mq(e);if(t){var i=mq(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===lq(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return hq(e)}(this,n)}}function hq(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mq(e){return mq=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},mq(e)}function vq(e,t,n){return(t=yq(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yq(e){var t=function(e,t){if("object"!==lq(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==lq(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===lq(t)?t:String(t)}FL({chartName:"RadialBarChart",GraphicalChild:OM,legendContent:"children",defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"angleAxis",AxisComp:Tj},{axisType:"radiusAxis",AxisComp:vj}],formatAxisMap:YT,defaultProps:{layout:"radial",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),FL({chartName:"ComposedChart",GraphicalChild:[fR,ER,zN,zR],axisComponents:[{axisType:"xAxis",AxisComp:FR},{axisType:"yAxis",AxisComp:BR},{axisType:"zAxis",AxisComp:OR}],formatAxisMap:WN});var gq=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")},bq=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&&pq(e,t)}(a,p);var n,r,i,o=dq(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 vq(hq(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=Ei("recharts-trapezoid",s);return h?e.createElement(Tg,{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(Tg,{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",uq({},$c(t.props,!0),{className:m,d:gq(a,c,r,i,o),ref:function(e){t.node=e}})))})):e.createElement("g",null,e.createElement("path",uq({},$c(this.props,!0),{className:m,d:gq(r,i,o,a,c)})))}}],r&&fq(n.prototype,r),i&&fq(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function xq(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 wq(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 wq(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 wq(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 _q(e){return _q="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},_q(e)}function kq(){return kq=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},kq.apply(this,arguments)}function Sq(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 Eq(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sq(Object(n),!0).forEach((function(t){Dq(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sq(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Oq(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,jq(r.key),r)}}function Aq(e,t){return Aq=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Aq(e,t)}function Cq(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=Pq(e);if(t){var i=Pq(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===_q(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Tq(e)}(this,n)}}function Tq(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pq(e){return Pq=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Pq(e)}function Dq(e,t,n){return(t=jq(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jq(e){var t=function(e,t){if("object"!==_q(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==_q(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===_q(t)?t:String(t)}vq(bq,"defaultProps",{x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"});var Mq=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&&Aq(e,t)}(a,p);var n,r,i,o=Cq(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 Dq(Tq(e=o.call.apply(o,[this].concat(n))),"state",{isAnimationFinished:!1}),Dq(Tq(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),$i(t)&&t()})),Dq(Tq(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),$i(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=Eq(Eq({},t),{},{stroke:t.stroke});return e.createElement(is,kq({className:"recharts-funnel-trapezoid"},jc(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(Tg,{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=kc(n.x,e.x),o=kc(n.y,e.y),a=kc(n.upperWidth,e.upperWidth),c=kc(n.lowerWidth,e.lowerWidth),s=kc(n.height,e.height);return Eq(Eq({},e),{},{x:r(i),y:o(i),upperWidth:a(i),lowerWidth:c(i),height:s(i)})}var u=kc(e.x+e.upperWidth/2,e.x),f=kc(e.y+e.height/2,e.y),p=kc(0,e.upperWidth),d=kc(0,e.lowerWidth),h=kc(0,e.height);return Eq(Eq({},e),{},{x:u(i),y:f(i),upperWidth:p(i),lowerWidth:d(i),height:h(i)})}));return e.createElement(is,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&&r_(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=Ei("recharts-trapezoids",i);return e.createElement(is,{className:c},this.renderTrapezoids(),(!o||a)&&SP.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):$i(t)?t(n):Bj(t)?e.createElement(bq,kq({},n,t)):e.createElement(bq,n)}}],r&&Oq(n.prototype,r),i&&Oq(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();Dq(Mq,"displayName","Funnel"),Dq(Mq,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",labelLine:!0,hide:!1,isAnimationActive:!Gb.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",lastShapeType:"triangle"}),Dq(Mq,"getRealFunnelData",(function(e){var t=e.props,n=t.data,r=t.children,i=$c(e.props),o=qc(r,Hx);return n&&n.length?n.map((function(e,t){return Eq(Eq(Eq({payload:e},i),e),o&&o[t]&&o[t].props)})):o&&o.length?o.map((function(e){return Eq(Eq({},i),e.props)})):[]})),Dq(Mq,"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 pc(n)?u=n:eo(n)&&(u=u*parseFloat(n)/100),{realWidth:u-o-a-50,realHeight:l-s-c,offsetX:(r-u)/2,offsetY:(i-l)/2}})),Dq(Mq,"getComposedData",(function(e){var t=e.item,n=e.offset,r=Mq.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=Mq.getRealWidthHeight(t,n),d=p.realHeight,h=p.realWidth,m=p.offsetX,v=p.offsetY,y=Math.max.apply(null,r.map((function(e){return uT(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=uT(e,o,0),l=uT(e,a,t),p=i;if(t!==g-1)(n=uT(r[t+1],o,0))instanceof Array&&(n=xq(n,1)[0]);else if(i instanceof Array&&2===i.length){var d=xq(i,2);p=d[0],n=d[1]}else n="rectangle"===s?p:0;var w=(y-p)*h/(2*y)+f+25+m,_=b*t+u+v,k=p/y*h,S=n/y*h,E=[{name:l,value:p,payload:e,dataKey:o,type:c}],O={x:w+k/2,y:_+b/2};return Eq(Eq({x:w,y:_,width:Math.max(k,S),upperWidth:k,lowerWidth:S,height:b,name:l,val:p,tooltipPayload:E,tooltipPosition:O},sB(e,"width")),{},{payload:e,parentViewBox:x,labelViewBox:{x:w+(k-S)/4,y:_,width:Math.abs(k-S)/2+Math.min(k,S),height:b}})}));return l&&(w=w.map((function(e,t){var n=e.y-t*b+(g-1-t)*b;return Eq(Eq({},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:Eq(Eq({},e.tooltipPosition),{},{y:n+b/2}),labelViewBox:Eq(Eq({},e.labelViewBox),{},{y:n})})}))),{trapezoids:w,data:r}})),FL({chartName:"FunnelChart",GraphicalChild:Mq,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",axisComponents:[],defaultProps:{layout:"centric"}});function Nq(t){var n,r,i,s,l,u,f,p=o(null),d=p[0],h=p[1],m=o(!1),v=m[0],y=m[1],g=c(Ht),x=t.intervalType||"Month";g?(x=g.intervalType,f=g.intervalStart):f=function(e,t){return"Week"===e?Bt(t):qt()}(x,t.weekStartsOn);var w=Y(f,"Week"==x?{days:7}:{months:1});function _(){h(null),t.previewDataProvider?t.previewDataProvider(f,w).then((function(e){h(e)})):_i(t.dailyDataType,f,w).then((function(e){h(e)}))}a((function(){function e(){t.previewDataProvider?y(!0):wi(t.dailyDataType).then((function(e){y(e)}))}return e(),b.on("applicationDidBecomeVisible",e),b.on("externalAccountSyncComplete",e),function(){b.off("applicationDidBecomeVisible",e),b.off("externalAccountSyncComplete",e)}}),[t.dailyDataType]),a((function(){return _(),b.on("applicationDidBecomeVisible",_),b.on("externalAccountSyncComplete",_),function(){b.off("applicationDidBecomeVisible",_),b.off("externalAccountSyncComplete",_)}}),[t.intervalType,t.weekStartsOn,g]);var k=f,S=[],E=!1;if(d)for(;k<w;){var O={day:k.getDate()};S.push(O);var A=ri(k);null!=d[A]&&null!=d[A]&&(O.value=d[A],O.rawValue=O.value,O.date=k,t.valueConverter&&(O.value=t.valueConverter(O.value)),E=!0),k=Y(k,{days:1})}var C=function(n){var r=n.active,i=n.payload;if(n.label,r&&i&&i.length){var o=i[0].payload.date;return e.createElement("div",{className:"mdhui-daily-data-tooltip"},e.createElement("div",{className:"mdhui-daily-data-tooltip-value"},t.valueFormatter?t.valueFormatter(i[0].payload.rawValue):i[0].payload.value),e.createElement("div",{className:"mdhui-daily-data-tooltip-date"},nt(o,"MM/dd/yyyy")))}return null},T=function(t){var n=t.x,r=t.y;t.stroke;var i=t.payload.value;if("Month"==x){var o=new Date(f.getFullYear(),f.getMonth(),i);return e.createElement("text",{className:pt(o)?"today":"",fill:"var(--mdhui-text-color-2)",x:n,y:r+15,textAnchor:"middle",fontSize:"12"},i)}for(var a=f,c="",s=0;s<7;s++){if(a.getDate()==i){c=nt(a,"EEEEEE");break}a=Y(a,{days:1})}return e.createElement(e.Fragment,null,e.createElement("text",{className:pt(a)?"today":"",fill:"var(--mdhui-text-color-2)",x:n,y:r+8,textAnchor:"middle",fontSize:"11"},c),e.createElement("text",{className:pt(a)?"today":"",fill:"var(--mdhui-text-color-2)",x:n,y:r+24,textAnchor:"middle",fontSize:"12"},i))};function P(e){return e>=1e4?Number((e/1e3).toFixed(1))+"K":Number(e.toFixed(1))}var D="gradient_".concat(Math.random());function j(){var n=void 0;if(t.options&&"Line"==t.chartType){var r=t.options.domainMin;"Auto"==r?n=["auto","auto"]:null!=r&&(n=[r,"auto"])}return e.createElement(e.Fragment,null,E&&e.createElement(ox,{wrapperStyle:{outline:"none"},active:!0,content:e.createElement(C,null)}),e.createElement(XI,{vertical:"Bar"!=t.chartType,strokeDasharray:"2 4"}),e.createElement(BR,{tickFormatter:P,axisLine:!1,interval:0,tickLine:!1,width:32,domain:n}),e.createElement(FR,{id:"myXAxis",tick:T,axisLine:!1,dataKey:"day",tickMargin:0,minTickGap:0,tickLine:!1,interval:"Month"==x?1:"preserveStartEnd"}))}return!v&&t.hideIfNoData?null:e.createElement("div",{className:"mdhui-daily-data-chart",ref:t.innerRef},t.title&&e.createElement(jt,{title:t.title}),e.createElement("div",{className:"chart-container"},!E&&e.createElement("div",null,d&&e.createElement("div",{className:"no-data-label"},"No Data"),!d&&e.createElement(I,null),e.createElement(qx,{width:"100%",height:150},e.createElement(BL,{width:400,height:400,data:S,syncId:"DailyDataChart"},j()))),E&&"Line"==t.chartType&&e.createElement(qx,{width:"100%",height:150},e.createElement(BL,{width:400,height:400,data:S,syncId:"DailyDataChart"},j(),e.createElement(fR,{strokeWidth:2,key:"line",type:"monotone",dataKey:"value",stroke:(null===(n=t.options)||void 0===n?void 0:n.lineColor)||"var(--mdhui-color-primary)"}))),E&&"Bar"==t.chartType&&e.createElement(qx,{width:"100%",height:150},e.createElement(qL,{width:400,height:400,data:S,syncId:"DailyDataChart"},e.createElement("defs",null,e.createElement("linearGradient",{id:D,x1:"0",y1:"0",x2:"0",y2:"1"},e.createElement("stop",{offset:"0%",stopColor:(null===(r=t.options)||void 0===r?void 0:r.barColor)||"var(--mdhui-color-primary)",stopOpacity:1}),e.createElement("stop",{offset:"100%",stopColor:(null===(i=t.options)||void 0===i?void 0:i.barColor)||"var(--mdhui-color-primary)",stopOpacity:.7}))),j(),e.createElement(zN,{key:"bar",type:"monotone",dataKey:"value",fill:"url(#".concat(D,")"),radius:[2,2,0,0]}))),E&&"Area"==t.chartType&&e.createElement(qx,{width:"100%",height:150},e.createElement(sq,{width:400,height:400,data:S,syncId:"DailyDataChart"},e.createElement("defs",null,e.createElement("linearGradient",{id:D,x1:"0",y1:"0",x2:"0",y2:"1"},e.createElement("stop",{offset:"0%",stopColor:(null===(s=t.options)||void 0===s?void 0:s.areaColor)||"var(--mdhui-color-primary)",stopOpacity:.5}),e.createElement("stop",{offset:"100%",stopColor:(null===(l=t.options)||void 0===l?void 0:l.areaColor)||"var(--mdhui-color-primary)",stopOpacity:.2}))),j(),e.createElement(ER,{key:"area",type:"monotone",dataKey:"value",fillOpacity:1,strokeWidth:2,fill:"url(#".concat(D,")"),stroke:(null===(u=t.options)||void 0===u?void 0:u.lineColor)||"var(--mdhui-color-primary)"})))))}_(".mdhui-daily-data-chart {\n position: relative;\n}\n\n.mdhui-daily-data-chart .title {\n padding: 16px;\n padding-bottom: 0;\n position: relative;\n font-weight: bold;\n}\n\n.mdhui-daily-data-chart .chart-container {\n padding: 16px;\n position: relative;\n}\n\n.mdhui-daily-data-chart .no-data-label,\n.mdhui-daily-data-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-3);\n box-sizing: border-box;\n padding: 16px;\n}\n\n.mdhui-daily-data-chart .mdhui-daily-data-tooltip {\n padding: 8px;\n background: var(--mdhui-background-color-0);\n border-radius: var(--mdhui-card-border-radius);\n box-shadow: var(--mdhui-box-shadow-1);\n animation: fadein 1s;\n -moz-animation: fadein 1s;\n -webkit-animation: fadein 1s;\n}\n\n.mdhui-daily-data-chart .mdhui-daily-data-tooltip .mdhui-daily-data-tooltip-value {\n font-weight: bold;\n font-size: 1.5em;\n color: var(--mdhui-text-color-0);\n padding-bottom: 4px;\n}\n\n.mdhui-daily-data-chart .mdhui-daily-data-tooltip .mdhui-daily-data-tooltip-date {\n font-size: .7em;\n color: var(--mdhui-text-color-2);\n line-height: 1em;\n}\n\n.mdhui-daily-data-chart .recharts-cartesian-axis-tick text {\n fill: var(--mdhui-text-color-1);\n font-size: 11px;\n}\n\n.mdhui-daily-data-chart .today {\n font-weight: bold;\n}");function Iq(e,t,n){return"FitbitSteps"==e?Rq(t,n):"FitbitRestingHeartRates"==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[ri(n)]=60+Math.floor(5*Math.random()),n=Y(n,{days:1});return i}(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[ri(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[ri(n)]=60+Math.floor(5*Math.random()),n=Y(n,{days:1});return i}(t,n):"AppleHealthSteps"==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[ri(n)]=3e3+Math.floor(1e4*Math.random()),n=Y(n,{hours:1});return i}(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[ri(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[ri(n)]=Math.floor(500*Math.random()),n=Y(n,{hours:1});return i}(t,n):Rq(t,n)}function Rq(e,t){for(var n=new Date(e,t,1,0,0,0,0),r=Y(n,{months:1}),i={};n<r;)i[ri(n)]=3e3+Math.floor(1e4*Math.random()),n=Y(n,{days:1});return i}function Lq(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 zq(t){var n=o(null),r=n[0],i=n[1],c=o(!1),l=c[0],u=c[1],f=o(!1),p=f[0],d=f[1],h=s(),m=new Date(t.year,t.month,1,0,0,0,0),v=Y(m,{months:1});function y(){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=Iq(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 wi(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 _i(e.dailyDataType,m,v)})),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)}}))}}a((function(){return y(),b.on("applicationDidBecomeVisible",y),b.on("externalAccountSyncComplete",y),function(){b.off("applicationDidBecomeVisible",y),b.off("externalAccountSyncComplete",y)}}),[t]);for(var g=[],x=m,w=!1;x<v;){var _={day:x.getDate()};g.push(_);var k=ri(x);t.lines.forEach((function(e){r&&(_[e.dailyDataType]=r[e.dailyDataType][k],e.valueConverter&&(_[e.dailyDataType]=e.valueConverter(_[e.dailyDataType])),_[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",ref:t.innerRef},t.title&&e.createElement("div",{className:"title"},t.title),!l&&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||l)&&e.createElement("div",null,!w&&!l&&e.createElement("div",{className:"no-data-label"},"No Data"),l&&e.createElement(I,null),e.createElement(qx,{width:"100%",height:150},e.createElement(BL,{width:400,height:400,data:g,syncId:t.syncId},e.createElement(XI,{strokeDasharray:"3 3"}),e.createElement(BR,{axisLine:!1,interval:0,tickLine:!1,width:30,scale:"linear"}),e.createElement(FR,{id:"myXAxis",tick:Lq,axisLine:!1,dataKey:"day",tickMargin:0,minTickGap:0,tickLine:!1,interval:1})))),w&&!l&&e.createElement(qx,{width:"100%",height:150},e.createElement(BL,{width:400,height:400,data:g,syncId:t.syncId},t.lines.map((function(t){return e.createElement(fR,{key:t.dailyDataType,type:"monotone",dataKey:t.dailyDataType,stroke:"var(--mdhui-color-primary)"})})),e.createElement(ox,{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(XI,{strokeDasharray:"3 3"}),e.createElement(BR,{tickFormatter:function(e){return e>=1e4?Math.floor(e/1e3)+"K":e},axisLine:!1,interval:0,tickLine:!1,width:30}),e.createElement(FR,{id:"myXAxis",tick:Lq,axisLine:!1,dataKey:"day",tickMargin:0,minTickGap:0,tickLine:!1,interval:1})))))}function Fq(t){var n=o(!1),r=n[0],i=n[1],a=new Date,c=o(new Date(a.getFullYear(),a.getMonth(),1,0,0,0,0)),s=c[0],l=c[1];function u(){i(!0)}var f=s.getMonth(),p=s.getFullYear();return e.createElement(e.Fragment,null,!r&&e.createElement(zr,null,Er("device-data-no-data")),e.createElement("div",{style:{display:r?"block":"none"}},e.createElement(zt,{intervalType:"Month",intervalStart:s,onIntervalChange:function(e){l(e)}}),e.createElement(zq,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:gi.FitbitSteps,label:Er("steps")}],title:"Fitbit "+Er("steps"),month:f,year:p,syncId:"DeviceDataCharts"}),e.createElement(zq,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:gi.FitbitRestingHeartRate,label:Er("resting-heart-rate")}],title:"Fitbit "+Er("resting-heart-rate"),month:f,year:p,syncId:"DeviceDataCharts"}),e.createElement(zq,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:gi.GarminSteps,label:Er("steps")}],title:"Garmin "+Er("steps"),month:f,year:p,syncId:"DeviceDataCharts"}),e.createElement(zq,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:gi.GarminRestingHeartRate,label:Er("resting-heart-rate")}],title:"Garmin "+Er("resting-heart-rate"),month:f,year:p,syncId:"DeviceDataCharts"}),e.createElement(zq,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:gi.AppleHealthSteps,label:Er("steps")}],title:"Apple Health "+Er("steps"),month:f,year:p,syncId:"DeviceDataCharts"}),e.createElement(zq,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:gi.AppleHealthDistanceWalkingRunning,label:Er("distance-traveled"),valueConverter:function(e){return 621371e-9*e}}],title:"Apple Health "+Er("distance-traveled")+" (Miles)",month:f,year:p,syncId:"DeviceDataCharts"}),e.createElement(zq,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:gi.GoogleFitSteps,label:Er("steps")}],title:"Google Fit "+Er("steps"),month:f,year:p,syncId:"DeviceDataCharts"})))}_(".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: var(--mdhui-card-border-radius);\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 Bq=[{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 qq(t){var n=o(!0),r=n[0],i=n[1],c=o([]),s=c[0],l=c[1];function u(){if("Default"==t.previewState)return i(!1),void p(Bq);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))}))),l(e),t.onExternalAccountsLoaded&&t.onExternalAccountsLoaded(e)}return a((function(){return u(),b.on("applicationDidBecomeVisible",u),b.on("externalAccountSyncComplete",u),function(){b.off("applicationDidBecomeVisible",u),b.off("externalAccountSyncComplete",u)}}),[]),e.createElement("div",{ref:t.innerRef,className:"mdhui-external-account-list"},s&&s.map((function(t){return e.createElement(Dt,{key:t.id.toString()+t.lastRefreshDate},e.createElement(Dr,{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 Hq(e,t){var n=s();a((function(){n.current=e}),[e]),a((function(){if(null!==t){var e=setInterval((function(){n.current&&n.current()}),t);return function(){return clearInterval(e)}}}),[t])}_(".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 Vq=[{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 Uq(t){var n=o(!1),r=n[0],i=n[1],c=o([]),s=c[0],l=c[1];function u(){return"externalAccountsFetchingData"==t.previewState?(Vq[0].status="fetchingData",void l(Vq)):"externalAccountsLoaded"==t.previewState?(Vq[0].status="fetchComplete",void l(Vq)):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(dt(e.lastRefreshDate),{hours:3}))&&(b.refreshExternalAccount(e.id),e.status="fetchingData")})),l(e)}))}a((function(){return function(){if(t.previewState)return i(!0),void u();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=!!s.find((function(e){return"fetchingData"==e.status}));return Hq((function(){u()}),r&&f?5e3:null),f?e.createElement("div",{ref:t.innerRef,className:"mdhui-external-accounts-loading-indicator"},e.createElement(I,{variant:"inline"}),e.createElement("span",{className:"mdhui-external-accounts-loading-indicator-message"},Er("external-account-fetching-data"))):null}_(".mdhui-external-accounts-preview .external-account-title {\n font-size: .88em;\n color: var(--mdhui-text-color-2);\n}");var Wq=[{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 Gq(t){var n=o(null),r=n[0],i=n[1],c="",s=[];function l(){"Default"!=t.previewState?b.getExternalAccounts().then((function(e){u(e)})):u(Wq)}function u(e){s&&(e=e.filter((function(e){return-1!=(null==s?void 0:s.indexOf(e.provider.category))}))),i(e)}return t.excludeProviders||(s.push("Provider"),c+=Er("external-accounts-title-providers")),t.excludeHealthPlans||(s.push("Health Plan"),c.length>0&&(c+=Er("external-accounts-title-divider")),c+=Er("external-accounts-title-health-plans")),t.excludeDeviceManufacturers||(s.push("Device Manufacturer"),c.length>0&&(c+=Er("external-accounts-title-divider")),c+=Er("external-accounts-title-devices")),a((function(){return l(),b.on("applicationDidBecomeVisible",l),function(){b.off("applicationDidBecomeVisible",l)}}),[]),r&&r.length?e.createElement("div",{ref:t.innerRef,className:"mdhui-external-accounts-preview"},e.createElement(D,{title:c,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 $q=[{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"}];_(".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 Yq={};!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}(Yq);var Xq={};!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}(Xq);var Zq={};!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}(Zq);var Kq={};!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}(Kq);var Jq={};function Qq(){return Qq=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},Qq.apply(this,arguments)}function eH(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}(Jq);var tH=t((function(t,n){var r=t.color,i=void 0===r?"currentColor":r,o=t.size,a=void 0===o?24:o,c=eH(t,["color","size"]);return e.createElement("svg",Qq({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"}))}));tH.propTypes={color:Kh.string,size:Kh.oneOfType([Kh.string,Kh.number])},tH.displayName="Watch";var nH=tH;function rH(t){var n=o([]),r=n[0],i=n[1];function c(){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(a((function(){return c(),b.on("applicationDidBecomeVisible",c),b.on("externalAccountSyncComplete",c),function(){b.off("applicationDidBecomeVisible",c),b.off("externalAccountSyncComplete",c)}}),[]),!r.length)return null;var s=b.getCurrentLanguage().toLowerCase().startsWith("es")?Tt:Ze;return e.createElement("div",{className:"mdhui-connected-devices",ref:t.innerRef},e.createElement(jt,{title:t.providerName+" "+Er("devices")}),r.map((function(t){var n,r,i,o,a,c;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(nH,{size:"16"})),"SCALE"==(null===(r=t.properties)||void 0===r?void 0:r.Type)&&e.createElement("div",{className:"device-icon"},e.createElement(P,{icon:Jq.faWeightScale})),e.createElement("div",{className:"device-info"},e.createElement("div",{className:"device-title"},t.value),t.observationDate&&e.createElement("div",{className:"device-sync"},Er("last-sync")," ",ut(dt(t.observationDate),new Date,{locale:s}))),"Empty"==(null===(i=t.properties)||void 0===i?void 0:i.Battery)&&e.createElement("div",{className:"battery-icon battery-empty"},e.createElement(P,{icon:Yq.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:Kq.faBatteryQuarter,rotate:-90})),"Medium"==(null===(a=t.properties)||void 0===a?void 0:a.Battery)&&e.createElement("div",{className:"battery-icon battery-medium"},e.createElement(P,{icon:Zq.faBatteryHalf,rotate:-90})),"High"==(null===(c=t.properties)||void 0===c?void 0:c.Battery)&&e.createElement("div",{className:"battery-icon battery-high"},e.createElement(P,{icon:Xq.faBatteryFull,rotate:-90})))})))}function iH(t){return e.createElement(rH,{innerRef:t.innerRef,providerName:"Fitbit",providerNamespace:"Fitbit",previewData:$q,previewState:t.previewState})}function oH(t){var n,r=o(!1),i=r[0],a=r[1],c=new Date,s=o(new Date(c.getFullYear(),c.getMonth(),1,0,0,0,0)),l=s[0],u=s[1];var f=l.getMonth(),p=l.getFullYear();return e.createElement("div",{style:{display:i?"block":"none"}},e.createElement(zt,{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(zq,{onDataDetected:function(){a(!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 aH(t){return e.createElement(oH,{previewState:t.previewState,charts:[{lines:[{showAverage:!0,dailyDataType:gi.FitbitSteps,label:Er("steps")}],title:Er("steps"),syncId:"fitbit"},{lines:[{showAverage:!0,dailyDataType:gi.FitbitRestingHeartRate,label:Er("resting-heart-rate")}],title:Er("resting-heart-rate"),syncId:"DeviceDataCharts"}]})}var cH=[{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 sH(t){return e.createElement(rH,{innerRef:t.innerRef,providerName:"Garmin",providerNamespace:"Garmin",previewData:cH,previewState:t.previewState})}function lH(t){return e.createElement(oH,{previewState:t.previewState,charts:[{lines:[{showAverage:!0,dailyDataType:gi.GarminSteps,label:Er("steps")}],title:Er("steps"),syncId:"garmin"},{lines:[{showAverage:!0,dailyDataType:gi.GarminRestingHeartRate,label:Er("resting-heart-rate")}],title:Er("resting-heart-rate"),syncId:"DeviceDataCharts"}]})}var uH="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==",fH="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",pH="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",dH="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",hH="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",mH="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 vH(t){var n=o(),r=n[0],i=n[1];function c(){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 a((function(){return c(),b.on("externalAccountSyncComplete",c),b.on("applicationDidBecomeVisible",c),function(){b.off("externalAccountSyncComplete",c),b.off("applicationDidBecomeVisible",c)}}),[t.concept]),r?r.PreviewValues.length?e.createElement("div",{ref:t.innerRef},e.createElement(D,{className:"mdhui-health-preview-section",indicatorPosition:t.indicatorPosition,bottomBorder:!0,indicatorValue:r.Count,title:function(){switch(t.concept){case"Medications":return Er("medications-title");case"Immunizations":return Er("immunizations-title");case"Reports":return Er("reports-title");case"Allergies":return Er("allergies-title");case"Conditions":return Er("conditions-title");case"Procedures":return Er("procedures-title")}}(),titleIcon:e.createElement("img",{className:"mdhui-health-preview-icon",src:function(){switch(t.concept){case"Medications":return fH;case"Immunizations":return mH;case"Reports":return pH;case"Allergies":return uH;case"Conditions":return dH;case"Procedures":return hH}}()}),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",{ref:t.innerRef,className:"mdhui-health-preview-section"},e.createElement(I,null))}_(".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}");_(".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 yH="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";_(".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 gH={prefix:"fas",iconName:"chevron-up",icon:[512,512,[],"f077","M233.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L256 173.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z"]},bH={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 xH(t){var n=o(0),r=n[0],i=n[1],c=o(0),l=c[0],u=c[1],f=s(null);return a((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",{ref:t.innerRef,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(dt(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*l,fill:"var(--mdhui-color-danger)"}),t.labResultValue.NormalRangeBottomY&&e.createElement("rect",{x:"0",y:t.labResultValue.NormalRangeBottomY*l,width:r,height:t.labResultValue.NormalRangeBottomY*l,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*l,x2:t.labResultValue.SparklinePoints[i+1].X*r,y2:t.labResultValue.SparklinePoints[i+1].Y*l,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*l,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:bH})))))}var wH={RecentLabs:{TotalLabReports:53,RecentLabReports:["CORONAVIRUS (COVID-19), PCR - Final result","VWP","CBC"]},ImportantLabs:[]},_H={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 kH(t){var n,r,i,c=o(null),s=c[0],l=c[1],u=o(!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){l(e)}))}l({ImportantLabs:[],RecentLabs:{RecentLabReports:[]}})}else l(wH);else l(_H)}a((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(!s)return e.createElement("div",{ref:t.innerRef,className:"mdhui-health-preview-section"},e.createElement(I,null));if(s&&!s.ImportantLabs.length&&!(null===(n=s.RecentLabs)||void 0===n?void 0:n.RecentLabReports.length))return null;return e.createElement("div",{ref:t.innerRef},e.createElement(D,{className:"mdhui-lab-results-summary mdhui-health-preview-section",bottomBorder:!0,title:Er("lab-results-title"),titleIcon:e.createElement("img",{className:"mdhui-health-preview-icon",src:yH,alt:"Lab Results"}),onClick:function(){s&&t.onClick()},indicatorValue:null===(r=null==s?void 0:s.RecentLabs)||void 0===r?void 0:r.TotalLabReports,indicatorPosition:(null===(i=s.ImportantLabs)||void 0===i?void 0:i.length)?"topRight":void 0},!s&&e.createElement(I,null),s&&e.createElement(e.Fragment,null,!!s.ImportantLabs.length&&e.createElement("div",{className:"mdhui-lab-results-values-container"+(f?" no-overflow":""),style:{height:5.64*s.ImportantLabs[0].length+"em"}},e.createElement("div",{className:"mdhui-lab-results-values-slider",style:{width:13*s.ImportantLabs.length+.5+"em"}},s.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(xH,{onViewTermInfo:function(e){return t.onViewTermInfo(e)},labResultValue:n,key:r})})))})))),!s.ImportantLabs.length&&e.createElement("div",null,s.RecentLabs.RecentLabReports.map((function(t){return e.createElement("div",{key:t,className:"mdhui-health-preview-item"},t)}))))))}_(".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 SH={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 EH(t){var n=o(null),r=n[0],i=n[1];function c(){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(SH)}return a((function(){return c(),b.on("applicationDidBecomeVisible",c),function(){b.off("applicationDidBecomeVisible",c)}}),[]),r?e.createElement("div",{ref:t.innerRef,className:"mdhui-most-recent-notification"},e.createElement(jr,{notification:r}),t.onViewMore&&e.createElement(D,{subtitle:Er("all-notifications"),onClick:t.onViewMore})):null}var OH=[{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 AH(t){var n=s(null);return Hq((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 CH(t){var n=o(!1),r=n[0],i=n[1],c=o(void 0),s=c[0],l=c[1],u=o(!1),f=u[0],p=u[1],d=o([]),h=d[0],m=d[1];function v(){if("Default"==t.previewState&&m(OH),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),s&&(e.pageID=s),b.queryNotifications(e).then((function(e){m(h.concat(e.notifications)),i(!1),e.nextPageID||p(!0),l(e.nextPageID)}))}}return a((function(){v();var e=function(){m([]),l(void 0),p(!1),v()};return b.on("applicationDidBecomeVisible",e),function(){b.off("applicationDidBecomeVisible",e)}}),[]),e.createElement("div",{ref:t.innerRef,className:"mdhui-notification-list"},h&&h.map((function(t){return e.createElement(Dt,{key:t.id.toString()},e.createElement(jr,{notification:t}))})),r&&!f&&e.createElement(I,null),!r&&f&&0==h.length&&e.createElement(Dt,null,e.createElement(zr,null,Er("no-notifications-received"))),e.createElement(AH,{onTrigger:v,enabled:!r&&!f}))}function TH(t){var n=o(!0),r=n[0],i=n[1],c=o(null),s=c[0],l=c[1];function u(){if("Default"==t.previewState)return l({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){l(e),i(!1)}))}a((function(){return u(),b.on("applicationDidBecomeVisible",u),function(){b.off("applicationDidBecomeVisible",u)}}),[]);var f=null==s?void 0:s.organization.logoUrl;return f&&!(null==f?void 0:f.startsWith("http"))&&(f=b.baseUrl+(null==s?void 0:s.organization.logoUrl)),e.createElement("div",{ref:t.innerRef,className:"mdhui-project-header"},r&&e.createElement(I,null),!r&&s&&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:s.organization.color}},s.name),e.createElement("div",{className:"organization-name"},s.organization.name))))}_(".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 line-height: normal;\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");_(".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 PH={};!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}(PH);var DH={};!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}(DH);var jH={};function MH(t){var n=o(!0),r=n[0],i=n[1],c=o(null),s=c[0],l=c[1];function u(){if("Default"==t.previewState)return l({supportEmail:"test@example.com",supportPhone:"555-555-1212",learnMoreLink:"https://mydatahelps.org",learnMoreTitle:"Project Home Page"}),void i(!1);b.getProjectInfo().then((function(e){l(e),i(!1)}))}return a((function(){return u(),b.on("applicationDidBecomeVisible",u),function(){b.off("applicationDidBecomeVisible",u)}}),[]),!s||s.supportEmail||s.supportPhone||s.learnMoreLink&&s.learnMoreTitle?e.createElement("div",{ref:t.innerRef,className:"mdhui-project-support"},e.createElement("div",{className:"title"},Er("support")),r&&e.createElement(I,null),(null==s?void 0:s.learnMoreLink)&&(null==s?void 0:s.learnMoreTitle)&&e.createElement(D,{indicatorIcon:DH.faGlobe,subtitle:s.learnMoreTitle,onClick:function(){return b.openEmbeddedUrl(s.learnMoreLink)}}),(null==s?void 0:s.supportEmail)&&e.createElement(D,{indicatorIcon:PH.faEnvelope,subtitle:s.supportEmail,onClick:function(){return b.openExternalUrl("mailto:"+s.supportEmail)}}),(null==s?void 0:s.supportPhone)&&e.createElement(D,{indicatorIcon:jH.faPhone,subtitle:s.supportPhone,onClick:function(){return b.openExternalUrl("tel:"+s.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}(jH);var NH={},IH={};!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}(IH),function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=IH;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}(NH);_(".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 RH=[{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"}],LH=0;function zH(t){var n=o({}),r=n[0],i=n[1],c=o([]),l=c[0],u=c[1],f=o(!0),p=f[0],d=f[1],h=o(""),m=h[0],v=h[1],g=o(0),x=g[0],w=g[1],_=o(0),S=_[0],E=_[1],O=s(m),A=100;function C(){return Nt(this,void 0,void 0,(function(){return It(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=++LH;b.getExternalAccountProviders(e,null,A,x).then((function(e){t==LH&&(D(e.externalAccountProviders),E(e.totalExternalAccountProviders),d(!1))}))}function D(e){u(l.concat(e.filter((function(e){var n;return-1!=(null===(n=t.providerCategories)||void 0===n?void 0:n.indexOf(e.category))}))))}var j=y((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,v(n),u([]),w(0),t.previewState||j(e.target.value)}function N(){C().then((function(){T(O.current)}))}return a((function(){return function(){if("Default"==t.previewState)return D(RH),void d(!1);C().then((function(){T("")}))}(),b.on("applicationDidBecomeVisible",N),function(){b.off("applicationDidBecomeVisible",N)}}),[]),a((function(){p||T(O.current)}),[x]),e.createElement("div",{ref:t.innerRef,className:"mdhui-provider-search"},e.createElement("div",{className:"search-bar-wrapper"},e.createElement("div",{className:"search-bar"},e.createElement("input",{title:Er("search"),type:"text",value:m,onChange:function(e){return M(e)},placeholder:Er("search"),spellCheck:"false",autoComplete:"off",autoCorrect:"off",autoCapitalize:"off"}),e.createElement(P,{icon:NH.faSearch}))),e.createElement("div",{className:"search-results"},l&&l.map((function(n){return e.createElement(k,{key:n.id,className:"provider",onClick:function(){return function(e){var n,i=e.id;t.previewState||r[i]&&"unauthorized"!=r[i].status||b.connectExternalAccount(i,{openNewWindow:null!==(n=t.openNewWindow)&&void 0!==n&&n}),t.onProviderSelected&&t.onProviderSelected(e)}(n)}},n.logoUrl&&e.createElement("div",{className:"provider-logo",style:{backgroundImage:"url('"+n.logoUrl+"')"}}),e.createElement("div",{className:"provider-info"},e.createElement("div",{className:"provider-name"},n.name),r[n.id]&&"unauthorized"==r[n.id].status&&e.createElement("div",{className:"provider-status error-status"},Er("reconnect")),r[n.id]&&"unauthorized"!=r[n.id].status&&e.createElement("div",{className:"provider-status connected-status"},Er("connected"))))})),p&&e.createElement(I,null)),e.createElement(AH,{onTrigger:function(){w(x+1)},enabled:(x+1)*A<S}))}function FH(t){var n=o(null),r=n[0],i=n[1];function c(){if("Default"!==t.previewState){var e=new Date,n=Y(new Date,{days:-31}),r=t.dataTypes.map((function(t){return _i(t.dailyDataType,n,Y(e,{days:1}))}));Promise.all(r).then((function(e){var n={};e.forEach((function(e,r){n[t.dataTypes[r].dailyDataType]=e})),i(n)}))}else i({})}a((function(){return c(),b.on("externalAccountSyncComplete",c),b.on("applicationDidBecomeVisible",c),function(){b.off("externalAccountSyncComplete",c),b.off("applicationDidBecomeVisible",c)}}),[]);var s=[];if(!r)return null;var l=ri(new Date);return t.dataTypes.forEach((function(e){var t=r[e.dailyDataType];if(t&&t[l]){for(var n=0,i=0,o=1;o<31;o++){var a=ri(Y(new Date,{days:-o}));void 0!==t[a]&&(n+=t[a],i++)}if(!(i<5)){var c=n/i,u=t[l]/(2*c);u>1&&(u=1),s.push({dailyDataType:e.dailyDataType,fillPercent:u,value:e.formatter(t[l])})}}})),"Default"===t.previewState&&(s=[{dailyDataType:gi.Steps,fillPercent:.7,value:"3,995"},{dailyDataType:gi.AppleHealthSleepMinutes,fillPercent:.55,value:"8h 12m"},{dailyDataType:gi.AppleHealthMaxHeartRate,fillPercent:.42,value:"90 bpm"}]),s.length?e.createElement("div",{ref:t.innerRef,className:"mdhui-relative-activity-today"},t.title&&e.createElement(jt,{title:t.title}),s.map((function(n){var r=t.dataTypes.find((function(e){return e.dailyDataType===n.dailyDataType}));return e.createElement(j,{key:r.dailyDataType,className:"mdhui-relative-activity-today-meter",label:r.label,value:n.value,fillPercent:n.fillPercent,averageFillPercent:.5,icon:r.icon,color:r.color})})),e.createElement("div",{className:"mdhui-relative-activity-average-marker"},e.createElement("div",null,e.createElement(P,{icon:gH})),Er("30-day-average"))):null}_(".mdhui-relative-activity-today .mdhui-relative-activity-today-meter {\n margin: 16px;\n}\n\n.mdhui-relative-activity-today .mdhui-relative-activity-average-marker {\n text-align: center;\n margin: 16px;\n font-size: .7em;\n margin-bottom: 16px;\n color: var(--mdhui-text-color-2);\n}");function BH(t){var n=o(!1),r=n[0],i=n[1],c=o({}),s=c[0],l=c[1],u=new Date(t.year,t.month,1,0,0,0,0),f=Y(u,{months:1});function p(){if(t.showPreviewData){if("Loading"===t.showPreviewData)i(!0);else if("WithData"===t.showPreviewData){var e=Iq("FitbitRestingHeartRates",t.year,t.month);e&&l(e)}}else i(!0),_i(gi.RestingHeartRate,u,f).then((function(e){l(e)})).then((function(){return i(!1)}))}return a((function(){return p(),b.on("applicationDidBecomeVisible",p),b.on("externalAccountSyncComplete",p),function(){b.off("applicationDidBecomeVisible",p),b.off("externalAccountSyncComplete",p)}}),[t]),e.createElement("div",{ref:t.innerRef},r&&e.createElement(I,null),!r&&e.createElement(Pt,{year:t.year,month:t.month,dayRenderer:function(t,n,r){var i=function(e,t,n){if(void 0!==n){var r=ri(new Date(e,t,n));return s[r]}}(t,n,r);return void 0!==r?e.createElement("div",{className:"mdhui-calendar-day-with-data-value"},e.createElement("div",{className:"calendar-value"},i),e.createElement("div",{className:"calendar-day"},r)):e.createElement("div",null)}}))}_(".mdhui-calendar-day-with-data-value .calendar-value {\n\theight: 32px;\n\twidth: 32px;\n\tfont-size: 12px;\n\tborder-radius: 17px;\n\tline-height: 34px;\n\ttext-align: center;\n\tbackground: var(--mdhui-background-color-1);\n\tfont-weight: bold;\n\tdisplay: inline-block;\n}\n\n.mdhui-calendar-day-with-data-value .calendar-day {\n\ttext-align: center;\n}");_(".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 qH=[{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:!0,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"}],HH=[{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 VH(t){var n,r,i=o(!0),c=i[0],s=i[1],l=o(null),u=l[0],f=l[1];function p(t){return e.createElement(Nr,{key:t.id.toString(),task:t,disableClick:c})}function d(){if("IncompleteTasks"!=t.previewState)if("CompleteTasks"!=t.previewState){var e,n;e=[],n=function(r){var i={status:t.status};return t.surveys&&(i.surveyName=t.surveys),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 dt(e.dueDate)>dt(t.dueDate)?1:dt(e.dueDate)<dt(t.dueDate)?-1:0})),"complete"==t.status&&e.sort((function(e,t){return e.endDate&&t.endDate?dt(e.endDate)>dt(t.endDate)?-1:dt(e.endDate)<dt(t.endDate)?1:0:0})),f(e),s(!1))}))},n(null)}else f(HH);else f(qH)}if(a((function(){return d(),b.on("applicationDidBecomeVisible",d),function(){b.off("applicationDidBecomeVisible",d)}}),[t.previewState]),"complete"==t.status&&!(null==u?void 0:u.length))return null;var h=null!==(n=t.variant)&&void 0!==n?n:"noCard";return e.createElement(UH,{innerRef:t.innerRef,card:"singleCard"==h},e.createElement("div",{className:"mdhui-survey-task-list"},t.title&&e.createElement(jt,{title:t.title,detailLinkText:t.onDetailLinkClick?Er("view-all")+" ("+(null!==(r=null==u?void 0:u.length)&&void 0!==r?r:0)+")":void 0,onDetailClick:t.onDetailLinkClick}),c&&!u&&e.createElement(I,null),!(null==u?void 0:u.length)&&!c&&e.createElement("div",{className:"empty-message"},Er("all-tasks-complete")),null==u?void 0:u.slice(0,t.limit).map((function(t){return"multiCard"==h?e.createElement(Dt,{key:t.id},p(t)):p(t)}))))}function UH(t){return t.card?e.createElement(Dt,{innerRef:t.innerRef},t.children):e.createElement("div",{ref:t.innerRef},t.children)}function WH(t){var n;return e.createElement(br,{colorScheme:null!==(n=t.colorScheme)&&void 0!==n?n:"auto",primaryColor:t.primaryColor},(t.showBackButton||t.showCloseButton)&&e.createElement(Or,{title:t.title,showBackButton:t.showBackButton,showCloseButton:t.showCloseButton,subtitle:t.subtitle}),!(t.showBackButton||t.showCloseButton)&&e.createElement(e.Fragment,null,e.createElement(Lr,null),e.createElement(Br,{title:t.title,subtitle:t.subtitle})),t.children)}function GH(t){var n,r="",i=[];return t.excludeProviders||(i.push("Provider"),r+=Er("connect-ehr-title-providers")),t.excludeHealthPlans||(i.push("Health Plan"),r.length>0&&(r+=Er("connect-ehr-title-divider")),r+=Er("connect-ehr-title-health-plans")),r=Er("connect-ehr-title-prefix")+r,e.createElement(br,{colorScheme:null!==(n=t.colorScheme)&&void 0!==n?n:"auto"},t.presentation&&e.createElement(Or,{title:r,showBackButton:"Push"==t.presentation,showCloseButton:"Modal"==t.presentation}),!t.presentation&&e.createElement(Lr,null),e.createElement(zr,null,Er("ehr-intro")),e.createElement(Dt,null,e.createElement(Gq,{previewState:t.preview?"Default":void 0,applicationUrl:t.externalAccountsApplicationUrl,excludeProviders:t.excludeProviders,excludeHealthPlans:t.excludeHealthPlans,excludeDeviceManufacturers:!0})),e.createElement(Dt,null,e.createElement(zH,{previewState:t.preview?"Default":void 0,providerCategories:i})))}function $H(t){var n;return e.createElement(br,{colorScheme:null!==(n=t.colorScheme)&&void 0!==n?n:"auto"},e.createElement(Lr,null),e.createElement(Hr,{platforms:["Android"]},e.createElement(Dt,null,e.createElement(D,{title:"Google Fit",subtitle:Er("google-fit-share"),onClick:function(){return b.showGoogleFitSettings()}}))),e.createElement(Dt,null,e.createElement(ti,{previewState:t.preview?"notConnected":void 0})),e.createElement(Dt,null,e.createElement(iH,{previewState:t.preview?"connected":void 0})),e.createElement(Dt,null,e.createElement(ni,{previewState:t.preview?"notConnected":void 0})),e.createElement(Dt,null,e.createElement(sH,{previewState:t.preview?"connected":void 0})),e.createElement(Dt,{allowOverflow:!0},e.createElement(Fq,{previewState:t.preview?"Default":void 0})))}function YH(t){var n,r="",i=[];return t.excludeProviders||(i.push("Provider"),r+=Er("external-accounts-title-providers")),t.excludeHealthPlans||(i.push("Health Plan"),r.length>0&&(r+=Er("external-accounts-title-divider")),r+=Er("external-accounts-title-health-plans")),t.excludeDeviceManufacturers||(i.push("Device Manufacturer"),r.length>0&&(r+=Er("external-accounts-title-divider")),r+=Er("external-accounts-title-devices")),e.createElement(br,{colorScheme:null!==(n=t.colorScheme)&&void 0!==n?n:"auto"},t.presentation&&e.createElement(Or,{title:r,showBackButton:"Push"==t.presentation,showCloseButton:"Modal"==t.presentation}),!t.presentation&&e.createElement(Lr,null),e.createElement(qq,{previewState:t.preview?"Default":void 0,externalAccountProviderCategories:i,onExternalAccountsLoaded:function(e){0===e.length&&("Modal"===t.presentation?b.dismiss():b.back())}}))}function XH(t){var n;return e.createElement(br,{colorScheme:null!==(n=t.colorScheme)&&void 0!==n?n:"auto"},e.createElement(Lr,null),e.createElement(Dt,null,e.createElement(ti,{previewState:t.connectPreview,disabledBehavior:"displayError"})),e.createElement(Dt,null,e.createElement(iH,{previewState:t.devicesPreview})),e.createElement(Dt,{allowOverflow:!0},e.createElement(aH,{previewState:t.chartsPreview})))}function ZH(t){return e.createElement(br,null,e.createElement(Lr,{color:"var(--main-bg-color)"}),e.createElement(Dt,null,e.createElement(ni,{previewState:t.connectPreview,garminProviderID:t.garminProviderID,disabledBehavior:"displayError"})),e.createElement(Dt,null,e.createElement(sH,{previewState:t.devicesPreview})),e.createElement(Dt,{allowOverflow:!0},e.createElement(lH,{previewState:t.chartsPreview})))}function KH(t){var n,r="Push";t.notificationType&&(r=t.notificationType);return e.createElement(br,{colorScheme:null!==(n=t.colorScheme)&&void 0!==n?n:"auto"},e.createElement(Lr,{color:"#FFFFFF"}),e.createElement(TH,{previewState:t.preview?"Default":void 0}),e.createElement(Xr,{previewDevicePlatform:t.preview?"Web":void 0,previewProjectPlatforms:t.preview?["Web","Android","iOS"]:void 0}),e.createElement(Dt,null,e.createElement(EH,{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(VH,{variant:"singleCard",status:"incomplete",limit:3,title:Er("tasks"),onDetailLinkClick:t.tasksViewUrl?function(){t.tasksViewUrl&&b.openApplication(t.tasksViewUrl)}:void 0,previewState:t.preview?"IncompleteTasks":void 0}),e.createElement(Dt,null,e.createElement(ti,{title:"Fitbit",previewState:t.preview?"notConnected":void 0})),e.createElement(Dt,null,e.createElement(ni,{title:"Garmin",previewState:t.preview?"notConnected":void 0})),e.createElement(Dt,null,t.ehrConnectApplicationUrl&&e.createElement(Jr,{previewState:t.preview?"enabled":void 0,applicationUrl:t.ehrConnectApplicationUrl})),e.createElement(Dt,null,e.createElement(MH,{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(vH,{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(Dt,null,r()):r()}return e.createElement(br,{colorScheme:null!==(r=t.colorScheme)&&void 0!==r?r:"auto"},e.createElement(Lr,null),e.createElement(Uq,{previewState:"default"==t.previewState?"externalAccountsLoaded":void 0,externalAccountCategories:["Provider","Health Plan"]}),"default"==a&&e.createElement(Ar,{noTopMargin:!0},e.createElement(kH,{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(Gq,{excludeDeviceManufacturers:!0,applicationUrl:t.externalAccountsApplicationUrl,previewState:"default"==t.previewState?"Default":void 0})),"cardBased"==a&&e.createElement(e.Fragment,null,e.createElement(Dt,null,e.createElement(kH,{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(Dt,null,e.createElement(Gq,{excludeDeviceManufacturers:!0,applicationUrl:t.externalAccountsApplicationUrl,previewState:"default"==t.previewState?"Default":void 0}))),e.createElement(Dt,null,e.createElement(Jr,{bottomBorder:!0,applicationUrl:t.connectEhrApplicationUrl,previewState:"default"==t.previewState?"enabledConnected":void 0})))}function QH(t){var n,r="Push";return t.notificationType&&(r=t.notificationType),e.createElement(br,{colorScheme:null!==(n=t.colorScheme)&&void 0!==n?n:"auto"},t.presentation&&e.createElement(Or,{title:Er("notifications"),showBackButton:"Push"==t.presentation,showCloseButton:"Modal"==t.presentation}),!t.presentation&&e.createElement(Lr,null),e.createElement(CH,{notificationType:r,previewState:t.preview?"Default":void 0}))}function eV(t){var n;return e.createElement(br,{colorScheme:null!==(n=t.colorScheme)&&void 0!==n?n:"auto"},t.presentation&&e.createElement(Or,{title:Er("tasks"),showBackButton:"Push"==t.presentation,showCloseButton:"Modal"==t.presentation}),!t.presentation&&e.createElement(Lr,null),!t.hideIncompleteTasks&&e.createElement(VH,{variant:"multiCard",title:Er("incomplete-tasks"),status:"incomplete",previewState:t.preview?"IncompleteTasks":void 0}),!t.hideCompleteTasks&&e.createElement(VH,{variant:"multiCard",title:Er("completed-tasks"),status:"complete",previewState:t.preview?"CompleteTasks":void 0}))}function tV(t){return e.createElement(br,{colorScheme:"light",className:"mdhui-step-container",bodyBackgroundColor:"#FFFFFF"},t.children)}function nV(e){return{textAlign:e.textAlign,color:e.color,fontSize:e.fontSize?"".concat(e.fontSize,"px"):void 0,fontWeight:e.fontWeight,backgroundImage:""}}_(".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}");_(".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}");var rV={},iV={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:""},oV=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/,aV={},cV={};function sV(e,t,n){var r,i,o,a,c,s="";for("string"!=typeof t&&(n=t,t=sV.defaultChars),void 0===n&&(n=!0),c=function(e){var t,n,r=cV[e];if(r)return r;for(r=cV[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}sV.defaultChars=";/?:@&=+$,-_.!~*'()#",sV.componentChars="-_.!~*'()";var lV=sV,uV={};function fV(e,t){var n;return"string"!=typeof t&&(t=fV.defaultChars),n=function(e){var t,n,r=uV[e];if(r)return r;for(r=uV[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}))}fV.defaultChars=";/?:@&=+$,#",fV.componentChars="";var pV=fV;function dV(){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 hV=/^([a-z0-9.+-]+:)/i,mV=/:[0-9]*$/,vV=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,yV=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),gV=["'"].concat(yV),bV=["%","/","?",";","#"].concat(gV),xV=["/","?","#"],wV=/^[+a-z0-9A-Z_-]{0,63}$/,_V=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,kV={javascript:!0,"javascript:":!0},SV={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};dV.prototype.parse=function(e,t){var n,r,i,o,a,c=e;if(c=c.trim(),!t&&1===e.split("#").length){var s=vV.exec(c);if(s)return this.pathname=s[1],s[2]&&(this.search=s[2]),this}var l=hV.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&&kV[l]||(c=c.substr(2),this.slashes=!0)),!kV[l]&&(a||l&&!SV[l])){var u,f,p=-1;for(n=0;n<xV.length;n++)-1!==(o=c.indexOf(xV[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<bV.length;n++)-1!==(o=c.indexOf(bV[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 v=m[n];if(v&&!v.match(wV)){for(var y="",g=0,b=v.length;g<b;g++)v.charCodeAt(g)>127?y+="x":y+=v[g];if(!y.match(wV)){var x=m.slice(0,n),w=m.slice(n+1),_=v.match(_V);_&&(x.push(_[1]),w.unshift(_[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 k=c.indexOf("#");-1!==k&&(this.hash=c.substr(k),c=c.slice(0,k));var S=c.indexOf("?");return-1!==S&&(this.search=c.substr(S),c=c.slice(0,S)),c&&(this.pathname=c),SV[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this},dV.prototype.parseHost=function(e){var t=mV.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var EV=function(e,t){if(e&&e instanceof dV)return e;var n=new dV;return n.parse(e,t),n};aV.encode=lV,aV.decode=pV,aV.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||""},aV.parse=EV;var OV,AV,CV,TV,PV,DV,jV,MV,NV,IV={};function RV(){return AV?OV:(AV=1,OV=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/)}function LV(){return TV?CV:(TV=1,CV=/[\0-\x1F\x7F-\x9F]/)}function zV(){return MV?jV:(MV=1,jV=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/)}function FV(){return NV||(NV=1,IV.Any=RV(),IV.Cc=LV(),IV.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]/),IV.P=oV,IV.Z=zV()),IV}!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=iV;var l=/[&<>"]/,u=/[&<>"]/g,f={"&":"&","<":"<",">":">",'"':"""};function p(e){return f[e]}var d=/[.?*+^$[\]\\(){}|-]/g;var h=oV;e.lib={},e.lib.mdurl=aV,e.lib.ucmicro=FV(),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()}}(rV);var BV={},qV=rV.unescapeAll,HV=rV.unescapeAll;BV.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},BV.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=qV(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=qV(e.slice(o,t)),a.lines=0,a.pos=t,a.ok=!0),a},BV.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=HV(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 VV=rV.assign,UV=rV.unescapeAll,WV=rV.escapeHtml,GV={};function $V(){this.rules=VV({},GV)}GV.code_inline=function(e,t,n,r,i){var o=e[t];return"<code"+i.renderAttrs(o)+">"+WV(e[t].content)+"</code>"},GV.code_block=function(e,t,n,r,i){var o=e[t];return"<pre"+i.renderAttrs(o)+"><code>"+WV(e[t].content)+"</code></pre>\n"},GV.fence=function(e,t,n,r,i){var o,a,c,s,l,u=e[t],f=u.info?UV(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)||WV(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"},GV.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)},GV.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},GV.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},GV.text=function(e,t){return WV(e[t].content)},GV.html_block=function(e,t){return e[t].content},GV.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+=" "+WV(e.attrs[t][0])+'="'+WV(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 YV=$V;function XV(){this.__rules__=[],this.__cache__=null}XV.prototype.__find__=function(e){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},XV.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))}))}))},XV.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},XV.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},XV.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},XV.prototype.push=function(e,t,n){var r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},XV.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},XV.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach((function(e){e.enabled=!1})),this.enable(e,t)},XV.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},XV.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]};var ZV=XV,KV=/\r\n?|\n/g,JV=/\0/g,QV=rV.arrayReplaceAt;function eU(e){return/^<\/a\s*>/i.test(e)}var tU=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,nU=/\((c|tm|r)\)/i,rU=/\((c|tm|r)\)/gi,iU={c:"©",r:"®",tm:"™"};function oU(e,t){return iU[t.toLowerCase()]}function aU(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(rU,oU)),"link_open"===n.type&&"auto"===n.info&&r--,"link_close"===n.type&&"auto"===n.info&&r++}function cU(e){var t,n,r=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||r||tU.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 sU=rV.isWhiteSpace,lU=rV.isPunctChar,uU=rV.isMdAsciiPunct,fU=/['"]/,pU=/['"]/g;function dU(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function hU(e,t){var n,r,i,o,a,c,s,l,u,f,p,d,h,m,v,y,g,b,x,w,_;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&&(pU.lastIndex=a,o=pU.exec(i));){if(v=y=!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=uU(u)||lU(String.fromCharCode(u)),d=uU(f)||lU(String.fromCharCode(f)),h=sU(u),(m=sU(f))?v=!1:d&&(h||p||(v=!1)),h?y=!1:p&&(m||d||(y=!1)),34===f&&'"'===o[0]&&u>=48&&u<=57&&(y=v=!1),v&&y&&(v=p,y=d),v||y){if(y)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],_=t.md.options.quotes[3]):(w=t.md.options.quotes[0],_=t.md.options.quotes[1]),r.content=dU(r.content,o.index,_),e[l.token].content=dU(e[l.token].content,l.pos,w),a+=_.length-1,l.token===n&&(a+=w.length-1),c=(i=r.content).length,x.length=g;continue e}v?x.push({token:n,pos:o.index,single:b,level:s}):y&&b&&(r.content=dU(r.content,o.index,"’"))}else b&&(r.content=dU(r.content,o.index,"’"))}}}}function mU(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}mU.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},mU.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},mU.prototype.attrSet=function(e,t){var n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},mU.prototype.attrGet=function(e){var t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n},mU.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 vU=mU,yU=vU;function gU(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}gU.prototype.Token=yU;var bU=gU,xU=ZV,wU=[["normalize",function(e){var t;t=(t=e.src.replace(KV,"\n")).replace(JV,"�"),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,v,y,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--,eU(a.content)&&d++),!(d>0)&&"text"===a.type&&e.md.linkify.test(a.content)){for(l=a.content,y=e.md.linkify.match(l),c=[],p=a.level,f=0,y.length>0&&0===y[0].index&&t>0&&"text_special"===i[t-1].type&&(y=y.slice(1)),s=0;s<y.length;s++)h=y[s].url,m=e.md.normalizeLink(h),e.md.validateLink(m)&&(v=y[s].text,v=y[s].schema?"mailto:"!==y[s].schema||/^mailto:/i.test(v)?e.md.normalizeLinkText(v):e.md.normalizeLinkText("mailto:"+v).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+v).replace(/^http:\/\//,""),(u=y[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=v,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=y[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=QV(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&&(nU.test(e.tokens[t].content)&&aU(e.tokens[t].children),tU.test(e.tokens[t].content)&&cU(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&&fU.test(e.tokens[t].content)&&hU(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 _U(){this.ruler=new xU;for(var e=0;e<wU.length;e++)this.ruler.push(wU[e][0],wU[e][1])}_U.prototype.process=function(e){var t,n,r;for(t=0,n=(r=this.ruler.getRules("")).length;t<n;t++)r[t](e)},_U.prototype.State=bU;var kU=_U,SU=rV.isSpace;function EU(e,t){var n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function OU(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 AU=rV.isSpace,CU=rV.isSpace,TU=rV.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),!TU(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),!TU(n))?-1:i}var jU=rV.normalizeReference,MU=rV.isSpace,NU={},IU="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",RU="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",LU=new RegExp("^(?:"+IU+"|"+RU+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),zU=new RegExp("^(?:"+IU+"|"+RU+")");NU.HTML_TAG_RE=LU,NU.HTML_OPEN_CLOSE_TAG_RE=zU;var FU=["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"],BU=NU.HTML_OPEN_CLOSE_TAG_RE,qU=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+FU.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(BU.source+"\\s*$"),/^$/,!1]],HU=rV.isSpace,VU=vU,UU=rV.isSpace;function WU(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(UU(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}WU.prototype.push=function(e,t,n){var r=new VU(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},WU.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},WU.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},WU.prototype.skipSpaces=function(e){for(var t,n=this.src.length;e<n&&(t=this.src.charCodeAt(e),UU(t));e++);return e},WU.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!UU(this.src.charCodeAt(--e)))return e+1;return e},WU.prototype.skipChars=function(e,t){for(var n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},WU.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},WU.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),UU(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("")},WU.prototype.Token=VU;var GU=WU,$U=ZV,YU=[["table",function(e,t,n,r){var i,o,a,c,s,l,u,f,p,d,h,m,v,y,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&&!SU(w))return!1;if(45===x&&SU(w))return!1;for(;a<e.eMarks[l];){if(124!==(i=e.src.charCodeAt(a))&&45!==i&&58!==i&&!SU(i))return!1;a++}for(u=(o=EU(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=EU(e,t).trim()).indexOf("|"))return!1;if(e.sCount[t]-e.blkIndent>=4)return!1;if((u=OU(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(y=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=EU(e,l).trim()))break;if(e.sCount[l]-e.blkIndent>=4)break;for((u=OU(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=v=[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 v&&(p=e.push("tbody_close","tbody",-1),v[1]=l),p=e.push("table_close","table",-1),m[1]=l,e.parentType=y,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,v,y,g,b,x,w,_,k,S=e.lineMax,E=e.bMarks[t]+e.tShift[t],O=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(E++))return!1;if(r)return!0;for(c=p=e.sCount[t]+1,32===e.src.charCodeAt(E)?(E++,c++,p++,i=!1,b=!0):9===e.src.charCodeAt(E)?(b=!0,(e.bsCount[t]+p)%4==3?(E++,c++,p++,i=!1):i=!0):b=!1,d=[e.bMarks[t]],e.bMarks[t]=E;E<O&&(o=e.src.charCodeAt(E),AU(o));)9===o?p+=4-(p+e.bsCount[t]+(i?1:0))%4:p++,E++;for(h=[e.bsCount[t]],e.bsCount[t]=e.sCount[t]+1+(b?1:0),l=E>=O,y=[e.sCount[t]],e.sCount[t]=p-c,g=[e.tShift[t]],e.tShift[t]=E-e.bMarks[t],w=e.md.block.ruler.getRules("blockquote"),v=e.parentType,e.parentType="blockquote",f=t+1;f<n&&(k=e.sCount[f]<e.blkIndent,!((E=e.bMarks[f]+e.tShift[f])>=(O=e.eMarks[f])));f++)if(62!==e.src.charCodeAt(E++)||k){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]),y.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]),y.push(e.sCount[f]),e.sCount[f]=-1}else{for(c=p=e.sCount[f]+1,32===e.src.charCodeAt(E)?(E++,c++,p++,i=!1,b=!0):9===e.src.charCodeAt(E)?(b=!0,(e.bsCount[f]+p)%4==3?(E++,c++,p++,i=!1):i=!0):b=!1,d.push(e.bMarks[f]),e.bMarks[f]=E;E<O&&(o=e.src.charCodeAt(E),AU(o));)9===o?p+=4-(p+e.bsCount[f]+(i?1:0))%4:p++,E++;l=E>=O,h.push(e.bsCount[f]),e.bsCount[f]=e.sCount[f]+1+(b?1:0),y.push(e.sCount[f]),e.sCount[f]=p-c,g.push(e.tShift[f]),e.tShift[f]=E-e.bMarks[f]}for(m=e.blkIndent,e.blkIndent=0,(_=e.push("blockquote_open","blockquote",1)).markup=">",_.map=u=[t,0],e.md.block.tokenize(e,t,f),(_=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=S,e.parentType=v,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]=y[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&&!CU(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,v,y,g,b,x,w,_,k,S,E,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],v=Number(e.src.slice(C,O-1)),j&&1!==v)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!==v&&(D.attrs=[["start",v]])):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(E=O,y=e.eMarks[g],l=b=e.sCount[g]+O-(e.bMarks[t]+e.tShift[t]);E<y;){if(9===(i=e.src.charCodeAt(E)))b+=4-(b+e.bsCount[g])%4;else{if(32!==i)break;b++}E++}if((s=(o=E)>=y?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,k=e.tShift[t],_=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>=y&&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]=k,e.sCount[t]=_,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,v,y,g,b,x=0,w=e.bMarks[t]+e.tShift[t],_=e.eMarks[t],k=t+1;if(e.sCount[t]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(w))return!1;for(;++w<_;)if(93===e.src.charCodeAt(w)&&92!==e.src.charCodeAt(w-1)){if(w+1===_)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";k<c&&!e.isEmpty(k);k++)if(!(e.sCount[k]-e.blkIndent>3||e.sCount[k]<0)){for(y=!1,l=0,u=g.length;l<u;l++)if(g[l](e,k,c,!0)){y=!0;break}if(y)break}for(_=(v=e.getLines(t,k,e.blkIndent,!1).trim()).length,w=1;w<_;w++){if(91===(i=v.charCodeAt(w)))return!1;if(93===i){p=w;break}(10===i||92===i&&++w<_&&10===v.charCodeAt(w))&&x++}if(p<0||58!==v.charCodeAt(p+1))return!1;for(w=p+2;w<_;w++)if(10===(i=v.charCodeAt(w)))x++;else if(!MU(i))break;if(!(h=e.md.helpers.parseLinkDestination(v,w,_)).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<_;w++)if(10===(i=v.charCodeAt(w)))x++;else if(!MU(i))break;for(h=e.md.helpers.parseLinkTitle(v,w,_),w<_&&m!==w&&h.ok?(b=h.str,w=h.pos,x+=h.lines):(b="",w=o,x=a);w<_&&(i=v.charCodeAt(w),MU(i));)w++;if(w<_&&10!==v.charCodeAt(w)&&b)for(b="",w=o,x=a;w<_&&(i=v.charCodeAt(w),MU(i));)w++;return!(w<_&&10!==v.charCodeAt(w))&&(!!(f=jU(v.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<qU.length&&!qU[i][0].test(c);i++);if(i===qU.length)return!1;if(r)return qU[i][2];if(o=t+1,!qU[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),qU[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&&!HU(i))&&(r||(l=e.skipSpacesBack(l,s),(a=e.skipCharsBack(l,35,s))>s&&HU(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 XU(){this.ruler=new $U;for(var e=0;e<YU.length;e++)this.ruler.push(YU[e][0],YU[e][1],{alt:(YU[e][2]||[]).slice()})}XU.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)}},XU.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))},XU.prototype.State=GU;var ZU=XU;function KU(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 JU=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,QU=rV.isSpace,eW=rV.isSpace,tW=[],nW=0;nW<256;nW++)tW.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(e){tW[e.charCodeAt(0)]=1}));var rW={};function iW(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)}}rW.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},rW.postProcess=function(e){var t,n=e.tokens_meta,r=e.tokens_meta.length;for(iW(e,e.delimiters),t=0;t<r;t++)n[t]&&n[t].delimiters&&iW(e,n[t].delimiters)};var oW={};function aW(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--))}oW.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},oW.postProcess=function(e){var t,n=e.tokens_meta,r=e.tokens_meta.length;for(aW(e,e.delimiters),t=0;t<r;t++)n[t]&&n[t].delimiters&&aW(e,n[t].delimiters)};var cW=rV.normalizeReference,sW=rV.isSpace,lW=rV.normalizeReference,uW=rV.isSpace,fW=/^([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])?)*)$/,pW=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,dW=NU.HTML_TAG_RE;var hW=iV,mW=rV.has,vW=rV.isValidEntityCode,yW=rV.fromCodePoint,gW=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,bW=/^&([a-z][a-z0-9]{1,31});/i;function xW(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 wW=vU,_W=rV.isWhiteSpace,kW=rV.isPunctChar,SW=rV.isMdAsciiPunct;function EW(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}EW.prototype.pushPending=function(){var e=new wW("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},EW.prototype.push=function(e,t,n){this.pending&&this.pushPending();var r=new wW(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},EW.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=SW(n)||kW(String.fromCharCode(n)),u=SW(r)||kW(String.fromCharCode(r)),c=_W(n),(l=_W(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}},EW.prototype.Token=wW;var OW=EW,AW=ZV,CW=[["text",function(e,t){for(var n=e.pos;n<e.posMax&&!KU(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(JU))&&(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&&QU(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),eW(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!==tW[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",rW.tokenize],["emphasis",oW.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),sW(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),sW(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),sW(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[cW(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="",v=e.pos,y=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)<y&&40===e.src.charCodeAt(s)){for(s++;s<y&&(r=e.src.charCodeAt(s),uW(r)||10===r);s++);if(s>=y)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<y&&(r=e.src.charCodeAt(s),uW(r)||10===r);s++);if(u=e.md.helpers.parseLinkTitle(e.src,s,e.posMax),s<y&&h!==s&&u.ok)for(f=u.str,s=u.pos;s<y&&(r=e.src.charCodeAt(s),uW(r)||10===r);s++);else f="";if(s>=y||41!==e.src.charCodeAt(s))return e.pos=v,!1;s++}else{if(void 0===e.env.references)return!1;if(s<y&&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[lW(o)]))return e.pos=v,!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=y,!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),pW.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)):!!fW.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(dW))&&(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(gW))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=vW(n)?yW(n):yW(65533),i.markup=r[0],i.info="entity"),e.pos+=r[0].length,!0}else if((r=e.src.slice(o).match(bW))&&mW(hW,r[1]))return t||((i=e.push("text_special","",0)).content=hW[r[1]],i.markup=r[0],i.info="entity"),e.pos+=r[0].length,!0;return!1}]],TW=[["balance_pairs",function(e){var t,n=e.tokens_meta,r=e.tokens_meta.length;for(xW(0,e.delimiters),t=0;t<r;t++)n[t]&&n[t].delimiters&&xW(0,n[t].delimiters)}],["strikethrough",rW.postProcess],["emphasis",oW.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 AW,e=0;e<CW.length;e++)this.ruler.push(CW[e][0],CW[e][1]);for(this.ruler2=new AW,e=0;e<TW.length;e++)this.ruler2.push(TW[e][0],TW[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=OW;var DW,jW,MW=PW;function NW(){return jW?DW:(jW=1,DW=function(e){var t={};e=e||{},t.src_Any=RV().source,t.src_Cc=LV().source,t.src_Z=zV().source,t.src_P=oV.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 IW(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function RW(e){return Object.prototype.toString.call(e)}function LW(e){return"[object Function]"===RW(e)}function zW(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var FW={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};var BW={"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}}},qW="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]",HW="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function VW(e){var t=e.re=NW()(e.__opts__),n=e.__tlds__.slice();function r(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||n.push(qW),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]"===RW(e)}(n))return!function(e){return"[object RegExp]"===RW(e)}(n.validate)?LW(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(LW(n.normalize)?r.normalize=n.normalize:n.normalize?o(t,n):r.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===RW(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(zW).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 UW(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 WW(e,t){var n=new UW(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function GW(e,t){if(!(this instanceof GW))return new GW(e,t);t||function(e){return Object.keys(e||{}).reduce((function(e,t){return e||FW.hasOwnProperty(t)}),!1)}(e)&&(t=e,e={}),this.__opts__=IW({},FW,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=IW({},BW,e),this.__compiled__={},this.__tlds__=HW,this.__tlds_replaced__=!1,this.re={},VW(this)}GW.prototype.add=function(e,t){return this.__schemas__[e]=t,VW(this),this},GW.prototype.set=function(e){return this.__opts__=IW(this.__opts__,e),this},GW.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},GW.prototype.pretest=function(e){return this.re.pretest.test(e)},GW.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},GW.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(WW(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(WW(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},GW.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,WW(this,0)):null},GW.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(),VW(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,VW(this),this)},GW.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},GW.prototype.onCompile=function(){};var $W=GW;const YW=2147483647,XW=36,ZW=/^xn--/,KW=/[^\0-\x7E]/,JW=/[\x2E\u3002\uFF0E\uFF61]/g,QW={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},eG=Math.floor,tG=String.fromCharCode;function nG(e){throw new RangeError(QW[e])}function rG(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(JW,".")).split("."),t).join(".");return r+i}function iG(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 oG=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},aG=function(e,t,n){let r=0;for(e=n?eG(e/700):e>>1,e+=eG(e/t);e>455;r+=XW)e=eG(e/35);return eG(r+36*e/(e+38))},cG=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&&nG("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=XW;;i+=XW){s>=n&&nG("invalid-input");const a=(c=e.charCodeAt(s++))-48<10?c-22:c-65<26?c-65:c-97<26?c-97:XW;(a>=XW||a>eG((YW-r)/t))&&nG("overflow"),r+=a*t;const l=i<=o?1:i>=o+26?26:i-o;if(a<l)break;const u=XW-l;t>eG(YW/u)&&nG("overflow"),t*=u}const l=t.length+1;o=aG(r-a,l,0==a),eG(r/l)>YW-i&&nG("overflow"),i+=eG(r/l),r%=l,t.splice(r++,0,i)}var c;return String.fromCodePoint(...t)},sG=function(e){const t=[];let n=(e=iG(e)).length,r=128,i=0,o=72;for(const n of e)n<128&&t.push(tG(n));let a=t.length,c=a;for(a&&t.push("-");c<n;){let n=YW;for(const t of e)t>=r&&t<n&&(n=t);const s=c+1;n-r>eG((YW-i)/s)&&nG("overflow"),i+=(n-r)*s,r=n;for(const n of e)if(n<r&&++i>YW&&nG("overflow"),n==r){let e=i;for(let n=XW;;n+=XW){const r=n<=o?1:n>=o+26?26:n-o;if(e<r)break;const i=e-r,a=XW-r;t.push(tG(oG(r+i%a,0))),e=eG(i/a)}t.push(tG(oG(e,0))),o=aG(i,s,c==a),i=0,++c}++i,++r}return t.join("")},lG={version:"2.1.0",ucs2:{decode:iG,encode:e=>String.fromCodePoint(...e)},decode:cG,encode:sG,toASCII:function(e){return rG(e,(function(e){return KW.test(e)?"xn--"+sG(e):e}))},toUnicode:function(e){return rG(e,(function(e){return ZW.test(e)?cG(e.slice(4).toLowerCase()):e}))}};var uG=rV,fG=BV,pG=YV,dG=kU,hG=ZU,mG=MW,vG=$W,yG=aV,gG=lG,bG={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"]}}}},xG=/^(vbscript|javascript|file|data):/,wG=/^data:image\/(gif|png|jpeg|webp);/;function _G(e){var t=e.trim().toLowerCase();return!xG.test(t)||!!wG.test(t)}var kG=["http:","https:","mailto:"];function SG(e){var t=yG.parse(e,!0);if(t.hostname&&(!t.protocol||kG.indexOf(t.protocol)>=0))try{t.hostname=gG.toASCII(t.hostname)}catch(e){}return yG.encode(yG.format(t))}function EG(e){var t=yG.parse(e,!0);if(t.hostname&&(!t.protocol||kG.indexOf(t.protocol)>=0))try{t.hostname=gG.toUnicode(t.hostname)}catch(e){}return yG.decode(yG.format(t),yG.decode.defaultChars+"%")}function OG(e,t){if(!(this instanceof OG))return new OG(e,t);t||uG.isString(e)||(t=e||{},e="default"),this.inline=new mG,this.block=new hG,this.core=new dG,this.renderer=new pG,this.linkify=new vG,this.validateLink=_G,this.normalizeLink=SG,this.normalizeLinkText=EG,this.utils=uG,this.helpers=uG.assign({},fG),this.options={},this.configure(e),t&&this.set(t)}OG.prototype.set=function(e){return uG.assign(this.options,e),this},OG.prototype.configure=function(e){var t,n=this;if(uG.isString(e)&&!(e=bG[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},OG.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},OG.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},OG.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},OG.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},OG.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},OG.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},OG.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var AG=E(OG),CG={exports:{}},TG={},PG={};!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}(PG);var DG={},jG=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)}}(),MG=S&&S.__assign||function(){return MG=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},MG.apply(this,arguments)};Object.defineProperty(DG,"__esModule",{value:!0}),DG.cloneNode=DG.hasChildren=DG.isDocument=DG.isDirective=DG.isComment=DG.isText=DG.isCDATA=DG.isTag=DG.Element=DG.Document=DG.CDATA=DG.NodeWithChildren=DG.ProcessingInstruction=DG.Comment=DG.Text=DG.DataNode=DG.Node=void 0;var NG=PG,IG=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),ZG(this,e)},e}();DG.Node=IG;var RG=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return jG(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(IG);DG.DataNode=RG;var LG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=NG.ElementType.Text,t}return jG(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(RG);DG.Text=LG;var zG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=NG.ElementType.Comment,t}return jG(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(RG);DG.Comment=zG;var FG=function(e){function t(t,n){var r=e.call(this,n)||this;return r.name=t,r.type=NG.ElementType.Directive,r}return jG(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(RG);DG.ProcessingInstruction=FG;var BG=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return jG(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}(IG);DG.NodeWithChildren=BG;var qG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=NG.ElementType.CDATA,t}return jG(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(BG);DG.CDATA=qG;var HG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=NG.ElementType.Root,t}return jG(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(BG);DG.Document=HG;var VG=function(e){function t(t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i="script"===t?NG.ElementType.Script:"style"===t?NG.ElementType.Style:NG.ElementType.Tag);var o=e.call(this,r)||this;return o.name=t,o.attribs=n,o.type=i,o}return jG(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}(BG);function UG(e){return(0,NG.isTag)(e)}function WG(e){return e.type===NG.ElementType.CDATA}function GG(e){return e.type===NG.ElementType.Text}function $G(e){return e.type===NG.ElementType.Comment}function YG(e){return e.type===NG.ElementType.Directive}function XG(e){return e.type===NG.ElementType.Root}function ZG(e,t){var n;if(void 0===t&&(t=!1),GG(e))n=new LG(e.data);else if($G(e))n=new zG(e.data);else if(UG(e)){var r=t?KG(e.children):[],i=new VG(e.name,MG({},e.attribs),r);r.forEach((function(e){return e.parent=i})),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=MG({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=MG({},e["x-attribsPrefix"])),n=i}else if(WG(e)){r=t?KG(e.children):[];var o=new qG(r);r.forEach((function(e){return e.parent=o})),n=o}else if(XG(e)){r=t?KG(e.children):[];var a=new HG(r);r.forEach((function(e){return e.parent=a})),e["x-mode"]&&(a["x-mode"]=e["x-mode"]),n=a}else{if(!YG(e))throw new Error("Not implemented yet: ".concat(e.type));var c=new FG(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 KG(e){for(var t=e.map((function(e){return ZG(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}DG.Element=VG,DG.isTag=UG,DG.isCDATA=WG,DG.isText=GG,DG.isComment=$G,DG.isDirective=YG,DG.isDocument=XG,DG.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},DG.cloneNode=ZG,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=PG,i=DG;n(DG,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}(TG);var JG={exports:{}},QG={},e$={},t$={},n$={},r$={};Object.defineProperty(r$,"__esModule",{value:!0}),r$.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 i$={};Object.defineProperty(i$,"__esModule",{value:!0}),i$.default=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((function(e){return e.charCodeAt(0)})));var o$={};!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))}}(o$),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(r$);e.htmlDecodeTree=n.default;var r=t(i$);e.xmlDecodeTree=r.default;var i=t(o$);e.decodeCodePoint=i.default;var o,a,c=o$;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 v=s+1,y=10,g=t.charCodeAt(v);(g|o.To_LOWER_BIT)===o.LOWER_X&&(y=16,s+=1,v+=1);do{g=t.charCodeAt(++s)}while(g>=o.ZERO&&g<=o.NINE||16===y&&(g|o.To_LOWER_BIT)>=o.LOWER_A&&(g|o.To_LOWER_BIT)<=o.LOWER_F);if(v!==s){var b=t.substring(v,s),x=parseInt(b,y);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}(t$);var a$=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]}),c$=S&&S.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s$=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)&&a$(t,e,n);return c$(t,e),t};Object.defineProperty(e$,"__esModule",{value:!0}),e$.Parser=void 0;var l$=s$(t$),u$=n$,f$=new Set(["input","option","optgroup","select","button","datalist","textarea"]),p$=new Set(["p"]),d$=new Set(["thead","tbody"]),h$=new Set(["dd","dt"]),m$=new Set(["rt","rp"]),v$=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",p$],["h1",p$],["h2",p$],["h3",p$],["h4",p$],["h5",p$],["h6",p$],["select",f$],["input",f$],["output",f$],["button",f$],["datalist",f$],["textarea",f$],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",h$],["dt",h$],["address",p$],["article",p$],["aside",p$],["blockquote",p$],["details",p$],["div",p$],["dl",p$],["fieldset",p$],["figcaption",p$],["figure",p$],["footer",p$],["form",p$],["header",p$],["hr",p$],["main",p$],["nav",p$],["ol",p$],["pre",p$],["section",p$],["table",p$],["ul",p$],["rt",m$],["rp",m$],["tbody",d$],["tfoot",d$]]),y$=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),g$=new Set(["math","svg"]),b$=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),x$=/\s|\//,w$=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:l$.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,u$.fromCodePoint)(e)),this.startIndex=r},e.prototype.isVoidElement=function(e){return!this.options.xmlMode&&y$.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&&v$.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),g$.has(e)?this.foreignContext.push(!0):b$.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()),(g$.has(s)||b$.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,u$.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===l$.QuoteType.Double?'"':e===l$.QuoteType.Single?"'":e===l$.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(x$),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}();e$.Parser=w$;var _$={},k$={},S$=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)}}(),E$=S&&S.__assign||function(){return E$=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},E$.apply(this,arguments)};Object.defineProperty(k$,"__esModule",{value:!0}),k$.cloneNode=k$.hasChildren=k$.isDocument=k$.isDirective=k$.isComment=k$.isText=k$.isCDATA=k$.isTag=k$.Element=k$.Document=k$.CDATA=k$.NodeWithChildren=k$.ProcessingInstruction=k$.Comment=k$.Text=k$.DataNode=k$.Node=void 0;var O$=PG,A$=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),H$(this,e)},e}();k$.Node=A$;var C$=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return S$(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(A$);k$.DataNode=C$;var T$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=O$.ElementType.Text,t}return S$(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(C$);k$.Text=T$;var P$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=O$.ElementType.Comment,t}return S$(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(C$);k$.Comment=P$;var D$=function(e){function t(t,n){var r=e.call(this,n)||this;return r.name=t,r.type=O$.ElementType.Directive,r}return S$(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(C$);k$.ProcessingInstruction=D$;var j$=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return S$(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}(A$);k$.NodeWithChildren=j$;var M$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=O$.ElementType.CDATA,t}return S$(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(j$);k$.CDATA=M$;var N$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=O$.ElementType.Root,t}return S$(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(j$);k$.Document=N$;var I$=function(e){function t(t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i="script"===t?O$.ElementType.Script:"style"===t?O$.ElementType.Style:O$.ElementType.Tag);var o=e.call(this,r)||this;return o.name=t,o.attribs=n,o.type=i,o}return S$(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}(j$);function R$(e){return(0,O$.isTag)(e)}function L$(e){return e.type===O$.ElementType.CDATA}function z$(e){return e.type===O$.ElementType.Text}function F$(e){return e.type===O$.ElementType.Comment}function B$(e){return e.type===O$.ElementType.Directive}function q$(e){return e.type===O$.ElementType.Root}function H$(e,t){var n;if(void 0===t&&(t=!1),z$(e))n=new T$(e.data);else if(F$(e))n=new P$(e.data);else if(R$(e)){var r=t?V$(e.children):[],i=new I$(e.name,E$({},e.attribs),r);r.forEach((function(e){return e.parent=i})),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=E$({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=E$({},e["x-attribsPrefix"])),n=i}else if(L$(e)){r=t?V$(e.children):[];var o=new M$(r);r.forEach((function(e){return e.parent=o})),n=o}else if(q$(e)){r=t?V$(e.children):[];var a=new N$(r);r.forEach((function(e){return e.parent=a})),e["x-mode"]&&(a["x-mode"]=e["x-mode"]),n=a}else{if(!B$(e))throw new Error("Not implemented yet: ".concat(e.type));var c=new D$(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 V$(e){for(var t=e.map((function(e){return H$(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}k$.Element=I$,k$.isTag=R$,k$.isCDATA=L$,k$.isText=z$,k$.isComment=F$,k$.isDirective=B$,k$.isDocument=q$,k$.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},k$.cloneNode=H$,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=PG,i=k$;n(k$,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}(_$);var U$={},W$={},G$={},$$={},Y$={},X$={};function Z$(e){for(var t=1;t<e.length;t++)e[t][0]+=e[t-1][0]+1;return e}Object.defineProperty(X$,"__esModule",{value:!0}),X$.default=new Map(Z$([[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(Z$([[824,"≪̸"],[7577,"≪⃒"]]))}],[0,{v:"≫",n:new Map(Z$([[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(Z$([[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 K$={};!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," "]]))}(K$);var J$=S&&S.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Y$,"__esModule",{value:!0}),Y$.encodeNonAsciiHTML=Y$.encodeHTML=void 0;var Q$=J$(X$),eY=K$,tY=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function nY(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=Q$.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,eY.getCodePoint)(t,o);r+="&#x".concat(u.toString(16),";"),i=e.lastIndex+=Number(u!==a)}}return r+t.substr(i)}Y$.encodeHTML=function(e){return nY(tY,e)},Y$.encodeNonAsciiHTML=function(e){return nY(eY.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=Y$,a=K$;!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=K$;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=Y$;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}})}($$);var rY={};Object.defineProperty(rY,"__esModule",{value:!0}),rY.attributeNames=rY.elementNames=void 0,rY.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]}))),rY.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 iY=S&&S.__assign||function(){return iY=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},iY.apply(this,arguments)},oY=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]}),aY=S&&S.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),cY=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)&&oY(t,e,n);return aY(t,e),t};Object.defineProperty(G$,"__esModule",{value:!0}),G$.render=void 0;var sY=cY(PG),lY=$$,uY=rY,fY=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function pY(e){return e.replace(/"/g,""")}var dY=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function hY(e,t){void 0===t&&(t={});for(var n=("length"in e?e:[e]),r="",i=0;i<n.length;i++)r+=mY(n[i],t);return r}function mY(e,t){switch(e.type){case sY.Root:return hY(e.children,t);case sY.Doctype:case sY.Directive:return"<".concat(e.data,">");case sY.Comment:return function(e){return"\x3c!--".concat(e.data,"--\x3e")}(e);case sY.CDATA:return function(e){return"<![CDATA[".concat(e.children[0].data,"]]>")}(e);case sY.Script:case sY.Style:case sY.Tag:return function(e,t){var n;"foreign"===t.xmlMode&&(e.name=null!==(n=uY.elementNames.get(e.name))&&void 0!==n?n:e.name,e.parent&&vY.has(e.parent.name)&&(t=iY(iY({},t),{xmlMode:!1})));!t.xmlMode&&yY.has(e.name)&&(t=iY(iY({},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)?pY:t.xmlMode||"utf8"!==t.encodeEntities?lY.encodeXML:lY.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=uY.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&&dY.has(e.name))?(t.xmlMode||(r+=" "),r+="/>"):(r+=">",e.children.length>0&&(r+=hY(e.children,t)),!t.xmlMode&&dY.has(e.name)||(r+="</".concat(e.name,">")));return r}(e,t);case sY.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&&fY.has(e.parent.name)||(r=t.xmlMode||"utf8"!==t.encodeEntities?(0,lY.encodeXML)(r):(0,lY.escapeText)(r));return r}(e,t)}}G$.render=hY,G$.default=hY;var vY=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),yY=new Set(["svg","math"]);var gY=S&&S.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(W$,"__esModule",{value:!0}),W$.innerText=W$.textContent=W$.getText=W$.getInnerHTML=W$.getOuterHTML=void 0;var bY=_$,xY=gY(G$),wY=PG;function _Y(e,t){return(0,xY.default)(e,t)}W$.getOuterHTML=_Y,W$.getInnerHTML=function(e,t){return(0,bY.hasChildren)(e)?e.children.map((function(e){return _Y(e,t)})).join(""):""},W$.getText=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,bY.isTag)(t)?"br"===t.name?"\n":e(t.children):(0,bY.isCDATA)(t)?e(t.children):(0,bY.isText)(t)?t.data:""},W$.textContent=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,bY.hasChildren)(t)&&!(0,bY.isComment)(t)?e(t.children):(0,bY.isText)(t)?t.data:""},W$.innerText=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,bY.hasChildren)(t)&&(t.type===wY.ElementType.Tag||(0,bY.isCDATA)(t))?e(t.children):(0,bY.isText)(t)?t.data:""};var kY={};Object.defineProperty(kY,"__esModule",{value:!0}),kY.prevElementSibling=kY.nextElementSibling=kY.getName=kY.hasAttrib=kY.getAttributeValue=kY.getSiblings=kY.getParent=kY.getChildren=void 0;var SY=_$;function EY(e){return(0,SY.hasChildren)(e)?e.children:[]}function OY(e){return e.parent||null}kY.getChildren=EY,kY.getParent=OY,kY.getSiblings=function(e){var t=OY(e);if(null!=t)return EY(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},kY.getAttributeValue=function(e,t){var n;return null===(n=e.attribs)||void 0===n?void 0:n[t]},kY.hasAttrib=function(e,t){return null!=e.attribs&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&null!=e.attribs[t]},kY.getName=function(e){return e.name},kY.nextElementSibling=function(e){for(var t=e.next;null!==t&&!(0,SY.isTag)(t);)t=t.next;return t},kY.prevElementSibling=function(e){for(var t=e.prev;null!==t&&!(0,SY.isTag)(t);)t=t.prev;return t};var AY={};function CY(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(AY,"__esModule",{value:!0}),AY.prepend=AY.prependChild=AY.append=AY.appendChild=AY.replaceElement=AY.removeElement=void 0,AY.removeElement=CY,AY.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}},AY.appendChild=function(e,t){if(CY(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},AY.append=function(e,t){CY(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)},AY.prependChild=function(e,t){if(CY(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},AY.prepend=function(e,t){CY(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 TY={};Object.defineProperty(TY,"__esModule",{value:!0}),TY.findAll=TY.existsOne=TY.findOne=TY.findOneChild=TY.find=TY.filter=void 0;var PY=_$;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}TY.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)},TY.find=DY,TY.findOneChild=function(e,t){return t.find(e)},TY.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},TY.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))}))},TY.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 jY={};Object.defineProperty(jY,"__esModule",{value:!0}),jY.getElementsByTagType=jY.getElementsByTagName=jY.getElementById=jY.getElements=jY.testElement=void 0;var MY=_$,NY=TY,IY={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 RY(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 LY(e,t){return function(n){return e(n)||t(n)}}function zY(e){var t=Object.keys(e).map((function(t){var n=e[t];return Object.prototype.hasOwnProperty.call(IY,t)?IY[t](n):RY(t,n)}));return 0===t.length?null:t.reduce(LY)}jY.testElement=function(e,t){var n=zY(e);return!n||n(t)},jY.getElements=function(e,t,n,r){void 0===r&&(r=1/0);var i=zY(e);return i?(0,NY.filter)(i,t,n,r):[]},jY.getElementById=function(e,t,n){return void 0===n&&(n=!0),Array.isArray(t)||(t=[t]),(0,NY.findOne)(RY("id",e),t,n)},jY.getElementsByTagName=function(e,t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=1/0),(0,NY.filter)(IY.tag_name(e),t,n,r)},jY.getElementsByTagType=function(e,t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=1/0),(0,NY.filter)(IY.tag_type(e),t,n,r)};var FY={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.uniqueSort=e.compareDocumentPosition=e.DocumentPosition=e.removeSubsets=void 0;var t,n=_$;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}}(FY);var BY={};Object.defineProperty(BY,"__esModule",{value:!0}),BY.getFeed=void 0;var qY=W$,HY=jY;BY.getFeed=function(e){var t=GY(XY,e);return t?"feed"===t.name?function(e){var t,n=e.children,r={type:"atom",items:(0,HY.getElementsByTagName)("entry",n).map((function(e){var t,n=e.children,r={media:WY(n)};YY(r,"id","id",n),YY(r,"title","title",n);var i=null===(t=GY("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}))};YY(r,"id","id",n),YY(r,"title","title",n);var i=null===(t=GY("link",n))||void 0===t?void 0:t.attribs.href;i&&(r.link=i);YY(r,"description","subtitle",n);var o=$Y("updated",n);o&&(r.updated=new Date(o));return YY(r,"author","email",n,!0),r}(t):function(e){var t,n,r=null!==(n=null===(t=GY("channel",e.children))||void 0===t?void 0:t.children)&&void 0!==n?n:[],i={type:e.name.substr(0,3),id:"",items:(0,HY.getElementsByTagName)("item",e.children).map((function(e){var t=e.children,n={media:WY(t)};YY(n,"id","guid",t),YY(n,"title","title",t),YY(n,"link","link",t),YY(n,"description","description",t);var r=$Y("pubDate",t);return r&&(n.pubDate=new Date(r)),n}))};YY(i,"title","title",r),YY(i,"link","link",r),YY(i,"description","description",r);var o=$Y("lastBuildDate",r);o&&(i.updated=new Date(o));return YY(i,"author","managingEditor",r,!0),i}(t):null};var VY=["url","type","lang"],UY=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function WY(e){return(0,HY.getElementsByTagName)("media:content",e).map((function(e){for(var t=e.attribs,n={medium:t.medium,isDefault:!!t.isDefault},r=0,i=VY;r<i.length;r++){t[c=i[r]]&&(n[c]=t[c])}for(var o=0,a=UY;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 GY(e,t){return(0,HY.getElementsByTagName)(e,t,!0,1)[0]}function $Y(e,t,n){return void 0===n&&(n=!1),(0,qY.textContent)((0,HY.getElementsByTagName)(e,t,n,1)).trim()}function YY(e,t,n,r,i){void 0===i&&(i=!1);var o=$Y(n,r,i);o&&(e[t]=o)}function XY(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(W$,e),n(kY,e),n(AY,e),n(TY,e),n(jY,e),n(FY,e),n(BY,e);var r=_$;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}})}(U$),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=e$;Object.defineProperty(e,"Parser",{enumerable:!0,get:function(){return o.Parser}});var a=_$;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=t$;Object.defineProperty(e,"Tokenizer",{enumerable:!0,get:function(){return i(l).default}});var u=r(PG);e.ElementType=u;var f=U$;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(U$)}(QG);var ZY=QG.Parser,KY=_$.DomHandler,JY=function(e){for(var t=0,n=e.length;t<n;t++){e[t].parent=null}return e};var QY=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string.");if(""===e)return[];var n=new KY(void 0,t);return new ZY(n,t).end(e),JY(n.dom)};JG.exports=QY,JG.exports.default=QY;var eX=JG.exports,tX={},nX={};nX.SAME=0;function rX(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 iX(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 iX(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 iX(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}nX.CAMELCASE=1,nX.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(tX,"__esModule",{value:!0});function oX(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 aX={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((function(e){aX[e]=new oX(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=rX(e,2),n=t[0],r=t[1];aX[n]=new oX(n,1,!1,r,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){aX[e]=new oX(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){aX[e]=new oX(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){aX[e]=new oX(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){aX[e]=new oX(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){aX[e]=new oX(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){aX[e]=new oX(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){aX[e]=new oX(e,5,!1,e.toLowerCase(),null,!1,!1)}));var cX=/[\-\:]([a-z])/g,sX=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(cX,sX);aX[t]=new oX(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(cX,sX);aX[t]=new oX(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(cX,sX);aX[t]=new oX(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){aX[e]=new oX(e,1,!1,e.toLowerCase(),null,!1,!1)}));aX.xlinkHref=new oX("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){aX[e]=new oX(e,1,!1,e.toLowerCase(),null,!0,!0)}));var lX=nX,uX=lX.CAMELCASE,fX=lX.SAME,pX=lX.possibleStandardNames,dX=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]*$")),hX=Object.keys(pX).reduce((function(e,t){var n=pX[t];return n===fX?e[t]=t:n===uX?e[t.toLowerCase()]=t:e[t]=n,e}),{});tX.BOOLEAN=3,tX.BOOLEANISH_STRING=2,tX.NUMERIC=5,tX.OVERLOADED_BOOLEAN=4,tX.POSITIVE_NUMERIC=6,tX.RESERVED=0,tX.STRING=1,tX.getPropertyInfo=function(e){return aX.hasOwnProperty(e)?aX[e]:null},tX.isCustomAttribute=dX,tX.possibleStandardNames=hX;var mX={},vX={exports:{}},yX=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,gX=/\n/g,bX=/^\s*/,xX=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,wX=/^:\s*/,_X=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,kX=/^[;\s]*/,SX=/^\s+|\s+$/g,EX="";function OX(e){return e?e.replace(SX,EX):EX}var AX=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(gX);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(bX)}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;EX!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,EX===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(xX);if(t){if(f(),!s(wX))return c("property missing ':'");var n=s(_X),r=e({type:"declaration",property:OX(t[0].replace(yX,EX)),value:n?OX(n[0].replace(yX,EX)):EX});return s(kX),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 CX(e,t){var n,r=null;if(!e||"string"!=typeof e)return r;for(var i,o,a=AX(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}vX.exports=CX,vX.exports.default=CX;var TX=vX.exports,PX={__esModule:!0,camelCase:void 0},DX=/^--[a-zA-Z0-9-]+$/,jX=/-([a-z])/g,MX=/^[^-]+$/,NX=/^-(webkit|moz|ms|o|khtml)-/,IX=/^-(ms)-/,RX=function(e,t){return t.toUpperCase()},LX=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(IX,LX):e.replace(NX,LX)).replace(jX,RX))},function(e){var t=S&&S.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};e.__esModule=!0;var n=t(TX),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}}(mX);var zX=mX.default;var FX={reactCompat:!0};var BX=e.version.split(".")[0]>=16,qX=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var HX={PRESERVE_CUSTOM_ATTRIBUTES:BX,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=zX(e,FX)}catch(e){t.style={}}},canTextBeChildOfNode:function(e){return!qX.has(e.name)},elementsWithNoTextChildren:qX},VX=tX,UX=HX,WX=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],VX.isCustomAttribute(n))c[n]=i;else if(o=GX(r=n.toLowerCase()))switch(a=VX.getPropertyInfo(o),"checked"!==o&&"value"!==o||"option"===t||s||(o=GX("default"+r)),c[o]=i,a&&a.type){case VX.BOOLEAN:c[o]=!0;break;case VX.OVERLOADED_BOOLEAN:""===i&&(c[o]=!0)}else UX.PRESERVE_CUSTOM_ATTRIBUTES&&(c[n]=i);return UX.setStyleProp(e.style,c),c};function GX(e){return VX.possibleStandardNames[e]}var $X=e,YX=WX,XX=HX,ZX=XX.setStyleProp,KX=XX.canTextBeChildOfNode;function JX(e){return XX.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&XX.isCustomComponent(e.name,e.attribs)}var QX=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,v=t.length;m<v;m++)if(r=t[m],d&&f(o=n.replace(r)))v>1&&(o=l(o,{key:o.key||m})),p.push(o);else if("text"!==r.type){switch(a=r.attribs,JX(r)?ZX(a.style,a):a&&(a=YX(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}v>1&&(a.key=m),p.push(u(r.name,a,c))}else{if((i=!r.data.trim().length)&&r.parent&&!KX(r.parent))continue;if(h&&i)continue;p.push(r.data)}return 1===p.length?p[0]:p},eZ=TG,tZ=eX,nZ=WX,rZ=QX;tZ="function"==typeof tZ.default?tZ.default:tZ;var iZ={lowerCaseAttributeNames:!1};function oZ(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return""===e?[]:rZ(tZ(e,(t=t||{}).htmlparser2||iZ),t)}oZ.domToReact=rZ,oZ.htmlToDOM=tZ,oZ.attributesToProps=nZ,oZ.Comment=eZ.Comment,oZ.Element=eZ.Element,oZ.ProcessingInstruction=eZ.ProcessingInstruction,oZ.Text=eZ.Text,CG.exports=oZ,CG.exports.default=oZ;var aZ=E(CG.exports);function cZ(t){var n,r,i,o=new AG;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=aZ(i,{replace:function(e){var t=e;"a"===t.name&&(t.attribs.target="_blank")}});return e.createElement(e.Fragment,null,a)}function sZ(t){return t.text?e.createElement("div",{className:"mdhui-step-title",style:nV(t)},e.createElement(cZ,{text:t.text,inline:!0})):null}aZ.domToReact,aZ.htmlToDOM,aZ.attributesToProps,aZ.Comment,aZ.Element,aZ.ProcessingInstruction,aZ.Text;function lZ(t){return t.text?e.createElement("div",{className:"mdhui-step-text",style:nV(t)},e.createElement(cZ,{text:t.text})):null}_(".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 uZ(t){return t.text?e.createElement("div",{className:"mdhui-step-detail-text",style:nV(t)},e.createElement(cZ,{text:t.text})):null}_(".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 fZ(t){var n=nV(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:Er("next-button-text");return e.createElement("button",{className:"mdhui-step-next-button",style:n,disabled:t.disabled,onClick:t.onClick},i)}_(".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 position: fixed;\n bottom: 0;\n left: 0;\n right: 0;\n}\n\n.mdhui-step-container .mdhui-step-next-button:disabled,\n.mdhui-step-container .mdhui-step-next-button[disabled] {\n opacity: 0.65;\n cursor: not-allowed;\n}");var pZ=150,dZ=2,hZ=["DodgerBlue","OliveDrab","Gold","Pink","SlateBlue","LightBlue","Violet","PaleGreen","SteelBlue","SandyBrown","Chocolate","Crimson"],mZ=!1,vZ=null,yZ=[],gZ=0;function bZ(e,t,n){return e.color=hZ[Math.random()*hZ.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 xZ(){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");yZ.length<pZ;)yZ.push(bZ({color:"",x:0,y:0,diameter:0,tilt:0,tiltAngleIncrement:0,tiltAngle:0},e,t));mZ=!0,null===vZ&&function e(){null==i||i.clearRect(0,0,window.innerWidth,window.innerHeight),0===yZ.length?vZ=null:(!function(){var e,t=window.innerWidth,n=window.innerHeight;gZ+=.01;for(var r=0;r<yZ.length;r++)e=yZ[r],!mZ&&e.y<-15?e.y=n+100:(e.tiltAngle+=e.tiltAngleIncrement,e.x+=Math.sin(gZ),e.y+=.5*(Math.cos(gZ)+e.diameter+dZ),e.tilt=15*Math.sin(e.tiltAngle)),(e.x>t+20||e.x<-20||e.y>n)&&(mZ&&yZ.length<=pZ?bZ(e,t,n):(yZ.splice(r,1),r--))}(),function(e){if(e)for(var t,n,r=0;r<yZ.length;r++)t=yZ[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),vZ=n(e))}()}function wZ(t){return t.srcUrl?e.createElement("div",{className:"mdhui-step-image-icon"},e.createElement("img",{src:t.srcUrl})):null}_(".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}");function _Z(t){return t.srcUrl?e.createElement("div",{className:"mdhui-step-image"},e.createElement("img",{src:t.srcUrl})):null}function kZ(t){var n;return xZ(),window.setTimeout((function(){mZ=!1}),1200),e.createElement(tV,null,e.createElement(wZ,{srcUrl:t.iconUrl}),e.createElement(sZ,{text:t.title,textAlign:t.styles.titleAlignment,color:t.styles.titleColor,fontSize:t.styles.titleFontSize,fontWeight:t.styles.titleFontWeight}),e.createElement(lZ,{text:t.text,textAlign:t.styles.textAlignment,color:t.styles.textColor,fontSize:t.styles.textFontSize,fontWeight:t.styles.textFontWeight}),e.createElement(uZ,{text:t.detailText,textAlign:t.styles.textAlignment,color:t.styles.textColor,fontSize:t.styles.textFontSize,fontWeight:t.styles.textFontWeight}),e.createElement(_Z,{srcUrl:t.imageUrl}),e.createElement(fZ,{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 SZ(){var t=o(),n=t[0],r=t[1],i=o(),c=i[0],s=i[1],l=o(),u=l[0],f=l[1],p=o(),d=p[0],h=p[1],m=o(),v=m[0],y=m[1],g=o(),x=g[0],w=g[1],_=o({}),k=_[0],S=_[1];return a((function(){b.getStepConfiguration().then((function(e){var t;e&&(r(e.properties.title),s(e.properties.text),f(e.properties.detailText),h(e.properties.iconImage),y(e.properties.image),w(e.properties.nextButtonText),S(null!==(t=e.styles)&&void 0!==t?t:{}))}))}),[]),e.createElement(kZ,{title:n,text:c,detailText:u,iconUrl:d,imageUrl:v,nextButtonText:x,styles:k})}function EZ(t){var n,r="Connect to ".concat(t.deviceType);return e.createElement(tV,null,e.createElement(sZ,{text:t.title,textAlign:t.styles.titleAlignment,color:t.styles.titleColor,fontSize:t.styles.titleFontSize,fontWeight:t.styles.titleFontWeight}),e.createElement(lZ,{text:t.text,textAlign:t.styles.textAlignment,color:t.styles.textColor,fontSize:t.styles.textFontSize,fontWeight:t.styles.textFontWeight}),e.createElement(fZ,{text:r,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.connectExternalAccount(t.providerID,{openNewWindow:!0})}}))}function OZ(){var t=this,n=o(),r=n[0],i=n[1],c=o(),s=c[0],l=c[1],u=o({}),f=u[0],p=u[1],d=o(""),h=d[0],m=d[1],v=o(),y=v[0],g=v[1],x=o(),w=x[0],_=x[1];return a((function(){b.getStepConfiguration().then((function(e){var t;if(e){if(i(e.properties.title),l(e.properties.text),!e.properties.deviceType)throw new Error("deviceType is required");if(m(e.properties.deviceType),!e.properties.providerID)throw new Error("providerID is required");g(e.properties.providerID),p(null!==(t=e.styles)&&void 0!==t?t:{})}}))}),[]),a((function(){if(y&&!w){var e=setInterval((function(){return Nt(t,void 0,void 0,(function(){var e,t;return It(this,(function(n){switch(n.label){case 0:return[4,b.getExternalAccounts()];case 1:return e=n.sent(),t=e.some((function(e){return e.provider.id===y})),!w&&t&&_(t),[2]}}))}))}),1e3);return function(){return clearInterval(e)}}}),[y,w]),a((function(){w&&(console.log("Connected to provider ID ",y),b.completeStep(""))}),[w]),y&&e.createElement(EZ,{title:r,text:s,deviceType:h,providerID:y,styles:f})}function AZ(t){var n;return e.createElement(tV,null,e.createElement(sZ,{text:t.title,textAlign:t.styles.titleAlignment,color:t.styles.titleColor,fontSize:t.styles.titleFontSize,fontWeight:t.styles.titleFontWeight}),e.createElement(lZ,{text:t.text,textAlign:t.styles.textAlignment,color:t.styles.textColor,fontSize:t.styles.textFontSize,fontWeight:t.styles.textFontWeight}),e.createElement(zH,{previewState:t.previewState,providerCategories:["Provider","Health Plan"],openNewWindow:!0,onProviderSelected:t.onProviderSelected}),e.createElement(fZ,{text:t.nextButtonText,disabled:t.nextButtonDisabled,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 CZ(){var t=o(),n=t[0],r=t[1],i=o(),c=i[0],s=i[1],l=o(),u=l[0],f=l[1],p=o(!0),d=p[0],h=p[1],m=o({}),v=m[0],y=m[1],g=o(void 0),x=g[0],w=g[1];return a((function(){b.getStepConfiguration().then((function(e){var t;e&&(r(e.properties.title),s(e.properties.text),f(e.properties.nextButtonText),y(null!==(t=e.styles)&&void 0!==t?t:{}))}))}),[]),a((function(){var e=setInterval((function(){x&&d&&b.getExternalAccounts().then((function(e){e.some((function(e){return e.provider.id===x.id}))&&h(!1)}))}),1e3);return function(){return clearInterval(e)}}),[x,d]),e.createElement(AZ,{title:n,text:c,nextButtonText:u,nextButtonDisabled:d,styles:v,onProviderSelected:w})}function TZ(t){var n,r=(t.height?t.height:"225")+"px",i=b.getCurrentLanguage();return e.createElement(tV,null,e.createElement(sZ,{text:t.title,textAlign:t.styles.titleAlignment,color:t.styles.titleColor,fontSize:t.styles.titleFontSize,fontWeight:t.styles.titleFontWeight}),e.createElement(lZ,{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(uZ,{text:t.transcript,textAlign:t.styles.detailTextAlignment,color:t.styles.detailTextColor,fontSize:t.styles.detailTextFontSize,fontWeight:t.styles.detailTextFontWeight}),e.createElement(fZ,{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 PZ(){var t=o(),n=t[0],r=t[1],i=o(),c=i[0],s=i[1],l=o(),u=l[0],f=l[1],p=o(""),d=p[0],h=p[1],m=o(),v=m[0],y=m[1],g=o(),x=g[0],w=g[1],_=o({}),k=_[0],S=_[1];return a((function(){b.getStepConfiguration().then((function(e){var t;e&&(r(e.properties.title),s(e.properties.text),f(e.properties.transcript),h(e.properties.videoId),y(e.properties.nextButtonText),w(e.properties.height),S(null!==(t=e.styles)&&void 0!==t?t:{}))}))}),[]),e.createElement(TZ,{title:n,text:c,transcript:u,nextButtonText:v,height:x,videoId:d,styles: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}");export{D as Action,j as ActivityMeter,Xr as AppDownload,WH as BlankView,R as Button,Pt as Calendar,Dt as Card,jt as CardTitle,kZ as CelebrationStep,SZ as CelebrationStepContainer,EZ as ConnectDeviceAccountStep,OZ as ConnectDeviceAccountStepContainer,Jr as ConnectEhr,AZ as ConnectEhrStep,CZ as ConnectEhrStepContainer,GH as ConnectEhrView,ti as ConnectFitbit,ni as ConnectGarmin,Nq as DailyDataChart,gi as DailyDataType,Vt as DateRangeCoordinator,zt as DateRangeNavigator,Ut as DayTrackerSymbol,zq as DeviceDataMonthChart,Fq as DeviceDataMonthCharts,$H as DeviceDataView,qq as ExternalAccountList,Uq as ExternalAccountsLoadingIndicator,Gq as ExternalAccountsPreview,YH as ExternalAccountsView,xr as Face,iH as FitbitDevices,aH as FitbitMonthCharts,XH as FitbitView,sH as GarminDevices,lH as GarminMonthCharts,ZH as GarminView,JH as HealthAndWellnessView,vH as HealthPreviewSection,_r as Histogram,KH as HomeView,kH as LabResultsSummary,br as Layout,gr as LayoutContext,I as LoadingIndicator,EH as MostRecentNotification,Or as NavigationBar,CH as NotificationList,QH as NotificationsView,Hr as PlatformSpecificContent,TH as ProjectHeader,MH as ProjectSupport,zH as ProviderSearch,FH as RelativeActivityToday,BH as RestingHeartRateCalendar,Ar as Section,Cr as SegmentedControl,wr as ShinyOverlay,Dr as SingleExternalAccount,jr as SingleNotification,Nr as SingleSurveyTask,Ir as SparkBarChart,Lr as StatusBarBackground,uZ as StepDetailText,_Z as StepImage,wZ as StepImageIcon,tV as StepLayout,cZ as StepMarkdown,fZ as StepNextButton,lZ as StepText,sZ as StepTitle,VH as SurveyTaskList,eV as SurveyTasksView,Rr as Switch,zr as TextBlock,Fr as TrackerItem,k as UnstyledButton,Br as ViewHeader,qr as WeekCalendar,TZ as YouTubeStep,PZ as YouTubeStepContainer,wi as checkDailyDataAvailability,ri as getDayKey,qt as getMonthStart,Bt as getWeekStart,Er as language,_i as queryDailyData,xi as registerDailyDataProvider,Hq as useInterval};
|
|
216
216
|
//# sourceMappingURL=index.js.map
|