vuchat 3.0.1 → 3.0.2
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/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import*as e from'react';import t,{useState as n,useEffect as r,useReducer as i,useRef as o,useCallback as s,isValidElement as a,cloneElement as A,useLayoutEffect as l,forwardRef as c,useContext as u,useMemo as d,memo as f,createContext as h,createElement as p,Component as g,Fragment as m,useImperativeHandle as v}from'react';import b,{unstable_batchedUpdates as y}from'react-dom';import{jsx as w,jsxs as B,Fragment as x}from'react/jsx-runtime';import{useLocation as C,useHistory as _}from'react-router-dom';function j(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&'undefined'!=typeof document){var r=document.head||document.getElementsByTagName('head')[0],i=document.createElement('style');i.type='text/css','top'===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}function F(e,t){return F=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},F(e,t)}function E(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,F(e,t)}j('*, ::before, ::after {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: ;\n}\n::backdrop {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: ;\n}\n .vu-css-ls *,\n .vu-css-ls ::before,\n .vu-css-ls ::after {\n box-sizing: border-box; /* 1 */\n border-width: 0; /* 2 */\n border-style: solid; /* 2 */\n border-color: #e5e7eb; /* 2 */\n }\n .vu-css-ls ::before,\n .vu-css-ls ::after {\n --tw-content: "";\n }\n html.vu-css-ls {\n line-height: 1.5; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n -moz-tab-size: 4; /* 3 */\n -o-tab-size: 4;\n tab-size: 4; /* 3 */\n font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */\n font-feature-settings: normal; /* 5 */\n font-variation-settings: normal; /* 6 */\n }\n body.vu-css-ls {\n margin: 0; /* 1 */\n line-height: inherit; /* 2 */\n }\n hr.vu-css-ls {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n border-top-width: 1px; /* 3 */\n }\n .vu-css-ls abbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n }\n h1.vu-css-ls,\n h2.vu-css-ls,\n h3.vu-css-ls,\n h4.vu-css-ls,\n h5.vu-css-ls,\n h6.vu-css-ls {\n font-size: inherit;\n font-weight: inherit;\n }\n a.vu-css-ls {\n color: inherit;\n text-decoration: inherit;\n }\n b.vu-css-ls,\n strong.vu-css-ls {\n font-weight: bolder;\n }\n code.vu-css-ls,\n kbd.vu-css-ls,\n samp.vu-css-ls,\n pre.vu-css-ls {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */\n font-size: 1em; /* 2 */\n }\n small.vu-css-ls {\n font-size: 80%;\n }\n sub.vu-css-ls,\n sup.vu-css-ls {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n }\n sub.vu-css-ls {\n bottom: -0.25em;\n }\n sup.vu-css-ls {\n top: -0.5em;\n }\n table.vu-css-ls {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n border-collapse: collapse; /* 3 */\n }\n button.vu-css-ls,\n input.vu-css-ls,\n optgroup.vu-css-ls,\n select.vu-css-ls,\n textarea.vu-css-ls {\n font-family: inherit; /* 1 */\n font-feature-settings: inherit; /* 1 */\n font-variation-settings: inherit; /* 1 */\n font-size: 100%; /* 1 */\n font-weight: inherit; /* 1 */\n line-height: inherit; /* 1 */\n color: inherit; /* 1 */\n margin: 0; /* 2 */\n padding: 0; /* 3 */\n }\n button.vu-css-ls,\n select.vu-css-ls {\n text-transform: none;\n }\n button.vu-css-ls,\n .vu-css-ls [type="button"],\n .vu-css-ls [type="reset"],\n .vu-css-ls [type="submit"] {\n -webkit-appearance: button; /* 1 */\n background-color: transparent; /* 2 */\n background-image: none; /* 2 */\n }\n .vu-css-ls :-moz-focusring {\n outline: auto;\n }\n .vu-css-ls :-moz-ui-invalid {\n box-shadow: none;\n }\n progress.vu-css-ls {\n vertical-align: baseline;\n }\n .vu-css-ls ::-webkit-inner-spin-button,\n .vu-css-ls ::-webkit-outer-spin-button {\n height: auto;\n }\n .vu-css-ls [type="search"] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n }\n .vu-css-ls ::-webkit-search-decoration {\n -webkit-appearance: none;\n }\n .vu-css-ls ::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n }\n summary.vu-css-ls {\n display: list-item;\n }\n blockquote.vu-css-ls,\n dl.vu-css-ls,\n dd.vu-css-ls,\n h1.vu-css-ls,\n h2.vu-css-ls,\n h3.vu-css-ls,\n h4.vu-css-ls,\n h5.vu-css-ls,\n h6.vu-css-ls,\n hr.vu-css-ls,\n figure.vu-css-ls,\n p.vu-css-ls,\n pre.vu-css-ls {\n margin: 0;\n }\n fieldset.vu-css-ls {\n margin: 0;\n padding: 0;\n }\n legend.vu-css-ls {\n padding: 0;\n }\n ol.vu-css-ls,\n ul.vu-css-ls,\n menu.vu-css-ls {\n list-style: none;\n margin: 0;\n padding: 0;\n }\n dialog.vu-css-ls {\n padding: 0;\n }\n textarea.vu-css-ls {\n resize: vertical;\n }\n input.vu-css-ls::-moz-placeholder, textarea.vu-css-ls::-moz-placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n }\n input.vu-css-ls::placeholder,\n textarea.vu-css-ls::placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n }\n button.vu-css-ls,\n .vu-css-ls [role="button"] {\n cursor: pointer;\n }\n .vu-css-ls :disabled {\n cursor: default;\n }\n img.vu-css-ls,\n svg.vu-css-ls,\n video.vu-css-ls,\n canvas.vu-css-ls,\n audio.vu-css-ls,\n iframe.vu-css-ls,\n embed.vu-css-ls,\n object.vu-css-ls {\n display: block; /* 1 */\n vertical-align: middle; /* 2 */\n }\n img.vu-css-ls,\n video.vu-css-ls {\n max-width: 100%;\n height: auto;\n }\n .vu-css-ls [hidden] {\n display: none;\n }\n\n.vu-prose {\n color: var(--tw-prose-body);\n max-width: 65ch;\n}\n\n.vu-prose :where(p):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 1.25em;\n margin-bottom: 1.25em;\n}\n\n.vu-prose :where([class~="lead"]):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n color: var(--tw-prose-lead);\n font-size: 1.25em;\n line-height: 1.6;\n margin-top: 1.2em;\n margin-bottom: 1.2em;\n}\n\n.vu-prose :where(a):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n color: var(--tw-prose-links);\n text-decoration: underline;\n font-weight: 500;\n}\n\n.vu-prose :where(strong):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n color: var(--tw-prose-bold);\n font-weight: 600;\n}\n\n.vu-prose :where(a strong):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n color: inherit;\n}\n\n.vu-prose :where(blockquote strong):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n color: inherit;\n}\n\n.vu-prose :where(thead th strong):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n color: inherit;\n}\n\n.vu-prose :where(ol):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n list-style-type: decimal;\n margin-top: 1.25em;\n margin-bottom: 1.25em;\n padding-inline-start: 1.625em;\n}\n\n.vu-prose :where(ol[type="A"]):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n list-style-type: upper-alpha;\n}\n\n.vu-prose :where(ol[type="a"]):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n list-style-type: lower-alpha;\n}\n\n.vu-prose :where(ol[type="A" s]):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n list-style-type: upper-alpha;\n}\n\n.vu-prose :where(ol[type="a" s]):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n list-style-type: lower-alpha;\n}\n\n.vu-prose :where(ol[type="I"]):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n list-style-type: upper-roman;\n}\n\n.vu-prose :where(ol[type="i"]):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n list-style-type: lower-roman;\n}\n\n.vu-prose :where(ol[type="I" s]):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n list-style-type: upper-roman;\n}\n\n.vu-prose :where(ol[type="i" s]):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n list-style-type: lower-roman;\n}\n\n.vu-prose :where(ol[type="1"]):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n list-style-type: decimal;\n}\n\n.vu-prose :where(ul):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n list-style-type: disc;\n margin-top: 1.25em;\n margin-bottom: 1.25em;\n padding-inline-start: 1.625em;\n}\n\n.vu-prose :where(ol > li):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *))::marker {\n font-weight: 400;\n color: var(--tw-prose-counters);\n}\n\n.vu-prose :where(ul > li):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *))::marker {\n color: var(--tw-prose-bullets);\n}\n\n.vu-prose :where(dt):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n color: var(--tw-prose-headings);\n font-weight: 600;\n margin-top: 1.25em;\n}\n\n.vu-prose :where(hr):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n border-color: var(--tw-prose-hr);\n border-top-width: 1px;\n margin-top: 3em;\n margin-bottom: 3em;\n}\n\n.vu-prose :where(blockquote):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n font-weight: 500;\n font-style: italic;\n color: var(--tw-prose-quotes);\n border-inline-start-width: 0.25rem;\n border-inline-start-color: var(--tw-prose-quote-borders);\n quotes: "\\201C""\\201D""\\2018""\\2019";\n margin-top: 1.6em;\n margin-bottom: 1.6em;\n padding-inline-start: 1em;\n}\n\n.vu-prose :where(blockquote p:first-of-type):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *))::before {\n content: open-quote;\n}\n\n.vu-prose :where(blockquote p:last-of-type):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *))::after {\n content: close-quote;\n}\n\n.vu-prose :where(h1):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n color: var(--tw-prose-headings);\n font-weight: 800;\n font-size: 2.25em;\n margin-top: 0;\n margin-bottom: 0.8888889em;\n line-height: 1.1111111;\n}\n\n.vu-prose :where(h1 strong):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n font-weight: 900;\n color: inherit;\n}\n\n.vu-prose :where(h2):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n color: var(--tw-prose-headings);\n font-weight: 700;\n font-size: 1.5em;\n margin-top: 2em;\n margin-bottom: 1em;\n line-height: 1.3333333;\n}\n\n.vu-prose :where(h2 strong):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n font-weight: 800;\n color: inherit;\n}\n\n.vu-prose :where(h3):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n color: var(--tw-prose-headings);\n font-weight: 600;\n font-size: 1.25em;\n margin-top: 1.6em;\n margin-bottom: 0.6em;\n line-height: 1.6;\n}\n\n.vu-prose :where(h3 strong):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n font-weight: 700;\n color: inherit;\n}\n\n.vu-prose :where(h4):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n color: var(--tw-prose-headings);\n font-weight: 600;\n margin-top: 1.5em;\n margin-bottom: 0.5em;\n line-height: 1.5;\n}\n\n.vu-prose :where(h4 strong):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n font-weight: 700;\n color: inherit;\n}\n\n.vu-prose :where(img):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 2em;\n margin-bottom: 2em;\n}\n\n.vu-prose :where(picture):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n display: block;\n margin-top: 2em;\n margin-bottom: 2em;\n}\n\n.vu-prose :where(video):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 2em;\n margin-bottom: 2em;\n}\n\n.vu-prose :where(kbd):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n font-weight: 500;\n font-family: inherit;\n color: var(--tw-prose-kbd);\n box-shadow: 0 0 0 1px var(--tw-prose-kbd-shadows), 0 3px 0 var(--tw-prose-kbd-shadows);\n font-size: 0.875em;\n border-radius: 0.3125rem;\n padding-top: 0.1875em;\n padding-inline-end: 0.375em;\n padding-bottom: 0.1875em;\n padding-inline-start: 0.375em;\n}\n\n.vu-prose :where(code):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n color: var(--tw-prose-code);\n font-weight: 600;\n font-size: 0.875em;\n}\n\n.vu-prose :where(code):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *))::before {\n content: "`";\n}\n\n.vu-prose :where(code):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *))::after {\n content: "`";\n}\n\n.vu-prose :where(a code):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n color: inherit;\n}\n\n.vu-prose :where(h1 code):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n color: inherit;\n}\n\n.vu-prose :where(h2 code):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n color: inherit;\n font-size: 0.875em;\n}\n\n.vu-prose :where(h3 code):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n color: inherit;\n font-size: 0.9em;\n}\n\n.vu-prose :where(h4 code):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n color: inherit;\n}\n\n.vu-prose :where(blockquote code):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n color: inherit;\n}\n\n.vu-prose :where(thead th code):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n color: inherit;\n}\n\n.vu-prose :where(pre):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n color: var(--tw-prose-pre-code);\n background-color: var(--tw-prose-pre-bg);\n overflow-x: auto;\n font-weight: 400;\n font-size: 0.875em;\n line-height: 1.7142857;\n margin-top: 1.7142857em;\n margin-bottom: 1.7142857em;\n border-radius: 0.375rem;\n padding-top: 0.8571429em;\n padding-inline-end: 1.1428571em;\n padding-bottom: 0.8571429em;\n padding-inline-start: 1.1428571em;\n}\n\n.vu-prose :where(pre code):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n background-color: transparent;\n border-width: 0;\n border-radius: 0;\n padding: 0;\n font-weight: inherit;\n color: inherit;\n font-size: inherit;\n font-family: inherit;\n line-height: inherit;\n}\n\n.vu-prose :where(pre code):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *))::before {\n content: none;\n}\n\n.vu-prose :where(pre code):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *))::after {\n content: none;\n}\n\n.vu-prose :where(table):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n width: 100%;\n table-layout: auto;\n margin-top: 2em;\n margin-bottom: 2em;\n font-size: 0.875em;\n line-height: 1.7142857;\n}\n\n.vu-prose :where(thead):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n border-bottom-width: 1px;\n border-bottom-color: var(--tw-prose-th-borders);\n}\n\n.vu-prose :where(thead th):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n color: var(--tw-prose-headings);\n font-weight: 600;\n vertical-align: bottom;\n padding-inline-end: 0.5714286em;\n padding-bottom: 0.5714286em;\n padding-inline-start: 0.5714286em;\n}\n\n.vu-prose :where(tbody tr):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n border-bottom-width: 1px;\n border-bottom-color: var(--tw-prose-td-borders);\n}\n\n.vu-prose :where(tbody tr:last-child):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n border-bottom-width: 0;\n}\n\n.vu-prose :where(tbody td):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n vertical-align: baseline;\n}\n\n.vu-prose :where(tfoot):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n border-top-width: 1px;\n border-top-color: var(--tw-prose-th-borders);\n}\n\n.vu-prose :where(tfoot td):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n vertical-align: top;\n}\n\n.vu-prose :where(th, td):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n text-align: start;\n}\n\n.vu-prose :where(figure > *):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 0;\n margin-bottom: 0;\n}\n\n.vu-prose :where(figcaption):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n color: var(--tw-prose-captions);\n font-size: 0.875em;\n line-height: 1.4285714;\n margin-top: 0.8571429em;\n}\n\n.vu-prose {\n --tw-prose-body: #374151;\n --tw-prose-headings: #111827;\n --tw-prose-lead: #4b5563;\n --tw-prose-links: #111827;\n --tw-prose-bold: #111827;\n --tw-prose-counters: #6b7280;\n --tw-prose-bullets: #d1d5db;\n --tw-prose-hr: #e5e7eb;\n --tw-prose-quotes: #111827;\n --tw-prose-quote-borders: #e5e7eb;\n --tw-prose-captions: #6b7280;\n --tw-prose-kbd: #111827;\n --tw-prose-kbd-shadows: rgb(17 24 39 / 10%);\n --tw-prose-code: #111827;\n --tw-prose-pre-code: #e5e7eb;\n --tw-prose-pre-bg: #1f2937;\n --tw-prose-th-borders: #d1d5db;\n --tw-prose-td-borders: #e5e7eb;\n --tw-prose-invert-body: #d1d5db;\n --tw-prose-invert-headings: #fff;\n --tw-prose-invert-lead: #9ca3af;\n --tw-prose-invert-links: #fff;\n --tw-prose-invert-bold: #fff;\n --tw-prose-invert-counters: #9ca3af;\n --tw-prose-invert-bullets: #4b5563;\n --tw-prose-invert-hr: #374151;\n --tw-prose-invert-quotes: #f3f4f6;\n --tw-prose-invert-quote-borders: #374151;\n --tw-prose-invert-captions: #9ca3af;\n --tw-prose-invert-kbd: #fff;\n --tw-prose-invert-kbd-shadows: rgb(255 255 255 / 10%);\n --tw-prose-invert-code: #fff;\n --tw-prose-invert-pre-code: #d1d5db;\n --tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);\n --tw-prose-invert-th-borders: #4b5563;\n --tw-prose-invert-td-borders: #374151;\n font-size: 1rem;\n line-height: 1.75;\n}\n\n.vu-prose :where(picture > img):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 0;\n margin-bottom: 0;\n}\n\n.vu-prose :where(li):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 0.5em;\n margin-bottom: 0.5em;\n}\n\n.vu-prose :where(ol > li):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n padding-inline-start: 0.375em;\n}\n\n.vu-prose :where(ul > li):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n padding-inline-start: 0.375em;\n}\n\n.vu-prose :where(.vu-prose > ul > li p):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 0.75em;\n margin-bottom: 0.75em;\n}\n\n.vu-prose :where(.vu-prose > ul > li > p:first-child):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 1.25em;\n}\n\n.vu-prose :where(.vu-prose > ul > li > p:last-child):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-bottom: 1.25em;\n}\n\n.vu-prose :where(.vu-prose > ol > li > p:first-child):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 1.25em;\n}\n\n.vu-prose :where(.vu-prose > ol > li > p:last-child):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-bottom: 1.25em;\n}\n\n.vu-prose :where(ul ul, ul ol, ol ul, ol ol):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 0.75em;\n margin-bottom: 0.75em;\n}\n\n.vu-prose :where(dl):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 1.25em;\n margin-bottom: 1.25em;\n}\n\n.vu-prose :where(dd):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 0.5em;\n padding-inline-start: 1.625em;\n}\n\n.vu-prose :where(hr + *):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 0;\n}\n\n.vu-prose :where(h2 + *):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 0;\n}\n\n.vu-prose :where(h3 + *):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 0;\n}\n\n.vu-prose :where(h4 + *):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 0;\n}\n\n.vu-prose :where(thead th:first-child):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n padding-inline-start: 0;\n}\n\n.vu-prose :where(thead th:last-child):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n padding-inline-end: 0;\n}\n\n.vu-prose :where(tbody td, tfoot td):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n padding-top: 0.5714286em;\n padding-inline-end: 0.5714286em;\n padding-bottom: 0.5714286em;\n padding-inline-start: 0.5714286em;\n}\n\n.vu-prose :where(tbody td:first-child, tfoot td:first-child):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n padding-inline-start: 0;\n}\n\n.vu-prose :where(tbody td:last-child, tfoot td:last-child):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n padding-inline-end: 0;\n}\n\n.vu-prose :where(figure):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 2em;\n margin-bottom: 2em;\n}\n\n.vu-prose :where(.vu-prose > :first-child):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 0;\n}\n\n.vu-prose :where(.vu-prose > :last-child):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-bottom: 0;\n}\n\n.vu-prose-sm {\n font-size: 0.875rem;\n line-height: 1.7142857;\n}\n\n.vu-prose-sm :where(p):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 1.1428571em;\n margin-bottom: 1.1428571em;\n}\n\n.vu-prose-sm :where([class~="lead"]):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n font-size: 1.2857143em;\n line-height: 1.5555556;\n margin-top: 0.8888889em;\n margin-bottom: 0.8888889em;\n}\n\n.vu-prose-sm :where(blockquote):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 1.3333333em;\n margin-bottom: 1.3333333em;\n padding-inline-start: 1.1111111em;\n}\n\n.vu-prose-sm :where(h1):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n font-size: 2.1428571em;\n margin-top: 0;\n margin-bottom: 0.8em;\n line-height: 1.2;\n}\n\n.vu-prose-sm :where(h2):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n font-size: 1.4285714em;\n margin-top: 1.6em;\n margin-bottom: 0.8em;\n line-height: 1.4;\n}\n\n.vu-prose-sm :where(h3):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n font-size: 1.2857143em;\n margin-top: 1.5555556em;\n margin-bottom: 0.4444444em;\n line-height: 1.5555556;\n}\n\n.vu-prose-sm :where(h4):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 1.4285714em;\n margin-bottom: 0.5714286em;\n line-height: 1.4285714;\n}\n\n.vu-prose-sm :where(img):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 1.7142857em;\n margin-bottom: 1.7142857em;\n}\n\n.vu-prose-sm :where(picture):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 1.7142857em;\n margin-bottom: 1.7142857em;\n}\n\n.vu-prose-sm :where(picture > img):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 0;\n margin-bottom: 0;\n}\n\n.vu-prose-sm :where(video):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 1.7142857em;\n margin-bottom: 1.7142857em;\n}\n\n.vu-prose-sm :where(kbd):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n font-size: 0.8571429em;\n border-radius: 0.3125rem;\n padding-top: 0.1428571em;\n padding-inline-end: 0.3571429em;\n padding-bottom: 0.1428571em;\n padding-inline-start: 0.3571429em;\n}\n\n.vu-prose-sm :where(code):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n font-size: 0.8571429em;\n}\n\n.vu-prose-sm :where(h2 code):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n font-size: 0.9em;\n}\n\n.vu-prose-sm :where(h3 code):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n font-size: 0.8888889em;\n}\n\n.vu-prose-sm :where(pre):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n font-size: 0.8571429em;\n line-height: 1.6666667;\n margin-top: 1.6666667em;\n margin-bottom: 1.6666667em;\n border-radius: 0.25rem;\n padding-top: 0.6666667em;\n padding-inline-end: 1em;\n padding-bottom: 0.6666667em;\n padding-inline-start: 1em;\n}\n\n.vu-prose-sm :where(ol):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 1.1428571em;\n margin-bottom: 1.1428571em;\n padding-inline-start: 1.5714286em;\n}\n\n.vu-prose-sm :where(ul):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 1.1428571em;\n margin-bottom: 1.1428571em;\n padding-inline-start: 1.5714286em;\n}\n\n.vu-prose-sm :where(li):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 0.2857143em;\n margin-bottom: 0.2857143em;\n}\n\n.vu-prose-sm :where(ol > li):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n padding-inline-start: 0.4285714em;\n}\n\n.vu-prose-sm :where(ul > li):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n padding-inline-start: 0.4285714em;\n}\n\n.vu-prose-sm :where(.vu-prose-sm > ul > li p):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 0.5714286em;\n margin-bottom: 0.5714286em;\n}\n\n.vu-prose-sm :where(.vu-prose-sm > ul > li > p:first-child):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 1.1428571em;\n}\n\n.vu-prose-sm :where(.vu-prose-sm > ul > li > p:last-child):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-bottom: 1.1428571em;\n}\n\n.vu-prose-sm :where(.vu-prose-sm > ol > li > p:first-child):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 1.1428571em;\n}\n\n.vu-prose-sm :where(.vu-prose-sm > ol > li > p:last-child):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-bottom: 1.1428571em;\n}\n\n.vu-prose-sm :where(ul ul, ul ol, ol ul, ol ol):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 0.5714286em;\n margin-bottom: 0.5714286em;\n}\n\n.vu-prose-sm :where(dl):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 1.1428571em;\n margin-bottom: 1.1428571em;\n}\n\n.vu-prose-sm :where(dt):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 1.1428571em;\n}\n\n.vu-prose-sm :where(dd):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 0.2857143em;\n padding-inline-start: 1.5714286em;\n}\n\n.vu-prose-sm :where(hr):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 2.8571429em;\n margin-bottom: 2.8571429em;\n}\n\n.vu-prose-sm :where(hr + *):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 0;\n}\n\n.vu-prose-sm :where(h2 + *):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 0;\n}\n\n.vu-prose-sm :where(h3 + *):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 0;\n}\n\n.vu-prose-sm :where(h4 + *):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 0;\n}\n\n.vu-prose-sm :where(table):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n font-size: 0.8571429em;\n line-height: 1.5;\n}\n\n.vu-prose-sm :where(thead th):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n padding-inline-end: 1em;\n padding-bottom: 0.6666667em;\n padding-inline-start: 1em;\n}\n\n.vu-prose-sm :where(thead th:first-child):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n padding-inline-start: 0;\n}\n\n.vu-prose-sm :where(thead th:last-child):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n padding-inline-end: 0;\n}\n\n.vu-prose-sm :where(tbody td, tfoot td):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n padding-top: 0.6666667em;\n padding-inline-end: 1em;\n padding-bottom: 0.6666667em;\n padding-inline-start: 1em;\n}\n\n.vu-prose-sm :where(tbody td:first-child, tfoot td:first-child):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n padding-inline-start: 0;\n}\n\n.vu-prose-sm :where(tbody td:last-child, tfoot td:last-child):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n padding-inline-end: 0;\n}\n\n.vu-prose-sm :where(figure):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 1.7142857em;\n margin-bottom: 1.7142857em;\n}\n\n.vu-prose-sm :where(figure > *):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 0;\n margin-bottom: 0;\n}\n\n.vu-prose-sm :where(figcaption):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n font-size: 0.8571429em;\n line-height: 1.3333333;\n margin-top: 0.6666667em;\n}\n\n.vu-prose-sm :where(.vu-prose-sm > :first-child):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 0;\n}\n\n.vu-prose-sm :where(.vu-prose-sm > :last-child):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-bottom: 0;\n}\n.vu-fixed {\n position: fixed;\n}\n.vu-absolute {\n position: absolute;\n}\n.vu-relative {\n position: relative;\n}\n.vu-inset-0 {\n inset: 0px;\n}\n.-vu-right-8 {\n right: -2rem;\n}\n.vu-bottom-20 {\n bottom: 5rem;\n}\n.vu-bottom-24 {\n bottom: 6rem;\n}\n.vu-bottom-3 {\n bottom: 0.75rem;\n}\n.vu-bottom-auto {\n bottom: auto;\n}\n.vu-left-1\\/2 {\n left: 50%;\n}\n.vu-right-2 {\n right: 0.5rem;\n}\n.vu-right-5 {\n right: 1.25rem;\n}\n.vu-right-auto {\n right: auto;\n}\n.vu-top-1\\/2 {\n top: 50%;\n}\n.vu-isolate {\n isolation: isolate;\n}\n.vu-z-10 {\n z-index: 10;\n}\n.vu-z-\\[1001\\] {\n z-index: 1001;\n}\n.vu-z-\\[9999\\] {\n z-index: 9999;\n}\n.vu-m-0 {\n margin: 0px;\n}\n.vu-m-6 {\n margin: 1.5rem;\n}\n.vu-mx-3\\.5 {\n margin-left: 0.875rem;\n margin-right: 0.875rem;\n}\n.vu-mx-4 {\n margin-left: 1rem;\n margin-right: 1rem;\n}\n.vu-my-2 {\n margin-top: 0.5rem;\n margin-bottom: 0.5rem;\n}\n.vu-my-4 {\n margin-top: 1rem;\n margin-bottom: 1rem;\n}\n.vu-my-5 {\n margin-top: 1.25rem;\n margin-bottom: 1.25rem;\n}\n.vu-mb-10 {\n margin-bottom: 2.5rem;\n}\n.vu-mb-4 {\n margin-bottom: 1rem;\n}\n.vu-ml-1 {\n margin-left: 0.25rem;\n}\n.vu-mr-1 {\n margin-right: 0.25rem;\n}\n.vu-mr-2 {\n margin-right: 0.5rem;\n}\n.vu-mr-\\[-50\\%\\] {\n margin-right: -50%;\n}\n.vu-mt-0 {\n margin-top: 0px;\n}\n.vu-mt-3 {\n margin-top: 0.75rem;\n}\n.vu-mt-4 {\n margin-top: 1rem;\n}\n.vu-mt-6 {\n margin-top: 1.5rem;\n}\n.vu-inline-block {\n display: inline-block;\n}\n.vu-inline {\n display: inline;\n}\n.vu-flex {\n display: flex;\n}\n.vu-inline-flex {\n display: inline-flex;\n}\n.vu-grid {\n display: grid;\n}\n.vu-hidden {\n display: none;\n}\n.vu-h-10 {\n height: 2.5rem;\n}\n.vu-h-3 {\n height: 0.75rem;\n}\n.vu-h-32 {\n height: 8rem;\n}\n.vu-h-80 {\n height: 20rem;\n}\n.vu-h-fit {\n height: -moz-fit-content;\n height: fit-content;\n}\n.vu-h-full {\n height: 100%;\n}\n.vu-max-h-0 {\n max-height: 0px;\n}\n.vu-max-h-52 {\n max-height: 13rem;\n}\n.vu-w-3 {\n width: 0.75rem;\n}\n.vu-w-4\\/5 {\n width: 80%;\n}\n.vu-w-\\[440px\\] {\n width: 440px;\n}\n.vu-w-\\[492px\\] {\n width: 492px;\n}\n.vu-w-full {\n width: 100%;\n}\n.vu-min-w-\\[20rem\\] {\n min-width: 20rem;\n}\n.vu-grow {\n flex-grow: 1;\n}\n.vu-grow-0 {\n flex-grow: 0;\n}\n.-vu-translate-x-1\\/2 {\n --tw-translate-x: -50%;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.-vu-translate-y-1\\/2 {\n --tw-translate-y: -50%;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.-vu-rotate-45 {\n --tw-rotate: -45deg;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.vu-rotate-0 {\n --tw-rotate: 0deg;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.vu-transform {\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.vu-cursor-not-allowed {\n cursor: not-allowed;\n}\n.vu-cursor-pointer {\n cursor: pointer;\n}\n.vu-resize-none {\n resize: none;\n}\n.vu-resize-y {\n resize: vertical;\n}\n.vu-list-disc {\n list-style-type: disc;\n}\n.vu-grid-cols-3 {\n grid-template-columns: repeat(3, minmax(0, 1fr));\n}\n.vu-flex-col {\n flex-direction: column;\n}\n.vu-items-center {\n align-items: center;\n}\n.vu-justify-end {\n justify-content: flex-end;\n}\n.vu-justify-center {\n justify-content: center;\n}\n.vu-justify-between {\n justify-content: space-between;\n}\n.vu-gap-1 {\n gap: 0.25rem;\n}\n.vu-gap-2 {\n gap: 0.5rem;\n}\n.vu-gap-3\\.5 {\n gap: 0.875rem;\n}\n.vu-gap-4 {\n gap: 1rem;\n}\n.vu-gap-x-3 {\n -moz-column-gap: 0.75rem;\n column-gap: 0.75rem;\n}\n.vu-gap-x-8 {\n -moz-column-gap: 2rem;\n column-gap: 2rem;\n}\n.vu-gap-y-5 {\n row-gap: 1.25rem;\n}\n.vu-self-center {\n align-self: center;\n}\n.vu-overflow-hidden {\n overflow: hidden;\n}\n.vu-overflow-y-auto {\n overflow-y: auto;\n}\n.vu-overflow-x-hidden {\n overflow-x: hidden;\n}\n.vu-truncate {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.vu-break-words {\n overflow-wrap: break-word;\n}\n.vu-rounded-full {\n border-radius: 9999px;\n}\n.vu-rounded-lg {\n border-radius: 0.5rem;\n}\n.vu-rounded-md {\n border-radius: 0.375rem;\n}\n.vu-border {\n border-width: 1px;\n}\n.vu-border-0 {\n border-width: 0px;\n}\n.vu-border-2 {\n border-width: 2px;\n}\n.vu-border-l {\n border-left-width: 1px;\n}\n.vu-border-solid {\n border-style: solid;\n}\n.vu-border-black {\n --tw-border-opacity: 1;\n border-color: rgb(0 0 0 / var(--tw-border-opacity, 1));\n}\n.vu-border-black\\/20 {\n border-color: rgb(0 0 0 / 0.2);\n}\n.vu-border-gainsboro {\n --tw-border-opacity: 1;\n border-color: rgb(216 222 228 / var(--tw-border-opacity, 1));\n}\n.vu-border-light_pink {\n --tw-border-opacity: 1;\n border-color: rgb(255 178 184 / var(--tw-border-opacity, 1));\n}\n.vu-bg-\\[\\#E5D4FF\\] {\n --tw-bg-opacity: 1;\n background-color: rgb(229 212 255 / var(--tw-bg-opacity, 1));\n}\n.vu-bg-alice_blue {\n --tw-bg-opacity: 1;\n background-color: rgb(243 246 252 / var(--tw-bg-opacity, 1));\n}\n.vu-bg-black\\/50 {\n background-color: rgb(0 0 0 / 0.5);\n}\n.vu-bg-black\\/75 {\n background-color: rgb(0 0 0 / 0.75);\n}\n.vu-bg-gainsboro {\n --tw-bg-opacity: 1;\n background-color: rgb(216 222 228 / var(--tw-bg-opacity, 1));\n}\n.vu-bg-lavender_blush {\n --tw-bg-opacity: 1;\n background-color: rgb(254 242 243 / var(--tw-bg-opacity, 1));\n}\n.vu-bg-primary {\n --tw-bg-opacity: 1;\n background-color: rgb(17 51 154 / var(--tw-bg-opacity, 1));\n}\n.vu-bg-transparent {\n background-color: transparent;\n}\n.vu-bg-white {\n --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));\n}\n.vu-fill-black {\n fill: #000;\n}\n.vu-fill-green-500 {\n fill: #22c55e;\n}\n.vu-fill-rose-500 {\n fill: #f43f5e;\n}\n.vu-fill-slate-350 {\n fill: #ADB5C2;\n}\n.vu-fill-white {\n fill: #FFF;\n}\n.vu-p-0 {\n padding: 0px;\n}\n.vu-p-1 {\n padding: 0.25rem;\n}\n.vu-p-1\\.5 {\n padding: 0.375rem;\n}\n.vu-p-2 {\n padding: 0.5rem;\n}\n.vu-p-4 {\n padding: 1rem;\n}\n.vu-p-6 {\n padding: 1.5rem;\n}\n.vu-p-8 {\n padding: 2rem;\n}\n.vu-px-10 {\n padding-left: 2.5rem;\n padding-right: 2.5rem;\n}\n.vu-px-2 {\n padding-left: 0.5rem;\n padding-right: 0.5rem;\n}\n.vu-px-20 {\n padding-left: 5rem;\n padding-right: 5rem;\n}\n.vu-px-3 {\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n}\n.vu-px-4 {\n padding-left: 1rem;\n padding-right: 1rem;\n}\n.vu-py-2 {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n}\n.vu-py-4 {\n padding-top: 1rem;\n padding-bottom: 1rem;\n}\n.vu-py-5 {\n padding-top: 1.25rem;\n padding-bottom: 1.25rem;\n}\n.vu-pb-0\\.5 {\n padding-bottom: 0.125rem;\n}\n.vu-pb-4 {\n padding-bottom: 1rem;\n}\n.vu-pl-1 {\n padding-left: 0.25rem;\n}\n.vu-pl-10 {\n padding-left: 2.5rem;\n}\n.vu-pl-7 {\n padding-left: 1.75rem;\n}\n.vu-pr-10 {\n padding-right: 2.5rem;\n}\n.vu-pt-10 {\n padding-top: 2.5rem;\n}\n.vu-pt-2 {\n padding-top: 0.5rem;\n}\n.vu-pt-\\[6px\\] {\n padding-top: 6px;\n}\n.vu-text-left {\n text-align: left;\n}\n.vu-text-center {\n text-align: center;\n}\n.vu-text-start {\n text-align: start;\n}\n.vu-align-middle {\n vertical-align: middle;\n}\n.vu-text-2xl {\n font-size: 1.5rem;\n line-height: 2rem;\n}\n.vu-text-3xl {\n font-size: 1.875rem;\n line-height: 2.25rem;\n}\n.vu-text-\\[68px\\] {\n font-size: 68px;\n}\n.vu-text-lg {\n font-size: 1.125rem;\n line-height: 1.75rem;\n}\n.vu-text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem;\n}\n.vu-text-xl {\n font-size: 1.25rem;\n line-height: 1.75rem;\n}\n.vu-text-xs {\n font-size: 0.75rem;\n line-height: 1rem;\n}\n.vu-font-bold {\n font-weight: 700;\n}\n.vu-font-medium {\n font-weight: 500;\n}\n.vu-font-normal {\n font-weight: 400;\n}\n.vu-font-semibold {\n font-weight: 600;\n}\n.vu-text-black {\n --tw-text-opacity: 1;\n color: rgb(0 0 0 / var(--tw-text-opacity, 1));\n}\n.vu-text-blue-600 {\n --tw-text-opacity: 1;\n color: rgb(37 99 235 / var(--tw-text-opacity, 1));\n}\n.vu-text-dark_mode-600 {\n --tw-text-opacity: 1;\n color: rgb(18 27 55 / var(--tw-text-opacity, 1));\n}\n.vu-text-red-500 {\n --tw-text-opacity: 1;\n color: rgb(239 68 68 / var(--tw-text-opacity, 1));\n}\n.vu-text-white {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity, 1));\n}\n.vu-underline {\n text-decoration-line: underline;\n}\n.vu-opacity-0 {\n opacity: 0;\n}\n.vu-opacity-100 {\n opacity: 1;\n}\n.vu-opacity-20 {\n opacity: 0.2;\n}\n.vu-opacity-25 {\n opacity: 0.25;\n}\n.vu-opacity-60 {\n opacity: 0.6;\n}\n.vu-transition-\\[max-height\\,opacity\\] {\n transition-property: max-height,opacity;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.vu-transition-all {\n transition-property: all;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.vu-duration-300 {\n transition-duration: 300ms;\n}\n.vu-ease-in-out {\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n}\n\n/*PDF Export Fix*/\n.pdf-container {\n width: 635px !important;\n}\n\n/* Hide elements only during PDF capture */\n.pdf-container .hide-in-pdf {\n display: none !important;\n}\n\n/* Icon button hover effect */\n.vu-icon-btn::before {\n content: "";\n position: absolute;\n inset: -8px;\n border-radius: 50%;\n background-color: transparent;\n opacity: 0;\n transform: scale(0);\n transition:\n opacity 0.2s ease,\n transform 0.2s ease;\n}\n\n.vu-icon-btn:not(:disabled):hover::before {\n background-color: rgba(0, 0, 0, 0.12);\n opacity: 1;\n transform: scale(0.8);\n}\n\n.vu-dark .vu-icon-btn:not(:disabled):hover::before {\n background-color: rgba(255, 255, 255, 0.12);\n}\n\n.pdf-overlay {\n position: fixed;\n inset: 0;\n background: rgba(255, 255, 255, 0.8);\n backdrop-filter: blur(4px);\n z-index: 9999;\n opacity: 0;\n animation: fadeIn 0.15s forwards;\n}\n\n@keyframes fadeIn {\n to {\n opacity: 1;\n }\n}\n\n.pdf-overlay.fade-out {\n animation: fadeOut 0.15s forwards;\n}\n\n@keyframes fadeOut {\n to {\n opacity: 0;\n }\n}\n\n.dark\\:vu-prose-invert:is(.vu-dark *) {\n --tw-prose-body: var(--tw-prose-invert-body);\n --tw-prose-headings: var(--tw-prose-invert-headings);\n --tw-prose-lead: var(--tw-prose-invert-lead);\n --tw-prose-links: var(--tw-prose-invert-links);\n --tw-prose-bold: var(--tw-prose-invert-bold);\n --tw-prose-counters: var(--tw-prose-invert-counters);\n --tw-prose-bullets: var(--tw-prose-invert-bullets);\n --tw-prose-hr: var(--tw-prose-invert-hr);\n --tw-prose-quotes: var(--tw-prose-invert-quotes);\n --tw-prose-quote-borders: var(--tw-prose-invert-quote-borders);\n --tw-prose-captions: var(--tw-prose-invert-captions);\n --tw-prose-kbd: var(--tw-prose-invert-kbd);\n --tw-prose-kbd-shadows: var(--tw-prose-invert-kbd-shadows);\n --tw-prose-code: var(--tw-prose-invert-code);\n --tw-prose-pre-code: var(--tw-prose-invert-pre-code);\n --tw-prose-pre-bg: var(--tw-prose-invert-pre-bg);\n --tw-prose-th-borders: var(--tw-prose-invert-th-borders);\n --tw-prose-td-borders: var(--tw-prose-invert-td-borders);\n}\n\n.focus\\:vu-outline-none:focus {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n\n.dark\\:vu-border-dark_mode-100:is(.vu-dark *) {\n --tw-border-opacity: 1;\n border-color: rgb(75 81 104 / var(--tw-border-opacity, 1));\n}\n\n.dark\\:vu-border-dark_mode-200:is(.vu-dark *) {\n --tw-border-opacity: 1;\n border-color: rgb(50 56 78 / var(--tw-border-opacity, 1));\n}\n\n.dark\\:vu-bg-black\\/70:is(.vu-dark *) {\n background-color: rgb(0 0 0 / 0.7);\n}\n\n.dark\\:vu-bg-dark_mode-500:is(.vu-dark *) {\n --tw-bg-opacity: 1;\n background-color: rgb(26 36 68 / var(--tw-bg-opacity, 1));\n}\n\n.dark\\:vu-bg-dark_mode-600:is(.vu-dark *) {\n --tw-bg-opacity: 1;\n background-color: rgb(18 27 55 / var(--tw-bg-opacity, 1));\n}\n\n.dark\\:vu-bg-dark_mode-700:is(.vu-dark *) {\n --tw-bg-opacity: 1;\n background-color: rgb(11 19 43 / var(--tw-bg-opacity, 1));\n}\n\n.dark\\:vu-fill-slate-250:is(.vu-dark *) {\n fill: #CCCCDC;\n}\n\n.dark\\:vu-fill-slate-450:is(.vu-dark *) {\n fill: #7B7E92;\n}\n\n.dark\\:vu-text-slate-250:is(.vu-dark *) {\n --tw-text-opacity: 1;\n color: rgb(204 204 220 / var(--tw-text-opacity, 1));\n}\n\n.dark\\:vu-text-slate-450:is(.vu-dark *) {\n --tw-text-opacity: 1;\n color: rgb(123 126 146 / var(--tw-text-opacity, 1));\n}\n\n@media (min-width: 640px) {\n .sm\\:vu-flex {\n display: flex;\n }\n}\n\n@media (min-width: 1024px) {\n .lg\\:vu-relative {\n position: relative;\n }\n .lg\\:vu-flex {\n display: flex;\n }\n .lg\\:vu-hidden {\n display: none;\n }\n .lg\\:vu-w-80 {\n width: 20rem;\n }\n .lg\\:vu-p-0 {\n padding: 0px;\n }\n .lg\\:vu-px-\\[7\\.5rem\\] {\n padding-left: 7.5rem;\n padding-right: 7.5rem;\n }\n .lg\\:vu-pr-6 {\n padding-right: 1.5rem;\n }\n}\n');var S=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(e){var t=this,n=e||function(){};return this.listeners.push(n),this.onSubscribe(),function(){t.listeners=t.listeners.filter(function(e){return e!==n}),t.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}();function k(){return k=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},k.apply(null,arguments)}var U='undefined'==typeof window;function Q(){}function L(e){return'number'==typeof e&&e>=0&&e!==1/0}function O(e){return Array.isArray(e)?e:[e]}function I(e,t){return Math.max(e+(t||0)-Date.now(),0)}function N(e,t,n){return G(e)?'function'==typeof t?k({},n,{queryKey:e,queryFn:t}):k({},t,{queryKey:e}):e}function T(e,t,n){return G(e)?[k({},t,{queryKey:e}),n]:[e||{},t]}function M(e,t){var n=e.active,r=e.exact,i=e.fetching,o=e.inactive,s=e.predicate,a=e.queryKey,A=e.stale;if(G(a))if(r){if(t.queryHash!==P(a,t.options))return!1}else if(!H(t.queryKey,a))return!1;var l=function(e,t){return!0===e&&!0===t||null==e&&null==t?'all':!1===e&&!1===t?'none':(null!=e?e:!t)?'active':'inactive'}(n,o);if('none'===l)return!1;if('all'!==l){var c=t.isActive();if('active'===l&&!c)return!1;if('inactive'===l&&c)return!1}return('boolean'!=typeof A||t.isStale()===A)&&(('boolean'!=typeof i||t.isFetching()===i)&&!(s&&!s(t)))}function D(e,t){var n=e.exact,r=e.fetching,i=e.predicate,o=e.mutationKey;if(G(o)){if(!t.options.mutationKey)return!1;if(n){if(R(t.options.mutationKey)!==R(o))return!1}else if(!H(t.options.mutationKey,o))return!1}return('boolean'!=typeof r||'loading'===t.state.status===r)&&!(i&&!i(t))}function P(e,t){return((null==t?void 0:t.queryKeyHashFn)||R)(e)}function R(e){var t,n=O(e);return t=n,JSON.stringify(t,function(e,t){return K(t)?Object.keys(t).sort().reduce(function(e,n){return e[n]=t[n],e},{}):t})}function H(e,t){return z(O(e),O(t))}function z(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||'object'!=typeof e||'object'!=typeof t)&&!Object.keys(t).some(function(n){return!z(e[n],t[n])}))}function V(e,t){if(e===t)return e;var n=Array.isArray(e)&&Array.isArray(t);if(n||K(e)&&K(t)){for(var r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),o=i.length,s=n?[]:{},a=0,A=0;A<o;A++){var l=n?A:i[A];s[l]=V(e[l],t[l]),s[l]===e[l]&&a++}return r===o&&a===r?e:s}return t}function K(e){if(!q(e))return!1;var t=e.constructor;if(void 0===t)return!0;var n=t.prototype;return!!q(n)&&!!n.hasOwnProperty('isPrototypeOf')}function q(e){return'[object Object]'===Object.prototype.toString.call(e)}function G(e){return'string'==typeof e||Array.isArray(e)}function W(e){Promise.resolve().then(e).catch(function(e){return setTimeout(function(){throw e})})}function Y(){if('function'==typeof AbortController)return new AbortController}var X=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!U&&(null==(t=window)?void 0:t.addEventListener)){var n=function(){return e()};return window.addEventListener('visibilitychange',n,!1),window.addEventListener('focus',n,!1),function(){window.removeEventListener('visibilitychange',n),window.removeEventListener('focus',n)}}},t}E(t,e);var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},n.setEventListener=function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(function(e){'boolean'==typeof e?n.setFocused(e):n.onFocus()})},n.setFocused=function(e){this.focused=e,e&&this.onFocus()},n.onFocus=function(){this.listeners.forEach(function(e){e()})},n.isFocused=function(){return'boolean'==typeof this.focused?this.focused:'undefined'==typeof document||[void 0,'visible','prerender'].includes(document.visibilityState)},t}(S)),J=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!U&&(null==(t=window)?void 0:t.addEventListener)){var n=function(){return e()};return window.addEventListener('online',n,!1),window.addEventListener('offline',n,!1),function(){window.removeEventListener('online',n),window.removeEventListener('offline',n)}}},t}E(t,e);var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},n.setEventListener=function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(function(e){'boolean'==typeof e?n.setOnline(e):n.onOnline()})},n.setOnline=function(e){this.online=e,e&&this.onOnline()},n.onOnline=function(){this.listeners.forEach(function(e){e()})},n.isOnline=function(){return'boolean'==typeof this.online?this.online:'undefined'==typeof navigator||void 0===navigator.onLine||navigator.onLine},t}(S));function Z(e){return Math.min(1e3*Math.pow(2,e),3e4)}function $(e){return'function'==typeof(null==e?void 0:e.cancel)}var ee=function(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent};function te(e){return e instanceof ee}var ne=function(e){var t,n,r,i,o=this,s=!1;this.abort=e.abort,this.cancel=function(e){return null==t?void 0:t(e)},this.cancelRetry=function(){s=!0},this.continueRetry=function(){s=!1},this.continue=function(){return null==n?void 0:n()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(e,t){r=e,i=t});var a=function(t){o.isResolved||(o.isResolved=!0,null==e.onSuccess||e.onSuccess(t),null==n||n(),r(t))},A=function(t){o.isResolved||(o.isResolved=!0,null==e.onError||e.onError(t),null==n||n(),i(t))};!function r(){if(!o.isResolved){var i;try{i=e.fn()}catch(e){i=Promise.reject(e)}t=function(e){if(!o.isResolved&&(A(new ee(e)),null==o.abort||o.abort(),$(i)))try{i.cancel()}catch(e){}},o.isTransportCancelable=$(i),Promise.resolve(i).then(a).catch(function(t){var i,a;if(!o.isResolved){var l,c=null!=(i=e.retry)?i:3,u=null!=(a=e.retryDelay)?a:Z,d='function'==typeof u?u(o.failureCount,t):u,f=!0===c||'number'==typeof c&&o.failureCount<c||'function'==typeof c&&c(o.failureCount,t);if(!s&&f)o.failureCount++,null==e.onFail||e.onFail(o.failureCount,t),(l=d,new Promise(function(e){setTimeout(e,l)})).then(function(){if(!X.isFocused()||!J.isOnline())return new Promise(function(t){n=t,o.isPaused=!0,null==e.onPause||e.onPause()}).then(function(){n=void 0,o.isPaused=!1,null==e.onContinue||e.onContinue()})}).then(function(){s?A(t):r()});else A(t)}})}}()},re=function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(e){e()},this.batchNotifyFn=function(e){e()}}var t=e.prototype;return t.batch=function(e){var t;this.transactions++;try{t=e()}finally{this.transactions--,this.transactions||this.flush()}return t},t.schedule=function(e){var t=this;this.transactions?this.queue.push(e):W(function(){t.notifyFn(e)})},t.batchCalls=function(e){var t=this;return function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];t.schedule(function(){e.apply(void 0,r)})}},t.flush=function(){var e=this,t=this.queue;this.queue=[],t.length&&W(function(){e.batchNotifyFn(function(){t.forEach(function(t){e.notifyFn(t)})})})},t.setNotifyFunction=function(e){this.notifyFn=e},t.setBatchNotifyFunction=function(e){this.batchNotifyFn=e},e}(),ie=new re,oe=console;function se(){return oe}var ae=function(){function e(e){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=e.meta,this.scheduleGc()}var t=e.prototype;return t.setOptions=function(e){var t;this.options=k({},this.defaultOptions,e),this.meta=null==e?void 0:e.meta,this.cacheTime=Math.max(this.cacheTime||0,null!=(t=this.options.cacheTime)?t:3e5)},t.setDefaultOptions=function(e){this.defaultOptions=e},t.scheduleGc=function(){var e=this;this.clearGcTimeout(),L(this.cacheTime)&&(this.gcTimeout=setTimeout(function(){e.optionalRemove()},this.cacheTime))},t.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},t.optionalRemove=function(){this.observers.length||(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},t.setData=function(e,t){var n,r,i=this.state.data,o=function(e,t){return'function'==typeof e?e(t):e}(e,i);return(null==(n=(r=this.options).isDataEqual)?void 0:n.call(r,i,o))?o=i:!1!==this.options.structuralSharing&&(o=V(i,o)),this.dispatch({data:o,type:'success',dataUpdatedAt:null==t?void 0:t.updatedAt}),o},t.setState=function(e,t){this.dispatch({type:'setState',state:e,setStateOptions:t})},t.cancel=function(e){var t,n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(Q).catch(Q):Promise.resolve()},t.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},t.reset=function(){this.destroy(),this.setState(this.initialState)},t.isActive=function(){return this.observers.some(function(e){return!1!==e.options.enabled})},t.isFetching=function(){return this.state.isFetching},t.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(function(e){return e.getCurrentResult().isStale})},t.isStaleByTime=function(e){return void 0===e&&(e=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!I(this.state.dataUpdatedAt,e)},t.onFocus=function(){var e,t=this.observers.find(function(e){return e.shouldFetchOnWindowFocus()});t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.onOnline=function(){var e,t=this.observers.find(function(e){return e.shouldFetchOnReconnect()});t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.addObserver=function(e){-1===this.observers.indexOf(e)&&(this.observers.push(e),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:'observerAdded',query:this,observer:e}))},t.removeObserver=function(e){-1!==this.observers.indexOf(e)&&(this.observers=this.observers.filter(function(t){return t!==e}),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:'observerRemoved',query:this,observer:e}))},t.getObserversCount=function(){return this.observers.length},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:'invalidate'})},t.fetch=function(e,t){var n,r,i,o=this;if(this.state.isFetching)if(this.state.dataUpdatedAt&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var s;return null==(s=this.retryer)||s.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){var a=this.observers.find(function(e){return e.options.queryFn});a&&this.setOptions(a.options)}var A=O(this.queryKey),l=Y(),c={queryKey:A,pageParam:void 0,meta:this.meta};Object.defineProperty(c,'signal',{enumerable:!0,get:function(){if(l)return o.abortSignalConsumed=!0,l.signal}});var u,d,f={fetchOptions:t,options:this.options,queryKey:A,state:this.state,fetchFn:function(){return o.options.queryFn?(o.abortSignalConsumed=!1,o.options.queryFn(c)):Promise.reject('Missing queryFn')},meta:this.meta};(null==(n=this.options.behavior)?void 0:n.onFetch)&&(null==(u=this.options.behavior)||u.onFetch(f));(this.revertState=this.state,this.state.isFetching&&this.state.fetchMeta===(null==(r=f.fetchOptions)?void 0:r.meta))||this.dispatch({type:'fetch',meta:null==(d=f.fetchOptions)?void 0:d.meta});return this.retryer=new ne({fn:f.fetchFn,abort:null==l||null==(i=l.abort)?void 0:i.bind(l),onSuccess:function(e){o.setData(e),null==o.cache.config.onSuccess||o.cache.config.onSuccess(e,o),0===o.cacheTime&&o.optionalRemove()},onError:function(e){te(e)&&e.silent||o.dispatch({type:'error',error:e}),te(e)||(null==o.cache.config.onError||o.cache.config.onError(e,o),se().error(e)),0===o.cacheTime&&o.optionalRemove()},onFail:function(){o.dispatch({type:'failed'})},onPause:function(){o.dispatch({type:'pause'})},onContinue:function(){o.dispatch({type:'continue'})},retry:f.options.retry,retryDelay:f.options.retryDelay}),this.promise=this.retryer.promise,this.promise},t.dispatch=function(e){var t=this;this.state=this.reducer(this.state,e),ie.batch(function(){t.observers.forEach(function(t){t.onQueryUpdate(e)}),t.cache.notify({query:t,type:'queryUpdated',action:e})})},t.getDefaultState=function(e){var t='function'==typeof e.initialData?e.initialData():e.initialData,n=void 0!==e.initialData?'function'==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0,r=void 0!==t;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?null!=n?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:r?'success':'idle'}},t.reducer=function(e,t){var n,r;switch(t.type){case'failed':return k({},e,{fetchFailureCount:e.fetchFailureCount+1});case'pause':return k({},e,{isPaused:!0});case'continue':return k({},e,{isPaused:!1});case'fetch':return k({},e,{fetchFailureCount:0,fetchMeta:null!=(n=t.meta)?n:null,isFetching:!0,isPaused:!1},!e.dataUpdatedAt&&{error:null,status:'loading'});case'success':return k({},e,{data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:null!=(r=t.dataUpdatedAt)?r:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:'success'});case'error':var i=t.error;return te(i)&&i.revert&&this.revertState?k({},this.revertState):k({},e,{error:i,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:'error'});case'invalidate':return k({},e,{isInvalidated:!0});case'setState':return k({},e,t.state);default:return e}},e}(),Ae=function(e){function t(t){var n;return(n=e.call(this)||this).config=t||{},n.queries=[],n.queriesMap={},n}E(t,e);var n=t.prototype;return n.build=function(e,t,n){var r,i=t.queryKey,o=null!=(r=t.queryHash)?r:P(i,t),s=this.get(o);return s||(s=new ae({cache:this,queryKey:i,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(i),meta:t.meta}),this.add(s)),s},n.add=function(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:'queryAdded',query:e}))},n.remove=function(e){var t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter(function(t){return t!==e}),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:'queryRemoved',query:e}))},n.clear=function(){var e=this;ie.batch(function(){e.queries.forEach(function(t){e.remove(t)})})},n.get=function(e){return this.queriesMap[e]},n.getAll=function(){return this.queries},n.find=function(e,t){var n=T(e,t)[0];return void 0===n.exact&&(n.exact=!0),this.queries.find(function(e){return M(n,e)})},n.findAll=function(e,t){var n=T(e,t)[0];return Object.keys(n).length>0?this.queries.filter(function(e){return M(n,e)}):this.queries},n.notify=function(e){var t=this;ie.batch(function(){t.listeners.forEach(function(t){t(e)})})},n.onFocus=function(){var e=this;ie.batch(function(){e.queries.forEach(function(e){e.onFocus()})})},n.onOnline=function(){var e=this;ie.batch(function(){e.queries.forEach(function(e){e.onOnline()})})},t}(S),le=function(){function e(e){this.options=k({},e.defaultOptions,e.options),this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.observers=[],this.state=e.state||ce(),this.meta=e.meta}var t=e.prototype;return t.setState=function(e){this.dispatch({type:'setState',state:e})},t.addObserver=function(e){-1===this.observers.indexOf(e)&&this.observers.push(e)},t.removeObserver=function(e){this.observers=this.observers.filter(function(t){return t!==e})},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(Q).catch(Q)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var e,t=this,n='loading'===this.state.status,r=Promise.resolve();return n||(this.dispatch({type:'loading',variables:this.options.variables}),r=r.then(function(){null==t.mutationCache.config.onMutate||t.mutationCache.config.onMutate(t.state.variables,t)}).then(function(){return null==t.options.onMutate?void 0:t.options.onMutate(t.state.variables)}).then(function(e){e!==t.state.context&&t.dispatch({type:'loading',context:e,variables:t.state.variables})})),r.then(function(){return t.executeMutation()}).then(function(n){e=n,null==t.mutationCache.config.onSuccess||t.mutationCache.config.onSuccess(e,t.state.variables,t.state.context,t)}).then(function(){return null==t.options.onSuccess?void 0:t.options.onSuccess(e,t.state.variables,t.state.context)}).then(function(){return null==t.options.onSettled?void 0:t.options.onSettled(e,null,t.state.variables,t.state.context)}).then(function(){return t.dispatch({type:'success',data:e}),e}).catch(function(e){return null==t.mutationCache.config.onError||t.mutationCache.config.onError(e,t.state.variables,t.state.context,t),se().error(e),Promise.resolve().then(function(){return null==t.options.onError?void 0:t.options.onError(e,t.state.variables,t.state.context)}).then(function(){return null==t.options.onSettled?void 0:t.options.onSettled(void 0,e,t.state.variables,t.state.context)}).then(function(){throw t.dispatch({type:'error',error:e}),e})})},t.executeMutation=function(){var e,t=this;return this.retryer=new ne({fn:function(){return t.options.mutationFn?t.options.mutationFn(t.state.variables):Promise.reject('No mutationFn found')},onFail:function(){t.dispatch({type:'failed'})},onPause:function(){t.dispatch({type:'pause'})},onContinue:function(){t.dispatch({type:'continue'})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(e){var t=this;this.state=function(e,t){switch(t.type){case'failed':return k({},e,{failureCount:e.failureCount+1});case'pause':return k({},e,{isPaused:!0});case'continue':return k({},e,{isPaused:!1});case'loading':return k({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:'loading',variables:t.variables});case'success':return k({},e,{data:t.data,error:null,status:'success',isPaused:!1});case'error':return k({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:'error'});case'setState':return k({},e,t.state);default:return e}}(this.state,e),ie.batch(function(){t.observers.forEach(function(t){t.onMutationUpdate(e)}),t.mutationCache.notify(t)})},e}();function ce(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:'idle',variables:void 0}}var ue=function(e){function t(t){var n;return(n=e.call(this)||this).config=t||{},n.mutations=[],n.mutationId=0,n}E(t,e);var n=t.prototype;return n.build=function(e,t,n){var r=new le({mutationCache:this,mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0,meta:t.meta});return this.add(r),r},n.add=function(e){this.mutations.push(e),this.notify(e)},n.remove=function(e){this.mutations=this.mutations.filter(function(t){return t!==e}),e.cancel(),this.notify(e)},n.clear=function(){var e=this;ie.batch(function(){e.mutations.forEach(function(t){e.remove(t)})})},n.getAll=function(){return this.mutations},n.find=function(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find(function(t){return D(e,t)})},n.findAll=function(e){return this.mutations.filter(function(t){return D(e,t)})},n.notify=function(e){var t=this;ie.batch(function(){t.listeners.forEach(function(t){t(e)})})},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var e=this.mutations.filter(function(e){return e.state.isPaused});return ie.batch(function(){return e.reduce(function(e,t){return e.then(function(){return t.continue().catch(Q)})},Promise.resolve())})},t}(S);function de(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}var fe=function(){function e(e){void 0===e&&(e={}),this.queryCache=e.queryCache||new Ae,this.mutationCache=e.mutationCache||new ue,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var t=e.prototype;return t.mount=function(){var e=this;this.unsubscribeFocus=X.subscribe(function(){X.isFocused()&&J.isOnline()&&(e.mutationCache.onFocus(),e.queryCache.onFocus())}),this.unsubscribeOnline=J.subscribe(function(){X.isFocused()&&J.isOnline()&&(e.mutationCache.onOnline(),e.queryCache.onOnline())})},t.unmount=function(){var e,t;null==(e=this.unsubscribeFocus)||e.call(this),null==(t=this.unsubscribeOnline)||t.call(this)},t.isFetching=function(e,t){var n=T(e,t)[0];return n.fetching=!0,this.queryCache.findAll(n).length},t.isMutating=function(e){return this.mutationCache.findAll(k({},e,{fetching:!0})).length},t.getQueryData=function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data},t.getQueriesData=function(e){return this.getQueryCache().findAll(e).map(function(e){return[e.queryKey,e.state.data]})},t.setQueryData=function(e,t,n){var r=N(e),i=this.defaultQueryOptions(r);return this.queryCache.build(this,i).setData(t,n)},t.setQueriesData=function(e,t,n){var r=this;return ie.batch(function(){return r.getQueryCache().findAll(e).map(function(e){var i=e.queryKey;return[i,r.setQueryData(i,t,n)]})})},t.getQueryState=function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state},t.removeQueries=function(e,t){var n=T(e,t)[0],r=this.queryCache;ie.batch(function(){r.findAll(n).forEach(function(e){r.remove(e)})})},t.resetQueries=function(e,t,n){var r=this,i=T(e,t,n),o=i[0],s=i[1],a=this.queryCache,A=k({},o,{active:!0});return ie.batch(function(){return a.findAll(o).forEach(function(e){e.reset()}),r.refetchQueries(A,s)})},t.cancelQueries=function(e,t,n){var r=this,i=T(e,t,n),o=i[0],s=i[1],a=void 0===s?{}:s;void 0===a.revert&&(a.revert=!0);var A=ie.batch(function(){return r.queryCache.findAll(o).map(function(e){return e.cancel(a)})});return Promise.all(A).then(Q).catch(Q)},t.invalidateQueries=function(e,t,n){var r,i,o,s=this,a=T(e,t,n),A=a[0],l=a[1],c=k({},A,{active:null==(r=null!=(i=A.refetchActive)?i:A.active)||r,inactive:null!=(o=A.refetchInactive)&&o});return ie.batch(function(){return s.queryCache.findAll(A).forEach(function(e){e.invalidate()}),s.refetchQueries(c,l)})},t.refetchQueries=function(e,t,n){var r=this,i=T(e,t,n),o=i[0],s=i[1],a=ie.batch(function(){return r.queryCache.findAll(o).map(function(e){return e.fetch(void 0,k({},s,{meta:{refetchPage:null==o?void 0:o.refetchPage}}))})}),A=Promise.all(a).then(Q);return(null==s?void 0:s.throwOnError)||(A=A.catch(Q)),A},t.fetchQuery=function(e,t,n){var r=N(e,t,n),i=this.defaultQueryOptions(r);void 0===i.retry&&(i.retry=!1);var o=this.queryCache.build(this,i);return o.isStaleByTime(i.staleTime)?o.fetch(i):Promise.resolve(o.state.data)},t.prefetchQuery=function(e,t,n){return this.fetchQuery(e,t,n).then(Q).catch(Q)},t.fetchInfiniteQuery=function(e,t,n){var r=N(e,t,n);return r.behavior={onFetch:function(e){e.fetchFn=function(){var t,n,r,i,o,s,a,A,l,c=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,u=null==(r=e.fetchOptions)||null==(i=r.meta)?void 0:i.fetchMore,d=null==u?void 0:u.pageParam,f='forward'===(null==u?void 0:u.direction),h='backward'===(null==u?void 0:u.direction),p=(null==(o=e.state.data)?void 0:o.pages)||[],g=(null==(s=e.state.data)?void 0:s.pageParams)||[],m=Y(),v=null==m?void 0:m.signal,b=g,y=!1,w=e.options.queryFn||function(){return Promise.reject('Missing queryFn')},B=function(e,t,n,r){return b=r?[t].concat(b):[].concat(b,[t]),r?[n].concat(e):[].concat(e,[n])},x=function(t,n,r,i){if(y)return Promise.reject('Cancelled');if(void 0===r&&!n&&t.length)return Promise.resolve(t);var o={queryKey:e.queryKey,signal:v,pageParam:r,meta:e.meta},s=w(o),a=Promise.resolve(s).then(function(e){return B(t,r,e,i)});return $(s)&&(a.cancel=s.cancel),a};if(p.length)if(f){var C=void 0!==d,_=C?d:de(e.options,p);a=x(p,C,_)}else if(h){var j=void 0!==d,F=j?d:(A=e.options,l=p,null==A.getPreviousPageParam?void 0:A.getPreviousPageParam(l[0],l));a=x(p,j,F,!0)}else!function(){b=[];var t=void 0===e.options.getNextPageParam,n=!c||!p[0]||c(p[0],0,p);a=n?x([],t,g[0]):Promise.resolve(B([],g[0],p[0]));for(var r=function(n){a=a.then(function(r){if(!c||!p[n]||c(p[n],n,p)){var i=t?g[n]:de(e.options,r);return x(r,t,i)}return Promise.resolve(B(r,g[n],p[n]))})},i=1;i<p.length;i++)r(i)}();else a=x([]);var E=a.then(function(e){return{pages:e,pageParams:b}});return E.cancel=function(){y=!0,null==m||m.abort(),$(a)&&a.cancel()},E}}},this.fetchQuery(r)},t.prefetchInfiniteQuery=function(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(Q).catch(Q)},t.cancelMutations=function(){var e=this,t=ie.batch(function(){return e.mutationCache.getAll().map(function(e){return e.cancel()})});return Promise.all(t).then(Q).catch(Q)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(e){return this.mutationCache.build(this,e).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(e){this.defaultOptions=e},t.setQueryDefaults=function(e,t){var n=this.queryDefaults.find(function(t){return R(e)===R(t.queryKey)});n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})},t.getQueryDefaults=function(e){var t;return e?null==(t=this.queryDefaults.find(function(t){return H(e,t.queryKey)}))?void 0:t.defaultOptions:void 0},t.setMutationDefaults=function(e,t){var n=this.mutationDefaults.find(function(t){return R(e)===R(t.mutationKey)});n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})},t.getMutationDefaults=function(e){var t;return e?null==(t=this.mutationDefaults.find(function(t){return H(e,t.mutationKey)}))?void 0:t.defaultOptions:void 0},t.defaultQueryOptions=function(e){if(null==e?void 0:e._defaulted)return e;var t=k({},this.defaultOptions.queries,this.getQueryDefaults(null==e?void 0:e.queryKey),e,{_defaulted:!0});return!t.queryHash&&t.queryKey&&(t.queryHash=P(t.queryKey,t)),t},t.defaultQueryObserverOptions=function(e){return this.defaultQueryOptions(e)},t.defaultMutationOptions=function(e){return(null==e?void 0:e._defaulted)?e:k({},this.defaultOptions.mutations,this.getMutationDefaults(null==e?void 0:e.mutationKey),e,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}(),he=function(e){function t(t,n){var r;return(r=e.call(this)||this).client=t,r.options=n,r.trackedProps=[],r.selectError=null,r.bindMethods(),r.setOptions(n),r}E(t,e);var n=t.prototype;return n.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},n.onSubscribe=function(){1===this.listeners.length&&(this.currentQuery.addObserver(this),pe(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return ge(this.currentQuery,this.options,this.options.refetchOnReconnect)},n.shouldFetchOnWindowFocus=function(){return ge(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},n.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},n.setOptions=function(e,t){var n=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(e),void 0!==this.options.enabled&&'boolean'!=typeof this.options.enabled)throw new Error('Expected enabled to be a boolean');this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();var i=this.hasListeners();i&&me(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(t),!i||this.currentQuery===r&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();var o=this.computeRefetchInterval();!i||this.currentQuery===r&&this.options.enabled===n.enabled&&o===this.currentRefetchInterval||this.updateRefetchInterval(o)},n.getOptimisticResult=function(e){var t=this.client.defaultQueryObserverOptions(e),n=this.client.getQueryCache().build(this.client,t);return this.createResult(n,t)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(e,t){var n=this,r={},i=function(e){n.trackedProps.includes(e)||n.trackedProps.push(e)};return Object.keys(e).forEach(function(t){Object.defineProperty(r,t,{configurable:!1,enumerable:!0,get:function(){return i(t),e[t]}})}),(t.useErrorBoundary||t.suspense)&&i('error'),r},n.getNextResult=function(e){var t=this;return new Promise(function(n,r){var i=t.subscribe(function(t){t.isFetching||(i(),t.isError&&(null==e?void 0:e.throwOnError)?r(t.error):n(t))})})},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(e){return this.fetch(k({},e,{meta:{refetchPage:null==e?void 0:e.refetchPage}}))},n.fetchOptimistic=function(e){var t=this,n=this.client.defaultQueryObserverOptions(e),r=this.client.getQueryCache().build(this.client,n);return r.fetch().then(function(){return t.createResult(r,n)})},n.fetch=function(e){var t=this;return this.executeFetch(e).then(function(){return t.updateResult(),t.currentResult})},n.executeFetch=function(e){this.updateQuery();var t=this.currentQuery.fetch(this.options,e);return(null==e?void 0:e.throwOnError)||(t=t.catch(Q)),t},n.updateStaleTimeout=function(){var e=this;if(this.clearStaleTimeout(),!U&&!this.currentResult.isStale&&L(this.options.staleTime)){var t=I(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(function(){e.currentResult.isStale||e.updateResult()},t)}},n.computeRefetchInterval=function(){var e;return'function'==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e},n.updateRefetchInterval=function(e){var t=this;this.clearRefetchInterval(),this.currentRefetchInterval=e,!U&&!1!==this.options.enabled&&L(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(function(){(t.options.refetchIntervalInBackground||X.isFocused())&&t.executeFetch()},this.currentRefetchInterval))},n.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},n.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},n.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},n.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},n.createResult=function(e,t){var n,r=this.currentQuery,i=this.options,o=this.currentResult,s=this.currentResultState,a=this.currentResultOptions,A=e!==r,l=A?e.state:this.currentQueryInitialState,c=A?this.currentResult:this.previousQueryResult,u=e.state,d=u.dataUpdatedAt,f=u.error,h=u.errorUpdatedAt,p=u.isFetching,g=u.status,m=!1,v=!1;if(t.optimisticResults){var b=this.hasListeners(),y=!b&&pe(e,t),w=b&&me(e,r,t,i);(y||w)&&(p=!0,d||(g='loading'))}if(t.keepPreviousData&&!u.dataUpdateCount&&(null==c?void 0:c.isSuccess)&&'error'!==g)n=c.data,d=c.dataUpdatedAt,g=c.status,m=!0;else if(t.select&&void 0!==u.data)if(o&&u.data===(null==s?void 0:s.data)&&t.select===this.selectFn)n=this.selectResult;else try{this.selectFn=t.select,n=t.select(u.data),!1!==t.structuralSharing&&(n=V(null==o?void 0:o.data,n)),this.selectResult=n,this.selectError=null}catch(e){se().error(e),this.selectError=e}else n=u.data;if(void 0!==t.placeholderData&&void 0===n&&('loading'===g||'idle'===g)){var B;if((null==o?void 0:o.isPlaceholderData)&&t.placeholderData===(null==a?void 0:a.placeholderData))B=o.data;else if(B='function'==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==B)try{B=t.select(B),!1!==t.structuralSharing&&(B=V(null==o?void 0:o.data,B)),this.selectError=null}catch(e){se().error(e),this.selectError=e}void 0!==B&&(g='success',n=B,v=!0)}return this.selectError&&(f=this.selectError,n=this.selectResult,h=Date.now(),g='error'),{status:g,isLoading:'loading'===g,isSuccess:'success'===g,isError:'error'===g,isIdle:'idle'===g,data:n,dataUpdatedAt:d,error:f,errorUpdatedAt:h,failureCount:u.fetchFailureCount,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>l.dataUpdateCount||u.errorUpdateCount>l.errorUpdateCount,isFetching:p,isRefetching:p&&'loading'!==g,isLoadingError:'error'===g&&0===u.dataUpdatedAt,isPlaceholderData:v,isPreviousData:m,isRefetchError:'error'===g&&0!==u.dataUpdatedAt,isStale:ve(e,t),refetch:this.refetch,remove:this.remove}},n.shouldNotifyListeners=function(e,t){if(!t)return!0;var n=this.options,r=n.notifyOnChangeProps,i=n.notifyOnChangePropsExclusions;if(!r&&!i)return!0;if('tracked'===r&&!this.trackedProps.length)return!0;var o='tracked'===r?this.trackedProps:r;return Object.keys(e).some(function(n){var r=n,s=e[r]!==t[r],a=null==o?void 0:o.some(function(e){return e===n}),A=null==i?void 0:i.some(function(e){return e===n});return s&&!A&&(!o||a)})},n.updateResult=function(e){var t=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!function(e,t){if(e&&!t||t&&!e)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}(this.currentResult,t)){var n={cache:!0};!1!==(null==e?void 0:e.listeners)&&this.shouldNotifyListeners(this.currentResult,t)&&(n.listeners=!0),this.notify(k({},n,e))}},n.updateQuery=function(){var e=this.client.getQueryCache().build(this.client,this.options);if(e!==this.currentQuery){var t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}},n.onQueryUpdate=function(e){var t={};'success'===e.type?t.onSuccess=!0:'error'!==e.type||te(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()},n.notify=function(e){var t=this;ie.batch(function(){e.onSuccess?(null==t.options.onSuccess||t.options.onSuccess(t.currentResult.data),null==t.options.onSettled||t.options.onSettled(t.currentResult.data,null)):e.onError&&(null==t.options.onError||t.options.onError(t.currentResult.error),null==t.options.onSettled||t.options.onSettled(void 0,t.currentResult.error)),e.listeners&&t.listeners.forEach(function(e){e(t.currentResult)}),e.cache&&t.client.getQueryCache().notify({query:t.currentQuery,type:'observerResultsUpdated'})})},t}(S);function pe(e,t){return function(e,t){return!(!1===t.enabled||e.state.dataUpdatedAt||'error'===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&ge(e,t,t.refetchOnMount)}function ge(e,t,n){if(!1!==t.enabled){var r='function'==typeof n?n(e):n;return'always'===r||!1!==r&&ve(e,t)}return!1}function me(e,t,n,r){return!1!==n.enabled&&(e!==t||!1===r.enabled)&&(!n.suspense||'error'!==e.state.status)&&ve(e,n)}function ve(e,t){return e.isStaleByTime(t.staleTime)}var be=function(e){function t(t,n){var r;return(r=e.call(this)||this).client=t,r.setOptions(n),r.bindMethods(),r.updateResult(),r}E(t,e);var n=t.prototype;return n.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},n.setOptions=function(e){this.options=this.client.defaultMutationOptions(e)},n.onUnsubscribe=function(){var e;this.listeners.length||(null==(e=this.currentMutation)||e.removeObserver(this))},n.onMutationUpdate=function(e){this.updateResult();var t={listeners:!0};'success'===e.type?t.onSuccess=!0:'error'===e.type&&(t.onError=!0),this.notify(t)},n.getCurrentResult=function(){return this.currentResult},n.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},n.mutate=function(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,k({},this.options,{variables:void 0!==e?e:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},n.updateResult=function(){var e=this.currentMutation?this.currentMutation.state:{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:'idle',variables:void 0},t=k({},e,{isLoading:'loading'===e.status,isSuccess:'success'===e.status,isError:'error'===e.status,isIdle:'idle'===e.status,mutate:this.mutate,reset:this.reset});this.currentResult=t},n.notify=function(e){var t=this;ie.batch(function(){t.mutateOptions&&(e.onSuccess?(null==t.mutateOptions.onSuccess||t.mutateOptions.onSuccess(t.currentResult.data,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(t.currentResult.data,null,t.currentResult.variables,t.currentResult.context)):e.onError&&(null==t.mutateOptions.onError||t.mutateOptions.onError(t.currentResult.error,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(void 0,t.currentResult.error,t.currentResult.variables,t.currentResult.context))),e.listeners&&t.listeners.forEach(function(e){e(t.currentResult)})})},t}(S),ye=b.unstable_batchedUpdates;ie.setBatchNotifyFunction(ye);var we=console;oe=we;var Be=t.createContext(void 0),xe=t.createContext(!1);function Ce(e){return e&&'undefined'!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Be),window.ReactQueryClientContext):Be}var _e=function(){var e=t.useContext(Ce(t.useContext(xe)));if(!e)throw new Error('No QueryClient set, use QueryClientProvider to set one');return e},je=function(e){var n=e.client,r=e.contextSharing,i=void 0!==r&&r,o=e.children;t.useEffect(function(){return n.mount(),function(){n.unmount()}},[n]);var s=Ce(i);return t.createElement(xe.Provider,{value:i},t.createElement(s.Provider,{value:n},o))};var Fe,Ee=t.createContext((Fe=!1,{clearReset:function(){Fe=!1},reset:function(){Fe=!0},isReset:function(){return Fe}}));function Se(e,t,n){return'function'==typeof t?t.apply(void 0,n):'boolean'==typeof t?t:!!e}function ke(e,n,r){var i=t.useRef(!1),o=t.useState(0)[1],s=function(e,t,n){return G(e)?'function'==typeof t?k({},n,{mutationKey:e,mutationFn:t}):k({},t,{mutationKey:e}):'function'==typeof e?k({},t,{mutationFn:e}):k({},e)}(e,n,r),a=_e(),A=t.useRef();A.current?A.current.setOptions(s):A.current=new be(a,s);var l=A.current.getCurrentResult();t.useEffect(function(){i.current=!0;var e=A.current.subscribe(ie.batchCalls(function(){i.current&&o(function(e){return e+1})}));return function(){i.current=!1,e()}},[]);var c=t.useCallback(function(e,t){A.current.mutate(e,t).catch(Q)},[]);if(l.error&&Se(void 0,A.current.options.useErrorBoundary,[l.error]))throw l.error;return k({},l,{mutate:c,mutateAsync:l.mutate})}function Ue(e,n){var r=t.useRef(!1),i=t.useState(0)[1],o=_e(),s=t.useContext(Ee),a=o.defaultQueryObserverOptions(e);a.optimisticResults=!0,a.onError&&(a.onError=ie.batchCalls(a.onError)),a.onSuccess&&(a.onSuccess=ie.batchCalls(a.onSuccess)),a.onSettled&&(a.onSettled=ie.batchCalls(a.onSettled)),a.suspense&&('number'!=typeof a.staleTime&&(a.staleTime=1e3),0===a.cacheTime&&(a.cacheTime=1)),(a.suspense||a.useErrorBoundary)&&(s.isReset()||(a.retryOnMount=!1));var A=t.useState(function(){return new n(o,a)})[0],l=A.getOptimisticResult(a);if(t.useEffect(function(){r.current=!0,s.clearReset();var e=A.subscribe(ie.batchCalls(function(){r.current&&i(function(e){return e+1})}));return A.updateResult(),function(){r.current=!1,e()}},[s,A]),t.useEffect(function(){A.setOptions(a,{listeners:!1})},[a,A]),a.suspense&&l.isLoading)throw A.fetchOptimistic(a).then(function(e){var t=e.data;null==a.onSuccess||a.onSuccess(t),null==a.onSettled||a.onSettled(t,null)}).catch(function(e){s.clearReset(),null==a.onError||a.onError(e),null==a.onSettled||a.onSettled(void 0,e)});if(l.isError&&!s.isReset()&&!l.isFetching&&Se(a.suspense,a.useErrorBoundary,[l.error,A.getCurrentQuery()]))throw l.error;return'tracked'===a.notifyOnChangeProps&&(l=A.trackResult(l,a)),l}function Qe(e,t,n){return Ue(N(e,t,n),he)}var Le=function(e,t){return Le=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])},Le(e,t)};var Oe=function(){return Oe=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},Oe.apply(this,arguments)};function Ie(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&'function'==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function Ne(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{A(r.next(e))}catch(e){o(e)}}function a(e){try{A(r.throw(e))}catch(e){o(e)}}function A(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}A((r=r.apply(e,t||[])).next())})}function Te(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},'function'==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(A){return function(a){if(n)throw new TypeError('Generator is already executing.');for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,A])}}}function Me(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function De(e,t){return Object.defineProperty?Object.defineProperty(e,'raw',{value:t}):e.raw=t,e}function Pe(){for(var e,t,n=0,r='';n<arguments.length;)(e=arguments[n++])&&(t=Re(e))&&(r&&(r+=' '),r+=t);return r}function Re(e){if('string'==typeof e)return e;for(var t,n='',r=0;r<e.length;r++)e[r]&&(t=Re(e[r]))&&(n&&(n+=' '),n+=t);return n}'function'==typeof SuppressedError&&SuppressedError;function He(e){var t=function(e){var t=e.theme,n=e.prefix,r={nextPart:new Map,validators:[]},i=function(e,t){if(!t)return e;return e.map(function(e){return[e[0],e[1].map(function(e){return'string'==typeof e?t+e:'object'==typeof e?Object.fromEntries(Object.entries(e).map(function(e){var n=e[0],r=e[1];return[t+n,r]})):e})]})}(Object.entries(e.classGroups),n);return i.forEach(function(e){var n=e[0];Ke(e[1],r,n,t)}),r}(e),n=e.conflictingClassGroups,r=e.conflictingClassGroupModifiers,i=void 0===r?{}:r;return{getClassGroupId:function(e){var n=e.split('-');return''===n[0]&&1!==n.length&&n.shift(),ze(n,t)||function(e){if(Ve.test(e)){var t=Ve.exec(e)[1],n=t?.substring(0,t.indexOf(':'));if(n)return'arbitrary..'+n}}(e)},getConflictingClassGroupIds:function(e,t){var r=n[e]||[];return t&&i[e]?[].concat(r,i[e]):r}}}function ze(e,t){if(0===e.length)return t.classGroupId;var n=e[0],r=t.nextPart.get(n),i=r?ze(e.slice(1),r):void 0;if(i)return i;if(0!==t.validators.length){var o=e.join('-');return t.validators.find(function(e){return(0,e.validator)(o)})?.classGroupId}}var Ve=/^\[(.+)\]$/;function Ke(e,t,n,r){e.forEach(function(e){if('string'!=typeof e){if('function'==typeof e)return e.isThemeGetter?void Ke(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach(function(e){var i=e[0];Ke(e[1],qe(t,i),n,r)})}else{(''===e?t:qe(t,e)).classGroupId=n}})}function qe(e,t){var n=e;return t.split('-').forEach(function(e){n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n}function Ge(e){if(e<1)return{get:function(){},set:function(){}};var t=0,n=new Map,r=new Map;function i(i,o){n.set(i,o),++t>e&&(t=0,r=n,n=new Map)}return{get:function(e){var t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(i(e,t),t):void 0},set:function(e,t){n.has(e)?n.set(e,t):i(e,t)}}}function We(e){var t=e.separator||':',n=1===t.length,r=t[0],i=t.length;return function(e){for(var o,s=[],a=0,A=0,l=0;l<e.length;l++){var c=e[l];if(0===a){if(c===r&&(n||e.slice(l,l+i)===t)){s.push(e.slice(A,l)),A=l+i;continue}if('/'===c){o=l;continue}}'['===c?a++:']'===c&&a--}var u=0===s.length?e:e.substring(A),d=u.startsWith('!');return{modifiers:s,hasImportantModifier:d,baseClassName:d?u.substring(1):u,maybePostfixModifierPosition:o&&o>A?o-A:void 0}}}var Ye=/\s+/;function Xe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i,o,s=function(e){var n=t[0],A=t.slice(1).reduce(function(e,t){return t(e)},n());return r=function(e){return{cache:Ge(e.cacheSize),splitModifiers:We(e),...He(e)}}(A),i=r.cache.get,o=r.cache.set,s=a,a(e)};function a(e){var t=i(e);if(t)return t;var n=function(e,t){var n=t.splitModifiers,r=t.getClassGroupId,i=t.getConflictingClassGroupIds,o=new Set;return e.trim().split(Ye).map(function(e){var t=n(e),i=t.modifiers,o=t.hasImportantModifier,s=t.baseClassName,a=t.maybePostfixModifierPosition,A=r(a?s.substring(0,a):s),l=Boolean(a);if(!A){if(!a)return{isTailwindClass:!1,originalClassName:e};if(!(A=r(s)))return{isTailwindClass:!1,originalClassName:e};l=!1}var c=function(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(e){'['===e[0]?(t.push.apply(t,n.sort().concat([e])),n=[]):n.push(e)}),t.push.apply(t,n.sort()),t}(i).join(':');return{isTailwindClass:!0,modifierId:o?c+'!':c,classGroupId:A,originalClassName:e,hasPostfixModifier:l}}).reverse().filter(function(e){if(!e.isTailwindClass)return!0;var t=e.modifierId,n=e.classGroupId,r=e.hasPostfixModifier,s=t+n;return!o.has(s)&&(o.add(s),i(n,r).forEach(function(e){return o.add(t+e)}),!0)}).reverse().map(function(e){return e.originalClassName}).join(' ')}(e,r);return o(e,n),n}return function(){return s(Pe.apply(null,arguments))}}function Je(e){var t=function(t){return t[e]||[]};return t.isThemeGetter=!0,t}var Ze=/^\[(?:([a-z-]+):)?(.+)\]$/i,$e=/^\d+\/\d+$/,et=new Set(['px','full','screen']),tt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,nt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,rt=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function it(e){return ct(e)||et.has(e)||$e.test(e)||ot(e)}function ot(e){return mt(e,'length',vt)}function st(e){return mt(e,'size',bt)}function at(e){return mt(e,'position',bt)}function At(e){return mt(e,'url',yt)}function lt(e){return mt(e,'number',ct)}function ct(e){return!Number.isNaN(Number(e))}function ut(e){return e.endsWith('%')&&ct(e.slice(0,-1))}function dt(e){return wt(e)||mt(e,'number',wt)}function ft(e){return Ze.test(e)}function ht(){return!0}function pt(e){return tt.test(e)}function gt(e){return mt(e,'',Bt)}function mt(e,t,n){var r=Ze.exec(e);return!!r&&(r[1]?r[1]===t:n(r[2]))}function vt(e){return nt.test(e)}function bt(){return!1}function yt(e){return e.startsWith('url(')}function wt(e){return Number.isInteger(Number(e))}function Bt(e){return rt.test(e)}function xt(){var e=Je('colors'),t=Je('spacing'),n=Je('blur'),r=Je('brightness'),i=Je('borderColor'),o=Je('borderRadius'),s=Je('borderSpacing'),a=Je('borderWidth'),A=Je('contrast'),l=Je('grayscale'),c=Je('hueRotate'),u=Je('invert'),d=Je('gap'),f=Je('gradientColorStops'),h=Je('gradientColorStopPositions'),p=Je('inset'),g=Je('margin'),m=Je('opacity'),v=Je('padding'),b=Je('saturate'),y=Je('scale'),w=Je('sepia'),B=Je('skew'),x=Je('space'),C=Je('translate'),_=function(){return['auto',ft,t]},j=function(){return[ft,t]},F=function(){return['',it]},E=function(){return['auto',ct,ft]},S=function(){return['','0',ft]},k=function(){return[ct,lt]},U=function(){return[ct,ft]};return{cacheSize:500,theme:{colors:[ht],spacing:[it],blur:['none','',pt,ft],brightness:k(),borderColor:[e],borderRadius:['none','','full',pt,ft],borderSpacing:j(),borderWidth:F(),contrast:k(),grayscale:S(),hueRotate:U(),invert:S(),gap:j(),gradientColorStops:[e],gradientColorStopPositions:[ut,ot],inset:_(),margin:_(),opacity:k(),padding:j(),saturate:k(),scale:k(),sepia:S(),skew:U(),space:j(),translate:j()},classGroups:{aspect:[{aspect:['auto','square','video',ft]}],container:['container'],columns:[{columns:[pt]}],'break-after':[{'break-after':['auto','avoid','all','avoid-page','page','left','right','column']}],'break-before':[{'break-before':['auto','avoid','all','avoid-page','page','left','right','column']}],'break-inside':[{'break-inside':['auto','avoid','avoid-page','avoid-column']}],'box-decoration':[{'box-decoration':['slice','clone']}],box:[{box:['border','content']}],display:['block','inline-block','inline','flex','inline-flex','table','inline-table','table-caption','table-cell','table-column','table-column-group','table-footer-group','table-header-group','table-row-group','table-row','flow-root','grid','inline-grid','contents','list-item','hidden'],float:[{float:['right','left','none']}],clear:[{clear:['left','right','both','none']}],isolation:['isolate','isolation-auto'],'object-fit':[{object:['contain','cover','fill','none','scale-down']}],'object-position':[{object:[].concat(['bottom','center','left','left-bottom','left-top','right','right-bottom','right-top','top'],[ft])}],overflow:[{overflow:['auto','hidden','clip','visible','scroll']}],'overflow-x':[{'overflow-x':['auto','hidden','clip','visible','scroll']}],'overflow-y':[{'overflow-y':['auto','hidden','clip','visible','scroll']}],overscroll:[{overscroll:['auto','contain','none']}],'overscroll-x':[{'overscroll-x':['auto','contain','none']}],'overscroll-y':[{'overscroll-y':['auto','contain','none']}],position:['static','fixed','absolute','relative','sticky'],inset:[{inset:[p]}],'inset-x':[{'inset-x':[p]}],'inset-y':[{'inset-y':[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:['visible','invisible','collapse'],z:[{z:['auto',dt]}],basis:[{basis:_()}],'flex-direction':[{flex:['row','row-reverse','col','col-reverse']}],'flex-wrap':[{flex:['wrap','wrap-reverse','nowrap']}],flex:[{flex:['1','auto','initial','none',ft]}],grow:[{grow:S()}],shrink:[{shrink:S()}],order:[{order:['first','last','none',dt]}],'grid-cols':[{'grid-cols':[ht]}],'col-start-end':[{col:['auto',{span:['full',dt]},ft]}],'col-start':[{'col-start':E()}],'col-end':[{'col-end':E()}],'grid-rows':[{'grid-rows':[ht]}],'row-start-end':[{row:['auto',{span:[dt]},ft]}],'row-start':[{'row-start':E()}],'row-end':[{'row-end':E()}],'grid-flow':[{'grid-flow':['row','col','dense','row-dense','col-dense']}],'auto-cols':[{'auto-cols':['auto','min','max','fr',ft]}],'auto-rows':[{'auto-rows':['auto','min','max','fr',ft]}],gap:[{gap:[d]}],'gap-x':[{'gap-x':[d]}],'gap-y':[{'gap-y':[d]}],'justify-content':[{justify:['normal'].concat(['start','end','center','between','around','evenly','stretch'])}],'justify-items':[{'justify-items':['start','end','center','stretch']}],'justify-self':[{'justify-self':['auto','start','end','center','stretch']}],'align-content':[{content:['normal'].concat(['start','end','center','between','around','evenly','stretch'],['baseline'])}],'align-items':[{items:['start','end','center','baseline','stretch']}],'align-self':[{self:['auto','start','end','center','stretch','baseline']}],'place-content':[{'place-content':[].concat(['start','end','center','between','around','evenly','stretch'],['baseline'])}],'place-items':[{'place-items':['start','end','center','baseline','stretch']}],'place-self':[{'place-self':['auto','start','end','center','stretch']}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],'space-x':[{'space-x':[x]}],'space-x-reverse':['space-x-reverse'],'space-y':[{'space-y':[x]}],'space-y-reverse':['space-y-reverse'],w:[{w:['auto','min','max','fit',ft,t]}],'min-w':[{'min-w':['min','max','fit',ft,it]}],'max-w':[{'max-w':['0','none','full','min','max','fit','prose',{screen:[pt]},pt,ft]}],h:[{h:[ft,t,'auto','min','max','fit']}],'min-h':[{'min-h':['min','max','fit',ft,it]}],'max-h':[{'max-h':[ft,t,'min','max','fit']}],'font-size':[{text:['base',pt,ot]}],'font-smoothing':['antialiased','subpixel-antialiased'],'font-style':['italic','not-italic'],'font-weight':[{font:['thin','extralight','light','normal','medium','semibold','bold','extrabold','black',lt]}],'font-family':[{font:[ht]}],'fvn-normal':['normal-nums'],'fvn-ordinal':['ordinal'],'fvn-slashed-zero':['slashed-zero'],'fvn-figure':['lining-nums','oldstyle-nums'],'fvn-spacing':['proportional-nums','tabular-nums'],'fvn-fraction':['diagonal-fractions','stacked-fractons'],tracking:[{tracking:['tighter','tight','normal','wide','wider','widest',ft]}],'line-clamp':[{'line-clamp':['none',ct,lt]}],leading:[{leading:['none','tight','snug','normal','relaxed','loose',ft,it]}],'list-image':[{'list-image':['none',ft]}],'list-style-type':[{list:['none','disc','decimal',ft]}],'list-style-position':[{list:['inside','outside']}],'placeholder-color':[{placeholder:[e]}],'placeholder-opacity':[{'placeholder-opacity':[m]}],'text-alignment':[{text:['left','center','right','justify','start','end']}],'text-color':[{text:[e]}],'text-opacity':[{'text-opacity':[m]}],'text-decoration':['underline','overline','line-through','no-underline'],'text-decoration-style':[{decoration:[].concat(['solid','dashed','dotted','double','none'],['wavy'])}],'text-decoration-thickness':[{decoration:['auto','from-font',it]}],'underline-offset':[{'underline-offset':['auto',ft,it]}],'text-decoration-color':[{decoration:[e]}],'text-transform':['uppercase','lowercase','capitalize','normal-case'],'text-overflow':['truncate','text-ellipsis','text-clip'],indent:[{indent:j()}],'vertical-align':[{align:['baseline','top','middle','bottom','text-top','text-bottom','sub','super',ft]}],whitespace:[{whitespace:['normal','nowrap','pre','pre-line','pre-wrap','break-spaces']}],break:[{break:['normal','words','all','keep']}],hyphens:[{hyphens:['none','manual','auto']}],content:[{content:['none',ft]}],'bg-attachment':[{bg:['fixed','local','scroll']}],'bg-clip':[{'bg-clip':['border','padding','content','text']}],'bg-opacity':[{'bg-opacity':[m]}],'bg-origin':[{'bg-origin':['border','padding','content']}],'bg-position':[{bg:[].concat(['bottom','center','left','left-bottom','left-top','right','right-bottom','right-top','top'],[at])}],'bg-repeat':[{bg:['no-repeat',{repeat:['','x','y','round','space']}]}],'bg-size':[{bg:['auto','cover','contain',st]}],'bg-image':[{bg:['none',{'gradient-to':['t','tr','r','br','b','bl','l','tl']},At]}],'bg-color':[{bg:[e]}],'gradient-from-pos':[{from:[h]}],'gradient-via-pos':[{via:[h]}],'gradient-to-pos':[{to:[h]}],'gradient-from':[{from:[f]}],'gradient-via':[{via:[f]}],'gradient-to':[{to:[f]}],rounded:[{rounded:[o]}],'rounded-s':[{'rounded-s':[o]}],'rounded-e':[{'rounded-e':[o]}],'rounded-t':[{'rounded-t':[o]}],'rounded-r':[{'rounded-r':[o]}],'rounded-b':[{'rounded-b':[o]}],'rounded-l':[{'rounded-l':[o]}],'rounded-ss':[{'rounded-ss':[o]}],'rounded-se':[{'rounded-se':[o]}],'rounded-ee':[{'rounded-ee':[o]}],'rounded-es':[{'rounded-es':[o]}],'rounded-tl':[{'rounded-tl':[o]}],'rounded-tr':[{'rounded-tr':[o]}],'rounded-br':[{'rounded-br':[o]}],'rounded-bl':[{'rounded-bl':[o]}],'border-w':[{border:[a]}],'border-w-x':[{'border-x':[a]}],'border-w-y':[{'border-y':[a]}],'border-w-s':[{'border-s':[a]}],'border-w-e':[{'border-e':[a]}],'border-w-t':[{'border-t':[a]}],'border-w-r':[{'border-r':[a]}],'border-w-b':[{'border-b':[a]}],'border-w-l':[{'border-l':[a]}],'border-opacity':[{'border-opacity':[m]}],'border-style':[{border:[].concat(['solid','dashed','dotted','double','none'],['hidden'])}],'divide-x':[{'divide-x':[a]}],'divide-x-reverse':['divide-x-reverse'],'divide-y':[{'divide-y':[a]}],'divide-y-reverse':['divide-y-reverse'],'divide-opacity':[{'divide-opacity':[m]}],'divide-style':[{divide:['solid','dashed','dotted','double','none']}],'border-color':[{border:[i]}],'border-color-x':[{'border-x':[i]}],'border-color-y':[{'border-y':[i]}],'border-color-t':[{'border-t':[i]}],'border-color-r':[{'border-r':[i]}],'border-color-b':[{'border-b':[i]}],'border-color-l':[{'border-l':[i]}],'divide-color':[{divide:[i]}],'outline-style':[{outline:[''].concat(['solid','dashed','dotted','double','none'])}],'outline-offset':[{'outline-offset':[ft,it]}],'outline-w':[{outline:[it]}],'outline-color':[{outline:[e]}],'ring-w':[{ring:F()}],'ring-w-inset':['ring-inset'],'ring-color':[{ring:[e]}],'ring-opacity':[{'ring-opacity':[m]}],'ring-offset-w':[{'ring-offset':[it]}],'ring-offset-color':[{'ring-offset':[e]}],shadow:[{shadow:['','inner','none',pt,gt]}],'shadow-color':[{shadow:[ht]}],opacity:[{opacity:[m]}],'mix-blend':[{'mix-blend':['normal','multiply','screen','overlay','darken','lighten','color-dodge','color-burn','hard-light','soft-light','difference','exclusion','hue','saturation','color','luminosity','plus-lighter']}],'bg-blend':[{'bg-blend':['normal','multiply','screen','overlay','darken','lighten','color-dodge','color-burn','hard-light','soft-light','difference','exclusion','hue','saturation','color','luminosity','plus-lighter']}],filter:[{filter:['','none']}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[A]}],'drop-shadow':[{'drop-shadow':['','none',pt,ft]}],grayscale:[{grayscale:[l]}],'hue-rotate':[{'hue-rotate':[c]}],invert:[{invert:[u]}],saturate:[{saturate:[b]}],sepia:[{sepia:[w]}],'backdrop-filter':[{'backdrop-filter':['','none']}],'backdrop-blur':[{'backdrop-blur':[n]}],'backdrop-brightness':[{'backdrop-brightness':[r]}],'backdrop-contrast':[{'backdrop-contrast':[A]}],'backdrop-grayscale':[{'backdrop-grayscale':[l]}],'backdrop-hue-rotate':[{'backdrop-hue-rotate':[c]}],'backdrop-invert':[{'backdrop-invert':[u]}],'backdrop-opacity':[{'backdrop-opacity':[m]}],'backdrop-saturate':[{'backdrop-saturate':[b]}],'backdrop-sepia':[{'backdrop-sepia':[w]}],'border-collapse':[{border:['collapse','separate']}],'border-spacing':[{'border-spacing':[s]}],'border-spacing-x':[{'border-spacing-x':[s]}],'border-spacing-y':[{'border-spacing-y':[s]}],'table-layout':[{table:['auto','fixed']}],caption:[{caption:['top','bottom']}],transition:[{transition:['none','all','','colors','opacity','shadow','transform',ft]}],duration:[{duration:U()}],ease:[{ease:['linear','in','out','in-out',ft]}],delay:[{delay:U()}],animate:[{animate:['none','spin','ping','pulse','bounce',ft]}],transform:[{transform:['','gpu','none']}],scale:[{scale:[y]}],'scale-x':[{'scale-x':[y]}],'scale-y':[{'scale-y':[y]}],rotate:[{rotate:[dt,ft]}],'translate-x':[{'translate-x':[C]}],'translate-y':[{'translate-y':[C]}],'skew-x':[{'skew-x':[B]}],'skew-y':[{'skew-y':[B]}],'transform-origin':[{origin:['center','top','top-right','right','bottom-right','bottom','bottom-left','left','top-left',ft]}],accent:[{accent:['auto',e]}],appearance:['appearance-none'],cursor:[{cursor:['auto','default','pointer','wait','text','move','help','not-allowed','none','context-menu','progress','cell','crosshair','vertical-text','alias','copy','no-drop','grab','grabbing','all-scroll','col-resize','row-resize','n-resize','e-resize','s-resize','w-resize','ne-resize','nw-resize','se-resize','sw-resize','ew-resize','ns-resize','nesw-resize','nwse-resize','zoom-in','zoom-out',ft]}],'caret-color':[{caret:[e]}],'pointer-events':[{'pointer-events':['none','auto']}],resize:[{resize:['none','y','x','']}],'scroll-behavior':[{scroll:['auto','smooth']}],'scroll-m':[{'scroll-m':j()}],'scroll-mx':[{'scroll-mx':j()}],'scroll-my':[{'scroll-my':j()}],'scroll-ms':[{'scroll-ms':j()}],'scroll-me':[{'scroll-me':j()}],'scroll-mt':[{'scroll-mt':j()}],'scroll-mr':[{'scroll-mr':j()}],'scroll-mb':[{'scroll-mb':j()}],'scroll-ml':[{'scroll-ml':j()}],'scroll-p':[{'scroll-p':j()}],'scroll-px':[{'scroll-px':j()}],'scroll-py':[{'scroll-py':j()}],'scroll-ps':[{'scroll-ps':j()}],'scroll-pe':[{'scroll-pe':j()}],'scroll-pt':[{'scroll-pt':j()}],'scroll-pr':[{'scroll-pr':j()}],'scroll-pb':[{'scroll-pb':j()}],'scroll-pl':[{'scroll-pl':j()}],'snap-align':[{snap:['start','end','center','align-none']}],'snap-stop':[{snap:['normal','always']}],'snap-type':[{snap:['none','x','y','both']}],'snap-strictness':[{snap:['mandatory','proximity']}],touch:[{touch:['auto','none','pinch-zoom','manipulation',{pan:['x','left','right','y','up','down']}]}],select:[{select:['none','text','all','auto']}],'will-change':[{'will-change':['auto','scroll','contents','transform',ft]}],fill:[{fill:[e,'none']}],'stroke-w':[{stroke:[it,lt]}],stroke:[{stroke:[e,'none']}],sr:['sr-only','not-sr-only']},conflictingClassGroups:{overflow:['overflow-x','overflow-y'],overscroll:['overscroll-x','overscroll-y'],inset:['inset-x','inset-y','start','end','top','right','bottom','left'],'inset-x':['right','left'],'inset-y':['top','bottom'],flex:['basis','grow','shrink'],gap:['gap-x','gap-y'],p:['px','py','ps','pe','pt','pr','pb','pl'],px:['pr','pl'],py:['pt','pb'],m:['mx','my','ms','me','mt','mr','mb','ml'],mx:['mr','ml'],my:['mt','mb'],'font-size':['leading'],'fvn-normal':['fvn-ordinal','fvn-slashed-zero','fvn-figure','fvn-spacing','fvn-fraction'],'fvn-ordinal':['fvn-normal'],'fvn-slashed-zero':['fvn-normal'],'fvn-figure':['fvn-normal'],'fvn-spacing':['fvn-normal'],'fvn-fraction':['fvn-normal'],rounded:['rounded-s','rounded-e','rounded-t','rounded-r','rounded-b','rounded-l','rounded-ss','rounded-se','rounded-ee','rounded-es','rounded-tl','rounded-tr','rounded-br','rounded-bl'],'rounded-s':['rounded-ss','rounded-es'],'rounded-e':['rounded-se','rounded-ee'],'rounded-t':['rounded-tl','rounded-tr'],'rounded-r':['rounded-tr','rounded-br'],'rounded-b':['rounded-br','rounded-bl'],'rounded-l':['rounded-tl','rounded-bl'],'border-spacing':['border-spacing-x','border-spacing-y'],'border-w':['border-w-s','border-w-e','border-w-t','border-w-r','border-w-b','border-w-l'],'border-w-x':['border-w-r','border-w-l'],'border-w-y':['border-w-t','border-w-b'],'border-color':['border-color-t','border-color-r','border-color-b','border-color-l'],'border-color-x':['border-color-r','border-color-l'],'border-color-y':['border-color-t','border-color-b'],'scroll-m':['scroll-mx','scroll-my','scroll-ms','scroll-me','scroll-mt','scroll-mr','scroll-mb','scroll-ml'],'scroll-mx':['scroll-mr','scroll-ml'],'scroll-my':['scroll-mt','scroll-mb'],'scroll-p':['scroll-px','scroll-py','scroll-ps','scroll-pe','scroll-pt','scroll-pr','scroll-pb','scroll-pl'],'scroll-px':['scroll-pr','scroll-pl'],'scroll-py':['scroll-pt','scroll-pb']},conflictingClassGroupModifiers:{'font-size':['leading']}}}var Ct,_t,jt,Ft=Xe(xt),Et=['a','abbr','address','area','article','aside','audio','b','base','bdi','bdo','big','blockquote','body','br','button','canvas','caption','cite','code','col','colgroup','data','datalist','dd','del','details','dfn','dialog','div','dl','dt','em','embed','fieldset','figcaption','figure','footer','form','h1','h2','h3','h4','h5','h6','head','header','hgroup','hr','html','i','iframe','img','input','ins','kbd','keygen','label','legend','li','link','main','map','mark','menu','menuitem','meta','meter','nav','noscript','object','ol','optgroup','option','output','p','param','picture','pre','progress','q','rp','rt','ruby','s','samp','script','section','select','small','source','span','strong','style','sub','summary','sup','table','tbody','td','textarea','tfoot','th','thead','time','title','tr','track','u','ul','var','video','wbr','circle','clipPath','defs','ellipse','foreignObject','g','image','line','linearGradient','marker','mask','path','pattern','polygon','polyline','radialGradient','rect','stop','svg','text','tspan'],St=Symbol('isTwElement?'),kt=(e,t)=>e.reduce((e,n,r)=>e.concat(n||[],t[r]||[]),[]),Ut=(e,t='')=>{let n=e.join(' ').trim().replace(/\n/g,' ').replace(/\s{2,}/g,' ').split(' ').filter(e=>','!==e),r=t?t.split(' '):[];return Ft(...n.concat(r).filter(e=>' '!==e))},Qt=([e])=>'$'!==e.charAt(0),Lt=e=>!0===e[St],Ot=e=>(n,...r)=>{let i=(o=[])=>{let s=t.forwardRef((i,s)=>{let{$as:a=e,style:A={},...l}=i,c=Lt(e)?e:a,u=o?o.reduce((e,t)=>Object.assign(e,'function'==typeof t?t(i):t),{}):{},d=Lt(c)?l:Object.fromEntries(Object.entries(l).filter(Qt));return t.createElement(c,{...d,style:{...u,...A},ref:s,className:Ut(kt(n,r.map(e=>e({...l,$as:a}))),l.className),...Lt(e)?{$as:a}:{}})});return s[St]=!0,s.displayName='string'!=typeof e?e.displayName||e.name||'tw.Component':'tw.'+e,s.withStyle=e=>i(o.concat(e)),s};return i()},It=Et.reduce((e,t)=>({...e,[t]:Ot(t)}),{}),Nt=Object.assign(Ot,It),Tt=Nt.button(Ct||(Ct=De(['\n vu-h-fit\n vu-rounded-lg\n vu-p-2\n vu-flex\n vu-items-center\n vu-justify-center\n ','\n ','\n ','\n ','\n ','\n'],['\n vu-h-fit\n vu-rounded-lg\n vu-p-2\n vu-flex\n vu-items-center\n vu-justify-center\n ','\n ','\n ','\n ','\n ','\n'])),function(e){return e.disabled?'vu-cursor-not-allowed vu-opacity-25':''},function(e){return e.$fullWidth?'vu-grow':'vu-grow-0'},function(e){return'outline'===e.$fill||'text'===e.$fill?'vu-border-solid vu-border-2 vu-text-black dark:vu-text-slate-250':'vu-text-white'},function(e){return'outline'===e.$fill?'vu-bg-transparent vu-border-black dark:vu-border-dark_mode-100':'vu-bg-primary'},function(e){return'text'===e.$fill&&' vu-bg-lavender_blush vu-border-light_pink'}),Mt=Nt.span(_t||(_t=De(['\n vu-flex\n vu-items-center\n'],['\n vu-flex\n vu-items-center\n']))),Dt=Nt.button(jt||(jt=De(['\n vu-icon-btn\n vu-bg-transparent\n vu-border-0\n vu-rounded-full\n vu-cursor-pointer\n vu-relative\n focus:vu-outline-none\n vu-p-0\n vu-m-0\n vu-inline-flex\n vu-justify-center\n vu-items-center\n ','\n'],['\n vu-icon-btn\n vu-bg-transparent\n vu-border-0\n vu-rounded-full\n vu-cursor-pointer\n vu-relative\n focus:vu-outline-none\n vu-p-0\n vu-m-0\n vu-inline-flex\n vu-justify-center\n vu-items-center\n ','\n'])),function(e){return e.disabled?'vu-cursor-not-allowed vu-opacity-25':''});var Pt=['br','col','colgroup','dl','hr','iframe','img','input','link','menuitem','meta','ol','param','select','table','tbody','tfoot','thead','tr','ul','wbr'],Rt={'accept-charset':'acceptCharset',acceptcharset:'acceptCharset',accesskey:'accessKey',allowfullscreen:'allowFullScreen',autocapitalize:'autoCapitalize',autocomplete:'autoComplete',autocorrect:'autoCorrect',autofocus:'autoFocus',autoplay:'autoPlay',autosave:'autoSave',cellpadding:'cellPadding',cellspacing:'cellSpacing',charset:'charSet',class:'className',classid:'classID',classname:'className',colspan:'colSpan',contenteditable:'contentEditable',contextmenu:'contextMenu',controlslist:'controlsList',crossorigin:'crossOrigin',dangerouslysetinnerhtml:'dangerouslySetInnerHTML',datetime:'dateTime',defaultchecked:'defaultChecked',defaultvalue:'defaultValue',enctype:'encType',for:'htmlFor',formmethod:'formMethod',formaction:'formAction',formenctype:'formEncType',formnovalidate:'formNoValidate',formtarget:'formTarget',frameborder:'frameBorder',hreflang:'hrefLang',htmlfor:'htmlFor',httpequiv:'httpEquiv','http-equiv':'httpEquiv',icon:'icon',innerhtml:'innerHTML',inputmode:'inputMode',itemid:'itemID',itemprop:'itemProp',itemref:'itemRef',itemscope:'itemScope',itemtype:'itemType',keyparams:'keyParams',keytype:'keyType',marginwidth:'marginWidth',marginheight:'marginHeight',maxlength:'maxLength',mediagroup:'mediaGroup',minlength:'minLength',nomodule:'noModule',novalidate:'noValidate',playsinline:'playsInline',radiogroup:'radioGroup',readonly:'readOnly',referrerpolicy:'referrerPolicy',rowspan:'rowSpan',spellcheck:'spellCheck',srcdoc:'srcDoc',srclang:'srcLang',srcset:'srcSet',tabindex:'tabIndex',typemustmatch:'typeMustMatch',usemap:'useMap',accentheight:'accentHeight','accent-height':'accentHeight',alignmentbaseline:'alignmentBaseline','alignment-baseline':'alignmentBaseline',allowreorder:'allowReorder',arabicform:'arabicForm','arabic-form':'arabicForm',attributename:'attributeName',attributetype:'attributeType',autoreverse:'autoReverse',basefrequency:'baseFrequency',baselineshift:'baselineShift','baseline-shift':'baselineShift',baseprofile:'baseProfile',calcmode:'calcMode',capheight:'capHeight','cap-height':'capHeight',clippath:'clipPath','clip-path':'clipPath',clippathunits:'clipPathUnits',cliprule:'clipRule','clip-rule':'clipRule',colorinterpolation:'colorInterpolation','color-interpolation':'colorInterpolation',colorinterpolationfilters:'colorInterpolationFilters','color-interpolation-filters':'colorInterpolationFilters',colorprofile:'colorProfile','color-profile':'colorProfile',colorrendering:'colorRendering','color-rendering':'colorRendering',contentscripttype:'contentScriptType',contentstyletype:'contentStyleType',diffuseconstant:'diffuseConstant',dominantbaseline:'dominantBaseline','dominant-baseline':'dominantBaseline',edgemode:'edgeMode',enablebackground:'enableBackground','enable-background':'enableBackground',externalresourcesrequired:'externalResourcesRequired',fillopacity:'fillOpacity','fill-opacity':'fillOpacity',fillrule:'fillRule','fill-rule':'fillRule',filterres:'filterRes',filterunits:'filterUnits',floodopacity:'floodOpacity','flood-opacity':'floodOpacity',floodcolor:'floodColor','flood-color':'floodColor',fontfamily:'fontFamily','font-family':'fontFamily',fontsize:'fontSize','font-size':'fontSize',fontsizeadjust:'fontSizeAdjust','font-size-adjust':'fontSizeAdjust',fontstretch:'fontStretch','font-stretch':'fontStretch',fontstyle:'fontStyle','font-style':'fontStyle',fontvariant:'fontVariant','font-variant':'fontVariant',fontweight:'fontWeight','font-weight':'fontWeight',glyphname:'glyphName','glyph-name':'glyphName',glyphorientationhorizontal:'glyphOrientationHorizontal','glyph-orientation-horizontal':'glyphOrientationHorizontal',glyphorientationvertical:'glyphOrientationVertical','glyph-orientation-vertical':'glyphOrientationVertical',glyphref:'glyphRef',gradienttransform:'gradientTransform',gradientunits:'gradientUnits',horizadvx:'horizAdvX','horiz-adv-x':'horizAdvX',horizoriginx:'horizOriginX','horiz-origin-x':'horizOriginX',imagerendering:'imageRendering','image-rendering':'imageRendering',kernelmatrix:'kernelMatrix',kernelunitlength:'kernelUnitLength',keypoints:'keyPoints',keysplines:'keySplines',keytimes:'keyTimes',lengthadjust:'lengthAdjust',letterspacing:'letterSpacing','letter-spacing':'letterSpacing',lightingcolor:'lightingColor','lighting-color':'lightingColor',limitingconeangle:'limitingConeAngle',markerend:'markerEnd','marker-end':'markerEnd',markerheight:'markerHeight',markermid:'markerMid','marker-mid':'markerMid',markerstart:'markerStart','marker-start':'markerStart',markerunits:'markerUnits',markerwidth:'markerWidth',maskcontentunits:'maskContentUnits',maskunits:'maskUnits',numoctaves:'numOctaves',overlineposition:'overlinePosition','overline-position':'overlinePosition',overlinethickness:'overlineThickness','overline-thickness':'overlineThickness',paintorder:'paintOrder','paint-order':'paintOrder','panose-1':'panose1',pathlength:'pathLength',patterncontentunits:'patternContentUnits',patterntransform:'patternTransform',patternunits:'patternUnits',pointerevents:'pointerEvents','pointer-events':'pointerEvents',pointsatx:'pointsAtX',pointsaty:'pointsAtY',pointsatz:'pointsAtZ',preservealpha:'preserveAlpha',preserveaspectratio:'preserveAspectRatio',primitiveunits:'primitiveUnits',refx:'refX',refy:'refY',renderingintent:'renderingIntent','rendering-intent':'renderingIntent',repeatcount:'repeatCount',repeatdur:'repeatDur',requiredextensions:'requiredExtensions',requiredfeatures:'requiredFeatures',shaperendering:'shapeRendering','shape-rendering':'shapeRendering',specularconstant:'specularConstant',specularexponent:'specularExponent',spreadmethod:'spreadMethod',startoffset:'startOffset',stddeviation:'stdDeviation',stitchtiles:'stitchTiles',stopcolor:'stopColor','stop-color':'stopColor',stopopacity:'stopOpacity','stop-opacity':'stopOpacity',strikethroughposition:'strikethroughPosition','strikethrough-position':'strikethroughPosition',strikethroughthickness:'strikethroughThickness','strikethrough-thickness':'strikethroughThickness',strokedasharray:'strokeDasharray','stroke-dasharray':'strokeDasharray',strokedashoffset:'strokeDashoffset','stroke-dashoffset':'strokeDashoffset',strokelinecap:'strokeLinecap','stroke-linecap':'strokeLinecap',strokelinejoin:'strokeLinejoin','stroke-linejoin':'strokeLinejoin',strokemiterlimit:'strokeMiterlimit','stroke-miterlimit':'strokeMiterlimit',strokewidth:'strokeWidth','stroke-width':'strokeWidth',strokeopacity:'strokeOpacity','stroke-opacity':'strokeOpacity',suppresscontenteditablewarning:'suppressContentEditableWarning',suppresshydrationwarning:'suppressHydrationWarning',surfacescale:'surfaceScale',systemlanguage:'systemLanguage',tablevalues:'tableValues',targetx:'targetX',targety:'targetY',textanchor:'textAnchor','text-anchor':'textAnchor',textdecoration:'textDecoration','text-decoration':'textDecoration',textlength:'textLength',textrendering:'textRendering','text-rendering':'textRendering',underlineposition:'underlinePosition','underline-position':'underlinePosition',underlinethickness:'underlineThickness','underline-thickness':'underlineThickness',unicodebidi:'unicodeBidi','unicode-bidi':'unicodeBidi',unicoderange:'unicodeRange','unicode-range':'unicodeRange',unitsperem:'unitsPerEm','units-per-em':'unitsPerEm',unselectable:'unselectable',valphabetic:'vAlphabetic','v-alphabetic':'vAlphabetic',vectoreffect:'vectorEffect','vector-effect':'vectorEffect',vertadvy:'vertAdvY','vert-adv-y':'vertAdvY',vertoriginx:'vertOriginX','vert-origin-x':'vertOriginX',vertoriginy:'vertOriginY','vert-origin-y':'vertOriginY',vhanging:'vHanging','v-hanging':'vHanging',videographic:'vIdeographic','v-ideographic':'vIdeographic',viewbox:'viewBox',viewtarget:'viewTarget',vmathematical:'vMathematical','v-mathematical':'vMathematical',wordspacing:'wordSpacing','word-spacing':'wordSpacing',writingmode:'writingMode','writing-mode':'writingMode',xchannelselector:'xChannelSelector',xheight:'xHeight','x-height':'xHeight',xlinkactuate:'xlinkActuate','xlink:actuate':'xlinkActuate',xlinkarcrole:'xlinkArcrole','xlink:arcrole':'xlinkArcrole',xlinkhref:'xlinkHref','xlink:href':'xlinkHref',xlinkrole:'xlinkRole','xlink:role':'xlinkRole',xlinkshow:'xlinkShow','xlink:show':'xlinkShow',xlinktitle:'xlinkTitle','xlink:title':'xlinkTitle',xlinktype:'xlinkType','xlink:type':'xlinkType',xmlbase:'xmlBase','xml:base':'xmlBase',xmllang:'xmlLang','xml:lang':'xmlLang','xml:space':'xmlSpace',xmlnsxlink:'xmlnsXlink','xmlns:xlink':'xmlnsXlink',xmlspace:'xmlSpace',ychannelselector:'yChannelSelector',zoomandpan:'zoomAndPan',onblur:'onBlur',onchange:'onChange',onclick:'onClick',oncontextmenu:'onContextMenu',ondoubleclick:'onDoubleClick',ondrag:'onDrag',ondragend:'onDragEnd',ondragenter:'onDragEnter',ondragexit:'onDragExit',ondragleave:'onDragLeave',ondragover:'onDragOver',ondragstart:'onDragStart',ondrop:'onDrop',onerror:'onError',onfocus:'onFocus',oninput:'onInput',oninvalid:'onInvalid',onkeydown:'onKeyDown',onkeypress:'onKeyPress',onkeyup:'onKeyUp',onload:'onLoad',onmousedown:'onMouseDown',onmouseenter:'onMouseEnter',onmouseleave:'onMouseLeave',onmousemove:'onMouseMove',onmouseout:'onMouseOut',onmouseover:'onMouseOver',onmouseup:'onMouseUp',onscroll:'onScroll',onsubmit:'onSubmit',ontouchcancel:'onTouchCancel',ontouchend:'onTouchEnd',ontouchmove:'onTouchMove',ontouchstart:'onTouchStart',onwheel:'onWheel'};function Ht(t,n){const{key:r,level:i,...o}=n;switch(t.nodeType){case 1:return e.createElement(function(e){if(/[a-z]+[A-Z]+[a-z]+/.test(e))return e;return e.toLowerCase()}(t.nodeName),function(e,t){const n={key:t};if(e instanceof Element){const t=e.getAttribute('class');t&&(n.className=t),[...e.attributes].forEach(e=>{switch(e.name){case'class':break;case'style':n[e.name]='string'!=typeof(t=e.value)?{}:t.split(/ ?; ?/).reduce((e,t)=>{const[n,r]=t.split(/ ?: ?/).map((e,t)=>0===t?e.replace(/\s+/g,''):e.trim());if(n&&r){const t=n.replace(/(\w)-(\w)/g,(e,t,n)=>`${t}${n.toUpperCase()}`);let i=r.trim();Number.isNaN(Number(r))||(i=Number(r)),e[n.startsWith('-')?n:t]=i}return e},{});break;case'allowfullscreen':case'allowpaymentrequest':case'async':case'autofocus':case'autoplay':case'checked':case'controls':case'default':case'defer':case'disabled':case'formnovalidate':case'hidden':case'ismap':case'itemscope':case'loop':case'multiple':case'muted':case'nomodule':case'novalidate':case'open':case'readonly':case'required':case'reversed':case'selected':case'typemustmatch':n[Rt[e.name]||e.name]=!0;break;default:n[Rt[e.name]||e.name]=e.value}var t})}return n}(t,r),zt(t.childNodes,i,o));case 3:{const e=t.nodeValue?.toString()??'';if(!o.allowWhiteSpaces&&/^\s+$/.test(e)&&!/[\u00A0\u202F]/.test(e))return null;if(!t.parentNode)return e;const n=t.parentNode.nodeName.toLowerCase();return Pt.includes(n)?(/\S/.test(e),null):e}case 8:default:return null;case 11:return zt(t.childNodes,i,n)}}function zt(e,t,n){const r=[...e].map((e,r)=>Kt(e,{...n,index:r,level:t+1})).filter(Boolean);return r.length?r:null}function Vt(e,t={}){return'string'==typeof e?function(e,t={}){if(!e||'string'!=typeof e)return null;const{includeAllNodes:n=!1,nodeOnly:r=!1,selector:i='body > *',type:o='text/html'}=t;try{const s=(new DOMParser).parseFromString(e,o);if(n){const{childNodes:e}=s.body;return r?e:[...e].map(e=>Kt(e,t))}const a=s.querySelector(i)||s.body.childNodes[0];if(!(a instanceof Node))throw new TypeError('Error parsing input');return r?a:Kt(a,t)}catch(e){process.env.NODE_ENV}return null}(e,t):e instanceof Node?Kt(e,t):null}function Kt(e,t={}){if(!(e&&e instanceof Node))return null;const{actions:n=[],index:r=0,level:i=0,randomKey:o}=t;let s=e,a=`${i}-${r}`;const A=[];return o&&0===i&&(a=`${function(e=6){const t='0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';let n='';for(let r=e;r>0;--r)n+=t[Math.round(61*Math.random())];return n}()}-${a}`),Array.isArray(n)&&n.forEach(t=>{t.condition(s,a,i)&&('function'==typeof t.pre&&(s=t.pre(s,a,i),s instanceof Node||(s=e,process.env.NODE_ENV)),'function'==typeof t.post&&A.push(t.post(s,a,i)))}),A.length?A:Ht(s,{key:a,level:i,...t})}var qt=Object.defineProperty,Gt=(e,t,n)=>((e,t,n)=>t in e?qt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,'symbol'!=typeof t?t+'':t,n),Wt='react-inlinesvg',Yt={IDLE:'idle',LOADING:'loading',LOADED:'loaded',FAILED:'failed',READY:'ready',UNSUPPORTED:'unsupported'};function Xt(e){return e[Math.floor(Math.random()*e.length)]}function Jt(){return!('undefined'==typeof window||!window.document?.createElement)}function Zt(){return function(){if(!document)return!1;const e=document.createElement('div');e.innerHTML='<svg />';const t=e.firstChild;return!!t&&'http://www.w3.org/2000/svg'===t.namespaceURI}()&&'undefined'!=typeof window&&null!==window}async function $t(e,t){const n=await fetch(e,t),r=n.headers.get('content-type'),[i]=(r??'').split(/ ?; ?/);if(n.status>299)throw new Error('Not found');if(!['image/svg+xml','text/plain'].some(e=>i.includes(e)))throw new Error(`Content type isn't valid: ${i}`);return n.text()}function en(e=1){return new Promise(t=>{setTimeout(t,1e3*e)})}var tn,nn=class{constructor(){Gt(this,'cacheApi'),Gt(this,'cacheStore'),Gt(this,'subscribers',[]),Gt(this,'isReady',!1),this.cacheStore=new Map;let e=Wt,t=!1;Jt()&&(e=window.REACT_INLINESVG_CACHE_NAME??Wt,t=!!window.REACT_INLINESVG_PERSISTENT_CACHE&&'caches'in window),t?caches.open(e).then(e=>{this.cacheApi=e}).catch(e=>{this.cacheApi=void 0}).finally(()=>{this.isReady=!0;const e=[...this.subscribers];this.subscribers.length=0,e.forEach(e=>{try{e()}catch(e){}})}):this.isReady=!0}onReady(e){this.isReady?e():this.subscribers.push(e)}async get(e,t){return await(this.cacheApi?this.fetchAndAddToPersistentCache(e,t):this.fetchAndAddToInternalCache(e,t)),this.cacheStore.get(e)?.content??''}set(e,t){this.cacheStore.set(e,t)}isCached(e){return this.cacheStore.get(e)?.status===Yt.LOADED}async fetchAndAddToInternalCache(e,t){const n=this.cacheStore.get(e);if(n?.status!==Yt.LOADING){if(!n?.content){this.cacheStore.set(e,{content:'',status:Yt.LOADING});try{const n=await $t(e,t);this.cacheStore.set(e,{content:n,status:Yt.LOADED})}catch(t){throw this.cacheStore.set(e,{content:'',status:Yt.FAILED}),t}}}else await this.handleLoading(e,async()=>{this.cacheStore.set(e,{content:'',status:Yt.IDLE}),await this.fetchAndAddToInternalCache(e,t)})}async fetchAndAddToPersistentCache(e,t){const n=this.cacheStore.get(e);if(n?.status===Yt.LOADED)return;if(n?.status===Yt.LOADING)return void await this.handleLoading(e,async()=>{this.cacheStore.set(e,{content:'',status:Yt.IDLE}),await this.fetchAndAddToPersistentCache(e,t)});this.cacheStore.set(e,{content:'',status:Yt.LOADING});const r=await(this.cacheApi?.match(e));if(r){const t=await r.text();return void this.cacheStore.set(e,{content:t,status:Yt.LOADED})}try{await(this.cacheApi?.add(new Request(e,t)));const n=await(this.cacheApi?.match(e)),r=await(n?.text())??'';this.cacheStore.set(e,{content:r,status:Yt.LOADED})}catch(t){throw this.cacheStore.set(e,{content:'',status:Yt.FAILED}),t}}async handleLoading(e,t){for(let t=0;t<10;t++){if(this.cacheStore.get(e)?.status!==Yt.LOADING)return;await en(.1)}await t()}keys(){return[...this.cacheStore.keys()]}data(){return[...this.cacheStore.entries()].map(([e,t])=>({[e]:t}))}async delete(e){this.cacheApi&&await this.cacheApi.delete(e),this.cacheStore.delete(e)}async clear(){if(this.cacheApi){const e=await this.cacheApi.keys();await Promise.allSettled(e.map(e=>this.cacheApi.delete(e)))}this.cacheStore.clear()}};function rn(e){const t=o(void 0);return r(()=>{t.current=e}),t.current}function on(e){const{baseURL:t,content:n,description:r,handleError:i,hash:o,preProcessor:s,title:a,uniquifyIDs:A=!1}=e;try{const e=function(e,t){if(t)return t(e);return e}(n,s),i=Vt(e,{nodeOnly:!0});if(!(i&&i instanceof SVGSVGElement))throw new Error('Could not convert the src to a DOM Node');const l=sn(i,{baseURL:t,hash:o,uniquifyIDs:A});if(r){const e=l.querySelector('desc');e?.parentNode&&e.parentNode.removeChild(e);const t=document.createElementNS('http://www.w3.org/2000/svg','desc');t.innerHTML=r,l.prepend(t)}if(void 0!==a){const e=l.querySelector('title');if(e?.parentNode&&e.parentNode.removeChild(e),a){const e=document.createElementNS('http://www.w3.org/2000/svg','title');e.innerHTML=a,l.prepend(e)}}return l}catch(e){return i(e)}}function sn(e,t){const{baseURL:n='',hash:r,uniquifyIDs:i}=t,o=['id','href','xlink:href','xlink:role','xlink:arcrole'],s=['href','xlink:href'];return i?([...e.children].forEach(e=>{if(e.attributes?.length){const t=Object.values(e.attributes).map(e=>{const t=e,i=/url\((.*?)\)/.exec(e.value);return i?.[1]&&(t.value=e.value.replace(i[0],`url(${n}${i[1]}__${r})`)),t});o.forEach(e=>{const n=t.find(t=>t.name===e);var i,o;n&&(i=e,o=n.value,!s.includes(i)||!o||o.includes('#'))&&(n.value=`${n.value}__${r}`)})}return e.children.length?sn(e,t):e}),e):e}function an(e){const{cacheRequests:t=!0,children:n=null,description:l,fetchOptions:c,innerRef:u,loader:d=null,onError:f,onLoad:h,src:p,title:g,uniqueHash:m}=e,[v,b]=i((e,t)=>({...e,...t}),{content:'',element:null,isCached:t&&tn.isCached(e.src),status:Yt.IDLE}),{content:y,element:w,isCached:B,status:x}=v,C=rn(e),_=rn(v),j=o(m??function(e){const t='abcdefghijklmnopqrstuvwxyz',n=`${t}${t.toUpperCase()}1234567890`;let r='';for(let t=0;t<e;t++)r+=Xt(n);return r}(8)),F=o(!1),E=o(!1),S=s(e=>{F.current&&(b({status:'Browser does not support SVG'===e.message?Yt.UNSUPPORTED:Yt.FAILED}),f?.(e))},[f]),k=s((e,t=!1)=>{F.current&&b({content:e,isCached:t,status:Yt.LOADED})},[]),U=s(async()=>{const e=await $t(p,c);k(e)},[c,k,p]),Q=s(()=>{try{const t=Vt(on({...e,handleError:S,hash:j.current,content:y}));if(!t||!a(t))throw new Error('Could not convert the src to a React element');b({element:t,status:Yt.READY})}catch(e){S(e)}},[y,S,e]),L=s(async()=>{const e=/^data:image\/svg[^,]*?(;base64)?,(.*)/u.exec(p);let n;if(e?n=e[1]?window.atob(e[2]):decodeURIComponent(e[2]):p.includes('<svg')&&(n=p),n)k(n);else try{if(t){const e=await tn.get(p,c);k(e,!0)}else await U()}catch(e){S(e)}},[t,U,c,S,k,p]),O=s(async()=>{F.current&&b({content:'',element:null,isCached:!1,status:Yt.LOADING})},[]);r(()=>{if(F.current=!0,Jt()&&!E.current){try{if(x===Yt.IDLE){if(!Zt())throw new Error('Browser does not support SVG');if(!p)throw new Error('Missing src');O()}}catch(e){S(e)}return E.current=!0,()=>{F.current=!1}}},[]),r(()=>{if(Jt()&&C&&C.src!==p){if(!p)return void S(new Error('Missing src'));O()}},[S,O,C,p]),r(()=>{x===Yt.LOADED&&Q()},[x,Q]),r(()=>{Jt()&&C&&C.src===p&&(C.title===g&&C.description===l||Q())},[l,Q,C,p,g]),r(()=>{if(_)switch(x){case Yt.LOADING:_.status!==Yt.LOADING&&L();break;case Yt.LOADED:_.status!==Yt.LOADED&&Q();break;case Yt.READY:_.status!==Yt.READY&&h?.(p,B)}},[L,Q,B,h,_,p,x]);const I=function(e,...t){const n={};for(const r in e)({}).hasOwnProperty.call(e,r)&&(t.includes(r)||(n[r]=e[r]));return n}(e,'baseURL','cacheRequests','children','description','fetchOptions','innerRef','loader','onError','onLoad','preProcessor','src','title','uniqueHash','uniquifyIDs');return Jt()?w?A(w,{ref:u,...I}):[Yt.UNSUPPORTED,Yt.FAILED].includes(x)?n:d:d}function An(e){tn||(tn=new nn);const{loader:i}=e,[o,s]=n(tn.isReady);return r(()=>{o||tn.onReady(()=>{s(!0)})},[o]),o?t.createElement(an,{...e}):i}var ln,cn,un,dn,fn,hn,pn,gn,mn,vn,bn,yn,wn,Bn,xn,Cn,_n,jn=function(e){var n=e.svg,r=e.size,i=void 0===r?24:r,o=e.title,s=e.inline,a=void 0!==s&&s,A=e.iconColor,l=void 0===A?'vu-fill-black dark:vu-fill-slate-250':A,c=e.className;return t.createElement('div',{className:''.concat(l,' ').concat(a?'vu-inline':'',' ').concat(c)},t.createElement(An,{src:n,width:i,height:i,className:'vu-inline-block vu-align-middle',title:o,loader:t.createElement('span',null,'Loading...'),onError:function(e){}}))},Fn=function(e){var n=e.icon,r=e.children,i=e.$fill,o=void 0===i?'solid':i,s=e.iconColor,a=Ie(e,['icon','children','$fill','iconColor']);return t.createElement(Tt,Oe({$fill:o},a),n&&t.createElement(Mt,null,t.createElement(jn,{svg:n,iconColor:s})),r)},En=function(e){var n=e.name,r=e.ariaLabel,i=e.toolTip,o=e.icon,s=e.iconColor,a=e.size,A=Ie(e,['name','ariaLabel','toolTip','icon','iconColor','size']);return t.createElement(Dt,Oe({'aria-label':r,title:null!=i?i:n},A),t.createElement(jn,{size:a,svg:o,iconColor:s}))},Sn=Nt.div(ln||(ln=De(['\n vu-flex\n vu-border-solid\n vu-border-2\n vu-border-gainsboro\n dark:vu-border-dark_mode-200\n vu-rounded-md\n vu-h-10\n vu-flex\n vu-items-center\n vu-px-3\n vu-gap-x-3\n'],['\n vu-flex\n vu-border-solid\n vu-border-2\n vu-border-gainsboro\n dark:vu-border-dark_mode-200\n vu-rounded-md\n vu-h-10\n vu-flex\n vu-items-center\n vu-px-3\n vu-gap-x-3\n']))),kn=Nt.input(cn||(cn=De(['\n ','\n vu-h-full\n vu-bg-transparent\n vu-focus:outline-none\n dark:vu-text-slate-450\n'],['\n ','\n vu-h-full\n vu-bg-transparent\n vu-focus:outline-none\n dark:vu-text-slate-450\n'])),function(e){return e.$fullWidth?'vu-grow':'vu-grow-0'}),Un=function(e){var n=Ie(e,[]);return t.createElement(Sn,null,t.createElement('div',null,t.createElement(jn,{iconColor:'vu-fill-slate-350 dark:vu-fill-slate-450',svg:'data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20id%3D%22a%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M21.71%2C20.29l-3.68-3.68c1.23-1.54%2C1.98-3.49%2C1.98-5.61%2C0-4.96-4.04-9-9-9S2%2C6.04%2C2%2C11s4.04%2C9%2C9%2C9c2.12%2C0%2C4.07-.74%2C5.61-1.98l3.68%2C3.68c.2%2C.2%2C.45%2C.29%2C.71%2C.29s.51-.1%2C.71-.29c.39-.39%2C.39-1.02%2C0-1.41ZM4%2C11c0-3.86%2C3.14-7%2C7-7s7%2C3.14%2C7%2C7c0%2C1.92-.78%2C3.66-2.04%2C4.93%2C0%2C0-.02%2C0-.02%2C.01s0%2C.02-.01%2C.02c-1.27%2C1.26-3.01%2C2.04-4.93%2C2.04-3.86%2C0-7-3.14-7-7Z%22%2F%3E%3C%2Fsvg%3E'})),t.createElement(kn,Oe({},n)))},Qn=Nt.div(un||(un=De(['\n vu-flex\n vu-flex-col\n vu-items-center\n vu-justify-center\n lg:vu-px-[7.5rem]\n vu-px-2\n vu-py-5\n'],['\n vu-flex\n vu-flex-col\n vu-items-center\n vu-justify-center\n lg:vu-px-[7.5rem]\n vu-px-2\n vu-py-5\n']))),Ln=Nt.div(dn||(dn=De(['\n vu-h-full\n vu-flex\n vu-items-center \n vu-justify-center\n'],['\n vu-h-full\n vu-flex\n vu-items-center \n vu-justify-center\n']))),On=Nt.div(fn||(fn=De(['\n vu-grow\n vu-overflow-y-auto\n'],['\n vu-grow\n vu-overflow-y-auto\n']))),In=Nt.div(hn||(hn=De(['\n vu-bg-alice_blue-500\n dark:vu-bg-dark_mode\n vu-p-2\n vu-w-full \n lg:vu-px-[7.5rem]\n vu-px-2\n'],['\n vu-bg-alice_blue-500\n dark:vu-bg-dark_mode\n vu-p-2\n vu-w-full \n lg:vu-px-[7.5rem]\n vu-px-2\n']))),Nn=Nt.div(pn||(pn=De(['\n vu-w-full\n'],['\n vu-w-full\n']))),Tn=function e(t){function n(e,t,r){var i,o={};if(Array.isArray(e))return e.concat(t);for(i in e)o[r?i.toLowerCase():i]=e[i];for(i in t){var s=r?i.toLowerCase():i,a=t[i];o[s]=s in o&&'object'==typeof a?n(o[s],a,'headers'==s):a}return o}function r(e,r,i,o,s){var a='string'!=typeof e?(r=e).url:e,A={config:r},l=n(t,r),c={};o=o||l.data,(l.transformRequest||[]).map(function(e){o=e(o,l.headers)||o}),l.auth&&(c.authorization=l.auth),o&&'object'==typeof o&&'function'!=typeof o.append&&'function'!=typeof o.text&&(o=JSON.stringify(o),c['content-type']='application/json');try{c[l.xsrfHeaderName]=decodeURIComponent(document.cookie.match(RegExp('(^|; )'+l.xsrfCookieName+'=([^;]*)'))[2])}catch(e){}return l.baseURL&&(a=a.replace(/^(?!.*\/\/)\/?/,l.baseURL+'/')),l.params&&(a+=(~a.indexOf('?')?'&':'?')+(l.paramsSerializer?l.paramsSerializer(l.params):new URLSearchParams(l.params))),(l.fetch||fetch)(a,{method:(i||l.method||'get').toUpperCase(),body:o,headers:n(l.headers,c,!0),credentials:l.withCredentials?'include':s}).then(function(e){for(var t in e)'function'!=typeof e[t]&&(A[t]=e[t]);return'stream'==l.responseType?(A.data=e.body,A):e[l.responseType||'text']().then(function(e){A.data=e,A.data=JSON.parse(e)}).catch(Object).then(function(){return(l.validateStatus?l.validateStatus(e.status):e.ok)?A:Promise.reject(A)})})}return t=t||{},r.request=r,r.get=function(e,t){return r(e,t,'get')},r.delete=function(e,t){return r(e,t,'delete')},r.head=function(e,t){return r(e,t,'head')},r.options=function(e,t){return r(e,t,'options')},r.post=function(e,t,n){return r(e,n,'post',t)},r.put=function(e,t,n){return r(e,n,'put',t)},r.patch=function(e,t,n){return r(e,n,'patch',t)},r.all=Promise.all.bind(Promise),r.spread=function(e){return e.apply.bind(e,e)},r.CancelToken='function'==typeof AbortController?AbortController:Object,r.defaults=t,r.create=e,r}(),Mn=Tn.create(),Dn=function(){return Ne(void 0,void 0,void 0,function(){return Te(this,function(e){switch(e.label){case 0:return[4,Mn.post('/ved/chats/',{session_title:''})];case 1:return[2,e.sent().data]}})})},Pn=function(e){return Ne(void 0,void 0,void 0,function(){return Te(this,function(t){switch(t.label){case 0:return[4,Mn.delete('/ved/chats/'.concat(e,'/'))];case 1:return[2,t.sent().data]}})})},Rn=function(e){return Ne(void 0,void 0,void 0,function(){return Te(this,function(t){switch(t.label){case 0:return[4,Mn.post('/ved/chats/'.concat(e.sessionID,'/feedback'),Oe({message_id:e.message_id,is_liked:e.is_liked},!1===e.is_liked&&{reason:e.reason,comment:e.comment}))];case 1:return[2,t.sent().data]}})})},Hn=Nt.div(gn||(gn=De(['\n vu-relative\n ','\n vu-w-full\n'],['\n vu-relative\n ','\n vu-w-full\n'])),function(e){return e.$fullWidth?'vu-grow':'vu-grow-0'}),zn=Nt.textarea(mn||(mn=De(['\n vu-w-full\n vu-p-4\n vu-pr-10\n vu-bg-white\n dark:vu-bg-dark_mode-700\n vu-border-solid\n vu-border-2\n vu-border-gainsboro\n dark:vu-border-dark_mode-200\n vu-rounded-lg\n vu-focus:outline-none\n vu-resize-none\n'],['\n vu-w-full\n vu-p-4\n vu-pr-10\n vu-bg-white\n dark:vu-bg-dark_mode-700\n vu-border-solid\n vu-border-2\n vu-border-gainsboro\n dark:vu-border-dark_mode-200\n vu-rounded-lg\n vu-focus:outline-none\n vu-resize-none\n']))),Vn=Nt.button(vn||(vn=De(['\n vu-absolute\n vu-rounded-lg\n vu-bottom-3\n vu-right-2\n vu-px-2\n vu-py-2 \n','\n'],['\n vu-absolute\n vu-rounded-lg\n vu-bottom-3\n vu-right-2\n vu-px-2\n vu-py-2 \n','\n'])),function(e){return e.disabled?'vu-cursor-not-allowed\n vu-opacity-25 \n':''}),Kn=function(e){var n=e.$fullWidth,r=e.onClickTextAreaButton,i=e.disabled,o=e.disableTextAreaButton,s=e.icon,a=e.textAreaButtonTitle,A=Ie(e,['$fullWidth','onClickTextAreaButton','disabled','disableTextAreaButton','icon','textAreaButtonTitle']);return t.createElement(Hn,{$fullWidth:n},t.createElement(zn,Oe({disabled:i,rows:2},A,{onKeyDown:function(e){'Enter'===e.key&&(e.preventDefault(),r())}})),t.createElement(Vn,{onClick:r,disabled:o,title:a},t.createElement(jn,{svg:s,size:n?48:40})))},qn=Nt.div(bn||(bn=De(['\n vu-flex\n vu-justify-between\n vu-mb-10\n'],['\n vu-flex\n vu-justify-between\n vu-mb-10\n']))),Gn=Nt.div(yn||(yn=De(['\n vu-font-semibold\n'],['\n vu-font-semibold\n']))),Wn=Nt.div(wn||(wn=De(['\n vu-flex\n vu-items-center\n vu-gap-2\n'],['\n vu-flex\n vu-items-center\n vu-gap-2\n']))),Yn='data:image/svg+xml,%3Csvg%20width%3D%2264%22%20height%3D%2264%22%20viewBox%3D%220%200%2064%2064%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Crect%20y%3D%2211.0137%22%20width%3D%2256.1096%22%20height%3D%2242.9589%22%20rx%3D%2210.2851%22%20fill%3D%22url%28%23paint0_linear_875_570%29%22%2F%3E%3Cpath%20d%3D%22M6.13672%2023.2959C7.30322%2023.3%208.4716%2023.2979%209.6381%2023.2959C11.5184%2029.4229%2013.4006%2035.552%2015.2696%2041.6831C14.1069%2041.6953%2012.9441%2041.6749%2011.7833%2041.6974C9.86351%2035.5785%208.00763%2029.4331%206.13672%2023.2959Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M17.6948%2023.2977C18.8651%2023.2977%2020.0353%2023.2936%2021.2075%2023.2977C19.5394%2028.7308%2017.8921%2034.1721%2016.2052%2039.599C15.5741%2037.7152%2015.0218%2035.8028%2014.4414%2033.9027C15.5403%2030.3718%2016.596%2026.8266%2017.6948%2023.2977Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M23.5477%2023.2949L23.6454%2023.3092C24.8983%2023.5337%2026.17%2023.4133%2027.4342%2023.5011C27.4905%2024.4277%2027.4868%2025.3584%2027.4173%2026.2829C26.1174%2026.3482%2024.8119%2026.2339%2023.5195%2026.4054C23.5778%2025.3686%2023.5458%2024.3317%2023.5477%2023.2949Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M23.5518%2041.6868C23.5593%2040.6194%2023.5292%2039.5499%2023.5743%2038.4805C24.8686%2038.5131%2026.1647%2038.4886%2027.4608%2038.4968C27.4608%2039.5601%2027.4626%2040.6235%2027.4664%2041.6889C26.1609%2041.6889%2024.8554%2041.6889%2023.5518%2041.6868Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M23.6454%2023.3102C27.1824%2023.2694%2030.7195%2023.2939%2034.2566%2023.3C34.2528%2024.3552%2034.2697%2025.4124%2034.2434%2026.4696C31.3563%2026.4635%2028.471%2026.4758%2025.5858%2026.4676C24.8964%2026.4574%2024.2033%2026.5166%2023.5195%2026.4064C24.8119%2026.2349%2026.1174%2026.3492%2027.4173%2026.2839C27.4868%2025.3593%2027.4905%2024.4287%2027.4342%2023.502C26.17%2023.4143%2024.8983%2023.5347%2023.6454%2023.3102Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M37.2069%2023.3033C38.7829%2023.291%2040.357%2023.291%2041.933%2023.3114C41.9368%2024.3544%2041.9255%2025.3994%2041.8935%2026.4423C40.3307%2026.4035%2038.7678%2026.4403%2037.205%2026.4199C37.2031%2025.381%2037.2012%2024.3421%2037.2069%2023.3033Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M37.2053%2038.5327C38.8752%2038.5163%2040.5433%2038.5612%2042.2132%2038.5C42.3447%2039.5531%2042.3371%2040.6206%2042.1869%2041.6696C40.5263%2041.7043%2038.8658%2041.6839%2037.2053%2041.686C37.2034%2040.6349%2037.2015%2039.5838%2037.2053%2038.5327Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M41.9281%2023.3115C43.3877%2023.3809%2044.8246%2023.7932%2046.1151%2024.5361L46.1132%2024.5729C45.9874%2026.075%2046.1452%2027.5874%2045.9554%2029.0855C45.112%2027.5119%2043.5473%2026.5506%2041.8887%2026.4424C41.9206%2025.3994%2041.9319%2024.3545%2041.9281%2023.3115Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M46.1094%2024.5732C48.1625%2025.7897%2049.4943%2028.1572%2049.8362%2030.639C50.1649%2033.0086%2049.9301%2035.566%2048.7561%2037.6396C48.1081%2038.8254%2047.1463%2039.7724%2046.0625%2040.4704C45.9892%2038.9744%2046.1752%2037.462%2045.9141%2035.9803C46.8608%2033.8332%2046.8195%2031.2493%2045.9516%2029.0858C46.1413%2027.5878%2045.9836%2026.0754%2046.1094%2024.5732Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M23.5449%2030.891C26.6443%2030.8869%2029.7437%2030.8849%2032.8431%2030.8889C32.8431%2031.9462%2032.8412%2033.0034%2032.845%2034.0606C29.7794%2034.0586%2026.7119%2034.0892%2023.6482%2034.0443C25.0232%2033.7851%2026.4245%2033.9402%2027.8127%2033.8463C27.8597%2032.9258%2027.854%2032.0033%2027.7977%2031.0828C26.3832%2031.0277%2024.9688%2031.0563%2023.5543%2031.0134L23.5449%2030.891Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M23.5525%2031.0137C24.967%2031.0565%2026.3814%2031.028%2027.7959%2031.0831C27.8522%2032.0035%2027.8579%2032.9261%2027.8109%2033.8466C26.4227%2033.9404%2025.0214%2033.7853%2023.6464%2034.0445L23.5469%2034.0588C23.5563%2033.0424%2023.5506%2032.028%2023.5525%2031.0137Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M42.2022%2038.4756C43.7162%2038.3185%2045.1287%2037.4061%2045.9139%2035.9795C46.175%2037.4612%2045.9891%2038.9736%2046.0623%2040.4697C44.8639%2041.1718%2043.5302%2041.5555%2042.1777%2041.6698C42.328%2040.6207%2042.3355%2039.5533%2042.204%2038.5001L42.2022%2038.4756Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M27.459%2038.496C28.7081%2038.494%2029.9573%2038.496%2031.2083%2038.496C31.2215%2039.5594%2031.2177%2040.6227%2031.1989%2041.6881C29.9535%2041.6881%2028.7081%2041.6881%2027.4646%2041.6881C27.4609%2040.6227%2027.459%2039.5594%2027.459%2038.496Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M31.2164%2038.4965C32.2308%2038.4944%2033.247%2038.4944%2034.2632%2038.4985C34.2632%2039.5619%2034.2632%2040.6232%2034.2632%2041.6865C33.2451%2041.6906%2032.2251%2041.6886%2031.207%2041.6886C31.2258%2040.6232%2031.2296%2039.5598%2031.2164%2038.4965Z%22%20fill%3D%22white%22%2F%3E%3Cellipse%20cx%3D%2239.5543%22%20cy%3D%2232.6579%22%20rx%3D%222.15589%22%20ry%3D%222.34246%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M58.1257%204.07113C58.3053%203.91439%2058.6085%204.03333%2058.6455%204.26568C59.0551%205.58264%2059.6734%206.86572%2060.6407%207.86604C61.2897%208.54657%2062.097%209.06327%2062.9721%209.40117C63.2494%209.48152%2063.247%209.92418%2062.9697%2010.0029C62.1293%2010.3267%2061.3511%2010.8158%2060.7178%2011.4577C59.6852%2012.4856%2059.0496%2013.8349%2058.6172%2015.2093C58.5195%2015.4937%2058.0572%2015.4417%2058.0138%2015.1455C57.5712%2013.723%2056.8828%2012.3352%2055.7824%2011.3065C55.1807%2010.7362%2054.4592%2010.303%2053.6881%2010.0029C53.4076%209.92654%2053.4053%209.47915%2053.6857%209.40039C54.842%208.96166%2055.8628%208.18346%2056.5913%207.18393C57.227%206.32618%2057.6712%205.34004%2057.9902%204.32476C58.0241%204.23575%2058.0446%204.13178%2058.1257%204.07113Z%22%20fill%3D%22url%28%23paint1_linear_875_570%29%22%2F%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22paint0_linear_875_570%22%20x1%3D%22-5.10998%22%20y1%3D%2230.8996%22%20x2%3D%2257.7403%22%20y2%3D%2232.9819%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20offset%3D%220.0561277%22%20stop-color%3D%22%23A42783%22%2F%3E%3Cstop%20offset%3D%220.503827%22%20stop-color%3D%22%23E22432%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F59620%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22paint1_linear_875_570%22%20x1%3D%2253.9149%22%20y1%3D%229.69863%22%20x2%3D%2262.682%22%20y2%3D%229.69863%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23B2256F%22%2F%3E%3Cstop%20offset%3D%220.415197%22%20stop-color%3D%22%23D52440%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F08123%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3C%2Fsvg%3E',Xn='data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20id%3D%22a%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M13.41%2C12l6.29-6.29c.39-.39%2C.39-1.02%2C0-1.41s-1.02-.39-1.41%2C0l-6.29%2C6.29L5.71%2C4.29c-.39-.39-1.02-.39-1.41%2C0s-.39%2C1.02%2C0%2C1.41l6.29%2C6.29-6.29%2C6.29c-.39%2C.39-.39%2C1.02%2C0%2C1.41%2C.2%2C.2%2C.45%2C.29%2C.71%2C.29s.51-.1%2C.71-.29l6.29-6.29%2C6.29%2C6.29c.2%2C.2%2C.45%2C.29%2C.71%2C.29s.51-.1%2C.71-.29c.39-.39%2C.39-1.02%2C0-1.41l-6.29-6.29Z%22%2F%3E%3C%2Fsvg%3E',Jn='data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20id%3D%22Layer_1%22%20data-name%3D%22Layer%201%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%20%20%3Cpath%20d%3D%22m5.09%2C20.53c-.13%2C0-.26-.02-.38-.08-.37-.15-.62-.52-.62-.92V7.24c0-.68.26-1.31.74-1.79s1.12-.74%2C1.79-.74h10.75c.68%2C0%2C1.31.26%2C1.79.74s.74%2C1.12.74%2C1.79v7.68c0%2C.68-.26%2C1.31-.74%2C1.79-.48.48-1.12.74-1.79.74h-8.8l-2.78%2C2.78c-.19.19-.45.29-.71.29Zm1.54-13.82c-.14%2C0-.28.06-.38.16s-.16.24-.16.38v9.87l1.36-1.36c.19-.19.44-.29.71-.29h9.22c.14%2C0%2C.28-.06.38-.16s.16-.24.16-.38v-7.68c0-.14-.06-.28-.16-.38s-.24-.16-.38-.16H6.62Z%22%2F%3E%3C%2Fsvg%3E',Zn=function(e){var n=e.handleClickBackBtn,r=e.getNewChatId,i=e.openSideBar,o=e.onDownloadConversation,s=e.isDownloadDisabled;return t.createElement(qn,null,t.createElement(Wn,null,t.createElement(jn,{svg:Yn,size:36}),t.createElement(Gn,null,'AI Assistant')),t.createElement(Mt,{className:'lg:vu-hidden'},t.createElement(En,{name:'new',icon:Jn,onClick:function(){return i(!0)}}),t.createElement(En,{name:'new',icon:'data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20id%3D%22a%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M18.92%2C11h-5.92V5.08c0-.55-.45-1-1-1s-1%2C.45-1%2C1v5.92H5.08c-.55%2C0-1%2C.45-1%2C1s.45%2C1%2C1%2C1h5.92v5.92c0%2C.55%2C.45%2C1%2C1%2C1s1-.45%2C1-1v-5.92h5.92c.55%2C0%2C1-.45%2C1-1s-.45-1-1-1Z%22%2F%3E%3C%2Fsvg%3E',onClick:r})),t.createElement('div',{className:'vu-flex\n vu-items-center\n vu-gap-4'},t.createElement(En,{name:'Download conversation',icon:'data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20id%3D%22a%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22m21%2C13.58c-.55%2C0-1%2C.45-1%2C1v4.42c0%2C.55-.45%2C1-1%2C1H5c-.55%2C0-1-.45-1-1v-4.42c0-.55-.45-1-1-1s-1%2C.45-1%2C1v4.42c0%2C1.65%2C1.35%2C3%2C3%2C3h14c1.65%2C0%2C3-1.35%2C3-3v-4.42c0-.55-.45-1-1-1Z%22%2F%3E%3Cpath%20d%3D%22m11.29%2C16.71c.09.09.2.17.33.22.12.05.25.08.38.08s.26-.03.38-.08c.12-.05.23-.12.33-.22l4-4c.39-.39.39-1.02%2C0-1.41s-1.02-.39-1.41%2C0l-2.29%2C2.29V3c0-.55-.45-1-1-1s-1%2C.45-1%2C1v10.59l-2.29-2.29c-.39-.39-1.02-.39-1.41%2C0s-.39%2C1.02%2C0%2C1.41l4%2C4Z%22%2F%3E%3C%2Fsvg%3E',onClick:o,disabled:s}),t.createElement(En,{name:'Go to documentation',icon:'data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%20%20%20%20%3Cpath%20%20%20%20%20%20%20%20d%3D%22M5.16957%202.25L5.633%202.25C6.72515%202.24999%207.59065%202.24999%208.28827%202.30699C9.00166%202.36527%209.60528%202.48688%2010.1565%202.76772C10.9109%203.15215%2011.5463%203.72988%2012%204.43826C12.4537%203.72988%2013.0891%203.15215%2013.8435%202.76772C14.3947%202.48688%2014.9983%202.36527%2015.7117%202.30699C16.4094%202.24999%2017.2749%202.24999%2018.367%202.25L18.8304%202.25C19.3646%202.24999%2019.8104%202.24998%2020.1747%202.27974C20.5546%202.31078%2020.9112%202.37789%2021.2485%202.54973C21.7659%202.81338%2022.1866%203.23408%2022.4503%203.75153C22.6221%204.08879%2022.6892%204.44545%2022.7203%204.82533C22.75%205.18956%2022.75%205.6354%2022.75%206.16955V14.8305C22.75%2015.3646%2022.75%2015.8104%2022.7203%2016.1747C22.6892%2016.5546%2022.6221%2016.9112%2022.4503%2017.2485C22.1866%2017.7659%2021.7659%2018.1866%2021.2485%2018.4503C20.9112%2018.6221%2020.5546%2018.6892%2020.1747%2018.7203C19.8104%2018.75%2019.3646%2018.75%2018.8305%2018.75H17.4252C16.1262%2018.75%2015.633%2018.7576%2015.1963%2018.8902C14.7875%2019.0144%2014.4072%2019.2179%2014.0771%2019.4892C13.7246%2019.779%2013.4446%2020.1851%2012.7241%2021.2659L12.624%2021.416C12.4849%2021.6247%2012.2508%2021.75%2012%2021.75C11.7492%2021.75%2011.5151%2021.6247%2011.376%2021.416L11.2759%2021.2659C10.5554%2020.1851%2010.2754%2019.779%209.92288%2019.4892C9.59281%2019.2179%209.21248%2019.0144%208.80367%2018.8902C8.36704%2018.7576%207.87381%2018.75%206.57482%2018.75H5.16955C4.6354%2018.75%204.18956%2018.75%203.82533%2018.7203C3.44545%2018.6892%203.08879%2018.6221%202.75153%2018.4503C2.23408%2018.1866%201.81338%2017.7659%201.54973%2017.2485C1.37789%2016.9112%201.31078%2016.5546%201.27974%2016.1747C1.24998%2015.8104%201.24999%2015.3646%201.25%2014.8304V6.16957C1.24999%205.63541%201.24998%205.18956%201.27974%204.82533C1.31078%204.44545%201.37789%204.08879%201.54973%203.75153C1.81338%203.23408%202.23408%202.81338%202.75153%202.54973C3.08879%202.37789%203.44545%202.31078%203.82533%202.27974C4.18956%202.24998%204.63541%202.24999%205.16957%202.25ZM11.25%209.4C11.25%208.26752%2011.2494%207.46327%2011.198%206.83388C11.1473%206.21326%2011.0509%205.829%2010.8958%205.52453C10.5842%204.913%2010.087%204.41582%209.47547%204.10423C9.171%203.94909%208.78675%203.85271%208.16612%203.80201C7.53674%203.75058%206.73248%203.75%205.6%203.75H5.2C4.62757%203.75%204.24336%203.75058%203.94748%203.77476C3.66036%203.79822%203.52307%203.8401%203.43251%203.88624C3.19731%204.00608%203.00608%204.19731%202.88624%204.43251C2.8401%204.52307%202.79822%204.66036%202.77476%204.94748C2.75058%205.24336%202.75%205.62757%202.75%206.2V14.8C2.75%2015.3724%202.75058%2015.7566%202.77476%2016.0525C2.79822%2016.3396%202.8401%2016.4769%202.88624%2016.5675C3.00608%2016.8027%203.19731%2016.9939%203.43251%2017.1138C3.52307%2017.1599%203.66036%2017.2018%203.94748%2017.2252C4.24336%2017.2494%204.62757%2017.25%205.2%2017.25H6.57482C6.61574%2017.25%206.65614%2017.25%206.69605%2017.25C7.83187%2017.2497%208.56323%2017.2496%209.23954%2017.455C9.83705%2017.6364%2010.3929%2017.9339%2010.8753%2018.3304C11.0066%2018.4383%2011.1299%2018.5555%2011.25%2018.6844V9.4ZM12.75%2018.6844C12.8702%2018.5555%2012.9934%2018.4383%2013.1247%2018.3304C13.6071%2017.9339%2014.163%2017.6364%2014.7605%2017.455C15.4368%2017.2496%2016.1681%2017.2497%2017.304%2017.25C17.3439%2017.25%2017.3843%2017.25%2017.4252%2017.25H18.8C19.3724%2017.25%2019.7566%2017.2494%2020.0525%2017.2252C20.3396%2017.2018%2020.4769%2017.1599%2020.5675%2017.1138C20.8027%2016.9939%2020.9939%2016.8027%2021.1138%2016.5675C21.1599%2016.4769%2021.2018%2016.3396%2021.2252%2016.0525C21.2494%2015.7566%2021.25%2015.3724%2021.25%2014.8V6.2C21.25%205.62757%2021.2494%205.24336%2021.2252%204.94748C21.2018%204.66036%2021.1599%204.52307%2021.1138%204.43251C20.9939%204.19731%2020.8027%204.00608%2020.5675%203.88624C20.4769%203.8401%2020.3396%203.79822%2020.0525%203.77476C19.7566%203.75058%2019.3724%203.75%2018.8%203.75H18.4C17.2675%203.75%2016.4633%203.75058%2015.8339%203.80201C15.2133%203.85271%2014.829%203.94909%2014.5245%204.10423C13.913%204.41582%2013.4158%204.913%2013.1042%205.52453C12.9491%205.829%2012.8527%206.21326%2012.802%206.83388C12.7506%207.46327%2012.75%208.26752%2012.75%209.4V18.6844Z%22%20%2F%3E%3C%2Fsvg%3E',onClick:function(){return window.open('/docs/user-guide/platform-guide/ved-ai/','_blank')}}),t.createElement(En,{name:'Close chat',icon:Xn,onClick:n})))},$n=Nt.div(Bn||(Bn=De(['\n vu-w-full\n vu-flex\n vu-justify-center\n vu-items-center\n vu-grow\n vu-gap-3.5\n'],['\n vu-w-full\n vu-flex\n vu-justify-center\n vu-items-center\n vu-grow\n vu-gap-3.5\n']))),er=Nt.div(xn||(xn=De(['\n vu-flex\n vu-flex-col\n'],['\n vu-flex\n vu-flex-col\n']))),tr=Nt.p(Cn||(Cn=De(['\n vu-text-[68px]\n vu-font-medium\n vu-m-0\n'],['\n vu-text-[68px]\n vu-font-medium\n vu-m-0\n']))),nr=Nt.div(_n||(_n=De(['\n vu-text-2xl\n'],['\n vu-text-2xl\n']))),rr=function(e){var n=e.errorHeading,r=e.errorInfo;return t.createElement($n,null,t.createElement(jn,{svg:'data:image/svg+xml,%3Csvg%20width%3D%22194%22%20height%3D%22194%22%20viewBox%3D%220%200%20194%20194%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20id%3D%22error_FILL0_wght400_GRAD0_opsz24%201%22%3E%3Cpath%20id%3D%22Vector%22%20d%3D%22M96.9994%20137.416C99.2896%20137.416%20101.209%20136.641%20102.759%20135.092C104.308%20133.543%20105.083%20131.623%20105.083%20129.333C105.083%20127.042%20104.308%20125.123%20102.759%20123.573C101.209%20122.024%2099.2896%20121.249%2096.9994%20121.249C94.7091%20121.249%2092.7893%20122.024%2091.24%20123.573C89.6907%20125.123%2088.916%20127.042%2088.916%20129.333C88.916%20131.623%2089.6907%20133.543%2091.24%20135.092C92.7893%20136.641%2094.7091%20137.416%2096.9994%20137.416ZM88.916%20105.083H105.083V56.5827H88.916V105.083ZM96.9994%20177.833C85.8174%20177.833%2075.3091%20175.711%2065.4743%20171.467C55.6396%20167.223%2047.0848%20161.464%2039.8098%20154.189C32.5348%20146.914%2026.7754%20138.359%2022.5316%20128.524C18.2879%20118.69%2016.166%20108.181%2016.166%2096.9994C16.166%2085.8174%2018.2879%2075.3091%2022.5316%2065.4743C26.7754%2055.6396%2032.5348%2047.0848%2039.8098%2039.8098C47.0848%2032.5348%2055.6396%2026.7754%2065.4743%2022.5316C75.3091%2018.2879%2085.8174%2016.166%2096.9994%2016.166C108.181%2016.166%20118.69%2018.2879%20128.524%2022.5316C138.359%2026.7754%20146.914%2032.5348%20154.189%2039.8098C161.464%2047.0848%20167.223%2055.6396%20171.467%2065.4743C175.711%2075.3091%20177.833%2085.8174%20177.833%2096.9994C177.833%20108.181%20175.711%20118.69%20171.467%20128.524C167.223%20138.359%20161.464%20146.914%20154.189%20154.189C146.914%20161.464%20138.359%20167.223%20128.524%20171.467C118.69%20175.711%20108.181%20177.833%2096.9994%20177.833ZM96.9994%20161.666C115.052%20161.666%20130.343%20155.401%20142.872%20142.872C155.401%20130.343%20161.666%20115.052%20161.666%2096.9994C161.666%2078.9466%20155.401%2063.6556%20142.872%2051.1264C130.343%2038.5973%20115.052%2032.3327%2096.9994%2032.3327C78.9466%2032.3327%2063.6556%2038.5973%2051.1264%2051.1264C38.5973%2063.6556%2032.3327%2078.9466%2032.3327%2096.9994C32.3327%20115.052%2038.5973%20130.343%2051.1264%20142.872C63.6556%20155.401%2078.9466%20161.666%2096.9994%20161.666Z%22%20fill%3D%22url%28%23paint0_linear_956_1542%29%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22paint0_linear_956_1542%22%20x1%3D%2296.9994%22%20y1%3D%2216.166%22%20x2%3D%2296.9994%22%20y2%3D%22177.833%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23AD0B91%22%2F%3E%3Cstop%20offset%3D%220.5%22%20stop-color%3D%22%23E3024D%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23FF6000%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3C%2Fsvg%3E',size:194}),t.createElement(er,null,t.createElement(tr,null,n),r&&t.createElement(nr,null,r)))},ir='undefined'!=typeof globalThis?globalThis:'undefined'!=typeof window?window:'undefined'!=typeof global?global:'undefined'!=typeof self?self:{};function or(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,'default')?e.default:e}function sr(e){if(e.__esModule)return e;var t=e.default;if('function'==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,'__esModule',{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var ar,Ar={exports:{}},lr={exports:{}},cr={};var ur,dr,fr,hr,pr,gr,mr,vr,br,yr,wr,Br,xr,Cr,_r={};
|
|
1
|
+
import*as e from'react';import t,{useState as n,useEffect as r,useReducer as i,useRef as o,useCallback as s,isValidElement as a,cloneElement as A,useLayoutEffect as l,forwardRef as c,useContext as u,useMemo as d,memo as f,createContext as h,createElement as p,Component as g,Fragment as m,useImperativeHandle as v}from'react';import b,{unstable_batchedUpdates as y}from'react-dom';import{jsx as w,jsxs as B,Fragment as x}from'react/jsx-runtime';import{useLocation as C,useHistory as _}from'react-router-dom';function j(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&'undefined'!=typeof document){var r=document.head||document.getElementsByTagName('head')[0],i=document.createElement('style');i.type='text/css','top'===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}function F(e,t){return F=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},F(e,t)}function E(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,F(e,t)}j('*, ::before, ::after {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: ;\n}\n::backdrop {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: ;\n}\n .vu-css-ls *,\n .vu-css-ls ::before,\n .vu-css-ls ::after {\n box-sizing: border-box; /* 1 */\n border-width: 0; /* 2 */\n border-style: solid; /* 2 */\n border-color: #e5e7eb; /* 2 */\n }\n .vu-css-ls ::before,\n .vu-css-ls ::after {\n --tw-content: "";\n }\n html.vu-css-ls {\n line-height: 1.5; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n -moz-tab-size: 4; /* 3 */\n -o-tab-size: 4;\n tab-size: 4; /* 3 */\n font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */\n font-feature-settings: normal; /* 5 */\n font-variation-settings: normal; /* 6 */\n }\n body.vu-css-ls {\n margin: 0; /* 1 */\n line-height: inherit; /* 2 */\n }\n hr.vu-css-ls {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n border-top-width: 1px; /* 3 */\n }\n .vu-css-ls abbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n }\n h1.vu-css-ls,\n h2.vu-css-ls,\n h3.vu-css-ls,\n h4.vu-css-ls,\n h5.vu-css-ls,\n h6.vu-css-ls {\n font-size: inherit;\n font-weight: inherit;\n }\n a.vu-css-ls {\n color: inherit;\n text-decoration: inherit;\n }\n b.vu-css-ls,\n strong.vu-css-ls {\n font-weight: bolder;\n }\n code.vu-css-ls,\n kbd.vu-css-ls,\n samp.vu-css-ls,\n pre.vu-css-ls {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */\n font-size: 1em; /* 2 */\n }\n small.vu-css-ls {\n font-size: 80%;\n }\n sub.vu-css-ls,\n sup.vu-css-ls {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n }\n sub.vu-css-ls {\n bottom: -0.25em;\n }\n sup.vu-css-ls {\n top: -0.5em;\n }\n table.vu-css-ls {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n border-collapse: collapse; /* 3 */\n }\n button.vu-css-ls,\n input.vu-css-ls,\n optgroup.vu-css-ls,\n select.vu-css-ls,\n textarea.vu-css-ls {\n font-family: inherit; /* 1 */\n font-feature-settings: inherit; /* 1 */\n font-variation-settings: inherit; /* 1 */\n font-size: 100%; /* 1 */\n font-weight: inherit; /* 1 */\n line-height: inherit; /* 1 */\n color: inherit; /* 1 */\n margin: 0; /* 2 */\n padding: 0; /* 3 */\n }\n button.vu-css-ls,\n select.vu-css-ls {\n text-transform: none;\n }\n button.vu-css-ls,\n .vu-css-ls [type="button"],\n .vu-css-ls [type="reset"],\n .vu-css-ls [type="submit"] {\n -webkit-appearance: button; /* 1 */\n background-color: transparent; /* 2 */\n background-image: none; /* 2 */\n }\n .vu-css-ls :-moz-focusring {\n outline: auto;\n }\n .vu-css-ls :-moz-ui-invalid {\n box-shadow: none;\n }\n progress.vu-css-ls {\n vertical-align: baseline;\n }\n .vu-css-ls ::-webkit-inner-spin-button,\n .vu-css-ls ::-webkit-outer-spin-button {\n height: auto;\n }\n .vu-css-ls [type="search"] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n }\n .vu-css-ls ::-webkit-search-decoration {\n -webkit-appearance: none;\n }\n .vu-css-ls ::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n }\n summary.vu-css-ls {\n display: list-item;\n }\n blockquote.vu-css-ls,\n dl.vu-css-ls,\n dd.vu-css-ls,\n h1.vu-css-ls,\n h2.vu-css-ls,\n h3.vu-css-ls,\n h4.vu-css-ls,\n h5.vu-css-ls,\n h6.vu-css-ls,\n hr.vu-css-ls,\n figure.vu-css-ls,\n p.vu-css-ls,\n pre.vu-css-ls {\n margin: 0;\n }\n fieldset.vu-css-ls {\n margin: 0;\n padding: 0;\n }\n legend.vu-css-ls {\n padding: 0;\n }\n ol.vu-css-ls,\n ul.vu-css-ls,\n menu.vu-css-ls {\n list-style: none;\n margin: 0;\n padding: 0;\n }\n dialog.vu-css-ls {\n padding: 0;\n }\n textarea.vu-css-ls {\n resize: vertical;\n }\n input.vu-css-ls::-moz-placeholder, textarea.vu-css-ls::-moz-placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n }\n input.vu-css-ls::placeholder,\n textarea.vu-css-ls::placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n }\n button.vu-css-ls,\n .vu-css-ls [role="button"] {\n cursor: pointer;\n }\n .vu-css-ls :disabled {\n cursor: default;\n }\n img.vu-css-ls,\n svg.vu-css-ls,\n video.vu-css-ls,\n canvas.vu-css-ls,\n audio.vu-css-ls,\n iframe.vu-css-ls,\n embed.vu-css-ls,\n object.vu-css-ls {\n display: block; /* 1 */\n vertical-align: middle; /* 2 */\n }\n img.vu-css-ls,\n video.vu-css-ls {\n max-width: 100%;\n height: auto;\n }\n .vu-css-ls [hidden] {\n display: none;\n }\n\n.vu-prose {\n color: var(--tw-prose-body);\n max-width: 65ch;\n}\n\n.vu-prose :where(p):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 1.25em;\n margin-bottom: 1.25em;\n}\n\n.vu-prose :where([class~="lead"]):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n color: var(--tw-prose-lead);\n font-size: 1.25em;\n line-height: 1.6;\n margin-top: 1.2em;\n margin-bottom: 1.2em;\n}\n\n.vu-prose :where(a):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n color: var(--tw-prose-links);\n text-decoration: underline;\n font-weight: 500;\n}\n\n.vu-prose :where(strong):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n color: var(--tw-prose-bold);\n font-weight: 600;\n}\n\n.vu-prose :where(a strong):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n color: inherit;\n}\n\n.vu-prose :where(blockquote strong):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n color: inherit;\n}\n\n.vu-prose :where(thead th strong):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n color: inherit;\n}\n\n.vu-prose :where(ol):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n list-style-type: decimal;\n margin-top: 1.25em;\n margin-bottom: 1.25em;\n padding-inline-start: 1.625em;\n}\n\n.vu-prose :where(ol[type="A"]):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n list-style-type: upper-alpha;\n}\n\n.vu-prose :where(ol[type="a"]):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n list-style-type: lower-alpha;\n}\n\n.vu-prose :where(ol[type="A" s]):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n list-style-type: upper-alpha;\n}\n\n.vu-prose :where(ol[type="a" s]):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n list-style-type: lower-alpha;\n}\n\n.vu-prose :where(ol[type="I"]):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n list-style-type: upper-roman;\n}\n\n.vu-prose :where(ol[type="i"]):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n list-style-type: lower-roman;\n}\n\n.vu-prose :where(ol[type="I" s]):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n list-style-type: upper-roman;\n}\n\n.vu-prose :where(ol[type="i" s]):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n list-style-type: lower-roman;\n}\n\n.vu-prose :where(ol[type="1"]):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n list-style-type: decimal;\n}\n\n.vu-prose :where(ul):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n list-style-type: disc;\n margin-top: 1.25em;\n margin-bottom: 1.25em;\n padding-inline-start: 1.625em;\n}\n\n.vu-prose :where(ol > li):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *))::marker {\n font-weight: 400;\n color: var(--tw-prose-counters);\n}\n\n.vu-prose :where(ul > li):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *))::marker {\n color: var(--tw-prose-bullets);\n}\n\n.vu-prose :where(dt):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n color: var(--tw-prose-headings);\n font-weight: 600;\n margin-top: 1.25em;\n}\n\n.vu-prose :where(hr):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n border-color: var(--tw-prose-hr);\n border-top-width: 1px;\n margin-top: 3em;\n margin-bottom: 3em;\n}\n\n.vu-prose :where(blockquote):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n font-weight: 500;\n font-style: italic;\n color: var(--tw-prose-quotes);\n border-inline-start-width: 0.25rem;\n border-inline-start-color: var(--tw-prose-quote-borders);\n quotes: "\\201C""\\201D""\\2018""\\2019";\n margin-top: 1.6em;\n margin-bottom: 1.6em;\n padding-inline-start: 1em;\n}\n\n.vu-prose :where(blockquote p:first-of-type):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *))::before {\n content: open-quote;\n}\n\n.vu-prose :where(blockquote p:last-of-type):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *))::after {\n content: close-quote;\n}\n\n.vu-prose :where(h1):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n color: var(--tw-prose-headings);\n font-weight: 800;\n font-size: 2.25em;\n margin-top: 0;\n margin-bottom: 0.8888889em;\n line-height: 1.1111111;\n}\n\n.vu-prose :where(h1 strong):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n font-weight: 900;\n color: inherit;\n}\n\n.vu-prose :where(h2):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n color: var(--tw-prose-headings);\n font-weight: 700;\n font-size: 1.5em;\n margin-top: 2em;\n margin-bottom: 1em;\n line-height: 1.3333333;\n}\n\n.vu-prose :where(h2 strong):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n font-weight: 800;\n color: inherit;\n}\n\n.vu-prose :where(h3):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n color: var(--tw-prose-headings);\n font-weight: 600;\n font-size: 1.25em;\n margin-top: 1.6em;\n margin-bottom: 0.6em;\n line-height: 1.6;\n}\n\n.vu-prose :where(h3 strong):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n font-weight: 700;\n color: inherit;\n}\n\n.vu-prose :where(h4):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n color: var(--tw-prose-headings);\n font-weight: 600;\n margin-top: 1.5em;\n margin-bottom: 0.5em;\n line-height: 1.5;\n}\n\n.vu-prose :where(h4 strong):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n font-weight: 700;\n color: inherit;\n}\n\n.vu-prose :where(img):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 2em;\n margin-bottom: 2em;\n}\n\n.vu-prose :where(picture):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n display: block;\n margin-top: 2em;\n margin-bottom: 2em;\n}\n\n.vu-prose :where(video):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 2em;\n margin-bottom: 2em;\n}\n\n.vu-prose :where(kbd):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n font-weight: 500;\n font-family: inherit;\n color: var(--tw-prose-kbd);\n box-shadow: 0 0 0 1px var(--tw-prose-kbd-shadows), 0 3px 0 var(--tw-prose-kbd-shadows);\n font-size: 0.875em;\n border-radius: 0.3125rem;\n padding-top: 0.1875em;\n padding-inline-end: 0.375em;\n padding-bottom: 0.1875em;\n padding-inline-start: 0.375em;\n}\n\n.vu-prose :where(code):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n color: var(--tw-prose-code);\n font-weight: 600;\n font-size: 0.875em;\n}\n\n.vu-prose :where(code):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *))::before {\n content: "`";\n}\n\n.vu-prose :where(code):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *))::after {\n content: "`";\n}\n\n.vu-prose :where(a code):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n color: inherit;\n}\n\n.vu-prose :where(h1 code):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n color: inherit;\n}\n\n.vu-prose :where(h2 code):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n color: inherit;\n font-size: 0.875em;\n}\n\n.vu-prose :where(h3 code):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n color: inherit;\n font-size: 0.9em;\n}\n\n.vu-prose :where(h4 code):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n color: inherit;\n}\n\n.vu-prose :where(blockquote code):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n color: inherit;\n}\n\n.vu-prose :where(thead th code):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n color: inherit;\n}\n\n.vu-prose :where(pre):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n color: var(--tw-prose-pre-code);\n background-color: var(--tw-prose-pre-bg);\n overflow-x: auto;\n font-weight: 400;\n font-size: 0.875em;\n line-height: 1.7142857;\n margin-top: 1.7142857em;\n margin-bottom: 1.7142857em;\n border-radius: 0.375rem;\n padding-top: 0.8571429em;\n padding-inline-end: 1.1428571em;\n padding-bottom: 0.8571429em;\n padding-inline-start: 1.1428571em;\n}\n\n.vu-prose :where(pre code):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n background-color: transparent;\n border-width: 0;\n border-radius: 0;\n padding: 0;\n font-weight: inherit;\n color: inherit;\n font-size: inherit;\n font-family: inherit;\n line-height: inherit;\n}\n\n.vu-prose :where(pre code):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *))::before {\n content: none;\n}\n\n.vu-prose :where(pre code):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *))::after {\n content: none;\n}\n\n.vu-prose :where(table):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n width: 100%;\n table-layout: auto;\n margin-top: 2em;\n margin-bottom: 2em;\n font-size: 0.875em;\n line-height: 1.7142857;\n}\n\n.vu-prose :where(thead):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n border-bottom-width: 1px;\n border-bottom-color: var(--tw-prose-th-borders);\n}\n\n.vu-prose :where(thead th):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n color: var(--tw-prose-headings);\n font-weight: 600;\n vertical-align: bottom;\n padding-inline-end: 0.5714286em;\n padding-bottom: 0.5714286em;\n padding-inline-start: 0.5714286em;\n}\n\n.vu-prose :where(tbody tr):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n border-bottom-width: 1px;\n border-bottom-color: var(--tw-prose-td-borders);\n}\n\n.vu-prose :where(tbody tr:last-child):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n border-bottom-width: 0;\n}\n\n.vu-prose :where(tbody td):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n vertical-align: baseline;\n}\n\n.vu-prose :where(tfoot):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n border-top-width: 1px;\n border-top-color: var(--tw-prose-th-borders);\n}\n\n.vu-prose :where(tfoot td):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n vertical-align: top;\n}\n\n.vu-prose :where(th, td):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n text-align: start;\n}\n\n.vu-prose :where(figure > *):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 0;\n margin-bottom: 0;\n}\n\n.vu-prose :where(figcaption):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n color: var(--tw-prose-captions);\n font-size: 0.875em;\n line-height: 1.4285714;\n margin-top: 0.8571429em;\n}\n\n.vu-prose {\n --tw-prose-body: #374151;\n --tw-prose-headings: #111827;\n --tw-prose-lead: #4b5563;\n --tw-prose-links: #111827;\n --tw-prose-bold: #111827;\n --tw-prose-counters: #6b7280;\n --tw-prose-bullets: #d1d5db;\n --tw-prose-hr: #e5e7eb;\n --tw-prose-quotes: #111827;\n --tw-prose-quote-borders: #e5e7eb;\n --tw-prose-captions: #6b7280;\n --tw-prose-kbd: #111827;\n --tw-prose-kbd-shadows: rgb(17 24 39 / 10%);\n --tw-prose-code: #111827;\n --tw-prose-pre-code: #e5e7eb;\n --tw-prose-pre-bg: #1f2937;\n --tw-prose-th-borders: #d1d5db;\n --tw-prose-td-borders: #e5e7eb;\n --tw-prose-invert-body: #d1d5db;\n --tw-prose-invert-headings: #fff;\n --tw-prose-invert-lead: #9ca3af;\n --tw-prose-invert-links: #fff;\n --tw-prose-invert-bold: #fff;\n --tw-prose-invert-counters: #9ca3af;\n --tw-prose-invert-bullets: #4b5563;\n --tw-prose-invert-hr: #374151;\n --tw-prose-invert-quotes: #f3f4f6;\n --tw-prose-invert-quote-borders: #374151;\n --tw-prose-invert-captions: #9ca3af;\n --tw-prose-invert-kbd: #fff;\n --tw-prose-invert-kbd-shadows: rgb(255 255 255 / 10%);\n --tw-prose-invert-code: #fff;\n --tw-prose-invert-pre-code: #d1d5db;\n --tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);\n --tw-prose-invert-th-borders: #4b5563;\n --tw-prose-invert-td-borders: #374151;\n font-size: 1rem;\n line-height: 1.75;\n}\n\n.vu-prose :where(picture > img):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 0;\n margin-bottom: 0;\n}\n\n.vu-prose :where(li):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 0.5em;\n margin-bottom: 0.5em;\n}\n\n.vu-prose :where(ol > li):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n padding-inline-start: 0.375em;\n}\n\n.vu-prose :where(ul > li):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n padding-inline-start: 0.375em;\n}\n\n.vu-prose :where(.vu-prose > ul > li p):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 0.75em;\n margin-bottom: 0.75em;\n}\n\n.vu-prose :where(.vu-prose > ul > li > p:first-child):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 1.25em;\n}\n\n.vu-prose :where(.vu-prose > ul > li > p:last-child):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-bottom: 1.25em;\n}\n\n.vu-prose :where(.vu-prose > ol > li > p:first-child):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 1.25em;\n}\n\n.vu-prose :where(.vu-prose > ol > li > p:last-child):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-bottom: 1.25em;\n}\n\n.vu-prose :where(ul ul, ul ol, ol ul, ol ol):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 0.75em;\n margin-bottom: 0.75em;\n}\n\n.vu-prose :where(dl):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 1.25em;\n margin-bottom: 1.25em;\n}\n\n.vu-prose :where(dd):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 0.5em;\n padding-inline-start: 1.625em;\n}\n\n.vu-prose :where(hr + *):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 0;\n}\n\n.vu-prose :where(h2 + *):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 0;\n}\n\n.vu-prose :where(h3 + *):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 0;\n}\n\n.vu-prose :where(h4 + *):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 0;\n}\n\n.vu-prose :where(thead th:first-child):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n padding-inline-start: 0;\n}\n\n.vu-prose :where(thead th:last-child):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n padding-inline-end: 0;\n}\n\n.vu-prose :where(tbody td, tfoot td):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n padding-top: 0.5714286em;\n padding-inline-end: 0.5714286em;\n padding-bottom: 0.5714286em;\n padding-inline-start: 0.5714286em;\n}\n\n.vu-prose :where(tbody td:first-child, tfoot td:first-child):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n padding-inline-start: 0;\n}\n\n.vu-prose :where(tbody td:last-child, tfoot td:last-child):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n padding-inline-end: 0;\n}\n\n.vu-prose :where(figure):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 2em;\n margin-bottom: 2em;\n}\n\n.vu-prose :where(.vu-prose > :first-child):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 0;\n}\n\n.vu-prose :where(.vu-prose > :last-child):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-bottom: 0;\n}\n\n.vu-prose-sm {\n font-size: 0.875rem;\n line-height: 1.7142857;\n}\n\n.vu-prose-sm :where(p):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 1.1428571em;\n margin-bottom: 1.1428571em;\n}\n\n.vu-prose-sm :where([class~="lead"]):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n font-size: 1.2857143em;\n line-height: 1.5555556;\n margin-top: 0.8888889em;\n margin-bottom: 0.8888889em;\n}\n\n.vu-prose-sm :where(blockquote):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 1.3333333em;\n margin-bottom: 1.3333333em;\n padding-inline-start: 1.1111111em;\n}\n\n.vu-prose-sm :where(h1):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n font-size: 2.1428571em;\n margin-top: 0;\n margin-bottom: 0.8em;\n line-height: 1.2;\n}\n\n.vu-prose-sm :where(h2):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n font-size: 1.4285714em;\n margin-top: 1.6em;\n margin-bottom: 0.8em;\n line-height: 1.4;\n}\n\n.vu-prose-sm :where(h3):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n font-size: 1.2857143em;\n margin-top: 1.5555556em;\n margin-bottom: 0.4444444em;\n line-height: 1.5555556;\n}\n\n.vu-prose-sm :where(h4):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 1.4285714em;\n margin-bottom: 0.5714286em;\n line-height: 1.4285714;\n}\n\n.vu-prose-sm :where(img):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 1.7142857em;\n margin-bottom: 1.7142857em;\n}\n\n.vu-prose-sm :where(picture):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 1.7142857em;\n margin-bottom: 1.7142857em;\n}\n\n.vu-prose-sm :where(picture > img):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 0;\n margin-bottom: 0;\n}\n\n.vu-prose-sm :where(video):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 1.7142857em;\n margin-bottom: 1.7142857em;\n}\n\n.vu-prose-sm :where(kbd):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n font-size: 0.8571429em;\n border-radius: 0.3125rem;\n padding-top: 0.1428571em;\n padding-inline-end: 0.3571429em;\n padding-bottom: 0.1428571em;\n padding-inline-start: 0.3571429em;\n}\n\n.vu-prose-sm :where(code):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n font-size: 0.8571429em;\n}\n\n.vu-prose-sm :where(h2 code):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n font-size: 0.9em;\n}\n\n.vu-prose-sm :where(h3 code):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n font-size: 0.8888889em;\n}\n\n.vu-prose-sm :where(pre):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n font-size: 0.8571429em;\n line-height: 1.6666667;\n margin-top: 1.6666667em;\n margin-bottom: 1.6666667em;\n border-radius: 0.25rem;\n padding-top: 0.6666667em;\n padding-inline-end: 1em;\n padding-bottom: 0.6666667em;\n padding-inline-start: 1em;\n}\n\n.vu-prose-sm :where(ol):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 1.1428571em;\n margin-bottom: 1.1428571em;\n padding-inline-start: 1.5714286em;\n}\n\n.vu-prose-sm :where(ul):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 1.1428571em;\n margin-bottom: 1.1428571em;\n padding-inline-start: 1.5714286em;\n}\n\n.vu-prose-sm :where(li):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 0.2857143em;\n margin-bottom: 0.2857143em;\n}\n\n.vu-prose-sm :where(ol > li):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n padding-inline-start: 0.4285714em;\n}\n\n.vu-prose-sm :where(ul > li):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n padding-inline-start: 0.4285714em;\n}\n\n.vu-prose-sm :where(.vu-prose-sm > ul > li p):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 0.5714286em;\n margin-bottom: 0.5714286em;\n}\n\n.vu-prose-sm :where(.vu-prose-sm > ul > li > p:first-child):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 1.1428571em;\n}\n\n.vu-prose-sm :where(.vu-prose-sm > ul > li > p:last-child):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-bottom: 1.1428571em;\n}\n\n.vu-prose-sm :where(.vu-prose-sm > ol > li > p:first-child):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 1.1428571em;\n}\n\n.vu-prose-sm :where(.vu-prose-sm > ol > li > p:last-child):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-bottom: 1.1428571em;\n}\n\n.vu-prose-sm :where(ul ul, ul ol, ol ul, ol ol):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 0.5714286em;\n margin-bottom: 0.5714286em;\n}\n\n.vu-prose-sm :where(dl):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 1.1428571em;\n margin-bottom: 1.1428571em;\n}\n\n.vu-prose-sm :where(dt):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 1.1428571em;\n}\n\n.vu-prose-sm :where(dd):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 0.2857143em;\n padding-inline-start: 1.5714286em;\n}\n\n.vu-prose-sm :where(hr):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 2.8571429em;\n margin-bottom: 2.8571429em;\n}\n\n.vu-prose-sm :where(hr + *):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 0;\n}\n\n.vu-prose-sm :where(h2 + *):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 0;\n}\n\n.vu-prose-sm :where(h3 + *):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 0;\n}\n\n.vu-prose-sm :where(h4 + *):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 0;\n}\n\n.vu-prose-sm :where(table):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n font-size: 0.8571429em;\n line-height: 1.5;\n}\n\n.vu-prose-sm :where(thead th):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n padding-inline-end: 1em;\n padding-bottom: 0.6666667em;\n padding-inline-start: 1em;\n}\n\n.vu-prose-sm :where(thead th:first-child):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n padding-inline-start: 0;\n}\n\n.vu-prose-sm :where(thead th:last-child):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n padding-inline-end: 0;\n}\n\n.vu-prose-sm :where(tbody td, tfoot td):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n padding-top: 0.6666667em;\n padding-inline-end: 1em;\n padding-bottom: 0.6666667em;\n padding-inline-start: 1em;\n}\n\n.vu-prose-sm :where(tbody td:first-child, tfoot td:first-child):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n padding-inline-start: 0;\n}\n\n.vu-prose-sm :where(tbody td:last-child, tfoot td:last-child):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n padding-inline-end: 0;\n}\n\n.vu-prose-sm :where(figure):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 1.7142857em;\n margin-bottom: 1.7142857em;\n}\n\n.vu-prose-sm :where(figure > *):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 0;\n margin-bottom: 0;\n}\n\n.vu-prose-sm :where(figcaption):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n font-size: 0.8571429em;\n line-height: 1.3333333;\n margin-top: 0.6666667em;\n}\n\n.vu-prose-sm :where(.vu-prose-sm > :first-child):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-top: 0;\n}\n\n.vu-prose-sm :where(.vu-prose-sm > :last-child):not(:where([class~="vu-not-prose"],[class~="vu-not-prose"] *)) {\n margin-bottom: 0;\n}\n.vu-fixed {\n position: fixed;\n}\n.vu-absolute {\n position: absolute;\n}\n.vu-relative {\n position: relative;\n}\n.vu-inset-0 {\n inset: 0px;\n}\n.-vu-right-8 {\n right: -2rem;\n}\n.vu-bottom-20 {\n bottom: 5rem;\n}\n.vu-bottom-24 {\n bottom: 6rem;\n}\n.vu-bottom-5 {\n bottom: 1.25rem;\n}\n.vu-bottom-auto {\n bottom: auto;\n}\n.vu-left-1\\/2 {\n left: 50%;\n}\n.vu-right-2 {\n right: 0.5rem;\n}\n.vu-right-5 {\n right: 1.25rem;\n}\n.vu-right-auto {\n right: auto;\n}\n.vu-top-1\\/2 {\n top: 50%;\n}\n.vu-isolate {\n isolation: isolate;\n}\n.vu-z-10 {\n z-index: 10;\n}\n.vu-z-\\[1001\\] {\n z-index: 1001;\n}\n.vu-z-\\[9999\\] {\n z-index: 9999;\n}\n.vu-m-0 {\n margin: 0px;\n}\n.vu-m-6 {\n margin: 1.5rem;\n}\n.vu-mx-3\\.5 {\n margin-left: 0.875rem;\n margin-right: 0.875rem;\n}\n.vu-mx-4 {\n margin-left: 1rem;\n margin-right: 1rem;\n}\n.vu-my-2 {\n margin-top: 0.5rem;\n margin-bottom: 0.5rem;\n}\n.vu-my-4 {\n margin-top: 1rem;\n margin-bottom: 1rem;\n}\n.vu-my-5 {\n margin-top: 1.25rem;\n margin-bottom: 1.25rem;\n}\n.vu-mb-10 {\n margin-bottom: 2.5rem;\n}\n.vu-mb-4 {\n margin-bottom: 1rem;\n}\n.vu-ml-1 {\n margin-left: 0.25rem;\n}\n.vu-mr-1 {\n margin-right: 0.25rem;\n}\n.vu-mr-2 {\n margin-right: 0.5rem;\n}\n.vu-mr-\\[-50\\%\\] {\n margin-right: -50%;\n}\n.vu-mt-0 {\n margin-top: 0px;\n}\n.vu-mt-3 {\n margin-top: 0.75rem;\n}\n.vu-mt-4 {\n margin-top: 1rem;\n}\n.vu-mt-6 {\n margin-top: 1.5rem;\n}\n.vu-inline-block {\n display: inline-block;\n}\n.vu-inline {\n display: inline;\n}\n.vu-flex {\n display: flex;\n}\n.vu-inline-flex {\n display: inline-flex;\n}\n.vu-grid {\n display: grid;\n}\n.vu-hidden {\n display: none;\n}\n.vu-h-10 {\n height: 2.5rem;\n}\n.vu-h-3 {\n height: 0.75rem;\n}\n.vu-h-32 {\n height: 8rem;\n}\n.vu-h-80 {\n height: 20rem;\n}\n.vu-h-fit {\n height: -moz-fit-content;\n height: fit-content;\n}\n.vu-h-full {\n height: 100%;\n}\n.vu-max-h-0 {\n max-height: 0px;\n}\n.vu-max-h-52 {\n max-height: 13rem;\n}\n.vu-w-3 {\n width: 0.75rem;\n}\n.vu-w-4\\/5 {\n width: 80%;\n}\n.vu-w-\\[440px\\] {\n width: 440px;\n}\n.vu-w-\\[492px\\] {\n width: 492px;\n}\n.vu-w-full {\n width: 100%;\n}\n.vu-min-w-\\[22rem\\] {\n min-width: 22rem;\n}\n.vu-grow {\n flex-grow: 1;\n}\n.vu-grow-0 {\n flex-grow: 0;\n}\n.-vu-translate-x-1\\/2 {\n --tw-translate-x: -50%;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.-vu-translate-y-1\\/2 {\n --tw-translate-y: -50%;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.-vu-rotate-45 {\n --tw-rotate: -45deg;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.vu-rotate-0 {\n --tw-rotate: 0deg;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.vu-transform {\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.vu-cursor-not-allowed {\n cursor: not-allowed;\n}\n.vu-cursor-pointer {\n cursor: pointer;\n}\n.vu-resize-none {\n resize: none;\n}\n.vu-resize-y {\n resize: vertical;\n}\n.vu-list-disc {\n list-style-type: disc;\n}\n.vu-grid-cols-3 {\n grid-template-columns: repeat(3, minmax(0, 1fr));\n}\n.vu-flex-col {\n flex-direction: column;\n}\n.vu-items-center {\n align-items: center;\n}\n.vu-justify-end {\n justify-content: flex-end;\n}\n.vu-justify-center {\n justify-content: center;\n}\n.vu-justify-between {\n justify-content: space-between;\n}\n.vu-gap-1 {\n gap: 0.25rem;\n}\n.vu-gap-2 {\n gap: 0.5rem;\n}\n.vu-gap-3\\.5 {\n gap: 0.875rem;\n}\n.vu-gap-4 {\n gap: 1rem;\n}\n.vu-gap-x-3 {\n -moz-column-gap: 0.75rem;\n column-gap: 0.75rem;\n}\n.vu-gap-x-8 {\n -moz-column-gap: 2rem;\n column-gap: 2rem;\n}\n.vu-gap-y-5 {\n row-gap: 1.25rem;\n}\n.vu-self-center {\n align-self: center;\n}\n.vu-overflow-hidden {\n overflow: hidden;\n}\n.vu-overflow-y-auto {\n overflow-y: auto;\n}\n.vu-overflow-x-hidden {\n overflow-x: hidden;\n}\n.vu-truncate {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.vu-break-words {\n overflow-wrap: break-word;\n}\n.vu-rounded-full {\n border-radius: 9999px;\n}\n.vu-rounded-lg {\n border-radius: 0.5rem;\n}\n.vu-rounded-md {\n border-radius: 0.375rem;\n}\n.vu-border {\n border-width: 1px;\n}\n.vu-border-0 {\n border-width: 0px;\n}\n.vu-border-2 {\n border-width: 2px;\n}\n.vu-border-l {\n border-left-width: 1px;\n}\n.vu-border-solid {\n border-style: solid;\n}\n.vu-border-black {\n --tw-border-opacity: 1;\n border-color: rgb(0 0 0 / var(--tw-border-opacity, 1));\n}\n.vu-border-black\\/20 {\n border-color: rgb(0 0 0 / 0.2);\n}\n.vu-border-gainsboro {\n --tw-border-opacity: 1;\n border-color: rgb(216 222 228 / var(--tw-border-opacity, 1));\n}\n.vu-border-light_pink {\n --tw-border-opacity: 1;\n border-color: rgb(255 178 184 / var(--tw-border-opacity, 1));\n}\n.vu-bg-\\[\\#E5D4FF\\] {\n --tw-bg-opacity: 1;\n background-color: rgb(229 212 255 / var(--tw-bg-opacity, 1));\n}\n.vu-bg-alice_blue {\n --tw-bg-opacity: 1;\n background-color: rgb(243 246 252 / var(--tw-bg-opacity, 1));\n}\n.vu-bg-black\\/50 {\n background-color: rgb(0 0 0 / 0.5);\n}\n.vu-bg-black\\/75 {\n background-color: rgb(0 0 0 / 0.75);\n}\n.vu-bg-gainsboro {\n --tw-bg-opacity: 1;\n background-color: rgb(216 222 228 / var(--tw-bg-opacity, 1));\n}\n.vu-bg-lavender_blush {\n --tw-bg-opacity: 1;\n background-color: rgb(254 242 243 / var(--tw-bg-opacity, 1));\n}\n.vu-bg-primary {\n --tw-bg-opacity: 1;\n background-color: rgb(17 51 154 / var(--tw-bg-opacity, 1));\n}\n.vu-bg-transparent {\n background-color: transparent;\n}\n.vu-bg-white {\n --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));\n}\n.vu-fill-black {\n fill: #000;\n}\n.vu-fill-green-500 {\n fill: #22c55e;\n}\n.vu-fill-rose-500 {\n fill: #f43f5e;\n}\n.vu-fill-slate-350 {\n fill: #ADB5C2;\n}\n.vu-fill-white {\n fill: #FFF;\n}\n.vu-p-0 {\n padding: 0px;\n}\n.vu-p-1 {\n padding: 0.25rem;\n}\n.vu-p-1\\.5 {\n padding: 0.375rem;\n}\n.vu-p-2 {\n padding: 0.5rem;\n}\n.vu-p-4 {\n padding: 1rem;\n}\n.vu-p-6 {\n padding: 1.5rem;\n}\n.vu-p-8 {\n padding: 2rem;\n}\n.vu-px-10 {\n padding-left: 2.5rem;\n padding-right: 2.5rem;\n}\n.vu-px-2 {\n padding-left: 0.5rem;\n padding-right: 0.5rem;\n}\n.vu-px-20 {\n padding-left: 5rem;\n padding-right: 5rem;\n}\n.vu-px-3 {\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n}\n.vu-px-4 {\n padding-left: 1rem;\n padding-right: 1rem;\n}\n.vu-py-2 {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n}\n.vu-py-4 {\n padding-top: 1rem;\n padding-bottom: 1rem;\n}\n.vu-py-5 {\n padding-top: 1.25rem;\n padding-bottom: 1.25rem;\n}\n.vu-pb-0\\.5 {\n padding-bottom: 0.125rem;\n}\n.vu-pb-4 {\n padding-bottom: 1rem;\n}\n.vu-pl-1 {\n padding-left: 0.25rem;\n}\n.vu-pl-10 {\n padding-left: 2.5rem;\n}\n.vu-pl-7 {\n padding-left: 1.75rem;\n}\n.vu-pr-10 {\n padding-right: 2.5rem;\n}\n.vu-pt-10 {\n padding-top: 2.5rem;\n}\n.vu-pt-2 {\n padding-top: 0.5rem;\n}\n.vu-pt-\\[6px\\] {\n padding-top: 6px;\n}\n.vu-text-left {\n text-align: left;\n}\n.vu-text-center {\n text-align: center;\n}\n.vu-text-start {\n text-align: start;\n}\n.vu-align-middle {\n vertical-align: middle;\n}\n.vu-text-2xl {\n font-size: 1.5rem;\n line-height: 2rem;\n}\n.vu-text-3xl {\n font-size: 1.875rem;\n line-height: 2.25rem;\n}\n.vu-text-\\[68px\\] {\n font-size: 68px;\n}\n.vu-text-lg {\n font-size: 1.125rem;\n line-height: 1.75rem;\n}\n.vu-text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem;\n}\n.vu-text-xl {\n font-size: 1.25rem;\n line-height: 1.75rem;\n}\n.vu-text-xs {\n font-size: 0.75rem;\n line-height: 1rem;\n}\n.vu-font-bold {\n font-weight: 700;\n}\n.vu-font-medium {\n font-weight: 500;\n}\n.vu-font-normal {\n font-weight: 400;\n}\n.vu-font-semibold {\n font-weight: 600;\n}\n.vu-text-black {\n --tw-text-opacity: 1;\n color: rgb(0 0 0 / var(--tw-text-opacity, 1));\n}\n.vu-text-blue-600 {\n --tw-text-opacity: 1;\n color: rgb(37 99 235 / var(--tw-text-opacity, 1));\n}\n.vu-text-dark_mode-600 {\n --tw-text-opacity: 1;\n color: rgb(18 27 55 / var(--tw-text-opacity, 1));\n}\n.vu-text-red-500 {\n --tw-text-opacity: 1;\n color: rgb(239 68 68 / var(--tw-text-opacity, 1));\n}\n.vu-text-white {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity, 1));\n}\n.vu-underline {\n text-decoration-line: underline;\n}\n.vu-opacity-0 {\n opacity: 0;\n}\n.vu-opacity-100 {\n opacity: 1;\n}\n.vu-opacity-20 {\n opacity: 0.2;\n}\n.vu-opacity-25 {\n opacity: 0.25;\n}\n.vu-opacity-60 {\n opacity: 0.6;\n}\n.vu-transition-\\[max-height\\,opacity\\] {\n transition-property: max-height,opacity;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.vu-transition-all {\n transition-property: all;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.vu-duration-300 {\n transition-duration: 300ms;\n}\n.vu-ease-in-out {\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n}\n\n/*PDF Export Fix*/\n.pdf-container {\n width: 635px !important;\n}\n\n/* Hide elements only during PDF capture */\n.pdf-container .hide-in-pdf {\n display: none !important;\n}\n\n/* Icon button hover effect */\n.vu-icon-btn::before {\n content: "";\n position: absolute;\n inset: -8px;\n border-radius: 50%;\n background-color: transparent;\n opacity: 0;\n transform: scale(0);\n transition:\n opacity 0.2s ease,\n transform 0.2s ease;\n}\n\n.vu-icon-btn:not(:disabled):not(.no-hover):hover::before {\n background-color: rgba(0, 0, 0, 0.12);\n opacity: 1;\n transform: scale(0.8);\n}\n\n.vu-dark .vu-icon-btn:not(:disabled):not(.no-hover):hover::before {\n background-color: rgba(255, 255, 255, 0.12);\n}\n\n.pdf-overlay {\n position: fixed;\n inset: 0;\n background: rgba(255, 255, 255, 0.8);\n backdrop-filter: blur(4px);\n z-index: 9999;\n opacity: 0;\n animation: fadeIn 0.15s forwards;\n}\n\n@keyframes fadeIn {\n to {\n opacity: 1;\n }\n}\n\n.pdf-overlay.fade-out {\n animation: fadeOut 0.15s forwards;\n}\n\n@keyframes fadeOut {\n to {\n opacity: 0;\n }\n}\n\n.dark\\:vu-prose-invert:is(.vu-dark *) {\n --tw-prose-body: var(--tw-prose-invert-body);\n --tw-prose-headings: var(--tw-prose-invert-headings);\n --tw-prose-lead: var(--tw-prose-invert-lead);\n --tw-prose-links: var(--tw-prose-invert-links);\n --tw-prose-bold: var(--tw-prose-invert-bold);\n --tw-prose-counters: var(--tw-prose-invert-counters);\n --tw-prose-bullets: var(--tw-prose-invert-bullets);\n --tw-prose-hr: var(--tw-prose-invert-hr);\n --tw-prose-quotes: var(--tw-prose-invert-quotes);\n --tw-prose-quote-borders: var(--tw-prose-invert-quote-borders);\n --tw-prose-captions: var(--tw-prose-invert-captions);\n --tw-prose-kbd: var(--tw-prose-invert-kbd);\n --tw-prose-kbd-shadows: var(--tw-prose-invert-kbd-shadows);\n --tw-prose-code: var(--tw-prose-invert-code);\n --tw-prose-pre-code: var(--tw-prose-invert-pre-code);\n --tw-prose-pre-bg: var(--tw-prose-invert-pre-bg);\n --tw-prose-th-borders: var(--tw-prose-invert-th-borders);\n --tw-prose-td-borders: var(--tw-prose-invert-td-borders);\n}\n\n.focus\\:vu-outline-none:focus {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n\n.dark\\:vu-border-dark_mode-100:is(.vu-dark *) {\n --tw-border-opacity: 1;\n border-color: rgb(75 81 104 / var(--tw-border-opacity, 1));\n}\n\n.dark\\:vu-border-dark_mode-200:is(.vu-dark *) {\n --tw-border-opacity: 1;\n border-color: rgb(50 56 78 / var(--tw-border-opacity, 1));\n}\n\n.dark\\:vu-bg-black\\/70:is(.vu-dark *) {\n background-color: rgb(0 0 0 / 0.7);\n}\n\n.dark\\:vu-bg-dark_mode-500:is(.vu-dark *) {\n --tw-bg-opacity: 1;\n background-color: rgb(26 36 68 / var(--tw-bg-opacity, 1));\n}\n\n.dark\\:vu-bg-dark_mode-600:is(.vu-dark *) {\n --tw-bg-opacity: 1;\n background-color: rgb(18 27 55 / var(--tw-bg-opacity, 1));\n}\n\n.dark\\:vu-bg-dark_mode-700:is(.vu-dark *) {\n --tw-bg-opacity: 1;\n background-color: rgb(11 19 43 / var(--tw-bg-opacity, 1));\n}\n\n.dark\\:vu-fill-slate-250:is(.vu-dark *) {\n fill: #CCCCDC;\n}\n\n.dark\\:vu-fill-slate-450:is(.vu-dark *) {\n fill: #7B7E92;\n}\n\n.dark\\:vu-text-slate-250:is(.vu-dark *) {\n --tw-text-opacity: 1;\n color: rgb(204 204 220 / var(--tw-text-opacity, 1));\n}\n\n.dark\\:vu-text-slate-450:is(.vu-dark *) {\n --tw-text-opacity: 1;\n color: rgb(123 126 146 / var(--tw-text-opacity, 1));\n}\n\n@media (min-width: 640px) {\n .sm\\:vu-flex {\n display: flex;\n }\n}\n\n@media (min-width: 1024px) {\n .lg\\:vu-relative {\n position: relative;\n }\n .lg\\:vu-flex {\n display: flex;\n }\n .lg\\:vu-hidden {\n display: none;\n }\n .lg\\:vu-w-\\[22rem\\] {\n width: 22rem;\n }\n .lg\\:vu-p-0 {\n padding: 0px;\n }\n .lg\\:vu-px-\\[7\\.5rem\\] {\n padding-left: 7.5rem;\n padding-right: 7.5rem;\n }\n .lg\\:vu-pr-6 {\n padding-right: 1.5rem;\n }\n}\n');var S=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(e){var t=this,n=e||function(){};return this.listeners.push(n),this.onSubscribe(),function(){t.listeners=t.listeners.filter(function(e){return e!==n}),t.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}();function k(){return k=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},k.apply(null,arguments)}var U='undefined'==typeof window;function Q(){}function L(e){return'number'==typeof e&&e>=0&&e!==1/0}function O(e){return Array.isArray(e)?e:[e]}function I(e,t){return Math.max(e+(t||0)-Date.now(),0)}function N(e,t,n){return G(e)?'function'==typeof t?k({},n,{queryKey:e,queryFn:t}):k({},t,{queryKey:e}):e}function T(e,t,n){return G(e)?[k({},t,{queryKey:e}),n]:[e||{},t]}function M(e,t){var n=e.active,r=e.exact,i=e.fetching,o=e.inactive,s=e.predicate,a=e.queryKey,A=e.stale;if(G(a))if(r){if(t.queryHash!==P(a,t.options))return!1}else if(!H(t.queryKey,a))return!1;var l=function(e,t){return!0===e&&!0===t||null==e&&null==t?'all':!1===e&&!1===t?'none':(null!=e?e:!t)?'active':'inactive'}(n,o);if('none'===l)return!1;if('all'!==l){var c=t.isActive();if('active'===l&&!c)return!1;if('inactive'===l&&c)return!1}return('boolean'!=typeof A||t.isStale()===A)&&(('boolean'!=typeof i||t.isFetching()===i)&&!(s&&!s(t)))}function D(e,t){var n=e.exact,r=e.fetching,i=e.predicate,o=e.mutationKey;if(G(o)){if(!t.options.mutationKey)return!1;if(n){if(R(t.options.mutationKey)!==R(o))return!1}else if(!H(t.options.mutationKey,o))return!1}return('boolean'!=typeof r||'loading'===t.state.status===r)&&!(i&&!i(t))}function P(e,t){return((null==t?void 0:t.queryKeyHashFn)||R)(e)}function R(e){var t,n=O(e);return t=n,JSON.stringify(t,function(e,t){return K(t)?Object.keys(t).sort().reduce(function(e,n){return e[n]=t[n],e},{}):t})}function H(e,t){return z(O(e),O(t))}function z(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||'object'!=typeof e||'object'!=typeof t)&&!Object.keys(t).some(function(n){return!z(e[n],t[n])}))}function V(e,t){if(e===t)return e;var n=Array.isArray(e)&&Array.isArray(t);if(n||K(e)&&K(t)){for(var r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),o=i.length,s=n?[]:{},a=0,A=0;A<o;A++){var l=n?A:i[A];s[l]=V(e[l],t[l]),s[l]===e[l]&&a++}return r===o&&a===r?e:s}return t}function K(e){if(!q(e))return!1;var t=e.constructor;if(void 0===t)return!0;var n=t.prototype;return!!q(n)&&!!n.hasOwnProperty('isPrototypeOf')}function q(e){return'[object Object]'===Object.prototype.toString.call(e)}function G(e){return'string'==typeof e||Array.isArray(e)}function W(e){Promise.resolve().then(e).catch(function(e){return setTimeout(function(){throw e})})}function Y(){if('function'==typeof AbortController)return new AbortController}var X=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!U&&(null==(t=window)?void 0:t.addEventListener)){var n=function(){return e()};return window.addEventListener('visibilitychange',n,!1),window.addEventListener('focus',n,!1),function(){window.removeEventListener('visibilitychange',n),window.removeEventListener('focus',n)}}},t}E(t,e);var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},n.setEventListener=function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(function(e){'boolean'==typeof e?n.setFocused(e):n.onFocus()})},n.setFocused=function(e){this.focused=e,e&&this.onFocus()},n.onFocus=function(){this.listeners.forEach(function(e){e()})},n.isFocused=function(){return'boolean'==typeof this.focused?this.focused:'undefined'==typeof document||[void 0,'visible','prerender'].includes(document.visibilityState)},t}(S)),J=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!U&&(null==(t=window)?void 0:t.addEventListener)){var n=function(){return e()};return window.addEventListener('online',n,!1),window.addEventListener('offline',n,!1),function(){window.removeEventListener('online',n),window.removeEventListener('offline',n)}}},t}E(t,e);var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},n.setEventListener=function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(function(e){'boolean'==typeof e?n.setOnline(e):n.onOnline()})},n.setOnline=function(e){this.online=e,e&&this.onOnline()},n.onOnline=function(){this.listeners.forEach(function(e){e()})},n.isOnline=function(){return'boolean'==typeof this.online?this.online:'undefined'==typeof navigator||void 0===navigator.onLine||navigator.onLine},t}(S));function Z(e){return Math.min(1e3*Math.pow(2,e),3e4)}function $(e){return'function'==typeof(null==e?void 0:e.cancel)}var ee=function(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent};function te(e){return e instanceof ee}var ne=function(e){var t,n,r,i,o=this,s=!1;this.abort=e.abort,this.cancel=function(e){return null==t?void 0:t(e)},this.cancelRetry=function(){s=!0},this.continueRetry=function(){s=!1},this.continue=function(){return null==n?void 0:n()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(e,t){r=e,i=t});var a=function(t){o.isResolved||(o.isResolved=!0,null==e.onSuccess||e.onSuccess(t),null==n||n(),r(t))},A=function(t){o.isResolved||(o.isResolved=!0,null==e.onError||e.onError(t),null==n||n(),i(t))};!function r(){if(!o.isResolved){var i;try{i=e.fn()}catch(e){i=Promise.reject(e)}t=function(e){if(!o.isResolved&&(A(new ee(e)),null==o.abort||o.abort(),$(i)))try{i.cancel()}catch(e){}},o.isTransportCancelable=$(i),Promise.resolve(i).then(a).catch(function(t){var i,a;if(!o.isResolved){var l,c=null!=(i=e.retry)?i:3,u=null!=(a=e.retryDelay)?a:Z,d='function'==typeof u?u(o.failureCount,t):u,f=!0===c||'number'==typeof c&&o.failureCount<c||'function'==typeof c&&c(o.failureCount,t);if(!s&&f)o.failureCount++,null==e.onFail||e.onFail(o.failureCount,t),(l=d,new Promise(function(e){setTimeout(e,l)})).then(function(){if(!X.isFocused()||!J.isOnline())return new Promise(function(t){n=t,o.isPaused=!0,null==e.onPause||e.onPause()}).then(function(){n=void 0,o.isPaused=!1,null==e.onContinue||e.onContinue()})}).then(function(){s?A(t):r()});else A(t)}})}}()},re=function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(e){e()},this.batchNotifyFn=function(e){e()}}var t=e.prototype;return t.batch=function(e){var t;this.transactions++;try{t=e()}finally{this.transactions--,this.transactions||this.flush()}return t},t.schedule=function(e){var t=this;this.transactions?this.queue.push(e):W(function(){t.notifyFn(e)})},t.batchCalls=function(e){var t=this;return function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];t.schedule(function(){e.apply(void 0,r)})}},t.flush=function(){var e=this,t=this.queue;this.queue=[],t.length&&W(function(){e.batchNotifyFn(function(){t.forEach(function(t){e.notifyFn(t)})})})},t.setNotifyFunction=function(e){this.notifyFn=e},t.setBatchNotifyFunction=function(e){this.batchNotifyFn=e},e}(),ie=new re,oe=console;function se(){return oe}var ae=function(){function e(e){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=e.meta,this.scheduleGc()}var t=e.prototype;return t.setOptions=function(e){var t;this.options=k({},this.defaultOptions,e),this.meta=null==e?void 0:e.meta,this.cacheTime=Math.max(this.cacheTime||0,null!=(t=this.options.cacheTime)?t:3e5)},t.setDefaultOptions=function(e){this.defaultOptions=e},t.scheduleGc=function(){var e=this;this.clearGcTimeout(),L(this.cacheTime)&&(this.gcTimeout=setTimeout(function(){e.optionalRemove()},this.cacheTime))},t.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},t.optionalRemove=function(){this.observers.length||(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},t.setData=function(e,t){var n,r,i=this.state.data,o=function(e,t){return'function'==typeof e?e(t):e}(e,i);return(null==(n=(r=this.options).isDataEqual)?void 0:n.call(r,i,o))?o=i:!1!==this.options.structuralSharing&&(o=V(i,o)),this.dispatch({data:o,type:'success',dataUpdatedAt:null==t?void 0:t.updatedAt}),o},t.setState=function(e,t){this.dispatch({type:'setState',state:e,setStateOptions:t})},t.cancel=function(e){var t,n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(Q).catch(Q):Promise.resolve()},t.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},t.reset=function(){this.destroy(),this.setState(this.initialState)},t.isActive=function(){return this.observers.some(function(e){return!1!==e.options.enabled})},t.isFetching=function(){return this.state.isFetching},t.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(function(e){return e.getCurrentResult().isStale})},t.isStaleByTime=function(e){return void 0===e&&(e=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!I(this.state.dataUpdatedAt,e)},t.onFocus=function(){var e,t=this.observers.find(function(e){return e.shouldFetchOnWindowFocus()});t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.onOnline=function(){var e,t=this.observers.find(function(e){return e.shouldFetchOnReconnect()});t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.addObserver=function(e){-1===this.observers.indexOf(e)&&(this.observers.push(e),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:'observerAdded',query:this,observer:e}))},t.removeObserver=function(e){-1!==this.observers.indexOf(e)&&(this.observers=this.observers.filter(function(t){return t!==e}),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:'observerRemoved',query:this,observer:e}))},t.getObserversCount=function(){return this.observers.length},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:'invalidate'})},t.fetch=function(e,t){var n,r,i,o=this;if(this.state.isFetching)if(this.state.dataUpdatedAt&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var s;return null==(s=this.retryer)||s.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){var a=this.observers.find(function(e){return e.options.queryFn});a&&this.setOptions(a.options)}var A=O(this.queryKey),l=Y(),c={queryKey:A,pageParam:void 0,meta:this.meta};Object.defineProperty(c,'signal',{enumerable:!0,get:function(){if(l)return o.abortSignalConsumed=!0,l.signal}});var u,d,f={fetchOptions:t,options:this.options,queryKey:A,state:this.state,fetchFn:function(){return o.options.queryFn?(o.abortSignalConsumed=!1,o.options.queryFn(c)):Promise.reject('Missing queryFn')},meta:this.meta};(null==(n=this.options.behavior)?void 0:n.onFetch)&&(null==(u=this.options.behavior)||u.onFetch(f));(this.revertState=this.state,this.state.isFetching&&this.state.fetchMeta===(null==(r=f.fetchOptions)?void 0:r.meta))||this.dispatch({type:'fetch',meta:null==(d=f.fetchOptions)?void 0:d.meta});return this.retryer=new ne({fn:f.fetchFn,abort:null==l||null==(i=l.abort)?void 0:i.bind(l),onSuccess:function(e){o.setData(e),null==o.cache.config.onSuccess||o.cache.config.onSuccess(e,o),0===o.cacheTime&&o.optionalRemove()},onError:function(e){te(e)&&e.silent||o.dispatch({type:'error',error:e}),te(e)||(null==o.cache.config.onError||o.cache.config.onError(e,o),se().error(e)),0===o.cacheTime&&o.optionalRemove()},onFail:function(){o.dispatch({type:'failed'})},onPause:function(){o.dispatch({type:'pause'})},onContinue:function(){o.dispatch({type:'continue'})},retry:f.options.retry,retryDelay:f.options.retryDelay}),this.promise=this.retryer.promise,this.promise},t.dispatch=function(e){var t=this;this.state=this.reducer(this.state,e),ie.batch(function(){t.observers.forEach(function(t){t.onQueryUpdate(e)}),t.cache.notify({query:t,type:'queryUpdated',action:e})})},t.getDefaultState=function(e){var t='function'==typeof e.initialData?e.initialData():e.initialData,n=void 0!==e.initialData?'function'==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0,r=void 0!==t;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?null!=n?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:r?'success':'idle'}},t.reducer=function(e,t){var n,r;switch(t.type){case'failed':return k({},e,{fetchFailureCount:e.fetchFailureCount+1});case'pause':return k({},e,{isPaused:!0});case'continue':return k({},e,{isPaused:!1});case'fetch':return k({},e,{fetchFailureCount:0,fetchMeta:null!=(n=t.meta)?n:null,isFetching:!0,isPaused:!1},!e.dataUpdatedAt&&{error:null,status:'loading'});case'success':return k({},e,{data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:null!=(r=t.dataUpdatedAt)?r:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:'success'});case'error':var i=t.error;return te(i)&&i.revert&&this.revertState?k({},this.revertState):k({},e,{error:i,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:'error'});case'invalidate':return k({},e,{isInvalidated:!0});case'setState':return k({},e,t.state);default:return e}},e}(),Ae=function(e){function t(t){var n;return(n=e.call(this)||this).config=t||{},n.queries=[],n.queriesMap={},n}E(t,e);var n=t.prototype;return n.build=function(e,t,n){var r,i=t.queryKey,o=null!=(r=t.queryHash)?r:P(i,t),s=this.get(o);return s||(s=new ae({cache:this,queryKey:i,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(i),meta:t.meta}),this.add(s)),s},n.add=function(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:'queryAdded',query:e}))},n.remove=function(e){var t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter(function(t){return t!==e}),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:'queryRemoved',query:e}))},n.clear=function(){var e=this;ie.batch(function(){e.queries.forEach(function(t){e.remove(t)})})},n.get=function(e){return this.queriesMap[e]},n.getAll=function(){return this.queries},n.find=function(e,t){var n=T(e,t)[0];return void 0===n.exact&&(n.exact=!0),this.queries.find(function(e){return M(n,e)})},n.findAll=function(e,t){var n=T(e,t)[0];return Object.keys(n).length>0?this.queries.filter(function(e){return M(n,e)}):this.queries},n.notify=function(e){var t=this;ie.batch(function(){t.listeners.forEach(function(t){t(e)})})},n.onFocus=function(){var e=this;ie.batch(function(){e.queries.forEach(function(e){e.onFocus()})})},n.onOnline=function(){var e=this;ie.batch(function(){e.queries.forEach(function(e){e.onOnline()})})},t}(S),le=function(){function e(e){this.options=k({},e.defaultOptions,e.options),this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.observers=[],this.state=e.state||ce(),this.meta=e.meta}var t=e.prototype;return t.setState=function(e){this.dispatch({type:'setState',state:e})},t.addObserver=function(e){-1===this.observers.indexOf(e)&&this.observers.push(e)},t.removeObserver=function(e){this.observers=this.observers.filter(function(t){return t!==e})},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(Q).catch(Q)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var e,t=this,n='loading'===this.state.status,r=Promise.resolve();return n||(this.dispatch({type:'loading',variables:this.options.variables}),r=r.then(function(){null==t.mutationCache.config.onMutate||t.mutationCache.config.onMutate(t.state.variables,t)}).then(function(){return null==t.options.onMutate?void 0:t.options.onMutate(t.state.variables)}).then(function(e){e!==t.state.context&&t.dispatch({type:'loading',context:e,variables:t.state.variables})})),r.then(function(){return t.executeMutation()}).then(function(n){e=n,null==t.mutationCache.config.onSuccess||t.mutationCache.config.onSuccess(e,t.state.variables,t.state.context,t)}).then(function(){return null==t.options.onSuccess?void 0:t.options.onSuccess(e,t.state.variables,t.state.context)}).then(function(){return null==t.options.onSettled?void 0:t.options.onSettled(e,null,t.state.variables,t.state.context)}).then(function(){return t.dispatch({type:'success',data:e}),e}).catch(function(e){return null==t.mutationCache.config.onError||t.mutationCache.config.onError(e,t.state.variables,t.state.context,t),se().error(e),Promise.resolve().then(function(){return null==t.options.onError?void 0:t.options.onError(e,t.state.variables,t.state.context)}).then(function(){return null==t.options.onSettled?void 0:t.options.onSettled(void 0,e,t.state.variables,t.state.context)}).then(function(){throw t.dispatch({type:'error',error:e}),e})})},t.executeMutation=function(){var e,t=this;return this.retryer=new ne({fn:function(){return t.options.mutationFn?t.options.mutationFn(t.state.variables):Promise.reject('No mutationFn found')},onFail:function(){t.dispatch({type:'failed'})},onPause:function(){t.dispatch({type:'pause'})},onContinue:function(){t.dispatch({type:'continue'})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(e){var t=this;this.state=function(e,t){switch(t.type){case'failed':return k({},e,{failureCount:e.failureCount+1});case'pause':return k({},e,{isPaused:!0});case'continue':return k({},e,{isPaused:!1});case'loading':return k({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:'loading',variables:t.variables});case'success':return k({},e,{data:t.data,error:null,status:'success',isPaused:!1});case'error':return k({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:'error'});case'setState':return k({},e,t.state);default:return e}}(this.state,e),ie.batch(function(){t.observers.forEach(function(t){t.onMutationUpdate(e)}),t.mutationCache.notify(t)})},e}();function ce(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:'idle',variables:void 0}}var ue=function(e){function t(t){var n;return(n=e.call(this)||this).config=t||{},n.mutations=[],n.mutationId=0,n}E(t,e);var n=t.prototype;return n.build=function(e,t,n){var r=new le({mutationCache:this,mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0,meta:t.meta});return this.add(r),r},n.add=function(e){this.mutations.push(e),this.notify(e)},n.remove=function(e){this.mutations=this.mutations.filter(function(t){return t!==e}),e.cancel(),this.notify(e)},n.clear=function(){var e=this;ie.batch(function(){e.mutations.forEach(function(t){e.remove(t)})})},n.getAll=function(){return this.mutations},n.find=function(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find(function(t){return D(e,t)})},n.findAll=function(e){return this.mutations.filter(function(t){return D(e,t)})},n.notify=function(e){var t=this;ie.batch(function(){t.listeners.forEach(function(t){t(e)})})},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var e=this.mutations.filter(function(e){return e.state.isPaused});return ie.batch(function(){return e.reduce(function(e,t){return e.then(function(){return t.continue().catch(Q)})},Promise.resolve())})},t}(S);function de(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}var fe=function(){function e(e){void 0===e&&(e={}),this.queryCache=e.queryCache||new Ae,this.mutationCache=e.mutationCache||new ue,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var t=e.prototype;return t.mount=function(){var e=this;this.unsubscribeFocus=X.subscribe(function(){X.isFocused()&&J.isOnline()&&(e.mutationCache.onFocus(),e.queryCache.onFocus())}),this.unsubscribeOnline=J.subscribe(function(){X.isFocused()&&J.isOnline()&&(e.mutationCache.onOnline(),e.queryCache.onOnline())})},t.unmount=function(){var e,t;null==(e=this.unsubscribeFocus)||e.call(this),null==(t=this.unsubscribeOnline)||t.call(this)},t.isFetching=function(e,t){var n=T(e,t)[0];return n.fetching=!0,this.queryCache.findAll(n).length},t.isMutating=function(e){return this.mutationCache.findAll(k({},e,{fetching:!0})).length},t.getQueryData=function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data},t.getQueriesData=function(e){return this.getQueryCache().findAll(e).map(function(e){return[e.queryKey,e.state.data]})},t.setQueryData=function(e,t,n){var r=N(e),i=this.defaultQueryOptions(r);return this.queryCache.build(this,i).setData(t,n)},t.setQueriesData=function(e,t,n){var r=this;return ie.batch(function(){return r.getQueryCache().findAll(e).map(function(e){var i=e.queryKey;return[i,r.setQueryData(i,t,n)]})})},t.getQueryState=function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state},t.removeQueries=function(e,t){var n=T(e,t)[0],r=this.queryCache;ie.batch(function(){r.findAll(n).forEach(function(e){r.remove(e)})})},t.resetQueries=function(e,t,n){var r=this,i=T(e,t,n),o=i[0],s=i[1],a=this.queryCache,A=k({},o,{active:!0});return ie.batch(function(){return a.findAll(o).forEach(function(e){e.reset()}),r.refetchQueries(A,s)})},t.cancelQueries=function(e,t,n){var r=this,i=T(e,t,n),o=i[0],s=i[1],a=void 0===s?{}:s;void 0===a.revert&&(a.revert=!0);var A=ie.batch(function(){return r.queryCache.findAll(o).map(function(e){return e.cancel(a)})});return Promise.all(A).then(Q).catch(Q)},t.invalidateQueries=function(e,t,n){var r,i,o,s=this,a=T(e,t,n),A=a[0],l=a[1],c=k({},A,{active:null==(r=null!=(i=A.refetchActive)?i:A.active)||r,inactive:null!=(o=A.refetchInactive)&&o});return ie.batch(function(){return s.queryCache.findAll(A).forEach(function(e){e.invalidate()}),s.refetchQueries(c,l)})},t.refetchQueries=function(e,t,n){var r=this,i=T(e,t,n),o=i[0],s=i[1],a=ie.batch(function(){return r.queryCache.findAll(o).map(function(e){return e.fetch(void 0,k({},s,{meta:{refetchPage:null==o?void 0:o.refetchPage}}))})}),A=Promise.all(a).then(Q);return(null==s?void 0:s.throwOnError)||(A=A.catch(Q)),A},t.fetchQuery=function(e,t,n){var r=N(e,t,n),i=this.defaultQueryOptions(r);void 0===i.retry&&(i.retry=!1);var o=this.queryCache.build(this,i);return o.isStaleByTime(i.staleTime)?o.fetch(i):Promise.resolve(o.state.data)},t.prefetchQuery=function(e,t,n){return this.fetchQuery(e,t,n).then(Q).catch(Q)},t.fetchInfiniteQuery=function(e,t,n){var r=N(e,t,n);return r.behavior={onFetch:function(e){e.fetchFn=function(){var t,n,r,i,o,s,a,A,l,c=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,u=null==(r=e.fetchOptions)||null==(i=r.meta)?void 0:i.fetchMore,d=null==u?void 0:u.pageParam,f='forward'===(null==u?void 0:u.direction),h='backward'===(null==u?void 0:u.direction),p=(null==(o=e.state.data)?void 0:o.pages)||[],g=(null==(s=e.state.data)?void 0:s.pageParams)||[],m=Y(),v=null==m?void 0:m.signal,b=g,y=!1,w=e.options.queryFn||function(){return Promise.reject('Missing queryFn')},B=function(e,t,n,r){return b=r?[t].concat(b):[].concat(b,[t]),r?[n].concat(e):[].concat(e,[n])},x=function(t,n,r,i){if(y)return Promise.reject('Cancelled');if(void 0===r&&!n&&t.length)return Promise.resolve(t);var o={queryKey:e.queryKey,signal:v,pageParam:r,meta:e.meta},s=w(o),a=Promise.resolve(s).then(function(e){return B(t,r,e,i)});return $(s)&&(a.cancel=s.cancel),a};if(p.length)if(f){var C=void 0!==d,_=C?d:de(e.options,p);a=x(p,C,_)}else if(h){var j=void 0!==d,F=j?d:(A=e.options,l=p,null==A.getPreviousPageParam?void 0:A.getPreviousPageParam(l[0],l));a=x(p,j,F,!0)}else!function(){b=[];var t=void 0===e.options.getNextPageParam,n=!c||!p[0]||c(p[0],0,p);a=n?x([],t,g[0]):Promise.resolve(B([],g[0],p[0]));for(var r=function(n){a=a.then(function(r){if(!c||!p[n]||c(p[n],n,p)){var i=t?g[n]:de(e.options,r);return x(r,t,i)}return Promise.resolve(B(r,g[n],p[n]))})},i=1;i<p.length;i++)r(i)}();else a=x([]);var E=a.then(function(e){return{pages:e,pageParams:b}});return E.cancel=function(){y=!0,null==m||m.abort(),$(a)&&a.cancel()},E}}},this.fetchQuery(r)},t.prefetchInfiniteQuery=function(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(Q).catch(Q)},t.cancelMutations=function(){var e=this,t=ie.batch(function(){return e.mutationCache.getAll().map(function(e){return e.cancel()})});return Promise.all(t).then(Q).catch(Q)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(e){return this.mutationCache.build(this,e).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(e){this.defaultOptions=e},t.setQueryDefaults=function(e,t){var n=this.queryDefaults.find(function(t){return R(e)===R(t.queryKey)});n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})},t.getQueryDefaults=function(e){var t;return e?null==(t=this.queryDefaults.find(function(t){return H(e,t.queryKey)}))?void 0:t.defaultOptions:void 0},t.setMutationDefaults=function(e,t){var n=this.mutationDefaults.find(function(t){return R(e)===R(t.mutationKey)});n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})},t.getMutationDefaults=function(e){var t;return e?null==(t=this.mutationDefaults.find(function(t){return H(e,t.mutationKey)}))?void 0:t.defaultOptions:void 0},t.defaultQueryOptions=function(e){if(null==e?void 0:e._defaulted)return e;var t=k({},this.defaultOptions.queries,this.getQueryDefaults(null==e?void 0:e.queryKey),e,{_defaulted:!0});return!t.queryHash&&t.queryKey&&(t.queryHash=P(t.queryKey,t)),t},t.defaultQueryObserverOptions=function(e){return this.defaultQueryOptions(e)},t.defaultMutationOptions=function(e){return(null==e?void 0:e._defaulted)?e:k({},this.defaultOptions.mutations,this.getMutationDefaults(null==e?void 0:e.mutationKey),e,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}(),he=function(e){function t(t,n){var r;return(r=e.call(this)||this).client=t,r.options=n,r.trackedProps=[],r.selectError=null,r.bindMethods(),r.setOptions(n),r}E(t,e);var n=t.prototype;return n.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},n.onSubscribe=function(){1===this.listeners.length&&(this.currentQuery.addObserver(this),pe(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return ge(this.currentQuery,this.options,this.options.refetchOnReconnect)},n.shouldFetchOnWindowFocus=function(){return ge(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},n.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},n.setOptions=function(e,t){var n=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(e),void 0!==this.options.enabled&&'boolean'!=typeof this.options.enabled)throw new Error('Expected enabled to be a boolean');this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();var i=this.hasListeners();i&&me(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(t),!i||this.currentQuery===r&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();var o=this.computeRefetchInterval();!i||this.currentQuery===r&&this.options.enabled===n.enabled&&o===this.currentRefetchInterval||this.updateRefetchInterval(o)},n.getOptimisticResult=function(e){var t=this.client.defaultQueryObserverOptions(e),n=this.client.getQueryCache().build(this.client,t);return this.createResult(n,t)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(e,t){var n=this,r={},i=function(e){n.trackedProps.includes(e)||n.trackedProps.push(e)};return Object.keys(e).forEach(function(t){Object.defineProperty(r,t,{configurable:!1,enumerable:!0,get:function(){return i(t),e[t]}})}),(t.useErrorBoundary||t.suspense)&&i('error'),r},n.getNextResult=function(e){var t=this;return new Promise(function(n,r){var i=t.subscribe(function(t){t.isFetching||(i(),t.isError&&(null==e?void 0:e.throwOnError)?r(t.error):n(t))})})},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(e){return this.fetch(k({},e,{meta:{refetchPage:null==e?void 0:e.refetchPage}}))},n.fetchOptimistic=function(e){var t=this,n=this.client.defaultQueryObserverOptions(e),r=this.client.getQueryCache().build(this.client,n);return r.fetch().then(function(){return t.createResult(r,n)})},n.fetch=function(e){var t=this;return this.executeFetch(e).then(function(){return t.updateResult(),t.currentResult})},n.executeFetch=function(e){this.updateQuery();var t=this.currentQuery.fetch(this.options,e);return(null==e?void 0:e.throwOnError)||(t=t.catch(Q)),t},n.updateStaleTimeout=function(){var e=this;if(this.clearStaleTimeout(),!U&&!this.currentResult.isStale&&L(this.options.staleTime)){var t=I(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(function(){e.currentResult.isStale||e.updateResult()},t)}},n.computeRefetchInterval=function(){var e;return'function'==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e},n.updateRefetchInterval=function(e){var t=this;this.clearRefetchInterval(),this.currentRefetchInterval=e,!U&&!1!==this.options.enabled&&L(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(function(){(t.options.refetchIntervalInBackground||X.isFocused())&&t.executeFetch()},this.currentRefetchInterval))},n.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},n.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},n.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},n.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},n.createResult=function(e,t){var n,r=this.currentQuery,i=this.options,o=this.currentResult,s=this.currentResultState,a=this.currentResultOptions,A=e!==r,l=A?e.state:this.currentQueryInitialState,c=A?this.currentResult:this.previousQueryResult,u=e.state,d=u.dataUpdatedAt,f=u.error,h=u.errorUpdatedAt,p=u.isFetching,g=u.status,m=!1,v=!1;if(t.optimisticResults){var b=this.hasListeners(),y=!b&&pe(e,t),w=b&&me(e,r,t,i);(y||w)&&(p=!0,d||(g='loading'))}if(t.keepPreviousData&&!u.dataUpdateCount&&(null==c?void 0:c.isSuccess)&&'error'!==g)n=c.data,d=c.dataUpdatedAt,g=c.status,m=!0;else if(t.select&&void 0!==u.data)if(o&&u.data===(null==s?void 0:s.data)&&t.select===this.selectFn)n=this.selectResult;else try{this.selectFn=t.select,n=t.select(u.data),!1!==t.structuralSharing&&(n=V(null==o?void 0:o.data,n)),this.selectResult=n,this.selectError=null}catch(e){se().error(e),this.selectError=e}else n=u.data;if(void 0!==t.placeholderData&&void 0===n&&('loading'===g||'idle'===g)){var B;if((null==o?void 0:o.isPlaceholderData)&&t.placeholderData===(null==a?void 0:a.placeholderData))B=o.data;else if(B='function'==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==B)try{B=t.select(B),!1!==t.structuralSharing&&(B=V(null==o?void 0:o.data,B)),this.selectError=null}catch(e){se().error(e),this.selectError=e}void 0!==B&&(g='success',n=B,v=!0)}return this.selectError&&(f=this.selectError,n=this.selectResult,h=Date.now(),g='error'),{status:g,isLoading:'loading'===g,isSuccess:'success'===g,isError:'error'===g,isIdle:'idle'===g,data:n,dataUpdatedAt:d,error:f,errorUpdatedAt:h,failureCount:u.fetchFailureCount,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>l.dataUpdateCount||u.errorUpdateCount>l.errorUpdateCount,isFetching:p,isRefetching:p&&'loading'!==g,isLoadingError:'error'===g&&0===u.dataUpdatedAt,isPlaceholderData:v,isPreviousData:m,isRefetchError:'error'===g&&0!==u.dataUpdatedAt,isStale:ve(e,t),refetch:this.refetch,remove:this.remove}},n.shouldNotifyListeners=function(e,t){if(!t)return!0;var n=this.options,r=n.notifyOnChangeProps,i=n.notifyOnChangePropsExclusions;if(!r&&!i)return!0;if('tracked'===r&&!this.trackedProps.length)return!0;var o='tracked'===r?this.trackedProps:r;return Object.keys(e).some(function(n){var r=n,s=e[r]!==t[r],a=null==o?void 0:o.some(function(e){return e===n}),A=null==i?void 0:i.some(function(e){return e===n});return s&&!A&&(!o||a)})},n.updateResult=function(e){var t=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!function(e,t){if(e&&!t||t&&!e)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}(this.currentResult,t)){var n={cache:!0};!1!==(null==e?void 0:e.listeners)&&this.shouldNotifyListeners(this.currentResult,t)&&(n.listeners=!0),this.notify(k({},n,e))}},n.updateQuery=function(){var e=this.client.getQueryCache().build(this.client,this.options);if(e!==this.currentQuery){var t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}},n.onQueryUpdate=function(e){var t={};'success'===e.type?t.onSuccess=!0:'error'!==e.type||te(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()},n.notify=function(e){var t=this;ie.batch(function(){e.onSuccess?(null==t.options.onSuccess||t.options.onSuccess(t.currentResult.data),null==t.options.onSettled||t.options.onSettled(t.currentResult.data,null)):e.onError&&(null==t.options.onError||t.options.onError(t.currentResult.error),null==t.options.onSettled||t.options.onSettled(void 0,t.currentResult.error)),e.listeners&&t.listeners.forEach(function(e){e(t.currentResult)}),e.cache&&t.client.getQueryCache().notify({query:t.currentQuery,type:'observerResultsUpdated'})})},t}(S);function pe(e,t){return function(e,t){return!(!1===t.enabled||e.state.dataUpdatedAt||'error'===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&ge(e,t,t.refetchOnMount)}function ge(e,t,n){if(!1!==t.enabled){var r='function'==typeof n?n(e):n;return'always'===r||!1!==r&&ve(e,t)}return!1}function me(e,t,n,r){return!1!==n.enabled&&(e!==t||!1===r.enabled)&&(!n.suspense||'error'!==e.state.status)&&ve(e,n)}function ve(e,t){return e.isStaleByTime(t.staleTime)}var be=function(e){function t(t,n){var r;return(r=e.call(this)||this).client=t,r.setOptions(n),r.bindMethods(),r.updateResult(),r}E(t,e);var n=t.prototype;return n.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},n.setOptions=function(e){this.options=this.client.defaultMutationOptions(e)},n.onUnsubscribe=function(){var e;this.listeners.length||(null==(e=this.currentMutation)||e.removeObserver(this))},n.onMutationUpdate=function(e){this.updateResult();var t={listeners:!0};'success'===e.type?t.onSuccess=!0:'error'===e.type&&(t.onError=!0),this.notify(t)},n.getCurrentResult=function(){return this.currentResult},n.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},n.mutate=function(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,k({},this.options,{variables:void 0!==e?e:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},n.updateResult=function(){var e=this.currentMutation?this.currentMutation.state:{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:'idle',variables:void 0},t=k({},e,{isLoading:'loading'===e.status,isSuccess:'success'===e.status,isError:'error'===e.status,isIdle:'idle'===e.status,mutate:this.mutate,reset:this.reset});this.currentResult=t},n.notify=function(e){var t=this;ie.batch(function(){t.mutateOptions&&(e.onSuccess?(null==t.mutateOptions.onSuccess||t.mutateOptions.onSuccess(t.currentResult.data,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(t.currentResult.data,null,t.currentResult.variables,t.currentResult.context)):e.onError&&(null==t.mutateOptions.onError||t.mutateOptions.onError(t.currentResult.error,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(void 0,t.currentResult.error,t.currentResult.variables,t.currentResult.context))),e.listeners&&t.listeners.forEach(function(e){e(t.currentResult)})})},t}(S),ye=b.unstable_batchedUpdates;ie.setBatchNotifyFunction(ye);var we=console;oe=we;var Be=t.createContext(void 0),xe=t.createContext(!1);function Ce(e){return e&&'undefined'!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Be),window.ReactQueryClientContext):Be}var _e=function(){var e=t.useContext(Ce(t.useContext(xe)));if(!e)throw new Error('No QueryClient set, use QueryClientProvider to set one');return e},je=function(e){var n=e.client,r=e.contextSharing,i=void 0!==r&&r,o=e.children;t.useEffect(function(){return n.mount(),function(){n.unmount()}},[n]);var s=Ce(i);return t.createElement(xe.Provider,{value:i},t.createElement(s.Provider,{value:n},o))};var Fe,Ee=t.createContext((Fe=!1,{clearReset:function(){Fe=!1},reset:function(){Fe=!0},isReset:function(){return Fe}}));function Se(e,t,n){return'function'==typeof t?t.apply(void 0,n):'boolean'==typeof t?t:!!e}function ke(e,n,r){var i=t.useRef(!1),o=t.useState(0)[1],s=function(e,t,n){return G(e)?'function'==typeof t?k({},n,{mutationKey:e,mutationFn:t}):k({},t,{mutationKey:e}):'function'==typeof e?k({},t,{mutationFn:e}):k({},e)}(e,n,r),a=_e(),A=t.useRef();A.current?A.current.setOptions(s):A.current=new be(a,s);var l=A.current.getCurrentResult();t.useEffect(function(){i.current=!0;var e=A.current.subscribe(ie.batchCalls(function(){i.current&&o(function(e){return e+1})}));return function(){i.current=!1,e()}},[]);var c=t.useCallback(function(e,t){A.current.mutate(e,t).catch(Q)},[]);if(l.error&&Se(void 0,A.current.options.useErrorBoundary,[l.error]))throw l.error;return k({},l,{mutate:c,mutateAsync:l.mutate})}function Ue(e,n){var r=t.useRef(!1),i=t.useState(0)[1],o=_e(),s=t.useContext(Ee),a=o.defaultQueryObserverOptions(e);a.optimisticResults=!0,a.onError&&(a.onError=ie.batchCalls(a.onError)),a.onSuccess&&(a.onSuccess=ie.batchCalls(a.onSuccess)),a.onSettled&&(a.onSettled=ie.batchCalls(a.onSettled)),a.suspense&&('number'!=typeof a.staleTime&&(a.staleTime=1e3),0===a.cacheTime&&(a.cacheTime=1)),(a.suspense||a.useErrorBoundary)&&(s.isReset()||(a.retryOnMount=!1));var A=t.useState(function(){return new n(o,a)})[0],l=A.getOptimisticResult(a);if(t.useEffect(function(){r.current=!0,s.clearReset();var e=A.subscribe(ie.batchCalls(function(){r.current&&i(function(e){return e+1})}));return A.updateResult(),function(){r.current=!1,e()}},[s,A]),t.useEffect(function(){A.setOptions(a,{listeners:!1})},[a,A]),a.suspense&&l.isLoading)throw A.fetchOptimistic(a).then(function(e){var t=e.data;null==a.onSuccess||a.onSuccess(t),null==a.onSettled||a.onSettled(t,null)}).catch(function(e){s.clearReset(),null==a.onError||a.onError(e),null==a.onSettled||a.onSettled(void 0,e)});if(l.isError&&!s.isReset()&&!l.isFetching&&Se(a.suspense,a.useErrorBoundary,[l.error,A.getCurrentQuery()]))throw l.error;return'tracked'===a.notifyOnChangeProps&&(l=A.trackResult(l,a)),l}function Qe(e,t,n){return Ue(N(e,t,n),he)}var Le=function(e,t){return Le=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])},Le(e,t)};var Oe=function(){return Oe=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},Oe.apply(this,arguments)};function Ie(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&'function'==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function Ne(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{A(r.next(e))}catch(e){o(e)}}function a(e){try{A(r.throw(e))}catch(e){o(e)}}function A(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}A((r=r.apply(e,t||[])).next())})}function Te(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},'function'==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(A){return function(a){if(n)throw new TypeError('Generator is already executing.');for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,A])}}}function Me(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function De(e,t){return Object.defineProperty?Object.defineProperty(e,'raw',{value:t}):e.raw=t,e}function Pe(){for(var e,t,n=0,r='';n<arguments.length;)(e=arguments[n++])&&(t=Re(e))&&(r&&(r+=' '),r+=t);return r}function Re(e){if('string'==typeof e)return e;for(var t,n='',r=0;r<e.length;r++)e[r]&&(t=Re(e[r]))&&(n&&(n+=' '),n+=t);return n}'function'==typeof SuppressedError&&SuppressedError;function He(e){var t=function(e){var t=e.theme,n=e.prefix,r={nextPart:new Map,validators:[]},i=function(e,t){if(!t)return e;return e.map(function(e){return[e[0],e[1].map(function(e){return'string'==typeof e?t+e:'object'==typeof e?Object.fromEntries(Object.entries(e).map(function(e){var n=e[0],r=e[1];return[t+n,r]})):e})]})}(Object.entries(e.classGroups),n);return i.forEach(function(e){var n=e[0];Ke(e[1],r,n,t)}),r}(e),n=e.conflictingClassGroups,r=e.conflictingClassGroupModifiers,i=void 0===r?{}:r;return{getClassGroupId:function(e){var n=e.split('-');return''===n[0]&&1!==n.length&&n.shift(),ze(n,t)||function(e){if(Ve.test(e)){var t=Ve.exec(e)[1],n=t?.substring(0,t.indexOf(':'));if(n)return'arbitrary..'+n}}(e)},getConflictingClassGroupIds:function(e,t){var r=n[e]||[];return t&&i[e]?[].concat(r,i[e]):r}}}function ze(e,t){if(0===e.length)return t.classGroupId;var n=e[0],r=t.nextPart.get(n),i=r?ze(e.slice(1),r):void 0;if(i)return i;if(0!==t.validators.length){var o=e.join('-');return t.validators.find(function(e){return(0,e.validator)(o)})?.classGroupId}}var Ve=/^\[(.+)\]$/;function Ke(e,t,n,r){e.forEach(function(e){if('string'!=typeof e){if('function'==typeof e)return e.isThemeGetter?void Ke(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach(function(e){var i=e[0];Ke(e[1],qe(t,i),n,r)})}else{(''===e?t:qe(t,e)).classGroupId=n}})}function qe(e,t){var n=e;return t.split('-').forEach(function(e){n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n}function Ge(e){if(e<1)return{get:function(){},set:function(){}};var t=0,n=new Map,r=new Map;function i(i,o){n.set(i,o),++t>e&&(t=0,r=n,n=new Map)}return{get:function(e){var t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(i(e,t),t):void 0},set:function(e,t){n.has(e)?n.set(e,t):i(e,t)}}}function We(e){var t=e.separator||':',n=1===t.length,r=t[0],i=t.length;return function(e){for(var o,s=[],a=0,A=0,l=0;l<e.length;l++){var c=e[l];if(0===a){if(c===r&&(n||e.slice(l,l+i)===t)){s.push(e.slice(A,l)),A=l+i;continue}if('/'===c){o=l;continue}}'['===c?a++:']'===c&&a--}var u=0===s.length?e:e.substring(A),d=u.startsWith('!');return{modifiers:s,hasImportantModifier:d,baseClassName:d?u.substring(1):u,maybePostfixModifierPosition:o&&o>A?o-A:void 0}}}var Ye=/\s+/;function Xe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i,o,s=function(e){var n=t[0],A=t.slice(1).reduce(function(e,t){return t(e)},n());return r=function(e){return{cache:Ge(e.cacheSize),splitModifiers:We(e),...He(e)}}(A),i=r.cache.get,o=r.cache.set,s=a,a(e)};function a(e){var t=i(e);if(t)return t;var n=function(e,t){var n=t.splitModifiers,r=t.getClassGroupId,i=t.getConflictingClassGroupIds,o=new Set;return e.trim().split(Ye).map(function(e){var t=n(e),i=t.modifiers,o=t.hasImportantModifier,s=t.baseClassName,a=t.maybePostfixModifierPosition,A=r(a?s.substring(0,a):s),l=Boolean(a);if(!A){if(!a)return{isTailwindClass:!1,originalClassName:e};if(!(A=r(s)))return{isTailwindClass:!1,originalClassName:e};l=!1}var c=function(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(e){'['===e[0]?(t.push.apply(t,n.sort().concat([e])),n=[]):n.push(e)}),t.push.apply(t,n.sort()),t}(i).join(':');return{isTailwindClass:!0,modifierId:o?c+'!':c,classGroupId:A,originalClassName:e,hasPostfixModifier:l}}).reverse().filter(function(e){if(!e.isTailwindClass)return!0;var t=e.modifierId,n=e.classGroupId,r=e.hasPostfixModifier,s=t+n;return!o.has(s)&&(o.add(s),i(n,r).forEach(function(e){return o.add(t+e)}),!0)}).reverse().map(function(e){return e.originalClassName}).join(' ')}(e,r);return o(e,n),n}return function(){return s(Pe.apply(null,arguments))}}function Je(e){var t=function(t){return t[e]||[]};return t.isThemeGetter=!0,t}var Ze=/^\[(?:([a-z-]+):)?(.+)\]$/i,$e=/^\d+\/\d+$/,et=new Set(['px','full','screen']),tt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,nt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,rt=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function it(e){return ct(e)||et.has(e)||$e.test(e)||ot(e)}function ot(e){return mt(e,'length',vt)}function st(e){return mt(e,'size',bt)}function at(e){return mt(e,'position',bt)}function At(e){return mt(e,'url',yt)}function lt(e){return mt(e,'number',ct)}function ct(e){return!Number.isNaN(Number(e))}function ut(e){return e.endsWith('%')&&ct(e.slice(0,-1))}function dt(e){return wt(e)||mt(e,'number',wt)}function ft(e){return Ze.test(e)}function ht(){return!0}function pt(e){return tt.test(e)}function gt(e){return mt(e,'',Bt)}function mt(e,t,n){var r=Ze.exec(e);return!!r&&(r[1]?r[1]===t:n(r[2]))}function vt(e){return nt.test(e)}function bt(){return!1}function yt(e){return e.startsWith('url(')}function wt(e){return Number.isInteger(Number(e))}function Bt(e){return rt.test(e)}function xt(){var e=Je('colors'),t=Je('spacing'),n=Je('blur'),r=Je('brightness'),i=Je('borderColor'),o=Je('borderRadius'),s=Je('borderSpacing'),a=Je('borderWidth'),A=Je('contrast'),l=Je('grayscale'),c=Je('hueRotate'),u=Je('invert'),d=Je('gap'),f=Je('gradientColorStops'),h=Je('gradientColorStopPositions'),p=Je('inset'),g=Je('margin'),m=Je('opacity'),v=Je('padding'),b=Je('saturate'),y=Je('scale'),w=Je('sepia'),B=Je('skew'),x=Je('space'),C=Je('translate'),_=function(){return['auto',ft,t]},j=function(){return[ft,t]},F=function(){return['',it]},E=function(){return['auto',ct,ft]},S=function(){return['','0',ft]},k=function(){return[ct,lt]},U=function(){return[ct,ft]};return{cacheSize:500,theme:{colors:[ht],spacing:[it],blur:['none','',pt,ft],brightness:k(),borderColor:[e],borderRadius:['none','','full',pt,ft],borderSpacing:j(),borderWidth:F(),contrast:k(),grayscale:S(),hueRotate:U(),invert:S(),gap:j(),gradientColorStops:[e],gradientColorStopPositions:[ut,ot],inset:_(),margin:_(),opacity:k(),padding:j(),saturate:k(),scale:k(),sepia:S(),skew:U(),space:j(),translate:j()},classGroups:{aspect:[{aspect:['auto','square','video',ft]}],container:['container'],columns:[{columns:[pt]}],'break-after':[{'break-after':['auto','avoid','all','avoid-page','page','left','right','column']}],'break-before':[{'break-before':['auto','avoid','all','avoid-page','page','left','right','column']}],'break-inside':[{'break-inside':['auto','avoid','avoid-page','avoid-column']}],'box-decoration':[{'box-decoration':['slice','clone']}],box:[{box:['border','content']}],display:['block','inline-block','inline','flex','inline-flex','table','inline-table','table-caption','table-cell','table-column','table-column-group','table-footer-group','table-header-group','table-row-group','table-row','flow-root','grid','inline-grid','contents','list-item','hidden'],float:[{float:['right','left','none']}],clear:[{clear:['left','right','both','none']}],isolation:['isolate','isolation-auto'],'object-fit':[{object:['contain','cover','fill','none','scale-down']}],'object-position':[{object:[].concat(['bottom','center','left','left-bottom','left-top','right','right-bottom','right-top','top'],[ft])}],overflow:[{overflow:['auto','hidden','clip','visible','scroll']}],'overflow-x':[{'overflow-x':['auto','hidden','clip','visible','scroll']}],'overflow-y':[{'overflow-y':['auto','hidden','clip','visible','scroll']}],overscroll:[{overscroll:['auto','contain','none']}],'overscroll-x':[{'overscroll-x':['auto','contain','none']}],'overscroll-y':[{'overscroll-y':['auto','contain','none']}],position:['static','fixed','absolute','relative','sticky'],inset:[{inset:[p]}],'inset-x':[{'inset-x':[p]}],'inset-y':[{'inset-y':[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:['visible','invisible','collapse'],z:[{z:['auto',dt]}],basis:[{basis:_()}],'flex-direction':[{flex:['row','row-reverse','col','col-reverse']}],'flex-wrap':[{flex:['wrap','wrap-reverse','nowrap']}],flex:[{flex:['1','auto','initial','none',ft]}],grow:[{grow:S()}],shrink:[{shrink:S()}],order:[{order:['first','last','none',dt]}],'grid-cols':[{'grid-cols':[ht]}],'col-start-end':[{col:['auto',{span:['full',dt]},ft]}],'col-start':[{'col-start':E()}],'col-end':[{'col-end':E()}],'grid-rows':[{'grid-rows':[ht]}],'row-start-end':[{row:['auto',{span:[dt]},ft]}],'row-start':[{'row-start':E()}],'row-end':[{'row-end':E()}],'grid-flow':[{'grid-flow':['row','col','dense','row-dense','col-dense']}],'auto-cols':[{'auto-cols':['auto','min','max','fr',ft]}],'auto-rows':[{'auto-rows':['auto','min','max','fr',ft]}],gap:[{gap:[d]}],'gap-x':[{'gap-x':[d]}],'gap-y':[{'gap-y':[d]}],'justify-content':[{justify:['normal'].concat(['start','end','center','between','around','evenly','stretch'])}],'justify-items':[{'justify-items':['start','end','center','stretch']}],'justify-self':[{'justify-self':['auto','start','end','center','stretch']}],'align-content':[{content:['normal'].concat(['start','end','center','between','around','evenly','stretch'],['baseline'])}],'align-items':[{items:['start','end','center','baseline','stretch']}],'align-self':[{self:['auto','start','end','center','stretch','baseline']}],'place-content':[{'place-content':[].concat(['start','end','center','between','around','evenly','stretch'],['baseline'])}],'place-items':[{'place-items':['start','end','center','baseline','stretch']}],'place-self':[{'place-self':['auto','start','end','center','stretch']}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],'space-x':[{'space-x':[x]}],'space-x-reverse':['space-x-reverse'],'space-y':[{'space-y':[x]}],'space-y-reverse':['space-y-reverse'],w:[{w:['auto','min','max','fit',ft,t]}],'min-w':[{'min-w':['min','max','fit',ft,it]}],'max-w':[{'max-w':['0','none','full','min','max','fit','prose',{screen:[pt]},pt,ft]}],h:[{h:[ft,t,'auto','min','max','fit']}],'min-h':[{'min-h':['min','max','fit',ft,it]}],'max-h':[{'max-h':[ft,t,'min','max','fit']}],'font-size':[{text:['base',pt,ot]}],'font-smoothing':['antialiased','subpixel-antialiased'],'font-style':['italic','not-italic'],'font-weight':[{font:['thin','extralight','light','normal','medium','semibold','bold','extrabold','black',lt]}],'font-family':[{font:[ht]}],'fvn-normal':['normal-nums'],'fvn-ordinal':['ordinal'],'fvn-slashed-zero':['slashed-zero'],'fvn-figure':['lining-nums','oldstyle-nums'],'fvn-spacing':['proportional-nums','tabular-nums'],'fvn-fraction':['diagonal-fractions','stacked-fractons'],tracking:[{tracking:['tighter','tight','normal','wide','wider','widest',ft]}],'line-clamp':[{'line-clamp':['none',ct,lt]}],leading:[{leading:['none','tight','snug','normal','relaxed','loose',ft,it]}],'list-image':[{'list-image':['none',ft]}],'list-style-type':[{list:['none','disc','decimal',ft]}],'list-style-position':[{list:['inside','outside']}],'placeholder-color':[{placeholder:[e]}],'placeholder-opacity':[{'placeholder-opacity':[m]}],'text-alignment':[{text:['left','center','right','justify','start','end']}],'text-color':[{text:[e]}],'text-opacity':[{'text-opacity':[m]}],'text-decoration':['underline','overline','line-through','no-underline'],'text-decoration-style':[{decoration:[].concat(['solid','dashed','dotted','double','none'],['wavy'])}],'text-decoration-thickness':[{decoration:['auto','from-font',it]}],'underline-offset':[{'underline-offset':['auto',ft,it]}],'text-decoration-color':[{decoration:[e]}],'text-transform':['uppercase','lowercase','capitalize','normal-case'],'text-overflow':['truncate','text-ellipsis','text-clip'],indent:[{indent:j()}],'vertical-align':[{align:['baseline','top','middle','bottom','text-top','text-bottom','sub','super',ft]}],whitespace:[{whitespace:['normal','nowrap','pre','pre-line','pre-wrap','break-spaces']}],break:[{break:['normal','words','all','keep']}],hyphens:[{hyphens:['none','manual','auto']}],content:[{content:['none',ft]}],'bg-attachment':[{bg:['fixed','local','scroll']}],'bg-clip':[{'bg-clip':['border','padding','content','text']}],'bg-opacity':[{'bg-opacity':[m]}],'bg-origin':[{'bg-origin':['border','padding','content']}],'bg-position':[{bg:[].concat(['bottom','center','left','left-bottom','left-top','right','right-bottom','right-top','top'],[at])}],'bg-repeat':[{bg:['no-repeat',{repeat:['','x','y','round','space']}]}],'bg-size':[{bg:['auto','cover','contain',st]}],'bg-image':[{bg:['none',{'gradient-to':['t','tr','r','br','b','bl','l','tl']},At]}],'bg-color':[{bg:[e]}],'gradient-from-pos':[{from:[h]}],'gradient-via-pos':[{via:[h]}],'gradient-to-pos':[{to:[h]}],'gradient-from':[{from:[f]}],'gradient-via':[{via:[f]}],'gradient-to':[{to:[f]}],rounded:[{rounded:[o]}],'rounded-s':[{'rounded-s':[o]}],'rounded-e':[{'rounded-e':[o]}],'rounded-t':[{'rounded-t':[o]}],'rounded-r':[{'rounded-r':[o]}],'rounded-b':[{'rounded-b':[o]}],'rounded-l':[{'rounded-l':[o]}],'rounded-ss':[{'rounded-ss':[o]}],'rounded-se':[{'rounded-se':[o]}],'rounded-ee':[{'rounded-ee':[o]}],'rounded-es':[{'rounded-es':[o]}],'rounded-tl':[{'rounded-tl':[o]}],'rounded-tr':[{'rounded-tr':[o]}],'rounded-br':[{'rounded-br':[o]}],'rounded-bl':[{'rounded-bl':[o]}],'border-w':[{border:[a]}],'border-w-x':[{'border-x':[a]}],'border-w-y':[{'border-y':[a]}],'border-w-s':[{'border-s':[a]}],'border-w-e':[{'border-e':[a]}],'border-w-t':[{'border-t':[a]}],'border-w-r':[{'border-r':[a]}],'border-w-b':[{'border-b':[a]}],'border-w-l':[{'border-l':[a]}],'border-opacity':[{'border-opacity':[m]}],'border-style':[{border:[].concat(['solid','dashed','dotted','double','none'],['hidden'])}],'divide-x':[{'divide-x':[a]}],'divide-x-reverse':['divide-x-reverse'],'divide-y':[{'divide-y':[a]}],'divide-y-reverse':['divide-y-reverse'],'divide-opacity':[{'divide-opacity':[m]}],'divide-style':[{divide:['solid','dashed','dotted','double','none']}],'border-color':[{border:[i]}],'border-color-x':[{'border-x':[i]}],'border-color-y':[{'border-y':[i]}],'border-color-t':[{'border-t':[i]}],'border-color-r':[{'border-r':[i]}],'border-color-b':[{'border-b':[i]}],'border-color-l':[{'border-l':[i]}],'divide-color':[{divide:[i]}],'outline-style':[{outline:[''].concat(['solid','dashed','dotted','double','none'])}],'outline-offset':[{'outline-offset':[ft,it]}],'outline-w':[{outline:[it]}],'outline-color':[{outline:[e]}],'ring-w':[{ring:F()}],'ring-w-inset':['ring-inset'],'ring-color':[{ring:[e]}],'ring-opacity':[{'ring-opacity':[m]}],'ring-offset-w':[{'ring-offset':[it]}],'ring-offset-color':[{'ring-offset':[e]}],shadow:[{shadow:['','inner','none',pt,gt]}],'shadow-color':[{shadow:[ht]}],opacity:[{opacity:[m]}],'mix-blend':[{'mix-blend':['normal','multiply','screen','overlay','darken','lighten','color-dodge','color-burn','hard-light','soft-light','difference','exclusion','hue','saturation','color','luminosity','plus-lighter']}],'bg-blend':[{'bg-blend':['normal','multiply','screen','overlay','darken','lighten','color-dodge','color-burn','hard-light','soft-light','difference','exclusion','hue','saturation','color','luminosity','plus-lighter']}],filter:[{filter:['','none']}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[A]}],'drop-shadow':[{'drop-shadow':['','none',pt,ft]}],grayscale:[{grayscale:[l]}],'hue-rotate':[{'hue-rotate':[c]}],invert:[{invert:[u]}],saturate:[{saturate:[b]}],sepia:[{sepia:[w]}],'backdrop-filter':[{'backdrop-filter':['','none']}],'backdrop-blur':[{'backdrop-blur':[n]}],'backdrop-brightness':[{'backdrop-brightness':[r]}],'backdrop-contrast':[{'backdrop-contrast':[A]}],'backdrop-grayscale':[{'backdrop-grayscale':[l]}],'backdrop-hue-rotate':[{'backdrop-hue-rotate':[c]}],'backdrop-invert':[{'backdrop-invert':[u]}],'backdrop-opacity':[{'backdrop-opacity':[m]}],'backdrop-saturate':[{'backdrop-saturate':[b]}],'backdrop-sepia':[{'backdrop-sepia':[w]}],'border-collapse':[{border:['collapse','separate']}],'border-spacing':[{'border-spacing':[s]}],'border-spacing-x':[{'border-spacing-x':[s]}],'border-spacing-y':[{'border-spacing-y':[s]}],'table-layout':[{table:['auto','fixed']}],caption:[{caption:['top','bottom']}],transition:[{transition:['none','all','','colors','opacity','shadow','transform',ft]}],duration:[{duration:U()}],ease:[{ease:['linear','in','out','in-out',ft]}],delay:[{delay:U()}],animate:[{animate:['none','spin','ping','pulse','bounce',ft]}],transform:[{transform:['','gpu','none']}],scale:[{scale:[y]}],'scale-x':[{'scale-x':[y]}],'scale-y':[{'scale-y':[y]}],rotate:[{rotate:[dt,ft]}],'translate-x':[{'translate-x':[C]}],'translate-y':[{'translate-y':[C]}],'skew-x':[{'skew-x':[B]}],'skew-y':[{'skew-y':[B]}],'transform-origin':[{origin:['center','top','top-right','right','bottom-right','bottom','bottom-left','left','top-left',ft]}],accent:[{accent:['auto',e]}],appearance:['appearance-none'],cursor:[{cursor:['auto','default','pointer','wait','text','move','help','not-allowed','none','context-menu','progress','cell','crosshair','vertical-text','alias','copy','no-drop','grab','grabbing','all-scroll','col-resize','row-resize','n-resize','e-resize','s-resize','w-resize','ne-resize','nw-resize','se-resize','sw-resize','ew-resize','ns-resize','nesw-resize','nwse-resize','zoom-in','zoom-out',ft]}],'caret-color':[{caret:[e]}],'pointer-events':[{'pointer-events':['none','auto']}],resize:[{resize:['none','y','x','']}],'scroll-behavior':[{scroll:['auto','smooth']}],'scroll-m':[{'scroll-m':j()}],'scroll-mx':[{'scroll-mx':j()}],'scroll-my':[{'scroll-my':j()}],'scroll-ms':[{'scroll-ms':j()}],'scroll-me':[{'scroll-me':j()}],'scroll-mt':[{'scroll-mt':j()}],'scroll-mr':[{'scroll-mr':j()}],'scroll-mb':[{'scroll-mb':j()}],'scroll-ml':[{'scroll-ml':j()}],'scroll-p':[{'scroll-p':j()}],'scroll-px':[{'scroll-px':j()}],'scroll-py':[{'scroll-py':j()}],'scroll-ps':[{'scroll-ps':j()}],'scroll-pe':[{'scroll-pe':j()}],'scroll-pt':[{'scroll-pt':j()}],'scroll-pr':[{'scroll-pr':j()}],'scroll-pb':[{'scroll-pb':j()}],'scroll-pl':[{'scroll-pl':j()}],'snap-align':[{snap:['start','end','center','align-none']}],'snap-stop':[{snap:['normal','always']}],'snap-type':[{snap:['none','x','y','both']}],'snap-strictness':[{snap:['mandatory','proximity']}],touch:[{touch:['auto','none','pinch-zoom','manipulation',{pan:['x','left','right','y','up','down']}]}],select:[{select:['none','text','all','auto']}],'will-change':[{'will-change':['auto','scroll','contents','transform',ft]}],fill:[{fill:[e,'none']}],'stroke-w':[{stroke:[it,lt]}],stroke:[{stroke:[e,'none']}],sr:['sr-only','not-sr-only']},conflictingClassGroups:{overflow:['overflow-x','overflow-y'],overscroll:['overscroll-x','overscroll-y'],inset:['inset-x','inset-y','start','end','top','right','bottom','left'],'inset-x':['right','left'],'inset-y':['top','bottom'],flex:['basis','grow','shrink'],gap:['gap-x','gap-y'],p:['px','py','ps','pe','pt','pr','pb','pl'],px:['pr','pl'],py:['pt','pb'],m:['mx','my','ms','me','mt','mr','mb','ml'],mx:['mr','ml'],my:['mt','mb'],'font-size':['leading'],'fvn-normal':['fvn-ordinal','fvn-slashed-zero','fvn-figure','fvn-spacing','fvn-fraction'],'fvn-ordinal':['fvn-normal'],'fvn-slashed-zero':['fvn-normal'],'fvn-figure':['fvn-normal'],'fvn-spacing':['fvn-normal'],'fvn-fraction':['fvn-normal'],rounded:['rounded-s','rounded-e','rounded-t','rounded-r','rounded-b','rounded-l','rounded-ss','rounded-se','rounded-ee','rounded-es','rounded-tl','rounded-tr','rounded-br','rounded-bl'],'rounded-s':['rounded-ss','rounded-es'],'rounded-e':['rounded-se','rounded-ee'],'rounded-t':['rounded-tl','rounded-tr'],'rounded-r':['rounded-tr','rounded-br'],'rounded-b':['rounded-br','rounded-bl'],'rounded-l':['rounded-tl','rounded-bl'],'border-spacing':['border-spacing-x','border-spacing-y'],'border-w':['border-w-s','border-w-e','border-w-t','border-w-r','border-w-b','border-w-l'],'border-w-x':['border-w-r','border-w-l'],'border-w-y':['border-w-t','border-w-b'],'border-color':['border-color-t','border-color-r','border-color-b','border-color-l'],'border-color-x':['border-color-r','border-color-l'],'border-color-y':['border-color-t','border-color-b'],'scroll-m':['scroll-mx','scroll-my','scroll-ms','scroll-me','scroll-mt','scroll-mr','scroll-mb','scroll-ml'],'scroll-mx':['scroll-mr','scroll-ml'],'scroll-my':['scroll-mt','scroll-mb'],'scroll-p':['scroll-px','scroll-py','scroll-ps','scroll-pe','scroll-pt','scroll-pr','scroll-pb','scroll-pl'],'scroll-px':['scroll-pr','scroll-pl'],'scroll-py':['scroll-pt','scroll-pb']},conflictingClassGroupModifiers:{'font-size':['leading']}}}var Ct,_t,jt,Ft=Xe(xt),Et=['a','abbr','address','area','article','aside','audio','b','base','bdi','bdo','big','blockquote','body','br','button','canvas','caption','cite','code','col','colgroup','data','datalist','dd','del','details','dfn','dialog','div','dl','dt','em','embed','fieldset','figcaption','figure','footer','form','h1','h2','h3','h4','h5','h6','head','header','hgroup','hr','html','i','iframe','img','input','ins','kbd','keygen','label','legend','li','link','main','map','mark','menu','menuitem','meta','meter','nav','noscript','object','ol','optgroup','option','output','p','param','picture','pre','progress','q','rp','rt','ruby','s','samp','script','section','select','small','source','span','strong','style','sub','summary','sup','table','tbody','td','textarea','tfoot','th','thead','time','title','tr','track','u','ul','var','video','wbr','circle','clipPath','defs','ellipse','foreignObject','g','image','line','linearGradient','marker','mask','path','pattern','polygon','polyline','radialGradient','rect','stop','svg','text','tspan'],St=Symbol('isTwElement?'),kt=(e,t)=>e.reduce((e,n,r)=>e.concat(n||[],t[r]||[]),[]),Ut=(e,t='')=>{let n=e.join(' ').trim().replace(/\n/g,' ').replace(/\s{2,}/g,' ').split(' ').filter(e=>','!==e),r=t?t.split(' '):[];return Ft(...n.concat(r).filter(e=>' '!==e))},Qt=([e])=>'$'!==e.charAt(0),Lt=e=>!0===e[St],Ot=e=>(n,...r)=>{let i=(o=[])=>{let s=t.forwardRef((i,s)=>{let{$as:a=e,style:A={},...l}=i,c=Lt(e)?e:a,u=o?o.reduce((e,t)=>Object.assign(e,'function'==typeof t?t(i):t),{}):{},d=Lt(c)?l:Object.fromEntries(Object.entries(l).filter(Qt));return t.createElement(c,{...d,style:{...u,...A},ref:s,className:Ut(kt(n,r.map(e=>e({...l,$as:a}))),l.className),...Lt(e)?{$as:a}:{}})});return s[St]=!0,s.displayName='string'!=typeof e?e.displayName||e.name||'tw.Component':'tw.'+e,s.withStyle=e=>i(o.concat(e)),s};return i()},It=Et.reduce((e,t)=>({...e,[t]:Ot(t)}),{}),Nt=Object.assign(Ot,It),Tt=Nt.button(Ct||(Ct=De(['\n vu-h-fit\n vu-rounded-lg\n vu-p-2\n vu-flex\n vu-items-center\n vu-justify-center\n ','\n ','\n ','\n ','\n ','\n'],['\n vu-h-fit\n vu-rounded-lg\n vu-p-2\n vu-flex\n vu-items-center\n vu-justify-center\n ','\n ','\n ','\n ','\n ','\n'])),function(e){return e.disabled?'vu-cursor-not-allowed vu-opacity-25':''},function(e){return e.$fullWidth?'vu-grow':'vu-grow-0'},function(e){return'outline'===e.$fill||'text'===e.$fill?'vu-border-solid vu-border-2 vu-text-black dark:vu-text-slate-250':'vu-text-white'},function(e){return'outline'===e.$fill?'vu-bg-transparent vu-border-black dark:vu-border-dark_mode-100':'vu-bg-primary'},function(e){return'text'===e.$fill&&' vu-bg-lavender_blush vu-border-light_pink'}),Mt=Nt.span(_t||(_t=De(['\n vu-flex\n vu-items-center\n'],['\n vu-flex\n vu-items-center\n']))),Dt=Nt.button(jt||(jt=De(['\n vu-icon-btn\n vu-bg-transparent\n vu-border-0\n vu-rounded-full\n vu-cursor-pointer\n vu-relative\n focus:vu-outline-none\n vu-p-0\n vu-m-0\n vu-inline-flex\n vu-justify-center\n ','\n'],['\n vu-icon-btn\n vu-bg-transparent\n vu-border-0\n vu-rounded-full\n vu-cursor-pointer\n vu-relative\n focus:vu-outline-none\n vu-p-0\n vu-m-0\n vu-inline-flex\n vu-justify-center\n ','\n'])),function(e){return e.disabled?'vu-cursor-not-allowed vu-opacity-25':''});var Pt=['br','col','colgroup','dl','hr','iframe','img','input','link','menuitem','meta','ol','param','select','table','tbody','tfoot','thead','tr','ul','wbr'],Rt={'accept-charset':'acceptCharset',acceptcharset:'acceptCharset',accesskey:'accessKey',allowfullscreen:'allowFullScreen',autocapitalize:'autoCapitalize',autocomplete:'autoComplete',autocorrect:'autoCorrect',autofocus:'autoFocus',autoplay:'autoPlay',autosave:'autoSave',cellpadding:'cellPadding',cellspacing:'cellSpacing',charset:'charSet',class:'className',classid:'classID',classname:'className',colspan:'colSpan',contenteditable:'contentEditable',contextmenu:'contextMenu',controlslist:'controlsList',crossorigin:'crossOrigin',dangerouslysetinnerhtml:'dangerouslySetInnerHTML',datetime:'dateTime',defaultchecked:'defaultChecked',defaultvalue:'defaultValue',enctype:'encType',for:'htmlFor',formmethod:'formMethod',formaction:'formAction',formenctype:'formEncType',formnovalidate:'formNoValidate',formtarget:'formTarget',frameborder:'frameBorder',hreflang:'hrefLang',htmlfor:'htmlFor',httpequiv:'httpEquiv','http-equiv':'httpEquiv',icon:'icon',innerhtml:'innerHTML',inputmode:'inputMode',itemid:'itemID',itemprop:'itemProp',itemref:'itemRef',itemscope:'itemScope',itemtype:'itemType',keyparams:'keyParams',keytype:'keyType',marginwidth:'marginWidth',marginheight:'marginHeight',maxlength:'maxLength',mediagroup:'mediaGroup',minlength:'minLength',nomodule:'noModule',novalidate:'noValidate',playsinline:'playsInline',radiogroup:'radioGroup',readonly:'readOnly',referrerpolicy:'referrerPolicy',rowspan:'rowSpan',spellcheck:'spellCheck',srcdoc:'srcDoc',srclang:'srcLang',srcset:'srcSet',tabindex:'tabIndex',typemustmatch:'typeMustMatch',usemap:'useMap',accentheight:'accentHeight','accent-height':'accentHeight',alignmentbaseline:'alignmentBaseline','alignment-baseline':'alignmentBaseline',allowreorder:'allowReorder',arabicform:'arabicForm','arabic-form':'arabicForm',attributename:'attributeName',attributetype:'attributeType',autoreverse:'autoReverse',basefrequency:'baseFrequency',baselineshift:'baselineShift','baseline-shift':'baselineShift',baseprofile:'baseProfile',calcmode:'calcMode',capheight:'capHeight','cap-height':'capHeight',clippath:'clipPath','clip-path':'clipPath',clippathunits:'clipPathUnits',cliprule:'clipRule','clip-rule':'clipRule',colorinterpolation:'colorInterpolation','color-interpolation':'colorInterpolation',colorinterpolationfilters:'colorInterpolationFilters','color-interpolation-filters':'colorInterpolationFilters',colorprofile:'colorProfile','color-profile':'colorProfile',colorrendering:'colorRendering','color-rendering':'colorRendering',contentscripttype:'contentScriptType',contentstyletype:'contentStyleType',diffuseconstant:'diffuseConstant',dominantbaseline:'dominantBaseline','dominant-baseline':'dominantBaseline',edgemode:'edgeMode',enablebackground:'enableBackground','enable-background':'enableBackground',externalresourcesrequired:'externalResourcesRequired',fillopacity:'fillOpacity','fill-opacity':'fillOpacity',fillrule:'fillRule','fill-rule':'fillRule',filterres:'filterRes',filterunits:'filterUnits',floodopacity:'floodOpacity','flood-opacity':'floodOpacity',floodcolor:'floodColor','flood-color':'floodColor',fontfamily:'fontFamily','font-family':'fontFamily',fontsize:'fontSize','font-size':'fontSize',fontsizeadjust:'fontSizeAdjust','font-size-adjust':'fontSizeAdjust',fontstretch:'fontStretch','font-stretch':'fontStretch',fontstyle:'fontStyle','font-style':'fontStyle',fontvariant:'fontVariant','font-variant':'fontVariant',fontweight:'fontWeight','font-weight':'fontWeight',glyphname:'glyphName','glyph-name':'glyphName',glyphorientationhorizontal:'glyphOrientationHorizontal','glyph-orientation-horizontal':'glyphOrientationHorizontal',glyphorientationvertical:'glyphOrientationVertical','glyph-orientation-vertical':'glyphOrientationVertical',glyphref:'glyphRef',gradienttransform:'gradientTransform',gradientunits:'gradientUnits',horizadvx:'horizAdvX','horiz-adv-x':'horizAdvX',horizoriginx:'horizOriginX','horiz-origin-x':'horizOriginX',imagerendering:'imageRendering','image-rendering':'imageRendering',kernelmatrix:'kernelMatrix',kernelunitlength:'kernelUnitLength',keypoints:'keyPoints',keysplines:'keySplines',keytimes:'keyTimes',lengthadjust:'lengthAdjust',letterspacing:'letterSpacing','letter-spacing':'letterSpacing',lightingcolor:'lightingColor','lighting-color':'lightingColor',limitingconeangle:'limitingConeAngle',markerend:'markerEnd','marker-end':'markerEnd',markerheight:'markerHeight',markermid:'markerMid','marker-mid':'markerMid',markerstart:'markerStart','marker-start':'markerStart',markerunits:'markerUnits',markerwidth:'markerWidth',maskcontentunits:'maskContentUnits',maskunits:'maskUnits',numoctaves:'numOctaves',overlineposition:'overlinePosition','overline-position':'overlinePosition',overlinethickness:'overlineThickness','overline-thickness':'overlineThickness',paintorder:'paintOrder','paint-order':'paintOrder','panose-1':'panose1',pathlength:'pathLength',patterncontentunits:'patternContentUnits',patterntransform:'patternTransform',patternunits:'patternUnits',pointerevents:'pointerEvents','pointer-events':'pointerEvents',pointsatx:'pointsAtX',pointsaty:'pointsAtY',pointsatz:'pointsAtZ',preservealpha:'preserveAlpha',preserveaspectratio:'preserveAspectRatio',primitiveunits:'primitiveUnits',refx:'refX',refy:'refY',renderingintent:'renderingIntent','rendering-intent':'renderingIntent',repeatcount:'repeatCount',repeatdur:'repeatDur',requiredextensions:'requiredExtensions',requiredfeatures:'requiredFeatures',shaperendering:'shapeRendering','shape-rendering':'shapeRendering',specularconstant:'specularConstant',specularexponent:'specularExponent',spreadmethod:'spreadMethod',startoffset:'startOffset',stddeviation:'stdDeviation',stitchtiles:'stitchTiles',stopcolor:'stopColor','stop-color':'stopColor',stopopacity:'stopOpacity','stop-opacity':'stopOpacity',strikethroughposition:'strikethroughPosition','strikethrough-position':'strikethroughPosition',strikethroughthickness:'strikethroughThickness','strikethrough-thickness':'strikethroughThickness',strokedasharray:'strokeDasharray','stroke-dasharray':'strokeDasharray',strokedashoffset:'strokeDashoffset','stroke-dashoffset':'strokeDashoffset',strokelinecap:'strokeLinecap','stroke-linecap':'strokeLinecap',strokelinejoin:'strokeLinejoin','stroke-linejoin':'strokeLinejoin',strokemiterlimit:'strokeMiterlimit','stroke-miterlimit':'strokeMiterlimit',strokewidth:'strokeWidth','stroke-width':'strokeWidth',strokeopacity:'strokeOpacity','stroke-opacity':'strokeOpacity',suppresscontenteditablewarning:'suppressContentEditableWarning',suppresshydrationwarning:'suppressHydrationWarning',surfacescale:'surfaceScale',systemlanguage:'systemLanguage',tablevalues:'tableValues',targetx:'targetX',targety:'targetY',textanchor:'textAnchor','text-anchor':'textAnchor',textdecoration:'textDecoration','text-decoration':'textDecoration',textlength:'textLength',textrendering:'textRendering','text-rendering':'textRendering',underlineposition:'underlinePosition','underline-position':'underlinePosition',underlinethickness:'underlineThickness','underline-thickness':'underlineThickness',unicodebidi:'unicodeBidi','unicode-bidi':'unicodeBidi',unicoderange:'unicodeRange','unicode-range':'unicodeRange',unitsperem:'unitsPerEm','units-per-em':'unitsPerEm',unselectable:'unselectable',valphabetic:'vAlphabetic','v-alphabetic':'vAlphabetic',vectoreffect:'vectorEffect','vector-effect':'vectorEffect',vertadvy:'vertAdvY','vert-adv-y':'vertAdvY',vertoriginx:'vertOriginX','vert-origin-x':'vertOriginX',vertoriginy:'vertOriginY','vert-origin-y':'vertOriginY',vhanging:'vHanging','v-hanging':'vHanging',videographic:'vIdeographic','v-ideographic':'vIdeographic',viewbox:'viewBox',viewtarget:'viewTarget',vmathematical:'vMathematical','v-mathematical':'vMathematical',wordspacing:'wordSpacing','word-spacing':'wordSpacing',writingmode:'writingMode','writing-mode':'writingMode',xchannelselector:'xChannelSelector',xheight:'xHeight','x-height':'xHeight',xlinkactuate:'xlinkActuate','xlink:actuate':'xlinkActuate',xlinkarcrole:'xlinkArcrole','xlink:arcrole':'xlinkArcrole',xlinkhref:'xlinkHref','xlink:href':'xlinkHref',xlinkrole:'xlinkRole','xlink:role':'xlinkRole',xlinkshow:'xlinkShow','xlink:show':'xlinkShow',xlinktitle:'xlinkTitle','xlink:title':'xlinkTitle',xlinktype:'xlinkType','xlink:type':'xlinkType',xmlbase:'xmlBase','xml:base':'xmlBase',xmllang:'xmlLang','xml:lang':'xmlLang','xml:space':'xmlSpace',xmlnsxlink:'xmlnsXlink','xmlns:xlink':'xmlnsXlink',xmlspace:'xmlSpace',ychannelselector:'yChannelSelector',zoomandpan:'zoomAndPan',onblur:'onBlur',onchange:'onChange',onclick:'onClick',oncontextmenu:'onContextMenu',ondoubleclick:'onDoubleClick',ondrag:'onDrag',ondragend:'onDragEnd',ondragenter:'onDragEnter',ondragexit:'onDragExit',ondragleave:'onDragLeave',ondragover:'onDragOver',ondragstart:'onDragStart',ondrop:'onDrop',onerror:'onError',onfocus:'onFocus',oninput:'onInput',oninvalid:'onInvalid',onkeydown:'onKeyDown',onkeypress:'onKeyPress',onkeyup:'onKeyUp',onload:'onLoad',onmousedown:'onMouseDown',onmouseenter:'onMouseEnter',onmouseleave:'onMouseLeave',onmousemove:'onMouseMove',onmouseout:'onMouseOut',onmouseover:'onMouseOver',onmouseup:'onMouseUp',onscroll:'onScroll',onsubmit:'onSubmit',ontouchcancel:'onTouchCancel',ontouchend:'onTouchEnd',ontouchmove:'onTouchMove',ontouchstart:'onTouchStart',onwheel:'onWheel'};function Ht(t,n){const{key:r,level:i,...o}=n;switch(t.nodeType){case 1:return e.createElement(function(e){if(/[a-z]+[A-Z]+[a-z]+/.test(e))return e;return e.toLowerCase()}(t.nodeName),function(e,t){const n={key:t};if(e instanceof Element){const t=e.getAttribute('class');t&&(n.className=t),[...e.attributes].forEach(e=>{switch(e.name){case'class':break;case'style':n[e.name]='string'!=typeof(t=e.value)?{}:t.split(/ ?; ?/).reduce((e,t)=>{const[n,r]=t.split(/ ?: ?/).map((e,t)=>0===t?e.replace(/\s+/g,''):e.trim());if(n&&r){const t=n.replace(/(\w)-(\w)/g,(e,t,n)=>`${t}${n.toUpperCase()}`);let i=r.trim();Number.isNaN(Number(r))||(i=Number(r)),e[n.startsWith('-')?n:t]=i}return e},{});break;case'allowfullscreen':case'allowpaymentrequest':case'async':case'autofocus':case'autoplay':case'checked':case'controls':case'default':case'defer':case'disabled':case'formnovalidate':case'hidden':case'ismap':case'itemscope':case'loop':case'multiple':case'muted':case'nomodule':case'novalidate':case'open':case'readonly':case'required':case'reversed':case'selected':case'typemustmatch':n[Rt[e.name]||e.name]=!0;break;default:n[Rt[e.name]||e.name]=e.value}var t})}return n}(t,r),zt(t.childNodes,i,o));case 3:{const e=t.nodeValue?.toString()??'';if(!o.allowWhiteSpaces&&/^\s+$/.test(e)&&!/[\u00A0\u202F]/.test(e))return null;if(!t.parentNode)return e;const n=t.parentNode.nodeName.toLowerCase();return Pt.includes(n)?(/\S/.test(e),null):e}case 8:default:return null;case 11:return zt(t.childNodes,i,n)}}function zt(e,t,n){const r=[...e].map((e,r)=>Kt(e,{...n,index:r,level:t+1})).filter(Boolean);return r.length?r:null}function Vt(e,t={}){return'string'==typeof e?function(e,t={}){if(!e||'string'!=typeof e)return null;const{includeAllNodes:n=!1,nodeOnly:r=!1,selector:i='body > *',type:o='text/html'}=t;try{const s=(new DOMParser).parseFromString(e,o);if(n){const{childNodes:e}=s.body;return r?e:[...e].map(e=>Kt(e,t))}const a=s.querySelector(i)||s.body.childNodes[0];if(!(a instanceof Node))throw new TypeError('Error parsing input');return r?a:Kt(a,t)}catch(e){process.env.NODE_ENV}return null}(e,t):e instanceof Node?Kt(e,t):null}function Kt(e,t={}){if(!(e&&e instanceof Node))return null;const{actions:n=[],index:r=0,level:i=0,randomKey:o}=t;let s=e,a=`${i}-${r}`;const A=[];return o&&0===i&&(a=`${function(e=6){const t='0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';let n='';for(let r=e;r>0;--r)n+=t[Math.round(61*Math.random())];return n}()}-${a}`),Array.isArray(n)&&n.forEach(t=>{t.condition(s,a,i)&&('function'==typeof t.pre&&(s=t.pre(s,a,i),s instanceof Node||(s=e,process.env.NODE_ENV)),'function'==typeof t.post&&A.push(t.post(s,a,i)))}),A.length?A:Ht(s,{key:a,level:i,...t})}var qt=Object.defineProperty,Gt=(e,t,n)=>((e,t,n)=>t in e?qt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,'symbol'!=typeof t?t+'':t,n),Wt='react-inlinesvg',Yt={IDLE:'idle',LOADING:'loading',LOADED:'loaded',FAILED:'failed',READY:'ready',UNSUPPORTED:'unsupported'};function Xt(e){return e[Math.floor(Math.random()*e.length)]}function Jt(){return!('undefined'==typeof window||!window.document?.createElement)}function Zt(){return function(){if(!document)return!1;const e=document.createElement('div');e.innerHTML='<svg />';const t=e.firstChild;return!!t&&'http://www.w3.org/2000/svg'===t.namespaceURI}()&&'undefined'!=typeof window&&null!==window}async function $t(e,t){const n=await fetch(e,t),r=n.headers.get('content-type'),[i]=(r??'').split(/ ?; ?/);if(n.status>299)throw new Error('Not found');if(!['image/svg+xml','text/plain'].some(e=>i.includes(e)))throw new Error(`Content type isn't valid: ${i}`);return n.text()}function en(e=1){return new Promise(t=>{setTimeout(t,1e3*e)})}var tn,nn=class{constructor(){Gt(this,'cacheApi'),Gt(this,'cacheStore'),Gt(this,'subscribers',[]),Gt(this,'isReady',!1),this.cacheStore=new Map;let e=Wt,t=!1;Jt()&&(e=window.REACT_INLINESVG_CACHE_NAME??Wt,t=!!window.REACT_INLINESVG_PERSISTENT_CACHE&&'caches'in window),t?caches.open(e).then(e=>{this.cacheApi=e}).catch(e=>{this.cacheApi=void 0}).finally(()=>{this.isReady=!0;const e=[...this.subscribers];this.subscribers.length=0,e.forEach(e=>{try{e()}catch(e){}})}):this.isReady=!0}onReady(e){this.isReady?e():this.subscribers.push(e)}async get(e,t){return await(this.cacheApi?this.fetchAndAddToPersistentCache(e,t):this.fetchAndAddToInternalCache(e,t)),this.cacheStore.get(e)?.content??''}set(e,t){this.cacheStore.set(e,t)}isCached(e){return this.cacheStore.get(e)?.status===Yt.LOADED}async fetchAndAddToInternalCache(e,t){const n=this.cacheStore.get(e);if(n?.status!==Yt.LOADING){if(!n?.content){this.cacheStore.set(e,{content:'',status:Yt.LOADING});try{const n=await $t(e,t);this.cacheStore.set(e,{content:n,status:Yt.LOADED})}catch(t){throw this.cacheStore.set(e,{content:'',status:Yt.FAILED}),t}}}else await this.handleLoading(e,async()=>{this.cacheStore.set(e,{content:'',status:Yt.IDLE}),await this.fetchAndAddToInternalCache(e,t)})}async fetchAndAddToPersistentCache(e,t){const n=this.cacheStore.get(e);if(n?.status===Yt.LOADED)return;if(n?.status===Yt.LOADING)return void await this.handleLoading(e,async()=>{this.cacheStore.set(e,{content:'',status:Yt.IDLE}),await this.fetchAndAddToPersistentCache(e,t)});this.cacheStore.set(e,{content:'',status:Yt.LOADING});const r=await(this.cacheApi?.match(e));if(r){const t=await r.text();return void this.cacheStore.set(e,{content:t,status:Yt.LOADED})}try{await(this.cacheApi?.add(new Request(e,t)));const n=await(this.cacheApi?.match(e)),r=await(n?.text())??'';this.cacheStore.set(e,{content:r,status:Yt.LOADED})}catch(t){throw this.cacheStore.set(e,{content:'',status:Yt.FAILED}),t}}async handleLoading(e,t){for(let t=0;t<10;t++){if(this.cacheStore.get(e)?.status!==Yt.LOADING)return;await en(.1)}await t()}keys(){return[...this.cacheStore.keys()]}data(){return[...this.cacheStore.entries()].map(([e,t])=>({[e]:t}))}async delete(e){this.cacheApi&&await this.cacheApi.delete(e),this.cacheStore.delete(e)}async clear(){if(this.cacheApi){const e=await this.cacheApi.keys();await Promise.allSettled(e.map(e=>this.cacheApi.delete(e)))}this.cacheStore.clear()}};function rn(e){const t=o(void 0);return r(()=>{t.current=e}),t.current}function on(e){const{baseURL:t,content:n,description:r,handleError:i,hash:o,preProcessor:s,title:a,uniquifyIDs:A=!1}=e;try{const e=function(e,t){if(t)return t(e);return e}(n,s),i=Vt(e,{nodeOnly:!0});if(!(i&&i instanceof SVGSVGElement))throw new Error('Could not convert the src to a DOM Node');const l=sn(i,{baseURL:t,hash:o,uniquifyIDs:A});if(r){const e=l.querySelector('desc');e?.parentNode&&e.parentNode.removeChild(e);const t=document.createElementNS('http://www.w3.org/2000/svg','desc');t.innerHTML=r,l.prepend(t)}if(void 0!==a){const e=l.querySelector('title');if(e?.parentNode&&e.parentNode.removeChild(e),a){const e=document.createElementNS('http://www.w3.org/2000/svg','title');e.innerHTML=a,l.prepend(e)}}return l}catch(e){return i(e)}}function sn(e,t){const{baseURL:n='',hash:r,uniquifyIDs:i}=t,o=['id','href','xlink:href','xlink:role','xlink:arcrole'],s=['href','xlink:href'];return i?([...e.children].forEach(e=>{if(e.attributes?.length){const t=Object.values(e.attributes).map(e=>{const t=e,i=/url\((.*?)\)/.exec(e.value);return i?.[1]&&(t.value=e.value.replace(i[0],`url(${n}${i[1]}__${r})`)),t});o.forEach(e=>{const n=t.find(t=>t.name===e);var i,o;n&&(i=e,o=n.value,!s.includes(i)||!o||o.includes('#'))&&(n.value=`${n.value}__${r}`)})}return e.children.length?sn(e,t):e}),e):e}function an(e){const{cacheRequests:t=!0,children:n=null,description:l,fetchOptions:c,innerRef:u,loader:d=null,onError:f,onLoad:h,src:p,title:g,uniqueHash:m}=e,[v,b]=i((e,t)=>({...e,...t}),{content:'',element:null,isCached:t&&tn.isCached(e.src),status:Yt.IDLE}),{content:y,element:w,isCached:B,status:x}=v,C=rn(e),_=rn(v),j=o(m??function(e){const t='abcdefghijklmnopqrstuvwxyz',n=`${t}${t.toUpperCase()}1234567890`;let r='';for(let t=0;t<e;t++)r+=Xt(n);return r}(8)),F=o(!1),E=o(!1),S=s(e=>{F.current&&(b({status:'Browser does not support SVG'===e.message?Yt.UNSUPPORTED:Yt.FAILED}),f?.(e))},[f]),k=s((e,t=!1)=>{F.current&&b({content:e,isCached:t,status:Yt.LOADED})},[]),U=s(async()=>{const e=await $t(p,c);k(e)},[c,k,p]),Q=s(()=>{try{const t=Vt(on({...e,handleError:S,hash:j.current,content:y}));if(!t||!a(t))throw new Error('Could not convert the src to a React element');b({element:t,status:Yt.READY})}catch(e){S(e)}},[y,S,e]),L=s(async()=>{const e=/^data:image\/svg[^,]*?(;base64)?,(.*)/u.exec(p);let n;if(e?n=e[1]?window.atob(e[2]):decodeURIComponent(e[2]):p.includes('<svg')&&(n=p),n)k(n);else try{if(t){const e=await tn.get(p,c);k(e,!0)}else await U()}catch(e){S(e)}},[t,U,c,S,k,p]),O=s(async()=>{F.current&&b({content:'',element:null,isCached:!1,status:Yt.LOADING})},[]);r(()=>{if(F.current=!0,Jt()&&!E.current){try{if(x===Yt.IDLE){if(!Zt())throw new Error('Browser does not support SVG');if(!p)throw new Error('Missing src');O()}}catch(e){S(e)}return E.current=!0,()=>{F.current=!1}}},[]),r(()=>{if(Jt()&&C&&C.src!==p){if(!p)return void S(new Error('Missing src'));O()}},[S,O,C,p]),r(()=>{x===Yt.LOADED&&Q()},[x,Q]),r(()=>{Jt()&&C&&C.src===p&&(C.title===g&&C.description===l||Q())},[l,Q,C,p,g]),r(()=>{if(_)switch(x){case Yt.LOADING:_.status!==Yt.LOADING&&L();break;case Yt.LOADED:_.status!==Yt.LOADED&&Q();break;case Yt.READY:_.status!==Yt.READY&&h?.(p,B)}},[L,Q,B,h,_,p,x]);const I=function(e,...t){const n={};for(const r in e)({}).hasOwnProperty.call(e,r)&&(t.includes(r)||(n[r]=e[r]));return n}(e,'baseURL','cacheRequests','children','description','fetchOptions','innerRef','loader','onError','onLoad','preProcessor','src','title','uniqueHash','uniquifyIDs');return Jt()?w?A(w,{ref:u,...I}):[Yt.UNSUPPORTED,Yt.FAILED].includes(x)?n:d:d}function An(e){tn||(tn=new nn);const{loader:i}=e,[o,s]=n(tn.isReady);return r(()=>{o||tn.onReady(()=>{s(!0)})},[o]),o?t.createElement(an,{...e}):i}var ln,cn,un,dn,fn,hn,pn,gn,mn,vn,bn,yn,wn,Bn,xn,Cn,_n,jn=function(e){var n=e.svg,r=e.size,i=void 0===r?24:r,o=e.title,s=e.inline,a=void 0!==s&&s,A=e.iconColor,l=void 0===A?'vu-fill-black dark:vu-fill-slate-250':A,c=e.className;return t.createElement('div',{className:''.concat(l,' ').concat(a?'vu-inline':'',' ').concat(c)},t.createElement(An,{src:n,width:i,height:i,className:'vu-inline-block vu-align-middle',title:o,loader:t.createElement('span',null,'Loading...'),onError:function(e){}}))},Fn=function(e){var n=e.icon,r=e.children,i=e.$fill,o=void 0===i?'solid':i,s=e.iconColor,a=Ie(e,['icon','children','$fill','iconColor']);return t.createElement(Tt,Oe({$fill:o},a),n&&t.createElement(Mt,null,t.createElement(jn,{svg:n,iconColor:s})),r)},En=function(e){var n=e.name,r=e.ariaLabel,i=e.toolTip,o=e.icon,s=e.iconColor,a=e.size,A=e.disableHoverEffect,l=e.className,c=Ie(e,['name','ariaLabel','toolTip','icon','iconColor','size','disableHoverEffect','className']);return t.createElement(Dt,Oe({'aria-label':r,title:null!=i?i:n,className:''.concat(l||'',' ').concat(A?'no-hover':'').trim()},c),t.createElement(jn,{size:a,svg:o,iconColor:s}))},Sn=Nt.div(ln||(ln=De(['\n vu-flex\n vu-border-solid\n vu-border-2\n vu-border-gainsboro\n dark:vu-border-dark_mode-200\n vu-rounded-md\n vu-h-10\n vu-flex\n vu-items-center\n vu-px-3\n vu-gap-x-3\n'],['\n vu-flex\n vu-border-solid\n vu-border-2\n vu-border-gainsboro\n dark:vu-border-dark_mode-200\n vu-rounded-md\n vu-h-10\n vu-flex\n vu-items-center\n vu-px-3\n vu-gap-x-3\n']))),kn=Nt.input(cn||(cn=De(['\n ','\n vu-h-full\n vu-bg-transparent\n vu-focus:outline-none\n dark:vu-text-slate-450\n'],['\n ','\n vu-h-full\n vu-bg-transparent\n vu-focus:outline-none\n dark:vu-text-slate-450\n'])),function(e){return e.$fullWidth?'vu-grow':'vu-grow-0'}),Un=function(e){var n=Ie(e,[]);return t.createElement(Sn,null,t.createElement('div',null,t.createElement(jn,{iconColor:'vu-fill-slate-350 dark:vu-fill-slate-450',svg:'data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20id%3D%22a%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M21.71%2C20.29l-3.68-3.68c1.23-1.54%2C1.98-3.49%2C1.98-5.61%2C0-4.96-4.04-9-9-9S2%2C6.04%2C2%2C11s4.04%2C9%2C9%2C9c2.12%2C0%2C4.07-.74%2C5.61-1.98l3.68%2C3.68c.2%2C.2%2C.45%2C.29%2C.71%2C.29s.51-.1%2C.71-.29c.39-.39%2C.39-1.02%2C0-1.41ZM4%2C11c0-3.86%2C3.14-7%2C7-7s7%2C3.14%2C7%2C7c0%2C1.92-.78%2C3.66-2.04%2C4.93%2C0%2C0-.02%2C0-.02%2C.01s0%2C.02-.01%2C.02c-1.27%2C1.26-3.01%2C2.04-4.93%2C2.04-3.86%2C0-7-3.14-7-7Z%22%2F%3E%3C%2Fsvg%3E'})),t.createElement(kn,Oe({},n)))},Qn=Nt.div(un||(un=De(['\n vu-flex\n vu-flex-col\n vu-items-center\n vu-justify-center\n lg:vu-px-[7.5rem]\n vu-px-2\n vu-py-5\n'],['\n vu-flex\n vu-flex-col\n vu-items-center\n vu-justify-center\n lg:vu-px-[7.5rem]\n vu-px-2\n vu-py-5\n']))),Ln=Nt.div(dn||(dn=De(['\n vu-h-full\n vu-flex\n vu-items-center \n vu-justify-center\n'],['\n vu-h-full\n vu-flex\n vu-items-center \n vu-justify-center\n']))),On=Nt.div(fn||(fn=De(['\n vu-grow\n vu-overflow-y-auto\n'],['\n vu-grow\n vu-overflow-y-auto\n']))),In=Nt.div(hn||(hn=De(['\n vu-bg-alice_blue-500\n dark:vu-bg-dark_mode\n vu-p-2\n vu-w-full \n lg:vu-px-[7.5rem]\n vu-px-2\n'],['\n vu-bg-alice_blue-500\n dark:vu-bg-dark_mode\n vu-p-2\n vu-w-full \n lg:vu-px-[7.5rem]\n vu-px-2\n']))),Nn=Nt.div(pn||(pn=De(['\n vu-w-full\n'],['\n vu-w-full\n']))),Tn=function e(t){function n(e,t,r){var i,o={};if(Array.isArray(e))return e.concat(t);for(i in e)o[r?i.toLowerCase():i]=e[i];for(i in t){var s=r?i.toLowerCase():i,a=t[i];o[s]=s in o&&'object'==typeof a?n(o[s],a,'headers'==s):a}return o}function r(e,r,i,o,s){var a='string'!=typeof e?(r=e).url:e,A={config:r},l=n(t,r),c={};o=o||l.data,(l.transformRequest||[]).map(function(e){o=e(o,l.headers)||o}),l.auth&&(c.authorization=l.auth),o&&'object'==typeof o&&'function'!=typeof o.append&&'function'!=typeof o.text&&(o=JSON.stringify(o),c['content-type']='application/json');try{c[l.xsrfHeaderName]=decodeURIComponent(document.cookie.match(RegExp('(^|; )'+l.xsrfCookieName+'=([^;]*)'))[2])}catch(e){}return l.baseURL&&(a=a.replace(/^(?!.*\/\/)\/?/,l.baseURL+'/')),l.params&&(a+=(~a.indexOf('?')?'&':'?')+(l.paramsSerializer?l.paramsSerializer(l.params):new URLSearchParams(l.params))),(l.fetch||fetch)(a,{method:(i||l.method||'get').toUpperCase(),body:o,headers:n(l.headers,c,!0),credentials:l.withCredentials?'include':s}).then(function(e){for(var t in e)'function'!=typeof e[t]&&(A[t]=e[t]);return'stream'==l.responseType?(A.data=e.body,A):e[l.responseType||'text']().then(function(e){A.data=e,A.data=JSON.parse(e)}).catch(Object).then(function(){return(l.validateStatus?l.validateStatus(e.status):e.ok)?A:Promise.reject(A)})})}return t=t||{},r.request=r,r.get=function(e,t){return r(e,t,'get')},r.delete=function(e,t){return r(e,t,'delete')},r.head=function(e,t){return r(e,t,'head')},r.options=function(e,t){return r(e,t,'options')},r.post=function(e,t,n){return r(e,n,'post',t)},r.put=function(e,t,n){return r(e,n,'put',t)},r.patch=function(e,t,n){return r(e,n,'patch',t)},r.all=Promise.all.bind(Promise),r.spread=function(e){return e.apply.bind(e,e)},r.CancelToken='function'==typeof AbortController?AbortController:Object,r.defaults=t,r.create=e,r}(),Mn=Tn.create(),Dn=function(){return Ne(void 0,void 0,void 0,function(){return Te(this,function(e){switch(e.label){case 0:return[4,Mn.post('/ved/chats/',{session_title:''})];case 1:return[2,e.sent().data]}})})},Pn=function(e){return Ne(void 0,void 0,void 0,function(){return Te(this,function(t){switch(t.label){case 0:return[4,Mn.delete('/ved/chats/'.concat(e,'/'))];case 1:return[2,t.sent().data]}})})},Rn=function(e){return Ne(void 0,void 0,void 0,function(){return Te(this,function(t){switch(t.label){case 0:return[4,Mn.post('/ved/chats/'.concat(e.sessionID,'/feedback'),Oe({message_id:e.message_id,is_liked:e.is_liked},!1===e.is_liked&&{reason:e.reason,comment:e.comment}))];case 1:return[2,t.sent().data]}})})},Hn=Nt.div(gn||(gn=De(['\n vu-relative\n ','\n vu-w-full\n'],['\n vu-relative\n ','\n vu-w-full\n'])),function(e){return e.$fullWidth?'vu-grow':'vu-grow-0'}),zn=Nt.textarea(mn||(mn=De(['\n vu-w-full\n vu-p-4\n vu-pr-10\n vu-bg-white\n dark:vu-bg-dark_mode-700\n vu-border-solid\n vu-border-2\n vu-border-gainsboro\n dark:vu-border-dark_mode-200\n vu-rounded-lg\n vu-focus:outline-none\n vu-resize-none\n'],['\n vu-w-full\n vu-p-4\n vu-pr-10\n vu-bg-white\n dark:vu-bg-dark_mode-700\n vu-border-solid\n vu-border-2\n vu-border-gainsboro\n dark:vu-border-dark_mode-200\n vu-rounded-lg\n vu-focus:outline-none\n vu-resize-none\n']))),Vn=Nt.button(vn||(vn=De(['\n vu-absolute\n vu-rounded-lg\n vu-bottom-5\n vu-right-2\n vu-px-2\n vu-py-2 \n','\n'],['\n vu-absolute\n vu-rounded-lg\n vu-bottom-5\n vu-right-2\n vu-px-2\n vu-py-2 \n','\n'])),function(e){return e.disabled?'vu-cursor-not-allowed\n vu-opacity-25 \n':''}),Kn=function(e){var n=e.$fullWidth,r=e.onClickTextAreaButton,i=e.disabled,o=e.disableTextAreaButton,s=e.icon,a=e.textAreaButtonTitle,A=Ie(e,['$fullWidth','onClickTextAreaButton','disabled','disableTextAreaButton','icon','textAreaButtonTitle']);return t.createElement(Hn,{$fullWidth:n},t.createElement(zn,Oe({disabled:i,rows:2},A,{onKeyDown:function(e){'Enter'===e.key&&(e.preventDefault(),r())}})),t.createElement(Vn,{onClick:r,disabled:o,title:a},t.createElement(jn,{svg:s,size:n?48:40})))},qn=Nt.div(bn||(bn=De(['\n vu-flex\n vu-justify-between\n vu-mb-10\n'],['\n vu-flex\n vu-justify-between\n vu-mb-10\n']))),Gn=Nt.div(yn||(yn=De(['\n vu-font-semibold\n'],['\n vu-font-semibold\n']))),Wn=Nt.div(wn||(wn=De(['\n vu-flex\n vu-items-center\n vu-gap-2\n'],['\n vu-flex\n vu-items-center\n vu-gap-2\n']))),Yn='data:image/svg+xml,%3Csvg%20width%3D%2264%22%20height%3D%2264%22%20viewBox%3D%220%200%2064%2064%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Crect%20y%3D%2211.0137%22%20width%3D%2256.1096%22%20height%3D%2242.9589%22%20rx%3D%2210.2851%22%20fill%3D%22url%28%23paint0_linear_875_570%29%22%2F%3E%3Cpath%20d%3D%22M6.13672%2023.2959C7.30322%2023.3%208.4716%2023.2979%209.6381%2023.2959C11.5184%2029.4229%2013.4006%2035.552%2015.2696%2041.6831C14.1069%2041.6953%2012.9441%2041.6749%2011.7833%2041.6974C9.86351%2035.5785%208.00763%2029.4331%206.13672%2023.2959Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M17.6948%2023.2977C18.8651%2023.2977%2020.0353%2023.2936%2021.2075%2023.2977C19.5394%2028.7308%2017.8921%2034.1721%2016.2052%2039.599C15.5741%2037.7152%2015.0218%2035.8028%2014.4414%2033.9027C15.5403%2030.3718%2016.596%2026.8266%2017.6948%2023.2977Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M23.5477%2023.2949L23.6454%2023.3092C24.8983%2023.5337%2026.17%2023.4133%2027.4342%2023.5011C27.4905%2024.4277%2027.4868%2025.3584%2027.4173%2026.2829C26.1174%2026.3482%2024.8119%2026.2339%2023.5195%2026.4054C23.5778%2025.3686%2023.5458%2024.3317%2023.5477%2023.2949Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M23.5518%2041.6868C23.5593%2040.6194%2023.5292%2039.5499%2023.5743%2038.4805C24.8686%2038.5131%2026.1647%2038.4886%2027.4608%2038.4968C27.4608%2039.5601%2027.4626%2040.6235%2027.4664%2041.6889C26.1609%2041.6889%2024.8554%2041.6889%2023.5518%2041.6868Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M23.6454%2023.3102C27.1824%2023.2694%2030.7195%2023.2939%2034.2566%2023.3C34.2528%2024.3552%2034.2697%2025.4124%2034.2434%2026.4696C31.3563%2026.4635%2028.471%2026.4758%2025.5858%2026.4676C24.8964%2026.4574%2024.2033%2026.5166%2023.5195%2026.4064C24.8119%2026.2349%2026.1174%2026.3492%2027.4173%2026.2839C27.4868%2025.3593%2027.4905%2024.4287%2027.4342%2023.502C26.17%2023.4143%2024.8983%2023.5347%2023.6454%2023.3102Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M37.2069%2023.3033C38.7829%2023.291%2040.357%2023.291%2041.933%2023.3114C41.9368%2024.3544%2041.9255%2025.3994%2041.8935%2026.4423C40.3307%2026.4035%2038.7678%2026.4403%2037.205%2026.4199C37.2031%2025.381%2037.2012%2024.3421%2037.2069%2023.3033Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M37.2053%2038.5327C38.8752%2038.5163%2040.5433%2038.5612%2042.2132%2038.5C42.3447%2039.5531%2042.3371%2040.6206%2042.1869%2041.6696C40.5263%2041.7043%2038.8658%2041.6839%2037.2053%2041.686C37.2034%2040.6349%2037.2015%2039.5838%2037.2053%2038.5327Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M41.9281%2023.3115C43.3877%2023.3809%2044.8246%2023.7932%2046.1151%2024.5361L46.1132%2024.5729C45.9874%2026.075%2046.1452%2027.5874%2045.9554%2029.0855C45.112%2027.5119%2043.5473%2026.5506%2041.8887%2026.4424C41.9206%2025.3994%2041.9319%2024.3545%2041.9281%2023.3115Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M46.1094%2024.5732C48.1625%2025.7897%2049.4943%2028.1572%2049.8362%2030.639C50.1649%2033.0086%2049.9301%2035.566%2048.7561%2037.6396C48.1081%2038.8254%2047.1463%2039.7724%2046.0625%2040.4704C45.9892%2038.9744%2046.1752%2037.462%2045.9141%2035.9803C46.8608%2033.8332%2046.8195%2031.2493%2045.9516%2029.0858C46.1413%2027.5878%2045.9836%2026.0754%2046.1094%2024.5732Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M23.5449%2030.891C26.6443%2030.8869%2029.7437%2030.8849%2032.8431%2030.8889C32.8431%2031.9462%2032.8412%2033.0034%2032.845%2034.0606C29.7794%2034.0586%2026.7119%2034.0892%2023.6482%2034.0443C25.0232%2033.7851%2026.4245%2033.9402%2027.8127%2033.8463C27.8597%2032.9258%2027.854%2032.0033%2027.7977%2031.0828C26.3832%2031.0277%2024.9688%2031.0563%2023.5543%2031.0134L23.5449%2030.891Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M23.5525%2031.0137C24.967%2031.0565%2026.3814%2031.028%2027.7959%2031.0831C27.8522%2032.0035%2027.8579%2032.9261%2027.8109%2033.8466C26.4227%2033.9404%2025.0214%2033.7853%2023.6464%2034.0445L23.5469%2034.0588C23.5563%2033.0424%2023.5506%2032.028%2023.5525%2031.0137Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M42.2022%2038.4756C43.7162%2038.3185%2045.1287%2037.4061%2045.9139%2035.9795C46.175%2037.4612%2045.9891%2038.9736%2046.0623%2040.4697C44.8639%2041.1718%2043.5302%2041.5555%2042.1777%2041.6698C42.328%2040.6207%2042.3355%2039.5533%2042.204%2038.5001L42.2022%2038.4756Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M27.459%2038.496C28.7081%2038.494%2029.9573%2038.496%2031.2083%2038.496C31.2215%2039.5594%2031.2177%2040.6227%2031.1989%2041.6881C29.9535%2041.6881%2028.7081%2041.6881%2027.4646%2041.6881C27.4609%2040.6227%2027.459%2039.5594%2027.459%2038.496Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M31.2164%2038.4965C32.2308%2038.4944%2033.247%2038.4944%2034.2632%2038.4985C34.2632%2039.5619%2034.2632%2040.6232%2034.2632%2041.6865C33.2451%2041.6906%2032.2251%2041.6886%2031.207%2041.6886C31.2258%2040.6232%2031.2296%2039.5598%2031.2164%2038.4965Z%22%20fill%3D%22white%22%2F%3E%3Cellipse%20cx%3D%2239.5543%22%20cy%3D%2232.6579%22%20rx%3D%222.15589%22%20ry%3D%222.34246%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M58.1257%204.07113C58.3053%203.91439%2058.6085%204.03333%2058.6455%204.26568C59.0551%205.58264%2059.6734%206.86572%2060.6407%207.86604C61.2897%208.54657%2062.097%209.06327%2062.9721%209.40117C63.2494%209.48152%2063.247%209.92418%2062.9697%2010.0029C62.1293%2010.3267%2061.3511%2010.8158%2060.7178%2011.4577C59.6852%2012.4856%2059.0496%2013.8349%2058.6172%2015.2093C58.5195%2015.4937%2058.0572%2015.4417%2058.0138%2015.1455C57.5712%2013.723%2056.8828%2012.3352%2055.7824%2011.3065C55.1807%2010.7362%2054.4592%2010.303%2053.6881%2010.0029C53.4076%209.92654%2053.4053%209.47915%2053.6857%209.40039C54.842%208.96166%2055.8628%208.18346%2056.5913%207.18393C57.227%206.32618%2057.6712%205.34004%2057.9902%204.32476C58.0241%204.23575%2058.0446%204.13178%2058.1257%204.07113Z%22%20fill%3D%22url%28%23paint1_linear_875_570%29%22%2F%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22paint0_linear_875_570%22%20x1%3D%22-5.10998%22%20y1%3D%2230.8996%22%20x2%3D%2257.7403%22%20y2%3D%2232.9819%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20offset%3D%220.0561277%22%20stop-color%3D%22%23A42783%22%2F%3E%3Cstop%20offset%3D%220.503827%22%20stop-color%3D%22%23E22432%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F59620%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22paint1_linear_875_570%22%20x1%3D%2253.9149%22%20y1%3D%229.69863%22%20x2%3D%2262.682%22%20y2%3D%229.69863%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23B2256F%22%2F%3E%3Cstop%20offset%3D%220.415197%22%20stop-color%3D%22%23D52440%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F08123%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3C%2Fsvg%3E',Xn='data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20id%3D%22a%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M13.41%2C12l6.29-6.29c.39-.39%2C.39-1.02%2C0-1.41s-1.02-.39-1.41%2C0l-6.29%2C6.29L5.71%2C4.29c-.39-.39-1.02-.39-1.41%2C0s-.39%2C1.02%2C0%2C1.41l6.29%2C6.29-6.29%2C6.29c-.39%2C.39-.39%2C1.02%2C0%2C1.41%2C.2%2C.2%2C.45%2C.29%2C.71%2C.29s.51-.1%2C.71-.29l6.29-6.29%2C6.29%2C6.29c.2%2C.2%2C.45%2C.29%2C.71%2C.29s.51-.1%2C.71-.29c.39-.39%2C.39-1.02%2C0-1.41l-6.29-6.29Z%22%2F%3E%3C%2Fsvg%3E',Jn='data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20id%3D%22Layer_1%22%20data-name%3D%22Layer%201%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%20%20%3Cpath%20d%3D%22m5.09%2C20.53c-.13%2C0-.26-.02-.38-.08-.37-.15-.62-.52-.62-.92V7.24c0-.68.26-1.31.74-1.79s1.12-.74%2C1.79-.74h10.75c.68%2C0%2C1.31.26%2C1.79.74s.74%2C1.12.74%2C1.79v7.68c0%2C.68-.26%2C1.31-.74%2C1.79-.48.48-1.12.74-1.79.74h-8.8l-2.78%2C2.78c-.19.19-.45.29-.71.29Zm1.54-13.82c-.14%2C0-.28.06-.38.16s-.16.24-.16.38v9.87l1.36-1.36c.19-.19.44-.29.71-.29h9.22c.14%2C0%2C.28-.06.38-.16s.16-.24.16-.38v-7.68c0-.14-.06-.28-.16-.38s-.24-.16-.38-.16H6.62Z%22%2F%3E%3C%2Fsvg%3E',Zn=function(e){var n=e.handleClickBackBtn,r=e.getNewChatId,i=e.openSideBar,o=e.onDownloadConversation,s=e.isDownloadDisabled;return t.createElement(qn,null,t.createElement(Wn,null,t.createElement(jn,{svg:Yn,size:36}),t.createElement(Gn,null,'AI Assistant')),t.createElement(Mt,{className:'lg:vu-hidden'},t.createElement(En,{name:'new',icon:Jn,onClick:function(){return i(!0)}}),t.createElement(En,{name:'new',icon:'data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20id%3D%22a%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M18.92%2C11h-5.92V5.08c0-.55-.45-1-1-1s-1%2C.45-1%2C1v5.92H5.08c-.55%2C0-1%2C.45-1%2C1s.45%2C1%2C1%2C1h5.92v5.92c0%2C.55%2C.45%2C1%2C1%2C1s1-.45%2C1-1v-5.92h5.92c.55%2C0%2C1-.45%2C1-1s-.45-1-1-1Z%22%2F%3E%3C%2Fsvg%3E',onClick:r})),t.createElement('div',{className:'vu-flex\n vu-items-center\n vu-gap-4'},t.createElement(En,{name:'Download conversation',icon:'data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20id%3D%22a%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22m21%2C13.58c-.55%2C0-1%2C.45-1%2C1v4.42c0%2C.55-.45%2C1-1%2C1H5c-.55%2C0-1-.45-1-1v-4.42c0-.55-.45-1-1-1s-1%2C.45-1%2C1v4.42c0%2C1.65%2C1.35%2C3%2C3%2C3h14c1.65%2C0%2C3-1.35%2C3-3v-4.42c0-.55-.45-1-1-1Z%22%2F%3E%3Cpath%20d%3D%22m11.29%2C16.71c.09.09.2.17.33.22.12.05.25.08.38.08s.26-.03.38-.08c.12-.05.23-.12.33-.22l4-4c.39-.39.39-1.02%2C0-1.41s-1.02-.39-1.41%2C0l-2.29%2C2.29V3c0-.55-.45-1-1-1s-1%2C.45-1%2C1v10.59l-2.29-2.29c-.39-.39-1.02-.39-1.41%2C0s-.39%2C1.02%2C0%2C1.41l4%2C4Z%22%2F%3E%3C%2Fsvg%3E',onClick:o,disabled:s}),t.createElement(En,{name:'Go to documentation',icon:'data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%20%20%20%20%3Cpath%20%20%20%20%20%20%20%20d%3D%22M5.16957%202.25L5.633%202.25C6.72515%202.24999%207.59065%202.24999%208.28827%202.30699C9.00166%202.36527%209.60528%202.48688%2010.1565%202.76772C10.9109%203.15215%2011.5463%203.72988%2012%204.43826C12.4537%203.72988%2013.0891%203.15215%2013.8435%202.76772C14.3947%202.48688%2014.9983%202.36527%2015.7117%202.30699C16.4094%202.24999%2017.2749%202.24999%2018.367%202.25L18.8304%202.25C19.3646%202.24999%2019.8104%202.24998%2020.1747%202.27974C20.5546%202.31078%2020.9112%202.37789%2021.2485%202.54973C21.7659%202.81338%2022.1866%203.23408%2022.4503%203.75153C22.6221%204.08879%2022.6892%204.44545%2022.7203%204.82533C22.75%205.18956%2022.75%205.6354%2022.75%206.16955V14.8305C22.75%2015.3646%2022.75%2015.8104%2022.7203%2016.1747C22.6892%2016.5546%2022.6221%2016.9112%2022.4503%2017.2485C22.1866%2017.7659%2021.7659%2018.1866%2021.2485%2018.4503C20.9112%2018.6221%2020.5546%2018.6892%2020.1747%2018.7203C19.8104%2018.75%2019.3646%2018.75%2018.8305%2018.75H17.4252C16.1262%2018.75%2015.633%2018.7576%2015.1963%2018.8902C14.7875%2019.0144%2014.4072%2019.2179%2014.0771%2019.4892C13.7246%2019.779%2013.4446%2020.1851%2012.7241%2021.2659L12.624%2021.416C12.4849%2021.6247%2012.2508%2021.75%2012%2021.75C11.7492%2021.75%2011.5151%2021.6247%2011.376%2021.416L11.2759%2021.2659C10.5554%2020.1851%2010.2754%2019.779%209.92288%2019.4892C9.59281%2019.2179%209.21248%2019.0144%208.80367%2018.8902C8.36704%2018.7576%207.87381%2018.75%206.57482%2018.75H5.16955C4.6354%2018.75%204.18956%2018.75%203.82533%2018.7203C3.44545%2018.6892%203.08879%2018.6221%202.75153%2018.4503C2.23408%2018.1866%201.81338%2017.7659%201.54973%2017.2485C1.37789%2016.9112%201.31078%2016.5546%201.27974%2016.1747C1.24998%2015.8104%201.24999%2015.3646%201.25%2014.8304V6.16957C1.24999%205.63541%201.24998%205.18956%201.27974%204.82533C1.31078%204.44545%201.37789%204.08879%201.54973%203.75153C1.81338%203.23408%202.23408%202.81338%202.75153%202.54973C3.08879%202.37789%203.44545%202.31078%203.82533%202.27974C4.18956%202.24998%204.63541%202.24999%205.16957%202.25ZM11.25%209.4C11.25%208.26752%2011.2494%207.46327%2011.198%206.83388C11.1473%206.21326%2011.0509%205.829%2010.8958%205.52453C10.5842%204.913%2010.087%204.41582%209.47547%204.10423C9.171%203.94909%208.78675%203.85271%208.16612%203.80201C7.53674%203.75058%206.73248%203.75%205.6%203.75H5.2C4.62757%203.75%204.24336%203.75058%203.94748%203.77476C3.66036%203.79822%203.52307%203.8401%203.43251%203.88624C3.19731%204.00608%203.00608%204.19731%202.88624%204.43251C2.8401%204.52307%202.79822%204.66036%202.77476%204.94748C2.75058%205.24336%202.75%205.62757%202.75%206.2V14.8C2.75%2015.3724%202.75058%2015.7566%202.77476%2016.0525C2.79822%2016.3396%202.8401%2016.4769%202.88624%2016.5675C3.00608%2016.8027%203.19731%2016.9939%203.43251%2017.1138C3.52307%2017.1599%203.66036%2017.2018%203.94748%2017.2252C4.24336%2017.2494%204.62757%2017.25%205.2%2017.25H6.57482C6.61574%2017.25%206.65614%2017.25%206.69605%2017.25C7.83187%2017.2497%208.56323%2017.2496%209.23954%2017.455C9.83705%2017.6364%2010.3929%2017.9339%2010.8753%2018.3304C11.0066%2018.4383%2011.1299%2018.5555%2011.25%2018.6844V9.4ZM12.75%2018.6844C12.8702%2018.5555%2012.9934%2018.4383%2013.1247%2018.3304C13.6071%2017.9339%2014.163%2017.6364%2014.7605%2017.455C15.4368%2017.2496%2016.1681%2017.2497%2017.304%2017.25C17.3439%2017.25%2017.3843%2017.25%2017.4252%2017.25H18.8C19.3724%2017.25%2019.7566%2017.2494%2020.0525%2017.2252C20.3396%2017.2018%2020.4769%2017.1599%2020.5675%2017.1138C20.8027%2016.9939%2020.9939%2016.8027%2021.1138%2016.5675C21.1599%2016.4769%2021.2018%2016.3396%2021.2252%2016.0525C21.2494%2015.7566%2021.25%2015.3724%2021.25%2014.8V6.2C21.25%205.62757%2021.2494%205.24336%2021.2252%204.94748C21.2018%204.66036%2021.1599%204.52307%2021.1138%204.43251C20.9939%204.19731%2020.8027%204.00608%2020.5675%203.88624C20.4769%203.8401%2020.3396%203.79822%2020.0525%203.77476C19.7566%203.75058%2019.3724%203.75%2018.8%203.75H18.4C17.2675%203.75%2016.4633%203.75058%2015.8339%203.80201C15.2133%203.85271%2014.829%203.94909%2014.5245%204.10423C13.913%204.41582%2013.4158%204.913%2013.1042%205.52453C12.9491%205.829%2012.8527%206.21326%2012.802%206.83388C12.7506%207.46327%2012.75%208.26752%2012.75%209.4V18.6844Z%22%20%2F%3E%3C%2Fsvg%3E',onClick:function(){return window.open('/docs/user-guide/platform-guide/ved-ai/','_blank')}}),t.createElement(En,{name:'Close chat',icon:Xn,onClick:n})))},$n=Nt.div(Bn||(Bn=De(['\n vu-w-full\n vu-flex\n vu-justify-center\n vu-items-center\n vu-grow\n vu-gap-3.5\n'],['\n vu-w-full\n vu-flex\n vu-justify-center\n vu-items-center\n vu-grow\n vu-gap-3.5\n']))),er=Nt.div(xn||(xn=De(['\n vu-flex\n vu-flex-col\n'],['\n vu-flex\n vu-flex-col\n']))),tr=Nt.p(Cn||(Cn=De(['\n vu-text-[68px]\n vu-font-medium\n vu-m-0\n'],['\n vu-text-[68px]\n vu-font-medium\n vu-m-0\n']))),nr=Nt.div(_n||(_n=De(['\n vu-text-2xl\n'],['\n vu-text-2xl\n']))),rr=function(e){var n=e.errorHeading,r=e.errorInfo;return t.createElement($n,null,t.createElement(jn,{svg:'data:image/svg+xml,%3Csvg%20width%3D%22194%22%20height%3D%22194%22%20viewBox%3D%220%200%20194%20194%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20id%3D%22error_FILL0_wght400_GRAD0_opsz24%201%22%3E%3Cpath%20id%3D%22Vector%22%20d%3D%22M96.9994%20137.416C99.2896%20137.416%20101.209%20136.641%20102.759%20135.092C104.308%20133.543%20105.083%20131.623%20105.083%20129.333C105.083%20127.042%20104.308%20125.123%20102.759%20123.573C101.209%20122.024%2099.2896%20121.249%2096.9994%20121.249C94.7091%20121.249%2092.7893%20122.024%2091.24%20123.573C89.6907%20125.123%2088.916%20127.042%2088.916%20129.333C88.916%20131.623%2089.6907%20133.543%2091.24%20135.092C92.7893%20136.641%2094.7091%20137.416%2096.9994%20137.416ZM88.916%20105.083H105.083V56.5827H88.916V105.083ZM96.9994%20177.833C85.8174%20177.833%2075.3091%20175.711%2065.4743%20171.467C55.6396%20167.223%2047.0848%20161.464%2039.8098%20154.189C32.5348%20146.914%2026.7754%20138.359%2022.5316%20128.524C18.2879%20118.69%2016.166%20108.181%2016.166%2096.9994C16.166%2085.8174%2018.2879%2075.3091%2022.5316%2065.4743C26.7754%2055.6396%2032.5348%2047.0848%2039.8098%2039.8098C47.0848%2032.5348%2055.6396%2026.7754%2065.4743%2022.5316C75.3091%2018.2879%2085.8174%2016.166%2096.9994%2016.166C108.181%2016.166%20118.69%2018.2879%20128.524%2022.5316C138.359%2026.7754%20146.914%2032.5348%20154.189%2039.8098C161.464%2047.0848%20167.223%2055.6396%20171.467%2065.4743C175.711%2075.3091%20177.833%2085.8174%20177.833%2096.9994C177.833%20108.181%20175.711%20118.69%20171.467%20128.524C167.223%20138.359%20161.464%20146.914%20154.189%20154.189C146.914%20161.464%20138.359%20167.223%20128.524%20171.467C118.69%20175.711%20108.181%20177.833%2096.9994%20177.833ZM96.9994%20161.666C115.052%20161.666%20130.343%20155.401%20142.872%20142.872C155.401%20130.343%20161.666%20115.052%20161.666%2096.9994C161.666%2078.9466%20155.401%2063.6556%20142.872%2051.1264C130.343%2038.5973%20115.052%2032.3327%2096.9994%2032.3327C78.9466%2032.3327%2063.6556%2038.5973%2051.1264%2051.1264C38.5973%2063.6556%2032.3327%2078.9466%2032.3327%2096.9994C32.3327%20115.052%2038.5973%20130.343%2051.1264%20142.872C63.6556%20155.401%2078.9466%20161.666%2096.9994%20161.666Z%22%20fill%3D%22url%28%23paint0_linear_956_1542%29%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22paint0_linear_956_1542%22%20x1%3D%2296.9994%22%20y1%3D%2216.166%22%20x2%3D%2296.9994%22%20y2%3D%22177.833%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23AD0B91%22%2F%3E%3Cstop%20offset%3D%220.5%22%20stop-color%3D%22%23E3024D%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23FF6000%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3C%2Fsvg%3E',size:194}),t.createElement(er,null,t.createElement(tr,null,n),r&&t.createElement(nr,null,r)))},ir='undefined'!=typeof globalThis?globalThis:'undefined'!=typeof window?window:'undefined'!=typeof global?global:'undefined'!=typeof self?self:{};function or(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,'default')?e.default:e}function sr(e){if(e.__esModule)return e;var t=e.default;if('function'==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,'__esModule',{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var ar,Ar={exports:{}},lr={exports:{}},cr={};var ur,dr,fr,hr,pr,gr,mr,vr,br,yr,wr,Br,xr,Cr,_r={};
|
|
2
2
|
/** @license React v16.13.1
|
|
3
3
|
* react-is.development.js
|
|
4
4
|
*
|
|
@@ -11,7 +11,7 @@ import*as e from'react';import t,{useState as n,useEffect as r,useReducer as i,u
|
|
|
11
11
|
object-assign
|
|
12
12
|
(c) Sindre Sorhus
|
|
13
13
|
@license MIT
|
|
14
|
-
*/function Fr(){if(hr)return fr;hr=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return fr=function(){try{if(!Object.assign)return!1;var e=new String('abc');if(e[5]='de','5'===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t['_'+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if('0123456789'!==r.join(''))return!1;var i={};return'abcdefghijklmnopqrst'.split('').forEach(function(e){i[e]=e}),'abcdefghijklmnopqrst'===Object.keys(Object.assign({},i)).join('')}catch(e){return!1}}()?Object.assign:function(r,i){for(var o,s,a=function(e){if(null==e)throw new TypeError('Object.assign cannot be called with null or undefined');return Object(e)}(r),A=1;A<arguments.length;A++){for(var l in o=Object(arguments[A]))t.call(o,l)&&(a[l]=o[l]);if(e){s=e(o);for(var c=0;c<s.length;c++)n.call(o,s[c])&&(a[s[c]]=o[s[c]])}}return a},fr}function Er(){if(gr)return pr;gr=1;return pr='SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'}function Sr(){return vr?mr:(vr=1,mr=Function.call.bind(Object.prototype.hasOwnProperty))}if('production'!==process.env.NODE_ENV){var kr=jr();Ar.exports=function(){if(Br)return wr;Br=1;var e=jr(),t=Fr(),n=Er(),r=Sr(),i=function(){if(yr)return br;yr=1;var e=function(){};if('production'!==process.env.NODE_ENV){var t=Er(),n={},r=Sr();e=function(e){var t='Warning: '+e;try{throw new Error(t)}catch(e){}}}function i(i,o,s,a,A){if('production'!==process.env.NODE_ENV)for(var l in i)if(r(i,l)){var c;try{if('function'!=typeof i[l]){var u=Error((a||'React class')+': '+s+' type `'+l+'` is invalid; it must be a function, usually from the `prop-types` package, but received `'+typeof i[l]+'`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');throw u.name='Invariant Violation',u}c=i[l](o,l,a,s,null,t)}catch(e){c=e}if(!c||c instanceof Error||e((a||'React class')+': type specification of '+s+' `'+l+'` is invalid; the type checker function must return `null` or an `Error` but returned a '+typeof c+'. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).'),c instanceof Error&&!(c.message in n)){n[c.message]=!0;var d=A?A():'';e('Failed '+s+' type: '+c.message+(null!=d?d:''))}}}return i.resetWarningCache=function(){'production'!==process.env.NODE_ENV&&(n={})},br=i}(),o=function(){};function s(){return null}return'production'!==process.env.NODE_ENV&&(o=function(e){var t='Warning: '+e;try{throw new Error(t)}catch(e){}}),wr=function(a,A){var l='function'==typeof Symbol&&Symbol.iterator,c='<<anonymous>>',u={array:p('array'),bigint:p('bigint'),bool:p('boolean'),func:p('function'),number:p('number'),object:p('object'),string:p('string'),symbol:p('symbol'),any:h(s),arrayOf:function(e){return h(function(t,r,i,o,s){if('function'!=typeof e)return new f('Property `'+s+'` of component `'+i+'` has invalid PropType notation inside arrayOf.');var a=t[r];if(!Array.isArray(a))return new f('Invalid '+o+' `'+s+'` of type `'+v(a)+'` supplied to `'+i+'`, expected an array.');for(var A=0;A<a.length;A++){var l=e(a,A,i,o,s+'['+A+']',n);if(l instanceof Error)return l}return null})},element:h(function(e,t,n,r,i){var o=e[t];return a(o)?null:new f('Invalid '+r+' `'+i+'` of type `'+v(o)+'` supplied to `'+n+'`, expected a single ReactElement.')}),elementType:h(function(t,n,r,i,o){var s=t[n];return e.isValidElementType(s)?null:new f('Invalid '+i+' `'+o+'` of type `'+v(s)+'` supplied to `'+r+'`, expected a single ReactElement type.')}),instanceOf:function(e){return h(function(t,n,r,i,o){if(!(t[n]instanceof e)){var s=e.name||c;return new f('Invalid '+i+' `'+o+'` of type `'+((a=t[n]).constructor&&a.constructor.name?a.constructor.name:c)+'` supplied to `'+r+'`, expected instance of `'+s+'`.')}var a;return null})},node:h(function(e,t,n,r,i){return m(e[t])?null:new f('Invalid '+r+' `'+i+'` supplied to `'+n+'`, expected a ReactNode.')}),objectOf:function(e){return h(function(t,i,o,s,a){if('function'!=typeof e)return new f('Property `'+a+'` of component `'+o+'` has invalid PropType notation inside objectOf.');var A=t[i],l=v(A);if('object'!==l)return new f('Invalid '+s+' `'+a+'` of type `'+l+'` supplied to `'+o+'`, expected an object.');for(var c in A)if(r(A,c)){var u=e(A,c,o,s,a+'.'+c,n);if(u instanceof Error)return u}return null})},oneOf:function(e){return Array.isArray(e)?h(function(t,n,r,i,o){for(var s=t[n],a=0;a<e.length;a++)if(d(s,e[a]))return null;var A=JSON.stringify(e,function(e,t){return'symbol'===b(t)?String(t):t});return new f('Invalid '+i+' `'+o+'` of value `'+String(s)+'` supplied to `'+r+'`, expected one of '+A+'.')}):('production'!==process.env.NODE_ENV&&o(arguments.length>1?'Invalid arguments supplied to oneOf, expected an array, got '+arguments.length+' arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).':'Invalid argument supplied to oneOf, expected an array.'),s)},oneOfType:function(e){if(!Array.isArray(e))return'production'!==process.env.NODE_ENV&&o('Invalid argument supplied to oneOfType, expected an instance of array.'),s;for(var t=0;t<e.length;t++){var i=e[t];if('function'!=typeof i)return o('Invalid argument supplied to oneOfType. Expected an array of check functions, but received '+y(i)+' at index '+t+'.'),s}return h(function(t,i,o,s,a){for(var A=[],l=0;l<e.length;l++){var c=(0,e[l])(t,i,o,s,a,n);if(null==c)return null;c.data&&r(c.data,'expectedType')&&A.push(c.data.expectedType)}return new f('Invalid '+s+' `'+a+'` supplied to `'+o+'`'+(A.length>0?', expected one of type ['+A.join(', ')+']':'')+'.')})},shape:function(e){return h(function(t,r,i,o,s){var a=t[r],A=v(a);if('object'!==A)return new f('Invalid '+o+' `'+s+'` of type `'+A+'` supplied to `'+i+'`, expected `object`.');for(var l in e){var c=e[l];if('function'!=typeof c)return g(i,o,s,l,b(c));var u=c(a,l,i,o,s+'.'+l,n);if(u)return u}return null})},exact:function(e){return h(function(i,o,s,a,A){var l=i[o],c=v(l);if('object'!==c)return new f('Invalid '+a+' `'+A+'` of type `'+c+'` supplied to `'+s+'`, expected `object`.');var u=t({},i[o],e);for(var d in u){var h=e[d];if(r(e,d)&&'function'!=typeof h)return g(s,a,A,d,b(h));if(!h)return new f('Invalid '+a+' `'+A+'` key `'+d+'` supplied to `'+s+'`.\nBad object: '+JSON.stringify(i[o],null,' ')+'\nValid keys: '+JSON.stringify(Object.keys(e),null,' '));var p=h(l,d,s,a,A+'.'+d,n);if(p)return p}return null})}};function d(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function f(e,t){this.message=e,this.data=t&&'object'==typeof t?t:{},this.stack=''}function h(e){if('production'!==process.env.NODE_ENV)var t={},r=0;function i(i,s,a,l,u,d,h){if(l=l||c,d=d||a,h!==n){if(A){var p=new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types');throw p.name='Invariant Violation',p}if('production'!==process.env.NODE_ENV&&'undefined'!=typeof console){var g=l+':'+a;!t[g]&&r<3&&(o('You are manually calling a React.PropTypes validation function for the `'+d+'` prop on `'+l+'`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.'),t[g]=!0,r++)}}return null==s[a]?i?null===s[a]?new f('The '+u+' `'+d+'` is marked as required in `'+l+'`, but its value is `null`.'):new f('The '+u+' `'+d+'` is marked as required in `'+l+'`, but its value is `undefined`.'):null:e(s,a,l,u,d)}var s=i.bind(null,!1);return s.isRequired=i.bind(null,!0),s}function p(e){return h(function(t,n,r,i,o,s){var a=t[n];return v(a)!==e?new f('Invalid '+i+' `'+o+'` of type `'+b(a)+'` supplied to `'+r+'`, expected `'+e+'`.',{expectedType:e}):null})}function g(e,t,n,r,i){return new f((e||'React class')+': '+t+' type `'+n+'.'+r+'` is invalid; it must be a function, usually from the `prop-types` package, but received `'+i+'`.')}function m(e){switch(typeof e){case'number':case'string':case'undefined':return!0;case'boolean':return!e;case'object':if(Array.isArray(e))return e.every(m);if(null===e||a(e))return!0;var t=function(e){var t=e&&(l&&e[l]||e['@@iterator']);if('function'==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!m(n.value))return!1}else for(;!(n=r.next()).done;){var i=n.value;if(i&&!m(i[1]))return!1}return!0;default:return!1}}function v(e){var t=typeof e;return Array.isArray(e)?'array':e instanceof RegExp?'object':function(e,t){return'symbol'===e||!!t&&('Symbol'===t['@@toStringTag']||'function'==typeof Symbol&&t instanceof Symbol)}(t,e)?'symbol':t}function b(e){if(null==e)return''+e;var t=v(e);if('object'===t){if(e instanceof Date)return'date';if(e instanceof RegExp)return'regexp'}return t}function y(e){var t=b(e);switch(t){case'array':case'object':return'an '+t;case'boolean':case'date':case'regexp':return'a '+t;default:return t}}return f.prototype=Error.prototype,u.checkPropTypes=i,u.resetWarningCache=i.resetWarningCache,u.PropTypes=u,u},wr}()(kr.isElement,!0)}else Ar.exports=function(){if(Cr)return xr;Cr=1;var e=Er();function t(){}function n(){}return n.resetWarningCache=t,xr=function(){function r(t,n,r,i,o,s){if(s!==e){var a=new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types');throw a.name='Invariant Violation',a}}function i(){return r}r.isRequired=r;var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o}}()();var Ur=Ar.exports,Qr=or(Ur),Lr=Yr(),Or=e=>Kr(e,Lr),Ir=Yr();Or.write=e=>Kr(e,Ir);var Nr=Yr();Or.onStart=e=>Kr(e,Nr);var Tr=Yr();Or.onFrame=e=>Kr(e,Tr);var Mr=Yr();Or.onFinish=e=>Kr(e,Mr);var Dr=[];Or.setTimeout=(e,t)=>{const n=Or.now()+t,r=()=>{const e=Dr.findIndex(e=>e.cancel==r);~e&&Dr.splice(e,1),zr-=~e?1:0},i={time:n,handler:e,cancel:r};return Dr.splice(Pr(n),0,i),zr+=1,qr(),i};var Pr=e=>~(~Dr.findIndex(t=>t.time>e)||~Dr.length);Or.cancel=e=>{Nr.delete(e),Tr.delete(e),Mr.delete(e),Lr.delete(e),Ir.delete(e)},Or.sync=e=>{Vr=!0,Or.batchedUpdates(e),Vr=!1},Or.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,Or.onStart(n)}return r.handler=e,r.cancel=()=>{Nr.delete(n),t=null},r};var Rr='undefined'!=typeof window?window.requestAnimationFrame:()=>{};Or.use=e=>Rr=e,Or.now='undefined'!=typeof performance?()=>performance.now():Date.now,Or.batchedUpdates=e=>e(),Or.catch=console.error,Or.frameLoop='always',Or.advance=()=>{'demand'!==Or.frameLoop||Wr()};var Hr=-1,zr=0,Vr=!1;function Kr(e,t){Vr?(t.delete(e),e(0)):(t.add(e),qr())}function qr(){Hr<0&&(Hr=0,'demand'!==Or.frameLoop&&Rr(Gr))}function Gr(){~Hr&&(Rr(Gr),Or.batchedUpdates(Wr))}function Wr(){const e=Hr;Hr=Or.now();const t=Pr(Hr);t&&(Xr(Dr.splice(0,t),e=>e.handler()),zr-=t),zr?(Nr.flush(),Lr.flush(e?Math.min(64,Hr-e):16.667),Tr.flush(),Ir.flush(),Mr.flush()):Hr=-1}function Yr(){let e=new Set,t=e;return{add(n){zr+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(zr-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,zr-=t.size,Xr(t,t=>t(n)&&e.add(t)),zr+=e.size,t=e)}}}function Xr(e,t){e.forEach(e=>{try{t(e)}catch(e){Or.catch(e)}})}var Jr=Object.defineProperty,Zr={};function $r(){}((e,t)=>{for(var n in t)Jr(e,n,{get:t[n],enumerable:!0})})(Zr,{assign:()=>fi,colors:()=>ci,createStringInterpolator:()=>si,skipAnimation:()=>ui,to:()=>ai,willAdvance:()=>di});var ei={arr:Array.isArray,obj:e=>!!e&&'Object'===e.constructor.name,fun:e=>'function'==typeof e,str:e=>'string'==typeof e,num:e=>'number'==typeof e,und:e=>void 0===e};function ti(e,t){if(ei.arr(e)){if(!ei.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var ni=(e,t)=>e.forEach(t);function ri(e,t,n){if(ei.arr(e))for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);else for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var ii=e=>ei.und(e)?[]:ei.arr(e)?e:[e];function oi(e,t){if(e.size){const n=Array.from(e);e.clear(),ni(n,t)}}var si,ai,Ai=(e,...t)=>oi(e,e=>e(...t)),li=()=>'undefined'==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),ci=null,ui=!1,di=$r,fi=e=>{e.to&&(ai=e.to),e.now&&(Or.now=e.now),void 0!==e.colors&&(ci=e.colors),null!=e.skipAnimation&&(ui=e.skipAnimation),e.createStringInterpolator&&(si=e.createStringInterpolator),e.requestAnimationFrame&&Or.use(e.requestAnimationFrame),e.batchedUpdates&&(Or.batchedUpdates=e.batchedUpdates),e.willAdvance&&(di=e.willAdvance),e.frameLoop&&(Or.frameLoop=e.frameLoop)},hi=new Set,pi=[],gi=[],mi=0,vi={get idle(){return!hi.size&&!pi.length},start(e){mi>e.priority?(hi.add(e),Or.onStart(bi)):(yi(e),Or(Bi))},advance:Bi,sort(e){if(mi)Or.onFrame(()=>vi.sort(e));else{const t=pi.indexOf(e);~t&&(pi.splice(t,1),wi(e))}},clear(){pi=[],hi.clear()}};function bi(){hi.forEach(yi),hi.clear(),Or(Bi)}function yi(e){pi.includes(e)||wi(e)}function wi(e){pi.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(pi,t=>t.priority>e.priority),0,e)}function Bi(e){const t=gi;for(let n=0;n<pi.length;n++){const r=pi[n];mi=r.priority,r.idle||(di(r),r.advance(e),r.idle||t.push(r))}return mi=0,(gi=pi).length=0,(pi=t).length>0}var xi='[-+]?\\d*\\.?\\d+',Ci=xi+'%';function _i(...e){return'\\(\\s*('+e.join(')\\s*,\\s*(')+')\\s*\\)'}var ji=new RegExp('rgb'+_i(xi,xi,xi)),Fi=new RegExp('rgba'+_i(xi,xi,xi,xi)),Ei=new RegExp('hsl'+_i(xi,Ci,Ci)),Si=new RegExp('hsla'+_i(xi,Ci,Ci,xi)),ki=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Ui=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Qi=/^#([0-9a-fA-F]{6})$/,Li=/^#([0-9a-fA-F]{8})$/;function Oi(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Ii(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=Oi(i,r,e+1/3),s=Oi(i,r,e),a=Oi(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*s)<<16|Math.round(255*a)<<8}function Ni(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Ti(e){return(parseFloat(e)%360+360)%360/360}function Mi(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Di(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Pi(e){let t=function(e){let t;return'number'==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Qi.exec(e))?parseInt(t[1]+'ff',16)>>>0:ci&&void 0!==ci[e]?ci[e]:(t=ji.exec(e))?(Ni(t[1])<<24|Ni(t[2])<<16|Ni(t[3])<<8|255)>>>0:(t=Fi.exec(e))?(Ni(t[1])<<24|Ni(t[2])<<16|Ni(t[3])<<8|Mi(t[4]))>>>0:(t=ki.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+'ff',16)>>>0:(t=Li.exec(e))?parseInt(t[1],16)>>>0:(t=Ui.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Ei.exec(e))?(255|Ii(Ti(t[1]),Di(t[2]),Di(t[3])))>>>0:(t=Si.exec(e))?(Ii(Ti(t[1]),Di(t[2]),Di(t[3]))|Mi(t[4]))>>>0:null}(e);if(null===t)return e;t=t||0;return`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`}var Ri=(e,t,n)=>{if(ei.fun(e))return e;if(ei.arr(e))return Ri({range:e,output:t,extrapolate:n});if(ei.str(e.output[0]))return si(e);const r=e,i=r.output,o=r.range||[0,1],s=r.extrapolateLeft||r.extrapolate||'extend',a=r.extrapolateRight||r.extrapolate||'extend',A=r.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,o);return function(e,t,n,r,i,o,s,a,A){let l=A?A(e):e;if(l<t){if('identity'===s)return l;'clamp'===s&&(l=t)}if(l>n){if('identity'===a)return l;'clamp'===a&&(l=n)}if(r===i)return r;if(t===n)return e<=t?r:i;t===-1/0?l=-l:n===1/0?l-=t:l=(l-t)/(n-t);l=o(l),r===-1/0?l=-l:i===1/0?l+=r:l=l*(i-r)+r;return l}(e,o[t],o[t+1],i[t],i[t+1],A,s,a,r.map)}};var Hi=1.70158,zi=1.525*Hi,Vi=Hi+1,Ki=2*Math.PI/3,qi=2*Math.PI/4.5,Gi=e=>{const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},Wi={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>Vi*e*e*e-Hi*e*e,easeOutBack:e=>1+Vi*Math.pow(e-1,3)+Hi*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-zi)/2:(Math.pow(2*e-2,2)*((zi+1)*(2*e-2)+zi)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*Ki),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*Ki)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*qi)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*qi)/2+1,easeInBounce:e=>1-Gi(1-e),easeOutBounce:Gi,easeInOutBounce:e=>e<.5?(1-Gi(1-2*e))/2:(1+Gi(2*e-1))/2,steps:(e,t='end')=>n=>{const r=(n='end'===t?Math.min(n,.999):Math.max(n,.001))*e;return((e,t,n)=>Math.min(Math.max(n,e),t))(0,1,('end'===t?Math.floor(r):Math.ceil(r))/e)}},Yi=Symbol.for('FluidValue.get'),Xi=Symbol.for('FluidValue.observers'),Ji=e=>Boolean(e&&e[Yi]),Zi=e=>e&&e[Yi]?e[Yi]():e,$i=e=>e[Xi]||null;function eo(e,t){const n=e[Xi];n&&n.forEach(e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)})}var to=class{constructor(e){if(!e&&!(e=this.get))throw Error('Unknown getter');no(this,e)}},no=(e,t)=>so(e,Yi,t);function ro(e,t){if(e[Yi]){let n=e[Xi];n||so(e,Xi,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function io(e,t){const n=e[Xi];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Xi]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var oo,so=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),ao=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Ao=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,lo=new RegExp(`(${ao.source})(%|[a-z]+)`,'i'),co=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,uo=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,fo=e=>{const[t,n]=ho(e);if(!t||li())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith('--')){const t=window.getComputedStyle(document.documentElement).getPropertyValue(n);return t||e}return n&&uo.test(n)?fo(n):n||e},ho=e=>{const t=uo.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},po=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,go=e=>{oo||(oo=ci?new RegExp(`(${Object.keys(ci).join('|')})(?!\\w)`,'g'):/^\b$/);const t=e.output.map(e=>Zi(e).replace(uo,fo).replace(Ao,Pi).replace(oo,Pi)),n=t.map(e=>e.match(ao).map(Number)),r=n[0].map((e,t)=>n.map(e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})),i=r.map(t=>Ri({...e,output:t}));return e=>{const n=!lo.test(t[0])&&t.find(e=>lo.test(e))?.replace(ao,'');let r=0;return t[0].replace(ao,()=>`${i[r++](e)}${n||''}`).replace(co,po)}},mo='react-spring: ',vo=e=>{const t=e;let n=!1;if('function'!=typeof t)throw new TypeError(`${mo}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},bo=vo(console.warn);var yo=vo(console.warn);function wo(e){return ei.str(e)&&('#'==e[0]||/\d/.test(e)||!li()&&uo.test(e)||e in(ci||{}))}var Bo=li()?r:l;function xo(){const e=n()[1],t=(()=>{const e=o(!1);return Bo(()=>(e.current=!0,()=>{e.current=!1}),[]),e})();return()=>{t.current&&e(Math.random())}}var Co=e=>r(e,_o),_o=[];function jo(e){const t=o();return r(()=>{t.current=e}),t.current}var Fo=Symbol.for('Animated:node'),Eo=e=>e&&e[Fo],So=(e,t)=>{return n=e,r=Fo,i=t,Object.defineProperty(n,r,{value:i,writable:!0,configurable:!0});var n,r,i},ko=e=>e&&e[Fo]&&e[Fo].getPayload(),Uo=class{constructor(){So(this,this)}getPayload(){return this.payload||[]}},Qo=class extends Uo{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,ei.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Qo(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return ei.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,ei.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Lo=class extends Qo{constructor(e){super(0),this._string=null,this._toString=Ri({output:[e,e]})}static create(e){return new Lo(e)}getValue(){const e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(ei.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=Ri({output:[this.getValue(),e]})),this._value=0,super.reset()}},Oo={dependencies:null},Io=class extends Uo{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return ri(this.source,(n,r)=>{var i;(i=n)&&i[Fo]===i?t[r]=n.getValue(e):Ji(n)?t[r]=Zi(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&ni(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return ri(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Oo.dependencies&&Ji(e)&&Oo.dependencies.add(e);const t=ko(e);t&&ni(t,e=>this.add(e))}},No=class extends Io{constructor(e){super(e)}static create(e){return new No(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((t,n)=>t.setValue(e[n])).some(Boolean):(super.setValue(e.map(To)),!0)}};function To(e){return(wo(e)?Lo:Qo).create(e)}function Mo(e){const t=Eo(e);return t?t.constructor:ei.arr(e)?No:wo(e)?Lo:Qo}var Do=(t,n)=>{const i=!ei.fun(t)||t.prototype&&t.prototype.isReactComponent;return c((a,A)=>{const l=o(null),c=i&&s(e=>{l.current=function(e,t){e&&(ei.fun(e)?e(t):e.current=t);return t}(A,e)},[A]),[u,d]=function(e,t){const n=new Set;Oo.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)});return e=new Io(e),Oo.dependencies=null,[e,n]}(a,n),f=xo(),h=()=>{const e=l.current;if(i&&!e)return;!1===(!!e&&n.applyAnimatedValues(e,u.getValue(!0)))&&f()},p=new Po(h,d),g=o();Bo(()=>(g.current=p,ni(d,e=>ro(e,p)),()=>{g.current&&(ni(g.current.deps,e=>io(e,g.current)),Or.cancel(g.current.update))})),r(h,[]),Co(()=>()=>{const e=g.current;ni(e.deps,t=>io(t,e))});const m=n.getComponentProps(u.getValue());return e.createElement(t,{...m,ref:c})})},Po=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){'change'==e.type&&Or.write(this.update)}};var Ro=Symbol.for('AnimatedComponent'),Ho=e=>ei.str(e)?e:e&&ei.str(e.displayName)?e.displayName:ei.fun(e)&&e.name||null;function zo(e,...t){return ei.fun(e)?e(...t):e}var Vo=(e,t)=>!0===e||!!(t&&e&&(ei.fun(e)?e(t):ii(e).includes(t))),Ko=(e,t)=>ei.obj(e)?t&&e[t]:e,qo=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,Go=e=>e,Wo=(e,t=Go)=>{let n=Yo;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));const r={};for(const i of n){const n=t(e[i],i);ei.und(n)||(r[i]=n)}return r},Yo=['config','onProps','onStart','onChange','onPause','onResume','onRest'],Xo={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function Jo(e){const t=function(e){const t={};let n=0;if(ri(e,(e,r)=>{Xo[r]||(t[r]=e,n++)}),n)return t}(e);if(t){const n={to:t};return ri(e,(e,r)=>r in t||(n[r]=e)),n}return{...e}}function Zo(e){return e=Zi(e),ei.arr(e)?e.map(Zo):wo(e)?Zr.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function $o(e){for(const t in e)return!0;return!1}function es(e){return ei.fun(e)||ei.arr(e)&&ei.obj(e[0])}function ts(e,t){e.ref?.delete(e),t?.delete(e)}function ns(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var rs={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},is={...rs.default,mass:1,damping:1,easing:Wi.linear,clamp:!1},os=class{constructor(){this.velocity=0,Object.assign(this,is)}};function ss(e,t){if(ei.und(t.decay)){const n=!ei.und(t.tension)||!ei.und(t.friction);!n&&ei.und(t.frequency)&&ei.und(t.damping)&&ei.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var as=[],As=class{constructor(){this.changed=!1,this.values=as,this.toValues=null,this.fromValues=as,this.config=new os,this.immediate=!1}};function ls(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise((s,a)=>{let A,l,c=Vo(n.cancel??r?.cancel,t);if(c)f();else{ei.und(n.pause)||(i.paused=Vo(n.pause,t));let e=r?.pause;!0!==e&&(e=i.paused||Vo(e,t)),A=zo(n.delay||0,t),e?(i.resumeQueue.add(d),o.pause()):(o.resume(),d())}function u(){i.resumeQueue.add(d),i.timeouts.delete(l),l.cancel(),A=l.time-Or.now()}function d(){A>0&&!Zr.skipAnimation?(i.delayed=!0,l=Or.setTimeout(f,A),i.pauseQueue.add(u),i.timeouts.add(l)):f()}function f(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(u),i.timeouts.delete(l),e<=(i.cancelId||0)&&(c=!0);try{o.start({...n,callId:e,cancel:c},s)}catch(e){a(e)}}})}var cs=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?fs(e.get()):t.every(e=>e.noop)?us(e.get()):ds(e.get(),t.every(e=>e.finished)),us=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),ds=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),fs=e=>({value:e,cancelled:!0,finished:!1});function hs(e,t,n,r){const{callId:i,parentId:o,onRest:s}=t,{asyncTo:a,promise:A}=n;return o||e!==a||t.reset?n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;const l=Wo(t,(e,t)=>'onRest'===t?void 0:e);let c,u;const d=new Promise((e,t)=>(c=e,u=t)),f=e=>{const t=i<=(n.cancelId||0)&&fs(r)||i!==n.asyncId&&ds(r,!1);if(t)throw e.result=t,u(e),e},h=(e,t)=>{const o=new gs,s=new ms;return(async()=>{if(Zr.skipAnimation)throw ps(n),s.result=ds(r,!1),u(s),s;f(o);const a=ei.obj(e)?{...e}:{...t,to:e};a.parentId=i,ri(l,(e,t)=>{ei.und(a[t])&&(a[t]=e)});const A=await r.start(a);return f(o),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),A})()};let p;if(Zr.skipAnimation)return ps(n),ds(r,!1);try{let t;t=ei.arr(e)?(async e=>{for(const t of e)await h(t)})(e):Promise.resolve(e(h,r.stop.bind(r))),await Promise.all([t.then(c),d]),p=ds(r.get(),!0,!1)}catch(e){if(e instanceof gs)p=e.result;else{if(!(e instanceof ms))throw e;p=e.result}}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?a:void 0,n.promise=o?A:void 0)}return ei.fun(s)&&Or.batchedUpdates(()=>{s(p,r,r.item)}),p})():A}function ps(e,t){oi(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var gs=class extends Error{constructor(){super('An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.')}},ms=class extends Error{constructor(){super('SkipAnimationSignal')}},vs=e=>e instanceof ys,bs=1,ys=class extends to{constructor(){super(...arguments),this.id=bs++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Eo(this);return e&&e.getValue()}to(...e){return Zr.to(this,e)}interpolate(...e){return bo(`${mo}The "interpolate" function is deprecated in v9 (use "to" instead)`),Zr.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){eo(this,{type:'change',parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||vi.sort(this),eo(this,{type:'priority',parent:this,priority:e})}},ws=Symbol.for('SpringPhase'),Bs=e=>(1&e[ws])>0,xs=e=>(2&e[ws])>0,Cs=e=>(4&e[ws])>0,_s=(e,t)=>t?e[ws]|=3:e[ws]&=-3,js=(e,t)=>t?e[ws]|=4:e[ws]&=-5,Fs=class extends ys{constructor(e,t){if(super(),this.animation=new As,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!ei.und(e)||!ei.und(t)){const n=ei.obj(e)?{...e}:{...t,from:e};ei.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(xs(this)||this._state.asyncTo)||Cs(this)}get goal(){return Zi(this.animation.to)}get velocity(){const e=Eo(this);return e instanceof Qo?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return Bs(this)}get isAnimating(){return xs(this)}get isPaused(){return Cs(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:i}=r;const{config:o}=r,s=ko(r.to);!s&&Ji(r.to)&&(i=ii(Zi(r.to))),r.values.forEach((a,A)=>{if(a.done)return;const l=a.constructor==Lo?1:s?s[A].lastPosition:i[A];let c=r.immediate,u=l;if(!c){if(u=a.lastPosition,o.tension<=0)return void(a.done=!0);let t=a.elapsedTime+=e;const n=r.fromValues[A],i=null!=a.v0?a.v0:a.v0=ei.arr(o.velocity)?o.velocity[A]:o.velocity;let s;const d=o.precision||(n==l?.005:Math.min(1,.001*Math.abs(l-n)));if(ei.und(o.duration))if(o.decay){const e=!0===o.decay?.998:o.decay,r=Math.exp(-(1-e)*t);u=n+i/(1-e)*(1-r),c=Math.abs(a.lastPosition-u)<=d,s=i*r}else{s=null==a.lastVelocity?i:a.lastVelocity;const t=o.restVelocity||d/10,r=o.clamp?0:o.bounce,A=!ei.und(r),f=n==l?a.v0>0:n<l;let h,p=!1;const g=1,m=Math.ceil(e/g);for(let e=0;e<m&&(h=Math.abs(s)>t,h||(c=Math.abs(l-u)<=d,!c));++e){A&&(p=u==l||u>l==f,p&&(s=-s*r,u=l));s+=(1e-6*-o.tension*(u-l)+.001*-o.friction*s)/o.mass*g,u+=s*g}}else{let r=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,a.durationProgress>0&&(a.elapsedTime=o.duration*a.durationProgress,t=a.elapsedTime+=e)),r=(o.progress||0)+t/this._memoizedDuration,r=r>1?1:r<0?0:r,a.durationProgress=r),u=n+o.easing(r)*(l-n),s=(u-a.lastPosition)/e,c=1==r}a.lastVelocity=s,Number.isNaN(u)&&(c=!0)}s&&!s[A].done&&(c=!1),c?a.done=!0:t=!1,a.setValue(u,o.round)&&(n=!0)});const a=Eo(this),A=a.getValue();if(t){const e=Zi(r.to);A===e&&!n||o.decay?n&&o.decay&&this._onChange(A):(a.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(A)}set(e){return Or.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(xs(this)){const{to:e,config:t}=this.animation;Or.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return ei.und(e)?(n=this.queue||[],this.queue=[]):n=[ei.obj(e)?e:{...t,to:e}],Promise.all(n.map(e=>this._update(e))).then(e=>cs(this,e))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),ps(this._state,e&&this._lastCallId),Or.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){'change'==e.type?this._start():'priority'==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||'';let{to:n,from:r}=e;n=ei.obj(n)?n[t]:n,(null==n||es(n))&&(n=void 0),r=ei.obj(r)?r[t]:r,null==r&&(r=void 0);const i={to:n,from:r};return Bs(this)||(e.reverse&&([n,r]=[r,n]),r=Zi(r),ei.und(r)?Eo(this)||this._set(n):this._set(r)),i}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,Wo(e,(e,t)=>/^on/.test(t)?Ko(e,n):e)),Os(this,e,'onProps'),Is(this,'onProps',e,this);const i=this._prepareNode(e);if(Object.isFrozen(this))throw Error('Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?');const o=this._state;return ls(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{Cs(this)||(js(this,!0),Ai(o.pauseQueue),Is(this,'onPause',ds(this,Es(this,this.animation.to)),this))},resume:()=>{Cs(this)&&(js(this,!1),xs(this)&&this._resume(),Ai(o.resumeQueue),Is(this,'onResume',ds(this,Es(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(n=>{if(e.loop&&n.finished&&(!t||!n.noop)){const t=Ss(e);if(t)return this._update(t,!0)}return n})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(fs(this));const r=!ei.und(e.to),i=!ei.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(fs(this));this._lastToId=t.callId}const{key:o,defaultProps:s,animation:a}=this,{to:A,from:l}=a;let{to:c=A,from:u=l}=e;!i||r||t.default&&!ei.und(c)||(c=u),t.reverse&&([c,u]=[u,c]);const d=!ti(u,l);d&&(a.from=u),u=Zi(u);const f=!ti(c,A);f&&this._focus(c);const h=es(t.to),{config:p}=a,{decay:g,velocity:m}=p;(r||i)&&(p.velocity=0),t.config&&!h&&function(e,t,n){n&&(ss(n={...n},t),t={...n,...t}),ss(e,t),Object.assign(e,t);for(const t in is)null==e[t]&&(e[t]=is[t]);let{frequency:r,damping:i}=e;const{mass:o}=e;ei.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*i*o/r)}(p,zo(t.config,o),t.config!==s.config?zo(s.config,o):void 0);let v=Eo(this);if(!v||ei.und(c))return n(ds(this,!0));const b=ei.und(t.reset)?i&&!t.default:!ei.und(u)&&Vo(t.reset,o),y=b?u:this.get(),w=Zo(c),B=ei.num(w)||ei.arr(w)||wo(w),x=!h&&(!B||Vo(s.immediate||t.immediate,o));if(f){const e=Mo(c);if(e!==v.constructor){if(!x)throw Error(`Cannot animate between ${v.constructor.name} and ${e.name}, as the "to" prop suggests`);v=this._set(w)}}const C=v.constructor;let _=Ji(c),j=!1;if(!_){const e=b||!Bs(this)&&d;(f||e)&&(j=ti(Zo(y),w),_=!j),(ti(a.immediate,x)||x)&&ti(p.decay,g)&&ti(p.velocity,m)||(_=!0)}if(j&&xs(this)&&(a.changed&&!b?_=!0:_||this._stop(A)),!h&&((_||Ji(A))&&(a.values=v.getPayload(),a.toValues=Ji(c)?null:C==Lo?[1]:ii(w)),a.immediate!=x&&(a.immediate=x,x||b||this._set(A)),_)){const{onRest:e}=a;ni(Ls,e=>Os(this,t,e));const r=ds(this,Es(this,A));Ai(this._pendingCalls,r),this._pendingCalls.add(n),a.changed&&Or.batchedUpdates(()=>{a.changed=!b,e?.(r,this),b?zo(s.onRest,r):a.onStart?.(r,this)})}b&&this._set(y),h?n(hs(t.to,t,this._state,this)):_?this._start():xs(this)&&!f?this._pendingCalls.add(n):n(us(y))}_focus(e){const t=this.animation;e!==t.to&&($i(this)&&this._detach(),t.to=e,$i(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Ji(t)&&(ro(t,this),vs(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Ji(e)&&io(e,this)}_set(e,t=!0){const n=Zi(e);if(!ei.und(n)){const e=Eo(this);if(!e||!ti(n,e.getValue())){const r=Mo(n);e&&e.constructor==r?e.setValue(n):So(this,r.create(n)),e&&Or.batchedUpdates(()=>{this._onChange(n,t)})}}return Eo(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Is(this,'onStart',ds(this,Es(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),zo(this.animation.onChange,e,this)),zo(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Eo(this).reset(Zi(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),xs(this)||(_s(this,!0),Cs(this)||this._resume())}_resume(){Zr.skipAnimation?this.finish():vi.start(this)}_stop(e,t){if(xs(this)){_s(this,!1);const n=this.animation;ni(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),eo(this,{type:'idle',parent:this});const r=t?fs(this.get()):ds(this.get(),Es(this,e??n.to));Ai(this._pendingCalls,r),n.changed&&(n.changed=!1,Is(this,'onRest',r,this))}}};function Es(e,t){const n=Zo(t);return ti(Zo(e.get()),n)}function Ss(e,t=e.loop,n=e.to){const r=zo(t);if(r){const i=!0!==r&&Jo(r),o=(i||e).reverse,s=!i||i.reset;return ks({...e,loop:t,default:!1,pause:void 0,to:!o||es(n)?n:void 0,from:s?e.from:void 0,reset:s,...i})}}function ks(e){const{to:t,from:n}=e=Jo(e),r=new Set;return ei.obj(t)&&Qs(t,r),ei.obj(n)&&Qs(n,r),e.keys=r.size?Array.from(r):null,e}function Us(e){const t=ks(e);return ei.und(t.default)&&(t.default=Wo(t)),t}function Qs(e,t){ri(e,(e,n)=>null!=e&&t.add(n))}var Ls=['onStart','onRest','onChange','onPause','onResume'];function Os(e,t,n){e.animation[n]=t[n]!==qo(t,n)?Ko(t[n],e.key):void 0}function Is(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var Ns=['onStart','onChange','onRest'],Ts=1,Ms=class{constructor(e,t){this.id=Ts++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];ei.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(ks(e)),this}start(e){let{queue:t}=this;return e?t=ii(e).map(ks):this.queue=[],this._flush?this._flush(this,t):(Ks(this,t),Ds(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;ni(ii(t),t=>n[t].stop(!!e))}else ps(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(ei.und(e))this.start({pause:!0});else{const t=this.springs;ni(ii(e),e=>t[e].pause())}return this}resume(e){if(ei.und(e))this.start({pause:!1});else{const t=this.springs;ni(ii(e),e=>t[e].resume())}return this}each(e){ri(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,oi(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));const o=!r&&this._started,s=i||o&&n.size?this.get():null;i&&t.size&&oi(t,([e,t])=>{t.value=s,e(t,this,this._item)}),o&&(this._started=!1,oi(n,([e,t])=>{t.value=s,e(t,this,this._item)}))}eventObserved(e){if('change'==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if('idle'!=e.type)return;this._active.delete(e.parent)}Or.onFrame(this._onFrame)}};function Ds(e,t){return Promise.all(t.map(t=>Ps(e,t))).then(t=>cs(e,t))}async function Ps(e,t,n){const{keys:r,to:i,from:o,loop:s,onRest:a,onResolve:A}=t,l=ei.obj(t.default)&&t.default;s&&(t.loop=!1),!1===i&&(t.to=null),!1===o&&(t.from=null);const c=ei.arr(i)||ei.fun(i)?i:void 0;c?(t.to=void 0,t.onRest=void 0,l&&(l.onRest=void 0)):ni(Ns,n=>{const r=t[n];if(ei.fun(r)){const i=e._events[n];t[n]=({finished:e,cancelled:t})=>{const n=i.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):i.set(r,{value:null,finished:e||!1,cancelled:t||!1})},l&&(l[n]=t[n])}});const u=e._state;t.pause===!u.paused?(u.paused=t.pause,Ai(t.pause?u.pauseQueue:u.resumeQueue)):u.paused&&(t.pause=!0);const d=(r||Object.keys(e.springs)).map(n=>e.springs[n].start(t)),f=!0===t.cancel||!0===qo(t,'cancel');(c||f&&u.asyncId)&&d.push(ls(++e._lastAsyncId,{props:t,state:u,actions:{pause:$r,resume:$r,start(t,n){f?(ps(u,e._lastAsyncId),n(fs(e))):(t.onRest=a,n(hs(c,t,u,e)))}}})),u.paused&&await new Promise(e=>{u.resumeQueue.add(e)});const h=cs(e,await Promise.all(d));if(s&&h.finished&&(!n||!h.noop)){const n=Ss(t,s,i);if(n)return Ks(e,[n]),Ps(e,n,!0)}return A&&Or.batchedUpdates(()=>A(h,e,e.item)),h}function Rs(e,t){const n={...e.springs};return t&&ni(ii(t),e=>{ei.und(e.keys)&&(e=ks(e)),ei.obj(e.to)||(e={...e,to:void 0}),Vs(n,e,e=>zs(e))}),Hs(e,n),n}function Hs(e,t){ri(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,ro(t,e))})}function zs(e,t){const n=new Fs;return n.key=e,t&&ro(n,t),n}function Vs(e,t,n){t.keys&&ni(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function Ks(e,t){ni(t,t=>{Vs(e.springs,t,t=>zs(t,e))})}var qs,Gs,Ws=({children:t,...i})=>{const s=u(Ys),a=i.pause||!!s.pause,A=i.immediate||!!s.immediate;i=function(e,t){const[i]=n(()=>({inputs:t,result:e()})),s=o(),a=s.current;let A=a;if(A){const n=Boolean(t&&A.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,A.inputs));n||(A={inputs:t,result:e()})}else A=i;return r(()=>{s.current=A,a==i&&(i.inputs=i.result=void 0)},[A]),A.result}(()=>({pause:a,immediate:A}),[a,A]);const{Provider:l}=Ys;return e.createElement(l,{value:i},t)},Ys=(qs=Ws,Gs={},Object.assign(qs,e.createContext(Gs)),qs.Provider._context=qs,qs.Consumer._context=qs,qs);Ws.Provider=Ys.Provider,Ws.Consumer=Ys.Consumer;var Xs=()=>{const e=[],t=function(t){yo(`${mo}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);const r=[];return ni(e,(e,i)=>{if(ei.und(t))r.push(e.start());else{const o=n(t,e,i);o&&r.push(e.start(o))}}),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return ni(e,e=>e.pause(...arguments)),this},t.resume=function(){return ni(e,e=>e.resume(...arguments)),this},t.set=function(t){ni(e,(e,n)=>{const r=ei.fun(t)?t(n,e):t;r&&e.set(r)})},t.start=function(t){const n=[];return ni(e,(e,r)=>{if(ei.und(t))n.push(e.start());else{const i=this._getProps(t,e,r);i&&n.push(e.start(i))}}),n},t.stop=function(){return ni(e,e=>e.stop(...arguments)),this},t.update=function(t){return ni(e,(e,n)=>e.update(this._getProps(t,e,n))),this};const n=function(e,t,n){return ei.fun(e)?e(n,t):e};return t._getProps=n,t};function Js(e,t){const n=ei.fun(e),[[r],i]=function(e,t,n){const r=ei.fun(t)&&t;r&&!n&&(n=[]);const i=d(()=>r||3==arguments.length?Xs():void 0,[]),s=o(0),a=xo(),A=d(()=>({ctrls:[],queue:[],flush(e,t){const n=Rs(e,t);return s.current>0&&!A.queue.length&&!Object.keys(n).some(t=>!e.springs[t])?Ds(e,t):new Promise(r=>{Hs(e,n),A.queue.push(()=>{r(Ds(e,t))}),a()})}}),[]),l=o([...A.ctrls]),c=[],f=jo(e)||0;function h(e,n){for(let i=e;i<n;i++){const e=l.current[i]||(l.current[i]=new Ms(null,A.flush)),n=r?r(i,e):t[i];n&&(c[i]=Us(n))}}d(()=>{ni(l.current.slice(e,f),e=>{ts(e,i),e.stop(!0)}),l.current.length=e,h(f,e)},[e]),d(()=>{h(0,Math.min(f,e))},n);const p=l.current.map((e,t)=>Rs(e,c[t])),g=u(Ws),m=jo(g),v=g!==m&&$o(g);Bo(()=>{s.current++,A.ctrls=l.current;const{queue:e}=A;e.length&&(A.queue=[],ni(e,e=>e())),ni(l.current,(e,t)=>{i?.add(e),v&&e.start({default:g});const n=c[t];n&&(ns(e,n.ref),e.ref?e.queue.push(n):e.start(n))})}),Co(()=>()=>{ni(A.ctrls,e=>e.stop(!0))});const b=p.map(e=>({...e}));return i?[b,i]:b}(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,i]:r}function Zs(t,n,r){const i=ei.fun(n)&&n,{reset:s,sort:a,trail:A=0,expires:l=!0,exitBeforeEnter:c=!1,onDestroyed:f,ref:h,config:p}=i?i():n,g=d(()=>i||3==arguments.length?Xs():void 0,[]),m=ii(t),v=[],b=o(null),y=s?null:b.current;Bo(()=>{b.current=v}),Co(()=>(ni(v,e=>{g?.add(e.ctrl),e.ctrl.ref=g}),()=>{ni(b.current,e=>{e.expired&&clearTimeout(e.expirationId),ts(e.ctrl,g),e.ctrl.stop(!0)})}));const w=function(e,{key:t,keys:n=t},r){if(null===n){const t=new Set;return e.map(e=>{const n=r&&r.find(n=>n.item===e&&'leave'!==n.phase&&!t.has(n));return n?(t.add(n),n.key):$s++})}return ei.und(n)?e:ei.fun(n)?e.map(n):ii(n)}(m,i?i():n,y),B=s&&b.current||[];Bo(()=>ni(B,({ctrl:e,item:t,key:n})=>{ts(e,g),zo(f,t,n)}));const x=[];if(y&&ni(y,(e,t)=>{e.expired?(clearTimeout(e.expirationId),B.push(e)):~(t=x[t]=w.indexOf(e.key))&&(v[t]=e)}),ni(m,(e,t)=>{v[t]||(v[t]={key:w[t],item:e,phase:'mount',ctrl:new Ms},v[t].ctrl.item=e)}),x.length){let e=-1;const{leave:t}=i?i():n;ni(x,(n,r)=>{const i=y[r];~n?(e=v.indexOf(i),v[e]={...i,item:m[n]}):t&&v.splice(++e,0,i)})}ei.fun(a)&&v.sort((e,t)=>a(e.item,t.item));let C=-A;const _=xo(),j=Wo(n),F=new Map,E=o(new Map),S=o(!1);ni(v,(e,t)=>{const r=e.key,o=e.phase,s=i?i():n;let a,u;const d=zo(s.delay||0,r);if('mount'==o)a=s.enter,u='enter';else{const e=w.indexOf(r)<0;if('leave'!=o)if(e)a=s.leave,u='leave';else{if(!(a=s.update))return;u='update'}else{if(e)return;a=s.enter,u='enter'}}if(a=zo(a,e.item,t),a=ei.obj(a)?Jo(a):{to:a},!a.config){const n=p||j.config;a.config=zo(n,e.item,t,u)}C+=A;const f={...j,delay:d+C,ref:h,immediate:s.immediate,reset:!1,...a};if('enter'==u&&ei.und(f.from)){const r=i?i():n,o=ei.und(r.initial)||y?r.from:r.initial;f.from=zo(o,e.item,t)}const{onResolve:g}=f;f.onResolve=e=>{zo(g,e);const t=b.current,n=t.find(e=>e.key===r);if(n&&(!e.cancelled||'update'==n.phase)&&n.ctrl.idle){const e=t.every(e=>e.ctrl.idle);if('leave'==n.phase){const t=zo(l,n.item);if(!1!==t){const r=!0===t?0:t;if(n.expired=!0,!e&&r>0)return void(r<=2147483647&&(n.expirationId=setTimeout(_,r)))}}e&&t.some(e=>e.expired)&&(E.current.delete(n),c&&(S.current=!0),_())}};const m=Rs(e.ctrl,f);'leave'===u&&c?E.current.set(e,{phase:u,springs:m,payload:f}):F.set(e,{phase:u,springs:m,payload:f})});const k=u(Ws),U=jo(k),Q=k!==U&&$o(k);Bo(()=>{Q&&ni(v,e=>{e.ctrl.start({default:k})})},[k]),ni(F,(e,t)=>{if(E.current.size){const e=v.findIndex(e=>e.key===t.key);v.splice(e,1)}}),Bo(()=>{ni(E.current.size?E.current:F,({phase:e,payload:t},n)=>{const{ctrl:r}=n;n.phase=e,g?.add(r),Q&&'enter'==e&&r.start({default:k}),t&&(ns(r,t.ref),!r.ref&&!g||S.current?(r.start(t),S.current&&(S.current=!1)):r.update(t))})},s?void 0:r);const L=t=>e.createElement(e.Fragment,null,v.map((n,r)=>{const{springs:i}=F.get(n)||n.ctrl,o=t({...i},n.item,n,r);return o&&o.type?e.createElement(o.type,{...o.props,key:ei.str(n.key)||ei.num(n.key)?n.key:n.ctrl.id,ref:o.ref}):o}));return g?[L,g]:L}var $s=1;var ea=class extends ys{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=Ri(...t);const n=this._get(),r=Mo(n);So(this,r.create(n))}advance(e){const t=this._get();ti(t,this.get())||(Eo(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&na(this._active)&&ra(this)}_get(){const e=ei.arr(this.source)?this.source.map(Zi):ii(Zi(this.source));return this.calc(...e)}_start(){this.idle&&!na(this._active)&&(this.idle=!1,ni(ko(this),e=>{e.done=!1}),Zr.skipAnimation?(Or.batchedUpdates(()=>this.advance()),ra(this)):vi.start(this))}_attach(){let e=1;ni(ii(this.source),t=>{Ji(t)&&ro(t,this),vs(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){ni(ii(this.source),e=>{Ji(e)&&io(e,this)}),this._active.clear(),ra(this)}eventObserved(e){'change'==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):'idle'==e.type?this._active.delete(e.parent):'priority'==e.type&&(this.priority=ii(this.source).reduce((e,t)=>Math.max(e,(vs(t)?t.priority:0)+1),0))}};function ta(e){return!1!==e.idle}function na(e){return!e.size||Array.from(e).every(ta)}function ra(e){e.idle||(e.idle=!0,ni(ko(e),e=>{e.done=!0}),eo(e,{type:'idle',parent:e}))}var ia=(e,...t)=>new ea(e,t);Zr.assign({createStringInterpolator:go,to:(e,t)=>new ea(e,t)});var oa=/^--/;function sa(e,t){return null==t||'boolean'==typeof t||''===t?'':'number'!=typeof t||0===t||oa.test(e)||Aa.hasOwnProperty(e)&&Aa[e]?(''+t).trim():t+'px'}var aa={};var Aa={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},la=['Webkit','Ms','Moz','O'];Aa=Object.keys(Aa).reduce((e,t)=>(la.forEach(n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t]),e),Aa);var ca=/^(matrix|translate|scale|rotate|skew)/,ua=/^(translate)/,da=/^(rotate|skew)/,fa=(e,t)=>ei.num(e)&&0!==e?e+t:e,ha=(e,t)=>ei.arr(e)?e.every(e=>ha(e,t)):ei.num(e)?e===t:parseFloat(e)===t,pa=class extends Io{constructor({x:e,y:t,z:n,...r}){const i=[],o=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),o.push(e=>[`translate3d(${e.map(e=>fa(e,'px')).join(',')})`,ha(e,0)])),ri(r,(e,t)=>{if('transform'===t)i.push([e||'']),o.push(e=>[e,''===e]);else if(ca.test(t)){if(delete r[t],ei.und(e))return;const n=ua.test(t)?'px':da.test(t)?'deg':'';i.push(ii(e)),o.push('rotate3d'===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${fa(i,n)})`,ha(i,0)]:e=>[`${t}(${e.map(e=>fa(e,n)).join(',')})`,ha(e,t.startsWith('scale')?1:0)])}}),i.length&&(r.transform=new ga(i,o)),super(r)}},ga=class extends to{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e='',t=!0;return ni(this.inputs,(n,r)=>{const i=Zi(n[0]),[o,s]=this.transforms[r](ei.arr(i)?i:n.map(Zi));e+=' '+o,t=t&&s}),t?'none':e}observerAdded(e){1==e&&ni(this.inputs,e=>ni(e,e=>Ji(e)&&ro(e,this)))}observerRemoved(e){0==e&&ni(this.inputs,e=>ni(e,e=>Ji(e)&&io(e,this)))}eventObserved(e){'change'==e.type&&(this._value=null),eo(this,e)}};Zr.assign({batchedUpdates:y,createStringInterpolator:go,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});var ma=((e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new Io(e),getComponentProps:r=e=>e}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=e=>{const t=Ho(e)||'Anonymous';return(e=ei.str(e)?o[e]||(o[e]=Do(e,i)):e[Ro]||(e[Ro]=Do(e,i))).displayName=`Animated(${t})`,e};return ri(e,(t,n)=>{ei.arr(e)&&(n=Ho(t)),o[n]=o(t)}),{animated:o}})(['a','abbr','address','area','article','aside','audio','b','base','bdi','bdo','big','blockquote','body','br','button','canvas','caption','cite','code','col','colgroup','data','datalist','dd','del','details','dfn','dialog','div','dl','dt','em','embed','fieldset','figcaption','figure','footer','form','h1','h2','h3','h4','h5','h6','head','header','hgroup','hr','html','i','iframe','img','input','ins','kbd','keygen','label','legend','li','link','main','map','mark','menu','menuitem','meta','meter','nav','noscript','object','ol','optgroup','option','output','p','param','picture','pre','progress','q','rp','rt','ruby','s','samp','script','section','select','small','source','span','strong','style','sub','summary','sup','table','tbody','td','textarea','tfoot','th','thead','time','title','tr','track','u','ul','var','video','wbr','circle','clipPath','defs','ellipse','foreignObject','g','image','line','linearGradient','mask','path','pattern','polygon','polyline','radialGradient','rect','stop','svg','text','tspan'],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n='filter'===e.nodeName||e.parentNode&&'filter'===e.parentNode.nodeName,{className:r,style:i,children:o,scrollTop:s,scrollLeft:a,viewBox:A,...l}=t,c=Object.values(l),u=Object.keys(l).map(t=>n||e.hasAttribute(t)?t:aa[t]||(aa[t]=t.replace(/([A-Z])/g,e=>'-'+e.toLowerCase())));void 0!==o&&(e.textContent=o);for(const t in i)if(i.hasOwnProperty(t)){const n=sa(t,i[t]);oa.test(t)?e.style.setProperty(t,n):e.style[t]=n}u.forEach((t,n)=>{e.setAttribute(t,c[n])}),void 0!==r&&(e.className=r),void 0!==s&&(e.scrollTop=s),void 0!==a&&(e.scrollLeft=a),void 0!==A&&e.setAttribute('viewBox',A)},createAnimatedStyle:e=>new pa(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),va=ma.animated;function ba(){return ba=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},ba.apply(this,arguments)}var ya={pointerEvents:'none',position:'absolute',zIndex:10,top:0,left:0},wa=function(e,t){return'translate('+e+'px, '+t+'px)'},Ba=f(function(e){var t,n=e.position,r=e.anchor,i=e.children,s=dC(),a=zx(),A=a.animate,l=a.config,c=sC(),u=c[0],d=c[1],f=o(!1),h=void 0,p=!1,g=d.width>0&&d.height>0,m=Math.round(n[0]),v=Math.round(n[1]);g&&('top'===r?(m-=d.width/2,v-=d.height+14):'right'===r?(m+=14,v-=d.height/2):'bottom'===r?(m-=d.width/2,v+=14):'left'===r?(m-=d.width+14,v-=d.height/2):'center'===r&&(m-=d.width/2,v-=d.height/2),h={transform:wa(m,v)},f.current||(p=!0),f.current=[m,v]);var b=Js({to:h,config:l,immediate:!A||p}),y=ba({},ya,s.tooltip,{transform:null!=(t=b.transform)?t:wa(m,v)});return w(va.div,{ref:u,style:y,children:i})});Ba.displayName='TooltipWrapper';var xa=f(function(e){var t=e.size,n=void 0===t?12:t,r=e.color,i=e.style;return w('span',{style:ba({display:'block',width:n,height:n,background:r},void 0===i?{}:i)})}),Ca=f(function(e){var t,n=e.id,r=e.value,i=e.format,o=e.enableChip,s=void 0!==o&&o,a=e.color,A=e.renderContent,l=dC(),c=AC(i);if('function'==typeof A)t=A();else{var u=r;void 0!==c&&void 0!==u&&(u=c(u)),t=B('div',{style:l.tooltip.basic,children:[s&&w(xa,{color:a,style:l.tooltip.chip}),void 0!==u?B('span',{children:[n,': ',w('strong',{children:''+u})]}):n]})}return w('div',{style:l.tooltip.container,children:t})}),_a={width:'100%',borderCollapse:'collapse'},ja=f(function(e){var t,n=e.title,r=e.rows,i=void 0===r?[]:r,o=e.renderContent,s=dC();return i.length?(t='function'==typeof o?o():B('div',{children:[n&&n,w('table',{style:ba({},_a,s.tooltip.table),children:w('tbody',{children:i.map(function(e,t){return w('tr',{children:e.map(function(e,t){return w('td',{style:s.tooltip.tableCell,children:e},t)})},t)})})})]}),w('div',{style:s.tooltip.container,children:t})):null});ja.displayName='TableTooltip';var Fa=f(function(e){var t=e.x0,n=e.x1,r=e.y0,i=e.y1,o=dC(),s=zx(),a=s.animate,A=s.config,l=d(function(){return ba({},o.crosshair.line,{pointerEvents:'none'})},[o.crosshair.line]),c=Js({x1:t,x2:n,y1:r,y2:i,config:A,immediate:!a});return w(va.line,ba({},c,{fill:'none',style:l}))});Fa.displayName='CrosshairLine';var Ea=f(function(e){var t,n,r=e.width,i=e.height,o=e.type,s=e.x,a=e.y;return'cross'===o?(t={x0:s,x1:s,y0:0,y1:i},n={x0:0,x1:r,y0:a,y1:a}):'top-left'===o?(t={x0:s,x1:s,y0:0,y1:a},n={x0:0,x1:s,y0:a,y1:a}):'top'===o?t={x0:s,x1:s,y0:0,y1:a}:'top-right'===o?(t={x0:s,x1:s,y0:0,y1:a},n={x0:s,x1:r,y0:a,y1:a}):'right'===o?n={x0:s,x1:r,y0:a,y1:a}:'bottom-right'===o?(t={x0:s,x1:s,y0:a,y1:i},n={x0:s,x1:r,y0:a,y1:a}):'bottom'===o?t={x0:s,x1:s,y0:a,y1:i}:'bottom-left'===o?(t={x0:s,x1:s,y0:a,y1:i},n={x0:0,x1:s,y0:a,y1:a}):'left'===o?n={x0:0,x1:s,y0:a,y1:a}:'x'===o?t={x0:s,x1:s,y0:0,y1:i}:'y'===o&&(n={x0:0,x1:r,y0:a,y1:a}),B(x,{children:[t&&w(Fa,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),n&&w(Fa,{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1})]})});Ea.displayName='Crosshair';var Sa=h({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),ka={isVisible:!1,position:[null,null],content:null,anchor:null},Ua=h(ka),Qa=function(){var e=u(Sa);if(void 0===e)throw new Error('useTooltip must be used within a TooltipProvider');return e},La=function(){var e=function(){var e=u(Ua);if(void 0===e)throw new Error('useTooltipState must be used within a TooltipProvider');return e}();return function(e){return e.isVisible}(e)?w(Ba,{position:e.position,anchor:e.anchor,children:e.content}):null},Oa=function(e){var t=e.container,r=e.children,i=function(e){var t=n(ka),r=t[0],i=t[1],o=s(function(e,t,n){var r=t[0],o=t[1];void 0===n&&(n='top'),i({isVisible:!0,position:[r,o],anchor:n,content:e})},[i]),a=s(function(t,n,r){void 0===r&&(r='top');var o=e.current.getBoundingClientRect(),s=e.current.offsetWidth,a=s===o.width?1:s/o.width,A=(n.clientX-o.left)*a,l=(n.clientY-o.top)*a;'left'!==r&&'right'!==r||(r=A<o.width/2?'right':'left'),i({isVisible:!0,position:[A,l],anchor:r,content:t})},[e,i]),A=s(function(){i(ka)},[i]);return{actions:d(function(){return{showTooltipAt:o,showTooltipFromEvent:a,hideTooltip:A}},[o,a,A]),state:r}}(t),o=i.actions,a=i.state;return w(Sa.Provider,{value:o,children:w(Ua.Provider,{value:a,children:r})})};var Ia=function(){this.__data__=[],this.size=0};var Na=function(e,t){return e===t||e!=e&&t!=t},Ta=Na;var Ma=function(e,t){for(var n=e.length;n--;)if(Ta(e[n][0],t))return n;return-1},Da=Ma,Pa=Array.prototype.splice;var Ra=Ma;var Ha=Ma;var za=Ma;var Va=Ia,Ka=function(e){var t=this.__data__,n=Da(t,e);return!(n<0)&&(n==t.length-1?t.pop():Pa.call(t,n,1),--this.size,!0)},qa=function(e){var t=this.__data__,n=Ra(t,e);return n<0?void 0:t[n][1]},Ga=function(e){return Ha(this.__data__,e)>-1},Wa=function(e,t){var n=this.__data__,r=za(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function Ya(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ya.prototype.clear=Va,Ya.prototype.delete=Ka,Ya.prototype.get=qa,Ya.prototype.has=Ga,Ya.prototype.set=Wa;var Xa=Ya,Ja=Xa;var Za=function(){this.__data__=new Ja,this.size=0};var $a=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var eA=function(e){return this.__data__.get(e)};var tA=function(e){return this.__data__.has(e)},nA='object'==typeof ir&&ir&&ir.Object===Object&&ir,rA=nA,iA='object'==typeof self&&self&&self.Object===Object&&self,oA=rA||iA||Function('return this')(),sA=oA.Symbol,aA=sA,AA=Object.prototype,lA=AA.hasOwnProperty,cA=AA.toString,uA=aA?aA.toStringTag:void 0;var dA=function(e){var t=lA.call(e,uA),n=e[uA];try{e[uA]=void 0;var r=!0}catch(e){}var i=cA.call(e);return r&&(t?e[uA]=n:delete e[uA]),i},fA=Object.prototype.toString;var hA=dA,pA=function(e){return fA.call(e)},gA=sA?sA.toStringTag:void 0;var mA=function(e){return null==e?void 0===e?'[object Undefined]':'[object Null]':gA&&gA in Object(e)?hA(e):pA(e)};var vA=function(e){var t=typeof e;return null!=e&&('object'==t||'function'==t)},bA=mA,yA=vA;var wA,BA=function(e){if(!yA(e))return!1;var t=bA(e);return'[object Function]'==t||'[object GeneratorFunction]'==t||'[object AsyncFunction]'==t||'[object Proxy]'==t},xA=or(BA),CA=oA['__core-js_shared__'],_A=(wA=/[^.]+$/.exec(CA&&CA.keys&&CA.keys.IE_PROTO||''))?'Symbol(src)_1.'+wA:'';var jA=function(e){return!!_A&&_A in e},FA=Function.prototype.toString;var EA=function(e){if(null!=e){try{return FA.call(e)}catch(e){}try{return e+''}catch(e){}}return''},SA=BA,kA=jA,UA=vA,QA=EA,LA=/^\[object .+?Constructor\]$/,OA=Function.prototype,IA=Object.prototype,NA=OA.toString,TA=IA.hasOwnProperty,MA=RegExp('^'+NA.call(TA).replace(/[\\^$.*+?()[\]{}|]/g,'\\$&').replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,'$1.*?')+'$');var DA=function(e,t){return null==e?void 0:e[t]},PA=function(e){return!(!UA(e)||kA(e))&&(SA(e)?MA:LA).test(QA(e))},RA=DA;var HA=function(e,t){var n=RA(e,t);return PA(n)?n:void 0},zA=HA(oA,'Map'),VA=HA(Object,'create'),KA=VA;var qA=function(){this.__data__=KA?KA(null):{},this.size=0};var GA=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},WA=VA,YA=Object.prototype.hasOwnProperty;var XA=function(e){var t=this.__data__;if(WA){var n=t[e];return'__lodash_hash_undefined__'===n?void 0:n}return YA.call(t,e)?t[e]:void 0},JA=VA,ZA=Object.prototype.hasOwnProperty;var $A=VA;var el=qA,tl=GA,nl=XA,rl=function(e){var t=this.__data__;return JA?void 0!==t[e]:ZA.call(t,e)},il=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=$A&&void 0===t?'__lodash_hash_undefined__':t,this};function ol(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ol.prototype.clear=el,ol.prototype.delete=tl,ol.prototype.get=nl,ol.prototype.has=rl,ol.prototype.set=il;var sl=ol,al=Xa,Al=zA;var ll=function(e){var t=typeof e;return'string'==t||'number'==t||'symbol'==t||'boolean'==t?'__proto__'!==e:null===e};var cl=function(e,t){var n=e.__data__;return ll(t)?n['string'==typeof t?'string':'hash']:n.map},ul=cl;var dl=cl;var fl=cl;var hl=cl;var pl=function(){this.size=0,this.__data__={hash:new sl,map:new(Al||al),string:new sl}},gl=function(e){var t=ul(this,e).delete(e);return this.size-=t?1:0,t},ml=function(e){return dl(this,e).get(e)},vl=function(e){return fl(this,e).has(e)},bl=function(e,t){var n=hl(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function yl(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}yl.prototype.clear=pl,yl.prototype.delete=gl,yl.prototype.get=ml,yl.prototype.has=vl,yl.prototype.set=bl;var wl=yl,Bl=Xa,xl=zA,Cl=wl;var _l=Xa,jl=Za,Fl=$a,El=eA,Sl=tA,kl=function(e,t){var n=this.__data__;if(n instanceof Bl){var r=n.__data__;if(!xl||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Cl(r)}return n.set(e,t),this.size=n.size,this};function Ul(e){var t=this.__data__=new _l(e);this.size=t.size}Ul.prototype.clear=jl,Ul.prototype.delete=Fl,Ul.prototype.get=El,Ul.prototype.has=Sl,Ul.prototype.set=kl;var Ql=Ul,Ll=HA,Ol=function(){try{var e=Ll(Object,'defineProperty');return e({},'',{}),e}catch(e){}}(),Il=Ol;var Nl=function(e,t,n){'__proto__'==t&&Il?Il(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},Tl=Nl,Ml=Na;var Dl=function(e,t,n){(void 0!==n&&!Ml(e[t],n)||void 0===n&&!(t in e))&&Tl(e,t,n)};var Pl=function(e){return function(t,n,r){for(var i=-1,o=Object(t),s=r(t),a=s.length;a--;){var A=s[e?a:++i];if(!1===n(o[A],A,o))break}return t}},Rl=Pl(),Hl={exports:{}};!function(e,t){var n=oA,r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r?n.Buffer:void 0,s=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}}(Hl,Hl.exports);var zl=Hl.exports,Vl=oA.Uint8Array,Kl=Vl;var ql=function(e){var t=new e.constructor(e.byteLength);return new Kl(t).set(new Kl(e)),t},Gl=ql;var Wl=function(e,t){var n=t?Gl(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var Yl=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},Xl=vA,Jl=Object.create,Zl=function(){function e(){}return function(t){if(!Xl(t))return{};if(Jl)return Jl(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),$l=Zl;var ec=function(e,t){return function(n){return e(t(n))}},tc=ec(Object.getPrototypeOf,Object),nc=Object.prototype;var rc=function(e){var t=e&&e.constructor;return e===('function'==typeof t&&t.prototype||nc)},ic=$l,oc=tc,sc=rc;var ac=function(e){return'function'!=typeof e.constructor||sc(e)?{}:ic(oc(e))};var Ac=function(e){return null!=e&&'object'==typeof e},lc=mA,cc=Ac;var uc=function(e){return cc(e)&&'[object Arguments]'==lc(e)},dc=Ac,fc=Object.prototype,hc=fc.hasOwnProperty,pc=fc.propertyIsEnumerable,gc=uc(function(){return arguments}())?uc:function(e){return dc(e)&&hc.call(e,'callee')&&!pc.call(e,'callee')},mc=Array.isArray;var vc=function(e){return'number'==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},bc=BA,yc=vc;var wc=function(e){return null!=e&&yc(e.length)&&!bc(e)},Bc=wc,xc=Ac;var Cc=function(e){return xc(e)&&Bc(e)},_c={exports:{}};var jc=function(){return!1};!function(e,t){var n=oA,r=jc,i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,s=o&&o.exports===i?n.Buffer:void 0,a=(s?s.isBuffer:void 0)||r;e.exports=a}(_c,_c.exports);var Fc=_c.exports,Ec=mA,Sc=tc,kc=Ac,Uc=Function.prototype,Qc=Object.prototype,Lc=Uc.toString,Oc=Qc.hasOwnProperty,Ic=Lc.call(Object);var Nc=function(e){if(!kc(e)||'[object Object]'!=Ec(e))return!1;var t=Sc(e);if(null===t)return!0;var n=Oc.call(t,'constructor')&&t.constructor;return'function'==typeof n&&n instanceof n&&Lc.call(n)==Ic},Tc=or(Nc),Mc=mA,Dc=vc,Pc=Ac,Rc={};Rc['[object Float32Array]']=Rc['[object Float64Array]']=Rc['[object Int8Array]']=Rc['[object Int16Array]']=Rc['[object Int32Array]']=Rc['[object Uint8Array]']=Rc['[object Uint8ClampedArray]']=Rc['[object Uint16Array]']=Rc['[object Uint32Array]']=!0,Rc['[object Arguments]']=Rc['[object Array]']=Rc['[object ArrayBuffer]']=Rc['[object Boolean]']=Rc['[object DataView]']=Rc['[object Date]']=Rc['[object Error]']=Rc['[object Function]']=Rc['[object Map]']=Rc['[object Number]']=Rc['[object Object]']=Rc['[object RegExp]']=Rc['[object Set]']=Rc['[object String]']=Rc['[object WeakMap]']=!1;var Hc=function(e){return Pc(e)&&Dc(e.length)&&!!Rc[Mc(e)]};var zc=function(e){return function(t){return e(t)}},Vc={exports:{}};!function(e,t){var n=nA,r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r&&n.process,s=function(){try{var e=i&&i.require&&i.require('util').types;return e||o&&o.binding&&o.binding('util')}catch(e){}}();e.exports=s}(Vc,Vc.exports);var Kc=Vc.exports,qc=Hc,Gc=zc,Wc=Kc&&Kc.isTypedArray,Yc=Wc?Gc(Wc):qc;var Xc=function(e,t){if(('constructor'!==t||'function'!=typeof e[t])&&'__proto__'!=t)return e[t]},Jc=Nl,Zc=Na,$c=Object.prototype.hasOwnProperty;var eu=function(e,t,n){var r=e[t];$c.call(e,t)&&Zc(r,n)&&(void 0!==n||t in e)||Jc(e,t,n)},tu=eu,nu=Nl;var ru=function(e,t,n,r){var i=!n;n||(n={});for(var o=-1,s=t.length;++o<s;){var a=t[o],A=r?r(n[a],e[a],a,n,e):void 0;void 0===A&&(A=e[a]),i?nu(n,a,A):tu(n,a,A)}return n};var iu=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},ou=/^(?:0|[1-9]\d*)$/;var su=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&('number'==n||'symbol'!=n&&ou.test(e))&&e>-1&&e%1==0&&e<t},au=iu,Au=gc,lu=mc,cu=Fc,uu=su,du=Yc,fu=Object.prototype.hasOwnProperty;var hu=function(e,t){var n=lu(e),r=!n&&Au(e),i=!n&&!r&&cu(e),o=!n&&!r&&!i&&du(e),s=n||r||i||o,a=s?au(e.length,String):[],A=a.length;for(var l in e)!t&&!fu.call(e,l)||s&&('length'==l||i&&('offset'==l||'parent'==l)||o&&('buffer'==l||'byteLength'==l||'byteOffset'==l)||uu(l,A))||a.push(l);return a};var pu=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},gu=vA,mu=rc,vu=pu,bu=Object.prototype.hasOwnProperty;var yu=function(e){if(!gu(e))return vu(e);var t=mu(e),n=[];for(var r in e)('constructor'!=r||!t&&bu.call(e,r))&&n.push(r);return n},wu=hu,Bu=yu,xu=wc;var Cu=function(e){return xu(e)?wu(e,!0):Bu(e)},_u=ru,ju=Cu;var Fu=Dl,Eu=zl,Su=Wl,ku=Yl,Uu=ac,Qu=gc,Lu=mc,Ou=Cc,Iu=Fc,Nu=BA,Tu=vA,Mu=Nc,Du=Yc,Pu=Xc,Ru=function(e){return _u(e,ju(e))};var Hu=function(e,t,n,r,i,o,s){var a=Pu(e,n),A=Pu(t,n),l=s.get(A);if(l)Fu(e,n,l);else{var c=o?o(a,A,n+'',e,t,s):void 0,u=void 0===c;if(u){var d=Lu(A),f=!d&&Iu(A),h=!d&&!f&&Du(A);c=A,d||f||h?Lu(a)?c=a:Ou(a)?c=ku(a):f?(u=!1,c=Eu(A,!0)):h?(u=!1,c=Su(A,!0)):c=[]:Mu(A)||Qu(A)?(c=a,Qu(a)?c=Ru(a):Tu(a)&&!Nu(a)||(c=Uu(A))):u=!1}u&&(s.set(A,c),i(c,A,r,o,s),s.delete(A)),Fu(e,n,c)}},zu=Ql,Vu=Dl,Ku=Rl,qu=Hu,Gu=vA,Wu=Cu,Yu=Xc;var Xu=function e(t,n,r,i,o){t!==n&&Ku(n,function(s,a){if(o||(o=new zu),Gu(s))qu(t,n,a,r,e,i,o);else{var A=i?i(Yu(t,a),s,a+'',t,n,o):void 0;void 0===A&&(A=s),Vu(t,a,A)}},Wu)};var Ju=function(e){return e};var Zu=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},$u=Math.max;var ed=function(e,t,n){return t=$u(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=$u(r.length-t,0),s=Array(o);++i<o;)s[i]=r[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=r[i];return a[t]=n(s),Zu(e,this,a)}};var td=function(e){return function(){return e}},nd=Ol,rd=nd?function(e,t){return nd(e,'toString',{configurable:!0,enumerable:!1,value:td(t),writable:!0})}:Ju,id=rd,od=Date.now;var sd=function(e){var t=0,n=0;return function(){var r=od(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(id),ad=Ju,Ad=ed,ld=sd;var cd=function(e,t){return ld(Ad(e,t,ad),e+'')},ud=Na,dd=wc,fd=su,hd=vA;var pd=function(e,t,n){if(!hd(n))return!1;var r=typeof t;return!!('number'==r?dd(n)&&fd(t,n.length):'string'==r&&t in n)&&ud(n[t],e)},gd=cd,md=pd;var vd=function(e){return gd(function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(o=e.length>3&&'function'==typeof o?(i--,o):void 0,s&&md(n[0],n[1],s)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var a=n[r];a&&e(t,a,r,o)}return t})},bd=Xu,yd=vd(function(e,t,n){bd(e,t,n)}),wd=or(yd),Bd=mA,xd=Ac;var Cd=function(e){return'symbol'==typeof e||xd(e)&&'[object Symbol]'==Bd(e)},_d=mc,jd=Cd,Fd=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ed=/^\w*$/;var Sd=function(e,t){if(_d(e))return!1;var n=typeof e;return!('number'!=n&&'symbol'!=n&&'boolean'!=n&&null!=e&&!jd(e))||(Ed.test(e)||!Fd.test(e)||null!=t&&e in Object(t))},kd=wl;function Ud(e,t){if('function'!=typeof e||null!=t&&'function'!=typeof t)throw new TypeError('Expected a function');var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(Ud.Cache||kd),n}Ud.Cache=kd;var Qd=Ud;var Ld=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Od=/\\(\\)?/g,Id=function(e){var t=Qd(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(''),e.replace(Ld,function(e,n,r,i){t.push(r?i.replace(Od,'$1'):n||e)}),t}),Nd=Id;var Td=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i},Md=Td,Dd=mc,Pd=Cd,Rd=sA?sA.prototype:void 0,Hd=Rd?Rd.toString:void 0;var zd=function e(t){if('string'==typeof t)return t;if(Dd(t))return Md(t,e)+'';if(Pd(t))return Hd?Hd.call(t):'';var n=t+'';return'0'==n&&1/t==-1/0?'-0':n},Vd=zd;var Kd=mc,qd=Sd,Gd=Nd,Wd=function(e){return null==e?'':Vd(e)};var Yd=function(e,t){return Kd(e)?e:qd(e,t)?[e]:Gd(Wd(e))},Xd=Cd;var Jd=function(e){if('string'==typeof e||Xd(e))return e;var t=e+'';return'0'==t&&1/e==-1/0?'-0':t},Zd=Yd,$d=Jd;var ef=function(e,t){for(var n=0,r=(t=Zd(t,e)).length;null!=e&&n<r;)e=e[$d(t[n++])];return n&&n==r?e:void 0},tf=ef;var nf=function(e,t,n){var r=null==e?void 0:tf(e,t);return void 0===r?n:r},rf=or(nf),of=eu,sf=Yd,af=su,Af=vA,lf=Jd;var cf=function(e,t,n,r){if(!Af(e))return e;for(var i=-1,o=(t=sf(t,e)).length,s=o-1,a=e;null!=a&&++i<o;){var A=lf(t[i]),l=n;if('__proto__'===A||'constructor'===A||'prototype'===A)return e;if(i!=s){var c=a[A];void 0===(l=r?r(c,A,a):void 0)&&(l=Af(c)?c:af(t[i+1])?[]:{})}of(a,A,l),a=a[A]}return e},uf=cf;var df=function(e,t,n){return null==e?e:uf(e,t,n)},ff=or(df);function hf(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function pf(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function gf(){}var mf=.7,vf=1/mf,bf='\\s*([+-]?\\d+)\\s*',yf='\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*',wf='\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*',Bf=/^#([0-9a-f]{3,8})$/,xf=new RegExp(`^rgb\\(${bf},${bf},${bf}\\)$`),Cf=new RegExp(`^rgb\\(${wf},${wf},${wf}\\)$`),_f=new RegExp(`^rgba\\(${bf},${bf},${bf},${yf}\\)$`),jf=new RegExp(`^rgba\\(${wf},${wf},${wf},${yf}\\)$`),Ff=new RegExp(`^hsl\\(${yf},${wf},${wf}\\)$`),Ef=new RegExp(`^hsla\\(${yf},${wf},${wf},${yf}\\)$`),Sf={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 kf(){return this.rgb().formatHex()}function Uf(){return this.rgb().formatRgb()}function Qf(e){var t,n;return e=(e+'').trim().toLowerCase(),(t=Bf.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Lf(t):3===n?new Nf(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Of(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Of(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=xf.exec(e))?new Nf(t[1],t[2],t[3],1):(t=Cf.exec(e))?new Nf(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=_f.exec(e))?Of(t[1],t[2],t[3],t[4]):(t=jf.exec(e))?Of(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Ff.exec(e))?Hf(t[1],t[2]/100,t[3]/100,1):(t=Ef.exec(e))?Hf(t[1],t[2]/100,t[3]/100,t[4]):Sf.hasOwnProperty(e)?Lf(Sf[e]):'transparent'===e?new Nf(NaN,NaN,NaN,0):null}function Lf(e){return new Nf(e>>16&255,e>>8&255,255&e,1)}function Of(e,t,n,r){return r<=0&&(e=t=n=NaN),new Nf(e,t,n,r)}function If(e,t,n,r){return 1===arguments.length?function(e){return e instanceof gf||(e=Qf(e)),e?new Nf((e=e.rgb()).r,e.g,e.b,e.opacity):new Nf}(e):new Nf(e,t,n,null==r?1:r)}function Nf(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Tf(){return`#${Rf(this.r)}${Rf(this.g)}${Rf(this.b)}`}function Mf(){const e=Df(this.opacity);return`${1===e?'rgb(':'rgba('}${Pf(this.r)}, ${Pf(this.g)}, ${Pf(this.b)}${1===e?')':`, ${e})`}`}function Df(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Pf(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Rf(e){return((e=Pf(e))<16?'0':'')+e.toString(16)}function Hf(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Vf(e,t,n,r)}function zf(e){if(e instanceof Vf)return new Vf(e.h,e.s,e.l,e.opacity);if(e instanceof gf||(e=Qf(e)),!e)return new Vf;if(e instanceof Vf)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),s=NaN,a=o-i,A=(o+i)/2;return a?(s=t===o?(n-r)/a+6*(n<r):n===o?(r-t)/a+2:(t-n)/a+4,a/=A<.5?o+i:2-o-i,s*=60):a=A>0&&A<1?0:s,new Vf(s,a,A,e.opacity)}function Vf(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Kf(e){return(e=(e||0)%360)<0?e+360:e}function qf(e){return Math.max(0,Math.min(1,e||0))}function Gf(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}hf(gf,Qf,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:kf,formatHex:kf,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return zf(this).formatHsl()},formatRgb:Uf,toString:Uf}),hf(Nf,If,pf(gf,{brighter(e){return e=null==e?vf:Math.pow(vf,e),new Nf(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?mf:Math.pow(mf,e),new Nf(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Nf(Pf(this.r),Pf(this.g),Pf(this.b),Df(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:Tf,formatHex:Tf,formatHex8:function(){return`#${Rf(this.r)}${Rf(this.g)}${Rf(this.b)}${Rf(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Mf,toString:Mf})),hf(Vf,function(e,t,n,r){return 1===arguments.length?zf(e):new Vf(e,t,n,null==r?1:r)},pf(gf,{brighter(e){return e=null==e?vf:Math.pow(vf,e),new Vf(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?mf:Math.pow(mf,e),new Vf(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 Nf(Gf(e>=240?e-240:e+120,i,r),Gf(e,i,r),Gf(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Vf(Kf(this.h),qf(this.s),qf(this.l),Df(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=Df(this.opacity);return`${1===e?'hsl(':'hsla('}${Kf(this.h)}, ${100*qf(this.s)}%, ${100*qf(this.l)}%${1===e?')':`, ${e})`}`}}));var Wf=e=>()=>e;function Yf(e){return 1===(e=+e)?Xf: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):Wf(isNaN(t)?n:t)}}function Xf(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Wf(isNaN(e)?t:e)}!function e(t){var n=Yf(t);function r(e,t){var r=n((e=If(e)).r,(t=If(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),s=Xf(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=s(t),e+''}}return r.gamma=e,r}(1);var Jf,Zf=(Jf=function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],s=r>0?e[r-1]:2*i-o,a=r<t-1?e[r+2]:2*o-i;return function(e,t,n,r,i){var o=e*e,s=o*e;return((1-3*e+3*o-s)*t+(4-6*o+3*s)*n+(1+3*e+3*o-3*s)*r+s*i)/6}((n-r/t)*t,s,i,o,a)}},function(e){var t,n,r=e.length,i=new Array(r),o=new Array(r),s=new Array(r);for(t=0;t<r;++t)n=If(e[t]),i[t]=n.r||0,o[t]=n.g||0,s[t]=n.b||0;return i=Jf(i),o=Jf(o),s=Jf(s),n.opacity=1,function(e){return n.r=i(e),n.g=o(e),n.b=s(e),n+''}});function $f(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var eh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,th=new RegExp(eh.source,'g');var nh=mA,rh=mc,ih=Ac;var oh=or(function(e){return'string'==typeof e||!rh(e)&&ih(e)&&'[object String]'==nh(e)});var sh=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},ah=or(sh);function Ah(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function lh(e){let t=e,n=e;function r(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){const o=r+i>>>1;n(e[o],t)<0?r=o+1:i=o}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=function(e){return(t,n)=>Ah(e(t),n)}(e)),{left:r,center:function(e,n,i,o){null==i&&(i=0),null==o&&(o=e.length);const s=r(e,n,i,o-1);return s>i&&t(e[s-1],n)>-t(e[s],n)?s-1:s},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){const o=r+i>>>1;n(e[o],t)>0?i=o:r=o+1}return r}}}const ch=lh(Ah).right;lh(function(e){return null===e?NaN:+e}).center;var uh=ch,dh=Math.sqrt(50),fh=Math.sqrt(10),hh=Math.sqrt(2);function ph(e,t,n){var r,i,o,s,a=-1;if(n=+n,(e=+e)===(t=+t)&&n>0)return[e];if((r=t<e)&&(i=e,e=t,t=i),0===(s=gh(e,t,n))||!isFinite(s))return[];if(s>0){let n=Math.round(e/s),r=Math.round(t/s);for(n*s<e&&++n,r*s>t&&--r,o=new Array(i=r-n+1);++a<i;)o[a]=(n+a)*s}else{s=-s;let n=Math.round(e*s),r=Math.round(t*s);for(n/s<e&&++n,r/s>t&&--r,o=new Array(i=r-n+1);++a<i;)o[a]=(n+a)/s}return r&&o.reverse(),o}function gh(e,t,n){var r=(t-e)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=dh?10:o>=fh?5:o>=hh?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=dh?10:o>=fh?5:o>=hh?2:1)}function mh(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=dh?i*=10:o>=fh?i*=5:o>=hh&&(i*=2),t<e?-i:i}function vh(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}const bh=Symbol('implicit');function yh(){var e=new Map,t=[],n=[],r=bh;function i(i){var o=i+'',s=e.get(o);if(!s){if(r!==bh)return r;e.set(o,s=t.push(i))}return n[(s-1)%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new Map;for(const r of n){const n=r+'';e.has(n)||e.set(n,t.push(r))}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 yh(t,n).unknown(r)},vh.apply(i,arguments),i}function wh(){var e,t,n=yh().unknown(void 0),r=n.domain,i=n.range,o=0,s=1,a=!1,A=0,l=0,c=.5;function u(){var n=r().length,u=s<o,d=u?s:o,f=u?o:s;e=(f-d)/Math.max(1,n-A+2*l),a&&(e=Math.floor(e)),d+=(f-d-e*(n-A))*c,t=e*(1-A),a&&(d=Math.round(d),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 d+e*t});return i(u?h.reverse():h)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),u()):r()},n.range=function(e){return arguments.length?([o,s]=e,o=+o,s=+s,u()):[o,s]},n.rangeRound=function(e){return[o,s]=e,o=+o,s=+s,a=!0,u()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(a=!!e,u()):a},n.padding=function(e){return arguments.length?(A=Math.min(1,l=+e),u()):A},n.paddingInner=function(e){return arguments.length?(A=Math.min(1,e),u()):A},n.paddingOuter=function(e){return arguments.length?(l=+e,u()):l},n.align=function(e){return arguments.length?(c=Math.max(0,Math.min(1,e)),u()):c},n.copy=function(){return wh(r(),[o,s]).round(a).paddingInner(A).paddingOuter(l).align(c)},vh.apply(u(),arguments)}function Bh(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return Bh(t())},e}function xh(){return Bh(wh.apply(null,arguments).paddingInner(1))}function Ch(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function _h(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function jh(){}var Fh=.7,Eh=1/Fh,Sh='\\s*([+-]?\\d+)\\s*',kh='\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*',Uh='\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*',Qh=/^#([0-9a-f]{3,8})$/,Lh=new RegExp('^rgb\\('+[Sh,Sh,Sh]+'\\)$'),Oh=new RegExp('^rgb\\('+[Uh,Uh,Uh]+'\\)$'),Ih=new RegExp('^rgba\\('+[Sh,Sh,Sh,kh]+'\\)$'),Nh=new RegExp('^rgba\\('+[Uh,Uh,Uh,kh]+'\\)$'),Th=new RegExp('^hsl\\('+[kh,Uh,Uh]+'\\)$'),Mh=new RegExp('^hsla\\('+[kh,Uh,Uh,kh]+'\\)$'),Dh={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 Ph(){return this.rgb().formatHex()}function Rh(){return this.rgb().formatRgb()}function Hh(e){var t,n;return e=(e+'').trim().toLowerCase(),(t=Qh.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?zh(t):3===n?new Gh(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Vh(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Vh(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=Lh.exec(e))?new Gh(t[1],t[2],t[3],1):(t=Oh.exec(e))?new Gh(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Ih.exec(e))?Vh(t[1],t[2],t[3],t[4]):(t=Nh.exec(e))?Vh(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Th.exec(e))?Jh(t[1],t[2]/100,t[3]/100,1):(t=Mh.exec(e))?Jh(t[1],t[2]/100,t[3]/100,t[4]):Dh.hasOwnProperty(e)?zh(Dh[e]):'transparent'===e?new Gh(NaN,NaN,NaN,0):null}function zh(e){return new Gh(e>>16&255,e>>8&255,255&e,1)}function Vh(e,t,n,r){return r<=0&&(e=t=n=NaN),new Gh(e,t,n,r)}function Kh(e){return e instanceof jh||(e=Hh(e)),e?new Gh((e=e.rgb()).r,e.g,e.b,e.opacity):new Gh}function qh(e,t,n,r){return 1===arguments.length?Kh(e):new Gh(e,t,n,null==r?1:r)}function Gh(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Wh(){return'#'+Xh(this.r)+Xh(this.g)+Xh(this.b)}function Yh(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?'rgb(':'rgba(')+Math.max(0,Math.min(255,Math.round(this.r)||0))+', '+Math.max(0,Math.min(255,Math.round(this.g)||0))+', '+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?')':', '+e+')')}function Xh(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?'0':'')+e.toString(16)}function Jh(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new $h(e,t,n,r)}function Zh(e){if(e instanceof $h)return new $h(e.h,e.s,e.l,e.opacity);if(e instanceof jh||(e=Hh(e)),!e)return new $h;if(e instanceof $h)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),s=NaN,a=o-i,A=(o+i)/2;return a?(s=t===o?(n-r)/a+6*(n<r):n===o?(r-t)/a+2:(t-n)/a+4,a/=A<.5?o+i:2-o-i,s*=60):a=A>0&&A<1?0:s,new $h(s,a,A,e.opacity)}function $h(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ep(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Ch(jh,Hh,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:Ph,formatHex:Ph,formatHsl:function(){return Zh(this).formatHsl()},formatRgb:Rh,toString:Rh}),Ch(Gh,qh,_h(jh,{brighter:function(e){return e=null==e?Eh:Math.pow(Eh,e),new Gh(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?Fh:Math.pow(Fh,e),new Gh(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Wh,formatHex:Wh,formatRgb:Yh,toString:Yh})),Ch($h,function(e,t,n,r){return 1===arguments.length?Zh(e):new $h(e,t,n,null==r?1:r)},_h(jh,{brighter:function(e){return e=null==e?Eh:Math.pow(Eh,e),new $h(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?Fh:Math.pow(Fh,e),new $h(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Gh(ep(e>=240?e-240:e+120,i,r),ep(e,i,r),ep(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?'hsl(':'hsla(')+(this.h||0)+', '+100*(this.s||0)+'%, '+100*(this.l||0)+'%'+(1===e?')':', '+e+')')}}));const tp=Math.PI/180,np=180/Math.PI;var rp=-.14861,ip=1.78277,op=-.29227,sp=-.90649,ap=1.97294,Ap=ap*sp,lp=ap*ip,cp=ip*op-sp*rp;function up(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof dp)return new dp(e.h,e.s,e.l,e.opacity);e instanceof Gh||(e=Kh(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(cp*r+Ap*t-lp*n)/-5.9615122912,o=r-i,s=(ap*(n-i)-op*o)/sp,a=Math.sqrt(s*s+o*o)/(ap*i*(1-i)),A=a?Math.atan2(s,o)*np-120:NaN;return new dp(A<0?A+360:A,a,i,e.opacity)}(e):new dp(e,t,n,null==r?1:r)}function dp(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Ch(dp,up,_h(jh,{brighter:function(e){return e=null==e?Eh:Math.pow(Eh,e),new dp(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?Fh:Math.pow(Fh,e),new dp(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*tp,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new Gh(255*(t+n*(rp*r+ip*i)),255*(t+n*(op*r+sp*i)),255*(t+n*(ap*r)),this.opacity)}}));var fp=e=>()=>e;function hp(e,t){return function(n){return e+n*t}}function pp(e){return 1===(e=+e)?gp: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):fp(isNaN(t)?n:t)}}function gp(e,t){var n=t-e;return n?hp(e,n):fp(isNaN(e)?t:e)}var mp=function e(t){var n=pp(t);function r(e,t){var r=n((e=qh(e)).r,(t=qh(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),s=gp(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=s(t),e+''}}return r.gamma=e,r}(1);var vp=function(e){return function(t){var n,r,i=t.length,o=new Array(i),s=new Array(i),a=new Array(i);for(n=0;n<i;++n)r=qh(t[n]),o[n]=r.r||0,s[n]=r.g||0,a[n]=r.b||0;return o=e(o),s=e(s),a=e(a),r.opacity=1,function(e){return r.r=o(e),r.g=s(e),r.b=a(e),r+''}}}(function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],s=r>0?e[r-1]:2*i-o,a=r<t-1?e[r+2]:2*o-i;return function(e,t,n,r,i){var o=e*e,s=o*e;return((1-3*e+3*o-s)*t+(4-6*o+3*s)*n+(1+3*e+3*o-3*s)*r+s*i)/6}((n-r/t)*t,s,i,o,a)}});function bp(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 yp(e,t){var n,r=t?t.length:0,i=e?Math.min(r,e.length):0,o=new Array(i),s=new Array(r);for(n=0;n<i;++n)o[n]=Fp(e[n],t[n]);for(;n<r;++n)s[n]=t[n];return function(e){for(n=0;n<i;++n)s[n]=o[n](e);return s}}function wp(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Bp(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function xp(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]=Fp(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}}var Cp=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_p=new RegExp(Cp.source,'g');function jp(e,t){var n,r,i,o=Cp.lastIndex=_p.lastIndex=0,s=-1,a=[],A=[];for(e+='',t+='';(n=Cp.exec(e))&&(r=_p.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),a[s]?a[s]+=i:a[++s]=i),(n=n[0])===(r=r[0])?a[s]?a[s]+=r:a[++s]=r:(a[++s]=null,A.push({i:s,x:Bp(n,r)})),o=_p.lastIndex;return o<t.length&&(i=t.slice(o),a[s]?a[s]+=i:a[++s]=i),a.length<2?A[0]?function(e){return function(t){return e(t)+''}}(A[0].x):function(e){return function(){return e}}(t):(t=A.length,function(e){for(var n,r=0;r<t;++r)a[(n=A[r]).i]=n.x(e);return a.join('')})}function Fp(e,t){var n,r=typeof t;return null==t||'boolean'===r?fp(t):('number'===r?Bp:'string'===r?(n=Hh(t))?(t=n,mp):jp:t instanceof Hh?mp:t instanceof Date?wp:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?bp:Array.isArray(t)?yp:'function'!=typeof t.valueOf&&'function'!=typeof t.toString||isNaN(t)?xp:Bp)(e,t)}function Ep(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Sp(e){return function t(n){function r(t,r){var i=e((t=up(t)).h,(r=up(r)).h),o=gp(t.s,r.s),s=gp(t.l,r.l),a=gp(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=o(e),t.l=s(Math.pow(e,n)),t.opacity=a(e),t+''}}return n=+n,r.gamma=t,r}(1)}Sp(function(e,t){var n=t-e;return n?hp(e,n>180||n<-180?n-360*Math.round(n/360):n):fp(isNaN(e)?t:e)});var kp=Sp(gp);function Up(e){return+e}var Qp=[0,1];function Lp(e){return e}function Op(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function Ip(e,t,n){var r=e[0],i=e[1],o=t[0],s=t[1];return i<r?(r=Op(i,r),o=n(s,o)):(r=Op(r,i),o=n(o,s)),function(e){return o(r(e))}}function Np(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),s=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<r;)i[s]=Op(e[s],e[s+1]),o[s]=n(t[s],t[s+1]);return function(t){var n=uh(e,t,1,r)-1;return o[n](i[n](t))}}function Tp(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Mp(){var e,t,n,r,i,o,s=Qp,a=Qp,A=Fp,l=Lp;function c(){var e=Math.min(s.length,a.length);return l!==Lp&&(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))}}(s[0],s[e-1])),r=e>2?Np:Ip,i=o=null,u}function u(t){return null==t||isNaN(t=+t)?n:(i||(i=r(s.map(e),a,A)))(e(l(t)))}return u.invert=function(n){return l(t((o||(o=r(a,s.map(e),Bp)))(n)))},u.domain=function(e){return arguments.length?(s=Array.from(e,Up),c()):s.slice()},u.range=function(e){return arguments.length?(a=Array.from(e),c()):a.slice()},u.rangeRound=function(e){return a=Array.from(e),A=Ep,c()},u.clamp=function(e){return arguments.length?(l=!!e||Lp,c()):l!==Lp},u.interpolate=function(e){return arguments.length?(A=e,c()):A},u.unknown=function(e){return arguments.length?(n=e,u):n},function(n,r){return e=n,t=r,c()}}function Dp(){return Mp()(Lp,Lp)}function Pp(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 Rp(e){return(e=Pp(Math.abs(e)))?e[1]:NaN}var Hp,zp=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Vp(e){if(!(t=zp.exec(e)))throw new Error('invalid format: '+e);var t;return new Kp({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 Kp(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 qp(e,t){var n=Pp(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')}Vp.prototype=Kp.prototype,Kp.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 Gp={'%':(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)=>qp(100*e,t),r:qp,s:function(e,t){var n=Pp(e,t);if(!n)return e+'';var r=n[0],i=n[1],o=i-(Hp=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,s=r.length;return o===s?r:o>s?r+new Array(o-s+1).join('0'):o>0?r.slice(0,o)+'.'+r.slice(o):'0.'+new Array(1-o).join('0')+Pp(e,Math.max(0,t+o-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Wp(e){return e}var Yp,Xp,Jp,Zp=Array.prototype.map,$p=['y','z','a','f','p','n','µ','m','','k','M','G','T','P','E','Z','Y'];function eg(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?Wp:(t=Zp.call(e.grouping,Number),n=e.thousands+'',function(e,r){for(var i=e.length,o=[],s=0,a=t[0],A=0;i>0&&a>0&&(A+a+1>r&&(a=Math.max(1,r-A)),o.push(e.substring(i-=a,i+a)),!((A+=a+1)>r));)a=t[s=(s+1)%t.length];return o.reverse().join(n)}),i=void 0===e.currency?'':e.currency[0]+'',o=void 0===e.currency?'':e.currency[1]+'',s=void 0===e.decimal?'.':e.decimal+'',a=void 0===e.numerals?Wp:function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}(Zp.call(e.numerals,String)),A=void 0===e.percent?'%':e.percent+'',l=void 0===e.minus?'−':e.minus+'',c=void 0===e.nan?'NaN':e.nan+'';function u(e){var t=(e=Vp(e)).fill,n=e.align,u=e.sign,d=e.symbol,f=e.zero,h=e.width,p=e.comma,g=e.precision,m=e.trim,v=e.type;'n'===v?(p=!0,v='g'):Gp[v]||(void 0===g&&(g=12),m=!0,v='g'),(f||'0'===t&&'='===n)&&(f=!0,t='0',n='=');var b='$'===d?i:'#'===d&&/[boxX]/.test(v)?'0'+v.toLowerCase():'',y='$'===d?o:/[%p]/.test(v)?A:'',w=Gp[v],B=/[defgprs%]/.test(v);function x(e){var i,o,A,d=b,x=y;if('c'===v)x=w(e)+x,e='';else{var C=(e=+e)<0||1/e<0;if(e=isNaN(e)?c:w(Math.abs(e),g),m&&(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)),C&&0===+e&&'+'!==u&&(C=!1),d=(C?'('===u?u:l:'-'===u||'('===u?'':u)+d,x=('s'===v?$p[8+Hp/3]:'')+x+(C&&'('===u?')':''),B)for(i=-1,o=e.length;++i<o;)if(48>(A=e.charCodeAt(i))||A>57){x=(46===A?s+e.slice(i+1):e.slice(i))+x,e=e.slice(0,i);break}}p&&!f&&(e=r(e,1/0));var _=d.length+e.length+x.length,j=_<h?new Array(h-_+1).join(t):'';switch(p&&f&&(e=r(j+e,j.length?h-x.length:1/0),j=''),n){case'<':e=d+e+x+j;break;case'=':e=d+j+e+x;break;case'^':e=j.slice(0,_=j.length>>1)+d+e+x+j.slice(_);break;default:e=j+d+e+x}return a(e)}return g=void 0===g?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),x.toString=function(){return e+''},x}return{format:u,formatPrefix:function(e,t){var n=u(((e=Vp(e)).type='f',e)),r=3*Math.max(-8,Math.min(8,Math.floor(Rp(t)/3))),i=Math.pow(10,-r),o=$p[8+r/3];return function(e){return n(i*e)+o}}}}function tg(e,t,n,r){var i,o=mh(e,t,n);switch((r=Vp(null==r?',f':r)).type){case's':var s=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(Rp(t)/3)))-Rp(Math.abs(e)))}(o,s))||(r.precision=i),Jp(r,s);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,Rp(t)-Rp(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,-Rp(Math.abs(e)))}(o))||(r.precision=i-2*('%'===r.type))}return Xp(r)}function ng(e){var t=e.domain;return e.ticks=function(e){var n=t();return ph(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return tg(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,i,o=t(),s=0,a=o.length-1,A=o[s],l=o[a],c=10;for(l<A&&(i=A,A=l,l=i,i=s,s=a,a=i);c-- >0;){if((i=gh(A,l,n))===r)return o[s]=A,o[a]=l,t(o);if(i>0)A=Math.floor(A/i)*i,l=Math.ceil(l/i)*i;else{if(!(i<0))break;A=Math.ceil(A*i)/i,l=Math.floor(l*i)/i}r=i}return e},e}function rg(){var e=Dp();return e.copy=function(){return Tp(e,rg())},vh.apply(e,arguments),ng(e)}function ig(e,t){var n,r=0,i=(e=e.slice()).length-1,o=e[r],s=e[i];return s<o&&(n=r,r=i,i=n,n=o,o=s,s=n),e[r]=t.floor(o),e[i]=t.ceil(s),e}function og(e){return Math.log(e)}function sg(e){return Math.exp(e)}function ag(e){return-Math.log(-e)}function Ag(e){return-Math.exp(-e)}function lg(e){return isFinite(e)?+('1e'+e):e<0?0:e}function cg(e){return function(t){return-e(-t)}}function ug(e){var t,n,r=e(og,sg),i=r.domain,o=10;function s(){return t=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),function(t){return Math.log(t)/e})}(o),n=function(e){return 10===e?lg:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}(o),i()[0]<0?(t=cg(t),n=cg(n),e(ag,Ag)):e(og,sg),r}return r.base=function(e){return arguments.length?(o=+e,s()):o},r.domain=function(e){return arguments.length?(i(e),s()):i()},r.ticks=function(e){var r,s=i(),a=s[0],A=s[s.length-1];(r=A<a)&&(d=a,a=A,A=d);var l,c,u,d=t(a),f=t(A),h=null==e?10:+e,p=[];if(!(o%1)&&f-d<h){if(d=Math.floor(d),f=Math.ceil(f),a>0){for(;d<=f;++d)for(c=1,l=n(d);c<o;++c)if(!((u=l*c)<a)){if(u>A)break;p.push(u)}}else for(;d<=f;++d)for(c=o-1,l=n(d);c>=1;--c)if(!((u=l*c)<a)){if(u>A)break;p.push(u)}2*p.length<h&&(p=ph(a,A,h))}else p=ph(d,f,Math.min(f-d,h)).map(n);return r?p.reverse():p},r.tickFormat=function(e,i){if(null==i&&(i=10===o?'.0e':','),'function'!=typeof i&&(i=Xp(i)),e===1/0)return i;null==e&&(e=10);var s=Math.max(1,o*e/r.ticks().length);return function(e){var r=e/n(Math.round(t(e)));return r*o<o-.5&&(r*=o),r<=s?i(e):''}},r.nice=function(){return i(ig(i(),{floor:function(e){return n(Math.floor(t(e)))},ceil:function(e){return n(Math.ceil(t(e)))}}))},r}function dg(){var e=ug(Mp()).domain([1,10]);return e.copy=function(){return Tp(e,dg()).base(e.base())},vh.apply(e,arguments),e}function fg(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function hg(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function pg(){var e=function(e){var t=1,n=e(fg(t),hg(t));return n.constant=function(n){return arguments.length?e(fg(t=+n),hg(t)):t},ng(n)}(Mp());return e.copy=function(){return Tp(e,pg()).constant(e.constant())},vh.apply(e,arguments)}Yp=eg({thousands:',',grouping:[3],currency:['$','']}),Xp=Yp.format,Jp=Yp.formatPrefix;var gg=new Date,mg=new Date;function vg(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=function(t){return e(t=new Date(+t)),t},i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},i.range=function(n,r,o){var s,a=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return a;do{a.push(s=new Date(+n)),t(n,o),e(n)}while(s<n&&n<r);return a},i.filter=function(n){return vg(function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})},n&&(i.count=function(t,r){return gg.setTime(+t),mg.setTime(+r),e(gg),e(mg),Math.floor(n(gg,mg))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e===0}:function(t){return i.count(0,t)%e===0}):i:null}),i}var bg=vg(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});bg.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?vg(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):bg:null};var yg=bg;bg.range;const wg=1e3,Bg=6e4,xg=36e5,Cg=864e5,_g=6048e5,jg=2592e6,Fg=31536e6;var Eg=vg(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*wg)},function(e,t){return(t-e)/wg},function(e){return e.getUTCSeconds()}),Sg=Eg;Eg.range;var kg=vg(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*wg)},function(e,t){e.setTime(+e+t*Bg)},function(e,t){return(t-e)/Bg},function(e){return e.getMinutes()}),Ug=kg;kg.range;var Qg=vg(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*wg-e.getMinutes()*Bg)},function(e,t){e.setTime(+e+t*xg)},function(e,t){return(t-e)/xg},function(e){return e.getHours()}),Lg=Qg;Qg.range;var Og=vg(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Bg)/Cg,e=>e.getDate()-1),Ig=Og;function Ng(e){return vg(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Bg)/_g})}Og.range;var Tg=Ng(0),Mg=Ng(1),Dg=Ng(2),Pg=Ng(3),Rg=Ng(4),Hg=Ng(5),zg=Ng(6);Tg.range,Mg.range,Dg.range,Pg.range,Rg.range,Hg.range,zg.range;var Vg=vg(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())},function(e){return e.getMonth()}),Kg=Vg;Vg.range;var qg=vg(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});qg.every=function(e){return isFinite(e=Math.floor(e))&&e>0?vg(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)}):null};var Gg=qg;qg.range;var Wg=vg(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Bg)},function(e,t){return(t-e)/Bg},function(e){return e.getUTCMinutes()}),Yg=Wg;Wg.range;var Xg=vg(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*xg)},function(e,t){return(t-e)/xg},function(e){return e.getUTCHours()}),Jg=Xg;Xg.range;var Zg=vg(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/Cg},function(e){return e.getUTCDate()-1}),$g=Zg;function em(e){return vg(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+7*t)},function(e,t){return(t-e)/_g})}Zg.range;var tm=em(0),nm=em(1),rm=em(2),im=em(3),om=em(4),sm=em(5),am=em(6);tm.range,nm.range,rm.range,im.range,om.range,sm.range,am.range;var Am=vg(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())},function(e){return e.getUTCMonth()}),lm=Am;Am.range;var cm=vg(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});cm.every=function(e){return isFinite(e=Math.floor(e))&&e>0?vg(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null};var um=cm;function dm(e,t,n,r,i,o){const s=[[Sg,1,wg],[Sg,5,5e3],[Sg,15,15e3],[Sg,30,3e4],[o,1,Bg],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,xg],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,Cg],[r,2,1728e5],[n,1,_g],[t,1,jg],[t,3,7776e6],[e,1,Fg]];function a(t,n,r){const i=Math.abs(n-t)/r,o=lh(([,,e])=>e).right(s,i);if(o===s.length)return e.every(mh(t/Fg,n/Fg,r));if(0===o)return yg.every(Math.max(mh(t,n,r),1));const[a,A]=s[i/s[o-1][2]<s[o][2]/i?o-1:o];return a.every(A)}return[function(e,t,n){const r=t<e;r&&([e,t]=[t,e]);const i=n&&'function'==typeof n.range?n:a(e,t,n),o=i?i.range(e,+t+1):[];return r?o.reverse():o},a]}cm.range;const[fm,hm]=dm(um,lm,tm,$g,Jg,Yg),[pm,gm]=dm(Gg,Kg,Tg,Ig,Lg,Ug);function mm(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 vm(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 bm(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var ym,wm,Bm,xm,Cm,_m={'-':'',_:' ',0:'0'},jm=/^\s*\d+/,Fm=/^%/,Em=/[\\^$*+?|[\]().{}]/g;function Sm(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 km(e){return e.replace(Em,'\\$&')}function Um(e){return new RegExp('^(?:'+e.map(km).join('|')+')','i')}function Qm(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function Lm(e,t,n){var r=jm.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Om(e,t,n){var r=jm.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Im(e,t,n){var r=jm.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Nm(e,t,n){var r=jm.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Tm(e,t,n){var r=jm.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Mm(e,t,n){var r=jm.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Dm(e,t,n){var r=jm.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Pm(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 Rm(e,t,n){var r=jm.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function Hm(e,t,n){var r=jm.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function zm(e,t,n){var r=jm.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Vm(e,t,n){var r=jm.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Km(e,t,n){var r=jm.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function qm(e,t,n){var r=jm.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Gm(e,t,n){var r=jm.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Wm(e,t,n){var r=jm.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Ym(e,t,n){var r=jm.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Xm(e,t,n){var r=Fm.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Jm(e,t,n){var r=jm.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Zm(e,t,n){var r=jm.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function $m(e,t){return Sm(e.getDate(),t,2)}function ev(e,t){return Sm(e.getHours(),t,2)}function tv(e,t){return Sm(e.getHours()%12||12,t,2)}function nv(e,t){return Sm(1+Ig.count(Gg(e),e),t,3)}function rv(e,t){return Sm(e.getMilliseconds(),t,3)}function iv(e,t){return rv(e,t)+'000'}function ov(e,t){return Sm(e.getMonth()+1,t,2)}function sv(e,t){return Sm(e.getMinutes(),t,2)}function av(e,t){return Sm(e.getSeconds(),t,2)}function Av(e){var t=e.getDay();return 0===t?7:t}function lv(e,t){return Sm(Tg.count(Gg(e)-1,e),t,2)}function cv(e){var t=e.getDay();return t>=4||0===t?Rg(e):Rg.ceil(e)}function uv(e,t){return e=cv(e),Sm(Rg.count(Gg(e),e)+(4===Gg(e).getDay()),t,2)}function dv(e){return e.getDay()}function fv(e,t){return Sm(Mg.count(Gg(e)-1,e),t,2)}function hv(e,t){return Sm(e.getFullYear()%100,t,2)}function pv(e,t){return Sm((e=cv(e)).getFullYear()%100,t,2)}function gv(e,t){return Sm(e.getFullYear()%1e4,t,4)}function mv(e,t){var n=e.getDay();return Sm((e=n>=4||0===n?Rg(e):Rg.ceil(e)).getFullYear()%1e4,t,4)}function vv(e){var t=e.getTimezoneOffset();return(t>0?'-':(t*=-1,'+'))+Sm(t/60|0,'0',2)+Sm(t%60,'0',2)}function bv(e,t){return Sm(e.getUTCDate(),t,2)}function yv(e,t){return Sm(e.getUTCHours(),t,2)}function wv(e,t){return Sm(e.getUTCHours()%12||12,t,2)}function Bv(e,t){return Sm(1+$g.count(um(e),e),t,3)}function xv(e,t){return Sm(e.getUTCMilliseconds(),t,3)}function Cv(e,t){return xv(e,t)+'000'}function _v(e,t){return Sm(e.getUTCMonth()+1,t,2)}function jv(e,t){return Sm(e.getUTCMinutes(),t,2)}function Fv(e,t){return Sm(e.getUTCSeconds(),t,2)}function Ev(e){var t=e.getUTCDay();return 0===t?7:t}function Sv(e,t){return Sm(tm.count(um(e)-1,e),t,2)}function kv(e){var t=e.getUTCDay();return t>=4||0===t?om(e):om.ceil(e)}function Uv(e,t){return e=kv(e),Sm(om.count(um(e),e)+(4===um(e).getUTCDay()),t,2)}function Qv(e){return e.getUTCDay()}function Lv(e,t){return Sm(nm.count(um(e)-1,e),t,2)}function Ov(e,t){return Sm(e.getUTCFullYear()%100,t,2)}function Iv(e,t){return Sm((e=kv(e)).getUTCFullYear()%100,t,2)}function Nv(e,t){return Sm(e.getUTCFullYear()%1e4,t,4)}function Tv(e,t){var n=e.getUTCDay();return Sm((e=n>=4||0===n?om(e):om.ceil(e)).getUTCFullYear()%1e4,t,4)}function Mv(){return'+0000'}function Dv(){return'%'}function Pv(e){return+e}function Rv(e){return Math.floor(+e/1e3)}function Hv(e){return new Date(e)}function zv(e){return e instanceof Date?+e:+new Date(+e)}function Vv(e,t,n,r,i,o,s,a,A,l){var c=Dp(),u=c.invert,d=c.domain,f=l('.%L'),h=l(':%S'),p=l('%I:%M'),g=l('%I %p'),m=l('%a %d'),v=l('%b %d'),b=l('%B'),y=l('%Y');function w(e){return(A(e)<e?f:a(e)<e?h:s(e)<e?p:o(e)<e?g:r(e)<e?i(e)<e?m:v:n(e)<e?b:y)(e)}return c.invert=function(e){return new Date(u(e))},c.domain=function(e){return arguments.length?d(Array.from(e,zv)):d().map(Hv)},c.ticks=function(t){var n=d();return e(n[0],n[n.length-1],null==t?10:t)},c.tickFormat=function(e,t){return null==t?w:l(t)},c.nice=function(e){var n=d();return e&&'function'==typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?d(ig(n,e)):c},c.copy=function(){return Tp(c,Vv(e,t,n,r,i,o,s,a,A,l))},c}function Kv(e){for(var t=e.length/6|0,n=new Array(t),r=0;r<t;)n[r]='#'+e.slice(6*r,6*++r);return n}!function(e){ym=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,s=e.shortDays,a=e.months,A=e.shortMonths,l=Um(i),c=Qm(i),u=Um(o),d=Qm(o),f=Um(s),h=Qm(s),p=Um(a),g=Qm(a),m=Um(A),v=Qm(A),b={a:function(e){return s[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return A[e.getMonth()]},B:function(e){return a[e.getMonth()]},c:null,d:$m,e:$m,f:iv,g:pv,G:mv,H:ev,I:tv,j:nv,L:rv,m:ov,M:sv,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:Pv,s:Rv,S:av,u:Av,U:lv,V:uv,w:dv,W:fv,x:null,X:null,y:hv,Y:gv,Z:vv,'%':Dv},y={a:function(e){return s[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return A[e.getUTCMonth()]},B:function(e){return a[e.getUTCMonth()]},c:null,d:bv,e:bv,f:Cv,g:Iv,G:Tv,H:yv,I:wv,j:Bv,L:xv,m:_v,M:jv,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:Pv,s:Rv,S:Fv,u:Ev,U:Sv,V:Uv,w:Qv,W:Lv,x:null,X:null,y:Ov,Y:Nv,Z:Mv,'%':Dv},w={a:function(e,t,n){var r=f.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=u.exec(t.slice(n));return r?(e.w=d.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return C(e,t,n,r)},d:zm,e:zm,f:Ym,g:Dm,G:Mm,H:Km,I:Km,j:Vm,L:Wm,m:Hm,M:qm,p:function(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=c.get(r[0].toLowerCase()),n+r[0].length):-1},q:Rm,Q:Jm,s:Zm,S:Gm,u:Om,U:Im,V:Nm,w:Lm,W:Tm,x:function(e,t,r){return C(e,n,t,r)},X:function(e,t,n){return C(e,r,t,n)},y:Dm,Y:Mm,Z:Pm,'%':Xm};function B(e,t){return function(n){var r,i,o,s=[],a=-1,A=0,l=e.length;for(n instanceof Date||(n=new Date(+n));++a<l;)37===e.charCodeAt(a)&&(s.push(e.slice(A,a)),null!=(i=_m[r=e.charAt(++a)])?r=e.charAt(++a):i='e'===r?' ':'0',(o=t[r])&&(r=o(n,i)),s.push(r),A=a+1);return s.push(e.slice(A,a)),s.join('')}}function x(e,t){return function(n){var r,i,o=bm(1900,void 0,1);if(C(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=vm(bm(o.y,0,1))).getUTCDay(),r=i>4||0===i?nm.ceil(r):nm(r),r=$g.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=mm(bm(o.y,0,1))).getDay(),r=i>4||0===i?Mg.ceil(r):Mg(r),r=Ig.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?vm(bm(o.y,0,1)).getUTCDay():mm(bm(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,vm(o)):mm(o)}}function C(e,t,n,r){for(var i,o,s=0,a=t.length,A=n.length;s<a;){if(r>=A)return-1;if(37===(i=t.charCodeAt(s++))){if(i=t.charAt(s++),!(o=w[i in _m?t.charAt(s++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=B(n,b),b.X=B(r,b),b.c=B(t,b),y.x=B(n,y),y.X=B(r,y),y.c=B(t,y),{format:function(e){var t=B(e+='',b);return t.toString=function(){return e},t},parse:function(e){var t=x(e+='',!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=B(e+='',y);return t.toString=function(){return e},t},utcParse:function(e){var t=x(e+='',!0);return t.toString=function(){return e},t}}}(e),wm=ym.format,Bm=ym.parse,xm=ym.utcFormat,Cm=ym.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']});Kv('1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf'),Kv('7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666'),Kv('1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666'),Kv('a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928'),Kv('fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2'),Kv('b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc'),Kv('e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999'),Kv('66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3');var qv=Kv('8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f'),Gv=e=>Zf(e[e.length-1]),Wv=new Array(3).concat('d8b365f5f5f55ab4ac','a6611adfc27d80cdc1018571','a6611adfc27df5f5f580cdc1018571','8c510ad8b365f6e8c3c7eae55ab4ac01665e','8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e','8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e','8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e','5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30','5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30').map(Kv);Gv(Wv);var Yv=new Array(3).concat('af8dc3f7f7f77fbf7b','7b3294c2a5cfa6dba0008837','7b3294c2a5cff7f7f7a6dba0008837','762a83af8dc3e7d4e8d9f0d37fbf7b1b7837','762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837','762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837','762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837','40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b','40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b').map(Kv);Gv(Yv);var Xv=new Array(3).concat('e9a3c9f7f7f7a1d76a','d01c8bf1b6dab8e1864dac26','d01c8bf1b6daf7f7f7b8e1864dac26','c51b7de9a3c9fde0efe6f5d0a1d76a4d9221','c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221','c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221','c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221','8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419','8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419').map(Kv);Gv(Xv);var Jv=new Array(3).concat('998ec3f7f7f7f1a340','5e3c99b2abd2fdb863e66101','5e3c99b2abd2f7f7f7fdb863e66101','542788998ec3d8daebfee0b6f1a340b35806','542788998ec3d8daebf7f7f7fee0b6f1a340b35806','5427888073acb2abd2d8daebfee0b6fdb863e08214b35806','5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806','2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08','2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08').map(Kv);Gv(Jv);var Zv=new Array(3).concat('ef8a62f7f7f767a9cf','ca0020f4a58292c5de0571b0','ca0020f4a582f7f7f792c5de0571b0','b2182bef8a62fddbc7d1e5f067a9cf2166ac','b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac','b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac','b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac','67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061','67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061').map(Kv);Gv(Zv);var $v=new Array(3).concat('ef8a62ffffff999999','ca0020f4a582bababa404040','ca0020f4a582ffffffbababa404040','b2182bef8a62fddbc7e0e0e09999994d4d4d','b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d','b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d','b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d','67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a','67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a').map(Kv);Gv($v);var eb=new Array(3).concat('fc8d59ffffbf91bfdb','d7191cfdae61abd9e92c7bb6','d7191cfdae61ffffbfabd9e92c7bb6','d73027fc8d59fee090e0f3f891bfdb4575b4','d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4','d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4','d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4','a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695','a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695').map(Kv);Gv(eb);var tb=new Array(3).concat('fc8d59ffffbf91cf60','d7191cfdae61a6d96a1a9641','d7191cfdae61ffffbfa6d96a1a9641','d73027fc8d59fee08bd9ef8b91cf601a9850','d73027fc8d59fee08bffffbfd9ef8b91cf601a9850','d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850','d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850','a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837','a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837').map(Kv);Gv(tb);var nb=new Array(3).concat('fc8d59ffffbf99d594','d7191cfdae61abdda42b83ba','d7191cfdae61ffffbfabdda42b83ba','d53e4ffc8d59fee08be6f59899d5943288bd','d53e4ffc8d59fee08bffffbfe6f59899d5943288bd','d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd','d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd','9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2','9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2').map(Kv);Gv(nb);var rb=new Array(3).concat('e5f5f999d8c92ca25f','edf8fbb2e2e266c2a4238b45','edf8fbb2e2e266c2a42ca25f006d2c','edf8fbccece699d8c966c2a42ca25f006d2c','edf8fbccece699d8c966c2a441ae76238b45005824','f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824','f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b').map(Kv);Gv(rb);var ib=new Array(3).concat('e0ecf49ebcda8856a7','edf8fbb3cde38c96c688419d','edf8fbb3cde38c96c68856a7810f7c','edf8fbbfd3e69ebcda8c96c68856a7810f7c','edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b','f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b','f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b').map(Kv);Gv(ib);var ob=new Array(3).concat('e0f3dba8ddb543a2ca','f0f9e8bae4bc7bccc42b8cbe','f0f9e8bae4bc7bccc443a2ca0868ac','f0f9e8ccebc5a8ddb57bccc443a2ca0868ac','f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e','f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e','f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081').map(Kv);Gv(ob);var sb=new Array(3).concat('fee8c8fdbb84e34a33','fef0d9fdcc8afc8d59d7301f','fef0d9fdcc8afc8d59e34a33b30000','fef0d9fdd49efdbb84fc8d59e34a33b30000','fef0d9fdd49efdbb84fc8d59ef6548d7301f990000','fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000','fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000').map(Kv);Gv(sb);var ab=new Array(3).concat('ece2f0a6bddb1c9099','f6eff7bdc9e167a9cf02818a','f6eff7bdc9e167a9cf1c9099016c59','f6eff7d0d1e6a6bddb67a9cf1c9099016c59','f6eff7d0d1e6a6bddb67a9cf3690c002818a016450','fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450','fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636').map(Kv);Gv(ab);var Ab=new Array(3).concat('ece7f2a6bddb2b8cbe','f1eef6bdc9e174a9cf0570b0','f1eef6bdc9e174a9cf2b8cbe045a8d','f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d','f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b','fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b','fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858').map(Kv);Gv(Ab);var lb=new Array(3).concat('e7e1efc994c7dd1c77','f1eef6d7b5d8df65b0ce1256','f1eef6d7b5d8df65b0dd1c77980043','f1eef6d4b9dac994c7df65b0dd1c77980043','f1eef6d4b9dac994c7df65b0e7298ace125691003f','f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f','f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f').map(Kv);Gv(lb);var cb=new Array(3).concat('fde0ddfa9fb5c51b8a','feebe2fbb4b9f768a1ae017e','feebe2fbb4b9f768a1c51b8a7a0177','feebe2fcc5c0fa9fb5f768a1c51b8a7a0177','feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177','fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177','fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a').map(Kv);Gv(cb);var ub=new Array(3).concat('edf8b17fcdbb2c7fb8','ffffcca1dab441b6c4225ea8','ffffcca1dab441b6c42c7fb8253494','ffffccc7e9b47fcdbb41b6c42c7fb8253494','ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84','ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84','ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58').map(Kv);Gv(ub);var db=new Array(3).concat('f7fcb9addd8e31a354','ffffccc2e69978c679238443','ffffccc2e69978c67931a354006837','ffffccd9f0a3addd8e78c67931a354006837','ffffccd9f0a3addd8e78c67941ab5d238443005a32','ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32','ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529').map(Kv);Gv(db);var fb=new Array(3).concat('fff7bcfec44fd95f0e','ffffd4fed98efe9929cc4c02','ffffd4fed98efe9929d95f0e993404','ffffd4fee391fec44ffe9929d95f0e993404','ffffd4fee391fec44ffe9929ec7014cc4c028c2d04','ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04','ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506').map(Kv);Gv(fb);var hb=new Array(3).concat('ffeda0feb24cf03b20','ffffb2fecc5cfd8d3ce31a1c','ffffb2fecc5cfd8d3cf03b20bd0026','ffffb2fed976feb24cfd8d3cf03b20bd0026','ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026','ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026','ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026').map(Kv);Gv(hb);var pb=new Array(3).concat('deebf79ecae13182bd','eff3ffbdd7e76baed62171b5','eff3ffbdd7e76baed63182bd08519c','eff3ffc6dbef9ecae16baed63182bd08519c','eff3ffc6dbef9ecae16baed64292c62171b5084594','f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594','f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b').map(Kv);Gv(pb);var gb=new Array(3).concat('e5f5e0a1d99b31a354','edf8e9bae4b374c476238b45','edf8e9bae4b374c47631a354006d2c','edf8e9c7e9c0a1d99b74c47631a354006d2c','edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32','f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32','f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b').map(Kv);Gv(gb);var mb=new Array(3).concat('f0f0f0bdbdbd636363','f7f7f7cccccc969696525252','f7f7f7cccccc969696636363252525','f7f7f7d9d9d9bdbdbd969696636363252525','f7f7f7d9d9d9bdbdbd969696737373525252252525','fffffff0f0f0d9d9d9bdbdbd969696737373525252252525','fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000').map(Kv);Gv(mb);var vb=new Array(3).concat('efedf5bcbddc756bb1','f2f0f7cbc9e29e9ac86a51a3','f2f0f7cbc9e29e9ac8756bb154278f','f2f0f7dadaebbcbddc9e9ac8756bb154278f','f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486','fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486','fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d').map(Kv);Gv(vb);var bb=new Array(3).concat('fee0d2fc9272de2d26','fee5d9fcae91fb6a4acb181d','fee5d9fcae91fb6a4ade2d26a50f15','fee5d9fcbba1fc9272fb6a4ade2d26a50f15','fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d','fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d','fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d').map(Kv);Gv(bb);var yb=new Array(3).concat('fee6cefdae6be6550d','feeddefdbe85fd8d3cd94701','feeddefdbe85fd8d3ce6550da63603','feeddefdd0a2fdae6bfd8d3ce6550da63603','feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04','fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04','fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704').map(Kv);Gv(yb);var wb=wl,Bb=function(e){return this.__data__.set(e,'__lodash_hash_undefined__'),this},xb=function(e){return this.__data__.has(e)};function Cb(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new wb;++t<n;)this.add(e[t])}Cb.prototype.add=Cb.prototype.push=Bb,Cb.prototype.has=xb;var _b=Cb;var jb=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1},Fb=function(e){return e!=e},Eb=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1};var Sb=function(e,t,n){return t==t?Eb(e,t,n):jb(e,Fb,n)};var kb=function(e,t){return!!(null==e?0:e.length)&&Sb(e,t,0)>-1};var Ub=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1};var Qb=function(e,t){return e.has(t)},Lb=_b,Ob=kb,Ib=Ub,Nb=Td,Tb=zc,Mb=Qb;var Db=function(e,t,n,r){var i=-1,o=Ob,s=!0,a=e.length,A=[],l=t.length;if(!a)return A;n&&(t=Nb(t,Tb(n))),r?(o=Ib,s=!1):t.length>=200&&(o=Mb,s=!1,t=new Lb(t));e:for(;++i<a;){var c=e[i],u=null==n?c:n(c);if(c=r||0!==c?c:0,s&&u==u){for(var d=l;d--;)if(t[d]===u)continue e;A.push(c)}else o(t,u,r)||A.push(c)}return A},Pb=Cc,Rb=or(cd(function(e,t){return Pb(e)?Db(e,t):[]})),Hb=Math.PI,zb=2*Hb,Vb=1e-6,Kb=zb-Vb;function qb(){this._x0=this._y0=this._x1=this._y1=null,this._=''}function Gb(){return new qb}function Wb(e){return function(){return e}}qb.prototype=Gb.prototype={constructor:qb,moveTo:function(e,t){this._+='M'+(this._x0=this._x1=+e)+','+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+='Z')},lineTo:function(e,t){this._+='L'+(this._x1=+e)+','+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+='Q'+ +e+','+ +t+','+(this._x1=+n)+','+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,i,o){this._+='C'+ +e+','+ +t+','+ +n+','+ +r+','+(this._x1=+i)+','+(this._y1=+o)},arcTo:function(e,t,n,r,i){e=+e,t=+t,n=+n,r=+r,i=+i;var o=this._x1,s=this._y1,a=n-e,A=r-t,l=o-e,c=s-t,u=l*l+c*c;if(i<0)throw new Error('negative radius: '+i);if(null===this._x1)this._+='M'+(this._x1=e)+','+(this._y1=t);else if(u>Vb)if(Math.abs(c*a-A*l)>Vb&&i){var d=n-o,f=r-s,h=a*a+A*A,p=d*d+f*f,g=Math.sqrt(h),m=Math.sqrt(u),v=i*Math.tan((Hb-Math.acos((h+u-p)/(2*g*m)))/2),b=v/m,y=v/g;Math.abs(b-1)>Vb&&(this._+='L'+(e+b*l)+','+(t+b*c)),this._+='A'+i+','+i+',0,0,'+ +(c*d>l*f)+','+(this._x1=e+y*a)+','+(this._y1=t+y*A)}else this._+='L'+(this._x1=e)+','+(this._y1=t);else;},arc:function(e,t,n,r,i,o){e=+e,t=+t,o=!!o;var s=(n=+n)*Math.cos(r),a=n*Math.sin(r),A=e+s,l=t+a,c=1^o,u=o?r-i:i-r;if(n<0)throw new Error('negative radius: '+n);null===this._x1?this._+='M'+A+','+l:(Math.abs(this._x1-A)>Vb||Math.abs(this._y1-l)>Vb)&&(this._+='L'+A+','+l),n&&(u<0&&(u=u%zb+zb),u>Kb?this._+='A'+n+','+n+',0,1,'+c+','+(e-s)+','+(t-a)+'A'+n+','+n+',0,1,'+c+','+(this._x1=A)+','+(this._y1=l):u>Vb&&(this._+='A'+n+','+n+',0,'+ +(u>=Hb)+','+c+','+(this._x1=e+n*Math.cos(i))+','+(this._y1=t+n*Math.sin(i))))},rect:function(e,t,n,r){this._+='M'+(this._x0=this._x1=+e)+','+(this._y0=this._y1=+t)+'h'+ +n+'v'+ +r+'h'+-n+'Z'},toString:function(){return this._}};var Yb=Math.abs,Xb=Math.atan2,Jb=Math.cos,Zb=Math.max,$b=Math.min,ey=Math.sin,ty=Math.sqrt,ny=1e-12,ry=Math.PI,iy=ry/2,oy=2*ry;function sy(e){return e>=1?iy:e<=-1?-iy:Math.asin(e)}function ay(e){return e.innerRadius}function Ay(e){return e.outerRadius}function ly(e){return e.startAngle}function cy(e){return e.endAngle}function uy(e){return e&&e.padAngle}function dy(e,t,n,r,i,o,s){var a=e-n,A=t-r,l=(s?o:-o)/ty(a*a+A*A),c=l*A,u=-l*a,d=e+c,f=t+u,h=n+c,p=r+u,g=(d+h)/2,m=(f+p)/2,v=h-d,b=p-f,y=v*v+b*b,w=i-o,B=d*p-h*f,x=(b<0?-1:1)*ty(Zb(0,w*w*y-B*B)),C=(B*b-v*x)/y,_=(-B*v-b*x)/y,j=(B*b+v*x)/y,F=(-B*v+b*x)/y,E=C-g,S=_-m,k=j-g,U=F-m;return E*E+S*S>k*k+U*U&&(C=j,_=F),{cx:C,cy:_,x01:-c,y01:-u,x11:C*(i/w-1),y11:_*(i/w-1)}}function fy(){var e=ay,t=Ay,n=Wb(0),r=null,i=ly,o=cy,s=uy,a=null;function A(){var A,l,c=+e.apply(this,arguments),u=+t.apply(this,arguments),d=i.apply(this,arguments)-iy,f=o.apply(this,arguments)-iy,h=Yb(f-d),p=f>d;if(a||(a=A=Gb()),u<c&&(l=u,u=c,c=l),u>ny)if(h>oy-ny)a.moveTo(u*Jb(d),u*ey(d)),a.arc(0,0,u,d,f,!p),c>ny&&(a.moveTo(c*Jb(f),c*ey(f)),a.arc(0,0,c,f,d,p));else{var g,m,v=d,b=f,y=d,w=f,B=h,x=h,C=s.apply(this,arguments)/2,_=C>ny&&(r?+r.apply(this,arguments):ty(c*c+u*u)),j=$b(Yb(u-c)/2,+n.apply(this,arguments)),F=j,E=j;if(_>ny){var S=sy(_/c*ey(C)),k=sy(_/u*ey(C));(B-=2*S)>ny?(y+=S*=p?1:-1,w-=S):(B=0,y=w=(d+f)/2),(x-=2*k)>ny?(v+=k*=p?1:-1,b-=k):(x=0,v=b=(d+f)/2)}var U=u*Jb(v),Q=u*ey(v),L=c*Jb(w),O=c*ey(w);if(j>ny){var I,N=u*Jb(b),T=u*ey(b),M=c*Jb(y),D=c*ey(y);if(h<ry&&(I=function(e,t,n,r,i,o,s,a){var A=n-e,l=r-t,c=s-i,u=a-o,d=u*A-c*l;if(!(d*d<ny))return[e+(d=(c*(t-o)-u*(e-i))/d)*A,t+d*l]}(U,Q,M,D,N,T,L,O))){var P=U-I[0],R=Q-I[1],H=N-I[0],z=T-I[1],V=1/ey(function(e){return e>1?0:e<-1?ry:Math.acos(e)}((P*H+R*z)/(ty(P*P+R*R)*ty(H*H+z*z)))/2),K=ty(I[0]*I[0]+I[1]*I[1]);F=$b(j,(c-K)/(V-1)),E=$b(j,(u-K)/(V+1))}}x>ny?E>ny?(g=dy(M,D,U,Q,u,E,p),m=dy(N,T,L,O,u,E,p),a.moveTo(g.cx+g.x01,g.cy+g.y01),E<j?a.arc(g.cx,g.cy,E,Xb(g.y01,g.x01),Xb(m.y01,m.x01),!p):(a.arc(g.cx,g.cy,E,Xb(g.y01,g.x01),Xb(g.y11,g.x11),!p),a.arc(0,0,u,Xb(g.cy+g.y11,g.cx+g.x11),Xb(m.cy+m.y11,m.cx+m.x11),!p),a.arc(m.cx,m.cy,E,Xb(m.y11,m.x11),Xb(m.y01,m.x01),!p))):(a.moveTo(U,Q),a.arc(0,0,u,v,b,!p)):a.moveTo(U,Q),c>ny&&B>ny?F>ny?(g=dy(L,O,N,T,c,-F,p),m=dy(U,Q,M,D,c,-F,p),a.lineTo(g.cx+g.x01,g.cy+g.y01),F<j?a.arc(g.cx,g.cy,F,Xb(g.y01,g.x01),Xb(m.y01,m.x01),!p):(a.arc(g.cx,g.cy,F,Xb(g.y01,g.x01),Xb(g.y11,g.x11),!p),a.arc(0,0,c,Xb(g.cy+g.y11,g.cx+g.x11),Xb(m.cy+m.y11,m.cx+m.x11),p),a.arc(m.cx,m.cy,F,Xb(m.y11,m.x11),Xb(m.y01,m.x01),!p))):a.arc(0,0,c,w,y,p):a.lineTo(L,O)}else a.moveTo(0,0);if(a.closePath(),A)return a=null,A+''||null}return A.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-ry/2;return[Jb(r)*n,ey(r)*n]},A.innerRadius=function(t){return arguments.length?(e='function'==typeof t?t:Wb(+t),A):e},A.outerRadius=function(e){return arguments.length?(t='function'==typeof e?e:Wb(+e),A):t},A.cornerRadius=function(e){return arguments.length?(n='function'==typeof e?e:Wb(+e),A):n},A.padRadius=function(e){return arguments.length?(r=null==e?null:'function'==typeof e?e:Wb(+e),A):r},A.startAngle=function(e){return arguments.length?(i='function'==typeof e?e:Wb(+e),A):i},A.endAngle=function(e){return arguments.length?(o='function'==typeof e?e:Wb(+e),A):o},A.padAngle=function(e){return arguments.length?(s='function'==typeof e?e:Wb(+e),A):s},A.context=function(e){return arguments.length?(a=null==e?null:e,A):a},A}function hy(e){this._context=e}function py(e){return new hy(e)}function gy(e){return e[0]}function my(e){return e[1]}function vy(){var e=gy,t=my,n=Wb(!0),r=null,i=py,o=null;function s(s){var a,A,l,c=s.length,u=!1;for(null==r&&(o=i(l=Gb())),a=0;a<=c;++a)!(a<c&&n(A=s[a],a,s))===u&&((u=!u)?o.lineStart():o.lineEnd()),u&&o.point(+e(A,a,s),+t(A,a,s));if(l)return o=null,l+''||null}return s.x=function(t){return arguments.length?(e='function'==typeof t?t:Wb(+t),s):e},s.y=function(e){return arguments.length?(t='function'==typeof e?e:Wb(+e),s):t},s.defined=function(e){return arguments.length?(n='function'==typeof e?e:Wb(!!e),s):n},s.curve=function(e){return arguments.length?(i=e,null!=r&&(o=i(r)),s):i},s.context=function(e){return arguments.length?(null==e?r=o=null:o=i(r=e),s):r},s}function by(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function yy(e){return e}hy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};var wy=Array.prototype.slice;function By(){}function xy(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Cy(e){this._context=e}function _y(e){this._context=e}function jy(e){this._context=e}function Fy(e,t){this._basis=new Cy(e),this._beta=t}Cy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:xy(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:xy(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},_y.prototype={areaStart:By,areaEnd:By,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:xy(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},jy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:xy(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Fy.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,i=e[0],o=t[0],s=e[n]-i,a=t[n]-o,A=-1;++A<=n;)r=A/n,this._basis.point(this._beta*e[A]+(1-this._beta)*(i+r*s),this._beta*t[A]+(1-this._beta)*(o+r*a));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var Ey=function e(t){function n(e){return 1===t?new Cy(e):new Fy(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function Sy(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function ky(e,t){this._context=e,this._k=(1-t)/6}ky.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Sy(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Sy(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Uy=function e(t){function n(e){return new ky(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Qy(e,t){this._context=e,this._k=(1-t)/6}Qy.prototype={areaStart:By,areaEnd:By,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Sy(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Ly=function e(t){function n(e){return new Qy(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Oy(e,t){this._context=e,this._k=(1-t)/6}Oy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Sy(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Iy=function e(t){function n(e){return new Oy(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Ny(e,t,n){var r=e._x1,i=e._y1,o=e._x2,s=e._y2;if(e._l01_a>ny){var a=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,A=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*a-e._x0*e._l12_2a+e._x2*e._l01_2a)/A,i=(i*a-e._y0*e._l12_2a+e._y2*e._l01_2a)/A}if(e._l23_a>ny){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*l+e._x1*e._l23_2a-t*e._l12_2a)/c,s=(s*l+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,i,o,s,e._x2,e._y2)}function Ty(e,t){this._context=e,this._alpha=t}Ty.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:Ny(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var My=function e(t){function n(e){return t?new Ty(e,t):new ky(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Dy(e,t){this._context=e,this._alpha=t}Dy.prototype={areaStart:By,areaEnd:By,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Ny(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Py=function e(t){function n(e){return t?new Dy(e,t):new Qy(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Ry(e,t){this._context=e,this._alpha=t}Ry.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ny(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Hy=function e(t){function n(e){return t?new Ry(e,t):new Oy(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function zy(e){this._context=e}function Vy(e){return e<0?-1:1}function Ky(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),s=(n-e._y1)/(i||r<0&&-0),a=(o*i+s*r)/(r+i);return(Vy(o)+Vy(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(a))||0}function qy(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Gy(e,t,n){var r=e._x0,i=e._y0,o=e._x1,s=e._y1,a=(o-r)/3;e._context.bezierCurveTo(r+a,i+a*t,o-a,s-a*n,o,s)}function Wy(e){this._context=e}function Yy(e){this._context=new Xy(e)}function Xy(e){this._context=e}function Jy(e){this._context=e}function Zy(e){var t,n,r=e.length-1,i=new Array(r),o=new Array(r),s=new Array(r);for(i[0]=0,o[0]=2,s[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,o[t]=4,s[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,o[r-1]=7,s[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/o[t-1],o[t]-=n,s[t]-=n*s[t-1];for(i[r-1]=s[r-1]/o[r-1],t=r-2;t>=0;--t)i[t]=(s[t]-i[t+1])/o[t];for(o[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function $y(e,t){this._context=e,this._t=t}function ew(e,t){if((i=e.length)>1)for(var n,r,i,o=1,s=e[t[0]],a=s.length;o<i;++o)for(r=s,s=e[t[o]],n=0;n<a;++n)s[n][1]+=s[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function tw(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function nw(e,t){return e[t]}function rw(e,t){if((a=e.length)>0)for(var n,r,i,o,s,a,A=0,l=e[t[0]].length;A<l;++A)for(o=s=0,n=0;n<a;++n)(i=(r=e[t[n]][A])[1]-r[0])>0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=s,r[0]=s+=i):(r[0]=0,r[1]=i)}function iw(e){for(var t,n=-1,r=0,i=e.length,o=-1/0;++n<i;)(t=+e[n][1])>o&&(o=t,r=n);return r}function ow(e){var t=e.map(sw);return tw(e).sort(function(e,n){return t[e]-t[n]})}function sw(e){for(var t,n=0,r=-1,i=e.length;++r<i;)(t=+e[r][1])&&(n+=t);return n}function aw(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)]}zy.prototype={areaStart:By,areaEnd:By,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},Wy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Gy(this,this._t0,qy(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Gy(this,qy(this,n=Ky(this,e,t)),n);break;default:Gy(this,this._t0,n=Ky(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(Yy.prototype=Object.create(Wy.prototype)).point=function(e,t){Wy.prototype.point.call(this,t,e)},Xy.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}},Jy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=Zy(e),i=Zy(t),o=0,s=1;s<n;++o,++s)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[s],t[s]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},$y.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var Aw,lw=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function cw(e){if(!(t=lw.exec(e)))throw new Error('invalid format: '+e);var t;return new uw({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 uw(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 dw(e,t){var n=aw(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')}cw.prototype=uw.prototype,uw.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 fw={'%':function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+''},d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString('en').replace(/,/g,''):e.toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return dw(100*e,t)},r:dw,s:function(e,t){var n=aw(e,t);if(!n)return e+'';var r=n[0],i=n[1],o=i-(Aw=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,s=r.length;return o===s?r:o>s?r+new Array(o-s+1).join('0'):o>0?r.slice(0,o)+'.'+r.slice(o):'0.'+new Array(1-o).join('0')+aw(e,Math.max(0,t+o-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function hw(e){return e}var pw,gw,mw=Array.prototype.map,vw=['y','z','a','f','p','n','µ','m','','k','M','G','T','P','E','Z','Y'];function bw(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?hw:(t=mw.call(e.grouping,Number),n=e.thousands+'',function(e,r){for(var i=e.length,o=[],s=0,a=t[0],A=0;i>0&&a>0&&(A+a+1>r&&(a=Math.max(1,r-A)),o.push(e.substring(i-=a,i+a)),!((A+=a+1)>r));)a=t[s=(s+1)%t.length];return o.reverse().join(n)}),i=void 0===e.currency?'':e.currency[0]+'',o=void 0===e.currency?'':e.currency[1]+'',s=void 0===e.decimal?'.':e.decimal+'',a=void 0===e.numerals?hw:function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}(mw.call(e.numerals,String)),A=void 0===e.percent?'%':e.percent+'',l=void 0===e.minus?'-':e.minus+'',c=void 0===e.nan?'NaN':e.nan+'';function u(e){var t=(e=cw(e)).fill,n=e.align,u=e.sign,d=e.symbol,f=e.zero,h=e.width,p=e.comma,g=e.precision,m=e.trim,v=e.type;'n'===v?(p=!0,v='g'):fw[v]||(void 0===g&&(g=12),m=!0,v='g'),(f||'0'===t&&'='===n)&&(f=!0,t='0',n='=');var b='$'===d?i:'#'===d&&/[boxX]/.test(v)?'0'+v.toLowerCase():'',y='$'===d?o:/[%p]/.test(v)?A:'',w=fw[v],B=/[defgprs%]/.test(v);function x(e){var i,o,A,d=b,x=y;if('c'===v)x=w(e)+x,e='';else{var C=(e=+e)<0||1/e<0;if(e=isNaN(e)?c:w(Math.abs(e),g),m&&(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)),C&&0===+e&&'+'!==u&&(C=!1),d=(C?'('===u?u:l:'-'===u||'('===u?'':u)+d,x=('s'===v?vw[8+Aw/3]:'')+x+(C&&'('===u?')':''),B)for(i=-1,o=e.length;++i<o;)if(48>(A=e.charCodeAt(i))||A>57){x=(46===A?s+e.slice(i+1):e.slice(i))+x,e=e.slice(0,i);break}}p&&!f&&(e=r(e,1/0));var _=d.length+e.length+x.length,j=_<h?new Array(h-_+1).join(t):'';switch(p&&f&&(e=r(j+e,j.length?h-x.length:1/0),j=''),n){case'<':e=d+e+x+j;break;case'=':e=d+j+e+x;break;case'^':e=j.slice(0,_=j.length>>1)+d+e+x+j.slice(_);break;default:e=j+d+e+x}return a(e)}return g=void 0===g?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),x.toString=function(){return e+''},x}return{format:u,formatPrefix:function(e,t){var n=u(((e=cw(e)).type='f',e)),r=3*Math.max(-8,Math.min(8,Math.floor(function(e){return(e=aw(Math.abs(e)))?e[1]:NaN}(t)/3))),i=Math.pow(10,-r),o=vw[8+r/3];return function(e){return n(i*e)+o}}}}!function(e){pw=bw(e),gw=pw.format,pw.formatPrefix}({decimal:'.',thousands:',',grouping:[3],currency:['$',''],minus:'-'});var yw=ef,ww=cf,Bw=Yd;var xw=function(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var s=t[r],a=yw(e,s);n(a,s)&&ww(o,Bw(s,e),a)}return o};var Cw=function(e,t){return null!=e&&t in Object(e)},_w=Yd,jw=gc,Fw=mc,Ew=su,Sw=vc,kw=Jd;var Uw=function(e,t,n){for(var r=-1,i=(t=_w(t,e)).length,o=!1;++r<i;){var s=kw(t[r]);if(!(o=null!=e&&n(e,s)))break;e=e[s]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&Sw(i)&&Ew(s,i)&&(Fw(e)||jw(e))},Qw=Cw,Lw=Uw;var Ow=function(e,t){return null!=e&&Lw(e,t,Qw)},Iw=xw,Nw=Ow;var Tw=function(e,t){return Iw(e,t,function(t,n){return Nw(e,n)})};var Mw=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e},Dw=gc,Pw=mc,Rw=sA?sA.isConcatSpreadable:void 0;var Hw=Mw,zw=function(e){return Pw(e)||Dw(e)||!!(Rw&&e&&e[Rw])};var Vw=function e(t,n,r,i,o){var s=-1,a=t.length;for(r||(r=zw),o||(o=[]);++s<a;){var A=t[s];n>0&&r(A)?n>1?e(A,n-1,r,i,o):Hw(o,A):i||(o[o.length]=A)}return o},Kw=Vw;var qw=function(e){return(null==e?0:e.length)?Kw(e,1):[]},Gw=ed,Ww=sd;var Yw=function(e){return Ww(Gw(e,void 0,qw),e+'')},Xw=Tw,Jw=Yw(function(e,t){return null==e?{}:Xw(e,t)}),Zw=or(Jw);var $w=_b,eB=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1},tB=Qb;var nB=function(e,t,n,r,i,o){var s=1&n,a=e.length,A=t.length;if(a!=A&&!(s&&A>a))return!1;var l=o.get(e),c=o.get(t);if(l&&c)return l==t&&c==e;var u=-1,d=!0,f=2&n?new $w:void 0;for(o.set(e,t),o.set(t,e);++u<a;){var h=e[u],p=t[u];if(r)var g=s?r(p,h,u,t,e,o):r(h,p,u,e,t,o);if(void 0!==g){if(g)continue;d=!1;break}if(f){if(!eB(t,function(e,t){if(!tB(f,t)&&(h===e||i(h,e,n,r,o)))return f.push(t)})){d=!1;break}}else if(h!==p&&!i(h,p,n,r,o)){d=!1;break}}return o.delete(e),o.delete(t),d};var rB=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n};var iB=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n},oB=Vl,sB=Na,aB=nB,AB=rB,lB=iB,cB=sA?sA.prototype:void 0,uB=cB?cB.valueOf:void 0;var dB=function(e,t,n,r,i,o,s){switch(n){case'[object DataView]':if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case'[object ArrayBuffer]':return!(e.byteLength!=t.byteLength||!o(new oB(e),new oB(t)));case'[object Boolean]':case'[object Date]':case'[object Number]':return sB(+e,+t);case'[object Error]':return e.name==t.name&&e.message==t.message;case'[object RegExp]':case'[object String]':return e==t+'';case'[object Map]':var a=AB;case'[object Set]':var A=1&r;if(a||(a=lB),e.size!=t.size&&!A)return!1;var l=s.get(e);if(l)return l==t;r|=2,s.set(e,t);var c=aB(a(e),a(t),r,i,o,s);return s.delete(e),c;case'[object Symbol]':if(uB)return uB.call(e)==uB.call(t)}return!1},fB=Mw,hB=mc;var pB=function(e,t,n){var r=t(e);return hB(e)?r:fB(r,n(e))};var gB=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var s=e[n];t(s,n,e)&&(o[i++]=s)}return o};var mB=function(){return[]},vB=gB,bB=mB,yB=Object.prototype.propertyIsEnumerable,wB=Object.getOwnPropertySymbols,BB=wB?function(e){return null==e?[]:(e=Object(e),vB(wB(e),function(t){return yB.call(e,t)}))}:bB,xB=BB,CB=ec(Object.keys,Object),_B=rc,jB=CB,FB=Object.prototype.hasOwnProperty;var EB=function(e){if(!_B(e))return jB(e);var t=[];for(var n in Object(e))FB.call(e,n)&&'constructor'!=n&&t.push(n);return t},SB=hu,kB=EB,UB=wc;var QB=function(e){return UB(e)?SB(e):kB(e)},LB=pB,OB=xB,IB=QB;var NB=function(e){return LB(e,IB,OB)},TB=NB,MB=Object.prototype.hasOwnProperty;var DB=function(e,t,n,r,i,o){var s=1&n,a=TB(e),A=a.length;if(A!=TB(t).length&&!s)return!1;for(var l=A;l--;){var c=a[l];if(!(s?c in t:MB.call(t,c)))return!1}var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var f=!0;o.set(e,t),o.set(t,e);for(var h=s;++l<A;){var p=e[c=a[l]],g=t[c];if(r)var m=s?r(g,p,c,t,e,o):r(p,g,c,e,t,o);if(!(void 0===m?p===g||i(p,g,n,r,o):m)){f=!1;break}h||(h='constructor'==c)}if(f&&!h){var v=e.constructor,b=t.constructor;v==b||!('constructor'in e)||!('constructor'in t)||'function'==typeof v&&v instanceof v&&'function'==typeof b&&b instanceof b||(f=!1)}return o.delete(e),o.delete(t),f},PB=HA(oA,'DataView'),RB=HA(oA,'Promise'),HB=HA(oA,'Set'),zB=PB,VB=zA,KB=RB,qB=HB,GB=HA(oA,'WeakMap'),WB=mA,YB=EA,XB='[object Map]',JB='[object Promise]',ZB='[object Set]',$B='[object WeakMap]',ex='[object DataView]',tx=YB(zB),nx=YB(VB),rx=YB(KB),ix=YB(qB),ox=YB(GB),sx=WB;(zB&&sx(new zB(new ArrayBuffer(1)))!=ex||VB&&sx(new VB)!=XB||KB&&sx(KB.resolve())!=JB||qB&&sx(new qB)!=ZB||GB&&sx(new GB)!=$B)&&(sx=function(e){var t=WB(e),n='[object Object]'==t?e.constructor:void 0,r=n?YB(n):'';if(r)switch(r){case tx:return ex;case nx:return XB;case rx:return JB;case ix:return ZB;case ox:return $B}return t});var ax=sx,Ax=Ql,lx=nB,cx=dB,ux=DB,dx=ax,fx=mc,hx=Fc,px=Yc,gx='[object Arguments]',mx='[object Array]',vx='[object Object]',bx=Object.prototype.hasOwnProperty;var yx=function(e,t,n,r,i,o){var s=fx(e),a=fx(t),A=s?mx:dx(e),l=a?mx:dx(t),c=(A=A==gx?vx:A)==vx,u=(l=l==gx?vx:l)==vx,d=A==l;if(d&&hx(e)){if(!hx(t))return!1;s=!0,c=!1}if(d&&!c)return o||(o=new Ax),s||px(e)?lx(e,t,n,r,i,o):cx(e,t,A,n,r,i,o);if(!(1&n)){var f=c&&bx.call(e,'__wrapped__'),h=u&&bx.call(t,'__wrapped__');if(f||h){var p=f?e.value():e,g=h?t.value():t;return o||(o=new Ax),i(p,g,n,r,o)}}return!!d&&(o||(o=new Ax),ux(e,t,n,r,i,o))},wx=yx,Bx=Ac;var xx=function e(t,n,r,i,o){return t===n||(null==t||null==n||!Bx(t)&&!Bx(n)?t!=t&&n!=n:wx(t,n,r,i,e,o))},Cx=xx;var _x=or(function(e,t){return Cx(e,t)});function jx(){return jx=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},jx.apply(this,arguments)}function Fx(e,t){return Fx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Fx(e,t)}function Ex(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}var Sx={fill:Qr.string,fontSize:Qr.number,fontFamily:Qr.string},kx=Qr.shape({domain:Qr.shape({line:Qr.shape({stroke:Qr.string.isRequired,strokeWidth:Qr.number.isRequired,strokeDasharray:Qr.string}).isRequired}).isRequired,ticks:Qr.shape({line:Qr.shape({stroke:Qr.string.isRequired,strokeWidth:Qr.number.isRequired,strokeDasharray:Qr.string}).isRequired,text:Qr.shape(jx({},Sx)).isRequired}).isRequired,legend:Qr.shape({text:Qr.shape(jx({},Sx)).isRequired}).isRequired}),Ux=Qr.shape({line:Qr.shape({stroke:Qr.string.isRequired,strokeWidth:Qr.number.isRequired,strokeDasharray:Qr.string}).isRequired}),Qx=Qr.shape({hidden:Qr.shape({symbol:Qr.shape({fill:Qr.string.isRequired,opacity:Qr.number}).isRequired,text:Qr.shape(jx({},Sx,{opacity:Qr.number})).isRequired}).isRequired,text:Qr.shape(jx({},Sx)).isRequired}),Lx=Qr.shape({text:Qr.shape(jx({},Sx)).isRequired}),Ox=Qr.shape({text:Qr.shape(jx({},Sx)).isRequired}),Ix=Qr.shape({text:Qr.shape(jx({},Sx)).isRequired}),Nx=Qr.shape({line:Qr.shape({stroke:Qr.string.isRequired,strokeWidth:Qr.number.isRequired,strokeDasharray:Qr.string}).isRequired}),Tx=Qr.shape({text:Qr.shape(jx({},Sx,{outlineWidth:Qr.number.isRequired,outlineColor:Qr.string.isRequired})).isRequired,link:Qr.shape({stroke:Qr.string.isRequired,strokeWidth:Qr.number.isRequired,outlineWidth:Qr.number.isRequired,outlineColor:Qr.string.isRequired}).isRequired,outline:Qr.shape({stroke:Qr.string.isRequired,strokeWidth:Qr.number.isRequired,outlineWidth:Qr.number.isRequired,outlineColor:Qr.string.isRequired}).isRequired,symbol:Qr.shape({fill:Qr.string.isRequired,outlineWidth:Qr.number.isRequired,outlineColor:Qr.string.isRequired}).isRequired});Qr.shape({background:Qr.string.isRequired,fontFamily:Qr.string.isRequired,fontSize:Qr.number.isRequired,textColor:Qr.string.isRequired,axis:kx.isRequired,grid:Ux.isRequired,legends:Qx.isRequired,labels:Lx.isRequired,dots:Ox.isRequired,markers:Ix,crosshair:Nx.isRequired,annotations:Tx.isRequired});var Mx={background:'transparent',text:{fontFamily:'sans-serif',fontSize:11,fill:'#333333',outlineWidth:0,outlineColor:'transparent'},axis:{domain:{line:{stroke:'transparent',strokeWidth:1}},ticks:{line:{stroke:'#777777',strokeWidth:1},text:{}},legend:{text:{fontSize:12}}},grid:{line:{stroke:'#dddddd',strokeWidth:1}},legends:{hidden:{symbol:{fill:'#333333',opacity:.6},text:{fill:'#333333',opacity:.6}},text:{},ticks:{line:{stroke:'#777777',strokeWidth:1},text:{fontSize:10}},title:{text:{}}},labels:{text:{}},markers:{lineColor:'#000000',lineStrokeWidth:1,text:{}},dots:{text:{}},tooltip:{container:{background:'white',color:'inherit',fontSize:'inherit',borderRadius:'2px',boxShadow:'0 1px 2px rgba(0, 0, 0, 0.25)',padding:'5px 9px'},basic:{whiteSpace:'pre',display:'flex',alignItems:'center'},chip:{marginRight:7},table:{},tableCell:{padding:'3px 5px'},tableCellValue:{fontWeight:'bold'}},crosshair:{line:{stroke:'#000000',strokeWidth:1,strokeOpacity:.75,strokeDasharray:'6 6'}},annotations:{text:{fontSize:13,outlineWidth:2,outlineColor:'#ffffff',outlineOpacity:1},link:{stroke:'#000000',strokeWidth:1,outlineWidth:2,outlineColor:'#ffffff',outlineOpacity:1},outline:{fill:'none',stroke:'#000000',strokeWidth:2,outlineWidth:2,outlineColor:'#ffffff',outlineOpacity:1},symbol:{fill:'#000000',outlineWidth:2,outlineColor:'#ffffff',outlineOpacity:1}}},Dx=['axis.ticks.text','axis.legend.text','legends.title.text','legends.text','legends.ticks.text','legends.title.text','labels.text','dots.text','markers.text','annotations.text'],Px=h(),Rx=function(e){var t=e.children,n=e.animate,r=e.config,i=d(function(){var e=oh(r)?rs[r]:r;return{animate:n,config:e}},[n,r]);return w(Px.Provider,{value:i,children:t})},Hx={animate:Qr.bool,motionConfig:Qr.oneOfType([Qr.oneOf(Object.keys(rs)),Qr.shape({mass:Qr.number,tension:Qr.number,friction:Qr.number,clamp:Qr.bool,precision:Qr.number,velocity:Qr.number,duration:Qr.number,easing:Qr.func})])};Rx.propTypes={children:Qr.node.isRequired,animate:Hx.animate,config:Hx.motionConfig};Rx.defaultProps={animate:!0,config:'default'};var zx=function(){return u(Px)},Vx=function(e){var t=zx(),n=t.animate,i=t.config,s=function(e){var t=o();return r(function(){t.current=e},[e]),t.current}(e),a=d(function(){return function(e,t){var n,r,i,o=eh.lastIndex=th.lastIndex=0,s=-1,a=[],A=[];for(e+='',t+='';(n=eh.exec(e))&&(r=th.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),a[s]?a[s]+=i:a[++s]=i),(n=n[0])===(r=r[0])?a[s]?a[s]+=r:a[++s]=r:(a[++s]=null,A.push({i:s,x:$f(n,r)})),o=th.lastIndex;return o<t.length&&(i=t.slice(o),a[s]?a[s]+=i:a[++s]=i),a.length<2?A[0]?function(e){return function(t){return e(t)+''}}(A[0].x):function(e){return function(){return e}}(t):(t=A.length,function(e){for(var n,r=0;r<t;++r)a[(n=A[r]).i]=n.x(e);return a.join('')})}(s,e)},[s,e]),A=Js({from:{value:0},to:{value:1},reset:!0,config:i,immediate:!n}).value;return ia(A,a)},Kx={nivo:['#d76445','#f47560','#e8c1a0','#97e3d5','#61cdbb','#00b0a7'],BrBG:ah(Wv),PRGn:ah(Yv),PiYG:ah(Xv),PuOr:ah(Jv),RdBu:ah(Zv),RdGy:ah($v),RdYlBu:ah(eb),RdYlGn:ah(tb),spectral:ah(nb),blues:ah(pb),greens:ah(gb),greys:ah(mb),oranges:ah(yb),purples:ah(vb),reds:ah(bb),BuGn:ah(rb),BuPu:ah(ib),GnBu:ah(ob),OrRd:ah(sb),PuBuGn:ah(ab),PuBu:ah(Ab),PuRd:ah(lb),RdPu:ah(cb),YlGnBu:ah(ub),YlGn:ah(db),YlOrBr:ah(fb),YlOrRd:ah(hb)},qx=Object.keys(Kx);ah(Wv),ah(Yv),ah(Xv),ah(Jv),ah(Zv),ah($v),ah(eb),ah(tb),ah(nb),ah(pb),ah(gb),ah(mb),ah(yb),ah(vb),ah(bb),ah(rb),ah(ib),ah(ob),ah(sb),ah(ab),ah(Ab),ah(lb),ah(cb),ah(ub),ah(db),ah(fb),ah(hb),Qr.oneOfType([Qr.oneOf(qx),Qr.func,Qr.arrayOf(Qr.string)]);var Gx={basis:function(e){return new Cy(e)},basisClosed:function(e){return new _y(e)},basisOpen:function(e){return new jy(e)},bundle:Ey,cardinal:Uy,cardinalClosed:Ly,cardinalOpen:Iy,catmullRom:My,catmullRomClosed:Py,catmullRomOpen:Hy,linear:py,linearClosed:function(e){return new zy(e)},monotoneX:function(e){return new Wy(e)},monotoneY:function(e){return new Yy(e)},natural:function(e){return new Jy(e)},step:function(e){return new $y(e,.5)},stepAfter:function(e){return new $y(e,1)},stepBefore:function(e){return new $y(e,0)}},Wx=Object.keys(Gx);Qr.oneOf(Wx),Wx.filter(function(e){return e.endsWith('Closed')}),Rb(Wx,'bundle','basisClosed','basisOpen','cardinalClosed','cardinalOpen','catmullRomClosed','catmullRomOpen','linearClosed');var Yx=Rb(Wx,'bundle','basisClosed','basisOpen','cardinalClosed','cardinalOpen','catmullRomClosed','catmullRomOpen','linearClosed'),Xx=Qr.oneOf(Yx),Jx=function(e){if(!Gx[e])throw new TypeError('\''+e+'\', is not a valid curve interpolator identifier.');return Gx[e]},Zx={defs:Qr.arrayOf(Qr.shape({id:Qr.string.isRequired})).isRequired,fill:Qr.arrayOf(Qr.shape({id:Qr.string.isRequired,match:Qr.oneOfType([Qr.oneOf(['*']),Qr.object,Qr.func]).isRequired})).isRequired},$x={ascending:ow,descending:function(e){return ow(e).reverse()},insideOut:function(e){var t,n,r=e.length,i=e.map(sw),o=function(e){var t=e.map(iw);return tw(e).sort(function(e,n){return t[e]-t[n]})}(e),s=0,a=0,A=[],l=[];for(t=0;t<r;++t)n=o[t],s<a?(s+=i[n],A.push(n)):(a+=i[n],l.push(n));return l.reverse().concat(A)},none:tw,reverse:function(e){return tw(e).reverse()}},eC=Object.keys($x);Qr.oneOf(eC);var tC={expand:function(e,t){if((r=e.length)>0){for(var n,r,i,o=0,s=e[0].length;o<s;++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}ew(e,t)}},diverging:rw,none:ew,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 s=0,a=0;s<n;++s)a+=e[s][r][1]||0;i[r][1]+=i[r][0]=-a/2}ew(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,s=1;s<r;++s){for(var a=0,A=0,l=0;a<i;++a){for(var c=e[t[a]],u=c[s][1]||0,d=(u-(c[s-1][1]||0))/2,f=0;f<a;++f){var h=e[t[f]];d+=(h[s][1]||0)-(h[s-1][1]||0)}A+=u,l+=d*u}n[s-1][1]+=n[s-1][0]=o,A&&(o-=l/A)}n[s-1][1]+=n[s-1][0]=o,ew(e,t)}}},nC=Object.keys(tC);Qr.oneOf(nC),Qr.shape({top:Qr.number,right:Qr.number,bottom:Qr.number,left:Qr.number}).isRequired;var rC=Qr.oneOf(['normal','multiply','screen','overlay','darken','lighten','color-dodge','color-burn','hard-light','soft-light','difference','exclusion','hue','saturation','color','luminosity']);yh(qv);var iC={top:0,right:0,bottom:0,left:0},oC=function(e,t,n){return void 0===n&&(n={}),d(function(){var r=jx({},iC,n);return{margin:r,innerWidth:e-r.left-r.right,innerHeight:t-r.top-r.bottom,outerWidth:e,outerHeight:t}},[e,t,n.top,n.right,n.bottom,n.left])},sC=function(){var e=o(null),t=n({left:0,top:0,width:0,height:0}),i=t[0],s=t[1],a=n(function(){return'undefined'==typeof ResizeObserver?null:new ResizeObserver(function(e){var t=e[0];return s(t.contentRect)})})[0];return r(function(){return e.current&&null!==a&&a.observe(e.current),function(){null!==a&&a.disconnect()}},[]),[e,i]},aC=function(e){return d(function(){return function(e,t){var n=wd({},e,t);return Dx.forEach(function(e){void 0===rf(n,e+'.fontFamily')&&ff(n,e+'.fontFamily',n.text.fontFamily),void 0===rf(n,e+'.fontSize')&&ff(n,e+'.fontSize',n.text.fontSize),void 0===rf(n,e+'.fill')&&ff(n,e+'.fill',n.text.fill),void 0===rf(n,e+'.outlineWidth')&&ff(n,e+'.outlineWidth',n.text.outlineWidth),void 0===rf(n,e+'.outlineColor')&&ff(n,e+'.outlineColor',n.text.outlineColor)}),n}(Mx,e)},[e])},AC=function(e){return d(function(){return function(e){return'function'==typeof e?e:'string'==typeof e?0===e.indexOf('time:')?wm(e.slice('5')):gw(e):function(e){return''+e}}(e)},[e])},lC=h(),cC={},uC=function(e){var t=e.theme,n=void 0===t?cC:t,r=e.children,i=aC(n);return w(lC.Provider,{value:i,children:r})};uC.propTypes={children:Qr.node.isRequired,theme:Qr.object};var dC=function(){return u(lC)},fC=function(e){var t=e.children,n=e.condition,r=e.wrapper;return n?A(r,{},t):t};fC.propTypes={children:Qr.node.isRequired,condition:Qr.bool.isRequired,wrapper:Qr.element.isRequired};var hC={position:'relative'},pC=function(e){var t=e.children,n=e.theme,r=e.renderWrapper,i=void 0===r||r,s=e.isInteractive,a=void 0===s||s,A=e.animate,l=e.motionConfig,c=o(null);return w(uC,{theme:n,children:w(Rx,{animate:A,config:l,children:w(Oa,{container:c,children:B(fC,{condition:i,wrapper:w('div',{style:hC,ref:c}),children:[t,a&&w(La,{})]})})})})};pC.propTypes={children:Qr.element.isRequired,isInteractive:Qr.bool,renderWrapper:Qr.bool,theme:Qr.object,animate:Qr.bool,motionConfig:Qr.string},Qr.func.isRequired,Qr.bool,Qr.bool,Qr.object.isRequired,Qr.bool.isRequired,Qr.string;var gC=function(e){var t=e.children,n=sC(),r=n[0],i=n[1],o=i.width>0&&i.height>0;return w('div',{ref:r,style:{width:'100%',height:'100%'},children:o&&t({width:i.width,height:i.height})})};gC.propTypes={children:Qr.func.isRequired};var mC=['id','colors'],vC=function(e){var t=e.id,n=e.colors,r=Ex(e,mC);return w('linearGradient',jx({id:t,x1:0,x2:0,y1:0,y2:1},r,{children:n.map(function(e){var t=e.offset,n=e.color,r=e.opacity;return w('stop',{offset:t+'%',stopColor:n,stopOpacity:void 0!==r?r:1},t)})}))};vC.propTypes={id:Qr.string.isRequired,colors:Qr.arrayOf(Qr.shape({offset:Qr.number.isRequired,color:Qr.string.isRequired,opacity:Qr.number})).isRequired,gradientTransform:Qr.string};var bC={linearGradient:vC},yC=f(function(e){var t=e.id,n=e.background,r=e.color,i=e.size,o=e.padding,s=e.stagger,a=i+o,A=i/2,l=o/2;return!0===s&&(a=2*i+2*o),B('pattern',{id:t,width:a,height:a,patternUnits:'userSpaceOnUse',children:[w('rect',{width:a,height:a,fill:n}),w('circle',{cx:l+A,cy:l+A,r:A,fill:r}),s&&w('circle',{cx:1.5*o+i+A,cy:1.5*o+i+A,r:A,fill:r})]})});yC.displayName='PatternDots',yC.propTypes={id:Qr.string.isRequired,color:Qr.string.isRequired,background:Qr.string.isRequired,size:Qr.number.isRequired,padding:Qr.number.isRequired,stagger:Qr.bool.isRequired},yC.defaultProps={color:'#000000',background:'#ffffff',size:4,padding:4,stagger:!1};var wC=function(e){return e*Math.PI/180},BC=function(e){return 180*e/Math.PI},xC=function(e,t){return{x:Math.cos(e)*t,y:Math.sin(e)*t}},CC={svg:{align:{left:'start',center:'middle',right:'end',start:'start',middle:'middle',end:'end'},baseline:{top:'text-before-edge',center:'central',bottom:'alphabetic'}},canvas:{align:{left:'left',center:'center',right:'right',start:'left',middle:'center',end:'right'},baseline:{top:'top',center:'middle',bottom:'bottom'}}},_C=f(function(e){var t=e.id,n=e.spacing,r=e.rotation,i=e.background,o=e.color,s=e.lineWidth,a=Math.round(r)%360,A=Math.abs(n);a>180?a-=360:a>90?a-=180:a<-180?a+=360:a<-90&&(a+=180);var l,c=A,u=A;return 0===a?l='\n M 0 0 L '+c+' 0\n M 0 '+u+' L '+c+' '+u+'\n ':90===a?l='\n M 0 0 L 0 '+u+'\n M '+c+' 0 L '+c+' '+u+'\n ':(c=Math.abs(A/Math.sin(wC(a))),u=A/Math.sin(wC(90-a)),l=a>0?'\n M 0 '+-u+' L '+2*c+' '+u+'\n M '+-c+' '+-u+' L '+c+' '+u+'\n M '+-c+' 0 L '+c+' '+2*u+'\n ':'\n M '+-c+' '+u+' L '+c+' '+-u+'\n M '+-c+' '+2*u+' L '+2*c+' '+-u+'\n M 0 '+2*u+' L '+2*c+' 0\n '),B('pattern',{id:t,width:c,height:u,patternUnits:'userSpaceOnUse',children:[w('rect',{width:c,height:u,fill:i,stroke:'rgba(255, 0, 0, 0.1)',strokeWidth:0}),w('path',{d:l,strokeWidth:s,stroke:o,strokeLinecap:'square'})]})});_C.displayName='PatternLines',_C.propTypes={id:Qr.string.isRequired,spacing:Qr.number.isRequired,rotation:Qr.number.isRequired,background:Qr.string.isRequired,color:Qr.string.isRequired,lineWidth:Qr.number.isRequired},_C.defaultProps={spacing:5,rotation:0,color:'#000000',background:'#ffffff',lineWidth:2};var jC=f(function(e){var t=e.id,n=e.background,r=e.color,i=e.size,o=e.padding,s=e.stagger,a=i+o,A=o/2;return!0===s&&(a=2*i+2*o),B('pattern',{id:t,width:a,height:a,patternUnits:'userSpaceOnUse',children:[w('rect',{width:a,height:a,fill:n}),w('rect',{x:A,y:A,width:i,height:i,fill:r}),s&&w('rect',{x:1.5*o+i,y:1.5*o+i,width:i,height:i,fill:r})]})});jC.displayName='PatternSquares',jC.propTypes={id:Qr.string.isRequired,color:Qr.string.isRequired,background:Qr.string.isRequired,size:Qr.number.isRequired,padding:Qr.number.isRequired,stagger:Qr.bool.isRequired},jC.defaultProps={color:'#000000',background:'#ffffff',size:4,padding:4,stagger:!1};var FC={patternDots:yC,patternLines:_C,patternSquares:jC},EC=['type'],SC=jx({},bC,FC),kC=function(e){var t=e.defs;return!t||t.length<1?null:w('defs',{'aria-hidden':!0,children:t.map(function(e){var t=e.type,n=Ex(e,EC);return SC[t]?p(SC[t],jx({key:n.id},n)):null})})};kC.propTypes={defs:Qr.arrayOf(Qr.shape({type:Qr.oneOf(Object.keys(SC)).isRequired,id:Qr.string.isRequired}))};var UC=f(kC),QC=function(e){var t=e.width,n=e.height,r=e.margin,i=e.defs,o=e.children,s=e.role,a=e.ariaLabel,A=e.ariaLabelledBy,l=e.ariaDescribedBy,c=e.isFocusable,u=dC();return B('svg',{xmlns:'http://www.w3.org/2000/svg',width:t,height:n,role:s,'aria-label':a,'aria-labelledby':A,'aria-describedby':l,focusable:c,tabIndex:c?0:void 0,children:[w(UC,{defs:i}),w('rect',{width:t,height:n,fill:u.background}),w('g',{transform:'translate('+r.left+','+r.top+')',children:o})]})};QC.propTypes={width:Qr.number.isRequired,height:Qr.number.isRequired,margin:Qr.shape({top:Qr.number.isRequired,left:Qr.number.isRequired}).isRequired,defs:Qr.array,children:Qr.oneOfType([Qr.arrayOf(Qr.node),Qr.node]).isRequired,role:Qr.string,isFocusable:Qr.bool,ariaLabel:Qr.string,ariaLabelledBy:Qr.string,ariaDescribedBy:Qr.string};var LC=function(e){var t=e.size,n=e.color,r=e.borderWidth,i=e.borderColor;return w('circle',{r:t/2,fill:n,stroke:i,strokeWidth:r,style:{pointerEvents:'none'}})};LC.propTypes={size:Qr.number.isRequired,color:Qr.string.isRequired,borderWidth:Qr.number.isRequired,borderColor:Qr.string.isRequired};var OC=f(LC),IC=function(e){var t=e.x,n=e.y,r=e.symbol,i=void 0===r?OC:r,o=e.size,s=e.datum,a=e.color,A=e.borderWidth,l=e.borderColor,c=e.label,u=e.labelTextAnchor,d=void 0===u?'middle':u,f=e.labelYOffset,h=void 0===f?-12:f,g=dC(),m=zx(),v=m.animate,b=Js({transform:'translate('+t+', '+n+')',config:m.config,immediate:!v});return B(va.g,{transform:b.transform,style:{pointerEvents:'none'},children:[p(i,{size:o,color:a,datum:s,borderWidth:A,borderColor:l}),c&&w('text',{textAnchor:d,y:h,style:g.dots.text,children:c})]})};IC.propTypes={x:Qr.number.isRequired,y:Qr.number.isRequired,datum:Qr.object.isRequired,size:Qr.number.isRequired,color:Qr.string.isRequired,borderWidth:Qr.number.isRequired,borderColor:Qr.string.isRequired,symbol:Qr.oneOfType([Qr.func,Qr.object]),label:Qr.oneOfType([Qr.string,Qr.number]),labelTextAnchor:Qr.oneOf(['start','middle','end']),labelYOffset:Qr.number};var NC=f(IC),TC=function(e){var t=e.width,n=e.height,r=e.axis,i=e.scale,o=e.value,s=e.lineStyle,a=e.textStyle,A=e.legend,l=e.legendPosition,c=e.legendOffsetX,u=e.legendOffsetY,d=e.legendOrientation,f=dC(),h=0,p=0,g=0,m=0;'y'===r?(g=i(o),p=t):(h=i(o),m=n);var v=null;if(A){var b=function(e){var t=e.width,n=e.height,r=e.position,i=e.offsetX,o=e.offsetY,s=e.orientation,a=0,A=0,l='vertical'===s?-90:0,c='start';if('x'===e.axis)switch(r){case'top-left':a=-i,A=o,c='end';break;case'top':A=-o,c='horizontal'===s?'middle':'start';break;case'top-right':a=i,A=o,c='horizontal'===s?'start':'end';break;case'right':a=i,A=n/2,c='horizontal'===s?'start':'middle';break;case'bottom-right':a=i,A=n-o,c='start';break;case'bottom':A=n+o,c='horizontal'===s?'middle':'end';break;case'bottom-left':A=n-o,a=-i,c='horizontal'===s?'end':'start';break;case'left':a=-i,A=n/2,c='horizontal'===s?'end':'middle'}else switch(r){case'top-left':a=i,A=-o,c='start';break;case'top':a=t/2,A=-o,c='horizontal'===s?'middle':'start';break;case'top-right':a=t-i,A=-o,c='horizontal'===s?'end':'start';break;case'right':a=t+i,c='horizontal'===s?'start':'middle';break;case'bottom-right':a=t-i,A=o,c='end';break;case'bottom':a=t/2,A=o,c='horizontal'===s?'middle':'end';break;case'bottom-left':a=i,A=o,c='horizontal'===s?'start':'end';break;case'left':a=-i,c='horizontal'===s?'end':'middle'}return{x:a,y:A,rotation:l,textAnchor:c}}({axis:r,width:t,height:n,position:l,offsetX:c,offsetY:u,orientation:d});v=w('text',{transform:'translate('+b.x+', '+b.y+') rotate('+b.rotation+')',textAnchor:b.textAnchor,dominantBaseline:'central',style:a,children:A})}return B('g',{transform:'translate('+h+', '+g+')',children:[w('line',{x1:0,x2:p,y1:0,y2:m,stroke:f.markers.lineColor,strokeWidth:f.markers.lineStrokeWidth,style:s}),v]})};TC.propTypes={width:Qr.number.isRequired,height:Qr.number.isRequired,axis:Qr.oneOf(['x','y']).isRequired,scale:Qr.func.isRequired,value:Qr.oneOfType([Qr.number,Qr.string,Qr.instanceOf(Date)]).isRequired,lineStyle:Qr.object,textStyle:Qr.object,legend:Qr.string,legendPosition:Qr.oneOf(['top-left','top','top-right','right','bottom-right','bottom','bottom-left','left']),legendOffsetX:Qr.number.isRequired,legendOffsetY:Qr.number.isRequired,legendOrientation:Qr.oneOf(['horizontal','vertical']).isRequired},TC.defaultProps={legendPosition:'top-right',legendOffsetX:14,legendOffsetY:14,legendOrientation:'horizontal'};var MC=f(TC),DC=function(e){var t=e.markers,n=e.width,r=e.height,i=e.xScale,o=e.yScale;return t&&0!==t.length?t.map(function(e,t){return w(MC,jx({},e,{width:n,height:r,scale:'y'===e.axis?o:i}),t)}):null};DC.propTypes={width:Qr.number.isRequired,height:Qr.number.isRequired,xScale:Qr.func.isRequired,yScale:Qr.func.isRequired,markers:Qr.arrayOf(Qr.shape({axis:Qr.oneOf(['x','y']).isRequired,value:Qr.oneOfType([Qr.number,Qr.string,Qr.instanceOf(Date)]).isRequired,lineStyle:Qr.object,textStyle:Qr.object}))};var PC=f(DC),RC=['theme','renderWrapper','animate','motionConfig'],HC=function(e){return function(t){var n,r;function i(){return t.apply(this,arguments)||this}return r=t,(n=i).prototype=Object.create(r.prototype),n.prototype.constructor=n,Fx(n,r),i.prototype.render=function(){var t=this.props,n=t.theme,r=t.renderWrapper,i=t.animate,o=t.motionConfig,s=Ex(t,RC);return w(pC,{theme:n,renderWrapper:r,isInteractive:s.isInteractive,animate:i,motionConfig:o,children:w(e,jx({},s))})},i}(g)},zC=function(e){return xA(e)?e:function(t){return rf(t,e)}},VC=function(e){return d(function(){return zC(e)},[e])},KC=function(e,t,n,r,i,o){return e<=i&&i<=e+n&&t<=o&&o<=t+r},qC=function(e,t){var n,r=t.clientX,i=t.clientY,o=e.getBoundingClientRect(),s=(n=void 0!==e.getBBox?e.getBBox():{width:e.offsetWidth,height:e.offsetHeight}).width===o.width?1:n.width/o.width;return[(r-o.left)*s,(i-o.top)*s]},GC=Object.keys(bC),WC=Object.keys(FC),YC=function(e,t,n,r){var i=void 0===r?{}:r,o=i.dataKey,s=i.colorKey,a=void 0===s?'color':s,A=i.targetKey,l=void 0===A?'fill':A,c=[],u={};return e.length&&t.length&&(c=[].concat(e),t.forEach(function(t){for(var r=function(){var r=n[i],s=r.id;if(function(e,t,n){if('*'===e)return!0;if(xA(e))return e(t);if(Tc(e)){var r=n?rf(t,n):t;return _x(Zw(r,Object.keys(e)),e)}return!1}(r.match,t,o)){var A=e.find(function(e){return e.id===s});if(A)if(WC.includes(A.type))if('inherit'===A.background||'inherit'===A.color){var d=rf(t,a),f=A.background,h=A.color,p=s;'inherit'===A.background&&(p=p+'.bg.'+d,f=d),'inherit'===A.color&&(p=p+'.fg.'+d,h=d),ff(t,l,'url(#'+p+')'),u[p]||(c.push(jx({},A,{id:p,background:f,color:h})),u[p]=1)}else ff(t,l,'url(#'+s+')');else if(GC.includes(A.type))if(A.colors.map(function(e){return e.color}).includes('inherit')){var g=rf(t,a),m=s,v=jx({},A,{colors:A.colors.map(function(e,t){return'inherit'!==e.color?e:(m=m+'.'+t+'.'+g,jx({},e,{color:'inherit'===e.color?g:e.color}))})});v.id=m,ff(t,l,'url(#'+m+')'),u[m]||(c.push(v),u[m]=1)}else ff(t,l,'url(#'+s+')');return'break'}},i=0;i<n.length&&'break'!==r();i++);})),c};var XC=HB,JC=function(){},ZC=XC&&1/iB(new XC([,-0]))[1]==1/0?function(e){return new XC(e)}:JC,$C=_b,e_=kb,t_=Ub,n_=Qb,r_=ZC,i_=iB;var o_=function(e,t,n){var r=-1,i=e_,o=e.length,s=!0,a=[],A=a;if(n)s=!1,i=t_;else if(o>=200){var l=t?null:r_(e);if(l)return i_(l);s=!1,i=n_,A=new $C}else A=t?[]:a;e:for(;++r<o;){var c=e[r],u=t?t(c):c;if(c=n||0!==c?c:0,s&&u==u){for(var d=A.length;d--;)if(A[d]===u)continue e;t&&A.push(u),a.push(c)}else i(A,u,n)||(A!==a&&A.push(u),a.push(c))}return a},s_=o_;var a_=or(function(e){return e&&e.length?s_(e):[]}),A_=Ql,l_=xx;var c_=function(e,t,n,r){var i=n.length,o=i,s=!r;if(null==e)return!o;for(e=Object(e);i--;){var a=n[i];if(s&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++i<o;){var A=(a=n[i])[0],l=e[A],c=a[1];if(s&&a[2]){if(void 0===l&&!(A in e))return!1}else{var u=new A_;if(r)var d=r(l,c,A,e,t,u);if(!(void 0===d?l_(c,l,3,r,u):d))return!1}}return!0},u_=vA;var d_=function(e){return e==e&&!u_(e)},f_=d_,h_=QB;var p_=function(e){for(var t=h_(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,f_(i)]}return t};var g_=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}},m_=c_,v_=p_,b_=g_;var y_=function(e){var t=v_(e);return 1==t.length&&t[0][2]?b_(t[0][0],t[0][1]):function(n){return n===e||m_(n,e,t)}},w_=xx,B_=nf,x_=Ow,C_=Sd,__=d_,j_=g_,F_=Jd;var E_=function(e,t){return C_(e)&&__(t)?j_(F_(e),t):function(n){var r=B_(n,e);return void 0===r&&r===t?x_(n,e):w_(t,r,3)}};var S_=function(e){return function(t){return null==t?void 0:t[e]}},k_=ef;var U_=function(e){return function(t){return k_(t,e)}},Q_=S_,L_=U_,O_=Sd,I_=Jd;var N_=function(e){return O_(e)?Q_(I_(e)):L_(e)},T_=y_,M_=E_,D_=Ju,P_=mc,R_=N_;var H_=function(e){return'function'==typeof e?e:null==e?D_:'object'==typeof e?P_(e)?M_(e[0],e[1]):T_(e):R_(e)},z_=H_,V_=o_;var K_=or(function(e,t){return e&&e.length?V_(e,z_(t)):[]}),q_=Rl,G_=QB;var W_=function(e,t){return e&&q_(e,t,G_)},Y_=wc;var X_=function(e,t){return function(n,r){if(null==n)return n;if(!Y_(n))return e(n,r);for(var i=n.length,o=t?i:-1,s=Object(n);(t?o--:++o<i)&&!1!==r(s[o],o,s););return n}}(W_),J_=X_,Z_=wc;var $_=Cd;var ej=function(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=e==e,o=$_(e),s=void 0!==t,a=null===t,A=t==t,l=$_(t);if(!a&&!l&&!o&&e>t||o&&s&&A&&!a&&!l||r&&s&&A||!n&&A||!i)return 1;if(!r&&!o&&!l&&e<t||l&&n&&i&&!r&&!o||a&&n&&i||!s&&i||!A)return-1}return 0};var tj=function(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,s=i.length,a=n.length;++r<s;){var A=ej(i[r],o[r]);if(A)return r>=a?A:A*('desc'==n[r]?-1:1)}return e.index-t.index},nj=Td,rj=ef,ij=H_,oj=function(e,t){var n=-1,r=Z_(e)?Array(e.length):[];return J_(e,function(e,i,o){r[++n]=t(e,i,o)}),r},sj=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e},aj=zc,Aj=tj,lj=Ju,cj=mc;var uj=function(e,t,n){t=t.length?nj(t,function(e){return cj(e)?function(t){return rj(t,1===e.length?e[0]:e)}:e}):[lj];var r=-1;t=nj(t,aj(ij));var i=oj(e,function(e,n,i){return{criteria:nj(t,function(t){return t(e)}),index:++r,value:e}});return sj(i,function(e,t){return Aj(e,t,n)})},dj=Vw,fj=uj,hj=pd,pj=or(cd(function(e,t){if(null==e)return[];var n=t.length;return n>1&&hj(e,t[0],t[1])?t=[]:n>2&&hj(t[0],t[1],t[2])&&(t=[t[0]]),fj(e,dj(t,1),[])})),gj=mA,mj=Ac;var vj=function(e){return mj(e)&&'[object Date]'==gj(e)},bj=zc,yj=Kc&&Kc.isDate,wj=or(yj?bj(yj):vj),Bj=new Date,xj=new Date;function Cj(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=function(t){return e(t=new Date(+t)),t},i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},i.range=function(n,r,o){var s,a=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return a;do{a.push(s=new Date(+n)),t(n,o),e(n)}while(s<n&&n<r);return a},i.filter=function(n){return Cj(function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})},n&&(i.count=function(t,r){return Bj.setTime(+t),xj.setTime(+r),e(Bj),e(xj),Math.floor(n(Bj,xj))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e===0}:function(t){return i.count(0,t)%e===0}):i:null}),i}var _j=Cj(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});_j.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Cj(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):_j:null};var jj=_j;_j.range;var Fj=1e3,Ej=6e4,Sj=36e5,kj=6048e5,Uj=Cj(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Fj)},function(e,t){return(t-e)/Fj},function(e){return e.getUTCSeconds()}),Qj=Uj;Uj.range;var Lj=Cj(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Fj)},function(e,t){e.setTime(+e+t*Ej)},function(e,t){return(t-e)/Ej},function(e){return e.getMinutes()}),Oj=Lj;Lj.range;var Ij=Cj(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Fj-e.getMinutes()*Ej)},function(e,t){e.setTime(+e+t*Sj)},function(e,t){return(t-e)/Sj},function(e){return e.getHours()}),Nj=Ij;function Tj(e){return Cj(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ej)/kj})}Ij.range;var Mj=Tj(0),Dj=Tj(1),Pj=Tj(2),Rj=Tj(3),Hj=Tj(4),zj=Tj(5),Vj=Tj(6);Mj.range,Dj.range,Pj.range,Rj.range,Hj.range,zj.range,Vj.range;var Kj=Cj(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())},function(e){return e.getMonth()}),qj=Kj;Kj.range;var Gj=Cj(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});Gj.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Cj(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)}):null};var Wj=Gj;Gj.range;var Yj=Cj(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Ej)},function(e,t){return(t-e)/Ej},function(e){return e.getUTCMinutes()}),Xj=Yj;Yj.range;var Jj=Cj(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*Sj)},function(e,t){return(t-e)/Sj},function(e){return e.getUTCHours()}),Zj=Jj;function $j(e){return Cj(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+7*t)},function(e,t){return(t-e)/kj})}Jj.range;var eF=$j(0),tF=$j(1),nF=$j(2),rF=$j(3),iF=$j(4),oF=$j(5),sF=$j(6);eF.range,tF.range,nF.range,rF.range,iF.range,oF.range,sF.range;var aF=Cj(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())},function(e){return e.getUTCMonth()}),AF=aF;aF.range;var lF=Cj(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});lF.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Cj(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null};var cF=lF;function uF(){return uF=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},uF.apply(this,arguments)}lF.range;var dF=[function(e){return e.setMilliseconds(0)},function(e){return e.setSeconds(0)},function(e){return e.setMinutes(0)},function(e){return e.setHours(0)},function(e){return e.setDate(1)},function(e){return e.setMonth(0)}],fF={millisecond:[],second:dF.slice(0,1),minute:dF.slice(0,2),hour:dF.slice(0,3),day:dF.slice(0,4),month:dF.slice(0,5),year:dF.slice(0,6)},hF=function(e){var t=e.format,n=void 0===t?'native':t,r=e.precision,i=void 0===r?'millisecond':r,o=e.useUTC,s=void 0===o||o,a=function(e){return function(t){return fF[e].forEach(function(e){e(t)}),t}}(i);return function(e){if(void 0===e)return e;if('native'===n||e instanceof Date)return a(e);var t=s?Cm(n):Bm(n);return a(t(e))}},pF=function(e,t,n,r){var i,o,s,a,A=e.min,l=void 0===A?0:A,c=e.max,u=void 0===c?'auto':c,d=e.stacked,f=void 0!==d&&d,h=e.reverse,p=void 0!==h&&h,g=e.clamp,m=void 0!==g&&g,v=e.nice,b=void 0!==v&&v;i='auto'===l?!0===f?null!=(o=t.minStacked)?o:0:t.min:l,s='auto'===u?!0===f?null!=(a=t.maxStacked)?a:0:t.max:u;var y=rg().rangeRound('x'===r?[0,n]:[n,0]).domain(p?[s,i]:[i,s]).clamp(m);return!0===b?y.nice():'number'==typeof b&&y.nice(b),gF(y,f)},gF=function(e,t){void 0===t&&(t=!1);var n=e;return n.type='linear',n.stacked=t,n},mF=function(e){var t=e;return t.type='band',t},vF=function(e,t,n){var r,i,o=e.format,s=void 0===o?'native':o,a=e.precision,A=void 0===a?'millisecond':a,l=e.min,c=void 0===l?'auto':l,u=e.max,d=void 0===u?'auto':u,f=e.useUTC,h=void 0===f||f,p=e.nice,g=void 0!==p&&p,m=hF({format:s,precision:A,useUTC:h});r='auto'===c?m(t.min):'native'!==s?m(c):c,i='auto'===d?m(t.max):'native'!==s?m(d):d;var v=h?function(){return vh.apply(Vv(fm,hm,um,lm,tm,$g,Jg,Yg,Sg,xm).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}():function(){return vh.apply(Vv(pm,gm,Gg,Kg,Tg,Ig,Lg,Ug,Sg,wm).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}();v.range([0,n]),r&&i&&v.domain([r,i]),!0===g?v.nice():'object'!=typeof g&&'number'!=typeof g||v.nice(g);var b=v;return b.type='time',b.useUTC=h,b},bF=function(e,t,n,r){var i,o=e.base,s=void 0===o?10:o,a=e.min,A=void 0===a?'auto':a,l=e.max,c=void 0===l?'auto':l;if(t.all.some(function(e){return 0===e}))throw new Error('a log scale domain must not include or cross zero');var u,d,f=!1;if(t.all.filter(function(e){return null!=e}).forEach(function(e){f||(void 0===i?i=Math.sign(e):Math.sign(e)!==i&&(f=!0))}),f)throw new Error('a log scale domain must be strictly-positive or strictly-negative');u='auto'===A?t.min:A,d='auto'===c?t.max:c;var h=dg().domain([u,d]).rangeRound('x'===r?[0,n]:[n,0]).base(s).nice();return h.type='log',h},yF=function(e,t){return e===t},wF=function(e,t){return e.getTime()===t.getTime()};function BF(e,t,n,r){switch(e.type){case'linear':return pF(e,t,n,r);case'point':return function(e,t,n){var r=xh().range([0,n]).domain(t.all);return r.type='point',r}(0,t,n);case'band':return function(e,t,n,r){var i=e.round,o=void 0===i||i,s=wh().range('x'===r?[0,n]:[n,0]).domain(t.all).round(o);return mF(s)}(e,t,n,r);case'time':return vF(e,t,n);case'log':return bF(e,t,n,r);case'symlog':return function(e,t,n,r){var i,o,s=e.constant,a=void 0===s?1:s,A=e.min,l=void 0===A?'auto':A,c=e.max,u=void 0===c?'auto':c,d=e.reverse,f=void 0!==d&&d;i='auto'===l?t.min:l,o='auto'===u?t.max:u;var h=pg().constant(a).rangeRound('x'===r?[0,n]:[n,0]).nice();!0===f?h.domain([o,i]):h.domain([i,o]);var p=h;return p.type='symlog',p}(e,t,n,r);default:throw new Error('invalid scale spec')}}var xF=function(e,t,n){var r;if('stacked'in n&&n.stacked){var i=e.data['x'===t?'xStacked':'yStacked'];return null==i?null:n(i)}return null!=(r=n(e.data[t]))?r:null},CF=function(e,t,n){return{x:_F(e,'x',t),y:_F(e,'y',n)}},_F=function(e,t,n,r){var i=void 0===r?{}:r,o=i.getValue,s=void 0===o?function(e){return e.data[t]}:o,a=i.setValue,A=void 0===a?function(e,n){e.data[t]=n}:a;if('linear'===n.type)e.forEach(function(e){e.data.forEach(function(e){var t=s(e);t&&A(e,parseFloat(String(t)))})});else if('time'===n.type&&'native'!==n.format){var l=hF(n);e.forEach(function(e){e.data.forEach(function(e){var t=s(e);t&&A(e,l(t))})})}var c=[];switch(e.forEach(function(e){e.data.forEach(function(e){c.push(s(e))})}),n.type){case'linear':var u=pj(a_(c).filter(function(e){return null!==e}),function(e){return e});return{all:u,min:Math.min.apply(Math,u),max:Math.max.apply(Math,u)};case'time':var d=K_(c,function(e){return e.getTime()}).slice(0).sort(function(e,t){return t.getTime()-e.getTime()}).reverse();return{all:d,min:d[0],max:ah(d)};default:var f=a_(c);return{all:f,min:f[0],max:ah(f)}}},jF=function(e,t,n){var r=function(e){return'x'===e?'y':'x'}(e),i=[];t[r].all.forEach(function(t){var o=wj(t)?wF:yF,s=[];n.forEach(function(n){var a=n.data.find(function(e){return o(e.data[r],t)}),A=null,l=null;if(void 0!==a){if(null!==(A=a.data[e])){var c=ah(s);void 0===c?l=A:null!==c&&(l=c+A)}a.data['x'===e?'xStacked':'yStacked']=l}s.push(l),null!==l&&i.push(l)})}),t[e].minStacked=Math.min.apply(Math,i),t[e].maxStacked=Math.max.apply(Math,i)},FF=function(e,t){return jF('x',e,t)},EF=function(e,t){return jF('y',e,t)},SF=function(e){var t=e.bandwidth();if(0===t)return e;var n=t/2;return e.round()&&(n=Math.round(n)),function(t){var r;return(null!=(r=e(t))?r:0)+n}},kF={millisecond:[jj,jj],second:[Qj,Qj],minute:[Oj,Xj],hour:[Nj,Zj],day:[Cj(function(e){return e.setHours(0,0,0,0)},function(e,t){return e.setDate(e.getDate()+t)},function(e,t){return(t.getTime()-e.getTime())/864e5},function(e){return Math.floor(e.getTime()/864e5)}),Cj(function(e){return e.setUTCHours(0,0,0,0)},function(e,t){return e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t.getTime()-e.getTime())/864e5},function(e){return Math.floor(e.getTime()/864e5)})],week:[Mj,eF],sunday:[Mj,eF],monday:[Dj,tF],tuesday:[Pj,nF],wednesday:[Rj,rF],thursday:[Hj,iF],friday:[zj,oF],saturday:[Vj,sF],month:[qj,AF],year:[Wj,cF]},UF=Object.keys(kF),QF=new RegExp('^every\\s*(\\d+)?\\s*('+UF.join('|')+')s?$','i'),LF=function(e,t){if(Array.isArray(t))return t;if('string'==typeof t&&'useUTC'in e){var n=t.match(QF);if(n){var r=n[1],i=n[2],o=kF[i][e.useUTC?1:0];if('day'===i){var s,a,A=e.domain(),l=A[0],c=A[1],u=new Date(c);return u.setDate(u.getDate()+1),null!=(s=null==(a=o.every(Number(null!=r?r:1)))?void 0:a.range(l,u))?s:[]}if(void 0===r)return e.ticks(o);var d=o.every(Number(r));if(d)return e.ticks(d)}throw new Error('Invalid tickValues: '+t)}if('ticks'in e){if(void 0===t)return e.ticks();if('number'==typeof(f=t)&&isFinite(f)&&Math.floor(f)===f)return e.ticks(t)}var f;return e.domain()};function OF(){return OF=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},OF.apply(this,arguments)}var IF=function(e){var t,n=e.axis,r=e.scale,i=e.ticksPosition,o=e.tickValues,s=e.tickSize,a=e.tickPadding,A=e.tickRotation,l=e.truncateTickAt,c=e.engine,u=void 0===c?'svg':c,d=LF(r,o),f=CC[u],h='bandwidth'in r?SF(r):r,p={lineX:0,lineY:0},g={textX:0,textY:0},m='object'==typeof document&&'rtl'===document.dir,v=f.align.center,b=f.baseline.center;return'x'===n?(t=function(e){var t;return{x:null!=(t=h(e))?t:0,y:0}},p.lineY=s*('after'===i?1:-1),g.textY=(s+a)*('after'===i?1:-1),b='after'===i?f.baseline.top:f.baseline.bottom,0===A?v=f.align.center:'after'===i&&A<0||'before'===i&&A>0?(v=f.align[m?'left':'right'],b=f.baseline.center):('after'===i&&A>0||'before'===i&&A<0)&&(v=f.align[m?'right':'left'],b=f.baseline.center)):(t=function(e){var t;return{x:0,y:null!=(t=h(e))?t:0}},p.lineX=s*('after'===i?1:-1),g.textX=(s+a)*('after'===i?1:-1),v='after'===i?f.align.left:f.align.right),{ticks:d.map(function(e){var n='string'==typeof e?function(e){var t=String(e).length;return l&&l>0&&t>l?''+String(e).slice(0,l).concat('...'):''+e}(e):e;return OF({key:e instanceof Date?''+e.valueOf():''+e,value:n},t(e),p,g)}),textAlign:v,textBaseline:b}},NF=function(e,t){if(void 0===e||'function'==typeof e)return e;if('time'===t.type){var n=wm(e);return function(e){return n(e instanceof Date?e:new Date(e))}}return gw(e)},TF=function(e){var t,n=e.width,r=e.height,i=e.scale,o=e.axis,s=e.values,a=(t=s,(Array.isArray(t)?s:void 0)||LF(i,s)),A='bandwidth'in i?SF(i):i,l='x'===o?a.map(function(e){var t,n;return{key:e instanceof Date?''+e.valueOf():''+e,x1:null!=(t=A(e))?t:0,x2:null!=(n=A(e))?n:0,y1:0,y2:r}}):a.map(function(e){var t,r;return{key:e instanceof Date?''+e.valueOf():''+e,x1:0,x2:n,y1:null!=(t=A(e))?t:0,y2:null!=(r=A(e))?r:0}});return l},MF=f(function(e){var t,n=e.value,r=e.format,i=e.lineX,o=e.lineY,s=e.onClick,a=e.textBaseline,A=e.textAnchor,l=e.animatedProps,c=dC(),u=c.axis.ticks.line,f=c.axis.ticks.text,h=null!=(t=null==r?void 0:r(n))?t:n,p=d(function(){var e={opacity:l.opacity};return s?{style:OF({},e,{cursor:'pointer'}),onClick:function(e){return s(e,h)}}:{style:e}},[l.opacity,s,h]);return B(va.g,OF({transform:l.transform},p,{children:[w('line',{x1:0,x2:i,y1:0,y2:o,style:u}),f.outlineWidth>0&&w(va.text,{dominantBaseline:a,textAnchor:A,transform:l.textTransform,style:f,strokeWidth:2*f.outlineWidth,stroke:f.outlineColor,strokeLinejoin:'round',children:''+h}),w(va.text,{dominantBaseline:a,textAnchor:A,transform:l.textTransform,style:f,children:''+h})]}))}),DF=f(function(t){var n=t.axis,r=t.scale,i=t.x,o=void 0===i?0:i,a=t.y,A=void 0===a?0:a,l=t.length,c=t.ticksPosition,u=t.tickValues,f=t.tickSize,h=void 0===f?5:f,p=t.tickPadding,g=void 0===p?5:p,m=t.tickRotation,v=void 0===m?0:m,b=t.format,y=t.renderTick,C=void 0===y?MF:y,_=t.truncateTickAt,j=t.legend,F=t.legendPosition,E=void 0===F?'end':F,S=t.legendOffset,k=void 0===S?0:S,U=t.onClick,Q=t.ariaHidden,L=dC(),O=L.axis.legend.text,I=d(function(){return NF(b,r)},[b,r]),N=IF({axis:n,scale:r,ticksPosition:c,tickValues:u,tickSize:h,tickPadding:g,tickRotation:v,truncateTickAt:_}),T=N.ticks,M=N.textAlign,D=N.textBaseline,P=null;if(void 0!==j){var R,H=0,z=0,V=0;'y'===n?(V=-90,H=k,'start'===E?(R='start',z=l):'middle'===E?(R='middle',z=l/2):'end'===E&&(R='end')):(z=k,'start'===E?R='start':'middle'===E?(R='middle',H=l/2):'end'===E&&(R='end',H=l)),P=B(x,{children:[O.outlineWidth>0&&w('text',{transform:'translate('+H+', '+z+') rotate('+V+')',textAnchor:R,style:OF({dominantBaseline:'central'},O),strokeWidth:2*O.outlineWidth,stroke:O.outlineColor,strokeLinejoin:'round',children:j}),w('text',{transform:'translate('+H+', '+z+') rotate('+V+')',textAnchor:R,style:OF({dominantBaseline:'central'},O),children:j})]})}var K=zx(),q=K.animate,G=K.config,W=Js({transform:'translate('+o+','+A+')',lineX2:'x'===n?l:0,lineY2:'x'===n?0:l,config:G,immediate:!q}),Y=s(function(e){return{opacity:1,transform:'translate('+e.x+','+e.y+')',textTransform:'translate('+e.textX+','+e.textY+') rotate('+v+')'}},[v]),X=s(function(e){return{opacity:0,transform:'translate('+e.x+','+e.y+')',textTransform:'translate('+e.textX+','+e.textY+') rotate('+v+')'}},[v]),J=Zs(T,{keys:function(e){return e.key},initial:Y,from:X,enter:Y,update:Y,leave:{opacity:0},config:G,immediate:!q});return B(va.g,{transform:W.transform,'aria-hidden':Q,children:[J(function(t,n,r,i){return e.createElement(C,OF({tickIndex:i,format:I,rotate:v,textBaseline:D,textAnchor:M,truncateTickAt:_,animatedProps:t},n,U?{onClick:U}:{}))}),w(va.line,{style:L.axis.domain.line,x1:0,x2:W.lineX2,y1:0,y2:W.lineY2}),P]})}),PF={ticksPosition:Qr.oneOf(['before','after']),tickValues:Qr.oneOfType([Qr.number,Qr.arrayOf(Qr.oneOfType([Qr.number,Qr.string,Qr.instanceOf(Date)])),Qr.string]),rotateOnTickLength:Qr.shape({angle:Qr.number,length:Qr.number}),tickSize:Qr.number,tickPadding:Qr.number,tickRotation:Qr.number,format:Qr.oneOfType([Qr.func,Qr.string]),renderTick:Qr.func,legend:Qr.node,legendPosition:Qr.oneOf(['start','middle','end']),legendOffset:Qr.number,ariaHidden:Qr.bool},RF=Qr.shape(PF),HF=['top','right','bottom','left'],zF=f(function(e){var t=e.xScale,n=e.yScale,r=e.width,i=e.height,o={top:e.top,right:e.right,bottom:e.bottom,left:e.left};return w(x,{children:HF.map(function(e){var s=o[e];if(!s)return null;var a='top'===e||'bottom'===e;return w(DF,OF({},s,{axis:a?'x':'y',x:'right'===e?r:0,y:'bottom'===e?i:0,scale:a?t:n,length:a?r:i,ticksPosition:'top'===e||'left'===e?'before':'after',truncateTickAt:s.truncateTickAt}),e)})})}),VF=f(function(e){var t=e.animatedProps,n=dC();return w(va.line,OF({},t,n.grid.line))}),KF=f(function(e){var t=e.lines,n=zx(),r=n.animate,i=Zs(t,{keys:function(e){return e.key},initial:function(e){return{opacity:1,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2}},from:function(e){return{opacity:0,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2}},enter:function(e){return{opacity:1,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2}},update:function(e){return{opacity:1,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2}},leave:{opacity:0},config:n.config,immediate:!r});return w('g',{children:i(function(e,t){return p(VF,OF({},t,{key:t.key,animatedProps:e}))})})}),qF=f(function(e){var t=e.width,n=e.height,r=e.xScale,i=e.yScale,o=e.xValues,s=e.yValues,a=d(function(){return!!r&&TF({width:t,height:n,scale:r,axis:'x',values:o})},[r,o,t,n]),A=d(function(){return!!i&&TF({width:t,height:n,scale:i,axis:'y',values:s})},[n,t,i,s]);return B(x,{children:[a&&w(KF,{lines:a}),A&&w(KF,{lines:A})]})}),GF=function(e,t){var n=t.xScale,r=t.yScale,i=t.width,o=t.height,s=t.top,a=t.right,A=t.bottom,l=t.left,c=t.theme,u={top:s,right:a,bottom:A,left:l};HF.forEach(function(t){var s=u[t];if(!s)return null;var a='top'===t||'bottom'===t,A='top'===t||'left'===t?'before':'after',l=a?n:r,d=NF(s.format,l);!function(e,t){var n,r=t.axis,i=t.scale,o=t.x,s=void 0===o?0:o,a=t.y,A=void 0===a?0:a,l=t.length,c=t.ticksPosition,u=t.tickValues,d=t.tickSize,f=void 0===d?5:d,h=t.tickPadding,p=void 0===h?5:h,g=t.tickRotation,m=void 0===g?0:g,v=t.format,b=t.legend,y=t.legendPosition,w=void 0===y?'end':y,B=t.legendOffset,x=void 0===B?0:B,C=t.theme,_=IF({axis:r,scale:i,ticksPosition:c,tickValues:u,tickSize:f,tickPadding:p,tickRotation:m,engine:'canvas'}),j=_.ticks,F=_.textAlign,E=_.textBaseline;e.save(),e.translate(s,A),e.textAlign=F,e.textBaseline=E;var S=C.axis.ticks.text;e.font=(S.fontWeight?S.fontWeight+' ':'')+S.fontSize+'px '+S.fontFamily,(null!=(n=C.axis.domain.line.strokeWidth)?n:0)>0&&(e.lineWidth=Number(C.axis.domain.line.strokeWidth),e.lineCap='square',C.axis.domain.line.stroke&&(e.strokeStyle=C.axis.domain.line.stroke),e.beginPath(),e.moveTo(0,0),e.lineTo('x'===r?l:0,'x'===r?0:l),e.stroke());var k='function'==typeof v?v:function(e){return''+e};if(j.forEach(function(t){var n;(null!=(n=C.axis.ticks.line.strokeWidth)?n:0)>0&&(e.lineWidth=Number(C.axis.ticks.line.strokeWidth),e.lineCap='square',C.axis.ticks.line.stroke&&(e.strokeStyle=C.axis.ticks.line.stroke),e.beginPath(),e.moveTo(t.x,t.y),e.lineTo(t.x+t.lineX,t.y+t.lineY),e.stroke());var r=k(t.value);e.save(),e.translate(t.x+t.textX,t.y+t.textY),e.rotate(wC(m)),S.outlineWidth>0&&(e.strokeStyle=S.outlineColor,e.lineWidth=2*S.outlineWidth,e.lineJoin='round',e.strokeText(''+r,0,0)),C.axis.ticks.text.fill&&(e.fillStyle=S.fill),e.fillText(''+r,0,0),e.restore()}),void 0!==b){var U=0,Q=0,L=0,O='center';'y'===r?(L=-90,U=x,'start'===w?(O='start',Q=l):'middle'===w?(O='center',Q=l/2):'end'===w&&(O='end')):(Q=x,'start'===w?O='start':'middle'===w?(O='center',U=l/2):'end'===w&&(O='end',U=l)),e.translate(U,Q),e.rotate(wC(L)),e.font=(C.axis.legend.text.fontWeight?C.axis.legend.text.fontWeight+' ':'')+C.axis.legend.text.fontSize+'px '+C.axis.legend.text.fontFamily,C.axis.legend.text.fill&&(e.fillStyle=C.axis.legend.text.fill),e.textAlign=O,e.textBaseline='middle',e.fillText(b,0,0)}e.restore()}(e,OF({},s,{axis:a?'x':'y',x:'right'===t?i:0,y:'bottom'===t?o:0,scale:l,format:d,length:a?i:o,ticksPosition:A,theme:c}))})},WF=function(e,t){var n=t.width,r=t.height,i=t.scale,o=t.axis,s=t.values;TF({width:n,height:r,scale:i,axis:o,values:s}).forEach(function(t){e.beginPath(),e.moveTo(t.x1,t.y1),e.lineTo(t.x2,t.y2),e.stroke()})},YF=X_;var XF=gB,JF=function(e,t){var n=[];return YF(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n},ZF=H_,$F=mc;var eE=or(function(e,t){return($F(e)?XF:JF)(e,ZF(t))}),tE=mA,nE=Ac;var rE=or(function(e){return'number'==typeof e||nE(e)&&'[object Number]'==tE(e)});var iE=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},oE=ru,sE=QB;var aE=function(e,t){return e&&oE(t,sE(t),e)},AE=ru,lE=Cu;var cE=function(e,t){return e&&AE(t,lE(t),e)},uE=ru,dE=xB;var fE=function(e,t){return uE(e,dE(e),t)},hE=Mw,pE=tc,gE=xB,mE=mB,vE=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)hE(t,gE(e)),e=pE(e);return t}:mE,bE=ru,yE=vE;var wE=function(e,t){return bE(e,yE(e),t)},BE=pB,xE=vE,CE=Cu;var _E=function(e){return BE(e,CE,xE)},jE=Object.prototype.hasOwnProperty;var FE=function(e){var t=e.length,n=new e.constructor(t);return t&&'string'==typeof e[0]&&jE.call(e,'index')&&(n.index=e.index,n.input=e.input),n},EE=ql;var SE=function(e,t){var n=t?EE(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},kE=/\w*$/;var UE=function(e){var t=new e.constructor(e.source,kE.exec(e));return t.lastIndex=e.lastIndex,t},QE=sA?sA.prototype:void 0,LE=QE?QE.valueOf:void 0;var OE=ql,IE=SE,NE=UE,TE=function(e){return LE?Object(LE.call(e)):{}},ME=Wl;var DE=function(e,t,n){var r=e.constructor;switch(t){case'[object ArrayBuffer]':return OE(e);case'[object Boolean]':case'[object Date]':return new r(+e);case'[object DataView]':return IE(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 ME(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 NE(e);case'[object Symbol]':return TE(e)}},PE=ax,RE=Ac;var HE=function(e){return RE(e)&&'[object Map]'==PE(e)},zE=zc,VE=Kc&&Kc.isMap,KE=VE?zE(VE):HE,qE=ax,GE=Ac;var WE=function(e){return GE(e)&&'[object Set]'==qE(e)},YE=zc,XE=Kc&&Kc.isSet,JE=XE?YE(XE):WE,ZE=Ql,$E=iE,eS=eu,tS=aE,nS=cE,rS=zl,iS=Yl,oS=fE,sS=wE,aS=NB,AS=_E,lS=ax,cS=FE,uS=DE,dS=ac,fS=mc,hS=Fc,pS=KE,gS=vA,mS=JE,vS=QB,bS=Cu,yS='[object Arguments]',wS='[object Function]',BS='[object Object]',xS={};xS[yS]=xS['[object Array]']=xS['[object ArrayBuffer]']=xS['[object DataView]']=xS['[object Boolean]']=xS['[object Date]']=xS['[object Float32Array]']=xS['[object Float64Array]']=xS['[object Int8Array]']=xS['[object Int16Array]']=xS['[object Int32Array]']=xS['[object Map]']=xS['[object Number]']=xS[BS]=xS['[object RegExp]']=xS['[object Set]']=xS['[object String]']=xS['[object Symbol]']=xS['[object Uint8Array]']=xS['[object Uint8ClampedArray]']=xS['[object Uint16Array]']=xS['[object Uint32Array]']=!0,xS['[object Error]']=xS[wS]=xS['[object WeakMap]']=!1;var CS=function e(t,n,r,i,o,s){var a,A=1&n,l=2&n,c=4&n;if(r&&(a=o?r(t,i,o,s):r(t)),void 0!==a)return a;if(!gS(t))return t;var u=fS(t);if(u){if(a=cS(t),!A)return iS(t,a)}else{var d=lS(t),f=d==wS||'[object GeneratorFunction]'==d;if(hS(t))return rS(t,A);if(d==BS||d==yS||f&&!o){if(a=l||f?{}:dS(t),!A)return l?sS(t,nS(a,t)):oS(t,tS(a,t))}else{if(!xS[d])return o?t:{};a=uS(t,d,A)}}s||(s=new ZE);var h=s.get(t);if(h)return h;s.set(t,a),mS(t)?t.forEach(function(i){a.add(e(i,n,r,i,t,s))}):pS(t)&&t.forEach(function(i,o){a.set(o,e(i,n,r,o,t,s))});var p=u?void 0:(c?l?AS:aS:l?bS:vS)(t);return $E(p||t,function(i,o){p&&(i=t[o=i]),eS(a,o,e(i,n,r,o,t,s))}),a};var _S=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o},jS=ef,FS=_S;var ES=function(e,t){return t.length<2?e:jS(e,FS(t,0,-1))},SS=Yd,kS=sh,US=ES,QS=Jd,LS=Object.prototype.hasOwnProperty;var OS=function(e,t){var n=-1,r=(t=SS(t,e)).length;if(!r)return!0;for(var i=null==e||'object'!=typeof e&&'function'!=typeof e;++n<r;){var o=t[n];if('string'==typeof o){if('__proto__'===o&&!LS.call(e,'__proto__'))return!1;if('constructor'===o&&n+1<r&&'string'==typeof t[n+1]&&'prototype'===t[n+1]){if(i&&0===n)continue;return!1}}}var s=US(e,t);return null==s||delete s[QS(kS(t))]},IS=Nc;var NS=Td,TS=CS,MS=OS,DS=Yd,PS=ru,RS=function(e){return IS(e)?void 0:e},HS=_E,zS=Yw(function(e,t){var n={};if(null==e)return n;var r=!1;t=NS(t,function(t){return t=DS(t,e),r||(r=t.length>1),t}),PS(e,HS(e),n),r&&(n=TS(n,7,RS));for(var i=t.length;i--;)MS(n,t[i]);return n}),VS=or(zS);function KS(){return KS=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},KS.apply(this,arguments)}var qS=4,GS=120,WS=8,YS=function(e){return'circle'===e.type},XS=function(e){return'dot'===e.type},JS=function(e){return'rect'===e.type},ZS=function(e){var t,n,r=e.x,i=e.y,o=e.noteX,s=e.noteY,a=e.noteWidth,A=void 0===a?GS:a,l=e.noteTextOffset,c=void 0===l?WS:l;if(rE(o))t=r+o;else{if(void 0===o.abs)throw new Error('noteX should be either a number or an object containing an \'abs\' property');t=o.abs}if(rE(s))n=i+s;else{if(void 0===s.abs)throw new Error('noteY should be either a number or an object containing an \'abs\' property');n=s.abs}var u=r,d=i,f=function(e,t,n,r){var i=Math.atan2(r-t,n-e);return function(e){var t=e%360;return t<0&&(t+=360),t}(BC(i))}(r,i,t,n);if(YS(e)){var h=xC(wC(f),e.size/2);u+=h.x,d+=h.y}if(JS(e)){var p=Math.round((f+90)/45)%8;0===p&&(d-=e.height/2),1===p&&(u+=e.width/2,d-=e.height/2),2===p&&(u+=e.width/2),3===p&&(u+=e.width/2,d+=e.height/2),4===p&&(d+=e.height/2),5===p&&(u-=e.width/2,d+=e.height/2),6===p&&(u-=e.width/2),7===p&&(u-=e.width/2,d-=e.height/2)}var g=t,m=t;return(f+90)%360>180?(g-=A,m-=A):m+=A,{points:[[u,d],[t,n],[m,n]],text:[g,n-c],angle:f+90}},$S=function(e){var t=e.data,n=e.annotations,r=e.getPosition,i=e.getDimensions;return d(function(){return function(e){var t=e.data,n=e.annotations,r=e.getPosition,i=e.getDimensions;return n.reduce(function(e,n){var o=n.offset||0;return[].concat(e,eE(t,n.match).map(function(e){var t=r(e),s=i(e);return(YS(n)||JS(n))&&(s.size=s.size+2*o,s.width=s.width+2*o,s.height=s.height+2*o),KS({},VS(n,['match','offset']),t,s,{size:n.size||s.size,datum:e})}))},[])}({data:t,annotations:n,getPosition:r,getDimensions:i})},[t,n,r,i])},ek=function(e){var t=e.datum,n=e.x,r=e.y,i=e.note,o=dC(),s=zx(),a=s.animate,A=Js({x:n,y:r,config:s.config,immediate:!a});return'function'==typeof i?p(i,{x:n,y:r,datum:t}):B(x,{children:[o.annotations.text.outlineWidth>0&&w(va.text,{x:A.x,y:A.y,style:KS({},o.annotations.text,{strokeLinejoin:'round',strokeWidth:2*o.annotations.text.outlineWidth,stroke:o.annotations.text.outlineColor}),children:i}),w(va.text,{x:A.x,y:A.y,style:VS(o.annotations.text,['outlineWidth','outlineColor']),children:i})]})},tk=function(e){var t=e.points,n=e.isOutline,r=void 0!==n&&n,i=dC(),o=d(function(){var e=t[0];return t.slice(1).reduce(function(e,t){return e+' L'+t[0]+','+t[1]},'M'+e[0]+','+e[1])},[t]),s=Vx(o);if(r&&i.annotations.link.outlineWidth<=0)return null;var a=KS({},i.annotations.link);return r&&(a.strokeLinecap='square',a.strokeWidth=i.annotations.link.strokeWidth+2*i.annotations.link.outlineWidth,a.stroke=i.annotations.link.outlineColor,a.opacity=i.annotations.link.outlineOpacity),w(va.path,{fill:'none',d:s,style:a})},nk=function(e){var t=e.x,n=e.y,r=e.size,i=dC(),o=zx(),s=o.animate,a=Js({x:t,y:n,radius:r/2,config:o.config,immediate:!s});return B(x,{children:[i.annotations.outline.outlineWidth>0&&w(va.circle,{cx:a.x,cy:a.y,r:a.radius,style:KS({},i.annotations.outline,{fill:'none',strokeWidth:i.annotations.outline.strokeWidth+2*i.annotations.outline.outlineWidth,stroke:i.annotations.outline.outlineColor,opacity:i.annotations.outline.outlineOpacity})}),w(va.circle,{cx:a.x,cy:a.y,r:a.radius,style:i.annotations.outline})]})},rk=function(e){var t=e.x,n=e.y,r=e.size,i=void 0===r?qS:r,o=dC(),s=zx(),a=s.animate,A=Js({x:t,y:n,radius:i/2,config:s.config,immediate:!a});return B(x,{children:[o.annotations.outline.outlineWidth>0&&w(va.circle,{cx:A.x,cy:A.y,r:A.radius,style:KS({},o.annotations.outline,{fill:'none',strokeWidth:2*o.annotations.outline.outlineWidth,stroke:o.annotations.outline.outlineColor,opacity:o.annotations.outline.outlineOpacity})}),w(va.circle,{cx:A.x,cy:A.y,r:A.radius,style:o.annotations.symbol})]})},ik=function(e){var t=e.x,n=e.y,r=e.width,i=e.height,o=e.borderRadius,s=void 0===o?6:o,a=dC(),A=zx(),l=A.animate,c=Js({x:t-r/2,y:n-i/2,width:r,height:i,config:A.config,immediate:!l});return B(x,{children:[a.annotations.outline.outlineWidth>0&&w(va.rect,{x:c.x,y:c.y,rx:s,ry:s,width:c.width,height:c.height,style:KS({},a.annotations.outline,{fill:'none',strokeWidth:a.annotations.outline.strokeWidth+2*a.annotations.outline.outlineWidth,stroke:a.annotations.outline.outlineColor,opacity:a.annotations.outline.outlineOpacity})}),w(va.rect,{x:c.x,y:c.y,rx:s,ry:s,width:c.width,height:c.height,style:a.annotations.outline})]})},ok=function(e){var t=e.datum,n=e.x,r=e.y,i=e.note,o=function(e){return d(function(){return ZS(e)},[e])}(e);if(!function(e){var t=typeof e;return a(e)||'string'===t||'function'===t||'object'===t}(i))throw new Error('note should be a valid react element');return B(x,{children:[w(tk,{points:o.points,isOutline:!0}),YS(e)&&w(nk,{x:n,y:r,size:e.size}),XS(e)&&w(rk,{x:n,y:r,size:e.size}),JS(e)&&w(ik,{x:n,y:r,width:e.width,height:e.height,borderRadius:e.borderRadius}),w(tk,{points:o.points}),w(ek,{datum:t,x:o.text[0],y:o.text[1],note:i})]})},sk=function(e,t){t.forEach(function(t,n){var r=t[0],i=t[1];0===n?e.moveTo(r,i):e.lineTo(r,i)})};function ak(e){for(var t=e.length/6|0,n=new Array(t),r=0;r<t;)n[r]='#'+e.slice(6*r,6*++r);return n}var Ak=ak('1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf'),lk=ak('7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666'),ck=ak('1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666'),uk=ak('a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928'),dk=ak('fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2'),fk=ak('b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc'),hk=ak('e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999'),pk=ak('66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3'),gk=ak('8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f'),mk=e=>vp(e[e.length-1]),vk=new Array(3).concat('d8b365f5f5f55ab4ac','a6611adfc27d80cdc1018571','a6611adfc27df5f5f580cdc1018571','8c510ad8b365f6e8c3c7eae55ab4ac01665e','8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e','8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e','8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e','5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30','5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30').map(ak),bk=mk(vk),yk=new Array(3).concat('af8dc3f7f7f77fbf7b','7b3294c2a5cfa6dba0008837','7b3294c2a5cff7f7f7a6dba0008837','762a83af8dc3e7d4e8d9f0d37fbf7b1b7837','762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837','762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837','762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837','40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b','40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b').map(ak),wk=mk(yk),Bk=new Array(3).concat('e9a3c9f7f7f7a1d76a','d01c8bf1b6dab8e1864dac26','d01c8bf1b6daf7f7f7b8e1864dac26','c51b7de9a3c9fde0efe6f5d0a1d76a4d9221','c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221','c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221','c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221','8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419','8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419').map(ak),xk=mk(Bk),Ck=new Array(3).concat('998ec3f7f7f7f1a340','5e3c99b2abd2fdb863e66101','5e3c99b2abd2f7f7f7fdb863e66101','542788998ec3d8daebfee0b6f1a340b35806','542788998ec3d8daebf7f7f7fee0b6f1a340b35806','5427888073acb2abd2d8daebfee0b6fdb863e08214b35806','5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806','2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08','2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08').map(ak),_k=mk(Ck),jk=new Array(3).concat('ef8a62f7f7f767a9cf','ca0020f4a58292c5de0571b0','ca0020f4a582f7f7f792c5de0571b0','b2182bef8a62fddbc7d1e5f067a9cf2166ac','b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac','b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac','b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac','67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061','67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061').map(ak),Fk=mk(jk),Ek=new Array(3).concat('ef8a62ffffff999999','ca0020f4a582bababa404040','ca0020f4a582ffffffbababa404040','b2182bef8a62fddbc7e0e0e09999994d4d4d','b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d','b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d','b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d','67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a','67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a').map(ak),Sk=mk(Ek),kk=new Array(3).concat('fc8d59ffffbf91bfdb','d7191cfdae61abd9e92c7bb6','d7191cfdae61ffffbfabd9e92c7bb6','d73027fc8d59fee090e0f3f891bfdb4575b4','d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4','d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4','d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4','a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695','a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695').map(ak),Uk=mk(kk),Qk=new Array(3).concat('fc8d59ffffbf91cf60','d7191cfdae61a6d96a1a9641','d7191cfdae61ffffbfa6d96a1a9641','d73027fc8d59fee08bd9ef8b91cf601a9850','d73027fc8d59fee08bffffbfd9ef8b91cf601a9850','d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850','d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850','a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837','a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837').map(ak),Lk=mk(Qk),Ok=new Array(3).concat('fc8d59ffffbf99d594','d7191cfdae61abdda42b83ba','d7191cfdae61ffffbfabdda42b83ba','d53e4ffc8d59fee08be6f59899d5943288bd','d53e4ffc8d59fee08bffffbfe6f59899d5943288bd','d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd','d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd','9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2','9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2').map(ak),Ik=mk(Ok),Nk=new Array(3).concat('e5f5f999d8c92ca25f','edf8fbb2e2e266c2a4238b45','edf8fbb2e2e266c2a42ca25f006d2c','edf8fbccece699d8c966c2a42ca25f006d2c','edf8fbccece699d8c966c2a441ae76238b45005824','f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824','f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b').map(ak),Tk=mk(Nk),Mk=new Array(3).concat('e0ecf49ebcda8856a7','edf8fbb3cde38c96c688419d','edf8fbb3cde38c96c68856a7810f7c','edf8fbbfd3e69ebcda8c96c68856a7810f7c','edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b','f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b','f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b').map(ak),Dk=mk(Mk),Pk=new Array(3).concat('e0f3dba8ddb543a2ca','f0f9e8bae4bc7bccc42b8cbe','f0f9e8bae4bc7bccc443a2ca0868ac','f0f9e8ccebc5a8ddb57bccc443a2ca0868ac','f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e','f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e','f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081').map(ak),Rk=mk(Pk),Hk=new Array(3).concat('fee8c8fdbb84e34a33','fef0d9fdcc8afc8d59d7301f','fef0d9fdcc8afc8d59e34a33b30000','fef0d9fdd49efdbb84fc8d59e34a33b30000','fef0d9fdd49efdbb84fc8d59ef6548d7301f990000','fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000','fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000').map(ak),zk=mk(Hk),Vk=new Array(3).concat('ece2f0a6bddb1c9099','f6eff7bdc9e167a9cf02818a','f6eff7bdc9e167a9cf1c9099016c59','f6eff7d0d1e6a6bddb67a9cf1c9099016c59','f6eff7d0d1e6a6bddb67a9cf3690c002818a016450','fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450','fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636').map(ak),Kk=mk(Vk),qk=new Array(3).concat('ece7f2a6bddb2b8cbe','f1eef6bdc9e174a9cf0570b0','f1eef6bdc9e174a9cf2b8cbe045a8d','f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d','f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b','fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b','fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858').map(ak),Gk=mk(qk),Wk=new Array(3).concat('e7e1efc994c7dd1c77','f1eef6d7b5d8df65b0ce1256','f1eef6d7b5d8df65b0dd1c77980043','f1eef6d4b9dac994c7df65b0dd1c77980043','f1eef6d4b9dac994c7df65b0e7298ace125691003f','f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f','f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f').map(ak),Yk=mk(Wk),Xk=new Array(3).concat('fde0ddfa9fb5c51b8a','feebe2fbb4b9f768a1ae017e','feebe2fbb4b9f768a1c51b8a7a0177','feebe2fcc5c0fa9fb5f768a1c51b8a7a0177','feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177','fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177','fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a').map(ak),Jk=mk(Xk),Zk=new Array(3).concat('edf8b17fcdbb2c7fb8','ffffcca1dab441b6c4225ea8','ffffcca1dab441b6c42c7fb8253494','ffffccc7e9b47fcdbb41b6c42c7fb8253494','ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84','ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84','ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58').map(ak),$k=mk(Zk),eU=new Array(3).concat('f7fcb9addd8e31a354','ffffccc2e69978c679238443','ffffccc2e69978c67931a354006837','ffffccd9f0a3addd8e78c67931a354006837','ffffccd9f0a3addd8e78c67941ab5d238443005a32','ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32','ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529').map(ak),tU=mk(eU),nU=new Array(3).concat('fff7bcfec44fd95f0e','ffffd4fed98efe9929cc4c02','ffffd4fed98efe9929d95f0e993404','ffffd4fee391fec44ffe9929d95f0e993404','ffffd4fee391fec44ffe9929ec7014cc4c028c2d04','ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04','ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506').map(ak),rU=mk(nU),iU=new Array(3).concat('ffeda0feb24cf03b20','ffffb2fecc5cfd8d3ce31a1c','ffffb2fecc5cfd8d3cf03b20bd0026','ffffb2fed976feb24cfd8d3cf03b20bd0026','ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026','ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026','ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026').map(ak),oU=mk(iU),sU=new Array(3).concat('deebf79ecae13182bd','eff3ffbdd7e76baed62171b5','eff3ffbdd7e76baed63182bd08519c','eff3ffc6dbef9ecae16baed63182bd08519c','eff3ffc6dbef9ecae16baed64292c62171b5084594','f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594','f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b').map(ak),aU=mk(sU),AU=new Array(3).concat('e5f5e0a1d99b31a354','edf8e9bae4b374c476238b45','edf8e9bae4b374c47631a354006d2c','edf8e9c7e9c0a1d99b74c47631a354006d2c','edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32','f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32','f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b').map(ak),lU=mk(AU),cU=new Array(3).concat('f0f0f0bdbdbd636363','f7f7f7cccccc969696525252','f7f7f7cccccc969696636363252525','f7f7f7d9d9d9bdbdbd969696636363252525','f7f7f7d9d9d9bdbdbd969696737373525252252525','fffffff0f0f0d9d9d9bdbdbd969696737373525252252525','fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000').map(ak),uU=mk(cU),dU=new Array(3).concat('efedf5bcbddc756bb1','f2f0f7cbc9e29e9ac86a51a3','f2f0f7cbc9e29e9ac8756bb154278f','f2f0f7dadaebbcbddc9e9ac8756bb154278f','f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486','fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486','fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d').map(ak),fU=mk(dU),hU=new Array(3).concat('fee0d2fc9272de2d26','fee5d9fcae91fb6a4acb181d','fee5d9fcae91fb6a4ade2d26a50f15','fee5d9fcbba1fc9272fb6a4ade2d26a50f15','fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d','fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d','fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d').map(ak),pU=mk(hU),gU=new Array(3).concat('fee6cefdae6be6550d','feeddefdbe85fd8d3cd94701','feeddefdbe85fd8d3ce6550da63603','feeddefdd0a2fdae6bfd8d3ce6550da63603','feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04','fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04','fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704').map(ak),mU=mk(gU);function vU(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function bU(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function yU(){}var wU=.7,BU=1/wU,xU='\\s*([+-]?\\d+)\\s*',CU='\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*',_U='\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*',jU=/^#([0-9a-f]{3,8})$/,FU=new RegExp('^rgb\\('+[xU,xU,xU]+'\\)$'),EU=new RegExp('^rgb\\('+[_U,_U,_U]+'\\)$'),SU=new RegExp('^rgba\\('+[xU,xU,xU,CU]+'\\)$'),kU=new RegExp('^rgba\\('+[_U,_U,_U,CU]+'\\)$'),UU=new RegExp('^hsl\\('+[CU,_U,_U]+'\\)$'),QU=new RegExp('^hsla\\('+[CU,_U,_U,CU]+'\\)$'),LU={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 OU(){return this.rgb().formatHex()}function IU(){return this.rgb().formatRgb()}function NU(e){var t,n;return e=(e+'').trim().toLowerCase(),(t=jU.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?TU(t):3===n?new RU(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?MU(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?MU(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=FU.exec(e))?new RU(t[1],t[2],t[3],1):(t=EU.exec(e))?new RU(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=SU.exec(e))?MU(t[1],t[2],t[3],t[4]):(t=kU.exec(e))?MU(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=UU.exec(e))?KU(t[1],t[2]/100,t[3]/100,1):(t=QU.exec(e))?KU(t[1],t[2]/100,t[3]/100,t[4]):LU.hasOwnProperty(e)?TU(LU[e]):'transparent'===e?new RU(NaN,NaN,NaN,0):null}function TU(e){return new RU(e>>16&255,e>>8&255,255&e,1)}function MU(e,t,n,r){return r<=0&&(e=t=n=NaN),new RU(e,t,n,r)}function DU(e){return e instanceof yU||(e=NU(e)),e?new RU((e=e.rgb()).r,e.g,e.b,e.opacity):new RU}function PU(e,t,n,r){return 1===arguments.length?DU(e):new RU(e,t,n,null==r?1:r)}function RU(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function HU(){return'#'+VU(this.r)+VU(this.g)+VU(this.b)}function zU(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?'rgb(':'rgba(')+Math.max(0,Math.min(255,Math.round(this.r)||0))+', '+Math.max(0,Math.min(255,Math.round(this.g)||0))+', '+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?')':', '+e+')')}function VU(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?'0':'')+e.toString(16)}function KU(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new GU(e,t,n,r)}function qU(e){if(e instanceof GU)return new GU(e.h,e.s,e.l,e.opacity);if(e instanceof yU||(e=NU(e)),!e)return new GU;if(e instanceof GU)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),s=NaN,a=o-i,A=(o+i)/2;return a?(s=t===o?(n-r)/a+6*(n<r):n===o?(r-t)/a+2:(t-n)/a+4,a/=A<.5?o+i:2-o-i,s*=60):a=A>0&&A<1?0:s,new GU(s,a,A,e.opacity)}function GU(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function WU(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}vU(yU,NU,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:OU,formatHex:OU,formatHsl:function(){return qU(this).formatHsl()},formatRgb:IU,toString:IU}),vU(RU,PU,bU(yU,{brighter:function(e){return e=null==e?BU:Math.pow(BU,e),new RU(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?wU:Math.pow(wU,e),new RU(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:HU,formatHex:HU,formatRgb:zU,toString:zU})),vU(GU,function(e,t,n,r){return 1===arguments.length?qU(e):new GU(e,t,n,null==r?1:r)},bU(yU,{brighter:function(e){return e=null==e?BU:Math.pow(BU,e),new GU(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?wU:Math.pow(wU,e),new GU(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new RU(WU(e>=240?e-240:e+120,i,r),WU(e,i,r),WU(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?'hsl(':'hsla(')+(this.h||0)+', '+100*(this.s||0)+'%, '+100*(this.l||0)+'%'+(1===e?')':', '+e+')')}}));const YU=Math.PI/180,XU=180/Math.PI;var JU=-.14861,ZU=1.78277,$U=-.29227,eQ=-.90649,tQ=1.97294,nQ=tQ*eQ,rQ=tQ*ZU,iQ=ZU*$U-eQ*JU;function oQ(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof sQ)return new sQ(e.h,e.s,e.l,e.opacity);e instanceof RU||(e=DU(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(iQ*r+nQ*t-rQ*n)/-5.9615122912,o=r-i,s=(tQ*(n-i)-$U*o)/eQ,a=Math.sqrt(s*s+o*o)/(tQ*i*(1-i)),A=a?Math.atan2(s,o)*XU-120:NaN;return new sQ(A<0?A+360:A,a,i,e.opacity)}(e):new sQ(e,t,n,null==r?1:r)}function sQ(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}vU(sQ,oQ,bU(yU,{brighter:function(e){return e=null==e?BU:Math.pow(BU,e),new sQ(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?wU:Math.pow(wU,e),new sQ(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*YU,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new RU(255*(t+n*(JU*r+ZU*i)),255*(t+n*($U*r+eQ*i)),255*(t+n*(tQ*r)),this.opacity)}}));var aQ=kp(oQ(300,.5,0),oQ(-240,.5,1)),AQ=kp(oQ(-100,.75,.35),oQ(80,1.5,.8)),lQ=kp(oQ(260,.75,.35),oQ(80,1.5,.8)),cQ=oQ();var uQ=PU(),dQ=Math.PI/3,fQ=2*Math.PI/3;function hQ(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}var pQ=hQ(ak('44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725')),gQ=hQ(ak('00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf')),mQ=hQ(ak('00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4')),vQ=hQ(ak('0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921'));function bQ(){return bQ=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},bQ.apply(this,arguments)}function yQ(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 wQ={nivo:['#e8c1a0','#f47560','#f1e15b','#e8a838','#61cdbb','#97e3d5'],category10:Ak,accent:lk,dark2:ck,paired:uk,pastel1:dk,pastel2:fk,set1:hk,set2:pk,set3:gk},BQ=Object.keys(wQ),xQ={brown_blueGreen:vk,purpleRed_green:yk,pink_yellowGreen:Bk,purple_orange:Ck,red_blue:jk,red_grey:Ek,red_yellow_blue:kk,red_yellow_green:Qk,spectral:Ok},CQ=Object.keys(xQ),_Q={brown_blueGreen:bk,purpleRed_green:wk,pink_yellowGreen:xk,purple_orange:_k,red_blue:Fk,red_grey:Sk,red_yellow_blue:Uk,red_yellow_green:Lk,spectral:Ik},jQ={blues:sU,greens:AU,greys:cU,oranges:gU,purples:dU,reds:hU,blue_green:Nk,blue_purple:Mk,green_blue:Pk,orange_red:Hk,purple_blue_green:Vk,purple_blue:qk,purple_red:Wk,red_purple:Xk,yellow_green_blue:Zk,yellow_green:eU,yellow_orange_brown:nU,yellow_orange_red:iU},FQ=Object.keys(jQ),EQ={blues:aU,greens:lU,greys:uU,oranges:mU,purples:fU,reds:pU,turbo:function(e){return e=Math.max(0,Math.min(1,e)),'rgb('+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-14825.05*e)))))))+', '+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+707.56*e)))))))+', '+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-6838.66*e)))))))+')'},viridis:pQ,inferno:mQ,magma:gQ,plasma:vQ,cividis:function(e){return e=Math.max(0,Math.min(1,e)),'rgb('+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-2710.57*e)))))))+', '+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-67.37*e)))))))+', '+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-2475.67*e)))))))+')'},warm:AQ,cool:lQ,cubehelixDefault:aQ,blue_green:Tk,blue_purple:Dk,green_blue:Rk,orange_red:zk,purple_blue_green:Kk,purple_blue:Gk,purple_red:Yk,red_purple:Jk,yellow_green_blue:$k,yellow_green:tU,yellow_orange_brown:rU,yellow_orange_red:oU},SQ=bQ({},wQ,xQ,jQ),kQ=Object.keys(SQ),UQ={rainbow:function(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return cQ.h=360*e-100,cQ.s=1.5-1.5*t,cQ.l=.8-.9*t,cQ+''},sinebow:function(e){var t;return e=(.5-e)*Math.PI,uQ.r=255*(t=Math.sin(e))*t,uQ.g=255*(t=Math.sin(e+dQ))*t,uQ.b=255*(t=Math.sin(e+fQ))*t,uQ+''}};bQ({},_Q,EQ,UQ);var QQ=function(e,t){if('function'==typeof e)return e;if(Tc(e)){if(function(e){return void 0!==e.theme}(e)){if(void 0===t)throw new Error('Unable to use color from theme as no theme was provided');var n=rf(t,e.theme);if(void 0===n)throw new Error('Color from theme is undefined at path: \''+e.theme+'\'');return function(){return n}}if(function(e){return void 0!==e.from}(e)){var r=function(t){return rf(t,e.from)};if(Array.isArray(e.modifiers)){for(var i,o=[],s=function(){var e=i.value,t=e[0],n=e[1];if('brighter'===t)o.push(function(e){return e.brighter(n)});else if('darker'===t)o.push(function(e){return e.darker(n)});else{if('opacity'!==t)throw new Error('Invalid color modifier: \''+t+'\', must be one of: \'brighter\', \'darker\', \'opacity\'');o.push(function(e){return e.opacity=n,e})}},a=function(e,t){var n='undefined'!=typeof Symbol&&e[Symbol.iterator]||e['@@iterator'];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if('string'==typeof e)return yQ(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)?yQ(e,t):void 0}}(e))||t&&e&&'number'==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.')}(e.modifiers);!(i=a()).done;)s();return 0===o.length?r:function(e){return o.reduce(function(e,t){return t(e)},If(r(e))).toString()}}return r}throw new Error('Invalid color spec, you should either specify \'theme\' or \'from\' when using a config object')}return function(){return e}},LQ=function(e,t){return d(function(){return QQ(e,t)},[e,t])},OQ=Qr.oneOfType([Qr.func,Qr.arrayOf(Qr.string),Qr.shape({scheme:Qr.oneOf(kQ).isRequired,size:Qr.number}),Qr.shape({datum:Qr.string.isRequired}),Qr.string]);Qr.oneOfType([Qr.string,Qr.func,Qr.shape({theme:Qr.string.isRequired}),Qr.shape({from:Qr.string.isRequired,modifiers:Qr.arrayOf(Qr.array)})]);var IQ=function(e,t){if('function'==typeof e)return e;var n='function'==typeof t?t:function(e){return rf(e,t)};if(Array.isArray(e)){var r=yh(e),i=function(e){return r(n(e))};return i.scale=r,i}if(Tc(e)){if(function(e){return void 0!==e.datum}(e))return function(t){return rf(t,e.datum)};if(function(e){return void 0!==e.scheme}(e)){if(function(e){return BQ.includes(e)}(e.scheme)){var o=yh(SQ[e.scheme]),s=function(e){return o(n(e))};return s.scale=o,s}if(function(e){return CQ.includes(e)}(e.scheme)){if(void 0!==e.size&&(e.size<3||e.size>11))throw new Error('Invalid size \''+e.size+'\' for diverging color scheme \''+e.scheme+'\', must be between 3~11');var a=yh(SQ[e.scheme][e.size||11]),A=function(e){return a(n(e))};return A.scale=a,A}if(function(e){return FQ.includes(e)}(e.scheme)){if(void 0!==e.size&&(e.size<3||e.size>9))throw new Error('Invalid size \''+e.size+'\' for sequential color scheme \''+e.scheme+'\', must be between 3~9');var l=yh(SQ[e.scheme][e.size||9]),c=function(e){return l(n(e))};return c.scale=l,c}}throw new Error('Invalid colors, when using an object, you should either pass a \'datum\' or a \'scheme\' property')}return function(){return e}},NQ=function(e,t){return d(function(){return IQ(e,t)},[e,t])};function TQ(){return TQ=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},TQ.apply(this,arguments)}var MQ={top:0,right:0,bottom:0,left:0},DQ=function(e){var t,n=e.direction,r=e.itemsSpacing,i=e.padding,o=e.itemCount,s=e.itemWidth,a=e.itemHeight;if('number'!=typeof i&&('object'!=typeof(t=i)||Array.isArray(t)||null===t))throw new Error('Invalid property padding, must be one of: number, object');var A='number'==typeof i?{top:i,right:i,bottom:i,left:i}:TQ({},MQ,i),l=A.left+A.right,c=A.top+A.bottom,u=s+l,d=a+c,f=(o-1)*r;return'row'===n?u=s*o+f+l:'column'===n&&(d=a*o+f+c),{width:u,height:d,padding:A}},PQ=function(e){var t=e.anchor,n=e.translateX,r=e.translateY,i=e.containerWidth,o=e.containerHeight,s=e.width,a=e.height,A=n,l=r;switch(t){case'top':A+=(i-s)/2;break;case'top-right':A+=i-s;break;case'right':A+=i-s,l+=(o-a)/2;break;case'bottom-right':A+=i-s,l+=o-a;break;case'bottom':A+=(i-s)/2,l+=o-a;break;case'bottom-left':l+=o-a;break;case'left':l+=(o-a)/2;break;case'center':A+=(i-s)/2,l+=(o-a)/2}return{x:A,y:l}},RQ=function(e){var t,n,r,i,o,s,a=e.direction,A=e.justify,l=e.symbolSize,c=e.symbolSpacing,u=e.width,d=e.height;switch(a){case'left-to-right':t=0,n=(d-l)/2,i=d/2,s='central',A?(r=u,o='end'):(r=l+c,o='start');break;case'right-to-left':t=u-l,n=(d-l)/2,i=d/2,s='central',A?(r=0,o='start'):(r=u-l-c,o='end');break;case'top-to-bottom':t=(u-l)/2,n=0,r=u/2,o='middle',A?(i=d,s='alphabetic'):(i=l+c,s='text-before-edge');break;case'bottom-to-top':t=(u-l)/2,n=d-l,r=u/2,o='middle',A?(i=0,s='text-before-edge'):(i=d-l-c,s='alphabetic')}return{symbolX:t,symbolY:n,labelX:r,labelY:i,labelAnchor:o,labelAlignment:s}},HQ={circle:function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,o=e.opacity,s=void 0===o?1:o,a=e.borderWidth,A=void 0===a?0:a,l=e.borderColor;return w('circle',{r:r/2,cx:t+r/2,cy:n+r/2,fill:i,opacity:s,strokeWidth:A,stroke:void 0===l?'transparent':l,style:{pointerEvents:'none'}})},diamond:function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,o=e.opacity,s=void 0===o?1:o,a=e.borderWidth,A=void 0===a?0:a,l=e.borderColor;return w('g',{transform:'translate('+t+','+n+')',children:w('path',{d:'\n M'+r/2+' 0\n L'+.8*r+' '+r/2+'\n L'+r/2+' '+r+'\n L'+.2*r+' '+r/2+'\n L'+r/2+' 0\n ',fill:i,opacity:s,strokeWidth:A,stroke:void 0===l?'transparent':l,style:{pointerEvents:'none'}})})},square:function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,o=e.opacity,s=void 0===o?1:o,a=e.borderWidth,A=void 0===a?0:a,l=e.borderColor;return w('rect',{x:t,y:n,fill:i,opacity:s,strokeWidth:A,stroke:void 0===l?'transparent':l,width:r,height:r,style:{pointerEvents:'none'}})},triangle:function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,o=e.opacity,s=void 0===o?1:o,a=e.borderWidth,A=void 0===a?0:a,l=e.borderColor;return w('g',{transform:'translate('+t+','+n+')',children:w('path',{d:'\n M'+r/2+' 0\n L'+r+' '+r+'\n L0 '+r+'\n L'+r/2+' 0\n ',fill:i,opacity:s,strokeWidth:A,stroke:void 0===l?'transparent':l,style:{pointerEvents:'none'}})})}},zQ=function(t){var r,i,o,a,A,l,c,u,d,f,h,p=t.x,g=t.y,m=t.width,v=t.height,b=t.data,y=t.direction,x=void 0===y?'left-to-right':y,C=t.justify,_=void 0!==C&&C,j=t.textColor,F=t.background,E=void 0===F?'transparent':F,S=t.opacity,k=void 0===S?1:S,U=t.symbolShape,Q=void 0===U?'square':U,L=t.symbolSize,O=void 0===L?16:L,I=t.symbolSpacing,N=void 0===I?8:I,T=t.symbolBorderWidth,M=void 0===T?0:T,D=t.symbolBorderColor,P=void 0===D?'transparent':D,R=t.onClick,H=t.onMouseEnter,z=t.onMouseLeave,V=t.toggleSerie,K=t.effects,q=n({}),G=q[0],W=q[1],Y=dC(),X=s(function(e){if(K){var t=K.filter(function(e){return'hover'===e.on}).reduce(function(e,t){return TQ({},e,t.style)},{});W(t)}null==H||H(b,e)},[H,b,K]),J=s(function(e){if(K){var t=K.filter(function(e){return'hover'!==e.on}).reduce(function(e,t){return TQ({},e,t.style)},{});W(t)}null==z||z(b,e)},[z,b,K]),Z=RQ({direction:x,justify:_,symbolSize:null!=(r=G.symbolSize)?r:O,symbolSpacing:N,width:m,height:v}),$=Z.symbolX,ee=Z.symbolY,te=Z.labelX,ne=Z.labelY,re=Z.labelAnchor,ie=Z.labelAlignment,oe=[R,H,z,V].some(function(e){return void 0!==e}),se='function'==typeof Q?Q:HQ[Q];return B('g',{transform:'translate('+p+','+g+')',style:{opacity:null!=(i=G.itemOpacity)?i:k},children:[w('rect',{width:m,height:v,fill:null!=(o=G.itemBackground)?o:E,style:{cursor:oe?'pointer':'auto'},onClick:function(e){null==R||R(b,e),null==V||V(b.id)},onMouseEnter:X,onMouseLeave:J}),e.createElement(se,TQ({id:b.id,x:$,y:ee,size:null!=(a=G.symbolSize)?a:O,fill:null!=(A=null!=(l=b.fill)?l:b.color)?A:'black',borderWidth:null!=(c=G.symbolBorderWidth)?c:M,borderColor:null!=(u=G.symbolBorderColor)?u:P},b.hidden?Y.legends.hidden.symbol:void 0)),w('text',{textAnchor:re,style:TQ({},Y.legends.text,{fill:null!=(d=null!=(f=null!=(h=G.itemTextColor)?h:j)?f:Y.legends.text.fill)?d:'black',dominantBaseline:ie,pointerEvents:'none',userSelect:'none'},b.hidden?Y.legends.hidden.text:void 0),x:te,y:ne,children:b.label})]})},VQ=function(e){var t=e.data,n=e.x,r=e.y,i=e.direction,o=e.padding,s=void 0===o?0:o,a=e.justify,A=e.effects,l=e.itemWidth,c=e.itemHeight,u=e.itemDirection,d=void 0===u?'left-to-right':u,f=e.itemsSpacing,h=void 0===f?0:f,p=e.itemTextColor,g=e.itemBackground,m=void 0===g?'transparent':g,v=e.itemOpacity,b=void 0===v?1:v,y=e.symbolShape,B=e.symbolSize,x=e.symbolSpacing,C=e.symbolBorderWidth,_=e.symbolBorderColor,j=e.onClick,F=e.onMouseEnter,E=e.onMouseLeave,S=e.toggleSerie,k=DQ({itemCount:t.length,itemWidth:l,itemHeight:c,itemsSpacing:h,direction:i,padding:s}).padding,U='row'===i?l+h:0,Q='column'===i?c+h:0;return w('g',{transform:'translate('+n+','+r+')',children:t.map(function(e,t){return w(zQ,{data:e,x:t*U+k.left,y:t*Q+k.top,width:l,height:c,direction:d,justify:a,effects:A,textColor:p,background:m,opacity:b,symbolShape:y,symbolSize:B,symbolSpacing:x,symbolBorderWidth:C,symbolBorderColor:_,onClick:j,onMouseEnter:F,onMouseLeave:E,toggleSerie:S},t)})})},KQ=function(e){var t=e.data,n=e.containerWidth,r=e.containerHeight,i=e.translateX,o=void 0===i?0:i,s=e.translateY,a=void 0===s?0:s,A=e.anchor,l=e.direction,c=e.padding,u=void 0===c?0:c,d=e.justify,f=e.itemsSpacing,h=void 0===f?0:f,p=e.itemWidth,g=e.itemHeight,m=e.itemDirection,v=e.itemTextColor,b=e.itemBackground,y=e.itemOpacity,B=e.symbolShape,x=e.symbolSize,C=e.symbolSpacing,_=e.symbolBorderWidth,j=e.symbolBorderColor,F=e.onClick,E=e.onMouseEnter,S=e.onMouseLeave,k=e.toggleSerie,U=e.effects,Q=DQ({itemCount:t.length,itemsSpacing:h,itemWidth:p,itemHeight:g,direction:l,padding:u}),L=Q.width,O=Q.height,I=PQ({anchor:A,translateX:o,translateY:a,containerWidth:n,containerHeight:r,width:L,height:O}),N=I.x,T=I.y;return w(VQ,{data:t,x:N,y:T,direction:l,padding:u,justify:d,effects:U,itemsSpacing:h,itemWidth:p,itemHeight:g,itemDirection:m,itemTextColor:v,itemBackground:b,itemOpacity:y,symbolShape:B,symbolSize:x,symbolSpacing:C,symbolBorderWidth:_,symbolBorderColor:j,onClick:F,onMouseEnter:E,onMouseLeave:S,toggleSerie:'boolean'==typeof k?void 0:k})},qQ={start:'left',middle:'center',end:'right'},GQ=function(e,t){var n=t.data,r=t.containerWidth,i=t.containerHeight,o=t.translateX,s=void 0===o?0:o,a=t.translateY,A=void 0===a?0:a,l=t.anchor,c=t.direction,u=t.padding,d=void 0===u?0:u,f=t.justify,h=void 0!==f&&f,p=t.itemsSpacing,g=void 0===p?0:p,m=t.itemWidth,v=t.itemHeight,b=t.itemDirection,y=void 0===b?'left-to-right':b,w=t.itemTextColor,B=t.symbolSize,x=void 0===B?16:B,C=t.symbolSpacing,_=void 0===C?8:C,j=t.theme,F=DQ({itemCount:n.length,itemWidth:m,itemHeight:v,itemsSpacing:g,direction:c,padding:d}),E=F.width,S=F.height,k=F.padding,U=PQ({anchor:l,translateX:s,translateY:A,containerWidth:r,containerHeight:i,width:E,height:S}),Q=U.x,L=U.y,O='row'===c?m+g:0,I='column'===c?v+g:0;e.save(),e.translate(Q,L),e.font=j.legends.text.fontSize+'px '+(j.legends.text.fontFamily||'sans-serif'),n.forEach(function(t,n){var r,i,o=n*O+k.left,s=n*I+k.top,a=RQ({direction:y,justify:h,symbolSize:x,symbolSpacing:_,width:m,height:v}),A=a.symbolX,l=a.symbolY,c=a.labelX,u=a.labelY,d=a.labelAnchor,f=a.labelAlignment;e.fillStyle=null!=(r=t.color)?r:'black',e.fillRect(o+A,s+l,x,x),e.textAlign=qQ[d],'central'===f&&(e.textBaseline='middle'),e.fillStyle=null!=(i=null!=w?w:j.legends.text.fill)?i:'black',e.fillText(String(t.label),o+c,s+u)}),e.restore()},WQ={data:Qr.arrayOf(Qr.object),anchor:Qr.oneOf(['top','top-right','right','bottom-right','bottom','bottom-left','left','top-left','center']).isRequired,translateX:Qr.number,translateY:Qr.number,direction:Qr.oneOf(['row','column']).isRequired,itemsSpacing:Qr.number,itemWidth:Qr.number.isRequired,itemHeight:Qr.number.isRequired,itemDirection:Qr.oneOf(['left-to-right','right-to-left','top-to-bottom','bottom-to-top']),itemTextColor:Qr.string,itemBackground:Qr.string,itemOpacity:Qr.number,symbolShape:Qr.oneOfType([Qr.oneOf(['circle','diamond','square','triangle']),Qr.func]),symbolSize:Qr.number,symbolSpacing:Qr.number,symbolBorderWidth:Qr.number,symbolBorderColor:Qr.string,onClick:Qr.func,onMouseEnter:Qr.func,onMouseLeave:Qr.func,effects:Qr.arrayOf(Qr.shape({on:Qr.oneOfType([Qr.oneOf(['hover'])]).isRequired,style:Qr.shape({itemTextColor:Qr.string,itemBackground:Qr.string,itemOpacity:Qr.number,symbolSize:Qr.number,symbolBorderWidth:Qr.number,symbolBorderColor:Qr.string}).isRequired}))};function YQ(){return YQ=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},YQ.apply(this,arguments)}function XQ(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}var JQ,ZQ=function(e){var t=e.bars,n=e.annotations,r=$S({data:t,annotations:n,getPosition:function(e){return{x:e.x+e.width/2,y:e.y+e.height/2}},getDimensions:function(e){var t=e.height,n=e.width;return{width:n,height:t,size:Math.max(n,t)}}});return w(x,{children:r.map(function(e,t){return w(ok,YQ({},e),t)})})},$Q=function(e){var t=e.width,n=e.height,r=e.legends,i=e.toggleSerie;return w(x,{children:r.map(function(e,r){var o,s=e[0],a=e[1];return w(KQ,YQ({},s,{containerWidth:t,containerHeight:n,data:null!=(o=s.data)?o:a,toggleSerie:s.toggleSerie&&'keys'===s.dataFrom?i:void 0}),r)})})},eL=['data'],tL=['color','label'],nL={indexBy:'id',keys:['value'],groupMode:'stacked',layout:'vertical',reverse:!1,minValue:'auto',maxValue:'auto',valueScale:{type:'linear'},indexScale:{type:'band',round:!0},padding:.1,innerPadding:0,axisBottom:{},axisLeft:{},enableGridX:!1,enableGridY:!0,enableLabel:!0,label:'formattedValue',labelSkipWidth:0,labelSkipHeight:0,labelTextColor:{from:'theme',theme:'labels.text.fill'},colorBy:'id',colors:{scheme:'nivo'},borderRadius:0,borderWidth:0,borderColor:{from:'color'},isInteractive:!0,tooltip:function(e){var t=e.color,n=e.label,r=XQ(e,tL);return w(Ca,{id:n,value:r.formattedValue,enableChip:!0,color:t})},tooltipLabel:function(e){return e.id+' - '+e.indexValue},legends:[],initialHiddenIds:[],annotations:[],markers:[]},rL=YQ({},nL,{layers:['grid','axes','bars','markers','legends','annotations'],barComponent:function(e){var t,n=e.bar,r=n.data,i=XQ(n,eL),o=e.style,a=o.borderColor,A=o.color,l=o.height,c=o.labelColor,u=o.labelOpacity,f=o.labelX,h=o.labelY,g=o.transform,m=o.width,v=e.borderRadius,b=e.borderWidth,y=e.label,x=e.shouldRenderLabel,C=e.isInteractive,_=e.onClick,j=e.onMouseEnter,F=e.onMouseLeave,E=e.tooltip,S=e.isFocusable,k=e.ariaLabel,U=e.ariaLabelledBy,Q=e.ariaDescribedBy,L=dC(),O=Qa(),I=O.showTooltipFromEvent,N=O.showTooltipAt,T=O.hideTooltip,M=d(function(){return function(){return p(E,YQ({},i,r))}},[E,i,r]),D=s(function(e){null==_||_(YQ({color:i.color},r),e)},[i,r,_]),P=s(function(e){return I(M(),e)},[I,M]),R=s(function(e){null==j||j(r,e),I(M(),e)},[r,j,I,M]),H=s(function(e){null==F||F(r,e),T()},[r,T,F]),z=s(function(){N(M(),[i.absX+i.width/2,i.absY])},[N,M,i]),V=s(function(){T()},[T]);return B(va.g,{transform:g,children:[w(va.rect,{width:ia(m,function(e){return Math.max(e,0)}),height:ia(l,function(e){return Math.max(e,0)}),rx:v,ry:v,fill:null!=(t=r.fill)?t:A,strokeWidth:b,stroke:a,focusable:S,tabIndex:S?0:void 0,'aria-label':k?k(r):void 0,'aria-labelledby':U?U(r):void 0,'aria-describedby':Q?Q(r):void 0,onMouseEnter:C?R:void 0,onMouseMove:C?P:void 0,onMouseLeave:C?H:void 0,onClick:C?D:void 0,onFocus:C&&S?z:void 0,onBlur:C&&S?V:void 0}),x&&w(va.text,{x:f,y:h,textAnchor:'middle',dominantBaseline:'central',fillOpacity:u,style:YQ({},L.labels.text,{pointerEvents:'none',fill:c}),children:y})]})},defs:[],fill:[],animate:!0,motionConfig:'default',role:'img',isFocusable:!1}),iL=YQ({},nL,{layers:['grid','axes','bars','legends','annotations'],pixelRatio:'undefined'!=typeof window&&null!=(JQ=window.devicePixelRatio)?JQ:1}),oL=function(e,t,n,r,i,o){return BF(r,{all:e.map(t),min:0,max:0},i,o).padding(n)},sL=function(e,t){return e.map(function(e){return YQ({},t.reduce(function(e,t){return e[t]=null,e},{}),e)})},aL=function(e){return Object.keys(e).reduce(function(t,n){return e[n]&&(t[n]=e[n]),t},{})},AL=function(e){return[e,Number(e)]},lL=['layout','minValue','maxValue','reverse','width','height','padding','innerPadding','valueScale','indexScale','hiddenIds'],cL=function(e,t){return e>t},uL=function(e,t){return e<t},dL=function(e,t){return Array.from(' '.repeat(t-e),function(t,n){return e+n})},fL=function(e){return cL(e,0)?0:e},hL=function(e,t,n,r){var i=e.data,o=e.formatValue,s=e.getColor,a=e.getIndex,A=e.getTooltipLabel,l=e.innerPadding,c=void 0===l?0:l,u=e.keys,d=e.xScale,f=e.yScale,h=e.margin,p=n?uL:cL,g=i.map(aL),m=[];return u.forEach(function(e,n){return dL(0,d.domain().length).forEach(function(l){var u,v,b,y=AL(i[l][e]),w=y[0],B=y[1],x=a(i[l]),C=(null!=(u=d(x))?u:0)+t*n+c*n,_=p(v=B,0)?null!=(b=f(v))?b:0:r,j=function(e,t){var n;return p(e,0)?r-t:(null!=(n=f(e))?n:0)-r}(B,_),F={id:e,value:null===w?w:B,formattedValue:o(B),hidden:!1,index:l,indexValue:x,data:g[l]};m.push({key:e+'.'+F.indexValue,index:m.length,data:F,x:C,y:_,absX:h.left+C,absY:h.top+_,width:t,height:j,color:s(F),label:A(F)})})}),m},pL=function(e,t,n,r){var i=e.data,o=e.formatValue,s=e.getIndex,a=e.getColor,A=e.getTooltipLabel,l=e.keys,c=e.innerPadding,u=void 0===c?0:c,d=e.xScale,f=e.yScale,h=e.margin,p=n?uL:cL,g=i.map(aL),m=[];return l.forEach(function(e,n){return dL(0,f.domain().length).forEach(function(l){var c,v,b,y=AL(i[l][e]),w=y[0],B=y[1],x=s(i[l]),C=p(v=B,0)?r:null!=(b=d(v))?b:0,_=(null!=(c=f(x))?c:0)+t*n+u*n,j=function(e,t){var n;return p(e,0)?(null!=(n=d(e))?n:0)-r:r-t}(B,C),F={id:e,value:null===w?w:B,formattedValue:o(B),hidden:!1,index:l,indexValue:x,data:g[l]};m.push({key:e+'.'+F.indexValue,index:m.length,data:F,x:C,y:_,absX:h.left+C,absY:h.top+_,width:j,height:t,color:a(F),label:A(F)})})}),m},gL=function(e){var t,n,r=e.layout,i=e.minValue,o=e.maxValue,s=e.reverse,a=e.width,A=e.height,l=e.padding,c=void 0===l?0:l,u=e.innerPadding,d=void 0===u?0:u,f=e.valueScale,h=e.indexScale,p=e.hiddenIds,g=void 0===p?[]:p,m=XQ(e,lL),v=m.keys.filter(function(e){return!g.includes(e)}),b=sL(m.data,v),y='vertical'===r?['y','x',a]:['x','y',A],w=y[0],B=y[1],x=y[2],C=oL(b,m.getIndex,c,h,x,B),_=YQ({max:o,min:i,reverse:s},f),j='auto'===_.min?fL:function(e){return e},F=b.reduce(function(e,t){return[].concat(e,v.map(function(e){return t[e]}))},[]).filter(Boolean),E=BF(_,{all:F,min:j(Math.min.apply(Math,F)),max:(n=Math.max.apply(Math,F),isFinite(n)?n:0)},'x'===w?a:A,w),S='vertical'===r?[C,E]:[E,C],k=S[0],U=S[1],Q=(C.bandwidth()-d*(v.length-1))/v.length,L=[YQ({},m,{data:b,keys:v,innerPadding:d,xScale:k,yScale:U}),Q,_.reverse,null!=(t=E(0))?t:0];return{xScale:k,yScale:U,bars:Q>0?'vertical'===r?hL.apply(void 0,L):pL.apply(void 0,L):[]}},mL=['data','layout','minValue','maxValue','reverse','width','height','padding','valueScale','indexScale','hiddenIds'],vL=function e(t){var n;return t.some(Array.isArray)?e((n=[]).concat.apply(n,t)):t},bL=function(e,t,n){var r=e.formatValue,i=e.getColor,o=e.getIndex,s=e.getTooltipLabel,a=e.innerPadding,A=e.stackedData,l=e.xScale,c=e.yScale,u=e.margin,d=[];return A.forEach(function(e){return l.domain().forEach(function(A,f){var h,p,g=e[f],m=null!=(h=l(o(g.data)))?h:0,v=(null!=(p=function(e){return c(e[n?0:1])}(g))?p:0)+.5*a,b=function(e,t){var r;return(null!=(r=c(e[n?1:0]))?r:0)-t}(g,v)-a,y=AL(g.data[e.key]),w=y[0],B=y[1],x={id:e.key,value:null===w?w:B,formattedValue:r(B),hidden:!1,index:f,indexValue:A,data:aL(g.data)};d.push({key:e.key+'.'+A,index:d.length,data:x,x:m,y:v,absX:u.left+m,absY:u.top+v,width:t,height:b,color:i(x),label:s(x)})})}),d},yL=function(e,t,n){var r=e.formatValue,i=e.getColor,o=e.getIndex,s=e.getTooltipLabel,a=e.innerPadding,A=e.stackedData,l=e.xScale,c=e.yScale,u=e.margin,d=[];return A.forEach(function(e){return c.domain().forEach(function(A,f){var h,p,g=e[f],m=null!=(h=c(o(g.data)))?h:0,v=(null!=(p=function(e){return l(e[n?1:0])}(g))?p:0)+.5*a,b=function(e,t){var r;return(null!=(r=l(e[n?0:1]))?r:0)-t}(g,v)-a,y=AL(g.data[e.key]),w=y[0],B=y[1],x={id:e.key,value:null===w?w:B,formattedValue:r(B),hidden:!1,index:f,indexValue:A,data:aL(g.data)};d.push({key:e.key+'.'+A,index:d.length,data:x,x:v,y:m,absX:u.left+v,absY:u.top+m,width:b,height:t,color:i(x),label:s(x)})})}),d},wL=function(e){var t,n=e.data,r=e.layout,i=e.minValue,o=e.maxValue,s=e.reverse,a=e.width,A=e.height,l=e.padding,c=void 0===l?0:l,u=e.valueScale,d=e.indexScale,f=e.hiddenIds,h=void 0===f?[]:f,p=XQ(e,mL),g=p.keys.filter(function(e){return!h.includes(e)}),m=function(){var e=Wb([]),t=tw,n=ew,r=nw;function i(i){var o,s,a=e.apply(this,arguments),A=i.length,l=a.length,c=new Array(l);for(o=0;o<l;++o){for(var u,d=a[o],f=c[o]=new Array(A),h=0;h<A;++h)f[h]=u=[0,+r(i[h],d,h,i)],u.data=i[h];f.key=d}for(o=0,s=t(c);o<l;++o)c[s[o]].index=o;return n(c,s),c}return i.keys=function(t){return arguments.length?(e='function'==typeof t?t:Wb(wy.call(t)),i):e},i.value=function(e){return arguments.length?(r='function'==typeof e?e:Wb(+e),i):r},i.order=function(e){return arguments.length?(t=null==e?tw:'function'==typeof e?e:Wb(wy.call(e)),i):t},i.offset=function(e){return arguments.length?(n=null==e?ew:e,i):n},i}().keys(g).offset(rw)(sL(n,g)),v='vertical'===r?['y','x',a]:['x','y',A],b=v[0],y=v[1],w=v[2],B=oL(n,p.getIndex,c,d,w,y),x=YQ({max:o,min:i,reverse:s},u),C=(t=vL(m),'log'===u.type?t.filter(function(e){return 0!==e}):t),_=BF(x,{all:C,min:Math.min.apply(Math,C),max:Math.max.apply(Math,C)},'x'===b?a:A,b),j='vertical'===r?[B,_]:[_,B],F=j[0],E=j[1],S=p.innerPadding>0?p.innerPadding:0,k=B.bandwidth(),U=[YQ({},p,{innerPadding:S,stackedData:m,xScale:F,yScale:E}),k,x.reverse];return{xScale:F,yScale:E,bars:k>0?'vertical'===r?bL.apply(void 0,U):yL.apply(void 0,U):[]}},BL=function(e){var t=e.bars,n=e.direction,r=e.from,i=e.groupMode,o=e.layout,s=e.legendLabel,a=e.reverse,A=zC(null!=s?s:'indexes'===r?'indexValue':'id');return'indexes'===r?function(e,t,n){var r=K_(e.map(function(e){var t,r;return{id:null!=(t=e.data.indexValue)?t:'',label:n(e.data),hidden:e.data.hidden,color:null!=(r=e.color)?r:'#000'}}),function(e){return e.id});return'horizontal'===t&&r.reverse(),r}(t,o,A):function(e,t,n,r,i,o){var s=K_(e.map(function(e){var t;return{id:e.data.id,label:o(e.data),hidden:e.data.hidden,color:null!=(t=e.color)?t:'#000'}}),function(e){return e.id});return('vertical'===t&&'stacked'===r&&'column'===n&&!0!==i||'horizontal'===t&&'stacked'===r&&!0===i)&&s.reverse(),s}(t,o,n,i,a,A)},xL=function(e){var t=e.indexBy,r=void 0===t?nL.indexBy:t,i=e.keys,o=void 0===i?nL.keys:i,a=e.label,A=void 0===a?nL.label:a,l=e.tooltipLabel,c=void 0===l?nL.tooltipLabel:l,u=e.valueFormat,f=e.colors,h=void 0===f?nL.colors:f,p=e.colorBy,g=void 0===p?nL.colorBy:p,m=e.borderColor,v=void 0===m?nL.borderColor:m,b=e.labelTextColor,y=void 0===b?nL.labelTextColor:b,w=e.groupMode,B=void 0===w?nL.groupMode:w,x=e.layout,C=void 0===x?nL.layout:x,_=e.reverse,j=void 0===_?nL.reverse:_,F=e.data,E=e.minValue,S=void 0===E?nL.minValue:E,k=e.maxValue,U=void 0===k?nL.maxValue:k,Q=e.margin,L=e.width,O=e.height,I=e.padding,N=void 0===I?nL.padding:I,T=e.innerPadding,M=void 0===T?nL.innerPadding:T,D=e.valueScale,P=void 0===D?nL.valueScale:D,R=e.indexScale,H=void 0===R?nL.indexScale:R,z=e.initialHiddenIds,V=void 0===z?nL.initialHiddenIds:z,K=e.enableLabel,q=void 0===K?nL.enableLabel:K,G=e.labelSkipWidth,W=void 0===G?nL.labelSkipWidth:G,Y=e.labelSkipHeight,X=void 0===Y?nL.labelSkipHeight:Y,J=e.legends,Z=void 0===J?nL.legends:J,$=e.legendLabel,ee=n(null!=V?V:[]),te=ee[0],ne=ee[1],re=s(function(e){ne(function(t){return t.indexOf(e)>-1?t.filter(function(t){return t!==e}):[].concat(t,[e])})},[]),ie=VC(r),oe=VC(A),se=VC(c),ae=AC(u),Ae=dC(),le=NQ(h,g),ce=LQ(v,Ae),ue=LQ(y,Ae),de=('grouped'===B?gL:wL)({layout:C,reverse:j,data:F,getIndex:ie,keys:o,minValue:S,maxValue:U,width:L,height:O,getColor:le,padding:N,innerPadding:M,valueScale:P,indexScale:H,hiddenIds:te,formatValue:ae,getTooltipLabel:se,margin:Q}),fe=de.bars,he=de.xScale,pe=de.yScale,ge=d(function(){return fe.filter(function(e){return null!==e.data.value}).map(function(e,t){return YQ({},e,{index:t})})},[fe]),me=s(function(e){var t=e.width,n=e.height;return!(!q||W>0&&t<W||X>0&&n<X)},[q,W,X]),ve=d(function(){return o.map(function(e){var t=fe.find(function(t){return t.data.id===e});return YQ({},t,{data:YQ({id:e},null==t?void 0:t.data,{hidden:te.includes(e)})})})},[te,o,fe]),be=d(function(){return Z.map(function(e){return[e,BL({bars:'keys'===e.dataFrom?ve:fe,direction:e.direction,from:e.dataFrom,groupMode:B,layout:C,legendLabel:$,reverse:j})]})},[Z,ve,fe,B,C,$,j]);return{bars:fe,barsWithValue:ge,xScale:he,yScale:pe,getIndex:ie,getLabel:oe,getTooltipLabel:se,formatValue:ae,getColor:le,getBorderColor:ce,getLabelColor:ue,shouldRenderBarLabel:me,hiddenIds:te,toggleSerie:re,legendsWithData:be}},CL=['isInteractive','animate','motionConfig','theme','renderWrapper'],_L=function(e){var t=e.data,n=e.indexBy,r=e.keys,i=e.margin,o=e.width,s=e.height,a=e.groupMode,A=e.layout,l=e.reverse,c=e.minValue,u=e.maxValue,f=e.valueScale,h=e.indexScale,g=e.padding,v=e.innerPadding,b=e.axisTop,y=e.axisRight,B=e.axisBottom,x=void 0===B?rL.axisBottom:B,C=e.axisLeft,_=void 0===C?rL.axisLeft:C,j=e.enableGridX,F=void 0===j?rL.enableGridX:j,E=e.enableGridY,S=void 0===E?rL.enableGridY:E,k=e.gridXValues,U=e.gridYValues,Q=e.layers,L=void 0===Q?rL.layers:Q,O=e.barComponent,I=void 0===O?rL.barComponent:O,N=e.enableLabel,T=void 0===N?rL.enableLabel:N,M=e.label,D=e.labelSkipWidth,P=void 0===D?rL.labelSkipWidth:D,R=e.labelSkipHeight,H=void 0===R?rL.labelSkipHeight:R,z=e.labelTextColor,V=e.markers,K=void 0===V?rL.markers:V,q=e.colorBy,G=e.colors,W=e.defs,Y=void 0===W?rL.defs:W,X=e.fill,J=void 0===X?rL.fill:X,Z=e.borderRadius,$=void 0===Z?rL.borderRadius:Z,ee=e.borderWidth,te=void 0===ee?rL.borderWidth:ee,ne=e.borderColor,re=e.annotations,ie=void 0===re?rL.annotations:re,oe=e.legendLabel,se=e.tooltipLabel,ae=e.valueFormat,Ae=e.isInteractive,le=void 0===Ae?rL.isInteractive:Ae,ce=e.tooltip,ue=void 0===ce?rL.tooltip:ce,de=e.onClick,fe=e.onMouseEnter,he=e.onMouseLeave,pe=e.legends,ge=e.role,me=void 0===ge?rL.role:ge,ve=e.ariaLabel,be=e.ariaLabelledBy,ye=e.ariaDescribedBy,we=e.isFocusable,Be=void 0===we?rL.isFocusable:we,xe=e.barAriaLabel,Ce=e.barAriaLabelledBy,_e=e.barAriaDescribedBy,je=e.initialHiddenIds,Fe=zx(),Ee=Fe.animate,Se=Fe.config,ke=oC(o,s,i),Ue=ke.outerWidth,Qe=ke.outerHeight,Le=ke.margin,Oe=ke.innerWidth,Ie=ke.innerHeight,Ne=xL({indexBy:n,label:M,tooltipLabel:se,valueFormat:ae,colors:G,colorBy:q,borderColor:ne,labelTextColor:z,groupMode:a,layout:A,reverse:l,data:t,keys:r,minValue:c,maxValue:u,margin:Le,width:Oe,height:Ie,padding:g,innerPadding:v,valueScale:f,indexScale:h,enableLabel:T,labelSkipWidth:P,labelSkipHeight:H,legends:pe,legendLabel:oe,initialHiddenIds:je}),Te=Ne.bars,Me=Ne.barsWithValue,De=Ne.xScale,Pe=Ne.yScale,Re=Ne.getLabel,He=Ne.getTooltipLabel,ze=Ne.getBorderColor,Ve=Ne.getLabelColor,Ke=Ne.shouldRenderBarLabel,qe=Ne.toggleSerie,Ge=Ne.legendsWithData,We=Zs(Me,{keys:function(e){return e.key},from:function(e){return YQ({borderColor:ze(e),color:e.color,height:0,labelColor:Ve(e),labelOpacity:0,labelX:e.width/2,labelY:e.height/2,transform:'translate('+e.x+', '+(e.y+e.height)+')',width:e.width},'vertical'===A?{}:{height:e.height,transform:'translate('+e.x+', '+e.y+')',width:0})},enter:function(e){return{borderColor:ze(e),color:e.color,height:e.height,labelColor:Ve(e),labelOpacity:1,labelX:e.width/2,labelY:e.height/2,transform:'translate('+e.x+', '+e.y+')',width:e.width}},update:function(e){return{borderColor:ze(e),color:e.color,height:e.height,labelColor:Ve(e),labelOpacity:1,labelX:e.width/2,labelY:e.height/2,transform:'translate('+e.x+', '+e.y+')',width:e.width}},leave:function(e){return YQ({borderColor:ze(e),color:e.color,height:0,labelColor:Ve(e),labelOpacity:0,labelX:e.width/2,labelY:0,transform:'translate('+e.x+', '+(e.y+e.height)+')',width:e.width},'vertical'===A?{}:{labelX:0,labelY:e.height/2,height:e.height,transform:'translate('+e.x+', '+e.y+')',width:0})},config:Se,immediate:!Ee,initial:Ee?void 0:null}),Ye=d(function(){return{borderRadius:$,borderWidth:te,enableLabel:T,isInteractive:le,labelSkipWidth:P,labelSkipHeight:H,onClick:de,onMouseEnter:fe,onMouseLeave:he,getTooltipLabel:He,tooltip:ue,isFocusable:Be,ariaLabel:xe,ariaLabelledBy:Ce,ariaDescribedBy:_e}},[$,te,T,He,le,H,P,de,fe,he,ue,Be,xe,Ce,_e]),Xe=YC(Y,Te,J,{dataKey:'data',targetKey:'data.fill'}),Je={annotations:null,axes:null,bars:null,grid:null,legends:null,markers:null};L.includes('annotations')&&(Je.annotations=w(ZQ,{bars:Te,annotations:ie},'annotations')),L.includes('axes')&&(Je.axes=w(zF,{xScale:De,yScale:Pe,width:Oe,height:Ie,top:b,right:y,bottom:x,left:_},'axes')),L.includes('bars')&&(Je.bars=w(m,{children:We(function(e,t){return p(I,YQ({},Ye,{bar:t,style:e,shouldRenderLabel:Ke(t),label:Re(t.data)}))})},'bars')),L.includes('grid')&&(Je.grid=w(qF,{width:Oe,height:Ie,xScale:F?De:null,yScale:S?Pe:null,xValues:k,yValues:U},'grid')),L.includes('legends')&&(Je.legends=w($Q,{width:Oe,height:Ie,legends:Ge,toggleSerie:qe},'legends')),L.includes('markers')&&(Je.markers=w(PC,{markers:K,width:Oe,height:Ie,xScale:De,yScale:Pe},'markers'));var Ze=d(function(){return YQ({},Ye,{margin:Le,width:o,height:s,innerWidth:Oe,innerHeight:Ie,bars:Te,legendData:Ge,enableLabel:T,xScale:De,yScale:Pe,tooltip:ue,getTooltipLabel:He,onClick:de,onMouseEnter:fe,onMouseLeave:he})},[Ye,Le,o,s,Oe,Ie,Te,Ge,T,De,Pe,ue,He,de,fe,he]);return w(QC,{width:Ue,height:Qe,margin:Le,defs:Xe,role:me,ariaLabel:ve,ariaLabelledBy:be,ariaDescribedBy:ye,isFocusable:Be,children:L.map(function(e,t){var n;return'function'==typeof e?w(m,{children:p(e,Ze)},t):null!=(n=null==Je?void 0:Je[e])?n:null})})},jL=function(e){var t=e.isInteractive,n=void 0===t?rL.isInteractive:t,r=e.animate,i=void 0===r?rL.animate:r,o=e.motionConfig,s=void 0===o?rL.motionConfig:o,a=e.theme,A=e.renderWrapper,l=XQ(e,CL);return w(pC,{animate:i,isInteractive:n,motionConfig:s,renderWrapper:A,theme:a,children:w(_L,YQ({isInteractive:n},l))})},FL=['isInteractive','renderWrapper','theme'],EL=function(e,t,n,r){return e.find(function(e){return KC(e.x+t.left,e.y+t.top,e.width,e.height,n,r)})},SL=function(e){var t=e.data,n=e.indexBy,i=e.keys,a=e.margin,A=e.width,l=e.height,c=e.groupMode,u=e.layout,f=e.reverse,h=e.minValue,g=e.maxValue,m=e.valueScale,v=e.indexScale,b=e.padding,y=e.innerPadding,B=e.axisTop,x=e.axisRight,C=e.axisBottom,_=void 0===C?iL.axisBottom:C,j=e.axisLeft,F=void 0===j?iL.axisLeft:j,E=e.enableGridX,S=void 0===E?iL.enableGridX:E,k=e.enableGridY,U=void 0===k?iL.enableGridY:k,Q=e.gridXValues,L=e.gridYValues,O=e.layers,I=void 0===O?iL.layers:O,N=e.renderBar,T=void 0===N?function(e,t){var n=t.bar,r=n.color,i=n.height,o=n.width,s=n.x,a=n.y,A=t.borderColor,l=t.borderRadius,c=t.borderWidth,u=t.label,d=t.labelColor,f=t.shouldRenderLabel;if(e.fillStyle=r,c>0&&(e.strokeStyle=A,e.lineWidth=c),e.beginPath(),l>0){var h=Math.min(l,i);e.moveTo(s+h,a),e.lineTo(s+o-h,a),e.quadraticCurveTo(s+o,a,s+o,a+h),e.lineTo(s+o,a+i-h),e.quadraticCurveTo(s+o,a+i,s+o-h,a+i),e.lineTo(s+h,a+i),e.quadraticCurveTo(s,a+i,s,a+i-h),e.lineTo(s,a+h),e.quadraticCurveTo(s,a,s+h,a),e.closePath()}else e.rect(s,a,o,i);e.fill(),c>0&&e.stroke(),f&&(e.textBaseline='middle',e.textAlign='center',e.fillStyle=d,e.fillText(u,s+o/2,a+i/2))}:N,M=e.enableLabel,D=void 0===M?iL.enableLabel:M,P=e.label,R=e.labelSkipWidth,H=void 0===R?iL.labelSkipWidth:R,z=e.labelSkipHeight,V=void 0===z?iL.labelSkipHeight:z,K=e.labelTextColor,q=e.colorBy,G=e.colors,W=e.borderRadius,Y=void 0===W?iL.borderRadius:W,X=e.borderWidth,J=void 0===X?iL.borderWidth:X,Z=e.borderColor,$=e.annotations,ee=void 0===$?iL.annotations:$,te=e.legendLabel,ne=e.tooltipLabel,re=e.valueFormat,ie=e.isInteractive,oe=void 0===ie?iL.isInteractive:ie,se=e.tooltip,ae=void 0===se?iL.tooltip:se,Ae=e.onClick,le=e.onMouseEnter,ce=e.onMouseLeave,ue=e.legends,de=e.pixelRatio,fe=void 0===de?iL.pixelRatio:de,he=e.canvasRef,pe=o(null),ge=dC(),me=oC(A,l,a),ve=me.margin,be=me.innerWidth,ye=me.innerHeight,we=me.outerWidth,Be=me.outerHeight,xe=xL({indexBy:n,label:P,tooltipLabel:ne,valueFormat:re,colors:G,colorBy:q,borderColor:Z,labelTextColor:K,groupMode:c,layout:u,reverse:f,data:t,keys:i,minValue:h,maxValue:g,margin:ve,width:be,height:ye,padding:b,innerPadding:y,valueScale:m,indexScale:v,enableLabel:D,labelSkipWidth:H,labelSkipHeight:V,legends:ue,legendLabel:te}),Ce=xe.bars,_e=xe.barsWithValue,je=xe.xScale,Fe=xe.yScale,Ee=xe.getLabel,Se=xe.getTooltipLabel,ke=xe.getBorderColor,Ue=xe.getLabelColor,Qe=xe.shouldRenderBarLabel,Le=xe.legendsWithData,Oe=Qa(),Ie=Oe.showTooltipFromEvent,Ne=Oe.hideTooltip,Te=function(e){var t=e.annotations;return d(function(){return t.map(function(e){return KS({},e,{computed:ZS(KS({},e))})})},[t])}({annotations:$S({data:Ce,annotations:ee,getPosition:function(e){return{x:e.x,y:e.y}},getDimensions:function(e){var t=e.width,n=e.height;return{width:t,height:n,size:Math.max(t,n)}}})}),Me=d(function(){return{borderRadius:Y,borderWidth:J,isInteractive:oe,isFocusable:!1,labelSkipWidth:H,labelSkipHeight:V,margin:ve,width:A,height:l,innerWidth:be,innerHeight:ye,bars:Ce,legendData:Le,enableLabel:D,xScale:je,yScale:Fe,tooltip:ae,getTooltipLabel:Se,onClick:Ae,onMouseEnter:le,onMouseLeave:ce}},[Y,J,oe,H,V,ve,A,l,be,ye,Ce,Le,D,je,Fe,ae,Se,Ae,le,ce]);r(function(){var e,t=null==(e=pe.current)?void 0:e.getContext('2d');pe.current&&t&&(pe.current.width=we*fe,pe.current.height=Be*fe,t.scale(fe,fe),t.fillStyle=ge.background,t.fillRect(0,0,we,Be),t.translate(ve.left,ve.top),I.forEach(function(e){'grid'===e?'number'==typeof ge.grid.line.strokeWidth&&ge.grid.line.strokeWidth>0&&(t.lineWidth=ge.grid.line.strokeWidth,t.strokeStyle=ge.grid.line.stroke,S&&WF(t,{width:A,height:l,scale:je,axis:'x',values:Q}),U&&WF(t,{width:A,height:l,scale:Fe,axis:'y',values:L})):'axes'===e?GF(t,{xScale:je,yScale:Fe,width:be,height:ye,top:B,right:x,bottom:_,left:F,theme:ge}):'bars'===e?_e.forEach(function(e){T(t,{bar:e,borderColor:ke(e),borderRadius:Y,borderWidth:J,label:Ee(e.data),labelColor:Ue(e),shouldRenderLabel:Qe(e)})}):'legends'===e?Le.forEach(function(e){var n=e[0],r=e[1];GQ(t,YQ({},n,{data:r,containerWidth:be,containerHeight:ye,theme:ge}))}):'annotations'===e?function(e,t){var n=t.annotations,r=t.theme;0!==n.length&&(e.save(),n.forEach(function(t){if(!function(e){var t=typeof e;return'string'===t||'function'===t}(t.note))throw new Error('note is invalid for canvas implementation');r.annotations.link.outlineWidth>0&&(e.lineCap='square',e.strokeStyle=r.annotations.link.outlineColor,e.lineWidth=r.annotations.link.strokeWidth+2*r.annotations.link.outlineWidth,e.beginPath(),sk(e,t.computed.points),e.stroke(),e.lineCap='butt'),YS(t)&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.arc(t.x,t.y,t.size/2,0,2*Math.PI),e.stroke()),XS(t)&&r.annotations.symbol.outlineWidth>0&&(e.strokeStyle=r.annotations.symbol.outlineColor,e.lineWidth=2*r.annotations.symbol.outlineWidth,e.beginPath(),e.arc(t.x,t.y,t.size/2,0,2*Math.PI),e.stroke()),JS(t)&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.rect(t.x-t.width/2,t.y-t.height/2,t.width,t.height),e.stroke()),e.strokeStyle=r.annotations.link.stroke,e.lineWidth=r.annotations.link.strokeWidth,e.beginPath(),sk(e,t.computed.points),e.stroke(),YS(t)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.arc(t.x,t.y,t.size/2,0,2*Math.PI),e.stroke()),XS(t)&&(e.fillStyle=r.annotations.symbol.fill,e.beginPath(),e.arc(t.x,t.y,t.size/2,0,2*Math.PI),e.fill()),JS(t)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.rect(t.x-t.width/2,t.y-t.height/2,t.width,t.height),e.stroke()),'function'==typeof t.note?t.note(e,{datum:t.datum,x:t.computed.text[0],y:t.computed.text[1],theme:r}):(e.font=r.annotations.text.fontSize+'px '+r.annotations.text.fontFamily,e.textAlign='left',e.textBaseline='alphabetic',e.fillStyle=r.annotations.text.fill,e.strokeStyle=r.annotations.text.outlineColor,e.lineWidth=2*r.annotations.text.outlineWidth,r.annotations.text.outlineWidth>0&&(e.lineJoin='round',e.strokeText(t.note,t.computed.text[0],t.computed.text[1]),e.lineJoin='miter'),e.fillText(t.note,t.computed.text[0],t.computed.text[1]))}),e.restore())}(t,{annotations:Te,theme:ge}):'function'==typeof e&&e(t,Me)}),t.save())},[_,F,x,B,_e,Y,J,Te,S,U,ke,Ee,Ue,Q,L,c,l,ye,be,Me,I,u,Le,ve.left,ve.top,Be,we,fe,T,je,Fe,f,Qe,ge,A]);var De=s(function(e){if(Ce&&pe.current){var t=qC(pe.current,e),n=t[0],r=t[1],i=EL(Ce,ve,n,r);void 0!==i?(Ie(p(ae,YQ({},i.data,{color:i.color,label:i.label,value:Number(i.data.value)})),e),'mouseenter'===e.type&&(null==le||le(i.data,e))):Ne()}},[Ne,ve,le,Ce,Ie,ae]),Pe=s(function(e){if(Ce&&pe.current){Ne();var t=qC(pe.current,e),n=t[0],r=t[1],i=EL(Ce,ve,n,r);i&&(null==ce||ce(i.data,e))}},[Ne,ve,ce,Ce]),Re=s(function(e){if(Ce&&pe.current){var t=qC(pe.current,e),n=t[0],r=t[1],i=EL(Ce,ve,n,r);void 0!==i&&(null==Ae||Ae(YQ({},i.data,{color:i.color}),e))}},[ve,Ae,Ce]);return w('canvas',{ref:function(e){pe.current=e,he&&'current'in he&&(he.current=e)},width:we*fe,height:Be*fe,style:{width:we,height:Be,cursor:oe?'auto':'normal'},onMouseEnter:oe?De:void 0,onMouseMove:oe?De:void 0,onMouseLeave:oe?Pe:void 0,onClick:oe?Re:void 0})},kL=c(function(e,t){var n=e.isInteractive,r=e.renderWrapper,i=e.theme,o=XQ(e,FL);return w(pC,{isInteractive:n,renderWrapper:r,theme:i,animate:!1,children:w(SL,YQ({},o,{canvasRef:t}))})}),UL=function(e){return w(gC,{children:function(t){var n=t.width,r=t.height;return w(jL,YQ({width:n,height:r},e))}})};c(function(e,t){return w(gC,{children:function(n){var r=n.width,i=n.height;return w(kL,YQ({width:r,height:i},e,{ref:t}))}})});var QL={background:'#ffffff',text:{fontSize:11,fill:'#333333',outlineWidth:0,outlineColor:'transparent'},axis:{domain:{line:{stroke:'#777777',strokeWidth:1}},legend:{text:{fontSize:12,fill:'#333333',outlineWidth:0,outlineColor:'transparent'}},ticks:{line:{stroke:'#777777',strokeWidth:1},text:{fontSize:11,fill:'#333333',outlineWidth:0,outlineColor:'transparent'}}},grid:{line:{stroke:'#dddddd',strokeWidth:1}},legends:{title:{text:{fontSize:11,fill:'#333333',outlineWidth:0,outlineColor:'transparent'}},text:{fontSize:11,fill:'#333333',outlineWidth:0,outlineColor:'transparent'},ticks:{line:{},text:{fontSize:10,fill:'#333333',outlineWidth:0,outlineColor:'transparent'}}},annotations:{text:{fontSize:13,fill:'#333333',outlineWidth:2,outlineColor:'#ffffff',outlineOpacity:1},link:{stroke:'#000000',strokeWidth:1,outlineWidth:2,outlineColor:'#ffffff',outlineOpacity:1},outline:{stroke:'#000000',strokeWidth:2,outlineWidth:2,outlineColor:'#ffffff',outlineOpacity:1},symbol:{fill:'#000000',outlineWidth:2,outlineColor:'#ffffff',outlineOpacity:1}},tooltip:{container:{background:'#ffffff',fontSize:12},basic:{},chip:{},table:{},tableCell:{},tableCellValue:{}}},LL={background:'#121b37',text:{fontSize:11,fill:'#000000',outlineWidth:0,outlineColor:'#000000'},axis:{domain:{line:{stroke:'#777777',strokeWidth:1}},legend:{text:{fontSize:12,fill:'#333333',outlineWidth:0,outlineColor:'transparent'}},ticks:{line:{stroke:'#777777',strokeWidth:1},text:{fontSize:11,fill:'#ccccdc',outlineWidth:0,outlineColor:'transparent'}}},grid:{line:{stroke:'#dddddd',strokeWidth:1}},legends:{title:{text:{fontSize:11,fill:'#333333',outlineWidth:0,outlineColor:'transparent'}},text:{fontSize:11,fill:'#ccccdc',outlineWidth:0,outlineColor:'transparent'},ticks:{line:{},text:{fontSize:10,fill:'#333333',outlineWidth:0,outlineColor:'transparent'}}},annotations:{text:{fontSize:13,fill:'#333333',outlineWidth:2,outlineColor:'#ffffff',outlineOpacity:1},link:{stroke:'#000000',strokeWidth:1,outlineWidth:2,outlineColor:'#ffffff',outlineOpacity:1},outline:{stroke:'#000000',strokeWidth:2,outlineWidth:2,outlineColor:'#ffffff',outlineOpacity:1},symbol:{fill:'#000000',outlineWidth:2,outlineColor:'#ffffff',outlineOpacity:1}},tooltip:{container:{background:'#ffffff',fontSize:12,fill:'#000000'},basic:{},chip:{},table:{},tableCell:{},tableCellValue:{}}},OL=function(e){var t=parseFloat(e);return isNaN(t)?e:Number.isInteger(t)?t:t.toFixed(3)},IL=function(e){return e.length>10?e.substring(0,10)+'...':e},NL=function(e){var n=e.chartData,r=function(e){if(1===e.num_y_categories){var t=e.y_data,n=Array.isArray(t[0])&&t.length===e.x_data.length?t.map(function(e){return e[0]}):Array.isArray(t[0])?t[0]:t;return e.x_data.map(function(t,r){var i,o;return(i={})[e.x_label]=t,i[e.y_category_label[0]]=null!==(o=n[r])&&void 0!==o?o:0,i})}return e.x_data.map(function(t,n){var r,i=((r={})[e.x_label]=t,r);return e.y_category_label.forEach(function(t,r){var o,s;i[t]=null!==(s=null===(o=e.y_data[n])||void 0===o?void 0:o[r])&&void 0!==s?s:0}),i})}(n),i=u(tJ).isDarkMode;return t.createElement(UL,{data:r,keys:n.y_category_label,indexBy:n.x_label,groupMode:'grouped',margin:{top:50,right:60,bottom:80,left:60},padding:.4,valueScale:{type:'linear'},colors:{scheme:'nivo'},animate:!0,enableLabel:!1,axisTop:null,axisRight:null,axisLeft:{tickSize:3,tickPadding:3,tickRotation:0,legend:n.y_category_label,legendPosition:'middle',legendOffset:-55,format:function(e){return e>=1e9?''.concat((e/1e9).toFixed(1),'B'):e>=1e6?''.concat((e/1e6).toFixed(1),'M'):e>=1e3?''.concat((e/1e3).toFixed(1),'K'):e.toString()}},axisBottom:{tickSize:5,tickPadding:5,tickRotation:-15,truncateTickAt:0,legend:n.x_label,legendPosition:'middle',legendOffset:45,format:IL},legends:[{dataFrom:'keys',anchor:'top',direction:'row',justify:!1,translateX:0,translateY:-30,itemsSpacing:2,itemWidth:100,itemHeight:20,itemDirection:'left-to-right',itemOpacity:.85,symbolSize:20,effects:[{on:'hover',style:{itemOpacity:1}}]}],theme:i?LL:QL})};function TL(){return TL=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},TL.apply(this,arguments)}var ML={pointerEvents:'none'},DL=function(e){var t=e.label,n=e.style,r=dC();return w(va.g,{transform:n.transform,opacity:n.progress,style:ML,children:w(va.text,{textAnchor:'middle',dominantBaseline:'central',style:TL({},r.labels.text,{fill:n.textColor}),children:t})})},PL=function(e){var t=e%(2*Math.PI);return t<0&&(t+=2*Math.PI),t},RL={startAngle:{enter:function(e){return TL({},e,{endAngle:e.startAngle})},update:function(e){return e},leave:function(e){return TL({},e,{startAngle:e.endAngle})}},middleAngle:{enter:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return TL({},e,{startAngle:t,endAngle:t})},update:function(e){return e},leave:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return TL({},e,{startAngle:t,endAngle:t})}},endAngle:{enter:function(e){return TL({},e,{startAngle:e.endAngle})},update:function(e){return e},leave:function(e){return TL({},e,{endAngle:e.startAngle})}},innerRadius:{enter:function(e){return TL({},e,{outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return TL({},e,{innerRadius:e.outerRadius})}},centerRadius:{enter:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return TL({},e,{innerRadius:t,outerRadius:t})},update:function(e){return e},leave:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return TL({},e,{innerRadius:t,outerRadius:t})}},outerRadius:{enter:function(e){return TL({},e,{innerRadius:e.outerRadius})},update:function(e){return e},leave:function(e){return TL({},e,{outerRadius:e.innerRadius})}},pushIn:{enter:function(e){return TL({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return TL({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})}},pushOut:{enter:function(e){return TL({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})},update:function(e){return e},leave:function(e){return TL({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})}}},HL=function(e,t){return d(function(){var n=RL[e];return{enter:function(e){return TL({progress:0},n.enter(e.arc),t?t.enter(e):{})},update:function(e){return TL({progress:1},n.update(e.arc),t?t.update(e):{})},leave:function(e){return TL({progress:0},n.leave(e.arc),t?t.leave(e):{})}}},[e,t])},zL=function(e){return function(t,n,r,i){return ia([t,n,r,i],function(t,n,r,i){var o=function(e,t){var n=function(e){return e.startAngle+(e.endAngle-e.startAngle)/2}(e)-Math.PI/2,r=e.innerRadius+(e.outerRadius-e.innerRadius)*t;return xC(n,r)}({startAngle:t,endAngle:n,innerRadius:r,outerRadius:i},e);return'translate('+o.x+','+o.y+')'})}},VL=function(e){var t=e.center,n=e.data,r=e.transitionMode,i=e.label,o=e.radiusOffset,s=e.skipAngle,a=e.textColor,A=e.component,l=void 0===A?DL:A,c=VC(i),u=dC(),f=LQ(a,u),h=d(function(){return n.filter(function(e){return Math.abs(BC(e.arc.endAngle-e.arc.startAngle))>=s})},[n,s]),g=function(e,t,n,r){void 0===t&&(t=.5),void 0===n&&(n='innerRadius');var i=zx(),o=i.animate,s=i.config,a=HL(n,r);return{transition:Zs(e,{keys:function(e){return e.id},initial:a.update,from:a.enter,enter:a.update,update:a.update,leave:a.leave,config:s,immediate:!o}),interpolate:zL(t)}}(h,o,r),m=g.transition,v=g.interpolate,b=l;return w('g',{transform:'translate('+t[0]+','+t[1]+')',children:m(function(e,t){return p(b,{key:t.id,datum:t,label:c(t),style:TL({},e,{transform:v(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius),textColor:f(t)})})})})},KL=function(e){var t=e.label,n=e.style,r=dC();return B(va.g,{opacity:n.opacity,children:[w(va.path,{fill:'none',stroke:n.linkColor,strokeWidth:n.thickness,d:n.path}),w(va.text,{transform:n.textPosition,textAnchor:n.textAnchor,dominantBaseline:'central',style:TL({},r.labels.text,{fill:n.textColor}),children:t})]})},qL=function(e,t,n,r){var i,o,s=PL(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2),a=xC(s,e.outerRadius+t),A=xC(s,e.outerRadius+t+n);return s<Math.PI/2||s>1.5*Math.PI?(i='after',o={x:A.x+r,y:A.y}):(i='before',o={x:A.x-r,y:A.y}),{side:i,points:[a,A,o]}},GL=vy().x(function(e){return e.x}).y(function(e){return e.y}),WL=function(e,t,n,r,i,o,s){return ia([e,t,n,r,i,o,s],function(e,t,n,r,i,o,s){var a=qL({startAngle:e,endAngle:t,innerRadius:n,outerRadius:r},i,o,s).points;return GL(a)})},YL=function(e,t,n,r){return ia([e,t,n,r],function(e,t,n,r){return function(e){var t=PL(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2);return t<Math.PI/2||t>1.5*Math.PI?'start':'end'}({startAngle:e,endAngle:t,innerRadius:n,outerRadius:r})})},XL=function(e,t,n,r,i,o,s,a){return ia([e,t,n,r,i,o,s,a],function(e,t,n,r,i,o,s,a){var A=qL({startAngle:e,endAngle:t,innerRadius:n,outerRadius:r},i,o,s),l=A.points,c=A.side,u=l[2];return'before'===c?u.x-=a:u.x+=a,'translate('+u.x+','+u.y+')'})},JL=function(e){var t=e.data,n=e.offset,r=void 0===n?0:n,i=e.diagonalLength,o=e.straightLength,s=e.skipAngle,a=void 0===s?0:s,A=e.textOffset,l=e.linkColor,c=e.textColor,u=zx(),f=u.animate,h=u.config,p=dC(),g=LQ(l,p),m=LQ(c,p),v=function(e,t){return d(function(){return function(e,t){return e.filter(function(e){return Math.abs(BC(e.arc.endAngle-e.arc.startAngle))>=t})}(e,t)},[e,t])}(t,a),b=function(e){var t=e.offset,n=e.diagonalLength,r=e.straightLength,i=e.textOffset,o=e.getLinkColor,s=e.getTextColor;return d(function(){return{enter:function(e){return{startAngle:e.arc.startAngle,endAngle:e.arc.endAngle,innerRadius:e.arc.innerRadius,outerRadius:e.arc.outerRadius,offset:t,diagonalLength:0,straightLength:0,textOffset:i,linkColor:o(e),textColor:s(e),opacity:0}},update:function(e){return{startAngle:e.arc.startAngle,endAngle:e.arc.endAngle,innerRadius:e.arc.innerRadius,outerRadius:e.arc.outerRadius,offset:t,diagonalLength:n,straightLength:r,textOffset:i,linkColor:o(e),textColor:s(e),opacity:1}},leave:function(e){return{startAngle:e.arc.startAngle,endAngle:e.arc.endAngle,innerRadius:e.arc.innerRadius,outerRadius:e.arc.outerRadius,offset:t,diagonalLength:0,straightLength:0,textOffset:i,linkColor:o(e),textColor:s(e),opacity:0}}}},[n,r,i,o,s,t])}({offset:r,diagonalLength:i,straightLength:o,textOffset:A,getLinkColor:g,getTextColor:m});return{transition:Zs(v,{keys:function(e){return e.id},initial:b.update,from:b.enter,enter:b.update,update:b.update,leave:b.leave,config:h,immediate:!f}),interpolateLink:WL,interpolateTextAnchor:YL,interpolateTextPosition:XL}},ZL=function(e){var t=e.center,n=e.data,r=e.label,i=e.skipAngle,o=e.offset,s=e.diagonalLength,a=e.straightLength,A=e.strokeWidth,l=e.textOffset,c=e.textColor,u=e.linkColor,d=e.component,f=void 0===d?KL:d,h=VC(r),g=JL({data:n,skipAngle:i,offset:o,diagonalLength:s,straightLength:a,textOffset:l,linkColor:u,textColor:c}),m=g.transition,v=g.interpolateLink,b=g.interpolateTextAnchor,y=g.interpolateTextPosition,B=f;return w('g',{transform:'translate('+t[0]+','+t[1]+')',children:m(function(e,t){return p(B,{key:t.id,datum:t,label:h(t),style:TL({},e,{thickness:A,path:v(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius,e.offset,e.diagonalLength,e.straightLength),textAnchor:b(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius),textPosition:y(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius,e.offset,e.diagonalLength,e.straightLength,e.textOffset)})})})})},$L=function(e){var t=e.datum,n=e.style,r=e.onClick,i=e.onMouseEnter,o=e.onMouseMove,a=e.onMouseLeave,A=s(function(e){return null==r?void 0:r(t,e)},[r,t]),l=s(function(e){return null==i?void 0:i(t,e)},[i,t]),c=s(function(e){return null==o?void 0:o(t,e)},[o,t]),u=s(function(e){return null==a?void 0:a(t,e)},[a,t]);return w(va.path,{d:n.path,opacity:n.opacity,fill:t.fill||n.color,stroke:n.borderColor,strokeWidth:n.borderWidth,onClick:r?A:void 0,onMouseEnter:i?l:void 0,onMouseMove:o?c:void 0,onMouseLeave:a?u:void 0})},eO=function(e,t,n,r,i){return ia([e,t,n,r],function(e,t,n,r){return i({startAngle:e,endAngle:t,innerRadius:Math.max(0,n),outerRadius:Math.max(0,r)})})},tO=function(e){var t=e.center,n=e.data,r=e.arcGenerator,i=e.borderWidth,o=e.borderColor,s=e.onClick,a=e.onMouseEnter,A=e.onMouseMove,l=e.onMouseLeave,c=e.transitionMode,u=e.component,d=void 0===u?$L:u,f=dC(),h=LQ(o,f),g=function(e,t,n){void 0===t&&(t='innerRadius');var r=zx(),i=r.animate,o=r.config,s=HL(t,n);return{transition:Zs(e,{keys:function(e){return e.id},initial:s.update,from:s.enter,enter:s.update,update:s.update,leave:s.leave,config:o,immediate:!i}),interpolate:eO}}(n,c,{enter:function(e){return{opacity:0,color:e.color,borderColor:h(e)}},update:function(e){return{opacity:1,color:e.color,borderColor:h(e)}},leave:function(e){return{opacity:0,color:e.color,borderColor:h(e)}}}),m=g.transition,v=g.interpolate,b=d;return w('g',{transform:'translate('+t[0]+','+t[1]+')',children:m(function(e,t){return p(b,{key:t.id,datum:t,style:TL({},e,{borderWidth:i,path:v(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius,r)}),onClick:s,onMouseEnter:a,onMouseMove:A,onMouseLeave:l})})})},nO=function(e){var t=void 0===e?{}:e,n=t.cornerRadius,r=void 0===n?0:n,i=t.padAngle,o=void 0===i?0:i;return d(function(){return fy().innerRadius(function(e){return e.innerRadius}).outerRadius(function(e){return e.outerRadius}).cornerRadius(r).padAngle(o)},[r,o])};function rO(){return rO=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},rO.apply(this,arguments)}function iO(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}var oO,sO,aO,AO,lO=function(e){var t=e.width,n=e.height,r=e.legends,i=e.data,o=e.toggleSerie;return w(x,{children:r.map(function(e,r){var s;return w(KQ,rO({},e,{containerWidth:t,containerHeight:n,data:null!=(s=e.data)?s:i,toggleSerie:e.toggleSerie?o:void 0}),r)})})},cO={id:'id',value:'value',sortByValue:!1,innerRadius:0,padAngle:0,cornerRadius:0,layers:['arcs','arcLinkLabels','arcLabels','legends'],startAngle:0,endAngle:360,fit:!0,activeInnerRadiusOffset:0,activeOuterRadiusOffset:0,borderWidth:0,borderColor:{from:'color',modifiers:[['darker',1]]},enableArcLabels:!0,arcLabel:'formattedValue',arcLabelsSkipAngle:0,arcLabelsRadiusOffset:.5,arcLabelsTextColor:{theme:'labels.text.fill'},enableArcLinkLabels:!0,arcLinkLabel:'id',arcLinkLabelsSkipAngle:0,arcLinkLabelsOffset:0,arcLinkLabelsDiagonalLength:16,arcLinkLabelsStraightLength:24,arcLinkLabelsThickness:1,arcLinkLabelsTextOffset:6,arcLinkLabelsTextColor:{theme:'labels.text.fill'},arcLinkLabelsColor:{theme:'axis.ticks.line.stroke'},colors:{scheme:'nivo'},defs:[],fill:[],isInteractive:!0,animate:!0,motionConfig:'gentle',transitionMode:'innerRadius',tooltip:function(e){var t=e.datum;return w(Ca,{id:t.id,value:t.formattedValue,enableChip:!0,color:t.color})},legends:[],role:'img',pixelRatio:'undefined'!=typeof window&&null!=(oO=window.devicePixelRatio)?oO:1},uO=['points'],dO=function(e){var t=e.data,n=e.startAngle,i=e.endAngle,s=e.innerRadius,a=e.outerRadius,A=e.padAngle,l=e.sortByValue,c=e.activeId,u=e.activeInnerRadiusOffset,f=e.activeOuterRadiusOffset,h=e.hiddenIds,p=e.forwardLegendData,g=d(function(){var e=function(){var e=yy,t=by,n=null,r=Wb(0),i=Wb(oy),o=Wb(0);function s(s){var a,A,l,c,u,d=s.length,f=0,h=new Array(d),p=new Array(d),g=+r.apply(this,arguments),m=Math.min(oy,Math.max(-oy,i.apply(this,arguments)-g)),v=Math.min(Math.abs(m)/d,o.apply(this,arguments)),b=v*(m<0?-1:1);for(a=0;a<d;++a)(u=p[h[a]=a]=+e(s[a],a,s))>0&&(f+=u);for(null!=t?h.sort(function(e,n){return t(p[e],p[n])}):null!=n&&h.sort(function(e,t){return n(s[e],s[t])}),a=0,l=f?(m-d*b)/f:0;a<d;++a,g=c)A=h[a],c=g+((u=p[A])>0?u*l:0)+b,p[A]={data:s[A],index:a,value:u,startAngle:g,endAngle:c,padAngle:v};return p}return s.value=function(t){return arguments.length?(e='function'==typeof t?t:Wb(+t),s):e},s.sortValues=function(e){return arguments.length?(t=e,n=null,s):t},s.sort=function(e){return arguments.length?(n=e,t=null,s):n},s.startAngle=function(e){return arguments.length?(r='function'==typeof e?e:Wb(+e),s):r},s.endAngle=function(e){return arguments.length?(i='function'==typeof e?e:Wb(+e),s):i},s.padAngle=function(e){return arguments.length?(o='function'==typeof e?e:Wb(+e),s):o},s}().value(function(e){return e.value}).startAngle(wC(n)).endAngle(wC(i)).padAngle(wC(A));return l||e.sortValues(null),e},[n,i,A,l]),m=d(function(){var e=t.filter(function(e){return!h.includes(e.id)});return{dataWithArc:g(e).map(function(e){var t=Math.abs(e.endAngle-e.startAngle);return rO({},e.data,{arc:{index:e.index,startAngle:e.startAngle,endAngle:e.endAngle,innerRadius:c===e.data.id?s-u:s,outerRadius:c===e.data.id?a+f:a,thickness:a-s,padAngle:e.padAngle,angle:t,angleDeg:BC(t)}})}),legendData:t.map(function(e){return{id:e.id,label:e.label,color:e.color,hidden:h.includes(e.id),data:e}})}},[g,t,h,c,s,u,a,f]),v=m.legendData,b=o(p);return r(function(){'function'==typeof b.current&&b.current(v)},[b,v]),m},fO=function(e){var t=e.data,r=e.width,i=e.height,o=e.innerRadius,a=void 0===o?cO.innerRadius:o,A=e.startAngle,l=void 0===A?cO.startAngle:A,c=e.endAngle,u=void 0===c?cO.endAngle:c,f=e.padAngle,h=void 0===f?cO.padAngle:f,p=e.sortByValue,g=void 0===p?cO.sortByValue:p,m=e.cornerRadius,v=void 0===m?cO.cornerRadius:m,b=e.fit,y=void 0===b?cO.fit:b,w=e.activeInnerRadiusOffset,B=void 0===w?cO.activeInnerRadiusOffset:w,x=e.activeOuterRadiusOffset,C=void 0===x?cO.activeOuterRadiusOffset:x,_=e.activeId,j=e.onActiveIdChange,F=e.defaultActiveId,E=e.forwardLegendData,S=function(e){var t=e.activeId,r=e.onActiveIdChange,i=e.defaultActiveId,o=void 0!==t,a=n(o||void 0===i?null:i),A=a[0],l=a[1];return{activeId:o?t:A,setActiveId:s(function(e){r&&r(e),o||l(e)},[o,r,l])}}({activeId:_,onActiveIdChange:j,defaultActiveId:F}),k=S.activeId,U=S.setActiveId,Q=n([]),L=Q[0],O=Q[1],I=d(function(){var e,t=Math.min(r,i)/2,n=t*Math.min(a,1),o=r/2,s=i/2;if(y){var A=function(e,t,n,r,i,o){void 0===o&&(o=!0);var s=[],a=xC(wC(r),n);s.push([a.x,a.y]);var A=xC(wC(i),n);s.push([A.x,A.y]);for(var l=Math.round(Math.min(r,i));l<=Math.round(Math.max(r,i));l++)if(l%90==0){var c=xC(wC(l),n);s.push([c.x,c.y])}s=s.map(function(n){var r=n[0],i=n[1];return[e+r,t+i]}),o&&s.push([e,t]);var u=s.map(function(e){return e[0]}),d=s.map(function(e){return e[1]}),f=Math.min.apply(Math,u),h=Math.max.apply(Math,u),p=Math.min.apply(Math,d);return{points:s,x:f,y:p,width:h-f,height:Math.max.apply(Math,d)-p}}(o,s,t,l-90,u-90),c=A.points,d=iO(A,uO),f=Math.min(r/d.width,i/d.height),h={width:d.width*f,height:d.height*f};h.x=(r-h.width)/2,h.y=(i-h.height)/2,o=(o-d.x)/d.width*d.width*f+h.x,s=(s-d.y)/d.height*d.height*f+h.y,e={box:d,ratio:f,points:c},t*=f,n*=f}return{centerX:o,centerY:s,radius:t,innerRadius:n,debug:e}},[r,i,a,l,u,y]),N=dO({data:t,startAngle:l,endAngle:u,innerRadius:I.innerRadius,outerRadius:I.radius,padAngle:h,sortByValue:g,activeId:k,activeInnerRadiusOffset:B,activeOuterRadiusOffset:C,hiddenIds:L,forwardLegendData:E}),T=s(function(e){O(function(t){return t.indexOf(e)>-1?t.filter(function(t){return t!==e}):[].concat(t,[e])})},[]);return rO({arcGenerator:nO({cornerRadius:v,padAngle:wC(h)}),activeId:k,setActiveId:U,toggleSerie:T},N,I)},hO=function(e){var t=e.center,n=e.data,r=e.arcGenerator,i=e.borderWidth,o=e.borderColor,s=e.isInteractive,a=e.onClick,A=e.onMouseEnter,l=e.onMouseMove,c=e.onMouseLeave,u=e.setActiveId,f=e.tooltip,h=e.transitionMode,g=Qa(),m=g.showTooltipFromEvent,v=g.hideTooltip,b=d(function(){if(s)return function(e,t){null==a||a(e,t)}},[s,a]),y=d(function(){if(s)return function(e,t){m(p(f,{datum:e}),t),u(e.id),null==A||A(e,t)}},[s,m,u,A,f]),B=d(function(){if(s)return function(e,t){m(p(f,{datum:e}),t),null==l||l(e,t)}},[s,m,l,f]),x=d(function(){if(s)return function(e,t){v(),u(null),null==c||c(e,t)}},[s,v,u,c]);return w(tO,{center:t,data:n,arcGenerator:r,borderWidth:i,borderColor:o,transitionMode:h,onClick:b,onMouseEnter:y,onMouseMove:B,onMouseLeave:x})},pO=['isInteractive','animate','motionConfig','theme','renderWrapper'],gO=function(e){var t=e.data,n=e.id,r=void 0===n?cO.id:n,i=e.value,o=void 0===i?cO.value:i,s=e.valueFormat,a=e.sortByValue,A=void 0===a?cO.sortByValue:a,l=e.layers,c=void 0===l?cO.layers:l,u=e.startAngle,f=void 0===u?cO.startAngle:u,h=e.endAngle,g=void 0===h?cO.endAngle:h,v=e.padAngle,b=void 0===v?cO.padAngle:v,y=e.fit,B=void 0===y?cO.fit:y,x=e.innerRadius,C=void 0===x?cO.innerRadius:x,_=e.cornerRadius,j=void 0===_?cO.cornerRadius:_,F=e.activeInnerRadiusOffset,E=void 0===F?cO.activeInnerRadiusOffset:F,S=e.activeOuterRadiusOffset,k=void 0===S?cO.activeOuterRadiusOffset:S,U=e.width,Q=e.height,L=e.margin,O=e.colors,I=void 0===O?cO.colors:O,N=e.borderWidth,T=void 0===N?cO.borderWidth:N,M=e.borderColor,D=void 0===M?cO.borderColor:M,P=e.enableArcLabels,R=void 0===P?cO.enableArcLabels:P,H=e.arcLabel,z=void 0===H?cO.arcLabel:H,V=e.arcLabelsSkipAngle,K=void 0===V?cO.arcLabelsSkipAngle:V,q=e.arcLabelsTextColor,G=void 0===q?cO.arcLabelsTextColor:q,W=e.arcLabelsRadiusOffset,Y=void 0===W?cO.arcLabelsRadiusOffset:W,X=e.arcLabelsComponent,J=e.enableArcLinkLabels,Z=void 0===J?cO.enableArcLinkLabels:J,$=e.arcLinkLabel,ee=void 0===$?cO.arcLinkLabel:$,te=e.arcLinkLabelsSkipAngle,ne=void 0===te?cO.arcLinkLabelsSkipAngle:te,re=e.arcLinkLabelsOffset,ie=void 0===re?cO.arcLinkLabelsOffset:re,oe=e.arcLinkLabelsDiagonalLength,se=void 0===oe?cO.arcLinkLabelsDiagonalLength:oe,ae=e.arcLinkLabelsStraightLength,Ae=void 0===ae?cO.arcLinkLabelsStraightLength:ae,le=e.arcLinkLabelsThickness,ce=void 0===le?cO.arcLinkLabelsThickness:le,ue=e.arcLinkLabelsTextOffset,de=void 0===ue?cO.arcLinkLabelsTextOffset:ue,fe=e.arcLinkLabelsTextColor,he=void 0===fe?cO.arcLinkLabelsTextColor:fe,pe=e.arcLinkLabelsColor,ge=void 0===pe?cO.arcLinkLabelsColor:pe,me=e.arcLinkLabelComponent,ve=e.defs,be=void 0===ve?cO.defs:ve,ye=e.fill,we=void 0===ye?cO.fill:ye,Be=e.isInteractive,xe=void 0===Be?cO.isInteractive:Be,Ce=e.onClick,_e=e.onMouseEnter,je=e.onMouseMove,Fe=e.onMouseLeave,Ee=e.tooltip,Se=void 0===Ee?cO.tooltip:Ee,ke=e.activeId,Ue=e.onActiveIdChange,Qe=e.defaultActiveId,Le=e.transitionMode,Oe=void 0===Le?cO.transitionMode:Le,Ie=e.legends,Ne=void 0===Ie?cO.legends:Ie,Te=e.forwardLegendData,Me=e.role,De=void 0===Me?cO.role:Me,Pe=oC(U,Q,L),Re=Pe.outerWidth,He=Pe.outerHeight,ze=Pe.margin,Ve=Pe.innerWidth,Ke=Pe.innerHeight,qe=function(e){var t=e.data,n=e.id,r=void 0===n?cO.id:n,i=e.value,o=void 0===i?cO.value:i,s=e.valueFormat,a=e.colors,A=void 0===a?cO.colors:a,l=VC(r),c=VC(o),u=AC(s),f=NQ(A,'id');return d(function(){return t.map(function(e){var t,n=l(e),r=c(e),i={id:n,label:null!=(t=e.label)?t:n,hidden:!1,value:r,formattedValue:u(r),data:e};return rO({},i,{color:f(i)})})},[t,l,c,u,f])}({data:t,id:r,value:o,valueFormat:s,colors:I}),Ge=fO({data:qe,width:Ve,height:Ke,fit:B,innerRadius:C,startAngle:f,endAngle:g,padAngle:b,sortByValue:A,cornerRadius:j,activeInnerRadiusOffset:E,activeOuterRadiusOffset:k,activeId:ke,onActiveIdChange:Ue,defaultActiveId:Qe,forwardLegendData:Te}),We=Ge.dataWithArc,Ye=Ge.legendData,Xe=Ge.arcGenerator,Je=Ge.centerX,Ze=Ge.centerY,$e=Ge.radius,et=Ge.innerRadius,tt=Ge.setActiveId,nt=Ge.toggleSerie,rt=YC(be,We,we),it={arcs:null,arcLinkLabels:null,arcLabels:null,legends:null};c.includes('arcs')&&(it.arcs=w(hO,{center:[Je,Ze],data:We,arcGenerator:Xe,borderWidth:T,borderColor:D,isInteractive:xe,onClick:Ce,onMouseEnter:_e,onMouseMove:je,onMouseLeave:Fe,setActiveId:tt,tooltip:Se,transitionMode:Oe},'arcs')),Z&&c.includes('arcLinkLabels')&&(it.arcLinkLabels=w(ZL,{center:[Je,Ze],data:We,label:ee,skipAngle:ne,offset:ie,diagonalLength:se,straightLength:Ae,strokeWidth:ce,textOffset:de,textColor:he,linkColor:ge,component:me},'arcLinkLabels')),R&&c.includes('arcLabels')&&(it.arcLabels=w(VL,{center:[Je,Ze],data:We,label:z,radiusOffset:Y,skipAngle:K,textColor:G,transitionMode:Oe,component:X},'arcLabels')),Ne.length>0&&c.includes('legends')&&(it.legends=w(lO,{width:Ve,height:Ke,data:Ye,legends:Ne,toggleSerie:nt},'legends'));var ot=function(e){var t=e.dataWithArc,n=e.arcGenerator,r=e.centerX,i=e.centerY,o=e.radius,s=e.innerRadius;return d(function(){return{dataWithArc:t,arcGenerator:n,centerX:r,centerY:i,radius:o,innerRadius:s}},[t,n,r,i,o,s])}({dataWithArc:We,arcGenerator:Xe,centerX:Je,centerY:Ze,radius:$e,innerRadius:et});return w(QC,{width:Re,height:He,margin:ze,defs:rt,role:De,children:c.map(function(e,t){return void 0!==it[e]?it[e]:'function'==typeof e?w(m,{children:p(e,ot)},t):null})})},mO=function(e){var t=e.isInteractive,n=void 0===t?cO.isInteractive:t,r=e.animate,i=void 0===r?cO.animate:r,o=e.motionConfig,s=void 0===o?cO.motionConfig:o,a=e.theme,A=e.renderWrapper,l=iO(e,pO);return w(pC,{animate:i,isInteractive:n,motionConfig:s,renderWrapper:A,theme:a,children:w(gO,rO({isInteractive:n},l))})},vO=function(e){return w(gC,{children:function(t){var n=t.width,r=t.height;return w(mO,rO({width:n,height:r},e))}})},bO=Nt.div(sO||(sO=De(['\n vu-flex\n vu-items-center\n vu-p-1\n '],['\n vu-flex\n vu-items-center\n vu-p-1\n ']))),yO=Nt.div(aO||(aO=De(['\n vu-h-3\n vu-w-3\n vu-mr-1\n '],['\n vu-h-3\n vu-w-3\n vu-mr-1\n ']))),wO=Nt.strong(AO||(AO=De(['\n vu-ml-1\n '],['\n vu-ml-1\n ']))),BO=function(e){var n=e.isDarkMode,r=e.color,i=e.label,o=e.unit,s=e.value;return t.createElement(bO,{style:Oe({},n?LL.tooltip.container:QL.tooltip.container)},t.createElement(yO,{style:{backgroundColor:r}}),i,':',t.createElement(wO,null,s,' ',o))},xO=function(e){var n=function(e){var t;return(null===(t=e.labels)||void 0===t?void 0:t.map(function(t,n){var r,i,o=null!==(i=null===(r=e.values)||void 0===r?void 0:r[n])&&void 0!==i?i:0,s=OL(o.toString());return{id:t,value:parseFloat(s.toString()),unit:e.data_unit}}))||[]}(e.chartData),r=u(tJ).isDarkMode;return t.createElement(vO,{data:n,margin:{top:40,right:80,bottom:80,left:80},padAngle:.7,cornerRadius:3,activeOuterRadiusOffset:8,colors:{scheme:'nivo'},borderWidth:1,borderColor:{from:'color',modifiers:[['darker',.2]]},arcLinkLabelsSkipAngle:10,arcLinkLabelsTextColor:'#333333',arcLinkLabelsThickness:2,arcLinkLabelsColor:{from:'color'},arcLabelsSkipAngle:10,arcLabelsTextColor:{from:'color',modifiers:[['darker',2]]},tooltip:function(e){var n=e.datum,i=n.color,o=n.data,s=n.value,a=n.label;return t.createElement(BO,{isDarkMode:r,color:i,label:a,unit:o.unit,value:s})},arcLabel:function(e){return''.concat(e.value,' ').concat(e.data.unit)},defs:[{id:'dots',type:'patternDots',background:'inherit',color:'rgba(255, 255, 255, 0.3)',size:4,padding:1,stagger:!0},{id:'lines',type:'patternLines',background:'inherit',color:'rgba(255, 255, 255, 0.3)',rotation:-45,lineWidth:6,spacing:10}],legends:[{anchor:'right',direction:'column',justify:!1,translateX:24,translateY:0,itemsSpacing:12,itemWidth:100,itemHeight:18,itemTextColor:'#999',itemDirection:'left-to-right',itemOpacity:1,symbolSize:18,symbolShape:'circle',effects:[{on:'hover',style:{itemTextColor:'#000'}}]}],theme:r?LL:QL})};const CO=Math.pow(2,-52),_O=new Uint32Array(512);class jO{static from(e,t=OO,n=IO){const r=e.length,i=new Float64Array(2*r);for(let o=0;o<r;o++){const r=e[o];i[2*o]=t(r),i[2*o+1]=n(r)}return new jO(i)}constructor(e){const t=e.length>>1;if(t>0&&'number'!=typeof e[0])throw new Error('Expected coords to contain numbers.');this.coords=e;const n=Math.max(2*t-5,0);this._triangles=new Uint32Array(3*n),this._halfedges=new Int32Array(3*n),this._hashSize=Math.ceil(Math.sqrt(t)),this._hullPrev=new Uint32Array(t),this._hullNext=new Uint32Array(t),this._hullTri=new Uint32Array(t),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(t),this._dists=new Float64Array(t),this.update()}update(){const{coords:e,_hullPrev:t,_hullNext:n,_hullTri:r,_hullHash:i}=this,o=e.length>>1;let s=1/0,a=1/0,A=-1/0,l=-1/0;for(let t=0;t<o;t++){const n=e[2*t],r=e[2*t+1];n<s&&(s=n),r<a&&(a=r),n>A&&(A=n),r>l&&(l=r),this._ids[t]=t}const c=(s+A)/2,u=(a+l)/2;let d,f,h,p=1/0;for(let t=0;t<o;t++){const n=FO(c,u,e[2*t],e[2*t+1]);n<p&&(d=t,p=n)}const g=e[2*d],m=e[2*d+1];p=1/0;for(let t=0;t<o;t++){if(t===d)continue;const n=FO(g,m,e[2*t],e[2*t+1]);n<p&&n>0&&(f=t,p=n)}let v=e[2*f],b=e[2*f+1],y=1/0;for(let t=0;t<o;t++){if(t===d||t===f)continue;const n=UO(g,m,v,b,e[2*t],e[2*t+1]);n<y&&(h=t,y=n)}let w=e[2*h],B=e[2*h+1];if(y===1/0){for(let t=0;t<o;t++)this._dists[t]=e[2*t]-e[0]||e[2*t+1]-e[1];QO(this._ids,this._dists,0,o-1);const t=new Uint32Array(o);let n=0;for(let e=0,r=-1/0;e<o;e++){const i=this._ids[e];this._dists[i]>r&&(t[n++]=i,r=this._dists[i])}return this.hull=t.subarray(0,n),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(SO(g,m,v,b,w,B)){const e=f,t=v,n=b;f=h,v=w,b=B,h=e,w=t,B=n}const x=function(e,t,n,r,i,o){const s=n-e,a=r-t,A=i-e,l=o-t,c=s*s+a*a,u=A*A+l*l,d=.5/(s*l-a*A),f=e+(l*c-a*u)*d,h=t+(s*u-A*c)*d;return{x:f,y:h}}(g,m,v,b,w,B);this._cx=x.x,this._cy=x.y;for(let t=0;t<o;t++)this._dists[t]=FO(e[2*t],e[2*t+1],x.x,x.y);QO(this._ids,this._dists,0,o-1),this._hullStart=d;let C=3;n[d]=t[h]=f,n[f]=t[d]=h,n[h]=t[f]=d,r[d]=0,r[f]=1,r[h]=2,i.fill(-1),i[this._hashKey(g,m)]=d,i[this._hashKey(v,b)]=f,i[this._hashKey(w,B)]=h,this.trianglesLen=0,this._addTriangle(d,f,h,-1,-1,-1);for(let o,s,a=0;a<this._ids.length;a++){const A=this._ids[a],l=e[2*A],c=e[2*A+1];if(a>0&&Math.abs(l-o)<=CO&&Math.abs(c-s)<=CO)continue;if(o=l,s=c,A===d||A===f||A===h)continue;let u=0;for(let e=0,t=this._hashKey(l,c);e<this._hashSize&&(u=i[(t+e)%this._hashSize],-1===u||u===n[u]);e++);u=t[u];let p,g=u;for(;p=n[g],!SO(l,c,e[2*g],e[2*g+1],e[2*p],e[2*p+1]);)if(g=p,g===u){g=-1;break}if(-1===g)continue;let m=this._addTriangle(g,A,n[g],-1,-1,r[g]);r[A]=this._legalize(m+2),r[g]=m,C++;let v=n[g];for(;p=n[v],SO(l,c,e[2*v],e[2*v+1],e[2*p],e[2*p+1]);)m=this._addTriangle(v,A,p,r[A],-1,r[v]),r[A]=this._legalize(m+2),n[v]=v,C--,v=p;if(g===u)for(;p=t[g],SO(l,c,e[2*p],e[2*p+1],e[2*g],e[2*g+1]);)m=this._addTriangle(p,A,g,-1,r[g],r[p]),this._legalize(m+2),r[p]=m,n[g]=g,C--,g=p;this._hullStart=t[A]=g,n[g]=t[v]=A,n[A]=v,i[this._hashKey(l,c)]=A,i[this._hashKey(e[2*g],e[2*g+1])]=g}this.hull=new Uint32Array(C);for(let e=0,t=this._hullStart;e<C;e++)this.hull[e]=t,t=n[t];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(e,t){return Math.floor(function(e,t){const n=e/(Math.abs(e)+Math.abs(t));return(t>0?3-n:1+n)/4}(e-this._cx,t-this._cy)*this._hashSize)%this._hashSize}_legalize(e){const{_triangles:t,_halfedges:n,coords:r}=this;let i=0,o=0;for(;;){const s=n[e],a=e-e%3;if(o=a+(e+2)%3,-1===s){if(0===i)break;e=_O[--i];continue}const A=s-s%3,l=a+(e+1)%3,c=A+(s+2)%3,u=t[o],d=t[e],f=t[l],h=t[c];if(kO(r[2*u],r[2*u+1],r[2*d],r[2*d+1],r[2*f],r[2*f+1],r[2*h],r[2*h+1])){t[e]=h,t[s]=u;const r=n[c];if(-1===r){let t=this._hullStart;do{if(this._hullTri[t]===c){this._hullTri[t]=e;break}t=this._hullPrev[t]}while(t!==this._hullStart)}this._link(e,r),this._link(s,n[o]),this._link(o,c);const a=A+(s+1)%3;i<_O.length&&(_O[i++]=a)}else{if(0===i)break;e=_O[--i]}}return o}_link(e,t){this._halfedges[e]=t,-1!==t&&(this._halfedges[t]=e)}_addTriangle(e,t,n,r,i,o){const s=this.trianglesLen;return this._triangles[s]=e,this._triangles[s+1]=t,this._triangles[s+2]=n,this._link(s,r),this._link(s+1,i),this._link(s+2,o),this.trianglesLen+=3,s}}function FO(e,t,n,r){const i=e-n,o=t-r;return i*i+o*o}function EO(e,t,n,r,i,o){const s=(r-t)*(i-e),a=(n-e)*(o-t);return Math.abs(s-a)>=33306690738754716e-32*Math.abs(s+a)?s-a:0}function SO(e,t,n,r,i,o){return(EO(i,o,e,t,n,r)||EO(e,t,n,r,i,o)||EO(n,r,i,o,e,t))<0}function kO(e,t,n,r,i,o,s,a){const A=e-s,l=t-a,c=n-s,u=r-a,d=i-s,f=o-a,h=c*c+u*u,p=d*d+f*f;return A*(u*p-h*f)-l*(c*p-h*d)+(A*A+l*l)*(c*f-u*d)<0}function UO(e,t,n,r,i,o){const s=n-e,a=r-t,A=i-e,l=o-t,c=s*s+a*a,u=A*A+l*l,d=.5/(s*l-a*A),f=(l*c-a*u)*d,h=(s*u-A*c)*d;return f*f+h*h}function QO(e,t,n,r){if(r-n<=20)for(let i=n+1;i<=r;i++){const r=e[i],o=t[r];let s=i-1;for(;s>=n&&t[e[s]]>o;)e[s+1]=e[s--];e[s+1]=r}else{let i=n+1,o=r;LO(e,n+r>>1,i),t[e[n]]>t[e[r]]&&LO(e,n,r),t[e[i]]>t[e[r]]&&LO(e,i,r),t[e[n]]>t[e[i]]&&LO(e,n,i);const s=e[i],a=t[s];for(;;){do{i++}while(t[e[i]]<a);do{o--}while(t[e[o]]>a);if(o<i)break;LO(e,i,o)}e[n+1]=e[o],e[o]=s,r-i+1>=o-n?(QO(e,t,i,r),QO(e,t,n,o-1)):(QO(e,t,n,o-1),QO(e,t,i,r))}}function LO(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function OO(e){return e[0]}function IO(e){return e[1]}const NO=1e-6;class TO{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=''}moveTo(e,t){this._+=`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+='Z')}lineTo(e,t){this._+=`L${this._x1=+e},${this._y1=+t}`}arc(e,t,n){const r=(e=+e)+(n=+n),i=t=+t;if(n<0)throw new Error('negative radius');null===this._x1?this._+=`M${r},${i}`:(Math.abs(this._x1-r)>NO||Math.abs(this._y1-i)>NO)&&(this._+='L'+r+','+i),n&&(this._+=`A${n},${n},0,1,1,${e-n},${t}A${n},${n},0,1,1,${this._x1=r},${this._y1=i}`)}rect(e,t,n,r){this._+=`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${+n}v${+r}h${-n}Z`}value(){return this._||null}}class MO{constructor(){this._=[]}moveTo(e,t){this._.push([e,t])}closePath(){this._.push(this._[0].slice())}lineTo(e,t){this._.push([e,t])}value(){return this._.length?this._:null}}class DO{constructor(e,[t,n,r,i]=[0,0,960,500]){if(!((r=+r)>=(t=+t)&&(i=+i)>=(n=+n)))throw new Error('invalid bounds');this.delaunay=e,this._circumcenters=new Float64Array(2*e.points.length),this.vectors=new Float64Array(2*e.points.length),this.xmax=r,this.xmin=t,this.ymax=i,this.ymin=n,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:e,hull:t,triangles:n},vectors:r}=this,i=this.circumcenters=this._circumcenters.subarray(0,n.length/3*2);for(let t,r,o=0,s=0,a=n.length;o<a;o+=3,s+=2){const a=2*n[o],A=2*n[o+1],l=2*n[o+2],c=e[a],u=e[a+1],d=e[A],f=e[A+1],h=e[l],p=e[l+1],g=d-c,m=f-u,v=h-c,b=p-u,y=g*g+m*m,w=v*v+b*b,B=2*(g*b-m*v);if(B)if(Math.abs(B)<1e-8)t=(c+h)/2,r=(u+p)/2;else{const e=1/B;t=c+(b*y-m*w)*e,r=u+(g*w-v*y)*e}else t=(c+h)/2-1e8*b,r=(u+p)/2+1e8*v;i[s]=t,i[s+1]=r}let o,s,a,A=t[t.length-1],l=4*A,c=e[2*A],u=e[2*A+1];r.fill(0);for(let n=0;n<t.length;++n)A=t[n],o=l,s=c,a=u,l=4*A,c=e[2*A],u=e[2*A+1],r[o+2]=r[l]=a-u,r[o+3]=r[l+1]=c-s}render(e){const t=null==e?e=new TO:void 0,{delaunay:{halfedges:n,inedges:r,hull:i},circumcenters:o,vectors:s}=this;if(i.length<=1)return null;for(let t=0,r=n.length;t<r;++t){const r=n[t];if(r<t)continue;const i=2*Math.floor(t/3),s=2*Math.floor(r/3),a=o[i],A=o[i+1],l=o[s],c=o[s+1];this._renderSegment(a,A,l,c,e)}let a,A=i[i.length-1];for(let t=0;t<i.length;++t){a=A,A=i[t];const n=2*Math.floor(r[A]/3),l=o[n],c=o[n+1],u=4*a,d=this._project(l,c,s[u+2],s[u+3]);d&&this._renderSegment(l,c,d[0],d[1],e)}return t&&t.value()}renderBounds(e){const t=null==e?e=new TO:void 0;return e.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),t&&t.value()}renderCell(e,t){const n=null==t?t=new TO:void 0,r=this._clip(e);if(null===r||!r.length)return;t.moveTo(r[0],r[1]);let i=r.length;for(;r[0]===r[i-2]&&r[1]===r[i-1]&&i>1;)i-=2;for(let e=2;e<i;e+=2)r[e]===r[e-2]&&r[e+1]===r[e-1]||t.lineTo(r[e],r[e+1]);return t.closePath(),n&&n.value()}*cellPolygons(){const{delaunay:{points:e}}=this;for(let t=0,n=e.length/2;t<n;++t){const e=this.cellPolygon(t);e&&(e.index=t,yield e)}}cellPolygon(e){const t=new MO;return this.renderCell(e,t),t.value()}_renderSegment(e,t,n,r,i){let o;const s=this._regioncode(e,t),a=this._regioncode(n,r);0===s&&0===a?(i.moveTo(e,t),i.lineTo(n,r)):(o=this._clipSegment(e,t,n,r,s,a))&&(i.moveTo(o[0],o[1]),i.lineTo(o[2],o[3]))}contains(e,t,n){return(t=+t)==t&&(n=+n)==n&&this.delaunay._step(e,t,n)===e}*neighbors(e){const t=this._clip(e);if(t)for(const n of this.delaunay.neighbors(e)){const e=this._clip(n);if(e)e:for(let r=0,i=t.length;r<i;r+=2)for(let o=0,s=e.length;o<s;o+=2)if(t[r]==e[o]&&t[r+1]==e[o+1]&&t[(r+2)%i]==e[(o+s-2)%s]&&t[(r+3)%i]==e[(o+s-1)%s]){yield n;break e}}}_cell(e){const{circumcenters:t,delaunay:{inedges:n,halfedges:r,triangles:i}}=this,o=n[e];if(-1===o)return null;const s=[];let a=o;do{const n=Math.floor(a/3);if(s.push(t[2*n],t[2*n+1]),a=a%3==2?a-2:a+1,i[a]!==e)break;a=r[a]}while(a!==o&&-1!==a);return s}_clip(e){if(0===e&&1===this.delaunay.hull.length)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const t=this._cell(e);if(null===t)return null;const{vectors:n}=this,r=4*e;return n[r]||n[r+1]?this._clipInfinite(e,t,n[r],n[r+1],n[r+2],n[r+3]):this._clipFinite(e,t)}_clipFinite(e,t){const n=t.length;let r,i,o,s,a,A=null,l=t[n-2],c=t[n-1],u=this._regioncode(l,c);for(let d=0;d<n;d+=2)if(r=l,i=c,l=t[d],c=t[d+1],o=u,u=this._regioncode(l,c),0===o&&0===u)s=a,a=0,A?A.push(l,c):A=[l,c];else{let t,n,d,f,h;if(0===o){if(null===(t=this._clipSegment(r,i,l,c,o,u)))continue;[n,d,f,h]=t}else{if(null===(t=this._clipSegment(l,c,r,i,u,o)))continue;[f,h,n,d]=t,s=a,a=this._edgecode(n,d),s&&a&&this._edge(e,s,a,A,A.length),A?A.push(n,d):A=[n,d]}s=a,a=this._edgecode(f,h),s&&a&&this._edge(e,s,a,A,A.length),A?A.push(f,h):A=[f,h]}if(A)s=a,a=this._edgecode(A[0],A[1]),s&&a&&this._edge(e,s,a,A,A.length);else if(this.contains(e,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return A}_clipSegment(e,t,n,r,i,o){for(;;){if(0===i&&0===o)return[e,t,n,r];if(i&o)return null;let s,a,A=i||o;8&A?(s=e+(n-e)*(this.ymax-t)/(r-t),a=this.ymax):4&A?(s=e+(n-e)*(this.ymin-t)/(r-t),a=this.ymin):2&A?(a=t+(r-t)*(this.xmax-e)/(n-e),s=this.xmax):(a=t+(r-t)*(this.xmin-e)/(n-e),s=this.xmin),i?(e=s,t=a,i=this._regioncode(e,t)):(n=s,r=a,o=this._regioncode(n,r))}}_clipInfinite(e,t,n,r,i,o){let s,a=Array.from(t);if((s=this._project(a[0],a[1],n,r))&&a.unshift(s[0],s[1]),(s=this._project(a[a.length-2],a[a.length-1],i,o))&&a.push(s[0],s[1]),a=this._clipFinite(e,a))for(let t,n=0,r=a.length,i=this._edgecode(a[r-2],a[r-1]);n<r;n+=2)t=i,i=this._edgecode(a[n],a[n+1]),t&&i&&(n=this._edge(e,t,i,a,n),r=a.length);else this.contains(e,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(a=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return a}_edge(e,t,n,r,i){for(;t!==n;){let n,o;switch(t){case 5:t=4;continue;case 4:t=6,n=this.xmax,o=this.ymin;break;case 6:t=2;continue;case 2:t=10,n=this.xmax,o=this.ymax;break;case 10:t=8;continue;case 8:t=9,n=this.xmin,o=this.ymax;break;case 9:t=1;continue;case 1:t=5,n=this.xmin,o=this.ymin}r[i]===n&&r[i+1]===o||!this.contains(e,n,o)||(r.splice(i,0,n,o),i+=2)}if(r.length>4)for(let e=0;e<r.length;e+=2){const t=(e+2)%r.length,n=(e+4)%r.length;(r[e]===r[t]&&r[t]===r[n]||r[e+1]===r[t+1]&&r[t+1]===r[n+1])&&(r.splice(t,2),e-=2)}return i}_project(e,t,n,r){let i,o,s,a=1/0;if(r<0){if(t<=this.ymin)return null;(i=(this.ymin-t)/r)<a&&(s=this.ymin,o=e+(a=i)*n)}else if(r>0){if(t>=this.ymax)return null;(i=(this.ymax-t)/r)<a&&(s=this.ymax,o=e+(a=i)*n)}if(n>0){if(e>=this.xmax)return null;(i=(this.xmax-e)/n)<a&&(o=this.xmax,s=t+(a=i)*r)}else if(n<0){if(e<=this.xmin)return null;(i=(this.xmin-e)/n)<a&&(o=this.xmin,s=t+(a=i)*r)}return[o,s]}_edgecode(e,t){return(e===this.xmin?1:e===this.xmax?2:0)|(t===this.ymin?4:t===this.ymax?8:0)}_regioncode(e,t){return(e<this.xmin?1:e>this.xmax?2:0)|(t<this.ymin?4:t>this.ymax?8:0)}}const PO=2*Math.PI,RO=Math.pow;function HO(e){return e[0]}function zO(e){return e[1]}function VO(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}class KO{static from(e,t=HO,n=zO,r){return new KO('length'in e?function(e,t,n,r){const i=e.length,o=new Float64Array(2*i);for(let s=0;s<i;++s){const i=e[s];o[2*s]=t.call(r,i,s,e),o[2*s+1]=n.call(r,i,s,e)}return o}(e,t,n,r):Float64Array.from(function*(e,t,n,r){let i=0;for(const o of e)yield t.call(r,o,i,e),yield n.call(r,o,i,e),++i}(e,t,n,r)))}constructor(e){this._delaunator=new jO(e),this.inedges=new Int32Array(e.length/2),this._hullIndex=new Int32Array(e.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const e=this._delaunator,t=this.points;if(e.hull&&e.hull.length>2&&function(e){const{triangles:t,coords:n}=e;for(let e=0;e<t.length;e+=3){const r=2*t[e],i=2*t[e+1],o=2*t[e+2];if((n[o]-n[r])*(n[i+1]-n[r+1])-(n[i]-n[r])*(n[o+1]-n[r+1])>1e-10)return!1}return!0}(e)){this.collinear=Int32Array.from({length:t.length/2},(e,t)=>t).sort((e,n)=>t[2*e]-t[2*n]||t[2*e+1]-t[2*n+1]);const e=this.collinear[0],n=this.collinear[this.collinear.length-1],r=[t[2*e],t[2*e+1],t[2*n],t[2*n+1]],i=1e-8*Math.hypot(r[3]-r[1],r[2]-r[0]);for(let e=0,n=t.length/2;e<n;++e){const n=VO(t[2*e],t[2*e+1],i);t[2*e]=n[0],t[2*e+1]=n[1]}this._delaunator=new jO(t)}else delete this.collinear;const n=this.halfedges=this._delaunator.halfedges,r=this.hull=this._delaunator.hull,i=this.triangles=this._delaunator.triangles,o=this.inedges.fill(-1),s=this._hullIndex.fill(-1);for(let e=0,t=n.length;e<t;++e){const t=i[e%3==2?e-2:e+1];-1!==n[e]&&-1!==o[t]||(o[t]=e)}for(let e=0,t=r.length;e<t;++e)s[r[e]]=e;r.length<=2&&r.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=r[0],this.triangles[1]=r[1],this.triangles[2]=r[1],o[r[0]]=1,2===r.length&&(o[r[1]]=0))}voronoi(e){return new DO(this,e)}*neighbors(e){const{inedges:t,hull:n,_hullIndex:r,halfedges:i,triangles:o,collinear:s}=this;if(s){const t=s.indexOf(e);return t>0&&(yield s[t-1]),void(t<s.length-1&&(yield s[t+1]))}const a=t[e];if(-1===a)return;let A=a,l=-1;do{if(yield l=o[A],A=A%3==2?A-2:A+1,o[A]!==e)return;if(A=i[A],-1===A){const t=n[(r[e]+1)%n.length];return void(t!==l&&(yield t))}}while(A!==a)}find(e,t,n=0){if((e=+e)!=e||(t=+t)!=t)return-1;const r=n;let i;for(;(i=this._step(n,e,t))>=0&&i!==n&&i!==r;)n=i;return i}_step(e,t,n){const{inedges:r,hull:i,_hullIndex:o,halfedges:s,triangles:a,points:A}=this;if(-1===r[e]||!A.length)return(e+1)%(A.length>>1);let l=e,c=RO(t-A[2*e],2)+RO(n-A[2*e+1],2);const u=r[e];let d=u;do{let r=a[d];const u=RO(t-A[2*r],2)+RO(n-A[2*r+1],2);if(u<c&&(c=u,l=r),d=d%3==2?d-2:d+1,a[d]!==e)break;if(d=s[d],-1===d){if(d=i[(o[e]+1)%i.length],d!==r&&RO(t-A[2*d],2)+RO(n-A[2*d+1],2)<c)return d;break}}while(d!==u);return l}render(e){const t=null==e?e=new TO:void 0,{points:n,halfedges:r,triangles:i}=this;for(let t=0,o=r.length;t<o;++t){const o=r[t];if(o<t)continue;const s=2*i[t],a=2*i[o];e.moveTo(n[s],n[s+1]),e.lineTo(n[a],n[a+1])}return this.renderHull(e),t&&t.value()}renderPoints(e,t=2){const n=null==e?e=new TO:void 0,{points:r}=this;for(let n=0,i=r.length;n<i;n+=2){const i=r[n],o=r[n+1];e.moveTo(i+t,o),e.arc(i,o,t,0,PO)}return n&&n.value()}renderHull(e){const t=null==e?e=new TO:void 0,{hull:n,points:r}=this,i=2*n[0],o=n.length;e.moveTo(r[i],r[i+1]);for(let t=1;t<o;++t){const i=2*n[t];e.lineTo(r[i],r[i+1])}return e.closePath(),t&&t.value()}hullPolygon(){const e=new MO;return this.renderHull(e),e.value()}renderTriangle(e,t){const n=null==t?t=new TO:void 0,{points:r,triangles:i}=this,o=2*i[e*=3],s=2*i[e+1],a=2*i[e+2];return t.moveTo(r[o],r[o+1]),t.lineTo(r[s],r[s+1]),t.lineTo(r[a],r[a+1]),t.closePath(),n&&n.value()}*trianglePolygons(){const{triangles:e}=this;for(let t=0,n=e.length/3;t<n;++t)yield this.trianglePolygon(t)}trianglePolygon(e){const t=new MO;return this.renderTriangle(e,t),t.value()}}var qO=function(e){return'function'==typeof e?e:function(t){return t[e]}},GO=function(e){var t=e.points,n=e.x,r=e.y,i=e.width,o=e.height,s=e.debug,a=d(function(){return function(e){var t=e.points,n=e.x,r=void 0===n?'x':n,i=e.y,o=void 0===i?'y':i,s=qO(r),a=qO(o);return t.map(function(e){return[s(e),a(e)]})}({points:t,x:n,y:r})},[t,n,r]);return d(function(){return function(e){var t=e.points,n=e.width,r=e.height,i=e.debug,o=KO.from(t),s=i?o.voronoi([0,0,n,r]):void 0;return{delaunay:o,voronoi:s}}({points:a,width:i,height:o,debug:s})},[a,i,o,s])},WO=function(e){var t=e.nodes,r=e.width,i=e.height,a=e.x,A=e.y,l=e.onMouseEnter,c=e.onMouseMove,u=e.onMouseLeave,f=e.onClick,h=e.debug,p=o(null),g=n(null),m=g[0],v=g[1],b=GO({points:t,x:a,y:A,width:r,height:i,debug:h}),y=b.delaunay,C=b.voronoi,_=d(function(){if(h&&C)return C.render()},[h,C]),j=s(function(e){if(!p.current)return[null,null];var n=qC(p.current,e),r=n[0],i=n[1],o=y.find(r,i);return[o,void 0!==o?t[o]:null]},[p,y]),F=s(function(e){var t=j(e),n=t[0],r=t[1];v(n),r&&(null==l||l(r,e))},[j,v,l]),E=s(function(e){var t=j(e),n=t[0],r=t[1];v(n),r&&(null==c||c(r,e))},[j,v,c]),S=s(function(e){if(v(null),u){var n=void 0;null!==m&&(n=t[m]),n&&u(n,e)}},[v,m,u,t]),k=s(function(e){var t=j(e),n=t[0],r=t[1];v(n),r&&(null==f||f(r,e))},[j,v,f]);return B('g',{ref:p,children:[h&&C&&B(x,{children:[w('path',{d:_,stroke:'red',strokeWidth:1,opacity:.75}),null!==m&&w('path',{fill:'pink',opacity:.35,d:C.renderCell(m)})]}),w('rect',{width:r,height:i,fill:'red',opacity:0,style:{cursor:'auto'},onMouseEnter:F,onMouseMove:E,onMouseLeave:S,onClick:k})]})};function YO(){return YO=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},YO.apply(this,arguments)}var XO=function(e){var t=e.point;return w(Ca,{id:B('span',{children:['x: ',w('strong',{children:t.data.xFormatted}),', y:',' ',w('strong',{children:t.data.yFormatted})]}),enableChip:!0,color:t.serieColor})};XO.propTypes={point:Qr.object.isRequired};var JO=f(XO),ZO=function(e){var t=e.slice,n=e.axis,r=dC(),i='x'===n?'y':'x';return w(ja,{rows:t.points.map(function(e){return[w(xa,{color:e.serieColor,style:r.tooltip.chip},'chip'),e.serieId,w('span',{style:r.tooltip.tableCellValue,children:e.data[i+'Formatted']},'value')]})})};ZO.propTypes={slice:Qr.object.isRequired,axis:Qr.oneOf(['x','y']).isRequired};var $O=f(ZO),eI={data:Qr.arrayOf(Qr.shape({id:Qr.oneOfType([Qr.string,Qr.number]).isRequired,data:Qr.arrayOf(Qr.shape({x:Qr.oneOfType([Qr.number,Qr.string,Qr.instanceOf(Date)]),y:Qr.oneOfType([Qr.number,Qr.string,Qr.instanceOf(Date)])})).isRequired})).isRequired,xScale:Qr.object.isRequired,xFormat:Qr.oneOfType([Qr.func,Qr.string]),yScale:Qr.object.isRequired,yFormat:Qr.oneOfType([Qr.func,Qr.string]),layers:Qr.arrayOf(Qr.oneOfType([Qr.oneOf(['grid','markers','axes','areas','crosshair','lines','slices','points','mesh','legends']),Qr.func])).isRequired,curve:Xx.isRequired,axisTop:RF,axisRight:RF,axisBottom:RF,axisLeft:RF,enableGridX:Qr.bool.isRequired,enableGridY:Qr.bool.isRequired,gridXValues:Qr.oneOfType([Qr.number,Qr.arrayOf(Qr.oneOfType([Qr.number,Qr.string,Qr.instanceOf(Date)]))]),gridYValues:Qr.oneOfType([Qr.number,Qr.arrayOf(Qr.oneOfType([Qr.number,Qr.string,Qr.instanceOf(Date)]))]),enablePoints:Qr.bool.isRequired,pointSymbol:Qr.func,pointSize:Qr.number.isRequired,pointColor:Qr.any.isRequired,pointBorderWidth:Qr.number.isRequired,pointBorderColor:Qr.any.isRequired,enablePointLabel:Qr.bool.isRequired,pointLabel:Qr.oneOfType([Qr.string,Qr.func]).isRequired,markers:Qr.arrayOf(Qr.shape({axis:Qr.oneOf(['x','y']).isRequired,value:Qr.oneOfType([Qr.number,Qr.string,Qr.instanceOf(Date)]).isRequired,style:Qr.object})),colors:OQ.isRequired,enableArea:Qr.bool.isRequired,areaOpacity:Qr.number.isRequired,areaBlendMode:rC.isRequired,areaBaselineValue:Qr.oneOfType([Qr.number,Qr.string,Qr.instanceOf(Date)]).isRequired,lineWidth:Qr.number.isRequired,legends:Qr.arrayOf(Qr.shape(WQ)).isRequired,isInteractive:Qr.bool.isRequired,debugMesh:Qr.bool.isRequired,tooltip:Qr.oneOfType([Qr.func,Qr.object]).isRequired,enableSlices:Qr.oneOf(['x','y',!1]).isRequired,debugSlices:Qr.bool.isRequired,sliceTooltip:Qr.oneOfType([Qr.func,Qr.object]).isRequired,enableCrosshair:Qr.bool.isRequired,crosshairType:Qr.string.isRequired},tI=YO({},eI,{enablePointLabel:Qr.bool.isRequired,role:Qr.string.isRequired,useMesh:Qr.bool.isRequired},Hx,Zx),nI=YO({pixelRatio:Qr.number.isRequired},eI),rI={curve:'linear',xScale:{type:'point'},yScale:{type:'linear',min:0,max:'auto'},layers:['grid','markers','axes','areas','crosshair','lines','points','slices','mesh','legends'],axisBottom:{},axisLeft:{},enableGridX:!0,enableGridY:!0,enablePoints:!0,pointSize:6,pointColor:{from:'color'},pointBorderWidth:0,pointBorderColor:{theme:'background'},enablePointLabel:!1,pointLabel:'yFormatted',colors:{scheme:'nivo'},enableArea:!1,areaBaselineValue:0,areaOpacity:.2,areaBlendMode:'normal',lineWidth:2,legends:[],isInteractive:!0,tooltip:JO,enableSlices:!1,debugSlices:!1,sliceTooltip:$O,debugMesh:!1,enableCrosshair:!0,crosshairType:'bottom-left'},iI=YO({},rI,{enablePointLabel:!1,useMesh:!1,animate:!0,motionConfig:'gentle',defs:[],fill:[],role:'img'}),oI=YO({},rI,{pixelRatio:'undefined'!=typeof window&&window.devicePixelRatio||1}),sI=function(e){var t=e.curve;return d(function(){return vy().defined(function(e){return null!==e.x&&null!==e.y}).x(function(e){return e.x}).y(function(e){return e.y}).curve(Jx(t))},[t])},aI=function(e){var t=e.curve,n=e.yScale,r=e.areaBaselineValue;return d(function(){return function(){var e=gy,t=null,n=Wb(0),r=my,i=Wb(!0),o=null,s=py,a=null;function A(A){var l,c,u,d,f,h=A.length,p=!1,g=new Array(h),m=new Array(h);for(null==o&&(a=s(f=Gb())),l=0;l<=h;++l){if(!(l<h&&i(d=A[l],l,A))===p)if(p=!p)c=l,a.areaStart(),a.lineStart();else{for(a.lineEnd(),a.lineStart(),u=l-1;u>=c;--u)a.point(g[u],m[u]);a.lineEnd(),a.areaEnd()}p&&(g[l]=+e(d,l,A),m[l]=+n(d,l,A),a.point(t?+t(d,l,A):g[l],r?+r(d,l,A):m[l]))}if(f)return a=null,f+''||null}function l(){return vy().defined(i).curve(s).context(o)}return A.x=function(n){return arguments.length?(e='function'==typeof n?n:Wb(+n),t=null,A):e},A.x0=function(t){return arguments.length?(e='function'==typeof t?t:Wb(+t),A):e},A.x1=function(e){return arguments.length?(t=null==e?null:'function'==typeof e?e:Wb(+e),A):t},A.y=function(e){return arguments.length?(n='function'==typeof e?e:Wb(+e),r=null,A):n},A.y0=function(e){return arguments.length?(n='function'==typeof e?e:Wb(+e),A):n},A.y1=function(e){return arguments.length?(r=null==e?null:'function'==typeof e?e:Wb(+e),A):r},A.lineX0=A.lineY0=function(){return l().x(e).y(n)},A.lineY1=function(){return l().x(e).y(r)},A.lineX1=function(){return l().x(t).y(n)},A.defined=function(e){return arguments.length?(i='function'==typeof e?e:Wb(!!e),A):i},A.curve=function(e){return arguments.length?(s=e,null!=o&&(a=s(o)),A):s},A.context=function(e){return arguments.length?(null==e?o=a=null:a=s(o=e),A):o},A}().defined(function(e){return null!==e.x&&null!==e.y}).x(function(e){return e.x}).y1(function(e){return e.y}).curve(Jx(t)).y0(n(r))},[t,n,r])},AI=function(e){var t=e.data,r=e.xScale,i=void 0===r?iI.xScale:r,o=e.xFormat,a=e.yScale,A=void 0===a?iI.yScale:a,l=e.yFormat,c=e.width,u=e.height,f=e.colors,h=void 0===f?iI.colors:f,p=e.curve,g=void 0===p?iI.curve:p,m=e.areaBaselineValue,v=void 0===m?iI.areaBaselineValue:m,b=e.pointColor,y=void 0===b?iI.pointColor:b,w=e.pointBorderColor,B=void 0===w?iI.pointBorderColor:w,x=e.enableSlices,C=void 0===x?iI.enableSlicesTooltip:x,_=AC(o),j=AC(l),F=NQ(h,'id'),E=dC(),S=LQ(y,E),k=LQ(B,E),U=n([]),Q=U[0],L=U[1],O=d(function(){return function(e,t,n,r,i){var o=e.map(function(e){return function(e){return uF({},e,{data:e.data.map(function(e){return{data:uF({},e)}})})}(e)}),s=CF(o,t,n);'stacked'in t&&!0===t.stacked&&FF(s,o),'stacked'in n&&!0===n.stacked&&EF(s,o);var a=BF(t,s.x,r,'x'),A=BF(n,s.y,i,'y'),l=o.map(function(e){return uF({},e,{data:e.data.map(function(e){return uF({},e,{position:{x:xF(e,'x',a),y:xF(e,'y',A)}})})})});return uF({},s,{series:l,xScale:a,yScale:A})}(t.filter(function(e){return-1===Q.indexOf(e.id)}),i,A,c,u)},[t,Q,i,A,c,u]),I=O.xScale,N=O.yScale,T=O.series,M=d(function(){var e=t.map(function(e){return{id:e.id,label:e.id,color:F(e)}}),n=e.map(function(e){return YO({},T.find(function(t){return t.id===e.id}),{color:e.color})}).filter(function(e){return Boolean(e.id)});return{legendData:e.map(function(e){return YO({},e,{hidden:!n.find(function(t){return t.id===e.id})})}).reverse(),series:n}},[t,T,F]),D=M.legendData,P=M.series,R=s(function(e){L(function(t){return t.indexOf(e)>-1?t.filter(function(t){return t!==e}):[].concat(t,[e])})},[]),H=function(e){var t=e.series,n=e.getPointColor,r=e.getPointBorderColor,i=e.formatX,o=e.formatY;return d(function(){return t.reduce(function(e,t){return[].concat(e,t.data.filter(function(e){return null!==e.position.x&&null!==e.position.y}).map(function(s,a){var A={id:t.id+'.'+a,index:e.length+a,serieId:t.id,serieColor:t.color,x:s.position.x,y:s.position.y};return A.color=n(t),A.borderColor=r(A),A.data=YO({},s.data,{xFormatted:i(s.data.x),yFormatted:o(s.data.y)}),A}))},[])},[t,n,r,i,o])}({series:P,getPointColor:S,getPointBorderColor:k,formatX:_,formatY:j}),z=function(e){var t=e.enableSlices,n=e.points,r=e.width,i=e.height;return d(function(){if(!1===t)return[];if('x'===t){var e=new Map;return n.forEach(function(t){null!==t.data.x&&null!==t.data.y&&(e.has(t.x)?e.get(t.x).push(t):e.set(t.x,[t]))}),Array.from(e.entries()).sort(function(e,t){return e[0]-t[0]}).map(function(e,t,n){var o,s=e[0],a=e[1],A=n[t-1],l=n[t+1];return{id:s,x0:o=A?s-(s-A[0])/2:s,x:s,y0:0,y:0,width:l?s-o+(l[0]-s)/2:r-o,height:i,points:a.reverse()}})}if('y'===t){var o=new Map;return n.forEach(function(e){null!==e.data.x&&null!==e.data.y&&(o.has(e.y)?o.get(e.y).push(e):o.set(e.y,[e]))}),Array.from(o.entries()).sort(function(e,t){return e[0]-t[0]}).map(function(e,t,n){var o,s,a=e[0],A=e[1],l=n[t-1],c=n[t+1];return o=l?a-(a-l[0])/2:a,s=c?a-o+(c[0]-a)/2:i-o,{id:a,x0:0,x:0,y0:o,y:a,width:r,height:s,points:A.reverse()}})}},[t,n])}({enableSlices:C,points:H,width:c,height:u});return{legendData:D,toggleSerie:R,lineGenerator:sI({curve:g}),areaGenerator:aI({curve:g,yScale:N,areaBaselineValue:v}),getColor:F,series:P,xScale:I,yScale:N,slices:z,points:H}},lI=function(e){var t=e.areaBlendMode,n=e.areaOpacity,r=e.color,i=e.fill,o=e.path,s=zx(),a=s.animate,A=s.config,l=Vx(o),c=Js({color:r,config:A,immediate:!a});return w(va.path,{d:l,fill:i||c.color,fillOpacity:n,strokeWidth:0,style:{mixBlendMode:t}})};lI.propTypes={areaBlendMode:rC.isRequired,areaOpacity:Qr.number.isRequired,color:Qr.string,fill:Qr.string,path:Qr.string.isRequired};var cI=function(e){var t=e.areaGenerator,n=e.areaOpacity,r=e.areaBlendMode,i=e.lines.slice(0).reverse();return w('g',{children:i.map(function(e){return w(lI,YO({path:t(e.data.map(function(e){return e.position}))},YO({areaOpacity:n,areaBlendMode:r},e)),e.id)})})};cI.propTypes={areaGenerator:Qr.func.isRequired,areaOpacity:Qr.number.isRequired,areaBlendMode:rC.isRequired,lines:Qr.arrayOf(Qr.object).isRequired};var uI=f(cI),dI=function(e){var t=e.lineGenerator,n=e.points,r=e.color,i=e.thickness,o=d(function(){return t(n)},[t,n]),s=Vx(o);return w(va.path,{d:s,fill:'none',strokeWidth:i,stroke:r})};dI.propTypes={points:Qr.arrayOf(Qr.shape({x:Qr.oneOfType([Qr.string,Qr.number]),y:Qr.oneOfType([Qr.string,Qr.number])})),lineGenerator:Qr.func.isRequired,color:Qr.string.isRequired,thickness:Qr.number.isRequired};var fI=f(dI),hI=function(e){var t=e.lines,n=e.lineGenerator,r=e.lineWidth;return t.slice(0).reverse().map(function(e){var t=e.id,i=e.data,o=e.color;return w(fI,{id:t,points:i.map(function(e){return e.position}),lineGenerator:n,color:o,thickness:r},t)})};hI.propTypes={lines:Qr.arrayOf(Qr.shape({id:Qr.oneOfType([Qr.string,Qr.number]).isRequired,color:Qr.string.isRequired,data:Qr.arrayOf(Qr.shape({data:Qr.shape({x:Qr.oneOfType([Qr.string,Qr.number,Qr.instanceOf(Date)]),y:Qr.oneOfType([Qr.string,Qr.number,Qr.instanceOf(Date)])}).isRequired,position:Qr.shape({x:Qr.number,y:Qr.number}).isRequired})).isRequired})).isRequired,lineWidth:Qr.number.isRequired,lineGenerator:Qr.func.isRequired};var pI=f(hI),gI=function(e){var t=e.slice,n=e.axis,r=e.debug,i=e.tooltip,o=e.isCurrent,a=e.setCurrent,A=e.onMouseEnter,l=e.onMouseMove,c=e.onMouseLeave,u=e.onClick,d=Qa(),f=d.showTooltipFromEvent,h=d.hideTooltip,g=s(function(e){f(p(i,{slice:t,axis:n}),e,'right'),a(t),A&&A(t,e)},[f,i,t,A]),m=s(function(e){f(p(i,{slice:t,axis:n}),e,'right'),l&&l(t,e)},[f,i,t,l]),v=s(function(e){h(),a(null),c&&c(t,e)},[h,t,c]),b=s(function(e){u&&u(t,e)},[t,u]);return w('rect',{x:t.x0,y:t.y0,width:t.width,height:t.height,stroke:'red',strokeWidth:r?1:0,strokeOpacity:.75,fill:'red',fillOpacity:o&&r?.35:0,onMouseEnter:g,onMouseMove:m,onMouseLeave:v,onClick:b,'data-testid':'slice-'+t.id})};gI.propTypes={slice:Qr.object.isRequired,axis:Qr.oneOf(['x','y']).isRequired,debug:Qr.bool.isRequired,height:Qr.number.isRequired,tooltip:Qr.oneOfType([Qr.func,Qr.object]),isCurrent:Qr.bool.isRequired,setCurrent:Qr.func.isRequired,onMouseEnter:Qr.func,onMouseMove:Qr.func,onMouseLeave:Qr.func,onClick:Qr.func};var mI=f(gI),vI=function(e){var t=e.slices,n=e.axis,r=e.debug,i=e.height,o=e.tooltip,s=e.current,a=e.setCurrent,A=e.onMouseEnter,l=e.onMouseMove,c=e.onMouseLeave,u=e.onClick;return t.map(function(e){return w(mI,{slice:e,axis:n,debug:r,height:i,tooltip:o,setCurrent:a,isCurrent:null!==s&&s.id===e.id,onMouseEnter:A,onMouseMove:l,onMouseLeave:c,onClick:u},e.id)})};vI.propTypes={slices:Qr.arrayOf(Qr.shape({id:Qr.oneOfType([Qr.number,Qr.string,Qr.instanceOf(Date)]).isRequired,x:Qr.number.isRequired,y:Qr.number.isRequired,points:Qr.arrayOf(Qr.object).isRequired})).isRequired,axis:Qr.oneOf(['x','y']).isRequired,debug:Qr.bool.isRequired,height:Qr.number.isRequired,tooltip:Qr.oneOfType([Qr.func,Qr.object]).isRequired,current:Qr.object,setCurrent:Qr.func.isRequired,onMouseEnter:Qr.func,onMouseMove:Qr.func,onMouseLeave:Qr.func,onClick:Qr.func};var bI=f(vI),yI=function(e){var t=e.points,n=e.symbol,r=e.size,i=e.borderWidth,o=e.enableLabel,s=e.label,a=e.labelYOffset,A=dC(),l=function(e,t){var n,r=xA(e)?e:function(t){return rf(t,e)};return t&&(n=xA(t)?t:gw(t)),n?function(e){return n(r(e))}:r}(s),c=t.slice(0).reverse().map(function(e){return{id:e.id,x:e.x,y:e.y,datum:e.data,fill:e.color,stroke:e.borderColor,label:o?l(e.data):null}});return w('g',{children:c.map(function(e){return w(NC,{x:e.x,y:e.y,datum:e.datum,symbol:n,size:r,color:e.fill,borderWidth:i,borderColor:e.stroke,label:e.label,labelYOffset:a,theme:A},e.id)})})};yI.propTypes={points:Qr.arrayOf(Qr.object),symbol:Qr.func,size:Qr.number.isRequired,color:Qr.func.isRequired,borderWidth:Qr.number.isRequired,borderColor:Qr.func.isRequired,enableLabel:Qr.bool.isRequired,label:Qr.oneOfType([Qr.string,Qr.func]).isRequired,labelYOffset:Qr.number};var wI=f(yI),BI=function(e){var t=e.points,n=e.width,r=e.height,i=e.margin,o=e.setCurrent,a=e.onMouseEnter,A=e.onMouseMove,l=e.onMouseLeave,c=e.onClick,u=e.tooltip,d=e.debug,f=Qa(),h=f.showTooltipAt,g=f.hideTooltip,m=s(function(e,t){h(p(u,{point:e}),[e.x+i.left,e.y+i.top],'top'),o(e),a&&a(e,t)},[o,h,u,a,i]),v=s(function(e,t){h(p(u,{point:e}),[e.x+i.left,e.y+i.top],'top'),o(e),A&&A(e,t)},[o,h,u,A]),b=s(function(e,t){g(),o(null),l&&l(e,t)},[g,o,l]),y=s(function(e,t){c&&c(e,t)},[c]);return w(WO,{nodes:t,width:n,height:r,onMouseEnter:m,onMouseMove:v,onMouseLeave:b,onClick:y,debug:d})};BI.propTypes={points:Qr.arrayOf(Qr.object).isRequired,width:Qr.number.isRequired,height:Qr.number.isRequired,margin:Qr.object.isRequired,setCurrent:Qr.func.isRequired,onMouseEnter:Qr.func,onMouseMove:Qr.func,onMouseLeave:Qr.func,onClick:Qr.func,tooltip:Qr.oneOfType([Qr.func,Qr.object]).isRequired,debug:Qr.bool.isRequired};var xI=f(BI),CI=function(e){var t=e.data,r=e.xScale,i=e.xFormat,o=e.yScale,s=e.yFormat,a=e.layers,A=e.curve,l=e.areaBaselineValue,c=e.colors,u=e.margin,d=e.width,f=e.height,h=e.axisTop,p=e.axisRight,g=e.axisBottom,v=e.axisLeft,b=e.enableGridX,y=e.enableGridY,B=e.gridXValues,x=e.gridYValues,C=e.lineWidth,_=e.enableArea,j=e.areaOpacity,F=e.areaBlendMode,E=e.enablePoints,S=e.pointSymbol,k=e.pointSize,U=e.pointColor,Q=e.pointBorderWidth,L=e.pointBorderColor,O=e.enablePointLabel,I=e.pointLabel,N=e.pointLabelYOffset,T=e.defs,M=e.fill,D=e.markers,P=e.legends,R=e.isInteractive,H=e.useMesh,z=e.debugMesh,V=e.onMouseEnter,K=e.onMouseMove,q=e.onMouseLeave,G=e.onClick,W=e.tooltip,Y=e.enableSlices,X=e.debugSlices,J=e.sliceTooltip,Z=e.enableCrosshair,$=e.crosshairType,ee=e.role,te=oC(d,f,u),ne=te.margin,re=te.innerWidth,ie=te.innerHeight,oe=te.outerWidth,se=te.outerHeight,ae=AI({data:t,xScale:r,xFormat:i,yScale:o,yFormat:s,width:re,height:ie,colors:c,curve:A,areaBaselineValue:l,pointColor:U,pointBorderColor:L,enableSlices:Y}),Ae=ae.legendData,le=ae.toggleSerie,ce=ae.lineGenerator,ue=ae.areaGenerator,de=ae.series,fe=ae.xScale,he=ae.yScale,pe=ae.slices,ge=ae.points,me=dC(),ve=LQ(U,me),be=LQ(L,me),ye=n(null),we=ye[0],Be=ye[1],xe=n(null),Ce=xe[0],_e=xe[1],je={grid:w(qF,{theme:me,width:re,height:ie,xScale:b?fe:null,yScale:y?he:null,xValues:B,yValues:x},'grid'),markers:w(PC,{markers:D,width:re,height:ie,xScale:fe,yScale:he,theme:me},'markers'),axes:w(zF,{xScale:fe,yScale:he,width:re,height:ie,theme:me,top:h,right:p,bottom:g,left:v},'axes'),areas:null,lines:w(pI,{lines:de,lineGenerator:ce,lineWidth:C},'lines'),slices:null,points:null,crosshair:null,mesh:null,legends:P.map(function(e,t){return w(KQ,YO({},e,{containerWidth:re,containerHeight:ie,data:e.data||Ae,theme:me,toggleSerie:e.toggleSerie?le:void 0}),'legend.'+t)})},Fe=YC(T,de,M);return _&&(je.areas=w(uI,{areaGenerator:ue,areaOpacity:j,areaBlendMode:F,lines:de},'areas')),R&&!1!==Y&&(je.slices=w(bI,{slices:pe,axis:Y,debug:X,height:ie,tooltip:J,current:Ce,setCurrent:_e,onMouseEnter:V,onMouseMove:K,onMouseLeave:q,onClick:G},'slices')),E&&(je.points=w(wI,{points:ge,symbol:S,size:k,color:ve,borderWidth:Q,borderColor:be,enableLabel:O,label:I,labelYOffset:N},'points')),R&&Z&&(null!==we&&(je.crosshair=w(Ea,{width:re,height:ie,x:we.x,y:we.y,type:$},'crosshair')),null!==Ce&&(je.crosshair=w(Ea,{width:re,height:ie,x:Ce.x,y:Ce.y,type:Y},'crosshair'))),R&&H&&!1===Y&&(je.mesh=w(xI,{points:ge,width:re,height:ie,margin:ne,current:we,setCurrent:Be,onMouseEnter:V,onMouseMove:K,onMouseLeave:q,onClick:G,tooltip:W,debug:z},'mesh')),w(QC,{defs:Fe,width:oe,height:se,margin:ne,role:ee,children:a.map(function(t,n){return'function'==typeof t?w(m,{children:t(YO({},e,{innerWidth:re,innerHeight:ie,series:de,slices:pe,points:ge,xScale:fe,yScale:he,lineGenerator:ce,areaGenerator:ue,currentPoint:we,setCurrentPoint:Be,currentSlice:Ce,setCurrentSlice:_e}))},n):je[t]})})};CI.propTypes=tI,CI.defaultProps=iI;var _I=HC(CI),jI=function(e){return w(gC,{children:function(t){var n=t.width,r=t.height;return w(_I,YO({width:n,height:r},e))}})},FI=function(e){var t=e.width,i=e.height,a=e.margin,A=e.pixelRatio,l=e.data,c=e.xScale,u=e.xFormat,d=e.yScale,f=e.yFormat,h=e.curve,g=e.layers,m=e.colors,v=e.lineWidth,b=e.enableArea,y=e.areaBaselineValue,B=e.areaOpacity,x=e.enablePoints,C=e.pointSize,_=e.pointColor,j=e.pointBorderWidth,F=e.pointBorderColor,E=e.enableGridX,S=e.gridXValues,k=e.enableGridY,U=e.gridYValues,Q=e.axisTop,L=e.axisRight,O=e.axisBottom,I=e.axisLeft,N=e.legends,T=e.isInteractive,M=e.debugMesh,D=e.onMouseLeave,P=e.onClick,R=e.tooltip,H=e.canvasRef,z=o(null),V=oC(t,i,a),K=V.margin,q=V.innerWidth,G=V.innerHeight,W=V.outerWidth,Y=V.outerHeight,X=dC(),J=n(null),Z=J[0],$=J[1],ee=AI({data:l,xScale:c,xFormat:u,yScale:d,yFormat:f,width:q,height:G,colors:m,curve:h,areaBaselineValue:y,pointColor:_,pointBorderColor:F}),te=ee.lineGenerator,ne=ee.areaGenerator,re=ee.series,ie=ee.xScale,oe=ee.yScale,se=ee.points,ae=GO({points:se,width:q,height:G,debug:M}),Ae=ae.delaunay,le=ae.voronoi;r(function(){H&&(H.current=z.current),z.current.width=W*A,z.current.height=Y*A;var e=z.current.getContext('2d');e.scale(A,A),e.fillStyle=X.background,e.fillRect(0,0,W,Y),e.translate(K.left,K.top),g.forEach(function(t){if('function'==typeof t&&t({ctx:e,innerWidth:q,innerHeight:G,series:re,points:se,xScale:ie,yScale:oe,lineWidth:v,lineGenerator:te,areaGenerator:ne,currentPoint:Z,setCurrentPoint:$}),'grid'===t&&X.grid.line.strokeWidth>0&&(e.lineWidth=X.grid.line.strokeWidth,e.strokeStyle=X.grid.line.stroke,E&&WF(e,{width:q,height:G,scale:ie,axis:'x',values:S}),k&&WF(e,{width:q,height:G,scale:oe,axis:'y',values:U})),'axes'===t&&GF(e,{xScale:ie,yScale:oe,width:q,height:G,top:Q,right:L,bottom:O,left:I,theme:X}),'areas'===t&&!0===b&&(e.save(),e.globalAlpha=B,ne.context(e),re.forEach(function(t){e.fillStyle=t.color,e.beginPath(),ne(t.data.map(function(e){return e.position})),e.fill()}),e.restore()),'lines'===t&&(te.context(e),re.forEach(function(t){e.strokeStyle=t.color,e.lineWidth=v,e.beginPath(),te(t.data.map(function(e){return e.position})),e.stroke()})),'points'===t&&!0===x&&C>0&&se.forEach(function(t){e.fillStyle=t.color,e.beginPath(),e.arc(t.x,t.y,C/2,0,2*Math.PI),e.fill(),j>0&&(e.strokeStyle=t.borderColor,e.lineWidth=j,e.stroke())}),'mesh'===t&&!0===M&&(function(e,t){e.save(),e.globalAlpha=.75,e.beginPath(),t.render(e),e.strokeStyle='red',e.lineWidth=1,e.stroke(),e.restore()}(e,le),Z&&function(e,t,n){e.save(),e.globalAlpha=.35,e.beginPath(),t.renderCell(n,e),e.fillStyle='red',e.fill(),e.restore()}(e,le,Z.index)),'legends'===t){var n=re.map(function(e){return{id:e.id,label:e.id,color:e.color}}).reverse();N.forEach(function(t){GQ(e,YO({},t,{data:t.data||n,containerWidth:q,containerHeight:G,theme:X}))})}})},[z,W,Y,g,X,te,re,ie,oe,E,S,k,U,Q,L,O,I,N,se,x,C,Z]);var ce=s(function(e){var t=qC(z.current,e),n=t[0],r=t[1];if(!KC(K.left,K.top,q,G,n,r))return null;var i=Ae.find(n-K.left,r-K.top);return se[i]},[z,K,q,G,Ae]),ue=Qa(),de=ue.showTooltipFromEvent,fe=ue.hideTooltip,he=s(function(e){var t=ce(e);$(t),t?de(p(R,{point:t}),e):fe()},[ce,$,de,fe,R]),pe=s(function(e){fe(),$(null),Z&&D&&D(Z,e)},[fe,$,D]),ge=s(function(e){if(P){var t=ce(e);t&&P(t,e)}},[ce,P]);return w('canvas',{ref:z,width:W*A,height:Y*A,style:{width:W,height:Y,cursor:T?'auto':'normal'},onMouseEnter:T?he:void 0,onMouseMove:T?he:void 0,onMouseLeave:T?pe:void 0,onClick:T?ge:void 0})};FI.propTypes=nI,FI.defaultProps=oI;var EI=HC(FI),SI=c(function(e,t){return w(EI,YO({},e,{canvasRef:t}))});c(function(e,t){return w(gC,{children:function(n){var r=n.width,i=n.height;return w(SI,YO({width:r,height:i},e,{ref:t}))}})});var kI,UI=function(e){var n=e.chartData,r=function(e){if(1===e.num_y_categories){var t=e.y_data,n=Array.isArray(t[0])&&t.length===e.x_data.length?t.map(function(e){return e[0]}):Array.isArray(t[0])?t[0]:t;return[{id:e.y_category_label[0],data:e.x_data.map(function(e,t){var r;return{x:e,y:null!==(r=n[t])&&void 0!==r?r:0}})}]}return e.y_category_label.map(function(t,n){return{id:t,data:e.x_data.map(function(t,r){var i,o;return{x:t,y:null!==(o=null===(i=e.y_data[r])||void 0===i?void 0:i[n])&&void 0!==o?o:0}})}})}(n),i=u(tJ).isDarkMode;return t.createElement(jI,{data:r,margin:{top:50,right:60,bottom:80,left:60},xScale:{type:'point'},yScale:{type:'linear',min:'auto',max:'auto',stacked:!0,reverse:!1},yFormat:' >-.2f',axisTop:null,axisRight:null,axisBottom:{tickSize:5,tickPadding:5,tickRotation:-15,truncateTickAt:0,legend:n.x_label,legendPosition:'middle',legendOffset:45,format:IL},axisLeft:{tickSize:5,tickPadding:5,legend:n.y_category_label,legendPosition:'middle',legendOffset:-55,tickRotation:0},pointSize:10,pointColor:{theme:'background'},pointBorderWidth:2,pointBorderColor:{from:'serieColor'},pointLabelYOffset:-12,useMesh:!0,legends:[{anchor:'top',direction:'row',justify:!1,translateX:12,translateY:-30,itemsSpacing:0,itemDirection:'left-to-right',itemWidth:80,itemHeight:20,itemOpacity:.75,symbolSize:12,symbolShape:'circle',symbolBorderColor:'rgba(0, 0, 0, .5)',effects:[{on:'hover',style:{itemBackground:'rgba(0, 0, 0, .03)',itemOpacity:1}}]}],theme:i?LL:QL})},QI=Nt.div(kI||(kI=De(['\n vu-bg-white\n dark:vu-bg-dark_mode-600\n vu-px-10\n vu-py-4\n vu-my-5\n vu-w-full\n'],['\n vu-bg-white\n dark:vu-bg-dark_mode-600\n vu-px-10\n vu-py-4\n vu-my-5\n vu-w-full\n']))),LI={},OI={};Object.defineProperty(OI,'__esModule',{value:!0}),OI.createAnimation=void 0;OI.createAnimation=function(e,t,n){var r='react-spinners-'.concat(e,'-').concat(n);if('undefined'==typeof window||!window.document)return r;var i=document.createElement('style');document.head.appendChild(i);var o=i.sheet,s='\n @keyframes '.concat(r,' {\n ').concat(t,'\n }\n ');return o&&o.insertRule(s,0),r};var II={};Object.defineProperty(II,'__esModule',{value:!0}),II.cssValue=II.parseLengthAndUnit=void 0;var NI={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,'%':!0};function TI(e){if('number'==typeof e)return{value:e,unit:'px'};var t,n=(e.match(/^[0-9.]*/)||'').toString();t=n.includes('.')?parseFloat(n):parseInt(n,10);var r=(e.match(/[^0-9]*$/)||'').toString();return NI[r]?{value:t,unit:r}:{value:t,unit:'px'}}II.parseLengthAndUnit=TI,II.cssValue=function(e){var t=TI(e);return''.concat(t.value).concat(t.unit)};var MI=ir&&ir.__assign||function(){return MI=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},MI.apply(this,arguments)},DI=ir&&ir.__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]}),PI=ir&&ir.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,'default',{enumerable:!0,value:t})}:function(e,t){e.default=t}),RI=ir&&ir.__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)&&DI(t,e,n);return PI(t,e),t},HI=ir&&ir.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&'function'==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};Object.defineProperty(LI,'__esModule',{value:!0});var zI=RI(t),VI=II,KI=(0,OI.createAnimation)('SyncLoader','33% {transform: translateY(10px)}\n 66% {transform: translateY(-10px)}\n 100% {transform: translateY(0)}','sync');var qI=LI.default=function(e){var t=e.loading,n=void 0===t||t,r=e.color,i=void 0===r?'#000000':r,o=e.speedMultiplier,s=void 0===o?1:o,a=e.cssOverride,A=void 0===a?{}:a,l=e.size,c=void 0===l?15:l,u=e.margin,d=void 0===u?2:u,f=HI(e,['loading','color','speedMultiplier','cssOverride','size','margin']),h=MI({display:'inherit'},A),p=function(e){return{backgroundColor:i,width:(0,VI.cssValue)(c),height:(0,VI.cssValue)(c),margin:(0,VI.cssValue)(d),borderRadius:'100%',display:'inline-block',animation:''.concat(KI,' ').concat(.6/s,'s ').concat(.07*e,'s infinite ease-in-out'),animationFillMode:'both'}};return n?zI.createElement('span',MI({style:h},f),zI.createElement('span',{style:p(1)}),zI.createElement('span',{style:p(2)}),zI.createElement('span',{style:p(3)})):null};const GI=t.createContext({}),WI=!0;function YI({baseColor:e,highlightColor:t,width:n,height:r,borderRadius:i,circle:o,direction:s,duration:a,enableAnimation:A=true,customHighlightBackground:l}){const c={};return'rtl'===s&&(c['--animation-direction']='reverse'),'number'==typeof a&&(c['--animation-duration']=`${a}s`),A||(c['--pseudo-element-display']='none'),'string'!=typeof n&&'number'!=typeof n||(c.width=n),'string'!=typeof r&&'number'!=typeof r||(c.height=r),'string'!=typeof i&&'number'!=typeof i||(c.borderRadius=i),o&&(c.borderRadius='50%'),void 0!==e&&(c['--base-color']=e),void 0!==t&&(c['--highlight-color']=t),'string'==typeof l&&(c['--custom-highlight-background']=l),c}function XI({count:e=1,wrapper:n,className:r,containerClassName:i,containerTestId:o,circle:s=!1,style:a,...A}){var l,c,u;const d=t.useContext(GI),f={...A};for(const[e,t]of Object.entries(A))void 0===t&&delete f[e];const h={...d,...f,circle:s},p={...a,...YI(h)};let g='react-loading-skeleton';r&&(g+=` ${r}`);const m=null!==(l=h.inline)&&void 0!==l&&l,v=[],b=Math.ceil(e);for(let n=0;n<b;n++){let r=p;if(b>e&&n===b-1){const t=null!==(c=r.width)&&void 0!==c?c:'100%',n=e%1,i='number'==typeof t?t*n:`calc(${t} * ${n})`;r={...r,width:i}}const i=t.createElement('span',{className:g,style:r,key:n},'');m?v.push(i):v.push(t.createElement(t.Fragment,{key:n},i,t.createElement('br',null)))}return t.createElement('span',{className:i,'data-testid':o,'aria-live':'polite','aria-busy':null!==(u=h.enableAnimation)&&void 0!==u?u:WI},n?v.map((e,r)=>t.createElement(n,{key:r},e)):v)}j('@keyframes react-loading-skeleton {\n 100% {\n transform: translateX(100%);\n }\n}\n\n.react-loading-skeleton {\n --base-color: #ebebeb;\n --highlight-color: #f5f5f5;\n --animation-duration: 1.5s;\n --animation-direction: normal;\n --pseudo-element-display: block; /* Enable animation */\n\n background-color: var(--base-color);\n\n width: 100%;\n border-radius: 0.25rem;\n display: inline-flex;\n line-height: 1;\n\n position: relative;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n overflow: hidden;\n}\n\n.react-loading-skeleton::after {\n content: \' \';\n display: var(--pseudo-element-display);\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n height: 100%;\n background-repeat: no-repeat;\n background-image: var(\n --custom-highlight-background,\n linear-gradient(\n 90deg,\n var(--base-color) 0%,\n var(--highlight-color) 50%,\n var(--base-color) 100%\n )\n );\n transform: translateX(-100%);\n\n animation-name: react-loading-skeleton;\n animation-direction: var(--animation-direction);\n animation-duration: var(--animation-duration);\n animation-timing-function: ease-in-out;\n animation-iteration-count: infinite;\n}\n\n@media (prefers-reduced-motion) {\n .react-loading-skeleton {\n --pseudo-element-display: none; /* Disable animation */\n }\n}\n');var JI=function(){var e=u(tJ).isDarkMode,n=d(function(){return[55,60,65,70,75,80].sort(function(){return Math.random()-.5}).slice(0,4).map(function(n,r){return t.createElement(XI,{key:r,width:''.concat(n,'%'),baseColor:e?'#7B7E92':'#ebebeb',highlightColor:e?'#4B5168':'#f5f5f5'})})},[e]);return t.createElement(QI,null,t.createElement('div',{className:'vu-w-full vu-flex vu-items-center vu-gap-2 vu-py-2'},t.createElement(qI,{color:e?'#CCCCDC':'#000',size:2,'aria-label':'Loading Spinner'}),t.createElement('p',{className:'vu-text-xs vu-font-normal'},'Generating a response ...')),n)},ZI={},$I=ir&&ir.__assign||function(){return $I=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},$I.apply(this,arguments)},eN=ir&&ir.__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]}),tN=ir&&ir.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,'default',{enumerable:!0,value:t})}:function(e,t){e.default=t}),nN=ir&&ir.__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)&&eN(t,e,n);return tN(t,e),t},rN=ir&&ir.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&'function'==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};Object.defineProperty(ZI,'__esModule',{value:!0});var iN=nN(t),oN=II,sN=(0,OI.createAnimation)('ClipLoader','0% {transform: rotate(0deg) scale(1)} 50% {transform: rotate(180deg) scale(0.8)} 100% {transform: rotate(360deg) scale(1)}','clip');var aN,AN,lN,cN,uN,dN=ZI.default=function(e){var t=e.loading,n=void 0===t||t,r=e.color,i=void 0===r?'#000000':r,o=e.speedMultiplier,s=void 0===o?1:o,a=e.cssOverride,A=void 0===a?{}:a,l=e.size,c=void 0===l?35:l,u=rN(e,['loading','color','speedMultiplier','cssOverride','size']),d=$I({background:'transparent !important',width:(0,oN.cssValue)(c),height:(0,oN.cssValue)(c),borderRadius:'100%',border:'2px solid',borderTopColor:i,borderBottomColor:'transparent',borderLeftColor:i,borderRightColor:i,display:'inline-block',animation:''.concat(sN,' ').concat(.75/s,'s 0s infinite linear'),animationFillMode:'both'},A);return n?iN.createElement('span',$I({style:d},u)):null},fN=Nt.div(aN||(aN=De(['\n vu-text-start\n'],['\n vu-text-start\n']))),hN=Nt.div(AN||(AN=De(['\n vu-text-3xl vu-font-bold\n'],['\n vu-text-3xl vu-font-bold\n']))),pN=Nt.div(lN||(lN=De(['\n vu-text-md\n'],['\n vu-text-md\n']))),gN=Nt.div(cN||(cN=De(['\n vu-opacity-60\n'],['\n vu-opacity-60\n']))),mN=Nt.ul(uN||(uN=De(['\n vu-list-disc\n vu-mt-0\n vu-mb-4\n vu-pl-10\n'],['\n vu-list-disc\n vu-mt-0\n vu-mb-4\n vu-pl-10\n']))),vN=function(){return t.createElement(fN,null,t.createElement(hN,null,'Hi, I\'m ',t.createElement(jn,{inline:!0,svg:Yn,size:48})),t.createElement(pN,null,t.createElement(gN,null,'Your assistant for incident analysis and insights.'),t.createElement('div',{className:'vu-mt-4'},'I can help you with:'),t.createElement(mN,null,t.createElement('li',null,'Incident listing and summaries.'),t.createElement('li',null,'Understanding what happened, when, and why.'),t.createElement('li',null,'Probable Root Causes and Recommended actions.')),t.createElement(gN,null,'Ask away!')))};Nt.div(yN||(yN=De(['\n vu-flex\n'],['\n vu-flex\n'])));var bN=Nt.div(wN||(wN=De(['\n vu-flex\n vu-flex-col\n vu-gap-4\n vu-grow\n'],['\n vu-flex\n vu-flex-col\n vu-gap-4\n vu-grow\n'])));Nt.div(BN||(BN=De(['\n vu-flex\n vu-justify-between\n vu-mb-10\n'],['\n vu-flex\n vu-justify-between\n vu-mb-10\n']))),Nt.div(xN||(xN=De(['\n vu-flex\n vu-items-center\n'],['\n vu-flex\n vu-items-center\n'])));var yN,wN,BN,xN,CN,_N,jN,FN,EN,SN,kN,UN,QN,LN=Nt.div(CN||(CN=De(['\n vu-flex\n vu-h-full\n'],['\n vu-flex\n vu-h-full\n']))),ON=Nt.div(_N||(_N=De(['\n vu-flex-col\n lg:vu-flex\n lg:vu-relative\n vu-absolute\n vu-inset-0\n vu-h-full\n vu-z-10\n vu-bg-white\n dark:vu-bg-dark_mode-600\n lg:vu-p-0\n vu-p-6\n vu-gap-2\n ','\n'],['\n vu-flex-col\n lg:vu-flex\n lg:vu-relative\n vu-absolute\n vu-inset-0\n vu-h-full\n vu-z-10\n vu-bg-white\n dark:vu-bg-dark_mode-600\n lg:vu-p-0\n vu-p-6\n vu-gap-2\n ','\n'])),function(e){return e.$isOpen?'vu-flex':'vu-hidden'}),IN=Nt.div(jN||(jN=De(['\n vu-flex\n lg:vu-hidden\n vu-justify-end\n'],['\n vu-flex\n lg:vu-hidden\n vu-justify-end\n']))),NN=Nt.div(FN||(FN=De(['\n vu-grow\n lg:vu-w-80\n vu-w-full\n lg:vu-pr-6\n vu-min-w-[20rem]\n'],['\n vu-grow\n lg:vu-w-80\n vu-w-full\n lg:vu-pr-6\n vu-min-w-[20rem]\n']))),TN=Nt.div(EN||(EN=De(['\n vu-h-full\n vu-flex\n vu-flex-col\n'],['\n vu-h-full\n vu-flex\n vu-flex-col\n']))),MN=Nt.div(SN||(SN=De(['\n vu-flex\n vu-flex-col\n vu-bg-alice_blue\n dark:vu-bg-dark_mode-500\n vu-relative\n vu-pt-10\n vu-pb-4\n vu-grow\n'],['\n vu-flex\n vu-flex-col\n vu-bg-alice_blue\n dark:vu-bg-dark_mode-500\n vu-relative\n vu-pt-10\n vu-pb-4\n vu-grow\n']))),DN=Nt.div(kN||(kN=De(['\n vu-flex\n vu-justify-center\n vu-items-center\n vu-h-full\n'],['\n vu-flex\n vu-justify-center\n vu-items-center\n vu-h-full\n']))),PN=Nt.button(UN||(UN=De(['\n vu-underline\n vu-p-0\n vu-pl-1\n vu-pb-0.5\n vu-bg-transparent\n vu-text-blue-600\n vu-cursor-pointer\n'],['\n vu-underline\n vu-p-0\n vu-pl-1\n vu-pb-0.5\n vu-bg-transparent\n vu-text-blue-600\n vu-cursor-pointer\n']))),RN=Nt.a(QN||(QN=De(['\n vu-underline\n vu-text-blue-600\n'],['\n vu-underline\n vu-text-blue-600\n'])));Nt.div(HN||(HN=De(['\n vu-bg-transparent\n vu-px-20\n vu-py-4\n vu-my-5\n vu-grid \n vu-grid-cols-3\n vu-gap-x-8\n vu-gap-y-5\n'],['\n vu-bg-transparent\n vu-px-20\n vu-py-4\n vu-my-5\n vu-grid \n vu-grid-cols-3\n vu-gap-x-8\n vu-gap-y-5\n'])));var HN,zN,VN=Nt.div(zN||(zN=De(['\n vu-flex vu-justify-center vu-items-center vu-text-sm\n'],['\n vu-flex vu-justify-center vu-items-center vu-text-sm\n'])));let KN,qN,GN,WN={data:''},YN=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,XN=/\/\*[^]*?\*\/| +/g,JN=/\n+/g,ZN=(e,t)=>{let n='',r='',i='';for(let o in e){let s=e[o];'@'==o[0]?'i'==o[1]?n=o+' '+s+';':r+='f'==o[1]?ZN(s,o):o+'{'+ZN(s,'k'==o[1]?'':t)+'}':'object'==typeof s?r+=ZN(s,t?t.replace(/([^,])+/g,e=>o.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+' '+t:t)):o):null!=s&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,'-$&').toLowerCase(),i+=ZN.p?ZN.p(o,s):o+':'+s+';')}return n+(t&&i?t+'{'+i+'}':i)+r},$N={},eT=e=>{if('object'==typeof e){let t='';for(let n in e)t+=n+eT(e[n]);return t}return e},tT=(e,t,n,r,i)=>{let o=eT(e),s=$N[o]||($N[o]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return'go'+n})(o));if(!$N[s]){let t=o!==e?e:(e=>{let t,n,r=[{}];for(;t=YN.exec(e.replace(XN,''));)t[4]?r.shift():t[3]?(n=t[3].replace(JN,' ').trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(JN,' ').trim();return r[0]})(e);$N[s]=ZN(i?{['@keyframes '+s]:t}:t,n?'':'.'+s)}let a=n&&$N.g?$N.g:null;return n&&($N.g=$N[s]),((e,t,n,r)=>{r?t.data=t.data.replace(r,e):-1===t.data.indexOf(e)&&(t.data=n?e+t.data:t.data+e)})($N[s],t,r,a),s};function nT(e){let t=this||{},n=e.call?e(t.p):e;return tT(n.unshift?n.raw?((e,t,n)=>e.reduce((e,r,i)=>{let o=t[i];if(o&&o.call){let e=o(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;o=t?'.'+t:e&&'object'==typeof e?e.props?'':ZN(e,''):!1===e?'':e}return e+r+(null==o?'':o)},''))(n,[].slice.call(arguments,1),t.p):n.reduce((e,n)=>Object.assign(e,n&&n.call?n(t.p):n),{}):n,(e=>{if('object'==typeof window){let t=(e?e.querySelector('#_goober'):window._goober)||Object.assign(document.createElement('style'),{innerHTML:' ',id:'_goober'});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||WN})(t.target),t.g,t.o,t.k)}nT.bind({g:1});let rT=nT.bind({k:1});function iT(e,t){let n=this||{};return function(){let r=arguments;function i(o,s){let a=Object.assign({},o),A=a.className||i.className;n.p=Object.assign({theme:qN&&qN()},a),n.o=/ *go\d+/.test(A),a.className=nT.apply(n,r)+(A?' '+A:''),t&&(a.ref=s);let l=e;return e[0]&&(l=a.as||e,delete a.as),GN&&l[0]&&GN(a),KN(l,a)}return t?t(i):i}}var oT=(e,t)=>(e=>'function'==typeof e)(e)?e(t):e,sT=(()=>{let e=0;return()=>(++e).toString()})(),aT=(()=>{let e;return()=>{if(void 0===e&&typeof window<'u'){let t=matchMedia('(prefers-reduced-motion: reduce)');e=!t||t.matches}return e}})(),AT='default',lT=(e,t)=>{let{toastLimit:n}=e.settings;switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,n)};case 1:return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case 2:let{toast:r}=t;return lT(e,{type:e.toasts.find(e=>e.id===r.id)?1:0,toast:r});case 3:let{toastId:i}=t;return{...e,toasts:e.toasts.map(e=>e.id===i||void 0===i?{...e,dismissed:!0,visible:!1}:e)};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(e=>({...e,pauseDuration:e.pauseDuration+o}))}}},cT=[],uT={toasts:[],pausedAt:void 0,settings:{toastLimit:20}},dT={},fT=(e,t=AT)=>{dT[t]=lT(dT[t]||uT,e),cT.forEach(([e,n])=>{e===t&&n(dT[t])})},hT=e=>Object.keys(dT).forEach(t=>fT(e,t)),pT=(e=AT)=>t=>{fT(t,e)},gT={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},mT=e=>(t,n)=>{let r=((e,t='blank',n)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:'status','aria-live':'polite'},message:e,pauseDuration:0,...n,id:(null==n?void 0:n.id)||sT()}))(t,e,n);return pT(r.toasterId||(e=>Object.keys(dT).find(t=>dT[t].toasts.some(t=>t.id===e)))(r.id))({type:2,toast:r}),r.id},vT=(e,t)=>mT('blank')(e,t);vT.error=mT('error'),vT.success=mT('success'),vT.loading=mT('loading'),vT.custom=mT('custom'),vT.dismiss=(e,t)=>{let n={type:3,toastId:e};t?pT(t)(n):hT(n)},vT.dismissAll=e=>vT.dismiss(void 0,e),vT.remove=(e,t)=>{let n={type:4,toastId:e};t?pT(t)(n):hT(n)},vT.removeAll=e=>vT.remove(void 0,e),vT.promise=(e,t,n)=>{let r=vT.loading(t.loading,{...n,...null==n?void 0:n.loading});return'function'==typeof e&&(e=e()),e.then(e=>{let i=t.success?oT(t.success,e):void 0;return i?vT.success(i,{id:r,...n,...null==n?void 0:n.success}):vT.dismiss(r),e}).catch(e=>{let i=t.error?oT(t.error,e):void 0;i?vT.error(i,{id:r,...n,...null==n?void 0:n.error}):vT.dismiss(r)}),e};var bT=(e,t='default')=>{let{toasts:i,pausedAt:a}=((e={},t=AT)=>{let[i,s]=n(dT[t]||uT),a=o(dT[t]);r(()=>(a.current!==dT[t]&&s(dT[t]),cT.push([t,s]),()=>{let e=cT.findIndex(([e])=>e===t);e>-1&&cT.splice(e,1)}),[t]);let A=i.toasts.map(t=>{var n,r,i;return{...e,...e[t.type],...t,removeDelay:t.removeDelay||(null==(n=e[t.type])?void 0:n.removeDelay)||(null==e?void 0:e.removeDelay),duration:t.duration||(null==(r=e[t.type])?void 0:r.duration)||(null==e?void 0:e.duration)||gT[t.type],style:{...e.style,...null==(i=e[t.type])?void 0:i.style,...t.style}}});return{...i,toasts:A}})(e,t),A=o(new Map).current,l=s((e,t=1e3)=>{if(A.has(e))return;let n=setTimeout(()=>{A.delete(e),c({type:4,toastId:e})},t);A.set(e,n)},[]);r(()=>{if(a)return;let e=Date.now(),n=i.map(n=>{if(n.duration===1/0)return;let r=(n.duration||0)+n.pauseDuration-(e-n.createdAt);if(!(r<0))return setTimeout(()=>vT.dismiss(n.id,t),r);n.visible&&vT.dismiss(n.id)});return()=>{n.forEach(e=>e&&clearTimeout(e))}},[i,a,t]);let c=s(pT(t),[t]),u=s(()=>{c({type:5,time:Date.now()})},[c]),d=s((e,t)=>{c({type:1,toast:{id:e,height:t}})},[c]),f=s(()=>{a&&c({type:6,time:Date.now()})},[a,c]),h=s((e,t)=>{let{reverseOrder:n=!1,gutter:r=8,defaultPosition:o}=t||{},s=i.filter(t=>(t.position||o)===(e.position||o)&&t.height),a=s.findIndex(t=>t.id===e.id),A=s.filter((e,t)=>t<a&&e.visible).length;return s.filter(e=>e.visible).slice(...n?[A+1]:[0,A]).reduce((e,t)=>e+(t.height||0)+r,0)},[i]);return r(()=>{i.forEach(e=>{if(e.dismissed)l(e.id,e.removeDelay);else{let t=A.get(e.id);t&&(clearTimeout(t),A.delete(e.id))}})},[i,l]),{toasts:i,handlers:{updateHeight:d,startPause:u,endPause:f,calculateOffset:h}}},yT=rT`
|
|
14
|
+
*/function Fr(){if(hr)return fr;hr=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return fr=function(){try{if(!Object.assign)return!1;var e=new String('abc');if(e[5]='de','5'===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t['_'+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if('0123456789'!==r.join(''))return!1;var i={};return'abcdefghijklmnopqrst'.split('').forEach(function(e){i[e]=e}),'abcdefghijklmnopqrst'===Object.keys(Object.assign({},i)).join('')}catch(e){return!1}}()?Object.assign:function(r,i){for(var o,s,a=function(e){if(null==e)throw new TypeError('Object.assign cannot be called with null or undefined');return Object(e)}(r),A=1;A<arguments.length;A++){for(var l in o=Object(arguments[A]))t.call(o,l)&&(a[l]=o[l]);if(e){s=e(o);for(var c=0;c<s.length;c++)n.call(o,s[c])&&(a[s[c]]=o[s[c]])}}return a},fr}function Er(){if(gr)return pr;gr=1;return pr='SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'}function Sr(){return vr?mr:(vr=1,mr=Function.call.bind(Object.prototype.hasOwnProperty))}if('production'!==process.env.NODE_ENV){var kr=jr();Ar.exports=function(){if(Br)return wr;Br=1;var e=jr(),t=Fr(),n=Er(),r=Sr(),i=function(){if(yr)return br;yr=1;var e=function(){};if('production'!==process.env.NODE_ENV){var t=Er(),n={},r=Sr();e=function(e){var t='Warning: '+e;try{throw new Error(t)}catch(e){}}}function i(i,o,s,a,A){if('production'!==process.env.NODE_ENV)for(var l in i)if(r(i,l)){var c;try{if('function'!=typeof i[l]){var u=Error((a||'React class')+': '+s+' type `'+l+'` is invalid; it must be a function, usually from the `prop-types` package, but received `'+typeof i[l]+'`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');throw u.name='Invariant Violation',u}c=i[l](o,l,a,s,null,t)}catch(e){c=e}if(!c||c instanceof Error||e((a||'React class')+': type specification of '+s+' `'+l+'` is invalid; the type checker function must return `null` or an `Error` but returned a '+typeof c+'. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).'),c instanceof Error&&!(c.message in n)){n[c.message]=!0;var d=A?A():'';e('Failed '+s+' type: '+c.message+(null!=d?d:''))}}}return i.resetWarningCache=function(){'production'!==process.env.NODE_ENV&&(n={})},br=i}(),o=function(){};function s(){return null}return'production'!==process.env.NODE_ENV&&(o=function(e){var t='Warning: '+e;try{throw new Error(t)}catch(e){}}),wr=function(a,A){var l='function'==typeof Symbol&&Symbol.iterator,c='<<anonymous>>',u={array:p('array'),bigint:p('bigint'),bool:p('boolean'),func:p('function'),number:p('number'),object:p('object'),string:p('string'),symbol:p('symbol'),any:h(s),arrayOf:function(e){return h(function(t,r,i,o,s){if('function'!=typeof e)return new f('Property `'+s+'` of component `'+i+'` has invalid PropType notation inside arrayOf.');var a=t[r];if(!Array.isArray(a))return new f('Invalid '+o+' `'+s+'` of type `'+v(a)+'` supplied to `'+i+'`, expected an array.');for(var A=0;A<a.length;A++){var l=e(a,A,i,o,s+'['+A+']',n);if(l instanceof Error)return l}return null})},element:h(function(e,t,n,r,i){var o=e[t];return a(o)?null:new f('Invalid '+r+' `'+i+'` of type `'+v(o)+'` supplied to `'+n+'`, expected a single ReactElement.')}),elementType:h(function(t,n,r,i,o){var s=t[n];return e.isValidElementType(s)?null:new f('Invalid '+i+' `'+o+'` of type `'+v(s)+'` supplied to `'+r+'`, expected a single ReactElement type.')}),instanceOf:function(e){return h(function(t,n,r,i,o){if(!(t[n]instanceof e)){var s=e.name||c;return new f('Invalid '+i+' `'+o+'` of type `'+((a=t[n]).constructor&&a.constructor.name?a.constructor.name:c)+'` supplied to `'+r+'`, expected instance of `'+s+'`.')}var a;return null})},node:h(function(e,t,n,r,i){return m(e[t])?null:new f('Invalid '+r+' `'+i+'` supplied to `'+n+'`, expected a ReactNode.')}),objectOf:function(e){return h(function(t,i,o,s,a){if('function'!=typeof e)return new f('Property `'+a+'` of component `'+o+'` has invalid PropType notation inside objectOf.');var A=t[i],l=v(A);if('object'!==l)return new f('Invalid '+s+' `'+a+'` of type `'+l+'` supplied to `'+o+'`, expected an object.');for(var c in A)if(r(A,c)){var u=e(A,c,o,s,a+'.'+c,n);if(u instanceof Error)return u}return null})},oneOf:function(e){return Array.isArray(e)?h(function(t,n,r,i,o){for(var s=t[n],a=0;a<e.length;a++)if(d(s,e[a]))return null;var A=JSON.stringify(e,function(e,t){return'symbol'===b(t)?String(t):t});return new f('Invalid '+i+' `'+o+'` of value `'+String(s)+'` supplied to `'+r+'`, expected one of '+A+'.')}):('production'!==process.env.NODE_ENV&&o(arguments.length>1?'Invalid arguments supplied to oneOf, expected an array, got '+arguments.length+' arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).':'Invalid argument supplied to oneOf, expected an array.'),s)},oneOfType:function(e){if(!Array.isArray(e))return'production'!==process.env.NODE_ENV&&o('Invalid argument supplied to oneOfType, expected an instance of array.'),s;for(var t=0;t<e.length;t++){var i=e[t];if('function'!=typeof i)return o('Invalid argument supplied to oneOfType. Expected an array of check functions, but received '+y(i)+' at index '+t+'.'),s}return h(function(t,i,o,s,a){for(var A=[],l=0;l<e.length;l++){var c=(0,e[l])(t,i,o,s,a,n);if(null==c)return null;c.data&&r(c.data,'expectedType')&&A.push(c.data.expectedType)}return new f('Invalid '+s+' `'+a+'` supplied to `'+o+'`'+(A.length>0?', expected one of type ['+A.join(', ')+']':'')+'.')})},shape:function(e){return h(function(t,r,i,o,s){var a=t[r],A=v(a);if('object'!==A)return new f('Invalid '+o+' `'+s+'` of type `'+A+'` supplied to `'+i+'`, expected `object`.');for(var l in e){var c=e[l];if('function'!=typeof c)return g(i,o,s,l,b(c));var u=c(a,l,i,o,s+'.'+l,n);if(u)return u}return null})},exact:function(e){return h(function(i,o,s,a,A){var l=i[o],c=v(l);if('object'!==c)return new f('Invalid '+a+' `'+A+'` of type `'+c+'` supplied to `'+s+'`, expected `object`.');var u=t({},i[o],e);for(var d in u){var h=e[d];if(r(e,d)&&'function'!=typeof h)return g(s,a,A,d,b(h));if(!h)return new f('Invalid '+a+' `'+A+'` key `'+d+'` supplied to `'+s+'`.\nBad object: '+JSON.stringify(i[o],null,' ')+'\nValid keys: '+JSON.stringify(Object.keys(e),null,' '));var p=h(l,d,s,a,A+'.'+d,n);if(p)return p}return null})}};function d(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function f(e,t){this.message=e,this.data=t&&'object'==typeof t?t:{},this.stack=''}function h(e){if('production'!==process.env.NODE_ENV)var t={},r=0;function i(i,s,a,l,u,d,h){if(l=l||c,d=d||a,h!==n){if(A){var p=new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types');throw p.name='Invariant Violation',p}if('production'!==process.env.NODE_ENV&&'undefined'!=typeof console){var g=l+':'+a;!t[g]&&r<3&&(o('You are manually calling a React.PropTypes validation function for the `'+d+'` prop on `'+l+'`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.'),t[g]=!0,r++)}}return null==s[a]?i?null===s[a]?new f('The '+u+' `'+d+'` is marked as required in `'+l+'`, but its value is `null`.'):new f('The '+u+' `'+d+'` is marked as required in `'+l+'`, but its value is `undefined`.'):null:e(s,a,l,u,d)}var s=i.bind(null,!1);return s.isRequired=i.bind(null,!0),s}function p(e){return h(function(t,n,r,i,o,s){var a=t[n];return v(a)!==e?new f('Invalid '+i+' `'+o+'` of type `'+b(a)+'` supplied to `'+r+'`, expected `'+e+'`.',{expectedType:e}):null})}function g(e,t,n,r,i){return new f((e||'React class')+': '+t+' type `'+n+'.'+r+'` is invalid; it must be a function, usually from the `prop-types` package, but received `'+i+'`.')}function m(e){switch(typeof e){case'number':case'string':case'undefined':return!0;case'boolean':return!e;case'object':if(Array.isArray(e))return e.every(m);if(null===e||a(e))return!0;var t=function(e){var t=e&&(l&&e[l]||e['@@iterator']);if('function'==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!m(n.value))return!1}else for(;!(n=r.next()).done;){var i=n.value;if(i&&!m(i[1]))return!1}return!0;default:return!1}}function v(e){var t=typeof e;return Array.isArray(e)?'array':e instanceof RegExp?'object':function(e,t){return'symbol'===e||!!t&&('Symbol'===t['@@toStringTag']||'function'==typeof Symbol&&t instanceof Symbol)}(t,e)?'symbol':t}function b(e){if(null==e)return''+e;var t=v(e);if('object'===t){if(e instanceof Date)return'date';if(e instanceof RegExp)return'regexp'}return t}function y(e){var t=b(e);switch(t){case'array':case'object':return'an '+t;case'boolean':case'date':case'regexp':return'a '+t;default:return t}}return f.prototype=Error.prototype,u.checkPropTypes=i,u.resetWarningCache=i.resetWarningCache,u.PropTypes=u,u},wr}()(kr.isElement,!0)}else Ar.exports=function(){if(Cr)return xr;Cr=1;var e=Er();function t(){}function n(){}return n.resetWarningCache=t,xr=function(){function r(t,n,r,i,o,s){if(s!==e){var a=new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types');throw a.name='Invariant Violation',a}}function i(){return r}r.isRequired=r;var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o}}()();var Ur=Ar.exports,Qr=or(Ur),Lr=Yr(),Or=e=>Kr(e,Lr),Ir=Yr();Or.write=e=>Kr(e,Ir);var Nr=Yr();Or.onStart=e=>Kr(e,Nr);var Tr=Yr();Or.onFrame=e=>Kr(e,Tr);var Mr=Yr();Or.onFinish=e=>Kr(e,Mr);var Dr=[];Or.setTimeout=(e,t)=>{const n=Or.now()+t,r=()=>{const e=Dr.findIndex(e=>e.cancel==r);~e&&Dr.splice(e,1),zr-=~e?1:0},i={time:n,handler:e,cancel:r};return Dr.splice(Pr(n),0,i),zr+=1,qr(),i};var Pr=e=>~(~Dr.findIndex(t=>t.time>e)||~Dr.length);Or.cancel=e=>{Nr.delete(e),Tr.delete(e),Mr.delete(e),Lr.delete(e),Ir.delete(e)},Or.sync=e=>{Vr=!0,Or.batchedUpdates(e),Vr=!1},Or.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,Or.onStart(n)}return r.handler=e,r.cancel=()=>{Nr.delete(n),t=null},r};var Rr='undefined'!=typeof window?window.requestAnimationFrame:()=>{};Or.use=e=>Rr=e,Or.now='undefined'!=typeof performance?()=>performance.now():Date.now,Or.batchedUpdates=e=>e(),Or.catch=console.error,Or.frameLoop='always',Or.advance=()=>{'demand'!==Or.frameLoop||Wr()};var Hr=-1,zr=0,Vr=!1;function Kr(e,t){Vr?(t.delete(e),e(0)):(t.add(e),qr())}function qr(){Hr<0&&(Hr=0,'demand'!==Or.frameLoop&&Rr(Gr))}function Gr(){~Hr&&(Rr(Gr),Or.batchedUpdates(Wr))}function Wr(){const e=Hr;Hr=Or.now();const t=Pr(Hr);t&&(Xr(Dr.splice(0,t),e=>e.handler()),zr-=t),zr?(Nr.flush(),Lr.flush(e?Math.min(64,Hr-e):16.667),Tr.flush(),Ir.flush(),Mr.flush()):Hr=-1}function Yr(){let e=new Set,t=e;return{add(n){zr+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(zr-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,zr-=t.size,Xr(t,t=>t(n)&&e.add(t)),zr+=e.size,t=e)}}}function Xr(e,t){e.forEach(e=>{try{t(e)}catch(e){Or.catch(e)}})}var Jr=Object.defineProperty,Zr={};function $r(){}((e,t)=>{for(var n in t)Jr(e,n,{get:t[n],enumerable:!0})})(Zr,{assign:()=>fi,colors:()=>ci,createStringInterpolator:()=>si,skipAnimation:()=>ui,to:()=>ai,willAdvance:()=>di});var ei={arr:Array.isArray,obj:e=>!!e&&'Object'===e.constructor.name,fun:e=>'function'==typeof e,str:e=>'string'==typeof e,num:e=>'number'==typeof e,und:e=>void 0===e};function ti(e,t){if(ei.arr(e)){if(!ei.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var ni=(e,t)=>e.forEach(t);function ri(e,t,n){if(ei.arr(e))for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);else for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var ii=e=>ei.und(e)?[]:ei.arr(e)?e:[e];function oi(e,t){if(e.size){const n=Array.from(e);e.clear(),ni(n,t)}}var si,ai,Ai=(e,...t)=>oi(e,e=>e(...t)),li=()=>'undefined'==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),ci=null,ui=!1,di=$r,fi=e=>{e.to&&(ai=e.to),e.now&&(Or.now=e.now),void 0!==e.colors&&(ci=e.colors),null!=e.skipAnimation&&(ui=e.skipAnimation),e.createStringInterpolator&&(si=e.createStringInterpolator),e.requestAnimationFrame&&Or.use(e.requestAnimationFrame),e.batchedUpdates&&(Or.batchedUpdates=e.batchedUpdates),e.willAdvance&&(di=e.willAdvance),e.frameLoop&&(Or.frameLoop=e.frameLoop)},hi=new Set,pi=[],gi=[],mi=0,vi={get idle(){return!hi.size&&!pi.length},start(e){mi>e.priority?(hi.add(e),Or.onStart(bi)):(yi(e),Or(Bi))},advance:Bi,sort(e){if(mi)Or.onFrame(()=>vi.sort(e));else{const t=pi.indexOf(e);~t&&(pi.splice(t,1),wi(e))}},clear(){pi=[],hi.clear()}};function bi(){hi.forEach(yi),hi.clear(),Or(Bi)}function yi(e){pi.includes(e)||wi(e)}function wi(e){pi.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(pi,t=>t.priority>e.priority),0,e)}function Bi(e){const t=gi;for(let n=0;n<pi.length;n++){const r=pi[n];mi=r.priority,r.idle||(di(r),r.advance(e),r.idle||t.push(r))}return mi=0,(gi=pi).length=0,(pi=t).length>0}var xi='[-+]?\\d*\\.?\\d+',Ci=xi+'%';function _i(...e){return'\\(\\s*('+e.join(')\\s*,\\s*(')+')\\s*\\)'}var ji=new RegExp('rgb'+_i(xi,xi,xi)),Fi=new RegExp('rgba'+_i(xi,xi,xi,xi)),Ei=new RegExp('hsl'+_i(xi,Ci,Ci)),Si=new RegExp('hsla'+_i(xi,Ci,Ci,xi)),ki=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Ui=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Qi=/^#([0-9a-fA-F]{6})$/,Li=/^#([0-9a-fA-F]{8})$/;function Oi(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Ii(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=Oi(i,r,e+1/3),s=Oi(i,r,e),a=Oi(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*s)<<16|Math.round(255*a)<<8}function Ni(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Ti(e){return(parseFloat(e)%360+360)%360/360}function Mi(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Di(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Pi(e){let t=function(e){let t;return'number'==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Qi.exec(e))?parseInt(t[1]+'ff',16)>>>0:ci&&void 0!==ci[e]?ci[e]:(t=ji.exec(e))?(Ni(t[1])<<24|Ni(t[2])<<16|Ni(t[3])<<8|255)>>>0:(t=Fi.exec(e))?(Ni(t[1])<<24|Ni(t[2])<<16|Ni(t[3])<<8|Mi(t[4]))>>>0:(t=ki.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+'ff',16)>>>0:(t=Li.exec(e))?parseInt(t[1],16)>>>0:(t=Ui.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Ei.exec(e))?(255|Ii(Ti(t[1]),Di(t[2]),Di(t[3])))>>>0:(t=Si.exec(e))?(Ii(Ti(t[1]),Di(t[2]),Di(t[3]))|Mi(t[4]))>>>0:null}(e);if(null===t)return e;t=t||0;return`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`}var Ri=(e,t,n)=>{if(ei.fun(e))return e;if(ei.arr(e))return Ri({range:e,output:t,extrapolate:n});if(ei.str(e.output[0]))return si(e);const r=e,i=r.output,o=r.range||[0,1],s=r.extrapolateLeft||r.extrapolate||'extend',a=r.extrapolateRight||r.extrapolate||'extend',A=r.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,o);return function(e,t,n,r,i,o,s,a,A){let l=A?A(e):e;if(l<t){if('identity'===s)return l;'clamp'===s&&(l=t)}if(l>n){if('identity'===a)return l;'clamp'===a&&(l=n)}if(r===i)return r;if(t===n)return e<=t?r:i;t===-1/0?l=-l:n===1/0?l-=t:l=(l-t)/(n-t);l=o(l),r===-1/0?l=-l:i===1/0?l+=r:l=l*(i-r)+r;return l}(e,o[t],o[t+1],i[t],i[t+1],A,s,a,r.map)}};var Hi=1.70158,zi=1.525*Hi,Vi=Hi+1,Ki=2*Math.PI/3,qi=2*Math.PI/4.5,Gi=e=>{const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},Wi={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>Vi*e*e*e-Hi*e*e,easeOutBack:e=>1+Vi*Math.pow(e-1,3)+Hi*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-zi)/2:(Math.pow(2*e-2,2)*((zi+1)*(2*e-2)+zi)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*Ki),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*Ki)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*qi)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*qi)/2+1,easeInBounce:e=>1-Gi(1-e),easeOutBounce:Gi,easeInOutBounce:e=>e<.5?(1-Gi(1-2*e))/2:(1+Gi(2*e-1))/2,steps:(e,t='end')=>n=>{const r=(n='end'===t?Math.min(n,.999):Math.max(n,.001))*e;return((e,t,n)=>Math.min(Math.max(n,e),t))(0,1,('end'===t?Math.floor(r):Math.ceil(r))/e)}},Yi=Symbol.for('FluidValue.get'),Xi=Symbol.for('FluidValue.observers'),Ji=e=>Boolean(e&&e[Yi]),Zi=e=>e&&e[Yi]?e[Yi]():e,$i=e=>e[Xi]||null;function eo(e,t){const n=e[Xi];n&&n.forEach(e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)})}var to=class{constructor(e){if(!e&&!(e=this.get))throw Error('Unknown getter');no(this,e)}},no=(e,t)=>so(e,Yi,t);function ro(e,t){if(e[Yi]){let n=e[Xi];n||so(e,Xi,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function io(e,t){const n=e[Xi];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Xi]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var oo,so=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),ao=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Ao=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,lo=new RegExp(`(${ao.source})(%|[a-z]+)`,'i'),co=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,uo=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,fo=e=>{const[t,n]=ho(e);if(!t||li())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith('--')){const t=window.getComputedStyle(document.documentElement).getPropertyValue(n);return t||e}return n&&uo.test(n)?fo(n):n||e},ho=e=>{const t=uo.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},po=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,go=e=>{oo||(oo=ci?new RegExp(`(${Object.keys(ci).join('|')})(?!\\w)`,'g'):/^\b$/);const t=e.output.map(e=>Zi(e).replace(uo,fo).replace(Ao,Pi).replace(oo,Pi)),n=t.map(e=>e.match(ao).map(Number)),r=n[0].map((e,t)=>n.map(e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})),i=r.map(t=>Ri({...e,output:t}));return e=>{const n=!lo.test(t[0])&&t.find(e=>lo.test(e))?.replace(ao,'');let r=0;return t[0].replace(ao,()=>`${i[r++](e)}${n||''}`).replace(co,po)}},mo='react-spring: ',vo=e=>{const t=e;let n=!1;if('function'!=typeof t)throw new TypeError(`${mo}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},bo=vo(console.warn);var yo=vo(console.warn);function wo(e){return ei.str(e)&&('#'==e[0]||/\d/.test(e)||!li()&&uo.test(e)||e in(ci||{}))}var Bo=li()?r:l;function xo(){const e=n()[1],t=(()=>{const e=o(!1);return Bo(()=>(e.current=!0,()=>{e.current=!1}),[]),e})();return()=>{t.current&&e(Math.random())}}var Co=e=>r(e,_o),_o=[];function jo(e){const t=o();return r(()=>{t.current=e}),t.current}var Fo=Symbol.for('Animated:node'),Eo=e=>e&&e[Fo],So=(e,t)=>{return n=e,r=Fo,i=t,Object.defineProperty(n,r,{value:i,writable:!0,configurable:!0});var n,r,i},ko=e=>e&&e[Fo]&&e[Fo].getPayload(),Uo=class{constructor(){So(this,this)}getPayload(){return this.payload||[]}},Qo=class extends Uo{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,ei.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Qo(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return ei.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,ei.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Lo=class extends Qo{constructor(e){super(0),this._string=null,this._toString=Ri({output:[e,e]})}static create(e){return new Lo(e)}getValue(){const e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(ei.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=Ri({output:[this.getValue(),e]})),this._value=0,super.reset()}},Oo={dependencies:null},Io=class extends Uo{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return ri(this.source,(n,r)=>{var i;(i=n)&&i[Fo]===i?t[r]=n.getValue(e):Ji(n)?t[r]=Zi(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&ni(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return ri(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Oo.dependencies&&Ji(e)&&Oo.dependencies.add(e);const t=ko(e);t&&ni(t,e=>this.add(e))}},No=class extends Io{constructor(e){super(e)}static create(e){return new No(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((t,n)=>t.setValue(e[n])).some(Boolean):(super.setValue(e.map(To)),!0)}};function To(e){return(wo(e)?Lo:Qo).create(e)}function Mo(e){const t=Eo(e);return t?t.constructor:ei.arr(e)?No:wo(e)?Lo:Qo}var Do=(t,n)=>{const i=!ei.fun(t)||t.prototype&&t.prototype.isReactComponent;return c((a,A)=>{const l=o(null),c=i&&s(e=>{l.current=function(e,t){e&&(ei.fun(e)?e(t):e.current=t);return t}(A,e)},[A]),[u,d]=function(e,t){const n=new Set;Oo.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)});return e=new Io(e),Oo.dependencies=null,[e,n]}(a,n),f=xo(),h=()=>{const e=l.current;if(i&&!e)return;!1===(!!e&&n.applyAnimatedValues(e,u.getValue(!0)))&&f()},p=new Po(h,d),g=o();Bo(()=>(g.current=p,ni(d,e=>ro(e,p)),()=>{g.current&&(ni(g.current.deps,e=>io(e,g.current)),Or.cancel(g.current.update))})),r(h,[]),Co(()=>()=>{const e=g.current;ni(e.deps,t=>io(t,e))});const m=n.getComponentProps(u.getValue());return e.createElement(t,{...m,ref:c})})},Po=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){'change'==e.type&&Or.write(this.update)}};var Ro=Symbol.for('AnimatedComponent'),Ho=e=>ei.str(e)?e:e&&ei.str(e.displayName)?e.displayName:ei.fun(e)&&e.name||null;function zo(e,...t){return ei.fun(e)?e(...t):e}var Vo=(e,t)=>!0===e||!!(t&&e&&(ei.fun(e)?e(t):ii(e).includes(t))),Ko=(e,t)=>ei.obj(e)?t&&e[t]:e,qo=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,Go=e=>e,Wo=(e,t=Go)=>{let n=Yo;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));const r={};for(const i of n){const n=t(e[i],i);ei.und(n)||(r[i]=n)}return r},Yo=['config','onProps','onStart','onChange','onPause','onResume','onRest'],Xo={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function Jo(e){const t=function(e){const t={};let n=0;if(ri(e,(e,r)=>{Xo[r]||(t[r]=e,n++)}),n)return t}(e);if(t){const n={to:t};return ri(e,(e,r)=>r in t||(n[r]=e)),n}return{...e}}function Zo(e){return e=Zi(e),ei.arr(e)?e.map(Zo):wo(e)?Zr.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function $o(e){for(const t in e)return!0;return!1}function es(e){return ei.fun(e)||ei.arr(e)&&ei.obj(e[0])}function ts(e,t){e.ref?.delete(e),t?.delete(e)}function ns(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var rs={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},is={...rs.default,mass:1,damping:1,easing:Wi.linear,clamp:!1},os=class{constructor(){this.velocity=0,Object.assign(this,is)}};function ss(e,t){if(ei.und(t.decay)){const n=!ei.und(t.tension)||!ei.und(t.friction);!n&&ei.und(t.frequency)&&ei.und(t.damping)&&ei.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var as=[],As=class{constructor(){this.changed=!1,this.values=as,this.toValues=null,this.fromValues=as,this.config=new os,this.immediate=!1}};function ls(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise((s,a)=>{let A,l,c=Vo(n.cancel??r?.cancel,t);if(c)f();else{ei.und(n.pause)||(i.paused=Vo(n.pause,t));let e=r?.pause;!0!==e&&(e=i.paused||Vo(e,t)),A=zo(n.delay||0,t),e?(i.resumeQueue.add(d),o.pause()):(o.resume(),d())}function u(){i.resumeQueue.add(d),i.timeouts.delete(l),l.cancel(),A=l.time-Or.now()}function d(){A>0&&!Zr.skipAnimation?(i.delayed=!0,l=Or.setTimeout(f,A),i.pauseQueue.add(u),i.timeouts.add(l)):f()}function f(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(u),i.timeouts.delete(l),e<=(i.cancelId||0)&&(c=!0);try{o.start({...n,callId:e,cancel:c},s)}catch(e){a(e)}}})}var cs=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?fs(e.get()):t.every(e=>e.noop)?us(e.get()):ds(e.get(),t.every(e=>e.finished)),us=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),ds=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),fs=e=>({value:e,cancelled:!0,finished:!1});function hs(e,t,n,r){const{callId:i,parentId:o,onRest:s}=t,{asyncTo:a,promise:A}=n;return o||e!==a||t.reset?n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;const l=Wo(t,(e,t)=>'onRest'===t?void 0:e);let c,u;const d=new Promise((e,t)=>(c=e,u=t)),f=e=>{const t=i<=(n.cancelId||0)&&fs(r)||i!==n.asyncId&&ds(r,!1);if(t)throw e.result=t,u(e),e},h=(e,t)=>{const o=new gs,s=new ms;return(async()=>{if(Zr.skipAnimation)throw ps(n),s.result=ds(r,!1),u(s),s;f(o);const a=ei.obj(e)?{...e}:{...t,to:e};a.parentId=i,ri(l,(e,t)=>{ei.und(a[t])&&(a[t]=e)});const A=await r.start(a);return f(o),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),A})()};let p;if(Zr.skipAnimation)return ps(n),ds(r,!1);try{let t;t=ei.arr(e)?(async e=>{for(const t of e)await h(t)})(e):Promise.resolve(e(h,r.stop.bind(r))),await Promise.all([t.then(c),d]),p=ds(r.get(),!0,!1)}catch(e){if(e instanceof gs)p=e.result;else{if(!(e instanceof ms))throw e;p=e.result}}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?a:void 0,n.promise=o?A:void 0)}return ei.fun(s)&&Or.batchedUpdates(()=>{s(p,r,r.item)}),p})():A}function ps(e,t){oi(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var gs=class extends Error{constructor(){super('An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.')}},ms=class extends Error{constructor(){super('SkipAnimationSignal')}},vs=e=>e instanceof ys,bs=1,ys=class extends to{constructor(){super(...arguments),this.id=bs++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Eo(this);return e&&e.getValue()}to(...e){return Zr.to(this,e)}interpolate(...e){return bo(`${mo}The "interpolate" function is deprecated in v9 (use "to" instead)`),Zr.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){eo(this,{type:'change',parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||vi.sort(this),eo(this,{type:'priority',parent:this,priority:e})}},ws=Symbol.for('SpringPhase'),Bs=e=>(1&e[ws])>0,xs=e=>(2&e[ws])>0,Cs=e=>(4&e[ws])>0,_s=(e,t)=>t?e[ws]|=3:e[ws]&=-3,js=(e,t)=>t?e[ws]|=4:e[ws]&=-5,Fs=class extends ys{constructor(e,t){if(super(),this.animation=new As,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!ei.und(e)||!ei.und(t)){const n=ei.obj(e)?{...e}:{...t,from:e};ei.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(xs(this)||this._state.asyncTo)||Cs(this)}get goal(){return Zi(this.animation.to)}get velocity(){const e=Eo(this);return e instanceof Qo?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return Bs(this)}get isAnimating(){return xs(this)}get isPaused(){return Cs(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:i}=r;const{config:o}=r,s=ko(r.to);!s&&Ji(r.to)&&(i=ii(Zi(r.to))),r.values.forEach((a,A)=>{if(a.done)return;const l=a.constructor==Lo?1:s?s[A].lastPosition:i[A];let c=r.immediate,u=l;if(!c){if(u=a.lastPosition,o.tension<=0)return void(a.done=!0);let t=a.elapsedTime+=e;const n=r.fromValues[A],i=null!=a.v0?a.v0:a.v0=ei.arr(o.velocity)?o.velocity[A]:o.velocity;let s;const d=o.precision||(n==l?.005:Math.min(1,.001*Math.abs(l-n)));if(ei.und(o.duration))if(o.decay){const e=!0===o.decay?.998:o.decay,r=Math.exp(-(1-e)*t);u=n+i/(1-e)*(1-r),c=Math.abs(a.lastPosition-u)<=d,s=i*r}else{s=null==a.lastVelocity?i:a.lastVelocity;const t=o.restVelocity||d/10,r=o.clamp?0:o.bounce,A=!ei.und(r),f=n==l?a.v0>0:n<l;let h,p=!1;const g=1,m=Math.ceil(e/g);for(let e=0;e<m&&(h=Math.abs(s)>t,h||(c=Math.abs(l-u)<=d,!c));++e){A&&(p=u==l||u>l==f,p&&(s=-s*r,u=l));s+=(1e-6*-o.tension*(u-l)+.001*-o.friction*s)/o.mass*g,u+=s*g}}else{let r=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,a.durationProgress>0&&(a.elapsedTime=o.duration*a.durationProgress,t=a.elapsedTime+=e)),r=(o.progress||0)+t/this._memoizedDuration,r=r>1?1:r<0?0:r,a.durationProgress=r),u=n+o.easing(r)*(l-n),s=(u-a.lastPosition)/e,c=1==r}a.lastVelocity=s,Number.isNaN(u)&&(c=!0)}s&&!s[A].done&&(c=!1),c?a.done=!0:t=!1,a.setValue(u,o.round)&&(n=!0)});const a=Eo(this),A=a.getValue();if(t){const e=Zi(r.to);A===e&&!n||o.decay?n&&o.decay&&this._onChange(A):(a.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(A)}set(e){return Or.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(xs(this)){const{to:e,config:t}=this.animation;Or.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return ei.und(e)?(n=this.queue||[],this.queue=[]):n=[ei.obj(e)?e:{...t,to:e}],Promise.all(n.map(e=>this._update(e))).then(e=>cs(this,e))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),ps(this._state,e&&this._lastCallId),Or.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){'change'==e.type?this._start():'priority'==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||'';let{to:n,from:r}=e;n=ei.obj(n)?n[t]:n,(null==n||es(n))&&(n=void 0),r=ei.obj(r)?r[t]:r,null==r&&(r=void 0);const i={to:n,from:r};return Bs(this)||(e.reverse&&([n,r]=[r,n]),r=Zi(r),ei.und(r)?Eo(this)||this._set(n):this._set(r)),i}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,Wo(e,(e,t)=>/^on/.test(t)?Ko(e,n):e)),Os(this,e,'onProps'),Is(this,'onProps',e,this);const i=this._prepareNode(e);if(Object.isFrozen(this))throw Error('Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?');const o=this._state;return ls(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{Cs(this)||(js(this,!0),Ai(o.pauseQueue),Is(this,'onPause',ds(this,Es(this,this.animation.to)),this))},resume:()=>{Cs(this)&&(js(this,!1),xs(this)&&this._resume(),Ai(o.resumeQueue),Is(this,'onResume',ds(this,Es(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(n=>{if(e.loop&&n.finished&&(!t||!n.noop)){const t=Ss(e);if(t)return this._update(t,!0)}return n})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(fs(this));const r=!ei.und(e.to),i=!ei.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(fs(this));this._lastToId=t.callId}const{key:o,defaultProps:s,animation:a}=this,{to:A,from:l}=a;let{to:c=A,from:u=l}=e;!i||r||t.default&&!ei.und(c)||(c=u),t.reverse&&([c,u]=[u,c]);const d=!ti(u,l);d&&(a.from=u),u=Zi(u);const f=!ti(c,A);f&&this._focus(c);const h=es(t.to),{config:p}=a,{decay:g,velocity:m}=p;(r||i)&&(p.velocity=0),t.config&&!h&&function(e,t,n){n&&(ss(n={...n},t),t={...n,...t}),ss(e,t),Object.assign(e,t);for(const t in is)null==e[t]&&(e[t]=is[t]);let{frequency:r,damping:i}=e;const{mass:o}=e;ei.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*i*o/r)}(p,zo(t.config,o),t.config!==s.config?zo(s.config,o):void 0);let v=Eo(this);if(!v||ei.und(c))return n(ds(this,!0));const b=ei.und(t.reset)?i&&!t.default:!ei.und(u)&&Vo(t.reset,o),y=b?u:this.get(),w=Zo(c),B=ei.num(w)||ei.arr(w)||wo(w),x=!h&&(!B||Vo(s.immediate||t.immediate,o));if(f){const e=Mo(c);if(e!==v.constructor){if(!x)throw Error(`Cannot animate between ${v.constructor.name} and ${e.name}, as the "to" prop suggests`);v=this._set(w)}}const C=v.constructor;let _=Ji(c),j=!1;if(!_){const e=b||!Bs(this)&&d;(f||e)&&(j=ti(Zo(y),w),_=!j),(ti(a.immediate,x)||x)&&ti(p.decay,g)&&ti(p.velocity,m)||(_=!0)}if(j&&xs(this)&&(a.changed&&!b?_=!0:_||this._stop(A)),!h&&((_||Ji(A))&&(a.values=v.getPayload(),a.toValues=Ji(c)?null:C==Lo?[1]:ii(w)),a.immediate!=x&&(a.immediate=x,x||b||this._set(A)),_)){const{onRest:e}=a;ni(Ls,e=>Os(this,t,e));const r=ds(this,Es(this,A));Ai(this._pendingCalls,r),this._pendingCalls.add(n),a.changed&&Or.batchedUpdates(()=>{a.changed=!b,e?.(r,this),b?zo(s.onRest,r):a.onStart?.(r,this)})}b&&this._set(y),h?n(hs(t.to,t,this._state,this)):_?this._start():xs(this)&&!f?this._pendingCalls.add(n):n(us(y))}_focus(e){const t=this.animation;e!==t.to&&($i(this)&&this._detach(),t.to=e,$i(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Ji(t)&&(ro(t,this),vs(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Ji(e)&&io(e,this)}_set(e,t=!0){const n=Zi(e);if(!ei.und(n)){const e=Eo(this);if(!e||!ti(n,e.getValue())){const r=Mo(n);e&&e.constructor==r?e.setValue(n):So(this,r.create(n)),e&&Or.batchedUpdates(()=>{this._onChange(n,t)})}}return Eo(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Is(this,'onStart',ds(this,Es(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),zo(this.animation.onChange,e,this)),zo(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Eo(this).reset(Zi(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),xs(this)||(_s(this,!0),Cs(this)||this._resume())}_resume(){Zr.skipAnimation?this.finish():vi.start(this)}_stop(e,t){if(xs(this)){_s(this,!1);const n=this.animation;ni(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),eo(this,{type:'idle',parent:this});const r=t?fs(this.get()):ds(this.get(),Es(this,e??n.to));Ai(this._pendingCalls,r),n.changed&&(n.changed=!1,Is(this,'onRest',r,this))}}};function Es(e,t){const n=Zo(t);return ti(Zo(e.get()),n)}function Ss(e,t=e.loop,n=e.to){const r=zo(t);if(r){const i=!0!==r&&Jo(r),o=(i||e).reverse,s=!i||i.reset;return ks({...e,loop:t,default:!1,pause:void 0,to:!o||es(n)?n:void 0,from:s?e.from:void 0,reset:s,...i})}}function ks(e){const{to:t,from:n}=e=Jo(e),r=new Set;return ei.obj(t)&&Qs(t,r),ei.obj(n)&&Qs(n,r),e.keys=r.size?Array.from(r):null,e}function Us(e){const t=ks(e);return ei.und(t.default)&&(t.default=Wo(t)),t}function Qs(e,t){ri(e,(e,n)=>null!=e&&t.add(n))}var Ls=['onStart','onRest','onChange','onPause','onResume'];function Os(e,t,n){e.animation[n]=t[n]!==qo(t,n)?Ko(t[n],e.key):void 0}function Is(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var Ns=['onStart','onChange','onRest'],Ts=1,Ms=class{constructor(e,t){this.id=Ts++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];ei.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(ks(e)),this}start(e){let{queue:t}=this;return e?t=ii(e).map(ks):this.queue=[],this._flush?this._flush(this,t):(Ks(this,t),Ds(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;ni(ii(t),t=>n[t].stop(!!e))}else ps(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(ei.und(e))this.start({pause:!0});else{const t=this.springs;ni(ii(e),e=>t[e].pause())}return this}resume(e){if(ei.und(e))this.start({pause:!1});else{const t=this.springs;ni(ii(e),e=>t[e].resume())}return this}each(e){ri(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,oi(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));const o=!r&&this._started,s=i||o&&n.size?this.get():null;i&&t.size&&oi(t,([e,t])=>{t.value=s,e(t,this,this._item)}),o&&(this._started=!1,oi(n,([e,t])=>{t.value=s,e(t,this,this._item)}))}eventObserved(e){if('change'==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if('idle'!=e.type)return;this._active.delete(e.parent)}Or.onFrame(this._onFrame)}};function Ds(e,t){return Promise.all(t.map(t=>Ps(e,t))).then(t=>cs(e,t))}async function Ps(e,t,n){const{keys:r,to:i,from:o,loop:s,onRest:a,onResolve:A}=t,l=ei.obj(t.default)&&t.default;s&&(t.loop=!1),!1===i&&(t.to=null),!1===o&&(t.from=null);const c=ei.arr(i)||ei.fun(i)?i:void 0;c?(t.to=void 0,t.onRest=void 0,l&&(l.onRest=void 0)):ni(Ns,n=>{const r=t[n];if(ei.fun(r)){const i=e._events[n];t[n]=({finished:e,cancelled:t})=>{const n=i.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):i.set(r,{value:null,finished:e||!1,cancelled:t||!1})},l&&(l[n]=t[n])}});const u=e._state;t.pause===!u.paused?(u.paused=t.pause,Ai(t.pause?u.pauseQueue:u.resumeQueue)):u.paused&&(t.pause=!0);const d=(r||Object.keys(e.springs)).map(n=>e.springs[n].start(t)),f=!0===t.cancel||!0===qo(t,'cancel');(c||f&&u.asyncId)&&d.push(ls(++e._lastAsyncId,{props:t,state:u,actions:{pause:$r,resume:$r,start(t,n){f?(ps(u,e._lastAsyncId),n(fs(e))):(t.onRest=a,n(hs(c,t,u,e)))}}})),u.paused&&await new Promise(e=>{u.resumeQueue.add(e)});const h=cs(e,await Promise.all(d));if(s&&h.finished&&(!n||!h.noop)){const n=Ss(t,s,i);if(n)return Ks(e,[n]),Ps(e,n,!0)}return A&&Or.batchedUpdates(()=>A(h,e,e.item)),h}function Rs(e,t){const n={...e.springs};return t&&ni(ii(t),e=>{ei.und(e.keys)&&(e=ks(e)),ei.obj(e.to)||(e={...e,to:void 0}),Vs(n,e,e=>zs(e))}),Hs(e,n),n}function Hs(e,t){ri(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,ro(t,e))})}function zs(e,t){const n=new Fs;return n.key=e,t&&ro(n,t),n}function Vs(e,t,n){t.keys&&ni(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function Ks(e,t){ni(t,t=>{Vs(e.springs,t,t=>zs(t,e))})}var qs,Gs,Ws=({children:t,...i})=>{const s=u(Ys),a=i.pause||!!s.pause,A=i.immediate||!!s.immediate;i=function(e,t){const[i]=n(()=>({inputs:t,result:e()})),s=o(),a=s.current;let A=a;if(A){const n=Boolean(t&&A.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,A.inputs));n||(A={inputs:t,result:e()})}else A=i;return r(()=>{s.current=A,a==i&&(i.inputs=i.result=void 0)},[A]),A.result}(()=>({pause:a,immediate:A}),[a,A]);const{Provider:l}=Ys;return e.createElement(l,{value:i},t)},Ys=(qs=Ws,Gs={},Object.assign(qs,e.createContext(Gs)),qs.Provider._context=qs,qs.Consumer._context=qs,qs);Ws.Provider=Ys.Provider,Ws.Consumer=Ys.Consumer;var Xs=()=>{const e=[],t=function(t){yo(`${mo}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);const r=[];return ni(e,(e,i)=>{if(ei.und(t))r.push(e.start());else{const o=n(t,e,i);o&&r.push(e.start(o))}}),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return ni(e,e=>e.pause(...arguments)),this},t.resume=function(){return ni(e,e=>e.resume(...arguments)),this},t.set=function(t){ni(e,(e,n)=>{const r=ei.fun(t)?t(n,e):t;r&&e.set(r)})},t.start=function(t){const n=[];return ni(e,(e,r)=>{if(ei.und(t))n.push(e.start());else{const i=this._getProps(t,e,r);i&&n.push(e.start(i))}}),n},t.stop=function(){return ni(e,e=>e.stop(...arguments)),this},t.update=function(t){return ni(e,(e,n)=>e.update(this._getProps(t,e,n))),this};const n=function(e,t,n){return ei.fun(e)?e(n,t):e};return t._getProps=n,t};function Js(e,t){const n=ei.fun(e),[[r],i]=function(e,t,n){const r=ei.fun(t)&&t;r&&!n&&(n=[]);const i=d(()=>r||3==arguments.length?Xs():void 0,[]),s=o(0),a=xo(),A=d(()=>({ctrls:[],queue:[],flush(e,t){const n=Rs(e,t);return s.current>0&&!A.queue.length&&!Object.keys(n).some(t=>!e.springs[t])?Ds(e,t):new Promise(r=>{Hs(e,n),A.queue.push(()=>{r(Ds(e,t))}),a()})}}),[]),l=o([...A.ctrls]),c=[],f=jo(e)||0;function h(e,n){for(let i=e;i<n;i++){const e=l.current[i]||(l.current[i]=new Ms(null,A.flush)),n=r?r(i,e):t[i];n&&(c[i]=Us(n))}}d(()=>{ni(l.current.slice(e,f),e=>{ts(e,i),e.stop(!0)}),l.current.length=e,h(f,e)},[e]),d(()=>{h(0,Math.min(f,e))},n);const p=l.current.map((e,t)=>Rs(e,c[t])),g=u(Ws),m=jo(g),v=g!==m&&$o(g);Bo(()=>{s.current++,A.ctrls=l.current;const{queue:e}=A;e.length&&(A.queue=[],ni(e,e=>e())),ni(l.current,(e,t)=>{i?.add(e),v&&e.start({default:g});const n=c[t];n&&(ns(e,n.ref),e.ref?e.queue.push(n):e.start(n))})}),Co(()=>()=>{ni(A.ctrls,e=>e.stop(!0))});const b=p.map(e=>({...e}));return i?[b,i]:b}(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,i]:r}function Zs(t,n,r){const i=ei.fun(n)&&n,{reset:s,sort:a,trail:A=0,expires:l=!0,exitBeforeEnter:c=!1,onDestroyed:f,ref:h,config:p}=i?i():n,g=d(()=>i||3==arguments.length?Xs():void 0,[]),m=ii(t),v=[],b=o(null),y=s?null:b.current;Bo(()=>{b.current=v}),Co(()=>(ni(v,e=>{g?.add(e.ctrl),e.ctrl.ref=g}),()=>{ni(b.current,e=>{e.expired&&clearTimeout(e.expirationId),ts(e.ctrl,g),e.ctrl.stop(!0)})}));const w=function(e,{key:t,keys:n=t},r){if(null===n){const t=new Set;return e.map(e=>{const n=r&&r.find(n=>n.item===e&&'leave'!==n.phase&&!t.has(n));return n?(t.add(n),n.key):$s++})}return ei.und(n)?e:ei.fun(n)?e.map(n):ii(n)}(m,i?i():n,y),B=s&&b.current||[];Bo(()=>ni(B,({ctrl:e,item:t,key:n})=>{ts(e,g),zo(f,t,n)}));const x=[];if(y&&ni(y,(e,t)=>{e.expired?(clearTimeout(e.expirationId),B.push(e)):~(t=x[t]=w.indexOf(e.key))&&(v[t]=e)}),ni(m,(e,t)=>{v[t]||(v[t]={key:w[t],item:e,phase:'mount',ctrl:new Ms},v[t].ctrl.item=e)}),x.length){let e=-1;const{leave:t}=i?i():n;ni(x,(n,r)=>{const i=y[r];~n?(e=v.indexOf(i),v[e]={...i,item:m[n]}):t&&v.splice(++e,0,i)})}ei.fun(a)&&v.sort((e,t)=>a(e.item,t.item));let C=-A;const _=xo(),j=Wo(n),F=new Map,E=o(new Map),S=o(!1);ni(v,(e,t)=>{const r=e.key,o=e.phase,s=i?i():n;let a,u;const d=zo(s.delay||0,r);if('mount'==o)a=s.enter,u='enter';else{const e=w.indexOf(r)<0;if('leave'!=o)if(e)a=s.leave,u='leave';else{if(!(a=s.update))return;u='update'}else{if(e)return;a=s.enter,u='enter'}}if(a=zo(a,e.item,t),a=ei.obj(a)?Jo(a):{to:a},!a.config){const n=p||j.config;a.config=zo(n,e.item,t,u)}C+=A;const f={...j,delay:d+C,ref:h,immediate:s.immediate,reset:!1,...a};if('enter'==u&&ei.und(f.from)){const r=i?i():n,o=ei.und(r.initial)||y?r.from:r.initial;f.from=zo(o,e.item,t)}const{onResolve:g}=f;f.onResolve=e=>{zo(g,e);const t=b.current,n=t.find(e=>e.key===r);if(n&&(!e.cancelled||'update'==n.phase)&&n.ctrl.idle){const e=t.every(e=>e.ctrl.idle);if('leave'==n.phase){const t=zo(l,n.item);if(!1!==t){const r=!0===t?0:t;if(n.expired=!0,!e&&r>0)return void(r<=2147483647&&(n.expirationId=setTimeout(_,r)))}}e&&t.some(e=>e.expired)&&(E.current.delete(n),c&&(S.current=!0),_())}};const m=Rs(e.ctrl,f);'leave'===u&&c?E.current.set(e,{phase:u,springs:m,payload:f}):F.set(e,{phase:u,springs:m,payload:f})});const k=u(Ws),U=jo(k),Q=k!==U&&$o(k);Bo(()=>{Q&&ni(v,e=>{e.ctrl.start({default:k})})},[k]),ni(F,(e,t)=>{if(E.current.size){const e=v.findIndex(e=>e.key===t.key);v.splice(e,1)}}),Bo(()=>{ni(E.current.size?E.current:F,({phase:e,payload:t},n)=>{const{ctrl:r}=n;n.phase=e,g?.add(r),Q&&'enter'==e&&r.start({default:k}),t&&(ns(r,t.ref),!r.ref&&!g||S.current?(r.start(t),S.current&&(S.current=!1)):r.update(t))})},s?void 0:r);const L=t=>e.createElement(e.Fragment,null,v.map((n,r)=>{const{springs:i}=F.get(n)||n.ctrl,o=t({...i},n.item,n,r);return o&&o.type?e.createElement(o.type,{...o.props,key:ei.str(n.key)||ei.num(n.key)?n.key:n.ctrl.id,ref:o.ref}):o}));return g?[L,g]:L}var $s=1;var ea=class extends ys{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=Ri(...t);const n=this._get(),r=Mo(n);So(this,r.create(n))}advance(e){const t=this._get();ti(t,this.get())||(Eo(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&na(this._active)&&ra(this)}_get(){const e=ei.arr(this.source)?this.source.map(Zi):ii(Zi(this.source));return this.calc(...e)}_start(){this.idle&&!na(this._active)&&(this.idle=!1,ni(ko(this),e=>{e.done=!1}),Zr.skipAnimation?(Or.batchedUpdates(()=>this.advance()),ra(this)):vi.start(this))}_attach(){let e=1;ni(ii(this.source),t=>{Ji(t)&&ro(t,this),vs(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){ni(ii(this.source),e=>{Ji(e)&&io(e,this)}),this._active.clear(),ra(this)}eventObserved(e){'change'==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):'idle'==e.type?this._active.delete(e.parent):'priority'==e.type&&(this.priority=ii(this.source).reduce((e,t)=>Math.max(e,(vs(t)?t.priority:0)+1),0))}};function ta(e){return!1!==e.idle}function na(e){return!e.size||Array.from(e).every(ta)}function ra(e){e.idle||(e.idle=!0,ni(ko(e),e=>{e.done=!0}),eo(e,{type:'idle',parent:e}))}var ia=(e,...t)=>new ea(e,t);Zr.assign({createStringInterpolator:go,to:(e,t)=>new ea(e,t)});var oa=/^--/;function sa(e,t){return null==t||'boolean'==typeof t||''===t?'':'number'!=typeof t||0===t||oa.test(e)||Aa.hasOwnProperty(e)&&Aa[e]?(''+t).trim():t+'px'}var aa={};var Aa={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},la=['Webkit','Ms','Moz','O'];Aa=Object.keys(Aa).reduce((e,t)=>(la.forEach(n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t]),e),Aa);var ca=/^(matrix|translate|scale|rotate|skew)/,ua=/^(translate)/,da=/^(rotate|skew)/,fa=(e,t)=>ei.num(e)&&0!==e?e+t:e,ha=(e,t)=>ei.arr(e)?e.every(e=>ha(e,t)):ei.num(e)?e===t:parseFloat(e)===t,pa=class extends Io{constructor({x:e,y:t,z:n,...r}){const i=[],o=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),o.push(e=>[`translate3d(${e.map(e=>fa(e,'px')).join(',')})`,ha(e,0)])),ri(r,(e,t)=>{if('transform'===t)i.push([e||'']),o.push(e=>[e,''===e]);else if(ca.test(t)){if(delete r[t],ei.und(e))return;const n=ua.test(t)?'px':da.test(t)?'deg':'';i.push(ii(e)),o.push('rotate3d'===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${fa(i,n)})`,ha(i,0)]:e=>[`${t}(${e.map(e=>fa(e,n)).join(',')})`,ha(e,t.startsWith('scale')?1:0)])}}),i.length&&(r.transform=new ga(i,o)),super(r)}},ga=class extends to{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e='',t=!0;return ni(this.inputs,(n,r)=>{const i=Zi(n[0]),[o,s]=this.transforms[r](ei.arr(i)?i:n.map(Zi));e+=' '+o,t=t&&s}),t?'none':e}observerAdded(e){1==e&&ni(this.inputs,e=>ni(e,e=>Ji(e)&&ro(e,this)))}observerRemoved(e){0==e&&ni(this.inputs,e=>ni(e,e=>Ji(e)&&io(e,this)))}eventObserved(e){'change'==e.type&&(this._value=null),eo(this,e)}};Zr.assign({batchedUpdates:y,createStringInterpolator:go,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});var ma=((e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new Io(e),getComponentProps:r=e=>e}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=e=>{const t=Ho(e)||'Anonymous';return(e=ei.str(e)?o[e]||(o[e]=Do(e,i)):e[Ro]||(e[Ro]=Do(e,i))).displayName=`Animated(${t})`,e};return ri(e,(t,n)=>{ei.arr(e)&&(n=Ho(t)),o[n]=o(t)}),{animated:o}})(['a','abbr','address','area','article','aside','audio','b','base','bdi','bdo','big','blockquote','body','br','button','canvas','caption','cite','code','col','colgroup','data','datalist','dd','del','details','dfn','dialog','div','dl','dt','em','embed','fieldset','figcaption','figure','footer','form','h1','h2','h3','h4','h5','h6','head','header','hgroup','hr','html','i','iframe','img','input','ins','kbd','keygen','label','legend','li','link','main','map','mark','menu','menuitem','meta','meter','nav','noscript','object','ol','optgroup','option','output','p','param','picture','pre','progress','q','rp','rt','ruby','s','samp','script','section','select','small','source','span','strong','style','sub','summary','sup','table','tbody','td','textarea','tfoot','th','thead','time','title','tr','track','u','ul','var','video','wbr','circle','clipPath','defs','ellipse','foreignObject','g','image','line','linearGradient','mask','path','pattern','polygon','polyline','radialGradient','rect','stop','svg','text','tspan'],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n='filter'===e.nodeName||e.parentNode&&'filter'===e.parentNode.nodeName,{className:r,style:i,children:o,scrollTop:s,scrollLeft:a,viewBox:A,...l}=t,c=Object.values(l),u=Object.keys(l).map(t=>n||e.hasAttribute(t)?t:aa[t]||(aa[t]=t.replace(/([A-Z])/g,e=>'-'+e.toLowerCase())));void 0!==o&&(e.textContent=o);for(const t in i)if(i.hasOwnProperty(t)){const n=sa(t,i[t]);oa.test(t)?e.style.setProperty(t,n):e.style[t]=n}u.forEach((t,n)=>{e.setAttribute(t,c[n])}),void 0!==r&&(e.className=r),void 0!==s&&(e.scrollTop=s),void 0!==a&&(e.scrollLeft=a),void 0!==A&&e.setAttribute('viewBox',A)},createAnimatedStyle:e=>new pa(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),va=ma.animated;function ba(){return ba=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},ba.apply(this,arguments)}var ya={pointerEvents:'none',position:'absolute',zIndex:10,top:0,left:0},wa=function(e,t){return'translate('+e+'px, '+t+'px)'},Ba=f(function(e){var t,n=e.position,r=e.anchor,i=e.children,s=dC(),a=zx(),A=a.animate,l=a.config,c=sC(),u=c[0],d=c[1],f=o(!1),h=void 0,p=!1,g=d.width>0&&d.height>0,m=Math.round(n[0]),v=Math.round(n[1]);g&&('top'===r?(m-=d.width/2,v-=d.height+14):'right'===r?(m+=14,v-=d.height/2):'bottom'===r?(m-=d.width/2,v+=14):'left'===r?(m-=d.width+14,v-=d.height/2):'center'===r&&(m-=d.width/2,v-=d.height/2),h={transform:wa(m,v)},f.current||(p=!0),f.current=[m,v]);var b=Js({to:h,config:l,immediate:!A||p}),y=ba({},ya,s.tooltip,{transform:null!=(t=b.transform)?t:wa(m,v)});return w(va.div,{ref:u,style:y,children:i})});Ba.displayName='TooltipWrapper';var xa=f(function(e){var t=e.size,n=void 0===t?12:t,r=e.color,i=e.style;return w('span',{style:ba({display:'block',width:n,height:n,background:r},void 0===i?{}:i)})}),Ca=f(function(e){var t,n=e.id,r=e.value,i=e.format,o=e.enableChip,s=void 0!==o&&o,a=e.color,A=e.renderContent,l=dC(),c=AC(i);if('function'==typeof A)t=A();else{var u=r;void 0!==c&&void 0!==u&&(u=c(u)),t=B('div',{style:l.tooltip.basic,children:[s&&w(xa,{color:a,style:l.tooltip.chip}),void 0!==u?B('span',{children:[n,': ',w('strong',{children:''+u})]}):n]})}return w('div',{style:l.tooltip.container,children:t})}),_a={width:'100%',borderCollapse:'collapse'},ja=f(function(e){var t,n=e.title,r=e.rows,i=void 0===r?[]:r,o=e.renderContent,s=dC();return i.length?(t='function'==typeof o?o():B('div',{children:[n&&n,w('table',{style:ba({},_a,s.tooltip.table),children:w('tbody',{children:i.map(function(e,t){return w('tr',{children:e.map(function(e,t){return w('td',{style:s.tooltip.tableCell,children:e},t)})},t)})})})]}),w('div',{style:s.tooltip.container,children:t})):null});ja.displayName='TableTooltip';var Fa=f(function(e){var t=e.x0,n=e.x1,r=e.y0,i=e.y1,o=dC(),s=zx(),a=s.animate,A=s.config,l=d(function(){return ba({},o.crosshair.line,{pointerEvents:'none'})},[o.crosshair.line]),c=Js({x1:t,x2:n,y1:r,y2:i,config:A,immediate:!a});return w(va.line,ba({},c,{fill:'none',style:l}))});Fa.displayName='CrosshairLine';var Ea=f(function(e){var t,n,r=e.width,i=e.height,o=e.type,s=e.x,a=e.y;return'cross'===o?(t={x0:s,x1:s,y0:0,y1:i},n={x0:0,x1:r,y0:a,y1:a}):'top-left'===o?(t={x0:s,x1:s,y0:0,y1:a},n={x0:0,x1:s,y0:a,y1:a}):'top'===o?t={x0:s,x1:s,y0:0,y1:a}:'top-right'===o?(t={x0:s,x1:s,y0:0,y1:a},n={x0:s,x1:r,y0:a,y1:a}):'right'===o?n={x0:s,x1:r,y0:a,y1:a}:'bottom-right'===o?(t={x0:s,x1:s,y0:a,y1:i},n={x0:s,x1:r,y0:a,y1:a}):'bottom'===o?t={x0:s,x1:s,y0:a,y1:i}:'bottom-left'===o?(t={x0:s,x1:s,y0:a,y1:i},n={x0:0,x1:s,y0:a,y1:a}):'left'===o?n={x0:0,x1:s,y0:a,y1:a}:'x'===o?t={x0:s,x1:s,y0:0,y1:i}:'y'===o&&(n={x0:0,x1:r,y0:a,y1:a}),B(x,{children:[t&&w(Fa,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),n&&w(Fa,{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1})]})});Ea.displayName='Crosshair';var Sa=h({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),ka={isVisible:!1,position:[null,null],content:null,anchor:null},Ua=h(ka),Qa=function(){var e=u(Sa);if(void 0===e)throw new Error('useTooltip must be used within a TooltipProvider');return e},La=function(){var e=function(){var e=u(Ua);if(void 0===e)throw new Error('useTooltipState must be used within a TooltipProvider');return e}();return function(e){return e.isVisible}(e)?w(Ba,{position:e.position,anchor:e.anchor,children:e.content}):null},Oa=function(e){var t=e.container,r=e.children,i=function(e){var t=n(ka),r=t[0],i=t[1],o=s(function(e,t,n){var r=t[0],o=t[1];void 0===n&&(n='top'),i({isVisible:!0,position:[r,o],anchor:n,content:e})},[i]),a=s(function(t,n,r){void 0===r&&(r='top');var o=e.current.getBoundingClientRect(),s=e.current.offsetWidth,a=s===o.width?1:s/o.width,A=(n.clientX-o.left)*a,l=(n.clientY-o.top)*a;'left'!==r&&'right'!==r||(r=A<o.width/2?'right':'left'),i({isVisible:!0,position:[A,l],anchor:r,content:t})},[e,i]),A=s(function(){i(ka)},[i]);return{actions:d(function(){return{showTooltipAt:o,showTooltipFromEvent:a,hideTooltip:A}},[o,a,A]),state:r}}(t),o=i.actions,a=i.state;return w(Sa.Provider,{value:o,children:w(Ua.Provider,{value:a,children:r})})};var Ia=function(){this.__data__=[],this.size=0};var Na=function(e,t){return e===t||e!=e&&t!=t},Ta=Na;var Ma=function(e,t){for(var n=e.length;n--;)if(Ta(e[n][0],t))return n;return-1},Da=Ma,Pa=Array.prototype.splice;var Ra=Ma;var Ha=Ma;var za=Ma;var Va=Ia,Ka=function(e){var t=this.__data__,n=Da(t,e);return!(n<0)&&(n==t.length-1?t.pop():Pa.call(t,n,1),--this.size,!0)},qa=function(e){var t=this.__data__,n=Ra(t,e);return n<0?void 0:t[n][1]},Ga=function(e){return Ha(this.__data__,e)>-1},Wa=function(e,t){var n=this.__data__,r=za(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function Ya(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ya.prototype.clear=Va,Ya.prototype.delete=Ka,Ya.prototype.get=qa,Ya.prototype.has=Ga,Ya.prototype.set=Wa;var Xa=Ya,Ja=Xa;var Za=function(){this.__data__=new Ja,this.size=0};var $a=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var eA=function(e){return this.__data__.get(e)};var tA=function(e){return this.__data__.has(e)},nA='object'==typeof ir&&ir&&ir.Object===Object&&ir,rA=nA,iA='object'==typeof self&&self&&self.Object===Object&&self,oA=rA||iA||Function('return this')(),sA=oA.Symbol,aA=sA,AA=Object.prototype,lA=AA.hasOwnProperty,cA=AA.toString,uA=aA?aA.toStringTag:void 0;var dA=function(e){var t=lA.call(e,uA),n=e[uA];try{e[uA]=void 0;var r=!0}catch(e){}var i=cA.call(e);return r&&(t?e[uA]=n:delete e[uA]),i},fA=Object.prototype.toString;var hA=dA,pA=function(e){return fA.call(e)},gA=sA?sA.toStringTag:void 0;var mA=function(e){return null==e?void 0===e?'[object Undefined]':'[object Null]':gA&&gA in Object(e)?hA(e):pA(e)};var vA=function(e){var t=typeof e;return null!=e&&('object'==t||'function'==t)},bA=mA,yA=vA;var wA,BA=function(e){if(!yA(e))return!1;var t=bA(e);return'[object Function]'==t||'[object GeneratorFunction]'==t||'[object AsyncFunction]'==t||'[object Proxy]'==t},xA=or(BA),CA=oA['__core-js_shared__'],_A=(wA=/[^.]+$/.exec(CA&&CA.keys&&CA.keys.IE_PROTO||''))?'Symbol(src)_1.'+wA:'';var jA=function(e){return!!_A&&_A in e},FA=Function.prototype.toString;var EA=function(e){if(null!=e){try{return FA.call(e)}catch(e){}try{return e+''}catch(e){}}return''},SA=BA,kA=jA,UA=vA,QA=EA,LA=/^\[object .+?Constructor\]$/,OA=Function.prototype,IA=Object.prototype,NA=OA.toString,TA=IA.hasOwnProperty,MA=RegExp('^'+NA.call(TA).replace(/[\\^$.*+?()[\]{}|]/g,'\\$&').replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,'$1.*?')+'$');var DA=function(e,t){return null==e?void 0:e[t]},PA=function(e){return!(!UA(e)||kA(e))&&(SA(e)?MA:LA).test(QA(e))},RA=DA;var HA=function(e,t){var n=RA(e,t);return PA(n)?n:void 0},zA=HA(oA,'Map'),VA=HA(Object,'create'),KA=VA;var qA=function(){this.__data__=KA?KA(null):{},this.size=0};var GA=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},WA=VA,YA=Object.prototype.hasOwnProperty;var XA=function(e){var t=this.__data__;if(WA){var n=t[e];return'__lodash_hash_undefined__'===n?void 0:n}return YA.call(t,e)?t[e]:void 0},JA=VA,ZA=Object.prototype.hasOwnProperty;var $A=VA;var el=qA,tl=GA,nl=XA,rl=function(e){var t=this.__data__;return JA?void 0!==t[e]:ZA.call(t,e)},il=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=$A&&void 0===t?'__lodash_hash_undefined__':t,this};function ol(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ol.prototype.clear=el,ol.prototype.delete=tl,ol.prototype.get=nl,ol.prototype.has=rl,ol.prototype.set=il;var sl=ol,al=Xa,Al=zA;var ll=function(e){var t=typeof e;return'string'==t||'number'==t||'symbol'==t||'boolean'==t?'__proto__'!==e:null===e};var cl=function(e,t){var n=e.__data__;return ll(t)?n['string'==typeof t?'string':'hash']:n.map},ul=cl;var dl=cl;var fl=cl;var hl=cl;var pl=function(){this.size=0,this.__data__={hash:new sl,map:new(Al||al),string:new sl}},gl=function(e){var t=ul(this,e).delete(e);return this.size-=t?1:0,t},ml=function(e){return dl(this,e).get(e)},vl=function(e){return fl(this,e).has(e)},bl=function(e,t){var n=hl(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function yl(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}yl.prototype.clear=pl,yl.prototype.delete=gl,yl.prototype.get=ml,yl.prototype.has=vl,yl.prototype.set=bl;var wl=yl,Bl=Xa,xl=zA,Cl=wl;var _l=Xa,jl=Za,Fl=$a,El=eA,Sl=tA,kl=function(e,t){var n=this.__data__;if(n instanceof Bl){var r=n.__data__;if(!xl||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Cl(r)}return n.set(e,t),this.size=n.size,this};function Ul(e){var t=this.__data__=new _l(e);this.size=t.size}Ul.prototype.clear=jl,Ul.prototype.delete=Fl,Ul.prototype.get=El,Ul.prototype.has=Sl,Ul.prototype.set=kl;var Ql=Ul,Ll=HA,Ol=function(){try{var e=Ll(Object,'defineProperty');return e({},'',{}),e}catch(e){}}(),Il=Ol;var Nl=function(e,t,n){'__proto__'==t&&Il?Il(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},Tl=Nl,Ml=Na;var Dl=function(e,t,n){(void 0!==n&&!Ml(e[t],n)||void 0===n&&!(t in e))&&Tl(e,t,n)};var Pl=function(e){return function(t,n,r){for(var i=-1,o=Object(t),s=r(t),a=s.length;a--;){var A=s[e?a:++i];if(!1===n(o[A],A,o))break}return t}},Rl=Pl(),Hl={exports:{}};!function(e,t){var n=oA,r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r?n.Buffer:void 0,s=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}}(Hl,Hl.exports);var zl=Hl.exports,Vl=oA.Uint8Array,Kl=Vl;var ql=function(e){var t=new e.constructor(e.byteLength);return new Kl(t).set(new Kl(e)),t},Gl=ql;var Wl=function(e,t){var n=t?Gl(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var Yl=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},Xl=vA,Jl=Object.create,Zl=function(){function e(){}return function(t){if(!Xl(t))return{};if(Jl)return Jl(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),$l=Zl;var ec=function(e,t){return function(n){return e(t(n))}},tc=ec(Object.getPrototypeOf,Object),nc=Object.prototype;var rc=function(e){var t=e&&e.constructor;return e===('function'==typeof t&&t.prototype||nc)},ic=$l,oc=tc,sc=rc;var ac=function(e){return'function'!=typeof e.constructor||sc(e)?{}:ic(oc(e))};var Ac=function(e){return null!=e&&'object'==typeof e},lc=mA,cc=Ac;var uc=function(e){return cc(e)&&'[object Arguments]'==lc(e)},dc=Ac,fc=Object.prototype,hc=fc.hasOwnProperty,pc=fc.propertyIsEnumerable,gc=uc(function(){return arguments}())?uc:function(e){return dc(e)&&hc.call(e,'callee')&&!pc.call(e,'callee')},mc=Array.isArray;var vc=function(e){return'number'==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},bc=BA,yc=vc;var wc=function(e){return null!=e&&yc(e.length)&&!bc(e)},Bc=wc,xc=Ac;var Cc=function(e){return xc(e)&&Bc(e)},_c={exports:{}};var jc=function(){return!1};!function(e,t){var n=oA,r=jc,i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,s=o&&o.exports===i?n.Buffer:void 0,a=(s?s.isBuffer:void 0)||r;e.exports=a}(_c,_c.exports);var Fc=_c.exports,Ec=mA,Sc=tc,kc=Ac,Uc=Function.prototype,Qc=Object.prototype,Lc=Uc.toString,Oc=Qc.hasOwnProperty,Ic=Lc.call(Object);var Nc=function(e){if(!kc(e)||'[object Object]'!=Ec(e))return!1;var t=Sc(e);if(null===t)return!0;var n=Oc.call(t,'constructor')&&t.constructor;return'function'==typeof n&&n instanceof n&&Lc.call(n)==Ic},Tc=or(Nc),Mc=mA,Dc=vc,Pc=Ac,Rc={};Rc['[object Float32Array]']=Rc['[object Float64Array]']=Rc['[object Int8Array]']=Rc['[object Int16Array]']=Rc['[object Int32Array]']=Rc['[object Uint8Array]']=Rc['[object Uint8ClampedArray]']=Rc['[object Uint16Array]']=Rc['[object Uint32Array]']=!0,Rc['[object Arguments]']=Rc['[object Array]']=Rc['[object ArrayBuffer]']=Rc['[object Boolean]']=Rc['[object DataView]']=Rc['[object Date]']=Rc['[object Error]']=Rc['[object Function]']=Rc['[object Map]']=Rc['[object Number]']=Rc['[object Object]']=Rc['[object RegExp]']=Rc['[object Set]']=Rc['[object String]']=Rc['[object WeakMap]']=!1;var Hc=function(e){return Pc(e)&&Dc(e.length)&&!!Rc[Mc(e)]};var zc=function(e){return function(t){return e(t)}},Vc={exports:{}};!function(e,t){var n=nA,r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r&&n.process,s=function(){try{var e=i&&i.require&&i.require('util').types;return e||o&&o.binding&&o.binding('util')}catch(e){}}();e.exports=s}(Vc,Vc.exports);var Kc=Vc.exports,qc=Hc,Gc=zc,Wc=Kc&&Kc.isTypedArray,Yc=Wc?Gc(Wc):qc;var Xc=function(e,t){if(('constructor'!==t||'function'!=typeof e[t])&&'__proto__'!=t)return e[t]},Jc=Nl,Zc=Na,$c=Object.prototype.hasOwnProperty;var eu=function(e,t,n){var r=e[t];$c.call(e,t)&&Zc(r,n)&&(void 0!==n||t in e)||Jc(e,t,n)},tu=eu,nu=Nl;var ru=function(e,t,n,r){var i=!n;n||(n={});for(var o=-1,s=t.length;++o<s;){var a=t[o],A=r?r(n[a],e[a],a,n,e):void 0;void 0===A&&(A=e[a]),i?nu(n,a,A):tu(n,a,A)}return n};var iu=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},ou=/^(?:0|[1-9]\d*)$/;var su=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&('number'==n||'symbol'!=n&&ou.test(e))&&e>-1&&e%1==0&&e<t},au=iu,Au=gc,lu=mc,cu=Fc,uu=su,du=Yc,fu=Object.prototype.hasOwnProperty;var hu=function(e,t){var n=lu(e),r=!n&&Au(e),i=!n&&!r&&cu(e),o=!n&&!r&&!i&&du(e),s=n||r||i||o,a=s?au(e.length,String):[],A=a.length;for(var l in e)!t&&!fu.call(e,l)||s&&('length'==l||i&&('offset'==l||'parent'==l)||o&&('buffer'==l||'byteLength'==l||'byteOffset'==l)||uu(l,A))||a.push(l);return a};var pu=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},gu=vA,mu=rc,vu=pu,bu=Object.prototype.hasOwnProperty;var yu=function(e){if(!gu(e))return vu(e);var t=mu(e),n=[];for(var r in e)('constructor'!=r||!t&&bu.call(e,r))&&n.push(r);return n},wu=hu,Bu=yu,xu=wc;var Cu=function(e){return xu(e)?wu(e,!0):Bu(e)},_u=ru,ju=Cu;var Fu=Dl,Eu=zl,Su=Wl,ku=Yl,Uu=ac,Qu=gc,Lu=mc,Ou=Cc,Iu=Fc,Nu=BA,Tu=vA,Mu=Nc,Du=Yc,Pu=Xc,Ru=function(e){return _u(e,ju(e))};var Hu=function(e,t,n,r,i,o,s){var a=Pu(e,n),A=Pu(t,n),l=s.get(A);if(l)Fu(e,n,l);else{var c=o?o(a,A,n+'',e,t,s):void 0,u=void 0===c;if(u){var d=Lu(A),f=!d&&Iu(A),h=!d&&!f&&Du(A);c=A,d||f||h?Lu(a)?c=a:Ou(a)?c=ku(a):f?(u=!1,c=Eu(A,!0)):h?(u=!1,c=Su(A,!0)):c=[]:Mu(A)||Qu(A)?(c=a,Qu(a)?c=Ru(a):Tu(a)&&!Nu(a)||(c=Uu(A))):u=!1}u&&(s.set(A,c),i(c,A,r,o,s),s.delete(A)),Fu(e,n,c)}},zu=Ql,Vu=Dl,Ku=Rl,qu=Hu,Gu=vA,Wu=Cu,Yu=Xc;var Xu=function e(t,n,r,i,o){t!==n&&Ku(n,function(s,a){if(o||(o=new zu),Gu(s))qu(t,n,a,r,e,i,o);else{var A=i?i(Yu(t,a),s,a+'',t,n,o):void 0;void 0===A&&(A=s),Vu(t,a,A)}},Wu)};var Ju=function(e){return e};var Zu=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},$u=Math.max;var ed=function(e,t,n){return t=$u(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=$u(r.length-t,0),s=Array(o);++i<o;)s[i]=r[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=r[i];return a[t]=n(s),Zu(e,this,a)}};var td=function(e){return function(){return e}},nd=Ol,rd=nd?function(e,t){return nd(e,'toString',{configurable:!0,enumerable:!1,value:td(t),writable:!0})}:Ju,id=rd,od=Date.now;var sd=function(e){var t=0,n=0;return function(){var r=od(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(id),ad=Ju,Ad=ed,ld=sd;var cd=function(e,t){return ld(Ad(e,t,ad),e+'')},ud=Na,dd=wc,fd=su,hd=vA;var pd=function(e,t,n){if(!hd(n))return!1;var r=typeof t;return!!('number'==r?dd(n)&&fd(t,n.length):'string'==r&&t in n)&&ud(n[t],e)},gd=cd,md=pd;var vd=function(e){return gd(function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(o=e.length>3&&'function'==typeof o?(i--,o):void 0,s&&md(n[0],n[1],s)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var a=n[r];a&&e(t,a,r,o)}return t})},bd=Xu,yd=vd(function(e,t,n){bd(e,t,n)}),wd=or(yd),Bd=mA,xd=Ac;var Cd=function(e){return'symbol'==typeof e||xd(e)&&'[object Symbol]'==Bd(e)},_d=mc,jd=Cd,Fd=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ed=/^\w*$/;var Sd=function(e,t){if(_d(e))return!1;var n=typeof e;return!('number'!=n&&'symbol'!=n&&'boolean'!=n&&null!=e&&!jd(e))||(Ed.test(e)||!Fd.test(e)||null!=t&&e in Object(t))},kd=wl;function Ud(e,t){if('function'!=typeof e||null!=t&&'function'!=typeof t)throw new TypeError('Expected a function');var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(Ud.Cache||kd),n}Ud.Cache=kd;var Qd=Ud;var Ld=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Od=/\\(\\)?/g,Id=function(e){var t=Qd(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(''),e.replace(Ld,function(e,n,r,i){t.push(r?i.replace(Od,'$1'):n||e)}),t}),Nd=Id;var Td=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i},Md=Td,Dd=mc,Pd=Cd,Rd=sA?sA.prototype:void 0,Hd=Rd?Rd.toString:void 0;var zd=function e(t){if('string'==typeof t)return t;if(Dd(t))return Md(t,e)+'';if(Pd(t))return Hd?Hd.call(t):'';var n=t+'';return'0'==n&&1/t==-1/0?'-0':n},Vd=zd;var Kd=mc,qd=Sd,Gd=Nd,Wd=function(e){return null==e?'':Vd(e)};var Yd=function(e,t){return Kd(e)?e:qd(e,t)?[e]:Gd(Wd(e))},Xd=Cd;var Jd=function(e){if('string'==typeof e||Xd(e))return e;var t=e+'';return'0'==t&&1/e==-1/0?'-0':t},Zd=Yd,$d=Jd;var ef=function(e,t){for(var n=0,r=(t=Zd(t,e)).length;null!=e&&n<r;)e=e[$d(t[n++])];return n&&n==r?e:void 0},tf=ef;var nf=function(e,t,n){var r=null==e?void 0:tf(e,t);return void 0===r?n:r},rf=or(nf),of=eu,sf=Yd,af=su,Af=vA,lf=Jd;var cf=function(e,t,n,r){if(!Af(e))return e;for(var i=-1,o=(t=sf(t,e)).length,s=o-1,a=e;null!=a&&++i<o;){var A=lf(t[i]),l=n;if('__proto__'===A||'constructor'===A||'prototype'===A)return e;if(i!=s){var c=a[A];void 0===(l=r?r(c,A,a):void 0)&&(l=Af(c)?c:af(t[i+1])?[]:{})}of(a,A,l),a=a[A]}return e},uf=cf;var df=function(e,t,n){return null==e?e:uf(e,t,n)},ff=or(df);function hf(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function pf(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function gf(){}var mf=.7,vf=1/mf,bf='\\s*([+-]?\\d+)\\s*',yf='\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*',wf='\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*',Bf=/^#([0-9a-f]{3,8})$/,xf=new RegExp(`^rgb\\(${bf},${bf},${bf}\\)$`),Cf=new RegExp(`^rgb\\(${wf},${wf},${wf}\\)$`),_f=new RegExp(`^rgba\\(${bf},${bf},${bf},${yf}\\)$`),jf=new RegExp(`^rgba\\(${wf},${wf},${wf},${yf}\\)$`),Ff=new RegExp(`^hsl\\(${yf},${wf},${wf}\\)$`),Ef=new RegExp(`^hsla\\(${yf},${wf},${wf},${yf}\\)$`),Sf={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 kf(){return this.rgb().formatHex()}function Uf(){return this.rgb().formatRgb()}function Qf(e){var t,n;return e=(e+'').trim().toLowerCase(),(t=Bf.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Lf(t):3===n?new Nf(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Of(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Of(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=xf.exec(e))?new Nf(t[1],t[2],t[3],1):(t=Cf.exec(e))?new Nf(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=_f.exec(e))?Of(t[1],t[2],t[3],t[4]):(t=jf.exec(e))?Of(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Ff.exec(e))?Hf(t[1],t[2]/100,t[3]/100,1):(t=Ef.exec(e))?Hf(t[1],t[2]/100,t[3]/100,t[4]):Sf.hasOwnProperty(e)?Lf(Sf[e]):'transparent'===e?new Nf(NaN,NaN,NaN,0):null}function Lf(e){return new Nf(e>>16&255,e>>8&255,255&e,1)}function Of(e,t,n,r){return r<=0&&(e=t=n=NaN),new Nf(e,t,n,r)}function If(e,t,n,r){return 1===arguments.length?function(e){return e instanceof gf||(e=Qf(e)),e?new Nf((e=e.rgb()).r,e.g,e.b,e.opacity):new Nf}(e):new Nf(e,t,n,null==r?1:r)}function Nf(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Tf(){return`#${Rf(this.r)}${Rf(this.g)}${Rf(this.b)}`}function Mf(){const e=Df(this.opacity);return`${1===e?'rgb(':'rgba('}${Pf(this.r)}, ${Pf(this.g)}, ${Pf(this.b)}${1===e?')':`, ${e})`}`}function Df(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Pf(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Rf(e){return((e=Pf(e))<16?'0':'')+e.toString(16)}function Hf(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Vf(e,t,n,r)}function zf(e){if(e instanceof Vf)return new Vf(e.h,e.s,e.l,e.opacity);if(e instanceof gf||(e=Qf(e)),!e)return new Vf;if(e instanceof Vf)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),s=NaN,a=o-i,A=(o+i)/2;return a?(s=t===o?(n-r)/a+6*(n<r):n===o?(r-t)/a+2:(t-n)/a+4,a/=A<.5?o+i:2-o-i,s*=60):a=A>0&&A<1?0:s,new Vf(s,a,A,e.opacity)}function Vf(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Kf(e){return(e=(e||0)%360)<0?e+360:e}function qf(e){return Math.max(0,Math.min(1,e||0))}function Gf(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}hf(gf,Qf,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:kf,formatHex:kf,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return zf(this).formatHsl()},formatRgb:Uf,toString:Uf}),hf(Nf,If,pf(gf,{brighter(e){return e=null==e?vf:Math.pow(vf,e),new Nf(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?mf:Math.pow(mf,e),new Nf(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Nf(Pf(this.r),Pf(this.g),Pf(this.b),Df(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:Tf,formatHex:Tf,formatHex8:function(){return`#${Rf(this.r)}${Rf(this.g)}${Rf(this.b)}${Rf(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Mf,toString:Mf})),hf(Vf,function(e,t,n,r){return 1===arguments.length?zf(e):new Vf(e,t,n,null==r?1:r)},pf(gf,{brighter(e){return e=null==e?vf:Math.pow(vf,e),new Vf(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?mf:Math.pow(mf,e),new Vf(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 Nf(Gf(e>=240?e-240:e+120,i,r),Gf(e,i,r),Gf(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Vf(Kf(this.h),qf(this.s),qf(this.l),Df(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=Df(this.opacity);return`${1===e?'hsl(':'hsla('}${Kf(this.h)}, ${100*qf(this.s)}%, ${100*qf(this.l)}%${1===e?')':`, ${e})`}`}}));var Wf=e=>()=>e;function Yf(e){return 1===(e=+e)?Xf: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):Wf(isNaN(t)?n:t)}}function Xf(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Wf(isNaN(e)?t:e)}!function e(t){var n=Yf(t);function r(e,t){var r=n((e=If(e)).r,(t=If(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),s=Xf(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=s(t),e+''}}return r.gamma=e,r}(1);var Jf,Zf=(Jf=function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],s=r>0?e[r-1]:2*i-o,a=r<t-1?e[r+2]:2*o-i;return function(e,t,n,r,i){var o=e*e,s=o*e;return((1-3*e+3*o-s)*t+(4-6*o+3*s)*n+(1+3*e+3*o-3*s)*r+s*i)/6}((n-r/t)*t,s,i,o,a)}},function(e){var t,n,r=e.length,i=new Array(r),o=new Array(r),s=new Array(r);for(t=0;t<r;++t)n=If(e[t]),i[t]=n.r||0,o[t]=n.g||0,s[t]=n.b||0;return i=Jf(i),o=Jf(o),s=Jf(s),n.opacity=1,function(e){return n.r=i(e),n.g=o(e),n.b=s(e),n+''}});function $f(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var eh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,th=new RegExp(eh.source,'g');var nh=mA,rh=mc,ih=Ac;var oh=or(function(e){return'string'==typeof e||!rh(e)&&ih(e)&&'[object String]'==nh(e)});var sh=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},ah=or(sh);function Ah(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function lh(e){let t=e,n=e;function r(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){const o=r+i>>>1;n(e[o],t)<0?r=o+1:i=o}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=function(e){return(t,n)=>Ah(e(t),n)}(e)),{left:r,center:function(e,n,i,o){null==i&&(i=0),null==o&&(o=e.length);const s=r(e,n,i,o-1);return s>i&&t(e[s-1],n)>-t(e[s],n)?s-1:s},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){const o=r+i>>>1;n(e[o],t)>0?i=o:r=o+1}return r}}}const ch=lh(Ah).right;lh(function(e){return null===e?NaN:+e}).center;var uh=ch,dh=Math.sqrt(50),fh=Math.sqrt(10),hh=Math.sqrt(2);function ph(e,t,n){var r,i,o,s,a=-1;if(n=+n,(e=+e)===(t=+t)&&n>0)return[e];if((r=t<e)&&(i=e,e=t,t=i),0===(s=gh(e,t,n))||!isFinite(s))return[];if(s>0){let n=Math.round(e/s),r=Math.round(t/s);for(n*s<e&&++n,r*s>t&&--r,o=new Array(i=r-n+1);++a<i;)o[a]=(n+a)*s}else{s=-s;let n=Math.round(e*s),r=Math.round(t*s);for(n/s<e&&++n,r/s>t&&--r,o=new Array(i=r-n+1);++a<i;)o[a]=(n+a)/s}return r&&o.reverse(),o}function gh(e,t,n){var r=(t-e)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=dh?10:o>=fh?5:o>=hh?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=dh?10:o>=fh?5:o>=hh?2:1)}function mh(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=dh?i*=10:o>=fh?i*=5:o>=hh&&(i*=2),t<e?-i:i}function vh(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}const bh=Symbol('implicit');function yh(){var e=new Map,t=[],n=[],r=bh;function i(i){var o=i+'',s=e.get(o);if(!s){if(r!==bh)return r;e.set(o,s=t.push(i))}return n[(s-1)%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new Map;for(const r of n){const n=r+'';e.has(n)||e.set(n,t.push(r))}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 yh(t,n).unknown(r)},vh.apply(i,arguments),i}function wh(){var e,t,n=yh().unknown(void 0),r=n.domain,i=n.range,o=0,s=1,a=!1,A=0,l=0,c=.5;function u(){var n=r().length,u=s<o,d=u?s:o,f=u?o:s;e=(f-d)/Math.max(1,n-A+2*l),a&&(e=Math.floor(e)),d+=(f-d-e*(n-A))*c,t=e*(1-A),a&&(d=Math.round(d),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 d+e*t});return i(u?h.reverse():h)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),u()):r()},n.range=function(e){return arguments.length?([o,s]=e,o=+o,s=+s,u()):[o,s]},n.rangeRound=function(e){return[o,s]=e,o=+o,s=+s,a=!0,u()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(a=!!e,u()):a},n.padding=function(e){return arguments.length?(A=Math.min(1,l=+e),u()):A},n.paddingInner=function(e){return arguments.length?(A=Math.min(1,e),u()):A},n.paddingOuter=function(e){return arguments.length?(l=+e,u()):l},n.align=function(e){return arguments.length?(c=Math.max(0,Math.min(1,e)),u()):c},n.copy=function(){return wh(r(),[o,s]).round(a).paddingInner(A).paddingOuter(l).align(c)},vh.apply(u(),arguments)}function Bh(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return Bh(t())},e}function xh(){return Bh(wh.apply(null,arguments).paddingInner(1))}function Ch(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function _h(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function jh(){}var Fh=.7,Eh=1/Fh,Sh='\\s*([+-]?\\d+)\\s*',kh='\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*',Uh='\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*',Qh=/^#([0-9a-f]{3,8})$/,Lh=new RegExp('^rgb\\('+[Sh,Sh,Sh]+'\\)$'),Oh=new RegExp('^rgb\\('+[Uh,Uh,Uh]+'\\)$'),Ih=new RegExp('^rgba\\('+[Sh,Sh,Sh,kh]+'\\)$'),Nh=new RegExp('^rgba\\('+[Uh,Uh,Uh,kh]+'\\)$'),Th=new RegExp('^hsl\\('+[kh,Uh,Uh]+'\\)$'),Mh=new RegExp('^hsla\\('+[kh,Uh,Uh,kh]+'\\)$'),Dh={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 Ph(){return this.rgb().formatHex()}function Rh(){return this.rgb().formatRgb()}function Hh(e){var t,n;return e=(e+'').trim().toLowerCase(),(t=Qh.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?zh(t):3===n?new Gh(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Vh(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Vh(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=Lh.exec(e))?new Gh(t[1],t[2],t[3],1):(t=Oh.exec(e))?new Gh(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Ih.exec(e))?Vh(t[1],t[2],t[3],t[4]):(t=Nh.exec(e))?Vh(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Th.exec(e))?Jh(t[1],t[2]/100,t[3]/100,1):(t=Mh.exec(e))?Jh(t[1],t[2]/100,t[3]/100,t[4]):Dh.hasOwnProperty(e)?zh(Dh[e]):'transparent'===e?new Gh(NaN,NaN,NaN,0):null}function zh(e){return new Gh(e>>16&255,e>>8&255,255&e,1)}function Vh(e,t,n,r){return r<=0&&(e=t=n=NaN),new Gh(e,t,n,r)}function Kh(e){return e instanceof jh||(e=Hh(e)),e?new Gh((e=e.rgb()).r,e.g,e.b,e.opacity):new Gh}function qh(e,t,n,r){return 1===arguments.length?Kh(e):new Gh(e,t,n,null==r?1:r)}function Gh(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Wh(){return'#'+Xh(this.r)+Xh(this.g)+Xh(this.b)}function Yh(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?'rgb(':'rgba(')+Math.max(0,Math.min(255,Math.round(this.r)||0))+', '+Math.max(0,Math.min(255,Math.round(this.g)||0))+', '+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?')':', '+e+')')}function Xh(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?'0':'')+e.toString(16)}function Jh(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new $h(e,t,n,r)}function Zh(e){if(e instanceof $h)return new $h(e.h,e.s,e.l,e.opacity);if(e instanceof jh||(e=Hh(e)),!e)return new $h;if(e instanceof $h)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),s=NaN,a=o-i,A=(o+i)/2;return a?(s=t===o?(n-r)/a+6*(n<r):n===o?(r-t)/a+2:(t-n)/a+4,a/=A<.5?o+i:2-o-i,s*=60):a=A>0&&A<1?0:s,new $h(s,a,A,e.opacity)}function $h(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ep(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Ch(jh,Hh,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:Ph,formatHex:Ph,formatHsl:function(){return Zh(this).formatHsl()},formatRgb:Rh,toString:Rh}),Ch(Gh,qh,_h(jh,{brighter:function(e){return e=null==e?Eh:Math.pow(Eh,e),new Gh(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?Fh:Math.pow(Fh,e),new Gh(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Wh,formatHex:Wh,formatRgb:Yh,toString:Yh})),Ch($h,function(e,t,n,r){return 1===arguments.length?Zh(e):new $h(e,t,n,null==r?1:r)},_h(jh,{brighter:function(e){return e=null==e?Eh:Math.pow(Eh,e),new $h(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?Fh:Math.pow(Fh,e),new $h(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Gh(ep(e>=240?e-240:e+120,i,r),ep(e,i,r),ep(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?'hsl(':'hsla(')+(this.h||0)+', '+100*(this.s||0)+'%, '+100*(this.l||0)+'%'+(1===e?')':', '+e+')')}}));const tp=Math.PI/180,np=180/Math.PI;var rp=-.14861,ip=1.78277,op=-.29227,sp=-.90649,ap=1.97294,Ap=ap*sp,lp=ap*ip,cp=ip*op-sp*rp;function up(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof dp)return new dp(e.h,e.s,e.l,e.opacity);e instanceof Gh||(e=Kh(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(cp*r+Ap*t-lp*n)/-5.9615122912,o=r-i,s=(ap*(n-i)-op*o)/sp,a=Math.sqrt(s*s+o*o)/(ap*i*(1-i)),A=a?Math.atan2(s,o)*np-120:NaN;return new dp(A<0?A+360:A,a,i,e.opacity)}(e):new dp(e,t,n,null==r?1:r)}function dp(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Ch(dp,up,_h(jh,{brighter:function(e){return e=null==e?Eh:Math.pow(Eh,e),new dp(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?Fh:Math.pow(Fh,e),new dp(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*tp,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new Gh(255*(t+n*(rp*r+ip*i)),255*(t+n*(op*r+sp*i)),255*(t+n*(ap*r)),this.opacity)}}));var fp=e=>()=>e;function hp(e,t){return function(n){return e+n*t}}function pp(e){return 1===(e=+e)?gp: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):fp(isNaN(t)?n:t)}}function gp(e,t){var n=t-e;return n?hp(e,n):fp(isNaN(e)?t:e)}var mp=function e(t){var n=pp(t);function r(e,t){var r=n((e=qh(e)).r,(t=qh(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),s=gp(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=s(t),e+''}}return r.gamma=e,r}(1);var vp=function(e){return function(t){var n,r,i=t.length,o=new Array(i),s=new Array(i),a=new Array(i);for(n=0;n<i;++n)r=qh(t[n]),o[n]=r.r||0,s[n]=r.g||0,a[n]=r.b||0;return o=e(o),s=e(s),a=e(a),r.opacity=1,function(e){return r.r=o(e),r.g=s(e),r.b=a(e),r+''}}}(function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],s=r>0?e[r-1]:2*i-o,a=r<t-1?e[r+2]:2*o-i;return function(e,t,n,r,i){var o=e*e,s=o*e;return((1-3*e+3*o-s)*t+(4-6*o+3*s)*n+(1+3*e+3*o-3*s)*r+s*i)/6}((n-r/t)*t,s,i,o,a)}});function bp(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 yp(e,t){var n,r=t?t.length:0,i=e?Math.min(r,e.length):0,o=new Array(i),s=new Array(r);for(n=0;n<i;++n)o[n]=Fp(e[n],t[n]);for(;n<r;++n)s[n]=t[n];return function(e){for(n=0;n<i;++n)s[n]=o[n](e);return s}}function wp(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Bp(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function xp(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]=Fp(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}}var Cp=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_p=new RegExp(Cp.source,'g');function jp(e,t){var n,r,i,o=Cp.lastIndex=_p.lastIndex=0,s=-1,a=[],A=[];for(e+='',t+='';(n=Cp.exec(e))&&(r=_p.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),a[s]?a[s]+=i:a[++s]=i),(n=n[0])===(r=r[0])?a[s]?a[s]+=r:a[++s]=r:(a[++s]=null,A.push({i:s,x:Bp(n,r)})),o=_p.lastIndex;return o<t.length&&(i=t.slice(o),a[s]?a[s]+=i:a[++s]=i),a.length<2?A[0]?function(e){return function(t){return e(t)+''}}(A[0].x):function(e){return function(){return e}}(t):(t=A.length,function(e){for(var n,r=0;r<t;++r)a[(n=A[r]).i]=n.x(e);return a.join('')})}function Fp(e,t){var n,r=typeof t;return null==t||'boolean'===r?fp(t):('number'===r?Bp:'string'===r?(n=Hh(t))?(t=n,mp):jp:t instanceof Hh?mp:t instanceof Date?wp:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?bp:Array.isArray(t)?yp:'function'!=typeof t.valueOf&&'function'!=typeof t.toString||isNaN(t)?xp:Bp)(e,t)}function Ep(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Sp(e){return function t(n){function r(t,r){var i=e((t=up(t)).h,(r=up(r)).h),o=gp(t.s,r.s),s=gp(t.l,r.l),a=gp(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=o(e),t.l=s(Math.pow(e,n)),t.opacity=a(e),t+''}}return n=+n,r.gamma=t,r}(1)}Sp(function(e,t){var n=t-e;return n?hp(e,n>180||n<-180?n-360*Math.round(n/360):n):fp(isNaN(e)?t:e)});var kp=Sp(gp);function Up(e){return+e}var Qp=[0,1];function Lp(e){return e}function Op(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function Ip(e,t,n){var r=e[0],i=e[1],o=t[0],s=t[1];return i<r?(r=Op(i,r),o=n(s,o)):(r=Op(r,i),o=n(o,s)),function(e){return o(r(e))}}function Np(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),s=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<r;)i[s]=Op(e[s],e[s+1]),o[s]=n(t[s],t[s+1]);return function(t){var n=uh(e,t,1,r)-1;return o[n](i[n](t))}}function Tp(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Mp(){var e,t,n,r,i,o,s=Qp,a=Qp,A=Fp,l=Lp;function c(){var e=Math.min(s.length,a.length);return l!==Lp&&(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))}}(s[0],s[e-1])),r=e>2?Np:Ip,i=o=null,u}function u(t){return null==t||isNaN(t=+t)?n:(i||(i=r(s.map(e),a,A)))(e(l(t)))}return u.invert=function(n){return l(t((o||(o=r(a,s.map(e),Bp)))(n)))},u.domain=function(e){return arguments.length?(s=Array.from(e,Up),c()):s.slice()},u.range=function(e){return arguments.length?(a=Array.from(e),c()):a.slice()},u.rangeRound=function(e){return a=Array.from(e),A=Ep,c()},u.clamp=function(e){return arguments.length?(l=!!e||Lp,c()):l!==Lp},u.interpolate=function(e){return arguments.length?(A=e,c()):A},u.unknown=function(e){return arguments.length?(n=e,u):n},function(n,r){return e=n,t=r,c()}}function Dp(){return Mp()(Lp,Lp)}function Pp(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 Rp(e){return(e=Pp(Math.abs(e)))?e[1]:NaN}var Hp,zp=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Vp(e){if(!(t=zp.exec(e)))throw new Error('invalid format: '+e);var t;return new Kp({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 Kp(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 qp(e,t){var n=Pp(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')}Vp.prototype=Kp.prototype,Kp.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 Gp={'%':(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)=>qp(100*e,t),r:qp,s:function(e,t){var n=Pp(e,t);if(!n)return e+'';var r=n[0],i=n[1],o=i-(Hp=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,s=r.length;return o===s?r:o>s?r+new Array(o-s+1).join('0'):o>0?r.slice(0,o)+'.'+r.slice(o):'0.'+new Array(1-o).join('0')+Pp(e,Math.max(0,t+o-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Wp(e){return e}var Yp,Xp,Jp,Zp=Array.prototype.map,$p=['y','z','a','f','p','n','µ','m','','k','M','G','T','P','E','Z','Y'];function eg(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?Wp:(t=Zp.call(e.grouping,Number),n=e.thousands+'',function(e,r){for(var i=e.length,o=[],s=0,a=t[0],A=0;i>0&&a>0&&(A+a+1>r&&(a=Math.max(1,r-A)),o.push(e.substring(i-=a,i+a)),!((A+=a+1)>r));)a=t[s=(s+1)%t.length];return o.reverse().join(n)}),i=void 0===e.currency?'':e.currency[0]+'',o=void 0===e.currency?'':e.currency[1]+'',s=void 0===e.decimal?'.':e.decimal+'',a=void 0===e.numerals?Wp:function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}(Zp.call(e.numerals,String)),A=void 0===e.percent?'%':e.percent+'',l=void 0===e.minus?'−':e.minus+'',c=void 0===e.nan?'NaN':e.nan+'';function u(e){var t=(e=Vp(e)).fill,n=e.align,u=e.sign,d=e.symbol,f=e.zero,h=e.width,p=e.comma,g=e.precision,m=e.trim,v=e.type;'n'===v?(p=!0,v='g'):Gp[v]||(void 0===g&&(g=12),m=!0,v='g'),(f||'0'===t&&'='===n)&&(f=!0,t='0',n='=');var b='$'===d?i:'#'===d&&/[boxX]/.test(v)?'0'+v.toLowerCase():'',y='$'===d?o:/[%p]/.test(v)?A:'',w=Gp[v],B=/[defgprs%]/.test(v);function x(e){var i,o,A,d=b,x=y;if('c'===v)x=w(e)+x,e='';else{var C=(e=+e)<0||1/e<0;if(e=isNaN(e)?c:w(Math.abs(e),g),m&&(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)),C&&0===+e&&'+'!==u&&(C=!1),d=(C?'('===u?u:l:'-'===u||'('===u?'':u)+d,x=('s'===v?$p[8+Hp/3]:'')+x+(C&&'('===u?')':''),B)for(i=-1,o=e.length;++i<o;)if(48>(A=e.charCodeAt(i))||A>57){x=(46===A?s+e.slice(i+1):e.slice(i))+x,e=e.slice(0,i);break}}p&&!f&&(e=r(e,1/0));var _=d.length+e.length+x.length,j=_<h?new Array(h-_+1).join(t):'';switch(p&&f&&(e=r(j+e,j.length?h-x.length:1/0),j=''),n){case'<':e=d+e+x+j;break;case'=':e=d+j+e+x;break;case'^':e=j.slice(0,_=j.length>>1)+d+e+x+j.slice(_);break;default:e=j+d+e+x}return a(e)}return g=void 0===g?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),x.toString=function(){return e+''},x}return{format:u,formatPrefix:function(e,t){var n=u(((e=Vp(e)).type='f',e)),r=3*Math.max(-8,Math.min(8,Math.floor(Rp(t)/3))),i=Math.pow(10,-r),o=$p[8+r/3];return function(e){return n(i*e)+o}}}}function tg(e,t,n,r){var i,o=mh(e,t,n);switch((r=Vp(null==r?',f':r)).type){case's':var s=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(Rp(t)/3)))-Rp(Math.abs(e)))}(o,s))||(r.precision=i),Jp(r,s);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,Rp(t)-Rp(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,-Rp(Math.abs(e)))}(o))||(r.precision=i-2*('%'===r.type))}return Xp(r)}function ng(e){var t=e.domain;return e.ticks=function(e){var n=t();return ph(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return tg(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,i,o=t(),s=0,a=o.length-1,A=o[s],l=o[a],c=10;for(l<A&&(i=A,A=l,l=i,i=s,s=a,a=i);c-- >0;){if((i=gh(A,l,n))===r)return o[s]=A,o[a]=l,t(o);if(i>0)A=Math.floor(A/i)*i,l=Math.ceil(l/i)*i;else{if(!(i<0))break;A=Math.ceil(A*i)/i,l=Math.floor(l*i)/i}r=i}return e},e}function rg(){var e=Dp();return e.copy=function(){return Tp(e,rg())},vh.apply(e,arguments),ng(e)}function ig(e,t){var n,r=0,i=(e=e.slice()).length-1,o=e[r],s=e[i];return s<o&&(n=r,r=i,i=n,n=o,o=s,s=n),e[r]=t.floor(o),e[i]=t.ceil(s),e}function og(e){return Math.log(e)}function sg(e){return Math.exp(e)}function ag(e){return-Math.log(-e)}function Ag(e){return-Math.exp(-e)}function lg(e){return isFinite(e)?+('1e'+e):e<0?0:e}function cg(e){return function(t){return-e(-t)}}function ug(e){var t,n,r=e(og,sg),i=r.domain,o=10;function s(){return t=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),function(t){return Math.log(t)/e})}(o),n=function(e){return 10===e?lg:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}(o),i()[0]<0?(t=cg(t),n=cg(n),e(ag,Ag)):e(og,sg),r}return r.base=function(e){return arguments.length?(o=+e,s()):o},r.domain=function(e){return arguments.length?(i(e),s()):i()},r.ticks=function(e){var r,s=i(),a=s[0],A=s[s.length-1];(r=A<a)&&(d=a,a=A,A=d);var l,c,u,d=t(a),f=t(A),h=null==e?10:+e,p=[];if(!(o%1)&&f-d<h){if(d=Math.floor(d),f=Math.ceil(f),a>0){for(;d<=f;++d)for(c=1,l=n(d);c<o;++c)if(!((u=l*c)<a)){if(u>A)break;p.push(u)}}else for(;d<=f;++d)for(c=o-1,l=n(d);c>=1;--c)if(!((u=l*c)<a)){if(u>A)break;p.push(u)}2*p.length<h&&(p=ph(a,A,h))}else p=ph(d,f,Math.min(f-d,h)).map(n);return r?p.reverse():p},r.tickFormat=function(e,i){if(null==i&&(i=10===o?'.0e':','),'function'!=typeof i&&(i=Xp(i)),e===1/0)return i;null==e&&(e=10);var s=Math.max(1,o*e/r.ticks().length);return function(e){var r=e/n(Math.round(t(e)));return r*o<o-.5&&(r*=o),r<=s?i(e):''}},r.nice=function(){return i(ig(i(),{floor:function(e){return n(Math.floor(t(e)))},ceil:function(e){return n(Math.ceil(t(e)))}}))},r}function dg(){var e=ug(Mp()).domain([1,10]);return e.copy=function(){return Tp(e,dg()).base(e.base())},vh.apply(e,arguments),e}function fg(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function hg(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function pg(){var e=function(e){var t=1,n=e(fg(t),hg(t));return n.constant=function(n){return arguments.length?e(fg(t=+n),hg(t)):t},ng(n)}(Mp());return e.copy=function(){return Tp(e,pg()).constant(e.constant())},vh.apply(e,arguments)}Yp=eg({thousands:',',grouping:[3],currency:['$','']}),Xp=Yp.format,Jp=Yp.formatPrefix;var gg=new Date,mg=new Date;function vg(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=function(t){return e(t=new Date(+t)),t},i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},i.range=function(n,r,o){var s,a=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return a;do{a.push(s=new Date(+n)),t(n,o),e(n)}while(s<n&&n<r);return a},i.filter=function(n){return vg(function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})},n&&(i.count=function(t,r){return gg.setTime(+t),mg.setTime(+r),e(gg),e(mg),Math.floor(n(gg,mg))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e===0}:function(t){return i.count(0,t)%e===0}):i:null}),i}var bg=vg(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});bg.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?vg(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):bg:null};var yg=bg;bg.range;const wg=1e3,Bg=6e4,xg=36e5,Cg=864e5,_g=6048e5,jg=2592e6,Fg=31536e6;var Eg=vg(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*wg)},function(e,t){return(t-e)/wg},function(e){return e.getUTCSeconds()}),Sg=Eg;Eg.range;var kg=vg(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*wg)},function(e,t){e.setTime(+e+t*Bg)},function(e,t){return(t-e)/Bg},function(e){return e.getMinutes()}),Ug=kg;kg.range;var Qg=vg(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*wg-e.getMinutes()*Bg)},function(e,t){e.setTime(+e+t*xg)},function(e,t){return(t-e)/xg},function(e){return e.getHours()}),Lg=Qg;Qg.range;var Og=vg(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Bg)/Cg,e=>e.getDate()-1),Ig=Og;function Ng(e){return vg(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Bg)/_g})}Og.range;var Tg=Ng(0),Mg=Ng(1),Dg=Ng(2),Pg=Ng(3),Rg=Ng(4),Hg=Ng(5),zg=Ng(6);Tg.range,Mg.range,Dg.range,Pg.range,Rg.range,Hg.range,zg.range;var Vg=vg(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())},function(e){return e.getMonth()}),Kg=Vg;Vg.range;var qg=vg(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});qg.every=function(e){return isFinite(e=Math.floor(e))&&e>0?vg(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)}):null};var Gg=qg;qg.range;var Wg=vg(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Bg)},function(e,t){return(t-e)/Bg},function(e){return e.getUTCMinutes()}),Yg=Wg;Wg.range;var Xg=vg(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*xg)},function(e,t){return(t-e)/xg},function(e){return e.getUTCHours()}),Jg=Xg;Xg.range;var Zg=vg(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/Cg},function(e){return e.getUTCDate()-1}),$g=Zg;function em(e){return vg(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+7*t)},function(e,t){return(t-e)/_g})}Zg.range;var tm=em(0),nm=em(1),rm=em(2),im=em(3),om=em(4),sm=em(5),am=em(6);tm.range,nm.range,rm.range,im.range,om.range,sm.range,am.range;var Am=vg(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())},function(e){return e.getUTCMonth()}),lm=Am;Am.range;var cm=vg(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});cm.every=function(e){return isFinite(e=Math.floor(e))&&e>0?vg(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null};var um=cm;function dm(e,t,n,r,i,o){const s=[[Sg,1,wg],[Sg,5,5e3],[Sg,15,15e3],[Sg,30,3e4],[o,1,Bg],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,xg],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,Cg],[r,2,1728e5],[n,1,_g],[t,1,jg],[t,3,7776e6],[e,1,Fg]];function a(t,n,r){const i=Math.abs(n-t)/r,o=lh(([,,e])=>e).right(s,i);if(o===s.length)return e.every(mh(t/Fg,n/Fg,r));if(0===o)return yg.every(Math.max(mh(t,n,r),1));const[a,A]=s[i/s[o-1][2]<s[o][2]/i?o-1:o];return a.every(A)}return[function(e,t,n){const r=t<e;r&&([e,t]=[t,e]);const i=n&&'function'==typeof n.range?n:a(e,t,n),o=i?i.range(e,+t+1):[];return r?o.reverse():o},a]}cm.range;const[fm,hm]=dm(um,lm,tm,$g,Jg,Yg),[pm,gm]=dm(Gg,Kg,Tg,Ig,Lg,Ug);function mm(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 vm(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 bm(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var ym,wm,Bm,xm,Cm,_m={'-':'',_:' ',0:'0'},jm=/^\s*\d+/,Fm=/^%/,Em=/[\\^$*+?|[\]().{}]/g;function Sm(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 km(e){return e.replace(Em,'\\$&')}function Um(e){return new RegExp('^(?:'+e.map(km).join('|')+')','i')}function Qm(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function Lm(e,t,n){var r=jm.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Om(e,t,n){var r=jm.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Im(e,t,n){var r=jm.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Nm(e,t,n){var r=jm.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Tm(e,t,n){var r=jm.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Mm(e,t,n){var r=jm.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Dm(e,t,n){var r=jm.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Pm(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 Rm(e,t,n){var r=jm.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function Hm(e,t,n){var r=jm.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function zm(e,t,n){var r=jm.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Vm(e,t,n){var r=jm.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Km(e,t,n){var r=jm.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function qm(e,t,n){var r=jm.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Gm(e,t,n){var r=jm.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Wm(e,t,n){var r=jm.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Ym(e,t,n){var r=jm.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Xm(e,t,n){var r=Fm.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Jm(e,t,n){var r=jm.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Zm(e,t,n){var r=jm.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function $m(e,t){return Sm(e.getDate(),t,2)}function ev(e,t){return Sm(e.getHours(),t,2)}function tv(e,t){return Sm(e.getHours()%12||12,t,2)}function nv(e,t){return Sm(1+Ig.count(Gg(e),e),t,3)}function rv(e,t){return Sm(e.getMilliseconds(),t,3)}function iv(e,t){return rv(e,t)+'000'}function ov(e,t){return Sm(e.getMonth()+1,t,2)}function sv(e,t){return Sm(e.getMinutes(),t,2)}function av(e,t){return Sm(e.getSeconds(),t,2)}function Av(e){var t=e.getDay();return 0===t?7:t}function lv(e,t){return Sm(Tg.count(Gg(e)-1,e),t,2)}function cv(e){var t=e.getDay();return t>=4||0===t?Rg(e):Rg.ceil(e)}function uv(e,t){return e=cv(e),Sm(Rg.count(Gg(e),e)+(4===Gg(e).getDay()),t,2)}function dv(e){return e.getDay()}function fv(e,t){return Sm(Mg.count(Gg(e)-1,e),t,2)}function hv(e,t){return Sm(e.getFullYear()%100,t,2)}function pv(e,t){return Sm((e=cv(e)).getFullYear()%100,t,2)}function gv(e,t){return Sm(e.getFullYear()%1e4,t,4)}function mv(e,t){var n=e.getDay();return Sm((e=n>=4||0===n?Rg(e):Rg.ceil(e)).getFullYear()%1e4,t,4)}function vv(e){var t=e.getTimezoneOffset();return(t>0?'-':(t*=-1,'+'))+Sm(t/60|0,'0',2)+Sm(t%60,'0',2)}function bv(e,t){return Sm(e.getUTCDate(),t,2)}function yv(e,t){return Sm(e.getUTCHours(),t,2)}function wv(e,t){return Sm(e.getUTCHours()%12||12,t,2)}function Bv(e,t){return Sm(1+$g.count(um(e),e),t,3)}function xv(e,t){return Sm(e.getUTCMilliseconds(),t,3)}function Cv(e,t){return xv(e,t)+'000'}function _v(e,t){return Sm(e.getUTCMonth()+1,t,2)}function jv(e,t){return Sm(e.getUTCMinutes(),t,2)}function Fv(e,t){return Sm(e.getUTCSeconds(),t,2)}function Ev(e){var t=e.getUTCDay();return 0===t?7:t}function Sv(e,t){return Sm(tm.count(um(e)-1,e),t,2)}function kv(e){var t=e.getUTCDay();return t>=4||0===t?om(e):om.ceil(e)}function Uv(e,t){return e=kv(e),Sm(om.count(um(e),e)+(4===um(e).getUTCDay()),t,2)}function Qv(e){return e.getUTCDay()}function Lv(e,t){return Sm(nm.count(um(e)-1,e),t,2)}function Ov(e,t){return Sm(e.getUTCFullYear()%100,t,2)}function Iv(e,t){return Sm((e=kv(e)).getUTCFullYear()%100,t,2)}function Nv(e,t){return Sm(e.getUTCFullYear()%1e4,t,4)}function Tv(e,t){var n=e.getUTCDay();return Sm((e=n>=4||0===n?om(e):om.ceil(e)).getUTCFullYear()%1e4,t,4)}function Mv(){return'+0000'}function Dv(){return'%'}function Pv(e){return+e}function Rv(e){return Math.floor(+e/1e3)}function Hv(e){return new Date(e)}function zv(e){return e instanceof Date?+e:+new Date(+e)}function Vv(e,t,n,r,i,o,s,a,A,l){var c=Dp(),u=c.invert,d=c.domain,f=l('.%L'),h=l(':%S'),p=l('%I:%M'),g=l('%I %p'),m=l('%a %d'),v=l('%b %d'),b=l('%B'),y=l('%Y');function w(e){return(A(e)<e?f:a(e)<e?h:s(e)<e?p:o(e)<e?g:r(e)<e?i(e)<e?m:v:n(e)<e?b:y)(e)}return c.invert=function(e){return new Date(u(e))},c.domain=function(e){return arguments.length?d(Array.from(e,zv)):d().map(Hv)},c.ticks=function(t){var n=d();return e(n[0],n[n.length-1],null==t?10:t)},c.tickFormat=function(e,t){return null==t?w:l(t)},c.nice=function(e){var n=d();return e&&'function'==typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?d(ig(n,e)):c},c.copy=function(){return Tp(c,Vv(e,t,n,r,i,o,s,a,A,l))},c}function Kv(e){for(var t=e.length/6|0,n=new Array(t),r=0;r<t;)n[r]='#'+e.slice(6*r,6*++r);return n}!function(e){ym=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,s=e.shortDays,a=e.months,A=e.shortMonths,l=Um(i),c=Qm(i),u=Um(o),d=Qm(o),f=Um(s),h=Qm(s),p=Um(a),g=Qm(a),m=Um(A),v=Qm(A),b={a:function(e){return s[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return A[e.getMonth()]},B:function(e){return a[e.getMonth()]},c:null,d:$m,e:$m,f:iv,g:pv,G:mv,H:ev,I:tv,j:nv,L:rv,m:ov,M:sv,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:Pv,s:Rv,S:av,u:Av,U:lv,V:uv,w:dv,W:fv,x:null,X:null,y:hv,Y:gv,Z:vv,'%':Dv},y={a:function(e){return s[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return A[e.getUTCMonth()]},B:function(e){return a[e.getUTCMonth()]},c:null,d:bv,e:bv,f:Cv,g:Iv,G:Tv,H:yv,I:wv,j:Bv,L:xv,m:_v,M:jv,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:Pv,s:Rv,S:Fv,u:Ev,U:Sv,V:Uv,w:Qv,W:Lv,x:null,X:null,y:Ov,Y:Nv,Z:Mv,'%':Dv},w={a:function(e,t,n){var r=f.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=u.exec(t.slice(n));return r?(e.w=d.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return C(e,t,n,r)},d:zm,e:zm,f:Ym,g:Dm,G:Mm,H:Km,I:Km,j:Vm,L:Wm,m:Hm,M:qm,p:function(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=c.get(r[0].toLowerCase()),n+r[0].length):-1},q:Rm,Q:Jm,s:Zm,S:Gm,u:Om,U:Im,V:Nm,w:Lm,W:Tm,x:function(e,t,r){return C(e,n,t,r)},X:function(e,t,n){return C(e,r,t,n)},y:Dm,Y:Mm,Z:Pm,'%':Xm};function B(e,t){return function(n){var r,i,o,s=[],a=-1,A=0,l=e.length;for(n instanceof Date||(n=new Date(+n));++a<l;)37===e.charCodeAt(a)&&(s.push(e.slice(A,a)),null!=(i=_m[r=e.charAt(++a)])?r=e.charAt(++a):i='e'===r?' ':'0',(o=t[r])&&(r=o(n,i)),s.push(r),A=a+1);return s.push(e.slice(A,a)),s.join('')}}function x(e,t){return function(n){var r,i,o=bm(1900,void 0,1);if(C(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=vm(bm(o.y,0,1))).getUTCDay(),r=i>4||0===i?nm.ceil(r):nm(r),r=$g.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=mm(bm(o.y,0,1))).getDay(),r=i>4||0===i?Mg.ceil(r):Mg(r),r=Ig.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?vm(bm(o.y,0,1)).getUTCDay():mm(bm(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,vm(o)):mm(o)}}function C(e,t,n,r){for(var i,o,s=0,a=t.length,A=n.length;s<a;){if(r>=A)return-1;if(37===(i=t.charCodeAt(s++))){if(i=t.charAt(s++),!(o=w[i in _m?t.charAt(s++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=B(n,b),b.X=B(r,b),b.c=B(t,b),y.x=B(n,y),y.X=B(r,y),y.c=B(t,y),{format:function(e){var t=B(e+='',b);return t.toString=function(){return e},t},parse:function(e){var t=x(e+='',!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=B(e+='',y);return t.toString=function(){return e},t},utcParse:function(e){var t=x(e+='',!0);return t.toString=function(){return e},t}}}(e),wm=ym.format,Bm=ym.parse,xm=ym.utcFormat,Cm=ym.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']});Kv('1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf'),Kv('7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666'),Kv('1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666'),Kv('a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928'),Kv('fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2'),Kv('b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc'),Kv('e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999'),Kv('66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3');var qv=Kv('8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f'),Gv=e=>Zf(e[e.length-1]),Wv=new Array(3).concat('d8b365f5f5f55ab4ac','a6611adfc27d80cdc1018571','a6611adfc27df5f5f580cdc1018571','8c510ad8b365f6e8c3c7eae55ab4ac01665e','8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e','8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e','8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e','5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30','5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30').map(Kv);Gv(Wv);var Yv=new Array(3).concat('af8dc3f7f7f77fbf7b','7b3294c2a5cfa6dba0008837','7b3294c2a5cff7f7f7a6dba0008837','762a83af8dc3e7d4e8d9f0d37fbf7b1b7837','762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837','762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837','762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837','40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b','40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b').map(Kv);Gv(Yv);var Xv=new Array(3).concat('e9a3c9f7f7f7a1d76a','d01c8bf1b6dab8e1864dac26','d01c8bf1b6daf7f7f7b8e1864dac26','c51b7de9a3c9fde0efe6f5d0a1d76a4d9221','c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221','c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221','c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221','8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419','8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419').map(Kv);Gv(Xv);var Jv=new Array(3).concat('998ec3f7f7f7f1a340','5e3c99b2abd2fdb863e66101','5e3c99b2abd2f7f7f7fdb863e66101','542788998ec3d8daebfee0b6f1a340b35806','542788998ec3d8daebf7f7f7fee0b6f1a340b35806','5427888073acb2abd2d8daebfee0b6fdb863e08214b35806','5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806','2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08','2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08').map(Kv);Gv(Jv);var Zv=new Array(3).concat('ef8a62f7f7f767a9cf','ca0020f4a58292c5de0571b0','ca0020f4a582f7f7f792c5de0571b0','b2182bef8a62fddbc7d1e5f067a9cf2166ac','b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac','b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac','b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac','67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061','67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061').map(Kv);Gv(Zv);var $v=new Array(3).concat('ef8a62ffffff999999','ca0020f4a582bababa404040','ca0020f4a582ffffffbababa404040','b2182bef8a62fddbc7e0e0e09999994d4d4d','b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d','b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d','b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d','67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a','67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a').map(Kv);Gv($v);var eb=new Array(3).concat('fc8d59ffffbf91bfdb','d7191cfdae61abd9e92c7bb6','d7191cfdae61ffffbfabd9e92c7bb6','d73027fc8d59fee090e0f3f891bfdb4575b4','d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4','d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4','d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4','a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695','a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695').map(Kv);Gv(eb);var tb=new Array(3).concat('fc8d59ffffbf91cf60','d7191cfdae61a6d96a1a9641','d7191cfdae61ffffbfa6d96a1a9641','d73027fc8d59fee08bd9ef8b91cf601a9850','d73027fc8d59fee08bffffbfd9ef8b91cf601a9850','d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850','d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850','a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837','a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837').map(Kv);Gv(tb);var nb=new Array(3).concat('fc8d59ffffbf99d594','d7191cfdae61abdda42b83ba','d7191cfdae61ffffbfabdda42b83ba','d53e4ffc8d59fee08be6f59899d5943288bd','d53e4ffc8d59fee08bffffbfe6f59899d5943288bd','d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd','d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd','9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2','9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2').map(Kv);Gv(nb);var rb=new Array(3).concat('e5f5f999d8c92ca25f','edf8fbb2e2e266c2a4238b45','edf8fbb2e2e266c2a42ca25f006d2c','edf8fbccece699d8c966c2a42ca25f006d2c','edf8fbccece699d8c966c2a441ae76238b45005824','f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824','f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b').map(Kv);Gv(rb);var ib=new Array(3).concat('e0ecf49ebcda8856a7','edf8fbb3cde38c96c688419d','edf8fbb3cde38c96c68856a7810f7c','edf8fbbfd3e69ebcda8c96c68856a7810f7c','edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b','f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b','f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b').map(Kv);Gv(ib);var ob=new Array(3).concat('e0f3dba8ddb543a2ca','f0f9e8bae4bc7bccc42b8cbe','f0f9e8bae4bc7bccc443a2ca0868ac','f0f9e8ccebc5a8ddb57bccc443a2ca0868ac','f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e','f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e','f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081').map(Kv);Gv(ob);var sb=new Array(3).concat('fee8c8fdbb84e34a33','fef0d9fdcc8afc8d59d7301f','fef0d9fdcc8afc8d59e34a33b30000','fef0d9fdd49efdbb84fc8d59e34a33b30000','fef0d9fdd49efdbb84fc8d59ef6548d7301f990000','fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000','fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000').map(Kv);Gv(sb);var ab=new Array(3).concat('ece2f0a6bddb1c9099','f6eff7bdc9e167a9cf02818a','f6eff7bdc9e167a9cf1c9099016c59','f6eff7d0d1e6a6bddb67a9cf1c9099016c59','f6eff7d0d1e6a6bddb67a9cf3690c002818a016450','fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450','fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636').map(Kv);Gv(ab);var Ab=new Array(3).concat('ece7f2a6bddb2b8cbe','f1eef6bdc9e174a9cf0570b0','f1eef6bdc9e174a9cf2b8cbe045a8d','f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d','f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b','fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b','fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858').map(Kv);Gv(Ab);var lb=new Array(3).concat('e7e1efc994c7dd1c77','f1eef6d7b5d8df65b0ce1256','f1eef6d7b5d8df65b0dd1c77980043','f1eef6d4b9dac994c7df65b0dd1c77980043','f1eef6d4b9dac994c7df65b0e7298ace125691003f','f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f','f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f').map(Kv);Gv(lb);var cb=new Array(3).concat('fde0ddfa9fb5c51b8a','feebe2fbb4b9f768a1ae017e','feebe2fbb4b9f768a1c51b8a7a0177','feebe2fcc5c0fa9fb5f768a1c51b8a7a0177','feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177','fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177','fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a').map(Kv);Gv(cb);var ub=new Array(3).concat('edf8b17fcdbb2c7fb8','ffffcca1dab441b6c4225ea8','ffffcca1dab441b6c42c7fb8253494','ffffccc7e9b47fcdbb41b6c42c7fb8253494','ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84','ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84','ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58').map(Kv);Gv(ub);var db=new Array(3).concat('f7fcb9addd8e31a354','ffffccc2e69978c679238443','ffffccc2e69978c67931a354006837','ffffccd9f0a3addd8e78c67931a354006837','ffffccd9f0a3addd8e78c67941ab5d238443005a32','ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32','ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529').map(Kv);Gv(db);var fb=new Array(3).concat('fff7bcfec44fd95f0e','ffffd4fed98efe9929cc4c02','ffffd4fed98efe9929d95f0e993404','ffffd4fee391fec44ffe9929d95f0e993404','ffffd4fee391fec44ffe9929ec7014cc4c028c2d04','ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04','ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506').map(Kv);Gv(fb);var hb=new Array(3).concat('ffeda0feb24cf03b20','ffffb2fecc5cfd8d3ce31a1c','ffffb2fecc5cfd8d3cf03b20bd0026','ffffb2fed976feb24cfd8d3cf03b20bd0026','ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026','ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026','ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026').map(Kv);Gv(hb);var pb=new Array(3).concat('deebf79ecae13182bd','eff3ffbdd7e76baed62171b5','eff3ffbdd7e76baed63182bd08519c','eff3ffc6dbef9ecae16baed63182bd08519c','eff3ffc6dbef9ecae16baed64292c62171b5084594','f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594','f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b').map(Kv);Gv(pb);var gb=new Array(3).concat('e5f5e0a1d99b31a354','edf8e9bae4b374c476238b45','edf8e9bae4b374c47631a354006d2c','edf8e9c7e9c0a1d99b74c47631a354006d2c','edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32','f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32','f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b').map(Kv);Gv(gb);var mb=new Array(3).concat('f0f0f0bdbdbd636363','f7f7f7cccccc969696525252','f7f7f7cccccc969696636363252525','f7f7f7d9d9d9bdbdbd969696636363252525','f7f7f7d9d9d9bdbdbd969696737373525252252525','fffffff0f0f0d9d9d9bdbdbd969696737373525252252525','fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000').map(Kv);Gv(mb);var vb=new Array(3).concat('efedf5bcbddc756bb1','f2f0f7cbc9e29e9ac86a51a3','f2f0f7cbc9e29e9ac8756bb154278f','f2f0f7dadaebbcbddc9e9ac8756bb154278f','f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486','fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486','fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d').map(Kv);Gv(vb);var bb=new Array(3).concat('fee0d2fc9272de2d26','fee5d9fcae91fb6a4acb181d','fee5d9fcae91fb6a4ade2d26a50f15','fee5d9fcbba1fc9272fb6a4ade2d26a50f15','fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d','fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d','fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d').map(Kv);Gv(bb);var yb=new Array(3).concat('fee6cefdae6be6550d','feeddefdbe85fd8d3cd94701','feeddefdbe85fd8d3ce6550da63603','feeddefdd0a2fdae6bfd8d3ce6550da63603','feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04','fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04','fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704').map(Kv);Gv(yb);var wb=wl,Bb=function(e){return this.__data__.set(e,'__lodash_hash_undefined__'),this},xb=function(e){return this.__data__.has(e)};function Cb(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new wb;++t<n;)this.add(e[t])}Cb.prototype.add=Cb.prototype.push=Bb,Cb.prototype.has=xb;var _b=Cb;var jb=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1},Fb=function(e){return e!=e},Eb=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1};var Sb=function(e,t,n){return t==t?Eb(e,t,n):jb(e,Fb,n)};var kb=function(e,t){return!!(null==e?0:e.length)&&Sb(e,t,0)>-1};var Ub=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1};var Qb=function(e,t){return e.has(t)},Lb=_b,Ob=kb,Ib=Ub,Nb=Td,Tb=zc,Mb=Qb;var Db=function(e,t,n,r){var i=-1,o=Ob,s=!0,a=e.length,A=[],l=t.length;if(!a)return A;n&&(t=Nb(t,Tb(n))),r?(o=Ib,s=!1):t.length>=200&&(o=Mb,s=!1,t=new Lb(t));e:for(;++i<a;){var c=e[i],u=null==n?c:n(c);if(c=r||0!==c?c:0,s&&u==u){for(var d=l;d--;)if(t[d]===u)continue e;A.push(c)}else o(t,u,r)||A.push(c)}return A},Pb=Cc,Rb=or(cd(function(e,t){return Pb(e)?Db(e,t):[]})),Hb=Math.PI,zb=2*Hb,Vb=1e-6,Kb=zb-Vb;function qb(){this._x0=this._y0=this._x1=this._y1=null,this._=''}function Gb(){return new qb}function Wb(e){return function(){return e}}qb.prototype=Gb.prototype={constructor:qb,moveTo:function(e,t){this._+='M'+(this._x0=this._x1=+e)+','+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+='Z')},lineTo:function(e,t){this._+='L'+(this._x1=+e)+','+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+='Q'+ +e+','+ +t+','+(this._x1=+n)+','+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,i,o){this._+='C'+ +e+','+ +t+','+ +n+','+ +r+','+(this._x1=+i)+','+(this._y1=+o)},arcTo:function(e,t,n,r,i){e=+e,t=+t,n=+n,r=+r,i=+i;var o=this._x1,s=this._y1,a=n-e,A=r-t,l=o-e,c=s-t,u=l*l+c*c;if(i<0)throw new Error('negative radius: '+i);if(null===this._x1)this._+='M'+(this._x1=e)+','+(this._y1=t);else if(u>Vb)if(Math.abs(c*a-A*l)>Vb&&i){var d=n-o,f=r-s,h=a*a+A*A,p=d*d+f*f,g=Math.sqrt(h),m=Math.sqrt(u),v=i*Math.tan((Hb-Math.acos((h+u-p)/(2*g*m)))/2),b=v/m,y=v/g;Math.abs(b-1)>Vb&&(this._+='L'+(e+b*l)+','+(t+b*c)),this._+='A'+i+','+i+',0,0,'+ +(c*d>l*f)+','+(this._x1=e+y*a)+','+(this._y1=t+y*A)}else this._+='L'+(this._x1=e)+','+(this._y1=t);else;},arc:function(e,t,n,r,i,o){e=+e,t=+t,o=!!o;var s=(n=+n)*Math.cos(r),a=n*Math.sin(r),A=e+s,l=t+a,c=1^o,u=o?r-i:i-r;if(n<0)throw new Error('negative radius: '+n);null===this._x1?this._+='M'+A+','+l:(Math.abs(this._x1-A)>Vb||Math.abs(this._y1-l)>Vb)&&(this._+='L'+A+','+l),n&&(u<0&&(u=u%zb+zb),u>Kb?this._+='A'+n+','+n+',0,1,'+c+','+(e-s)+','+(t-a)+'A'+n+','+n+',0,1,'+c+','+(this._x1=A)+','+(this._y1=l):u>Vb&&(this._+='A'+n+','+n+',0,'+ +(u>=Hb)+','+c+','+(this._x1=e+n*Math.cos(i))+','+(this._y1=t+n*Math.sin(i))))},rect:function(e,t,n,r){this._+='M'+(this._x0=this._x1=+e)+','+(this._y0=this._y1=+t)+'h'+ +n+'v'+ +r+'h'+-n+'Z'},toString:function(){return this._}};var Yb=Math.abs,Xb=Math.atan2,Jb=Math.cos,Zb=Math.max,$b=Math.min,ey=Math.sin,ty=Math.sqrt,ny=1e-12,ry=Math.PI,iy=ry/2,oy=2*ry;function sy(e){return e>=1?iy:e<=-1?-iy:Math.asin(e)}function ay(e){return e.innerRadius}function Ay(e){return e.outerRadius}function ly(e){return e.startAngle}function cy(e){return e.endAngle}function uy(e){return e&&e.padAngle}function dy(e,t,n,r,i,o,s){var a=e-n,A=t-r,l=(s?o:-o)/ty(a*a+A*A),c=l*A,u=-l*a,d=e+c,f=t+u,h=n+c,p=r+u,g=(d+h)/2,m=(f+p)/2,v=h-d,b=p-f,y=v*v+b*b,w=i-o,B=d*p-h*f,x=(b<0?-1:1)*ty(Zb(0,w*w*y-B*B)),C=(B*b-v*x)/y,_=(-B*v-b*x)/y,j=(B*b+v*x)/y,F=(-B*v+b*x)/y,E=C-g,S=_-m,k=j-g,U=F-m;return E*E+S*S>k*k+U*U&&(C=j,_=F),{cx:C,cy:_,x01:-c,y01:-u,x11:C*(i/w-1),y11:_*(i/w-1)}}function fy(){var e=ay,t=Ay,n=Wb(0),r=null,i=ly,o=cy,s=uy,a=null;function A(){var A,l,c=+e.apply(this,arguments),u=+t.apply(this,arguments),d=i.apply(this,arguments)-iy,f=o.apply(this,arguments)-iy,h=Yb(f-d),p=f>d;if(a||(a=A=Gb()),u<c&&(l=u,u=c,c=l),u>ny)if(h>oy-ny)a.moveTo(u*Jb(d),u*ey(d)),a.arc(0,0,u,d,f,!p),c>ny&&(a.moveTo(c*Jb(f),c*ey(f)),a.arc(0,0,c,f,d,p));else{var g,m,v=d,b=f,y=d,w=f,B=h,x=h,C=s.apply(this,arguments)/2,_=C>ny&&(r?+r.apply(this,arguments):ty(c*c+u*u)),j=$b(Yb(u-c)/2,+n.apply(this,arguments)),F=j,E=j;if(_>ny){var S=sy(_/c*ey(C)),k=sy(_/u*ey(C));(B-=2*S)>ny?(y+=S*=p?1:-1,w-=S):(B=0,y=w=(d+f)/2),(x-=2*k)>ny?(v+=k*=p?1:-1,b-=k):(x=0,v=b=(d+f)/2)}var U=u*Jb(v),Q=u*ey(v),L=c*Jb(w),O=c*ey(w);if(j>ny){var I,N=u*Jb(b),T=u*ey(b),M=c*Jb(y),D=c*ey(y);if(h<ry&&(I=function(e,t,n,r,i,o,s,a){var A=n-e,l=r-t,c=s-i,u=a-o,d=u*A-c*l;if(!(d*d<ny))return[e+(d=(c*(t-o)-u*(e-i))/d)*A,t+d*l]}(U,Q,M,D,N,T,L,O))){var P=U-I[0],R=Q-I[1],H=N-I[0],z=T-I[1],V=1/ey(function(e){return e>1?0:e<-1?ry:Math.acos(e)}((P*H+R*z)/(ty(P*P+R*R)*ty(H*H+z*z)))/2),K=ty(I[0]*I[0]+I[1]*I[1]);F=$b(j,(c-K)/(V-1)),E=$b(j,(u-K)/(V+1))}}x>ny?E>ny?(g=dy(M,D,U,Q,u,E,p),m=dy(N,T,L,O,u,E,p),a.moveTo(g.cx+g.x01,g.cy+g.y01),E<j?a.arc(g.cx,g.cy,E,Xb(g.y01,g.x01),Xb(m.y01,m.x01),!p):(a.arc(g.cx,g.cy,E,Xb(g.y01,g.x01),Xb(g.y11,g.x11),!p),a.arc(0,0,u,Xb(g.cy+g.y11,g.cx+g.x11),Xb(m.cy+m.y11,m.cx+m.x11),!p),a.arc(m.cx,m.cy,E,Xb(m.y11,m.x11),Xb(m.y01,m.x01),!p))):(a.moveTo(U,Q),a.arc(0,0,u,v,b,!p)):a.moveTo(U,Q),c>ny&&B>ny?F>ny?(g=dy(L,O,N,T,c,-F,p),m=dy(U,Q,M,D,c,-F,p),a.lineTo(g.cx+g.x01,g.cy+g.y01),F<j?a.arc(g.cx,g.cy,F,Xb(g.y01,g.x01),Xb(m.y01,m.x01),!p):(a.arc(g.cx,g.cy,F,Xb(g.y01,g.x01),Xb(g.y11,g.x11),!p),a.arc(0,0,c,Xb(g.cy+g.y11,g.cx+g.x11),Xb(m.cy+m.y11,m.cx+m.x11),p),a.arc(m.cx,m.cy,F,Xb(m.y11,m.x11),Xb(m.y01,m.x01),!p))):a.arc(0,0,c,w,y,p):a.lineTo(L,O)}else a.moveTo(0,0);if(a.closePath(),A)return a=null,A+''||null}return A.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-ry/2;return[Jb(r)*n,ey(r)*n]},A.innerRadius=function(t){return arguments.length?(e='function'==typeof t?t:Wb(+t),A):e},A.outerRadius=function(e){return arguments.length?(t='function'==typeof e?e:Wb(+e),A):t},A.cornerRadius=function(e){return arguments.length?(n='function'==typeof e?e:Wb(+e),A):n},A.padRadius=function(e){return arguments.length?(r=null==e?null:'function'==typeof e?e:Wb(+e),A):r},A.startAngle=function(e){return arguments.length?(i='function'==typeof e?e:Wb(+e),A):i},A.endAngle=function(e){return arguments.length?(o='function'==typeof e?e:Wb(+e),A):o},A.padAngle=function(e){return arguments.length?(s='function'==typeof e?e:Wb(+e),A):s},A.context=function(e){return arguments.length?(a=null==e?null:e,A):a},A}function hy(e){this._context=e}function py(e){return new hy(e)}function gy(e){return e[0]}function my(e){return e[1]}function vy(){var e=gy,t=my,n=Wb(!0),r=null,i=py,o=null;function s(s){var a,A,l,c=s.length,u=!1;for(null==r&&(o=i(l=Gb())),a=0;a<=c;++a)!(a<c&&n(A=s[a],a,s))===u&&((u=!u)?o.lineStart():o.lineEnd()),u&&o.point(+e(A,a,s),+t(A,a,s));if(l)return o=null,l+''||null}return s.x=function(t){return arguments.length?(e='function'==typeof t?t:Wb(+t),s):e},s.y=function(e){return arguments.length?(t='function'==typeof e?e:Wb(+e),s):t},s.defined=function(e){return arguments.length?(n='function'==typeof e?e:Wb(!!e),s):n},s.curve=function(e){return arguments.length?(i=e,null!=r&&(o=i(r)),s):i},s.context=function(e){return arguments.length?(null==e?r=o=null:o=i(r=e),s):r},s}function by(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function yy(e){return e}hy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};var wy=Array.prototype.slice;function By(){}function xy(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Cy(e){this._context=e}function _y(e){this._context=e}function jy(e){this._context=e}function Fy(e,t){this._basis=new Cy(e),this._beta=t}Cy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:xy(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:xy(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},_y.prototype={areaStart:By,areaEnd:By,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:xy(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},jy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:xy(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Fy.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,i=e[0],o=t[0],s=e[n]-i,a=t[n]-o,A=-1;++A<=n;)r=A/n,this._basis.point(this._beta*e[A]+(1-this._beta)*(i+r*s),this._beta*t[A]+(1-this._beta)*(o+r*a));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var Ey=function e(t){function n(e){return 1===t?new Cy(e):new Fy(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function Sy(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function ky(e,t){this._context=e,this._k=(1-t)/6}ky.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Sy(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Sy(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Uy=function e(t){function n(e){return new ky(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Qy(e,t){this._context=e,this._k=(1-t)/6}Qy.prototype={areaStart:By,areaEnd:By,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Sy(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Ly=function e(t){function n(e){return new Qy(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Oy(e,t){this._context=e,this._k=(1-t)/6}Oy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Sy(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Iy=function e(t){function n(e){return new Oy(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Ny(e,t,n){var r=e._x1,i=e._y1,o=e._x2,s=e._y2;if(e._l01_a>ny){var a=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,A=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*a-e._x0*e._l12_2a+e._x2*e._l01_2a)/A,i=(i*a-e._y0*e._l12_2a+e._y2*e._l01_2a)/A}if(e._l23_a>ny){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*l+e._x1*e._l23_2a-t*e._l12_2a)/c,s=(s*l+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,i,o,s,e._x2,e._y2)}function Ty(e,t){this._context=e,this._alpha=t}Ty.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:Ny(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var My=function e(t){function n(e){return t?new Ty(e,t):new ky(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Dy(e,t){this._context=e,this._alpha=t}Dy.prototype={areaStart:By,areaEnd:By,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Ny(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Py=function e(t){function n(e){return t?new Dy(e,t):new Qy(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Ry(e,t){this._context=e,this._alpha=t}Ry.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ny(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Hy=function e(t){function n(e){return t?new Ry(e,t):new Oy(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function zy(e){this._context=e}function Vy(e){return e<0?-1:1}function Ky(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),s=(n-e._y1)/(i||r<0&&-0),a=(o*i+s*r)/(r+i);return(Vy(o)+Vy(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(a))||0}function qy(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Gy(e,t,n){var r=e._x0,i=e._y0,o=e._x1,s=e._y1,a=(o-r)/3;e._context.bezierCurveTo(r+a,i+a*t,o-a,s-a*n,o,s)}function Wy(e){this._context=e}function Yy(e){this._context=new Xy(e)}function Xy(e){this._context=e}function Jy(e){this._context=e}function Zy(e){var t,n,r=e.length-1,i=new Array(r),o=new Array(r),s=new Array(r);for(i[0]=0,o[0]=2,s[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,o[t]=4,s[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,o[r-1]=7,s[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/o[t-1],o[t]-=n,s[t]-=n*s[t-1];for(i[r-1]=s[r-1]/o[r-1],t=r-2;t>=0;--t)i[t]=(s[t]-i[t+1])/o[t];for(o[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function $y(e,t){this._context=e,this._t=t}function ew(e,t){if((i=e.length)>1)for(var n,r,i,o=1,s=e[t[0]],a=s.length;o<i;++o)for(r=s,s=e[t[o]],n=0;n<a;++n)s[n][1]+=s[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function tw(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function nw(e,t){return e[t]}function rw(e,t){if((a=e.length)>0)for(var n,r,i,o,s,a,A=0,l=e[t[0]].length;A<l;++A)for(o=s=0,n=0;n<a;++n)(i=(r=e[t[n]][A])[1]-r[0])>0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=s,r[0]=s+=i):(r[0]=0,r[1]=i)}function iw(e){for(var t,n=-1,r=0,i=e.length,o=-1/0;++n<i;)(t=+e[n][1])>o&&(o=t,r=n);return r}function ow(e){var t=e.map(sw);return tw(e).sort(function(e,n){return t[e]-t[n]})}function sw(e){for(var t,n=0,r=-1,i=e.length;++r<i;)(t=+e[r][1])&&(n+=t);return n}function aw(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)]}zy.prototype={areaStart:By,areaEnd:By,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},Wy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Gy(this,this._t0,qy(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Gy(this,qy(this,n=Ky(this,e,t)),n);break;default:Gy(this,this._t0,n=Ky(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(Yy.prototype=Object.create(Wy.prototype)).point=function(e,t){Wy.prototype.point.call(this,t,e)},Xy.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}},Jy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=Zy(e),i=Zy(t),o=0,s=1;s<n;++o,++s)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[s],t[s]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},$y.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var Aw,lw=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function cw(e){if(!(t=lw.exec(e)))throw new Error('invalid format: '+e);var t;return new uw({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 uw(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 dw(e,t){var n=aw(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')}cw.prototype=uw.prototype,uw.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 fw={'%':function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+''},d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString('en').replace(/,/g,''):e.toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return dw(100*e,t)},r:dw,s:function(e,t){var n=aw(e,t);if(!n)return e+'';var r=n[0],i=n[1],o=i-(Aw=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,s=r.length;return o===s?r:o>s?r+new Array(o-s+1).join('0'):o>0?r.slice(0,o)+'.'+r.slice(o):'0.'+new Array(1-o).join('0')+aw(e,Math.max(0,t+o-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function hw(e){return e}var pw,gw,mw=Array.prototype.map,vw=['y','z','a','f','p','n','µ','m','','k','M','G','T','P','E','Z','Y'];function bw(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?hw:(t=mw.call(e.grouping,Number),n=e.thousands+'',function(e,r){for(var i=e.length,o=[],s=0,a=t[0],A=0;i>0&&a>0&&(A+a+1>r&&(a=Math.max(1,r-A)),o.push(e.substring(i-=a,i+a)),!((A+=a+1)>r));)a=t[s=(s+1)%t.length];return o.reverse().join(n)}),i=void 0===e.currency?'':e.currency[0]+'',o=void 0===e.currency?'':e.currency[1]+'',s=void 0===e.decimal?'.':e.decimal+'',a=void 0===e.numerals?hw:function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}(mw.call(e.numerals,String)),A=void 0===e.percent?'%':e.percent+'',l=void 0===e.minus?'-':e.minus+'',c=void 0===e.nan?'NaN':e.nan+'';function u(e){var t=(e=cw(e)).fill,n=e.align,u=e.sign,d=e.symbol,f=e.zero,h=e.width,p=e.comma,g=e.precision,m=e.trim,v=e.type;'n'===v?(p=!0,v='g'):fw[v]||(void 0===g&&(g=12),m=!0,v='g'),(f||'0'===t&&'='===n)&&(f=!0,t='0',n='=');var b='$'===d?i:'#'===d&&/[boxX]/.test(v)?'0'+v.toLowerCase():'',y='$'===d?o:/[%p]/.test(v)?A:'',w=fw[v],B=/[defgprs%]/.test(v);function x(e){var i,o,A,d=b,x=y;if('c'===v)x=w(e)+x,e='';else{var C=(e=+e)<0||1/e<0;if(e=isNaN(e)?c:w(Math.abs(e),g),m&&(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)),C&&0===+e&&'+'!==u&&(C=!1),d=(C?'('===u?u:l:'-'===u||'('===u?'':u)+d,x=('s'===v?vw[8+Aw/3]:'')+x+(C&&'('===u?')':''),B)for(i=-1,o=e.length;++i<o;)if(48>(A=e.charCodeAt(i))||A>57){x=(46===A?s+e.slice(i+1):e.slice(i))+x,e=e.slice(0,i);break}}p&&!f&&(e=r(e,1/0));var _=d.length+e.length+x.length,j=_<h?new Array(h-_+1).join(t):'';switch(p&&f&&(e=r(j+e,j.length?h-x.length:1/0),j=''),n){case'<':e=d+e+x+j;break;case'=':e=d+j+e+x;break;case'^':e=j.slice(0,_=j.length>>1)+d+e+x+j.slice(_);break;default:e=j+d+e+x}return a(e)}return g=void 0===g?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),x.toString=function(){return e+''},x}return{format:u,formatPrefix:function(e,t){var n=u(((e=cw(e)).type='f',e)),r=3*Math.max(-8,Math.min(8,Math.floor(function(e){return(e=aw(Math.abs(e)))?e[1]:NaN}(t)/3))),i=Math.pow(10,-r),o=vw[8+r/3];return function(e){return n(i*e)+o}}}}!function(e){pw=bw(e),gw=pw.format,pw.formatPrefix}({decimal:'.',thousands:',',grouping:[3],currency:['$',''],minus:'-'});var yw=ef,ww=cf,Bw=Yd;var xw=function(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var s=t[r],a=yw(e,s);n(a,s)&&ww(o,Bw(s,e),a)}return o};var Cw=function(e,t){return null!=e&&t in Object(e)},_w=Yd,jw=gc,Fw=mc,Ew=su,Sw=vc,kw=Jd;var Uw=function(e,t,n){for(var r=-1,i=(t=_w(t,e)).length,o=!1;++r<i;){var s=kw(t[r]);if(!(o=null!=e&&n(e,s)))break;e=e[s]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&Sw(i)&&Ew(s,i)&&(Fw(e)||jw(e))},Qw=Cw,Lw=Uw;var Ow=function(e,t){return null!=e&&Lw(e,t,Qw)},Iw=xw,Nw=Ow;var Tw=function(e,t){return Iw(e,t,function(t,n){return Nw(e,n)})};var Mw=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e},Dw=gc,Pw=mc,Rw=sA?sA.isConcatSpreadable:void 0;var Hw=Mw,zw=function(e){return Pw(e)||Dw(e)||!!(Rw&&e&&e[Rw])};var Vw=function e(t,n,r,i,o){var s=-1,a=t.length;for(r||(r=zw),o||(o=[]);++s<a;){var A=t[s];n>0&&r(A)?n>1?e(A,n-1,r,i,o):Hw(o,A):i||(o[o.length]=A)}return o},Kw=Vw;var qw=function(e){return(null==e?0:e.length)?Kw(e,1):[]},Gw=ed,Ww=sd;var Yw=function(e){return Ww(Gw(e,void 0,qw),e+'')},Xw=Tw,Jw=Yw(function(e,t){return null==e?{}:Xw(e,t)}),Zw=or(Jw);var $w=_b,eB=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1},tB=Qb;var nB=function(e,t,n,r,i,o){var s=1&n,a=e.length,A=t.length;if(a!=A&&!(s&&A>a))return!1;var l=o.get(e),c=o.get(t);if(l&&c)return l==t&&c==e;var u=-1,d=!0,f=2&n?new $w:void 0;for(o.set(e,t),o.set(t,e);++u<a;){var h=e[u],p=t[u];if(r)var g=s?r(p,h,u,t,e,o):r(h,p,u,e,t,o);if(void 0!==g){if(g)continue;d=!1;break}if(f){if(!eB(t,function(e,t){if(!tB(f,t)&&(h===e||i(h,e,n,r,o)))return f.push(t)})){d=!1;break}}else if(h!==p&&!i(h,p,n,r,o)){d=!1;break}}return o.delete(e),o.delete(t),d};var rB=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n};var iB=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n},oB=Vl,sB=Na,aB=nB,AB=rB,lB=iB,cB=sA?sA.prototype:void 0,uB=cB?cB.valueOf:void 0;var dB=function(e,t,n,r,i,o,s){switch(n){case'[object DataView]':if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case'[object ArrayBuffer]':return!(e.byteLength!=t.byteLength||!o(new oB(e),new oB(t)));case'[object Boolean]':case'[object Date]':case'[object Number]':return sB(+e,+t);case'[object Error]':return e.name==t.name&&e.message==t.message;case'[object RegExp]':case'[object String]':return e==t+'';case'[object Map]':var a=AB;case'[object Set]':var A=1&r;if(a||(a=lB),e.size!=t.size&&!A)return!1;var l=s.get(e);if(l)return l==t;r|=2,s.set(e,t);var c=aB(a(e),a(t),r,i,o,s);return s.delete(e),c;case'[object Symbol]':if(uB)return uB.call(e)==uB.call(t)}return!1},fB=Mw,hB=mc;var pB=function(e,t,n){var r=t(e);return hB(e)?r:fB(r,n(e))};var gB=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var s=e[n];t(s,n,e)&&(o[i++]=s)}return o};var mB=function(){return[]},vB=gB,bB=mB,yB=Object.prototype.propertyIsEnumerable,wB=Object.getOwnPropertySymbols,BB=wB?function(e){return null==e?[]:(e=Object(e),vB(wB(e),function(t){return yB.call(e,t)}))}:bB,xB=BB,CB=ec(Object.keys,Object),_B=rc,jB=CB,FB=Object.prototype.hasOwnProperty;var EB=function(e){if(!_B(e))return jB(e);var t=[];for(var n in Object(e))FB.call(e,n)&&'constructor'!=n&&t.push(n);return t},SB=hu,kB=EB,UB=wc;var QB=function(e){return UB(e)?SB(e):kB(e)},LB=pB,OB=xB,IB=QB;var NB=function(e){return LB(e,IB,OB)},TB=NB,MB=Object.prototype.hasOwnProperty;var DB=function(e,t,n,r,i,o){var s=1&n,a=TB(e),A=a.length;if(A!=TB(t).length&&!s)return!1;for(var l=A;l--;){var c=a[l];if(!(s?c in t:MB.call(t,c)))return!1}var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var f=!0;o.set(e,t),o.set(t,e);for(var h=s;++l<A;){var p=e[c=a[l]],g=t[c];if(r)var m=s?r(g,p,c,t,e,o):r(p,g,c,e,t,o);if(!(void 0===m?p===g||i(p,g,n,r,o):m)){f=!1;break}h||(h='constructor'==c)}if(f&&!h){var v=e.constructor,b=t.constructor;v==b||!('constructor'in e)||!('constructor'in t)||'function'==typeof v&&v instanceof v&&'function'==typeof b&&b instanceof b||(f=!1)}return o.delete(e),o.delete(t),f},PB=HA(oA,'DataView'),RB=HA(oA,'Promise'),HB=HA(oA,'Set'),zB=PB,VB=zA,KB=RB,qB=HB,GB=HA(oA,'WeakMap'),WB=mA,YB=EA,XB='[object Map]',JB='[object Promise]',ZB='[object Set]',$B='[object WeakMap]',ex='[object DataView]',tx=YB(zB),nx=YB(VB),rx=YB(KB),ix=YB(qB),ox=YB(GB),sx=WB;(zB&&sx(new zB(new ArrayBuffer(1)))!=ex||VB&&sx(new VB)!=XB||KB&&sx(KB.resolve())!=JB||qB&&sx(new qB)!=ZB||GB&&sx(new GB)!=$B)&&(sx=function(e){var t=WB(e),n='[object Object]'==t?e.constructor:void 0,r=n?YB(n):'';if(r)switch(r){case tx:return ex;case nx:return XB;case rx:return JB;case ix:return ZB;case ox:return $B}return t});var ax=sx,Ax=Ql,lx=nB,cx=dB,ux=DB,dx=ax,fx=mc,hx=Fc,px=Yc,gx='[object Arguments]',mx='[object Array]',vx='[object Object]',bx=Object.prototype.hasOwnProperty;var yx=function(e,t,n,r,i,o){var s=fx(e),a=fx(t),A=s?mx:dx(e),l=a?mx:dx(t),c=(A=A==gx?vx:A)==vx,u=(l=l==gx?vx:l)==vx,d=A==l;if(d&&hx(e)){if(!hx(t))return!1;s=!0,c=!1}if(d&&!c)return o||(o=new Ax),s||px(e)?lx(e,t,n,r,i,o):cx(e,t,A,n,r,i,o);if(!(1&n)){var f=c&&bx.call(e,'__wrapped__'),h=u&&bx.call(t,'__wrapped__');if(f||h){var p=f?e.value():e,g=h?t.value():t;return o||(o=new Ax),i(p,g,n,r,o)}}return!!d&&(o||(o=new Ax),ux(e,t,n,r,i,o))},wx=yx,Bx=Ac;var xx=function e(t,n,r,i,o){return t===n||(null==t||null==n||!Bx(t)&&!Bx(n)?t!=t&&n!=n:wx(t,n,r,i,e,o))},Cx=xx;var _x=or(function(e,t){return Cx(e,t)});function jx(){return jx=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},jx.apply(this,arguments)}function Fx(e,t){return Fx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Fx(e,t)}function Ex(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}var Sx={fill:Qr.string,fontSize:Qr.number,fontFamily:Qr.string},kx=Qr.shape({domain:Qr.shape({line:Qr.shape({stroke:Qr.string.isRequired,strokeWidth:Qr.number.isRequired,strokeDasharray:Qr.string}).isRequired}).isRequired,ticks:Qr.shape({line:Qr.shape({stroke:Qr.string.isRequired,strokeWidth:Qr.number.isRequired,strokeDasharray:Qr.string}).isRequired,text:Qr.shape(jx({},Sx)).isRequired}).isRequired,legend:Qr.shape({text:Qr.shape(jx({},Sx)).isRequired}).isRequired}),Ux=Qr.shape({line:Qr.shape({stroke:Qr.string.isRequired,strokeWidth:Qr.number.isRequired,strokeDasharray:Qr.string}).isRequired}),Qx=Qr.shape({hidden:Qr.shape({symbol:Qr.shape({fill:Qr.string.isRequired,opacity:Qr.number}).isRequired,text:Qr.shape(jx({},Sx,{opacity:Qr.number})).isRequired}).isRequired,text:Qr.shape(jx({},Sx)).isRequired}),Lx=Qr.shape({text:Qr.shape(jx({},Sx)).isRequired}),Ox=Qr.shape({text:Qr.shape(jx({},Sx)).isRequired}),Ix=Qr.shape({text:Qr.shape(jx({},Sx)).isRequired}),Nx=Qr.shape({line:Qr.shape({stroke:Qr.string.isRequired,strokeWidth:Qr.number.isRequired,strokeDasharray:Qr.string}).isRequired}),Tx=Qr.shape({text:Qr.shape(jx({},Sx,{outlineWidth:Qr.number.isRequired,outlineColor:Qr.string.isRequired})).isRequired,link:Qr.shape({stroke:Qr.string.isRequired,strokeWidth:Qr.number.isRequired,outlineWidth:Qr.number.isRequired,outlineColor:Qr.string.isRequired}).isRequired,outline:Qr.shape({stroke:Qr.string.isRequired,strokeWidth:Qr.number.isRequired,outlineWidth:Qr.number.isRequired,outlineColor:Qr.string.isRequired}).isRequired,symbol:Qr.shape({fill:Qr.string.isRequired,outlineWidth:Qr.number.isRequired,outlineColor:Qr.string.isRequired}).isRequired});Qr.shape({background:Qr.string.isRequired,fontFamily:Qr.string.isRequired,fontSize:Qr.number.isRequired,textColor:Qr.string.isRequired,axis:kx.isRequired,grid:Ux.isRequired,legends:Qx.isRequired,labels:Lx.isRequired,dots:Ox.isRequired,markers:Ix,crosshair:Nx.isRequired,annotations:Tx.isRequired});var Mx={background:'transparent',text:{fontFamily:'sans-serif',fontSize:11,fill:'#333333',outlineWidth:0,outlineColor:'transparent'},axis:{domain:{line:{stroke:'transparent',strokeWidth:1}},ticks:{line:{stroke:'#777777',strokeWidth:1},text:{}},legend:{text:{fontSize:12}}},grid:{line:{stroke:'#dddddd',strokeWidth:1}},legends:{hidden:{symbol:{fill:'#333333',opacity:.6},text:{fill:'#333333',opacity:.6}},text:{},ticks:{line:{stroke:'#777777',strokeWidth:1},text:{fontSize:10}},title:{text:{}}},labels:{text:{}},markers:{lineColor:'#000000',lineStrokeWidth:1,text:{}},dots:{text:{}},tooltip:{container:{background:'white',color:'inherit',fontSize:'inherit',borderRadius:'2px',boxShadow:'0 1px 2px rgba(0, 0, 0, 0.25)',padding:'5px 9px'},basic:{whiteSpace:'pre',display:'flex',alignItems:'center'},chip:{marginRight:7},table:{},tableCell:{padding:'3px 5px'},tableCellValue:{fontWeight:'bold'}},crosshair:{line:{stroke:'#000000',strokeWidth:1,strokeOpacity:.75,strokeDasharray:'6 6'}},annotations:{text:{fontSize:13,outlineWidth:2,outlineColor:'#ffffff',outlineOpacity:1},link:{stroke:'#000000',strokeWidth:1,outlineWidth:2,outlineColor:'#ffffff',outlineOpacity:1},outline:{fill:'none',stroke:'#000000',strokeWidth:2,outlineWidth:2,outlineColor:'#ffffff',outlineOpacity:1},symbol:{fill:'#000000',outlineWidth:2,outlineColor:'#ffffff',outlineOpacity:1}}},Dx=['axis.ticks.text','axis.legend.text','legends.title.text','legends.text','legends.ticks.text','legends.title.text','labels.text','dots.text','markers.text','annotations.text'],Px=h(),Rx=function(e){var t=e.children,n=e.animate,r=e.config,i=d(function(){var e=oh(r)?rs[r]:r;return{animate:n,config:e}},[n,r]);return w(Px.Provider,{value:i,children:t})},Hx={animate:Qr.bool,motionConfig:Qr.oneOfType([Qr.oneOf(Object.keys(rs)),Qr.shape({mass:Qr.number,tension:Qr.number,friction:Qr.number,clamp:Qr.bool,precision:Qr.number,velocity:Qr.number,duration:Qr.number,easing:Qr.func})])};Rx.propTypes={children:Qr.node.isRequired,animate:Hx.animate,config:Hx.motionConfig};Rx.defaultProps={animate:!0,config:'default'};var zx=function(){return u(Px)},Vx=function(e){var t=zx(),n=t.animate,i=t.config,s=function(e){var t=o();return r(function(){t.current=e},[e]),t.current}(e),a=d(function(){return function(e,t){var n,r,i,o=eh.lastIndex=th.lastIndex=0,s=-1,a=[],A=[];for(e+='',t+='';(n=eh.exec(e))&&(r=th.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),a[s]?a[s]+=i:a[++s]=i),(n=n[0])===(r=r[0])?a[s]?a[s]+=r:a[++s]=r:(a[++s]=null,A.push({i:s,x:$f(n,r)})),o=th.lastIndex;return o<t.length&&(i=t.slice(o),a[s]?a[s]+=i:a[++s]=i),a.length<2?A[0]?function(e){return function(t){return e(t)+''}}(A[0].x):function(e){return function(){return e}}(t):(t=A.length,function(e){for(var n,r=0;r<t;++r)a[(n=A[r]).i]=n.x(e);return a.join('')})}(s,e)},[s,e]),A=Js({from:{value:0},to:{value:1},reset:!0,config:i,immediate:!n}).value;return ia(A,a)},Kx={nivo:['#d76445','#f47560','#e8c1a0','#97e3d5','#61cdbb','#00b0a7'],BrBG:ah(Wv),PRGn:ah(Yv),PiYG:ah(Xv),PuOr:ah(Jv),RdBu:ah(Zv),RdGy:ah($v),RdYlBu:ah(eb),RdYlGn:ah(tb),spectral:ah(nb),blues:ah(pb),greens:ah(gb),greys:ah(mb),oranges:ah(yb),purples:ah(vb),reds:ah(bb),BuGn:ah(rb),BuPu:ah(ib),GnBu:ah(ob),OrRd:ah(sb),PuBuGn:ah(ab),PuBu:ah(Ab),PuRd:ah(lb),RdPu:ah(cb),YlGnBu:ah(ub),YlGn:ah(db),YlOrBr:ah(fb),YlOrRd:ah(hb)},qx=Object.keys(Kx);ah(Wv),ah(Yv),ah(Xv),ah(Jv),ah(Zv),ah($v),ah(eb),ah(tb),ah(nb),ah(pb),ah(gb),ah(mb),ah(yb),ah(vb),ah(bb),ah(rb),ah(ib),ah(ob),ah(sb),ah(ab),ah(Ab),ah(lb),ah(cb),ah(ub),ah(db),ah(fb),ah(hb),Qr.oneOfType([Qr.oneOf(qx),Qr.func,Qr.arrayOf(Qr.string)]);var Gx={basis:function(e){return new Cy(e)},basisClosed:function(e){return new _y(e)},basisOpen:function(e){return new jy(e)},bundle:Ey,cardinal:Uy,cardinalClosed:Ly,cardinalOpen:Iy,catmullRom:My,catmullRomClosed:Py,catmullRomOpen:Hy,linear:py,linearClosed:function(e){return new zy(e)},monotoneX:function(e){return new Wy(e)},monotoneY:function(e){return new Yy(e)},natural:function(e){return new Jy(e)},step:function(e){return new $y(e,.5)},stepAfter:function(e){return new $y(e,1)},stepBefore:function(e){return new $y(e,0)}},Wx=Object.keys(Gx);Qr.oneOf(Wx),Wx.filter(function(e){return e.endsWith('Closed')}),Rb(Wx,'bundle','basisClosed','basisOpen','cardinalClosed','cardinalOpen','catmullRomClosed','catmullRomOpen','linearClosed');var Yx=Rb(Wx,'bundle','basisClosed','basisOpen','cardinalClosed','cardinalOpen','catmullRomClosed','catmullRomOpen','linearClosed'),Xx=Qr.oneOf(Yx),Jx=function(e){if(!Gx[e])throw new TypeError('\''+e+'\', is not a valid curve interpolator identifier.');return Gx[e]},Zx={defs:Qr.arrayOf(Qr.shape({id:Qr.string.isRequired})).isRequired,fill:Qr.arrayOf(Qr.shape({id:Qr.string.isRequired,match:Qr.oneOfType([Qr.oneOf(['*']),Qr.object,Qr.func]).isRequired})).isRequired},$x={ascending:ow,descending:function(e){return ow(e).reverse()},insideOut:function(e){var t,n,r=e.length,i=e.map(sw),o=function(e){var t=e.map(iw);return tw(e).sort(function(e,n){return t[e]-t[n]})}(e),s=0,a=0,A=[],l=[];for(t=0;t<r;++t)n=o[t],s<a?(s+=i[n],A.push(n)):(a+=i[n],l.push(n));return l.reverse().concat(A)},none:tw,reverse:function(e){return tw(e).reverse()}},eC=Object.keys($x);Qr.oneOf(eC);var tC={expand:function(e,t){if((r=e.length)>0){for(var n,r,i,o=0,s=e[0].length;o<s;++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}ew(e,t)}},diverging:rw,none:ew,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 s=0,a=0;s<n;++s)a+=e[s][r][1]||0;i[r][1]+=i[r][0]=-a/2}ew(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,s=1;s<r;++s){for(var a=0,A=0,l=0;a<i;++a){for(var c=e[t[a]],u=c[s][1]||0,d=(u-(c[s-1][1]||0))/2,f=0;f<a;++f){var h=e[t[f]];d+=(h[s][1]||0)-(h[s-1][1]||0)}A+=u,l+=d*u}n[s-1][1]+=n[s-1][0]=o,A&&(o-=l/A)}n[s-1][1]+=n[s-1][0]=o,ew(e,t)}}},nC=Object.keys(tC);Qr.oneOf(nC),Qr.shape({top:Qr.number,right:Qr.number,bottom:Qr.number,left:Qr.number}).isRequired;var rC=Qr.oneOf(['normal','multiply','screen','overlay','darken','lighten','color-dodge','color-burn','hard-light','soft-light','difference','exclusion','hue','saturation','color','luminosity']);yh(qv);var iC={top:0,right:0,bottom:0,left:0},oC=function(e,t,n){return void 0===n&&(n={}),d(function(){var r=jx({},iC,n);return{margin:r,innerWidth:e-r.left-r.right,innerHeight:t-r.top-r.bottom,outerWidth:e,outerHeight:t}},[e,t,n.top,n.right,n.bottom,n.left])},sC=function(){var e=o(null),t=n({left:0,top:0,width:0,height:0}),i=t[0],s=t[1],a=n(function(){return'undefined'==typeof ResizeObserver?null:new ResizeObserver(function(e){var t=e[0];return s(t.contentRect)})})[0];return r(function(){return e.current&&null!==a&&a.observe(e.current),function(){null!==a&&a.disconnect()}},[]),[e,i]},aC=function(e){return d(function(){return function(e,t){var n=wd({},e,t);return Dx.forEach(function(e){void 0===rf(n,e+'.fontFamily')&&ff(n,e+'.fontFamily',n.text.fontFamily),void 0===rf(n,e+'.fontSize')&&ff(n,e+'.fontSize',n.text.fontSize),void 0===rf(n,e+'.fill')&&ff(n,e+'.fill',n.text.fill),void 0===rf(n,e+'.outlineWidth')&&ff(n,e+'.outlineWidth',n.text.outlineWidth),void 0===rf(n,e+'.outlineColor')&&ff(n,e+'.outlineColor',n.text.outlineColor)}),n}(Mx,e)},[e])},AC=function(e){return d(function(){return function(e){return'function'==typeof e?e:'string'==typeof e?0===e.indexOf('time:')?wm(e.slice('5')):gw(e):function(e){return''+e}}(e)},[e])},lC=h(),cC={},uC=function(e){var t=e.theme,n=void 0===t?cC:t,r=e.children,i=aC(n);return w(lC.Provider,{value:i,children:r})};uC.propTypes={children:Qr.node.isRequired,theme:Qr.object};var dC=function(){return u(lC)},fC=function(e){var t=e.children,n=e.condition,r=e.wrapper;return n?A(r,{},t):t};fC.propTypes={children:Qr.node.isRequired,condition:Qr.bool.isRequired,wrapper:Qr.element.isRequired};var hC={position:'relative'},pC=function(e){var t=e.children,n=e.theme,r=e.renderWrapper,i=void 0===r||r,s=e.isInteractive,a=void 0===s||s,A=e.animate,l=e.motionConfig,c=o(null);return w(uC,{theme:n,children:w(Rx,{animate:A,config:l,children:w(Oa,{container:c,children:B(fC,{condition:i,wrapper:w('div',{style:hC,ref:c}),children:[t,a&&w(La,{})]})})})})};pC.propTypes={children:Qr.element.isRequired,isInteractive:Qr.bool,renderWrapper:Qr.bool,theme:Qr.object,animate:Qr.bool,motionConfig:Qr.string},Qr.func.isRequired,Qr.bool,Qr.bool,Qr.object.isRequired,Qr.bool.isRequired,Qr.string;var gC=function(e){var t=e.children,n=sC(),r=n[0],i=n[1],o=i.width>0&&i.height>0;return w('div',{ref:r,style:{width:'100%',height:'100%'},children:o&&t({width:i.width,height:i.height})})};gC.propTypes={children:Qr.func.isRequired};var mC=['id','colors'],vC=function(e){var t=e.id,n=e.colors,r=Ex(e,mC);return w('linearGradient',jx({id:t,x1:0,x2:0,y1:0,y2:1},r,{children:n.map(function(e){var t=e.offset,n=e.color,r=e.opacity;return w('stop',{offset:t+'%',stopColor:n,stopOpacity:void 0!==r?r:1},t)})}))};vC.propTypes={id:Qr.string.isRequired,colors:Qr.arrayOf(Qr.shape({offset:Qr.number.isRequired,color:Qr.string.isRequired,opacity:Qr.number})).isRequired,gradientTransform:Qr.string};var bC={linearGradient:vC},yC=f(function(e){var t=e.id,n=e.background,r=e.color,i=e.size,o=e.padding,s=e.stagger,a=i+o,A=i/2,l=o/2;return!0===s&&(a=2*i+2*o),B('pattern',{id:t,width:a,height:a,patternUnits:'userSpaceOnUse',children:[w('rect',{width:a,height:a,fill:n}),w('circle',{cx:l+A,cy:l+A,r:A,fill:r}),s&&w('circle',{cx:1.5*o+i+A,cy:1.5*o+i+A,r:A,fill:r})]})});yC.displayName='PatternDots',yC.propTypes={id:Qr.string.isRequired,color:Qr.string.isRequired,background:Qr.string.isRequired,size:Qr.number.isRequired,padding:Qr.number.isRequired,stagger:Qr.bool.isRequired},yC.defaultProps={color:'#000000',background:'#ffffff',size:4,padding:4,stagger:!1};var wC=function(e){return e*Math.PI/180},BC=function(e){return 180*e/Math.PI},xC=function(e,t){return{x:Math.cos(e)*t,y:Math.sin(e)*t}},CC={svg:{align:{left:'start',center:'middle',right:'end',start:'start',middle:'middle',end:'end'},baseline:{top:'text-before-edge',center:'central',bottom:'alphabetic'}},canvas:{align:{left:'left',center:'center',right:'right',start:'left',middle:'center',end:'right'},baseline:{top:'top',center:'middle',bottom:'bottom'}}},_C=f(function(e){var t=e.id,n=e.spacing,r=e.rotation,i=e.background,o=e.color,s=e.lineWidth,a=Math.round(r)%360,A=Math.abs(n);a>180?a-=360:a>90?a-=180:a<-180?a+=360:a<-90&&(a+=180);var l,c=A,u=A;return 0===a?l='\n M 0 0 L '+c+' 0\n M 0 '+u+' L '+c+' '+u+'\n ':90===a?l='\n M 0 0 L 0 '+u+'\n M '+c+' 0 L '+c+' '+u+'\n ':(c=Math.abs(A/Math.sin(wC(a))),u=A/Math.sin(wC(90-a)),l=a>0?'\n M 0 '+-u+' L '+2*c+' '+u+'\n M '+-c+' '+-u+' L '+c+' '+u+'\n M '+-c+' 0 L '+c+' '+2*u+'\n ':'\n M '+-c+' '+u+' L '+c+' '+-u+'\n M '+-c+' '+2*u+' L '+2*c+' '+-u+'\n M 0 '+2*u+' L '+2*c+' 0\n '),B('pattern',{id:t,width:c,height:u,patternUnits:'userSpaceOnUse',children:[w('rect',{width:c,height:u,fill:i,stroke:'rgba(255, 0, 0, 0.1)',strokeWidth:0}),w('path',{d:l,strokeWidth:s,stroke:o,strokeLinecap:'square'})]})});_C.displayName='PatternLines',_C.propTypes={id:Qr.string.isRequired,spacing:Qr.number.isRequired,rotation:Qr.number.isRequired,background:Qr.string.isRequired,color:Qr.string.isRequired,lineWidth:Qr.number.isRequired},_C.defaultProps={spacing:5,rotation:0,color:'#000000',background:'#ffffff',lineWidth:2};var jC=f(function(e){var t=e.id,n=e.background,r=e.color,i=e.size,o=e.padding,s=e.stagger,a=i+o,A=o/2;return!0===s&&(a=2*i+2*o),B('pattern',{id:t,width:a,height:a,patternUnits:'userSpaceOnUse',children:[w('rect',{width:a,height:a,fill:n}),w('rect',{x:A,y:A,width:i,height:i,fill:r}),s&&w('rect',{x:1.5*o+i,y:1.5*o+i,width:i,height:i,fill:r})]})});jC.displayName='PatternSquares',jC.propTypes={id:Qr.string.isRequired,color:Qr.string.isRequired,background:Qr.string.isRequired,size:Qr.number.isRequired,padding:Qr.number.isRequired,stagger:Qr.bool.isRequired},jC.defaultProps={color:'#000000',background:'#ffffff',size:4,padding:4,stagger:!1};var FC={patternDots:yC,patternLines:_C,patternSquares:jC},EC=['type'],SC=jx({},bC,FC),kC=function(e){var t=e.defs;return!t||t.length<1?null:w('defs',{'aria-hidden':!0,children:t.map(function(e){var t=e.type,n=Ex(e,EC);return SC[t]?p(SC[t],jx({key:n.id},n)):null})})};kC.propTypes={defs:Qr.arrayOf(Qr.shape({type:Qr.oneOf(Object.keys(SC)).isRequired,id:Qr.string.isRequired}))};var UC=f(kC),QC=function(e){var t=e.width,n=e.height,r=e.margin,i=e.defs,o=e.children,s=e.role,a=e.ariaLabel,A=e.ariaLabelledBy,l=e.ariaDescribedBy,c=e.isFocusable,u=dC();return B('svg',{xmlns:'http://www.w3.org/2000/svg',width:t,height:n,role:s,'aria-label':a,'aria-labelledby':A,'aria-describedby':l,focusable:c,tabIndex:c?0:void 0,children:[w(UC,{defs:i}),w('rect',{width:t,height:n,fill:u.background}),w('g',{transform:'translate('+r.left+','+r.top+')',children:o})]})};QC.propTypes={width:Qr.number.isRequired,height:Qr.number.isRequired,margin:Qr.shape({top:Qr.number.isRequired,left:Qr.number.isRequired}).isRequired,defs:Qr.array,children:Qr.oneOfType([Qr.arrayOf(Qr.node),Qr.node]).isRequired,role:Qr.string,isFocusable:Qr.bool,ariaLabel:Qr.string,ariaLabelledBy:Qr.string,ariaDescribedBy:Qr.string};var LC=function(e){var t=e.size,n=e.color,r=e.borderWidth,i=e.borderColor;return w('circle',{r:t/2,fill:n,stroke:i,strokeWidth:r,style:{pointerEvents:'none'}})};LC.propTypes={size:Qr.number.isRequired,color:Qr.string.isRequired,borderWidth:Qr.number.isRequired,borderColor:Qr.string.isRequired};var OC=f(LC),IC=function(e){var t=e.x,n=e.y,r=e.symbol,i=void 0===r?OC:r,o=e.size,s=e.datum,a=e.color,A=e.borderWidth,l=e.borderColor,c=e.label,u=e.labelTextAnchor,d=void 0===u?'middle':u,f=e.labelYOffset,h=void 0===f?-12:f,g=dC(),m=zx(),v=m.animate,b=Js({transform:'translate('+t+', '+n+')',config:m.config,immediate:!v});return B(va.g,{transform:b.transform,style:{pointerEvents:'none'},children:[p(i,{size:o,color:a,datum:s,borderWidth:A,borderColor:l}),c&&w('text',{textAnchor:d,y:h,style:g.dots.text,children:c})]})};IC.propTypes={x:Qr.number.isRequired,y:Qr.number.isRequired,datum:Qr.object.isRequired,size:Qr.number.isRequired,color:Qr.string.isRequired,borderWidth:Qr.number.isRequired,borderColor:Qr.string.isRequired,symbol:Qr.oneOfType([Qr.func,Qr.object]),label:Qr.oneOfType([Qr.string,Qr.number]),labelTextAnchor:Qr.oneOf(['start','middle','end']),labelYOffset:Qr.number};var NC=f(IC),TC=function(e){var t=e.width,n=e.height,r=e.axis,i=e.scale,o=e.value,s=e.lineStyle,a=e.textStyle,A=e.legend,l=e.legendPosition,c=e.legendOffsetX,u=e.legendOffsetY,d=e.legendOrientation,f=dC(),h=0,p=0,g=0,m=0;'y'===r?(g=i(o),p=t):(h=i(o),m=n);var v=null;if(A){var b=function(e){var t=e.width,n=e.height,r=e.position,i=e.offsetX,o=e.offsetY,s=e.orientation,a=0,A=0,l='vertical'===s?-90:0,c='start';if('x'===e.axis)switch(r){case'top-left':a=-i,A=o,c='end';break;case'top':A=-o,c='horizontal'===s?'middle':'start';break;case'top-right':a=i,A=o,c='horizontal'===s?'start':'end';break;case'right':a=i,A=n/2,c='horizontal'===s?'start':'middle';break;case'bottom-right':a=i,A=n-o,c='start';break;case'bottom':A=n+o,c='horizontal'===s?'middle':'end';break;case'bottom-left':A=n-o,a=-i,c='horizontal'===s?'end':'start';break;case'left':a=-i,A=n/2,c='horizontal'===s?'end':'middle'}else switch(r){case'top-left':a=i,A=-o,c='start';break;case'top':a=t/2,A=-o,c='horizontal'===s?'middle':'start';break;case'top-right':a=t-i,A=-o,c='horizontal'===s?'end':'start';break;case'right':a=t+i,c='horizontal'===s?'start':'middle';break;case'bottom-right':a=t-i,A=o,c='end';break;case'bottom':a=t/2,A=o,c='horizontal'===s?'middle':'end';break;case'bottom-left':a=i,A=o,c='horizontal'===s?'start':'end';break;case'left':a=-i,c='horizontal'===s?'end':'middle'}return{x:a,y:A,rotation:l,textAnchor:c}}({axis:r,width:t,height:n,position:l,offsetX:c,offsetY:u,orientation:d});v=w('text',{transform:'translate('+b.x+', '+b.y+') rotate('+b.rotation+')',textAnchor:b.textAnchor,dominantBaseline:'central',style:a,children:A})}return B('g',{transform:'translate('+h+', '+g+')',children:[w('line',{x1:0,x2:p,y1:0,y2:m,stroke:f.markers.lineColor,strokeWidth:f.markers.lineStrokeWidth,style:s}),v]})};TC.propTypes={width:Qr.number.isRequired,height:Qr.number.isRequired,axis:Qr.oneOf(['x','y']).isRequired,scale:Qr.func.isRequired,value:Qr.oneOfType([Qr.number,Qr.string,Qr.instanceOf(Date)]).isRequired,lineStyle:Qr.object,textStyle:Qr.object,legend:Qr.string,legendPosition:Qr.oneOf(['top-left','top','top-right','right','bottom-right','bottom','bottom-left','left']),legendOffsetX:Qr.number.isRequired,legendOffsetY:Qr.number.isRequired,legendOrientation:Qr.oneOf(['horizontal','vertical']).isRequired},TC.defaultProps={legendPosition:'top-right',legendOffsetX:14,legendOffsetY:14,legendOrientation:'horizontal'};var MC=f(TC),DC=function(e){var t=e.markers,n=e.width,r=e.height,i=e.xScale,o=e.yScale;return t&&0!==t.length?t.map(function(e,t){return w(MC,jx({},e,{width:n,height:r,scale:'y'===e.axis?o:i}),t)}):null};DC.propTypes={width:Qr.number.isRequired,height:Qr.number.isRequired,xScale:Qr.func.isRequired,yScale:Qr.func.isRequired,markers:Qr.arrayOf(Qr.shape({axis:Qr.oneOf(['x','y']).isRequired,value:Qr.oneOfType([Qr.number,Qr.string,Qr.instanceOf(Date)]).isRequired,lineStyle:Qr.object,textStyle:Qr.object}))};var PC=f(DC),RC=['theme','renderWrapper','animate','motionConfig'],HC=function(e){return function(t){var n,r;function i(){return t.apply(this,arguments)||this}return r=t,(n=i).prototype=Object.create(r.prototype),n.prototype.constructor=n,Fx(n,r),i.prototype.render=function(){var t=this.props,n=t.theme,r=t.renderWrapper,i=t.animate,o=t.motionConfig,s=Ex(t,RC);return w(pC,{theme:n,renderWrapper:r,isInteractive:s.isInteractive,animate:i,motionConfig:o,children:w(e,jx({},s))})},i}(g)},zC=function(e){return xA(e)?e:function(t){return rf(t,e)}},VC=function(e){return d(function(){return zC(e)},[e])},KC=function(e,t,n,r,i,o){return e<=i&&i<=e+n&&t<=o&&o<=t+r},qC=function(e,t){var n,r=t.clientX,i=t.clientY,o=e.getBoundingClientRect(),s=(n=void 0!==e.getBBox?e.getBBox():{width:e.offsetWidth,height:e.offsetHeight}).width===o.width?1:n.width/o.width;return[(r-o.left)*s,(i-o.top)*s]},GC=Object.keys(bC),WC=Object.keys(FC),YC=function(e,t,n,r){var i=void 0===r?{}:r,o=i.dataKey,s=i.colorKey,a=void 0===s?'color':s,A=i.targetKey,l=void 0===A?'fill':A,c=[],u={};return e.length&&t.length&&(c=[].concat(e),t.forEach(function(t){for(var r=function(){var r=n[i],s=r.id;if(function(e,t,n){if('*'===e)return!0;if(xA(e))return e(t);if(Tc(e)){var r=n?rf(t,n):t;return _x(Zw(r,Object.keys(e)),e)}return!1}(r.match,t,o)){var A=e.find(function(e){return e.id===s});if(A)if(WC.includes(A.type))if('inherit'===A.background||'inherit'===A.color){var d=rf(t,a),f=A.background,h=A.color,p=s;'inherit'===A.background&&(p=p+'.bg.'+d,f=d),'inherit'===A.color&&(p=p+'.fg.'+d,h=d),ff(t,l,'url(#'+p+')'),u[p]||(c.push(jx({},A,{id:p,background:f,color:h})),u[p]=1)}else ff(t,l,'url(#'+s+')');else if(GC.includes(A.type))if(A.colors.map(function(e){return e.color}).includes('inherit')){var g=rf(t,a),m=s,v=jx({},A,{colors:A.colors.map(function(e,t){return'inherit'!==e.color?e:(m=m+'.'+t+'.'+g,jx({},e,{color:'inherit'===e.color?g:e.color}))})});v.id=m,ff(t,l,'url(#'+m+')'),u[m]||(c.push(v),u[m]=1)}else ff(t,l,'url(#'+s+')');return'break'}},i=0;i<n.length&&'break'!==r();i++);})),c};var XC=HB,JC=function(){},ZC=XC&&1/iB(new XC([,-0]))[1]==1/0?function(e){return new XC(e)}:JC,$C=_b,e_=kb,t_=Ub,n_=Qb,r_=ZC,i_=iB;var o_=function(e,t,n){var r=-1,i=e_,o=e.length,s=!0,a=[],A=a;if(n)s=!1,i=t_;else if(o>=200){var l=t?null:r_(e);if(l)return i_(l);s=!1,i=n_,A=new $C}else A=t?[]:a;e:for(;++r<o;){var c=e[r],u=t?t(c):c;if(c=n||0!==c?c:0,s&&u==u){for(var d=A.length;d--;)if(A[d]===u)continue e;t&&A.push(u),a.push(c)}else i(A,u,n)||(A!==a&&A.push(u),a.push(c))}return a},s_=o_;var a_=or(function(e){return e&&e.length?s_(e):[]}),A_=Ql,l_=xx;var c_=function(e,t,n,r){var i=n.length,o=i,s=!r;if(null==e)return!o;for(e=Object(e);i--;){var a=n[i];if(s&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++i<o;){var A=(a=n[i])[0],l=e[A],c=a[1];if(s&&a[2]){if(void 0===l&&!(A in e))return!1}else{var u=new A_;if(r)var d=r(l,c,A,e,t,u);if(!(void 0===d?l_(c,l,3,r,u):d))return!1}}return!0},u_=vA;var d_=function(e){return e==e&&!u_(e)},f_=d_,h_=QB;var p_=function(e){for(var t=h_(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,f_(i)]}return t};var g_=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}},m_=c_,v_=p_,b_=g_;var y_=function(e){var t=v_(e);return 1==t.length&&t[0][2]?b_(t[0][0],t[0][1]):function(n){return n===e||m_(n,e,t)}},w_=xx,B_=nf,x_=Ow,C_=Sd,__=d_,j_=g_,F_=Jd;var E_=function(e,t){return C_(e)&&__(t)?j_(F_(e),t):function(n){var r=B_(n,e);return void 0===r&&r===t?x_(n,e):w_(t,r,3)}};var S_=function(e){return function(t){return null==t?void 0:t[e]}},k_=ef;var U_=function(e){return function(t){return k_(t,e)}},Q_=S_,L_=U_,O_=Sd,I_=Jd;var N_=function(e){return O_(e)?Q_(I_(e)):L_(e)},T_=y_,M_=E_,D_=Ju,P_=mc,R_=N_;var H_=function(e){return'function'==typeof e?e:null==e?D_:'object'==typeof e?P_(e)?M_(e[0],e[1]):T_(e):R_(e)},z_=H_,V_=o_;var K_=or(function(e,t){return e&&e.length?V_(e,z_(t)):[]}),q_=Rl,G_=QB;var W_=function(e,t){return e&&q_(e,t,G_)},Y_=wc;var X_=function(e,t){return function(n,r){if(null==n)return n;if(!Y_(n))return e(n,r);for(var i=n.length,o=t?i:-1,s=Object(n);(t?o--:++o<i)&&!1!==r(s[o],o,s););return n}}(W_),J_=X_,Z_=wc;var $_=Cd;var ej=function(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=e==e,o=$_(e),s=void 0!==t,a=null===t,A=t==t,l=$_(t);if(!a&&!l&&!o&&e>t||o&&s&&A&&!a&&!l||r&&s&&A||!n&&A||!i)return 1;if(!r&&!o&&!l&&e<t||l&&n&&i&&!r&&!o||a&&n&&i||!s&&i||!A)return-1}return 0};var tj=function(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,s=i.length,a=n.length;++r<s;){var A=ej(i[r],o[r]);if(A)return r>=a?A:A*('desc'==n[r]?-1:1)}return e.index-t.index},nj=Td,rj=ef,ij=H_,oj=function(e,t){var n=-1,r=Z_(e)?Array(e.length):[];return J_(e,function(e,i,o){r[++n]=t(e,i,o)}),r},sj=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e},aj=zc,Aj=tj,lj=Ju,cj=mc;var uj=function(e,t,n){t=t.length?nj(t,function(e){return cj(e)?function(t){return rj(t,1===e.length?e[0]:e)}:e}):[lj];var r=-1;t=nj(t,aj(ij));var i=oj(e,function(e,n,i){return{criteria:nj(t,function(t){return t(e)}),index:++r,value:e}});return sj(i,function(e,t){return Aj(e,t,n)})},dj=Vw,fj=uj,hj=pd,pj=or(cd(function(e,t){if(null==e)return[];var n=t.length;return n>1&&hj(e,t[0],t[1])?t=[]:n>2&&hj(t[0],t[1],t[2])&&(t=[t[0]]),fj(e,dj(t,1),[])})),gj=mA,mj=Ac;var vj=function(e){return mj(e)&&'[object Date]'==gj(e)},bj=zc,yj=Kc&&Kc.isDate,wj=or(yj?bj(yj):vj),Bj=new Date,xj=new Date;function Cj(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=function(t){return e(t=new Date(+t)),t},i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},i.range=function(n,r,o){var s,a=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return a;do{a.push(s=new Date(+n)),t(n,o),e(n)}while(s<n&&n<r);return a},i.filter=function(n){return Cj(function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})},n&&(i.count=function(t,r){return Bj.setTime(+t),xj.setTime(+r),e(Bj),e(xj),Math.floor(n(Bj,xj))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e===0}:function(t){return i.count(0,t)%e===0}):i:null}),i}var _j=Cj(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});_j.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Cj(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):_j:null};var jj=_j;_j.range;var Fj=1e3,Ej=6e4,Sj=36e5,kj=6048e5,Uj=Cj(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Fj)},function(e,t){return(t-e)/Fj},function(e){return e.getUTCSeconds()}),Qj=Uj;Uj.range;var Lj=Cj(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Fj)},function(e,t){e.setTime(+e+t*Ej)},function(e,t){return(t-e)/Ej},function(e){return e.getMinutes()}),Oj=Lj;Lj.range;var Ij=Cj(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Fj-e.getMinutes()*Ej)},function(e,t){e.setTime(+e+t*Sj)},function(e,t){return(t-e)/Sj},function(e){return e.getHours()}),Nj=Ij;function Tj(e){return Cj(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ej)/kj})}Ij.range;var Mj=Tj(0),Dj=Tj(1),Pj=Tj(2),Rj=Tj(3),Hj=Tj(4),zj=Tj(5),Vj=Tj(6);Mj.range,Dj.range,Pj.range,Rj.range,Hj.range,zj.range,Vj.range;var Kj=Cj(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())},function(e){return e.getMonth()}),qj=Kj;Kj.range;var Gj=Cj(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});Gj.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Cj(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)}):null};var Wj=Gj;Gj.range;var Yj=Cj(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Ej)},function(e,t){return(t-e)/Ej},function(e){return e.getUTCMinutes()}),Xj=Yj;Yj.range;var Jj=Cj(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*Sj)},function(e,t){return(t-e)/Sj},function(e){return e.getUTCHours()}),Zj=Jj;function $j(e){return Cj(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+7*t)},function(e,t){return(t-e)/kj})}Jj.range;var eF=$j(0),tF=$j(1),nF=$j(2),rF=$j(3),iF=$j(4),oF=$j(5),sF=$j(6);eF.range,tF.range,nF.range,rF.range,iF.range,oF.range,sF.range;var aF=Cj(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())},function(e){return e.getUTCMonth()}),AF=aF;aF.range;var lF=Cj(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});lF.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Cj(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null};var cF=lF;function uF(){return uF=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},uF.apply(this,arguments)}lF.range;var dF=[function(e){return e.setMilliseconds(0)},function(e){return e.setSeconds(0)},function(e){return e.setMinutes(0)},function(e){return e.setHours(0)},function(e){return e.setDate(1)},function(e){return e.setMonth(0)}],fF={millisecond:[],second:dF.slice(0,1),minute:dF.slice(0,2),hour:dF.slice(0,3),day:dF.slice(0,4),month:dF.slice(0,5),year:dF.slice(0,6)},hF=function(e){var t=e.format,n=void 0===t?'native':t,r=e.precision,i=void 0===r?'millisecond':r,o=e.useUTC,s=void 0===o||o,a=function(e){return function(t){return fF[e].forEach(function(e){e(t)}),t}}(i);return function(e){if(void 0===e)return e;if('native'===n||e instanceof Date)return a(e);var t=s?Cm(n):Bm(n);return a(t(e))}},pF=function(e,t,n,r){var i,o,s,a,A=e.min,l=void 0===A?0:A,c=e.max,u=void 0===c?'auto':c,d=e.stacked,f=void 0!==d&&d,h=e.reverse,p=void 0!==h&&h,g=e.clamp,m=void 0!==g&&g,v=e.nice,b=void 0!==v&&v;i='auto'===l?!0===f?null!=(o=t.minStacked)?o:0:t.min:l,s='auto'===u?!0===f?null!=(a=t.maxStacked)?a:0:t.max:u;var y=rg().rangeRound('x'===r?[0,n]:[n,0]).domain(p?[s,i]:[i,s]).clamp(m);return!0===b?y.nice():'number'==typeof b&&y.nice(b),gF(y,f)},gF=function(e,t){void 0===t&&(t=!1);var n=e;return n.type='linear',n.stacked=t,n},mF=function(e){var t=e;return t.type='band',t},vF=function(e,t,n){var r,i,o=e.format,s=void 0===o?'native':o,a=e.precision,A=void 0===a?'millisecond':a,l=e.min,c=void 0===l?'auto':l,u=e.max,d=void 0===u?'auto':u,f=e.useUTC,h=void 0===f||f,p=e.nice,g=void 0!==p&&p,m=hF({format:s,precision:A,useUTC:h});r='auto'===c?m(t.min):'native'!==s?m(c):c,i='auto'===d?m(t.max):'native'!==s?m(d):d;var v=h?function(){return vh.apply(Vv(fm,hm,um,lm,tm,$g,Jg,Yg,Sg,xm).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}():function(){return vh.apply(Vv(pm,gm,Gg,Kg,Tg,Ig,Lg,Ug,Sg,wm).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}();v.range([0,n]),r&&i&&v.domain([r,i]),!0===g?v.nice():'object'!=typeof g&&'number'!=typeof g||v.nice(g);var b=v;return b.type='time',b.useUTC=h,b},bF=function(e,t,n,r){var i,o=e.base,s=void 0===o?10:o,a=e.min,A=void 0===a?'auto':a,l=e.max,c=void 0===l?'auto':l;if(t.all.some(function(e){return 0===e}))throw new Error('a log scale domain must not include or cross zero');var u,d,f=!1;if(t.all.filter(function(e){return null!=e}).forEach(function(e){f||(void 0===i?i=Math.sign(e):Math.sign(e)!==i&&(f=!0))}),f)throw new Error('a log scale domain must be strictly-positive or strictly-negative');u='auto'===A?t.min:A,d='auto'===c?t.max:c;var h=dg().domain([u,d]).rangeRound('x'===r?[0,n]:[n,0]).base(s).nice();return h.type='log',h},yF=function(e,t){return e===t},wF=function(e,t){return e.getTime()===t.getTime()};function BF(e,t,n,r){switch(e.type){case'linear':return pF(e,t,n,r);case'point':return function(e,t,n){var r=xh().range([0,n]).domain(t.all);return r.type='point',r}(0,t,n);case'band':return function(e,t,n,r){var i=e.round,o=void 0===i||i,s=wh().range('x'===r?[0,n]:[n,0]).domain(t.all).round(o);return mF(s)}(e,t,n,r);case'time':return vF(e,t,n);case'log':return bF(e,t,n,r);case'symlog':return function(e,t,n,r){var i,o,s=e.constant,a=void 0===s?1:s,A=e.min,l=void 0===A?'auto':A,c=e.max,u=void 0===c?'auto':c,d=e.reverse,f=void 0!==d&&d;i='auto'===l?t.min:l,o='auto'===u?t.max:u;var h=pg().constant(a).rangeRound('x'===r?[0,n]:[n,0]).nice();!0===f?h.domain([o,i]):h.domain([i,o]);var p=h;return p.type='symlog',p}(e,t,n,r);default:throw new Error('invalid scale spec')}}var xF=function(e,t,n){var r;if('stacked'in n&&n.stacked){var i=e.data['x'===t?'xStacked':'yStacked'];return null==i?null:n(i)}return null!=(r=n(e.data[t]))?r:null},CF=function(e,t,n){return{x:_F(e,'x',t),y:_F(e,'y',n)}},_F=function(e,t,n,r){var i=void 0===r?{}:r,o=i.getValue,s=void 0===o?function(e){return e.data[t]}:o,a=i.setValue,A=void 0===a?function(e,n){e.data[t]=n}:a;if('linear'===n.type)e.forEach(function(e){e.data.forEach(function(e){var t=s(e);t&&A(e,parseFloat(String(t)))})});else if('time'===n.type&&'native'!==n.format){var l=hF(n);e.forEach(function(e){e.data.forEach(function(e){var t=s(e);t&&A(e,l(t))})})}var c=[];switch(e.forEach(function(e){e.data.forEach(function(e){c.push(s(e))})}),n.type){case'linear':var u=pj(a_(c).filter(function(e){return null!==e}),function(e){return e});return{all:u,min:Math.min.apply(Math,u),max:Math.max.apply(Math,u)};case'time':var d=K_(c,function(e){return e.getTime()}).slice(0).sort(function(e,t){return t.getTime()-e.getTime()}).reverse();return{all:d,min:d[0],max:ah(d)};default:var f=a_(c);return{all:f,min:f[0],max:ah(f)}}},jF=function(e,t,n){var r=function(e){return'x'===e?'y':'x'}(e),i=[];t[r].all.forEach(function(t){var o=wj(t)?wF:yF,s=[];n.forEach(function(n){var a=n.data.find(function(e){return o(e.data[r],t)}),A=null,l=null;if(void 0!==a){if(null!==(A=a.data[e])){var c=ah(s);void 0===c?l=A:null!==c&&(l=c+A)}a.data['x'===e?'xStacked':'yStacked']=l}s.push(l),null!==l&&i.push(l)})}),t[e].minStacked=Math.min.apply(Math,i),t[e].maxStacked=Math.max.apply(Math,i)},FF=function(e,t){return jF('x',e,t)},EF=function(e,t){return jF('y',e,t)},SF=function(e){var t=e.bandwidth();if(0===t)return e;var n=t/2;return e.round()&&(n=Math.round(n)),function(t){var r;return(null!=(r=e(t))?r:0)+n}},kF={millisecond:[jj,jj],second:[Qj,Qj],minute:[Oj,Xj],hour:[Nj,Zj],day:[Cj(function(e){return e.setHours(0,0,0,0)},function(e,t){return e.setDate(e.getDate()+t)},function(e,t){return(t.getTime()-e.getTime())/864e5},function(e){return Math.floor(e.getTime()/864e5)}),Cj(function(e){return e.setUTCHours(0,0,0,0)},function(e,t){return e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t.getTime()-e.getTime())/864e5},function(e){return Math.floor(e.getTime()/864e5)})],week:[Mj,eF],sunday:[Mj,eF],monday:[Dj,tF],tuesday:[Pj,nF],wednesday:[Rj,rF],thursday:[Hj,iF],friday:[zj,oF],saturday:[Vj,sF],month:[qj,AF],year:[Wj,cF]},UF=Object.keys(kF),QF=new RegExp('^every\\s*(\\d+)?\\s*('+UF.join('|')+')s?$','i'),LF=function(e,t){if(Array.isArray(t))return t;if('string'==typeof t&&'useUTC'in e){var n=t.match(QF);if(n){var r=n[1],i=n[2],o=kF[i][e.useUTC?1:0];if('day'===i){var s,a,A=e.domain(),l=A[0],c=A[1],u=new Date(c);return u.setDate(u.getDate()+1),null!=(s=null==(a=o.every(Number(null!=r?r:1)))?void 0:a.range(l,u))?s:[]}if(void 0===r)return e.ticks(o);var d=o.every(Number(r));if(d)return e.ticks(d)}throw new Error('Invalid tickValues: '+t)}if('ticks'in e){if(void 0===t)return e.ticks();if('number'==typeof(f=t)&&isFinite(f)&&Math.floor(f)===f)return e.ticks(t)}var f;return e.domain()};function OF(){return OF=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},OF.apply(this,arguments)}var IF=function(e){var t,n=e.axis,r=e.scale,i=e.ticksPosition,o=e.tickValues,s=e.tickSize,a=e.tickPadding,A=e.tickRotation,l=e.truncateTickAt,c=e.engine,u=void 0===c?'svg':c,d=LF(r,o),f=CC[u],h='bandwidth'in r?SF(r):r,p={lineX:0,lineY:0},g={textX:0,textY:0},m='object'==typeof document&&'rtl'===document.dir,v=f.align.center,b=f.baseline.center;return'x'===n?(t=function(e){var t;return{x:null!=(t=h(e))?t:0,y:0}},p.lineY=s*('after'===i?1:-1),g.textY=(s+a)*('after'===i?1:-1),b='after'===i?f.baseline.top:f.baseline.bottom,0===A?v=f.align.center:'after'===i&&A<0||'before'===i&&A>0?(v=f.align[m?'left':'right'],b=f.baseline.center):('after'===i&&A>0||'before'===i&&A<0)&&(v=f.align[m?'right':'left'],b=f.baseline.center)):(t=function(e){var t;return{x:0,y:null!=(t=h(e))?t:0}},p.lineX=s*('after'===i?1:-1),g.textX=(s+a)*('after'===i?1:-1),v='after'===i?f.align.left:f.align.right),{ticks:d.map(function(e){var n='string'==typeof e?function(e){var t=String(e).length;return l&&l>0&&t>l?''+String(e).slice(0,l).concat('...'):''+e}(e):e;return OF({key:e instanceof Date?''+e.valueOf():''+e,value:n},t(e),p,g)}),textAlign:v,textBaseline:b}},NF=function(e,t){if(void 0===e||'function'==typeof e)return e;if('time'===t.type){var n=wm(e);return function(e){return n(e instanceof Date?e:new Date(e))}}return gw(e)},TF=function(e){var t,n=e.width,r=e.height,i=e.scale,o=e.axis,s=e.values,a=(t=s,(Array.isArray(t)?s:void 0)||LF(i,s)),A='bandwidth'in i?SF(i):i,l='x'===o?a.map(function(e){var t,n;return{key:e instanceof Date?''+e.valueOf():''+e,x1:null!=(t=A(e))?t:0,x2:null!=(n=A(e))?n:0,y1:0,y2:r}}):a.map(function(e){var t,r;return{key:e instanceof Date?''+e.valueOf():''+e,x1:0,x2:n,y1:null!=(t=A(e))?t:0,y2:null!=(r=A(e))?r:0}});return l},MF=f(function(e){var t,n=e.value,r=e.format,i=e.lineX,o=e.lineY,s=e.onClick,a=e.textBaseline,A=e.textAnchor,l=e.animatedProps,c=dC(),u=c.axis.ticks.line,f=c.axis.ticks.text,h=null!=(t=null==r?void 0:r(n))?t:n,p=d(function(){var e={opacity:l.opacity};return s?{style:OF({},e,{cursor:'pointer'}),onClick:function(e){return s(e,h)}}:{style:e}},[l.opacity,s,h]);return B(va.g,OF({transform:l.transform},p,{children:[w('line',{x1:0,x2:i,y1:0,y2:o,style:u}),f.outlineWidth>0&&w(va.text,{dominantBaseline:a,textAnchor:A,transform:l.textTransform,style:f,strokeWidth:2*f.outlineWidth,stroke:f.outlineColor,strokeLinejoin:'round',children:''+h}),w(va.text,{dominantBaseline:a,textAnchor:A,transform:l.textTransform,style:f,children:''+h})]}))}),DF=f(function(t){var n=t.axis,r=t.scale,i=t.x,o=void 0===i?0:i,a=t.y,A=void 0===a?0:a,l=t.length,c=t.ticksPosition,u=t.tickValues,f=t.tickSize,h=void 0===f?5:f,p=t.tickPadding,g=void 0===p?5:p,m=t.tickRotation,v=void 0===m?0:m,b=t.format,y=t.renderTick,C=void 0===y?MF:y,_=t.truncateTickAt,j=t.legend,F=t.legendPosition,E=void 0===F?'end':F,S=t.legendOffset,k=void 0===S?0:S,U=t.onClick,Q=t.ariaHidden,L=dC(),O=L.axis.legend.text,I=d(function(){return NF(b,r)},[b,r]),N=IF({axis:n,scale:r,ticksPosition:c,tickValues:u,tickSize:h,tickPadding:g,tickRotation:v,truncateTickAt:_}),T=N.ticks,M=N.textAlign,D=N.textBaseline,P=null;if(void 0!==j){var R,H=0,z=0,V=0;'y'===n?(V=-90,H=k,'start'===E?(R='start',z=l):'middle'===E?(R='middle',z=l/2):'end'===E&&(R='end')):(z=k,'start'===E?R='start':'middle'===E?(R='middle',H=l/2):'end'===E&&(R='end',H=l)),P=B(x,{children:[O.outlineWidth>0&&w('text',{transform:'translate('+H+', '+z+') rotate('+V+')',textAnchor:R,style:OF({dominantBaseline:'central'},O),strokeWidth:2*O.outlineWidth,stroke:O.outlineColor,strokeLinejoin:'round',children:j}),w('text',{transform:'translate('+H+', '+z+') rotate('+V+')',textAnchor:R,style:OF({dominantBaseline:'central'},O),children:j})]})}var K=zx(),q=K.animate,G=K.config,W=Js({transform:'translate('+o+','+A+')',lineX2:'x'===n?l:0,lineY2:'x'===n?0:l,config:G,immediate:!q}),Y=s(function(e){return{opacity:1,transform:'translate('+e.x+','+e.y+')',textTransform:'translate('+e.textX+','+e.textY+') rotate('+v+')'}},[v]),X=s(function(e){return{opacity:0,transform:'translate('+e.x+','+e.y+')',textTransform:'translate('+e.textX+','+e.textY+') rotate('+v+')'}},[v]),J=Zs(T,{keys:function(e){return e.key},initial:Y,from:X,enter:Y,update:Y,leave:{opacity:0},config:G,immediate:!q});return B(va.g,{transform:W.transform,'aria-hidden':Q,children:[J(function(t,n,r,i){return e.createElement(C,OF({tickIndex:i,format:I,rotate:v,textBaseline:D,textAnchor:M,truncateTickAt:_,animatedProps:t},n,U?{onClick:U}:{}))}),w(va.line,{style:L.axis.domain.line,x1:0,x2:W.lineX2,y1:0,y2:W.lineY2}),P]})}),PF={ticksPosition:Qr.oneOf(['before','after']),tickValues:Qr.oneOfType([Qr.number,Qr.arrayOf(Qr.oneOfType([Qr.number,Qr.string,Qr.instanceOf(Date)])),Qr.string]),rotateOnTickLength:Qr.shape({angle:Qr.number,length:Qr.number}),tickSize:Qr.number,tickPadding:Qr.number,tickRotation:Qr.number,format:Qr.oneOfType([Qr.func,Qr.string]),renderTick:Qr.func,legend:Qr.node,legendPosition:Qr.oneOf(['start','middle','end']),legendOffset:Qr.number,ariaHidden:Qr.bool},RF=Qr.shape(PF),HF=['top','right','bottom','left'],zF=f(function(e){var t=e.xScale,n=e.yScale,r=e.width,i=e.height,o={top:e.top,right:e.right,bottom:e.bottom,left:e.left};return w(x,{children:HF.map(function(e){var s=o[e];if(!s)return null;var a='top'===e||'bottom'===e;return w(DF,OF({},s,{axis:a?'x':'y',x:'right'===e?r:0,y:'bottom'===e?i:0,scale:a?t:n,length:a?r:i,ticksPosition:'top'===e||'left'===e?'before':'after',truncateTickAt:s.truncateTickAt}),e)})})}),VF=f(function(e){var t=e.animatedProps,n=dC();return w(va.line,OF({},t,n.grid.line))}),KF=f(function(e){var t=e.lines,n=zx(),r=n.animate,i=Zs(t,{keys:function(e){return e.key},initial:function(e){return{opacity:1,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2}},from:function(e){return{opacity:0,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2}},enter:function(e){return{opacity:1,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2}},update:function(e){return{opacity:1,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2}},leave:{opacity:0},config:n.config,immediate:!r});return w('g',{children:i(function(e,t){return p(VF,OF({},t,{key:t.key,animatedProps:e}))})})}),qF=f(function(e){var t=e.width,n=e.height,r=e.xScale,i=e.yScale,o=e.xValues,s=e.yValues,a=d(function(){return!!r&&TF({width:t,height:n,scale:r,axis:'x',values:o})},[r,o,t,n]),A=d(function(){return!!i&&TF({width:t,height:n,scale:i,axis:'y',values:s})},[n,t,i,s]);return B(x,{children:[a&&w(KF,{lines:a}),A&&w(KF,{lines:A})]})}),GF=function(e,t){var n=t.xScale,r=t.yScale,i=t.width,o=t.height,s=t.top,a=t.right,A=t.bottom,l=t.left,c=t.theme,u={top:s,right:a,bottom:A,left:l};HF.forEach(function(t){var s=u[t];if(!s)return null;var a='top'===t||'bottom'===t,A='top'===t||'left'===t?'before':'after',l=a?n:r,d=NF(s.format,l);!function(e,t){var n,r=t.axis,i=t.scale,o=t.x,s=void 0===o?0:o,a=t.y,A=void 0===a?0:a,l=t.length,c=t.ticksPosition,u=t.tickValues,d=t.tickSize,f=void 0===d?5:d,h=t.tickPadding,p=void 0===h?5:h,g=t.tickRotation,m=void 0===g?0:g,v=t.format,b=t.legend,y=t.legendPosition,w=void 0===y?'end':y,B=t.legendOffset,x=void 0===B?0:B,C=t.theme,_=IF({axis:r,scale:i,ticksPosition:c,tickValues:u,tickSize:f,tickPadding:p,tickRotation:m,engine:'canvas'}),j=_.ticks,F=_.textAlign,E=_.textBaseline;e.save(),e.translate(s,A),e.textAlign=F,e.textBaseline=E;var S=C.axis.ticks.text;e.font=(S.fontWeight?S.fontWeight+' ':'')+S.fontSize+'px '+S.fontFamily,(null!=(n=C.axis.domain.line.strokeWidth)?n:0)>0&&(e.lineWidth=Number(C.axis.domain.line.strokeWidth),e.lineCap='square',C.axis.domain.line.stroke&&(e.strokeStyle=C.axis.domain.line.stroke),e.beginPath(),e.moveTo(0,0),e.lineTo('x'===r?l:0,'x'===r?0:l),e.stroke());var k='function'==typeof v?v:function(e){return''+e};if(j.forEach(function(t){var n;(null!=(n=C.axis.ticks.line.strokeWidth)?n:0)>0&&(e.lineWidth=Number(C.axis.ticks.line.strokeWidth),e.lineCap='square',C.axis.ticks.line.stroke&&(e.strokeStyle=C.axis.ticks.line.stroke),e.beginPath(),e.moveTo(t.x,t.y),e.lineTo(t.x+t.lineX,t.y+t.lineY),e.stroke());var r=k(t.value);e.save(),e.translate(t.x+t.textX,t.y+t.textY),e.rotate(wC(m)),S.outlineWidth>0&&(e.strokeStyle=S.outlineColor,e.lineWidth=2*S.outlineWidth,e.lineJoin='round',e.strokeText(''+r,0,0)),C.axis.ticks.text.fill&&(e.fillStyle=S.fill),e.fillText(''+r,0,0),e.restore()}),void 0!==b){var U=0,Q=0,L=0,O='center';'y'===r?(L=-90,U=x,'start'===w?(O='start',Q=l):'middle'===w?(O='center',Q=l/2):'end'===w&&(O='end')):(Q=x,'start'===w?O='start':'middle'===w?(O='center',U=l/2):'end'===w&&(O='end',U=l)),e.translate(U,Q),e.rotate(wC(L)),e.font=(C.axis.legend.text.fontWeight?C.axis.legend.text.fontWeight+' ':'')+C.axis.legend.text.fontSize+'px '+C.axis.legend.text.fontFamily,C.axis.legend.text.fill&&(e.fillStyle=C.axis.legend.text.fill),e.textAlign=O,e.textBaseline='middle',e.fillText(b,0,0)}e.restore()}(e,OF({},s,{axis:a?'x':'y',x:'right'===t?i:0,y:'bottom'===t?o:0,scale:l,format:d,length:a?i:o,ticksPosition:A,theme:c}))})},WF=function(e,t){var n=t.width,r=t.height,i=t.scale,o=t.axis,s=t.values;TF({width:n,height:r,scale:i,axis:o,values:s}).forEach(function(t){e.beginPath(),e.moveTo(t.x1,t.y1),e.lineTo(t.x2,t.y2),e.stroke()})},YF=X_;var XF=gB,JF=function(e,t){var n=[];return YF(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n},ZF=H_,$F=mc;var eE=or(function(e,t){return($F(e)?XF:JF)(e,ZF(t))}),tE=mA,nE=Ac;var rE=or(function(e){return'number'==typeof e||nE(e)&&'[object Number]'==tE(e)});var iE=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},oE=ru,sE=QB;var aE=function(e,t){return e&&oE(t,sE(t),e)},AE=ru,lE=Cu;var cE=function(e,t){return e&&AE(t,lE(t),e)},uE=ru,dE=xB;var fE=function(e,t){return uE(e,dE(e),t)},hE=Mw,pE=tc,gE=xB,mE=mB,vE=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)hE(t,gE(e)),e=pE(e);return t}:mE,bE=ru,yE=vE;var wE=function(e,t){return bE(e,yE(e),t)},BE=pB,xE=vE,CE=Cu;var _E=function(e){return BE(e,CE,xE)},jE=Object.prototype.hasOwnProperty;var FE=function(e){var t=e.length,n=new e.constructor(t);return t&&'string'==typeof e[0]&&jE.call(e,'index')&&(n.index=e.index,n.input=e.input),n},EE=ql;var SE=function(e,t){var n=t?EE(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},kE=/\w*$/;var UE=function(e){var t=new e.constructor(e.source,kE.exec(e));return t.lastIndex=e.lastIndex,t},QE=sA?sA.prototype:void 0,LE=QE?QE.valueOf:void 0;var OE=ql,IE=SE,NE=UE,TE=function(e){return LE?Object(LE.call(e)):{}},ME=Wl;var DE=function(e,t,n){var r=e.constructor;switch(t){case'[object ArrayBuffer]':return OE(e);case'[object Boolean]':case'[object Date]':return new r(+e);case'[object DataView]':return IE(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 ME(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 NE(e);case'[object Symbol]':return TE(e)}},PE=ax,RE=Ac;var HE=function(e){return RE(e)&&'[object Map]'==PE(e)},zE=zc,VE=Kc&&Kc.isMap,KE=VE?zE(VE):HE,qE=ax,GE=Ac;var WE=function(e){return GE(e)&&'[object Set]'==qE(e)},YE=zc,XE=Kc&&Kc.isSet,JE=XE?YE(XE):WE,ZE=Ql,$E=iE,eS=eu,tS=aE,nS=cE,rS=zl,iS=Yl,oS=fE,sS=wE,aS=NB,AS=_E,lS=ax,cS=FE,uS=DE,dS=ac,fS=mc,hS=Fc,pS=KE,gS=vA,mS=JE,vS=QB,bS=Cu,yS='[object Arguments]',wS='[object Function]',BS='[object Object]',xS={};xS[yS]=xS['[object Array]']=xS['[object ArrayBuffer]']=xS['[object DataView]']=xS['[object Boolean]']=xS['[object Date]']=xS['[object Float32Array]']=xS['[object Float64Array]']=xS['[object Int8Array]']=xS['[object Int16Array]']=xS['[object Int32Array]']=xS['[object Map]']=xS['[object Number]']=xS[BS]=xS['[object RegExp]']=xS['[object Set]']=xS['[object String]']=xS['[object Symbol]']=xS['[object Uint8Array]']=xS['[object Uint8ClampedArray]']=xS['[object Uint16Array]']=xS['[object Uint32Array]']=!0,xS['[object Error]']=xS[wS]=xS['[object WeakMap]']=!1;var CS=function e(t,n,r,i,o,s){var a,A=1&n,l=2&n,c=4&n;if(r&&(a=o?r(t,i,o,s):r(t)),void 0!==a)return a;if(!gS(t))return t;var u=fS(t);if(u){if(a=cS(t),!A)return iS(t,a)}else{var d=lS(t),f=d==wS||'[object GeneratorFunction]'==d;if(hS(t))return rS(t,A);if(d==BS||d==yS||f&&!o){if(a=l||f?{}:dS(t),!A)return l?sS(t,nS(a,t)):oS(t,tS(a,t))}else{if(!xS[d])return o?t:{};a=uS(t,d,A)}}s||(s=new ZE);var h=s.get(t);if(h)return h;s.set(t,a),mS(t)?t.forEach(function(i){a.add(e(i,n,r,i,t,s))}):pS(t)&&t.forEach(function(i,o){a.set(o,e(i,n,r,o,t,s))});var p=u?void 0:(c?l?AS:aS:l?bS:vS)(t);return $E(p||t,function(i,o){p&&(i=t[o=i]),eS(a,o,e(i,n,r,o,t,s))}),a};var _S=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o},jS=ef,FS=_S;var ES=function(e,t){return t.length<2?e:jS(e,FS(t,0,-1))},SS=Yd,kS=sh,US=ES,QS=Jd,LS=Object.prototype.hasOwnProperty;var OS=function(e,t){var n=-1,r=(t=SS(t,e)).length;if(!r)return!0;for(var i=null==e||'object'!=typeof e&&'function'!=typeof e;++n<r;){var o=t[n];if('string'==typeof o){if('__proto__'===o&&!LS.call(e,'__proto__'))return!1;if('constructor'===o&&n+1<r&&'string'==typeof t[n+1]&&'prototype'===t[n+1]){if(i&&0===n)continue;return!1}}}var s=US(e,t);return null==s||delete s[QS(kS(t))]},IS=Nc;var NS=Td,TS=CS,MS=OS,DS=Yd,PS=ru,RS=function(e){return IS(e)?void 0:e},HS=_E,zS=Yw(function(e,t){var n={};if(null==e)return n;var r=!1;t=NS(t,function(t){return t=DS(t,e),r||(r=t.length>1),t}),PS(e,HS(e),n),r&&(n=TS(n,7,RS));for(var i=t.length;i--;)MS(n,t[i]);return n}),VS=or(zS);function KS(){return KS=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},KS.apply(this,arguments)}var qS=4,GS=120,WS=8,YS=function(e){return'circle'===e.type},XS=function(e){return'dot'===e.type},JS=function(e){return'rect'===e.type},ZS=function(e){var t,n,r=e.x,i=e.y,o=e.noteX,s=e.noteY,a=e.noteWidth,A=void 0===a?GS:a,l=e.noteTextOffset,c=void 0===l?WS:l;if(rE(o))t=r+o;else{if(void 0===o.abs)throw new Error('noteX should be either a number or an object containing an \'abs\' property');t=o.abs}if(rE(s))n=i+s;else{if(void 0===s.abs)throw new Error('noteY should be either a number or an object containing an \'abs\' property');n=s.abs}var u=r,d=i,f=function(e,t,n,r){var i=Math.atan2(r-t,n-e);return function(e){var t=e%360;return t<0&&(t+=360),t}(BC(i))}(r,i,t,n);if(YS(e)){var h=xC(wC(f),e.size/2);u+=h.x,d+=h.y}if(JS(e)){var p=Math.round((f+90)/45)%8;0===p&&(d-=e.height/2),1===p&&(u+=e.width/2,d-=e.height/2),2===p&&(u+=e.width/2),3===p&&(u+=e.width/2,d+=e.height/2),4===p&&(d+=e.height/2),5===p&&(u-=e.width/2,d+=e.height/2),6===p&&(u-=e.width/2),7===p&&(u-=e.width/2,d-=e.height/2)}var g=t,m=t;return(f+90)%360>180?(g-=A,m-=A):m+=A,{points:[[u,d],[t,n],[m,n]],text:[g,n-c],angle:f+90}},$S=function(e){var t=e.data,n=e.annotations,r=e.getPosition,i=e.getDimensions;return d(function(){return function(e){var t=e.data,n=e.annotations,r=e.getPosition,i=e.getDimensions;return n.reduce(function(e,n){var o=n.offset||0;return[].concat(e,eE(t,n.match).map(function(e){var t=r(e),s=i(e);return(YS(n)||JS(n))&&(s.size=s.size+2*o,s.width=s.width+2*o,s.height=s.height+2*o),KS({},VS(n,['match','offset']),t,s,{size:n.size||s.size,datum:e})}))},[])}({data:t,annotations:n,getPosition:r,getDimensions:i})},[t,n,r,i])},ek=function(e){var t=e.datum,n=e.x,r=e.y,i=e.note,o=dC(),s=zx(),a=s.animate,A=Js({x:n,y:r,config:s.config,immediate:!a});return'function'==typeof i?p(i,{x:n,y:r,datum:t}):B(x,{children:[o.annotations.text.outlineWidth>0&&w(va.text,{x:A.x,y:A.y,style:KS({},o.annotations.text,{strokeLinejoin:'round',strokeWidth:2*o.annotations.text.outlineWidth,stroke:o.annotations.text.outlineColor}),children:i}),w(va.text,{x:A.x,y:A.y,style:VS(o.annotations.text,['outlineWidth','outlineColor']),children:i})]})},tk=function(e){var t=e.points,n=e.isOutline,r=void 0!==n&&n,i=dC(),o=d(function(){var e=t[0];return t.slice(1).reduce(function(e,t){return e+' L'+t[0]+','+t[1]},'M'+e[0]+','+e[1])},[t]),s=Vx(o);if(r&&i.annotations.link.outlineWidth<=0)return null;var a=KS({},i.annotations.link);return r&&(a.strokeLinecap='square',a.strokeWidth=i.annotations.link.strokeWidth+2*i.annotations.link.outlineWidth,a.stroke=i.annotations.link.outlineColor,a.opacity=i.annotations.link.outlineOpacity),w(va.path,{fill:'none',d:s,style:a})},nk=function(e){var t=e.x,n=e.y,r=e.size,i=dC(),o=zx(),s=o.animate,a=Js({x:t,y:n,radius:r/2,config:o.config,immediate:!s});return B(x,{children:[i.annotations.outline.outlineWidth>0&&w(va.circle,{cx:a.x,cy:a.y,r:a.radius,style:KS({},i.annotations.outline,{fill:'none',strokeWidth:i.annotations.outline.strokeWidth+2*i.annotations.outline.outlineWidth,stroke:i.annotations.outline.outlineColor,opacity:i.annotations.outline.outlineOpacity})}),w(va.circle,{cx:a.x,cy:a.y,r:a.radius,style:i.annotations.outline})]})},rk=function(e){var t=e.x,n=e.y,r=e.size,i=void 0===r?qS:r,o=dC(),s=zx(),a=s.animate,A=Js({x:t,y:n,radius:i/2,config:s.config,immediate:!a});return B(x,{children:[o.annotations.outline.outlineWidth>0&&w(va.circle,{cx:A.x,cy:A.y,r:A.radius,style:KS({},o.annotations.outline,{fill:'none',strokeWidth:2*o.annotations.outline.outlineWidth,stroke:o.annotations.outline.outlineColor,opacity:o.annotations.outline.outlineOpacity})}),w(va.circle,{cx:A.x,cy:A.y,r:A.radius,style:o.annotations.symbol})]})},ik=function(e){var t=e.x,n=e.y,r=e.width,i=e.height,o=e.borderRadius,s=void 0===o?6:o,a=dC(),A=zx(),l=A.animate,c=Js({x:t-r/2,y:n-i/2,width:r,height:i,config:A.config,immediate:!l});return B(x,{children:[a.annotations.outline.outlineWidth>0&&w(va.rect,{x:c.x,y:c.y,rx:s,ry:s,width:c.width,height:c.height,style:KS({},a.annotations.outline,{fill:'none',strokeWidth:a.annotations.outline.strokeWidth+2*a.annotations.outline.outlineWidth,stroke:a.annotations.outline.outlineColor,opacity:a.annotations.outline.outlineOpacity})}),w(va.rect,{x:c.x,y:c.y,rx:s,ry:s,width:c.width,height:c.height,style:a.annotations.outline})]})},ok=function(e){var t=e.datum,n=e.x,r=e.y,i=e.note,o=function(e){return d(function(){return ZS(e)},[e])}(e);if(!function(e){var t=typeof e;return a(e)||'string'===t||'function'===t||'object'===t}(i))throw new Error('note should be a valid react element');return B(x,{children:[w(tk,{points:o.points,isOutline:!0}),YS(e)&&w(nk,{x:n,y:r,size:e.size}),XS(e)&&w(rk,{x:n,y:r,size:e.size}),JS(e)&&w(ik,{x:n,y:r,width:e.width,height:e.height,borderRadius:e.borderRadius}),w(tk,{points:o.points}),w(ek,{datum:t,x:o.text[0],y:o.text[1],note:i})]})},sk=function(e,t){t.forEach(function(t,n){var r=t[0],i=t[1];0===n?e.moveTo(r,i):e.lineTo(r,i)})};function ak(e){for(var t=e.length/6|0,n=new Array(t),r=0;r<t;)n[r]='#'+e.slice(6*r,6*++r);return n}var Ak=ak('1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf'),lk=ak('7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666'),ck=ak('1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666'),uk=ak('a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928'),dk=ak('fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2'),fk=ak('b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc'),hk=ak('e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999'),pk=ak('66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3'),gk=ak('8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f'),mk=e=>vp(e[e.length-1]),vk=new Array(3).concat('d8b365f5f5f55ab4ac','a6611adfc27d80cdc1018571','a6611adfc27df5f5f580cdc1018571','8c510ad8b365f6e8c3c7eae55ab4ac01665e','8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e','8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e','8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e','5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30','5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30').map(ak),bk=mk(vk),yk=new Array(3).concat('af8dc3f7f7f77fbf7b','7b3294c2a5cfa6dba0008837','7b3294c2a5cff7f7f7a6dba0008837','762a83af8dc3e7d4e8d9f0d37fbf7b1b7837','762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837','762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837','762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837','40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b','40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b').map(ak),wk=mk(yk),Bk=new Array(3).concat('e9a3c9f7f7f7a1d76a','d01c8bf1b6dab8e1864dac26','d01c8bf1b6daf7f7f7b8e1864dac26','c51b7de9a3c9fde0efe6f5d0a1d76a4d9221','c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221','c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221','c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221','8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419','8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419').map(ak),xk=mk(Bk),Ck=new Array(3).concat('998ec3f7f7f7f1a340','5e3c99b2abd2fdb863e66101','5e3c99b2abd2f7f7f7fdb863e66101','542788998ec3d8daebfee0b6f1a340b35806','542788998ec3d8daebf7f7f7fee0b6f1a340b35806','5427888073acb2abd2d8daebfee0b6fdb863e08214b35806','5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806','2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08','2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08').map(ak),_k=mk(Ck),jk=new Array(3).concat('ef8a62f7f7f767a9cf','ca0020f4a58292c5de0571b0','ca0020f4a582f7f7f792c5de0571b0','b2182bef8a62fddbc7d1e5f067a9cf2166ac','b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac','b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac','b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac','67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061','67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061').map(ak),Fk=mk(jk),Ek=new Array(3).concat('ef8a62ffffff999999','ca0020f4a582bababa404040','ca0020f4a582ffffffbababa404040','b2182bef8a62fddbc7e0e0e09999994d4d4d','b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d','b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d','b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d','67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a','67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a').map(ak),Sk=mk(Ek),kk=new Array(3).concat('fc8d59ffffbf91bfdb','d7191cfdae61abd9e92c7bb6','d7191cfdae61ffffbfabd9e92c7bb6','d73027fc8d59fee090e0f3f891bfdb4575b4','d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4','d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4','d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4','a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695','a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695').map(ak),Uk=mk(kk),Qk=new Array(3).concat('fc8d59ffffbf91cf60','d7191cfdae61a6d96a1a9641','d7191cfdae61ffffbfa6d96a1a9641','d73027fc8d59fee08bd9ef8b91cf601a9850','d73027fc8d59fee08bffffbfd9ef8b91cf601a9850','d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850','d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850','a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837','a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837').map(ak),Lk=mk(Qk),Ok=new Array(3).concat('fc8d59ffffbf99d594','d7191cfdae61abdda42b83ba','d7191cfdae61ffffbfabdda42b83ba','d53e4ffc8d59fee08be6f59899d5943288bd','d53e4ffc8d59fee08bffffbfe6f59899d5943288bd','d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd','d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd','9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2','9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2').map(ak),Ik=mk(Ok),Nk=new Array(3).concat('e5f5f999d8c92ca25f','edf8fbb2e2e266c2a4238b45','edf8fbb2e2e266c2a42ca25f006d2c','edf8fbccece699d8c966c2a42ca25f006d2c','edf8fbccece699d8c966c2a441ae76238b45005824','f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824','f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b').map(ak),Tk=mk(Nk),Mk=new Array(3).concat('e0ecf49ebcda8856a7','edf8fbb3cde38c96c688419d','edf8fbb3cde38c96c68856a7810f7c','edf8fbbfd3e69ebcda8c96c68856a7810f7c','edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b','f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b','f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b').map(ak),Dk=mk(Mk),Pk=new Array(3).concat('e0f3dba8ddb543a2ca','f0f9e8bae4bc7bccc42b8cbe','f0f9e8bae4bc7bccc443a2ca0868ac','f0f9e8ccebc5a8ddb57bccc443a2ca0868ac','f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e','f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e','f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081').map(ak),Rk=mk(Pk),Hk=new Array(3).concat('fee8c8fdbb84e34a33','fef0d9fdcc8afc8d59d7301f','fef0d9fdcc8afc8d59e34a33b30000','fef0d9fdd49efdbb84fc8d59e34a33b30000','fef0d9fdd49efdbb84fc8d59ef6548d7301f990000','fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000','fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000').map(ak),zk=mk(Hk),Vk=new Array(3).concat('ece2f0a6bddb1c9099','f6eff7bdc9e167a9cf02818a','f6eff7bdc9e167a9cf1c9099016c59','f6eff7d0d1e6a6bddb67a9cf1c9099016c59','f6eff7d0d1e6a6bddb67a9cf3690c002818a016450','fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450','fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636').map(ak),Kk=mk(Vk),qk=new Array(3).concat('ece7f2a6bddb2b8cbe','f1eef6bdc9e174a9cf0570b0','f1eef6bdc9e174a9cf2b8cbe045a8d','f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d','f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b','fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b','fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858').map(ak),Gk=mk(qk),Wk=new Array(3).concat('e7e1efc994c7dd1c77','f1eef6d7b5d8df65b0ce1256','f1eef6d7b5d8df65b0dd1c77980043','f1eef6d4b9dac994c7df65b0dd1c77980043','f1eef6d4b9dac994c7df65b0e7298ace125691003f','f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f','f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f').map(ak),Yk=mk(Wk),Xk=new Array(3).concat('fde0ddfa9fb5c51b8a','feebe2fbb4b9f768a1ae017e','feebe2fbb4b9f768a1c51b8a7a0177','feebe2fcc5c0fa9fb5f768a1c51b8a7a0177','feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177','fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177','fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a').map(ak),Jk=mk(Xk),Zk=new Array(3).concat('edf8b17fcdbb2c7fb8','ffffcca1dab441b6c4225ea8','ffffcca1dab441b6c42c7fb8253494','ffffccc7e9b47fcdbb41b6c42c7fb8253494','ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84','ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84','ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58').map(ak),$k=mk(Zk),eU=new Array(3).concat('f7fcb9addd8e31a354','ffffccc2e69978c679238443','ffffccc2e69978c67931a354006837','ffffccd9f0a3addd8e78c67931a354006837','ffffccd9f0a3addd8e78c67941ab5d238443005a32','ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32','ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529').map(ak),tU=mk(eU),nU=new Array(3).concat('fff7bcfec44fd95f0e','ffffd4fed98efe9929cc4c02','ffffd4fed98efe9929d95f0e993404','ffffd4fee391fec44ffe9929d95f0e993404','ffffd4fee391fec44ffe9929ec7014cc4c028c2d04','ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04','ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506').map(ak),rU=mk(nU),iU=new Array(3).concat('ffeda0feb24cf03b20','ffffb2fecc5cfd8d3ce31a1c','ffffb2fecc5cfd8d3cf03b20bd0026','ffffb2fed976feb24cfd8d3cf03b20bd0026','ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026','ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026','ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026').map(ak),oU=mk(iU),sU=new Array(3).concat('deebf79ecae13182bd','eff3ffbdd7e76baed62171b5','eff3ffbdd7e76baed63182bd08519c','eff3ffc6dbef9ecae16baed63182bd08519c','eff3ffc6dbef9ecae16baed64292c62171b5084594','f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594','f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b').map(ak),aU=mk(sU),AU=new Array(3).concat('e5f5e0a1d99b31a354','edf8e9bae4b374c476238b45','edf8e9bae4b374c47631a354006d2c','edf8e9c7e9c0a1d99b74c47631a354006d2c','edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32','f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32','f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b').map(ak),lU=mk(AU),cU=new Array(3).concat('f0f0f0bdbdbd636363','f7f7f7cccccc969696525252','f7f7f7cccccc969696636363252525','f7f7f7d9d9d9bdbdbd969696636363252525','f7f7f7d9d9d9bdbdbd969696737373525252252525','fffffff0f0f0d9d9d9bdbdbd969696737373525252252525','fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000').map(ak),uU=mk(cU),dU=new Array(3).concat('efedf5bcbddc756bb1','f2f0f7cbc9e29e9ac86a51a3','f2f0f7cbc9e29e9ac8756bb154278f','f2f0f7dadaebbcbddc9e9ac8756bb154278f','f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486','fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486','fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d').map(ak),fU=mk(dU),hU=new Array(3).concat('fee0d2fc9272de2d26','fee5d9fcae91fb6a4acb181d','fee5d9fcae91fb6a4ade2d26a50f15','fee5d9fcbba1fc9272fb6a4ade2d26a50f15','fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d','fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d','fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d').map(ak),pU=mk(hU),gU=new Array(3).concat('fee6cefdae6be6550d','feeddefdbe85fd8d3cd94701','feeddefdbe85fd8d3ce6550da63603','feeddefdd0a2fdae6bfd8d3ce6550da63603','feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04','fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04','fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704').map(ak),mU=mk(gU);function vU(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function bU(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function yU(){}var wU=.7,BU=1/wU,xU='\\s*([+-]?\\d+)\\s*',CU='\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*',_U='\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*',jU=/^#([0-9a-f]{3,8})$/,FU=new RegExp('^rgb\\('+[xU,xU,xU]+'\\)$'),EU=new RegExp('^rgb\\('+[_U,_U,_U]+'\\)$'),SU=new RegExp('^rgba\\('+[xU,xU,xU,CU]+'\\)$'),kU=new RegExp('^rgba\\('+[_U,_U,_U,CU]+'\\)$'),UU=new RegExp('^hsl\\('+[CU,_U,_U]+'\\)$'),QU=new RegExp('^hsla\\('+[CU,_U,_U,CU]+'\\)$'),LU={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 OU(){return this.rgb().formatHex()}function IU(){return this.rgb().formatRgb()}function NU(e){var t,n;return e=(e+'').trim().toLowerCase(),(t=jU.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?TU(t):3===n?new RU(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?MU(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?MU(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=FU.exec(e))?new RU(t[1],t[2],t[3],1):(t=EU.exec(e))?new RU(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=SU.exec(e))?MU(t[1],t[2],t[3],t[4]):(t=kU.exec(e))?MU(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=UU.exec(e))?KU(t[1],t[2]/100,t[3]/100,1):(t=QU.exec(e))?KU(t[1],t[2]/100,t[3]/100,t[4]):LU.hasOwnProperty(e)?TU(LU[e]):'transparent'===e?new RU(NaN,NaN,NaN,0):null}function TU(e){return new RU(e>>16&255,e>>8&255,255&e,1)}function MU(e,t,n,r){return r<=0&&(e=t=n=NaN),new RU(e,t,n,r)}function DU(e){return e instanceof yU||(e=NU(e)),e?new RU((e=e.rgb()).r,e.g,e.b,e.opacity):new RU}function PU(e,t,n,r){return 1===arguments.length?DU(e):new RU(e,t,n,null==r?1:r)}function RU(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function HU(){return'#'+VU(this.r)+VU(this.g)+VU(this.b)}function zU(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?'rgb(':'rgba(')+Math.max(0,Math.min(255,Math.round(this.r)||0))+', '+Math.max(0,Math.min(255,Math.round(this.g)||0))+', '+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?')':', '+e+')')}function VU(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?'0':'')+e.toString(16)}function KU(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new GU(e,t,n,r)}function qU(e){if(e instanceof GU)return new GU(e.h,e.s,e.l,e.opacity);if(e instanceof yU||(e=NU(e)),!e)return new GU;if(e instanceof GU)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),s=NaN,a=o-i,A=(o+i)/2;return a?(s=t===o?(n-r)/a+6*(n<r):n===o?(r-t)/a+2:(t-n)/a+4,a/=A<.5?o+i:2-o-i,s*=60):a=A>0&&A<1?0:s,new GU(s,a,A,e.opacity)}function GU(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function WU(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}vU(yU,NU,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:OU,formatHex:OU,formatHsl:function(){return qU(this).formatHsl()},formatRgb:IU,toString:IU}),vU(RU,PU,bU(yU,{brighter:function(e){return e=null==e?BU:Math.pow(BU,e),new RU(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?wU:Math.pow(wU,e),new RU(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:HU,formatHex:HU,formatRgb:zU,toString:zU})),vU(GU,function(e,t,n,r){return 1===arguments.length?qU(e):new GU(e,t,n,null==r?1:r)},bU(yU,{brighter:function(e){return e=null==e?BU:Math.pow(BU,e),new GU(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?wU:Math.pow(wU,e),new GU(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new RU(WU(e>=240?e-240:e+120,i,r),WU(e,i,r),WU(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?'hsl(':'hsla(')+(this.h||0)+', '+100*(this.s||0)+'%, '+100*(this.l||0)+'%'+(1===e?')':', '+e+')')}}));const YU=Math.PI/180,XU=180/Math.PI;var JU=-.14861,ZU=1.78277,$U=-.29227,eQ=-.90649,tQ=1.97294,nQ=tQ*eQ,rQ=tQ*ZU,iQ=ZU*$U-eQ*JU;function oQ(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof sQ)return new sQ(e.h,e.s,e.l,e.opacity);e instanceof RU||(e=DU(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(iQ*r+nQ*t-rQ*n)/-5.9615122912,o=r-i,s=(tQ*(n-i)-$U*o)/eQ,a=Math.sqrt(s*s+o*o)/(tQ*i*(1-i)),A=a?Math.atan2(s,o)*XU-120:NaN;return new sQ(A<0?A+360:A,a,i,e.opacity)}(e):new sQ(e,t,n,null==r?1:r)}function sQ(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}vU(sQ,oQ,bU(yU,{brighter:function(e){return e=null==e?BU:Math.pow(BU,e),new sQ(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?wU:Math.pow(wU,e),new sQ(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*YU,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new RU(255*(t+n*(JU*r+ZU*i)),255*(t+n*($U*r+eQ*i)),255*(t+n*(tQ*r)),this.opacity)}}));var aQ=kp(oQ(300,.5,0),oQ(-240,.5,1)),AQ=kp(oQ(-100,.75,.35),oQ(80,1.5,.8)),lQ=kp(oQ(260,.75,.35),oQ(80,1.5,.8)),cQ=oQ();var uQ=PU(),dQ=Math.PI/3,fQ=2*Math.PI/3;function hQ(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}var pQ=hQ(ak('44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725')),gQ=hQ(ak('00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf')),mQ=hQ(ak('00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4')),vQ=hQ(ak('0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921'));function bQ(){return bQ=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},bQ.apply(this,arguments)}function yQ(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 wQ={nivo:['#e8c1a0','#f47560','#f1e15b','#e8a838','#61cdbb','#97e3d5'],category10:Ak,accent:lk,dark2:ck,paired:uk,pastel1:dk,pastel2:fk,set1:hk,set2:pk,set3:gk},BQ=Object.keys(wQ),xQ={brown_blueGreen:vk,purpleRed_green:yk,pink_yellowGreen:Bk,purple_orange:Ck,red_blue:jk,red_grey:Ek,red_yellow_blue:kk,red_yellow_green:Qk,spectral:Ok},CQ=Object.keys(xQ),_Q={brown_blueGreen:bk,purpleRed_green:wk,pink_yellowGreen:xk,purple_orange:_k,red_blue:Fk,red_grey:Sk,red_yellow_blue:Uk,red_yellow_green:Lk,spectral:Ik},jQ={blues:sU,greens:AU,greys:cU,oranges:gU,purples:dU,reds:hU,blue_green:Nk,blue_purple:Mk,green_blue:Pk,orange_red:Hk,purple_blue_green:Vk,purple_blue:qk,purple_red:Wk,red_purple:Xk,yellow_green_blue:Zk,yellow_green:eU,yellow_orange_brown:nU,yellow_orange_red:iU},FQ=Object.keys(jQ),EQ={blues:aU,greens:lU,greys:uU,oranges:mU,purples:fU,reds:pU,turbo:function(e){return e=Math.max(0,Math.min(1,e)),'rgb('+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-14825.05*e)))))))+', '+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+707.56*e)))))))+', '+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-6838.66*e)))))))+')'},viridis:pQ,inferno:mQ,magma:gQ,plasma:vQ,cividis:function(e){return e=Math.max(0,Math.min(1,e)),'rgb('+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-2710.57*e)))))))+', '+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-67.37*e)))))))+', '+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-2475.67*e)))))))+')'},warm:AQ,cool:lQ,cubehelixDefault:aQ,blue_green:Tk,blue_purple:Dk,green_blue:Rk,orange_red:zk,purple_blue_green:Kk,purple_blue:Gk,purple_red:Yk,red_purple:Jk,yellow_green_blue:$k,yellow_green:tU,yellow_orange_brown:rU,yellow_orange_red:oU},SQ=bQ({},wQ,xQ,jQ),kQ=Object.keys(SQ),UQ={rainbow:function(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return cQ.h=360*e-100,cQ.s=1.5-1.5*t,cQ.l=.8-.9*t,cQ+''},sinebow:function(e){var t;return e=(.5-e)*Math.PI,uQ.r=255*(t=Math.sin(e))*t,uQ.g=255*(t=Math.sin(e+dQ))*t,uQ.b=255*(t=Math.sin(e+fQ))*t,uQ+''}};bQ({},_Q,EQ,UQ);var QQ=function(e,t){if('function'==typeof e)return e;if(Tc(e)){if(function(e){return void 0!==e.theme}(e)){if(void 0===t)throw new Error('Unable to use color from theme as no theme was provided');var n=rf(t,e.theme);if(void 0===n)throw new Error('Color from theme is undefined at path: \''+e.theme+'\'');return function(){return n}}if(function(e){return void 0!==e.from}(e)){var r=function(t){return rf(t,e.from)};if(Array.isArray(e.modifiers)){for(var i,o=[],s=function(){var e=i.value,t=e[0],n=e[1];if('brighter'===t)o.push(function(e){return e.brighter(n)});else if('darker'===t)o.push(function(e){return e.darker(n)});else{if('opacity'!==t)throw new Error('Invalid color modifier: \''+t+'\', must be one of: \'brighter\', \'darker\', \'opacity\'');o.push(function(e){return e.opacity=n,e})}},a=function(e,t){var n='undefined'!=typeof Symbol&&e[Symbol.iterator]||e['@@iterator'];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if('string'==typeof e)return yQ(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)?yQ(e,t):void 0}}(e))||t&&e&&'number'==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.')}(e.modifiers);!(i=a()).done;)s();return 0===o.length?r:function(e){return o.reduce(function(e,t){return t(e)},If(r(e))).toString()}}return r}throw new Error('Invalid color spec, you should either specify \'theme\' or \'from\' when using a config object')}return function(){return e}},LQ=function(e,t){return d(function(){return QQ(e,t)},[e,t])},OQ=Qr.oneOfType([Qr.func,Qr.arrayOf(Qr.string),Qr.shape({scheme:Qr.oneOf(kQ).isRequired,size:Qr.number}),Qr.shape({datum:Qr.string.isRequired}),Qr.string]);Qr.oneOfType([Qr.string,Qr.func,Qr.shape({theme:Qr.string.isRequired}),Qr.shape({from:Qr.string.isRequired,modifiers:Qr.arrayOf(Qr.array)})]);var IQ=function(e,t){if('function'==typeof e)return e;var n='function'==typeof t?t:function(e){return rf(e,t)};if(Array.isArray(e)){var r=yh(e),i=function(e){return r(n(e))};return i.scale=r,i}if(Tc(e)){if(function(e){return void 0!==e.datum}(e))return function(t){return rf(t,e.datum)};if(function(e){return void 0!==e.scheme}(e)){if(function(e){return BQ.includes(e)}(e.scheme)){var o=yh(SQ[e.scheme]),s=function(e){return o(n(e))};return s.scale=o,s}if(function(e){return CQ.includes(e)}(e.scheme)){if(void 0!==e.size&&(e.size<3||e.size>11))throw new Error('Invalid size \''+e.size+'\' for diverging color scheme \''+e.scheme+'\', must be between 3~11');var a=yh(SQ[e.scheme][e.size||11]),A=function(e){return a(n(e))};return A.scale=a,A}if(function(e){return FQ.includes(e)}(e.scheme)){if(void 0!==e.size&&(e.size<3||e.size>9))throw new Error('Invalid size \''+e.size+'\' for sequential color scheme \''+e.scheme+'\', must be between 3~9');var l=yh(SQ[e.scheme][e.size||9]),c=function(e){return l(n(e))};return c.scale=l,c}}throw new Error('Invalid colors, when using an object, you should either pass a \'datum\' or a \'scheme\' property')}return function(){return e}},NQ=function(e,t){return d(function(){return IQ(e,t)},[e,t])};function TQ(){return TQ=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},TQ.apply(this,arguments)}var MQ={top:0,right:0,bottom:0,left:0},DQ=function(e){var t,n=e.direction,r=e.itemsSpacing,i=e.padding,o=e.itemCount,s=e.itemWidth,a=e.itemHeight;if('number'!=typeof i&&('object'!=typeof(t=i)||Array.isArray(t)||null===t))throw new Error('Invalid property padding, must be one of: number, object');var A='number'==typeof i?{top:i,right:i,bottom:i,left:i}:TQ({},MQ,i),l=A.left+A.right,c=A.top+A.bottom,u=s+l,d=a+c,f=(o-1)*r;return'row'===n?u=s*o+f+l:'column'===n&&(d=a*o+f+c),{width:u,height:d,padding:A}},PQ=function(e){var t=e.anchor,n=e.translateX,r=e.translateY,i=e.containerWidth,o=e.containerHeight,s=e.width,a=e.height,A=n,l=r;switch(t){case'top':A+=(i-s)/2;break;case'top-right':A+=i-s;break;case'right':A+=i-s,l+=(o-a)/2;break;case'bottom-right':A+=i-s,l+=o-a;break;case'bottom':A+=(i-s)/2,l+=o-a;break;case'bottom-left':l+=o-a;break;case'left':l+=(o-a)/2;break;case'center':A+=(i-s)/2,l+=(o-a)/2}return{x:A,y:l}},RQ=function(e){var t,n,r,i,o,s,a=e.direction,A=e.justify,l=e.symbolSize,c=e.symbolSpacing,u=e.width,d=e.height;switch(a){case'left-to-right':t=0,n=(d-l)/2,i=d/2,s='central',A?(r=u,o='end'):(r=l+c,o='start');break;case'right-to-left':t=u-l,n=(d-l)/2,i=d/2,s='central',A?(r=0,o='start'):(r=u-l-c,o='end');break;case'top-to-bottom':t=(u-l)/2,n=0,r=u/2,o='middle',A?(i=d,s='alphabetic'):(i=l+c,s='text-before-edge');break;case'bottom-to-top':t=(u-l)/2,n=d-l,r=u/2,o='middle',A?(i=0,s='text-before-edge'):(i=d-l-c,s='alphabetic')}return{symbolX:t,symbolY:n,labelX:r,labelY:i,labelAnchor:o,labelAlignment:s}},HQ={circle:function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,o=e.opacity,s=void 0===o?1:o,a=e.borderWidth,A=void 0===a?0:a,l=e.borderColor;return w('circle',{r:r/2,cx:t+r/2,cy:n+r/2,fill:i,opacity:s,strokeWidth:A,stroke:void 0===l?'transparent':l,style:{pointerEvents:'none'}})},diamond:function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,o=e.opacity,s=void 0===o?1:o,a=e.borderWidth,A=void 0===a?0:a,l=e.borderColor;return w('g',{transform:'translate('+t+','+n+')',children:w('path',{d:'\n M'+r/2+' 0\n L'+.8*r+' '+r/2+'\n L'+r/2+' '+r+'\n L'+.2*r+' '+r/2+'\n L'+r/2+' 0\n ',fill:i,opacity:s,strokeWidth:A,stroke:void 0===l?'transparent':l,style:{pointerEvents:'none'}})})},square:function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,o=e.opacity,s=void 0===o?1:o,a=e.borderWidth,A=void 0===a?0:a,l=e.borderColor;return w('rect',{x:t,y:n,fill:i,opacity:s,strokeWidth:A,stroke:void 0===l?'transparent':l,width:r,height:r,style:{pointerEvents:'none'}})},triangle:function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,o=e.opacity,s=void 0===o?1:o,a=e.borderWidth,A=void 0===a?0:a,l=e.borderColor;return w('g',{transform:'translate('+t+','+n+')',children:w('path',{d:'\n M'+r/2+' 0\n L'+r+' '+r+'\n L0 '+r+'\n L'+r/2+' 0\n ',fill:i,opacity:s,strokeWidth:A,stroke:void 0===l?'transparent':l,style:{pointerEvents:'none'}})})}},zQ=function(t){var r,i,o,a,A,l,c,u,d,f,h,p=t.x,g=t.y,m=t.width,v=t.height,b=t.data,y=t.direction,x=void 0===y?'left-to-right':y,C=t.justify,_=void 0!==C&&C,j=t.textColor,F=t.background,E=void 0===F?'transparent':F,S=t.opacity,k=void 0===S?1:S,U=t.symbolShape,Q=void 0===U?'square':U,L=t.symbolSize,O=void 0===L?16:L,I=t.symbolSpacing,N=void 0===I?8:I,T=t.symbolBorderWidth,M=void 0===T?0:T,D=t.symbolBorderColor,P=void 0===D?'transparent':D,R=t.onClick,H=t.onMouseEnter,z=t.onMouseLeave,V=t.toggleSerie,K=t.effects,q=n({}),G=q[0],W=q[1],Y=dC(),X=s(function(e){if(K){var t=K.filter(function(e){return'hover'===e.on}).reduce(function(e,t){return TQ({},e,t.style)},{});W(t)}null==H||H(b,e)},[H,b,K]),J=s(function(e){if(K){var t=K.filter(function(e){return'hover'!==e.on}).reduce(function(e,t){return TQ({},e,t.style)},{});W(t)}null==z||z(b,e)},[z,b,K]),Z=RQ({direction:x,justify:_,symbolSize:null!=(r=G.symbolSize)?r:O,symbolSpacing:N,width:m,height:v}),$=Z.symbolX,ee=Z.symbolY,te=Z.labelX,ne=Z.labelY,re=Z.labelAnchor,ie=Z.labelAlignment,oe=[R,H,z,V].some(function(e){return void 0!==e}),se='function'==typeof Q?Q:HQ[Q];return B('g',{transform:'translate('+p+','+g+')',style:{opacity:null!=(i=G.itemOpacity)?i:k},children:[w('rect',{width:m,height:v,fill:null!=(o=G.itemBackground)?o:E,style:{cursor:oe?'pointer':'auto'},onClick:function(e){null==R||R(b,e),null==V||V(b.id)},onMouseEnter:X,onMouseLeave:J}),e.createElement(se,TQ({id:b.id,x:$,y:ee,size:null!=(a=G.symbolSize)?a:O,fill:null!=(A=null!=(l=b.fill)?l:b.color)?A:'black',borderWidth:null!=(c=G.symbolBorderWidth)?c:M,borderColor:null!=(u=G.symbolBorderColor)?u:P},b.hidden?Y.legends.hidden.symbol:void 0)),w('text',{textAnchor:re,style:TQ({},Y.legends.text,{fill:null!=(d=null!=(f=null!=(h=G.itemTextColor)?h:j)?f:Y.legends.text.fill)?d:'black',dominantBaseline:ie,pointerEvents:'none',userSelect:'none'},b.hidden?Y.legends.hidden.text:void 0),x:te,y:ne,children:b.label})]})},VQ=function(e){var t=e.data,n=e.x,r=e.y,i=e.direction,o=e.padding,s=void 0===o?0:o,a=e.justify,A=e.effects,l=e.itemWidth,c=e.itemHeight,u=e.itemDirection,d=void 0===u?'left-to-right':u,f=e.itemsSpacing,h=void 0===f?0:f,p=e.itemTextColor,g=e.itemBackground,m=void 0===g?'transparent':g,v=e.itemOpacity,b=void 0===v?1:v,y=e.symbolShape,B=e.symbolSize,x=e.symbolSpacing,C=e.symbolBorderWidth,_=e.symbolBorderColor,j=e.onClick,F=e.onMouseEnter,E=e.onMouseLeave,S=e.toggleSerie,k=DQ({itemCount:t.length,itemWidth:l,itemHeight:c,itemsSpacing:h,direction:i,padding:s}).padding,U='row'===i?l+h:0,Q='column'===i?c+h:0;return w('g',{transform:'translate('+n+','+r+')',children:t.map(function(e,t){return w(zQ,{data:e,x:t*U+k.left,y:t*Q+k.top,width:l,height:c,direction:d,justify:a,effects:A,textColor:p,background:m,opacity:b,symbolShape:y,symbolSize:B,symbolSpacing:x,symbolBorderWidth:C,symbolBorderColor:_,onClick:j,onMouseEnter:F,onMouseLeave:E,toggleSerie:S},t)})})},KQ=function(e){var t=e.data,n=e.containerWidth,r=e.containerHeight,i=e.translateX,o=void 0===i?0:i,s=e.translateY,a=void 0===s?0:s,A=e.anchor,l=e.direction,c=e.padding,u=void 0===c?0:c,d=e.justify,f=e.itemsSpacing,h=void 0===f?0:f,p=e.itemWidth,g=e.itemHeight,m=e.itemDirection,v=e.itemTextColor,b=e.itemBackground,y=e.itemOpacity,B=e.symbolShape,x=e.symbolSize,C=e.symbolSpacing,_=e.symbolBorderWidth,j=e.symbolBorderColor,F=e.onClick,E=e.onMouseEnter,S=e.onMouseLeave,k=e.toggleSerie,U=e.effects,Q=DQ({itemCount:t.length,itemsSpacing:h,itemWidth:p,itemHeight:g,direction:l,padding:u}),L=Q.width,O=Q.height,I=PQ({anchor:A,translateX:o,translateY:a,containerWidth:n,containerHeight:r,width:L,height:O}),N=I.x,T=I.y;return w(VQ,{data:t,x:N,y:T,direction:l,padding:u,justify:d,effects:U,itemsSpacing:h,itemWidth:p,itemHeight:g,itemDirection:m,itemTextColor:v,itemBackground:b,itemOpacity:y,symbolShape:B,symbolSize:x,symbolSpacing:C,symbolBorderWidth:_,symbolBorderColor:j,onClick:F,onMouseEnter:E,onMouseLeave:S,toggleSerie:'boolean'==typeof k?void 0:k})},qQ={start:'left',middle:'center',end:'right'},GQ=function(e,t){var n=t.data,r=t.containerWidth,i=t.containerHeight,o=t.translateX,s=void 0===o?0:o,a=t.translateY,A=void 0===a?0:a,l=t.anchor,c=t.direction,u=t.padding,d=void 0===u?0:u,f=t.justify,h=void 0!==f&&f,p=t.itemsSpacing,g=void 0===p?0:p,m=t.itemWidth,v=t.itemHeight,b=t.itemDirection,y=void 0===b?'left-to-right':b,w=t.itemTextColor,B=t.symbolSize,x=void 0===B?16:B,C=t.symbolSpacing,_=void 0===C?8:C,j=t.theme,F=DQ({itemCount:n.length,itemWidth:m,itemHeight:v,itemsSpacing:g,direction:c,padding:d}),E=F.width,S=F.height,k=F.padding,U=PQ({anchor:l,translateX:s,translateY:A,containerWidth:r,containerHeight:i,width:E,height:S}),Q=U.x,L=U.y,O='row'===c?m+g:0,I='column'===c?v+g:0;e.save(),e.translate(Q,L),e.font=j.legends.text.fontSize+'px '+(j.legends.text.fontFamily||'sans-serif'),n.forEach(function(t,n){var r,i,o=n*O+k.left,s=n*I+k.top,a=RQ({direction:y,justify:h,symbolSize:x,symbolSpacing:_,width:m,height:v}),A=a.symbolX,l=a.symbolY,c=a.labelX,u=a.labelY,d=a.labelAnchor,f=a.labelAlignment;e.fillStyle=null!=(r=t.color)?r:'black',e.fillRect(o+A,s+l,x,x),e.textAlign=qQ[d],'central'===f&&(e.textBaseline='middle'),e.fillStyle=null!=(i=null!=w?w:j.legends.text.fill)?i:'black',e.fillText(String(t.label),o+c,s+u)}),e.restore()},WQ={data:Qr.arrayOf(Qr.object),anchor:Qr.oneOf(['top','top-right','right','bottom-right','bottom','bottom-left','left','top-left','center']).isRequired,translateX:Qr.number,translateY:Qr.number,direction:Qr.oneOf(['row','column']).isRequired,itemsSpacing:Qr.number,itemWidth:Qr.number.isRequired,itemHeight:Qr.number.isRequired,itemDirection:Qr.oneOf(['left-to-right','right-to-left','top-to-bottom','bottom-to-top']),itemTextColor:Qr.string,itemBackground:Qr.string,itemOpacity:Qr.number,symbolShape:Qr.oneOfType([Qr.oneOf(['circle','diamond','square','triangle']),Qr.func]),symbolSize:Qr.number,symbolSpacing:Qr.number,symbolBorderWidth:Qr.number,symbolBorderColor:Qr.string,onClick:Qr.func,onMouseEnter:Qr.func,onMouseLeave:Qr.func,effects:Qr.arrayOf(Qr.shape({on:Qr.oneOfType([Qr.oneOf(['hover'])]).isRequired,style:Qr.shape({itemTextColor:Qr.string,itemBackground:Qr.string,itemOpacity:Qr.number,symbolSize:Qr.number,symbolBorderWidth:Qr.number,symbolBorderColor:Qr.string}).isRequired}))};function YQ(){return YQ=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},YQ.apply(this,arguments)}function XQ(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}var JQ,ZQ=function(e){var t=e.bars,n=e.annotations,r=$S({data:t,annotations:n,getPosition:function(e){return{x:e.x+e.width/2,y:e.y+e.height/2}},getDimensions:function(e){var t=e.height,n=e.width;return{width:n,height:t,size:Math.max(n,t)}}});return w(x,{children:r.map(function(e,t){return w(ok,YQ({},e),t)})})},$Q=function(e){var t=e.width,n=e.height,r=e.legends,i=e.toggleSerie;return w(x,{children:r.map(function(e,r){var o,s=e[0],a=e[1];return w(KQ,YQ({},s,{containerWidth:t,containerHeight:n,data:null!=(o=s.data)?o:a,toggleSerie:s.toggleSerie&&'keys'===s.dataFrom?i:void 0}),r)})})},eL=['data'],tL=['color','label'],nL={indexBy:'id',keys:['value'],groupMode:'stacked',layout:'vertical',reverse:!1,minValue:'auto',maxValue:'auto',valueScale:{type:'linear'},indexScale:{type:'band',round:!0},padding:.1,innerPadding:0,axisBottom:{},axisLeft:{},enableGridX:!1,enableGridY:!0,enableLabel:!0,label:'formattedValue',labelSkipWidth:0,labelSkipHeight:0,labelTextColor:{from:'theme',theme:'labels.text.fill'},colorBy:'id',colors:{scheme:'nivo'},borderRadius:0,borderWidth:0,borderColor:{from:'color'},isInteractive:!0,tooltip:function(e){var t=e.color,n=e.label,r=XQ(e,tL);return w(Ca,{id:n,value:r.formattedValue,enableChip:!0,color:t})},tooltipLabel:function(e){return e.id+' - '+e.indexValue},legends:[],initialHiddenIds:[],annotations:[],markers:[]},rL=YQ({},nL,{layers:['grid','axes','bars','markers','legends','annotations'],barComponent:function(e){var t,n=e.bar,r=n.data,i=XQ(n,eL),o=e.style,a=o.borderColor,A=o.color,l=o.height,c=o.labelColor,u=o.labelOpacity,f=o.labelX,h=o.labelY,g=o.transform,m=o.width,v=e.borderRadius,b=e.borderWidth,y=e.label,x=e.shouldRenderLabel,C=e.isInteractive,_=e.onClick,j=e.onMouseEnter,F=e.onMouseLeave,E=e.tooltip,S=e.isFocusable,k=e.ariaLabel,U=e.ariaLabelledBy,Q=e.ariaDescribedBy,L=dC(),O=Qa(),I=O.showTooltipFromEvent,N=O.showTooltipAt,T=O.hideTooltip,M=d(function(){return function(){return p(E,YQ({},i,r))}},[E,i,r]),D=s(function(e){null==_||_(YQ({color:i.color},r),e)},[i,r,_]),P=s(function(e){return I(M(),e)},[I,M]),R=s(function(e){null==j||j(r,e),I(M(),e)},[r,j,I,M]),H=s(function(e){null==F||F(r,e),T()},[r,T,F]),z=s(function(){N(M(),[i.absX+i.width/2,i.absY])},[N,M,i]),V=s(function(){T()},[T]);return B(va.g,{transform:g,children:[w(va.rect,{width:ia(m,function(e){return Math.max(e,0)}),height:ia(l,function(e){return Math.max(e,0)}),rx:v,ry:v,fill:null!=(t=r.fill)?t:A,strokeWidth:b,stroke:a,focusable:S,tabIndex:S?0:void 0,'aria-label':k?k(r):void 0,'aria-labelledby':U?U(r):void 0,'aria-describedby':Q?Q(r):void 0,onMouseEnter:C?R:void 0,onMouseMove:C?P:void 0,onMouseLeave:C?H:void 0,onClick:C?D:void 0,onFocus:C&&S?z:void 0,onBlur:C&&S?V:void 0}),x&&w(va.text,{x:f,y:h,textAnchor:'middle',dominantBaseline:'central',fillOpacity:u,style:YQ({},L.labels.text,{pointerEvents:'none',fill:c}),children:y})]})},defs:[],fill:[],animate:!0,motionConfig:'default',role:'img',isFocusable:!1}),iL=YQ({},nL,{layers:['grid','axes','bars','legends','annotations'],pixelRatio:'undefined'!=typeof window&&null!=(JQ=window.devicePixelRatio)?JQ:1}),oL=function(e,t,n,r,i,o){return BF(r,{all:e.map(t),min:0,max:0},i,o).padding(n)},sL=function(e,t){return e.map(function(e){return YQ({},t.reduce(function(e,t){return e[t]=null,e},{}),e)})},aL=function(e){return Object.keys(e).reduce(function(t,n){return e[n]&&(t[n]=e[n]),t},{})},AL=function(e){return[e,Number(e)]},lL=['layout','minValue','maxValue','reverse','width','height','padding','innerPadding','valueScale','indexScale','hiddenIds'],cL=function(e,t){return e>t},uL=function(e,t){return e<t},dL=function(e,t){return Array.from(' '.repeat(t-e),function(t,n){return e+n})},fL=function(e){return cL(e,0)?0:e},hL=function(e,t,n,r){var i=e.data,o=e.formatValue,s=e.getColor,a=e.getIndex,A=e.getTooltipLabel,l=e.innerPadding,c=void 0===l?0:l,u=e.keys,d=e.xScale,f=e.yScale,h=e.margin,p=n?uL:cL,g=i.map(aL),m=[];return u.forEach(function(e,n){return dL(0,d.domain().length).forEach(function(l){var u,v,b,y=AL(i[l][e]),w=y[0],B=y[1],x=a(i[l]),C=(null!=(u=d(x))?u:0)+t*n+c*n,_=p(v=B,0)?null!=(b=f(v))?b:0:r,j=function(e,t){var n;return p(e,0)?r-t:(null!=(n=f(e))?n:0)-r}(B,_),F={id:e,value:null===w?w:B,formattedValue:o(B),hidden:!1,index:l,indexValue:x,data:g[l]};m.push({key:e+'.'+F.indexValue,index:m.length,data:F,x:C,y:_,absX:h.left+C,absY:h.top+_,width:t,height:j,color:s(F),label:A(F)})})}),m},pL=function(e,t,n,r){var i=e.data,o=e.formatValue,s=e.getIndex,a=e.getColor,A=e.getTooltipLabel,l=e.keys,c=e.innerPadding,u=void 0===c?0:c,d=e.xScale,f=e.yScale,h=e.margin,p=n?uL:cL,g=i.map(aL),m=[];return l.forEach(function(e,n){return dL(0,f.domain().length).forEach(function(l){var c,v,b,y=AL(i[l][e]),w=y[0],B=y[1],x=s(i[l]),C=p(v=B,0)?r:null!=(b=d(v))?b:0,_=(null!=(c=f(x))?c:0)+t*n+u*n,j=function(e,t){var n;return p(e,0)?(null!=(n=d(e))?n:0)-r:r-t}(B,C),F={id:e,value:null===w?w:B,formattedValue:o(B),hidden:!1,index:l,indexValue:x,data:g[l]};m.push({key:e+'.'+F.indexValue,index:m.length,data:F,x:C,y:_,absX:h.left+C,absY:h.top+_,width:j,height:t,color:a(F),label:A(F)})})}),m},gL=function(e){var t,n,r=e.layout,i=e.minValue,o=e.maxValue,s=e.reverse,a=e.width,A=e.height,l=e.padding,c=void 0===l?0:l,u=e.innerPadding,d=void 0===u?0:u,f=e.valueScale,h=e.indexScale,p=e.hiddenIds,g=void 0===p?[]:p,m=XQ(e,lL),v=m.keys.filter(function(e){return!g.includes(e)}),b=sL(m.data,v),y='vertical'===r?['y','x',a]:['x','y',A],w=y[0],B=y[1],x=y[2],C=oL(b,m.getIndex,c,h,x,B),_=YQ({max:o,min:i,reverse:s},f),j='auto'===_.min?fL:function(e){return e},F=b.reduce(function(e,t){return[].concat(e,v.map(function(e){return t[e]}))},[]).filter(Boolean),E=BF(_,{all:F,min:j(Math.min.apply(Math,F)),max:(n=Math.max.apply(Math,F),isFinite(n)?n:0)},'x'===w?a:A,w),S='vertical'===r?[C,E]:[E,C],k=S[0],U=S[1],Q=(C.bandwidth()-d*(v.length-1))/v.length,L=[YQ({},m,{data:b,keys:v,innerPadding:d,xScale:k,yScale:U}),Q,_.reverse,null!=(t=E(0))?t:0];return{xScale:k,yScale:U,bars:Q>0?'vertical'===r?hL.apply(void 0,L):pL.apply(void 0,L):[]}},mL=['data','layout','minValue','maxValue','reverse','width','height','padding','valueScale','indexScale','hiddenIds'],vL=function e(t){var n;return t.some(Array.isArray)?e((n=[]).concat.apply(n,t)):t},bL=function(e,t,n){var r=e.formatValue,i=e.getColor,o=e.getIndex,s=e.getTooltipLabel,a=e.innerPadding,A=e.stackedData,l=e.xScale,c=e.yScale,u=e.margin,d=[];return A.forEach(function(e){return l.domain().forEach(function(A,f){var h,p,g=e[f],m=null!=(h=l(o(g.data)))?h:0,v=(null!=(p=function(e){return c(e[n?0:1])}(g))?p:0)+.5*a,b=function(e,t){var r;return(null!=(r=c(e[n?1:0]))?r:0)-t}(g,v)-a,y=AL(g.data[e.key]),w=y[0],B=y[1],x={id:e.key,value:null===w?w:B,formattedValue:r(B),hidden:!1,index:f,indexValue:A,data:aL(g.data)};d.push({key:e.key+'.'+A,index:d.length,data:x,x:m,y:v,absX:u.left+m,absY:u.top+v,width:t,height:b,color:i(x),label:s(x)})})}),d},yL=function(e,t,n){var r=e.formatValue,i=e.getColor,o=e.getIndex,s=e.getTooltipLabel,a=e.innerPadding,A=e.stackedData,l=e.xScale,c=e.yScale,u=e.margin,d=[];return A.forEach(function(e){return c.domain().forEach(function(A,f){var h,p,g=e[f],m=null!=(h=c(o(g.data)))?h:0,v=(null!=(p=function(e){return l(e[n?1:0])}(g))?p:0)+.5*a,b=function(e,t){var r;return(null!=(r=l(e[n?0:1]))?r:0)-t}(g,v)-a,y=AL(g.data[e.key]),w=y[0],B=y[1],x={id:e.key,value:null===w?w:B,formattedValue:r(B),hidden:!1,index:f,indexValue:A,data:aL(g.data)};d.push({key:e.key+'.'+A,index:d.length,data:x,x:v,y:m,absX:u.left+v,absY:u.top+m,width:b,height:t,color:i(x),label:s(x)})})}),d},wL=function(e){var t,n=e.data,r=e.layout,i=e.minValue,o=e.maxValue,s=e.reverse,a=e.width,A=e.height,l=e.padding,c=void 0===l?0:l,u=e.valueScale,d=e.indexScale,f=e.hiddenIds,h=void 0===f?[]:f,p=XQ(e,mL),g=p.keys.filter(function(e){return!h.includes(e)}),m=function(){var e=Wb([]),t=tw,n=ew,r=nw;function i(i){var o,s,a=e.apply(this,arguments),A=i.length,l=a.length,c=new Array(l);for(o=0;o<l;++o){for(var u,d=a[o],f=c[o]=new Array(A),h=0;h<A;++h)f[h]=u=[0,+r(i[h],d,h,i)],u.data=i[h];f.key=d}for(o=0,s=t(c);o<l;++o)c[s[o]].index=o;return n(c,s),c}return i.keys=function(t){return arguments.length?(e='function'==typeof t?t:Wb(wy.call(t)),i):e},i.value=function(e){return arguments.length?(r='function'==typeof e?e:Wb(+e),i):r},i.order=function(e){return arguments.length?(t=null==e?tw:'function'==typeof e?e:Wb(wy.call(e)),i):t},i.offset=function(e){return arguments.length?(n=null==e?ew:e,i):n},i}().keys(g).offset(rw)(sL(n,g)),v='vertical'===r?['y','x',a]:['x','y',A],b=v[0],y=v[1],w=v[2],B=oL(n,p.getIndex,c,d,w,y),x=YQ({max:o,min:i,reverse:s},u),C=(t=vL(m),'log'===u.type?t.filter(function(e){return 0!==e}):t),_=BF(x,{all:C,min:Math.min.apply(Math,C),max:Math.max.apply(Math,C)},'x'===b?a:A,b),j='vertical'===r?[B,_]:[_,B],F=j[0],E=j[1],S=p.innerPadding>0?p.innerPadding:0,k=B.bandwidth(),U=[YQ({},p,{innerPadding:S,stackedData:m,xScale:F,yScale:E}),k,x.reverse];return{xScale:F,yScale:E,bars:k>0?'vertical'===r?bL.apply(void 0,U):yL.apply(void 0,U):[]}},BL=function(e){var t=e.bars,n=e.direction,r=e.from,i=e.groupMode,o=e.layout,s=e.legendLabel,a=e.reverse,A=zC(null!=s?s:'indexes'===r?'indexValue':'id');return'indexes'===r?function(e,t,n){var r=K_(e.map(function(e){var t,r;return{id:null!=(t=e.data.indexValue)?t:'',label:n(e.data),hidden:e.data.hidden,color:null!=(r=e.color)?r:'#000'}}),function(e){return e.id});return'horizontal'===t&&r.reverse(),r}(t,o,A):function(e,t,n,r,i,o){var s=K_(e.map(function(e){var t;return{id:e.data.id,label:o(e.data),hidden:e.data.hidden,color:null!=(t=e.color)?t:'#000'}}),function(e){return e.id});return('vertical'===t&&'stacked'===r&&'column'===n&&!0!==i||'horizontal'===t&&'stacked'===r&&!0===i)&&s.reverse(),s}(t,o,n,i,a,A)},xL=function(e){var t=e.indexBy,r=void 0===t?nL.indexBy:t,i=e.keys,o=void 0===i?nL.keys:i,a=e.label,A=void 0===a?nL.label:a,l=e.tooltipLabel,c=void 0===l?nL.tooltipLabel:l,u=e.valueFormat,f=e.colors,h=void 0===f?nL.colors:f,p=e.colorBy,g=void 0===p?nL.colorBy:p,m=e.borderColor,v=void 0===m?nL.borderColor:m,b=e.labelTextColor,y=void 0===b?nL.labelTextColor:b,w=e.groupMode,B=void 0===w?nL.groupMode:w,x=e.layout,C=void 0===x?nL.layout:x,_=e.reverse,j=void 0===_?nL.reverse:_,F=e.data,E=e.minValue,S=void 0===E?nL.minValue:E,k=e.maxValue,U=void 0===k?nL.maxValue:k,Q=e.margin,L=e.width,O=e.height,I=e.padding,N=void 0===I?nL.padding:I,T=e.innerPadding,M=void 0===T?nL.innerPadding:T,D=e.valueScale,P=void 0===D?nL.valueScale:D,R=e.indexScale,H=void 0===R?nL.indexScale:R,z=e.initialHiddenIds,V=void 0===z?nL.initialHiddenIds:z,K=e.enableLabel,q=void 0===K?nL.enableLabel:K,G=e.labelSkipWidth,W=void 0===G?nL.labelSkipWidth:G,Y=e.labelSkipHeight,X=void 0===Y?nL.labelSkipHeight:Y,J=e.legends,Z=void 0===J?nL.legends:J,$=e.legendLabel,ee=n(null!=V?V:[]),te=ee[0],ne=ee[1],re=s(function(e){ne(function(t){return t.indexOf(e)>-1?t.filter(function(t){return t!==e}):[].concat(t,[e])})},[]),ie=VC(r),oe=VC(A),se=VC(c),ae=AC(u),Ae=dC(),le=NQ(h,g),ce=LQ(v,Ae),ue=LQ(y,Ae),de=('grouped'===B?gL:wL)({layout:C,reverse:j,data:F,getIndex:ie,keys:o,minValue:S,maxValue:U,width:L,height:O,getColor:le,padding:N,innerPadding:M,valueScale:P,indexScale:H,hiddenIds:te,formatValue:ae,getTooltipLabel:se,margin:Q}),fe=de.bars,he=de.xScale,pe=de.yScale,ge=d(function(){return fe.filter(function(e){return null!==e.data.value}).map(function(e,t){return YQ({},e,{index:t})})},[fe]),me=s(function(e){var t=e.width,n=e.height;return!(!q||W>0&&t<W||X>0&&n<X)},[q,W,X]),ve=d(function(){return o.map(function(e){var t=fe.find(function(t){return t.data.id===e});return YQ({},t,{data:YQ({id:e},null==t?void 0:t.data,{hidden:te.includes(e)})})})},[te,o,fe]),be=d(function(){return Z.map(function(e){return[e,BL({bars:'keys'===e.dataFrom?ve:fe,direction:e.direction,from:e.dataFrom,groupMode:B,layout:C,legendLabel:$,reverse:j})]})},[Z,ve,fe,B,C,$,j]);return{bars:fe,barsWithValue:ge,xScale:he,yScale:pe,getIndex:ie,getLabel:oe,getTooltipLabel:se,formatValue:ae,getColor:le,getBorderColor:ce,getLabelColor:ue,shouldRenderBarLabel:me,hiddenIds:te,toggleSerie:re,legendsWithData:be}},CL=['isInteractive','animate','motionConfig','theme','renderWrapper'],_L=function(e){var t=e.data,n=e.indexBy,r=e.keys,i=e.margin,o=e.width,s=e.height,a=e.groupMode,A=e.layout,l=e.reverse,c=e.minValue,u=e.maxValue,f=e.valueScale,h=e.indexScale,g=e.padding,v=e.innerPadding,b=e.axisTop,y=e.axisRight,B=e.axisBottom,x=void 0===B?rL.axisBottom:B,C=e.axisLeft,_=void 0===C?rL.axisLeft:C,j=e.enableGridX,F=void 0===j?rL.enableGridX:j,E=e.enableGridY,S=void 0===E?rL.enableGridY:E,k=e.gridXValues,U=e.gridYValues,Q=e.layers,L=void 0===Q?rL.layers:Q,O=e.barComponent,I=void 0===O?rL.barComponent:O,N=e.enableLabel,T=void 0===N?rL.enableLabel:N,M=e.label,D=e.labelSkipWidth,P=void 0===D?rL.labelSkipWidth:D,R=e.labelSkipHeight,H=void 0===R?rL.labelSkipHeight:R,z=e.labelTextColor,V=e.markers,K=void 0===V?rL.markers:V,q=e.colorBy,G=e.colors,W=e.defs,Y=void 0===W?rL.defs:W,X=e.fill,J=void 0===X?rL.fill:X,Z=e.borderRadius,$=void 0===Z?rL.borderRadius:Z,ee=e.borderWidth,te=void 0===ee?rL.borderWidth:ee,ne=e.borderColor,re=e.annotations,ie=void 0===re?rL.annotations:re,oe=e.legendLabel,se=e.tooltipLabel,ae=e.valueFormat,Ae=e.isInteractive,le=void 0===Ae?rL.isInteractive:Ae,ce=e.tooltip,ue=void 0===ce?rL.tooltip:ce,de=e.onClick,fe=e.onMouseEnter,he=e.onMouseLeave,pe=e.legends,ge=e.role,me=void 0===ge?rL.role:ge,ve=e.ariaLabel,be=e.ariaLabelledBy,ye=e.ariaDescribedBy,we=e.isFocusable,Be=void 0===we?rL.isFocusable:we,xe=e.barAriaLabel,Ce=e.barAriaLabelledBy,_e=e.barAriaDescribedBy,je=e.initialHiddenIds,Fe=zx(),Ee=Fe.animate,Se=Fe.config,ke=oC(o,s,i),Ue=ke.outerWidth,Qe=ke.outerHeight,Le=ke.margin,Oe=ke.innerWidth,Ie=ke.innerHeight,Ne=xL({indexBy:n,label:M,tooltipLabel:se,valueFormat:ae,colors:G,colorBy:q,borderColor:ne,labelTextColor:z,groupMode:a,layout:A,reverse:l,data:t,keys:r,minValue:c,maxValue:u,margin:Le,width:Oe,height:Ie,padding:g,innerPadding:v,valueScale:f,indexScale:h,enableLabel:T,labelSkipWidth:P,labelSkipHeight:H,legends:pe,legendLabel:oe,initialHiddenIds:je}),Te=Ne.bars,Me=Ne.barsWithValue,De=Ne.xScale,Pe=Ne.yScale,Re=Ne.getLabel,He=Ne.getTooltipLabel,ze=Ne.getBorderColor,Ve=Ne.getLabelColor,Ke=Ne.shouldRenderBarLabel,qe=Ne.toggleSerie,Ge=Ne.legendsWithData,We=Zs(Me,{keys:function(e){return e.key},from:function(e){return YQ({borderColor:ze(e),color:e.color,height:0,labelColor:Ve(e),labelOpacity:0,labelX:e.width/2,labelY:e.height/2,transform:'translate('+e.x+', '+(e.y+e.height)+')',width:e.width},'vertical'===A?{}:{height:e.height,transform:'translate('+e.x+', '+e.y+')',width:0})},enter:function(e){return{borderColor:ze(e),color:e.color,height:e.height,labelColor:Ve(e),labelOpacity:1,labelX:e.width/2,labelY:e.height/2,transform:'translate('+e.x+', '+e.y+')',width:e.width}},update:function(e){return{borderColor:ze(e),color:e.color,height:e.height,labelColor:Ve(e),labelOpacity:1,labelX:e.width/2,labelY:e.height/2,transform:'translate('+e.x+', '+e.y+')',width:e.width}},leave:function(e){return YQ({borderColor:ze(e),color:e.color,height:0,labelColor:Ve(e),labelOpacity:0,labelX:e.width/2,labelY:0,transform:'translate('+e.x+', '+(e.y+e.height)+')',width:e.width},'vertical'===A?{}:{labelX:0,labelY:e.height/2,height:e.height,transform:'translate('+e.x+', '+e.y+')',width:0})},config:Se,immediate:!Ee,initial:Ee?void 0:null}),Ye=d(function(){return{borderRadius:$,borderWidth:te,enableLabel:T,isInteractive:le,labelSkipWidth:P,labelSkipHeight:H,onClick:de,onMouseEnter:fe,onMouseLeave:he,getTooltipLabel:He,tooltip:ue,isFocusable:Be,ariaLabel:xe,ariaLabelledBy:Ce,ariaDescribedBy:_e}},[$,te,T,He,le,H,P,de,fe,he,ue,Be,xe,Ce,_e]),Xe=YC(Y,Te,J,{dataKey:'data',targetKey:'data.fill'}),Je={annotations:null,axes:null,bars:null,grid:null,legends:null,markers:null};L.includes('annotations')&&(Je.annotations=w(ZQ,{bars:Te,annotations:ie},'annotations')),L.includes('axes')&&(Je.axes=w(zF,{xScale:De,yScale:Pe,width:Oe,height:Ie,top:b,right:y,bottom:x,left:_},'axes')),L.includes('bars')&&(Je.bars=w(m,{children:We(function(e,t){return p(I,YQ({},Ye,{bar:t,style:e,shouldRenderLabel:Ke(t),label:Re(t.data)}))})},'bars')),L.includes('grid')&&(Je.grid=w(qF,{width:Oe,height:Ie,xScale:F?De:null,yScale:S?Pe:null,xValues:k,yValues:U},'grid')),L.includes('legends')&&(Je.legends=w($Q,{width:Oe,height:Ie,legends:Ge,toggleSerie:qe},'legends')),L.includes('markers')&&(Je.markers=w(PC,{markers:K,width:Oe,height:Ie,xScale:De,yScale:Pe},'markers'));var Ze=d(function(){return YQ({},Ye,{margin:Le,width:o,height:s,innerWidth:Oe,innerHeight:Ie,bars:Te,legendData:Ge,enableLabel:T,xScale:De,yScale:Pe,tooltip:ue,getTooltipLabel:He,onClick:de,onMouseEnter:fe,onMouseLeave:he})},[Ye,Le,o,s,Oe,Ie,Te,Ge,T,De,Pe,ue,He,de,fe,he]);return w(QC,{width:Ue,height:Qe,margin:Le,defs:Xe,role:me,ariaLabel:ve,ariaLabelledBy:be,ariaDescribedBy:ye,isFocusable:Be,children:L.map(function(e,t){var n;return'function'==typeof e?w(m,{children:p(e,Ze)},t):null!=(n=null==Je?void 0:Je[e])?n:null})})},jL=function(e){var t=e.isInteractive,n=void 0===t?rL.isInteractive:t,r=e.animate,i=void 0===r?rL.animate:r,o=e.motionConfig,s=void 0===o?rL.motionConfig:o,a=e.theme,A=e.renderWrapper,l=XQ(e,CL);return w(pC,{animate:i,isInteractive:n,motionConfig:s,renderWrapper:A,theme:a,children:w(_L,YQ({isInteractive:n},l))})},FL=['isInteractive','renderWrapper','theme'],EL=function(e,t,n,r){return e.find(function(e){return KC(e.x+t.left,e.y+t.top,e.width,e.height,n,r)})},SL=function(e){var t=e.data,n=e.indexBy,i=e.keys,a=e.margin,A=e.width,l=e.height,c=e.groupMode,u=e.layout,f=e.reverse,h=e.minValue,g=e.maxValue,m=e.valueScale,v=e.indexScale,b=e.padding,y=e.innerPadding,B=e.axisTop,x=e.axisRight,C=e.axisBottom,_=void 0===C?iL.axisBottom:C,j=e.axisLeft,F=void 0===j?iL.axisLeft:j,E=e.enableGridX,S=void 0===E?iL.enableGridX:E,k=e.enableGridY,U=void 0===k?iL.enableGridY:k,Q=e.gridXValues,L=e.gridYValues,O=e.layers,I=void 0===O?iL.layers:O,N=e.renderBar,T=void 0===N?function(e,t){var n=t.bar,r=n.color,i=n.height,o=n.width,s=n.x,a=n.y,A=t.borderColor,l=t.borderRadius,c=t.borderWidth,u=t.label,d=t.labelColor,f=t.shouldRenderLabel;if(e.fillStyle=r,c>0&&(e.strokeStyle=A,e.lineWidth=c),e.beginPath(),l>0){var h=Math.min(l,i);e.moveTo(s+h,a),e.lineTo(s+o-h,a),e.quadraticCurveTo(s+o,a,s+o,a+h),e.lineTo(s+o,a+i-h),e.quadraticCurveTo(s+o,a+i,s+o-h,a+i),e.lineTo(s+h,a+i),e.quadraticCurveTo(s,a+i,s,a+i-h),e.lineTo(s,a+h),e.quadraticCurveTo(s,a,s+h,a),e.closePath()}else e.rect(s,a,o,i);e.fill(),c>0&&e.stroke(),f&&(e.textBaseline='middle',e.textAlign='center',e.fillStyle=d,e.fillText(u,s+o/2,a+i/2))}:N,M=e.enableLabel,D=void 0===M?iL.enableLabel:M,P=e.label,R=e.labelSkipWidth,H=void 0===R?iL.labelSkipWidth:R,z=e.labelSkipHeight,V=void 0===z?iL.labelSkipHeight:z,K=e.labelTextColor,q=e.colorBy,G=e.colors,W=e.borderRadius,Y=void 0===W?iL.borderRadius:W,X=e.borderWidth,J=void 0===X?iL.borderWidth:X,Z=e.borderColor,$=e.annotations,ee=void 0===$?iL.annotations:$,te=e.legendLabel,ne=e.tooltipLabel,re=e.valueFormat,ie=e.isInteractive,oe=void 0===ie?iL.isInteractive:ie,se=e.tooltip,ae=void 0===se?iL.tooltip:se,Ae=e.onClick,le=e.onMouseEnter,ce=e.onMouseLeave,ue=e.legends,de=e.pixelRatio,fe=void 0===de?iL.pixelRatio:de,he=e.canvasRef,pe=o(null),ge=dC(),me=oC(A,l,a),ve=me.margin,be=me.innerWidth,ye=me.innerHeight,we=me.outerWidth,Be=me.outerHeight,xe=xL({indexBy:n,label:P,tooltipLabel:ne,valueFormat:re,colors:G,colorBy:q,borderColor:Z,labelTextColor:K,groupMode:c,layout:u,reverse:f,data:t,keys:i,minValue:h,maxValue:g,margin:ve,width:be,height:ye,padding:b,innerPadding:y,valueScale:m,indexScale:v,enableLabel:D,labelSkipWidth:H,labelSkipHeight:V,legends:ue,legendLabel:te}),Ce=xe.bars,_e=xe.barsWithValue,je=xe.xScale,Fe=xe.yScale,Ee=xe.getLabel,Se=xe.getTooltipLabel,ke=xe.getBorderColor,Ue=xe.getLabelColor,Qe=xe.shouldRenderBarLabel,Le=xe.legendsWithData,Oe=Qa(),Ie=Oe.showTooltipFromEvent,Ne=Oe.hideTooltip,Te=function(e){var t=e.annotations;return d(function(){return t.map(function(e){return KS({},e,{computed:ZS(KS({},e))})})},[t])}({annotations:$S({data:Ce,annotations:ee,getPosition:function(e){return{x:e.x,y:e.y}},getDimensions:function(e){var t=e.width,n=e.height;return{width:t,height:n,size:Math.max(t,n)}}})}),Me=d(function(){return{borderRadius:Y,borderWidth:J,isInteractive:oe,isFocusable:!1,labelSkipWidth:H,labelSkipHeight:V,margin:ve,width:A,height:l,innerWidth:be,innerHeight:ye,bars:Ce,legendData:Le,enableLabel:D,xScale:je,yScale:Fe,tooltip:ae,getTooltipLabel:Se,onClick:Ae,onMouseEnter:le,onMouseLeave:ce}},[Y,J,oe,H,V,ve,A,l,be,ye,Ce,Le,D,je,Fe,ae,Se,Ae,le,ce]);r(function(){var e,t=null==(e=pe.current)?void 0:e.getContext('2d');pe.current&&t&&(pe.current.width=we*fe,pe.current.height=Be*fe,t.scale(fe,fe),t.fillStyle=ge.background,t.fillRect(0,0,we,Be),t.translate(ve.left,ve.top),I.forEach(function(e){'grid'===e?'number'==typeof ge.grid.line.strokeWidth&&ge.grid.line.strokeWidth>0&&(t.lineWidth=ge.grid.line.strokeWidth,t.strokeStyle=ge.grid.line.stroke,S&&WF(t,{width:A,height:l,scale:je,axis:'x',values:Q}),U&&WF(t,{width:A,height:l,scale:Fe,axis:'y',values:L})):'axes'===e?GF(t,{xScale:je,yScale:Fe,width:be,height:ye,top:B,right:x,bottom:_,left:F,theme:ge}):'bars'===e?_e.forEach(function(e){T(t,{bar:e,borderColor:ke(e),borderRadius:Y,borderWidth:J,label:Ee(e.data),labelColor:Ue(e),shouldRenderLabel:Qe(e)})}):'legends'===e?Le.forEach(function(e){var n=e[0],r=e[1];GQ(t,YQ({},n,{data:r,containerWidth:be,containerHeight:ye,theme:ge}))}):'annotations'===e?function(e,t){var n=t.annotations,r=t.theme;0!==n.length&&(e.save(),n.forEach(function(t){if(!function(e){var t=typeof e;return'string'===t||'function'===t}(t.note))throw new Error('note is invalid for canvas implementation');r.annotations.link.outlineWidth>0&&(e.lineCap='square',e.strokeStyle=r.annotations.link.outlineColor,e.lineWidth=r.annotations.link.strokeWidth+2*r.annotations.link.outlineWidth,e.beginPath(),sk(e,t.computed.points),e.stroke(),e.lineCap='butt'),YS(t)&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.arc(t.x,t.y,t.size/2,0,2*Math.PI),e.stroke()),XS(t)&&r.annotations.symbol.outlineWidth>0&&(e.strokeStyle=r.annotations.symbol.outlineColor,e.lineWidth=2*r.annotations.symbol.outlineWidth,e.beginPath(),e.arc(t.x,t.y,t.size/2,0,2*Math.PI),e.stroke()),JS(t)&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.rect(t.x-t.width/2,t.y-t.height/2,t.width,t.height),e.stroke()),e.strokeStyle=r.annotations.link.stroke,e.lineWidth=r.annotations.link.strokeWidth,e.beginPath(),sk(e,t.computed.points),e.stroke(),YS(t)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.arc(t.x,t.y,t.size/2,0,2*Math.PI),e.stroke()),XS(t)&&(e.fillStyle=r.annotations.symbol.fill,e.beginPath(),e.arc(t.x,t.y,t.size/2,0,2*Math.PI),e.fill()),JS(t)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.rect(t.x-t.width/2,t.y-t.height/2,t.width,t.height),e.stroke()),'function'==typeof t.note?t.note(e,{datum:t.datum,x:t.computed.text[0],y:t.computed.text[1],theme:r}):(e.font=r.annotations.text.fontSize+'px '+r.annotations.text.fontFamily,e.textAlign='left',e.textBaseline='alphabetic',e.fillStyle=r.annotations.text.fill,e.strokeStyle=r.annotations.text.outlineColor,e.lineWidth=2*r.annotations.text.outlineWidth,r.annotations.text.outlineWidth>0&&(e.lineJoin='round',e.strokeText(t.note,t.computed.text[0],t.computed.text[1]),e.lineJoin='miter'),e.fillText(t.note,t.computed.text[0],t.computed.text[1]))}),e.restore())}(t,{annotations:Te,theme:ge}):'function'==typeof e&&e(t,Me)}),t.save())},[_,F,x,B,_e,Y,J,Te,S,U,ke,Ee,Ue,Q,L,c,l,ye,be,Me,I,u,Le,ve.left,ve.top,Be,we,fe,T,je,Fe,f,Qe,ge,A]);var De=s(function(e){if(Ce&&pe.current){var t=qC(pe.current,e),n=t[0],r=t[1],i=EL(Ce,ve,n,r);void 0!==i?(Ie(p(ae,YQ({},i.data,{color:i.color,label:i.label,value:Number(i.data.value)})),e),'mouseenter'===e.type&&(null==le||le(i.data,e))):Ne()}},[Ne,ve,le,Ce,Ie,ae]),Pe=s(function(e){if(Ce&&pe.current){Ne();var t=qC(pe.current,e),n=t[0],r=t[1],i=EL(Ce,ve,n,r);i&&(null==ce||ce(i.data,e))}},[Ne,ve,ce,Ce]),Re=s(function(e){if(Ce&&pe.current){var t=qC(pe.current,e),n=t[0],r=t[1],i=EL(Ce,ve,n,r);void 0!==i&&(null==Ae||Ae(YQ({},i.data,{color:i.color}),e))}},[ve,Ae,Ce]);return w('canvas',{ref:function(e){pe.current=e,he&&'current'in he&&(he.current=e)},width:we*fe,height:Be*fe,style:{width:we,height:Be,cursor:oe?'auto':'normal'},onMouseEnter:oe?De:void 0,onMouseMove:oe?De:void 0,onMouseLeave:oe?Pe:void 0,onClick:oe?Re:void 0})},kL=c(function(e,t){var n=e.isInteractive,r=e.renderWrapper,i=e.theme,o=XQ(e,FL);return w(pC,{isInteractive:n,renderWrapper:r,theme:i,animate:!1,children:w(SL,YQ({},o,{canvasRef:t}))})}),UL=function(e){return w(gC,{children:function(t){var n=t.width,r=t.height;return w(jL,YQ({width:n,height:r},e))}})};c(function(e,t){return w(gC,{children:function(n){var r=n.width,i=n.height;return w(kL,YQ({width:r,height:i},e,{ref:t}))}})});var QL={background:'#ffffff',text:{fontSize:11,fill:'#333333',outlineWidth:0,outlineColor:'transparent'},axis:{domain:{line:{stroke:'#777777',strokeWidth:1}},legend:{text:{fontSize:12,fill:'#333333',outlineWidth:0,outlineColor:'transparent'}},ticks:{line:{stroke:'#777777',strokeWidth:1},text:{fontSize:11,fill:'#333333',outlineWidth:0,outlineColor:'transparent'}}},grid:{line:{stroke:'#dddddd',strokeWidth:1}},legends:{title:{text:{fontSize:11,fill:'#333333',outlineWidth:0,outlineColor:'transparent'}},text:{fontSize:11,fill:'#333333',outlineWidth:0,outlineColor:'transparent'},ticks:{line:{},text:{fontSize:10,fill:'#333333',outlineWidth:0,outlineColor:'transparent'}}},annotations:{text:{fontSize:13,fill:'#333333',outlineWidth:2,outlineColor:'#ffffff',outlineOpacity:1},link:{stroke:'#000000',strokeWidth:1,outlineWidth:2,outlineColor:'#ffffff',outlineOpacity:1},outline:{stroke:'#000000',strokeWidth:2,outlineWidth:2,outlineColor:'#ffffff',outlineOpacity:1},symbol:{fill:'#000000',outlineWidth:2,outlineColor:'#ffffff',outlineOpacity:1}},tooltip:{container:{background:'#ffffff',fontSize:12},basic:{},chip:{},table:{},tableCell:{},tableCellValue:{}}},LL={background:'#121b37',text:{fontSize:11,fill:'#000000',outlineWidth:0,outlineColor:'#000000'},axis:{domain:{line:{stroke:'#777777',strokeWidth:1}},legend:{text:{fontSize:12,fill:'#333333',outlineWidth:0,outlineColor:'transparent'}},ticks:{line:{stroke:'#777777',strokeWidth:1},text:{fontSize:11,fill:'#ccccdc',outlineWidth:0,outlineColor:'transparent'}}},grid:{line:{stroke:'#dddddd',strokeWidth:1}},legends:{title:{text:{fontSize:11,fill:'#333333',outlineWidth:0,outlineColor:'transparent'}},text:{fontSize:11,fill:'#ccccdc',outlineWidth:0,outlineColor:'transparent'},ticks:{line:{},text:{fontSize:10,fill:'#333333',outlineWidth:0,outlineColor:'transparent'}}},annotations:{text:{fontSize:13,fill:'#333333',outlineWidth:2,outlineColor:'#ffffff',outlineOpacity:1},link:{stroke:'#000000',strokeWidth:1,outlineWidth:2,outlineColor:'#ffffff',outlineOpacity:1},outline:{stroke:'#000000',strokeWidth:2,outlineWidth:2,outlineColor:'#ffffff',outlineOpacity:1},symbol:{fill:'#000000',outlineWidth:2,outlineColor:'#ffffff',outlineOpacity:1}},tooltip:{container:{background:'#ffffff',fontSize:12,fill:'#000000'},basic:{},chip:{},table:{},tableCell:{},tableCellValue:{}}},OL=function(e){var t=parseFloat(e);return isNaN(t)?e:Number.isInteger(t)?t:t.toFixed(3)},IL=function(e){return e.length>10?e.substring(0,10)+'...':e},NL=function(e){var n=e.chartData,r=function(e){if(1===e.num_y_categories){var t=e.y_data,n=Array.isArray(t[0])&&t.length===e.x_data.length?t.map(function(e){return e[0]}):Array.isArray(t[0])?t[0]:t;return e.x_data.map(function(t,r){var i,o;return(i={})[e.x_label]=t,i[e.y_category_label[0]]=null!==(o=n[r])&&void 0!==o?o:0,i})}return e.x_data.map(function(t,n){var r,i=((r={})[e.x_label]=t,r);return e.y_category_label.forEach(function(t,r){var o,s;i[t]=null!==(s=null===(o=e.y_data[n])||void 0===o?void 0:o[r])&&void 0!==s?s:0}),i})}(n),i=u(tJ).isDarkMode;return t.createElement(UL,{data:r,keys:n.y_category_label,indexBy:n.x_label,groupMode:'grouped',margin:{top:50,right:60,bottom:80,left:60},padding:.4,valueScale:{type:'linear'},colors:{scheme:'nivo'},animate:!0,enableLabel:!1,axisTop:null,axisRight:null,axisLeft:{tickSize:3,tickPadding:3,tickRotation:0,legend:n.y_category_label,legendPosition:'middle',legendOffset:-55,format:function(e){return e>=1e9?''.concat((e/1e9).toFixed(1),'B'):e>=1e6?''.concat((e/1e6).toFixed(1),'M'):e>=1e3?''.concat((e/1e3).toFixed(1),'K'):e.toString()}},axisBottom:{tickSize:5,tickPadding:5,tickRotation:-15,truncateTickAt:0,legend:n.x_label,legendPosition:'middle',legendOffset:45,format:IL},legends:[{dataFrom:'keys',anchor:'top',direction:'row',justify:!1,translateX:0,translateY:-30,itemsSpacing:2,itemWidth:100,itemHeight:20,itemDirection:'left-to-right',itemOpacity:.85,symbolSize:20,effects:[{on:'hover',style:{itemOpacity:1}}]}],theme:i?LL:QL})};function TL(){return TL=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},TL.apply(this,arguments)}var ML={pointerEvents:'none'},DL=function(e){var t=e.label,n=e.style,r=dC();return w(va.g,{transform:n.transform,opacity:n.progress,style:ML,children:w(va.text,{textAnchor:'middle',dominantBaseline:'central',style:TL({},r.labels.text,{fill:n.textColor}),children:t})})},PL=function(e){var t=e%(2*Math.PI);return t<0&&(t+=2*Math.PI),t},RL={startAngle:{enter:function(e){return TL({},e,{endAngle:e.startAngle})},update:function(e){return e},leave:function(e){return TL({},e,{startAngle:e.endAngle})}},middleAngle:{enter:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return TL({},e,{startAngle:t,endAngle:t})},update:function(e){return e},leave:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return TL({},e,{startAngle:t,endAngle:t})}},endAngle:{enter:function(e){return TL({},e,{startAngle:e.endAngle})},update:function(e){return e},leave:function(e){return TL({},e,{endAngle:e.startAngle})}},innerRadius:{enter:function(e){return TL({},e,{outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return TL({},e,{innerRadius:e.outerRadius})}},centerRadius:{enter:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return TL({},e,{innerRadius:t,outerRadius:t})},update:function(e){return e},leave:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return TL({},e,{innerRadius:t,outerRadius:t})}},outerRadius:{enter:function(e){return TL({},e,{innerRadius:e.outerRadius})},update:function(e){return e},leave:function(e){return TL({},e,{outerRadius:e.innerRadius})}},pushIn:{enter:function(e){return TL({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return TL({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})}},pushOut:{enter:function(e){return TL({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})},update:function(e){return e},leave:function(e){return TL({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})}}},HL=function(e,t){return d(function(){var n=RL[e];return{enter:function(e){return TL({progress:0},n.enter(e.arc),t?t.enter(e):{})},update:function(e){return TL({progress:1},n.update(e.arc),t?t.update(e):{})},leave:function(e){return TL({progress:0},n.leave(e.arc),t?t.leave(e):{})}}},[e,t])},zL=function(e){return function(t,n,r,i){return ia([t,n,r,i],function(t,n,r,i){var o=function(e,t){var n=function(e){return e.startAngle+(e.endAngle-e.startAngle)/2}(e)-Math.PI/2,r=e.innerRadius+(e.outerRadius-e.innerRadius)*t;return xC(n,r)}({startAngle:t,endAngle:n,innerRadius:r,outerRadius:i},e);return'translate('+o.x+','+o.y+')'})}},VL=function(e){var t=e.center,n=e.data,r=e.transitionMode,i=e.label,o=e.radiusOffset,s=e.skipAngle,a=e.textColor,A=e.component,l=void 0===A?DL:A,c=VC(i),u=dC(),f=LQ(a,u),h=d(function(){return n.filter(function(e){return Math.abs(BC(e.arc.endAngle-e.arc.startAngle))>=s})},[n,s]),g=function(e,t,n,r){void 0===t&&(t=.5),void 0===n&&(n='innerRadius');var i=zx(),o=i.animate,s=i.config,a=HL(n,r);return{transition:Zs(e,{keys:function(e){return e.id},initial:a.update,from:a.enter,enter:a.update,update:a.update,leave:a.leave,config:s,immediate:!o}),interpolate:zL(t)}}(h,o,r),m=g.transition,v=g.interpolate,b=l;return w('g',{transform:'translate('+t[0]+','+t[1]+')',children:m(function(e,t){return p(b,{key:t.id,datum:t,label:c(t),style:TL({},e,{transform:v(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius),textColor:f(t)})})})})},KL=function(e){var t=e.label,n=e.style,r=dC();return B(va.g,{opacity:n.opacity,children:[w(va.path,{fill:'none',stroke:n.linkColor,strokeWidth:n.thickness,d:n.path}),w(va.text,{transform:n.textPosition,textAnchor:n.textAnchor,dominantBaseline:'central',style:TL({},r.labels.text,{fill:n.textColor}),children:t})]})},qL=function(e,t,n,r){var i,o,s=PL(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2),a=xC(s,e.outerRadius+t),A=xC(s,e.outerRadius+t+n);return s<Math.PI/2||s>1.5*Math.PI?(i='after',o={x:A.x+r,y:A.y}):(i='before',o={x:A.x-r,y:A.y}),{side:i,points:[a,A,o]}},GL=vy().x(function(e){return e.x}).y(function(e){return e.y}),WL=function(e,t,n,r,i,o,s){return ia([e,t,n,r,i,o,s],function(e,t,n,r,i,o,s){var a=qL({startAngle:e,endAngle:t,innerRadius:n,outerRadius:r},i,o,s).points;return GL(a)})},YL=function(e,t,n,r){return ia([e,t,n,r],function(e,t,n,r){return function(e){var t=PL(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2);return t<Math.PI/2||t>1.5*Math.PI?'start':'end'}({startAngle:e,endAngle:t,innerRadius:n,outerRadius:r})})},XL=function(e,t,n,r,i,o,s,a){return ia([e,t,n,r,i,o,s,a],function(e,t,n,r,i,o,s,a){var A=qL({startAngle:e,endAngle:t,innerRadius:n,outerRadius:r},i,o,s),l=A.points,c=A.side,u=l[2];return'before'===c?u.x-=a:u.x+=a,'translate('+u.x+','+u.y+')'})},JL=function(e){var t=e.data,n=e.offset,r=void 0===n?0:n,i=e.diagonalLength,o=e.straightLength,s=e.skipAngle,a=void 0===s?0:s,A=e.textOffset,l=e.linkColor,c=e.textColor,u=zx(),f=u.animate,h=u.config,p=dC(),g=LQ(l,p),m=LQ(c,p),v=function(e,t){return d(function(){return function(e,t){return e.filter(function(e){return Math.abs(BC(e.arc.endAngle-e.arc.startAngle))>=t})}(e,t)},[e,t])}(t,a),b=function(e){var t=e.offset,n=e.diagonalLength,r=e.straightLength,i=e.textOffset,o=e.getLinkColor,s=e.getTextColor;return d(function(){return{enter:function(e){return{startAngle:e.arc.startAngle,endAngle:e.arc.endAngle,innerRadius:e.arc.innerRadius,outerRadius:e.arc.outerRadius,offset:t,diagonalLength:0,straightLength:0,textOffset:i,linkColor:o(e),textColor:s(e),opacity:0}},update:function(e){return{startAngle:e.arc.startAngle,endAngle:e.arc.endAngle,innerRadius:e.arc.innerRadius,outerRadius:e.arc.outerRadius,offset:t,diagonalLength:n,straightLength:r,textOffset:i,linkColor:o(e),textColor:s(e),opacity:1}},leave:function(e){return{startAngle:e.arc.startAngle,endAngle:e.arc.endAngle,innerRadius:e.arc.innerRadius,outerRadius:e.arc.outerRadius,offset:t,diagonalLength:0,straightLength:0,textOffset:i,linkColor:o(e),textColor:s(e),opacity:0}}}},[n,r,i,o,s,t])}({offset:r,diagonalLength:i,straightLength:o,textOffset:A,getLinkColor:g,getTextColor:m});return{transition:Zs(v,{keys:function(e){return e.id},initial:b.update,from:b.enter,enter:b.update,update:b.update,leave:b.leave,config:h,immediate:!f}),interpolateLink:WL,interpolateTextAnchor:YL,interpolateTextPosition:XL}},ZL=function(e){var t=e.center,n=e.data,r=e.label,i=e.skipAngle,o=e.offset,s=e.diagonalLength,a=e.straightLength,A=e.strokeWidth,l=e.textOffset,c=e.textColor,u=e.linkColor,d=e.component,f=void 0===d?KL:d,h=VC(r),g=JL({data:n,skipAngle:i,offset:o,diagonalLength:s,straightLength:a,textOffset:l,linkColor:u,textColor:c}),m=g.transition,v=g.interpolateLink,b=g.interpolateTextAnchor,y=g.interpolateTextPosition,B=f;return w('g',{transform:'translate('+t[0]+','+t[1]+')',children:m(function(e,t){return p(B,{key:t.id,datum:t,label:h(t),style:TL({},e,{thickness:A,path:v(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius,e.offset,e.diagonalLength,e.straightLength),textAnchor:b(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius),textPosition:y(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius,e.offset,e.diagonalLength,e.straightLength,e.textOffset)})})})})},$L=function(e){var t=e.datum,n=e.style,r=e.onClick,i=e.onMouseEnter,o=e.onMouseMove,a=e.onMouseLeave,A=s(function(e){return null==r?void 0:r(t,e)},[r,t]),l=s(function(e){return null==i?void 0:i(t,e)},[i,t]),c=s(function(e){return null==o?void 0:o(t,e)},[o,t]),u=s(function(e){return null==a?void 0:a(t,e)},[a,t]);return w(va.path,{d:n.path,opacity:n.opacity,fill:t.fill||n.color,stroke:n.borderColor,strokeWidth:n.borderWidth,onClick:r?A:void 0,onMouseEnter:i?l:void 0,onMouseMove:o?c:void 0,onMouseLeave:a?u:void 0})},eO=function(e,t,n,r,i){return ia([e,t,n,r],function(e,t,n,r){return i({startAngle:e,endAngle:t,innerRadius:Math.max(0,n),outerRadius:Math.max(0,r)})})},tO=function(e){var t=e.center,n=e.data,r=e.arcGenerator,i=e.borderWidth,o=e.borderColor,s=e.onClick,a=e.onMouseEnter,A=e.onMouseMove,l=e.onMouseLeave,c=e.transitionMode,u=e.component,d=void 0===u?$L:u,f=dC(),h=LQ(o,f),g=function(e,t,n){void 0===t&&(t='innerRadius');var r=zx(),i=r.animate,o=r.config,s=HL(t,n);return{transition:Zs(e,{keys:function(e){return e.id},initial:s.update,from:s.enter,enter:s.update,update:s.update,leave:s.leave,config:o,immediate:!i}),interpolate:eO}}(n,c,{enter:function(e){return{opacity:0,color:e.color,borderColor:h(e)}},update:function(e){return{opacity:1,color:e.color,borderColor:h(e)}},leave:function(e){return{opacity:0,color:e.color,borderColor:h(e)}}}),m=g.transition,v=g.interpolate,b=d;return w('g',{transform:'translate('+t[0]+','+t[1]+')',children:m(function(e,t){return p(b,{key:t.id,datum:t,style:TL({},e,{borderWidth:i,path:v(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius,r)}),onClick:s,onMouseEnter:a,onMouseMove:A,onMouseLeave:l})})})},nO=function(e){var t=void 0===e?{}:e,n=t.cornerRadius,r=void 0===n?0:n,i=t.padAngle,o=void 0===i?0:i;return d(function(){return fy().innerRadius(function(e){return e.innerRadius}).outerRadius(function(e){return e.outerRadius}).cornerRadius(r).padAngle(o)},[r,o])};function rO(){return rO=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},rO.apply(this,arguments)}function iO(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}var oO,sO,aO,AO,lO=function(e){var t=e.width,n=e.height,r=e.legends,i=e.data,o=e.toggleSerie;return w(x,{children:r.map(function(e,r){var s;return w(KQ,rO({},e,{containerWidth:t,containerHeight:n,data:null!=(s=e.data)?s:i,toggleSerie:e.toggleSerie?o:void 0}),r)})})},cO={id:'id',value:'value',sortByValue:!1,innerRadius:0,padAngle:0,cornerRadius:0,layers:['arcs','arcLinkLabels','arcLabels','legends'],startAngle:0,endAngle:360,fit:!0,activeInnerRadiusOffset:0,activeOuterRadiusOffset:0,borderWidth:0,borderColor:{from:'color',modifiers:[['darker',1]]},enableArcLabels:!0,arcLabel:'formattedValue',arcLabelsSkipAngle:0,arcLabelsRadiusOffset:.5,arcLabelsTextColor:{theme:'labels.text.fill'},enableArcLinkLabels:!0,arcLinkLabel:'id',arcLinkLabelsSkipAngle:0,arcLinkLabelsOffset:0,arcLinkLabelsDiagonalLength:16,arcLinkLabelsStraightLength:24,arcLinkLabelsThickness:1,arcLinkLabelsTextOffset:6,arcLinkLabelsTextColor:{theme:'labels.text.fill'},arcLinkLabelsColor:{theme:'axis.ticks.line.stroke'},colors:{scheme:'nivo'},defs:[],fill:[],isInteractive:!0,animate:!0,motionConfig:'gentle',transitionMode:'innerRadius',tooltip:function(e){var t=e.datum;return w(Ca,{id:t.id,value:t.formattedValue,enableChip:!0,color:t.color})},legends:[],role:'img',pixelRatio:'undefined'!=typeof window&&null!=(oO=window.devicePixelRatio)?oO:1},uO=['points'],dO=function(e){var t=e.data,n=e.startAngle,i=e.endAngle,s=e.innerRadius,a=e.outerRadius,A=e.padAngle,l=e.sortByValue,c=e.activeId,u=e.activeInnerRadiusOffset,f=e.activeOuterRadiusOffset,h=e.hiddenIds,p=e.forwardLegendData,g=d(function(){var e=function(){var e=yy,t=by,n=null,r=Wb(0),i=Wb(oy),o=Wb(0);function s(s){var a,A,l,c,u,d=s.length,f=0,h=new Array(d),p=new Array(d),g=+r.apply(this,arguments),m=Math.min(oy,Math.max(-oy,i.apply(this,arguments)-g)),v=Math.min(Math.abs(m)/d,o.apply(this,arguments)),b=v*(m<0?-1:1);for(a=0;a<d;++a)(u=p[h[a]=a]=+e(s[a],a,s))>0&&(f+=u);for(null!=t?h.sort(function(e,n){return t(p[e],p[n])}):null!=n&&h.sort(function(e,t){return n(s[e],s[t])}),a=0,l=f?(m-d*b)/f:0;a<d;++a,g=c)A=h[a],c=g+((u=p[A])>0?u*l:0)+b,p[A]={data:s[A],index:a,value:u,startAngle:g,endAngle:c,padAngle:v};return p}return s.value=function(t){return arguments.length?(e='function'==typeof t?t:Wb(+t),s):e},s.sortValues=function(e){return arguments.length?(t=e,n=null,s):t},s.sort=function(e){return arguments.length?(n=e,t=null,s):n},s.startAngle=function(e){return arguments.length?(r='function'==typeof e?e:Wb(+e),s):r},s.endAngle=function(e){return arguments.length?(i='function'==typeof e?e:Wb(+e),s):i},s.padAngle=function(e){return arguments.length?(o='function'==typeof e?e:Wb(+e),s):o},s}().value(function(e){return e.value}).startAngle(wC(n)).endAngle(wC(i)).padAngle(wC(A));return l||e.sortValues(null),e},[n,i,A,l]),m=d(function(){var e=t.filter(function(e){return!h.includes(e.id)});return{dataWithArc:g(e).map(function(e){var t=Math.abs(e.endAngle-e.startAngle);return rO({},e.data,{arc:{index:e.index,startAngle:e.startAngle,endAngle:e.endAngle,innerRadius:c===e.data.id?s-u:s,outerRadius:c===e.data.id?a+f:a,thickness:a-s,padAngle:e.padAngle,angle:t,angleDeg:BC(t)}})}),legendData:t.map(function(e){return{id:e.id,label:e.label,color:e.color,hidden:h.includes(e.id),data:e}})}},[g,t,h,c,s,u,a,f]),v=m.legendData,b=o(p);return r(function(){'function'==typeof b.current&&b.current(v)},[b,v]),m},fO=function(e){var t=e.data,r=e.width,i=e.height,o=e.innerRadius,a=void 0===o?cO.innerRadius:o,A=e.startAngle,l=void 0===A?cO.startAngle:A,c=e.endAngle,u=void 0===c?cO.endAngle:c,f=e.padAngle,h=void 0===f?cO.padAngle:f,p=e.sortByValue,g=void 0===p?cO.sortByValue:p,m=e.cornerRadius,v=void 0===m?cO.cornerRadius:m,b=e.fit,y=void 0===b?cO.fit:b,w=e.activeInnerRadiusOffset,B=void 0===w?cO.activeInnerRadiusOffset:w,x=e.activeOuterRadiusOffset,C=void 0===x?cO.activeOuterRadiusOffset:x,_=e.activeId,j=e.onActiveIdChange,F=e.defaultActiveId,E=e.forwardLegendData,S=function(e){var t=e.activeId,r=e.onActiveIdChange,i=e.defaultActiveId,o=void 0!==t,a=n(o||void 0===i?null:i),A=a[0],l=a[1];return{activeId:o?t:A,setActiveId:s(function(e){r&&r(e),o||l(e)},[o,r,l])}}({activeId:_,onActiveIdChange:j,defaultActiveId:F}),k=S.activeId,U=S.setActiveId,Q=n([]),L=Q[0],O=Q[1],I=d(function(){var e,t=Math.min(r,i)/2,n=t*Math.min(a,1),o=r/2,s=i/2;if(y){var A=function(e,t,n,r,i,o){void 0===o&&(o=!0);var s=[],a=xC(wC(r),n);s.push([a.x,a.y]);var A=xC(wC(i),n);s.push([A.x,A.y]);for(var l=Math.round(Math.min(r,i));l<=Math.round(Math.max(r,i));l++)if(l%90==0){var c=xC(wC(l),n);s.push([c.x,c.y])}s=s.map(function(n){var r=n[0],i=n[1];return[e+r,t+i]}),o&&s.push([e,t]);var u=s.map(function(e){return e[0]}),d=s.map(function(e){return e[1]}),f=Math.min.apply(Math,u),h=Math.max.apply(Math,u),p=Math.min.apply(Math,d);return{points:s,x:f,y:p,width:h-f,height:Math.max.apply(Math,d)-p}}(o,s,t,l-90,u-90),c=A.points,d=iO(A,uO),f=Math.min(r/d.width,i/d.height),h={width:d.width*f,height:d.height*f};h.x=(r-h.width)/2,h.y=(i-h.height)/2,o=(o-d.x)/d.width*d.width*f+h.x,s=(s-d.y)/d.height*d.height*f+h.y,e={box:d,ratio:f,points:c},t*=f,n*=f}return{centerX:o,centerY:s,radius:t,innerRadius:n,debug:e}},[r,i,a,l,u,y]),N=dO({data:t,startAngle:l,endAngle:u,innerRadius:I.innerRadius,outerRadius:I.radius,padAngle:h,sortByValue:g,activeId:k,activeInnerRadiusOffset:B,activeOuterRadiusOffset:C,hiddenIds:L,forwardLegendData:E}),T=s(function(e){O(function(t){return t.indexOf(e)>-1?t.filter(function(t){return t!==e}):[].concat(t,[e])})},[]);return rO({arcGenerator:nO({cornerRadius:v,padAngle:wC(h)}),activeId:k,setActiveId:U,toggleSerie:T},N,I)},hO=function(e){var t=e.center,n=e.data,r=e.arcGenerator,i=e.borderWidth,o=e.borderColor,s=e.isInteractive,a=e.onClick,A=e.onMouseEnter,l=e.onMouseMove,c=e.onMouseLeave,u=e.setActiveId,f=e.tooltip,h=e.transitionMode,g=Qa(),m=g.showTooltipFromEvent,v=g.hideTooltip,b=d(function(){if(s)return function(e,t){null==a||a(e,t)}},[s,a]),y=d(function(){if(s)return function(e,t){m(p(f,{datum:e}),t),u(e.id),null==A||A(e,t)}},[s,m,u,A,f]),B=d(function(){if(s)return function(e,t){m(p(f,{datum:e}),t),null==l||l(e,t)}},[s,m,l,f]),x=d(function(){if(s)return function(e,t){v(),u(null),null==c||c(e,t)}},[s,v,u,c]);return w(tO,{center:t,data:n,arcGenerator:r,borderWidth:i,borderColor:o,transitionMode:h,onClick:b,onMouseEnter:y,onMouseMove:B,onMouseLeave:x})},pO=['isInteractive','animate','motionConfig','theme','renderWrapper'],gO=function(e){var t=e.data,n=e.id,r=void 0===n?cO.id:n,i=e.value,o=void 0===i?cO.value:i,s=e.valueFormat,a=e.sortByValue,A=void 0===a?cO.sortByValue:a,l=e.layers,c=void 0===l?cO.layers:l,u=e.startAngle,f=void 0===u?cO.startAngle:u,h=e.endAngle,g=void 0===h?cO.endAngle:h,v=e.padAngle,b=void 0===v?cO.padAngle:v,y=e.fit,B=void 0===y?cO.fit:y,x=e.innerRadius,C=void 0===x?cO.innerRadius:x,_=e.cornerRadius,j=void 0===_?cO.cornerRadius:_,F=e.activeInnerRadiusOffset,E=void 0===F?cO.activeInnerRadiusOffset:F,S=e.activeOuterRadiusOffset,k=void 0===S?cO.activeOuterRadiusOffset:S,U=e.width,Q=e.height,L=e.margin,O=e.colors,I=void 0===O?cO.colors:O,N=e.borderWidth,T=void 0===N?cO.borderWidth:N,M=e.borderColor,D=void 0===M?cO.borderColor:M,P=e.enableArcLabels,R=void 0===P?cO.enableArcLabels:P,H=e.arcLabel,z=void 0===H?cO.arcLabel:H,V=e.arcLabelsSkipAngle,K=void 0===V?cO.arcLabelsSkipAngle:V,q=e.arcLabelsTextColor,G=void 0===q?cO.arcLabelsTextColor:q,W=e.arcLabelsRadiusOffset,Y=void 0===W?cO.arcLabelsRadiusOffset:W,X=e.arcLabelsComponent,J=e.enableArcLinkLabels,Z=void 0===J?cO.enableArcLinkLabels:J,$=e.arcLinkLabel,ee=void 0===$?cO.arcLinkLabel:$,te=e.arcLinkLabelsSkipAngle,ne=void 0===te?cO.arcLinkLabelsSkipAngle:te,re=e.arcLinkLabelsOffset,ie=void 0===re?cO.arcLinkLabelsOffset:re,oe=e.arcLinkLabelsDiagonalLength,se=void 0===oe?cO.arcLinkLabelsDiagonalLength:oe,ae=e.arcLinkLabelsStraightLength,Ae=void 0===ae?cO.arcLinkLabelsStraightLength:ae,le=e.arcLinkLabelsThickness,ce=void 0===le?cO.arcLinkLabelsThickness:le,ue=e.arcLinkLabelsTextOffset,de=void 0===ue?cO.arcLinkLabelsTextOffset:ue,fe=e.arcLinkLabelsTextColor,he=void 0===fe?cO.arcLinkLabelsTextColor:fe,pe=e.arcLinkLabelsColor,ge=void 0===pe?cO.arcLinkLabelsColor:pe,me=e.arcLinkLabelComponent,ve=e.defs,be=void 0===ve?cO.defs:ve,ye=e.fill,we=void 0===ye?cO.fill:ye,Be=e.isInteractive,xe=void 0===Be?cO.isInteractive:Be,Ce=e.onClick,_e=e.onMouseEnter,je=e.onMouseMove,Fe=e.onMouseLeave,Ee=e.tooltip,Se=void 0===Ee?cO.tooltip:Ee,ke=e.activeId,Ue=e.onActiveIdChange,Qe=e.defaultActiveId,Le=e.transitionMode,Oe=void 0===Le?cO.transitionMode:Le,Ie=e.legends,Ne=void 0===Ie?cO.legends:Ie,Te=e.forwardLegendData,Me=e.role,De=void 0===Me?cO.role:Me,Pe=oC(U,Q,L),Re=Pe.outerWidth,He=Pe.outerHeight,ze=Pe.margin,Ve=Pe.innerWidth,Ke=Pe.innerHeight,qe=function(e){var t=e.data,n=e.id,r=void 0===n?cO.id:n,i=e.value,o=void 0===i?cO.value:i,s=e.valueFormat,a=e.colors,A=void 0===a?cO.colors:a,l=VC(r),c=VC(o),u=AC(s),f=NQ(A,'id');return d(function(){return t.map(function(e){var t,n=l(e),r=c(e),i={id:n,label:null!=(t=e.label)?t:n,hidden:!1,value:r,formattedValue:u(r),data:e};return rO({},i,{color:f(i)})})},[t,l,c,u,f])}({data:t,id:r,value:o,valueFormat:s,colors:I}),Ge=fO({data:qe,width:Ve,height:Ke,fit:B,innerRadius:C,startAngle:f,endAngle:g,padAngle:b,sortByValue:A,cornerRadius:j,activeInnerRadiusOffset:E,activeOuterRadiusOffset:k,activeId:ke,onActiveIdChange:Ue,defaultActiveId:Qe,forwardLegendData:Te}),We=Ge.dataWithArc,Ye=Ge.legendData,Xe=Ge.arcGenerator,Je=Ge.centerX,Ze=Ge.centerY,$e=Ge.radius,et=Ge.innerRadius,tt=Ge.setActiveId,nt=Ge.toggleSerie,rt=YC(be,We,we),it={arcs:null,arcLinkLabels:null,arcLabels:null,legends:null};c.includes('arcs')&&(it.arcs=w(hO,{center:[Je,Ze],data:We,arcGenerator:Xe,borderWidth:T,borderColor:D,isInteractive:xe,onClick:Ce,onMouseEnter:_e,onMouseMove:je,onMouseLeave:Fe,setActiveId:tt,tooltip:Se,transitionMode:Oe},'arcs')),Z&&c.includes('arcLinkLabels')&&(it.arcLinkLabels=w(ZL,{center:[Je,Ze],data:We,label:ee,skipAngle:ne,offset:ie,diagonalLength:se,straightLength:Ae,strokeWidth:ce,textOffset:de,textColor:he,linkColor:ge,component:me},'arcLinkLabels')),R&&c.includes('arcLabels')&&(it.arcLabels=w(VL,{center:[Je,Ze],data:We,label:z,radiusOffset:Y,skipAngle:K,textColor:G,transitionMode:Oe,component:X},'arcLabels')),Ne.length>0&&c.includes('legends')&&(it.legends=w(lO,{width:Ve,height:Ke,data:Ye,legends:Ne,toggleSerie:nt},'legends'));var ot=function(e){var t=e.dataWithArc,n=e.arcGenerator,r=e.centerX,i=e.centerY,o=e.radius,s=e.innerRadius;return d(function(){return{dataWithArc:t,arcGenerator:n,centerX:r,centerY:i,radius:o,innerRadius:s}},[t,n,r,i,o,s])}({dataWithArc:We,arcGenerator:Xe,centerX:Je,centerY:Ze,radius:$e,innerRadius:et});return w(QC,{width:Re,height:He,margin:ze,defs:rt,role:De,children:c.map(function(e,t){return void 0!==it[e]?it[e]:'function'==typeof e?w(m,{children:p(e,ot)},t):null})})},mO=function(e){var t=e.isInteractive,n=void 0===t?cO.isInteractive:t,r=e.animate,i=void 0===r?cO.animate:r,o=e.motionConfig,s=void 0===o?cO.motionConfig:o,a=e.theme,A=e.renderWrapper,l=iO(e,pO);return w(pC,{animate:i,isInteractive:n,motionConfig:s,renderWrapper:A,theme:a,children:w(gO,rO({isInteractive:n},l))})},vO=function(e){return w(gC,{children:function(t){var n=t.width,r=t.height;return w(mO,rO({width:n,height:r},e))}})},bO=Nt.div(sO||(sO=De(['\n vu-flex\n vu-items-center\n vu-p-1\n '],['\n vu-flex\n vu-items-center\n vu-p-1\n ']))),yO=Nt.div(aO||(aO=De(['\n vu-h-3\n vu-w-3\n vu-mr-1\n '],['\n vu-h-3\n vu-w-3\n vu-mr-1\n ']))),wO=Nt.strong(AO||(AO=De(['\n vu-ml-1\n '],['\n vu-ml-1\n ']))),BO=function(e){var n=e.isDarkMode,r=e.color,i=e.label,o=e.unit,s=e.value;return t.createElement(bO,{style:Oe({},n?LL.tooltip.container:QL.tooltip.container)},t.createElement(yO,{style:{backgroundColor:r}}),i,':',t.createElement(wO,null,s,' ',o))},xO=function(e){var n=function(e){var t;return(null===(t=e.labels)||void 0===t?void 0:t.map(function(t,n){var r,i,o=null!==(i=null===(r=e.values)||void 0===r?void 0:r[n])&&void 0!==i?i:0,s=OL(o.toString());return{id:t,value:parseFloat(s.toString()),unit:e.data_unit}}))||[]}(e.chartData),r=u(tJ).isDarkMode;return t.createElement(vO,{data:n,margin:{top:40,right:80,bottom:80,left:80},padAngle:.7,cornerRadius:3,activeOuterRadiusOffset:8,colors:{scheme:'nivo'},borderWidth:1,borderColor:{from:'color',modifiers:[['darker',.2]]},arcLinkLabelsSkipAngle:10,arcLinkLabelsTextColor:'#333333',arcLinkLabelsThickness:2,arcLinkLabelsColor:{from:'color'},arcLabelsSkipAngle:10,arcLabelsTextColor:{from:'color',modifiers:[['darker',2]]},tooltip:function(e){var n=e.datum,i=n.color,o=n.data,s=n.value,a=n.label;return t.createElement(BO,{isDarkMode:r,color:i,label:a,unit:o.unit,value:s})},arcLabel:function(e){return''.concat(e.value,' ').concat(e.data.unit)},defs:[{id:'dots',type:'patternDots',background:'inherit',color:'rgba(255, 255, 255, 0.3)',size:4,padding:1,stagger:!0},{id:'lines',type:'patternLines',background:'inherit',color:'rgba(255, 255, 255, 0.3)',rotation:-45,lineWidth:6,spacing:10}],legends:[{anchor:'right',direction:'column',justify:!1,translateX:24,translateY:0,itemsSpacing:12,itemWidth:100,itemHeight:18,itemTextColor:'#999',itemDirection:'left-to-right',itemOpacity:1,symbolSize:18,symbolShape:'circle',effects:[{on:'hover',style:{itemTextColor:'#000'}}]}],theme:r?LL:QL})};const CO=Math.pow(2,-52),_O=new Uint32Array(512);class jO{static from(e,t=OO,n=IO){const r=e.length,i=new Float64Array(2*r);for(let o=0;o<r;o++){const r=e[o];i[2*o]=t(r),i[2*o+1]=n(r)}return new jO(i)}constructor(e){const t=e.length>>1;if(t>0&&'number'!=typeof e[0])throw new Error('Expected coords to contain numbers.');this.coords=e;const n=Math.max(2*t-5,0);this._triangles=new Uint32Array(3*n),this._halfedges=new Int32Array(3*n),this._hashSize=Math.ceil(Math.sqrt(t)),this._hullPrev=new Uint32Array(t),this._hullNext=new Uint32Array(t),this._hullTri=new Uint32Array(t),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(t),this._dists=new Float64Array(t),this.update()}update(){const{coords:e,_hullPrev:t,_hullNext:n,_hullTri:r,_hullHash:i}=this,o=e.length>>1;let s=1/0,a=1/0,A=-1/0,l=-1/0;for(let t=0;t<o;t++){const n=e[2*t],r=e[2*t+1];n<s&&(s=n),r<a&&(a=r),n>A&&(A=n),r>l&&(l=r),this._ids[t]=t}const c=(s+A)/2,u=(a+l)/2;let d,f,h,p=1/0;for(let t=0;t<o;t++){const n=FO(c,u,e[2*t],e[2*t+1]);n<p&&(d=t,p=n)}const g=e[2*d],m=e[2*d+1];p=1/0;for(let t=0;t<o;t++){if(t===d)continue;const n=FO(g,m,e[2*t],e[2*t+1]);n<p&&n>0&&(f=t,p=n)}let v=e[2*f],b=e[2*f+1],y=1/0;for(let t=0;t<o;t++){if(t===d||t===f)continue;const n=UO(g,m,v,b,e[2*t],e[2*t+1]);n<y&&(h=t,y=n)}let w=e[2*h],B=e[2*h+1];if(y===1/0){for(let t=0;t<o;t++)this._dists[t]=e[2*t]-e[0]||e[2*t+1]-e[1];QO(this._ids,this._dists,0,o-1);const t=new Uint32Array(o);let n=0;for(let e=0,r=-1/0;e<o;e++){const i=this._ids[e];this._dists[i]>r&&(t[n++]=i,r=this._dists[i])}return this.hull=t.subarray(0,n),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(SO(g,m,v,b,w,B)){const e=f,t=v,n=b;f=h,v=w,b=B,h=e,w=t,B=n}const x=function(e,t,n,r,i,o){const s=n-e,a=r-t,A=i-e,l=o-t,c=s*s+a*a,u=A*A+l*l,d=.5/(s*l-a*A),f=e+(l*c-a*u)*d,h=t+(s*u-A*c)*d;return{x:f,y:h}}(g,m,v,b,w,B);this._cx=x.x,this._cy=x.y;for(let t=0;t<o;t++)this._dists[t]=FO(e[2*t],e[2*t+1],x.x,x.y);QO(this._ids,this._dists,0,o-1),this._hullStart=d;let C=3;n[d]=t[h]=f,n[f]=t[d]=h,n[h]=t[f]=d,r[d]=0,r[f]=1,r[h]=2,i.fill(-1),i[this._hashKey(g,m)]=d,i[this._hashKey(v,b)]=f,i[this._hashKey(w,B)]=h,this.trianglesLen=0,this._addTriangle(d,f,h,-1,-1,-1);for(let o,s,a=0;a<this._ids.length;a++){const A=this._ids[a],l=e[2*A],c=e[2*A+1];if(a>0&&Math.abs(l-o)<=CO&&Math.abs(c-s)<=CO)continue;if(o=l,s=c,A===d||A===f||A===h)continue;let u=0;for(let e=0,t=this._hashKey(l,c);e<this._hashSize&&(u=i[(t+e)%this._hashSize],-1===u||u===n[u]);e++);u=t[u];let p,g=u;for(;p=n[g],!SO(l,c,e[2*g],e[2*g+1],e[2*p],e[2*p+1]);)if(g=p,g===u){g=-1;break}if(-1===g)continue;let m=this._addTriangle(g,A,n[g],-1,-1,r[g]);r[A]=this._legalize(m+2),r[g]=m,C++;let v=n[g];for(;p=n[v],SO(l,c,e[2*v],e[2*v+1],e[2*p],e[2*p+1]);)m=this._addTriangle(v,A,p,r[A],-1,r[v]),r[A]=this._legalize(m+2),n[v]=v,C--,v=p;if(g===u)for(;p=t[g],SO(l,c,e[2*p],e[2*p+1],e[2*g],e[2*g+1]);)m=this._addTriangle(p,A,g,-1,r[g],r[p]),this._legalize(m+2),r[p]=m,n[g]=g,C--,g=p;this._hullStart=t[A]=g,n[g]=t[v]=A,n[A]=v,i[this._hashKey(l,c)]=A,i[this._hashKey(e[2*g],e[2*g+1])]=g}this.hull=new Uint32Array(C);for(let e=0,t=this._hullStart;e<C;e++)this.hull[e]=t,t=n[t];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(e,t){return Math.floor(function(e,t){const n=e/(Math.abs(e)+Math.abs(t));return(t>0?3-n:1+n)/4}(e-this._cx,t-this._cy)*this._hashSize)%this._hashSize}_legalize(e){const{_triangles:t,_halfedges:n,coords:r}=this;let i=0,o=0;for(;;){const s=n[e],a=e-e%3;if(o=a+(e+2)%3,-1===s){if(0===i)break;e=_O[--i];continue}const A=s-s%3,l=a+(e+1)%3,c=A+(s+2)%3,u=t[o],d=t[e],f=t[l],h=t[c];if(kO(r[2*u],r[2*u+1],r[2*d],r[2*d+1],r[2*f],r[2*f+1],r[2*h],r[2*h+1])){t[e]=h,t[s]=u;const r=n[c];if(-1===r){let t=this._hullStart;do{if(this._hullTri[t]===c){this._hullTri[t]=e;break}t=this._hullPrev[t]}while(t!==this._hullStart)}this._link(e,r),this._link(s,n[o]),this._link(o,c);const a=A+(s+1)%3;i<_O.length&&(_O[i++]=a)}else{if(0===i)break;e=_O[--i]}}return o}_link(e,t){this._halfedges[e]=t,-1!==t&&(this._halfedges[t]=e)}_addTriangle(e,t,n,r,i,o){const s=this.trianglesLen;return this._triangles[s]=e,this._triangles[s+1]=t,this._triangles[s+2]=n,this._link(s,r),this._link(s+1,i),this._link(s+2,o),this.trianglesLen+=3,s}}function FO(e,t,n,r){const i=e-n,o=t-r;return i*i+o*o}function EO(e,t,n,r,i,o){const s=(r-t)*(i-e),a=(n-e)*(o-t);return Math.abs(s-a)>=33306690738754716e-32*Math.abs(s+a)?s-a:0}function SO(e,t,n,r,i,o){return(EO(i,o,e,t,n,r)||EO(e,t,n,r,i,o)||EO(n,r,i,o,e,t))<0}function kO(e,t,n,r,i,o,s,a){const A=e-s,l=t-a,c=n-s,u=r-a,d=i-s,f=o-a,h=c*c+u*u,p=d*d+f*f;return A*(u*p-h*f)-l*(c*p-h*d)+(A*A+l*l)*(c*f-u*d)<0}function UO(e,t,n,r,i,o){const s=n-e,a=r-t,A=i-e,l=o-t,c=s*s+a*a,u=A*A+l*l,d=.5/(s*l-a*A),f=(l*c-a*u)*d,h=(s*u-A*c)*d;return f*f+h*h}function QO(e,t,n,r){if(r-n<=20)for(let i=n+1;i<=r;i++){const r=e[i],o=t[r];let s=i-1;for(;s>=n&&t[e[s]]>o;)e[s+1]=e[s--];e[s+1]=r}else{let i=n+1,o=r;LO(e,n+r>>1,i),t[e[n]]>t[e[r]]&&LO(e,n,r),t[e[i]]>t[e[r]]&&LO(e,i,r),t[e[n]]>t[e[i]]&&LO(e,n,i);const s=e[i],a=t[s];for(;;){do{i++}while(t[e[i]]<a);do{o--}while(t[e[o]]>a);if(o<i)break;LO(e,i,o)}e[n+1]=e[o],e[o]=s,r-i+1>=o-n?(QO(e,t,i,r),QO(e,t,n,o-1)):(QO(e,t,n,o-1),QO(e,t,i,r))}}function LO(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function OO(e){return e[0]}function IO(e){return e[1]}const NO=1e-6;class TO{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=''}moveTo(e,t){this._+=`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+='Z')}lineTo(e,t){this._+=`L${this._x1=+e},${this._y1=+t}`}arc(e,t,n){const r=(e=+e)+(n=+n),i=t=+t;if(n<0)throw new Error('negative radius');null===this._x1?this._+=`M${r},${i}`:(Math.abs(this._x1-r)>NO||Math.abs(this._y1-i)>NO)&&(this._+='L'+r+','+i),n&&(this._+=`A${n},${n},0,1,1,${e-n},${t}A${n},${n},0,1,1,${this._x1=r},${this._y1=i}`)}rect(e,t,n,r){this._+=`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${+n}v${+r}h${-n}Z`}value(){return this._||null}}class MO{constructor(){this._=[]}moveTo(e,t){this._.push([e,t])}closePath(){this._.push(this._[0].slice())}lineTo(e,t){this._.push([e,t])}value(){return this._.length?this._:null}}class DO{constructor(e,[t,n,r,i]=[0,0,960,500]){if(!((r=+r)>=(t=+t)&&(i=+i)>=(n=+n)))throw new Error('invalid bounds');this.delaunay=e,this._circumcenters=new Float64Array(2*e.points.length),this.vectors=new Float64Array(2*e.points.length),this.xmax=r,this.xmin=t,this.ymax=i,this.ymin=n,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:e,hull:t,triangles:n},vectors:r}=this,i=this.circumcenters=this._circumcenters.subarray(0,n.length/3*2);for(let t,r,o=0,s=0,a=n.length;o<a;o+=3,s+=2){const a=2*n[o],A=2*n[o+1],l=2*n[o+2],c=e[a],u=e[a+1],d=e[A],f=e[A+1],h=e[l],p=e[l+1],g=d-c,m=f-u,v=h-c,b=p-u,y=g*g+m*m,w=v*v+b*b,B=2*(g*b-m*v);if(B)if(Math.abs(B)<1e-8)t=(c+h)/2,r=(u+p)/2;else{const e=1/B;t=c+(b*y-m*w)*e,r=u+(g*w-v*y)*e}else t=(c+h)/2-1e8*b,r=(u+p)/2+1e8*v;i[s]=t,i[s+1]=r}let o,s,a,A=t[t.length-1],l=4*A,c=e[2*A],u=e[2*A+1];r.fill(0);for(let n=0;n<t.length;++n)A=t[n],o=l,s=c,a=u,l=4*A,c=e[2*A],u=e[2*A+1],r[o+2]=r[l]=a-u,r[o+3]=r[l+1]=c-s}render(e){const t=null==e?e=new TO:void 0,{delaunay:{halfedges:n,inedges:r,hull:i},circumcenters:o,vectors:s}=this;if(i.length<=1)return null;for(let t=0,r=n.length;t<r;++t){const r=n[t];if(r<t)continue;const i=2*Math.floor(t/3),s=2*Math.floor(r/3),a=o[i],A=o[i+1],l=o[s],c=o[s+1];this._renderSegment(a,A,l,c,e)}let a,A=i[i.length-1];for(let t=0;t<i.length;++t){a=A,A=i[t];const n=2*Math.floor(r[A]/3),l=o[n],c=o[n+1],u=4*a,d=this._project(l,c,s[u+2],s[u+3]);d&&this._renderSegment(l,c,d[0],d[1],e)}return t&&t.value()}renderBounds(e){const t=null==e?e=new TO:void 0;return e.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),t&&t.value()}renderCell(e,t){const n=null==t?t=new TO:void 0,r=this._clip(e);if(null===r||!r.length)return;t.moveTo(r[0],r[1]);let i=r.length;for(;r[0]===r[i-2]&&r[1]===r[i-1]&&i>1;)i-=2;for(let e=2;e<i;e+=2)r[e]===r[e-2]&&r[e+1]===r[e-1]||t.lineTo(r[e],r[e+1]);return t.closePath(),n&&n.value()}*cellPolygons(){const{delaunay:{points:e}}=this;for(let t=0,n=e.length/2;t<n;++t){const e=this.cellPolygon(t);e&&(e.index=t,yield e)}}cellPolygon(e){const t=new MO;return this.renderCell(e,t),t.value()}_renderSegment(e,t,n,r,i){let o;const s=this._regioncode(e,t),a=this._regioncode(n,r);0===s&&0===a?(i.moveTo(e,t),i.lineTo(n,r)):(o=this._clipSegment(e,t,n,r,s,a))&&(i.moveTo(o[0],o[1]),i.lineTo(o[2],o[3]))}contains(e,t,n){return(t=+t)==t&&(n=+n)==n&&this.delaunay._step(e,t,n)===e}*neighbors(e){const t=this._clip(e);if(t)for(const n of this.delaunay.neighbors(e)){const e=this._clip(n);if(e)e:for(let r=0,i=t.length;r<i;r+=2)for(let o=0,s=e.length;o<s;o+=2)if(t[r]==e[o]&&t[r+1]==e[o+1]&&t[(r+2)%i]==e[(o+s-2)%s]&&t[(r+3)%i]==e[(o+s-1)%s]){yield n;break e}}}_cell(e){const{circumcenters:t,delaunay:{inedges:n,halfedges:r,triangles:i}}=this,o=n[e];if(-1===o)return null;const s=[];let a=o;do{const n=Math.floor(a/3);if(s.push(t[2*n],t[2*n+1]),a=a%3==2?a-2:a+1,i[a]!==e)break;a=r[a]}while(a!==o&&-1!==a);return s}_clip(e){if(0===e&&1===this.delaunay.hull.length)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const t=this._cell(e);if(null===t)return null;const{vectors:n}=this,r=4*e;return n[r]||n[r+1]?this._clipInfinite(e,t,n[r],n[r+1],n[r+2],n[r+3]):this._clipFinite(e,t)}_clipFinite(e,t){const n=t.length;let r,i,o,s,a,A=null,l=t[n-2],c=t[n-1],u=this._regioncode(l,c);for(let d=0;d<n;d+=2)if(r=l,i=c,l=t[d],c=t[d+1],o=u,u=this._regioncode(l,c),0===o&&0===u)s=a,a=0,A?A.push(l,c):A=[l,c];else{let t,n,d,f,h;if(0===o){if(null===(t=this._clipSegment(r,i,l,c,o,u)))continue;[n,d,f,h]=t}else{if(null===(t=this._clipSegment(l,c,r,i,u,o)))continue;[f,h,n,d]=t,s=a,a=this._edgecode(n,d),s&&a&&this._edge(e,s,a,A,A.length),A?A.push(n,d):A=[n,d]}s=a,a=this._edgecode(f,h),s&&a&&this._edge(e,s,a,A,A.length),A?A.push(f,h):A=[f,h]}if(A)s=a,a=this._edgecode(A[0],A[1]),s&&a&&this._edge(e,s,a,A,A.length);else if(this.contains(e,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return A}_clipSegment(e,t,n,r,i,o){for(;;){if(0===i&&0===o)return[e,t,n,r];if(i&o)return null;let s,a,A=i||o;8&A?(s=e+(n-e)*(this.ymax-t)/(r-t),a=this.ymax):4&A?(s=e+(n-e)*(this.ymin-t)/(r-t),a=this.ymin):2&A?(a=t+(r-t)*(this.xmax-e)/(n-e),s=this.xmax):(a=t+(r-t)*(this.xmin-e)/(n-e),s=this.xmin),i?(e=s,t=a,i=this._regioncode(e,t)):(n=s,r=a,o=this._regioncode(n,r))}}_clipInfinite(e,t,n,r,i,o){let s,a=Array.from(t);if((s=this._project(a[0],a[1],n,r))&&a.unshift(s[0],s[1]),(s=this._project(a[a.length-2],a[a.length-1],i,o))&&a.push(s[0],s[1]),a=this._clipFinite(e,a))for(let t,n=0,r=a.length,i=this._edgecode(a[r-2],a[r-1]);n<r;n+=2)t=i,i=this._edgecode(a[n],a[n+1]),t&&i&&(n=this._edge(e,t,i,a,n),r=a.length);else this.contains(e,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(a=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return a}_edge(e,t,n,r,i){for(;t!==n;){let n,o;switch(t){case 5:t=4;continue;case 4:t=6,n=this.xmax,o=this.ymin;break;case 6:t=2;continue;case 2:t=10,n=this.xmax,o=this.ymax;break;case 10:t=8;continue;case 8:t=9,n=this.xmin,o=this.ymax;break;case 9:t=1;continue;case 1:t=5,n=this.xmin,o=this.ymin}r[i]===n&&r[i+1]===o||!this.contains(e,n,o)||(r.splice(i,0,n,o),i+=2)}if(r.length>4)for(let e=0;e<r.length;e+=2){const t=(e+2)%r.length,n=(e+4)%r.length;(r[e]===r[t]&&r[t]===r[n]||r[e+1]===r[t+1]&&r[t+1]===r[n+1])&&(r.splice(t,2),e-=2)}return i}_project(e,t,n,r){let i,o,s,a=1/0;if(r<0){if(t<=this.ymin)return null;(i=(this.ymin-t)/r)<a&&(s=this.ymin,o=e+(a=i)*n)}else if(r>0){if(t>=this.ymax)return null;(i=(this.ymax-t)/r)<a&&(s=this.ymax,o=e+(a=i)*n)}if(n>0){if(e>=this.xmax)return null;(i=(this.xmax-e)/n)<a&&(o=this.xmax,s=t+(a=i)*r)}else if(n<0){if(e<=this.xmin)return null;(i=(this.xmin-e)/n)<a&&(o=this.xmin,s=t+(a=i)*r)}return[o,s]}_edgecode(e,t){return(e===this.xmin?1:e===this.xmax?2:0)|(t===this.ymin?4:t===this.ymax?8:0)}_regioncode(e,t){return(e<this.xmin?1:e>this.xmax?2:0)|(t<this.ymin?4:t>this.ymax?8:0)}}const PO=2*Math.PI,RO=Math.pow;function HO(e){return e[0]}function zO(e){return e[1]}function VO(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}class KO{static from(e,t=HO,n=zO,r){return new KO('length'in e?function(e,t,n,r){const i=e.length,o=new Float64Array(2*i);for(let s=0;s<i;++s){const i=e[s];o[2*s]=t.call(r,i,s,e),o[2*s+1]=n.call(r,i,s,e)}return o}(e,t,n,r):Float64Array.from(function*(e,t,n,r){let i=0;for(const o of e)yield t.call(r,o,i,e),yield n.call(r,o,i,e),++i}(e,t,n,r)))}constructor(e){this._delaunator=new jO(e),this.inedges=new Int32Array(e.length/2),this._hullIndex=new Int32Array(e.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const e=this._delaunator,t=this.points;if(e.hull&&e.hull.length>2&&function(e){const{triangles:t,coords:n}=e;for(let e=0;e<t.length;e+=3){const r=2*t[e],i=2*t[e+1],o=2*t[e+2];if((n[o]-n[r])*(n[i+1]-n[r+1])-(n[i]-n[r])*(n[o+1]-n[r+1])>1e-10)return!1}return!0}(e)){this.collinear=Int32Array.from({length:t.length/2},(e,t)=>t).sort((e,n)=>t[2*e]-t[2*n]||t[2*e+1]-t[2*n+1]);const e=this.collinear[0],n=this.collinear[this.collinear.length-1],r=[t[2*e],t[2*e+1],t[2*n],t[2*n+1]],i=1e-8*Math.hypot(r[3]-r[1],r[2]-r[0]);for(let e=0,n=t.length/2;e<n;++e){const n=VO(t[2*e],t[2*e+1],i);t[2*e]=n[0],t[2*e+1]=n[1]}this._delaunator=new jO(t)}else delete this.collinear;const n=this.halfedges=this._delaunator.halfedges,r=this.hull=this._delaunator.hull,i=this.triangles=this._delaunator.triangles,o=this.inedges.fill(-1),s=this._hullIndex.fill(-1);for(let e=0,t=n.length;e<t;++e){const t=i[e%3==2?e-2:e+1];-1!==n[e]&&-1!==o[t]||(o[t]=e)}for(let e=0,t=r.length;e<t;++e)s[r[e]]=e;r.length<=2&&r.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=r[0],this.triangles[1]=r[1],this.triangles[2]=r[1],o[r[0]]=1,2===r.length&&(o[r[1]]=0))}voronoi(e){return new DO(this,e)}*neighbors(e){const{inedges:t,hull:n,_hullIndex:r,halfedges:i,triangles:o,collinear:s}=this;if(s){const t=s.indexOf(e);return t>0&&(yield s[t-1]),void(t<s.length-1&&(yield s[t+1]))}const a=t[e];if(-1===a)return;let A=a,l=-1;do{if(yield l=o[A],A=A%3==2?A-2:A+1,o[A]!==e)return;if(A=i[A],-1===A){const t=n[(r[e]+1)%n.length];return void(t!==l&&(yield t))}}while(A!==a)}find(e,t,n=0){if((e=+e)!=e||(t=+t)!=t)return-1;const r=n;let i;for(;(i=this._step(n,e,t))>=0&&i!==n&&i!==r;)n=i;return i}_step(e,t,n){const{inedges:r,hull:i,_hullIndex:o,halfedges:s,triangles:a,points:A}=this;if(-1===r[e]||!A.length)return(e+1)%(A.length>>1);let l=e,c=RO(t-A[2*e],2)+RO(n-A[2*e+1],2);const u=r[e];let d=u;do{let r=a[d];const u=RO(t-A[2*r],2)+RO(n-A[2*r+1],2);if(u<c&&(c=u,l=r),d=d%3==2?d-2:d+1,a[d]!==e)break;if(d=s[d],-1===d){if(d=i[(o[e]+1)%i.length],d!==r&&RO(t-A[2*d],2)+RO(n-A[2*d+1],2)<c)return d;break}}while(d!==u);return l}render(e){const t=null==e?e=new TO:void 0,{points:n,halfedges:r,triangles:i}=this;for(let t=0,o=r.length;t<o;++t){const o=r[t];if(o<t)continue;const s=2*i[t],a=2*i[o];e.moveTo(n[s],n[s+1]),e.lineTo(n[a],n[a+1])}return this.renderHull(e),t&&t.value()}renderPoints(e,t=2){const n=null==e?e=new TO:void 0,{points:r}=this;for(let n=0,i=r.length;n<i;n+=2){const i=r[n],o=r[n+1];e.moveTo(i+t,o),e.arc(i,o,t,0,PO)}return n&&n.value()}renderHull(e){const t=null==e?e=new TO:void 0,{hull:n,points:r}=this,i=2*n[0],o=n.length;e.moveTo(r[i],r[i+1]);for(let t=1;t<o;++t){const i=2*n[t];e.lineTo(r[i],r[i+1])}return e.closePath(),t&&t.value()}hullPolygon(){const e=new MO;return this.renderHull(e),e.value()}renderTriangle(e,t){const n=null==t?t=new TO:void 0,{points:r,triangles:i}=this,o=2*i[e*=3],s=2*i[e+1],a=2*i[e+2];return t.moveTo(r[o],r[o+1]),t.lineTo(r[s],r[s+1]),t.lineTo(r[a],r[a+1]),t.closePath(),n&&n.value()}*trianglePolygons(){const{triangles:e}=this;for(let t=0,n=e.length/3;t<n;++t)yield this.trianglePolygon(t)}trianglePolygon(e){const t=new MO;return this.renderTriangle(e,t),t.value()}}var qO=function(e){return'function'==typeof e?e:function(t){return t[e]}},GO=function(e){var t=e.points,n=e.x,r=e.y,i=e.width,o=e.height,s=e.debug,a=d(function(){return function(e){var t=e.points,n=e.x,r=void 0===n?'x':n,i=e.y,o=void 0===i?'y':i,s=qO(r),a=qO(o);return t.map(function(e){return[s(e),a(e)]})}({points:t,x:n,y:r})},[t,n,r]);return d(function(){return function(e){var t=e.points,n=e.width,r=e.height,i=e.debug,o=KO.from(t),s=i?o.voronoi([0,0,n,r]):void 0;return{delaunay:o,voronoi:s}}({points:a,width:i,height:o,debug:s})},[a,i,o,s])},WO=function(e){var t=e.nodes,r=e.width,i=e.height,a=e.x,A=e.y,l=e.onMouseEnter,c=e.onMouseMove,u=e.onMouseLeave,f=e.onClick,h=e.debug,p=o(null),g=n(null),m=g[0],v=g[1],b=GO({points:t,x:a,y:A,width:r,height:i,debug:h}),y=b.delaunay,C=b.voronoi,_=d(function(){if(h&&C)return C.render()},[h,C]),j=s(function(e){if(!p.current)return[null,null];var n=qC(p.current,e),r=n[0],i=n[1],o=y.find(r,i);return[o,void 0!==o?t[o]:null]},[p,y]),F=s(function(e){var t=j(e),n=t[0],r=t[1];v(n),r&&(null==l||l(r,e))},[j,v,l]),E=s(function(e){var t=j(e),n=t[0],r=t[1];v(n),r&&(null==c||c(r,e))},[j,v,c]),S=s(function(e){if(v(null),u){var n=void 0;null!==m&&(n=t[m]),n&&u(n,e)}},[v,m,u,t]),k=s(function(e){var t=j(e),n=t[0],r=t[1];v(n),r&&(null==f||f(r,e))},[j,v,f]);return B('g',{ref:p,children:[h&&C&&B(x,{children:[w('path',{d:_,stroke:'red',strokeWidth:1,opacity:.75}),null!==m&&w('path',{fill:'pink',opacity:.35,d:C.renderCell(m)})]}),w('rect',{width:r,height:i,fill:'red',opacity:0,style:{cursor:'auto'},onMouseEnter:F,onMouseMove:E,onMouseLeave:S,onClick:k})]})};function YO(){return YO=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},YO.apply(this,arguments)}var XO=function(e){var t=e.point;return w(Ca,{id:B('span',{children:['x: ',w('strong',{children:t.data.xFormatted}),', y:',' ',w('strong',{children:t.data.yFormatted})]}),enableChip:!0,color:t.serieColor})};XO.propTypes={point:Qr.object.isRequired};var JO=f(XO),ZO=function(e){var t=e.slice,n=e.axis,r=dC(),i='x'===n?'y':'x';return w(ja,{rows:t.points.map(function(e){return[w(xa,{color:e.serieColor,style:r.tooltip.chip},'chip'),e.serieId,w('span',{style:r.tooltip.tableCellValue,children:e.data[i+'Formatted']},'value')]})})};ZO.propTypes={slice:Qr.object.isRequired,axis:Qr.oneOf(['x','y']).isRequired};var $O=f(ZO),eI={data:Qr.arrayOf(Qr.shape({id:Qr.oneOfType([Qr.string,Qr.number]).isRequired,data:Qr.arrayOf(Qr.shape({x:Qr.oneOfType([Qr.number,Qr.string,Qr.instanceOf(Date)]),y:Qr.oneOfType([Qr.number,Qr.string,Qr.instanceOf(Date)])})).isRequired})).isRequired,xScale:Qr.object.isRequired,xFormat:Qr.oneOfType([Qr.func,Qr.string]),yScale:Qr.object.isRequired,yFormat:Qr.oneOfType([Qr.func,Qr.string]),layers:Qr.arrayOf(Qr.oneOfType([Qr.oneOf(['grid','markers','axes','areas','crosshair','lines','slices','points','mesh','legends']),Qr.func])).isRequired,curve:Xx.isRequired,axisTop:RF,axisRight:RF,axisBottom:RF,axisLeft:RF,enableGridX:Qr.bool.isRequired,enableGridY:Qr.bool.isRequired,gridXValues:Qr.oneOfType([Qr.number,Qr.arrayOf(Qr.oneOfType([Qr.number,Qr.string,Qr.instanceOf(Date)]))]),gridYValues:Qr.oneOfType([Qr.number,Qr.arrayOf(Qr.oneOfType([Qr.number,Qr.string,Qr.instanceOf(Date)]))]),enablePoints:Qr.bool.isRequired,pointSymbol:Qr.func,pointSize:Qr.number.isRequired,pointColor:Qr.any.isRequired,pointBorderWidth:Qr.number.isRequired,pointBorderColor:Qr.any.isRequired,enablePointLabel:Qr.bool.isRequired,pointLabel:Qr.oneOfType([Qr.string,Qr.func]).isRequired,markers:Qr.arrayOf(Qr.shape({axis:Qr.oneOf(['x','y']).isRequired,value:Qr.oneOfType([Qr.number,Qr.string,Qr.instanceOf(Date)]).isRequired,style:Qr.object})),colors:OQ.isRequired,enableArea:Qr.bool.isRequired,areaOpacity:Qr.number.isRequired,areaBlendMode:rC.isRequired,areaBaselineValue:Qr.oneOfType([Qr.number,Qr.string,Qr.instanceOf(Date)]).isRequired,lineWidth:Qr.number.isRequired,legends:Qr.arrayOf(Qr.shape(WQ)).isRequired,isInteractive:Qr.bool.isRequired,debugMesh:Qr.bool.isRequired,tooltip:Qr.oneOfType([Qr.func,Qr.object]).isRequired,enableSlices:Qr.oneOf(['x','y',!1]).isRequired,debugSlices:Qr.bool.isRequired,sliceTooltip:Qr.oneOfType([Qr.func,Qr.object]).isRequired,enableCrosshair:Qr.bool.isRequired,crosshairType:Qr.string.isRequired},tI=YO({},eI,{enablePointLabel:Qr.bool.isRequired,role:Qr.string.isRequired,useMesh:Qr.bool.isRequired},Hx,Zx),nI=YO({pixelRatio:Qr.number.isRequired},eI),rI={curve:'linear',xScale:{type:'point'},yScale:{type:'linear',min:0,max:'auto'},layers:['grid','markers','axes','areas','crosshair','lines','points','slices','mesh','legends'],axisBottom:{},axisLeft:{},enableGridX:!0,enableGridY:!0,enablePoints:!0,pointSize:6,pointColor:{from:'color'},pointBorderWidth:0,pointBorderColor:{theme:'background'},enablePointLabel:!1,pointLabel:'yFormatted',colors:{scheme:'nivo'},enableArea:!1,areaBaselineValue:0,areaOpacity:.2,areaBlendMode:'normal',lineWidth:2,legends:[],isInteractive:!0,tooltip:JO,enableSlices:!1,debugSlices:!1,sliceTooltip:$O,debugMesh:!1,enableCrosshair:!0,crosshairType:'bottom-left'},iI=YO({},rI,{enablePointLabel:!1,useMesh:!1,animate:!0,motionConfig:'gentle',defs:[],fill:[],role:'img'}),oI=YO({},rI,{pixelRatio:'undefined'!=typeof window&&window.devicePixelRatio||1}),sI=function(e){var t=e.curve;return d(function(){return vy().defined(function(e){return null!==e.x&&null!==e.y}).x(function(e){return e.x}).y(function(e){return e.y}).curve(Jx(t))},[t])},aI=function(e){var t=e.curve,n=e.yScale,r=e.areaBaselineValue;return d(function(){return function(){var e=gy,t=null,n=Wb(0),r=my,i=Wb(!0),o=null,s=py,a=null;function A(A){var l,c,u,d,f,h=A.length,p=!1,g=new Array(h),m=new Array(h);for(null==o&&(a=s(f=Gb())),l=0;l<=h;++l){if(!(l<h&&i(d=A[l],l,A))===p)if(p=!p)c=l,a.areaStart(),a.lineStart();else{for(a.lineEnd(),a.lineStart(),u=l-1;u>=c;--u)a.point(g[u],m[u]);a.lineEnd(),a.areaEnd()}p&&(g[l]=+e(d,l,A),m[l]=+n(d,l,A),a.point(t?+t(d,l,A):g[l],r?+r(d,l,A):m[l]))}if(f)return a=null,f+''||null}function l(){return vy().defined(i).curve(s).context(o)}return A.x=function(n){return arguments.length?(e='function'==typeof n?n:Wb(+n),t=null,A):e},A.x0=function(t){return arguments.length?(e='function'==typeof t?t:Wb(+t),A):e},A.x1=function(e){return arguments.length?(t=null==e?null:'function'==typeof e?e:Wb(+e),A):t},A.y=function(e){return arguments.length?(n='function'==typeof e?e:Wb(+e),r=null,A):n},A.y0=function(e){return arguments.length?(n='function'==typeof e?e:Wb(+e),A):n},A.y1=function(e){return arguments.length?(r=null==e?null:'function'==typeof e?e:Wb(+e),A):r},A.lineX0=A.lineY0=function(){return l().x(e).y(n)},A.lineY1=function(){return l().x(e).y(r)},A.lineX1=function(){return l().x(t).y(n)},A.defined=function(e){return arguments.length?(i='function'==typeof e?e:Wb(!!e),A):i},A.curve=function(e){return arguments.length?(s=e,null!=o&&(a=s(o)),A):s},A.context=function(e){return arguments.length?(null==e?o=a=null:a=s(o=e),A):o},A}().defined(function(e){return null!==e.x&&null!==e.y}).x(function(e){return e.x}).y1(function(e){return e.y}).curve(Jx(t)).y0(n(r))},[t,n,r])},AI=function(e){var t=e.data,r=e.xScale,i=void 0===r?iI.xScale:r,o=e.xFormat,a=e.yScale,A=void 0===a?iI.yScale:a,l=e.yFormat,c=e.width,u=e.height,f=e.colors,h=void 0===f?iI.colors:f,p=e.curve,g=void 0===p?iI.curve:p,m=e.areaBaselineValue,v=void 0===m?iI.areaBaselineValue:m,b=e.pointColor,y=void 0===b?iI.pointColor:b,w=e.pointBorderColor,B=void 0===w?iI.pointBorderColor:w,x=e.enableSlices,C=void 0===x?iI.enableSlicesTooltip:x,_=AC(o),j=AC(l),F=NQ(h,'id'),E=dC(),S=LQ(y,E),k=LQ(B,E),U=n([]),Q=U[0],L=U[1],O=d(function(){return function(e,t,n,r,i){var o=e.map(function(e){return function(e){return uF({},e,{data:e.data.map(function(e){return{data:uF({},e)}})})}(e)}),s=CF(o,t,n);'stacked'in t&&!0===t.stacked&&FF(s,o),'stacked'in n&&!0===n.stacked&&EF(s,o);var a=BF(t,s.x,r,'x'),A=BF(n,s.y,i,'y'),l=o.map(function(e){return uF({},e,{data:e.data.map(function(e){return uF({},e,{position:{x:xF(e,'x',a),y:xF(e,'y',A)}})})})});return uF({},s,{series:l,xScale:a,yScale:A})}(t.filter(function(e){return-1===Q.indexOf(e.id)}),i,A,c,u)},[t,Q,i,A,c,u]),I=O.xScale,N=O.yScale,T=O.series,M=d(function(){var e=t.map(function(e){return{id:e.id,label:e.id,color:F(e)}}),n=e.map(function(e){return YO({},T.find(function(t){return t.id===e.id}),{color:e.color})}).filter(function(e){return Boolean(e.id)});return{legendData:e.map(function(e){return YO({},e,{hidden:!n.find(function(t){return t.id===e.id})})}).reverse(),series:n}},[t,T,F]),D=M.legendData,P=M.series,R=s(function(e){L(function(t){return t.indexOf(e)>-1?t.filter(function(t){return t!==e}):[].concat(t,[e])})},[]),H=function(e){var t=e.series,n=e.getPointColor,r=e.getPointBorderColor,i=e.formatX,o=e.formatY;return d(function(){return t.reduce(function(e,t){return[].concat(e,t.data.filter(function(e){return null!==e.position.x&&null!==e.position.y}).map(function(s,a){var A={id:t.id+'.'+a,index:e.length+a,serieId:t.id,serieColor:t.color,x:s.position.x,y:s.position.y};return A.color=n(t),A.borderColor=r(A),A.data=YO({},s.data,{xFormatted:i(s.data.x),yFormatted:o(s.data.y)}),A}))},[])},[t,n,r,i,o])}({series:P,getPointColor:S,getPointBorderColor:k,formatX:_,formatY:j}),z=function(e){var t=e.enableSlices,n=e.points,r=e.width,i=e.height;return d(function(){if(!1===t)return[];if('x'===t){var e=new Map;return n.forEach(function(t){null!==t.data.x&&null!==t.data.y&&(e.has(t.x)?e.get(t.x).push(t):e.set(t.x,[t]))}),Array.from(e.entries()).sort(function(e,t){return e[0]-t[0]}).map(function(e,t,n){var o,s=e[0],a=e[1],A=n[t-1],l=n[t+1];return{id:s,x0:o=A?s-(s-A[0])/2:s,x:s,y0:0,y:0,width:l?s-o+(l[0]-s)/2:r-o,height:i,points:a.reverse()}})}if('y'===t){var o=new Map;return n.forEach(function(e){null!==e.data.x&&null!==e.data.y&&(o.has(e.y)?o.get(e.y).push(e):o.set(e.y,[e]))}),Array.from(o.entries()).sort(function(e,t){return e[0]-t[0]}).map(function(e,t,n){var o,s,a=e[0],A=e[1],l=n[t-1],c=n[t+1];return o=l?a-(a-l[0])/2:a,s=c?a-o+(c[0]-a)/2:i-o,{id:a,x0:0,x:0,y0:o,y:a,width:r,height:s,points:A.reverse()}})}},[t,n])}({enableSlices:C,points:H,width:c,height:u});return{legendData:D,toggleSerie:R,lineGenerator:sI({curve:g}),areaGenerator:aI({curve:g,yScale:N,areaBaselineValue:v}),getColor:F,series:P,xScale:I,yScale:N,slices:z,points:H}},lI=function(e){var t=e.areaBlendMode,n=e.areaOpacity,r=e.color,i=e.fill,o=e.path,s=zx(),a=s.animate,A=s.config,l=Vx(o),c=Js({color:r,config:A,immediate:!a});return w(va.path,{d:l,fill:i||c.color,fillOpacity:n,strokeWidth:0,style:{mixBlendMode:t}})};lI.propTypes={areaBlendMode:rC.isRequired,areaOpacity:Qr.number.isRequired,color:Qr.string,fill:Qr.string,path:Qr.string.isRequired};var cI=function(e){var t=e.areaGenerator,n=e.areaOpacity,r=e.areaBlendMode,i=e.lines.slice(0).reverse();return w('g',{children:i.map(function(e){return w(lI,YO({path:t(e.data.map(function(e){return e.position}))},YO({areaOpacity:n,areaBlendMode:r},e)),e.id)})})};cI.propTypes={areaGenerator:Qr.func.isRequired,areaOpacity:Qr.number.isRequired,areaBlendMode:rC.isRequired,lines:Qr.arrayOf(Qr.object).isRequired};var uI=f(cI),dI=function(e){var t=e.lineGenerator,n=e.points,r=e.color,i=e.thickness,o=d(function(){return t(n)},[t,n]),s=Vx(o);return w(va.path,{d:s,fill:'none',strokeWidth:i,stroke:r})};dI.propTypes={points:Qr.arrayOf(Qr.shape({x:Qr.oneOfType([Qr.string,Qr.number]),y:Qr.oneOfType([Qr.string,Qr.number])})),lineGenerator:Qr.func.isRequired,color:Qr.string.isRequired,thickness:Qr.number.isRequired};var fI=f(dI),hI=function(e){var t=e.lines,n=e.lineGenerator,r=e.lineWidth;return t.slice(0).reverse().map(function(e){var t=e.id,i=e.data,o=e.color;return w(fI,{id:t,points:i.map(function(e){return e.position}),lineGenerator:n,color:o,thickness:r},t)})};hI.propTypes={lines:Qr.arrayOf(Qr.shape({id:Qr.oneOfType([Qr.string,Qr.number]).isRequired,color:Qr.string.isRequired,data:Qr.arrayOf(Qr.shape({data:Qr.shape({x:Qr.oneOfType([Qr.string,Qr.number,Qr.instanceOf(Date)]),y:Qr.oneOfType([Qr.string,Qr.number,Qr.instanceOf(Date)])}).isRequired,position:Qr.shape({x:Qr.number,y:Qr.number}).isRequired})).isRequired})).isRequired,lineWidth:Qr.number.isRequired,lineGenerator:Qr.func.isRequired};var pI=f(hI),gI=function(e){var t=e.slice,n=e.axis,r=e.debug,i=e.tooltip,o=e.isCurrent,a=e.setCurrent,A=e.onMouseEnter,l=e.onMouseMove,c=e.onMouseLeave,u=e.onClick,d=Qa(),f=d.showTooltipFromEvent,h=d.hideTooltip,g=s(function(e){f(p(i,{slice:t,axis:n}),e,'right'),a(t),A&&A(t,e)},[f,i,t,A]),m=s(function(e){f(p(i,{slice:t,axis:n}),e,'right'),l&&l(t,e)},[f,i,t,l]),v=s(function(e){h(),a(null),c&&c(t,e)},[h,t,c]),b=s(function(e){u&&u(t,e)},[t,u]);return w('rect',{x:t.x0,y:t.y0,width:t.width,height:t.height,stroke:'red',strokeWidth:r?1:0,strokeOpacity:.75,fill:'red',fillOpacity:o&&r?.35:0,onMouseEnter:g,onMouseMove:m,onMouseLeave:v,onClick:b,'data-testid':'slice-'+t.id})};gI.propTypes={slice:Qr.object.isRequired,axis:Qr.oneOf(['x','y']).isRequired,debug:Qr.bool.isRequired,height:Qr.number.isRequired,tooltip:Qr.oneOfType([Qr.func,Qr.object]),isCurrent:Qr.bool.isRequired,setCurrent:Qr.func.isRequired,onMouseEnter:Qr.func,onMouseMove:Qr.func,onMouseLeave:Qr.func,onClick:Qr.func};var mI=f(gI),vI=function(e){var t=e.slices,n=e.axis,r=e.debug,i=e.height,o=e.tooltip,s=e.current,a=e.setCurrent,A=e.onMouseEnter,l=e.onMouseMove,c=e.onMouseLeave,u=e.onClick;return t.map(function(e){return w(mI,{slice:e,axis:n,debug:r,height:i,tooltip:o,setCurrent:a,isCurrent:null!==s&&s.id===e.id,onMouseEnter:A,onMouseMove:l,onMouseLeave:c,onClick:u},e.id)})};vI.propTypes={slices:Qr.arrayOf(Qr.shape({id:Qr.oneOfType([Qr.number,Qr.string,Qr.instanceOf(Date)]).isRequired,x:Qr.number.isRequired,y:Qr.number.isRequired,points:Qr.arrayOf(Qr.object).isRequired})).isRequired,axis:Qr.oneOf(['x','y']).isRequired,debug:Qr.bool.isRequired,height:Qr.number.isRequired,tooltip:Qr.oneOfType([Qr.func,Qr.object]).isRequired,current:Qr.object,setCurrent:Qr.func.isRequired,onMouseEnter:Qr.func,onMouseMove:Qr.func,onMouseLeave:Qr.func,onClick:Qr.func};var bI=f(vI),yI=function(e){var t=e.points,n=e.symbol,r=e.size,i=e.borderWidth,o=e.enableLabel,s=e.label,a=e.labelYOffset,A=dC(),l=function(e,t){var n,r=xA(e)?e:function(t){return rf(t,e)};return t&&(n=xA(t)?t:gw(t)),n?function(e){return n(r(e))}:r}(s),c=t.slice(0).reverse().map(function(e){return{id:e.id,x:e.x,y:e.y,datum:e.data,fill:e.color,stroke:e.borderColor,label:o?l(e.data):null}});return w('g',{children:c.map(function(e){return w(NC,{x:e.x,y:e.y,datum:e.datum,symbol:n,size:r,color:e.fill,borderWidth:i,borderColor:e.stroke,label:e.label,labelYOffset:a,theme:A},e.id)})})};yI.propTypes={points:Qr.arrayOf(Qr.object),symbol:Qr.func,size:Qr.number.isRequired,color:Qr.func.isRequired,borderWidth:Qr.number.isRequired,borderColor:Qr.func.isRequired,enableLabel:Qr.bool.isRequired,label:Qr.oneOfType([Qr.string,Qr.func]).isRequired,labelYOffset:Qr.number};var wI=f(yI),BI=function(e){var t=e.points,n=e.width,r=e.height,i=e.margin,o=e.setCurrent,a=e.onMouseEnter,A=e.onMouseMove,l=e.onMouseLeave,c=e.onClick,u=e.tooltip,d=e.debug,f=Qa(),h=f.showTooltipAt,g=f.hideTooltip,m=s(function(e,t){h(p(u,{point:e}),[e.x+i.left,e.y+i.top],'top'),o(e),a&&a(e,t)},[o,h,u,a,i]),v=s(function(e,t){h(p(u,{point:e}),[e.x+i.left,e.y+i.top],'top'),o(e),A&&A(e,t)},[o,h,u,A]),b=s(function(e,t){g(),o(null),l&&l(e,t)},[g,o,l]),y=s(function(e,t){c&&c(e,t)},[c]);return w(WO,{nodes:t,width:n,height:r,onMouseEnter:m,onMouseMove:v,onMouseLeave:b,onClick:y,debug:d})};BI.propTypes={points:Qr.arrayOf(Qr.object).isRequired,width:Qr.number.isRequired,height:Qr.number.isRequired,margin:Qr.object.isRequired,setCurrent:Qr.func.isRequired,onMouseEnter:Qr.func,onMouseMove:Qr.func,onMouseLeave:Qr.func,onClick:Qr.func,tooltip:Qr.oneOfType([Qr.func,Qr.object]).isRequired,debug:Qr.bool.isRequired};var xI=f(BI),CI=function(e){var t=e.data,r=e.xScale,i=e.xFormat,o=e.yScale,s=e.yFormat,a=e.layers,A=e.curve,l=e.areaBaselineValue,c=e.colors,u=e.margin,d=e.width,f=e.height,h=e.axisTop,p=e.axisRight,g=e.axisBottom,v=e.axisLeft,b=e.enableGridX,y=e.enableGridY,B=e.gridXValues,x=e.gridYValues,C=e.lineWidth,_=e.enableArea,j=e.areaOpacity,F=e.areaBlendMode,E=e.enablePoints,S=e.pointSymbol,k=e.pointSize,U=e.pointColor,Q=e.pointBorderWidth,L=e.pointBorderColor,O=e.enablePointLabel,I=e.pointLabel,N=e.pointLabelYOffset,T=e.defs,M=e.fill,D=e.markers,P=e.legends,R=e.isInteractive,H=e.useMesh,z=e.debugMesh,V=e.onMouseEnter,K=e.onMouseMove,q=e.onMouseLeave,G=e.onClick,W=e.tooltip,Y=e.enableSlices,X=e.debugSlices,J=e.sliceTooltip,Z=e.enableCrosshair,$=e.crosshairType,ee=e.role,te=oC(d,f,u),ne=te.margin,re=te.innerWidth,ie=te.innerHeight,oe=te.outerWidth,se=te.outerHeight,ae=AI({data:t,xScale:r,xFormat:i,yScale:o,yFormat:s,width:re,height:ie,colors:c,curve:A,areaBaselineValue:l,pointColor:U,pointBorderColor:L,enableSlices:Y}),Ae=ae.legendData,le=ae.toggleSerie,ce=ae.lineGenerator,ue=ae.areaGenerator,de=ae.series,fe=ae.xScale,he=ae.yScale,pe=ae.slices,ge=ae.points,me=dC(),ve=LQ(U,me),be=LQ(L,me),ye=n(null),we=ye[0],Be=ye[1],xe=n(null),Ce=xe[0],_e=xe[1],je={grid:w(qF,{theme:me,width:re,height:ie,xScale:b?fe:null,yScale:y?he:null,xValues:B,yValues:x},'grid'),markers:w(PC,{markers:D,width:re,height:ie,xScale:fe,yScale:he,theme:me},'markers'),axes:w(zF,{xScale:fe,yScale:he,width:re,height:ie,theme:me,top:h,right:p,bottom:g,left:v},'axes'),areas:null,lines:w(pI,{lines:de,lineGenerator:ce,lineWidth:C},'lines'),slices:null,points:null,crosshair:null,mesh:null,legends:P.map(function(e,t){return w(KQ,YO({},e,{containerWidth:re,containerHeight:ie,data:e.data||Ae,theme:me,toggleSerie:e.toggleSerie?le:void 0}),'legend.'+t)})},Fe=YC(T,de,M);return _&&(je.areas=w(uI,{areaGenerator:ue,areaOpacity:j,areaBlendMode:F,lines:de},'areas')),R&&!1!==Y&&(je.slices=w(bI,{slices:pe,axis:Y,debug:X,height:ie,tooltip:J,current:Ce,setCurrent:_e,onMouseEnter:V,onMouseMove:K,onMouseLeave:q,onClick:G},'slices')),E&&(je.points=w(wI,{points:ge,symbol:S,size:k,color:ve,borderWidth:Q,borderColor:be,enableLabel:O,label:I,labelYOffset:N},'points')),R&&Z&&(null!==we&&(je.crosshair=w(Ea,{width:re,height:ie,x:we.x,y:we.y,type:$},'crosshair')),null!==Ce&&(je.crosshair=w(Ea,{width:re,height:ie,x:Ce.x,y:Ce.y,type:Y},'crosshair'))),R&&H&&!1===Y&&(je.mesh=w(xI,{points:ge,width:re,height:ie,margin:ne,current:we,setCurrent:Be,onMouseEnter:V,onMouseMove:K,onMouseLeave:q,onClick:G,tooltip:W,debug:z},'mesh')),w(QC,{defs:Fe,width:oe,height:se,margin:ne,role:ee,children:a.map(function(t,n){return'function'==typeof t?w(m,{children:t(YO({},e,{innerWidth:re,innerHeight:ie,series:de,slices:pe,points:ge,xScale:fe,yScale:he,lineGenerator:ce,areaGenerator:ue,currentPoint:we,setCurrentPoint:Be,currentSlice:Ce,setCurrentSlice:_e}))},n):je[t]})})};CI.propTypes=tI,CI.defaultProps=iI;var _I=HC(CI),jI=function(e){return w(gC,{children:function(t){var n=t.width,r=t.height;return w(_I,YO({width:n,height:r},e))}})},FI=function(e){var t=e.width,i=e.height,a=e.margin,A=e.pixelRatio,l=e.data,c=e.xScale,u=e.xFormat,d=e.yScale,f=e.yFormat,h=e.curve,g=e.layers,m=e.colors,v=e.lineWidth,b=e.enableArea,y=e.areaBaselineValue,B=e.areaOpacity,x=e.enablePoints,C=e.pointSize,_=e.pointColor,j=e.pointBorderWidth,F=e.pointBorderColor,E=e.enableGridX,S=e.gridXValues,k=e.enableGridY,U=e.gridYValues,Q=e.axisTop,L=e.axisRight,O=e.axisBottom,I=e.axisLeft,N=e.legends,T=e.isInteractive,M=e.debugMesh,D=e.onMouseLeave,P=e.onClick,R=e.tooltip,H=e.canvasRef,z=o(null),V=oC(t,i,a),K=V.margin,q=V.innerWidth,G=V.innerHeight,W=V.outerWidth,Y=V.outerHeight,X=dC(),J=n(null),Z=J[0],$=J[1],ee=AI({data:l,xScale:c,xFormat:u,yScale:d,yFormat:f,width:q,height:G,colors:m,curve:h,areaBaselineValue:y,pointColor:_,pointBorderColor:F}),te=ee.lineGenerator,ne=ee.areaGenerator,re=ee.series,ie=ee.xScale,oe=ee.yScale,se=ee.points,ae=GO({points:se,width:q,height:G,debug:M}),Ae=ae.delaunay,le=ae.voronoi;r(function(){H&&(H.current=z.current),z.current.width=W*A,z.current.height=Y*A;var e=z.current.getContext('2d');e.scale(A,A),e.fillStyle=X.background,e.fillRect(0,0,W,Y),e.translate(K.left,K.top),g.forEach(function(t){if('function'==typeof t&&t({ctx:e,innerWidth:q,innerHeight:G,series:re,points:se,xScale:ie,yScale:oe,lineWidth:v,lineGenerator:te,areaGenerator:ne,currentPoint:Z,setCurrentPoint:$}),'grid'===t&&X.grid.line.strokeWidth>0&&(e.lineWidth=X.grid.line.strokeWidth,e.strokeStyle=X.grid.line.stroke,E&&WF(e,{width:q,height:G,scale:ie,axis:'x',values:S}),k&&WF(e,{width:q,height:G,scale:oe,axis:'y',values:U})),'axes'===t&&GF(e,{xScale:ie,yScale:oe,width:q,height:G,top:Q,right:L,bottom:O,left:I,theme:X}),'areas'===t&&!0===b&&(e.save(),e.globalAlpha=B,ne.context(e),re.forEach(function(t){e.fillStyle=t.color,e.beginPath(),ne(t.data.map(function(e){return e.position})),e.fill()}),e.restore()),'lines'===t&&(te.context(e),re.forEach(function(t){e.strokeStyle=t.color,e.lineWidth=v,e.beginPath(),te(t.data.map(function(e){return e.position})),e.stroke()})),'points'===t&&!0===x&&C>0&&se.forEach(function(t){e.fillStyle=t.color,e.beginPath(),e.arc(t.x,t.y,C/2,0,2*Math.PI),e.fill(),j>0&&(e.strokeStyle=t.borderColor,e.lineWidth=j,e.stroke())}),'mesh'===t&&!0===M&&(function(e,t){e.save(),e.globalAlpha=.75,e.beginPath(),t.render(e),e.strokeStyle='red',e.lineWidth=1,e.stroke(),e.restore()}(e,le),Z&&function(e,t,n){e.save(),e.globalAlpha=.35,e.beginPath(),t.renderCell(n,e),e.fillStyle='red',e.fill(),e.restore()}(e,le,Z.index)),'legends'===t){var n=re.map(function(e){return{id:e.id,label:e.id,color:e.color}}).reverse();N.forEach(function(t){GQ(e,YO({},t,{data:t.data||n,containerWidth:q,containerHeight:G,theme:X}))})}})},[z,W,Y,g,X,te,re,ie,oe,E,S,k,U,Q,L,O,I,N,se,x,C,Z]);var ce=s(function(e){var t=qC(z.current,e),n=t[0],r=t[1];if(!KC(K.left,K.top,q,G,n,r))return null;var i=Ae.find(n-K.left,r-K.top);return se[i]},[z,K,q,G,Ae]),ue=Qa(),de=ue.showTooltipFromEvent,fe=ue.hideTooltip,he=s(function(e){var t=ce(e);$(t),t?de(p(R,{point:t}),e):fe()},[ce,$,de,fe,R]),pe=s(function(e){fe(),$(null),Z&&D&&D(Z,e)},[fe,$,D]),ge=s(function(e){if(P){var t=ce(e);t&&P(t,e)}},[ce,P]);return w('canvas',{ref:z,width:W*A,height:Y*A,style:{width:W,height:Y,cursor:T?'auto':'normal'},onMouseEnter:T?he:void 0,onMouseMove:T?he:void 0,onMouseLeave:T?pe:void 0,onClick:T?ge:void 0})};FI.propTypes=nI,FI.defaultProps=oI;var EI=HC(FI),SI=c(function(e,t){return w(EI,YO({},e,{canvasRef:t}))});c(function(e,t){return w(gC,{children:function(n){var r=n.width,i=n.height;return w(SI,YO({width:r,height:i},e,{ref:t}))}})});var kI,UI=function(e){var n=e.chartData,r=function(e){if(1===e.num_y_categories){var t=e.y_data,n=Array.isArray(t[0])&&t.length===e.x_data.length?t.map(function(e){return e[0]}):Array.isArray(t[0])?t[0]:t;return[{id:e.y_category_label[0],data:e.x_data.map(function(e,t){var r;return{x:e,y:null!==(r=n[t])&&void 0!==r?r:0}})}]}return e.y_category_label.map(function(t,n){return{id:t,data:e.x_data.map(function(t,r){var i,o;return{x:t,y:null!==(o=null===(i=e.y_data[r])||void 0===i?void 0:i[n])&&void 0!==o?o:0}})}})}(n),i=u(tJ).isDarkMode;return t.createElement(jI,{data:r,margin:{top:50,right:60,bottom:80,left:60},xScale:{type:'point'},yScale:{type:'linear',min:'auto',max:'auto',stacked:!0,reverse:!1},yFormat:' >-.2f',axisTop:null,axisRight:null,axisBottom:{tickSize:5,tickPadding:5,tickRotation:-15,truncateTickAt:0,legend:n.x_label,legendPosition:'middle',legendOffset:45,format:IL},axisLeft:{tickSize:5,tickPadding:5,legend:n.y_category_label,legendPosition:'middle',legendOffset:-55,tickRotation:0},pointSize:10,pointColor:{theme:'background'},pointBorderWidth:2,pointBorderColor:{from:'serieColor'},pointLabelYOffset:-12,useMesh:!0,legends:[{anchor:'top',direction:'row',justify:!1,translateX:12,translateY:-30,itemsSpacing:0,itemDirection:'left-to-right',itemWidth:80,itemHeight:20,itemOpacity:.75,symbolSize:12,symbolShape:'circle',symbolBorderColor:'rgba(0, 0, 0, .5)',effects:[{on:'hover',style:{itemBackground:'rgba(0, 0, 0, .03)',itemOpacity:1}}]}],theme:i?LL:QL})},QI=Nt.div(kI||(kI=De(['\n vu-bg-white\n dark:vu-bg-dark_mode-600\n vu-px-10\n vu-py-4\n vu-my-5\n vu-w-full\n'],['\n vu-bg-white\n dark:vu-bg-dark_mode-600\n vu-px-10\n vu-py-4\n vu-my-5\n vu-w-full\n']))),LI={},OI={};Object.defineProperty(OI,'__esModule',{value:!0}),OI.createAnimation=void 0;OI.createAnimation=function(e,t,n){var r='react-spinners-'.concat(e,'-').concat(n);if('undefined'==typeof window||!window.document)return r;var i=document.createElement('style');document.head.appendChild(i);var o=i.sheet,s='\n @keyframes '.concat(r,' {\n ').concat(t,'\n }\n ');return o&&o.insertRule(s,0),r};var II={};Object.defineProperty(II,'__esModule',{value:!0}),II.cssValue=II.parseLengthAndUnit=void 0;var NI={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,'%':!0};function TI(e){if('number'==typeof e)return{value:e,unit:'px'};var t,n=(e.match(/^[0-9.]*/)||'').toString();t=n.includes('.')?parseFloat(n):parseInt(n,10);var r=(e.match(/[^0-9]*$/)||'').toString();return NI[r]?{value:t,unit:r}:{value:t,unit:'px'}}II.parseLengthAndUnit=TI,II.cssValue=function(e){var t=TI(e);return''.concat(t.value).concat(t.unit)};var MI=ir&&ir.__assign||function(){return MI=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},MI.apply(this,arguments)},DI=ir&&ir.__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]}),PI=ir&&ir.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,'default',{enumerable:!0,value:t})}:function(e,t){e.default=t}),RI=ir&&ir.__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)&&DI(t,e,n);return PI(t,e),t},HI=ir&&ir.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&'function'==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};Object.defineProperty(LI,'__esModule',{value:!0});var zI=RI(t),VI=II,KI=(0,OI.createAnimation)('SyncLoader','33% {transform: translateY(10px)}\n 66% {transform: translateY(-10px)}\n 100% {transform: translateY(0)}','sync');var qI=LI.default=function(e){var t=e.loading,n=void 0===t||t,r=e.color,i=void 0===r?'#000000':r,o=e.speedMultiplier,s=void 0===o?1:o,a=e.cssOverride,A=void 0===a?{}:a,l=e.size,c=void 0===l?15:l,u=e.margin,d=void 0===u?2:u,f=HI(e,['loading','color','speedMultiplier','cssOverride','size','margin']),h=MI({display:'inherit'},A),p=function(e){return{backgroundColor:i,width:(0,VI.cssValue)(c),height:(0,VI.cssValue)(c),margin:(0,VI.cssValue)(d),borderRadius:'100%',display:'inline-block',animation:''.concat(KI,' ').concat(.6/s,'s ').concat(.07*e,'s infinite ease-in-out'),animationFillMode:'both'}};return n?zI.createElement('span',MI({style:h},f),zI.createElement('span',{style:p(1)}),zI.createElement('span',{style:p(2)}),zI.createElement('span',{style:p(3)})):null};const GI=t.createContext({}),WI=!0;function YI({baseColor:e,highlightColor:t,width:n,height:r,borderRadius:i,circle:o,direction:s,duration:a,enableAnimation:A=true,customHighlightBackground:l}){const c={};return'rtl'===s&&(c['--animation-direction']='reverse'),'number'==typeof a&&(c['--animation-duration']=`${a}s`),A||(c['--pseudo-element-display']='none'),'string'!=typeof n&&'number'!=typeof n||(c.width=n),'string'!=typeof r&&'number'!=typeof r||(c.height=r),'string'!=typeof i&&'number'!=typeof i||(c.borderRadius=i),o&&(c.borderRadius='50%'),void 0!==e&&(c['--base-color']=e),void 0!==t&&(c['--highlight-color']=t),'string'==typeof l&&(c['--custom-highlight-background']=l),c}function XI({count:e=1,wrapper:n,className:r,containerClassName:i,containerTestId:o,circle:s=!1,style:a,...A}){var l,c,u;const d=t.useContext(GI),f={...A};for(const[e,t]of Object.entries(A))void 0===t&&delete f[e];const h={...d,...f,circle:s},p={...a,...YI(h)};let g='react-loading-skeleton';r&&(g+=` ${r}`);const m=null!==(l=h.inline)&&void 0!==l&&l,v=[],b=Math.ceil(e);for(let n=0;n<b;n++){let r=p;if(b>e&&n===b-1){const t=null!==(c=r.width)&&void 0!==c?c:'100%',n=e%1,i='number'==typeof t?t*n:`calc(${t} * ${n})`;r={...r,width:i}}const i=t.createElement('span',{className:g,style:r,key:n},'');m?v.push(i):v.push(t.createElement(t.Fragment,{key:n},i,t.createElement('br',null)))}return t.createElement('span',{className:i,'data-testid':o,'aria-live':'polite','aria-busy':null!==(u=h.enableAnimation)&&void 0!==u?u:WI},n?v.map((e,r)=>t.createElement(n,{key:r},e)):v)}j('@keyframes react-loading-skeleton {\n 100% {\n transform: translateX(100%);\n }\n}\n\n.react-loading-skeleton {\n --base-color: #ebebeb;\n --highlight-color: #f5f5f5;\n --animation-duration: 1.5s;\n --animation-direction: normal;\n --pseudo-element-display: block; /* Enable animation */\n\n background-color: var(--base-color);\n\n width: 100%;\n border-radius: 0.25rem;\n display: inline-flex;\n line-height: 1;\n\n position: relative;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n overflow: hidden;\n}\n\n.react-loading-skeleton::after {\n content: \' \';\n display: var(--pseudo-element-display);\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n height: 100%;\n background-repeat: no-repeat;\n background-image: var(\n --custom-highlight-background,\n linear-gradient(\n 90deg,\n var(--base-color) 0%,\n var(--highlight-color) 50%,\n var(--base-color) 100%\n )\n );\n transform: translateX(-100%);\n\n animation-name: react-loading-skeleton;\n animation-direction: var(--animation-direction);\n animation-duration: var(--animation-duration);\n animation-timing-function: ease-in-out;\n animation-iteration-count: infinite;\n}\n\n@media (prefers-reduced-motion) {\n .react-loading-skeleton {\n --pseudo-element-display: none; /* Disable animation */\n }\n}\n');var JI=function(){var e=u(tJ).isDarkMode,n=d(function(){return[55,60,65,70,75,80].sort(function(){return Math.random()-.5}).slice(0,4).map(function(n,r){return t.createElement(XI,{key:r,width:''.concat(n,'%'),baseColor:e?'#7B7E92':'#ebebeb',highlightColor:e?'#4B5168':'#f5f5f5'})})},[e]);return t.createElement(QI,null,t.createElement('div',{className:'vu-w-full vu-flex vu-items-center vu-gap-2 vu-py-2'},t.createElement(qI,{color:e?'#CCCCDC':'#000',size:2,'aria-label':'Loading Spinner'}),t.createElement('p',{className:'vu-text-xs vu-font-normal'},'Generating a response ...')),n)},ZI={},$I=ir&&ir.__assign||function(){return $I=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},$I.apply(this,arguments)},eN=ir&&ir.__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]}),tN=ir&&ir.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,'default',{enumerable:!0,value:t})}:function(e,t){e.default=t}),nN=ir&&ir.__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)&&eN(t,e,n);return tN(t,e),t},rN=ir&&ir.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&'function'==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};Object.defineProperty(ZI,'__esModule',{value:!0});var iN=nN(t),oN=II,sN=(0,OI.createAnimation)('ClipLoader','0% {transform: rotate(0deg) scale(1)} 50% {transform: rotate(180deg) scale(0.8)} 100% {transform: rotate(360deg) scale(1)}','clip');var aN,AN,lN,cN,uN,dN=ZI.default=function(e){var t=e.loading,n=void 0===t||t,r=e.color,i=void 0===r?'#000000':r,o=e.speedMultiplier,s=void 0===o?1:o,a=e.cssOverride,A=void 0===a?{}:a,l=e.size,c=void 0===l?35:l,u=rN(e,['loading','color','speedMultiplier','cssOverride','size']),d=$I({background:'transparent !important',width:(0,oN.cssValue)(c),height:(0,oN.cssValue)(c),borderRadius:'100%',border:'2px solid',borderTopColor:i,borderBottomColor:'transparent',borderLeftColor:i,borderRightColor:i,display:'inline-block',animation:''.concat(sN,' ').concat(.75/s,'s 0s infinite linear'),animationFillMode:'both'},A);return n?iN.createElement('span',$I({style:d},u)):null},fN=Nt.div(aN||(aN=De(['\n vu-text-start\n'],['\n vu-text-start\n']))),hN=Nt.div(AN||(AN=De(['\n vu-text-3xl vu-font-bold\n'],['\n vu-text-3xl vu-font-bold\n']))),pN=Nt.div(lN||(lN=De(['\n vu-text-md\n'],['\n vu-text-md\n']))),gN=Nt.div(cN||(cN=De(['\n vu-opacity-60\n'],['\n vu-opacity-60\n']))),mN=Nt.ul(uN||(uN=De(['\n vu-list-disc\n vu-mt-0\n vu-mb-4\n vu-pl-10\n'],['\n vu-list-disc\n vu-mt-0\n vu-mb-4\n vu-pl-10\n']))),vN=function(){return t.createElement(fN,null,t.createElement(hN,null,'Hi, I\'m ',t.createElement(jn,{inline:!0,svg:Yn,size:48})),t.createElement(pN,null,t.createElement(gN,null,'Your assistant for incident analysis and insights.'),t.createElement('div',{className:'vu-mt-4'},'I can help you with:'),t.createElement(mN,null,t.createElement('li',null,'Incident listing and summaries.'),t.createElement('li',null,'Understanding what happened, when, and why.'),t.createElement('li',null,'Probable Root Causes and Recommended actions.')),t.createElement(gN,null,'Ask away!')))};Nt.div(yN||(yN=De(['\n vu-flex\n'],['\n vu-flex\n'])));var bN=Nt.div(wN||(wN=De(['\n vu-flex\n vu-flex-col\n vu-gap-4\n vu-grow\n'],['\n vu-flex\n vu-flex-col\n vu-gap-4\n vu-grow\n'])));Nt.div(BN||(BN=De(['\n vu-flex\n vu-justify-between\n vu-mb-10\n'],['\n vu-flex\n vu-justify-between\n vu-mb-10\n']))),Nt.div(xN||(xN=De(['\n vu-flex\n vu-items-center\n'],['\n vu-flex\n vu-items-center\n'])));var yN,wN,BN,xN,CN,_N,jN,FN,EN,SN,kN,UN,QN,LN=Nt.div(CN||(CN=De(['\n vu-flex\n vu-h-full\n'],['\n vu-flex\n vu-h-full\n']))),ON=Nt.div(_N||(_N=De(['\n vu-flex-col\n lg:vu-flex\n lg:vu-relative\n vu-absolute\n vu-inset-0\n vu-h-full\n vu-z-10\n vu-bg-white\n dark:vu-bg-dark_mode-600\n lg:vu-p-0\n vu-p-6\n vu-gap-2\n ','\n'],['\n vu-flex-col\n lg:vu-flex\n lg:vu-relative\n vu-absolute\n vu-inset-0\n vu-h-full\n vu-z-10\n vu-bg-white\n dark:vu-bg-dark_mode-600\n lg:vu-p-0\n vu-p-6\n vu-gap-2\n ','\n'])),function(e){return e.$isOpen?'vu-flex':'vu-hidden'}),IN=Nt.div(jN||(jN=De(['\n vu-flex\n lg:vu-hidden\n vu-justify-end\n'],['\n vu-flex\n lg:vu-hidden\n vu-justify-end\n']))),NN=Nt.div(FN||(FN=De(['\n vu-grow\n lg:vu-w-[22rem]\n vu-w-full\n lg:vu-pr-6\n vu-min-w-[22rem]\n'],['\n vu-grow\n lg:vu-w-[22rem]\n vu-w-full\n lg:vu-pr-6\n vu-min-w-[22rem]\n']))),TN=Nt.div(EN||(EN=De(['\n vu-h-full\n vu-flex\n vu-flex-col\n'],['\n vu-h-full\n vu-flex\n vu-flex-col\n']))),MN=Nt.div(SN||(SN=De(['\n vu-flex\n vu-flex-col\n vu-bg-alice_blue\n dark:vu-bg-dark_mode-500\n vu-relative\n vu-pt-10\n vu-pb-4\n vu-grow\n'],['\n vu-flex\n vu-flex-col\n vu-bg-alice_blue\n dark:vu-bg-dark_mode-500\n vu-relative\n vu-pt-10\n vu-pb-4\n vu-grow\n']))),DN=Nt.div(kN||(kN=De(['\n vu-flex\n vu-justify-center\n vu-items-center\n vu-h-full\n'],['\n vu-flex\n vu-justify-center\n vu-items-center\n vu-h-full\n']))),PN=Nt.button(UN||(UN=De(['\n vu-underline\n vu-p-0\n vu-pl-1\n vu-pb-0.5\n vu-bg-transparent\n vu-text-blue-600\n vu-cursor-pointer\n'],['\n vu-underline\n vu-p-0\n vu-pl-1\n vu-pb-0.5\n vu-bg-transparent\n vu-text-blue-600\n vu-cursor-pointer\n']))),RN=Nt.a(QN||(QN=De(['\n vu-underline\n vu-text-blue-600\n'],['\n vu-underline\n vu-text-blue-600\n'])));Nt.div(HN||(HN=De(['\n vu-bg-transparent\n vu-px-20\n vu-py-4\n vu-my-5\n vu-grid \n vu-grid-cols-3\n vu-gap-x-8\n vu-gap-y-5\n'],['\n vu-bg-transparent\n vu-px-20\n vu-py-4\n vu-my-5\n vu-grid \n vu-grid-cols-3\n vu-gap-x-8\n vu-gap-y-5\n'])));var HN,zN,VN=Nt.div(zN||(zN=De(['\n vu-flex vu-justify-center vu-items-center vu-text-sm\n'],['\n vu-flex vu-justify-center vu-items-center vu-text-sm\n'])));let KN,qN,GN,WN={data:''},YN=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,XN=/\/\*[^]*?\*\/| +/g,JN=/\n+/g,ZN=(e,t)=>{let n='',r='',i='';for(let o in e){let s=e[o];'@'==o[0]?'i'==o[1]?n=o+' '+s+';':r+='f'==o[1]?ZN(s,o):o+'{'+ZN(s,'k'==o[1]?'':t)+'}':'object'==typeof s?r+=ZN(s,t?t.replace(/([^,])+/g,e=>o.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+' '+t:t)):o):null!=s&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,'-$&').toLowerCase(),i+=ZN.p?ZN.p(o,s):o+':'+s+';')}return n+(t&&i?t+'{'+i+'}':i)+r},$N={},eT=e=>{if('object'==typeof e){let t='';for(let n in e)t+=n+eT(e[n]);return t}return e},tT=(e,t,n,r,i)=>{let o=eT(e),s=$N[o]||($N[o]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return'go'+n})(o));if(!$N[s]){let t=o!==e?e:(e=>{let t,n,r=[{}];for(;t=YN.exec(e.replace(XN,''));)t[4]?r.shift():t[3]?(n=t[3].replace(JN,' ').trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(JN,' ').trim();return r[0]})(e);$N[s]=ZN(i?{['@keyframes '+s]:t}:t,n?'':'.'+s)}let a=n&&$N.g?$N.g:null;return n&&($N.g=$N[s]),((e,t,n,r)=>{r?t.data=t.data.replace(r,e):-1===t.data.indexOf(e)&&(t.data=n?e+t.data:t.data+e)})($N[s],t,r,a),s};function nT(e){let t=this||{},n=e.call?e(t.p):e;return tT(n.unshift?n.raw?((e,t,n)=>e.reduce((e,r,i)=>{let o=t[i];if(o&&o.call){let e=o(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;o=t?'.'+t:e&&'object'==typeof e?e.props?'':ZN(e,''):!1===e?'':e}return e+r+(null==o?'':o)},''))(n,[].slice.call(arguments,1),t.p):n.reduce((e,n)=>Object.assign(e,n&&n.call?n(t.p):n),{}):n,(e=>{if('object'==typeof window){let t=(e?e.querySelector('#_goober'):window._goober)||Object.assign(document.createElement('style'),{innerHTML:' ',id:'_goober'});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||WN})(t.target),t.g,t.o,t.k)}nT.bind({g:1});let rT=nT.bind({k:1});function iT(e,t){let n=this||{};return function(){let r=arguments;function i(o,s){let a=Object.assign({},o),A=a.className||i.className;n.p=Object.assign({theme:qN&&qN()},a),n.o=/ *go\d+/.test(A),a.className=nT.apply(n,r)+(A?' '+A:''),t&&(a.ref=s);let l=e;return e[0]&&(l=a.as||e,delete a.as),GN&&l[0]&&GN(a),KN(l,a)}return t?t(i):i}}var oT=(e,t)=>(e=>'function'==typeof e)(e)?e(t):e,sT=(()=>{let e=0;return()=>(++e).toString()})(),aT=(()=>{let e;return()=>{if(void 0===e&&typeof window<'u'){let t=matchMedia('(prefers-reduced-motion: reduce)');e=!t||t.matches}return e}})(),AT='default',lT=(e,t)=>{let{toastLimit:n}=e.settings;switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,n)};case 1:return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case 2:let{toast:r}=t;return lT(e,{type:e.toasts.find(e=>e.id===r.id)?1:0,toast:r});case 3:let{toastId:i}=t;return{...e,toasts:e.toasts.map(e=>e.id===i||void 0===i?{...e,dismissed:!0,visible:!1}:e)};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(e=>({...e,pauseDuration:e.pauseDuration+o}))}}},cT=[],uT={toasts:[],pausedAt:void 0,settings:{toastLimit:20}},dT={},fT=(e,t=AT)=>{dT[t]=lT(dT[t]||uT,e),cT.forEach(([e,n])=>{e===t&&n(dT[t])})},hT=e=>Object.keys(dT).forEach(t=>fT(e,t)),pT=(e=AT)=>t=>{fT(t,e)},gT={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},mT=e=>(t,n)=>{let r=((e,t='blank',n)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:'status','aria-live':'polite'},message:e,pauseDuration:0,...n,id:(null==n?void 0:n.id)||sT()}))(t,e,n);return pT(r.toasterId||(e=>Object.keys(dT).find(t=>dT[t].toasts.some(t=>t.id===e)))(r.id))({type:2,toast:r}),r.id},vT=(e,t)=>mT('blank')(e,t);vT.error=mT('error'),vT.success=mT('success'),vT.loading=mT('loading'),vT.custom=mT('custom'),vT.dismiss=(e,t)=>{let n={type:3,toastId:e};t?pT(t)(n):hT(n)},vT.dismissAll=e=>vT.dismiss(void 0,e),vT.remove=(e,t)=>{let n={type:4,toastId:e};t?pT(t)(n):hT(n)},vT.removeAll=e=>vT.remove(void 0,e),vT.promise=(e,t,n)=>{let r=vT.loading(t.loading,{...n,...null==n?void 0:n.loading});return'function'==typeof e&&(e=e()),e.then(e=>{let i=t.success?oT(t.success,e):void 0;return i?vT.success(i,{id:r,...n,...null==n?void 0:n.success}):vT.dismiss(r),e}).catch(e=>{let i=t.error?oT(t.error,e):void 0;i?vT.error(i,{id:r,...n,...null==n?void 0:n.error}):vT.dismiss(r)}),e};var bT=(e,t='default')=>{let{toasts:i,pausedAt:a}=((e={},t=AT)=>{let[i,s]=n(dT[t]||uT),a=o(dT[t]);r(()=>(a.current!==dT[t]&&s(dT[t]),cT.push([t,s]),()=>{let e=cT.findIndex(([e])=>e===t);e>-1&&cT.splice(e,1)}),[t]);let A=i.toasts.map(t=>{var n,r,i;return{...e,...e[t.type],...t,removeDelay:t.removeDelay||(null==(n=e[t.type])?void 0:n.removeDelay)||(null==e?void 0:e.removeDelay),duration:t.duration||(null==(r=e[t.type])?void 0:r.duration)||(null==e?void 0:e.duration)||gT[t.type],style:{...e.style,...null==(i=e[t.type])?void 0:i.style,...t.style}}});return{...i,toasts:A}})(e,t),A=o(new Map).current,l=s((e,t=1e3)=>{if(A.has(e))return;let n=setTimeout(()=>{A.delete(e),c({type:4,toastId:e})},t);A.set(e,n)},[]);r(()=>{if(a)return;let e=Date.now(),n=i.map(n=>{if(n.duration===1/0)return;let r=(n.duration||0)+n.pauseDuration-(e-n.createdAt);if(!(r<0))return setTimeout(()=>vT.dismiss(n.id,t),r);n.visible&&vT.dismiss(n.id)});return()=>{n.forEach(e=>e&&clearTimeout(e))}},[i,a,t]);let c=s(pT(t),[t]),u=s(()=>{c({type:5,time:Date.now()})},[c]),d=s((e,t)=>{c({type:1,toast:{id:e,height:t}})},[c]),f=s(()=>{a&&c({type:6,time:Date.now()})},[a,c]),h=s((e,t)=>{let{reverseOrder:n=!1,gutter:r=8,defaultPosition:o}=t||{},s=i.filter(t=>(t.position||o)===(e.position||o)&&t.height),a=s.findIndex(t=>t.id===e.id),A=s.filter((e,t)=>t<a&&e.visible).length;return s.filter(e=>e.visible).slice(...n?[A+1]:[0,A]).reduce((e,t)=>e+(t.height||0)+r,0)},[i]);return r(()=>{i.forEach(e=>{if(e.dismissed)l(e.id,e.removeDelay);else{let t=A.get(e.id);t&&(clearTimeout(t),A.delete(e.id))}})},[i,l]),{toasts:i,handlers:{updateHeight:d,startPause:u,endPause:f,calculateOffset:h}}},yT=rT`
|
|
15
15
|
from {
|
|
16
16
|
transform: scale(0) rotate(45deg);
|
|
17
17
|
opacity: 0;
|
|
@@ -1421,4 +1421,4 @@ var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Arr
|
|
|
1421
1421
|
/*!**********************!*\
|
|
1422
1422
|
!*** ./src/index.js ***!
|
|
1423
1423
|
\**********************/
|
|
1424
|
-
o.r(s);var e=o(/*! ./worker.js */'./src/worker.js');o(/*! ./plugin/jspdf-plugin.js */'./src/plugin/jspdf-plugin.js'),o(/*! ./plugin/pagebreaks.js */'./src/plugin/pagebreaks.js'),o(/*! ./plugin/hyperlinks.js */'./src/plugin/hyperlinks.js');var t=function e(t,n){var r=new e.Worker(n);return t?r.from(t).save():r};t.Worker=e.default,s.default=t}(),s=s.default}()};var HX,zX,VX,KX,qX=or(bz.exports=DX(sr(Object.freeze({__proto__:null,default:function(e,t){return void 0===t&&(t={}),PX(e,t)}})))),GX=function(e,t){return void 0===t&&(t=50),e.length>t?e.slice(0,t)+'...':e},WX=function(){return t.createElement(t.Fragment,null,t.createElement(nr,{className:'vu-font-medium'},'The Ved Feature has not been integrated into your environment.'),t.createElement('p',{className:'vu-text-xl'},'Please contact ',t.createElement(RN,null,'support@vunetsystems.com'),' for assistance.'))},YX=function(e){var r=e.handleClickBackBtn,i=n(),s=i[0],a=i[1],A=n(!1),l=A[0],c=A[1],u=n(''),d=u[0],f=u[1],h=n(!1),p=h[0],g=h[1],m=o(null),v=Qe({queryKey:'sessionID',queryFn:Dn,enabled:!s,retry:!1,onSuccess:function(e){a({sessionID:e.session_id,isNew:!0,sessionTitle:''})}}),b=function(e){a(e||void 0)},y=function(){a(void 0),v.refetch()};return t.createElement(t.Fragment,null,t.createElement(Zn,{getNewChatId:v.refetch,handleClickBackBtn:r,openSideBar:c,onDownloadConversation:function(){return function(e,t){return Ne(void 0,void 0,void 0,function(){var n,r,i,o,s,a,A,l,c,u,d;return Te(this,function(f){switch(f.label){case 0:if(!(n=e.current))return[2];(r=document.createElement('div')).className='pdf-overlay',document.body.appendChild(r),n.classList.add('pdf-container'),f.label=1;case 1:return f.trys.push([1,,3,4]),[4,(i=qX().from(n).set({margin:[20,10,10,10],filename:'conversation-'.concat(Date.now(),'.pdf'),html2canvas:{scale:2,useCORS:!0},jsPDF:{unit:'mm',format:'a4',orientation:'portrait'},pagebreak:{mode:['avoid-all','css','legacy']}})).toPdf().get('pdf')];case 2:for(o=f.sent(),s=o.internal.getNumberOfPages(),a=o.internal.pageSize.getWidth(),A=o.internal.pageSize.getHeight(),l=1;l<=s;l++)o.setPage(l),o.setFontSize(16),o.setFont('heebo','bold'),o.text('VuNet',10,10),o.text('VED',a-10,10,{align:'right'}),o.setFontSize(12),o.setFont('heebo','bold'),o.text(GX(t),a/2,8,{align:'center'}),o.setFontSize(9),o.setFont('heebo','normal'),o.text('Downloaded at '.concat((new Date).toLocaleString()),a/2,13,{align:'center'}),c=A-8,o.setFontSize(10),o.setFont('heebo','normal'),u='Powered by vuSmartMaps™ from',o.text(u,10,c),d=o.getStringUnitWidth(u)*o.internal.getFontSize()/o.internal.scaleFactor,o.setFont('heebo','bold'),o.text('VuNet',10+d+1,c);return i.save(),[3,4];case 3:return n.classList.remove('pdf-container'),r.classList.add('fade-out'),setTimeout(function(){return r.remove()},150),[7];case 4:return[2]}})})}(m,(null==s?void 0:s.sessionTitle)||'')},isDownloadDisabled:p||!(null==s?void 0:s.sessionID)||(null==s?void 0:s.isNew)}),v.isLoading||v.isError?t.createElement(t.Fragment,null,v.isError?t.createElement(rr,{errorHeading:'Oops!',errorInfo:t.createElement(WX,null)}):t.createElement(DN,null,t.createElement(dN,{color:'#000',loading:v.isLoading,size:75,'aria-label':'Loading Spinner','data-testid':'loader'}))):t.createElement(LN,{style:{height:'calc(100% - 5rem)'}},t.createElement(ON,{$isOpen:l},t.createElement(IN,null,t.createElement(En,{icon:Xn,iconColor:'vu-fill-slate-350',onClick:function(){return c(!1)}})),t.createElement(NN,null,t.createElement(TN,null,t.createElement(bN,null,t.createElement('div',{className:'vu-flex vu-gap-2'},t.createElement(Un,{$fullWidth:!0,placeholder:'Search Conversations',onChange:function(e){return f(e.target.value)}}),t.createElement(Fn,{icon:'data:image/svg+xml,%3Csvg%20width%3D%2214%22%20height%3D%2214%22%20viewBox%3D%220%200%2014%2014%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M11.9%204.2H11.2V2.1C11.2%201.54305%2010.9788%201.0089%2010.5849%200.615076C10.1911%200.221249%209.65695%200%209.1%200H2.1C1.54305%200%201.0089%200.221249%200.615076%200.615076C0.221249%201.0089%200%201.54305%200%202.1V10.5C0.000689837%2010.6382%200.0422715%2010.7731%200.119505%2010.8877C0.196738%2011.0023%200.306167%2011.0915%200.434%2011.144C0.517075%2011.1832%200.608176%2011.2024%200.7%2011.2C0.792125%2011.2005%200.883448%2011.1829%200.968735%2011.148C1.05402%2011.1132%201.13159%2011.0619%201.197%2010.997L3.164%209.023H4.2V10.031C4.2%2010.588%204.42125%2011.1221%204.81508%2011.5159C5.2089%2011.9098%205.74305%2012.131%206.3%2012.131H11.144L12.803%2013.797C12.8684%2013.8619%2012.946%2013.9132%2013.0313%2013.948C13.1166%2013.9829%2013.2079%2014.0005%2013.3%2014C13.3918%2014.0024%2013.4829%2013.9832%2013.566%2013.944C13.6938%2013.8915%2013.8033%2013.8023%2013.8805%2013.6877C13.9577%2013.5731%2013.9993%2013.4382%2014%2013.3V6.3C14%205.74305%2013.7788%205.2089%2013.3849%204.81508C12.9911%204.42125%2012.457%204.2%2011.9%204.2ZM4.2%206.3V7.623H2.877C2.78488%207.62247%202.69355%207.64012%202.60827%207.67496C2.52298%207.70979%202.44541%207.76112%202.38%207.826L1.4%208.813V2.1C1.4%201.91435%201.47375%201.7363%201.60503%201.60503C1.7363%201.47375%201.91435%201.4%202.1%201.4H9.1C9.28565%201.4%209.4637%201.47375%209.59497%201.60503C9.72625%201.7363%209.8%201.91435%209.8%202.1V4.2H6.3C5.74305%204.2%205.2089%204.42125%204.81508%204.81508C4.42125%205.2089%204.2%205.74305%204.2%206.3ZM12.6%2011.613L11.9%2010.913C11.8352%2010.8469%2011.7579%2010.7942%2011.6725%2010.7582C11.5872%2010.7221%2011.4956%2010.7034%2011.403%2010.703H6.3C6.11435%2010.703%205.9363%2010.6292%205.80503%2010.498C5.67375%2010.3667%205.6%2010.1887%205.6%2010.003V6.3C5.6%206.11435%205.67375%205.9363%205.80503%205.80503C5.9363%205.67375%206.11435%205.6%206.3%205.6H11.9C12.0857%205.6%2012.2637%205.67375%2012.395%205.80503C12.5263%205.9363%2012.6%206.11435%2012.6%206.3V11.613Z%22%20fill%3D%22white%22%2F%3E%3C%2Fsvg%3E',iconColor:'vu-fill-white',onClick:y,disabled:v.isLoading})),t.createElement(vz,{currentConversationInfo:s,handleSetConversationInfo:b,searchQuery:d}))))),t.createElement(MN,null,(null==s?void 0:s.sessionID)?t.createElement(t.Fragment,null,t.createElement(cz,{handleSetConversationInfo:b,sessionID:s.sessionID,sessionTitle:s.sessionTitle,isNew:s.isNew,handleClickNewChat:y,contentRef:m,onSetIsStreaming:g})):t.createElement(DN,null,t.createElement(dN,{color:'#000',loading:v.isLoading,size:75,'aria-label':'Loading Spinner','data-testid':'loader'})))))},XX=Nt.div(HX||(HX=De(['\n vu-fixed\n vu-inset-0\n vu-p-8\n vu-isolate\n vu-z-[1001]\n vu-bg-black/75\n'],['\n vu-fixed\n vu-inset-0\n vu-p-8\n vu-isolate\n vu-z-[1001]\n vu-bg-black/75\n']))),JX=Nt.div(zX||(zX=De(['\n vu-css-ls\n vu-p-6\n vu-h-full\n vu-bg-white\n dark:vu-bg-dark_mode-600\n vu-flex\n vu-flex-col\n vu-rounded-lg\n vu-relative\n dark:vu-text=slate-250\n'],['\n vu-css-ls\n vu-p-6\n vu-h-full\n vu-bg-white\n dark:vu-bg-dark_mode-600\n vu-flex\n vu-flex-col\n vu-rounded-lg\n vu-relative\n dark:vu-text=slate-250\n']))),ZX=Nt.div(VX||(VX=De(['\n vu-fixed\n vu-z-[1001]\n vu-flex\n vu-transition-all\n vu-duration-300 \n vu-ease-in-out\n\n ','\n'],['\n vu-fixed\n vu-z-[1001]\n vu-flex\n vu-transition-all\n vu-duration-300 \n vu-ease-in-out\n\n ','\n'])),function(e){return e.$isMinimized?'vu-bottom-24 -vu-right-8 -vu-rotate-45':'vu-bottom-20 vu-right-5 vu-rotate-0'}),$X=Nt(En)(KX||(KX=De(['\n vu-pt-2\n'],['\n vu-pt-2\n']))),eJ=new fe,tJ=h({isDarkMode:!1}),nJ=function(e){var r=e.baseURL,i=e.darkMode,o=void 0!==i&&i,s=e.handleClickBackBtn,a=n(o)[0];return r?(Mn.defaults.baseURL=r,t.createElement(tJ.Provider,{value:{isDarkMode:a}},t.createElement(je,{client:eJ},t.createElement(XX,{className:a?'vu-dark':''},t.createElement(JX,null,t.createElement(YX,{handleClickBackBtn:function(){return s(!1)}}),t.createElement(RT,{position:'top-right'})))))):t.createElement('h1',null,'Base URL missing.')},rJ=function(e){var i=e.baseURL,o=e.darkMode,s=void 0===o||o,a=n(!1),A=a[0],l=a[1],c=n(!1),u=c[0],d=c[1],f=zT();return r(function(){var e=f.get('ved_chat_open');'true'===e?l(!0):'false'===e&&l(!1)},[f]),r(function(){var e=function(e){'Escape'===e.key&&l(!1)};return document.addEventListener('keydown',e),function(){document.removeEventListener('keydown',e)}},[l]),t.createElement('div',null,t.createElement(ZX,{$isMinimized:u},t.createElement(En,{icon:u?'data:image/svg+xml,%3Csvg%20width%3D%2213%22%20height%3D%2213%22%20viewBox%3D%220%200%2013%2013%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5.9955%200.0811363C6.18846%20-0.0976484%206.5143%200.0380123%206.55408%200.303045C6.99418%201.8052%207.65855%203.26871%208.69785%204.4097C9.39523%205.18593%2010.2627%205.77529%2011.203%206.16071C11.5009%206.25235%2011.4984%206.75726%2011.2005%206.8471C10.2974%207.21635%209.46124%207.77427%208.78079%208.50648C7.67124%209.67891%206.98825%2011.2179%206.52361%2012.7856C6.41867%2013.11%205.92187%2013.0507%205.87532%2012.7129C5.39968%2011.0903%204.65998%209.50731%203.47765%208.33398C2.83105%207.68353%202.05581%207.1894%201.22725%206.8471C0.92595%206.75996%200.923411%206.24966%201.22471%206.15982C2.46713%205.6594%203.56398%204.77176%204.34684%203.63167C5.02983%202.6533%205.50716%201.52848%205.84993%200.370426C5.88632%200.268905%205.90833%200.150314%205.9955%200.0811363Z%22%20fill%3D%22url%28%23paint0_linear_824_2194%29%22%2F%3E%3Cpath%20d%3D%22M7.93967%206.62908H6.66191V8.08352H6.07193V6.62908H4.79102V6.08327H6.07193V4.73926H6.66191V6.08327H7.93967V6.62908Z%22%20fill%3D%22white%22%2F%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22paint0_linear_824_2194%22%20x1%3D%221.19306%22%20y1%3D%226.55804%22%20x2%3D%2210.846%22%20y2%3D%226.55804%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23AD2677%22%2F%3E%3Cstop%20offset%3D%220.552083%22%20stop-color%3D%22%23E02433%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F38922%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3C%2Fsvg%3E':'data:image/svg+xml,%3Csvg%20width%3D%2213%22%20height%3D%2213%22%20viewBox%3D%220%200%2013%2013%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5.9955%200.0811363C6.18846%20-0.0976484%206.5143%200.0380123%206.55408%200.303045C6.99418%201.8052%207.65855%203.26871%208.69785%204.4097C9.39523%205.18593%2010.2627%205.77529%2011.203%206.16071C11.5009%206.25235%2011.4984%206.75726%2011.2005%206.8471C10.2974%207.21635%209.46124%207.77427%208.78079%208.50648C7.67124%209.67891%206.98825%2011.2179%206.52361%2012.7856C6.41867%2013.11%205.92187%2013.0507%205.87532%2012.7129C5.39968%2011.0903%204.65998%209.50731%203.47765%208.33398C2.83105%207.68353%202.05581%207.1894%201.22725%206.8471C0.92595%206.75996%200.923411%206.24966%201.22471%206.15982C2.46713%205.6594%203.56398%204.77176%204.34684%203.63167C5.02983%202.6533%205.50716%201.52848%205.84993%200.370426C5.88632%200.268905%205.90833%200.150314%205.9955%200.0811363Z%22%20fill%3D%22url%28%23paint0_linear_824_2193%29%22%2F%3E%3Cpath%20d%3D%22M4.79102%206.63427V5.68652H7.63424V6.63427H4.79102Z%22%20fill%3D%22white%22%2F%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22paint0_linear_824_2193%22%20x1%3D%221.19306%22%20y1%3D%226.55804%22%20x2%3D%2210.846%22%20y2%3D%226.55804%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23AD2677%22%2F%3E%3Cstop%20offset%3D%220.552083%22%20stop-color%3D%22%23E02433%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F38922%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3C%2Fsvg%3E',onClick:function(){return d(function(e){return!e})}}),t.createElement($X,{size:64,icon:'data:image/svg+xml,%3Csvg%20width%3D%2264%22%20height%3D%2264%22%20viewBox%3D%220%200%2064%2064%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Crect%20y%3D%228%22%20width%3D%2264%22%20height%3D%2249%22%20rx%3D%2210.2851%22%20fill%3D%22url%28%23paint0_linear_824_2190%29%22%2F%3E%3Cpath%20d%3D%22M7%2022.0107C8.33054%2022.0154%209.66322%2022.0131%2010.9938%2022.0107C13.1385%2028.9994%2015.2853%2035.9903%2017.4172%2042.9836C16.0909%2042.9976%2014.7647%2042.9743%2013.4406%2042.9999C11.2509%2036.0206%209.134%2029.011%207%2022.0107Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M20.1836%2022.0118C21.5184%2022.0118%2022.8532%2022.0072%2024.1902%2022.0118C22.2876%2028.209%2020.4086%2034.4154%2018.4845%2040.6055C17.7646%2038.4568%2017.1347%2036.2755%2016.4727%2034.1081C17.7261%2030.0807%2018.9302%2026.0369%2020.1836%2022.0118Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M26.8603%2022.0088L26.9717%2022.0251C28.4008%2022.2812%2029.8513%2022.1438%2031.2933%2022.2439C31.3575%2023.3008%2031.3532%2024.3624%2031.274%2025.417C29.7913%2025.4915%2028.3022%2025.3611%2026.8281%2025.5567C26.8945%2024.374%2026.8581%2023.1914%2026.8603%2022.0088Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M26.8647%2042.9874C26.8733%2041.7698%2026.839%2040.5499%2026.8904%2039.3301C28.3666%2039.3673%2029.845%2039.3394%2031.3234%2039.3487C31.3234%2040.5616%2031.3255%2041.7745%2031.3298%2042.9897C29.8407%2042.9897%2028.3516%2042.9897%2026.8647%2042.9874Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M26.9717%2022.0263C31.0061%2021.9798%2035.0406%2022.0077%2039.0751%2022.0147C39.0708%2023.2183%2039.0901%2024.4242%2039.0601%2025.6301C35.7669%2025.6231%2032.4759%2025.6371%2029.185%2025.6277C28.3986%2025.6161%2027.608%2025.6836%2026.8281%2025.5579C28.3022%2025.3623%2029.7913%2025.4927%2031.274%2025.4182C31.3532%2024.3636%2031.3575%2023.3021%2031.2933%2022.2452C29.8513%2022.1451%2028.4008%2022.2824%2026.9717%2022.0263Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M42.4379%2022.0183C44.2355%2022.0044%2046.031%2022.0044%2047.8286%2022.0276C47.8329%2023.2172%2047.82%2024.4092%2047.7836%2025.5988C46.001%2025.5545%2044.2184%2025.5964%2042.4357%2025.5732C42.4336%2024.3882%2042.4315%2023.2033%2042.4379%2022.0183Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M42.4361%2039.3898C44.3408%2039.3712%2046.2434%2039.4224%2048.1482%2039.3525C48.2982%2040.5538%2048.2896%2041.7713%2048.1182%2042.9679C46.2241%2043.0075%2044.3301%2042.9842%2042.4361%2042.9865C42.4339%2041.7876%2042.4318%2040.5887%2042.4361%2039.3898Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M47.8243%2022.0283C49.4891%2022.1075%2051.1281%2022.5777%2052.6001%2023.4251L52.5979%2023.467C52.4544%2025.1804%2052.6344%2026.9055%2052.418%2028.6142C51.4559%2026.8193%2049.6712%2025.7228%2047.7793%2025.5995C47.8157%2024.4099%2047.8286%2023.2179%2047.8243%2022.0283Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M52.5939%2023.4668C54.9358%2024.8543%2056.4548%2027.5547%2056.8448%2030.3856C57.2197%2033.0884%2056.9519%2036.0054%2055.6128%2038.3706C54.8736%2039.7232%2053.7766%2040.8034%2052.5404%2041.5995C52.4568%2039.8931%2052.6689%2038.1681%2052.3711%2036.478C53.451%2034.0289%2053.4038%2031.0817%2052.4139%2028.614C52.6303%2026.9052%2052.4504%2025.1802%2052.5939%2023.4668Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M26.8574%2030.6728C30.3927%2030.6682%2033.9279%2030.6658%2037.4632%2030.6705C37.4632%2031.8764%2037.461%2033.0823%2037.4653%2034.2882C33.9686%2034.2859%2030.4698%2034.3208%2026.9753%2034.2696C28.5436%2033.9739%2030.142%2034.1509%2031.7254%2034.0438C31.7789%2032.9938%2031.7725%2031.9416%2031.7082%2030.8917C30.0949%2030.8288%2028.4815%2030.8614%2026.8681%2030.8125L26.8574%2030.6728Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M26.8658%2030.8125C28.4792%2030.8614%2030.0925%2030.8288%2031.7059%2030.8917C31.7702%2031.9416%2031.7766%2032.9938%2031.723%2034.0438C30.1397%2034.1508%2028.5413%2033.9739%2026.9729%2034.2696L26.8594%2034.2859C26.8701%2033.1265%2026.8637%2031.9695%2026.8658%2030.8125Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M48.1372%2039.3247C49.8641%2039.1454%2051.4754%2038.1048%2052.371%2036.4775C52.6688%2038.1677%2052.4567%2039.8927%2052.5402%2041.5991C51.1733%2042.4%2049.652%2042.8376%2048.1094%2042.968C48.2808%2041.7714%2048.2894%2040.5539%2048.1394%2039.3526L48.1372%2039.3247Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M31.3203%2039.3477C32.7451%2039.3454%2034.1699%2039.3477%2035.5969%2039.3477C35.6119%2040.5606%2035.6076%2041.7735%2035.5862%2042.9887C34.1656%2042.9887%2032.7451%2042.9887%2031.3267%2042.9887C31.3224%2041.7735%2031.3203%2040.5606%2031.3203%2039.3477Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M35.6064%2039.3482C36.7634%2039.3459%2037.9225%2039.3459%2039.0817%2039.3505C39.0817%2040.5634%2039.0817%2041.774%2039.0817%2042.9869C37.9204%2042.9915%2036.757%2042.9892%2035.5957%2042.9892C35.6171%2041.774%2035.6214%2040.5611%2035.6064%2039.3482Z%22%20fill%3D%22white%22%2F%3E%3Cellipse%20cx%3D%2245.1173%22%20cy%3D%2232.6875%22%20rx%3D%222.45906%22%20ry%3D%222.67187%22%20fill%3D%22white%22%2F%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22paint0_linear_824_2190%22%20x1%3D%22-5.82857%22%20y1%3D%2230.6824%22%20x2%3D%2265.86%22%20y2%3D%2233.0575%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20offset%3D%220.0561277%22%20stop-color%3D%22%23A42783%22%2F%3E%3Cstop%20offset%3D%220.503827%22%20stop-color%3D%22%23E22432%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F59620%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3C%2Fsvg%3E',onClick:function(){return l(!0)}})),A&&t.createElement(nJ,{baseURL:i,handleClickBackBtn:l,darkMode:s}))};export{nJ as VuChat,tJ as VuChatContext,rJ as VuIconComponent};
|
|
1424
|
+
o.r(s);var e=o(/*! ./worker.js */'./src/worker.js');o(/*! ./plugin/jspdf-plugin.js */'./src/plugin/jspdf-plugin.js'),o(/*! ./plugin/pagebreaks.js */'./src/plugin/pagebreaks.js'),o(/*! ./plugin/hyperlinks.js */'./src/plugin/hyperlinks.js');var t=function e(t,n){var r=new e.Worker(n);return t?r.from(t).save():r};t.Worker=e.default,s.default=t}(),s=s.default}()};var HX,zX,VX,KX,qX=or(bz.exports=DX(sr(Object.freeze({__proto__:null,default:function(e,t){return void 0===t&&(t={}),PX(e,t)}})))),GX=function(e,t){return void 0===t&&(t=50),e.length>t?e.slice(0,t)+'...':e},WX=function(){return t.createElement(t.Fragment,null,t.createElement(nr,{className:'vu-font-medium'},'The Ved Feature has not been integrated into your environment.'),t.createElement('p',{className:'vu-text-xl'},'Please contact ',t.createElement(RN,null,'support@vunetsystems.com'),' for assistance.'))},YX=function(e){var r=e.handleClickBackBtn,i=n(),s=i[0],a=i[1],A=n(!1),l=A[0],c=A[1],u=n(''),d=u[0],f=u[1],h=n(!1),p=h[0],g=h[1],m=o(null),v=Qe({queryKey:'sessionID',queryFn:Dn,enabled:!s,retry:!1,onSuccess:function(e){a({sessionID:e.session_id,isNew:!0,sessionTitle:''})}}),b=function(e){a(e||void 0)},y=function(){a(void 0),v.refetch()};return t.createElement(t.Fragment,null,t.createElement(Zn,{getNewChatId:v.refetch,handleClickBackBtn:r,openSideBar:c,onDownloadConversation:function(){return function(e,t){return Ne(void 0,void 0,void 0,function(){var n,r,i,o,s,a,A,l,c,u,d;return Te(this,function(f){switch(f.label){case 0:if(!(n=e.current))return[2];(r=document.createElement('div')).className='pdf-overlay',document.body.appendChild(r),n.classList.add('pdf-container'),f.label=1;case 1:return f.trys.push([1,,3,4]),[4,(i=qX().from(n).set({margin:[20,10,10,10],filename:'conversation-'.concat(Date.now(),'.pdf'),html2canvas:{scale:2,useCORS:!0},jsPDF:{unit:'mm',format:'a4',orientation:'portrait'},pagebreak:{mode:['avoid-all','css','legacy']}})).toPdf().get('pdf')];case 2:for(o=f.sent(),s=o.internal.getNumberOfPages(),a=o.internal.pageSize.getWidth(),A=o.internal.pageSize.getHeight(),l=1;l<=s;l++)o.setPage(l),o.setFontSize(16),o.setFont('heebo','bold'),o.text('VuNet',10,10),o.text('VED',a-10,10,{align:'right'}),o.setFontSize(12),o.setFont('heebo','bold'),o.text(GX(t),a/2,8,{align:'center'}),o.setFontSize(9),o.setFont('heebo','normal'),o.text('Downloaded at '.concat((new Date).toLocaleString()),a/2,13,{align:'center'}),c=A-8,o.setFontSize(10),o.setFont('heebo','normal'),u='Powered by vuSmartMaps™ from',o.text(u,10,c),d=o.getStringUnitWidth(u)*o.internal.getFontSize()/o.internal.scaleFactor,o.setFont('heebo','bold'),o.text('VuNet',10+d+1,c);return i.save(),[3,4];case 3:return n.classList.remove('pdf-container'),r.classList.add('fade-out'),setTimeout(function(){return r.remove()},150),[7];case 4:return[2]}})})}(m,(null==s?void 0:s.sessionTitle)||'')},isDownloadDisabled:p||!(null==s?void 0:s.sessionID)||(null==s?void 0:s.isNew)}),v.isLoading||v.isError?t.createElement(t.Fragment,null,v.isError?t.createElement(rr,{errorHeading:'Oops!',errorInfo:t.createElement(WX,null)}):t.createElement(DN,null,t.createElement(dN,{color:'#000',loading:v.isLoading,size:75,'aria-label':'Loading Spinner','data-testid':'loader'}))):t.createElement(LN,{style:{height:'calc(100% - 5rem)'}},t.createElement(ON,{$isOpen:l},t.createElement(IN,null,t.createElement(En,{icon:Xn,iconColor:'vu-fill-slate-350',onClick:function(){return c(!1)}})),t.createElement(NN,null,t.createElement(TN,null,t.createElement(bN,null,t.createElement('div',{className:'vu-flex vu-gap-2'},t.createElement(Un,{$fullWidth:!0,placeholder:'Search Conversations',onChange:function(e){return f(e.target.value)}}),t.createElement(Fn,{icon:'data:image/svg+xml,%3Csvg%20width%3D%2214%22%20height%3D%2214%22%20viewBox%3D%220%200%2014%2014%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M11.9%204.2H11.2V2.1C11.2%201.54305%2010.9788%201.0089%2010.5849%200.615076C10.1911%200.221249%209.65695%200%209.1%200H2.1C1.54305%200%201.0089%200.221249%200.615076%200.615076C0.221249%201.0089%200%201.54305%200%202.1V10.5C0.000689837%2010.6382%200.0422715%2010.7731%200.119505%2010.8877C0.196738%2011.0023%200.306167%2011.0915%200.434%2011.144C0.517075%2011.1832%200.608176%2011.2024%200.7%2011.2C0.792125%2011.2005%200.883448%2011.1829%200.968735%2011.148C1.05402%2011.1132%201.13159%2011.0619%201.197%2010.997L3.164%209.023H4.2V10.031C4.2%2010.588%204.42125%2011.1221%204.81508%2011.5159C5.2089%2011.9098%205.74305%2012.131%206.3%2012.131H11.144L12.803%2013.797C12.8684%2013.8619%2012.946%2013.9132%2013.0313%2013.948C13.1166%2013.9829%2013.2079%2014.0005%2013.3%2014C13.3918%2014.0024%2013.4829%2013.9832%2013.566%2013.944C13.6938%2013.8915%2013.8033%2013.8023%2013.8805%2013.6877C13.9577%2013.5731%2013.9993%2013.4382%2014%2013.3V6.3C14%205.74305%2013.7788%205.2089%2013.3849%204.81508C12.9911%204.42125%2012.457%204.2%2011.9%204.2ZM4.2%206.3V7.623H2.877C2.78488%207.62247%202.69355%207.64012%202.60827%207.67496C2.52298%207.70979%202.44541%207.76112%202.38%207.826L1.4%208.813V2.1C1.4%201.91435%201.47375%201.7363%201.60503%201.60503C1.7363%201.47375%201.91435%201.4%202.1%201.4H9.1C9.28565%201.4%209.4637%201.47375%209.59497%201.60503C9.72625%201.7363%209.8%201.91435%209.8%202.1V4.2H6.3C5.74305%204.2%205.2089%204.42125%204.81508%204.81508C4.42125%205.2089%204.2%205.74305%204.2%206.3ZM12.6%2011.613L11.9%2010.913C11.8352%2010.8469%2011.7579%2010.7942%2011.6725%2010.7582C11.5872%2010.7221%2011.4956%2010.7034%2011.403%2010.703H6.3C6.11435%2010.703%205.9363%2010.6292%205.80503%2010.498C5.67375%2010.3667%205.6%2010.1887%205.6%2010.003V6.3C5.6%206.11435%205.67375%205.9363%205.80503%205.80503C5.9363%205.67375%206.11435%205.6%206.3%205.6H11.9C12.0857%205.6%2012.2637%205.67375%2012.395%205.80503C12.5263%205.9363%2012.6%206.11435%2012.6%206.3V11.613Z%22%20fill%3D%22white%22%2F%3E%3C%2Fsvg%3E',title:'Create new chat',iconColor:'vu-fill-white',onClick:y,disabled:v.isLoading})),t.createElement(vz,{currentConversationInfo:s,handleSetConversationInfo:b,searchQuery:d}))))),t.createElement(MN,null,(null==s?void 0:s.sessionID)?t.createElement(t.Fragment,null,t.createElement(cz,{handleSetConversationInfo:b,sessionID:s.sessionID,sessionTitle:s.sessionTitle,isNew:s.isNew,handleClickNewChat:y,contentRef:m,onSetIsStreaming:g})):t.createElement(DN,null,t.createElement(dN,{color:'#000',loading:v.isLoading,size:75,'aria-label':'Loading Spinner','data-testid':'loader'})))))},XX=Nt.div(HX||(HX=De(['\n vu-fixed\n vu-inset-0\n vu-p-8\n vu-isolate\n vu-z-[1001]\n vu-bg-black/75\n'],['\n vu-fixed\n vu-inset-0\n vu-p-8\n vu-isolate\n vu-z-[1001]\n vu-bg-black/75\n']))),JX=Nt.div(zX||(zX=De(['\n vu-css-ls\n vu-p-6\n vu-h-full\n vu-bg-white\n dark:vu-bg-dark_mode-600\n vu-flex\n vu-flex-col\n vu-rounded-lg\n vu-relative\n dark:vu-text=slate-250\n'],['\n vu-css-ls\n vu-p-6\n vu-h-full\n vu-bg-white\n dark:vu-bg-dark_mode-600\n vu-flex\n vu-flex-col\n vu-rounded-lg\n vu-relative\n dark:vu-text=slate-250\n']))),ZX=Nt.div(VX||(VX=De(['\n vu-fixed\n vu-z-[1001]\n vu-flex\n vu-transition-all\n vu-duration-300 \n vu-ease-in-out\n\n ','\n'],['\n vu-fixed\n vu-z-[1001]\n vu-flex\n vu-transition-all\n vu-duration-300 \n vu-ease-in-out\n\n ','\n'])),function(e){return e.$isMinimized?'vu-bottom-24 -vu-right-8 -vu-rotate-45':'vu-bottom-20 vu-right-5 vu-rotate-0'}),$X=Nt(En)(KX||(KX=De(['\n vu-pt-2\n'],['\n vu-pt-2\n']))),eJ=new fe,tJ=h({isDarkMode:!1}),nJ=function(e){var r=e.baseURL,i=e.darkMode,o=void 0!==i&&i,s=e.handleClickBackBtn,a=n(o)[0];return r?(Mn.defaults.baseURL=r,t.createElement(tJ.Provider,{value:{isDarkMode:a}},t.createElement(je,{client:eJ},t.createElement(XX,{className:a?'vu-dark':''},t.createElement(JX,null,t.createElement(YX,{handleClickBackBtn:function(){return s(!1)}}),t.createElement(RT,{position:'top-right'})))))):t.createElement('h1',null,'Base URL missing.')},rJ=function(e){var i=e.baseURL,o=e.darkMode,s=void 0===o||o,a=n(!1),A=a[0],l=a[1],c=n(!1),u=c[0],d=c[1],f=zT();return r(function(){var e=f.get('ved_chat_open');'true'===e?l(!0):'false'===e&&l(!1)},[f]),r(function(){var e=function(e){'Escape'===e.key&&l(!1)};return document.addEventListener('keydown',e),function(){document.removeEventListener('keydown',e)}},[l]),t.createElement('div',null,t.createElement(ZX,{$isMinimized:u},t.createElement(En,{icon:u?'data:image/svg+xml,%3Csvg%20width%3D%2213%22%20height%3D%2213%22%20viewBox%3D%220%200%2013%2013%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5.9955%200.0811363C6.18846%20-0.0976484%206.5143%200.0380123%206.55408%200.303045C6.99418%201.8052%207.65855%203.26871%208.69785%204.4097C9.39523%205.18593%2010.2627%205.77529%2011.203%206.16071C11.5009%206.25235%2011.4984%206.75726%2011.2005%206.8471C10.2974%207.21635%209.46124%207.77427%208.78079%208.50648C7.67124%209.67891%206.98825%2011.2179%206.52361%2012.7856C6.41867%2013.11%205.92187%2013.0507%205.87532%2012.7129C5.39968%2011.0903%204.65998%209.50731%203.47765%208.33398C2.83105%207.68353%202.05581%207.1894%201.22725%206.8471C0.92595%206.75996%200.923411%206.24966%201.22471%206.15982C2.46713%205.6594%203.56398%204.77176%204.34684%203.63167C5.02983%202.6533%205.50716%201.52848%205.84993%200.370426C5.88632%200.268905%205.90833%200.150314%205.9955%200.0811363Z%22%20fill%3D%22url%28%23paint0_linear_824_2194%29%22%2F%3E%3Cpath%20d%3D%22M7.93967%206.62908H6.66191V8.08352H6.07193V6.62908H4.79102V6.08327H6.07193V4.73926H6.66191V6.08327H7.93967V6.62908Z%22%20fill%3D%22white%22%2F%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22paint0_linear_824_2194%22%20x1%3D%221.19306%22%20y1%3D%226.55804%22%20x2%3D%2210.846%22%20y2%3D%226.55804%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23AD2677%22%2F%3E%3Cstop%20offset%3D%220.552083%22%20stop-color%3D%22%23E02433%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F38922%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3C%2Fsvg%3E':'data:image/svg+xml,%3Csvg%20width%3D%2213%22%20height%3D%2213%22%20viewBox%3D%220%200%2013%2013%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5.9955%200.0811363C6.18846%20-0.0976484%206.5143%200.0380123%206.55408%200.303045C6.99418%201.8052%207.65855%203.26871%208.69785%204.4097C9.39523%205.18593%2010.2627%205.77529%2011.203%206.16071C11.5009%206.25235%2011.4984%206.75726%2011.2005%206.8471C10.2974%207.21635%209.46124%207.77427%208.78079%208.50648C7.67124%209.67891%206.98825%2011.2179%206.52361%2012.7856C6.41867%2013.11%205.92187%2013.0507%205.87532%2012.7129C5.39968%2011.0903%204.65998%209.50731%203.47765%208.33398C2.83105%207.68353%202.05581%207.1894%201.22725%206.8471C0.92595%206.75996%200.923411%206.24966%201.22471%206.15982C2.46713%205.6594%203.56398%204.77176%204.34684%203.63167C5.02983%202.6533%205.50716%201.52848%205.84993%200.370426C5.88632%200.268905%205.90833%200.150314%205.9955%200.0811363Z%22%20fill%3D%22url%28%23paint0_linear_824_2193%29%22%2F%3E%3Cpath%20d%3D%22M4.79102%206.63427V5.68652H7.63424V6.63427H4.79102Z%22%20fill%3D%22white%22%2F%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22paint0_linear_824_2193%22%20x1%3D%221.19306%22%20y1%3D%226.55804%22%20x2%3D%2210.846%22%20y2%3D%226.55804%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23AD2677%22%2F%3E%3Cstop%20offset%3D%220.552083%22%20stop-color%3D%22%23E02433%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F38922%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3C%2Fsvg%3E',onClick:function(){return d(function(e){return!e})},disableHoverEffect:!0}),t.createElement($X,{size:64,icon:'data:image/svg+xml,%3Csvg%20width%3D%2264%22%20height%3D%2264%22%20viewBox%3D%220%200%2064%2064%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Crect%20y%3D%228%22%20width%3D%2264%22%20height%3D%2249%22%20rx%3D%2210.2851%22%20fill%3D%22url%28%23paint0_linear_824_2190%29%22%2F%3E%3Cpath%20d%3D%22M7%2022.0107C8.33054%2022.0154%209.66322%2022.0131%2010.9938%2022.0107C13.1385%2028.9994%2015.2853%2035.9903%2017.4172%2042.9836C16.0909%2042.9976%2014.7647%2042.9743%2013.4406%2042.9999C11.2509%2036.0206%209.134%2029.011%207%2022.0107Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M20.1836%2022.0118C21.5184%2022.0118%2022.8532%2022.0072%2024.1902%2022.0118C22.2876%2028.209%2020.4086%2034.4154%2018.4845%2040.6055C17.7646%2038.4568%2017.1347%2036.2755%2016.4727%2034.1081C17.7261%2030.0807%2018.9302%2026.0369%2020.1836%2022.0118Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M26.8603%2022.0088L26.9717%2022.0251C28.4008%2022.2812%2029.8513%2022.1438%2031.2933%2022.2439C31.3575%2023.3008%2031.3532%2024.3624%2031.274%2025.417C29.7913%2025.4915%2028.3022%2025.3611%2026.8281%2025.5567C26.8945%2024.374%2026.8581%2023.1914%2026.8603%2022.0088Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M26.8647%2042.9874C26.8733%2041.7698%2026.839%2040.5499%2026.8904%2039.3301C28.3666%2039.3673%2029.845%2039.3394%2031.3234%2039.3487C31.3234%2040.5616%2031.3255%2041.7745%2031.3298%2042.9897C29.8407%2042.9897%2028.3516%2042.9897%2026.8647%2042.9874Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M26.9717%2022.0263C31.0061%2021.9798%2035.0406%2022.0077%2039.0751%2022.0147C39.0708%2023.2183%2039.0901%2024.4242%2039.0601%2025.6301C35.7669%2025.6231%2032.4759%2025.6371%2029.185%2025.6277C28.3986%2025.6161%2027.608%2025.6836%2026.8281%2025.5579C28.3022%2025.3623%2029.7913%2025.4927%2031.274%2025.4182C31.3532%2024.3636%2031.3575%2023.3021%2031.2933%2022.2452C29.8513%2022.1451%2028.4008%2022.2824%2026.9717%2022.0263Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M42.4379%2022.0183C44.2355%2022.0044%2046.031%2022.0044%2047.8286%2022.0276C47.8329%2023.2172%2047.82%2024.4092%2047.7836%2025.5988C46.001%2025.5545%2044.2184%2025.5964%2042.4357%2025.5732C42.4336%2024.3882%2042.4315%2023.2033%2042.4379%2022.0183Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M42.4361%2039.3898C44.3408%2039.3712%2046.2434%2039.4224%2048.1482%2039.3525C48.2982%2040.5538%2048.2896%2041.7713%2048.1182%2042.9679C46.2241%2043.0075%2044.3301%2042.9842%2042.4361%2042.9865C42.4339%2041.7876%2042.4318%2040.5887%2042.4361%2039.3898Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M47.8243%2022.0283C49.4891%2022.1075%2051.1281%2022.5777%2052.6001%2023.4251L52.5979%2023.467C52.4544%2025.1804%2052.6344%2026.9055%2052.418%2028.6142C51.4559%2026.8193%2049.6712%2025.7228%2047.7793%2025.5995C47.8157%2024.4099%2047.8286%2023.2179%2047.8243%2022.0283Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M52.5939%2023.4668C54.9358%2024.8543%2056.4548%2027.5547%2056.8448%2030.3856C57.2197%2033.0884%2056.9519%2036.0054%2055.6128%2038.3706C54.8736%2039.7232%2053.7766%2040.8034%2052.5404%2041.5995C52.4568%2039.8931%2052.6689%2038.1681%2052.3711%2036.478C53.451%2034.0289%2053.4038%2031.0817%2052.4139%2028.614C52.6303%2026.9052%2052.4504%2025.1802%2052.5939%2023.4668Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M26.8574%2030.6728C30.3927%2030.6682%2033.9279%2030.6658%2037.4632%2030.6705C37.4632%2031.8764%2037.461%2033.0823%2037.4653%2034.2882C33.9686%2034.2859%2030.4698%2034.3208%2026.9753%2034.2696C28.5436%2033.9739%2030.142%2034.1509%2031.7254%2034.0438C31.7789%2032.9938%2031.7725%2031.9416%2031.7082%2030.8917C30.0949%2030.8288%2028.4815%2030.8614%2026.8681%2030.8125L26.8574%2030.6728Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M26.8658%2030.8125C28.4792%2030.8614%2030.0925%2030.8288%2031.7059%2030.8917C31.7702%2031.9416%2031.7766%2032.9938%2031.723%2034.0438C30.1397%2034.1508%2028.5413%2033.9739%2026.9729%2034.2696L26.8594%2034.2859C26.8701%2033.1265%2026.8637%2031.9695%2026.8658%2030.8125Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M48.1372%2039.3247C49.8641%2039.1454%2051.4754%2038.1048%2052.371%2036.4775C52.6688%2038.1677%2052.4567%2039.8927%2052.5402%2041.5991C51.1733%2042.4%2049.652%2042.8376%2048.1094%2042.968C48.2808%2041.7714%2048.2894%2040.5539%2048.1394%2039.3526L48.1372%2039.3247Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M31.3203%2039.3477C32.7451%2039.3454%2034.1699%2039.3477%2035.5969%2039.3477C35.6119%2040.5606%2035.6076%2041.7735%2035.5862%2042.9887C34.1656%2042.9887%2032.7451%2042.9887%2031.3267%2042.9887C31.3224%2041.7735%2031.3203%2040.5606%2031.3203%2039.3477Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M35.6064%2039.3482C36.7634%2039.3459%2037.9225%2039.3459%2039.0817%2039.3505C39.0817%2040.5634%2039.0817%2041.774%2039.0817%2042.9869C37.9204%2042.9915%2036.757%2042.9892%2035.5957%2042.9892C35.6171%2041.774%2035.6214%2040.5611%2035.6064%2039.3482Z%22%20fill%3D%22white%22%2F%3E%3Cellipse%20cx%3D%2245.1173%22%20cy%3D%2232.6875%22%20rx%3D%222.45906%22%20ry%3D%222.67187%22%20fill%3D%22white%22%2F%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22paint0_linear_824_2190%22%20x1%3D%22-5.82857%22%20y1%3D%2230.6824%22%20x2%3D%2265.86%22%20y2%3D%2233.0575%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20offset%3D%220.0561277%22%20stop-color%3D%22%23A42783%22%2F%3E%3Cstop%20offset%3D%220.503827%22%20stop-color%3D%22%23E22432%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F59620%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3C%2Fsvg%3E',disableHoverEffect:!0,onClick:function(){return l(!0)}})),A&&t.createElement(nJ,{baseURL:i,handleClickBackBtn:l,darkMode:s}))};export{nJ as VuChat,tJ as VuChatContext,rJ as VuIconComponent};
|